@progressive-development/pd-forms 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/PdBaseUiInput.js +5 -2
- package/stories/range.stories.js +11 -0
package/package.json
CHANGED
package/src/PdBaseUiInput.js
CHANGED
|
@@ -86,7 +86,10 @@ import { SharedInputStyles } from './shared-input-styles.js';
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.label-header pd-icon {
|
|
89
|
-
--pd-icon-size:
|
|
89
|
+
--pd-icon-size: 1.25rem;
|
|
90
|
+
--pd-icon-col-active: var(--pd-default-col);
|
|
91
|
+
--pd-icon-col-active-hover: var(--pd-default-hover-col);
|
|
92
|
+
--pd-icon-stroke-width: 0;
|
|
90
93
|
padding-right: 5px;
|
|
91
94
|
cursor: help;
|
|
92
95
|
}
|
|
@@ -227,7 +230,7 @@ import { SharedInputStyles } from './shared-input-styles.js';
|
|
|
227
230
|
return html`
|
|
228
231
|
<div class="label-header">
|
|
229
232
|
<label for="${forParam}">${this.label}${this.required && this.label ? this.defaultRequiredChar : ''}${additionalValue ? html` - <b>${additionalValue}</b>` : ''}</label>
|
|
230
|
-
${this.helperTxt ? html`<pd-icon title="${this.helperTxt}" icon="
|
|
233
|
+
${this.helperTxt ? html`<pd-icon title="${this.helperTxt}" icon="helpIcon" activeIcon></pd-icon>` : ""}
|
|
231
234
|
</div>
|
|
232
235
|
`;
|
|
233
236
|
}
|
package/stories/range.stories.js
CHANGED
|
@@ -42,6 +42,17 @@ function Template() {
|
|
|
42
42
|
.optionValueMapper="${OPTIONS_GENRE}">
|
|
43
43
|
</pd-range>
|
|
44
44
|
</pd-form-row>
|
|
45
|
+
<pd-form-row>
|
|
46
|
+
<pd-range id="range5060Id"
|
|
47
|
+
class="quarter4"
|
|
48
|
+
label="50er/60er"
|
|
49
|
+
helperTxt="Hier steht ein Hilfstext"
|
|
50
|
+
required
|
|
51
|
+
max="4"
|
|
52
|
+
value="0"
|
|
53
|
+
.optionValueMapper="${OPTIONS_GENRE}">
|
|
54
|
+
</pd-range>
|
|
55
|
+
</pd-form-row>
|
|
45
56
|
</pd-form-container>
|
|
46
57
|
|
|
47
58
|
<h2>Test Validation</h2>
|