@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.2 → 0.0.0-pr1420.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,316 +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 slot change events.
157
- * @private
158
- */
159
- private handleSlotChange;
160
- /**
161
- * @readonly
162
- * @returns {string} - Returns the label of the currently selected option(s).
163
- */
164
- readonly get currentLabel(): string;
165
- /**
166
- * @readonly
167
- * @returns {Array<HTMLElement>} - Returns the array of available menu options.
168
- * @deprecated Use `options` property instead.
169
- */
170
- readonly get items(): Array<HTMLElement>;
171
- /**
172
- * @param {number} value - Sets the index of the currently active option.
173
- */
174
- set index(value: number);
175
- /**
176
- * @returns {number} - Returns the index of the currently active option.
177
- */
178
- get index(): number;
179
- /**
180
- * Formatted value based on `multiSelect` state.
181
- * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
182
- * @private
183
- * @returns {String|Array<String>}
184
- */
185
- private get formattedValue();
186
- /**
187
- * Gets the current property values for the menu service.
188
- * @private
189
- * @returns {Object}
190
- */
191
- private get propertyValues();
192
- /**
193
- * Provides the menu context to child components.
194
- * Initializes the MenuService and subscribes to menu changes.
195
- * @protected
196
- */
197
- protected provideContext(): void;
198
- rootMenu: boolean;
199
- menuService: any;
200
- _contextProvider: any;
201
- /**
202
- * Updates the currently active option in the menu.
203
- * @param {HTMLElement} option - The option to set as active.
204
- */
205
- updateActiveOption(option: HTMLElement): void;
206
- /**
207
- * Sets the internal value and manages update state.
208
- * @param {String|Array<String>} value - The value to set.
209
- * @protected
210
- */
211
- protected setInternalValue(value: string | Array<string>): void;
212
- internalUpdateInProgress: boolean;
213
- /**
214
- * Handles changes from the menu service and updates component state.
215
- * @param {Object} event - The event object from the menu service.
216
- * @protected
217
- */
218
- protected handleMenuChange(event: any): void;
219
- _index: any;
220
- options: any;
221
- /**
222
- * Gets the currently selected options.
223
- * @returns {Array<HTMLElement>}
224
- */
225
- get selectedOptions(): Array<HTMLElement>;
226
- /**
227
- * Gets the first selected option, or null if none.
228
- * @returns {HTMLElement|null}
229
- */
230
- get selectedOption(): HTMLElement | null;
231
- firstUpdated(): void;
232
- loadingSlots: NodeListOf<Element>;
233
- updated(changedProperties: any): void;
234
- /**
235
- * Sets an attribute that matches the default tag name if the tag name is not the default.
236
- * @param {string} tagName - The tag name to set as an attribute.
237
- * @private
238
- */
239
- private setTagAttribute;
240
- /**
241
- * Sets the loading state and dispatches a loading change event.
242
- * @param {boolean} isLoading - Whether the menu is loading.
243
- * @protected
244
- */
245
- protected setLoadingState(isLoading: boolean): void;
246
- /**
247
- * Initializes the menu's state and structure.
248
- * @private
249
- */
250
- private initializeMenu;
251
- /**
252
- * Selects the currently highlighted option.
253
- * @protected
254
- */
255
- protected makeSelection(): void;
256
- /**
257
- * Resets all options to their default state.
258
- * @private
259
- */
260
- private clearSelection;
261
- /**
262
- * Resets the menu to its initial state.
263
- * This is the only way to return value to undefined.
264
- * @public
265
- */
266
- public reset(): void;
267
- /**
268
- * Handles nested menu structure.
269
- * @private
270
- * @param {HTMLElement} menu - Root menu element.
271
- */
272
- private handleNestedMenus;
273
- /**
274
- * Navigates the menu options in the specified direction.
275
- * @param {'up'|'down'} direction - The direction to navigate.
276
- * @protected
277
- */
278
- protected navigateOptions(direction: "up" | "down"): void;
279
- /**
280
- * Handles custom events defined on options.
281
- * @private
282
- * @param {HTMLElement} option - Option with custom event.
283
- */
284
- private handleCustomEvent;
285
- /**
286
- * Notifies selection change to parent components.
287
- * @param {any} source - The source that triggers this event.
288
- * @private
289
- */
290
- private notifySelectionChange;
291
- /**
292
- * Checks if an option is currently selected.
293
- * @private
294
- * @param {HTMLElement} option - The option to check.
295
- * @returns {boolean}
296
- */
297
- private isOptionSelected;
298
- /**
299
- * Getter for loading placeholder state.
300
- * @returns {boolean} - True if loading slots are present and non-empty.
301
- */
302
- get hasLoadingPlaceholder(): boolean;
303
- /**
304
- * Getter for wrapper classes based on size.
305
- * @returns {Object} - Class map for the wrapper element.
306
- * @private
307
- */
308
- private get wrapperClasses();
309
- /**
310
- * Logic to determine the layout of the component.
311
- * @protected
312
- * @returns {void}
313
- */
314
- protected renderLayout(): void;
315
- }
316
- import { AuroElement } from "../../layoutElement/src/auroElement.js";
@@ -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";