@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.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 (109) hide show
  1. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +2 -2
  3. package/components/bibtemplate/dist/registered.js +2 -2
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +14 -3
  6. package/components/checkbox/demo/index.min.js +14 -3
  7. package/components/checkbox/demo/readme.md +1 -1
  8. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  9. package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
  10. package/components/checkbox/dist/index.js +14 -3
  11. package/components/checkbox/dist/registered.js +14 -3
  12. package/components/combobox/README.md +1 -1
  13. package/components/combobox/demo/api.md +3 -0
  14. package/components/combobox/demo/api.min.js +1479 -395
  15. package/components/combobox/demo/index.html +2 -0
  16. package/components/combobox/demo/index.md +75 -0
  17. package/components/combobox/demo/index.min.js +1479 -395
  18. package/components/combobox/demo/readme.md +1 -1
  19. package/components/combobox/dist/auro-combobox.d.ts +19 -9
  20. package/components/combobox/dist/index.js +1471 -387
  21. package/components/combobox/dist/registered.js +1471 -387
  22. package/components/counter/README.md +1 -1
  23. package/components/counter/demo/api.min.js +433 -104
  24. package/components/counter/demo/index.min.js +433 -104
  25. package/components/counter/demo/readme.md +1 -1
  26. package/components/counter/dist/iconVersion.d.ts +1 -1
  27. package/components/counter/dist/index.js +433 -104
  28. package/components/counter/dist/registered.js +433 -104
  29. package/components/datepicker/README.md +1 -1
  30. package/components/datepicker/demo/api.min.js +1157 -376
  31. package/components/datepicker/demo/index.min.js +1157 -376
  32. package/components/datepicker/demo/readme.md +1 -1
  33. package/components/datepicker/dist/index.js +1156 -375
  34. package/components/datepicker/dist/registered.js +1156 -375
  35. package/components/dropdown/README.md +1 -1
  36. package/components/dropdown/demo/api.md +59 -35
  37. package/components/dropdown/demo/api.min.js +361 -88
  38. package/components/dropdown/demo/index.md +52 -0
  39. package/components/dropdown/demo/index.min.js +361 -88
  40. package/components/dropdown/demo/readme.md +1 -1
  41. package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
  42. package/components/dropdown/dist/index.js +331 -58
  43. package/components/dropdown/dist/registered.js +331 -58
  44. package/components/dropdown/dist/styles/default/style-css.d.ts +2 -0
  45. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  46. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  47. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  48. package/components/form/README.md +1 -1
  49. package/components/form/demo/readme.md +1 -1
  50. package/components/input/README.md +2 -2
  51. package/components/input/demo/api.md +76 -64
  52. package/components/input/demo/api.min.js +747 -295
  53. package/components/input/demo/index.html +1 -1
  54. package/components/input/demo/index.md +49 -4
  55. package/components/input/demo/index.min.js +747 -295
  56. package/components/input/demo/readme.md +2 -2
  57. package/components/input/dist/auro-input.d.ts +97 -3
  58. package/components/input/dist/base-input.d.ts +36 -18
  59. package/components/input/dist/index.js +681 -229
  60. package/components/input/dist/registered.js +681 -229
  61. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  62. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  63. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  64. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  65. package/components/input/dist/styles/default/input-css.d.ts +2 -0
  66. package/components/input/dist/styles/default/label-css.d.ts +2 -0
  67. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  68. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  69. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  70. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  71. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  72. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  73. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  74. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  75. package/components/layoutElement/dist/index.d.ts +1 -0
  76. package/components/layoutElement/dist/index.js +1 -0
  77. package/components/layoutElement/dist/registered.js +1 -0
  78. package/components/menu/README.md +1 -1
  79. package/components/menu/demo/api.min.js +2 -2
  80. package/components/menu/demo/index.min.js +2 -2
  81. package/components/menu/demo/readme.md +1 -1
  82. package/components/menu/dist/iconVersion.d.ts +1 -1
  83. package/components/menu/dist/index.js +2 -2
  84. package/components/menu/dist/registered.js +2 -2
  85. package/components/radio/README.md +1 -1
  86. package/components/radio/demo/api.md +8 -0
  87. package/components/radio/demo/api.min.js +13 -5
  88. package/components/radio/demo/index.min.js +13 -5
  89. package/components/radio/demo/readme.md +1 -1
  90. package/components/radio/dist/auro-radio.d.ts +4 -0
  91. package/components/radio/dist/index.js +13 -5
  92. package/components/radio/dist/registered.js +13 -5
  93. package/components/select/README.md +1 -1
  94. package/components/select/demo/api.html +15 -0
  95. package/components/select/demo/api.md +178 -0
  96. package/components/select/demo/api.min.js +403 -62
  97. package/components/select/demo/index.html +15 -0
  98. package/components/select/demo/index.md +177 -0
  99. package/components/select/demo/index.min.js +403 -62
  100. package/components/select/demo/readme.md +1 -1
  101. package/components/select/dist/auro-select.d.ts +27 -0
  102. package/components/select/dist/index.js +400 -58
  103. package/components/select/dist/registered.js +400 -58
  104. package/package.json +2 -2
  105. /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
  106. /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
  107. /package/components/{input/dist/styles/borders-css.d.ts → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
  108. /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
  109. /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
107
107
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
108
108
 
109
109
  ```html
110
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
110
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-dropdown/+esm"></script>
111
111
  ```
112
112
  <!-- AURO-GENERATED-CONTENT:END -->
113
113
 
@@ -11,7 +11,7 @@
11
11
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
12
12
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
13
13
  */
14
- export class AuroDropdown extends LitElement {
14
+ export class AuroDropdown extends AuroElement {
15
15
  static get properties(): {
16
16
  /**
17
17
  * If declared, bib's position will be automatically calculated where to appear.
@@ -24,7 +24,7 @@ export class AuroDropdown extends LitElement {
24
24
  /**
25
25
  * If declared, applies a border around the trigger slot.
26
26
  */
27
- bordered: {
27
+ simple: {
28
28
  type: BooleanConstructor;
29
29
  reflect: boolean;
30
30
  };
@@ -66,12 +66,18 @@ export class AuroDropdown extends LitElement {
66
66
  attribute: boolean;
67
67
  };
68
68
  /**
69
- * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
69
+ * If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both.
70
70
  */
71
71
  error: {
72
72
  type: BooleanConstructor;
73
73
  reflect: boolean;
74
74
  };
75
+ /**
76
+ * Contains the help text message for the current validity error.
77
+ */
78
+ errorMessage: {
79
+ type: StringConstructor;
80
+ };
75
81
  /**
76
82
  * If declared, the bib will display when focus is applied to the trigger.
77
83
  */
@@ -190,11 +196,6 @@ export class AuroDropdown extends LitElement {
190
196
  };
191
197
  /**
192
198
  * Position where the bib should appear relative to the trigger.
193
- * Accepted values:
194
- * "top" | "right" | "bottom" | "left" |
195
- * "bottom-start" | "top-start" | "top-end" |
196
- * "right-start" | "right-end" | "bottom-end" |
197
- * "left-start" | "left-end"
198
199
  * @default bottom-start
199
200
  */
200
201
  placement: {
@@ -244,20 +245,21 @@ export class AuroDropdown extends LitElement {
244
245
  isBibFullscreen: boolean;
245
246
  matchWidth: boolean;
246
247
  noHideOnThisFocusLoss: boolean;
247
- /**
248
- * @private
249
- */
250
- private triggerContentFocusable;
251
- /**
252
- * @private
253
- */
254
- private showTriggerBorders;
248
+ errorMessage: string;
249
+ shape: string;
250
+ size: string;
251
+ get commonLabelClasses(): {};
252
+ get commonWrapperClasses(): {
253
+ trigger: boolean;
254
+ wrapper: boolean;
255
+ hasFocus: boolean;
256
+ simple: boolean;
257
+ };
255
258
  /**
256
259
  * @private
257
260
  * @returns {void} Internal defaults.
258
261
  */
259
262
  private privateDefaults;
260
- bordered: boolean;
261
263
  chevron: boolean;
262
264
  disabled: boolean;
263
265
  error: boolean;
@@ -268,6 +270,9 @@ export class AuroDropdown extends LitElement {
268
270
  labeled: boolean;
269
271
  a11yRole: string;
270
272
  onDark: boolean;
273
+ showTriggerBorders: boolean;
274
+ triggerContentFocusable: any;
275
+ simple: boolean;
271
276
  placement: string;
272
277
  offset: number;
273
278
  noFlip: boolean;
@@ -301,8 +306,8 @@ export class AuroDropdown extends LitElement {
301
306
  */
302
307
  private helpTextTag;
303
308
  /**
304
- * @private
305
309
  * Creates and dispatches a duplicate focus event on the trigger element.
310
+ * @private
306
311
  * @param {Event} event - The original focus event.
307
312
  */
308
313
  private bindFocusEventToTrigger;
@@ -347,6 +352,19 @@ export class AuroDropdown extends LitElement {
347
352
  * @returns {Boolean}
348
353
  */
349
354
  private isCustomSlotContent;
355
+ /**
356
+ * Function to support @focusin event.
357
+ * @private
358
+ * @return {void}
359
+ */
360
+ private handleFocusin;
361
+ hasFocus: boolean;
362
+ /**
363
+ * Function to support @focusout event.
364
+ * @private
365
+ * @return {void}
366
+ */
367
+ private handleFocusout;
350
368
  /**
351
369
  * Determines if the element or any children are focusable.
352
370
  * @private
@@ -355,9 +373,9 @@ export class AuroDropdown extends LitElement {
355
373
  */
356
374
  private containsFocusableElement;
357
375
  /**
358
- * @private
359
376
  * Sets up event listeners to deliver focus and blur events from nested Auro components within the trigger slot to trigger.
360
377
  * This ensures that focus/blur events originating from within these components are propagated to the trigger element itself.
378
+ * @private
361
379
  */
362
380
  private setupTriggerFocusEventBinding;
363
381
  /**
@@ -401,6 +419,37 @@ export class AuroDropdown extends LitElement {
401
419
  * @description Handles the slot change event for the label slot.
402
420
  */
403
421
  private handleLabelSlotChange;
404
- render(): import("lit-html").TemplateResult;
422
+ /**
423
+ * Returns HTML for the common portion of the layouts.
424
+ * @private
425
+ * @param {Object} helpTextClasses - Classes to apply to the help text container.
426
+ * @returns {html} - Returns HTML.
427
+ */
428
+ private renderBasicHtml;
429
+ /**
430
+ * Returns HTML for the classic layout. Does not support type="*".
431
+ * @private
432
+ * @returns {html} - Returns HTML for the classic layout.
433
+ */
434
+ private renderLayoutClassic;
435
+ /**
436
+ * Returns HTML for the snowflake layout. Does not support type="*".
437
+ * @private
438
+ * @returns {html} - Returns HTML for the snowflake layout.
439
+ */
440
+ private renderLayoutSnowflake;
441
+ /**
442
+ * Returns HTML for the emphasized layout. Does not support type="*".
443
+ * @private
444
+ * @returns {html} - Returns HTML for the emphasized layout.
445
+ */
446
+ private renderLayoutEmphasized;
447
+ /**
448
+ * Logic to determine the layout of the component.
449
+ * @private
450
+ * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
451
+ * @returns {HTMLCollection} - Returns the HTML for the layout.
452
+ */
453
+ private renderLayout;
405
454
  }
406
- import { LitElement } from "lit";
455
+ import { AuroElement } from '../../layoutElement/src/auroElement.js';