@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.50

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 (115) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +13 -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 +1292 -79
  5. package/components/bibtemplate/dist/registered.js +1292 -79
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.md +47 -14
  8. package/components/checkbox/demo/api.min.js +47 -34
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +47 -34
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  13. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  14. package/components/checkbox/dist/index.js +47 -34
  15. package/components/checkbox/dist/registered.js +47 -34
  16. package/components/combobox/demo/api.md +112 -8
  17. package/components/combobox/demo/api.min.js +3203 -760
  18. package/components/combobox/demo/index.md +6 -30
  19. package/components/combobox/demo/index.min.js +3203 -760
  20. package/components/combobox/dist/auro-combobox.d.ts +37 -16
  21. package/components/combobox/dist/index.js +3093 -791
  22. package/components/combobox/dist/registered.js +3093 -791
  23. package/components/counter/demo/api.html +1 -0
  24. package/components/counter/demo/api.md +29 -21
  25. package/components/counter/demo/api.min.js +3332 -615
  26. package/components/counter/demo/index.html +1 -0
  27. package/components/counter/demo/index.md +103 -34
  28. package/components/counter/demo/index.min.js +3332 -615
  29. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  30. package/components/counter/dist/auro-counter-group.d.ts +90 -7
  31. package/components/counter/dist/auro-counter.d.ts +6 -0
  32. package/components/counter/dist/helptextVersion.d.ts +2 -0
  33. package/components/counter/dist/iconVersion.d.ts +1 -1
  34. package/components/counter/dist/index.js +3332 -615
  35. package/components/counter/dist/registered.js +3332 -615
  36. package/components/datepicker/demo/api.md +36 -19
  37. package/components/datepicker/demo/api.min.js +14940 -10964
  38. package/components/datepicker/demo/index.md +80 -0
  39. package/components/datepicker/demo/index.min.js +14940 -10964
  40. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  41. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  42. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  43. package/components/datepicker/dist/index.js +11817 -7841
  44. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  45. package/components/datepicker/dist/registered.js +11817 -7841
  46. package/components/dropdown/demo/api.md +25 -12
  47. package/components/dropdown/demo/api.min.js +552 -148
  48. package/components/dropdown/demo/index.md +57 -9
  49. package/components/dropdown/demo/index.min.js +552 -148
  50. package/components/dropdown/dist/auro-dropdown.d.ts +28 -9
  51. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  52. package/components/dropdown/dist/index.js +552 -148
  53. package/components/dropdown/dist/registered.js +552 -148
  54. package/components/form/demo/api.min.js +1 -1
  55. package/components/form/demo/index.min.js +1 -1
  56. package/components/form/dist/index.js +1 -1
  57. package/components/form/dist/registered.js +1 -1
  58. package/components/helptext/dist/index.js +2 -2
  59. package/components/helptext/dist/registered.js +2 -2
  60. package/components/input/README.md +5 -2
  61. package/components/input/demo/api.md +271 -176
  62. package/components/input/demo/api.min.js +958 -272
  63. package/components/input/demo/index.md +48 -32
  64. package/components/input/demo/index.min.js +957 -271
  65. package/components/input/demo/readme.md +5 -2
  66. package/components/input/dist/auro-input.d.ts +23 -15
  67. package/components/input/dist/base-input.d.ts +33 -9
  68. package/components/input/dist/buttonVersion.d.ts +1 -1
  69. package/components/input/dist/iconVersion.d.ts +1 -1
  70. package/components/input/dist/index.js +957 -271
  71. package/components/input/dist/registered.js +957 -271
  72. package/components/layoutElement/dist/index.js +13 -10
  73. package/components/menu/demo/api.html +38 -0
  74. package/components/menu/demo/api.md +68 -7
  75. package/components/menu/demo/api.min.js +278 -42
  76. package/components/menu/demo/index.min.js +278 -42
  77. package/components/menu/dist/auro-menu.d.ts +28 -5
  78. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  79. package/components/menu/dist/iconVersion.d.ts +1 -1
  80. package/components/menu/dist/index.js +278 -42
  81. package/components/menu/dist/registered.js +278 -42
  82. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  83. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  84. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  85. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  86. package/components/radio/demo/api.md +7 -8
  87. package/components/radio/demo/api.min.js +71 -83
  88. package/components/radio/demo/index.min.js +71 -83
  89. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  90. package/components/radio/dist/auro-radio.d.ts +9 -12
  91. package/components/radio/dist/index.js +71 -83
  92. package/components/radio/dist/registered.js +71 -83
  93. package/components/select/demo/api.js +0 -2
  94. package/components/select/demo/api.md +100 -45
  95. package/components/select/demo/api.min.js +3009 -526
  96. package/components/select/demo/index.html +1 -0
  97. package/components/select/demo/index.md +176 -768
  98. package/components/select/demo/index.min.js +3013 -518
  99. package/components/select/dist/auro-select.d.ts +126 -11
  100. package/components/select/dist/helptextVersion.d.ts +2 -0
  101. package/components/select/dist/index.js +2892 -538
  102. package/components/select/dist/registered.js +2892 -538
  103. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  104. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  105. package/package.json +28 -26
  106. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  107. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  108. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  109. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  110. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  111. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  112. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  113. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  114. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  115. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -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[];
@@ -42,6 +43,14 @@ export class AuroCounterGroup extends LitElement {
42
43
  isDropdown: {
43
44
  type: BooleanConstructor;
44
45
  };
46
+ /**
47
+ * If declared, the dropdown will expand to the width of its parent container.
48
+ * Otherwise, the dropdown width will be determined by its content.
49
+ */
50
+ matchWidth: {
51
+ type: BooleanConstructor;
52
+ reflect: boolean;
53
+ };
45
54
  /**
46
55
  * The maximum value allowed for the whole group of counters.
47
56
  */
@@ -94,7 +103,7 @@ export class AuroCounterGroup extends LitElement {
94
103
  * "top" | "right" | "bottom" | "left" |
95
104
  * "bottom-start" | "top-start" | "top-end" |
96
105
  * "right-start" | "right-end" | "bottom-end" |
97
- * "left-start" | "left-end"
106
+ * "left-start" | "left-end".
98
107
  * @default bottom-start
99
108
  */
100
109
  placement: {
@@ -120,6 +129,15 @@ export class AuroCounterGroup extends LitElement {
120
129
  value: {
121
130
  type: ObjectConstructor;
122
131
  };
132
+ /**
133
+ * The current text in the valueText slot.
134
+ * @private
135
+ */
136
+ valueText: {
137
+ type: StringConstructor;
138
+ reflect: boolean;
139
+ attribute: boolean;
140
+ };
123
141
  };
124
142
  /**
125
143
  * Registers the custom element with the browser.
@@ -134,11 +152,13 @@ export class AuroCounterGroup extends LitElement {
134
152
  total: number;
135
153
  validity: any;
136
154
  value: {};
155
+ matchWidth: boolean;
137
156
  isDropdown: boolean;
138
157
  fullscreenBreakpoint: string;
139
158
  largeFullscreenHeadline: boolean;
140
159
  autoPlacement: boolean;
141
160
  noFlip: boolean;
161
+ placement: string;
142
162
  /**
143
163
  * @private
144
164
  */
@@ -168,12 +188,11 @@ export class AuroCounterGroup extends LitElement {
168
188
  */
169
189
  private bibtemplateTag;
170
190
  /**
171
- * Traps keyboard tab interactions within dropdown when open.
191
+ * Dynamically generated helpText tag.
172
192
  * @private
173
- * @param {KeyboardEvent} event - The keyboard event.
174
- * @param {NodeList} counters - The list of counter elements.
193
+ * @type {string}
175
194
  */
176
- private trapKeyboard;
195
+ private helpTextTag;
177
196
  /**
178
197
  * Dynamically disables increment/decrement buttons on a counter based on group value.
179
198
  * This method checks the total aggregated value against the group's min and max properties.
@@ -197,7 +216,6 @@ export class AuroCounterGroup extends LitElement {
197
216
  * @private
198
217
  */
199
218
  private configureDropdownCounters;
200
- keydownHandler: (keydownEvent: any) => void;
201
219
  /**
202
220
  * This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
203
221
  * @private
@@ -224,12 +242,77 @@ export class AuroCounterGroup extends LitElement {
224
242
  * @private
225
243
  */
226
244
  private updateValue;
245
+ /**
246
+ * Updates the value text in the dropdown trigger based on the counters in the counter group.
247
+ * @private
248
+ */
249
+ private updateValueText;
250
+ valueText: any;
227
251
  /**
228
252
  * Validates value.
229
253
  * @param {boolean} [force=false] - Whether to force validation.
230
254
  */
231
255
  validate(force?: boolean): void;
232
256
  updated(changedProperties: any): void;
233
- render(): import("lit-html").TemplateResult;
257
+ firstUpdated(): void;
258
+ /**
259
+ * Render the dropdown structure for the counter group.
260
+ * @returns {TemplateResult} The dropdown template.
261
+ * @private
262
+ */
263
+ private renderCounterDropdown;
264
+ /**
265
+ * Render the dropdown trigger for the dropdown.
266
+ * @returns {TemplateResult} The dropdown trigger template.
267
+ * @private
268
+ */
269
+ private renderDropdownTrigger;
270
+ /**
271
+ * Render the help text for the counter group.
272
+ * @returns {TemplateResult} The help text template.
273
+ * @private
274
+ */
275
+ private renderHelpText;
276
+ /**
277
+ * Render the dropdown bib template for the dropdown.
278
+ * @returns {TemplateResult} The bib template.
279
+ * @private
280
+ */
281
+ private renderBibTemplate;
282
+ /**
283
+ * Render the fullscreen bib slots for the dropdown.
284
+ * @returns {TemplateResult} The fullscreen slots template.
285
+ * @private
286
+ */
287
+ private renderFullscreenSlots;
288
+ /**
289
+ * Render the counter group container.
290
+ * @param {boolean} isInDropdown - Whether the counter group is inside a dropdown.
291
+ * @returns {TemplateResult} The counter group template.
292
+ * @private
293
+ */
294
+ private renderCounterGroup;
295
+ /**
296
+ * Render the classic layout.
297
+ * @returns {TemplateResult} The classic layout template.
298
+ * @private
299
+ */
300
+ private renderLayoutClassic;
301
+ shape: any;
302
+ layout: any;
303
+ size: any;
304
+ /**
305
+ * Render the snowflake layout.
306
+ * @returns {TemplateResult} The snowflake layout template.
307
+ * @private
308
+ */
309
+ private renderLayoutSnowflake;
310
+ /**
311
+ * Renders the component by layout type.
312
+ * @param {string} [ForcedLayout] - Optionally force a specific layout for rendering.
313
+ * @returns {TemplateResult} The layout template.
314
+ * @private
315
+ */
316
+ private renderLayout;
234
317
  }
235
318
  import { LitElement } from "lit";
@@ -83,6 +83,12 @@ export class AuroCounter extends LitElement {
83
83
  */
84
84
  private handleKeyDown;
85
85
  firstUpdated(): void;
86
+ /**
87
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
88
+ * @param {string} tagName - The tag name to set as an attribute.
89
+ * @private
90
+ */
91
+ private setTagAttribute;
86
92
  /**
87
93
  * Handles the change event for the default slot.
88
94
  * Updates the defaultSlot property with the trimmed text content of the first assigned node.
@@ -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;