@aurodesignsystem-dev/auro-formkit 0.0.0-pr755.0 → 0.0.0-pr755.1
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/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +9 -9
- package/components/checkbox/demo/index.min.js +9 -9
- package/components/checkbox/dist/index.js +9 -9
- package/components/checkbox/dist/registered.js +9 -9
- package/components/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +81 -98
- package/components/combobox/demo/index.min.js +81 -98
- package/components/combobox/dist/index.js +44 -86
- package/components/combobox/dist/registered.js +44 -86
- package/components/counter/demo/api.md +140 -7
- package/components/counter/demo/api.min.js +555 -385
- package/components/counter/demo/index.md +82 -0
- package/components/counter/demo/index.min.js +555 -385
- package/components/counter/dist/auro-counter-group.d.ts +71 -14
- package/components/counter/dist/auro-counter.d.ts +10 -0
- package/components/counter/dist/index.js +555 -385
- package/components/counter/dist/registered.js +555 -385
- package/components/datepicker/demo/api.min.js +65 -92
- package/components/datepicker/demo/index.min.js +65 -92
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +65 -92
- package/components/datepicker/dist/registered.js +65 -92
- package/components/dropdown/demo/api.md +76 -268
- package/components/dropdown/demo/api.min.js +25 -67
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +25 -67
- package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
- package/components/dropdown/dist/index.js +25 -67
- package/components/dropdown/dist/registered.js +25 -67
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +12 -12
- package/components/input/demo/index.min.js +12 -12
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +12 -12
- package/components/input/dist/registered.js +12 -12
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +37 -12
- package/components/menu/demo/index.min.js +37 -12
- package/components/menu/dist/auro-menu.d.ts +13 -2
- package/components/menu/dist/index.js +37 -12
- package/components/menu/dist/registered.js +37 -12
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -10
- package/components/radio/dist/registered.js +10 -10
- package/components/select/demo/api.md +15 -9
- package/components/select/demo/api.min.js +125 -194
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +125 -194
- package/components/select/dist/auro-select.d.ts +20 -4
- package/components/select/dist/index.js +88 -182
- package/components/select/dist/registered.js +88 -182
- package/package.json +3 -3
|
@@ -221,8 +221,8 @@ class AuroRadio extends i$2 {
|
|
|
221
221
|
},
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
+
* Do not add to api doc since changing of this can easily break a11y.
|
|
224
225
|
* @private
|
|
225
|
-
* not to add to api.md since changing of this can easily break a11y.
|
|
226
226
|
*/
|
|
227
227
|
role: {
|
|
228
228
|
type: String,
|
|
@@ -418,7 +418,7 @@ class AuroRadio extends i$2 {
|
|
|
418
418
|
*/
|
|
419
419
|
const a=Symbol.for(""),o=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
|
|
420
420
|
|
|
421
|
-
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
421
|
+
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
422
422
|
|
|
423
423
|
var colorCss$1 = i$5`:host legend{color:var(--ds-auro-radio-group-label-color)}:host([disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
424
424
|
|
|
@@ -898,19 +898,19 @@ class AuroFormValidation {
|
|
|
898
898
|
{
|
|
899
899
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
900
900
|
validity: 'tooShort',
|
|
901
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
901
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
902
902
|
},
|
|
903
903
|
{
|
|
904
904
|
check: (e) => e.value?.length > e.maxLength,
|
|
905
905
|
validity: 'tooLong',
|
|
906
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
906
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
907
907
|
}
|
|
908
908
|
],
|
|
909
909
|
pattern: [
|
|
910
910
|
{
|
|
911
911
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
912
912
|
validity: 'patternMismatch',
|
|
913
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
913
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
914
914
|
}
|
|
915
915
|
]
|
|
916
916
|
},
|
|
@@ -1105,10 +1105,10 @@ class AuroFormValidation {
|
|
|
1105
1105
|
if (!hasValue && elem.required && elem.touched) {
|
|
1106
1106
|
elem.validity = 'valueMissing';
|
|
1107
1107
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1108
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1108
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1109
1109
|
this.validateType(elem);
|
|
1110
1110
|
this.validateElementAttributes(elem);
|
|
1111
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1111
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1112
1112
|
this.validateElementAttributes(elem);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
@@ -1241,7 +1241,7 @@ class AuroDependencyVersioning {
|
|
|
1241
1241
|
|
|
1242
1242
|
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1243
1243
|
|
|
1244
|
-
var styleCss = i$5
|
|
1244
|
+
var styleCss = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1245
1245
|
|
|
1246
1246
|
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1247
1247
|
|
|
@@ -1878,11 +1878,11 @@ class AuroRadioGroup extends i$2 {
|
|
|
1878
1878
|
|
|
1879
1879
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1880
1880
|
? u`
|
|
1881
|
-
<${this.helpTextTag}
|
|
1881
|
+
<${this.helpTextTag} ?onDark="${this.onDark}" part="helpText">
|
|
1882
1882
|
<slot name="helpText"></slot>
|
|
1883
1883
|
</${this.helpTextTag}>`
|
|
1884
1884
|
: u`
|
|
1885
|
-
<${this.helpTextTag}
|
|
1885
|
+
<${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
|
|
1886
1886
|
${this.errorMessage}
|
|
1887
1887
|
</${this.helpTextTag}>`
|
|
1888
1888
|
}
|
|
@@ -69,8 +69,8 @@ export class AuroRadio extends LitElement {
|
|
|
69
69
|
attribute: boolean;
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
72
|
+
* Do not add to api doc since changing of this can easily break a11y.
|
|
72
73
|
* @private
|
|
73
|
-
* not to add to api.md since changing of this can easily break a11y.
|
|
74
74
|
*/
|
|
75
75
|
role: {
|
|
76
76
|
type: StringConstructor;
|
|
@@ -181,8 +181,8 @@ class AuroRadio extends LitElement {
|
|
|
181
181
|
},
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
+
* Do not add to api doc since changing of this can easily break a11y.
|
|
184
185
|
* @private
|
|
185
|
-
* not to add to api.md since changing of this can easily break a11y.
|
|
186
186
|
*/
|
|
187
187
|
role: {
|
|
188
188
|
type: String,
|
|
@@ -371,7 +371,7 @@ class AuroRadio extends LitElement {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
374
|
+
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
375
375
|
|
|
376
376
|
var colorCss$1 = css`:host legend{color:var(--ds-auro-radio-group-label-color)}:host([disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
377
377
|
|
|
@@ -851,19 +851,19 @@ class AuroFormValidation {
|
|
|
851
851
|
{
|
|
852
852
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
853
853
|
validity: 'tooShort',
|
|
854
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
854
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
check: (e) => e.value?.length > e.maxLength,
|
|
858
858
|
validity: 'tooLong',
|
|
859
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
859
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
860
860
|
}
|
|
861
861
|
],
|
|
862
862
|
pattern: [
|
|
863
863
|
{
|
|
864
864
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
865
865
|
validity: 'patternMismatch',
|
|
866
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
866
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
867
867
|
}
|
|
868
868
|
]
|
|
869
869
|
},
|
|
@@ -1058,10 +1058,10 @@ class AuroFormValidation {
|
|
|
1058
1058
|
if (!hasValue && elem.required && elem.touched) {
|
|
1059
1059
|
elem.validity = 'valueMissing';
|
|
1060
1060
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1061
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1061
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1062
1062
|
this.validateType(elem);
|
|
1063
1063
|
this.validateElementAttributes(elem);
|
|
1064
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1064
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1065
1065
|
this.validateElementAttributes(elem);
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
@@ -1194,7 +1194,7 @@ class AuroDependencyVersioning {
|
|
|
1194
1194
|
|
|
1195
1195
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1196
1196
|
|
|
1197
|
-
var styleCss = css
|
|
1197
|
+
var styleCss = css`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1198
1198
|
|
|
1199
1199
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1200
1200
|
|
|
@@ -1831,11 +1831,11 @@ class AuroRadioGroup extends LitElement {
|
|
|
1831
1831
|
|
|
1832
1832
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1833
1833
|
? html$1`
|
|
1834
|
-
<${this.helpTextTag}
|
|
1834
|
+
<${this.helpTextTag} ?onDark="${this.onDark}" part="helpText">
|
|
1835
1835
|
<slot name="helpText"></slot>
|
|
1836
1836
|
</${this.helpTextTag}>`
|
|
1837
1837
|
: html$1`
|
|
1838
|
-
<${this.helpTextTag}
|
|
1838
|
+
<${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
|
|
1839
1839
|
${this.errorMessage}
|
|
1840
1840
|
</${this.helpTextTag}>`
|
|
1841
1841
|
}
|
|
@@ -181,8 +181,8 @@ class AuroRadio extends LitElement {
|
|
|
181
181
|
},
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
+
* Do not add to api doc since changing of this can easily break a11y.
|
|
184
185
|
* @private
|
|
185
|
-
* not to add to api.md since changing of this can easily break a11y.
|
|
186
186
|
*/
|
|
187
187
|
role: {
|
|
188
188
|
type: String,
|
|
@@ -371,7 +371,7 @@ class AuroRadio extends LitElement {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
374
|
+
var styleCss$1 = css`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
|
|
375
375
|
|
|
376
376
|
var colorCss$1 = css`:host legend{color:var(--ds-auro-radio-group-label-color)}:host([disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
377
377
|
|
|
@@ -851,19 +851,19 @@ class AuroFormValidation {
|
|
|
851
851
|
{
|
|
852
852
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
853
853
|
validity: 'tooShort',
|
|
854
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
854
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
check: (e) => e.value?.length > e.maxLength,
|
|
858
858
|
validity: 'tooLong',
|
|
859
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
859
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
860
860
|
}
|
|
861
861
|
],
|
|
862
862
|
pattern: [
|
|
863
863
|
{
|
|
864
864
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
865
865
|
validity: 'patternMismatch',
|
|
866
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
866
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
867
867
|
}
|
|
868
868
|
]
|
|
869
869
|
},
|
|
@@ -1058,10 +1058,10 @@ class AuroFormValidation {
|
|
|
1058
1058
|
if (!hasValue && elem.required && elem.touched) {
|
|
1059
1059
|
elem.validity = 'valueMissing';
|
|
1060
1060
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1061
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1061
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1062
1062
|
this.validateType(elem);
|
|
1063
1063
|
this.validateElementAttributes(elem);
|
|
1064
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1064
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
1065
1065
|
this.validateElementAttributes(elem);
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
@@ -1194,7 +1194,7 @@ class AuroDependencyVersioning {
|
|
|
1194
1194
|
|
|
1195
1195
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
1196
1196
|
|
|
1197
|
-
var styleCss = css
|
|
1197
|
+
var styleCss = css`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
1198
1198
|
|
|
1199
1199
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
1200
1200
|
|
|
@@ -1831,11 +1831,11 @@ class AuroRadioGroup extends LitElement {
|
|
|
1831
1831
|
|
|
1832
1832
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1833
1833
|
? html$1`
|
|
1834
|
-
<${this.helpTextTag}
|
|
1834
|
+
<${this.helpTextTag} ?onDark="${this.onDark}" part="helpText">
|
|
1835
1835
|
<slot name="helpText"></slot>
|
|
1836
1836
|
</${this.helpTextTag}>`
|
|
1837
1837
|
: html$1`
|
|
1838
|
-
<${this.helpTextTag}
|
|
1838
|
+
<${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
|
|
1839
1839
|
${this.errorMessage}
|
|
1840
1840
|
</${this.helpTextTag}>`
|
|
1841
1841
|
}
|
|
@@ -33,6 +33,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
33
33
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
34
34
|
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
35
35
|
| [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | | Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true. |
|
|
36
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
|
|
36
37
|
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end". |
|
|
37
38
|
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
38
39
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
@@ -41,7 +42,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
41
42
|
| [shape](#shape) | | `string` | "snowflake" | |
|
|
42
43
|
| [size](#size) | | `string` | "xl" | |
|
|
43
44
|
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
44
|
-
| [value](#value) | `value` | `
|
|
45
|
+
| [value](#value) | `value` | `string` | | Value selected for the component. |
|
|
45
46
|
|
|
46
47
|
## Methods
|
|
47
48
|
|
|
@@ -56,7 +57,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
56
57
|
|-----------------------------|--------------------------------------------------|--------------------------------------------------|
|
|
57
58
|
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
58
59
|
| `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
|
|
59
|
-
| [input](#input) | `CustomEvent<{ optionSelected: any; value:
|
|
60
|
+
| [input](#input) | `CustomEvent<{ optionSelected: any; value: string \| string[]; }>` | Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object. |
|
|
60
61
|
|
|
61
62
|
## Slots
|
|
62
63
|
|
|
@@ -68,7 +69,6 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
68
69
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
69
70
|
| [label](#label) | Defines the content of the label. |
|
|
70
71
|
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
71
|
-
| [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
|
|
72
72
|
| [valueText](#valueText) | Dropdown value text display. |
|
|
73
73
|
|
|
74
74
|
## CSS Shadow Parts
|
|
@@ -1154,7 +1154,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1154
1154
|
<div style="width: 350px">
|
|
1155
1155
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1156
1156
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1157
|
-
<span slot="label">
|
|
1157
|
+
<span slot="label">Label</span>
|
|
1158
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1158
1159
|
<auro-menu>
|
|
1159
1160
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1160
1161
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1166,7 +1167,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1166
1167
|
</auro-select>
|
|
1167
1168
|
<auro-select offset="20" placement="bottom-end">
|
|
1168
1169
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1169
|
-
<span slot="label">
|
|
1170
|
+
<span slot="label">Label</span>
|
|
1171
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1170
1172
|
<auro-menu>
|
|
1171
1173
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1172
1174
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1178,7 +1180,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1178
1180
|
</auro-select>
|
|
1179
1181
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1180
1182
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1181
|
-
<span slot="label">
|
|
1183
|
+
<span slot="label">Label</span>
|
|
1184
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1182
1185
|
<auro-menu>
|
|
1183
1186
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1184
1187
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1200,7 +1203,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1200
1203
|
<div style="width: 350px">
|
|
1201
1204
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1202
1205
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1203
|
-
<span slot="label">
|
|
1206
|
+
<span slot="label">Label</span>
|
|
1207
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1204
1208
|
<auro-menu>
|
|
1205
1209
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1206
1210
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1212,7 +1216,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1212
1216
|
</auro-select>
|
|
1213
1217
|
<auro-select offset="20" placement="bottom-end">
|
|
1214
1218
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1215
|
-
<span slot="label">
|
|
1219
|
+
<span slot="label">Label</span>
|
|
1220
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1216
1221
|
<auro-menu>
|
|
1217
1222
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1218
1223
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1224,7 +1229,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1224
1229
|
</auro-select>
|
|
1225
1230
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1226
1231
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1227
|
-
<span slot="label">
|
|
1232
|
+
<span slot="label">Label</span>
|
|
1233
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1228
1234
|
<auro-menu>
|
|
1229
1235
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1230
1236
|
<auro-menuoption value="price">Price</auro-menuoption>
|