@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.2 → 0.0.0-pr624.21

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 (108) 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 +8 -9
  8. package/components/checkbox/demo/api.min.js +30 -24
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +30 -24
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  13. package/components/checkbox/dist/index.js +30 -24
  14. package/components/checkbox/dist/registered.js +30 -24
  15. package/components/combobox/demo/api.md +53 -0
  16. package/components/combobox/demo/api.min.js +2898 -753
  17. package/components/combobox/demo/index.md +6 -0
  18. package/components/combobox/demo/index.min.js +2898 -753
  19. package/components/combobox/dist/auro-combobox.d.ts +12 -12
  20. package/components/combobox/dist/index.js +2646 -642
  21. package/components/combobox/dist/registered.js +2646 -642
  22. package/components/counter/demo/api.md +21 -19
  23. package/components/counter/demo/api.min.js +3648 -929
  24. package/components/counter/demo/index.md +99 -34
  25. package/components/counter/demo/index.min.js +3648 -929
  26. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  27. package/components/counter/dist/auro-counter-group.d.ts +105 -6
  28. package/components/counter/dist/auro-counter.d.ts +6 -0
  29. package/components/counter/dist/helptextVersion.d.ts +2 -0
  30. package/components/counter/dist/iconVersion.d.ts +1 -1
  31. package/components/counter/dist/index.js +3648 -929
  32. package/components/counter/dist/registered.js +3648 -929
  33. package/components/datepicker/demo/api.md +36 -19
  34. package/components/datepicker/demo/api.min.js +11437 -7744
  35. package/components/datepicker/demo/index.md +80 -0
  36. package/components/datepicker/demo/index.min.js +11437 -7744
  37. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  38. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  39. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  40. package/components/datepicker/dist/index.js +13847 -10154
  41. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  42. package/components/datepicker/dist/registered.js +13847 -10154
  43. package/components/dropdown/demo/api.md +6 -7
  44. package/components/dropdown/demo/api.min.js +238 -144
  45. package/components/dropdown/demo/index.md +57 -9
  46. package/components/dropdown/demo/index.min.js +238 -144
  47. package/components/dropdown/dist/auro-dropdown.d.ts +10 -9
  48. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  49. package/components/dropdown/dist/index.js +238 -144
  50. package/components/dropdown/dist/registered.js +238 -144
  51. package/components/form/demo/api.min.js +1 -1
  52. package/components/form/demo/index.min.js +1 -1
  53. package/components/form/dist/index.js +1 -1
  54. package/components/form/dist/registered.js +1 -1
  55. package/components/helptext/dist/index.js +2 -2
  56. package/components/helptext/dist/registered.js +2 -2
  57. package/components/input/demo/api.md +63 -56
  58. package/components/input/demo/api.min.js +983 -269
  59. package/components/input/demo/index.min.js +982 -268
  60. package/components/input/dist/auro-input.d.ts +202 -14
  61. package/components/input/dist/base-input.d.ts +30 -7
  62. package/components/input/dist/buttonVersion.d.ts +1 -1
  63. package/components/input/dist/iconVersion.d.ts +1 -1
  64. package/components/input/dist/index.js +982 -268
  65. package/components/input/dist/registered.js +982 -268
  66. package/components/layoutElement/dist/index.js +13 -10
  67. package/components/menu/demo/api.html +38 -0
  68. package/components/menu/demo/api.md +68 -7
  69. package/components/menu/demo/api.min.js +278 -42
  70. package/components/menu/demo/index.min.js +278 -42
  71. package/components/menu/dist/auro-menu.d.ts +28 -5
  72. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  73. package/components/menu/dist/iconVersion.d.ts +1 -1
  74. package/components/menu/dist/index.js +278 -42
  75. package/components/menu/dist/registered.js +278 -42
  76. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  77. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  78. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  79. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  80. package/components/radio/demo/api.md +2 -2
  81. package/components/radio/demo/api.min.js +10 -7
  82. package/components/radio/demo/index.min.js +10 -7
  83. package/components/radio/dist/auro-radio.d.ts +1 -1
  84. package/components/radio/dist/index.js +10 -7
  85. package/components/radio/dist/registered.js +10 -7
  86. package/components/select/demo/api.js +2 -0
  87. package/components/select/demo/api.md +78 -12
  88. package/components/select/demo/api.min.js +2797 -538
  89. package/components/select/demo/index.html +1 -0
  90. package/components/select/demo/index.md +325 -763
  91. package/components/select/demo/index.min.js +2790 -543
  92. package/components/select/dist/auro-select.d.ts +111 -11
  93. package/components/select/dist/helptextVersion.d.ts +2 -0
  94. package/components/select/dist/index.js +2533 -427
  95. package/components/select/dist/registered.js +2533 -427
  96. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  97. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  98. package/package.json +6 -4
  99. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  100. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  101. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  102. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  103. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  104. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  105. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  106. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  107. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  108. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -6,12 +6,14 @@
6
6
  * @slot label - Defines the content of the label.
7
7
  * @slot helpText - Defines the content of the helpText.
8
8
  * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
9
+ * @slot valueText - Dropdown value text display.
10
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
9
11
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
10
- * @event input - Notifies every time the value prop of the element is changed.
12
+ * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
11
13
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
12
14
  * @csspart helpText - Apply CSS to the help text.
13
15
  */
14
- export class AuroSelect extends LitElement {
16
+ export class AuroSelect extends AuroElement {
15
17
  static get properties(): {
16
18
  /**
17
19
  * If declared, sets the autocomplete attribute for the select element.
@@ -20,6 +22,13 @@ export class AuroSelect extends LitElement {
20
22
  type: StringConstructor;
21
23
  reflect: boolean;
22
24
  };
25
+ /**
26
+ * If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
27
+ */
28
+ forceDisplayValue: {
29
+ type: BooleanConstructor;
30
+ reflect: boolean;
31
+ };
23
32
  /**
24
33
  * If declared, bib's position will be automatically calculated where to appear.
25
34
  * @default false
@@ -36,19 +45,26 @@ export class AuroSelect extends LitElement {
36
45
  reflect: boolean;
37
46
  };
38
47
  /**
39
- * The name for the select element.
48
+ * @private
40
49
  */
41
- name: {
42
- type: StringConstructor;
50
+ isPopoverVisible: {
51
+ type: BooleanConstructor;
43
52
  reflect: boolean;
44
53
  };
45
54
  /**
46
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
55
+ * If declared, the popover and trigger will be set to the same width.
47
56
  */
48
- flexMenuWidth: {
57
+ matchWidth: {
49
58
  type: BooleanConstructor;
50
59
  reflect: boolean;
51
60
  };
61
+ /**
62
+ * The name for the select element.
63
+ */
64
+ name: {
65
+ type: StringConstructor;
66
+ reflect: boolean;
67
+ };
52
68
  /**
53
69
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
54
70
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -130,7 +146,7 @@ export class AuroSelect extends LitElement {
130
146
  * "top" | "right" | "bottom" | "left" |
131
147
  * "bottom-start" | "top-start" | "top-end" |
132
148
  * "right-start" | "right-end" | "bottom-end" |
133
- * "left-start" | "left-end"
149
+ * "left-start" | "left-end".
134
150
  * @default bottom-start
135
151
  */
136
152
  placement: {
@@ -196,6 +212,22 @@ export class AuroSelect extends LitElement {
196
212
  * @private
197
213
  */
198
214
  touched: boolean;
215
+ /**
216
+ * @private
217
+ */
218
+ hasFocus: {
219
+ type: BooleanConstructor;
220
+ reflect: boolean;
221
+ attribute: boolean;
222
+ };
223
+ /**
224
+ * @private
225
+ */
226
+ hasDisplayValueContent: {
227
+ type: BooleanConstructor;
228
+ reflect: boolean;
229
+ attribute: boolean;
230
+ };
199
231
  };
200
232
  static get styles(): import("lit").CSSResult[];
201
233
  /**
@@ -207,10 +239,14 @@ export class AuroSelect extends LitElement {
207
239
  *
208
240
  */
209
241
  static register(name?: string): void;
242
+ matchWidth: boolean;
243
+ shape: string;
244
+ size: string;
210
245
  placement: string;
211
246
  offset: number;
212
247
  noFlip: boolean;
213
248
  autoPlacement: boolean;
249
+ forceDisplayValue: boolean;
214
250
  /**
215
251
  * @private
216
252
  */
@@ -231,10 +267,22 @@ export class AuroSelect extends LitElement {
231
267
  * @private
232
268
  */
233
269
  private bibtemplateTag;
270
+ /**
271
+ * @private
272
+ */
273
+ private helpTextTag;
234
274
  /**
235
275
  * @private
236
276
  */
237
277
  private isHiddenWhileLoading;
278
+ /**
279
+ * @private
280
+ */
281
+ private hasFocus;
282
+ /**
283
+ * @private
284
+ */
285
+ private hasDisplayValueContent;
238
286
  /**
239
287
  * @private
240
288
  * @returns {void} Internal defaults.
@@ -246,6 +294,19 @@ export class AuroSelect extends LitElement {
246
294
  value: any;
247
295
  fullscreenBreakpoint: string;
248
296
  onDark: boolean;
297
+ isPopoverVisible: any;
298
+ /**
299
+ * Returns classmap configuration for html5 input labels in all layouts.
300
+ * @private
301
+ * @returns {void}
302
+ */
303
+ private get commonLabelClasses();
304
+ /**
305
+ * Returns classmap configuration for wrapper elements in each layout.
306
+ * @private
307
+ * @returns {object} - Returns classmap.
308
+ */
309
+ private get commonWrapperClasses();
249
310
  /**
250
311
  * Binds all behavior needed to the dropdown after rendering.
251
312
  * @private
@@ -253,7 +314,6 @@ export class AuroSelect extends LitElement {
253
314
  */
254
315
  private configureDropdown;
255
316
  dropdown: any;
256
- menuWrapper: any;
257
317
  bibtemplate: any;
258
318
  /**
259
319
  * Updates the displayed value in an Auro dropdown component based on optionSelected.
@@ -324,6 +384,13 @@ export class AuroSelect extends LitElement {
324
384
  */
325
385
  private clearSelection;
326
386
  firstUpdated(): void;
387
+ /**
388
+ * Update the menu value. With checks for menu existence. Awaits value update.
389
+ * @param {string} value - The value to set in the menu.
390
+ * @returns void
391
+ * @private
392
+ */
393
+ private updateMenuValue;
327
394
  updated(changedProperties: any): Promise<void>;
328
395
  /**
329
396
  * Resets component to initial state.
@@ -353,6 +420,39 @@ export class AuroSelect extends LitElement {
353
420
  * @private
354
421
  */
355
422
  private _updateNativeSelect;
356
- render(): import("lit-html").TemplateResult;
423
+ renderAriaHtml(): import("lit-html").TemplateResult;
424
+ renderNativeSelect(): import("lit-html").TemplateResult;
425
+ /**
426
+ * Returns HTML for the help text and error message.
427
+ * @private
428
+ * @returns {html} - Returns HTML for the help text and error message.
429
+ */
430
+ private renderHtmlHelpText;
431
+ /**
432
+ * Returns HTML for the emphasized layout.
433
+ * @private
434
+ * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
435
+ */
436
+ private renderLayoutEmphasized;
437
+ /**
438
+ * Returns HTML for the snowflake layout.
439
+ * @private
440
+ * @returns {import("lit").TemplateResult} - Returns HTML for the snowflake layout.
441
+ */
442
+ private renderLayoutSnowflake;
443
+ /**
444
+ * Returns HTML for the classic layout.
445
+ * @private
446
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
447
+ */
448
+ private renderLayoutClassic;
449
+ /**
450
+ * Logic to determine the layout of the component.
451
+ * @private
452
+ * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
453
+ * @returns {void}
454
+ */
455
+ private renderLayout;
456
+ renderBACKUP(): import("lit-html").TemplateResult;
357
457
  }
358
- import { LitElement } from "lit";
458
+ import { AuroElement } from '../../layoutElement/src/auroElement.js';
@@ -0,0 +1,2 @@
1
+ declare const _default: "1.0.0";
2
+ export default _default;