@aurodesignsystem-dev/auro-formkit 0.0.0-pr1379.0 → 0.0.0-pr1379.10

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 (226) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +87 -113
  3. package/components/combobox/demo/keyboardBehavior.html +81 -0
  4. package/components/counter/demo/keyboardBehavior.html +81 -0
  5. package/components/datepicker/demo/keyboard-behavior.html +81 -0
  6. package/components/dropdown/demo/keyboardBehavior.html +81 -0
  7. package/components/select/demo/keyboardBehavior.html +81 -0
  8. package/package.json +64 -53
  9. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  10. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  11. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  12. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  13. package/components/bibtemplate/dist/index.d.ts +0 -2
  14. package/components/bibtemplate/dist/index.js +0 -395
  15. package/components/bibtemplate/dist/registered.js +0 -395
  16. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  17. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  18. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  19. package/components/checkbox/demo/api.md +0 -489
  20. package/components/checkbox/demo/api.min.js +0 -2133
  21. package/components/checkbox/demo/index.md +0 -55
  22. package/components/checkbox/demo/index.min.js +0 -2108
  23. package/components/checkbox/demo/readme.md +0 -142
  24. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  25. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  26. package/components/checkbox/dist/index.d.ts +0 -3
  27. package/components/checkbox/dist/index.js +0 -2057
  28. package/components/checkbox/dist/registered.js +0 -2058
  29. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  30. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  31. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  32. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  33. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  34. package/components/combobox/demo/api.md +0 -2287
  35. package/components/combobox/demo/api.min.js +0 -17549
  36. package/components/combobox/demo/index.md +0 -196
  37. package/components/combobox/demo/index.min.js +0 -17454
  38. package/components/combobox/demo/readme.md +0 -158
  39. package/components/combobox/dist/auro-combobox.d.ts +0 -552
  40. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -6
  41. package/components/combobox/dist/index.d.ts +0 -2
  42. package/components/combobox/dist/index.js +0 -15474
  43. package/components/combobox/dist/registered.js +0 -15476
  44. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  45. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  46. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  47. package/components/counter/demo/api.md +0 -1285
  48. package/components/counter/demo/api.min.js +0 -7993
  49. package/components/counter/demo/index.md +0 -92
  50. package/components/counter/demo/index.min.js +0 -7974
  51. package/components/counter/demo/readme.md +0 -161
  52. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  53. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  54. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  55. package/components/counter/dist/auro-counter.d.ts +0 -126
  56. package/components/counter/dist/buttonVersion.d.ts +0 -2
  57. package/components/counter/dist/iconVersion.d.ts +0 -2
  58. package/components/counter/dist/index.d.ts +0 -3
  59. package/components/counter/dist/index.js +0 -7896
  60. package/components/counter/dist/registered.js +0 -7897
  61. package/components/counter/dist/styles/color-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  64. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  65. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  66. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  67. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  68. package/components/counter/dist/styles/style-css.d.ts +0 -2
  69. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  70. package/components/datepicker/demo/api.md +0 -1824
  71. package/components/datepicker/demo/api.min.js +0 -24530
  72. package/components/datepicker/demo/index.md +0 -158
  73. package/components/datepicker/demo/index.min.js +0 -24251
  74. package/components/datepicker/demo/readme.md +0 -137
  75. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  76. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  77. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  78. package/components/datepicker/dist/auro-datepicker.d.ts +0 -722
  79. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  80. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  81. package/components/datepicker/dist/index.d.ts +0 -2
  82. package/components/datepicker/dist/index.js +0 -24166
  83. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  84. package/components/datepicker/dist/registered.js +0 -24166
  85. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  98. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  99. package/components/datepicker/dist/utilities.d.ts +0 -78
  100. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  101. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  105. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  106. package/components/dropdown/demo/api.md +0 -1358
  107. package/components/dropdown/demo/api.min.js +0 -4853
  108. package/components/dropdown/demo/index.md +0 -283
  109. package/components/dropdown/demo/index.min.js +0 -4788
  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 -155
  113. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  114. package/components/dropdown/dist/index.d.ts +0 -2
  115. package/components/dropdown/dist/index.js +0 -4685
  116. package/components/dropdown/dist/keyboardUtils.d.ts +0 -18
  117. package/components/dropdown/dist/registered.js +0 -4685
  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 -69996
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -69996
  132. package/components/form/demo/readme.md +0 -145
  133. package/components/form/dist/auro-form.d.ts +0 -280
  134. package/components/form/dist/index.d.ts +0 -2
  135. package/components/form/dist/index.js +0 -718
  136. package/components/form/dist/registered.d.ts +0 -1
  137. package/components/form/dist/registered.js +0 -718
  138. package/components/form/dist/styles/style-css.d.ts +0 -2
  139. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  140. package/components/helptext/dist/index.d.ts +0 -2
  141. package/components/helptext/dist/index.js +0 -231
  142. package/components/helptext/dist/registered.js +0 -231
  143. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  144. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  146. package/components/input/demo/api.md +0 -1397
  147. package/components/input/demo/api.min.js +0 -7435
  148. package/components/input/demo/index.md +0 -161
  149. package/components/input/demo/index.min.js +0 -7355
  150. package/components/input/demo/readme.md +0 -134
  151. package/components/input/dist/auro-input.d.ts +0 -195
  152. package/components/input/dist/base-input.d.ts +0 -628
  153. package/components/input/dist/buttonVersion.d.ts +0 -2
  154. package/components/input/dist/i18n.d.ts +0 -18
  155. package/components/input/dist/iconVersion.d.ts +0 -2
  156. package/components/input/dist/index.d.ts +0 -2
  157. package/components/input/dist/index.js +0 -7278
  158. package/components/input/dist/registered.js +0 -7278
  159. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  160. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  161. package/components/input/dist/styles/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  163. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  167. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  168. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  170. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  171. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  172. package/components/input/dist/styles/style-css.d.ts +0 -2
  173. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  174. package/components/input/dist/utilities.d.ts +0 -25
  175. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  176. package/components/layoutElement/dist/index.d.ts +0 -2
  177. package/components/layoutElement/dist/index.js +0 -107
  178. package/components/layoutElement/dist/registered.js +0 -107
  179. package/components/menu/demo/api.md +0 -1200
  180. package/components/menu/demo/api.min.js +0 -2292
  181. package/components/menu/demo/index.md +0 -72
  182. package/components/menu/demo/index.min.js +0 -2185
  183. package/components/menu/demo/readme.md +0 -145
  184. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  185. package/components/menu/dist/auro-menu.context.d.ts +0 -227
  186. package/components/menu/dist/auro-menu.d.ts +0 -324
  187. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  188. package/components/menu/dist/iconVersion.d.ts +0 -2
  189. package/components/menu/dist/index.d.ts +0 -4
  190. package/components/menu/dist/index.js +0 -2148
  191. package/components/menu/dist/registered.js +0 -2096
  192. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  193. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  194. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  195. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  197. package/components/radio/demo/api.md +0 -675
  198. package/components/radio/demo/api.min.js +0 -2210
  199. package/components/radio/demo/index.md +0 -73
  200. package/components/radio/demo/index.min.js +0 -2167
  201. package/components/radio/demo/readme.md +0 -141
  202. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  203. package/components/radio/dist/auro-radio.d.ts +0 -180
  204. package/components/radio/dist/index.d.ts +0 -3
  205. package/components/radio/dist/index.js +0 -2116
  206. package/components/radio/dist/registered.js +0 -2117
  207. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  208. package/components/radio/dist/styles/color-css.d.ts +0 -2
  209. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  210. package/components/radio/dist/styles/style-css.d.ts +0 -2
  211. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  212. package/components/select/demo/api.md +0 -2378
  213. package/components/select/demo/api.min.js +0 -10133
  214. package/components/select/demo/index.md +0 -355
  215. package/components/select/demo/index.min.js +0 -10040
  216. package/components/select/demo/readme.md +0 -148
  217. package/components/select/dist/auro-select.d.ts +0 -545
  218. package/components/select/dist/index.d.ts +0 -2
  219. package/components/select/dist/index.js +0 -8072
  220. package/components/select/dist/registered.js +0 -8072
  221. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -8
  222. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  223. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  224. package/components/select/dist/styles/style-css.d.ts +0 -2
  225. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  226. package/custom-elements.json +0 -18656
@@ -1,552 +0,0 @@
1
- /**
2
- * The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
3
- * @customElement auro-combobox
4
- *
5
- * @slot - Default slot for the menu content.
6
- * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7
- * @slot ariaLabel.input.clear - Sets aria-label on clear button
8
- * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
9
- * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
10
- * @slot label - Defines the content of the label.
11
- * @slot helpText - Defines the content of the helpText.
12
- * @slot displayValue - Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts.
13
- * @event auroCombobox-valueSet - (Deprecated) Notifies that the component has a new value set.
14
- * @event input - Notifies that the component has a new value set.
15
- * @event inputValue - Notifies that the components internal HTML5 input value has changed.
16
- * @event auroFormElement-validated - Notifies that the component value(s) have been validated.
17
- */
18
- export class AuroCombobox extends AuroElement {
19
- static get properties(): {
20
- /**
21
- * Defines whether the component will be on lighter or darker backgrounds.
22
- * @property {'default' | 'inverse'} appearance - The visual appearance of the component.
23
- * @default 'default'
24
- */
25
- appearance: {
26
- type: StringConstructor;
27
- reflect: boolean;
28
- };
29
- /**
30
- * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
31
- */
32
- autocomplete: {
33
- type: StringConstructor;
34
- reflect: boolean;
35
- };
36
- /**
37
- * If declared, bib's position will be automatically calculated where to appear.
38
- */
39
- autoPlacement: {
40
- type: BooleanConstructor;
41
- reflect: boolean;
42
- };
43
- /**
44
- * Array of available options to display in the dropdown.
45
- * @private
46
- */
47
- availableOptions: {
48
- state: boolean;
49
- type: ArrayConstructor;
50
- reflect: boolean;
51
- };
52
- /**
53
- * Sets the behavior of the combobox, "filter" or "suggestion".
54
- * "filter" requires the user to select an option from the menu.
55
- * "suggestion" allows the user to enter a value not present in the menu options.
56
- * @type {'filter' | 'suggestion'}
57
- * @default 'suggestion'
58
- */
59
- behavior: "filter" | "suggestion";
60
- /**
61
- * When attribute is present auro-menu will apply check marks to selected options.
62
- */
63
- checkmark: {
64
- type: BooleanConstructor;
65
- reflect: boolean;
66
- };
67
- /**
68
- * If set, disables the combobox.
69
- */
70
- disabled: {
71
- type: BooleanConstructor;
72
- reflect: boolean;
73
- };
74
- /**
75
- * ID for the dropdown.
76
- * @private
77
- */
78
- dropdownId: {
79
- type: StringConstructor;
80
- reflect: boolean;
81
- attribute: boolean;
82
- };
83
- /**
84
- * Whether or not the dropdown is open.
85
- * @private
86
- */
87
- dropdownOpen: {
88
- type: BooleanConstructor;
89
- reflect: boolean;
90
- attribute: boolean;
91
- };
92
- /**
93
- * If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked.
94
- */
95
- dvInputOnly: {
96
- type: BooleanConstructor;
97
- reflect: boolean;
98
- };
99
- /**
100
- * When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
101
- */
102
- error: {
103
- type: StringConstructor;
104
- reflect: boolean;
105
- };
106
- /**
107
- * Specifies the input mask format.
108
- */
109
- format: {
110
- type: StringConstructor;
111
- reflect: boolean;
112
- };
113
- /** Exposes inputmode attribute for input. */
114
- inputmode: {
115
- type: StringConstructor;
116
- attribute: boolean;
117
- reflect: boolean;
118
- };
119
- /**
120
- * Sets the layout of the combobox.
121
- * @type {'classic' | 'emphasized' | 'snowflake'}
122
- * @default 'classic'
123
- */
124
- layout: "classic" | "emphasized" | "snowflake";
125
- /**
126
- * If declared, the popover and trigger will be set to the same width.
127
- * @private
128
- */
129
- matchWidth: {
130
- type: BooleanConstructor;
131
- reflect: boolean;
132
- };
133
- /**
134
- * If set, combobox will not filter menuoptions based on input.
135
- */
136
- noFilter: {
137
- type: BooleanConstructor;
138
- reflect: boolean;
139
- };
140
- /**
141
- * If declared, the bib will NOT flip to an alternate position
142
- * when there isn't enough space in the specified `placement`.
143
- */
144
- noFlip: {
145
- type: BooleanConstructor;
146
- reflect: boolean;
147
- };
148
- /**
149
- * If declared, the dropdown will shift its position to avoid being cut off by the viewport.
150
- */
151
- shift: {
152
- type: BooleanConstructor;
153
- reflect: boolean;
154
- };
155
- /**
156
- * If set, disables auto-validation on blur.
157
- */
158
- noValidate: {
159
- type: BooleanConstructor;
160
- reflect: boolean;
161
- };
162
- /**
163
- * Gap between the trigger element and bib.
164
- * @default 0
165
- */
166
- offset: {
167
- type: NumberConstructor;
168
- reflect: boolean;
169
- };
170
- /**
171
- * DEPRECATED - use `appearance="inverse"` instead.
172
- */
173
- onDark: {
174
- type: BooleanConstructor;
175
- reflect: boolean;
176
- };
177
- /**
178
- * Specifies the current selected option.
179
- * @type {HTMLElement}
180
- */
181
- optionSelected: HTMLElement;
182
- /**
183
- * If declared, selecting a menu option will not change the input value. By doing so,
184
- * the current menu filter will be preserved and the user can continue from their last
185
- * filter state. It is recommended to use this in combination with the `displayValue` slot.
186
- */
187
- persistInput: {
188
- type: BooleanConstructor;
189
- reflect: boolean;
190
- };
191
- /**
192
- * Position where the bib should appear relative to the trigger.
193
- * @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
194
- * @default 'bottom-start'
195
- */
196
- placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
197
- /**
198
- * Define custom placeholder text, only supported by date input formats.
199
- */
200
- placeholder: {
201
- type: StringConstructor;
202
- reflect: boolean;
203
- };
204
- /**
205
- * Populates the `required` attribute on the input. Used for client-side validation.
206
- */
207
- required: {
208
- type: BooleanConstructor;
209
- reflect: boolean;
210
- };
211
- /**
212
- * Sets a custom help text message to display for all validityStates.
213
- */
214
- setCustomValidity: {
215
- type: StringConstructor;
216
- };
217
- /**
218
- * Custom help text message to display when validity = `customError`.
219
- */
220
- setCustomValidityCustomError: {
221
- type: StringConstructor;
222
- };
223
- /**
224
- * Custom help text message to display when validity = `valueMissing`.
225
- */
226
- setCustomValidityValueMissing: {
227
- type: StringConstructor;
228
- };
229
- /**
230
- * Custom help text message to display when validity = `valueMissing` due to the user not choosing a menu option when behavior = "filter".
231
- */
232
- setCustomValidityValueMissingFilter: {
233
- type: StringConstructor;
234
- };
235
- /**
236
- * Indicates whether the combobox is in a dirty state (has been interacted with).
237
- * @private
238
- */
239
- touched: {
240
- type: BooleanConstructor;
241
- reflect: boolean;
242
- attribute: boolean;
243
- };
244
- /**
245
- * If set, the `icon` attribute will be applied to the trigger `auro-input` element.
246
- */
247
- triggerIcon: {
248
- type: BooleanConstructor;
249
- reflect: boolean;
250
- };
251
- /**
252
- * Applies the defined value as the type attribute on `auro-input`.
253
- */
254
- type: {
255
- type: StringConstructor;
256
- reflect: boolean;
257
- };
258
- /**
259
- * Specifies the value of the input element within the combobox.
260
- */
261
- typedValue: {
262
- type: StringConstructor;
263
- reflect: boolean;
264
- };
265
- /**
266
- * Specifies the `validityState` this element is in.
267
- */
268
- validity: {
269
- type: StringConstructor;
270
- reflect: boolean;
271
- };
272
- /**
273
- * Value selected for the dropdown menu.
274
- */
275
- value: {
276
- type: StringConstructor;
277
- };
278
- /**
279
- * If declared, make bib.fullscreen.headline in HeadingDisplay.
280
- * Otherwise, Heading 600
281
- */
282
- largeFullscreenHeadline: {
283
- type: BooleanConstructor;
284
- reflect: boolean;
285
- };
286
- /**
287
- * Defines the screen size breakpointat which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
288
- *
289
- * When expanded, the dropdown will automatically display in fullscreen mode
290
- * if the screen size is equal to or smaller than the selected breakpoint.
291
- * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
292
- * @default 'sm'
293
- */
294
- fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
295
- /**
296
- * Specifies the currently active option.
297
- * @private
298
- */
299
- optionActive: {
300
- type: ObjectConstructor;
301
- reflect: boolean;
302
- attribute: boolean;
303
- };
304
- /**
305
- * Deferred aria-expanded state for the trigger input.
306
- * Delays the "true" transition so VoiceOver finishes its character echo
307
- * before announcing "expanded".
308
- * @private
309
- */
310
- triggerExpandedState: {
311
- type: BooleanConstructor;
312
- reflect: boolean;
313
- attribute: boolean;
314
- };
315
- };
316
- static get styles(): import("lit").CSSResult[];
317
- /**
318
- * This will register this element with the browser.
319
- * @param {string} [name='auro-combobox'] - The name of the element that you want to register.
320
- *
321
- * @example
322
- * AuroCombobox.register('custom-combobox') // this will register this element to <custom-combobox/>
323
- *
324
- */
325
- static register(name?: string): void;
326
- /**
327
- * @private
328
- * @returns {void} Internal defaults.
329
- */
330
- private _initializeDefaults;
331
- appearance: string;
332
- disabled: boolean;
333
- msgSelectionMissing: string;
334
- noFilter: boolean;
335
- noValidate: boolean;
336
- optionActive: any;
337
- persistInput: boolean;
338
- required: boolean;
339
- value: any;
340
- typedValue: any;
341
- behavior: string;
342
- checkmark: boolean;
343
- dvInputOnly: boolean;
344
- fullscreenBreakpoint: string;
345
- matchWidth: boolean;
346
- shape: string;
347
- size: string;
348
- triggerIcon: boolean;
349
- placement: string;
350
- offset: number;
351
- noFlip: boolean;
352
- shift: boolean;
353
- autoPlacement: boolean;
354
- dropdownTag: any;
355
- bibtemplateTag: any;
356
- inputTag: any;
357
- helpTextTag: any;
358
- availableOptions: any[] | any[];
359
- dropdownId: any;
360
- dropdownOpen: any;
361
- triggerExpandedState: boolean;
362
- _expandedTimeout: NodeJS.Timeout;
363
- _inFullscreenTransition: boolean;
364
- errorMessage: any;
365
- isHiddenWhileLoading: boolean;
366
- largeFullscreenHeadline: boolean;
367
- onDark: boolean;
368
- optionSelected: any;
369
- runtimeUtils: any;
370
- touched: boolean;
371
- validation: AuroFormValidation;
372
- validity: any;
373
- /**
374
- * Returns the current value of the input element within the combobox.
375
- * @returns {string|undefined} The value of the input element, or undefined if the input is not present.
376
- */
377
- get inputValue(): string | undefined;
378
- /**
379
- * Checks if the element is valid.
380
- * @returns {boolean} - Returns true if the element is valid, false otherwise.
381
- */
382
- isValid(): boolean;
383
- /**
384
- * Updates the filter for the available options based on the input value.
385
- * @private
386
- */
387
- private updateFilter;
388
- noMatchOption: any;
389
- /**
390
- * Syncs the values and states of this component, the input, and the menu, including this.optionSelected and this.menu.optionSelected.
391
- * @private
392
- * @returns {void}
393
- */
394
- private syncValuesAndStates;
395
- /**
396
- * Update displayValue or input.value, it's called when making a selection.
397
- * @param {string} label - The label of the selected option.
398
- * @private
399
- */
400
- private updateTriggerTextDisplay;
401
- /**
402
- * Processes hidden state of all menu options and determines if there are any available options not hidden.
403
- * @private
404
- * @returns {void}
405
- */
406
- private handleMenuOptions;
407
- /**
408
- * Determines the element error state based on the `required` attribute and input value.
409
- * @private
410
- * @returns {void}
411
- */
412
- private generateOptionsArray;
413
- options: any;
414
- /**
415
- * Hides the dropdown bib if its open.
416
- * @returns {void}
417
- */
418
- hideBib(): void;
419
- /**
420
- * Shows the dropdown bib if there are options to show.
421
- * @returns {void}
422
- */
423
- showBib(): void;
424
- /**
425
- * Binds all behavior needed to the dropdown after rendering.
426
- * @private
427
- * @returns {void}
428
- */
429
- private configureDropdown;
430
- bibtemplate: any;
431
- inputInBib: any;
432
- /**
433
- * @private
434
- */
435
- private setInputFocus;
436
- /**
437
- * @private
438
- */
439
- private setClearBtnFocus;
440
- /**
441
- * Suppresses or restores dialog semantics on the bib's dialog element.
442
- * On desktop (non-fullscreen), VoiceOver verbosely announces "listbox inside
443
- * of a dialog" which disrupts combobox usage. Setting role="presentation"
444
- * suppresses this. In fullscreen mode, dialog semantics are restored.
445
- * @private
446
- */
447
- private updateBibDialogRole;
448
- /**
449
- * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
450
- * @private
451
- */
452
- private updateMenuShapeSize;
453
- /**
454
- * Binds all behavior needed to the menu after rendering.
455
- * @private
456
- * @returns {void}
457
- */
458
- private configureMenu;
459
- menu: Element;
460
- defaultMenuShape: string;
461
- /**
462
- * Binds all behavior needed to the input after rendering.
463
- * @private
464
- * @returns {void}
465
- */
466
- private configureInput;
467
- /**
468
- * Manages the visibility of the dropdown based on loading state changes.
469
- *
470
- * This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
471
- * If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
472
- * and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
473
- * hidden, it checks if the active element is within the dropdown and shows it again if true.
474
- *
475
- * @private
476
- * @param {CustomEvent} event - The event object containing details about the loading state change.
477
- * @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
478
- * @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
479
- * @returns {void}
480
- */
481
- private handleMenuLoadingChange;
482
- /**
483
- * Handle changes to the input value and trigger changes that should result.
484
- * @private
485
- * @param {Event} event - The input event triggered by the input element.
486
- * @returns {void}
487
- */
488
- private handleInputValueChange;
489
- _syncingBibValue: boolean;
490
- /**
491
- * Binds all behavior needed to the combobox after rendering.
492
- * @private
493
- * @returns {void}
494
- */
495
- private configureCombobox;
496
- menus: Element[];
497
- firstUpdated(): void;
498
- dropdown: any;
499
- input: any;
500
- /**
501
- * Focuses the combobox trigger input.
502
- * @returns {void}
503
- */
504
- focus(): void;
505
- /**
506
- * Sets the menu value if menu is available.
507
- * @param {string} value - The value to set on the menu.
508
- * @returns {void}
509
- */
510
- setMenuValue(value: string): void;
511
- /**
512
- * Resets component to initial state.
513
- * @returns {void}
514
- */
515
- reset(): void;
516
- /**
517
- * Clears the current value of the combobox.
518
- * @returns {void}
519
- */
520
- clear(): void;
521
- /**
522
- * Validates value.
523
- * @param {boolean} [force=false] - Whether to force validation.
524
- */
525
- validate(force?: boolean): void;
526
- updated(changedProperties: any): void;
527
- hasValue: boolean;
528
- /**
529
- * Applies slotted nodes to a target element with a new slot name.
530
- * @private
531
- * @param {HTMLSlotElement} slot - The slot element containing the nodes to apply.
532
- * @param {HTMLElement} target - The target element to apply the nodes to.
533
- * @param {string} newSlotName - The new slot name for the applied nodes.
534
- * @returns {void}
535
- */
536
- private transportAssignedNodes;
537
- /**
538
- * Updates the active option in the menu.
539
- * @param {number} index - Index of the option to make active.
540
- */
541
- updateActiveOption(index: number): void;
542
- /**
543
- * Watch for slot changes and recalculate the menuoptions.
544
- * @private
545
- * @param {Event} event - `slotchange` event.
546
- * @returns {void}
547
- */
548
- private handleSlotChange;
549
- render(): import("lit-html").TemplateResult;
550
- }
551
- import { AuroElement } from '../../layoutElement/src/auroElement.js';
552
- import AuroFormValidation from '@aurodesignsystem/form-validation';
@@ -1,6 +0,0 @@
1
- export namespace comboboxKeyboardStrategy {
2
- function Enter(component: any, evt: any): Promise<void>;
3
- function Tab(component: any): void;
4
- function ArrowUp(component: any, evt: any): void;
5
- function ArrowDown(component: any, evt: any): void;
6
- }
@@ -1,2 +0,0 @@
1
- export { AuroCombobox };
2
- import { AuroCombobox } from './auro-combobox.js';