@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.2 → 0.0.0-pr1419.0

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 (231) hide show
  1. package/package.json +32 -31
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  3. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  4. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  5. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  6. package/components/bibtemplate/dist/index.d.ts +0 -2
  7. package/components/bibtemplate/dist/index.js +0 -395
  8. package/components/bibtemplate/dist/registered.js +0 -395
  9. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  10. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  11. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  12. package/components/checkbox/demo/api.md +0 -489
  13. package/components/checkbox/demo/api.min.js +0 -2133
  14. package/components/checkbox/demo/index.md +0 -55
  15. package/components/checkbox/demo/index.min.js +0 -2108
  16. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  17. package/components/checkbox/demo/readme.md +0 -142
  18. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  19. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  20. package/components/checkbox/dist/index.d.ts +0 -3
  21. package/components/checkbox/dist/index.js +0 -2057
  22. package/components/checkbox/dist/registered.js +0 -2058
  23. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  24. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  25. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  26. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  27. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  28. package/components/combobox/demo/api.md +0 -2287
  29. package/components/combobox/demo/api.min.js +0 -17800
  30. package/components/combobox/demo/index.md +0 -196
  31. package/components/combobox/demo/index.min.js +0 -17705
  32. package/components/combobox/demo/keyboardBehavior.md +0 -281
  33. package/components/combobox/demo/readme.md +0 -158
  34. package/components/combobox/dist/auro-combobox.d.ts +0 -566
  35. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -8
  36. package/components/combobox/dist/index.d.ts +0 -2
  37. package/components/combobox/dist/index.js +0 -15604
  38. package/components/combobox/dist/registered.js +0 -15606
  39. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  40. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  41. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  42. package/components/counter/demo/api.md +0 -1285
  43. package/components/counter/demo/api.min.js +0 -8112
  44. package/components/counter/demo/index.md +0 -92
  45. package/components/counter/demo/index.min.js +0 -8093
  46. package/components/counter/demo/keyboardBehavior.md +0 -127
  47. package/components/counter/demo/readme.md +0 -161
  48. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  49. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  50. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  51. package/components/counter/dist/auro-counter.d.ts +0 -136
  52. package/components/counter/dist/buttonVersion.d.ts +0 -2
  53. package/components/counter/dist/iconVersion.d.ts +0 -2
  54. package/components/counter/dist/index.d.ts +0 -3
  55. package/components/counter/dist/index.js +0 -8015
  56. package/components/counter/dist/keyboardStrategy.d.ts +0 -4
  57. package/components/counter/dist/registered.js +0 -8016
  58. package/components/counter/dist/styles/color-css.d.ts +0 -2
  59. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  60. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  61. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  64. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  65. package/components/counter/dist/styles/style-css.d.ts +0 -2
  66. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  67. package/components/datepicker/demo/api.md +0 -1824
  68. package/components/datepicker/demo/api.min.js +0 -24510
  69. package/components/datepicker/demo/index.md +0 -158
  70. package/components/datepicker/demo/index.min.js +0 -24231
  71. package/components/datepicker/demo/keyboardBehavior.md +0 -24
  72. package/components/datepicker/demo/readme.md +0 -137
  73. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  74. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  75. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  76. package/components/datepicker/dist/auro-datepicker.d.ts +0 -715
  77. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  78. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +0 -1
  79. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  80. package/components/datepicker/dist/index.d.ts +0 -2
  81. package/components/datepicker/dist/index.js +0 -24146
  82. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  83. package/components/datepicker/dist/registered.js +0 -24146
  84. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  85. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  98. package/components/datepicker/dist/utilities.d.ts +0 -78
  99. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  100. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  101. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  105. package/components/dropdown/demo/api.md +0 -1358
  106. package/components/dropdown/demo/api.min.js +0 -4894
  107. package/components/dropdown/demo/index.md +0 -283
  108. package/components/dropdown/demo/index.min.js +0 -4829
  109. package/components/dropdown/demo/keyboardBehavior.md +0 -77
  110. package/components/dropdown/demo/readme.md +0 -160
  111. package/components/dropdown/dist/auro-dropdown.d.ts +0 -482
  112. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -128
  113. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +0 -7
  114. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  115. package/components/dropdown/dist/index.d.ts +0 -2
  116. package/components/dropdown/dist/index.js +0 -4722
  117. package/components/dropdown/dist/registered.js +0 -4722
  118. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +0 -2
  119. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +0 -2
  120. package/components/dropdown/dist/styles/classic/color-css.d.ts +0 -2
  121. package/components/dropdown/dist/styles/classic/style-css.d.ts +0 -2
  122. package/components/dropdown/dist/styles/color-css.d.ts +0 -2
  123. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +0 -2
  124. package/components/dropdown/dist/styles/shapeSize-css.d.ts +0 -2
  125. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +0 -2
  126. package/components/dropdown/dist/styles/style-css.d.ts +0 -2
  127. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -2
  128. package/components/form/demo/api.md +0 -319
  129. package/components/form/demo/api.min.js +0 -70505
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -70505
  132. package/components/form/demo/keyboardBehavior.md +0 -0
  133. package/components/form/demo/readme.md +0 -145
  134. package/components/form/dist/auro-form.d.ts +0 -280
  135. package/components/form/dist/index.d.ts +0 -2
  136. package/components/form/dist/index.js +0 -718
  137. package/components/form/dist/registered.d.ts +0 -1
  138. package/components/form/dist/registered.js +0 -718
  139. package/components/form/dist/styles/style-css.d.ts +0 -2
  140. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  141. package/components/helptext/dist/index.d.ts +0 -2
  142. package/components/helptext/dist/index.js +0 -231
  143. package/components/helptext/dist/registered.js +0 -231
  144. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  146. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  147. package/components/input/demo/api.md +0 -1397
  148. package/components/input/demo/api.min.js +0 -7460
  149. package/components/input/demo/index.md +0 -161
  150. package/components/input/demo/index.min.js +0 -7380
  151. package/components/input/demo/keyboardBehavior.md +0 -0
  152. package/components/input/demo/readme.md +0 -134
  153. package/components/input/dist/auro-input.d.ts +0 -206
  154. package/components/input/dist/base-input.d.ts +0 -629
  155. package/components/input/dist/buttonVersion.d.ts +0 -2
  156. package/components/input/dist/i18n.d.ts +0 -18
  157. package/components/input/dist/iconVersion.d.ts +0 -2
  158. package/components/input/dist/index.d.ts +0 -2
  159. package/components/input/dist/index.js +0 -7292
  160. package/components/input/dist/registered.js +0 -7292
  161. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  163. package/components/input/dist/styles/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  167. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  168. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  170. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  171. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  172. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  173. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  174. package/components/input/dist/styles/style-css.d.ts +0 -2
  175. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  176. package/components/input/dist/utilities.d.ts +0 -25
  177. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  178. package/components/layoutElement/dist/index.d.ts +0 -2
  179. package/components/layoutElement/dist/index.js +0 -107
  180. package/components/layoutElement/dist/registered.js +0 -107
  181. package/components/menu/demo/api.md +0 -1200
  182. package/components/menu/demo/api.min.js +0 -2413
  183. package/components/menu/demo/index.md +0 -72
  184. package/components/menu/demo/index.min.js +0 -2306
  185. package/components/menu/demo/keyboardBehavior.md +0 -0
  186. package/components/menu/demo/readme.md +0 -145
  187. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  188. package/components/menu/dist/auro-menu.context.d.ts +0 -239
  189. package/components/menu/dist/auro-menu.d.ts +0 -316
  190. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  191. package/components/menu/dist/iconVersion.d.ts +0 -2
  192. package/components/menu/dist/index.d.ts +0 -4
  193. package/components/menu/dist/index.js +0 -2269
  194. package/components/menu/dist/registered.js +0 -2217
  195. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  197. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  198. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  199. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  200. package/components/radio/demo/api.md +0 -675
  201. package/components/radio/demo/api.min.js +0 -2210
  202. package/components/radio/demo/index.md +0 -73
  203. package/components/radio/demo/index.min.js +0 -2167
  204. package/components/radio/demo/keyboardBehavior.md +0 -0
  205. package/components/radio/demo/readme.md +0 -141
  206. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  207. package/components/radio/dist/auro-radio.d.ts +0 -180
  208. package/components/radio/dist/index.d.ts +0 -3
  209. package/components/radio/dist/index.js +0 -2116
  210. package/components/radio/dist/registered.js +0 -2117
  211. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  212. package/components/radio/dist/styles/color-css.d.ts +0 -2
  213. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  214. package/components/radio/dist/styles/style-css.d.ts +0 -2
  215. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  216. package/components/select/demo/api.md +0 -2378
  217. package/components/select/demo/api.min.js +0 -10400
  218. package/components/select/demo/index.md +0 -355
  219. package/components/select/demo/index.min.js +0 -10307
  220. package/components/select/demo/keyboardBehavior.md +0 -246
  221. package/components/select/demo/readme.md +0 -148
  222. package/components/select/dist/auro-select.d.ts +0 -545
  223. package/components/select/dist/index.d.ts +0 -2
  224. package/components/select/dist/index.js +0 -8218
  225. package/components/select/dist/registered.js +0 -8218
  226. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -11
  227. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  228. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  229. package/components/select/dist/styles/style-css.d.ts +0 -2
  230. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  231. package/custom-elements.json +0 -18768
@@ -1,545 +0,0 @@
1
- /**
2
- * The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
3
- * @customElement auro-select
4
- *
5
- * @slot - Default slot for the menu content.
6
- * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
7
- * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
8
- * @slot label - Defines the content of the label.
9
- * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
10
- * @slot helpText - Defines the content of the helpText.
11
- * @slot valueText - Dropdown value text display.
12
- * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
13
- * @event auroSelect-valueSet - Notifies that the component has a new value set.
14
- * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
15
- * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
16
- * @csspart dropdownTrigger - Apply CSS to the trigger content container.
17
- * @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
18
- * @csspart dropdownSize - Apply size styles to the dropdown bib (height, width, maxHeight, maxWidth only).
19
- * @csspart helpText - Apply CSS to the help text.
20
- */
21
- export class AuroSelect extends AuroElement {
22
- static get properties(): {
23
- /**
24
- * Defines whether the component will be on lighter or darker backgrounds.
25
- * @type {'default' | 'inverse'}
26
- * @default 'default'
27
- */
28
- appearance: "default" | "inverse";
29
- /**
30
- * If declared, bib's position will be automatically calculated where to appear.
31
- */
32
- autoPlacement: {
33
- type: BooleanConstructor;
34
- reflect: boolean;
35
- };
36
- /**
37
- * If declared, sets the autocomplete attribute for the select element.
38
- */
39
- autocomplete: {
40
- type: StringConstructor;
41
- reflect: boolean;
42
- };
43
- /**
44
- * When attribute is present, element shows disabled state.
45
- */
46
- disabled: {
47
- type: BooleanConstructor;
48
- reflect: boolean;
49
- };
50
- /**
51
- * When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
52
- */
53
- error: {
54
- type: StringConstructor;
55
- reflect: boolean;
56
- };
57
- /**
58
- * If declared, make the width of the bib match the width of the content, rather than the trigger.
59
- */
60
- flexMenuWidth: {
61
- type: BooleanConstructor;
62
- reflect: boolean;
63
- };
64
- /**
65
- * When attribute is present, element will be 100% width of container element.
66
- */
67
- fluid: {
68
- type: BooleanConstructor;
69
- reflect: boolean;
70
- };
71
- /**
72
- * If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
73
- */
74
- forceDisplayValue: {
75
- type: BooleanConstructor;
76
- reflect: boolean;
77
- };
78
- /**
79
- * Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
80
- *
81
- * When expanded, the dropdown will automatically display in fullscreen mode
82
- * if the screen size is equal to or smaller than the selected breakpoint.
83
- * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
84
- * @default 'sm'
85
- */
86
- fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
87
- /**
88
- * @private
89
- */
90
- hasDisplayValueContent: {
91
- type: BooleanConstructor;
92
- reflect: boolean;
93
- attribute: boolean;
94
- };
95
- /**
96
- * @private
97
- */
98
- hasFocus: {
99
- type: BooleanConstructor;
100
- reflect: boolean;
101
- attribute: boolean;
102
- };
103
- /**
104
- * @private
105
- */
106
- isPopoverVisible: {
107
- type: BooleanConstructor;
108
- reflect: boolean;
109
- };
110
- /**
111
- * If declared, make bib.fullscreen.headline in HeadingDisplay.
112
- * Otherwise, Heading 600.
113
- */
114
- largeFullscreenHeadline: {
115
- type: BooleanConstructor;
116
- reflect: boolean;
117
- };
118
- /**
119
- * Determines the overall layout of the select component.
120
- * @type {'classic' | 'emphasized' | 'snowflake'}
121
- * @default 'classic'
122
- */
123
- layout: "classic" | "emphasized" | "snowflake";
124
- /**
125
- * If declared, the popover and trigger will be set to the same width.
126
- */
127
- matchWidth: {
128
- type: BooleanConstructor;
129
- reflect: boolean;
130
- };
131
- /**
132
- * Sets multi-select mode, allowing multiple options to be selected at once.
133
- */
134
- multiSelect: {
135
- type: BooleanConstructor;
136
- reflect: boolean;
137
- attribute: string;
138
- };
139
- /**
140
- * The name for the select element.
141
- */
142
- name: {
143
- type: StringConstructor;
144
- reflect: boolean;
145
- };
146
- /**
147
- * When true, checkmark on selected option will no longer be present.
148
- */
149
- noCheckmark: {
150
- type: BooleanConstructor;
151
- reflect: boolean;
152
- };
153
- /**
154
- * If declared, the bib will NOT flip to an alternate position
155
- * when there isn't enough space in the specified `placement`.
156
- */
157
- noFlip: {
158
- type: BooleanConstructor;
159
- reflect: boolean;
160
- };
161
- /**
162
- * If set, disables auto-validation on blur.
163
- */
164
- noValidate: {
165
- type: BooleanConstructor;
166
- reflect: boolean;
167
- };
168
- /**
169
- * Gap between the trigger element and bib.
170
- * @default 0
171
- */
172
- offset: {
173
- type: NumberConstructor;
174
- reflect: boolean;
175
- };
176
- /**
177
- * DEPRECATED - use `appearance="inverse"` instead.
178
- */
179
- onDark: {
180
- type: BooleanConstructor;
181
- reflect: boolean;
182
- };
183
- /**
184
- * @private
185
- */
186
- options: {
187
- type: ArrayConstructor;
188
- state: boolean;
189
- };
190
- /**
191
- * Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
192
- * @type {HTMLElement|Array<HTMLElement>}
193
- */
194
- optionSelected: HTMLElement | Array<HTMLElement>;
195
- /**
196
- * Define custom placeholder text.
197
- */
198
- placeholder: {
199
- type: StringConstructor;
200
- reflect: boolean;
201
- };
202
- /**
203
- * Position where the bib should appear relative to the trigger.
204
- * @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
205
- * @default 'bottom-start'
206
- */
207
- placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
208
- /**
209
- * Populates the `required` attribute on the element. Used for client-side validation.
210
- */
211
- required: {
212
- type: BooleanConstructor;
213
- reflect: boolean;
214
- };
215
- /**
216
- * Sets a custom help text message to display for all validityStates.
217
- */
218
- setCustomValidity: {
219
- type: StringConstructor;
220
- };
221
- /**
222
- * Custom help text message to display when validity = `customError`.
223
- */
224
- setCustomValidityCustomError: {
225
- type: StringConstructor;
226
- };
227
- /**
228
- * Custom help text message to display when validity = `valueMissing`.
229
- */
230
- setCustomValidityValueMissing: {
231
- type: StringConstructor;
232
- };
233
- /**
234
- * Determines the shape of the dropdown bib.
235
- * @type {'classic' | 'pill' | 'pill-left' | 'pill-right' | 'snowflake'}
236
- */
237
- shape: "classic" | "pill" | "pill-left" | "pill-right" | "snowflake";
238
- /**
239
- * If set, the dropdown will shift its position to avoid being cut off by the viewport.
240
- */
241
- shift: {
242
- type: BooleanConstructor;
243
- reflect: boolean;
244
- };
245
- /**
246
- * Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`.
247
- * @type {'lg' | 'xl'}
248
- */
249
- size: "lg" | "xl";
250
- /**
251
- * Indicates whether the input is in a dirty state (has been interacted with).
252
- * @private
253
- */
254
- touched: {
255
- type: BooleanConstructor;
256
- reflect: boolean;
257
- attribute: boolean;
258
- };
259
- /**
260
- * Specifies the `validityState` this element is in.
261
- */
262
- validity: {
263
- type: StringConstructor;
264
- reflect: boolean;
265
- };
266
- /**
267
- * Value selected for the component.
268
- */
269
- value: {
270
- type: StringConstructor;
271
- reflect: boolean;
272
- attribute: string;
273
- };
274
- };
275
- static get styles(): import("lit").CSSResult[];
276
- /**
277
- * This will register this element with the browser.
278
- * @param {string} [name="auro-select"] - The name of element that you want to register to.
279
- *
280
- * @example
281
- * AuroSelect.register("custom-select") // this will register this element to <custom-select/>
282
- *
283
- */
284
- static register(name?: string): void;
285
- matchWidth: boolean;
286
- placement: string;
287
- offset: number;
288
- noFlip: boolean;
289
- shift: boolean;
290
- autoPlacement: boolean;
291
- forceDisplayValue: boolean;
292
- /**
293
- * @private
294
- */
295
- private uniqueId;
296
- /**
297
- * @private
298
- */
299
- private validation;
300
- /**
301
- * @private
302
- */
303
- private runtimeUtils;
304
- /**
305
- * @private
306
- */
307
- private dropdownTag;
308
- /**
309
- * @private
310
- */
311
- private bibtemplateTag;
312
- /**
313
- * @private
314
- */
315
- private helpTextTag;
316
- /**
317
- * @private
318
- */
319
- private isHiddenWhileLoading;
320
- /**
321
- * @private
322
- */
323
- private hasFocus;
324
- /**
325
- * @private
326
- */
327
- private hasDisplayValueContent;
328
- /**
329
- * @private
330
- * @returns {void} Internal defaults.
331
- */
332
- private _initializeDefaults;
333
- appearance: string;
334
- value: any;
335
- fullscreenBreakpoint: string;
336
- onDark: boolean;
337
- isPopoverVisible: any;
338
- shape: string;
339
- size: string;
340
- /**
341
- * Formatted value based on `multiSelect` state.
342
- * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
343
- * @private
344
- * @returns {String|Array<String>}
345
- */
346
- private get formattedValue();
347
- /**
348
- * Returns classmap configuration for html5 input labels in all layouts.
349
- * @private
350
- * @returns {Record<string, boolean>}
351
- */
352
- private get commonLabelClasses();
353
- /**
354
- * Returns the label font class based on layout and selection state.
355
- * @private
356
- * @returns {string} - The font class for the label.
357
- */
358
- private get labelFontClass();
359
- /**
360
- * Whether or not the component has a value.
361
- * @returns {boolean} - Returns true if the component has a value or placeholder.
362
- * @private
363
- */
364
- private get hasValue();
365
- /**
366
- * Binds all behavior needed to the dropdown after rendering.
367
- * @private
368
- * @returns {void}
369
- */
370
- private configureDropdown;
371
- dropdown: any;
372
- optionActive: any;
373
- bibtemplate: any;
374
- /**
375
- * Updates the displayed value in an Auro dropdown component based on optionSelected.
376
- * @private
377
- * @returns {void}
378
- */
379
- private updateDisplayedValue;
380
- /**
381
- * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
382
- * @private
383
- */
384
- private updateMenuShapeSize;
385
- /**
386
- * Sets aria-setsize and aria-posinset on each menu option so screen readers
387
- * can announce position even when the listbox context is broken by
388
- * shadow DOM boundaries.
389
- * @private
390
- * @returns {void}
391
- */
392
- private updateOptionPositions;
393
- /**
394
- * Binds all behavior needed to the menu after rendering.
395
- * @private
396
- * @returns {void}
397
- */
398
- private configureMenu;
399
- menu: Element;
400
- defaultMenuSize: string;
401
- defaultMenuShape: string;
402
- options: any;
403
- optionSelected: any;
404
- /**
405
- * Binds all behavior needed to the component after rendering.
406
- * @private
407
- * @returns {void}
408
- */
409
- private configureSelect;
410
- nativeSelect: HTMLSelectElement;
411
- /**
412
- * Updates the active option in the menu.
413
- * @param {number} index - Index of the option to make active.
414
- */
415
- updateActiveOption(index: number): void;
416
- /**
417
- * Updates the active option in the menu based on keyboard input.
418
- * @private
419
- * @param {string} _key - The key pressed by the user.
420
- * @returns {void}
421
- */
422
- private updateActiveOptionBasedOnKey;
423
- sameLetterTimes: any;
424
- lastLetter: string;
425
- /**
426
- * Manages the visibility of the dropdown based on loading state changes.
427
- *
428
- * This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
429
- * If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
430
- * and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
431
- * hidden, it checks if the active element is within the dropdown and shows it again if true.
432
- *
433
- * @private
434
- * @param {CustomEvent} event - The event object containing details about the loading state change.
435
- * @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
436
- * @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
437
- * @returns {void}
438
- */
439
- private handleMenuLoadingChange;
440
- /**
441
- * Hides the dropdown bib if its open.
442
- * @returns {void}
443
- */
444
- hideBib(): void;
445
- /**
446
- * Shows the dropdown bib if there are options to show.
447
- * @returns {void}
448
- */
449
- showBib(): void;
450
- /**
451
- * Function to support @focusin event.
452
- * @private
453
- * @return {void}
454
- */
455
- private handleFocusin;
456
- touched: boolean;
457
- /**
458
- * Watch for slot changes and recalculate the menuoptions.
459
- * @private
460
- * @param {Event} event - `slotchange` event.
461
- * @returns {void}
462
- */
463
- private handleSlotChange;
464
- /**
465
- * Resets all options to their default state.
466
- * @private
467
- */
468
- private clearSelection;
469
- firstUpdated(): void;
470
- setMenuValue(value: any): void;
471
- /**
472
- * Scrolls the currently active option into view.
473
- * Respects user's motion preferences for accessibility.
474
- * @private
475
- */
476
- private scrollActiveOptionIntoView;
477
- /**
478
- * Scrolls the currently selected option into view.
479
- * Respects user's motion preferences for accessibility.
480
- * @private
481
- */
482
- private scrollSelectedOptionIntoView;
483
- updated(changedProperties: any): void;
484
- /**
485
- * Resets component to initial state.
486
- * @returns {void}
487
- */
488
- reset(): void;
489
- /**
490
- * Validates value.
491
- * @param {boolean} [force=false] - Whether to force validation.
492
- */
493
- validate(force?: boolean): void;
494
- /**
495
- * Syncs the value from the native select element to the component's value.
496
- * @param {Event} event // The change event from the native select element.
497
- * @returns {void}
498
- * @private
499
- */
500
- private _handleNativeSelectChange;
501
- /**
502
- * Updates the native select element's value based on the component's value.
503
- * @returns {void}
504
- * @private
505
- */
506
- private _updateNativeSelect;
507
- /**
508
- * Returns HTML for the hidden HTML5 select.
509
- * @private
510
- * @returns {html} - Returns HTML for the hidden HTML5 select.
511
- */
512
- private renderNativeSelect;
513
- /**
514
- * Returns HTML for the help text and error message.
515
- * @private
516
- * @returns {html} - Returns HTML for the help text and error message.
517
- */
518
- private renderHtmlHelpText;
519
- /**
520
- * Returns HTML for the emphasized layout.
521
- * @private
522
- * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
523
- */
524
- private renderLayoutEmphasized;
525
- /**
526
- * Returns HTML for the snowflake layout.
527
- * @private
528
- * @returns {import("lit").TemplateResult} - Returns HTML for the snowflake layout.
529
- */
530
- private renderLayoutSnowflake;
531
- /**
532
- * Returns HTML for the classic layout.
533
- * @private
534
- * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
535
- */
536
- private renderLayoutClassic;
537
- /**
538
- * Logic to determine the layout of the component.
539
- * @private
540
- * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
541
- * @returns {void}
542
- */
543
- private renderLayout;
544
- }
545
- import { AuroElement } from '../../layoutElement/src/auroElement.js';
@@ -1,2 +0,0 @@
1
- export { AuroSelect };
2
- import { AuroSelect } from './auro-select.js';