@aurodesignsystem-dev/auro-formkit 0.0.0-pr1498.0 → 0.0.0-pr1499.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 (62) hide show
  1. package/components/checkbox/demo/customize.min.js +2 -2
  2. package/components/checkbox/demo/getting-started.min.js +2 -2
  3. package/components/checkbox/demo/index.min.js +2 -2
  4. package/components/checkbox/dist/index.js +2 -2
  5. package/components/checkbox/dist/registered.js +2 -2
  6. package/components/combobox/demo/customize.md +3 -7
  7. package/components/combobox/demo/customize.min.js +1705 -1459
  8. package/components/combobox/demo/getting-started.min.js +1705 -1459
  9. package/components/combobox/demo/index.min.js +1705 -1459
  10. package/components/combobox/dist/auro-combobox.d.ts +0 -5
  11. package/components/combobox/dist/index.js +162 -491
  12. package/components/combobox/dist/registered.js +162 -491
  13. package/components/counter/demo/customize.min.js +19 -18
  14. package/components/counter/demo/index.min.js +19 -18
  15. package/components/counter/dist/index.js +187 -5442
  16. package/components/counter/dist/registered.js +187 -5442
  17. package/components/datepicker/demo/customize.md +477 -384
  18. package/components/datepicker/demo/customize.min.js +96 -161
  19. package/components/datepicker/demo/index.md +0 -1
  20. package/components/datepicker/demo/index.min.js +96 -161
  21. package/components/datepicker/dist/index.js +96 -161
  22. package/components/datepicker/dist/registered.js +96 -161
  23. package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -2
  24. package/components/dropdown/demo/customize.min.js +17 -16
  25. package/components/dropdown/demo/getting-started.min.js +17 -16
  26. package/components/dropdown/demo/index.min.js +17 -16
  27. package/components/dropdown/dist/auro-dropdown.d.ts +2 -1
  28. package/components/dropdown/dist/index.js +17 -16
  29. package/components/dropdown/dist/registered.js +17 -16
  30. package/components/form/demo/customize.min.js +7965 -7884
  31. package/components/form/demo/getting-started.min.js +7965 -7884
  32. package/components/form/demo/index.min.js +7965 -7884
  33. package/components/form/demo/registerDemoDeps.min.js +7934 -7853
  34. package/components/input/demo/customize.md +539 -472
  35. package/components/input/demo/customize.min.js +61 -132
  36. package/components/input/demo/getting-started.min.js +61 -132
  37. package/components/input/demo/index.min.js +61 -132
  38. package/components/input/dist/base-input.d.ts +0 -16
  39. package/components/input/dist/index.js +61 -132
  40. package/components/input/dist/registered.js +61 -132
  41. package/components/menu/demo/api.md +45 -41
  42. package/components/menu/demo/customize.md +28 -0
  43. package/components/menu/demo/index.min.js +1358 -783
  44. package/components/menu/dist/auro-menu.context.d.ts +238 -0
  45. package/components/menu/dist/auro-menu.d.ts +110 -95
  46. package/components/menu/dist/auro-menuoption.d.ts +138 -32
  47. package/components/menu/dist/index.js +1312 -757
  48. package/components/menu/dist/registered.js +1312 -769
  49. package/components/radio/demo/customize.min.js +2 -2
  50. package/components/radio/demo/getting-started.min.js +2 -2
  51. package/components/radio/demo/index.min.js +2 -2
  52. package/components/radio/dist/index.js +2 -2
  53. package/components/radio/dist/registered.js +2 -2
  54. package/components/select/demo/customize.md +3 -7
  55. package/components/select/demo/customize.min.js +1634 -1089
  56. package/components/select/demo/getting-started.min.js +1634 -1089
  57. package/components/select/demo/index.min.js +1634 -1089
  58. package/components/select/dist/index.js +31 -61
  59. package/components/select/dist/registered.js +31 -61
  60. package/custom-elements.json +2085 -1439
  61. package/package.json +1 -1
  62. package/components/select/dist/selectUtils.d.ts +0 -12
@@ -4,35 +4,35 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "components/bibtemplate/src/auro-bibtemplate.js",
7
+ "path": "components/checkbox/src/auro-checkbox-group.js",
8
8
  "declarations": [
9
9
  {
10
10
  "kind": "class",
11
- "description": "The `auro-bibtemplate` element provides users a template for creating modal dialog elements.",
12
- "name": "AuroBibtemplate",
11
+ "description": "The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements.",
12
+ "name": "AuroCheckboxGroup",
13
13
  "slots": [
14
14
  {
15
- "description": "The default slot for the main content.",
16
- "name": "default"
17
- },
18
- {
19
- "description": "Slot for the header content.",
20
- "name": "header"
15
+ "description": "Allows for the legend to be overridden.",
16
+ "name": "legend"
21
17
  },
22
18
  {
23
- "description": "Slot for the subheader content.",
24
- "name": "subheader"
19
+ "description": "Allows overriding the optional display text \"(optional)\", which appears next to the label.",
20
+ "name": "optionalLabel"
25
21
  },
26
22
  {
27
- "description": "Slot for the footer content.",
28
- "name": "footer"
23
+ "description": "Allows for the helper text to be overridden.",
24
+ "name": "helpText"
29
25
  },
30
26
  {
31
- "description": "Slot for the close button aria-label.",
32
- "name": "ariaLabel.close"
27
+ "description": "The default slot for the checkbox items.",
28
+ "name": "default"
33
29
  }
34
30
  ],
35
31
  "members": [
32
+ {
33
+ "kind": "method",
34
+ "name": "_initializeDefaults"
35
+ },
36
36
  {
37
37
  "kind": "method",
38
38
  "name": "register",
@@ -40,8 +40,8 @@
40
40
  "parameters": [
41
41
  {
42
42
  "name": "name",
43
- "default": "\"auro-bibtemplate\"",
44
- "description": "The name of element that you want to register to.",
43
+ "default": "\"auro-checkbox-group\"",
44
+ "description": "The name of the element that you want to register.",
45
45
  "optional": true,
46
46
  "type": {
47
47
  "text": "string"
@@ -52,17 +52,25 @@
52
52
  },
53
53
  {
54
54
  "kind": "method",
55
- "name": "preventBodyScroll",
55
+ "name": "handleValueUpdate",
56
56
  "parameters": [
57
57
  {
58
- "name": "event",
59
- "description": "The touchmove event.",
58
+ "name": "value",
59
+ "description": "The value of the checkbox.",
60
60
  "type": {
61
- "text": "Event"
61
+ "text": "String"
62
+ }
63
+ },
64
+ {
65
+ "name": "selected",
66
+ "description": "The checked state of the checkbox.",
67
+ "type": {
68
+ "text": "Boolean"
62
69
  }
63
70
  }
64
71
  ],
65
- "description": "Prevents scrolling of the body when touching empty areas of the component.",
72
+ "description": "Helper method to handle checkbox value changing.",
73
+ "privacy": "private",
66
74
  "return": {
67
75
  "type": {
68
76
  "text": "void"
@@ -71,8 +79,9 @@
71
79
  },
72
80
  {
73
81
  "kind": "method",
74
- "name": "focusCloseButton",
75
- "description": "Focuses the close button inside the bibtemplate's shadow DOM.\nUsed by parent components to set initial focus when the fullscreen dialog opens.",
82
+ "name": "handlePreselectedItems",
83
+ "description": "Helper method that handles the state of preselected checkboxes.",
84
+ "privacy": "private",
76
85
  "return": {
77
86
  "type": {
78
87
  "text": "void"
@@ -81,213 +90,308 @@
81
90
  },
82
91
  {
83
92
  "kind": "method",
84
- "name": "onCloseButtonClick"
93
+ "name": "handleItems",
94
+ "description": "Helper method that handles the state of checkboxes.",
95
+ "privacy": "private",
96
+ "return": {
97
+ "type": {
98
+ "text": "void"
99
+ }
100
+ }
85
101
  },
86
102
  {
87
103
  "kind": "method",
88
- "name": "exposeCssParts",
89
- "description": "Exposes CSS parts for styling from parent components.",
104
+ "name": "reset",
105
+ "description": "Resets component to initial state.",
90
106
  "return": {
91
107
  "type": {
92
108
  "text": "void"
93
109
  }
94
110
  }
95
111
  },
112
+ {
113
+ "kind": "method",
114
+ "name": "validate",
115
+ "parameters": [
116
+ {
117
+ "name": "force",
118
+ "default": "false",
119
+ "description": "Whether to force validation.",
120
+ "optional": true,
121
+ "type": {
122
+ "text": "boolean"
123
+ }
124
+ }
125
+ ],
126
+ "description": "Validates value."
127
+ },
96
128
  {
97
129
  "kind": "field",
98
- "name": "large",
130
+ "name": "appearance",
131
+ "privacy": "public",
132
+ "type": {
133
+ "text": "'default' | 'inverse'"
134
+ },
135
+ "description": "Defines whether the component will be on lighter or darker backgrounds.",
136
+ "default": "'default'",
137
+ "attribute": "appearance",
138
+ "reflects": true
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "disabled",
99
143
  "privacy": "public",
100
144
  "type": {
101
145
  "text": "boolean"
102
146
  },
103
- "default": "false",
104
- "attribute": "large",
147
+ "description": "If set, disables the checkbox group.",
148
+ "attribute": "disabled",
105
149
  "reflects": true
106
150
  },
107
151
  {
108
152
  "kind": "field",
109
- "name": "iconTag",
110
- "privacy": "private"
153
+ "name": "error",
154
+ "privacy": "public",
155
+ "type": {
156
+ "text": "string"
157
+ },
158
+ "description": "When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.",
159
+ "attribute": "error",
160
+ "reflects": true
111
161
  },
112
162
  {
113
163
  "kind": "field",
114
- "name": "headerTag",
115
- "privacy": "private"
164
+ "name": "horizontal",
165
+ "privacy": "public",
166
+ "type": {
167
+ "text": "boolean"
168
+ },
169
+ "description": "If set, checkboxes will be aligned horizontally.",
170
+ "attribute": "horizontal",
171
+ "reflects": true
116
172
  },
117
173
  {
118
174
  "kind": "field",
119
- "name": "buttonTag",
120
- "privacy": "private"
175
+ "name": "noValidate",
176
+ "privacy": "public",
177
+ "type": {
178
+ "text": "boolean"
179
+ },
180
+ "description": "If set, disables auto-validation on blur.",
181
+ "attribute": "noValidate",
182
+ "reflects": true
121
183
  },
122
184
  {
123
185
  "kind": "field",
124
- "name": "isFullscreen",
186
+ "name": "onDark",
125
187
  "privacy": "public",
126
188
  "type": {
127
189
  "text": "boolean"
128
190
  },
129
- "attribute": "isFullscreen",
191
+ "description": "DEPRECATED - use `appearance=\"inverse\"` instead.",
192
+ "attribute": "onDark",
130
193
  "reflects": true
131
194
  },
132
195
  {
133
196
  "kind": "field",
134
- "name": "showFooter",
197
+ "name": "required",
135
198
  "privacy": "public",
136
199
  "type": {
137
200
  "text": "boolean"
138
201
  },
139
- "description": "If declared, the footer slot will be rendered even when not in fullscreen mode.",
140
- "attribute": "showFooter",
202
+ "description": "Populates the `required` attribute on the element. Used for client-side validation.",
203
+ "attribute": "required",
204
+ "reflects": true
205
+ },
206
+ {
207
+ "kind": "field",
208
+ "name": "setCustomValidity",
209
+ "privacy": "public",
210
+ "type": {
211
+ "text": "string"
212
+ },
213
+ "description": "Sets a custom help text message to display for all validityStates.",
214
+ "attribute": "setCustomValidity"
215
+ },
216
+ {
217
+ "kind": "field",
218
+ "name": "setCustomValidityCustomError",
219
+ "privacy": "public",
220
+ "type": {
221
+ "text": "string"
222
+ },
223
+ "description": "Custom help text message to display when validity = `customError`.",
224
+ "attribute": "setCustomValidityCustomError"
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "setCustomValidityValueMissing",
229
+ "privacy": "public",
230
+ "type": {
231
+ "text": "string"
232
+ },
233
+ "description": "Custom help text message to display when validity = `valueMissing`.",
234
+ "attribute": "setCustomValidityValueMissing"
235
+ },
236
+ {
237
+ "kind": "field",
238
+ "name": "validity",
239
+ "privacy": "public",
240
+ "type": {
241
+ "text": "string"
242
+ },
243
+ "description": "Specifies the `validityState` this element is in.",
244
+ "attribute": "validity",
141
245
  "reflects": true
142
246
  }
143
247
  ],
144
248
  "events": [
145
249
  {
146
- "name": "close-click",
250
+ "name": "input",
147
251
  "type": {
148
- "text": "Event"
252
+ "text": "CustomEvent"
149
253
  }
150
254
  },
151
255
  {
152
- "name": "auro-bibtemplate-connected",
153
- "type": {
154
- "text": "CustomEvent"
155
- }
256
+ "description": "Notifies that the `validity` and `errorMessage` values have changed.",
257
+ "name": "auroFormElement-validated"
156
258
  }
157
259
  ],
158
260
  "attributes": [
159
261
  {
160
- "name": "isFullscreen",
262
+ "name": "appearance",
263
+ "type": {
264
+ "text": "'default' | 'inverse'"
265
+ },
266
+ "description": "Defines whether the component will be on lighter or darker backgrounds.",
267
+ "default": "'default'",
268
+ "fieldName": "appearance"
269
+ },
270
+ {
271
+ "name": "disabled",
161
272
  "type": {
162
273
  "text": "boolean"
163
274
  },
164
- "fieldName": "isFullscreen"
275
+ "description": "If set, disables the checkbox group.",
276
+ "fieldName": "disabled"
165
277
  },
166
278
  {
167
- "name": "large",
279
+ "name": "error",
280
+ "type": {
281
+ "text": "string"
282
+ },
283
+ "description": "When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.",
284
+ "fieldName": "error"
285
+ },
286
+ {
287
+ "name": "horizontal",
168
288
  "type": {
169
289
  "text": "boolean"
170
290
  },
171
- "default": "false",
172
- "fieldName": "large"
291
+ "description": "If set, checkboxes will be aligned horizontally.",
292
+ "fieldName": "horizontal"
173
293
  },
174
294
  {
175
- "name": "showFooter",
295
+ "name": "noValidate",
176
296
  "type": {
177
297
  "text": "boolean"
178
298
  },
179
- "description": "If declared, the footer slot will be rendered even when not in fullscreen mode.",
180
- "fieldName": "showFooter"
181
- }
182
- ],
183
- "superclass": {
184
- "name": "LitElement",
185
- "package": "lit"
186
- },
187
- "tagName": "auro-bibtemplate",
188
- "customElement": true
189
- }
190
- ],
191
- "exports": [
192
- {
193
- "kind": "js",
194
- "name": "AuroBibtemplate",
195
- "declaration": {
196
- "name": "AuroBibtemplate",
197
- "module": "components/bibtemplate/src/auro-bibtemplate.js"
198
- }
199
- }
200
- ]
201
- },
202
- {
203
- "kind": "javascript-module",
204
- "path": "components/bibtemplate/src/buttonVersion.js",
205
- "declarations": [],
206
- "exports": [
207
- {
208
- "kind": "js",
209
- "name": "default",
210
- "declaration": {
211
- "name": "12.3.2",
212
- "module": "components/bibtemplate/src/buttonVersion.js"
213
- }
214
- }
215
- ]
216
- },
217
- {
218
- "kind": "javascript-module",
219
- "path": "components/bibtemplate/src/headerVersion.js",
220
- "declarations": [],
221
- "exports": [
222
- {
223
- "kind": "js",
224
- "name": "default",
225
- "declaration": {
226
- "name": "5.0.1",
227
- "module": "components/bibtemplate/src/headerVersion.js"
228
- }
229
- }
230
- ]
231
- },
232
- {
233
- "kind": "javascript-module",
234
- "path": "components/bibtemplate/src/iconVersion.js",
235
- "declarations": [],
236
- "exports": [
237
- {
238
- "kind": "js",
239
- "name": "default",
240
- "declaration": {
241
- "name": "9.2.0",
242
- "module": "components/bibtemplate/src/iconVersion.js"
243
- }
299
+ "description": "If set, disables auto-validation on blur.",
300
+ "fieldName": "noValidate"
301
+ },
302
+ {
303
+ "name": "onDark",
304
+ "type": {
305
+ "text": "boolean"
306
+ },
307
+ "description": "DEPRECATED - use `appearance=\"inverse\"` instead.",
308
+ "fieldName": "onDark"
309
+ },
310
+ {
311
+ "name": "required",
312
+ "type": {
313
+ "text": "boolean"
314
+ },
315
+ "description": "Populates the `required` attribute on the element. Used for client-side validation.",
316
+ "fieldName": "required"
317
+ },
318
+ {
319
+ "name": "setCustomValidity",
320
+ "type": {
321
+ "text": "string"
322
+ },
323
+ "description": "Sets a custom help text message to display for all validityStates.",
324
+ "fieldName": "setCustomValidity"
325
+ },
326
+ {
327
+ "name": "setCustomValidityCustomError",
328
+ "type": {
329
+ "text": "string"
330
+ },
331
+ "description": "Custom help text message to display when validity = `customError`.",
332
+ "fieldName": "setCustomValidityCustomError"
333
+ },
334
+ {
335
+ "name": "setCustomValidityValueMissing",
336
+ "type": {
337
+ "text": "string"
338
+ },
339
+ "description": "Custom help text message to display when validity = `valueMissing`.",
340
+ "fieldName": "setCustomValidityValueMissing"
341
+ },
342
+ {
343
+ "name": "validity",
344
+ "type": {
345
+ "text": "string"
346
+ },
347
+ "description": "Specifies the `validityState` this element is in.",
348
+ "fieldName": "validity"
349
+ }
350
+ ],
351
+ "superclass": {
352
+ "name": "LitElement",
353
+ "package": "lit"
354
+ },
355
+ "tagName": "auro-checkbox-group",
356
+ "customElement": true
244
357
  }
245
- ]
246
- },
247
- {
248
- "kind": "javascript-module",
249
- "path": "components/bibtemplate/src/index.js",
250
- "declarations": [],
358
+ ],
251
359
  "exports": [
252
360
  {
253
361
  "kind": "js",
254
- "name": "AuroBibtemplate",
362
+ "name": "AuroCheckboxGroup",
255
363
  "declaration": {
256
- "name": "AuroBibtemplate",
257
- "module": "components/bibtemplate/src/index.js"
364
+ "name": "AuroCheckboxGroup",
365
+ "module": "components/checkbox/src/auro-checkbox-group.js"
258
366
  }
259
367
  }
260
368
  ]
261
369
  },
262
370
  {
263
371
  "kind": "javascript-module",
264
- "path": "components/bibtemplate/src/registered.js",
265
- "declarations": [],
266
- "exports": []
267
- },
268
- {
269
- "kind": "javascript-module",
270
- "path": "components/checkbox/src/auro-checkbox-group.js",
372
+ "path": "components/checkbox/src/auro-checkbox.js",
271
373
  "declarations": [
272
374
  {
273
375
  "kind": "class",
274
- "description": "The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements.",
275
- "name": "AuroCheckboxGroup",
276
- "slots": [
376
+ "description": "The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.",
377
+ "name": "AuroCheckbox",
378
+ "cssParts": [
277
379
  {
278
- "description": "Allows for the legend to be overridden.",
279
- "name": "legend"
380
+ "description": "apply css to a specific checkbox.",
381
+ "name": "checkbox"
280
382
  },
281
383
  {
282
- "description": "Allows overriding the optional display text \"(optional)\", which appears next to the label.",
283
- "name": "optionalLabel"
384
+ "description": "apply css to a specific checkbox's input.",
385
+ "name": "checkbox-input"
284
386
  },
285
387
  {
286
- "description": "Allows for the helper text to be overridden.",
287
- "name": "helpText"
288
- },
388
+ "description": "apply css to a specific checkbox's label.",
389
+ "name": "checkbox-label"
390
+ }
391
+ ],
392
+ "slots": [
289
393
  {
290
- "description": "The default slot for the checkbox items.",
394
+ "description": "The default slot for the checkbox label.",
291
395
  "name": "default"
292
396
  }
293
397
  ],
@@ -303,8 +407,8 @@
303
407
  "parameters": [
304
408
  {
305
409
  "name": "name",
306
- "default": "\"auro-checkbox-group\"",
307
- "description": "The name of the element that you want to register.",
410
+ "default": "\"auro-checkbox\"",
411
+ "description": "The name of element that you want to register to.",
308
412
  "optional": true,
309
413
  "type": {
310
414
  "text": "string"
@@ -315,24 +419,37 @@
315
419
  },
316
420
  {
317
421
  "kind": "method",
318
- "name": "handleValueUpdate",
422
+ "name": "handleChange",
319
423
  "parameters": [
320
424
  {
321
- "name": "value",
322
- "description": "The value of the checkbox.",
425
+ "name": "event",
426
+ "description": "The change event from the checkbox input.",
323
427
  "type": {
324
- "text": "String"
428
+ "text": "Event"
325
429
  }
326
- },
430
+ }
431
+ ],
432
+ "description": "Handles the change event for the checkbox input.\nUpdates the checked state and dispatches a corresponding custom event.\nThis custom event is only for the purpose of supporting IE.",
433
+ "privacy": "private",
434
+ "return": {
435
+ "type": {
436
+ "text": "void"
437
+ }
438
+ }
439
+ },
440
+ {
441
+ "kind": "method",
442
+ "name": "handleInput",
443
+ "parameters": [
327
444
  {
328
- "name": "selected",
329
- "description": "The checked state of the checkbox.",
445
+ "name": "event",
446
+ "description": "The input event from the checkbox input.",
330
447
  "type": {
331
- "text": "Boolean"
448
+ "text": "Event"
332
449
  }
333
450
  }
334
451
  ],
335
- "description": "Helper method to handle checkbox value changing.",
452
+ "description": "Handles the input event for the checkbox input.\nUpdates the checked state and dispatches a custom 'auroCheckbox-input' event.",
336
453
  "privacy": "private",
337
454
  "return": {
338
455
  "type": {
@@ -342,8 +459,8 @@
342
459
  },
343
460
  {
344
461
  "kind": "method",
345
- "name": "handlePreselectedItems",
346
- "description": "Helper method that handles the state of preselected checkboxes.",
462
+ "name": "handleFocusin",
463
+ "description": "Function to support",
347
464
  "privacy": "private",
348
465
  "return": {
349
466
  "type": {
@@ -353,12 +470,12 @@
353
470
  },
354
471
  {
355
472
  "kind": "method",
356
- "name": "handleItems",
357
- "description": "Helper method that handles the state of checkboxes.",
473
+ "name": "generateIconHtml",
474
+ "description": "Function to generate checkmark svg.",
358
475
  "privacy": "private",
359
476
  "return": {
360
477
  "type": {
361
- "text": "void"
478
+ "text": "HTMLElement"
362
479
  }
363
480
  }
364
481
  },
@@ -374,19 +491,34 @@
374
491
  },
375
492
  {
376
493
  "kind": "method",
377
- "name": "validate",
494
+ "name": "updateAriaLabel",
495
+ "description": "Updates the aria-label based on slot content.",
496
+ "privacy": "private",
497
+ "return": {
498
+ "type": {
499
+ "text": "void"
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "kind": "method",
505
+ "name": "handleKeyDown",
378
506
  "parameters": [
379
507
  {
380
- "name": "force",
381
- "default": "false",
382
- "description": "Whether to force validation.",
383
- "optional": true,
508
+ "name": "event",
509
+ "description": "The keydown event from the checkbox input.",
384
510
  "type": {
385
- "text": "boolean"
511
+ "text": "KeyboardEvent"
386
512
  }
387
513
  }
388
514
  ],
389
- "description": "Validates value."
515
+ "description": "Handles keydown event to toggle the checkbox with Space key.",
516
+ "privacy": "private",
517
+ "return": {
518
+ "type": {
519
+ "text": "void"
520
+ }
521
+ }
390
522
  },
391
523
  {
392
524
  "kind": "field",
@@ -400,6 +532,17 @@
400
532
  "attribute": "appearance",
401
533
  "reflects": true
402
534
  },
535
+ {
536
+ "kind": "field",
537
+ "name": "checked",
538
+ "privacy": "public",
539
+ "type": {
540
+ "text": "boolean"
541
+ },
542
+ "description": "If set to true, the checkbox will be filled with a checkmark.",
543
+ "attribute": "checked",
544
+ "reflects": true
545
+ },
403
546
  {
404
547
  "kind": "field",
405
548
  "name": "disabled",
@@ -407,7 +550,7 @@
407
550
  "type": {
408
551
  "text": "boolean"
409
552
  },
410
- "description": "If set, disables the checkbox group.",
553
+ "description": "If set to true, the checkbox will not be clickable.",
411
554
  "attribute": "disabled",
412
555
  "reflects": true
413
556
  },
@@ -416,33 +559,41 @@
416
559
  "name": "error",
417
560
  "privacy": "public",
418
561
  "type": {
419
- "text": "string"
562
+ "text": "boolean"
420
563
  },
421
- "description": "When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.",
564
+ "description": "If set to true, the checkbox will be displayed with an error state.",
422
565
  "attribute": "error",
423
566
  "reflects": true
424
567
  },
425
568
  {
426
569
  "kind": "field",
427
- "name": "horizontal",
570
+ "name": "id",
428
571
  "privacy": "public",
429
572
  "type": {
430
- "text": "boolean"
573
+ "text": "string"
431
574
  },
432
- "description": "If set, checkboxes will be aligned horizontally.",
433
- "attribute": "horizontal",
575
+ "description": "The id global attribute defines an identifier (ID) which must be unique in the whole document.",
576
+ "attribute": "id",
434
577
  "reflects": true
435
578
  },
436
579
  {
437
580
  "kind": "field",
438
- "name": "noValidate",
581
+ "name": "inputId",
582
+ "privacy": "private",
583
+ "type": {
584
+ "text": "string"
585
+ },
586
+ "description": "The id for input node."
587
+ },
588
+ {
589
+ "kind": "field",
590
+ "name": "name",
439
591
  "privacy": "public",
440
592
  "type": {
441
- "text": "boolean"
593
+ "text": "string"
442
594
  },
443
- "description": "If set, disables auto-validation on blur.",
444
- "attribute": "noValidate",
445
- "reflects": true
595
+ "description": "Accepts any string and is used to identify related checkboxes when submitting form data.",
596
+ "attribute": "name"
446
597
  },
447
598
  {
448
599
  "kind": "field",
@@ -457,67 +608,94 @@
457
608
  },
458
609
  {
459
610
  "kind": "field",
460
- "name": "required",
461
- "privacy": "public",
611
+ "name": "touched",
612
+ "privacy": "private",
462
613
  "type": {
463
614
  "text": "boolean"
464
615
  },
465
- "description": "Populates the `required` attribute on the element. Used for client-side validation.",
466
- "attribute": "required",
467
- "reflects": true
616
+ "description": "Indicates whether the checkbox has been interacted with."
468
617
  },
469
618
  {
470
619
  "kind": "field",
471
- "name": "setCustomValidity",
620
+ "name": "value",
472
621
  "privacy": "public",
473
622
  "type": {
474
623
  "text": "string"
475
624
  },
476
- "description": "Sets a custom help text message to display for all validityStates.",
477
- "attribute": "setCustomValidity"
625
+ "description": "Sets the element's input value. Must be unique within an auro-checkbox-group element.",
626
+ "attribute": "value"
478
627
  },
479
628
  {
480
629
  "kind": "field",
481
- "name": "setCustomValidityCustomError",
482
- "privacy": "public",
630
+ "name": "tabIndex",
631
+ "privacy": "private",
632
+ "type": {
633
+ "text": "number"
634
+ },
635
+ "description": "The tabindex attribute for the checkbox.",
636
+ "attribute": "tabindex",
637
+ "reflects": true
638
+ },
639
+ {
640
+ "kind": "field",
641
+ "name": "ariaChecked",
642
+ "privacy": "private",
483
643
  "type": {
484
644
  "text": "string"
485
645
  },
486
- "description": "Custom help text message to display when validity = `customError`.",
487
- "attribute": "setCustomValidityCustomError"
646
+ "description": "The aria-checked attribute for the checkbox.",
647
+ "attribute": "aria-checked",
648
+ "reflects": true
488
649
  },
489
650
  {
490
651
  "kind": "field",
491
- "name": "setCustomValidityValueMissing",
492
- "privacy": "public",
652
+ "name": "ariaDisabled",
653
+ "privacy": "private",
493
654
  "type": {
494
655
  "text": "string"
495
656
  },
496
- "description": "Custom help text message to display when validity = `valueMissing`.",
497
- "attribute": "setCustomValidityValueMissing"
657
+ "description": "The aria-disabled attribute for the checkbox.",
658
+ "attribute": "aria-disabled",
659
+ "reflects": true
498
660
  },
499
661
  {
500
662
  "kind": "field",
501
- "name": "validity",
502
- "privacy": "public",
663
+ "name": "role",
664
+ "privacy": "private",
503
665
  "type": {
504
666
  "text": "string"
505
667
  },
506
- "description": "Specifies the `validityState` this element is in.",
507
- "attribute": "validity",
668
+ "description": "The ARIA role for the element. Must remain 'checkbox' for screen readers\nto correctly identify this as a checkbox control.",
669
+ "attribute": "role",
508
670
  "reflects": true
509
671
  }
510
672
  ],
511
673
  "events": [
512
674
  {
513
- "name": "input",
675
+ "name": "auroCheckbox-input",
514
676
  "type": {
515
677
  "text": "CustomEvent"
516
678
  }
517
679
  },
518
680
  {
519
- "description": "Notifies that the `validity` and `errorMessage` values have changed.",
520
- "name": "auroFormElement-validated"
681
+ "name": "auroCheckbox-focusin",
682
+ "type": {
683
+ "text": "CustomEvent"
684
+ }
685
+ },
686
+ {
687
+ "name": "auroCheckbox-focusout",
688
+ "type": {
689
+ "text": "CustomEvent"
690
+ }
691
+ },
692
+ {
693
+ "description": "(Deprecated) Notifies when checked value is changed.",
694
+ "name": "change"
695
+ },
696
+ {
697
+ "description": "Notifies when when checked value is changed by user's interface.",
698
+ "name": "input"
521
699
  }
522
700
  ],
523
701
  "attributes": [
@@ -530,37 +708,45 @@
530
708
  "default": "'default'",
531
709
  "fieldName": "appearance"
532
710
  },
711
+ {
712
+ "name": "checked",
713
+ "type": {
714
+ "text": "boolean"
715
+ },
716
+ "description": "If set to true, the checkbox will be filled with a checkmark.",
717
+ "fieldName": "checked"
718
+ },
533
719
  {
534
720
  "name": "disabled",
535
721
  "type": {
536
722
  "text": "boolean"
537
723
  },
538
- "description": "If set, disables the checkbox group.",
724
+ "description": "If set to true, the checkbox will not be clickable.",
539
725
  "fieldName": "disabled"
540
726
  },
541
727
  {
542
728
  "name": "error",
543
729
  "type": {
544
- "text": "string"
730
+ "text": "boolean"
545
731
  },
546
- "description": "When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.",
732
+ "description": "If set to true, the checkbox will be displayed with an error state.",
547
733
  "fieldName": "error"
548
734
  },
549
735
  {
550
- "name": "horizontal",
736
+ "name": "id",
551
737
  "type": {
552
- "text": "boolean"
738
+ "text": "string"
553
739
  },
554
- "description": "If set, checkboxes will be aligned horizontally.",
555
- "fieldName": "horizontal"
740
+ "description": "The id global attribute defines an identifier (ID) which must be unique in the whole document.",
741
+ "fieldName": "id"
556
742
  },
557
743
  {
558
- "name": "noValidate",
744
+ "name": "name",
559
745
  "type": {
560
- "text": "boolean"
746
+ "text": "string"
561
747
  },
562
- "description": "If set, disables auto-validation on blur.",
563
- "fieldName": "noValidate"
748
+ "description": "Accepts any string and is used to identify related checkboxes when submitting form data.",
749
+ "fieldName": "name"
564
750
  },
565
751
  {
566
752
  "name": "onDark",
@@ -571,98 +757,125 @@
571
757
  "fieldName": "onDark"
572
758
  },
573
759
  {
574
- "name": "required",
760
+ "name": "value",
575
761
  "type": {
576
- "text": "boolean"
762
+ "text": "string"
577
763
  },
578
- "description": "Populates the `required` attribute on the element. Used for client-side validation.",
579
- "fieldName": "required"
764
+ "description": "Sets the element's input value. Must be unique within an auro-checkbox-group element.",
765
+ "fieldName": "value"
580
766
  },
581
767
  {
582
- "name": "setCustomValidity",
768
+ "name": "tabindex",
583
769
  "type": {
584
- "text": "string"
770
+ "text": "number"
585
771
  },
586
- "description": "Sets a custom help text message to display for all validityStates.",
587
- "fieldName": "setCustomValidity"
772
+ "description": "The tabindex attribute for the checkbox.",
773
+ "fieldName": "tabIndex"
588
774
  },
589
775
  {
590
- "name": "setCustomValidityCustomError",
776
+ "name": "aria-checked",
591
777
  "type": {
592
778
  "text": "string"
593
779
  },
594
- "description": "Custom help text message to display when validity = `customError`.",
595
- "fieldName": "setCustomValidityCustomError"
780
+ "description": "The aria-checked attribute for the checkbox.",
781
+ "fieldName": "ariaChecked"
596
782
  },
597
783
  {
598
- "name": "setCustomValidityValueMissing",
784
+ "name": "aria-disabled",
599
785
  "type": {
600
786
  "text": "string"
601
787
  },
602
- "description": "Custom help text message to display when validity = `valueMissing`.",
603
- "fieldName": "setCustomValidityValueMissing"
788
+ "description": "The aria-disabled attribute for the checkbox.",
789
+ "fieldName": "ariaDisabled"
604
790
  },
605
791
  {
606
- "name": "validity",
792
+ "name": "role",
607
793
  "type": {
608
794
  "text": "string"
609
795
  },
610
- "description": "Specifies the `validityState` this element is in.",
611
- "fieldName": "validity"
796
+ "description": "The ARIA role for the element. Must remain 'checkbox' for screen readers\nto correctly identify this as a checkbox control.",
797
+ "fieldName": "role"
612
798
  }
613
799
  ],
614
800
  "superclass": {
615
801
  "name": "LitElement",
616
802
  "package": "lit"
617
803
  },
618
- "tagName": "auro-checkbox-group",
804
+ "tagName": "auro-checkbox",
619
805
  "customElement": true
620
806
  }
621
807
  ],
622
808
  "exports": [
809
+ {
810
+ "kind": "js",
811
+ "name": "AuroCheckbox",
812
+ "declaration": {
813
+ "name": "AuroCheckbox",
814
+ "module": "components/checkbox/src/auro-checkbox.js"
815
+ }
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "kind": "javascript-module",
821
+ "path": "components/checkbox/src/index.js",
822
+ "declarations": [],
823
+ "exports": [
824
+ {
825
+ "kind": "js",
826
+ "name": "AuroCheckbox",
827
+ "declaration": {
828
+ "name": "AuroCheckbox",
829
+ "module": "components/checkbox/src/index.js"
830
+ }
831
+ },
623
832
  {
624
833
  "kind": "js",
625
834
  "name": "AuroCheckboxGroup",
626
835
  "declaration": {
627
836
  "name": "AuroCheckboxGroup",
628
- "module": "components/checkbox/src/auro-checkbox-group.js"
837
+ "module": "components/checkbox/src/index.js"
629
838
  }
630
839
  }
631
840
  ]
632
841
  },
633
842
  {
634
843
  "kind": "javascript-module",
635
- "path": "components/checkbox/src/auro-checkbox.js",
844
+ "path": "components/checkbox/src/registered.js",
845
+ "declarations": [],
846
+ "exports": []
847
+ },
848
+ {
849
+ "kind": "javascript-module",
850
+ "path": "components/bibtemplate/src/auro-bibtemplate.js",
636
851
  "declarations": [
637
852
  {
638
853
  "kind": "class",
639
- "description": "The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.",
640
- "name": "AuroCheckbox",
641
- "cssParts": [
854
+ "description": "The `auro-bibtemplate` element provides users a template for creating modal dialog elements.",
855
+ "name": "AuroBibtemplate",
856
+ "slots": [
642
857
  {
643
- "description": "apply css to a specific checkbox.",
644
- "name": "checkbox"
858
+ "description": "The default slot for the main content.",
859
+ "name": "default"
645
860
  },
646
861
  {
647
- "description": "apply css to a specific checkbox's input.",
648
- "name": "checkbox-input"
862
+ "description": "Slot for the header content.",
863
+ "name": "header"
649
864
  },
650
865
  {
651
- "description": "apply css to a specific checkbox's label.",
652
- "name": "checkbox-label"
653
- }
654
- ],
655
- "slots": [
866
+ "description": "Slot for the subheader content.",
867
+ "name": "subheader"
868
+ },
656
869
  {
657
- "description": "The default slot for the checkbox label.",
658
- "name": "default"
870
+ "description": "Slot for the footer content.",
871
+ "name": "footer"
872
+ },
873
+ {
874
+ "description": "Slot for the close button aria-label.",
875
+ "name": "ariaLabel.close"
659
876
  }
660
877
  ],
661
878
  "members": [
662
- {
663
- "kind": "method",
664
- "name": "_initializeDefaults"
665
- },
666
879
  {
667
880
  "kind": "method",
668
881
  "name": "register",
@@ -670,7 +883,7 @@
670
883
  "parameters": [
671
884
  {
672
885
  "name": "name",
673
- "default": "\"auro-checkbox\"",
886
+ "default": "\"auro-bibtemplate\"",
674
887
  "description": "The name of element that you want to register to.",
675
888
  "optional": true,
676
889
  "type": {
@@ -682,38 +895,17 @@
682
895
  },
683
896
  {
684
897
  "kind": "method",
685
- "name": "handleChange",
686
- "parameters": [
687
- {
688
- "name": "event",
689
- "description": "The change event from the checkbox input.",
690
- "type": {
691
- "text": "Event"
692
- }
693
- }
694
- ],
695
- "description": "Handles the change event for the checkbox input.\nUpdates the checked state and dispatches a corresponding custom event.\nThis custom event is only for the purpose of supporting IE.",
696
- "privacy": "private",
697
- "return": {
698
- "type": {
699
- "text": "void"
700
- }
701
- }
702
- },
703
- {
704
- "kind": "method",
705
- "name": "handleInput",
898
+ "name": "preventBodyScroll",
706
899
  "parameters": [
707
900
  {
708
901
  "name": "event",
709
- "description": "The input event from the checkbox input.",
902
+ "description": "The touchmove event.",
710
903
  "type": {
711
904
  "text": "Event"
712
905
  }
713
906
  }
714
907
  ],
715
- "description": "Handles the input event for the checkbox input.\nUpdates the checked state and dispatches a custom 'auroCheckbox-input' event.",
716
- "privacy": "private",
908
+ "description": "Prevents scrolling of the body when touching empty areas of the component.",
717
909
  "return": {
718
910
  "type": {
719
911
  "text": "void"
@@ -722,9 +914,8 @@
722
914
  },
723
915
  {
724
916
  "kind": "method",
725
- "name": "handleFocusin",
726
- "description": "Function to support",
727
- "privacy": "private",
917
+ "name": "focusCloseButton",
918
+ "description": "Focuses the close button inside the bibtemplate's shadow DOM.\nUsed by parent components to set initial focus when the fullscreen dialog opens.",
728
919
  "return": {
729
920
  "type": {
730
921
  "text": "void"
@@ -733,378 +924,187 @@
733
924
  },
734
925
  {
735
926
  "kind": "method",
736
- "name": "generateIconHtml",
737
- "description": "Function to generate checkmark svg.",
738
- "privacy": "private",
739
- "return": {
740
- "type": {
741
- "text": "HTMLElement"
742
- }
743
- }
927
+ "name": "onCloseButtonClick"
744
928
  },
745
929
  {
746
930
  "kind": "method",
747
- "name": "reset",
748
- "description": "Resets component to initial state.",
931
+ "name": "exposeCssParts",
932
+ "description": "Exposes CSS parts for styling from parent components.",
749
933
  "return": {
750
934
  "type": {
751
935
  "text": "void"
752
936
  }
753
937
  }
754
938
  },
755
- {
756
- "kind": "method",
757
- "name": "updateAriaLabel",
758
- "description": "Updates the aria-label based on slot content.",
759
- "privacy": "private",
760
- "return": {
761
- "type": {
762
- "text": "void"
763
- }
764
- }
765
- },
766
- {
767
- "kind": "method",
768
- "name": "handleKeyDown",
769
- "parameters": [
770
- {
771
- "name": "event",
772
- "description": "The keydown event from the checkbox input.",
773
- "type": {
774
- "text": "KeyboardEvent"
775
- }
776
- }
777
- ],
778
- "description": "Handles keydown event to toggle the checkbox with Space key.",
779
- "privacy": "private",
780
- "return": {
781
- "type": {
782
- "text": "void"
783
- }
784
- }
785
- },
786
- {
787
- "kind": "field",
788
- "name": "appearance",
789
- "privacy": "public",
790
- "type": {
791
- "text": "'default' | 'inverse'"
792
- },
793
- "description": "Defines whether the component will be on lighter or darker backgrounds.",
794
- "default": "'default'",
795
- "attribute": "appearance",
796
- "reflects": true
797
- },
798
- {
799
- "kind": "field",
800
- "name": "checked",
801
- "privacy": "public",
802
- "type": {
803
- "text": "boolean"
804
- },
805
- "description": "If set to true, the checkbox will be filled with a checkmark.",
806
- "attribute": "checked",
807
- "reflects": true
808
- },
809
- {
810
- "kind": "field",
811
- "name": "disabled",
812
- "privacy": "public",
813
- "type": {
814
- "text": "boolean"
815
- },
816
- "description": "If set to true, the checkbox will not be clickable.",
817
- "attribute": "disabled",
818
- "reflects": true
819
- },
820
939
  {
821
940
  "kind": "field",
822
- "name": "error",
941
+ "name": "large",
823
942
  "privacy": "public",
824
943
  "type": {
825
944
  "text": "boolean"
826
945
  },
827
- "description": "If set to true, the checkbox will be displayed with an error state.",
828
- "attribute": "error",
946
+ "default": "false",
947
+ "attribute": "large",
829
948
  "reflects": true
830
949
  },
831
950
  {
832
951
  "kind": "field",
833
- "name": "id",
834
- "privacy": "public",
835
- "type": {
836
- "text": "string"
837
- },
838
- "description": "The id global attribute defines an identifier (ID) which must be unique in the whole document.",
839
- "attribute": "id",
840
- "reflects": true
952
+ "name": "iconTag",
953
+ "privacy": "private"
841
954
  },
842
955
  {
843
956
  "kind": "field",
844
- "name": "inputId",
845
- "privacy": "private",
846
- "type": {
847
- "text": "string"
848
- },
849
- "description": "The id for input node."
957
+ "name": "headerTag",
958
+ "privacy": "private"
850
959
  },
851
960
  {
852
961
  "kind": "field",
853
- "name": "name",
854
- "privacy": "public",
855
- "type": {
856
- "text": "string"
857
- },
858
- "description": "Accepts any string and is used to identify related checkboxes when submitting form data.",
859
- "attribute": "name"
962
+ "name": "buttonTag",
963
+ "privacy": "private"
860
964
  },
861
965
  {
862
966
  "kind": "field",
863
- "name": "onDark",
967
+ "name": "isFullscreen",
864
968
  "privacy": "public",
865
969
  "type": {
866
970
  "text": "boolean"
867
971
  },
868
- "description": "DEPRECATED - use `appearance=\"inverse\"` instead.",
869
- "attribute": "onDark",
972
+ "attribute": "isFullscreen",
870
973
  "reflects": true
871
974
  },
872
975
  {
873
976
  "kind": "field",
874
- "name": "touched",
875
- "privacy": "private",
876
- "type": {
877
- "text": "boolean"
878
- },
879
- "description": "Indicates whether the checkbox has been interacted with."
880
- },
881
- {
882
- "kind": "field",
883
- "name": "value",
977
+ "name": "showFooter",
884
978
  "privacy": "public",
885
979
  "type": {
886
- "text": "string"
887
- },
888
- "description": "Sets the element's input value. Must be unique within an auro-checkbox-group element.",
889
- "attribute": "value"
890
- },
891
- {
892
- "kind": "field",
893
- "name": "tabIndex",
894
- "privacy": "private",
895
- "type": {
896
- "text": "number"
897
- },
898
- "description": "The tabindex attribute for the checkbox.",
899
- "attribute": "tabindex",
900
- "reflects": true
901
- },
902
- {
903
- "kind": "field",
904
- "name": "ariaChecked",
905
- "privacy": "private",
906
- "type": {
907
- "text": "string"
908
- },
909
- "description": "The aria-checked attribute for the checkbox.",
910
- "attribute": "aria-checked",
911
- "reflects": true
912
- },
913
- {
914
- "kind": "field",
915
- "name": "ariaDisabled",
916
- "privacy": "private",
917
- "type": {
918
- "text": "string"
919
- },
920
- "description": "The aria-disabled attribute for the checkbox.",
921
- "attribute": "aria-disabled",
922
- "reflects": true
923
- },
924
- {
925
- "kind": "field",
926
- "name": "role",
927
- "privacy": "private",
928
- "type": {
929
- "text": "string"
980
+ "text": "boolean"
930
981
  },
931
- "description": "The ARIA role for the element. Must remain 'checkbox' for screen readers\nto correctly identify this as a checkbox control.",
932
- "attribute": "role",
982
+ "description": "If declared, the footer slot will be rendered even when not in fullscreen mode.",
983
+ "attribute": "showFooter",
933
984
  "reflects": true
934
985
  }
935
986
  ],
936
987
  "events": [
937
988
  {
938
- "name": "auroCheckbox-input",
939
- "type": {
940
- "text": "CustomEvent"
941
- }
942
- },
943
- {
944
- "name": "auroCheckbox-focusin",
989
+ "name": "close-click",
945
990
  "type": {
946
- "text": "CustomEvent"
991
+ "text": "Event"
947
992
  }
948
993
  },
949
994
  {
950
- "name": "auroCheckbox-focusout",
995
+ "name": "auro-bibtemplate-connected",
951
996
  "type": {
952
997
  "text": "CustomEvent"
953
998
  }
954
- },
955
- {
956
- "description": "(Deprecated) Notifies when checked value is changed.",
957
- "name": "change"
958
- },
959
- {
960
- "description": "Notifies when when checked value is changed by user's interface.",
961
- "name": "input"
962
999
  }
963
1000
  ],
964
1001
  "attributes": [
965
1002
  {
966
- "name": "appearance",
967
- "type": {
968
- "text": "'default' | 'inverse'"
969
- },
970
- "description": "Defines whether the component will be on lighter or darker backgrounds.",
971
- "default": "'default'",
972
- "fieldName": "appearance"
973
- },
974
- {
975
- "name": "checked",
976
- "type": {
977
- "text": "boolean"
978
- },
979
- "description": "If set to true, the checkbox will be filled with a checkmark.",
980
- "fieldName": "checked"
981
- },
982
- {
983
- "name": "disabled",
1003
+ "name": "isFullscreen",
984
1004
  "type": {
985
1005
  "text": "boolean"
986
1006
  },
987
- "description": "If set to true, the checkbox will not be clickable.",
988
- "fieldName": "disabled"
1007
+ "fieldName": "isFullscreen"
989
1008
  },
990
1009
  {
991
- "name": "error",
1010
+ "name": "large",
992
1011
  "type": {
993
1012
  "text": "boolean"
994
1013
  },
995
- "description": "If set to true, the checkbox will be displayed with an error state.",
996
- "fieldName": "error"
997
- },
998
- {
999
- "name": "id",
1000
- "type": {
1001
- "text": "string"
1002
- },
1003
- "description": "The id global attribute defines an identifier (ID) which must be unique in the whole document.",
1004
- "fieldName": "id"
1005
- },
1006
- {
1007
- "name": "name",
1008
- "type": {
1009
- "text": "string"
1010
- },
1011
- "description": "Accepts any string and is used to identify related checkboxes when submitting form data.",
1012
- "fieldName": "name"
1014
+ "default": "false",
1015
+ "fieldName": "large"
1013
1016
  },
1014
1017
  {
1015
- "name": "onDark",
1018
+ "name": "showFooter",
1016
1019
  "type": {
1017
1020
  "text": "boolean"
1018
1021
  },
1019
- "description": "DEPRECATED - use `appearance=\"inverse\"` instead.",
1020
- "fieldName": "onDark"
1021
- },
1022
- {
1023
- "name": "value",
1024
- "type": {
1025
- "text": "string"
1026
- },
1027
- "description": "Sets the element's input value. Must be unique within an auro-checkbox-group element.",
1028
- "fieldName": "value"
1029
- },
1030
- {
1031
- "name": "tabindex",
1032
- "type": {
1033
- "text": "number"
1034
- },
1035
- "description": "The tabindex attribute for the checkbox.",
1036
- "fieldName": "tabIndex"
1037
- },
1038
- {
1039
- "name": "aria-checked",
1040
- "type": {
1041
- "text": "string"
1042
- },
1043
- "description": "The aria-checked attribute for the checkbox.",
1044
- "fieldName": "ariaChecked"
1045
- },
1046
- {
1047
- "name": "aria-disabled",
1048
- "type": {
1049
- "text": "string"
1050
- },
1051
- "description": "The aria-disabled attribute for the checkbox.",
1052
- "fieldName": "ariaDisabled"
1053
- },
1054
- {
1055
- "name": "role",
1056
- "type": {
1057
- "text": "string"
1058
- },
1059
- "description": "The ARIA role for the element. Must remain 'checkbox' for screen readers\nto correctly identify this as a checkbox control.",
1060
- "fieldName": "role"
1022
+ "description": "If declared, the footer slot will be rendered even when not in fullscreen mode.",
1023
+ "fieldName": "showFooter"
1061
1024
  }
1062
1025
  ],
1063
1026
  "superclass": {
1064
1027
  "name": "LitElement",
1065
1028
  "package": "lit"
1066
1029
  },
1067
- "tagName": "auro-checkbox",
1030
+ "tagName": "auro-bibtemplate",
1068
1031
  "customElement": true
1069
1032
  }
1070
1033
  ],
1071
1034
  "exports": [
1072
1035
  {
1073
1036
  "kind": "js",
1074
- "name": "AuroCheckbox",
1037
+ "name": "AuroBibtemplate",
1075
1038
  "declaration": {
1076
- "name": "AuroCheckbox",
1077
- "module": "components/checkbox/src/auro-checkbox.js"
1039
+ "name": "AuroBibtemplate",
1040
+ "module": "components/bibtemplate/src/auro-bibtemplate.js"
1078
1041
  }
1079
1042
  }
1080
1043
  ]
1081
1044
  },
1082
1045
  {
1083
1046
  "kind": "javascript-module",
1084
- "path": "components/checkbox/src/index.js",
1047
+ "path": "components/bibtemplate/src/buttonVersion.js",
1085
1048
  "declarations": [],
1086
1049
  "exports": [
1087
1050
  {
1088
1051
  "kind": "js",
1089
- "name": "AuroCheckbox",
1052
+ "name": "default",
1090
1053
  "declaration": {
1091
- "name": "AuroCheckbox",
1092
- "module": "components/checkbox/src/index.js"
1054
+ "name": "12.3.2",
1055
+ "module": "components/bibtemplate/src/buttonVersion.js"
1093
1056
  }
1094
- },
1057
+ }
1058
+ ]
1059
+ },
1060
+ {
1061
+ "kind": "javascript-module",
1062
+ "path": "components/bibtemplate/src/headerVersion.js",
1063
+ "declarations": [],
1064
+ "exports": [
1095
1065
  {
1096
1066
  "kind": "js",
1097
- "name": "AuroCheckboxGroup",
1067
+ "name": "default",
1098
1068
  "declaration": {
1099
- "name": "AuroCheckboxGroup",
1100
- "module": "components/checkbox/src/index.js"
1069
+ "name": "5.0.1",
1070
+ "module": "components/bibtemplate/src/headerVersion.js"
1101
1071
  }
1102
1072
  }
1103
1073
  ]
1104
1074
  },
1105
1075
  {
1106
1076
  "kind": "javascript-module",
1107
- "path": "components/checkbox/src/registered.js",
1077
+ "path": "components/bibtemplate/src/iconVersion.js",
1078
+ "declarations": [],
1079
+ "exports": [
1080
+ {
1081
+ "kind": "js",
1082
+ "name": "default",
1083
+ "declaration": {
1084
+ "name": "9.2.0",
1085
+ "module": "components/bibtemplate/src/iconVersion.js"
1086
+ }
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ "kind": "javascript-module",
1092
+ "path": "components/bibtemplate/src/index.js",
1093
+ "declarations": [],
1094
+ "exports": [
1095
+ {
1096
+ "kind": "js",
1097
+ "name": "AuroBibtemplate",
1098
+ "declaration": {
1099
+ "name": "AuroBibtemplate",
1100
+ "module": "components/bibtemplate/src/index.js"
1101
+ }
1102
+ }
1103
+ ]
1104
+ },
1105
+ {
1106
+ "kind": "javascript-module",
1107
+ "path": "components/bibtemplate/src/registered.js",
1108
1108
  "declarations": [],
1109
1109
  "exports": []
1110
1110
  },
@@ -2454,7 +2454,7 @@
2454
2454
  "type": {
2455
2455
  "text": "object"
2456
2456
  },
2457
- "default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { component.activateLastEnabledAvailableOption(); } else { navigateArrow(component, 'down'); } } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { component.activateFirstEnabledAvailableOption(); } else { navigateArrow(component, 'up'); } } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { if (isClearBtnFocused(ctx)) { // If the clear button has focus, let the browser activate it normally. // stopPropagation prevents parent containers (e.g., forms) from treating // Enter as a submit, but we must NOT call preventDefault — that would // block the browser's built-in \"Enter activates focused button\" behavior. evt.stopPropagation(); } else if (ctx.isExpanded && component.menu.optionActive) { reconcileMenuIndex(component.menu); component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); evt.stopPropagation(); } else { // Prevent the keypress from bubbling to parent containers (e.g., forms) // which could interpret Enter as a submit or trigger other unintended behavior. // This is safe because showBib() opens the dialog programmatically, // not via event propagation. evt.preventDefault(); evt.stopPropagation(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { if (ctx.isExpanded && !isClearBtnFocused(ctx)) { // When the clear button is focused, Tab events do not bubble out of // its shadow DOM, so this handler only fires when the clear button // is NOT focused. In that case, select the active option and close. reconcileMenuIndex(component.menu); component.menu.makeSelection(); component.hideBib(); // In fullscreen modal mode, closing the dialog does not // automatically restores focus to the input. In the tab case, // Explicitly move focus to the trigger's clear button so the // user can continues tabbing through the page normally. if (ctx.isModal && !evt.shiftKey) { component.setClearBtnFocus(); } } }, }"
2457
+ "default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { component.activateLastEnabledAvailableOption(); } else { navigateArrow(component, 'down'); } } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { component.activateFirstEnabledAvailableOption(); } else { navigateArrow(component, 'up'); } } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { if (isClearBtnFocused(ctx)) { // If the clear button has focus, let the browser activate it normally. // stopPropagation prevents parent containers (e.g., forms) from treating // Enter as a submit, but we must NOT call preventDefault — that would // block the browser's built-in \"Enter activates focused button\" behavior. evt.stopPropagation(); } else if (ctx.isExpanded && component.menu.optionActive) { component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); evt.stopPropagation(); } else { // Prevent the keypress from bubbling to parent containers (e.g., forms) // which could interpret Enter as a submit or trigger other unintended behavior. // This is safe because showBib() opens the dialog programmatically, // not via event propagation. evt.preventDefault(); evt.stopPropagation(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { if (ctx.isExpanded && !isClearBtnFocused(ctx)) { // When the clear button is focused, Tab events do not bubble out of // its shadow DOM, so this handler only fires when the clear button // is NOT focused. In that case, select the active option and close. component.menu.makeSelection(); component.hideBib(); // In fullscreen modal mode, closing the dialog does not // automatically restores focus to the input. In the tab case, // Explicitly move focus to the trigger's clear button so the // user can continues tabbing through the page normally. if (ctx.isModal && !evt.shiftKey) { component.setClearBtnFocus(); } } }, }"
2458
2458
  }
2459
2459
  ],
2460
2460
  "exports": [
@@ -6951,7 +6951,7 @@
6951
6951
  "name": "date",
6952
6952
  "description": "Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.",
6953
6953
  "type": {
6954
- "text": "string"
6954
+ "text": "Date"
6955
6955
  }
6956
6956
  }
6957
6957
  ],
@@ -6968,10 +6968,10 @@
6968
6968
  "name": "renderDisplayTextDate",
6969
6969
  "parameters": [
6970
6970
  {
6971
- "name": "dateValue",
6971
+ "name": "date",
6972
6972
  "description": "The date value to format and render.",
6973
6973
  "type": {
6974
- "text": "string"
6974
+ "text": "Date"
6975
6975
  }
6976
6976
  }
6977
6977
  ],
@@ -11696,30 +11696,6 @@
11696
11696
  "module": "components/input/src/base-input.js"
11697
11697
  }
11698
11698
  },
11699
- {
11700
- "kind": "method",
11701
- "name": "_computeDateObjectFallback",
11702
- "parameters": [
11703
- {
11704
- "name": "dateStr",
11705
- "description": "ISO date string from `value`/`min`/`max`.",
11706
- "type": {
11707
- "text": "string|undefined"
11708
- }
11709
- }
11710
- ],
11711
- "description": "Parses a date string into a Date object when the corresponding `_*Object`\nfield hasn't been synced yet by `updated()`. Returns undefined when the\ninput type/format isn't a full date or the string is not a valid date.\n\nWhy this exists: a parent (datepicker) can call `inputN.validate()` from\ninside its own `updated()` before this input's `updated()` has run\n`syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`\nand range checks would otherwise silently no-op (flipping the result to\n`valid` or `patternMismatch`).",
11712
- "privacy": "private",
11713
- "return": {
11714
- "type": {
11715
- "text": "Date|undefined"
11716
- }
11717
- },
11718
- "inheritedFrom": {
11719
- "name": "BaseInput",
11720
- "module": "components/input/src/base-input.js"
11721
- }
11722
- },
11723
11699
  {
11724
11700
  "kind": "method",
11725
11701
  "name": "setDateObjectProperty",
@@ -13807,26 +13783,6 @@
13807
13783
  },
13808
13784
  "readonly": true
13809
13785
  },
13810
- {
13811
- "kind": "method",
13812
- "name": "_computeDateObjectFallback",
13813
- "parameters": [
13814
- {
13815
- "name": "dateStr",
13816
- "description": "ISO date string from `value`/`min`/`max`.",
13817
- "type": {
13818
- "text": "string|undefined"
13819
- }
13820
- }
13821
- ],
13822
- "description": "Parses a date string into a Date object when the corresponding `_*Object`\nfield hasn't been synced yet by `updated()`. Returns undefined when the\ninput type/format isn't a full date or the string is not a valid date.\n\nWhy this exists: a parent (datepicker) can call `inputN.validate()` from\ninside its own `updated()` before this input's `updated()` has run\n`syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`\nand range checks would otherwise silently no-op (flipping the result to\n`valid` or `patternMismatch`).",
13823
- "privacy": "private",
13824
- "return": {
13825
- "type": {
13826
- "text": "Date|undefined"
13827
- }
13828
- }
13829
- },
13830
13786
  {
13831
13787
  "kind": "method",
13832
13788
  "name": "setDateObjectProperty",
@@ -15224,47 +15180,586 @@
15224
15180
  "fieldName": "simple"
15225
15181
  },
15226
15182
  {
15227
- "name": "spellcheck",
15228
- "type": {
15229
- "text": "string"
15230
- },
15231
- "description": "An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.",
15232
- "fieldName": "spellcheck"
15183
+ "name": "spellcheck",
15184
+ "type": {
15185
+ "text": "string"
15186
+ },
15187
+ "description": "An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.",
15188
+ "fieldName": "spellcheck"
15189
+ },
15190
+ {
15191
+ "name": "type",
15192
+ "type": {
15193
+ "text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'"
15194
+ },
15195
+ "description": "Populates the `type` attribute on the input.",
15196
+ "default": "'text'",
15197
+ "fieldName": "type"
15198
+ },
15199
+ {
15200
+ "name": "validateOnInput",
15201
+ "type": {
15202
+ "text": "boolean"
15203
+ },
15204
+ "description": "Sets validation mode to re-eval with each input.",
15205
+ "fieldName": "validateOnInput"
15206
+ },
15207
+ {
15208
+ "name": "validity",
15209
+ "type": {
15210
+ "text": "string"
15211
+ },
15212
+ "description": "Specifies the `validityState` this element is in.",
15213
+ "fieldName": "validity"
15214
+ },
15215
+ {
15216
+ "name": "value",
15217
+ "type": {
15218
+ "text": "string"
15219
+ },
15220
+ "description": "Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.\nThe format for this property should be ISO for `date` type inputs.",
15221
+ "default": "undefined",
15222
+ "fieldName": "value"
15223
+ },
15224
+ {
15225
+ "name": "layout",
15226
+ "type": {
15227
+ "text": "string"
15228
+ },
15229
+ "description": "Defines the language of an element.",
15230
+ "default": "{'default'}",
15231
+ "fieldName": "layout",
15232
+ "inheritedFrom": {
15233
+ "name": "AuroElement",
15234
+ "module": "components/layoutElement/src/auroElement.js"
15235
+ }
15236
+ },
15237
+ {
15238
+ "name": "shape",
15239
+ "type": {
15240
+ "text": "string"
15241
+ },
15242
+ "fieldName": "shape",
15243
+ "inheritedFrom": {
15244
+ "name": "AuroElement",
15245
+ "module": "components/layoutElement/src/auroElement.js"
15246
+ }
15247
+ },
15248
+ {
15249
+ "name": "size",
15250
+ "type": {
15251
+ "text": "string"
15252
+ },
15253
+ "fieldName": "size",
15254
+ "inheritedFrom": {
15255
+ "name": "AuroElement",
15256
+ "module": "components/layoutElement/src/auroElement.js"
15257
+ }
15258
+ },
15259
+ {
15260
+ "name": "ondark",
15261
+ "type": {
15262
+ "text": "boolean"
15263
+ },
15264
+ "fieldName": "onDark",
15265
+ "inheritedFrom": {
15266
+ "name": "AuroElement",
15267
+ "module": "components/layoutElement/src/auroElement.js"
15268
+ }
15269
+ }
15270
+ ],
15271
+ "superclass": {
15272
+ "name": "AuroElement",
15273
+ "module": "/components/layoutElement/src/auroElement.js"
15274
+ }
15275
+ }
15276
+ ],
15277
+ "exports": [
15278
+ {
15279
+ "kind": "js",
15280
+ "name": "default",
15281
+ "declaration": {
15282
+ "name": "BaseInput",
15283
+ "module": "components/input/src/base-input.js"
15284
+ }
15285
+ }
15286
+ ]
15287
+ },
15288
+ {
15289
+ "kind": "javascript-module",
15290
+ "path": "components/input/src/buttonVersion.js",
15291
+ "declarations": [],
15292
+ "exports": [
15293
+ {
15294
+ "kind": "js",
15295
+ "name": "default",
15296
+ "declaration": {
15297
+ "name": "12.3.2",
15298
+ "module": "components/input/src/buttonVersion.js"
15299
+ }
15300
+ }
15301
+ ]
15302
+ },
15303
+ {
15304
+ "kind": "javascript-module",
15305
+ "path": "components/input/src/i18n.js",
15306
+ "declarations": [
15307
+ {
15308
+ "kind": "function",
15309
+ "name": "i18n",
15310
+ "parameters": [
15311
+ {
15312
+ "name": "lang",
15313
+ "description": "Requested lang for content return.",
15314
+ "type": {
15315
+ "text": "string"
15316
+ }
15317
+ },
15318
+ {
15319
+ "name": "requestedString",
15320
+ "description": "String requested in context.",
15321
+ "type": {
15322
+ "text": "string"
15323
+ }
15324
+ }
15325
+ ],
15326
+ "description": "Function to support the selected of a string in the set lang.",
15327
+ "privacy": "private",
15328
+ "return": {
15329
+ "type": {
15330
+ "text": "string"
15331
+ }
15332
+ }
15333
+ },
15334
+ {
15335
+ "kind": "function",
15336
+ "name": "notifyOnLangChange",
15337
+ "parameters": [
15338
+ {
15339
+ "name": "element",
15340
+ "description": "Pass in the scope of the element in use.",
15341
+ "type": {
15342
+ "text": "object"
15343
+ }
15344
+ }
15345
+ ],
15346
+ "privacy": "private"
15347
+ },
15348
+ {
15349
+ "kind": "function",
15350
+ "name": "stopNotifyingOnLangChange",
15351
+ "parameters": [
15352
+ {
15353
+ "name": "element",
15354
+ "description": "Pass in the scope of the element in use.",
15355
+ "type": {
15356
+ "text": "object"
15357
+ }
15358
+ }
15359
+ ],
15360
+ "privacy": "private"
15361
+ }
15362
+ ],
15363
+ "exports": [
15364
+ {
15365
+ "kind": "js",
15366
+ "name": "default",
15367
+ "declaration": {
15368
+ "name": "i18n",
15369
+ "module": "components/input/src/i18n.js"
15370
+ }
15371
+ },
15372
+ {
15373
+ "kind": "js",
15374
+ "name": "notifyOnLangChange",
15375
+ "declaration": {
15376
+ "name": "notifyOnLangChange",
15377
+ "module": "components/input/src/i18n.js"
15378
+ }
15379
+ },
15380
+ {
15381
+ "kind": "js",
15382
+ "name": "stopNotifyingOnLangChange",
15383
+ "declaration": {
15384
+ "name": "stopNotifyingOnLangChange",
15385
+ "module": "components/input/src/i18n.js"
15386
+ }
15387
+ }
15388
+ ]
15389
+ },
15390
+ {
15391
+ "kind": "javascript-module",
15392
+ "path": "components/input/src/iconVersion.js",
15393
+ "declarations": [],
15394
+ "exports": [
15395
+ {
15396
+ "kind": "js",
15397
+ "name": "default",
15398
+ "declaration": {
15399
+ "name": "9.2.0",
15400
+ "module": "components/input/src/iconVersion.js"
15401
+ }
15402
+ }
15403
+ ]
15404
+ },
15405
+ {
15406
+ "kind": "javascript-module",
15407
+ "path": "components/input/src/index.js",
15408
+ "declarations": [],
15409
+ "exports": [
15410
+ {
15411
+ "kind": "js",
15412
+ "name": "AuroInput",
15413
+ "declaration": {
15414
+ "name": "AuroInput",
15415
+ "module": "components/input/src/index.js"
15416
+ }
15417
+ },
15418
+ {
15419
+ "kind": "js",
15420
+ "name": "AuroInputUtil",
15421
+ "declaration": {
15422
+ "name": "AuroInputUtil",
15423
+ "module": "components/input/src/index.js"
15424
+ }
15425
+ }
15426
+ ]
15427
+ },
15428
+ {
15429
+ "kind": "javascript-module",
15430
+ "path": "components/input/src/registered.js",
15431
+ "declarations": [],
15432
+ "exports": []
15433
+ },
15434
+ {
15435
+ "kind": "javascript-module",
15436
+ "path": "components/input/src/utilities.js",
15437
+ "declarations": [
15438
+ {
15439
+ "kind": "class",
15440
+ "description": "",
15441
+ "name": "AuroInputUtilities",
15442
+ "members": [
15443
+ {
15444
+ "kind": "method",
15445
+ "name": "updateFormat",
15446
+ "parameters": [
15447
+ {
15448
+ "name": "newFormat",
15449
+ "description": "New date format string.",
15450
+ "type": {
15451
+ "text": "string"
15452
+ }
15453
+ }
15454
+ ],
15455
+ "description": "Updates the date format override.",
15456
+ "return": {
15457
+ "type": {
15458
+ "text": "void"
15459
+ }
15460
+ }
15461
+ },
15462
+ {
15463
+ "kind": "method",
15464
+ "name": "toDateFnsMask",
15465
+ "parameters": [
15466
+ {
15467
+ "name": "mask",
15468
+ "description": "IMask date mask (e.g. \"MM/DD/YYYY\").",
15469
+ "type": {
15470
+ "text": "string"
15471
+ }
15472
+ }
15473
+ ],
15474
+ "description": "Converts an IMask-style date mask to a date-fns compatible format string.",
15475
+ "return": {
15476
+ "type": {
15477
+ "text": "string"
15478
+ }
15479
+ }
15480
+ },
15481
+ {
15482
+ "kind": "method",
15483
+ "name": "getDateMaskFromLocale",
15484
+ "parameters": [
15485
+ {
15486
+ "name": "locale",
15487
+ "description": "BCP 47 language tag (e.g. \"en-US\", \"fr-FR\", \"ja-JP\").",
15488
+ "optional": true,
15489
+ "type": {
15490
+ "text": "string"
15491
+ }
15492
+ }
15493
+ ],
15494
+ "description": "Generates a date mask based on the provided locale.",
15495
+ "return": {
15496
+ "type": {
15497
+ "text": "string"
15498
+ }
15499
+ }
15500
+ },
15501
+ {
15502
+ "kind": "method",
15503
+ "name": "parseDateByMask",
15504
+ "parameters": [
15505
+ {
15506
+ "name": "dateString",
15507
+ "description": "The date string to parse.",
15508
+ "type": {
15509
+ "text": "string"
15510
+ }
15511
+ },
15512
+ {
15513
+ "name": "mask",
15514
+ "description": "The date mask to use for parsing.",
15515
+ "type": {
15516
+ "text": "string"
15517
+ }
15518
+ }
15519
+ ],
15520
+ "description": "Parses a date string using the provided mask.",
15521
+ "privacy": "private",
15522
+ "return": {
15523
+ "type": {
15524
+ "text": "string"
15525
+ }
15526
+ }
15527
+ },
15528
+ {
15529
+ "kind": "method",
15530
+ "name": "getMaskOptions",
15531
+ "parameters": [
15532
+ {
15533
+ "name": "type",
15534
+ "description": "The input type.",
15535
+ "type": {
15536
+ "text": "string"
15537
+ }
15538
+ },
15539
+ {
15540
+ "name": "format",
15541
+ "description": "The format of the mask to apply.",
15542
+ "type": {
15543
+ "text": "string"
15544
+ }
15545
+ }
15546
+ ],
15547
+ "description": "Configures the mask to be used on the input element based on format and/or type.\nIMask tool documentation: https://imask.js.org/.",
15548
+ "privacy": "private",
15549
+ "return": {
15550
+ "type": {
15551
+ "text": "object"
15552
+ }
15553
+ }
15554
+ },
15555
+ {
15556
+ "kind": "method",
15557
+ "name": "isFullDateFormat",
15558
+ "parameters": [
15559
+ {
15560
+ "name": "type",
15561
+ "description": "The input type.",
15562
+ "type": {
15563
+ "text": "string"
15564
+ }
15565
+ },
15566
+ {
15567
+ "name": "format",
15568
+ "description": "The date format string.",
15569
+ "type": {
15570
+ "text": "string"
15571
+ }
15572
+ }
15573
+ ],
15574
+ "description": "Determines if the given type and format combination represents a full year/month/day date.",
15575
+ "privacy": "private",
15576
+ "return": {
15577
+ "type": {
15578
+ "text": "boolean"
15579
+ }
15580
+ }
15581
+ },
15582
+ {
15583
+ "kind": "method",
15584
+ "name": "toModelValue",
15585
+ "parameters": [
15586
+ {
15587
+ "name": "inputValue",
15588
+ "description": "String from the rendered input.",
15589
+ "type": {
15590
+ "text": "string"
15591
+ }
15592
+ },
15593
+ {
15594
+ "name": "format",
15595
+ "description": "The date format string.",
15596
+ "type": {
15597
+ "text": "string"
15598
+ }
15599
+ }
15600
+ ],
15601
+ "description": "Converts a display string to its model value.\nFor full date formats, converts the display string to an ISO date string.",
15602
+ "privacy": "private",
15603
+ "return": {
15604
+ "type": {
15605
+ "text": "string"
15606
+ }
15607
+ }
15608
+ },
15609
+ {
15610
+ "kind": "method",
15611
+ "name": "toFormattedValue",
15612
+ "parameters": [
15613
+ {
15614
+ "name": "valueObject",
15615
+ "description": "Date object representation of value.",
15616
+ "type": {
15617
+ "text": "Date|undefined"
15618
+ }
15619
+ },
15620
+ {
15621
+ "name": "format",
15622
+ "description": "The date format string.",
15623
+ "type": {
15624
+ "text": "string"
15625
+ }
15626
+ }
15627
+ ],
15628
+ "description": "Converts a model value to a display value for the input element.\nFor full date formats, converts an ISO model value to the configured display format.",
15629
+ "privacy": "private",
15630
+ "return": {
15631
+ "type": {
15632
+ "text": "string | undefined"
15633
+ }
15634
+ }
15635
+ },
15636
+ {
15637
+ "kind": "field",
15638
+ "name": "overrideFormat"
15639
+ },
15640
+ {
15641
+ "kind": "field",
15642
+ "name": "formatter",
15643
+ "default": "new Intl.DateTimeFormat(this.locale)"
15644
+ }
15645
+ ]
15646
+ },
15647
+ {
15648
+ "kind": "function",
15649
+ "name": "getDateFormatFromLocale",
15650
+ "parameters": [
15651
+ {
15652
+ "name": "locale",
15653
+ "description": "BCP 47 language tag used to determine the date format (e.g. \"en-US\", \"fr-FR\").",
15654
+ "type": {
15655
+ "text": "string"
15656
+ }
15657
+ }
15658
+ ],
15659
+ "description": "Derives a locale-aware date format string suitable for use in input masks. This helper exposes the internal AuroInputUtilities locale logic in a simple function form.",
15660
+ "return": {
15661
+ "type": {
15662
+ "text": "string"
15663
+ }
15664
+ }
15665
+ }
15666
+ ],
15667
+ "exports": [
15668
+ {
15669
+ "kind": "js",
15670
+ "name": "AuroInputUtilities",
15671
+ "declaration": {
15672
+ "name": "AuroInputUtilities",
15673
+ "module": "components/input/src/utilities.js"
15674
+ }
15675
+ },
15676
+ {
15677
+ "kind": "js",
15678
+ "name": "getDateFormatFromLocale",
15679
+ "declaration": {
15680
+ "name": "getDateFormatFromLocale",
15681
+ "module": "components/input/src/utilities.js"
15682
+ }
15683
+ }
15684
+ ]
15685
+ },
15686
+ {
15687
+ "kind": "javascript-module",
15688
+ "path": "components/layoutElement/src/auroElement.js",
15689
+ "declarations": [
15690
+ {
15691
+ "kind": "class",
15692
+ "description": "",
15693
+ "name": "AuroElement",
15694
+ "members": [
15695
+ {
15696
+ "kind": "field",
15697
+ "name": "componentHasFocus",
15698
+ "description": "Returns true if the element has focus.",
15699
+ "privacy": "private",
15700
+ "return": {
15701
+ "type": {
15702
+ "text": "boolean"
15703
+ }
15704
+ },
15705
+ "readonly": true
15706
+ },
15707
+ {
15708
+ "kind": "method",
15709
+ "name": "resetShapeClasses"
15710
+ },
15711
+ {
15712
+ "kind": "method",
15713
+ "name": "resetLayoutClasses"
15714
+ },
15715
+ {
15716
+ "kind": "method",
15717
+ "name": "updateComponentArchitecture"
15233
15718
  },
15234
15719
  {
15235
- "name": "type",
15720
+ "kind": "field",
15721
+ "name": "layout",
15722
+ "privacy": "public",
15236
15723
  "type": {
15237
- "text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'"
15724
+ "text": "string"
15238
15725
  },
15239
- "description": "Populates the `type` attribute on the input.",
15240
- "default": "'text'",
15241
- "fieldName": "type"
15726
+ "description": "Defines the language of an element.",
15727
+ "default": "{'default'}",
15728
+ "attribute": "layout",
15729
+ "reflects": true
15242
15730
  },
15243
15731
  {
15244
- "name": "validateOnInput",
15732
+ "kind": "field",
15733
+ "name": "shape",
15734
+ "privacy": "public",
15245
15735
  "type": {
15246
- "text": "boolean"
15736
+ "text": "string"
15247
15737
  },
15248
- "description": "Sets validation mode to re-eval with each input.",
15249
- "fieldName": "validateOnInput"
15738
+ "attribute": "shape",
15739
+ "reflects": true
15250
15740
  },
15251
15741
  {
15252
- "name": "validity",
15742
+ "kind": "field",
15743
+ "name": "size",
15744
+ "privacy": "public",
15253
15745
  "type": {
15254
15746
  "text": "string"
15255
15747
  },
15256
- "description": "Specifies the `validityState` this element is in.",
15257
- "fieldName": "validity"
15748
+ "attribute": "size",
15749
+ "reflects": true
15258
15750
  },
15259
15751
  {
15260
- "name": "value",
15752
+ "kind": "field",
15753
+ "name": "onDark",
15754
+ "privacy": "public",
15261
15755
  "type": {
15262
- "text": "string"
15756
+ "text": "boolean"
15263
15757
  },
15264
- "description": "Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.\nThe format for this property should be ISO for `date` type inputs.",
15265
- "default": "undefined",
15266
- "fieldName": "value"
15267
- },
15758
+ "attribute": "ondark",
15759
+ "reflects": true
15760
+ }
15761
+ ],
15762
+ "attributes": [
15268
15763
  {
15269
15764
  "name": "layout",
15270
15765
  "type": {
@@ -15272,741 +15767,782 @@
15272
15767
  },
15273
15768
  "description": "Defines the language of an element.",
15274
15769
  "default": "{'default'}",
15275
- "fieldName": "layout",
15276
- "inheritedFrom": {
15277
- "name": "AuroElement",
15278
- "module": "components/layoutElement/src/auroElement.js"
15279
- }
15770
+ "fieldName": "layout"
15280
15771
  },
15281
15772
  {
15282
15773
  "name": "shape",
15283
15774
  "type": {
15284
15775
  "text": "string"
15285
15776
  },
15286
- "fieldName": "shape",
15287
- "inheritedFrom": {
15288
- "name": "AuroElement",
15289
- "module": "components/layoutElement/src/auroElement.js"
15290
- }
15777
+ "fieldName": "shape"
15291
15778
  },
15292
15779
  {
15293
15780
  "name": "size",
15294
15781
  "type": {
15295
15782
  "text": "string"
15296
15783
  },
15297
- "fieldName": "size",
15298
- "inheritedFrom": {
15299
- "name": "AuroElement",
15300
- "module": "components/layoutElement/src/auroElement.js"
15301
- }
15784
+ "fieldName": "size"
15302
15785
  },
15303
15786
  {
15304
15787
  "name": "ondark",
15305
15788
  "type": {
15306
15789
  "text": "boolean"
15307
15790
  },
15308
- "fieldName": "onDark",
15309
- "inheritedFrom": {
15310
- "name": "AuroElement",
15311
- "module": "components/layoutElement/src/auroElement.js"
15312
- }
15791
+ "fieldName": "onDark"
15313
15792
  }
15314
15793
  ],
15315
15794
  "superclass": {
15316
- "name": "AuroElement",
15317
- "module": "/components/layoutElement/src/auroElement.js"
15318
- }
15795
+ "name": "LitElement",
15796
+ "package": "lit"
15797
+ },
15798
+ "customElement": true
15319
15799
  }
15320
15800
  ],
15321
15801
  "exports": [
15322
15802
  {
15323
15803
  "kind": "js",
15324
- "name": "default",
15804
+ "name": "AuroElement",
15325
15805
  "declaration": {
15326
- "name": "BaseInput",
15327
- "module": "components/input/src/base-input.js"
15806
+ "name": "AuroElement",
15807
+ "module": "components/layoutElement/src/auroElement.js"
15328
15808
  }
15329
15809
  }
15330
15810
  ]
15331
15811
  },
15332
15812
  {
15333
15813
  "kind": "javascript-module",
15334
- "path": "components/input/src/buttonVersion.js",
15814
+ "path": "components/layoutElement/src/index.js",
15335
15815
  "declarations": [],
15336
15816
  "exports": [
15337
15817
  {
15338
15818
  "kind": "js",
15339
- "name": "default",
15819
+ "name": "AuroElement",
15340
15820
  "declaration": {
15341
- "name": "12.3.2",
15342
- "module": "components/input/src/buttonVersion.js"
15821
+ "name": "AuroElement",
15822
+ "module": "components/layoutElement/src/index.js"
15343
15823
  }
15344
15824
  }
15345
15825
  ]
15346
15826
  },
15347
15827
  {
15348
15828
  "kind": "javascript-module",
15349
- "path": "components/input/src/i18n.js",
15829
+ "path": "components/layoutElement/src/registered.js",
15830
+ "declarations": [],
15831
+ "exports": []
15832
+ },
15833
+ {
15834
+ "kind": "javascript-module",
15835
+ "path": "components/menu/src/auro-menu-utils.js",
15350
15836
  "declarations": [
15351
15837
  {
15352
15838
  "kind": "function",
15353
- "name": "i18n",
15839
+ "name": "arrayConverter",
15354
15840
  "parameters": [
15355
15841
  {
15356
- "name": "lang",
15357
- "description": "Requested lang for content return.",
15842
+ "name": "value",
15843
+ "description": "The value to be converted. Can be a string, array, or undefined.",
15358
15844
  "type": {
15359
- "text": "string"
15845
+ "text": "any"
15846
+ }
15847
+ }
15848
+ ],
15849
+ "description": "Converts value to an array.\nIf the value is a JSON string representing an array, it will be parsed.\nIf the value is already an array, it is returned.\nIf the value is undefined, it returns undefined.",
15850
+ "privacy": "private",
15851
+ "return": {
15852
+ "type": {
15853
+ "text": "Array|undefined"
15854
+ }
15855
+ }
15856
+ },
15857
+ {
15858
+ "kind": "function",
15859
+ "name": "arraysAreEqual",
15860
+ "parameters": [
15861
+ {
15862
+ "name": "arr1",
15863
+ "description": "First array to compare.",
15864
+ "type": {
15865
+ "text": "Array"
15360
15866
  }
15361
15867
  },
15362
15868
  {
15363
- "name": "requestedString",
15364
- "description": "String requested in context.",
15869
+ "name": "arr2",
15870
+ "description": "Second array to compare.",
15365
15871
  "type": {
15366
- "text": "string"
15872
+ "text": "Array"
15367
15873
  }
15368
15874
  }
15369
15875
  ],
15370
- "description": "Function to support the selected of a string in the set lang.",
15876
+ "description": "Compare two arrays for equality.",
15371
15877
  "privacy": "private",
15372
15878
  "return": {
15373
15879
  "type": {
15374
- "text": "string"
15880
+ "text": "boolean"
15375
15881
  }
15376
15882
  }
15377
15883
  },
15378
15884
  {
15379
15885
  "kind": "function",
15380
- "name": "notifyOnLangChange",
15886
+ "name": "isOptionInteractive",
15381
15887
  "parameters": [
15382
15888
  {
15383
- "name": "element",
15384
- "description": "Pass in the scope of the element in use.",
15889
+ "name": "option",
15890
+ "description": "The option to check.",
15385
15891
  "type": {
15386
- "text": "object"
15892
+ "text": "HTMLElement"
15387
15893
  }
15388
15894
  }
15389
15895
  ],
15390
- "privacy": "private"
15896
+ "description": "Validates if an option can be interacted with.",
15897
+ "privacy": "private",
15898
+ "return": {
15899
+ "type": {
15900
+ "text": "boolean"
15901
+ }
15902
+ }
15391
15903
  },
15392
15904
  {
15393
15905
  "kind": "function",
15394
- "name": "stopNotifyingOnLangChange",
15906
+ "name": "dispatchMenuEvent",
15395
15907
  "parameters": [
15396
15908
  {
15397
15909
  "name": "element",
15398
- "description": "Pass in the scope of the element in use.",
15910
+ "description": "Element to dispatch event from.",
15399
15911
  "type": {
15400
- "text": "object"
15912
+ "text": "HTMLElement"
15913
+ }
15914
+ },
15915
+ {
15916
+ "name": "eventName",
15917
+ "description": "Name of the event to dispatch.",
15918
+ "type": {
15919
+ "text": "string"
15920
+ }
15921
+ },
15922
+ {
15923
+ "name": "detail",
15924
+ "default": "null",
15925
+ "description": "Optional detail object to include with the event.",
15926
+ "optional": true,
15927
+ "type": {
15928
+ "text": "Object"
15401
15929
  }
15402
15930
  }
15403
15931
  ],
15404
- "privacy": "private"
15932
+ "description": "Helper method to dispatch custom events."
15405
15933
  }
15406
15934
  ],
15407
15935
  "exports": [
15408
15936
  {
15409
15937
  "kind": "js",
15410
- "name": "default",
15938
+ "name": "arrayConverter",
15411
15939
  "declaration": {
15412
- "name": "i18n",
15413
- "module": "components/input/src/i18n.js"
15940
+ "name": "arrayConverter",
15941
+ "module": "components/menu/src/auro-menu-utils.js"
15414
15942
  }
15415
15943
  },
15416
15944
  {
15417
15945
  "kind": "js",
15418
- "name": "notifyOnLangChange",
15946
+ "name": "arraysAreEqual",
15419
15947
  "declaration": {
15420
- "name": "notifyOnLangChange",
15421
- "module": "components/input/src/i18n.js"
15948
+ "name": "arraysAreEqual",
15949
+ "module": "components/menu/src/auro-menu-utils.js"
15422
15950
  }
15423
15951
  },
15424
15952
  {
15425
15953
  "kind": "js",
15426
- "name": "stopNotifyingOnLangChange",
15427
- "declaration": {
15428
- "name": "stopNotifyingOnLangChange",
15429
- "module": "components/input/src/i18n.js"
15430
- }
15431
- }
15432
- ]
15433
- },
15434
- {
15435
- "kind": "javascript-module",
15436
- "path": "components/input/src/iconVersion.js",
15437
- "declarations": [],
15438
- "exports": [
15439
- {
15440
- "kind": "js",
15441
- "name": "default",
15442
- "declaration": {
15443
- "name": "9.2.0",
15444
- "module": "components/input/src/iconVersion.js"
15445
- }
15446
- }
15447
- ]
15448
- },
15449
- {
15450
- "kind": "javascript-module",
15451
- "path": "components/input/src/index.js",
15452
- "declarations": [],
15453
- "exports": [
15454
- {
15455
- "kind": "js",
15456
- "name": "AuroInput",
15954
+ "name": "isOptionInteractive",
15457
15955
  "declaration": {
15458
- "name": "AuroInput",
15459
- "module": "components/input/src/index.js"
15956
+ "name": "isOptionInteractive",
15957
+ "module": "components/menu/src/auro-menu-utils.js"
15460
15958
  }
15461
15959
  },
15462
15960
  {
15463
15961
  "kind": "js",
15464
- "name": "AuroInputUtil",
15962
+ "name": "dispatchMenuEvent",
15465
15963
  "declaration": {
15466
- "name": "AuroInputUtil",
15467
- "module": "components/input/src/index.js"
15964
+ "name": "dispatchMenuEvent",
15965
+ "module": "components/menu/src/auro-menu-utils.js"
15468
15966
  }
15469
15967
  }
15470
15968
  ]
15471
15969
  },
15472
15970
  {
15473
15971
  "kind": "javascript-module",
15474
- "path": "components/input/src/registered.js",
15475
- "declarations": [],
15476
- "exports": []
15477
- },
15478
- {
15479
- "kind": "javascript-module",
15480
- "path": "components/input/src/utilities.js",
15972
+ "path": "components/menu/src/auro-menu.context.js",
15481
15973
  "declarations": [
15482
15974
  {
15483
15975
  "kind": "class",
15484
15976
  "description": "",
15485
- "name": "AuroInputUtilities",
15977
+ "name": "MenuService",
15486
15978
  "members": [
15979
+ {
15980
+ "kind": "field",
15981
+ "name": "menuOptions",
15982
+ "description": "Gets the list of registered menu options.",
15983
+ "return": {
15984
+ "type": {
15985
+ "text": "AuroMenuOption[]"
15986
+ }
15987
+ },
15988
+ "readonly": true
15989
+ },
15990
+ {
15991
+ "kind": "field",
15992
+ "name": "highlightedOption",
15993
+ "description": "Gets the currently highlighted option.",
15994
+ "return": {
15995
+ "type": {
15996
+ "text": "AuroMenuOption|null"
15997
+ }
15998
+ },
15999
+ "readonly": true
16000
+ },
16001
+ {
16002
+ "kind": "field",
16003
+ "name": "currentValue",
16004
+ "description": "Gets the current value(s) of the selected option(s).",
16005
+ "return": {
16006
+ "type": {
16007
+ "text": "string|string[]|undefined"
16008
+ }
16009
+ },
16010
+ "readonly": true
16011
+ },
16012
+ {
16013
+ "kind": "field",
16014
+ "name": "currentLabel",
16015
+ "description": "Gets the label(s) of the currently selected option(s).",
16016
+ "return": {
16017
+ "type": {
16018
+ "text": "string"
16019
+ }
16020
+ },
16021
+ "readonly": true
16022
+ },
16023
+ {
16024
+ "kind": "field",
16025
+ "name": "stringValue",
16026
+ "description": "Gets the string representation of the current value(s).\nFor multi-select, this is a JSON stringified array.",
16027
+ "return": {
16028
+ "type": {
16029
+ "text": "string|undefined"
16030
+ }
16031
+ },
16032
+ "readonly": true
16033
+ },
16034
+ {
16035
+ "kind": "field",
16036
+ "name": "currentKeys",
16037
+ "description": "Gets the key(s) of the currently selected option(s).",
16038
+ "return": {
16039
+ "type": {
16040
+ "text": "string|string[]|undefined"
16041
+ }
16042
+ },
16043
+ "readonly": true
16044
+ },
15487
16045
  {
15488
16046
  "kind": "method",
15489
- "name": "updateFormat",
16047
+ "name": "hostUpdated",
16048
+ "description": "Handles host updates.\nThis is a lit reactive lifecycle method.\nThis comes from the Lit controller interface provided by adding this service as a controller to the host.\nSee constructor for `this.host.addController(this)`\nYou can read more about Lit reactive controllers here: https://lit.dev/docs/composition/controllers/"
16049
+ },
16050
+ {
16051
+ "kind": "method",
16052
+ "name": "hostDisconnected",
16053
+ "description": "Handles host disconnection and memory cleanup."
16054
+ },
16055
+ {
16056
+ "kind": "method",
16057
+ "name": "setProperty",
15490
16058
  "parameters": [
15491
16059
  {
15492
- "name": "newFormat",
15493
- "description": "New date format string.",
16060
+ "name": "property",
15494
16061
  "type": {
15495
16062
  "text": "string"
15496
16063
  }
16064
+ },
16065
+ {
16066
+ "name": "value",
16067
+ "type": {
16068
+ "text": "any"
16069
+ }
15497
16070
  }
15498
16071
  ],
15499
- "description": "Updates the date format override.",
15500
- "return": {
15501
- "type": {
15502
- "text": "void"
16072
+ "description": "Sets a property value if it exists on the instance and the value has changed."
16073
+ },
16074
+ {
16075
+ "kind": "method",
16076
+ "name": "setProperties",
16077
+ "parameters": [
16078
+ {
16079
+ "name": "properties",
16080
+ "description": "Key-value pairs of properties to set.",
16081
+ "type": {
16082
+ "text": "Object"
16083
+ }
15503
16084
  }
15504
- }
16085
+ ],
16086
+ "description": "Sets multiple properties on the instance."
15505
16087
  },
15506
16088
  {
15507
16089
  "kind": "method",
15508
- "name": "toDateFnsMask",
16090
+ "name": "highlightNext",
16091
+ "description": "Highlights the next active option in the menu."
16092
+ },
16093
+ {
16094
+ "kind": "method",
16095
+ "name": "highlightPrevious",
16096
+ "description": "Highlights the previous active option in the menu."
16097
+ },
16098
+ {
16099
+ "kind": "method",
16100
+ "name": "moveHighlightedOption",
15509
16101
  "parameters": [
15510
16102
  {
15511
- "name": "mask",
15512
- "description": "IMask date mask (e.g. \"MM/DD/YYYY\").",
16103
+ "name": "direction",
16104
+ "description": "The direction to move the highlight (\"next\" or \"previous\").",
15513
16105
  "type": {
15514
16106
  "text": "string"
15515
16107
  }
15516
16108
  }
15517
16109
  ],
15518
- "description": "Converts an IMask-style date mask to a date-fns compatible format string.",
15519
- "return": {
15520
- "type": {
15521
- "text": "string"
16110
+ "description": "Moves the highlighted option in the specified direction."
16111
+ },
16112
+ {
16113
+ "kind": "method",
16114
+ "name": "setHighlightedOption",
16115
+ "parameters": [
16116
+ {
16117
+ "name": "option",
16118
+ "description": "The option to highlight.",
16119
+ "type": {
16120
+ "text": "AuroMenuOption"
16121
+ }
15522
16122
  }
15523
- }
16123
+ ],
16124
+ "description": "Sets the highlighted index to the specified option."
15524
16125
  },
15525
16126
  {
15526
16127
  "kind": "method",
15527
- "name": "getDateMaskFromLocale",
16128
+ "name": "setHighlightedIndex",
15528
16129
  "parameters": [
15529
16130
  {
15530
- "name": "locale",
15531
- "description": "BCP 47 language tag (e.g. \"en-US\", \"fr-FR\", \"ja-JP\").",
15532
- "optional": true,
16131
+ "name": "index",
15533
16132
  "type": {
15534
- "text": "string"
16133
+ "text": "number"
15535
16134
  }
15536
16135
  }
15537
16136
  ],
15538
- "description": "Generates a date mask based on the provided locale.",
15539
- "return": {
15540
- "type": {
15541
- "text": "string"
16137
+ "description": "Sets the highlighted option to the option at the specified index if it exists."
16138
+ },
16139
+ {
16140
+ "kind": "method",
16141
+ "name": "selectHighlightedOption",
16142
+ "description": "Selects the currently highlighted option."
16143
+ },
16144
+ {
16145
+ "kind": "method",
16146
+ "name": "selectOptions",
16147
+ "parameters": [
16148
+ {
16149
+ "name": "options",
16150
+ "description": "Single option or array of options to select",
16151
+ "type": {
16152
+ "text": "AuroMenuOption|AuroMenuOption[]"
16153
+ }
15542
16154
  }
15543
- }
16155
+ ],
16156
+ "description": "Selects one or more options in a batch operation"
15544
16157
  },
15545
16158
  {
15546
16159
  "kind": "method",
15547
- "name": "parseDateByMask",
16160
+ "name": "deselectOptions",
15548
16161
  "parameters": [
15549
16162
  {
15550
- "name": "dateString",
15551
- "description": "The date string to parse.",
16163
+ "name": "options",
16164
+ "description": "Single option or array of options to deselect",
15552
16165
  "type": {
15553
- "text": "string"
16166
+ "text": "AuroMenuOption|AuroMenuOption[]"
15554
16167
  }
15555
- },
16168
+ }
16169
+ ],
16170
+ "description": "Deselects one or more options in a batch operation"
16171
+ },
16172
+ {
16173
+ "kind": "method",
16174
+ "name": "selectOption",
16175
+ "parameters": [
15556
16176
  {
15557
- "name": "mask",
15558
- "description": "The date mask to use for parsing.",
16177
+ "name": "option",
15559
16178
  "type": {
15560
- "text": "string"
16179
+ "text": "AuroMenuOption"
15561
16180
  }
15562
16181
  }
15563
16182
  ],
15564
- "description": "Parses a date string using the provided mask.",
15565
- "privacy": "private",
15566
- "return": {
15567
- "type": {
15568
- "text": "string"
16183
+ "description": "Selects a single option."
16184
+ },
16185
+ {
16186
+ "kind": "method",
16187
+ "name": "deselectOption",
16188
+ "parameters": [
16189
+ {
16190
+ "name": "option",
16191
+ "type": {
16192
+ "text": "AuroMenuOption"
16193
+ }
15569
16194
  }
15570
- }
16195
+ ],
16196
+ "description": "Deselects a single option."
15571
16197
  },
15572
16198
  {
15573
16199
  "kind": "method",
15574
- "name": "getMaskOptions",
16200
+ "name": "toggleOption",
15575
16201
  "parameters": [
15576
16202
  {
15577
- "name": "type",
15578
- "description": "The input type.",
16203
+ "name": "option",
15579
16204
  "type": {
15580
- "text": "string"
16205
+ "text": "AuroMenuOption"
15581
16206
  }
15582
- },
16207
+ }
16208
+ ],
16209
+ "description": "Toggles the selection state of a single option."
16210
+ },
16211
+ {
16212
+ "kind": "method",
16213
+ "name": "selectByValue",
16214
+ "parameters": [
15583
16215
  {
15584
- "name": "format",
15585
- "description": "The format of the mask to apply.",
16216
+ "name": "value",
16217
+ "description": "The value(s) to select.",
16218
+ "type": {
16219
+ "text": "string|number|Array<string|number>"
16220
+ }
16221
+ }
16222
+ ],
16223
+ "description": "Selects options based on their value(s) when compared to a passed value or values.\nValue or values are normalized to an array of strings that can be matched to option keys."
16224
+ },
16225
+ {
16226
+ "kind": "method",
16227
+ "name": "queuePendingValue",
16228
+ "parameters": [
16229
+ {
16230
+ "name": "value",
16231
+ "description": "The value to retry.",
16232
+ "type": {
16233
+ "text": "string|number|Array<string|number>"
16234
+ }
16235
+ }
16236
+ ],
16237
+ "description": "Queues a pending value and schedules a bounded retry."
16238
+ },
16239
+ {
16240
+ "kind": "method",
16241
+ "name": "clearPendingValue",
16242
+ "description": "Clears pending retry state."
16243
+ },
16244
+ {
16245
+ "kind": "method",
16246
+ "name": "reset",
16247
+ "description": "Resets the selected options to an empty array."
16248
+ },
16249
+ {
16250
+ "kind": "method",
16251
+ "name": "subscribe",
16252
+ "parameters": [
16253
+ {
16254
+ "name": "callback",
16255
+ "description": "The callback to invoke on events.",
16256
+ "type": {
16257
+ "text": "Function"
16258
+ }
16259
+ }
16260
+ ],
16261
+ "description": "Subscribes a callback to menu service events."
16262
+ },
16263
+ {
16264
+ "kind": "method",
16265
+ "name": "unsubscribe",
16266
+ "parameters": [
16267
+ {
16268
+ "name": "callback",
16269
+ "type": {
16270
+ "text": "Function"
16271
+ }
16272
+ }
16273
+ ],
16274
+ "description": "Remove a previously subscribed callback from menu service events."
16275
+ },
16276
+ {
16277
+ "kind": "method",
16278
+ "name": "stageUpdate",
16279
+ "parameters": [
16280
+ {
16281
+ "name": "meta",
16282
+ "default": "{}"
16283
+ }
16284
+ ],
16285
+ "description": "Stages an update to notify subscribers of state and value changes."
16286
+ },
16287
+ {
16288
+ "kind": "method",
16289
+ "name": "notify",
16290
+ "parameters": [
16291
+ {
16292
+ "name": "event",
16293
+ "description": "The event to send to subscribers.",
15586
16294
  "type": {
15587
16295
  "text": "string"
15588
16296
  }
15589
16297
  }
15590
16298
  ],
15591
- "description": "Configures the mask to be used on the input element based on format and/or type.\nIMask tool documentation: https://imask.js.org/.",
15592
- "privacy": "private",
15593
- "return": {
15594
- "type": {
15595
- "text": "object"
16299
+ "description": "Notifies subscribers of a menu service event.\nAll notifications are sent to all subscribers."
16300
+ },
16301
+ {
16302
+ "kind": "method",
16303
+ "name": "notifyStateChange",
16304
+ "parameters": [
16305
+ {
16306
+ "name": "meta",
16307
+ "default": "{}"
15596
16308
  }
15597
- }
16309
+ ],
16310
+ "description": "Notifies subscribers of a state change (selected options has changed)."
15598
16311
  },
15599
16312
  {
15600
16313
  "kind": "method",
15601
- "name": "isFullDateFormat",
16314
+ "name": "notifyValueChange",
15602
16315
  "parameters": [
15603
16316
  {
15604
- "name": "type",
15605
- "description": "The input type.",
16317
+ "name": "meta",
16318
+ "default": "{}"
16319
+ }
16320
+ ],
16321
+ "description": "Notifies subscribers of a value change (current value has changed)."
16322
+ },
16323
+ {
16324
+ "kind": "method",
16325
+ "name": "dispatchChangeEvent",
16326
+ "parameters": [
16327
+ {
16328
+ "name": "eventName",
15606
16329
  "type": {
15607
16330
  "text": "string"
15608
16331
  }
15609
16332
  },
15610
16333
  {
15611
- "name": "format",
15612
- "description": "The date format string.",
16334
+ "name": "detail",
15613
16335
  "type": {
15614
- "text": "string"
16336
+ "text": "any"
16337
+ }
16338
+ }
16339
+ ],
16340
+ "description": "Dispatches a custom event from the host element."
16341
+ },
16342
+ {
16343
+ "kind": "method",
16344
+ "name": "addMenuOption",
16345
+ "parameters": [
16346
+ {
16347
+ "name": "option",
16348
+ "description": "the option to track",
16349
+ "type": {
16350
+ "text": "AuroMenuOption"
15615
16351
  }
15616
16352
  }
15617
16353
  ],
15618
- "description": "Determines if the given type and format combination represents a full year/month/day date.",
15619
- "privacy": "private",
15620
- "return": {
15621
- "type": {
15622
- "text": "boolean"
15623
- }
15624
- }
16354
+ "description": "Adds a menu option to the service's list."
15625
16355
  },
15626
16356
  {
15627
16357
  "kind": "method",
15628
- "name": "toModelValue",
16358
+ "name": "removeMenuOption",
15629
16359
  "parameters": [
15630
16360
  {
15631
- "name": "inputValue",
15632
- "description": "String from the rendered input.",
16361
+ "name": "option",
16362
+ "description": "the option to remove",
15633
16363
  "type": {
15634
- "text": "string"
16364
+ "text": "AuroMenuOption"
15635
16365
  }
15636
- },
16366
+ }
16367
+ ],
16368
+ "description": "Removes a menu option from the service's list."
16369
+ },
16370
+ {
16371
+ "kind": "method",
16372
+ "name": "_getNormalizedValues",
16373
+ "parameters": [
15637
16374
  {
15638
- "name": "format",
15639
- "description": "The date format string.",
16375
+ "name": "value",
16376
+ "description": "The value(s) to normalize.",
15640
16377
  "type": {
15641
- "text": "string"
16378
+ "text": "string|number|Array<string|number>"
15642
16379
  }
15643
16380
  }
15644
16381
  ],
15645
- "description": "Converts a display string to its model value.\nFor full date formats, converts the display string to an ISO date string.",
15646
- "privacy": "private",
16382
+ "description": "Normalizes a value or array of values into an array of strings for option selection.\nThis function ensures that input values are consistently formatted for matching menu options.",
15647
16383
  "return": {
15648
16384
  "type": {
15649
- "text": "string"
16385
+ "text": "Array<string>"
15650
16386
  }
15651
16387
  }
15652
16388
  },
15653
16389
  {
15654
16390
  "kind": "method",
15655
- "name": "toFormattedValue",
16391
+ "name": "optionsArraysMatch",
15656
16392
  "parameters": [
15657
16393
  {
15658
- "name": "valueObject",
15659
- "description": "Date object representation of value.",
16394
+ "name": "arr1",
16395
+ "description": "First array of options.",
15660
16396
  "type": {
15661
- "text": "Date|undefined"
16397
+ "text": "AuroMenuOption[]"
15662
16398
  }
15663
16399
  },
15664
16400
  {
15665
- "name": "format",
15666
- "description": "The date format string.",
16401
+ "name": "arr2",
16402
+ "description": "Second array of options.",
15667
16403
  "type": {
15668
- "text": "string"
16404
+ "text": "AuroMenuOption[]"
15669
16405
  }
15670
16406
  }
15671
16407
  ],
15672
- "description": "Converts a model value to a display value for the input element.\nFor full date formats, converts an ISO model value to the configured display format.",
15673
- "privacy": "private",
16408
+ "description": "Returns whether two arrays of options contain the same elements.",
15674
16409
  "return": {
15675
16410
  "type": {
15676
- "text": "string | undefined"
16411
+ "text": "boolean"
15677
16412
  }
15678
16413
  }
15679
16414
  },
15680
16415
  {
15681
16416
  "kind": "field",
15682
- "name": "overrideFormat"
16417
+ "name": "host",
16418
+ "default": "host"
15683
16419
  },
15684
16420
  {
15685
16421
  "kind": "field",
15686
- "name": "formatter",
15687
- "default": "new Intl.DateTimeFormat(this.locale)"
15688
- }
15689
- ]
15690
- },
15691
- {
15692
- "kind": "function",
15693
- "name": "getDateFormatFromLocale",
15694
- "parameters": [
15695
- {
15696
- "name": "locale",
15697
- "description": "BCP 47 language tag used to determine the date format (e.g. \"en-US\", \"fr-FR\").",
15698
- "type": {
15699
- "text": "string"
15700
- }
15701
- }
15702
- ],
15703
- "description": "Derives a locale-aware date format string suitable for use in input masks. This helper exposes the internal AuroInputUtilities locale logic in a simple function form.",
15704
- "return": {
15705
- "type": {
15706
- "text": "string"
15707
- }
15708
- }
15709
- }
15710
- ],
15711
- "exports": [
15712
- {
15713
- "kind": "js",
15714
- "name": "AuroInputUtilities",
15715
- "declaration": {
15716
- "name": "AuroInputUtilities",
15717
- "module": "components/input/src/utilities.js"
15718
- }
15719
- },
15720
- {
15721
- "kind": "js",
15722
- "name": "getDateFormatFromLocale",
15723
- "declaration": {
15724
- "name": "getDateFormatFromLocale",
15725
- "module": "components/input/src/utilities.js"
15726
- }
15727
- }
15728
- ]
15729
- },
15730
- {
15731
- "kind": "javascript-module",
15732
- "path": "components/layoutElement/src/auroElement.js",
15733
- "declarations": [
15734
- {
15735
- "kind": "class",
15736
- "description": "",
15737
- "name": "AuroElement",
15738
- "members": [
15739
- {
15740
- "kind": "field",
15741
- "name": "componentHasFocus",
15742
- "description": "Returns true if the element has focus.",
15743
- "privacy": "private",
15744
- "return": {
15745
- "type": {
15746
- "text": "boolean"
15747
- }
15748
- },
15749
- "readonly": true
16422
+ "name": "size",
16423
+ "default": "undefined"
15750
16424
  },
15751
16425
  {
15752
- "kind": "method",
15753
- "name": "resetShapeClasses"
16426
+ "kind": "field",
16427
+ "name": "shape",
16428
+ "default": "undefined"
15754
16429
  },
15755
16430
  {
15756
- "kind": "method",
15757
- "name": "resetLayoutClasses"
16431
+ "kind": "field",
16432
+ "name": "noCheckmark",
16433
+ "default": "undefined"
15758
16434
  },
15759
16435
  {
15760
- "kind": "method",
15761
- "name": "updateComponentArchitecture"
16436
+ "kind": "field",
16437
+ "name": "disabled",
16438
+ "default": "undefined"
15762
16439
  },
15763
16440
  {
15764
16441
  "kind": "field",
15765
- "name": "layout",
15766
- "privacy": "public",
15767
- "type": {
15768
- "text": "string"
15769
- },
15770
- "description": "Defines the language of an element.",
15771
- "default": "{'default'}",
15772
- "attribute": "layout",
15773
- "reflects": true
16442
+ "name": "matchWord",
16443
+ "default": "undefined"
15774
16444
  },
15775
16445
  {
15776
16446
  "kind": "field",
15777
- "name": "shape",
15778
- "privacy": "public",
15779
- "type": {
15780
- "text": "string"
15781
- },
15782
- "attribute": "shape",
15783
- "reflects": true
16447
+ "name": "multiSelect",
16448
+ "default": "undefined"
15784
16449
  },
15785
16450
  {
15786
16451
  "kind": "field",
15787
- "name": "size",
15788
- "privacy": "public",
15789
- "type": {
15790
- "text": "string"
15791
- },
15792
- "attribute": "size",
15793
- "reflects": true
16452
+ "name": "allowDeselect",
16453
+ "default": "undefined"
15794
16454
  },
15795
16455
  {
15796
16456
  "kind": "field",
15797
- "name": "onDark",
15798
- "privacy": "public",
15799
- "type": {
15800
- "text": "boolean"
15801
- },
15802
- "attribute": "ondark",
15803
- "reflects": true
15804
- }
15805
- ],
15806
- "attributes": [
15807
- {
15808
- "name": "layout",
15809
- "type": {
15810
- "text": "string"
15811
- },
15812
- "description": "Defines the language of an element.",
15813
- "default": "{'default'}",
15814
- "fieldName": "layout"
16457
+ "name": "selectAllMatchingOptions",
16458
+ "default": "undefined"
15815
16459
  },
15816
16460
  {
15817
- "name": "shape",
16461
+ "kind": "field",
16462
+ "name": "highlightedIndex",
15818
16463
  "type": {
15819
- "text": "string"
16464
+ "text": "number"
15820
16465
  },
15821
- "fieldName": "shape"
16466
+ "default": "-1"
15822
16467
  },
15823
16468
  {
15824
- "name": "size",
16469
+ "kind": "field",
16470
+ "name": "_menuOptions",
15825
16471
  "type": {
15826
- "text": "string"
16472
+ "text": "array"
15827
16473
  },
15828
- "fieldName": "size"
16474
+ "default": "[]"
15829
16475
  },
15830
- {
15831
- "name": "ondark",
15832
- "type": {
15833
- "text": "boolean"
15834
- },
15835
- "fieldName": "onDark"
15836
- }
15837
- ],
15838
- "superclass": {
15839
- "name": "LitElement",
15840
- "package": "lit"
15841
- },
15842
- "customElement": true
15843
- }
15844
- ],
15845
- "exports": [
15846
- {
15847
- "kind": "js",
15848
- "name": "AuroElement",
15849
- "declaration": {
15850
- "name": "AuroElement",
15851
- "module": "components/layoutElement/src/auroElement.js"
15852
- }
15853
- }
15854
- ]
15855
- },
15856
- {
15857
- "kind": "javascript-module",
15858
- "path": "components/layoutElement/src/index.js",
15859
- "declarations": [],
15860
- "exports": [
15861
- {
15862
- "kind": "js",
15863
- "name": "AuroElement",
15864
- "declaration": {
15865
- "name": "AuroElement",
15866
- "module": "components/layoutElement/src/index.js"
15867
- }
15868
- }
15869
- ]
15870
- },
15871
- {
15872
- "kind": "javascript-module",
15873
- "path": "components/layoutElement/src/registered.js",
15874
- "declarations": [],
15875
- "exports": []
15876
- },
15877
- {
15878
- "kind": "javascript-module",
15879
- "path": "components/menu/src/auro-menu-utils.js",
15880
- "declarations": [
15881
- {
15882
- "kind": "function",
15883
- "name": "arrayConverter",
15884
- "parameters": [
15885
- {
15886
- "name": "value",
15887
- "description": "The value to be converted. Can be a string, array, or undefined.",
15888
- "type": {
15889
- "text": "any"
15890
- }
15891
- }
15892
- ],
15893
- "description": "Converts value to an array.\nIf the value is a JSON string representing an array, it will be parsed.\nIf the value is already an array, it is returned.\nIf the value is undefined, it returns undefined.",
15894
- "privacy": "private",
15895
- "return": {
15896
- "type": {
15897
- "text": "Array|undefined"
15898
- }
15899
- }
15900
- },
15901
- {
15902
- "kind": "function",
15903
- "name": "arraysAreEqual",
15904
- "parameters": [
15905
- {
15906
- "name": "arr1",
15907
- "description": "First array to compare.",
16476
+ {
16477
+ "kind": "field",
16478
+ "name": "_subscribers",
15908
16479
  "type": {
15909
- "text": "Array"
15910
- }
16480
+ "text": "array"
16481
+ },
16482
+ "default": "[]"
15911
16483
  },
15912
16484
  {
15913
- "name": "arr2",
15914
- "description": "Second array to compare.",
16485
+ "kind": "field",
16486
+ "name": "internalUpdateInProgress",
15915
16487
  "type": {
15916
- "text": "Array"
15917
- }
15918
- }
15919
- ],
15920
- "description": "Compare two arrays for equality.",
15921
- "privacy": "private",
15922
- "return": {
15923
- "type": {
15924
- "text": "boolean"
15925
- }
15926
- }
15927
- },
15928
- {
15929
- "kind": "function",
15930
- "name": "isOptionInteractive",
15931
- "parameters": [
16488
+ "text": "boolean"
16489
+ },
16490
+ "default": "false"
16491
+ },
15932
16492
  {
15933
- "name": "option",
15934
- "description": "The option to check.",
16493
+ "kind": "field",
16494
+ "name": "selectedOptions",
15935
16495
  "type": {
15936
- "text": "HTMLElement"
15937
- }
15938
- }
15939
- ],
15940
- "description": "Validates if an option can be interacted with.",
15941
- "privacy": "private",
15942
- "return": {
15943
- "type": {
15944
- "text": "boolean"
15945
- }
15946
- }
15947
- },
15948
- {
15949
- "kind": "function",
15950
- "name": "dispatchMenuEvent",
15951
- "parameters": [
16496
+ "text": "array"
16497
+ },
16498
+ "default": "[]"
16499
+ },
15952
16500
  {
15953
- "name": "element",
15954
- "description": "Element to dispatch event from.",
16501
+ "kind": "field",
16502
+ "name": "_pendingValue",
15955
16503
  "type": {
15956
- "text": "HTMLElement"
15957
- }
16504
+ "text": "null"
16505
+ },
16506
+ "default": "null"
15958
16507
  },
15959
16508
  {
15960
- "name": "eventName",
15961
- "description": "Name of the event to dispatch.",
16509
+ "kind": "field",
16510
+ "name": "_pendingRetryScheduled",
15962
16511
  "type": {
15963
- "text": "string"
15964
- }
16512
+ "text": "boolean"
16513
+ },
16514
+ "default": "false"
15965
16515
  },
15966
16516
  {
15967
- "name": "detail",
15968
- "default": "null",
15969
- "description": "Optional detail object to include with the event.",
15970
- "optional": true,
16517
+ "kind": "field",
16518
+ "name": "_pendingRetryCount",
15971
16519
  "type": {
15972
- "text": "Object"
15973
- }
16520
+ "text": "number"
16521
+ },
16522
+ "default": "0"
15974
16523
  }
15975
- ],
15976
- "description": "Helper method to dispatch custom events."
16524
+ ]
16525
+ },
16526
+ {
16527
+ "kind": "variable",
16528
+ "name": "MenuContext"
15977
16529
  }
15978
16530
  ],
15979
16531
  "exports": [
15980
16532
  {
15981
16533
  "kind": "js",
15982
- "name": "arrayConverter",
15983
- "declaration": {
15984
- "name": "arrayConverter",
15985
- "module": "components/menu/src/auro-menu-utils.js"
15986
- }
15987
- },
15988
- {
15989
- "kind": "js",
15990
- "name": "arraysAreEqual",
15991
- "declaration": {
15992
- "name": "arraysAreEqual",
15993
- "module": "components/menu/src/auro-menu-utils.js"
15994
- }
15995
- },
15996
- {
15997
- "kind": "js",
15998
- "name": "isOptionInteractive",
16534
+ "name": "MenuService",
15999
16535
  "declaration": {
16000
- "name": "isOptionInteractive",
16001
- "module": "components/menu/src/auro-menu-utils.js"
16536
+ "name": "MenuService",
16537
+ "module": "components/menu/src/auro-menu.context.js"
16002
16538
  }
16003
16539
  },
16004
16540
  {
16005
16541
  "kind": "js",
16006
- "name": "dispatchMenuEvent",
16542
+ "name": "MenuContext",
16007
16543
  "declaration": {
16008
- "name": "dispatchMenuEvent",
16009
- "module": "components/menu/src/auro-menu-utils.js"
16544
+ "name": "MenuContext",
16545
+ "module": "components/menu/src/auro-menu.context.js"
16010
16546
  }
16011
16547
  }
16012
16548
  ]
@@ -16035,31 +16571,25 @@
16035
16571
  ],
16036
16572
  "members": [
16037
16573
  {
16038
- "kind": "method",
16039
- "name": "register",
16040
- "static": true,
16041
- "parameters": [
16042
- {
16043
- "name": "name",
16044
- "default": "\"auro-menu\"",
16045
- "description": "The name of element that you want to register to.",
16046
- "optional": true,
16047
- "type": {
16048
- "text": "string"
16049
- }
16574
+ "kind": "field",
16575
+ "name": "currentLabel",
16576
+ "readonly": true,
16577
+ "return": {
16578
+ "type": {
16579
+ "text": "string"
16050
16580
  }
16051
- ],
16052
- "description": "This will register this element with the browser."
16581
+ }
16053
16582
  },
16054
16583
  {
16055
16584
  "kind": "field",
16056
- "name": "options",
16585
+ "name": "items",
16057
16586
  "readonly": true,
16058
16587
  "return": {
16059
16588
  "type": {
16060
16589
  "text": "Array<HTMLElement>"
16061
16590
  }
16062
- }
16591
+ },
16592
+ "deprecated": "Use `options` property instead."
16063
16593
  },
16064
16594
  {
16065
16595
  "kind": "field",
@@ -16080,262 +16610,207 @@
16080
16610
  ]
16081
16611
  },
16082
16612
  {
16083
- "kind": "field",
16084
- "name": "selectedOptions",
16085
- "description": "Gets the currently selected options as an array.",
16086
- "return": {
16087
- "type": {
16088
- "text": "Array<HTMLElement>"
16613
+ "kind": "method",
16614
+ "name": "register",
16615
+ "static": true,
16616
+ "parameters": [
16617
+ {
16618
+ "name": "name",
16619
+ "default": "\"auro-menu\"",
16620
+ "description": "The name of the element that you want to register.",
16621
+ "optional": true,
16622
+ "type": {
16623
+ "text": "string"
16624
+ }
16089
16625
  }
16090
- },
16091
- "readonly": true
16626
+ ],
16627
+ "description": "This will register this element with the browser."
16092
16628
  },
16093
16629
  {
16094
16630
  "kind": "field",
16095
- "name": "selectedOption",
16096
- "description": "Gets the first selected option, or null if none.",
16631
+ "name": "formattedValue",
16632
+ "description": "Formatted value based on `multiSelect` state.\nDefault type is `String`, changing to `Array<String>` when `multiSelect` is true.",
16633
+ "privacy": "private",
16097
16634
  "return": {
16098
16635
  "type": {
16099
- "text": "HTMLElement|null"
16636
+ "text": "String|Array<String>"
16100
16637
  }
16101
16638
  },
16102
16639
  "readonly": true
16103
16640
  },
16104
16641
  {
16105
16642
  "kind": "field",
16106
- "name": "currentLabel",
16107
- "readonly": true,
16108
- "return": {
16109
- "type": {
16110
- "text": "string"
16111
- }
16112
- }
16113
- },
16114
- {
16115
- "kind": "field",
16116
- "name": "formattedValue",
16117
- "description": "Formatted value based on `multiSelect` state.\nDefault type is `String`, changing to `Array<String>` when `multiSelect` is true.",
16643
+ "name": "propertyValues",
16644
+ "description": "Gets the current property values for the menu service.",
16118
16645
  "privacy": "private",
16119
16646
  "return": {
16120
16647
  "type": {
16121
- "text": "String|Array<String>"
16648
+ "text": "Object"
16122
16649
  }
16123
16650
  },
16124
16651
  "readonly": true
16125
16652
  },
16126
16653
  {
16127
16654
  "kind": "method",
16128
- "name": "selectByValue",
16129
- "parameters": [
16130
- {
16131
- "name": "value",
16132
- "description": "The value(s) to select.",
16133
- "type": {
16134
- "text": "string|string[]|undefined|null"
16135
- }
16136
- }
16137
- ],
16138
- "description": "Selects options by value.",
16139
- "privacy": "public"
16140
- },
16141
- {
16142
- "kind": "method",
16143
- "name": "setTagAttribute",
16144
- "parameters": [
16145
- {
16146
- "name": "tagName",
16147
- "description": "The tag name to set as an attribute.",
16148
- "type": {
16149
- "text": "string"
16150
- }
16151
- }
16152
- ],
16153
- "description": "Sets an attribute that matches the default tag name if the tag name is not the default.",
16154
- "privacy": "private"
16155
- },
16156
- {
16157
- "kind": "method",
16158
- "name": "updateItemsState",
16159
- "parameters": [
16160
- {
16161
- "name": "changedProperties",
16162
- "description": "LitElement's changed properties map.",
16163
- "type": {
16164
- "text": "Map<string, boolean>"
16165
- }
16166
- }
16167
- ],
16168
- "description": "Updates the UI state and appearance of menu items based on changed properties.",
16169
- "privacy": "private"
16170
- },
16171
- {
16172
- "kind": "method",
16173
- "name": "initializeMenu",
16174
- "description": "Initializes the menu's state and structure.",
16175
- "privacy": "private"
16176
- },
16177
- {
16178
- "kind": "method",
16179
- "name": "initItems",
16180
- "description": "Initializes menu items and their attributes.",
16181
- "privacy": "private"
16182
- },
16183
- {
16184
- "kind": "method",
16185
- "name": "handleSelectState",
16186
- "parameters": [
16187
- {
16188
- "name": "option",
16189
- "description": "The option element to select.",
16190
- "type": {
16191
- "text": "HTMLElement"
16192
- }
16193
- }
16194
- ],
16195
- "description": "Updates menu state when an option is selected.",
16196
- "privacy": "private"
16197
- },
16198
- {
16199
- "kind": "method",
16200
- "name": "handleDeselectState",
16201
- "parameters": [
16202
- {
16203
- "name": "option",
16204
- "description": "The menuoption to be deselected.",
16205
- "type": {
16206
- "text": "HTMLElement"
16207
- }
16208
- }
16209
- ],
16210
- "description": "Deselects a menu option and updates related state.",
16211
- "privacy": "private"
16212
- },
16213
- {
16214
- "kind": "method",
16215
- "name": "clearSelection",
16216
- "description": "Resets all options to their default state.",
16217
- "privacy": "private"
16218
- },
16219
- {
16220
- "kind": "method",
16221
- "name": "reset",
16222
- "description": "Resets the menu to its initial state.\nThis is the only way to return value to undefined.",
16223
- "privacy": "public"
16655
+ "name": "provideContext",
16656
+ "description": "Provides the menu context to child components.\nInitializes the MenuService and subscribes to menu changes.",
16657
+ "privacy": "protected"
16224
16658
  },
16225
16659
  {
16226
16660
  "kind": "method",
16227
- "name": "handleNestedMenus",
16661
+ "name": "updateActiveOption",
16228
16662
  "parameters": [
16229
16663
  {
16230
- "name": "menu",
16231
- "description": "Root menu element.",
16664
+ "name": "option",
16665
+ "description": "The option to set as active.",
16232
16666
  "type": {
16233
16667
  "text": "HTMLElement"
16234
16668
  }
16235
16669
  }
16236
16670
  ],
16237
- "description": "Handles nested menu structure.",
16238
- "privacy": "private"
16239
- },
16240
- {
16241
- "kind": "method",
16242
- "name": "makeSelection",
16243
- "description": "Makes a selection based on the current index.",
16244
- "privacy": "private"
16671
+ "description": "Updates the currently active option in the menu."
16245
16672
  },
16246
16673
  {
16247
16674
  "kind": "method",
16248
- "name": "toggleOption",
16675
+ "name": "setInternalValue",
16249
16676
  "parameters": [
16250
16677
  {
16251
- "name": "option",
16252
- "description": "The menuoption to toggle.",
16678
+ "name": "value",
16679
+ "description": "The value to set.",
16253
16680
  "type": {
16254
- "text": "HTMLElement"
16681
+ "text": "String|Array<String>"
16255
16682
  }
16256
16683
  }
16257
16684
  ],
16258
- "description": "Toggle the selection state of the menuoption.",
16259
- "privacy": "private"
16685
+ "description": "Sets the internal value and manages update state.",
16686
+ "privacy": "protected"
16260
16687
  },
16261
16688
  {
16262
16689
  "kind": "method",
16263
- "name": "handleKeyDown",
16690
+ "name": "handleMenuChange",
16264
16691
  "parameters": [
16265
16692
  {
16266
16693
  "name": "event",
16267
- "description": "The keydown event.",
16694
+ "description": "The event object from the menu service.",
16268
16695
  "type": {
16269
- "text": "KeyboardEvent"
16696
+ "text": "Object"
16270
16697
  }
16271
16698
  }
16272
16699
  ],
16273
- "description": "Handles keyboard navigation and selection.",
16274
- "privacy": "private"
16700
+ "description": "Handles changes from the menu service and updates component state.",
16701
+ "privacy": "protected"
16702
+ },
16703
+ {
16704
+ "kind": "field",
16705
+ "name": "selectedOptions",
16706
+ "description": "Gets the currently selected options.",
16707
+ "return": {
16708
+ "type": {
16709
+ "text": "Array<HTMLElement>"
16710
+ }
16711
+ },
16712
+ "readonly": true
16713
+ },
16714
+ {
16715
+ "kind": "field",
16716
+ "name": "selectedOption",
16717
+ "description": "Gets the first selected option, or null if none.",
16718
+ "return": {
16719
+ "type": {
16720
+ "text": "HTMLElement|null"
16721
+ }
16722
+ },
16723
+ "readonly": true
16275
16724
  },
16276
16725
  {
16277
16726
  "kind": "method",
16278
- "name": "handleMouseSelect",
16727
+ "name": "setTagAttribute",
16279
16728
  "parameters": [
16280
16729
  {
16281
- "name": "event",
16282
- "description": "The auroMenuOption-click event.",
16730
+ "name": "tagName",
16731
+ "description": "The tag name to set as an attribute.",
16283
16732
  "type": {
16284
- "text": "CustomEvent"
16733
+ "text": "string"
16285
16734
  }
16286
16735
  }
16287
16736
  ],
16288
- "description": "Handles option selection via click events from menuoptions.",
16737
+ "description": "Sets an attribute that matches the default tag name if the tag name is not the default.",
16289
16738
  "privacy": "private"
16290
16739
  },
16291
16740
  {
16292
16741
  "kind": "method",
16293
- "name": "handleOptionHover",
16742
+ "name": "setLoadingState",
16294
16743
  "parameters": [
16295
16744
  {
16296
- "name": "event",
16297
- "description": "Event object from the browser.",
16745
+ "name": "isLoading",
16746
+ "description": "Whether the menu is loading.",
16298
16747
  "type": {
16299
- "text": "CustomEvent"
16748
+ "text": "boolean"
16300
16749
  }
16301
16750
  }
16302
16751
  ],
16303
- "description": "Handles option hover events.",
16752
+ "description": "Sets the loading state and dispatches a loading change event.",
16753
+ "privacy": "protected"
16754
+ },
16755
+ {
16756
+ "kind": "method",
16757
+ "name": "initializeMenu",
16758
+ "description": "Initializes the menu's state and structure.",
16304
16759
  "privacy": "private"
16305
16760
  },
16306
16761
  {
16307
16762
  "kind": "method",
16308
- "name": "handleSlotChange",
16309
- "description": "Handles slot change events.",
16763
+ "name": "makeSelection",
16764
+ "description": "Selects the currently highlighted option.",
16765
+ "privacy": "protected"
16766
+ },
16767
+ {
16768
+ "kind": "method",
16769
+ "name": "clearSelection",
16770
+ "description": "Resets all options to their default state.",
16310
16771
  "privacy": "private"
16311
16772
  },
16312
16773
  {
16313
16774
  "kind": "method",
16314
- "name": "navigateOptions",
16775
+ "name": "reset",
16776
+ "description": "Resets the menu to its initial state.\nThis is the only way to return value to undefined.",
16777
+ "privacy": "public"
16778
+ },
16779
+ {
16780
+ "kind": "method",
16781
+ "name": "handleNestedMenus",
16315
16782
  "parameters": [
16316
16783
  {
16317
- "name": "direction",
16318
- "description": "'up' or 'down'.",
16784
+ "name": "menu",
16785
+ "description": "Root menu element.",
16319
16786
  "type": {
16320
- "text": "string"
16787
+ "text": "HTMLElement"
16321
16788
  }
16322
16789
  }
16323
16790
  ],
16324
- "description": "Navigates through options using keyboard."
16791
+ "description": "Handles nested menu structure.",
16792
+ "privacy": "private"
16325
16793
  },
16326
16794
  {
16327
16795
  "kind": "method",
16328
- "name": "updateActiveOption",
16796
+ "name": "navigateOptions",
16329
16797
  "parameters": [
16330
16798
  {
16331
- "name": "indexOrOption",
16332
- "description": "Index of the option or the option element to make active.",
16799
+ "name": "direction",
16800
+ "description": "The direction to navigate.",
16333
16801
  "type": {
16334
- "text": "number|HTMLElement"
16802
+ "text": "'up'|'down'"
16335
16803
  }
16336
16804
  }
16337
16805
  ],
16338
- "description": "Updates the active option state and dispatches events.\nAccepts either a numeric index or an HTMLElement option."
16806
+ "description": "Navigates the menu options in the specified direction.",
16807
+ "privacy": "protected"
16808
+ },
16809
+ {
16810
+ "kind": "method",
16811
+ "name": "handleSlotChange",
16812
+ "description": "Handles slot change events.",
16813
+ "privacy": "private"
16339
16814
  },
16340
16815
  {
16341
16816
  "kind": "method",
@@ -16357,9 +16832,12 @@
16357
16832
  "name": "notifySelectionChange",
16358
16833
  "parameters": [
16359
16834
  {
16360
- "name": "source",
16361
- "default": "undefined",
16835
+ "name": "{value, stringValue, keys, options, reason}",
16836
+ "default": "{}"
16837
+ },
16838
+ {
16362
16839
  "description": "The source that triggers this event.",
16840
+ "name": "source",
16363
16841
  "type": {
16364
16842
  "text": "any"
16365
16843
  }
@@ -16368,32 +16846,6 @@
16368
16846
  "description": "Notifies selection change to parent components.",
16369
16847
  "privacy": "private"
16370
16848
  },
16371
- {
16372
- "kind": "method",
16373
- "name": "selectionEquals",
16374
- "parameters": [
16375
- {
16376
- "name": "current",
16377
- "description": "Current selection.",
16378
- "type": {
16379
- "text": "any"
16380
- }
16381
- },
16382
- {
16383
- "name": "next",
16384
- "description": "New selection to compare.",
16385
- "type": {
16386
- "text": "any"
16387
- }
16388
- }
16389
- ],
16390
- "privacy": "private",
16391
- "return": {
16392
- "type": {
16393
- "text": "boolean"
16394
- }
16395
- }
16396
- },
16397
16849
  {
16398
16850
  "kind": "method",
16399
16851
  "name": "isOptionSelected",
@@ -16417,13 +16869,18 @@
16417
16869
  {
16418
16870
  "kind": "field",
16419
16871
  "name": "hasLoadingPlaceholder",
16872
+ "privacy": "public",
16873
+ "type": {
16874
+ "text": "boolean"
16875
+ },
16420
16876
  "description": "Getter for loading placeholder state.",
16421
16877
  "return": {
16422
16878
  "type": {
16423
16879
  "text": "boolean"
16424
16880
  }
16425
16881
  },
16426
- "readonly": true
16882
+ "readonly": true,
16883
+ "attribute": "hasLoadingPlaceholder"
16427
16884
  },
16428
16885
  {
16429
16886
  "kind": "field",
@@ -16457,6 +16914,7 @@
16457
16914
  },
16458
16915
  "attribute": "shape",
16459
16916
  "reflects": true,
16917
+ "description": "Sets the shape of the menu.",
16460
16918
  "default": "\"box\"",
16461
16919
  "inheritedFrom": {
16462
16920
  "name": "AuroElement",
@@ -16472,24 +16930,13 @@
16472
16930
  },
16473
16931
  "attribute": "size",
16474
16932
  "reflects": true,
16933
+ "description": "Sets the size of the menu.",
16475
16934
  "default": "\"sm\"",
16476
16935
  "inheritedFrom": {
16477
16936
  "name": "AuroElement",
16478
16937
  "module": "components/layoutElement/src/auroElement.js"
16479
16938
  }
16480
16939
  },
16481
- {
16482
- "kind": "field",
16483
- "name": "value",
16484
- "privacy": "public",
16485
- "type": {
16486
- "text": "string"
16487
- },
16488
- "description": "The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.",
16489
- "default": "undefined",
16490
- "attribute": "value",
16491
- "reflects": true
16492
- },
16493
16940
  {
16494
16941
  "kind": "field",
16495
16942
  "name": "optionSelected",
@@ -16559,6 +17006,30 @@
16559
17006
  "attribute": "multiselect",
16560
17007
  "reflects": true
16561
17008
  },
17009
+ {
17010
+ "kind": "field",
17011
+ "name": "allowDeselect",
17012
+ "privacy": "public",
17013
+ "type": {
17014
+ "text": "boolean"
17015
+ },
17016
+ "description": "Allows deselecting an already selected option when clicked again in single-select mode.",
17017
+ "default": "false",
17018
+ "attribute": "allowDeselect",
17019
+ "reflects": true
17020
+ },
17021
+ {
17022
+ "kind": "field",
17023
+ "name": "selectAllMatchingOptions",
17024
+ "privacy": "public",
17025
+ "type": {
17026
+ "text": "boolean"
17027
+ },
17028
+ "description": "When true, selects all options that match the provided value/key when setting value and multiselect is enabled.",
17029
+ "default": "false",
17030
+ "attribute": "selectAllMatchingOptions",
17031
+ "reflects": true
17032
+ },
16562
17033
  {
16563
17034
  "kind": "field",
16564
17035
  "name": "disabled",
@@ -16570,6 +17041,22 @@
16570
17041
  "attribute": "disabled",
16571
17042
  "reflects": true
16572
17043
  },
17044
+ {
17045
+ "kind": "field",
17046
+ "name": "layout",
17047
+ "privacy": "public",
17048
+ "type": {
17049
+ "text": "string"
17050
+ },
17051
+ "description": "Defines the language of an element.",
17052
+ "default": "{'default'}",
17053
+ "attribute": "layout",
17054
+ "reflects": true,
17055
+ "inheritedFrom": {
17056
+ "name": "AuroElement",
17057
+ "module": "components/layoutElement/src/auroElement.js"
17058
+ }
17059
+ },
16573
17060
  {
16574
17061
  "kind": "field",
16575
17062
  "name": "level",
@@ -16579,6 +17066,27 @@
16579
17066
  },
16580
17067
  "description": "Indent level for submenus."
16581
17068
  },
17069
+ {
17070
+ "kind": "field",
17071
+ "name": "options",
17072
+ "privacy": "public",
17073
+ "type": {
17074
+ "text": "array"
17075
+ },
17076
+ "description": "Available menu options.",
17077
+ "readonly": true
17078
+ },
17079
+ {
17080
+ "kind": "field",
17081
+ "name": "value",
17082
+ "privacy": "public",
17083
+ "type": {
17084
+ "text": "string"
17085
+ },
17086
+ "description": "The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.",
17087
+ "attribute": "value",
17088
+ "reflects": true
17089
+ },
16582
17090
  {
16583
17091
  "kind": "field",
16584
17092
  "name": "componentHasFocus",
@@ -16619,22 +17127,6 @@
16619
17127
  "module": "components/layoutElement/src/auroElement.js"
16620
17128
  }
16621
17129
  },
16622
- {
16623
- "kind": "field",
16624
- "name": "layout",
16625
- "privacy": "public",
16626
- "type": {
16627
- "text": "string"
16628
- },
16629
- "description": "Defines the language of an element.",
16630
- "default": "{'default'}",
16631
- "attribute": "layout",
16632
- "reflects": true,
16633
- "inheritedFrom": {
16634
- "name": "AuroElement",
16635
- "module": "components/layoutElement/src/auroElement.js"
16636
- }
16637
- },
16638
17130
  {
16639
17131
  "kind": "field",
16640
17132
  "name": "onDark",
@@ -16685,6 +17177,13 @@
16685
17177
  "description": "Notifies that an attempt to select a menuoption by matching a value has failed.",
16686
17178
  "name": "auroMenu-selectValueFailure"
16687
17179
  },
17180
+ {
17181
+ "type": {
17182
+ "text": "CustomEvent<{ values: HTMLElement[] }>"
17183
+ },
17184
+ "description": "Notifies that deselection was prevented and includes the affected options in `detail.values`.",
17185
+ "name": "auroMenu-deselectPrevented"
17186
+ },
16688
17187
  {
16689
17188
  "type": {
16690
17189
  "text": "CustomEvent<any>"
@@ -16701,6 +17200,15 @@
16701
17200
  }
16702
17201
  ],
16703
17202
  "attributes": [
17203
+ {
17204
+ "name": "allowDeselect",
17205
+ "type": {
17206
+ "text": "boolean"
17207
+ },
17208
+ "description": "Allows deselecting an already selected option when clicked again in single-select mode.",
17209
+ "default": "false",
17210
+ "fieldName": "allowDeselect"
17211
+ },
16704
17212
  {
16705
17213
  "name": "disabled",
16706
17214
  "type": {
@@ -16709,6 +17217,33 @@
16709
17217
  "description": "When true, the entire menu and all options are disabled.",
16710
17218
  "fieldName": "disabled"
16711
17219
  },
17220
+ {
17221
+ "name": "hasLoadingPlaceholder",
17222
+ "type": {
17223
+ "text": "boolean"
17224
+ },
17225
+ "description": "Getter for loading placeholder state.",
17226
+ "return": {
17227
+ "type": {
17228
+ "text": "boolean"
17229
+ }
17230
+ },
17231
+ "readonly": true,
17232
+ "fieldName": "hasLoadingPlaceholder"
17233
+ },
17234
+ {
17235
+ "name": "layout",
17236
+ "type": {
17237
+ "text": "string"
17238
+ },
17239
+ "description": "Defines the language of an element.",
17240
+ "default": "{'default'}",
17241
+ "fieldName": "layout",
17242
+ "inheritedFrom": {
17243
+ "name": "AuroElement",
17244
+ "module": "components/layoutElement/src/auroElement.js"
17245
+ }
17246
+ },
16712
17247
  {
16713
17248
  "name": "loading",
16714
17249
  "type": {
@@ -16764,48 +17299,47 @@
16764
17299
  "fieldName": "optionSelected"
16765
17300
  },
16766
17301
  {
16767
- "name": "value",
16768
- "type": {
16769
- "text": "string"
16770
- },
16771
- "description": "The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.",
16772
- "default": "undefined",
16773
- "fieldName": "value"
16774
- },
16775
- {
16776
- "name": "layout",
17302
+ "name": "size",
16777
17303
  "type": {
16778
17304
  "text": "string"
16779
17305
  },
16780
- "description": "Defines the language of an element.",
16781
- "default": "{'default'}",
16782
- "fieldName": "layout",
17306
+ "fieldName": "size",
17307
+ "description": "Sets the size of the menu.",
17308
+ "default": "\"sm\"",
16783
17309
  "inheritedFrom": {
16784
17310
  "name": "AuroElement",
16785
17311
  "module": "components/layoutElement/src/auroElement.js"
16786
17312
  }
16787
17313
  },
17314
+ {
17315
+ "name": "selectAllMatchingOptions",
17316
+ "type": {
17317
+ "text": "boolean"
17318
+ },
17319
+ "description": "When true, selects all options that match the provided value/key when setting value and multiselect is enabled.",
17320
+ "default": "false",
17321
+ "fieldName": "selectAllMatchingOptions"
17322
+ },
16788
17323
  {
16789
17324
  "name": "shape",
16790
17325
  "type": {
16791
17326
  "text": "string"
16792
17327
  },
16793
17328
  "fieldName": "shape",
17329
+ "description": "Sets the shape of the menu.",
17330
+ "default": "\"box\"",
16794
17331
  "inheritedFrom": {
16795
17332
  "name": "AuroElement",
16796
17333
  "module": "components/layoutElement/src/auroElement.js"
16797
17334
  }
16798
17335
  },
16799
17336
  {
16800
- "name": "size",
17337
+ "name": "value",
16801
17338
  "type": {
16802
17339
  "text": "string"
16803
17340
  },
16804
- "fieldName": "size",
16805
- "inheritedFrom": {
16806
- "name": "AuroElement",
16807
- "module": "components/layoutElement/src/auroElement.js"
16808
- }
17341
+ "description": "The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.",
17342
+ "fieldName": "value"
16809
17343
  },
16810
17344
  {
16811
17345
  "name": "ondark",
@@ -16861,7 +17395,7 @@
16861
17395
  {
16862
17396
  "name": "name",
16863
17397
  "default": "\"auro-menuoption\"",
16864
- "description": "The name of element that you want to register to.",
17398
+ "description": "The name of the element that you want to register.",
16865
17399
  "optional": true,
16866
17400
  "type": {
16867
17401
  "text": "string"
@@ -16873,7 +17407,7 @@
16873
17407
  {
16874
17408
  "kind": "field",
16875
17409
  "name": "isActive",
16876
- "description": "Returns whether the menu option is currently active and selectable.",
17410
+ "description": "Returns whether the menu option is currently active and selectable.\nAn option is considered active if it is not hidden, not disabled, and not static.",
16877
17411
  "return": {
16878
17412
  "type": {
16879
17413
  "text": "boolean"
@@ -16883,34 +17417,115 @@
16883
17417
  },
16884
17418
  {
16885
17419
  "kind": "method",
16886
- "name": "handleMenuChange"
17420
+ "name": "bindEvents",
17421
+ "description": "Sets up event listeners for user interaction with the menu option.\nThis function enables click and mouse enter events to trigger selection and highlighting logic."
17422
+ },
17423
+ {
17424
+ "kind": "method",
17425
+ "name": "attachTo",
17426
+ "parameters": [
17427
+ {
17428
+ "name": "service",
17429
+ "description": "The menu service instance to attach to.",
17430
+ "type": {
17431
+ "text": "Object"
17432
+ }
17433
+ }
17434
+ ],
17435
+ "description": "Attaches this menu option to a menu service and subscribes to its events.\nThis method enables the option to participate in menu selection and highlighting logic."
17436
+ },
17437
+ {
17438
+ "kind": "method",
17439
+ "name": "handleMenuChange",
17440
+ "parameters": [
17441
+ {
17442
+ "name": "event",
17443
+ "description": "The event object from the menu service.",
17444
+ "type": {
17445
+ "text": "Object"
17446
+ }
17447
+ }
17448
+ ],
17449
+ "description": "Handles changes from the menu service and updates the option's state.\nThis function synchronizes the option's properties and selection/highlight state with menu events."
17450
+ },
17451
+ {
17452
+ "kind": "method",
17453
+ "name": "setInternalSelected",
17454
+ "parameters": [
17455
+ {
17456
+ "name": "isSelected",
17457
+ "description": "Whether the option should be marked as selected.",
17458
+ "type": {
17459
+ "text": "boolean"
17460
+ }
17461
+ }
17462
+ ],
17463
+ "description": "Updates the internal selected state of the menu option bypassing 'updated' and triggers custom events if selected.\nThis function ensures the option's selection state is synchronized with menu logic and notifies listeners."
16887
17464
  },
16888
17465
  {
16889
17466
  "kind": "method",
16890
17467
  "name": "setSelected",
16891
17468
  "parameters": [
16892
17469
  {
16893
- "name": "value"
17470
+ "name": "isSelected",
17471
+ "description": "Whether the option should be marked as selected.",
17472
+ "type": {
17473
+ "text": "boolean"
17474
+ }
16894
17475
  }
16895
- ]
17476
+ ],
17477
+ "description": "Sets the selected state of the menu option.\nThis function updates whether the option is currently selected.",
17478
+ "deprecated": "Simply modify the `selected` property directly instead."
16896
17479
  },
16897
17480
  {
16898
17481
  "kind": "method",
16899
17482
  "name": "updateActive",
16900
17483
  "parameters": [
16901
17484
  {
16902
- "name": "active"
17485
+ "name": "isActive",
17486
+ "description": "Whether the option should be marked as active.",
17487
+ "type": {
17488
+ "text": "boolean"
17489
+ }
16903
17490
  }
16904
- ]
17491
+ ],
17492
+ "description": "Updates the active state and visual highlighting of the menu option.\nThis function toggles the option's active status and applies or removes the active CSS class.",
17493
+ "deprecated": "Simply modify the `active` property directly instead."
17494
+ },
17495
+ {
17496
+ "kind": "method",
17497
+ "name": "updateActiveClasses",
17498
+ "description": "Updates the CSS class for the menu option based on its active state.\nThis function adds or removes the 'active' class to visually indicate the option's active status.",
17499
+ "privacy": "private"
16905
17500
  },
16906
17501
  {
16907
17502
  "kind": "method",
16908
- "name": "attachTo"
17503
+ "name": "updateTextHighlight",
17504
+ "description": "Updates the visual highlighting of text within the menu option based on the current match word.\nThis function highlights matching text segments and manages nested spacers for display formatting.",
17505
+ "privacy": "private"
16909
17506
  },
16910
17507
  {
16911
17508
  "kind": "method",
16912
17509
  "name": "handleClick",
16913
- "description": "Handles click events on the menu option.",
17510
+ "description": "Handles click events on the menu option, toggling its selected state.\nThis function dispatches a click event and updates selection if the option is not disabled.",
17511
+ "privacy": "private"
17512
+ },
17513
+ {
17514
+ "kind": "method",
17515
+ "name": "handleMouseEnter",
17516
+ "description": "Handles mouse enter events to highlight the menu option.\nThis function updates the menu service to set this option as the currently highlighted item if not disabled.",
17517
+ "privacy": "private"
17518
+ },
17519
+ {
17520
+ "kind": "method",
17521
+ "name": "handleCustomEvent",
17522
+ "description": "Dispatches custom events defined for this menu option.\nThis function notifies listeners when a custom event is triggered by the option.",
17523
+ "privacy": "private"
17524
+ },
17525
+ {
17526
+ "kind": "method",
17527
+ "name": "dispatchClickEvent",
17528
+ "description": "Dispatches a click event for this menu option.\nThis function notifies listeners that the option has been clicked.",
16914
17529
  "privacy": "private"
16915
17530
  },
16916
17531
  {
@@ -16985,6 +17600,7 @@
16985
17600
  "type": {
16986
17601
  "text": "boolean"
16987
17602
  },
17603
+ "description": "Specifies that an option is selected.",
16988
17604
  "default": "false",
16989
17605
  "attribute": "selected",
16990
17606
  "reflects": true
@@ -16992,7 +17608,7 @@
16992
17608
  {
16993
17609
  "kind": "field",
16994
17610
  "name": "noCheckmark",
16995
- "privacy": "public",
17611
+ "privacy": "private",
16996
17612
  "type": {
16997
17613
  "text": "boolean"
16998
17614
  },
@@ -17007,6 +17623,7 @@
17007
17623
  "type": {
17008
17624
  "text": "boolean"
17009
17625
  },
17626
+ "description": "When true, disables the menu option.",
17010
17627
  "default": "false",
17011
17628
  "attribute": "disabled",
17012
17629
  "reflects": true
@@ -17018,46 +17635,101 @@
17018
17635
  "type": {
17019
17636
  "text": "boolean"
17020
17637
  },
17021
- "description": "When true, marks this option as the \"no matching results\" placeholder shown by combobox\nwhen the user's input does not match any available options.",
17638
+ "description": "When true, marks this option as the \"no matching results\" placeholder shown by combobox when the user's input does not match any available options. Enables distinct styling and prevents the option from being treated as a selectable match.",
17022
17639
  "default": "false",
17023
17640
  "attribute": "nomatch",
17024
17641
  "reflects": true
17025
17642
  },
17026
17643
  {
17027
17644
  "kind": "field",
17028
- "name": "tabIndex",
17645
+ "name": "runtimeUtils",
17646
+ "privacy": "private",
17647
+ "default": "new AuroLibraryRuntimeUtils()"
17648
+ },
17649
+ {
17650
+ "kind": "field",
17651
+ "name": "menuService",
17029
17652
  "privacy": "private",
17030
17653
  "type": {
17031
- "text": "number"
17654
+ "text": "null"
17032
17655
  },
17033
- "default": "-1",
17034
- "attribute": "tabIndex",
17035
- "reflects": true
17656
+ "default": "null",
17657
+ "attribute": "menuService"
17036
17658
  },
17037
17659
  {
17038
17660
  "kind": "field",
17039
- "name": "runtimeUtils",
17661
+ "name": "unsubscribe",
17662
+ "type": {
17663
+ "text": "null"
17664
+ },
17665
+ "default": "null"
17666
+ },
17667
+ {
17668
+ "kind": "field",
17669
+ "name": "event",
17040
17670
  "privacy": "private",
17041
- "default": "new AuroLibraryRuntimeUtils()"
17671
+ "type": {
17672
+ "text": "string"
17673
+ },
17674
+ "attribute": "event",
17675
+ "reflects": true
17042
17676
  },
17043
17677
  {
17044
17678
  "kind": "field",
17045
- "name": "value",
17679
+ "name": "layout",
17046
17680
  "privacy": "public",
17047
17681
  "type": {
17048
17682
  "text": "string"
17049
17683
  },
17050
- "attribute": "value",
17684
+ "description": "Defines the language of an element.",
17685
+ "default": "{'default'}",
17686
+ "attribute": "layout",
17687
+ "reflects": true,
17688
+ "inheritedFrom": {
17689
+ "name": "AuroElement",
17690
+ "module": "components/layoutElement/src/auroElement.js"
17691
+ }
17692
+ },
17693
+ {
17694
+ "kind": "field",
17695
+ "name": "key",
17696
+ "privacy": "public",
17697
+ "type": {
17698
+ "text": "string"
17699
+ },
17700
+ "description": "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.",
17701
+ "attribute": "key",
17051
17702
  "reflects": true
17052
17703
  },
17053
17704
  {
17054
17705
  "kind": "field",
17055
- "name": "event",
17706
+ "name": "matchWord",
17056
17707
  "privacy": "private",
17057
17708
  "type": {
17058
17709
  "text": "string"
17059
17710
  },
17060
- "attribute": "event",
17711
+ "attribute": "matchWord"
17712
+ },
17713
+ {
17714
+ "kind": "field",
17715
+ "name": "tabIndex",
17716
+ "privacy": "public",
17717
+ "type": {
17718
+ "text": "number"
17719
+ },
17720
+ "description": "Specifies the tab index of the menu option.",
17721
+ "attribute": "tabIndex",
17722
+ "reflects": true
17723
+ },
17724
+ {
17725
+ "kind": "field",
17726
+ "name": "value",
17727
+ "privacy": "public",
17728
+ "type": {
17729
+ "text": "string"
17730
+ },
17731
+ "description": "Specifies the value to be sent to a server.",
17732
+ "attribute": "value",
17061
17733
  "reflects": true
17062
17734
  },
17063
17735
  {
@@ -17100,22 +17772,6 @@
17100
17772
  "module": "components/layoutElement/src/auroElement.js"
17101
17773
  }
17102
17774
  },
17103
- {
17104
- "kind": "field",
17105
- "name": "layout",
17106
- "privacy": "public",
17107
- "type": {
17108
- "text": "string"
17109
- },
17110
- "description": "Defines the language of an element.",
17111
- "default": "{'default'}",
17112
- "attribute": "layout",
17113
- "reflects": true,
17114
- "inheritedFrom": {
17115
- "name": "AuroElement",
17116
- "module": "components/layoutElement/src/auroElement.js"
17117
- }
17118
- },
17119
17775
  {
17120
17776
  "kind": "field",
17121
17777
  "name": "onDark",
@@ -17143,78 +17799,103 @@
17143
17799
  "name": "auroMenuOption-click",
17144
17800
  "type": {
17145
17801
  "text": "CustomEvent"
17146
- },
17147
- "description": "Notifies that this option has been clicked."
17802
+ }
17148
17803
  }
17149
17804
  ],
17150
17805
  "attributes": [
17151
17806
  {
17152
- "name": "noCheckmark",
17807
+ "name": "disabled",
17153
17808
  "type": {
17154
17809
  "text": "boolean"
17155
17810
  },
17811
+ "description": "When true, disables the menu option.",
17156
17812
  "default": "false",
17157
- "fieldName": "noCheckmark"
17813
+ "fieldName": "disabled"
17158
17814
  },
17159
17815
  {
17160
- "name": "selected",
17816
+ "name": "event",
17161
17817
  "type": {
17162
- "text": "boolean"
17818
+ "text": "string"
17163
17819
  },
17164
- "default": "false",
17165
- "fieldName": "selected"
17820
+ "fieldName": "event"
17166
17821
  },
17167
17822
  {
17168
- "name": "disabled",
17823
+ "name": "layout",
17169
17824
  "type": {
17170
- "text": "boolean"
17825
+ "text": "string"
17171
17826
  },
17172
- "default": "false",
17173
- "fieldName": "disabled"
17827
+ "description": "Defines the language of an element.",
17828
+ "default": "{'default'}",
17829
+ "fieldName": "layout",
17830
+ "inheritedFrom": {
17831
+ "name": "AuroElement",
17832
+ "module": "components/layoutElement/src/auroElement.js"
17833
+ }
17174
17834
  },
17175
17835
  {
17176
- "name": "value",
17836
+ "name": "key",
17177
17837
  "type": {
17178
17838
  "text": "string"
17179
17839
  },
17180
- "fieldName": "value"
17840
+ "description": "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.",
17841
+ "fieldName": "key"
17181
17842
  },
17182
17843
  {
17183
- "name": "tabIndex",
17844
+ "name": "menuService",
17184
17845
  "type": {
17185
- "text": "number"
17846
+ "text": "null"
17186
17847
  },
17187
- "default": "-1",
17188
- "fieldName": "tabIndex"
17848
+ "default": "null",
17849
+ "fieldName": "menuService"
17189
17850
  },
17190
17851
  {
17191
- "name": "event",
17852
+ "name": "matchWord",
17192
17853
  "type": {
17193
17854
  "text": "string"
17194
17855
  },
17195
- "fieldName": "event"
17856
+ "fieldName": "matchWord"
17857
+ },
17858
+ {
17859
+ "name": "noCheckmark",
17860
+ "type": {
17861
+ "text": "boolean"
17862
+ },
17863
+ "default": "false",
17864
+ "fieldName": "noCheckmark"
17196
17865
  },
17197
17866
  {
17198
17867
  "name": "nomatch",
17199
17868
  "type": {
17200
17869
  "text": "boolean"
17201
17870
  },
17202
- "description": "When true, marks this option as the \"no matching results\" placeholder shown by combobox\nwhen the user's input does not match any available options.",
17871
+ "description": "When true, marks this option as the \"no matching results\" placeholder shown by combobox when the user's input does not match any available options. Enables distinct styling and prevents the option from being treated as a selectable match.",
17203
17872
  "default": "false",
17204
17873
  "fieldName": "noMatch"
17205
17874
  },
17206
17875
  {
17207
- "name": "layout",
17876
+ "name": "selected",
17877
+ "type": {
17878
+ "text": "boolean"
17879
+ },
17880
+ "description": "Specifies that an option is selected.",
17881
+ "default": "false",
17882
+ "fieldName": "selected"
17883
+ },
17884
+ {
17885
+ "name": "tabIndex",
17886
+ "type": {
17887
+ "text": "number"
17888
+ },
17889
+ "description": "Specifies the tab index of the menu option.",
17890
+ "fieldName": "tabIndex"
17891
+ },
17892
+ {
17893
+ "name": "value",
17208
17894
  "type": {
17209
17895
  "text": "string"
17210
17896
  },
17211
- "description": "Defines the language of an element.",
17212
- "default": "{'default'}",
17213
- "fieldName": "layout",
17214
- "inheritedFrom": {
17215
- "name": "AuroElement",
17216
- "module": "components/layoutElement/src/auroElement.js"
17217
- }
17897
+ "description": "Specifies the value to be sent to a server.",
17898
+ "fieldName": "value"
17218
17899
  },
17219
17900
  {
17220
17901
  "name": "shape",
@@ -19720,7 +20401,7 @@
19720
20401
  "type": {
19721
20402
  "text": "object"
19722
20403
  },
19723
- "default": "{ ArrowDown(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to last enabled option selectKeyboardStrategy.End(component, evt, ctx); } else { navigateArrow(component, 'down', { ctx }); } } else { component.dropdown.show(); } }, ArrowUp(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to first enabled option selectKeyboardStrategy.Home(component, evt, ctx); } else { navigateArrow(component, 'up', { ctx }); } } else { component.dropdown.show(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); component.dropdown.hide(); }, End(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); // `pop()` is safe here: getEnabledOptions returns a fresh filtered array. const lastOption = getEnabledOptions(component.menu).pop(); if (lastOption) { component.menu.updateActiveOption(lastOption); } }, Enter(component, evt, ctx) { evt.preventDefault(); evt.stopPropagation(); if (!ctx.isExpanded) { component.dropdown.show(); return; } component.menu.makeSelection(); }, Home(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const [firstOption] = getEnabledOptions(component.menu); if (firstOption) { component.menu.updateActiveOption(firstOption); } }, Tab(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Tab selects the focused option and closes the popup per the // WAI-ARIA APG select-only combobox / listbox pattern. if (component.optionActive) { component.menu.makeSelection(); } component.dropdown.hide(); }, default(component, evt, ctx) { component.updateActiveOptionBasedOnKey(evt.key); if (evt.key === ' ') { evt.preventDefault(); evt.stopPropagation(); if (ctx.isExpanded) { component.dropdown.hide(); return; } component.dropdown.show(); } }, }"
20404
+ "default": "{ ArrowDown(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to last enabled option selectKeyboardStrategy.End(component, evt, ctx); } else { navigateArrow(component, 'down', { ctx }); } } else { component.dropdown.show(); } }, ArrowUp(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to first enabled option selectKeyboardStrategy.Home(component, evt, ctx); } else { navigateArrow(component, 'up', { ctx }); } } else { component.dropdown.show(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); component.dropdown.hide(); }, End(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const lastOption = [...component.menu.menuService.menuOptions].reverse().find((option) => !option.disabled); if (lastOption) { component.menu.updateActiveOption(lastOption); } }, Enter(component, evt, ctx) { evt.preventDefault(); evt.stopPropagation(); if (!ctx.isExpanded) { component.dropdown.show(); return; } component.menu.makeSelection(); }, Home(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const firstOption = component.menu.menuService.menuOptions.find((option) => !option.disabled); if (firstOption) { component.menu.updateActiveOption(firstOption); } }, Tab(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Tab selects the focused option and closes the popup per the // WAI-ARIA APG select-only combobox / listbox pattern. if (component.optionActive) { component.menu.makeSelection(); } component.dropdown.hide(); }, default(component, evt, ctx) { component.updateActiveOptionBasedOnKey(evt.key); if (evt.key === ' ') { evt.preventDefault(); evt.stopPropagation(); if (ctx.isExpanded) { component.dropdown.hide(); return; } component.dropdown.show(); } }, }"
19724
20405
  }
19725
20406
  ],
19726
20407
  "exports": [
@@ -19733,41 +20414,6 @@
19733
20414
  }
19734
20415
  }
19735
20416
  ]
19736
- },
19737
- {
19738
- "kind": "javascript-module",
19739
- "path": "components/select/src/selectUtils.js",
19740
- "declarations": [
19741
- {
19742
- "kind": "function",
19743
- "name": "getEnabledOptions",
19744
- "parameters": [
19745
- {
19746
- "name": "menu",
19747
- "description": "The auro-menu element.",
19748
- "type": {
19749
- "text": "HTMLElement | null | undefined"
19750
- }
19751
- }
19752
- ],
19753
- "description": "Returns the enabled (non-disabled) options for a menu, safely.\n\nAuro-menu's `options` getter returns `undefined` when the menu has no items\n(initItems sets `items` to undefined for empty menus). Callers that reach for\n`.find()` / `[...spread]` would otherwise crash; this helper normalizes the\nempty case to `[]` so array methods are always safe.",
19754
- "return": {
19755
- "type": {
19756
- "text": "Array<HTMLElement>"
19757
- }
19758
- }
19759
- }
19760
- ],
19761
- "exports": [
19762
- {
19763
- "kind": "js",
19764
- "name": "getEnabledOptions",
19765
- "declaration": {
19766
- "name": "getEnabledOptions",
19767
- "module": "components/select/src/selectUtils.js"
19768
- }
19769
- }
19770
- ]
19771
20417
  }
19772
20418
  ]
19773
20419
  }