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

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 (231) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +66 -0
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  4. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  5. package/components/bibtemplate/dist/index.d.ts +2 -0
  6. package/components/bibtemplate/dist/index.js +395 -0
  7. package/components/bibtemplate/dist/registered.js +395 -0
  8. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  9. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  10. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  11. package/components/checkbox/demo/api.md +489 -0
  12. package/components/checkbox/demo/api.min.js +2133 -0
  13. package/components/checkbox/demo/index.md +55 -0
  14. package/components/checkbox/demo/index.min.js +2108 -0
  15. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  16. package/components/checkbox/demo/readme.md +142 -0
  17. package/components/checkbox/dist/auro-checkbox-group.d.ts +176 -0
  18. package/components/checkbox/dist/auro-checkbox.d.ts +209 -0
  19. package/components/checkbox/dist/index.d.ts +3 -0
  20. package/components/checkbox/dist/index.js +2057 -0
  21. package/components/checkbox/dist/registered.js +2058 -0
  22. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  23. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  24. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  25. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  26. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  27. package/components/combobox/demo/api.md +2287 -0
  28. package/components/combobox/demo/api.min.js +18025 -0
  29. package/components/combobox/demo/index.md +196 -0
  30. package/components/combobox/demo/index.min.js +17930 -0
  31. package/components/combobox/demo/keyboardBehavior.md +281 -0
  32. package/components/combobox/demo/readme.md +158 -0
  33. package/components/combobox/dist/auro-combobox.d.ts +578 -0
  34. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +9 -0
  35. package/components/combobox/dist/index.d.ts +2 -0
  36. package/components/combobox/dist/index.js +15845 -0
  37. package/components/combobox/dist/registered.js +15847 -0
  38. package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
  39. package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
  40. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  41. package/components/counter/demo/api.md +1285 -0
  42. package/components/counter/demo/api.min.js +8237 -0
  43. package/components/counter/demo/index.md +92 -0
  44. package/components/counter/demo/index.min.js +8218 -0
  45. package/components/counter/demo/keyboardBehavior.md +127 -0
  46. package/components/counter/demo/readme.md +161 -0
  47. package/components/counter/dist/auro-counter-button.d.ts +14 -0
  48. package/components/counter/dist/auro-counter-group.d.ts +390 -0
  49. package/components/counter/dist/auro-counter-wrapper.d.ts +17 -0
  50. package/components/counter/dist/auro-counter.d.ts +136 -0
  51. package/components/counter/dist/buttonVersion.d.ts +2 -0
  52. package/components/counter/dist/iconVersion.d.ts +2 -0
  53. package/components/counter/dist/index.d.ts +3 -0
  54. package/components/counter/dist/index.js +8140 -0
  55. package/components/counter/dist/keyboardStrategy.d.ts +4 -0
  56. package/components/counter/dist/registered.js +8141 -0
  57. package/components/counter/dist/styles/color-css.d.ts +2 -0
  58. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  59. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  60. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  61. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  62. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  63. package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
  64. package/components/counter/dist/styles/style-css.d.ts +2 -0
  65. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  66. package/components/datepicker/demo/api.md +1824 -0
  67. package/components/datepicker/demo/api.min.js +24654 -0
  68. package/components/datepicker/demo/index.md +158 -0
  69. package/components/datepicker/demo/index.min.js +24375 -0
  70. package/components/datepicker/demo/keyboardBehavior.md +19 -0
  71. package/components/datepicker/demo/readme.md +137 -0
  72. package/components/datepicker/dist/auro-calendar-cell.d.ts +169 -0
  73. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  74. package/components/datepicker/dist/auro-calendar.d.ts +173 -0
  75. package/components/datepicker/dist/auro-datepicker.d.ts +716 -0
  76. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  77. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -0
  78. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  79. package/components/datepicker/dist/index.d.ts +2 -0
  80. package/components/datepicker/dist/index.js +24290 -0
  81. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  82. package/components/datepicker/dist/registered.js +24290 -0
  83. package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
  84. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  85. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  86. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  87. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  88. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  89. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  90. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
  91. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  92. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  93. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  94. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  95. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  96. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  97. package/components/datepicker/dist/utilities.d.ts +78 -0
  98. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  99. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  100. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  101. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  104. package/components/dropdown/demo/api.md +1358 -0
  105. package/components/dropdown/demo/api.min.js +5019 -0
  106. package/components/dropdown/demo/index.md +283 -0
  107. package/components/dropdown/demo/index.min.js +4954 -0
  108. package/components/dropdown/demo/keyboardBehavior.md +77 -0
  109. package/components/dropdown/demo/readme.md +160 -0
  110. package/components/dropdown/dist/auro-dropdown.d.ts +482 -0
  111. package/components/dropdown/dist/auro-dropdownBib.d.ts +128 -0
  112. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
  113. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  114. package/components/dropdown/dist/index.d.ts +2 -0
  115. package/components/dropdown/dist/index.js +4847 -0
  116. package/components/dropdown/dist/registered.js +4847 -0
  117. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
  118. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
  119. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  120. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  121. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  122. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  123. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  124. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  125. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  126. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  127. package/components/form/demo/api.md +319 -0
  128. package/components/form/demo/api.min.js +71170 -0
  129. package/components/form/demo/index.md +128 -0
  130. package/components/form/demo/index.min.js +71170 -0
  131. package/components/form/demo/keyboardBehavior.md +0 -0
  132. package/components/form/demo/readme.md +145 -0
  133. package/components/form/dist/auro-form.d.ts +280 -0
  134. package/components/form/dist/index.d.ts +2 -0
  135. package/components/form/dist/index.js +718 -0
  136. package/components/form/dist/registered.d.ts +1 -0
  137. package/components/form/dist/registered.js +718 -0
  138. package/components/form/dist/styles/style-css.d.ts +2 -0
  139. package/components/helptext/dist/auro-helptext.d.ts +69 -0
  140. package/components/helptext/dist/index.d.ts +2 -0
  141. package/components/helptext/dist/index.js +231 -0
  142. package/components/helptext/dist/registered.js +231 -0
  143. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  144. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  145. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  146. package/components/input/demo/api.md +1397 -0
  147. package/components/input/demo/api.min.js +7473 -0
  148. package/components/input/demo/index.md +161 -0
  149. package/components/input/demo/index.min.js +7393 -0
  150. package/components/input/demo/keyboardBehavior.md +0 -0
  151. package/components/input/demo/readme.md +134 -0
  152. package/components/input/dist/auro-input.d.ts +207 -0
  153. package/components/input/dist/base-input.d.ts +628 -0
  154. package/components/input/dist/buttonVersion.d.ts +2 -0
  155. package/components/input/dist/i18n.d.ts +18 -0
  156. package/components/input/dist/iconVersion.d.ts +2 -0
  157. package/components/input/dist/index.d.ts +2 -0
  158. package/components/input/dist/index.js +7305 -0
  159. package/components/input/dist/registered.js +7305 -0
  160. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  161. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  162. package/components/input/dist/styles/color-css.d.ts +2 -0
  163. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  164. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  165. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  166. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  167. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  168. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  169. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  170. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  171. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  172. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  173. package/components/input/dist/styles/style-css.d.ts +2 -0
  174. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  175. package/components/input/dist/utilities.d.ts +25 -0
  176. package/components/layoutElement/dist/auroElement.d.ts +40 -0
  177. package/components/layoutElement/dist/index.d.ts +2 -0
  178. package/components/layoutElement/dist/index.js +107 -0
  179. package/components/layoutElement/dist/registered.js +107 -0
  180. package/components/menu/demo/api.md +1201 -0
  181. package/components/menu/demo/api.min.js +2397 -0
  182. package/components/menu/demo/index.md +72 -0
  183. package/components/menu/demo/index.min.js +2290 -0
  184. package/components/menu/demo/keyboardBehavior.md +0 -0
  185. package/components/menu/demo/readme.md +145 -0
  186. package/components/menu/dist/auro-menu-utils.d.ts +34 -0
  187. package/components/menu/dist/auro-menu.context.d.ts +239 -0
  188. package/components/menu/dist/auro-menu.d.ts +317 -0
  189. package/components/menu/dist/auro-menuoption.d.ts +210 -0
  190. package/components/menu/dist/iconVersion.d.ts +2 -0
  191. package/components/menu/dist/index.d.ts +4 -0
  192. package/components/menu/dist/index.js +2253 -0
  193. package/components/menu/dist/registered.js +2201 -0
  194. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  195. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  196. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  197. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  198. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  199. package/components/radio/demo/api.md +675 -0
  200. package/components/radio/demo/api.min.js +2210 -0
  201. package/components/radio/demo/index.md +73 -0
  202. package/components/radio/demo/index.min.js +2167 -0
  203. package/components/radio/demo/keyboardBehavior.md +0 -0
  204. package/components/radio/demo/readme.md +141 -0
  205. package/components/radio/dist/auro-radio-group.d.ts +250 -0
  206. package/components/radio/dist/auro-radio.d.ts +180 -0
  207. package/components/radio/dist/index.d.ts +3 -0
  208. package/components/radio/dist/index.js +2116 -0
  209. package/components/radio/dist/registered.js +2117 -0
  210. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  211. package/components/radio/dist/styles/color-css.d.ts +2 -0
  212. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  213. package/components/radio/dist/styles/style-css.d.ts +2 -0
  214. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  215. package/components/select/demo/api.md +2378 -0
  216. package/components/select/demo/api.min.js +10542 -0
  217. package/components/select/demo/index.md +355 -0
  218. package/components/select/demo/index.min.js +10449 -0
  219. package/components/select/demo/keyboardBehavior.md +245 -0
  220. package/components/select/demo/readme.md +148 -0
  221. package/components/select/dist/auro-select.d.ts +553 -0
  222. package/components/select/dist/index.d.ts +2 -0
  223. package/components/select/dist/index.js +8376 -0
  224. package/components/select/dist/registered.js +8376 -0
  225. package/components/select/dist/selectKeyboardStrategy.d.ts +11 -0
  226. package/components/select/dist/styles/emphasized/color-css.d.ts +2 -0
  227. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  228. package/components/select/dist/styles/style-css.d.ts +2 -0
  229. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  230. package/custom-elements.json +18806 -0
  231. package/package.json +2 -2
@@ -0,0 +1,390 @@
1
+ /**
2
+ * The `auro-counter-group` element provides a flexible interface for grouping multiple counters, supporting validation, custom validity messages, and disabled states based on the group's value.
3
+ * @customElement auro-counter-group
4
+ *
5
+ * @slot default - Slot for counter elements.
6
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
7
+ * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
8
+ * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
9
+ * @slot label - Dropdown label content. Only used when `isDropdown` is true.
10
+ * @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
11
+ * @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
12
+ */
13
+ export class AuroCounterGroup extends AuroElement {
14
+ static get styles(): import("lit").CSSResult[];
15
+ static get properties(): {
16
+ /**
17
+ * Defines whether the component will be on lighter or darker backgrounds.
18
+ * @type {'default' | 'inverse'}
19
+ * @default 'default'
20
+ */
21
+ appearance: "default" | "inverse";
22
+ /**
23
+ * If declared, bib's position will be automatically calculated where to appear.
24
+ * @default false
25
+ */
26
+ autoPlacement: {
27
+ type: BooleanConstructor;
28
+ reflect: boolean;
29
+ };
30
+ /**
31
+ * The current error message to display when the component is invalid.
32
+ */
33
+ error: {
34
+ type: StringConstructor;
35
+ reflect: boolean;
36
+ };
37
+ /**
38
+ * The current error message to display when the component is invalid.
39
+ * This is set by validation and is not available to consumers.
40
+ * @private
41
+ */
42
+ errorMessage: {
43
+ type: StringConstructor;
44
+ reflect: boolean;
45
+ attribute: boolean;
46
+ };
47
+ /**
48
+ * Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
49
+ *
50
+ * When expanded, the dropdown will automatically display in fullscreen mode
51
+ * if the screen size is equal to or smaller than the selected breakpoint.
52
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
53
+ * @default 'sm'
54
+ */
55
+ fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
56
+ /**
57
+ * If true, the counter group is displayed as a dropdown.
58
+ */
59
+ isDropdown: {
60
+ type: BooleanConstructor;
61
+ };
62
+ /**
63
+ * Determines the layout style of the counter group when it is a dropdown.
64
+ * @type {'classic' | 'snowflake'}
65
+ * @default 'classic'
66
+ */
67
+ layout: "classic" | "snowflake";
68
+ /**
69
+ * If declared, the dropdown will expand to the width of its parent container.
70
+ * Otherwise, the dropdown width will be determined by its content.
71
+ */
72
+ matchWidth: {
73
+ type: BooleanConstructor;
74
+ reflect: boolean;
75
+ };
76
+ /**
77
+ * The maximum value allowed for the whole group of counters.
78
+ */
79
+ max: {
80
+ type: NumberConstructor;
81
+ reflect: boolean;
82
+ };
83
+ /**
84
+ * The minimum value allowed for the whole group of counters.
85
+ */
86
+ min: {
87
+ type: NumberConstructor;
88
+ reflect: boolean;
89
+ };
90
+ /**
91
+ * If declared, make bib.fullscreen.headline in HeadingDisplay.
92
+ * Otherwise, Heading 600.
93
+ */
94
+ largeFullscreenHeadline: {
95
+ type: BooleanConstructor;
96
+ reflect: boolean;
97
+ };
98
+ /**
99
+ * If declared, the bib will NOT flip to an alternate position
100
+ * when there isn't enough space in the specified `placement`.
101
+ */
102
+ noFlip: {
103
+ type: BooleanConstructor;
104
+ reflect: boolean;
105
+ };
106
+ /**
107
+ * If declared, the dropdown will shift its position to avoid being cut off by the viewport.
108
+ */
109
+ shift: {
110
+ type: BooleanConstructor;
111
+ reflect: boolean;
112
+ };
113
+ /**
114
+ * Gap between the trigger element and bib.
115
+ * @default 0
116
+ */
117
+ offset: {
118
+ type: NumberConstructor;
119
+ reflect: boolean;
120
+ };
121
+ /**
122
+ * DEPRECATED - use `appearance` instead.
123
+ */
124
+ onDark: {
125
+ type: BooleanConstructor;
126
+ reflect: boolean;
127
+ };
128
+ /**
129
+ * Position where the bib should appear relative to the trigger.
130
+ * @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
131
+ * @default 'bottom-start'
132
+ */
133
+ placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
134
+ /**
135
+ * The total value of the counters.
136
+ */
137
+ total: {
138
+ type: NumberConstructor;
139
+ };
140
+ /**
141
+ * Reflects the validity state.
142
+ */
143
+ validity: {
144
+ type: StringConstructor;
145
+ reflect: boolean;
146
+ };
147
+ /**
148
+ * The current individual values of the nested counters.
149
+ */
150
+ value: {
151
+ type: ObjectConstructor;
152
+ };
153
+ /**
154
+ * The current text in the valueText slot.
155
+ * @private
156
+ */
157
+ valueText: {
158
+ type: StringConstructor;
159
+ reflect: boolean;
160
+ attribute: boolean;
161
+ };
162
+ };
163
+ /**
164
+ * Registers the custom element with the browser.
165
+ * @param {string} [name="auro-counter-group"] - The name of the element that you want to register.
166
+ * @example
167
+ * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
168
+ */
169
+ static register(name?: string): void;
170
+ appearance: string;
171
+ max: any;
172
+ min: any;
173
+ onDark: boolean;
174
+ total: number;
175
+ validity: any;
176
+ value: {};
177
+ matchWidth: boolean;
178
+ isDropdown: boolean;
179
+ fullscreenBreakpoint: string;
180
+ largeFullscreenHeadline: boolean;
181
+ autoPlacement: boolean;
182
+ noFlip: boolean;
183
+ shift: boolean;
184
+ placement: string;
185
+ /**
186
+ * @private
187
+ */
188
+ private counters;
189
+ /**
190
+ * @private
191
+ */
192
+ private dropdown;
193
+ /**
194
+ * @private
195
+ */
196
+ private bibtemplate;
197
+ /**
198
+ * @private
199
+ */
200
+ private validation;
201
+ /**
202
+ * Updates the aggregate value based on the values of contained auro-counter components.
203
+ * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
204
+ * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
205
+ * @private
206
+ */
207
+ private updateValue;
208
+ /**
209
+ * Updates the validity of the counter group based on the validity of its counters.
210
+ * This method checks all counters within the group, determines if any are invalid, and updates the group's validity state and error message accordingly.
211
+ * If any counter is invalid, it generates a combined error message from all invalid counters.
212
+ * @returns {void}
213
+ * @private
214
+ */
215
+ private updateValidity;
216
+ /**
217
+ * Dynamically generated dropdown tag.
218
+ * @private
219
+ * @type {string}
220
+ */
221
+ private dropdownTag;
222
+ /**
223
+ * Dynamically generated bibtempalate tag.
224
+ * @private
225
+ * @type {string}
226
+ */
227
+ private bibtemplateTag;
228
+ /**
229
+ * Dynamically generated helpText tag.
230
+ * @private
231
+ * @type {string}
232
+ */
233
+ private helpTextTag;
234
+ /**
235
+ * @private
236
+ */
237
+ private iconTag;
238
+ /**
239
+ * Dynamically disables increment/decrement buttons on a counter based on group value.
240
+ * This method checks the total aggregated value against the group's min and max properties.
241
+ * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
242
+ *
243
+ * @param {HTMLElement} counter - The counter element to potentially disable.
244
+ * @private
245
+ */
246
+ private manageDisabled;
247
+ /**
248
+ * Attaches input event listeners to all auro-counter elements within the component.
249
+ * This method selects all `auro-counter` and `[auro-counter]` elements and adds an `input` event listener to each.
250
+ * The listener calls `this.updateValue()` whenever the value of a counter changes.
251
+ * @private
252
+ */
253
+ private configureCounters;
254
+ /**
255
+ * Renders help text error messages.
256
+ * @param {Array<string>} messages - The error messages to render.
257
+ * @returns {TemplateResult[]} - The rendered error messages rendered in a TemplateResult.
258
+ * @private
259
+ */
260
+ private renderHelpTextErrors;
261
+ /**
262
+ * Gets and returns an array of counters in an invalid state.
263
+ * @returns {Array<HTMLElement>} - Returns an array of invalid counters.
264
+ * @param {NodeList} counters - The NodeList of counter elements to check.
265
+ * @private
266
+ */
267
+ private getInvalidCounters;
268
+ /**
269
+ * Gets all valid error messages from errored counters.
270
+ * @param {NodeList} invalidCounters - The NodeList of counter elements to check.
271
+ * @returns {Array<string>} - Returns an array of error messages from invalid counters.
272
+ * @private
273
+ */
274
+ private getErrorMessages;
275
+ errorMessage: any;
276
+ /**
277
+ * Hides the dropdown bib if its open.
278
+ * @returns {void}
279
+ */
280
+ hideBib(): void;
281
+ /**
282
+ * Shows the dropdown bib if there are options to show.
283
+ * @returns {void}
284
+ */
285
+ showBib(): void;
286
+ /**
287
+ * Configures the dropdown counters by selecting all `auro-counter` elements,
288
+ * appending them to the `auro-counter-wrapper` element within the shadow DOM,
289
+ * and setting up keyboard navigation and input event listeners.
290
+ * @private
291
+ */
292
+ private configureDropdownCounters;
293
+ /**
294
+ * This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
295
+ * @private
296
+ */
297
+ private configureBibtemplate;
298
+ /**
299
+ * Watch for slot changes and recalculate the menuoptions.
300
+ * @private
301
+ * @param {Event} event - `slotchange` event.
302
+ * @returns {void}
303
+ */
304
+ private handleSlotChange;
305
+ /**
306
+ * Safely converts a value to a number, returning 0 if invalid.
307
+ * @private
308
+ * @param {*} value - The value to convert.
309
+ * @returns {number} The converted number or 0 if invalid.
310
+ */
311
+ private safeNumberConversion;
312
+ /**
313
+ * Updates the value text in the dropdown trigger based on the counters in the counter group.
314
+ * @private
315
+ */
316
+ private updateValueText;
317
+ valueText: any;
318
+ /**
319
+ * Validates value.
320
+ * @param {boolean} [force=false] - Whether to force validation.
321
+ */
322
+ validate(force?: boolean): void;
323
+ updated(changedProperties: any): void;
324
+ firstUpdated(): void;
325
+ /**
326
+ * Returns HTML for the help text and error message.
327
+ * @private
328
+ * @returns {html} - Returns HTML for the help text and error message.
329
+ */
330
+ private renderHelpText;
331
+ /**
332
+ * Returns HTML for the validation error icon.
333
+ * @private
334
+ * @returns {html} - Returns HTML for the validation error icon.
335
+ */
336
+ private renderValidationErrorIcon;
337
+ /**
338
+ * Render the dropdown structure for the counter group.
339
+ * @returns {TemplateResult} The dropdown template.
340
+ * @private
341
+ */
342
+ private renderCounterDropdown;
343
+ /**
344
+ * Render the dropdown trigger for the dropdown.
345
+ * @returns {TemplateResult} The dropdown trigger template.
346
+ * @private
347
+ */
348
+ private renderDropdownTrigger;
349
+ /**
350
+ * Render the dropdown bib template for the dropdown.
351
+ * @returns {TemplateResult} The bib template.
352
+ * @private
353
+ */
354
+ private renderBibTemplate;
355
+ /**
356
+ * Render the fullscreen bib slots for the dropdown.
357
+ * @returns {TemplateResult} The fullscreen slots template.
358
+ * @private
359
+ */
360
+ private renderFullscreenSlots;
361
+ /**
362
+ * Render the counter group container.
363
+ * @param {boolean} isInDropdown - Whether the counter group is inside a dropdown.
364
+ * @returns {TemplateResult} The counter group template.
365
+ * @private
366
+ */
367
+ private renderCounterGroup;
368
+ /**
369
+ * Render the classic layout.
370
+ * @returns {TemplateResult} The classic layout template.
371
+ * @private
372
+ */
373
+ private renderLayoutClassic;
374
+ shape: any;
375
+ size: any;
376
+ /**
377
+ * Render the snowflake layout.
378
+ * @returns {TemplateResult} The snowflake layout template.
379
+ * @private
380
+ */
381
+ private renderLayoutSnowflake;
382
+ /**
383
+ * Renders the component by layout type.
384
+ * @param {string} [ForcedLayout] - Optionally force a specific layout for rendering.
385
+ * @returns {TemplateResult} The layout template.
386
+ * @private
387
+ */
388
+ private renderLayout;
389
+ }
390
+ import { AuroElement } from "../../layoutElement/src/auroElement.js";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Wrapper element for auro-counter elements in an application to provide layout structure for multiple counters.
3
+ *
4
+ * @slot Default - Slot for counter elements.
5
+ */
6
+ export class AuroCounterWrapper extends LitElement {
7
+ static get styles(): import("lit").CSSResult[];
8
+ /**
9
+ * Registers the custom element with the browser.
10
+ * @param {string} [name="auro-counter-wrapper"] - Custom element name to register.
11
+ * @example
12
+ * AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
13
+ */
14
+ static register(name?: string): void;
15
+ render(): import("lit-html").TemplateResult;
16
+ }
17
+ import { LitElement } from "lit";
@@ -0,0 +1,136 @@
1
+ /**
2
+ * The `auro-counter` element provides a flexible counter interface with increment and decrement buttons, supporting optional sub-labels and disabled states.
3
+ * @customElement auro-counter
4
+ *
5
+ * @slot default - Main label content for the counter.
6
+ * @slot ariaLabel.minus - Accessible label for the decrement button.
7
+ * @slot ariaLabel.plus - Accessible label for the increment button.
8
+ * @slot helpText - Help text content for the counter.
9
+ * @slot description - Descriptive content for the counter.
10
+ */
11
+ export class AuroCounter extends LitElement {
12
+ static get shadowRootOptions(): {
13
+ delegatesFocus: boolean;
14
+ clonable?: boolean;
15
+ customElementRegistry?: CustomElementRegistry;
16
+ mode: ShadowRootMode;
17
+ serializable?: boolean;
18
+ slotAssignment?: SlotAssignmentMode;
19
+ };
20
+ /**
21
+ * Defines reactive properties for the component.
22
+ * @returns {Object} Property configuration.
23
+ */
24
+ static get properties(): any;
25
+ /**
26
+ * Registers the custom element with the browser.
27
+ * @param {string} [name="auro-counter"] - The name of the element that you want to register.
28
+ * @example
29
+ * AuroCounter.register("custom-counter") // registers <custom-counter/>
30
+ */
31
+ static register(name?: string): void;
32
+ static get styles(): import("lit").CSSResult[];
33
+ _initializeDefaults(): void;
34
+ appearance: string;
35
+ defaultSlot: any;
36
+ disabled: boolean;
37
+ disableMax: boolean;
38
+ disableMin: boolean;
39
+ max: number;
40
+ min: number;
41
+ onDark: boolean;
42
+ validity: any;
43
+ /**
44
+ * Sets the value of the counter. If the provided value is undefined, null, or cannot be converted to a number, the internal value will be set to undefined.
45
+ * @param {number|string|undefined|null} val - The value to set for the counter. Can be a number, a string that can be converted to a number, undefined, or null.
46
+ */
47
+ set value(val: number | string | undefined | null);
48
+ /**
49
+ * Gets the current value of the counter.
50
+ * @returns {number|undefined} The current value of the counter, or undefined if the value is not set or invalid.
51
+ */
52
+ get value(): number | undefined;
53
+ /**
54
+ * @private
55
+ */
56
+ private validation;
57
+ /**
58
+ * Dynamically generated icon tag for counter buttons.
59
+ * @private
60
+ * @type {string}
61
+ */
62
+ private iconTag;
63
+ /**
64
+ * @private
65
+ */
66
+ private helpTextTag;
67
+ /**
68
+ * @private
69
+ */
70
+ private runtimeUtils;
71
+ _value: number;
72
+ /**
73
+ * Increments the counter value by 1. If a value is provided, it increments by that amount.
74
+ * @method increment
75
+ * @param {number} [value] - The amount to increment by.
76
+ * @returns {void}
77
+ */
78
+ increment(value?: number): void;
79
+ /**
80
+ * Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.
81
+ * @method decrement
82
+ * @param {number} [value] - The amount to decrement by.
83
+ * @returns {void}
84
+ */
85
+ decrement(value?: number): void;
86
+ /**
87
+ * Initializes the value of the counter.
88
+ * If the current value is undefined, it sets the value to the minimum value.
89
+ * @private
90
+ */
91
+ private initValue;
92
+ /**
93
+ * Determines if the increment button should be disabled based on the current value and extrema.
94
+ *
95
+ * @param {number} extrema - The extreme value (either min or max) to compare against the current value.
96
+ * @returns {boolean} - Returns true if the increment button should be disabled, otherwise false.
97
+ * @private
98
+ */
99
+ private isIncrementDisabled;
100
+ /**
101
+ * Validates value.
102
+ * @param {boolean} [force=false] - Whether to force validation.
103
+ */
104
+ validate(force?: boolean): void;
105
+ firstUpdated(): void;
106
+ /**
107
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
108
+ * @param {string} tagName - The tag name to set as an attribute.
109
+ * @private
110
+ */
111
+ private setTagAttribute;
112
+ /**
113
+ * Handles the change event for the default slot.
114
+ * Updates the defaultSlot property with the trimmed text content of the first assigned node.
115
+ *
116
+ * @param {Event} event - The event object representing the slot change event.
117
+ * @private
118
+ */
119
+ private onDefaultSlotChange;
120
+ /**
121
+ * Sets ariaDescribedByElements on the spinbutton to the slotted description elements,
122
+ * bridging the shadow DOM boundary for screen readers.
123
+ * @param {Event} event - The slotchange event.
124
+ * @private
125
+ */
126
+ private onDescriptionSlotChange;
127
+ updated(changedProperties: any): void;
128
+ /**
129
+ * Returns HTML for the help text and error message.
130
+ * @private
131
+ * @returns {html} - Returns HTML for the help text and error message.
132
+ */
133
+ private renderHelpText;
134
+ render(): import("lit-html").TemplateResult;
135
+ }
136
+ import { LitElement } from "lit";
@@ -0,0 +1,2 @@
1
+ declare const _default: "12.3.2";
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: "9.1.2";
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { AuroCounter } from './auro-counter.js';
2
+ import { AuroCounterGroup } from './auro-counter-group.js';
3
+ export { AuroCounter, AuroCounterGroup };