@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,324 +0,0 @@
1
- /**
2
- * The `auro-menu` element provides users a way to select from a list of options.
3
- * @customElement auro-menu
4
- *
5
- * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
6
- * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
7
- * @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
8
- * @event {CustomEvent<any>} auroMenu-selectValueFailure - Notifies that an attempt to select a menuoption by matching a value has failed.
9
- * @event {CustomEvent<any>} auroMenu-selectValueReset - Notifies that the component value has been reset.
10
- * @event {CustomEvent<any>} auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
11
- * @slot loadingText - Text to show while loading attribute is set
12
- * @slot loadingIcon - Icon to show while loading attribute is set
13
- * @slot - Slot for insertion of menu options.
14
- */
15
- export class AuroMenu extends AuroElement {
16
- static get properties(): {
17
- /**
18
- * Allows deselecting an already selected option when clicked again in single-select mode.
19
- */
20
- allowDeselect: {
21
- type: BooleanConstructor;
22
- reflect: boolean;
23
- };
24
- /**
25
- * When true, the entire menu and all options are disabled.
26
- */
27
- disabled: {
28
- type: BooleanConstructor;
29
- reflect: boolean;
30
- };
31
- /**
32
- * Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
33
- */
34
- hasLoadingPlaceholder: {
35
- type: BooleanConstructor;
36
- };
37
- /**
38
- * @private
39
- */
40
- layout: {
41
- type: StringConstructor;
42
- };
43
- /**
44
- * Indent level for submenus.
45
- * @private
46
- */
47
- level: {
48
- type: NumberConstructor;
49
- reflect: boolean;
50
- attribute: boolean;
51
- };
52
- /**
53
- * When true, displays a loading state using the loadingIcon and loadingText slots if provided.
54
- */
55
- loading: {
56
- type: BooleanConstructor;
57
- reflect: boolean;
58
- };
59
- /**
60
- * Specifies a string used to highlight matched string parts in options.
61
- */
62
- matchWord: {
63
- type: StringConstructor;
64
- attribute: string;
65
- };
66
- /**
67
- * When true, the selected option can be multiple options.
68
- */
69
- multiSelect: {
70
- type: BooleanConstructor;
71
- reflect: boolean;
72
- attribute: string;
73
- };
74
- /**
75
- * When true, selected option will not show the checkmark.
76
- */
77
- noCheckmark: {
78
- type: BooleanConstructor;
79
- reflect: boolean;
80
- attribute: string;
81
- };
82
- /**
83
- * Specifies the current active menuOption.
84
- */
85
- optionActive: {
86
- type: ObjectConstructor;
87
- attribute: string;
88
- };
89
- /**
90
- * An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
91
- */
92
- optionSelected: {
93
- type: ObjectConstructor;
94
- };
95
- options: {
96
- type: ArrayConstructor;
97
- reflect: boolean;
98
- attribute: boolean;
99
- };
100
- /**
101
- * Sets the size of the menu.
102
- * @type {'sm' | 'md'}
103
- * @default 'sm'
104
- */
105
- size: "sm" | "md";
106
- /**
107
- * When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
108
- */
109
- selectAllMatchingOptions: {
110
- type: BooleanConstructor;
111
- reflect: boolean;
112
- };
113
- /**
114
- * Sets the shape of the menu.
115
- * @type {'box' | 'round'}
116
- * @default 'box'
117
- */
118
- shape: "box" | "round";
119
- /**
120
- * The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
121
- */
122
- value: {
123
- type: StringConstructor;
124
- reflect: boolean;
125
- attribute: string;
126
- };
127
- };
128
- static get styles(): import("lit").CSSResult[];
129
- /**
130
- * This will register this element with the browser.
131
- * @param {string} [name="auro-menu"] - The name of the element that you want to register.
132
- *
133
- * @example
134
- * AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
135
- *
136
- */
137
- static register(name?: string): void;
138
- /**
139
- * @private
140
- */
141
- private shape;
142
- /**
143
- * @private
144
- */
145
- private size;
146
- value: any;
147
- optionSelected: any;
148
- matchWord: any;
149
- noCheckmark: boolean;
150
- optionActive: any;
151
- loading: boolean;
152
- multiSelect: boolean;
153
- allowDeselect: boolean;
154
- selectAllMatchingOptions: boolean;
155
- /**
156
- * Handles keyboard navigation.
157
- * @private
158
- * @param {KeyboardEvent} event - Event object from the browser.
159
- */
160
- private handleKeyDown;
161
- /**
162
- * Handles slot change events.
163
- * @private
164
- */
165
- private handleSlotChange;
166
- /**
167
- * @readonly
168
- * @returns {string} - Returns the label of the currently selected option(s).
169
- */
170
- readonly get currentLabel(): string;
171
- /**
172
- * @readonly
173
- * @returns {Array<HTMLElement>} - Returns the array of available menu options.
174
- * @deprecated use `options` property instead.
175
- */
176
- readonly get items(): Array<HTMLElement>;
177
- /**
178
- * @param {number} value - Sets the index of the currently active option.
179
- */
180
- set index(value: number);
181
- /**
182
- * @returns {number} - Returns the index of the currently active option.
183
- */
184
- get index(): number;
185
- /**
186
- * Formatted value based on `multiSelect` state.
187
- * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
188
- * @private
189
- * @returns {String|Array<String>}
190
- */
191
- private get formattedValue();
192
- /**
193
- * Gets the current property values for the menu service.
194
- * @private
195
- * @returns {Object}
196
- */
197
- private get propertyValues();
198
- /**
199
- * Provides the menu context to child components.
200
- * Initializes the MenuService and subscribes to menu changes.
201
- * @protected
202
- */
203
- protected provideContext(): void;
204
- menuService: MenuService;
205
- _contextProvider: ContextProvider<import("@lit/context").Context<"menu-context", any>, this>;
206
- /**
207
- * Updates the currently active option in the menu.
208
- * @param {HTMLElement} option - The option to set as active.
209
- */
210
- updateActiveOption(option: HTMLElement): void;
211
- /**
212
- * Sets the internal value and manages update state.
213
- * @param {String|Array<String>} value - The value to set.
214
- * @protected
215
- */
216
- protected setInternalValue(value: string | Array<string>): void;
217
- internalUpdateInProgress: boolean;
218
- /**
219
- * Handles changes from the menu service and updates component state.
220
- * @param {Object} event - The event object from the menu service.
221
- * @protected
222
- */
223
- protected handleMenuChange(event: any): void;
224
- _index: any;
225
- options: any;
226
- /**
227
- * Gets the currently selected options.
228
- * @returns {Array<HTMLElement>}
229
- */
230
- get selectedOptions(): Array<HTMLElement>;
231
- /**
232
- * Gets the first selected option, or null if none.
233
- * @returns {HTMLElement|null}
234
- */
235
- get selectedOption(): HTMLElement | null;
236
- firstUpdated(): void;
237
- loadingSlots: NodeListOf<Element>;
238
- updated(changedProperties: any): void;
239
- /**
240
- * Sets an attribute that matches the default tag name if the tag name is not the default.
241
- * @param {string} tagName - The tag name to set as an attribute.
242
- * @private
243
- */
244
- private setTagAttribute;
245
- /**
246
- * Sets the loading state and dispatches a loading change event.
247
- * @param {boolean} isLoading - Whether the menu is loading.
248
- * @protected
249
- */
250
- protected setLoadingState(isLoading: boolean): void;
251
- /**
252
- * Initializes the menu's state and structure.
253
- * @private
254
- */
255
- private initializeMenu;
256
- /**
257
- * Selects the currently highlighted option.
258
- * @protected
259
- */
260
- protected makeSelection(): void;
261
- /**
262
- * Resets all options to their default state.
263
- * @private
264
- */
265
- private clearSelection;
266
- /**
267
- * Resets the menu to its initial state.
268
- * This is the only way to return value to undefined.
269
- * @public
270
- */
271
- public reset(): void;
272
- /**
273
- * Handles nested menu structure.
274
- * @private
275
- * @param {HTMLElement} menu - Root menu element.
276
- */
277
- private handleNestedMenus;
278
- /**
279
- * Navigates the menu options in the specified direction.
280
- * @param {'up'|'down'} direction - The direction to navigate.
281
- * @protected
282
- */
283
- protected navigateOptions(direction: "up" | "down"): void;
284
- rootMenu: boolean;
285
- /**
286
- * Handles custom events defined on options.
287
- * @private
288
- * @param {HTMLElement} option - Option with custom event.
289
- */
290
- private handleCustomEvent;
291
- /**
292
- * Notifies selection change to parent components.
293
- * @param {any} source - The source that triggers this event.
294
- * @private
295
- */
296
- private notifySelectionChange;
297
- /**
298
- * Checks if an option is currently selected.
299
- * @private
300
- * @param {HTMLElement} option - The option to check.
301
- * @returns {boolean}
302
- */
303
- private isOptionSelected;
304
- /**
305
- * Getter for loading placeholder state.
306
- * @returns {boolean} - True if loading slots are present and non-empty.
307
- */
308
- get hasLoadingPlaceholder(): boolean;
309
- /**
310
- * Getter for wrapper classes based on size.
311
- * @returns {Object} - Class map for the wrapper element.
312
- * @private
313
- */
314
- private get wrapperClasses();
315
- /**
316
- * Logic to determine the layout of the component.
317
- * @protected
318
- * @returns {void}
319
- */
320
- protected renderLayout(): void;
321
- }
322
- import { AuroElement } from "../../layoutElement/src/auroElement.js";
323
- import { MenuService } from "./auro-menu.context.js";
324
- import { ContextProvider } from "@lit/context";
@@ -1,210 +0,0 @@
1
- /**
2
- * The `auro-menuoption` element provides users a way to define a menu option.
3
- * @customElement auro-menuoption
4
- *
5
- * @slot default - The default slot for the menu option text.
6
- *
7
- * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8
- */
9
- export class AuroMenuOption extends AuroElement {
10
- /**
11
- * This will register this element with the browser.
12
- * @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
13
- *
14
- * @example
15
- * AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
16
- *
17
- */
18
- static register(name?: string): void;
19
- static get properties(): {
20
- /**
21
- * When true, disables the menu option.
22
- */
23
- disabled: {
24
- type: BooleanConstructor;
25
- reflect: boolean;
26
- };
27
- /**
28
- * @private
29
- */
30
- event: {
31
- type: StringConstructor;
32
- reflect: boolean;
33
- };
34
- /**
35
- * @private
36
- */
37
- layout: {
38
- type: StringConstructor;
39
- };
40
- /**
41
- * Allows users to set a unique key for the menu option for specified option selection. If no key is provided, the value property will be used.
42
- */
43
- key: {
44
- type: StringConstructor;
45
- reflect: boolean;
46
- };
47
- /**
48
- * @private
49
- */
50
- menuService: {
51
- type: ObjectConstructor;
52
- state: boolean;
53
- };
54
- /**
55
- * @private
56
- */
57
- matchWord: {
58
- type: StringConstructor;
59
- state: boolean;
60
- };
61
- /**
62
- * @private
63
- */
64
- noCheckmark: {
65
- type: BooleanConstructor;
66
- reflect: boolean;
67
- };
68
- /**
69
- * Specifies that an option is selected.
70
- */
71
- selected: {
72
- type: BooleanConstructor;
73
- reflect: boolean;
74
- };
75
- /**
76
- * Specifies the tab index of the menu option.
77
- */
78
- tabIndex: {
79
- type: NumberConstructor;
80
- reflect: boolean;
81
- };
82
- /**
83
- * Specifies the value to be sent to a server.
84
- */
85
- value: {
86
- type: StringConstructor;
87
- reflect: boolean;
88
- };
89
- };
90
- static get styles(): import("lit").CSSResult[];
91
- /**
92
- * Returns whether the menu option is currently active and selectable.
93
- * An option is considered active if it is not hidden, not disabled, and not static.
94
- * @returns {boolean} True if the option is active, false otherwise.
95
- */
96
- get isActive(): boolean;
97
- /**
98
- * @private
99
- */
100
- private shape;
101
- /**
102
- * @private
103
- */
104
- private size;
105
- iconTag: any;
106
- selected: boolean;
107
- noCheckmark: boolean;
108
- disabled: boolean;
109
- /**
110
- * @private
111
- */
112
- private runtimeUtils;
113
- menuService: any;
114
- unsubscribe: any;
115
- /**
116
- * Handles changes from the menu service and updates the option's state.
117
- * This function synchronizes the option's properties and selection/highlight state with menu events.
118
- * @param {Object} event - The event object from the menu service.
119
- */
120
- handleMenuChange(event: any): void;
121
- _contextConsumer: ContextConsumer<import("@lit/context").Context<"menu-context", any>, this>;
122
- key: any;
123
- firstUpdated(): void;
124
- updated(changedProperties: any): void;
125
- /**
126
- * Sets up event listeners for user interaction with the menu option.
127
- * This function enables click and mouse enter events to trigger selection and highlighting logic.
128
- */
129
- bindEvents(): void;
130
- /**
131
- * Attaches this menu option to a menu service and subscribes to its events.
132
- * This method enables the option to participate in menu selection and highlighting logic.
133
- * @param {Object} service - The menu service instance to attach to.
134
- */
135
- attachTo(service: any): void;
136
- active: boolean;
137
- /**
138
- * Updates the internal selected state of the menu option bypassing 'updated' and triggers custom events if selected.
139
- * This function ensures the option's selection state is synchronized with menu logic and notifies listeners.
140
- * @param {boolean} isSelected - Whether the option should be marked as selected.
141
- */
142
- setInternalSelected(isSelected: boolean): void;
143
- internalUpdateInProgress: boolean;
144
- /**
145
- * Sets the selected state of the menu option.
146
- * This function updates whether the option is currently selected.
147
- * @param {boolean} isSelected - Whether the option should be marked as selected.
148
- * @deprecated Simply modify the `selected` property directly instead.
149
- */
150
- setSelected(isSelected: boolean): void;
151
- /**
152
- * Updates the active state and visual highlighting of the menu option.
153
- * This function toggles the option's active status and applies or removes the active CSS class.
154
- * @param {boolean} isActive - Whether the option should be marked as active.
155
- * @deprecated Simply modify the `active` property directly instead.
156
- */
157
- updateActive(isActive: boolean): void;
158
- /**
159
- * Updates the CSS class for the menu option based on its active state.
160
- * This function adds or removes the 'active' class to visually indicate the option's active status.
161
- * @private
162
- */
163
- private updateActiveClasses;
164
- /**
165
- * Updates the visual highlighting of text within the menu option based on the current match word.
166
- * This function highlights matching text segments and manages nested spacers for display formatting.
167
- * @private
168
- */
169
- private updateTextHighlight;
170
- /**
171
- * Handles click events on the menu option, toggling its selected state.
172
- * This function dispatches a click event and updates selection if the option is not disabled.
173
- * @private
174
- */
175
- private handleClick;
176
- /**
177
- * Handles mouse enter events to highlight the menu option.
178
- * This function updates the menu service to set this option as the currently highlighted item if not disabled.
179
- * @private
180
- */
181
- private handleMouseEnter;
182
- /**
183
- * Dispatches custom events defined for this menu option.
184
- * This function notifies listeners when a custom event is triggered by the option.
185
- * @private
186
- */
187
- private handleCustomEvent;
188
- /**
189
- * Dispatches a click event for this menu option.
190
- * This function notifies listeners that the option has been clicked.
191
- * @private
192
- */
193
- private dispatchClickEvent;
194
- /**
195
- * Generates an HTML element containing an SVG icon based on the provided `svgContent`.
196
- *
197
- * @private
198
- * @param {string} svgContent - The SVG content to be embedded.
199
- * @returns {Element} The HTML element containing the SVG icon.
200
- */
201
- private generateIconHtml;
202
- /**
203
- * Logic to determine the layout of the component.
204
- * @protected
205
- * @returns {void}
206
- */
207
- protected renderLayout(): void;
208
- }
209
- import { AuroElement } from "../../layoutElement/src/auroElement.js";
210
- import { ContextConsumer } from '@lit/context';
@@ -1,2 +0,0 @@
1
- declare const _default: "9.1.2";
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import { AuroMenu } from './auro-menu.js';
2
- import { AuroMenuOption } from './auro-menuoption.js';
3
- export { AuroMenu, AuroMenuOption };
4
- export { arrayConverter, isOptionInteractive, dispatchMenuEvent } from "./auro-menu-utils.js";