@aurodesignsystem/auro-formkit 6.1.0 → 6.2.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 (110) hide show
  1. package/CHANGELOG.md +24 -16
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +11 -0
  3. package/components/bibtemplate/dist/index.js +17 -4
  4. package/components/bibtemplate/dist/registered.js +17 -4
  5. package/components/checkbox/demo/accessibility.md +15 -4
  6. package/components/checkbox/demo/api.md +20 -13
  7. package/components/checkbox/demo/customize.md +2 -1
  8. package/components/checkbox/demo/customize.min.js +129 -29
  9. package/components/checkbox/demo/getting-started.min.js +129 -29
  10. package/components/checkbox/demo/index.min.js +129 -29
  11. package/components/checkbox/demo/styles.min.css +1 -1
  12. package/components/checkbox/dist/auro-checkbox-group.d.ts +33 -0
  13. package/components/checkbox/dist/auro-checkbox.d.ts +7 -2
  14. package/components/checkbox/dist/index.js +129 -29
  15. package/components/checkbox/dist/registered.js +129 -29
  16. package/components/combobox/demo/api.md +27 -19
  17. package/components/combobox/demo/customize.min.js +676 -151
  18. package/components/combobox/demo/getting-started.md +49 -0
  19. package/components/combobox/demo/getting-started.min.js +695 -151
  20. package/components/combobox/demo/index.min.js +676 -151
  21. package/components/combobox/demo/styles.min.css +1 -1
  22. package/components/combobox/dist/auro-combobox.d.ts +72 -27
  23. package/components/combobox/dist/index.js +569 -133
  24. package/components/combobox/dist/registered.js +569 -133
  25. package/components/counter/demo/api.md +36 -16
  26. package/components/counter/demo/customize.min.js +692 -105
  27. package/components/counter/demo/getting-started.html +3 -1
  28. package/components/counter/demo/getting-started.md +49 -0
  29. package/components/counter/demo/getting-started.min.js +8808 -0
  30. package/components/counter/demo/index.min.js +692 -105
  31. package/components/counter/demo/styles.min.css +1 -1
  32. package/components/counter/dist/auro-counter-button.d.ts +4 -0
  33. package/components/counter/dist/auro-counter-group.d.ts +38 -6
  34. package/components/counter/dist/auro-counter.d.ts +33 -0
  35. package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +1 -0
  36. package/components/counter/dist/index.js +691 -104
  37. package/components/counter/dist/registered.js +691 -104
  38. package/components/datepicker/demo/api.md +55 -49
  39. package/components/datepicker/demo/customize.min.js +659 -166
  40. package/components/datepicker/demo/getting-started.html +3 -1
  41. package/components/datepicker/demo/getting-started.md +39 -0
  42. package/components/datepicker/demo/getting-started.min.js +37669 -0
  43. package/components/datepicker/demo/index.min.js +659 -166
  44. package/components/datepicker/demo/styles.min.css +1 -1
  45. package/components/datepicker/dist/auro-calendar-cell.d.ts +58 -4
  46. package/components/datepicker/dist/auro-calendar-month.d.ts +10 -4
  47. package/components/datepicker/dist/auro-calendar.d.ts +25 -6
  48. package/components/datepicker/dist/auro-datepicker.d.ts +75 -24
  49. package/components/datepicker/dist/index.js +658 -165
  50. package/components/datepicker/dist/registered.js +658 -165
  51. package/components/dropdown/demo/api.md +25 -22
  52. package/components/dropdown/demo/customize.min.js +217 -43
  53. package/components/dropdown/demo/getting-started.min.js +364 -95
  54. package/components/dropdown/demo/index.min.js +217 -43
  55. package/components/dropdown/demo/styles.min.css +1 -1
  56. package/components/dropdown/dist/auro-dropdown.d.ts +35 -8
  57. package/components/dropdown/dist/auro-dropdownBib.d.ts +17 -5
  58. package/components/dropdown/dist/index.js +217 -43
  59. package/components/dropdown/dist/registered.js +217 -43
  60. package/components/form/demo/customize.min.js +2739 -628
  61. package/components/form/demo/getting-started.min.js +2739 -628
  62. package/components/form/demo/index.min.js +2739 -628
  63. package/components/form/demo/registerDemoDeps.min.js +2733 -627
  64. package/components/form/demo/styles.min.css +1 -1
  65. package/components/form/dist/index.js +6 -1
  66. package/components/form/dist/registered.js +6 -1
  67. package/components/helptext/dist/auro-helptext.d.ts +9 -7
  68. package/components/helptext/dist/index.js +9 -3
  69. package/components/helptext/dist/registered.js +9 -3
  70. package/components/input/demo/api.md +30 -30
  71. package/components/input/demo/customize.md +0 -37
  72. package/components/input/demo/customize.min.js +147 -61
  73. package/components/input/demo/getting-started.md +33 -0
  74. package/components/input/demo/getting-started.min.js +167 -52
  75. package/components/input/demo/index.min.js +147 -52
  76. package/components/input/demo/styles.min.css +1 -1
  77. package/components/input/dist/base-input.d.ts +80 -25
  78. package/components/input/dist/index.js +146 -51
  79. package/components/input/dist/registered.js +146 -51
  80. package/components/layoutElement/dist/auroElement.d.ts +10 -17
  81. package/components/layoutElement/dist/index.js +20 -20
  82. package/components/layoutElement/dist/registered.js +20 -20
  83. package/components/menu/demo/api.md +31 -27
  84. package/components/menu/demo/index.min.js +126 -37
  85. package/components/menu/demo/styles.min.css +1 -1
  86. package/components/menu/dist/auro-menu.d.ts +26 -21
  87. package/components/menu/dist/auro-menuoption.d.ts +27 -1
  88. package/components/menu/dist/index.js +126 -37
  89. package/components/menu/dist/registered.js +126 -37
  90. package/components/radio/demo/accessibility.md +15 -4
  91. package/components/radio/demo/api.md +10 -9
  92. package/components/radio/demo/customize.min.js +120 -27
  93. package/components/radio/demo/getting-started.min.js +120 -27
  94. package/components/radio/demo/index.min.js +120 -27
  95. package/components/radio/demo/styles.min.css +1 -1
  96. package/components/radio/dist/auro-radio-group.d.ts +31 -3
  97. package/components/radio/dist/auro-radio.d.ts +4 -2
  98. package/components/radio/dist/index.js +120 -27
  99. package/components/radio/dist/registered.js +120 -27
  100. package/components/select/demo/api.md +18 -15
  101. package/components/select/demo/customize.min.js +396 -94
  102. package/components/select/demo/getting-started.md +49 -0
  103. package/components/select/demo/getting-started.min.js +418 -95
  104. package/components/select/demo/index.min.js +396 -94
  105. package/components/select/demo/styles.min.css +1 -1
  106. package/components/select/dist/auro-select.d.ts +18 -0
  107. package/components/select/dist/index.js +289 -76
  108. package/components/select/dist/registered.js +289 -76
  109. package/custom-elements.json +1354 -1404
  110. package/package.json +11 -11
@@ -10,37 +10,40 @@ The `auro-counter-group` element provides a flexible interface for grouping mult
10
10
  | Property | Attribute | Type | Default | Description |
11
11
  |---------------------------|---------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
12
12
  | `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
13
- | `autoPlacement` | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
13
+ | `autoPlacement` | `autoplacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
14
14
  | `error` | `error` | `string` | | The current error message to display when the component is invalid. |
15
- | `fullscreenBreakpoint` | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
16
- | `isDropdown` | `isDropdown` | `boolean` | false | If true, the counter group is displayed as a dropdown. |
17
- | `largeFullscreenHeadline` | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
15
+ | `fullscreenBreakpoint` | `fullscreenbreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
16
+ | `isDropdown` | `isdropdown` | `boolean` | false | If true, the counter group is displayed as a dropdown. |
17
+ | `largeFullscreenHeadline` | `largefullscreenheadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
18
18
  | `layout` | `layout` | `'classic' \| 'snowflake'` | "'classic'" | Determines the layout style of the counter group when it is a dropdown. |
19
- | `matchWidth` | `matchWidth` | `boolean` | false | If declared, the dropdown will expand to the width of its parent container.<br />Otherwise, the dropdown width will be determined by its content. |
19
+ | `matchWidth` | `matchwidth` | `boolean` | false | If declared, the dropdown will expand to the width of its parent container.<br />Otherwise, the dropdown width will be determined by its content. |
20
20
  | `max` | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
21
21
  | `min` | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
22
- | `noFlip` | `noFlip` | `boolean` | false | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
22
+ | `noFlip` | `noflip` | `boolean` | false | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
23
23
  | `offset` | `offset` | `number` | "0" | Gap between the trigger element and bib. |
24
- | `onDark` | `onDark` | `boolean` | false | DEPRECATED - use `appearance` instead. |
24
+ | `onDark` | `ondark` | `boolean` | false | DEPRECATED - use `appearance` instead. |
25
25
  | `placement` | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
26
+ | `shape` | `shape` | `'box' \| 'classic' \| 'pill' \| 'pill-left' \| 'pill-right' \| 'rounded' \| 'snowflake'` | "'classic'" | Sets the shape of the counter group when it is a dropdown. |
26
27
  | `shift` | `shift` | `boolean` | false | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
28
+ | `size` | `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | "'xl'" | Sets the size of the counter group when it is a dropdown. |
27
29
  | `total` | `total` | `number` | "undefined" | The total value of the counters. |
28
30
  | `validity` | `validity` | `string` | "undefined" | Reflects the validity state. |
29
- | `value` | `value` | `object` | "undefined" | The current individual values of the nested counters. |
31
+ | `value` | `value` | `Record<string, number>` | "undefined" | The current individual values of the nested counters. |
30
32
 
31
33
  ## Methods
32
34
 
33
35
  | Method | Type | Description |
34
36
  |------------|----------------------------------------|--------------------------------------------------|
35
37
  | `hideBib` | `(): void` | Hides the dropdown bib if its open. |
38
+ | `reset` | `(): void` | Resets the counter group to its initial state by resetting each child counter and clearing validity.<br />Each child reset dispatches an `input` event, which triggers `updateValue()` to recompute `value`/`total`. |
36
39
  | `showBib` | `(): void` | Shows the dropdown bib if there are options to show. |
37
40
  | `validate` | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
38
41
 
39
42
  ## Events
40
43
 
41
- | Event | Type |
42
- |---------|--------------------------------------------------|
43
- | `input` | `CustomEvent<{ total: number \| undefined; value: {} \| undefined; }>` |
44
+ | Event | Type | Description |
45
+ |---------|--------------------------------------------------|--------------------------------------------------|
46
+ | `input` | `CustomEvent<{ total: number \| undefined; value: {} \| undefined; }>` | Notifies that the counter group's value has changed. |
44
47
 
45
48
  ## Slots
46
49
 
@@ -52,7 +55,14 @@ The `auro-counter-group` element provides a flexible interface for grouping mult
52
55
  | `default` | Slot for counter elements. |
53
56
  | `helpText` | Dropdown help text content. Only used when `isDropdown` is true. |
54
57
  | `label` | Dropdown label content. Only used when `isDropdown` is true. |
55
- | `valueText` | Dropdown value text display. Only used when `isDropdown` is true. |
58
+ | `valueText` | Dropdown value text display. Only used when `isDropdown` is true. |
59
+
60
+ ## CSS Shadow Parts
61
+
62
+ | Part | Description |
63
+ |------------|--------------------------------------------------|
64
+ | `dropdown` | The dropdown element rendered when `isDropdown` is true. |
65
+ | `helpText` | The help text and error message container. |
56
66
 
57
67
  # auro-counter
58
68
 
@@ -67,7 +77,7 @@ The `auro-counter` element provides a flexible counter interface with increment
67
77
  | `error` | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
68
78
  | `max` | `max` | `number` | | The maximum value for the counter. |
69
79
  | `min` | `min` | `number` | | The minimum value for the counter. |
70
- | `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
80
+ | `onDark` | `ondark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
71
81
  | `validity` | `validity` | `string` | | The validity state of the counter. |
72
82
  | `value` | `value` | `number \| undefined` | | Gets the current value of the counter. |
73
83
 
@@ -77,13 +87,14 @@ The `auro-counter` element provides a flexible counter interface with increment
77
87
  |-------------|----------------------------------------|--------------------------------------------------|
78
88
  | `decrement` | `(value?: number \| undefined): void` | Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.<br /><br />**value**: The amount to decrement by. |
79
89
  | `increment` | `(value?: number \| undefined): void` | Increments the counter value by 1. If a value is provided, it increments by that amount.<br /><br />**value**: The amount to increment by. |
90
+ | `reset` | `(): void` | Resets the counter to its default state, clearing validity/touched state and returning<br />the value to `min` — matching the clear-on-reset behavior of the other Auro form elements. |
80
91
  | `validate` | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
81
92
 
82
93
  ## Events
83
94
 
84
- | Event | Type |
85
- |---------|------------------------------------------------|
86
- | `input` | `CustomEvent<{ value: number \| undefined; }>` |
95
+ | Event | Type | Description |
96
+ |---------|------------------------------------------------|------------------------------------------------|
97
+ | `input` | `CustomEvent<{ value: number \| undefined; }>` | Notifies that the counter's value has changed. |
87
98
 
88
99
  ## Slots
89
100
 
@@ -94,4 +105,13 @@ The `auro-counter` element provides a flexible counter interface with increment
94
105
  | `default` | Main label content for the counter. |
95
106
  | `description` | Descriptive content for the counter. |
96
107
  | `helpText` | Help text content for the counter. |
108
+
109
+ ## CSS Shadow Parts
110
+
111
+ | Part | Description |
112
+ |------------------|--------------------------------------------------|
113
+ | `controlMinus` | The decrement button. |
114
+ | `controlPlus` | The increment button. |
115
+ | `counterControl` | The container for the counter's spinbutton controls and value. |
116
+ | `helpText` | The help text and error message container. |
97
117
  <!-- AURO-GENERATED-CONTENT:END -->