@aurodesignsystem/auro-formkit 5.9.1 → 5.9.2

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 (127) hide show
  1. package/CHANGELOG.md +16 -4
  2. package/components/checkbox/README.md +62 -62
  3. package/components/checkbox/demo/api.js +1 -1
  4. package/components/checkbox/demo/api.md +127 -84
  5. package/components/checkbox/demo/api.min.js +125 -42
  6. package/components/checkbox/demo/index.md +9 -281
  7. package/components/checkbox/demo/index.min.js +125 -42
  8. package/components/checkbox/demo/readme.html +3 -4
  9. package/components/checkbox/demo/readme.md +62 -62
  10. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  11. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  12. package/components/checkbox/dist/index.js +125 -42
  13. package/components/checkbox/dist/registered.js +125 -42
  14. package/components/combobox/README.md +76 -74
  15. package/components/combobox/demo/api.html +1 -0
  16. package/components/combobox/demo/api.js +11 -12
  17. package/components/combobox/demo/api.md +1302 -875
  18. package/components/combobox/demo/api.min.js +348 -420
  19. package/components/combobox/demo/index.html +1 -7
  20. package/components/combobox/demo/index.js +0 -19
  21. package/components/combobox/demo/index.md +43 -723
  22. package/components/combobox/demo/index.min.js +301 -230
  23. package/components/combobox/demo/readme.html +3 -4
  24. package/components/combobox/demo/readme.md +76 -74
  25. package/components/combobox/dist/auro-combobox.d.ts +39 -40
  26. package/components/combobox/dist/index.js +159 -143
  27. package/components/combobox/dist/registered.js +159 -143
  28. package/components/counter/README.md +81 -66
  29. package/components/counter/demo/api.html +1 -2
  30. package/components/counter/demo/api.js +2 -2
  31. package/components/counter/demo/api.md +777 -259
  32. package/components/counter/demo/api.min.js +84 -112
  33. package/components/counter/demo/index.html +0 -2
  34. package/components/counter/demo/index.md +20 -329
  35. package/components/counter/demo/index.min.js +82 -93
  36. package/components/counter/demo/readme.html +3 -4
  37. package/components/counter/demo/readme.md +81 -66
  38. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  39. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  40. package/components/counter/dist/auro-counter.d.ts +5 -8
  41. package/components/counter/dist/index.js +82 -93
  42. package/components/counter/dist/registered.js +82 -93
  43. package/components/datepicker/README.md +57 -61
  44. package/components/datepicker/demo/api.js +8 -8
  45. package/components/datepicker/demo/api.md +720 -561
  46. package/components/datepicker/demo/api.min.js +427 -2424
  47. package/components/datepicker/demo/index.md +65 -117
  48. package/components/datepicker/demo/index.min.js +427 -2424
  49. package/components/datepicker/demo/readme.html +3 -4
  50. package/components/datepicker/demo/readme.md +57 -61
  51. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  52. package/components/datepicker/dist/auro-datepicker.d.ts +31 -31
  53. package/components/datepicker/dist/index.js +256 -2253
  54. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  55. package/components/datepicker/dist/registered.js +256 -2253
  56. package/components/dropdown/README.md +78 -62
  57. package/components/dropdown/demo/api.js +4 -4
  58. package/components/dropdown/demo/api.md +520 -478
  59. package/components/dropdown/demo/api.min.js +48 -39
  60. package/components/dropdown/demo/index.md +65 -119
  61. package/components/dropdown/demo/index.min.js +38 -29
  62. package/components/dropdown/demo/readme.html +3 -4
  63. package/components/dropdown/demo/readme.md +78 -62
  64. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  65. package/components/dropdown/dist/index.js +38 -29
  66. package/components/dropdown/dist/registered.js +38 -29
  67. package/components/form/README.md +16 -58
  68. package/components/form/demo/api.md +16 -21
  69. package/components/form/demo/api.min.js +13 -8
  70. package/components/form/demo/index.md +38 -39
  71. package/components/form/demo/index.min.js +13 -8
  72. package/components/form/demo/readme.md +16 -58
  73. package/components/form/dist/auro-form.d.ts +15 -3
  74. package/components/form/dist/index.js +13 -8
  75. package/components/form/dist/registered.js +13 -8
  76. package/components/input/README.md +55 -60
  77. package/components/input/demo/api.js +3 -5
  78. package/components/input/demo/api.md +558 -537
  79. package/components/input/demo/api.min.js +100 -113
  80. package/components/input/demo/index.js +0 -1
  81. package/components/input/demo/index.md +90 -203
  82. package/components/input/demo/index.min.js +85 -97
  83. package/components/input/demo/readme.html +3 -4
  84. package/components/input/demo/readme.md +55 -60
  85. package/components/input/dist/auro-input.d.ts +6 -5
  86. package/components/input/dist/base-input.d.ts +67 -68
  87. package/components/input/dist/index.js +85 -80
  88. package/components/input/dist/registered.js +85 -80
  89. package/components/menu/README.md +61 -61
  90. package/components/menu/demo/api.js +6 -8
  91. package/components/menu/demo/api.md +520 -572
  92. package/components/menu/demo/api.min.js +176 -92
  93. package/components/menu/demo/index.js +0 -5
  94. package/components/menu/demo/index.md +36 -119
  95. package/components/menu/demo/index.min.js +141 -96
  96. package/components/menu/demo/readme.html +3 -4
  97. package/components/menu/demo/readme.md +61 -61
  98. package/components/menu/dist/auro-menu.d.ts +70 -37
  99. package/components/menu/dist/auro-menuoption.d.ts +36 -11
  100. package/components/menu/dist/index.js +141 -45
  101. package/components/menu/dist/registered.js +141 -45
  102. package/components/radio/README.md +61 -57
  103. package/components/radio/demo/api.js +2 -2
  104. package/components/radio/demo/api.md +241 -170
  105. package/components/radio/demo/api.min.js +154 -77
  106. package/components/radio/demo/index.md +22 -99
  107. package/components/radio/demo/index.min.js +145 -68
  108. package/components/radio/demo/readme.html +3 -4
  109. package/components/radio/demo/readme.md +61 -57
  110. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  111. package/components/radio/dist/auro-radio.d.ts +56 -33
  112. package/components/radio/dist/index.js +145 -68
  113. package/components/radio/dist/registered.js +145 -68
  114. package/components/select/README.md +68 -65
  115. package/components/select/demo/api.html +1 -0
  116. package/components/select/demo/api.js +7 -7
  117. package/components/select/demo/api.md +1305 -625
  118. package/components/select/demo/api.min.js +300 -199
  119. package/components/select/demo/index.html +0 -2
  120. package/components/select/demo/index.md +25 -833
  121. package/components/select/demo/index.min.js +299 -167
  122. package/components/select/demo/readme.html +3 -4
  123. package/components/select/demo/readme.md +68 -65
  124. package/components/select/dist/auro-select.d.ts +99 -90
  125. package/components/select/dist/index.js +158 -122
  126. package/components/select/dist/registered.js +158 -122
  127. package/package.json +3 -3
@@ -1,17 +1,7 @@
1
1
  /**
2
- * The auro-menu element provides users a way to select from a list of options.
3
- * @attr {HTMLElement|Array<HTMLElement>} optionSelected - An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
4
- * @attr {object} optionactive - Specifies the current active menuOption.
5
- * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
6
- * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
7
- * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
8
- * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
9
- * @attr {boolean} multiselect - When true, the selected option can be multiple options.
10
- * @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
11
- * @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
12
- * @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
13
- * @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
14
- * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
2
+ * The `auro-menu` element provides users a way to select from a list of options.
3
+ * @customElement auro-menu
4
+ *
15
5
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
16
6
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
17
7
  * @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
@@ -31,71 +21,114 @@ export class AuroMenu extends AuroElement {
31
21
  type: BooleanConstructor;
32
22
  reflect: boolean;
33
23
  };
34
- noCheckmark: {
24
+ /**
25
+ * When true, the entire menu and all options are disabled.
26
+ */
27
+ disabled: {
35
28
  type: BooleanConstructor;
36
29
  reflect: boolean;
37
- attribute: string;
38
30
  };
39
- disabled: {
31
+ /**
32
+ * Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
33
+ */
34
+ hasLoadingPlaceholder: {
40
35
  type: BooleanConstructor;
36
+ };
37
+ /**
38
+ * @private
39
+ */
40
+ layout: {
41
+ type: StringConstructor;
42
+ };
43
+ /**
44
+ * Indent level for submenus.
45
+ * @private
46
+ */
47
+ level: {
48
+ type: NumberConstructor;
41
49
  reflect: boolean;
50
+ attribute: boolean;
42
51
  };
52
+ /**
53
+ * When true, displays a loading state using the loadingIcon and loadingText slots if provided.
54
+ */
43
55
  loading: {
44
56
  type: BooleanConstructor;
45
57
  reflect: boolean;
46
58
  };
47
- optionSelected: {
48
- type: ObjectConstructor;
49
- };
50
- optionActive: {
51
- type: ObjectConstructor;
52
- attribute: string;
53
- };
59
+ /**
60
+ * Specifies a string used to highlight matched string parts in options.
61
+ */
54
62
  matchWord: {
55
63
  type: StringConstructor;
56
64
  attribute: string;
57
65
  };
66
+ /**
67
+ * When true, the selected option can be multiple options.
68
+ */
58
69
  multiSelect: {
59
70
  type: BooleanConstructor;
60
71
  reflect: boolean;
61
72
  attribute: string;
62
73
  };
63
- selectAllMatchingOptions: {
74
+ /**
75
+ * When true, selected option will not show the checkmark.
76
+ */
77
+ noCheckmark: {
64
78
  type: BooleanConstructor;
65
79
  reflect: boolean;
80
+ attribute: string;
66
81
  };
67
82
  /**
68
- * Value selected for the component.
83
+ * Specifies the current active menuOption.
69
84
  */
70
- value: {
71
- type: StringConstructor;
72
- reflect: boolean;
85
+ optionActive: {
86
+ type: ObjectConstructor;
73
87
  attribute: string;
74
88
  };
75
89
  /**
76
- * Indent level for submenus.
77
- * @private
90
+ * An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
78
91
  */
79
- level: {
80
- type: NumberConstructor;
81
- reflect: boolean;
82
- attribute: boolean;
92
+ optionSelected: {
93
+ type: ObjectConstructor;
83
94
  };
84
95
  options: {
85
96
  type: ArrayConstructor;
86
97
  reflect: boolean;
87
98
  attribute: boolean;
88
99
  };
89
- layout: {
100
+ /**
101
+ * Sets the size of the menu.
102
+ * @type {'sm' | 'md'}
103
+ * @default 'sm'
104
+ */
105
+ size: "sm" | "md";
106
+ /**
107
+ * When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
108
+ */
109
+ selectAllMatchingOptions: {
110
+ type: BooleanConstructor;
111
+ reflect: boolean;
112
+ };
113
+ /**
114
+ * Sets the shape of the menu.
115
+ * @type {'box' | 'round'}
116
+ * @default 'box'
117
+ */
118
+ shape: "box" | "round";
119
+ /**
120
+ * The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
121
+ */
122
+ value: {
90
123
  type: StringConstructor;
91
- attribute: string;
92
124
  reflect: boolean;
125
+ attribute: string;
93
126
  };
94
127
  };
95
128
  static get styles(): import("lit").CSSResult[];
96
129
  /**
97
130
  * This will register this element with the browser.
98
- * @param {string} [name="auro-menu"] - The name of element that you want to register to.
131
+ * @param {string} [name="auro-menu"] - The name of the element that you want to register.
99
132
  *
100
133
  * @example
101
134
  * AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
@@ -1,17 +1,14 @@
1
1
  /**
2
- * The auro-menu element provides users a way to define a menu option.
2
+ * The `auro-menuoption` element provides users a way to define a menu option.
3
+ * @customElement auro-menuoption
3
4
  *
4
- * @attr {String} value - Specifies the value to be sent to a server.
5
- * @attr {String} noCheckmark - When true, selected option will not show the checkmark.
6
- * @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
7
- * @attr {Boolean} selected - Specifies that an option is selected.
8
5
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
9
6
  * @slot - Specifies text for an option, but is not the value.
10
7
  */
11
8
  export class AuroMenuOption extends AuroElement {
12
9
  /**
13
10
  * This will register this element with the browser.
14
- * @param {string} [name="auro-menuoption"] - The name of element that you want to register to.
11
+ * @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
15
12
  *
16
13
  * @example
17
14
  * AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
@@ -19,47 +16,75 @@ export class AuroMenuOption extends AuroElement {
19
16
  */
20
17
  static register(name?: string): void;
21
18
  static get properties(): {
19
+ /**
20
+ * When true, disables the menu option.
21
+ */
22
22
  disabled: {
23
23
  type: BooleanConstructor;
24
24
  reflect: boolean;
25
25
  };
26
+ /**
27
+ * @private
28
+ */
26
29
  event: {
27
30
  type: StringConstructor;
28
31
  reflect: boolean;
29
32
  };
33
+ /**
34
+ * @private
35
+ */
36
+ layout: {
37
+ type: StringConstructor;
38
+ };
39
+ /**
40
+ * 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.
41
+ */
30
42
  key: {
31
43
  type: StringConstructor;
32
44
  reflect: boolean;
33
45
  };
46
+ /**
47
+ * @private
48
+ */
34
49
  menuService: {
35
50
  type: ObjectConstructor;
36
51
  state: boolean;
37
52
  };
53
+ /**
54
+ * @private
55
+ */
38
56
  matchWord: {
39
57
  type: StringConstructor;
40
58
  state: boolean;
41
59
  };
60
+ /**
61
+ * @private
62
+ */
42
63
  noCheckmark: {
43
64
  type: BooleanConstructor;
44
65
  reflect: boolean;
45
66
  };
67
+ /**
68
+ * Specifies that an option is selected.
69
+ */
46
70
  selected: {
47
71
  type: BooleanConstructor;
48
72
  reflect: boolean;
49
73
  };
74
+ /**
75
+ * Specifies the tab index of the menu option.
76
+ */
50
77
  tabIndex: {
51
78
  type: NumberConstructor;
52
79
  reflect: boolean;
53
80
  };
81
+ /**
82
+ * Specifies the value to be sent to a server.
83
+ */
54
84
  value: {
55
85
  type: StringConstructor;
56
86
  reflect: boolean;
57
87
  };
58
- layout: {
59
- type: StringConstructor;
60
- attribute: string;
61
- reflect: boolean;
62
- };
63
88
  };
64
89
  static get styles(): import("lit").CSSResult[];
65
90
  /**
@@ -351,12 +351,9 @@ function dispatchMenuEvent(element, eventName, detail = null) {
351
351
 
352
352
 
353
353
  /**
354
- * The auro-menu element provides users a way to define a menu option.
354
+ * The `auro-menuoption` element provides users a way to define a menu option.
355
+ * @customElement auro-menuoption
355
356
  *
356
- * @attr {String} value - Specifies the value to be sent to a server.
357
- * @attr {String} noCheckmark - When true, selected option will not show the checkmark.
358
- * @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
359
- * @attr {Boolean} selected - Specifies that an option is selected.
360
357
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
361
358
  * @slot - Specifies text for an option, but is not the value.
362
359
  */
@@ -364,7 +361,7 @@ class AuroMenuOption extends AuroElement {
364
361
 
365
362
  /**
366
363
  * This will register this element with the browser.
367
- * @param {string} [name="auro-menuoption"] - The name of element that you want to register to.
364
+ * @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
368
365
  *
369
366
  * @example
370
367
  * AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
@@ -428,38 +425,81 @@ class AuroMenuOption extends AuroElement {
428
425
  static get properties() {
429
426
  return {
430
427
  ...super.properties,
428
+
429
+ /**
430
+ * When true, disables the menu option.
431
+ */
431
432
  disabled: {
432
433
  type: Boolean,
433
434
  reflect: true
434
435
  },
436
+
437
+ /**
438
+ * @private
439
+ */
435
440
  event: {
436
441
  type: String,
437
442
  reflect: true
438
443
  },
444
+
445
+ /**
446
+ * @private
447
+ */
448
+ layout: {
449
+ type: String
450
+ },
451
+
452
+ /**
453
+ * 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.
454
+ */
439
455
  key: {
440
456
  type: String,
441
457
  reflect: true
442
458
  },
459
+
460
+ /**
461
+ * @private
462
+ */
443
463
  menuService: {
444
464
  type: Object,
445
465
  state: true
446
466
  },
467
+
468
+ /**
469
+ * @private
470
+ */
447
471
  matchWord: {
448
472
  type: String,
449
473
  state: true
450
474
  },
475
+
476
+ /**
477
+ * @private
478
+ */
451
479
  noCheckmark: {
452
480
  type: Boolean,
453
481
  reflect: true
454
482
  },
483
+
484
+ /**
485
+ * Specifies that an option is selected.
486
+ */
455
487
  selected: {
456
488
  type: Boolean,
457
489
  reflect: true
458
490
  },
491
+
492
+ /**
493
+ * Specifies the tab index of the menu option.
494
+ */
459
495
  tabIndex: {
460
496
  type: Number,
461
497
  reflect: true
462
498
  },
499
+
500
+ /**
501
+ * Specifies the value to be sent to a server.
502
+ */
463
503
  value: {
464
504
  type: String,
465
505
  reflect: true
@@ -1410,19 +1450,9 @@ const MenuContext = createContext('menu-context');
1410
1450
 
1411
1451
 
1412
1452
  /**
1413
- * The auro-menu element provides users a way to select from a list of options.
1414
- * @attr {HTMLElement|Array<HTMLElement>} optionSelected - An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
1415
- * @attr {object} optionactive - Specifies the current active menuOption.
1416
- * @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
1417
- * @attr {boolean} disabled - When true, the entire menu and all options are disabled;
1418
- * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
1419
- * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
1420
- * @attr {boolean} multiselect - When true, the selected option can be multiple options.
1421
- * @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
1422
- * @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
1423
- * @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
1424
- * @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
1425
- * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
1453
+ * The `auro-menu` element provides users a way to select from a list of options.
1454
+ * @customElement auro-menu
1455
+ *
1426
1456
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
1427
1457
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
1428
1458
  * @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
@@ -1513,58 +1543,87 @@ class AuroMenu extends AuroElement {
1513
1543
  type: Boolean,
1514
1544
  reflect: true,
1515
1545
  },
1516
- noCheckmark: {
1517
- type: Boolean,
1518
- reflect: true,
1519
- attribute: 'nocheckmark'
1520
- },
1546
+
1547
+ /**
1548
+ * When true, the entire menu and all options are disabled.
1549
+ */
1521
1550
  disabled: {
1522
1551
  type: Boolean,
1523
1552
  reflect: true
1524
1553
  },
1554
+
1555
+ /**
1556
+ * Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
1557
+ */
1558
+ hasLoadingPlaceholder: {
1559
+ type: Boolean
1560
+ },
1561
+
1562
+ /**
1563
+ * @private
1564
+ */
1565
+ layout: {
1566
+ type: String
1567
+ },
1568
+
1569
+ /**
1570
+ * Indent level for submenus.
1571
+ * @private
1572
+ */
1573
+ level: {
1574
+ type: Number,
1575
+ reflect: false,
1576
+ attribute: false
1577
+ },
1578
+
1579
+ /**
1580
+ * When true, displays a loading state using the loadingIcon and loadingText slots if provided.
1581
+ */
1525
1582
  loading: {
1526
1583
  type: Boolean,
1527
1584
  reflect: true
1528
1585
  },
1529
- optionSelected: {
1530
- // Allow HTMLElement, HTMLElement[] arrays and undefined
1531
- type: Object
1532
- },
1533
- optionActive: {
1534
- type: Object,
1535
- attribute: 'optionactive'
1536
- },
1586
+
1587
+ /**
1588
+ * Specifies a string used to highlight matched string parts in options.
1589
+ */
1537
1590
  matchWord: {
1538
1591
  type: String,
1539
1592
  attribute: 'matchword'
1540
1593
  },
1594
+
1595
+ /**
1596
+ * When true, the selected option can be multiple options.
1597
+ */
1541
1598
  multiSelect: {
1542
1599
  type: Boolean,
1543
1600
  reflect: true,
1544
1601
  attribute: 'multiselect'
1545
1602
  },
1546
- selectAllMatchingOptions: {
1603
+
1604
+ /**
1605
+ * When true, selected option will not show the checkmark.
1606
+ */
1607
+ noCheckmark: {
1547
1608
  type: Boolean,
1548
1609
  reflect: true,
1610
+ attribute: 'nocheckmark'
1549
1611
  },
1550
1612
 
1551
1613
  /**
1552
- * Value selected for the component.
1614
+ * Specifies the current active menuOption.
1553
1615
  */
1554
- value: {
1555
- type: String,
1556
- reflect: true,
1557
- attribute: 'value'
1616
+ optionActive: {
1617
+ type: Object,
1618
+ attribute: 'optionactive'
1558
1619
  },
1559
1620
 
1560
1621
  /**
1561
- * Indent level for submenus.
1562
- * @private
1622
+ * An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
1563
1623
  */
1564
- level: {
1565
- type: Number,
1566
- reflect: false,
1567
- attribute: false
1624
+ optionSelected: {
1625
+ // Allow HTMLElement, HTMLElement[] arrays and undefined
1626
+ type: Object
1568
1627
  },
1569
1628
 
1570
1629
  /**
@@ -1575,6 +1634,43 @@ class AuroMenu extends AuroElement {
1575
1634
  type: Array,
1576
1635
  reflect: false,
1577
1636
  attribute: false
1637
+ },
1638
+
1639
+ /**
1640
+ * Sets the size of the menu.
1641
+ * @type {'sm' | 'md'}
1642
+ * @default 'sm'
1643
+ */
1644
+ size: {
1645
+ type: String,
1646
+ reflect: true
1647
+ },
1648
+
1649
+ /**
1650
+ * When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
1651
+ */
1652
+ selectAllMatchingOptions: {
1653
+ type: Boolean,
1654
+ reflect: true,
1655
+ },
1656
+
1657
+ /**
1658
+ * Sets the shape of the menu.
1659
+ * @type {'box' | 'round'}
1660
+ * @default 'box'
1661
+ */
1662
+ shape: {
1663
+ type: String,
1664
+ reflect: true
1665
+ },
1666
+
1667
+ /**
1668
+ * The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
1669
+ */
1670
+ value: {
1671
+ type: String,
1672
+ reflect: true,
1673
+ attribute: 'value'
1578
1674
  }
1579
1675
  };
1580
1676
  }
@@ -1620,7 +1716,7 @@ class AuroMenu extends AuroElement {
1620
1716
 
1621
1717
  /**
1622
1718
  * This will register this element with the browser.
1623
- * @param {string} [name="auro-menu"] - The name of element that you want to register to.
1719
+ * @param {string} [name="auro-menu"] - The name of the element that you want to register.
1624
1720
  *
1625
1721
  * @example
1626
1722
  * AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>