@aurodesignsystem/auro-formkit 5.8.1 → 5.9.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 (61) hide show
  1. package/CHANGELOG.md +4 -15
  2. package/README.md +4 -4
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +2 -2
  5. package/components/bibtemplate/dist/registered.js +2 -2
  6. package/components/checkbox/demo/api.min.js +1 -1
  7. package/components/checkbox/demo/index.min.js +1 -1
  8. package/components/checkbox/dist/index.js +1 -1
  9. package/components/checkbox/dist/registered.js +1 -1
  10. package/components/combobox/demo/api.md +7 -6
  11. package/components/combobox/demo/api.min.js +1698 -1038
  12. package/components/combobox/demo/index.min.js +1698 -1038
  13. package/components/combobox/dist/auro-combobox.d.ts +10 -8
  14. package/components/combobox/dist/index.js +128 -149
  15. package/components/combobox/dist/registered.js +128 -149
  16. package/components/counter/demo/api.min.js +37 -61
  17. package/components/counter/demo/index.min.js +37 -61
  18. package/components/counter/dist/index.js +37 -61
  19. package/components/counter/dist/registered.js +37 -61
  20. package/components/datepicker/demo/api.min.js +55 -148
  21. package/components/datepicker/demo/index.min.js +55 -148
  22. package/components/datepicker/dist/auro-datepicker.d.ts +1 -1
  23. package/components/datepicker/dist/iconVersion.d.ts +1 -1
  24. package/components/datepicker/dist/index.js +55 -148
  25. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  26. package/components/datepicker/dist/registered.js +55 -148
  27. package/components/dropdown/demo/api.min.js +33 -57
  28. package/components/dropdown/demo/index.min.js +33 -57
  29. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  30. package/components/dropdown/dist/index.js +33 -57
  31. package/components/dropdown/dist/registered.js +33 -57
  32. package/components/form/demo/working.html +1 -1
  33. package/components/input/demo/api.min.js +5 -4
  34. package/components/input/demo/index.min.js +5 -4
  35. package/components/input/dist/base-input.d.ts +1 -1
  36. package/components/input/dist/iconVersion.d.ts +1 -1
  37. package/components/input/dist/index.js +5 -4
  38. package/components/input/dist/registered.js +5 -4
  39. package/components/menu/demo/api.js +4 -0
  40. package/components/menu/demo/api.md +271 -31
  41. package/components/menu/demo/api.min.js +1609 -863
  42. package/components/menu/demo/index.html +1 -0
  43. package/components/menu/demo/index.js +2 -0
  44. package/components/menu/demo/index.md +95 -1
  45. package/components/menu/demo/index.min.js +1544 -812
  46. package/components/menu/dist/auro-menu.context.d.ts +227 -0
  47. package/components/menu/dist/auro-menu.d.ts +98 -53
  48. package/components/menu/dist/auro-menuoption.d.ts +116 -14
  49. package/components/menu/dist/index.js +1457 -796
  50. package/components/menu/dist/registered.js +1456 -807
  51. package/components/radio/demo/api.min.js +1 -1
  52. package/components/radio/demo/index.min.js +1 -1
  53. package/components/radio/dist/index.js +1 -1
  54. package/components/radio/dist/registered.js +1 -1
  55. package/components/select/demo/api.md +8 -7
  56. package/components/select/demo/api.min.js +1617 -1056
  57. package/components/select/demo/index.min.js +1617 -1056
  58. package/components/select/dist/auro-select.d.ts +11 -35
  59. package/components/select/dist/index.js +98 -218
  60. package/components/select/dist/registered.js +98 -218
  61. package/package.json +8 -2
@@ -152,23 +152,11 @@ export class AuroSelect extends AuroElement {
152
152
  type: BooleanConstructor;
153
153
  reflect: boolean;
154
154
  };
155
- /**
156
- * @private
157
- */
158
- optionActive: {
159
- type: ObjectConstructor;
160
- };
161
155
  /**
162
156
  * Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
163
157
  * @type {HTMLElement|Array<HTMLElement>}
164
158
  */
165
159
  optionSelected: HTMLElement | Array<HTMLElement>;
166
- /**
167
- * @private
168
- */
169
- options: {
170
- type: ArrayConstructor;
171
- };
172
160
  /**
173
161
  * Position where the bib should appear relative to the trigger.
174
162
  * Accepted values:
@@ -267,6 +255,13 @@ export class AuroSelect extends AuroElement {
267
255
  reflect: boolean;
268
256
  attribute: boolean;
269
257
  };
258
+ /**
259
+ * @private
260
+ */
261
+ options: {
262
+ type: ArrayConstructor;
263
+ state: boolean;
264
+ };
270
265
  };
271
266
  static get styles(): import("lit").CSSResult[];
272
267
  /**
@@ -327,9 +322,6 @@ export class AuroSelect extends AuroElement {
327
322
  */
328
323
  private privateDefaults;
329
324
  appearance: string;
330
- options: any[] | Element[];
331
- optionActive: any;
332
- optionSelected: any;
333
325
  value: any;
334
326
  fullscreenBreakpoint: string;
335
327
  onDark: boolean;
@@ -389,6 +381,8 @@ export class AuroSelect extends AuroElement {
389
381
  menu: Element;
390
382
  defaultMenuSize: string;
391
383
  defaultMenuShape: string;
384
+ options: any;
385
+ optionSelected: any;
392
386
  /**
393
387
  * Binds all behavior needed to the component after rendering.
394
388
  * @private
@@ -444,26 +438,14 @@ export class AuroSelect extends AuroElement {
444
438
  * @returns {void}
445
439
  */
446
440
  private handleSlotChange;
447
- /**
448
- * Determines the element error state based on the `required` attribute and input value.
449
- * @private
450
- * @returns {void}
451
- */
452
- private generateOptionsArray;
453
441
  /**
454
442
  * Resets all options to their default state.
455
443
  * @private
456
444
  */
457
445
  private clearSelection;
458
446
  firstUpdated(): void;
459
- /**
460
- * Update the menu value. With checks for menu existence. Awaits value update.
461
- * @param {string} value - The value to set in the menu.
462
- * @returns {void}
463
- * @private
464
- */
465
- private updateMenuValue;
466
- updated(changedProperties: any): Promise<void>;
447
+ setMenuValue(value: any): void;
448
+ updated(changedProperties: any): void;
467
449
  /**
468
450
  * Resets component to initial state.
469
451
  * @returns {void}
@@ -487,12 +469,6 @@ export class AuroSelect extends AuroElement {
487
469
  * @private
488
470
  */
489
471
  private _updateNativeSelect;
490
- /**
491
- * Returns HTML for the hidden a11y screen reader content.
492
- * @private
493
- * @returns {html} - Returns HTML for the hidden a11y screen reader content.
494
- */
495
- private renderAriaHtml;
496
472
  /**
497
473
  * Returns HTML for the hidden HTML5 select.
498
474
  * @private