@aurodesignsystem-dev/auro-formkit 0.0.0-pr755.1 → 0.0.0-pr756.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.
Files changed (89) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.html +10 -16
  4. package/components/checkbox/demo/api.min.js +11 -11
  5. package/components/checkbox/demo/index.html +10 -16
  6. package/components/checkbox/demo/index.min.js +11 -11
  7. package/components/checkbox/demo/readme.html +9 -16
  8. package/components/checkbox/dist/index.js +11 -11
  9. package/components/checkbox/dist/registered.js +11 -11
  10. package/components/combobox/demo/api.html +10 -16
  11. package/components/combobox/demo/api.md +6 -12
  12. package/components/combobox/demo/api.min.js +98 -81
  13. package/components/combobox/demo/index.html +10 -16
  14. package/components/combobox/demo/index.min.js +98 -81
  15. package/components/combobox/demo/readme.html +9 -16
  16. package/components/combobox/dist/index.js +86 -44
  17. package/components/combobox/dist/registered.js +86 -44
  18. package/components/counter/demo/api.html +10 -16
  19. package/components/counter/demo/api.md +7 -13
  20. package/components/counter/demo/api.min.js +84 -36
  21. package/components/counter/demo/index.html +10 -16
  22. package/components/counter/demo/index.md +1 -1
  23. package/components/counter/demo/index.min.js +84 -36
  24. package/components/counter/demo/readme.html +9 -16
  25. package/components/counter/dist/auro-counter-group.d.ts +1 -1
  26. package/components/counter/dist/index.js +84 -36
  27. package/components/counter/dist/registered.js +84 -36
  28. package/components/datepicker/demo/api.html +10 -16
  29. package/components/datepicker/demo/api.min.js +92 -65
  30. package/components/datepicker/demo/index.html +10 -16
  31. package/components/datepicker/demo/index.min.js +92 -65
  32. package/components/datepicker/demo/readme.html +9 -16
  33. package/components/datepicker/dist/auro-datepicker.d.ts +0 -6
  34. package/components/datepicker/dist/index.js +92 -65
  35. package/components/datepicker/dist/registered.js +92 -65
  36. package/components/dropdown/demo/api.html +10 -16
  37. package/components/dropdown/demo/api.md +268 -76
  38. package/components/dropdown/demo/api.min.js +67 -25
  39. package/components/dropdown/demo/index.html +10 -16
  40. package/components/dropdown/demo/index.md +363 -45
  41. package/components/dropdown/demo/index.min.js +67 -25
  42. package/components/dropdown/demo/readme.html +9 -16
  43. package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
  44. package/components/dropdown/dist/index.js +67 -25
  45. package/components/dropdown/dist/registered.js +67 -25
  46. package/components/form/demo/api.html +9 -16
  47. package/components/form/demo/autocomplete.html +3 -19
  48. package/components/form/demo/index.html +9 -16
  49. package/components/form/demo/readme.html +9 -16
  50. package/components/form/demo/working.html +13 -19
  51. package/components/helptext/dist/index.js +1 -1
  52. package/components/helptext/dist/registered.js +1 -1
  53. package/components/input/demo/api.html +10 -16
  54. package/components/input/demo/api.md +1 -1
  55. package/components/input/demo/api.min.js +12 -12
  56. package/components/input/demo/index.html +10 -16
  57. package/components/input/demo/index.min.js +12 -12
  58. package/components/input/demo/readme.html +9 -16
  59. package/components/input/dist/base-input.d.ts +1 -1
  60. package/components/input/dist/index.js +12 -12
  61. package/components/input/dist/registered.js +12 -12
  62. package/components/menu/demo/api.html +32 -16
  63. package/components/menu/demo/api.md +1 -1
  64. package/components/menu/demo/api.min.js +12 -37
  65. package/components/menu/demo/index.html +10 -16
  66. package/components/menu/demo/index.min.js +12 -37
  67. package/components/menu/demo/readme.html +9 -16
  68. package/components/menu/dist/auro-menu.d.ts +2 -13
  69. package/components/menu/dist/index.js +12 -37
  70. package/components/menu/dist/registered.js +12 -37
  71. package/components/radio/demo/api.html +10 -16
  72. package/components/radio/demo/api.min.js +10 -10
  73. package/components/radio/demo/index.html +10 -16
  74. package/components/radio/demo/index.min.js +10 -10
  75. package/components/radio/demo/readme.html +9 -16
  76. package/components/radio/dist/auro-radio.d.ts +1 -1
  77. package/components/radio/dist/index.js +10 -10
  78. package/components/radio/dist/registered.js +10 -10
  79. package/components/select/demo/api.html +10 -16
  80. package/components/select/demo/api.md +9 -15
  81. package/components/select/demo/api.min.js +194 -125
  82. package/components/select/demo/index.html +11 -16
  83. package/components/select/demo/index.md +1 -1
  84. package/components/select/demo/index.min.js +194 -125
  85. package/components/select/demo/readme.html +9 -16
  86. package/components/select/dist/auro-select.d.ts +4 -20
  87. package/components/select/dist/index.js +182 -88
  88. package/components/select/dist/registered.js +182 -88
  89. package/package.json +2 -2
@@ -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.
225
224
  * @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)}[auro-helptext]{margin-top: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)}`;
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.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
901
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
902
902
  },
903
903
  {
904
904
  check: (e) => e.value?.length > e.maxLength,
905
905
  validity: 'tooLong',
906
- message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
906
+ message: e => e.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.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
913
+ message: e => e.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 (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1108
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1109
1109
  this.validateType(elem);
1110
1110
  this.validateElementAttributes(elem);
1111
- } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
1111
+ } else if (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`: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}`;
1244
+ var styleCss = i$5`.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} ?onDark="${this.onDark}" part="helpText">
1881
+ <${this.helpTextTag} large ?onDark="${this.onDark}" part="helpText">
1882
1882
  <slot name="helpText"></slot>
1883
1883
  </${this.helpTextTag}>`
1884
1884
  : u`
1885
- <${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1885
+ <${this.helpTextTag} large ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1886
1886
  ${this.errorMessage}
1887
1887
  </${this.helpTextTag}>`
1888
1888
  }
@@ -16,24 +16,17 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-radio</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-radio's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-radio custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ </head>
37
30
  <body class="auro-markdown">
38
31
  <main></main>
39
32
 
@@ -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.
73
72
  * @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.
185
184
  * @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)}[auro-helptext]{margin-top: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)}`;
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.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
854
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
855
855
  },
856
856
  {
857
857
  check: (e) => e.value?.length > e.maxLength,
858
858
  validity: 'tooLong',
859
- message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
859
+ message: e => e.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.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
866
+ message: e => e.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 (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1061
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1062
1062
  this.validateType(elem);
1063
1063
  this.validateElementAttributes(elem);
1064
- } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
1064
+ } else if (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`: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}`;
1197
+ var styleCss = css`.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} ?onDark="${this.onDark}" part="helpText">
1834
+ <${this.helpTextTag} large ?onDark="${this.onDark}" part="helpText">
1835
1835
  <slot name="helpText"></slot>
1836
1836
  </${this.helpTextTag}>`
1837
1837
  : html$1`
1838
- <${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1838
+ <${this.helpTextTag} large ?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.
185
184
  * @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)}[auro-helptext]{margin-top: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)}`;
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.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
854
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
855
855
  },
856
856
  {
857
857
  check: (e) => e.value?.length > e.maxLength,
858
858
  validity: 'tooLong',
859
- message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
859
+ message: e => e.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.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
866
+ message: e => e.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 (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1061
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1062
1062
  this.validateType(elem);
1063
1063
  this.validateElementAttributes(elem);
1064
- } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
1064
+ } else if (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`: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}`;
1197
+ var styleCss = css`.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} ?onDark="${this.onDark}" part="helpText">
1834
+ <${this.helpTextTag} large ?onDark="${this.onDark}" part="helpText">
1835
1835
  <slot name="helpText"></slot>
1836
1836
  </${this.helpTextTag}>`
1837
1837
  : html$1`
1838
- <${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1838
+ <${this.helpTextTag} large ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1839
1839
  ${this.errorMessage}
1840
1840
  </${this.helpTextTag}>`
1841
1841
  }
@@ -16,24 +16,18 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-select</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-select's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-select custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
30
+ </head>
37
31
  <body class="auro-markdown">
38
32
  <main></main>
39
33
 
@@ -33,7 +33,6 @@ 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. |
37
36
  | [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". |
38
37
  | [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
39
38
  | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
@@ -42,7 +41,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
42
41
  | [shape](#shape) | | `string` | "snowflake" | |
43
42
  | [size](#size) | | `string` | "xl" | |
44
43
  | [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
45
- | [value](#value) | `value` | `string` | | Value selected for the component. |
44
+ | [value](#value) | `value` | `String\|Array<String>` | | Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true. |
46
45
 
47
46
  ## Methods
48
47
 
@@ -57,7 +56,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
57
56
  |-----------------------------|--------------------------------------------------|--------------------------------------------------|
58
57
  | `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
59
58
  | `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
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. |
59
+ | [input](#input) | `CustomEvent<{ optionSelected: any; value: any; }>` | Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object. |
61
60
 
62
61
  ## Slots
63
62
 
@@ -69,6 +68,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
69
68
  | [helpText](#helpText) | Defines the content of the helpText. |
70
69
  | [label](#label) | Defines the content of the label. |
71
70
  | [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,8 +1154,7 @@ 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">Label</span>
1158
- <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
1157
+ <span slot="label">bottom-end bib with 20px offset and noFlip</span>
1159
1158
  <auro-menu>
1160
1159
  <auro-menuoption value="stops">Stops</auro-menuoption>
1161
1160
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -1167,8 +1166,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
1167
1166
  </auro-select>
1168
1167
  <auro-select offset="20" placement="bottom-end">
1169
1168
  <span slot="bib.fullscreen.headline">Bib Headline</span>
1170
- <span slot="label">Label</span>
1171
- <span slot="helpText">bottom-end bib with 20px offset and flip</span>
1169
+ <span slot="label">bottom-end bib with 20px offset and flip</span>
1172
1170
  <auro-menu>
1173
1171
  <auro-menuoption value="stops">Stops</auro-menuoption>
1174
1172
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -1180,8 +1178,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
1180
1178
  </auro-select>
1181
1179
  <auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
1182
1180
  <span slot="bib.fullscreen.headline">Bib Headline</span>
1183
- <span slot="label">Label</span>
1184
- <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
1181
+ <span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
1185
1182
  <auro-menu>
1186
1183
  <auro-menuoption value="stops">Stops</auro-menuoption>
1187
1184
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -1203,8 +1200,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
1203
1200
  <div style="width: 350px">
1204
1201
  <auro-select offset="20" noFlip placement="bottom-end">
1205
1202
  <span slot="bib.fullscreen.headline">Bib Headline</span>
1206
- <span slot="label">Label</span>
1207
- <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
1203
+ <span slot="label">bottom-end bib with 20px offset and noFlip</span>
1208
1204
  <auro-menu>
1209
1205
  <auro-menuoption value="stops">Stops</auro-menuoption>
1210
1206
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -1216,8 +1212,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
1216
1212
  </auro-select>
1217
1213
  <auro-select offset="20" placement="bottom-end">
1218
1214
  <span slot="bib.fullscreen.headline">Bib Headline</span>
1219
- <span slot="label">Label</span>
1220
- <span slot="helpText">bottom-end bib with 20px offset and flip</span>
1215
+ <span slot="label">bottom-end bib with 20px offset and flip</span>
1221
1216
  <auro-menu>
1222
1217
  <auro-menuoption value="stops">Stops</auro-menuoption>
1223
1218
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -1229,8 +1224,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
1229
1224
  </auro-select>
1230
1225
  <auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
1231
1226
  <span slot="bib.fullscreen.headline">Bib Headline</span>
1232
- <span slot="label">Label</span>
1233
- <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
1227
+ <span slot="label">right bib with 20px offset, noFlip and autoPlacement</span>
1234
1228
  <auro-menu>
1235
1229
  <auro-menuoption value="stops">Stops</auro-menuoption>
1236
1230
  <auro-menuoption value="price">Price</auro-menuoption>