@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.8 → 0.0.0-pr624.80

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 (143) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1262 -81
  5. package/components/bibtemplate/dist/registered.js +1262 -81
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.html +16 -10
  8. package/components/checkbox/demo/api.md +49 -15
  9. package/components/checkbox/demo/api.min.js +73 -43
  10. package/components/checkbox/demo/index.html +16 -10
  11. package/components/checkbox/demo/index.md +2 -2
  12. package/components/checkbox/demo/index.min.js +73 -43
  13. package/components/checkbox/demo/readme.html +16 -9
  14. package/components/checkbox/demo/readme.md +1 -1
  15. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  16. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  17. package/components/checkbox/dist/index.js +72 -42
  18. package/components/checkbox/dist/registered.js +72 -42
  19. package/components/combobox/demo/api.html +16 -10
  20. package/components/combobox/demo/api.md +115 -8
  21. package/components/combobox/demo/api.min.js +3102 -921
  22. package/components/combobox/demo/index.html +16 -10
  23. package/components/combobox/demo/index.md +6 -30
  24. package/components/combobox/demo/index.min.js +3102 -921
  25. package/components/combobox/demo/readme.html +16 -9
  26. package/components/combobox/dist/auro-combobox.d.ts +44 -12
  27. package/components/combobox/dist/index.js +3080 -995
  28. package/components/combobox/dist/registered.js +3080 -995
  29. package/components/counter/demo/api.html +17 -10
  30. package/components/counter/demo/api.md +158 -21
  31. package/components/counter/demo/api.min.js +3416 -728
  32. package/components/counter/demo/index.html +17 -10
  33. package/components/counter/demo/index.md +185 -34
  34. package/components/counter/demo/index.min.js +3416 -728
  35. package/components/counter/demo/readme.html +16 -9
  36. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  37. package/components/counter/dist/auro-counter-group.d.ts +161 -11
  38. package/components/counter/dist/auro-counter.d.ts +16 -0
  39. package/components/counter/dist/helptextVersion.d.ts +2 -0
  40. package/components/counter/dist/iconVersion.d.ts +1 -1
  41. package/components/counter/dist/index.js +3416 -728
  42. package/components/counter/dist/registered.js +3416 -728
  43. package/components/datepicker/README.md +1 -1
  44. package/components/datepicker/demo/api.html +16 -10
  45. package/components/datepicker/demo/api.md +59 -28
  46. package/components/datepicker/demo/api.min.js +8486 -4644
  47. package/components/datepicker/demo/index.html +16 -10
  48. package/components/datepicker/demo/index.md +75 -8
  49. package/components/datepicker/demo/index.min.js +8486 -4644
  50. package/components/datepicker/demo/readme.html +16 -9
  51. package/components/datepicker/demo/readme.md +1 -1
  52. package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
  53. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  54. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  55. package/components/datepicker/dist/index.js +7033 -3191
  56. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  57. package/components/datepicker/dist/registered.js +7033 -3191
  58. package/components/dropdown/demo/api.html +16 -10
  59. package/components/dropdown/demo/api.md +82 -275
  60. package/components/dropdown/demo/api.min.js +451 -260
  61. package/components/dropdown/demo/index.html +16 -10
  62. package/components/dropdown/demo/index.md +92 -362
  63. package/components/dropdown/demo/index.min.js +451 -260
  64. package/components/dropdown/demo/readme.html +16 -9
  65. package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
  66. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  67. package/components/dropdown/dist/index.js +450 -259
  68. package/components/dropdown/dist/registered.js +450 -259
  69. package/components/form/demo/api.html +16 -9
  70. package/components/form/demo/api.min.js +2 -2
  71. package/components/form/demo/autocomplete.html +19 -3
  72. package/components/form/demo/index.html +16 -9
  73. package/components/form/demo/index.min.js +2 -2
  74. package/components/form/demo/readme.html +16 -9
  75. package/components/form/demo/working.html +19 -13
  76. package/components/form/dist/index.js +1 -1
  77. package/components/form/dist/registered.js +1 -1
  78. package/components/helptext/dist/index.js +2 -2
  79. package/components/helptext/dist/registered.js +2 -2
  80. package/components/input/README.md +5 -2
  81. package/components/input/demo/api.html +16 -10
  82. package/components/input/demo/api.md +228 -130
  83. package/components/input/demo/api.min.js +909 -247
  84. package/components/input/demo/index.html +16 -10
  85. package/components/input/demo/index.md +48 -32
  86. package/components/input/demo/index.min.js +909 -247
  87. package/components/input/demo/readme.html +16 -9
  88. package/components/input/demo/readme.md +5 -2
  89. package/components/input/dist/auro-input.d.ts +3 -3
  90. package/components/input/dist/base-input.d.ts +38 -10
  91. package/components/input/dist/buttonVersion.d.ts +1 -1
  92. package/components/input/dist/iconVersion.d.ts +1 -1
  93. package/components/input/dist/index.js +908 -246
  94. package/components/input/dist/registered.js +908 -246
  95. package/components/layoutElement/dist/index.js +13 -10
  96. package/components/menu/demo/api.html +32 -10
  97. package/components/menu/demo/api.md +69 -8
  98. package/components/menu/demo/api.min.js +239 -48
  99. package/components/menu/demo/index.html +16 -10
  100. package/components/menu/demo/index.min.js +239 -48
  101. package/components/menu/demo/readme.html +16 -9
  102. package/components/menu/dist/auro-menu.d.ts +41 -7
  103. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  104. package/components/menu/dist/iconVersion.d.ts +1 -1
  105. package/components/menu/dist/index.js +238 -47
  106. package/components/menu/dist/registered.js +238 -47
  107. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  108. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  109. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  110. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  111. package/components/radio/demo/api.html +16 -10
  112. package/components/radio/demo/api.md +39 -9
  113. package/components/radio/demo/api.min.js +91 -93
  114. package/components/radio/demo/index.html +16 -10
  115. package/components/radio/demo/index.min.js +91 -93
  116. package/components/radio/demo/readme.html +16 -9
  117. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  118. package/components/radio/dist/auro-radio.d.ts +9 -12
  119. package/components/radio/dist/index.js +90 -92
  120. package/components/radio/dist/registered.js +90 -92
  121. package/components/select/demo/api.html +16 -10
  122. package/components/select/demo/api.js +0 -2
  123. package/components/select/demo/api.md +150 -121
  124. package/components/select/demo/api.min.js +2184 -704
  125. package/components/select/demo/index.html +17 -11
  126. package/components/select/demo/index.md +1066 -259
  127. package/components/select/demo/index.min.js +2186 -694
  128. package/components/select/demo/readme.html +16 -9
  129. package/components/select/dist/auro-select.d.ts +59 -21
  130. package/components/select/dist/index.js +2107 -711
  131. package/components/select/dist/registered.js +2107 -711
  132. package/package.json +31 -28
  133. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  134. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
  135. /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
  136. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  137. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  138. /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
  139. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  140. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  141. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  142. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  143. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -16,17 +16,24 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Generator | auro-counter custom element</title>
20
- <link
21
- rel="stylesheet"
22
- type="text/css"
23
- href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
- />
25
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
19
+ <title>Auro Web Component Demo | auro-counter</title>
20
+
21
+ <!-- Prism.js Stylesheet -->
22
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
+
24
+ <!-- Legacy reference is still needed to support auro-counter's use of legacy token values at this time -->
25
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
+
27
+ <!-- Design Token Alaska Theme -->
28
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
+
30
+ <!-- Webcore Stylesheet Alaska Theme -->
31
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
+
33
+ <!-- Demo Specific Styles -->
27
34
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
28
35
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
29
- </head>
36
+ </head>
30
37
  <body class="auro-markdown">
31
38
  <main></main>
32
39
 
@@ -9,4 +9,6 @@ export class AuroCounterButton {
9
9
  *
10
10
  */
11
11
  static register(name?: string): void;
12
+ size: string;
13
+ shape: string;
12
14
  }
@@ -12,6 +12,7 @@
12
12
  * @slot label - Dropdown label content. Only used when `isDropdown` is true.
13
13
  * @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
14
14
  * @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
15
+ * @property {'classic'|'snowflake'} layout - Determines the layout style of the counter group when it is a dropdown. Options are 'classic' or 'snowflake'. Default is 'classic'.
15
16
  */
16
17
  export class AuroCounterGroup extends LitElement {
17
18
  static get styles(): import("lit").CSSResult[];
@@ -24,6 +25,23 @@ export class AuroCounterGroup extends LitElement {
24
25
  type: BooleanConstructor;
25
26
  reflect: boolean;
26
27
  };
28
+ /**
29
+ * The current error message to display when the component is invalid.
30
+ */
31
+ error: {
32
+ type: StringConstructor;
33
+ reflect: boolean;
34
+ };
35
+ /**
36
+ * The current error message to display when the component is invalid.
37
+ * This is set by validation and is not available to consumers.
38
+ * @private
39
+ */
40
+ errorMessage: {
41
+ type: StringConstructor;
42
+ reflect: boolean;
43
+ attribute: boolean;
44
+ };
27
45
  /**
28
46
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
29
47
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -42,6 +60,14 @@ export class AuroCounterGroup extends LitElement {
42
60
  isDropdown: {
43
61
  type: BooleanConstructor;
44
62
  };
63
+ /**
64
+ * If declared, the dropdown will expand to the width of its parent container.
65
+ * Otherwise, the dropdown width will be determined by its content.
66
+ */
67
+ matchWidth: {
68
+ type: BooleanConstructor;
69
+ reflect: boolean;
70
+ };
45
71
  /**
46
72
  * The maximum value allowed for the whole group of counters.
47
73
  */
@@ -94,7 +120,7 @@ export class AuroCounterGroup extends LitElement {
94
120
  * "top" | "right" | "bottom" | "left" |
95
121
  * "bottom-start" | "top-start" | "top-end" |
96
122
  * "right-start" | "right-end" | "bottom-end" |
97
- * "left-start" | "left-end"
123
+ * "left-start" | "left-end".
98
124
  * @default bottom-start
99
125
  */
100
126
  placement: {
@@ -120,6 +146,15 @@ export class AuroCounterGroup extends LitElement {
120
146
  value: {
121
147
  type: ObjectConstructor;
122
148
  };
149
+ /**
150
+ * The current text in the valueText slot.
151
+ * @private
152
+ */
153
+ valueText: {
154
+ type: StringConstructor;
155
+ reflect: boolean;
156
+ attribute: boolean;
157
+ };
123
158
  };
124
159
  /**
125
160
  * Registers the custom element with the browser.
@@ -134,11 +169,13 @@ export class AuroCounterGroup extends LitElement {
134
169
  total: number;
135
170
  validity: any;
136
171
  value: {};
172
+ matchWidth: boolean;
137
173
  isDropdown: boolean;
138
174
  fullscreenBreakpoint: string;
139
175
  largeFullscreenHeadline: boolean;
140
176
  autoPlacement: boolean;
141
177
  noFlip: boolean;
178
+ placement: string;
142
179
  /**
143
180
  * @private
144
181
  */
@@ -155,6 +192,21 @@ export class AuroCounterGroup extends LitElement {
155
192
  * @private
156
193
  */
157
194
  private validation;
195
+ /**
196
+ * Updates the aggregate value based on the values of contained auro-counter components.
197
+ * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
198
+ * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
199
+ * @private
200
+ */
201
+ private updateValue;
202
+ /**
203
+ * Updates the validity of the counter group based on the validity of its counters.
204
+ * This method checks all counters within the group, determines if any are invalid, and updates the group's validity state and error message accordingly.
205
+ * If any counter is invalid, it generates a combined error message from all invalid counters.
206
+ * @returns {void}
207
+ * @private
208
+ */
209
+ private updateValidity;
158
210
  /**
159
211
  * Dynamically generated dropdown tag.
160
212
  * @private
@@ -168,12 +220,15 @@ export class AuroCounterGroup extends LitElement {
168
220
  */
169
221
  private bibtemplateTag;
170
222
  /**
171
- * Traps keyboard tab interactions within dropdown when open.
223
+ * Dynamically generated helpText tag.
172
224
  * @private
173
- * @param {KeyboardEvent} event - The keyboard event.
174
- * @param {NodeList} counters - The list of counter elements.
225
+ * @type {string}
175
226
  */
176
- private trapKeyboard;
227
+ private helpTextTag;
228
+ /**
229
+ * @private
230
+ */
231
+ private iconTag;
177
232
  /**
178
233
  * Dynamically disables increment/decrement buttons on a counter based on group value.
179
234
  * This method checks the total aggregated value against the group's min and max properties.
@@ -190,6 +245,38 @@ export class AuroCounterGroup extends LitElement {
190
245
  * @private
191
246
  */
192
247
  private configureCounters;
248
+ /**
249
+ * Renders help text error messages.
250
+ * @param {Array<string>} messages - The error messages to render.
251
+ * @returns {TemplateResult[]} - The rendered error messages rendered in a TemplateResult.
252
+ * @private
253
+ */
254
+ private renderHelpTextErrors;
255
+ /**
256
+ * Gets and returns an array of counters in an invalid state.
257
+ * @returns {Array<HTMLElement>} - Returns an array of invalid counters.
258
+ * @param {NodeList} counters - The NodeList of counter elements to check.
259
+ * @private
260
+ */
261
+ private getInvalidCounters;
262
+ /**
263
+ * Gets all valid error messages from errored counters.
264
+ * @param {NodeList} invalidCounters - The NodeList of counter elements to check.
265
+ * @returns {Array<string>} - Returns an array of error messages from invalid counters.
266
+ * @private
267
+ */
268
+ private getErrorMessages;
269
+ errorMessage: any;
270
+ /**
271
+ * Hides the dropdown bib if its open.
272
+ * @returns {void}
273
+ */
274
+ hideBib(): void;
275
+ /**
276
+ * Shows the dropdown bib if there are options to show.
277
+ * @returns {void}
278
+ */
279
+ showBib(): void;
193
280
  /**
194
281
  * Configures the dropdown counters by selecting all `auro-counter` elements,
195
282
  * appending them to the `auro-counter-wrapper` element within the shadow DOM,
@@ -197,7 +284,6 @@ export class AuroCounterGroup extends LitElement {
197
284
  * @private
198
285
  */
199
286
  private configureDropdownCounters;
200
- keydownHandler: (keydownEvent: any) => void;
201
287
  /**
202
288
  * This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
203
289
  * @private
@@ -218,18 +304,82 @@ export class AuroCounterGroup extends LitElement {
218
304
  */
219
305
  private safeNumberConversion;
220
306
  /**
221
- * Updates the aggregate value based on the values of contained auro-counter components.
222
- * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
223
- * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
307
+ * Updates the value text in the dropdown trigger based on the counters in the counter group.
224
308
  * @private
225
309
  */
226
- private updateValue;
310
+ private updateValueText;
311
+ valueText: any;
227
312
  /**
228
313
  * Validates value.
229
314
  * @param {boolean} [force=false] - Whether to force validation.
230
315
  */
231
316
  validate(force?: boolean): void;
232
317
  updated(changedProperties: any): void;
233
- render(): import("lit-html").TemplateResult;
318
+ firstUpdated(): void;
319
+ /**
320
+ * Returns HTML for the help text and error message.
321
+ * @private
322
+ * @returns {html} - Returns HTML for the help text and error message.
323
+ */
324
+ private renderHelpText;
325
+ /**
326
+ * Returns HTML for the validation error icon.
327
+ * @private
328
+ * @returns {html} - Returns HTML for the validation error icon.
329
+ */
330
+ private renderValidationErrorIcon;
331
+ /**
332
+ * Render the dropdown structure for the counter group.
333
+ * @returns {TemplateResult} The dropdown template.
334
+ * @private
335
+ */
336
+ private renderCounterDropdown;
337
+ /**
338
+ * Render the dropdown trigger for the dropdown.
339
+ * @returns {TemplateResult} The dropdown trigger template.
340
+ * @private
341
+ */
342
+ private renderDropdownTrigger;
343
+ /**
344
+ * Render the dropdown bib template for the dropdown.
345
+ * @returns {TemplateResult} The bib template.
346
+ * @private
347
+ */
348
+ private renderBibTemplate;
349
+ /**
350
+ * Render the fullscreen bib slots for the dropdown.
351
+ * @returns {TemplateResult} The fullscreen slots template.
352
+ * @private
353
+ */
354
+ private renderFullscreenSlots;
355
+ /**
356
+ * Render the counter group container.
357
+ * @param {boolean} isInDropdown - Whether the counter group is inside a dropdown.
358
+ * @returns {TemplateResult} The counter group template.
359
+ * @private
360
+ */
361
+ private renderCounterGroup;
362
+ /**
363
+ * Render the classic layout.
364
+ * @returns {TemplateResult} The classic layout template.
365
+ * @private
366
+ */
367
+ private renderLayoutClassic;
368
+ shape: any;
369
+ layout: any;
370
+ size: any;
371
+ /**
372
+ * Render the snowflake layout.
373
+ * @returns {TemplateResult} The snowflake layout template.
374
+ * @private
375
+ */
376
+ private renderLayoutSnowflake;
377
+ /**
378
+ * Renders the component by layout type.
379
+ * @param {string} [ForcedLayout] - Optionally force a specific layout for rendering.
380
+ * @returns {TemplateResult} The layout template.
381
+ * @private
382
+ */
383
+ private renderLayout;
234
384
  }
235
385
  import { LitElement } from "lit";
@@ -42,6 +42,10 @@ export class AuroCounter extends LitElement {
42
42
  * @type {string}
43
43
  */
44
44
  private iconTag;
45
+ /**
46
+ * @private
47
+ */
48
+ private helpTextTag;
45
49
  /**
46
50
  * Increments the counter value by 1. If a value is provided, it increments by that amount.
47
51
  * @method increment
@@ -83,6 +87,12 @@ export class AuroCounter extends LitElement {
83
87
  */
84
88
  private handleKeyDown;
85
89
  firstUpdated(): void;
90
+ /**
91
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
92
+ * @param {string} tagName - The tag name to set as an attribute.
93
+ * @private
94
+ */
95
+ private setTagAttribute;
86
96
  /**
87
97
  * Handles the change event for the default slot.
88
98
  * Updates the defaultSlot property with the trimmed text content of the first assigned node.
@@ -92,6 +102,12 @@ export class AuroCounter extends LitElement {
92
102
  */
93
103
  private onDefaultSlotChange;
94
104
  updated(changedProperties: any): void;
105
+ /**
106
+ * Returns HTML for the help text and error message.
107
+ * @private
108
+ * @returns {html} - Returns HTML for the help text and error message.
109
+ */
110
+ private renderHelpText;
95
111
  render(): import("lit-html").TemplateResult;
96
112
  }
97
113
  import { LitElement } from "lit";
@@ -0,0 +1,2 @@
1
+ declare const _default: "1.0.0";
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "8.0.3";
1
+ declare const _default: "8.0.4";
2
2
  export default _default;