@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.2 → 0.0.0-pr773.0

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 (50) 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.min.js +9 -9
  4. package/components/checkbox/demo/index.min.js +9 -9
  5. package/components/checkbox/dist/index.js +9 -9
  6. package/components/checkbox/dist/registered.js +9 -9
  7. package/components/combobox/demo/api.min.js +77 -94
  8. package/components/combobox/demo/index.min.js +77 -94
  9. package/components/combobox/dist/index.js +41 -83
  10. package/components/combobox/dist/registered.js +41 -83
  11. package/components/counter/demo/api.min.js +34 -76
  12. package/components/counter/demo/index.min.js +34 -76
  13. package/components/counter/dist/index.js +34 -76
  14. package/components/counter/dist/registered.js +34 -76
  15. package/components/datepicker/demo/api.min.js +62 -89
  16. package/components/datepicker/demo/index.min.js +62 -89
  17. package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
  18. package/components/datepicker/dist/index.js +62 -89
  19. package/components/datepicker/dist/registered.js +62 -89
  20. package/components/dropdown/demo/api.md +60 -266
  21. package/components/dropdown/demo/api.min.js +25 -67
  22. package/components/dropdown/demo/index.md +45 -363
  23. package/components/dropdown/demo/index.min.js +25 -67
  24. package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
  25. package/components/dropdown/dist/index.js +25 -67
  26. package/components/dropdown/dist/registered.js +25 -67
  27. package/components/helptext/dist/index.js +1 -1
  28. package/components/helptext/dist/registered.js +1 -1
  29. package/components/input/demo/api.min.js +9 -9
  30. package/components/input/demo/index.min.js +9 -9
  31. package/components/input/dist/index.js +9 -9
  32. package/components/input/dist/registered.js +9 -9
  33. package/components/menu/demo/api.md +1 -1
  34. package/components/menu/demo/api.min.js +36 -11
  35. package/components/menu/demo/index.min.js +36 -11
  36. package/components/menu/dist/auro-menu.d.ts +13 -2
  37. package/components/menu/dist/index.js +36 -11
  38. package/components/menu/dist/registered.js +36 -11
  39. package/components/radio/demo/api.min.js +10 -10
  40. package/components/radio/demo/index.min.js +10 -10
  41. package/components/radio/dist/auro-radio.d.ts +1 -1
  42. package/components/radio/dist/index.js +10 -10
  43. package/components/radio/dist/registered.js +10 -10
  44. package/components/select/demo/api.md +2 -2
  45. package/components/select/demo/api.min.js +98 -168
  46. package/components/select/demo/index.min.js +98 -168
  47. package/components/select/dist/auro-select.d.ts +13 -3
  48. package/components/select/dist/index.js +62 -157
  49. package/components/select/dist/registered.js +62 -157
  50. package/package.json +1 -1
@@ -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`.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`: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} large ?onDark="${this.onDark}" part="helpText">
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} large ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1838
+ <${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
1839
1839
  ${this.errorMessage}
1840
1840
  </${this.helpTextTag}>`
1841
1841
  }
@@ -42,7 +42,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
42
42
  | [shape](#shape) | | `string` | "snowflake" | |
43
43
  | [size](#size) | | `string` | "xl" | |
44
44
  | [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
45
- | [value](#value) | `value` | `String\|Array<String>` | | Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true. |
45
+ | [value](#value) | `value` | `string` | | Value selected for the component. |
46
46
 
47
47
  ## Methods
48
48
 
@@ -57,7 +57,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
57
57
  |-----------------------------|--------------------------------------------------|--------------------------------------------------|
58
58
  | `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
59
59
  | `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
60
- | [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. |
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. |
61
61
 
62
62
  ## Slots
63
63