@aurodesignsystem-dev/auro-formkit 0.0.0-pr1594.2 → 0.0.0-pr1595.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 (83) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +11 -0
  2. package/components/bibtemplate/dist/index.js +13 -0
  3. package/components/bibtemplate/dist/registered.js +13 -0
  4. package/components/checkbox/demo/api.md +17 -11
  5. package/components/checkbox/demo/customize.min.js +23 -6
  6. package/components/checkbox/demo/getting-started.min.js +23 -6
  7. package/components/checkbox/demo/index.min.js +23 -6
  8. package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
  9. package/components/checkbox/dist/auro-checkbox.d.ts +4 -0
  10. package/components/checkbox/dist/index.js +23 -6
  11. package/components/checkbox/dist/registered.js +23 -6
  12. package/components/combobox/demo/api.md +26 -18
  13. package/components/combobox/demo/customize.min.js +426 -126
  14. package/components/combobox/demo/getting-started.min.js +426 -126
  15. package/components/combobox/demo/index.min.js +426 -126
  16. package/components/combobox/dist/auro-combobox.d.ts +38 -21
  17. package/components/combobox/dist/index.js +338 -111
  18. package/components/combobox/dist/registered.js +338 -111
  19. package/components/counter/demo/api.md +34 -16
  20. package/components/counter/demo/customize.min.js +204 -64
  21. package/components/counter/demo/index.min.js +204 -64
  22. package/components/counter/dist/auro-counter-button.d.ts +4 -0
  23. package/components/counter/dist/auro-counter-group.d.ts +27 -4
  24. package/components/counter/dist/auro-counter.d.ts +7 -0
  25. package/components/counter/dist/index.js +204 -64
  26. package/components/counter/dist/registered.js +204 -64
  27. package/components/datepicker/demo/api.md +55 -49
  28. package/components/datepicker/demo/customize.min.js +515 -134
  29. package/components/datepicker/demo/index.min.js +515 -134
  30. package/components/datepicker/dist/auro-calendar-cell.d.ts +58 -4
  31. package/components/datepicker/dist/auro-calendar-month.d.ts +10 -4
  32. package/components/datepicker/dist/auro-calendar.d.ts +25 -6
  33. package/components/datepicker/dist/auro-datepicker.d.ts +70 -22
  34. package/components/datepicker/dist/index.js +515 -134
  35. package/components/datepicker/dist/registered.js +515 -134
  36. package/components/dropdown/demo/api.md +25 -22
  37. package/components/dropdown/demo/customize.min.js +107 -37
  38. package/components/dropdown/demo/getting-started.min.js +245 -82
  39. package/components/dropdown/demo/index.min.js +107 -37
  40. package/components/dropdown/dist/auro-dropdown.d.ts +34 -8
  41. package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
  42. package/components/dropdown/dist/index.js +107 -37
  43. package/components/dropdown/dist/registered.js +107 -37
  44. package/components/form/demo/customize.min.js +1518 -466
  45. package/components/form/demo/getting-started.min.js +1518 -466
  46. package/components/form/demo/index.min.js +1518 -466
  47. package/components/form/demo/registerDemoDeps.min.js +1518 -466
  48. package/components/helptext/dist/auro-helptext.d.ts +8 -7
  49. package/components/helptext/dist/index.js +7 -2
  50. package/components/helptext/dist/registered.js +7 -2
  51. package/components/input/demo/api.md +30 -30
  52. package/components/input/demo/customize.min.js +138 -45
  53. package/components/input/demo/getting-started.min.js +138 -45
  54. package/components/input/demo/index.min.js +138 -45
  55. package/components/input/dist/base-input.d.ts +79 -25
  56. package/components/input/dist/index.js +138 -45
  57. package/components/input/dist/registered.js +138 -45
  58. package/components/layoutElement/dist/auroElement.d.ts +10 -17
  59. package/components/layoutElement/dist/index.js +20 -20
  60. package/components/layoutElement/dist/registered.js +20 -20
  61. package/components/menu/demo/api.md +31 -27
  62. package/components/menu/demo/index.min.js +108 -35
  63. package/components/menu/dist/auro-menu.d.ts +26 -21
  64. package/components/menu/dist/auro-menuoption.d.ts +27 -1
  65. package/components/menu/dist/index.js +108 -35
  66. package/components/menu/dist/registered.js +108 -35
  67. package/components/radio/demo/api.md +8 -7
  68. package/components/radio/demo/customize.min.js +21 -7
  69. package/components/radio/demo/getting-started.min.js +21 -7
  70. package/components/radio/demo/index.min.js +21 -7
  71. package/components/radio/dist/auro-radio-group.d.ts +8 -3
  72. package/components/radio/dist/auro-radio.d.ts +1 -0
  73. package/components/radio/dist/index.js +21 -7
  74. package/components/radio/dist/registered.js +21 -7
  75. package/components/select/demo/api.md +18 -15
  76. package/components/select/demo/customize.min.js +259 -79
  77. package/components/select/demo/getting-started.min.js +259 -79
  78. package/components/select/demo/index.min.js +259 -79
  79. package/components/select/dist/auro-select.d.ts +17 -0
  80. package/components/select/dist/index.js +171 -64
  81. package/components/select/dist/registered.js +171 -64
  82. package/custom-elements.json +1189 -1336
  83. package/package.json +1 -1
@@ -9,37 +9,37 @@ var colorCss$1 = css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-div
9
9
 
10
10
  var tokensCss = css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
11
11
 
12
+ /**
13
+ * AuroElement is the shared base class for layout-aware Auro form components.
14
+ *
15
+ * It defines the common `layout`, `shape`, `size`, and `ondark` reactive
16
+ * properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
17
+ * `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
18
+ * the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
19
+ * own default and valid value set for `layout`, `shape`, and `size`.
20
+ */
12
21
  class AuroElement extends LitElement {
13
22
  static get properties() {
14
23
  return {
15
24
 
16
25
  /**
17
- * Defines the language of an element.
18
- * @default {'default'}
26
+ * When true, renders the component styled for use on a dark background.
19
27
  */
20
- layout: {
21
- type: String,
22
- attribute: "layout",
23
- reflect: true
24
- },
25
-
26
- shape: {
27
- type: String,
28
- attribute: "shape",
29
- reflect: true
30
- },
31
-
32
- size: {
33
- type: String,
34
- attribute: "size",
35
- reflect: true
36
- },
37
-
38
28
  onDark: {
39
29
  type: Boolean,
40
30
  attribute: "ondark",
41
31
  reflect: true
42
32
  }
33
+
34
+ // NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
35
+ // Their valid value sets differ per component, and the CEM analyzer roots
36
+ // an inherited property's `type` in the class that declares it — a base
37
+ // declaration would force every subclass's `@type` to be discarded and
38
+ // emitted as plain `string`. Each subclass declares its own `layout` /
39
+ // `shape` / `size` with an exact `@type` union instead. AuroElement still
40
+ // consumes `this.layout` / `this.shape` / `this.size` in its render and
41
+ // architecture helpers below (subclasses guarantee the reactive props).
42
+ // See AlaskaAirlines/discussions#653.
43
43
  };
44
44
  }
45
45
 
@@ -430,6 +430,7 @@ let menuInstanceIdCounter = 0;
430
430
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
431
431
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
432
432
  * @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
433
+ * @event {CustomEvent<{ options: Array<HTMLElement> }>} auroMenu-optionsChange - Notifies that the set of available menu options has changed.
433
434
  * @event {CustomEvent<any>} auroMenu-selectValueFailure - Notifies that an attempt to select a menuoption by matching a value has failed.
434
435
  * @event {CustomEvent<any>} auroMenu-selectValueReset - Notifies that the component value has been reset.
435
436
  * @event {CustomEvent<any>} auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
@@ -444,15 +445,7 @@ class AuroMenu extends AuroElement {
444
445
 
445
446
  // State properties (reactive)
446
447
 
447
- /**
448
- * @private
449
- */
450
- this.shape = "box";
451
-
452
- /**
453
- * @private
454
- */
455
- this.size = "sm";
448
+ this.initializeArchitectureDefaults();
456
449
 
457
450
  // Value of the selected options
458
451
  this.value = undefined;
@@ -493,8 +486,6 @@ class AuroMenu extends AuroElement {
493
486
 
494
487
  // Instance properties (non-reactive)
495
488
 
496
- menuInstanceIdCounter += 1;
497
-
498
489
  Object.assign(this, {
499
490
  // Root-level menu (true) or a nested submenu (false)
500
491
  rootMenu: true,
@@ -506,7 +497,7 @@ class AuroMenu extends AuroElement {
506
497
  loadingSlots: null,
507
498
  // Unique id for this menu instance; prefixes every auto-generated option
508
499
  // key so keys never collide across menus in the same document.
509
- _menuInstanceId: `menu-${menuInstanceIdCounter}`,
500
+ _menuInstanceId: `menu-${menuInstanceIdCounter += 1}`,
510
501
  // Monotonically increasing counter for option key generation. Never
511
502
  // resets, so a key is never reused within this instance's lifetime.
512
503
  _optionKeyCounter: 0,
@@ -522,10 +513,50 @@ class AuroMenu extends AuroElement {
522
513
  });
523
514
  }
524
515
 
516
+ // Defaults for the layout/shape/size architecture props are set in a helper
517
+ // (not the constructor body) so the CEM analyzer keeps their `@type` unions
518
+ // instead of inferring `string` from a constructor-literal assignment.
519
+ // See AlaskaAirlines/discussions#653.
520
+ initializeArchitectureDefaults() {
521
+ this.shape = "box";
522
+ this.size = "sm";
523
+ }
524
+
525
525
  static get properties() {
526
526
  return {
527
527
  ...super.properties,
528
528
 
529
+ /**
530
+ * Applies a named layout variant to the menu. Free-form string consumed by the shared architecture helpers; menu defines no closed value set.
531
+ */
532
+ layout: {
533
+ type: String,
534
+ attribute: "layout",
535
+ reflect: true
536
+ },
537
+
538
+ /**
539
+ * Sets the shape of the menu options.
540
+ * @type {'box' | 'pill' | 'snowflake'}
541
+ * @default 'box'
542
+ */
543
+ shape: {
544
+ type: String,
545
+ attribute: "shape",
546
+ reflect: true
547
+ },
548
+
549
+ /**
550
+ * Sets the size of the menu options.
551
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
552
+ * @default 'sm'
553
+ */
554
+ size: {
555
+ type: String,
556
+ attribute: "size",
557
+ reflect: true
558
+ },
559
+
529
560
  /**
530
561
  * When true, the entire menu and all options are disabled.
531
562
  */
@@ -581,6 +612,7 @@ class AuroMenu extends AuroElement {
581
612
  /**
582
613
  * Specifies the current active menuOption.
583
614
  * @readonly
615
+ * @type {HTMLElement}
584
616
  */
585
617
  optionActive: {
586
618
  type: Object,
@@ -590,6 +622,7 @@ class AuroMenu extends AuroElement {
590
622
  /**
591
623
  * The currently selected menu option(s). In single-select mode this is a single `HTMLElement` (or `undefined` when nothing is selected). In multi-select mode this is an array of `HTMLElement`s.
592
624
  * @readonly
625
+ * @type {HTMLElement | HTMLElement[]}
593
626
  */
594
627
  optionSelected: {
595
628
  // Allow HTMLElement, HTMLElement[] arrays and undefined
@@ -1847,9 +1880,36 @@ class AuroMenuOption extends AuroElement {
1847
1880
  static get properties() {
1848
1881
  return {
1849
1882
  ...super.properties,
1883
+
1884
+ /**
1885
+ * Sets the shape of the option. When unset, it inherits the shape of the parent `auro-menu`.
1886
+ * @type {'box' | 'pill' | 'snowflake'}
1887
+ * @default 'box'
1888
+ */
1889
+ shape: {
1890
+ type: String,
1891
+ attribute: "shape",
1892
+ reflect: true
1893
+ },
1894
+
1895
+ /**
1896
+ * Sets the size of the option. When unset, it inherits the size of the parent `auro-menu`.
1897
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
1898
+ * @default 'sm'
1899
+ */
1900
+ size: {
1901
+ type: String,
1902
+ attribute: "size",
1903
+ reflect: true
1904
+ },
1905
+
1906
+ /**
1907
+ * When true, this option will not show the checkmark when selected.
1908
+ */
1850
1909
  noCheckmark: {
1851
1910
  type: Boolean,
1852
- reflect: true
1911
+ reflect: true,
1912
+ attribute: 'nocheckmark'
1853
1913
  },
1854
1914
 
1855
1915
  /**
@@ -1861,21 +1921,34 @@ class AuroMenuOption extends AuroElement {
1861
1921
  type: Boolean,
1862
1922
  reflect: true
1863
1923
  },
1924
+
1925
+ /**
1926
+ * When true, the option is disabled and cannot be selected.
1927
+ */
1864
1928
  disabled: {
1865
1929
  type: Boolean,
1866
1930
  reflect: true
1867
1931
  },
1932
+
1933
+ /**
1934
+ * The value associated with this menu option.
1935
+ */
1868
1936
  value: {
1869
1937
  type: String,
1870
1938
  reflect: true
1871
1939
  },
1940
+
1941
+ /**
1942
+ * Sets the tab order of the menu option.
1943
+ */
1872
1944
  tabIndex: {
1873
1945
  type: Number,
1874
- reflect: true
1946
+ reflect: true,
1947
+ attribute: 'tabindex'
1875
1948
  },
1876
1949
 
1877
1950
  /**
1878
- * @private
1951
+ * When set, selecting this option dispatches a custom event of the given name from the parent `auro-menu` (and an `auroMenu-customEventFired` event) instead of selecting the option.
1879
1952
  */
1880
1953
  event: {
1881
1954
  type: String,
@@ -9,37 +9,37 @@ var colorCss$1 = css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-div
9
9
 
10
10
  var tokensCss = css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
11
11
 
12
+ /**
13
+ * AuroElement is the shared base class for layout-aware Auro form components.
14
+ *
15
+ * It defines the common `layout`, `shape`, `size`, and `ondark` reactive
16
+ * properties and the architecture helpers (`renderLayout`, `resetShapeClasses`,
17
+ * `resetLayoutClasses`) that subclasses use to render a chosen layout and apply
18
+ * the matching `shape-*` / `layout-*` wrapper classes. Subclasses supply their
19
+ * own default and valid value set for `layout`, `shape`, and `size`.
20
+ */
12
21
  class AuroElement extends LitElement {
13
22
  static get properties() {
14
23
  return {
15
24
 
16
25
  /**
17
- * Defines the language of an element.
18
- * @default {'default'}
26
+ * When true, renders the component styled for use on a dark background.
19
27
  */
20
- layout: {
21
- type: String,
22
- attribute: "layout",
23
- reflect: true
24
- },
25
-
26
- shape: {
27
- type: String,
28
- attribute: "shape",
29
- reflect: true
30
- },
31
-
32
- size: {
33
- type: String,
34
- attribute: "size",
35
- reflect: true
36
- },
37
-
38
28
  onDark: {
39
29
  type: Boolean,
40
30
  attribute: "ondark",
41
31
  reflect: true
42
32
  }
33
+
34
+ // NOTE: `layout`, `shape`, and `size` are intentionally NOT declared here.
35
+ // Their valid value sets differ per component, and the CEM analyzer roots
36
+ // an inherited property's `type` in the class that declares it — a base
37
+ // declaration would force every subclass's `@type` to be discarded and
38
+ // emitted as plain `string`. Each subclass declares its own `layout` /
39
+ // `shape` / `size` with an exact `@type` union instead. AuroElement still
40
+ // consumes `this.layout` / `this.shape` / `this.size` in its render and
41
+ // architecture helpers below (subclasses guarantee the reactive props).
42
+ // See AlaskaAirlines/discussions#653.
43
43
  };
44
44
  }
45
45
 
@@ -389,6 +389,7 @@ let menuInstanceIdCounter = 0;
389
389
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
390
390
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
391
391
  * @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
392
+ * @event {CustomEvent<{ options: Array<HTMLElement> }>} auroMenu-optionsChange - Notifies that the set of available menu options has changed.
392
393
  * @event {CustomEvent<any>} auroMenu-selectValueFailure - Notifies that an attempt to select a menuoption by matching a value has failed.
393
394
  * @event {CustomEvent<any>} auroMenu-selectValueReset - Notifies that the component value has been reset.
394
395
  * @event {CustomEvent<any>} auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
@@ -403,15 +404,7 @@ class AuroMenu extends AuroElement {
403
404
 
404
405
  // State properties (reactive)
405
406
 
406
- /**
407
- * @private
408
- */
409
- this.shape = "box";
410
-
411
- /**
412
- * @private
413
- */
414
- this.size = "sm";
407
+ this.initializeArchitectureDefaults();
415
408
 
416
409
  // Value of the selected options
417
410
  this.value = undefined;
@@ -452,8 +445,6 @@ class AuroMenu extends AuroElement {
452
445
 
453
446
  // Instance properties (non-reactive)
454
447
 
455
- menuInstanceIdCounter += 1;
456
-
457
448
  Object.assign(this, {
458
449
  // Root-level menu (true) or a nested submenu (false)
459
450
  rootMenu: true,
@@ -465,7 +456,7 @@ class AuroMenu extends AuroElement {
465
456
  loadingSlots: null,
466
457
  // Unique id for this menu instance; prefixes every auto-generated option
467
458
  // key so keys never collide across menus in the same document.
468
- _menuInstanceId: `menu-${menuInstanceIdCounter}`,
459
+ _menuInstanceId: `menu-${menuInstanceIdCounter += 1}`,
469
460
  // Monotonically increasing counter for option key generation. Never
470
461
  // resets, so a key is never reused within this instance's lifetime.
471
462
  _optionKeyCounter: 0,
@@ -481,10 +472,50 @@ class AuroMenu extends AuroElement {
481
472
  });
482
473
  }
483
474
 
475
+ // Defaults for the layout/shape/size architecture props are set in a helper
476
+ // (not the constructor body) so the CEM analyzer keeps their `@type` unions
477
+ // instead of inferring `string` from a constructor-literal assignment.
478
+ // See AlaskaAirlines/discussions#653.
479
+ initializeArchitectureDefaults() {
480
+ this.shape = "box";
481
+ this.size = "sm";
482
+ }
483
+
484
484
  static get properties() {
485
485
  return {
486
486
  ...super.properties,
487
487
 
488
+ /**
489
+ * Applies a named layout variant to the menu. Free-form string consumed by the shared architecture helpers; menu defines no closed value set.
490
+ */
491
+ layout: {
492
+ type: String,
493
+ attribute: "layout",
494
+ reflect: true
495
+ },
496
+
497
+ /**
498
+ * Sets the shape of the menu options.
499
+ * @type {'box' | 'pill' | 'snowflake'}
500
+ * @default 'box'
501
+ */
502
+ shape: {
503
+ type: String,
504
+ attribute: "shape",
505
+ reflect: true
506
+ },
507
+
508
+ /**
509
+ * Sets the size of the menu options.
510
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
511
+ * @default 'sm'
512
+ */
513
+ size: {
514
+ type: String,
515
+ attribute: "size",
516
+ reflect: true
517
+ },
518
+
488
519
  /**
489
520
  * When true, the entire menu and all options are disabled.
490
521
  */
@@ -540,6 +571,7 @@ class AuroMenu extends AuroElement {
540
571
  /**
541
572
  * Specifies the current active menuOption.
542
573
  * @readonly
574
+ * @type {HTMLElement}
543
575
  */
544
576
  optionActive: {
545
577
  type: Object,
@@ -549,6 +581,7 @@ class AuroMenu extends AuroElement {
549
581
  /**
550
582
  * The currently selected menu option(s). In single-select mode this is a single `HTMLElement` (or `undefined` when nothing is selected). In multi-select mode this is an array of `HTMLElement`s.
551
583
  * @readonly
584
+ * @type {HTMLElement | HTMLElement[]}
552
585
  */
553
586
  optionSelected: {
554
587
  // Allow HTMLElement, HTMLElement[] arrays and undefined
@@ -1806,9 +1839,36 @@ class AuroMenuOption extends AuroElement {
1806
1839
  static get properties() {
1807
1840
  return {
1808
1841
  ...super.properties,
1842
+
1843
+ /**
1844
+ * Sets the shape of the option. When unset, it inherits the shape of the parent `auro-menu`.
1845
+ * @type {'box' | 'pill' | 'snowflake'}
1846
+ * @default 'box'
1847
+ */
1848
+ shape: {
1849
+ type: String,
1850
+ attribute: "shape",
1851
+ reflect: true
1852
+ },
1853
+
1854
+ /**
1855
+ * Sets the size of the option. When unset, it inherits the size of the parent `auro-menu`.
1856
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
1857
+ * @default 'sm'
1858
+ */
1859
+ size: {
1860
+ type: String,
1861
+ attribute: "size",
1862
+ reflect: true
1863
+ },
1864
+
1865
+ /**
1866
+ * When true, this option will not show the checkmark when selected.
1867
+ */
1809
1868
  noCheckmark: {
1810
1869
  type: Boolean,
1811
- reflect: true
1870
+ reflect: true,
1871
+ attribute: 'nocheckmark'
1812
1872
  },
1813
1873
 
1814
1874
  /**
@@ -1820,21 +1880,34 @@ class AuroMenuOption extends AuroElement {
1820
1880
  type: Boolean,
1821
1881
  reflect: true
1822
1882
  },
1883
+
1884
+ /**
1885
+ * When true, the option is disabled and cannot be selected.
1886
+ */
1823
1887
  disabled: {
1824
1888
  type: Boolean,
1825
1889
  reflect: true
1826
1890
  },
1891
+
1892
+ /**
1893
+ * The value associated with this menu option.
1894
+ */
1827
1895
  value: {
1828
1896
  type: String,
1829
1897
  reflect: true
1830
1898
  },
1899
+
1900
+ /**
1901
+ * Sets the tab order of the menu option.
1902
+ */
1831
1903
  tabIndex: {
1832
1904
  type: Number,
1833
- reflect: true
1905
+ reflect: true,
1906
+ attribute: 'tabindex'
1834
1907
  },
1835
1908
 
1836
1909
  /**
1837
- * @private
1910
+ * When set, selecting this option dispatches a custom event of the given name from the parent `auro-menu` (and an `auroMenu-customEventFired` event) instead of selecting the option.
1838
1911
  */
1839
1912
  event: {
1840
1913
  type: String,
@@ -13,13 +13,13 @@ The `auro-radio-group` element is used to group a set `auro-radio` elements.
13
13
  | `disabled` | `disabled` | `boolean` | | If true, all radio buttons will be disabled. |
14
14
  | `error` | `error` | `string` | | If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
15
15
  | `horizontal` | `horizontal` | `boolean` | | If true, displays radio buttons horizontally. |
16
- | `noValidate` | `noValidate` | `boolean` | | If true, disables auto-validation on blur. |
17
- | `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
18
- | `optionSelected` | `optionSelected` | `object` | | Specifies the current selected radio button. |
16
+ | `noValidate` | `novalidate` | `boolean` | | If true, disables auto-validation on blur. |
17
+ | `onDark` | `ondark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
18
+ | `optionSelected` | `optionselected` | `HTMLElement` | | Specifies the current selected radio button. |
19
19
  | `required` | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
20
- | `setCustomValidity` | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
21
- | `setCustomValidityCustomError` | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
22
- | `setCustomValidityValueMissing` | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
20
+ | `setCustomValidity` | `setcustomvalidity` | `string` | | Sets a custom help text message to display for all validityStates. |
21
+ | `setCustomValidityCustomError` | `setcustomvaliditycustomerror` | `string` | | Custom help text message to display when validity = `customError`. |
22
+ | `setCustomValidityValueMissing` | `setcustomvalidityvaluemissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
23
23
  | `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
24
24
  | `value` | `value` | `string` | | Specifies the current value of the selected radio button. |
25
25
 
@@ -49,6 +49,7 @@ The `auro-radio-group` element is used to group a set `auro-radio` elements.
49
49
 
50
50
  | Part | Description |
51
51
  |---------------|--------------------------------------------------|
52
+ | `helpText` | Apply css to the help text element that displays helper or error messages. |
52
53
  | `radio-group` | Apply css to the fieldset element in the shadow DOM |
53
54
 
54
55
  # auro-radio
@@ -66,7 +67,7 @@ The `auro-radio` element is used to a button that allows the user to select one
66
67
  | `id` | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
67
68
  | `label` | `label` | `string` | | Label for the radio button. |
68
69
  | `name` | `name` | `string` | | Name for the radio button group. |
69
- | `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
70
+ | `onDark` | `ondark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
70
71
  | `required` | `required` | `boolean` | | Defines element as required. |
71
72
  | `value` | `value` | `string` | | The value of the radio button. |
72
73
 
@@ -271,6 +271,7 @@ class AuroRadio extends i$2 {
271
271
  */
272
272
  onDark: {
273
273
  type: Boolean,
274
+ attribute: 'ondark',
274
275
  reflect: true
275
276
  },
276
277
 
@@ -1101,6 +1102,8 @@ class AuroHelpText extends i$2 {
1101
1102
  super();
1102
1103
 
1103
1104
  this.error = false;
1105
+
1106
+ /** @type {'default' | 'inverse'} */
1104
1107
  this.appearance = "default";
1105
1108
  this.onDark = false;
1106
1109
  this.hasTextContent = false;
@@ -1121,8 +1124,8 @@ class AuroHelpText extends i$2 {
1121
1124
  return {
1122
1125
 
1123
1126
  /**
1124
- * Defines whether the component will be on lighter or darker backgrounds.
1125
- * @property {'default', 'inverse'} - The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
1127
+ * The appearance of the help text, either default (for light backgrounds) or inverse (for dark backgrounds).
1128
+ * @type {'default' | 'inverse'}
1126
1129
  * @default 'default'
1127
1130
  */
1128
1131
  appearance: {
@@ -1135,6 +1138,7 @@ class AuroHelpText extends i$2 {
1135
1138
  */
1136
1139
  slotNodes: {
1137
1140
  type: Boolean,
1141
+ attribute: 'slotnodes',
1138
1142
  },
1139
1143
 
1140
1144
  /**
@@ -1142,6 +1146,7 @@ class AuroHelpText extends i$2 {
1142
1146
  */
1143
1147
  hasTextContent: {
1144
1148
  type: Boolean,
1149
+ attribute: 'hastextcontent',
1145
1150
  },
1146
1151
 
1147
1152
  /**
@@ -1157,6 +1162,7 @@ class AuroHelpText extends i$2 {
1157
1162
  */
1158
1163
  onDark: {
1159
1164
  type: Boolean,
1165
+ attribute: 'ondark',
1160
1166
  reflect: true
1161
1167
  }
1162
1168
  };
@@ -1227,7 +1233,7 @@ class AuroHelpText extends i$2 {
1227
1233
  }
1228
1234
  }
1229
1235
 
1230
- var formkitVersion = '202608261850';
1236
+ var formkitVersion = '202608300032';
1231
1237
 
1232
1238
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1233
1239
  // See LICENSE in the project root for license information.
@@ -1242,6 +1248,7 @@ var formkitVersion = '202608261850';
1242
1248
  * @customElement auro-radio-group
1243
1249
  *
1244
1250
  * @csspart radio-group - Apply css to the fieldset element in the shadow DOM
1251
+ * @csspart helpText - Apply css to the help text element that displays helper or error messages.
1245
1252
  * @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
1246
1253
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
1247
1254
  * @slot {HTMLSlotElement} helpText - Allows for the helper text to be overridden.
@@ -1356,6 +1363,7 @@ class AuroRadioGroup extends i$2 {
1356
1363
  */
1357
1364
  noValidate: {
1358
1365
  type: Boolean,
1366
+ attribute: 'novalidate',
1359
1367
  reflect: true
1360
1368
  },
1361
1369
 
@@ -1364,14 +1372,17 @@ class AuroRadioGroup extends i$2 {
1364
1372
  */
1365
1373
  onDark: {
1366
1374
  type: Boolean,
1375
+ attribute: 'ondark',
1367
1376
  reflect: true
1368
1377
  },
1369
1378
 
1370
1379
  /**
1371
1380
  * Specifies the current selected radio button.
1381
+ * @type {HTMLElement}
1372
1382
  */
1373
1383
  optionSelected: {
1374
- type: Object
1384
+ type: Object,
1385
+ attribute: 'optionselected'
1375
1386
  },
1376
1387
 
1377
1388
  /**
@@ -1386,21 +1397,24 @@ class AuroRadioGroup extends i$2 {
1386
1397
  * Sets a custom help text message to display for all validityStates.
1387
1398
  */
1388
1399
  setCustomValidity: {
1389
- type: String
1400
+ type: String,
1401
+ attribute: 'setcustomvalidity'
1390
1402
  },
1391
1403
 
1392
1404
  /**
1393
1405
  * Custom help text message to display when validity = `customError`.
1394
1406
  */
1395
1407
  setCustomValidityCustomError: {
1396
- type: String
1408
+ type: String,
1409
+ attribute: 'setcustomvaliditycustomerror'
1397
1410
  },
1398
1411
 
1399
1412
  /**
1400
1413
  * Custom help text message to display when validity = `valueMissing`.
1401
1414
  */
1402
1415
  setCustomValidityValueMissing: {
1403
- type: String
1416
+ type: String,
1417
+ attribute: 'setcustomvalidityvaluemissing'
1404
1418
  },
1405
1419
 
1406
1420
  /**