@aurodesignsystem/auro-formkit 3.4.1 → 3.5.0-rc-627.1.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 (74) hide show
  1. package/CHANGELOG.md +3 -1756
  2. package/components/checkbox/README.md +1 -1
  3. package/components/checkbox/demo/api.md +1 -1
  4. package/components/checkbox/demo/api.min.js +17 -7
  5. package/components/checkbox/demo/index.min.js +17 -7
  6. package/components/checkbox/demo/readme.md +1 -1
  7. package/components/checkbox/dist/auro-checkbox.d.ts +13 -6
  8. package/components/checkbox/dist/index.js +17 -7
  9. package/components/checkbox/dist/registered.js +17 -7
  10. package/components/combobox/README.md +1 -1
  11. package/components/combobox/demo/api.md +25 -25
  12. package/components/combobox/demo/api.min.js +20 -11
  13. package/components/combobox/demo/index.min.js +20 -11
  14. package/components/combobox/demo/readme.md +1 -1
  15. package/components/combobox/dist/auro-combobox.d.ts +2 -4
  16. package/components/combobox/dist/index.js +19 -10
  17. package/components/combobox/dist/registered.js +19 -10
  18. package/components/counter/README.md +1 -1
  19. package/components/counter/demo/readme.md +1 -1
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.min.js +17 -10
  22. package/components/datepicker/demo/index.min.js +17 -10
  23. package/components/datepicker/demo/readme.md +1 -1
  24. package/components/datepicker/dist/index.js +17 -10
  25. package/components/datepicker/dist/registered.js +17 -10
  26. package/components/dropdown/README.md +1 -1
  27. package/components/dropdown/demo/readme.md +1 -1
  28. package/components/form/README.md +1 -1
  29. package/components/form/demo/api.md +1 -5
  30. package/components/form/demo/api.min.js +8 -2
  31. package/components/form/demo/index.html +1 -0
  32. package/components/form/demo/index.md +321 -27
  33. package/components/form/demo/index.min.js +8 -2
  34. package/components/form/demo/readme.md +1 -1
  35. package/components/form/demo/registerDemoDeps.js +1 -0
  36. package/components/form/dist/auro-form.d.ts +12 -6
  37. package/components/form/dist/index.js +8 -2
  38. package/components/form/dist/registered.js +8 -2
  39. package/components/input/README.md +1 -1
  40. package/components/input/demo/api.md +1 -1
  41. package/components/input/demo/api.min.js +17 -10
  42. package/components/input/demo/index.min.js +17 -10
  43. package/components/input/demo/readme.md +1 -1
  44. package/components/input/dist/base-input.d.ts +13 -6
  45. package/components/input/dist/index.js +17 -10
  46. package/components/input/dist/registered.js +17 -10
  47. package/components/menu/README.md +1 -1
  48. package/components/menu/demo/api.md +11 -17
  49. package/components/menu/demo/api.min.js +1 -1
  50. package/components/menu/demo/index.min.js +1 -1
  51. package/components/menu/demo/readme.md +1 -1
  52. package/components/menu/dist/auro-menu.d.ts +1 -1
  53. package/components/menu/dist/index.js +1 -1
  54. package/components/menu/dist/registered.js +1 -1
  55. package/components/radio/README.md +1 -1
  56. package/components/radio/demo/api.md +1 -1
  57. package/components/radio/demo/api.min.js +18 -3
  58. package/components/radio/demo/index.min.js +18 -3
  59. package/components/radio/demo/readme.md +1 -1
  60. package/components/radio/dist/auro-radio.d.ts +14 -3
  61. package/components/radio/dist/index.js +18 -3
  62. package/components/radio/dist/registered.js +18 -3
  63. package/components/select/README.md +1 -1
  64. package/components/select/demo/api.html +15 -0
  65. package/components/select/demo/api.md +178 -0
  66. package/components/select/demo/api.min.js +70 -2
  67. package/components/select/demo/index.html +15 -0
  68. package/components/select/demo/index.md +177 -0
  69. package/components/select/demo/index.min.js +70 -2
  70. package/components/select/demo/readme.md +1 -1
  71. package/components/select/dist/auro-select.d.ts +27 -0
  72. package/components/select/dist/index.js +70 -1
  73. package/components/select/dist/registered.js +70 -1
  74. package/package.json +1 -1
@@ -4903,6 +4903,9 @@ class AuroFormValidation {
4903
4903
  * @attr {Boolean} bordered - Applies bordered UI variant.
4904
4904
  * @attr {Boolean} borderless - Applies borderless UI variant.
4905
4905
  *
4906
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
4907
+ * @attr id
4908
+ *
4906
4909
  * @slot helptext - Sets the help text displayed below the input.
4907
4910
  * @slot label - Sets the label text for the input.
4908
4911
  *
@@ -5093,13 +5096,6 @@ class BaseInput extends i {
5093
5096
  reflect: true
5094
5097
  },
5095
5098
 
5096
- /**
5097
- * Sets the unique ID of the element.
5098
- */
5099
- id: {
5100
- type: String
5101
- },
5102
-
5103
5099
  /** Exposes inputmode attribute for input. */
5104
5100
  inputmode: {
5105
5101
  type: String,
@@ -5320,6 +5316,16 @@ class BaseInput extends i {
5320
5316
  type: Boolean,
5321
5317
  reflect: true,
5322
5318
  attribute: false
5319
+ },
5320
+
5321
+ /**
5322
+ * @private
5323
+ * id for input node
5324
+ */
5325
+ inputId: {
5326
+ type: String,
5327
+ reflect: false,
5328
+ attribute: false
5323
5329
  }
5324
5330
  };
5325
5331
  }
@@ -5351,6 +5357,7 @@ class BaseInput extends i {
5351
5357
  if (this.tagName.toLowerCase() !== 'auro-input') {
5352
5358
  this.setAttribute('auro-input', true);
5353
5359
  }
5360
+ this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
5354
5361
 
5355
5362
  this.inputElement = this.renderRoot.querySelector('input');
5356
5363
  this.labelElement = this.shadowRoot.querySelector('label');
@@ -7016,7 +7023,7 @@ class AuroInput extends BaseInput {
7016
7023
  : undefined
7017
7024
  }
7018
7025
  </div>
7019
- <label for=${this.id} class="${e$2(labelClasses)}" part="label">
7026
+ <label for=${this.inputId} class="${e$2(labelClasses)}" part="label">
7020
7027
  <slot name="label">
7021
7028
  ${this.label}
7022
7029
  </slot>
@@ -7026,7 +7033,7 @@ class AuroInput extends BaseInput {
7026
7033
  @input="${this.handleInput}"
7027
7034
  @focusin="${this.handleFocusin}"
7028
7035
  @blur="${this.handleBlur}"
7029
- id="${this.id}"
7036
+ id="${this.inputId}"
7030
7037
  name="${o$3(this.name)}"
7031
7038
  type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
7032
7039
  pattern="${o$3(this.definePattern())}"
@@ -7094,7 +7101,7 @@ class AuroInput extends BaseInput {
7094
7101
  variant="flat"
7095
7102
  ?onDark="${this.onDark}"
7096
7103
  class="notificationBtn clearBtn"
7097
- aria-label="${i18n(this.lang, 'clearInput')}"
7104
+ arialabel="${i18n(this.lang, 'clearInput')}"
7098
7105
  @click="${this.handleClickClear}">
7099
7106
  <${this.iconTag}
7100
7107
  customColor
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
99
99
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
100
100
 
101
101
  ```html
102
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-input/+esm"></script>
102
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-input/+esm"></script>
103
103
  ```
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
@@ -4,6 +4,9 @@
4
4
  * @attr {Boolean} bordered - Applies bordered UI variant.
5
5
  * @attr {Boolean} borderless - Applies borderless UI variant.
6
6
  *
7
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
8
+ * @attr id
9
+ *
7
10
  * @slot helptext - Sets the help text displayed below the input.
8
11
  * @slot label - Sets the label text for the input.
9
12
  *
@@ -101,12 +104,6 @@ export default class BaseInput extends LitElement {
101
104
  type: BooleanConstructor;
102
105
  reflect: boolean;
103
106
  };
104
- /**
105
- * Sets the unique ID of the element.
106
- */
107
- id: {
108
- type: StringConstructor;
109
- };
110
107
  /** Exposes inputmode attribute for input. */
111
108
  inputmode: {
112
109
  type: StringConstructor;
@@ -295,6 +292,15 @@ export default class BaseInput extends LitElement {
295
292
  * @private
296
293
  */
297
294
  touched: boolean;
295
+ /**
296
+ * @private
297
+ * id for input node
298
+ */
299
+ inputId: {
300
+ type: StringConstructor;
301
+ reflect: boolean;
302
+ attribute: boolean;
303
+ };
298
304
  };
299
305
  static get styles(): import("lit").CSSResult[];
300
306
  icon: boolean;
@@ -346,6 +352,7 @@ export default class BaseInput extends LitElement {
346
352
  };
347
353
  uniqueId: string;
348
354
  firstUpdated(): void;
355
+ inputId: string;
349
356
  inputElement: HTMLInputElement;
350
357
  labelElement: HTMLLabelElement;
351
358
  format: any;
@@ -4827,6 +4827,9 @@ class AuroFormValidation {
4827
4827
  * @attr {Boolean} bordered - Applies bordered UI variant.
4828
4828
  * @attr {Boolean} borderless - Applies borderless UI variant.
4829
4829
  *
4830
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
4831
+ * @attr id
4832
+ *
4830
4833
  * @slot helptext - Sets the help text displayed below the input.
4831
4834
  * @slot label - Sets the label text for the input.
4832
4835
  *
@@ -5017,13 +5020,6 @@ class BaseInput extends LitElement {
5017
5020
  reflect: true
5018
5021
  },
5019
5022
 
5020
- /**
5021
- * Sets the unique ID of the element.
5022
- */
5023
- id: {
5024
- type: String
5025
- },
5026
-
5027
5023
  /** Exposes inputmode attribute for input. */
5028
5024
  inputmode: {
5029
5025
  type: String,
@@ -5244,6 +5240,16 @@ class BaseInput extends LitElement {
5244
5240
  type: Boolean,
5245
5241
  reflect: true,
5246
5242
  attribute: false
5243
+ },
5244
+
5245
+ /**
5246
+ * @private
5247
+ * id for input node
5248
+ */
5249
+ inputId: {
5250
+ type: String,
5251
+ reflect: false,
5252
+ attribute: false
5247
5253
  }
5248
5254
  };
5249
5255
  }
@@ -5275,6 +5281,7 @@ class BaseInput extends LitElement {
5275
5281
  if (this.tagName.toLowerCase() !== 'auro-input') {
5276
5282
  this.setAttribute('auro-input', true);
5277
5283
  }
5284
+ this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
5278
5285
 
5279
5286
  this.inputElement = this.renderRoot.querySelector('input');
5280
5287
  this.labelElement = this.shadowRoot.querySelector('label');
@@ -6940,7 +6947,7 @@ class AuroInput extends BaseInput {
6940
6947
  : undefined
6941
6948
  }
6942
6949
  </div>
6943
- <label for=${this.id} class="${classMap(labelClasses)}" part="label">
6950
+ <label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
6944
6951
  <slot name="label">
6945
6952
  ${this.label}
6946
6953
  </slot>
@@ -6950,7 +6957,7 @@ class AuroInput extends BaseInput {
6950
6957
  @input="${this.handleInput}"
6951
6958
  @focusin="${this.handleFocusin}"
6952
6959
  @blur="${this.handleBlur}"
6953
- id="${this.id}"
6960
+ id="${this.inputId}"
6954
6961
  name="${ifDefined(this.name)}"
6955
6962
  type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
6956
6963
  pattern="${ifDefined(this.definePattern())}"
@@ -7018,7 +7025,7 @@ class AuroInput extends BaseInput {
7018
7025
  variant="flat"
7019
7026
  ?onDark="${this.onDark}"
7020
7027
  class="notificationBtn clearBtn"
7021
- aria-label="${i18n(this.lang, 'clearInput')}"
7028
+ arialabel="${i18n(this.lang, 'clearInput')}"
7022
7029
  @click="${this.handleClickClear}">
7023
7030
  <${this.iconTag}
7024
7031
  customColor
@@ -4827,6 +4827,9 @@ class AuroFormValidation {
4827
4827
  * @attr {Boolean} bordered - Applies bordered UI variant.
4828
4828
  * @attr {Boolean} borderless - Applies borderless UI variant.
4829
4829
  *
4830
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
4831
+ * @attr id
4832
+ *
4830
4833
  * @slot helptext - Sets the help text displayed below the input.
4831
4834
  * @slot label - Sets the label text for the input.
4832
4835
  *
@@ -5017,13 +5020,6 @@ class BaseInput extends LitElement {
5017
5020
  reflect: true
5018
5021
  },
5019
5022
 
5020
- /**
5021
- * Sets the unique ID of the element.
5022
- */
5023
- id: {
5024
- type: String
5025
- },
5026
-
5027
5023
  /** Exposes inputmode attribute for input. */
5028
5024
  inputmode: {
5029
5025
  type: String,
@@ -5244,6 +5240,16 @@ class BaseInput extends LitElement {
5244
5240
  type: Boolean,
5245
5241
  reflect: true,
5246
5242
  attribute: false
5243
+ },
5244
+
5245
+ /**
5246
+ * @private
5247
+ * id for input node
5248
+ */
5249
+ inputId: {
5250
+ type: String,
5251
+ reflect: false,
5252
+ attribute: false
5247
5253
  }
5248
5254
  };
5249
5255
  }
@@ -5275,6 +5281,7 @@ class BaseInput extends LitElement {
5275
5281
  if (this.tagName.toLowerCase() !== 'auro-input') {
5276
5282
  this.setAttribute('auro-input', true);
5277
5283
  }
5284
+ this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
5278
5285
 
5279
5286
  this.inputElement = this.renderRoot.querySelector('input');
5280
5287
  this.labelElement = this.shadowRoot.querySelector('label');
@@ -6940,7 +6947,7 @@ class AuroInput extends BaseInput {
6940
6947
  : undefined
6941
6948
  }
6942
6949
  </div>
6943
- <label for=${this.id} class="${classMap(labelClasses)}" part="label">
6950
+ <label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
6944
6951
  <slot name="label">
6945
6952
  ${this.label}
6946
6953
  </slot>
@@ -6950,7 +6957,7 @@ class AuroInput extends BaseInput {
6950
6957
  @input="${this.handleInput}"
6951
6958
  @focusin="${this.handleFocusin}"
6952
6959
  @blur="${this.handleBlur}"
6953
- id="${this.id}"
6960
+ id="${this.inputId}"
6954
6961
  name="${ifDefined(this.name)}"
6955
6962
  type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
6956
6963
  pattern="${ifDefined(this.definePattern())}"
@@ -7018,7 +7025,7 @@ class AuroInput extends BaseInput {
7018
7025
  variant="flat"
7019
7026
  ?onDark="${this.onDark}"
7020
7027
  class="notificationBtn clearBtn"
7021
- aria-label="${i18n(this.lang, 'clearInput')}"
7028
+ arialabel="${i18n(this.lang, 'clearInput')}"
7022
7029
  @click="${this.handleClickClear}">
7023
7030
  <${this.iconTag}
7024
7031
  customColor
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-menu/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-menu/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116
 
@@ -5,25 +5,19 @@
5
5
 
6
6
  The auro-menu element provides users a way to select from a list of options.
7
7
 
8
- ## Attributes
9
-
10
- | Attribute | Type | Description |
11
- |------------------|---------------------------------|--------------------------------------------------|
12
- | [optionselected](#optionselected) | `Array<HTMLElement>\|undefined` | An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected. |
13
-
14
8
  ## Properties
15
9
 
16
- | Property | Attribute | Type | Default | Description |
17
- |-------------------------|------------------|----------------------------|-------------|--------------------------------------------------|
18
- | [disabled](#disabled) | `disabled` | `boolean` | | When true, the entire menu and all options are disabled; |
19
- | [hasLoadingPlaceholder](#hasLoadingPlaceholder) | | `boolean` | | Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state. |
20
- | [loading](#loading) | `loading` | `boolean` | false | When true, displays a loading state using the loadingIcon and loadingText slots if provided. |
21
- | [matchWord](#matchWord) | `matchword` | `string` | "undefined" | Specifies a string used to highlight matched string parts in options. |
22
- | [multiSelect](#multiSelect) | `multiselect` | `boolean` | false | When true, the selected option can be multiple options. |
23
- | [noCheckmark](#noCheckmark) | `nocheckmark` | `boolean` | false | When true, selected option will not show the checkmark. |
24
- | [optionActive](#optionActive) | `optionactive` | `object` | "undefined" | Specifies the current active menuOption. |
25
- | [optionSelected](#optionSelected) | `optionSelected` | | "undefined" | |
26
- | [value](#value) | `value` | `Array<string>\|undefined` | "undefined" | Value selected for the menu. `undefined` when no selection has been made, otherwise an array of strings. In single-select mode, the array will contain only one value. |
10
+ | Property | Attribute | Type | Default | Description |
11
+ |-------------------------|------------------|---------------------------------|-------------|--------------------------------------------------|
12
+ | [disabled](#disabled) | `disabled` | `boolean` | | When true, the entire menu and all options are disabled; |
13
+ | [hasLoadingPlaceholder](#hasLoadingPlaceholder) | | `boolean` | | Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state. |
14
+ | [loading](#loading) | `loading` | `boolean` | false | When true, displays a loading state using the loadingIcon and loadingText slots if provided. |
15
+ | [matchWord](#matchWord) | `matchword` | `string` | "undefined" | Specifies a string used to highlight matched string parts in options. |
16
+ | [multiSelect](#multiSelect) | `multiselect` | `boolean` | false | When true, the selected option can be multiple options. |
17
+ | [noCheckmark](#noCheckmark) | `nocheckmark` | `boolean` | false | When true, selected option will not show the checkmark. |
18
+ | [optionActive](#optionActive) | `optionactive` | `object` | "undefined" | Specifies the current active menuOption. |
19
+ | [optionSelected](#optionSelected) | `optionSelected` | `Array<HTMLElement>\|undefined` | "undefined" | An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected. |
20
+ | [value](#value) | `value` | `Array<string>\|undefined` | "undefined" | Value selected for the menu. `undefined` when no selection has been made, otherwise an array of strings. In single-select mode, the array will contain only one value. |
27
21
 
28
22
  ## Methods
29
23
 
@@ -280,7 +280,7 @@ function dispatchMenuEvent(element, eventName, detail = null) {
280
280
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
281
281
  /**
282
282
  * The auro-menu element provides users a way to select from a list of options.
283
- * @attr {Array<HTMLElement>|undefined} optionselected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
283
+ * @attr {Array<HTMLElement>|undefined} optionSelected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
284
284
  * @attr {object} optionactive - Specifies the current active menuOption.
285
285
  * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
286
286
  * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
@@ -240,7 +240,7 @@ function dispatchMenuEvent(element, eventName, detail = null) {
240
240
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
241
241
  /**
242
242
  * The auro-menu element provides users a way to select from a list of options.
243
- * @attr {Array<HTMLElement>|undefined} optionselected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
243
+ * @attr {Array<HTMLElement>|undefined} optionSelected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
244
244
  * @attr {object} optionactive - Specifies the current active menuOption.
245
245
  * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
246
246
  * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-menu/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-menu/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The auro-menu element provides users a way to select from a list of options.
3
- * @attr {Array<HTMLElement>|undefined} optionselected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
3
+ * @attr {Array<HTMLElement>|undefined} optionSelected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
4
4
  * @attr {object} optionactive - Specifies the current active menuOption.
5
5
  * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
6
6
  * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
@@ -219,7 +219,7 @@ function dispatchMenuEvent(element, eventName, detail = null) {
219
219
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
220
220
  /**
221
221
  * The auro-menu element provides users a way to select from a list of options.
222
- * @attr {Array<HTMLElement>|undefined} optionselected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
222
+ * @attr {Array<HTMLElement>|undefined} optionSelected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
223
223
  * @attr {object} optionactive - Specifies the current active menuOption.
224
224
  * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
225
225
  * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
@@ -219,7 +219,7 @@ function dispatchMenuEvent(element, eventName, detail = null) {
219
219
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
220
220
  /**
221
221
  * The auro-menu element provides users a way to select from a list of options.
222
- * @attr {Array<HTMLElement>|undefined} optionselected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
222
+ * @attr {Array<HTMLElement>|undefined} optionSelected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
223
223
  * @attr {object} optionactive - Specifies the current active menuOption.
224
224
  * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
225
225
  * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
100
100
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
101
101
 
102
102
  ```html
103
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-radio/+esm"></script>
103
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-radio/+esm"></script>
104
104
  ```
105
105
  <!-- AURO-GENERATED-CONTENT:END -->
106
106
 
@@ -57,7 +57,7 @@
57
57
  | [checked](#checked) | `checked` | `Boolean` | false | If set to true, the radio button will be filled. |
58
58
  | [disabled](#disabled) | `disabled` | `Boolean` | false | If set to true, the radio button will be non-clickable. |
59
59
  | [error](#error) | `error` | `Boolean` | false | If set to true, sets an error state on the radio button. |
60
- | [id](#id) | `id` | `string` | | |
60
+ | [id](#id) | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
61
61
  | [label](#label) | `label` | `string` | | |
62
62
  | [name](#name) | `name` | `string` | | |
63
63
  | [onDark](#onDark) | `onDark` | `Boolean` | false | If set to true, the component will render with a dark theme. |
@@ -157,6 +157,10 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
157
157
  * @attr {Boolean} error - If set to true, sets an error state on the radio button.
158
158
  * @attr {Boolean} onDark - If set to true, the component will render with a dark theme.
159
159
  * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
160
+ *
161
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
162
+ * @attr id
163
+ *
160
164
  * @event focusSelected - Notifies that the component has gained focus.
161
165
  * @event auroRadio-blur - Notifies that the component has lost focus.
162
166
  * @event resetRadio - Notifies that the component has reset the checked/selected state.
@@ -212,7 +216,6 @@ class AuroRadio extends i$2 {
212
216
  type: Boolean,
213
217
  reflect: true
214
218
  },
215
- id: { type: String },
216
219
  label: { type: String },
217
220
  name: { type: String },
218
221
  value: { type: String },
@@ -229,6 +232,16 @@ class AuroRadio extends i$2 {
229
232
  type: Boolean,
230
233
  reflect: true,
231
234
  attribute: false
235
+ },
236
+
237
+ /**
238
+ * @private
239
+ * id for input node
240
+ */
241
+ inputId: {
242
+ type: String,
243
+ reflect: false,
244
+ attribute: false
232
245
  }
233
246
  };
234
247
  }
@@ -364,6 +377,8 @@ class AuroRadio extends i$2 {
364
377
 
365
378
  this.input = this.shadowRoot.querySelector('input');
366
379
 
380
+ this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
381
+
367
382
  this.addEventListener('click', () => {
368
383
  this.input.click();
369
384
  });
@@ -390,14 +405,14 @@ class AuroRadio extends i$2 {
390
405
  aria-invalid="${this.invalid(this.error)}"
391
406
  aria-required="${this.isRequired(this.required)}"
392
407
  .checked="${this.checked}"
393
- id="${o$1(this.id)}"
408
+ id="${this.inputId}"
394
409
  name="${o$1(this.name)}"
395
410
  type="radio"
396
411
  .value="${this.value}"
397
412
  tabIndex="-1"
398
413
  />
399
414
 
400
- <label for="${o$1(this.id)}" class="${e(labelClasses)}">
415
+ <label for="${this.inputId}" class="${e(labelClasses)}">
401
416
  <slot>${this.label}</slot>
402
417
  </label>
403
418
 
@@ -132,6 +132,10 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
132
132
  * @attr {Boolean} error - If set to true, sets an error state on the radio button.
133
133
  * @attr {Boolean} onDark - If set to true, the component will render with a dark theme.
134
134
  * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
135
+ *
136
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
137
+ * @attr id
138
+ *
135
139
  * @event focusSelected - Notifies that the component has gained focus.
136
140
  * @event auroRadio-blur - Notifies that the component has lost focus.
137
141
  * @event resetRadio - Notifies that the component has reset the checked/selected state.
@@ -187,7 +191,6 @@ class AuroRadio extends i$2 {
187
191
  type: Boolean,
188
192
  reflect: true
189
193
  },
190
- id: { type: String },
191
194
  label: { type: String },
192
195
  name: { type: String },
193
196
  value: { type: String },
@@ -204,6 +207,16 @@ class AuroRadio extends i$2 {
204
207
  type: Boolean,
205
208
  reflect: true,
206
209
  attribute: false
210
+ },
211
+
212
+ /**
213
+ * @private
214
+ * id for input node
215
+ */
216
+ inputId: {
217
+ type: String,
218
+ reflect: false,
219
+ attribute: false
207
220
  }
208
221
  };
209
222
  }
@@ -339,6 +352,8 @@ class AuroRadio extends i$2 {
339
352
 
340
353
  this.input = this.shadowRoot.querySelector('input');
341
354
 
355
+ this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
356
+
342
357
  this.addEventListener('click', () => {
343
358
  this.input.click();
344
359
  });
@@ -365,14 +380,14 @@ class AuroRadio extends i$2 {
365
380
  aria-invalid="${this.invalid(this.error)}"
366
381
  aria-required="${this.isRequired(this.required)}"
367
382
  .checked="${this.checked}"
368
- id="${o$1(this.id)}"
383
+ id="${this.inputId}"
369
384
  name="${o$1(this.name)}"
370
385
  type="radio"
371
386
  .value="${this.value}"
372
387
  tabIndex="-1"
373
388
  />
374
389
 
375
- <label for="${o$1(this.id)}" class="${e(labelClasses)}">
390
+ <label for="${this.inputId}" class="${e(labelClasses)}">
376
391
  <slot>${this.label}</slot>
377
392
  </label>
378
393
 
@@ -100,7 +100,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
100
100
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
101
101
 
102
102
  ```html
103
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.4.0/auro-radio/+esm"></script>
103
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-radio/+esm"></script>
104
104
  ```
105
105
  <!-- AURO-GENERATED-CONTENT:END -->
106
106
 
@@ -5,6 +5,10 @@
5
5
  * @attr {Boolean} error - If set to true, sets an error state on the radio button.
6
6
  * @attr {Boolean} onDark - If set to true, the component will render with a dark theme.
7
7
  * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
8
+ *
9
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
10
+ * @attr id
11
+ *
8
12
  * @event focusSelected - Notifies that the component has gained focus.
9
13
  * @event auroRadio-blur - Notifies that the component has lost focus.
10
14
  * @event resetRadio - Notifies that the component has reset the checked/selected state.
@@ -33,9 +37,6 @@ export class AuroRadio extends LitElement {
33
37
  type: BooleanConstructor;
34
38
  reflect: boolean;
35
39
  };
36
- id: {
37
- type: StringConstructor;
38
- };
39
40
  label: {
40
41
  type: StringConstructor;
41
42
  };
@@ -58,6 +59,15 @@ export class AuroRadio extends LitElement {
58
59
  reflect: boolean;
59
60
  attribute: boolean;
60
61
  };
62
+ /**
63
+ * @private
64
+ * id for input node
65
+ */
66
+ inputId: {
67
+ type: StringConstructor;
68
+ reflect: boolean;
69
+ attribute: boolean;
70
+ };
61
71
  };
62
72
  /**
63
73
  * This will register this element with the browser.
@@ -128,6 +138,7 @@ export class AuroRadio extends LitElement {
128
138
  private isRequired;
129
139
  firstUpdated(): void;
130
140
  input: HTMLInputElement;
141
+ inputId: string;
131
142
  render(): import("lit-html").TemplateResult<1>;
132
143
  }
133
144
  import { LitElement } from "lit";
@@ -92,6 +92,10 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
92
92
  * @attr {Boolean} error - If set to true, sets an error state on the radio button.
93
93
  * @attr {Boolean} onDark - If set to true, the component will render with a dark theme.
94
94
  * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
95
+ *
96
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
97
+ * @attr id
98
+ *
95
99
  * @event focusSelected - Notifies that the component has gained focus.
96
100
  * @event auroRadio-blur - Notifies that the component has lost focus.
97
101
  * @event resetRadio - Notifies that the component has reset the checked/selected state.
@@ -147,7 +151,6 @@ class AuroRadio extends LitElement {
147
151
  type: Boolean,
148
152
  reflect: true
149
153
  },
150
- id: { type: String },
151
154
  label: { type: String },
152
155
  name: { type: String },
153
156
  value: { type: String },
@@ -164,6 +167,16 @@ class AuroRadio extends LitElement {
164
167
  type: Boolean,
165
168
  reflect: true,
166
169
  attribute: false
170
+ },
171
+
172
+ /**
173
+ * @private
174
+ * id for input node
175
+ */
176
+ inputId: {
177
+ type: String,
178
+ reflect: false,
179
+ attribute: false
167
180
  }
168
181
  };
169
182
  }
@@ -299,6 +312,8 @@ class AuroRadio extends LitElement {
299
312
 
300
313
  this.input = this.shadowRoot.querySelector('input');
301
314
 
315
+ this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
316
+
302
317
  this.addEventListener('click', () => {
303
318
  this.input.click();
304
319
  });
@@ -325,14 +340,14 @@ class AuroRadio extends LitElement {
325
340
  aria-invalid="${this.invalid(this.error)}"
326
341
  aria-required="${this.isRequired(this.required)}"
327
342
  .checked="${this.checked}"
328
- id="${ifDefined(this.id)}"
343
+ id="${this.inputId}"
329
344
  name="${ifDefined(this.name)}"
330
345
  type="radio"
331
346
  .value="${this.value}"
332
347
  tabIndex="-1"
333
348
  />
334
349
 
335
- <label for="${ifDefined(this.id)}" class="${classMap(labelClasses)}">
350
+ <label for="${this.inputId}" class="${classMap(labelClasses)}">
336
351
  <slot>${this.label}</slot>
337
352
  </label>
338
353