@aurodesignsystem/auro-formkit 5.9.0 → 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 (136) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/README.md +4 -4
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +2 -2
  5. package/components/bibtemplate/dist/registered.js +2 -2
  6. package/components/checkbox/README.md +62 -62
  7. package/components/checkbox/demo/api.js +1 -1
  8. package/components/checkbox/demo/api.md +127 -84
  9. package/components/checkbox/demo/api.min.js +125 -42
  10. package/components/checkbox/demo/index.md +9 -281
  11. package/components/checkbox/demo/index.min.js +125 -42
  12. package/components/checkbox/demo/readme.html +3 -4
  13. package/components/checkbox/demo/readme.md +62 -62
  14. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  15. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  16. package/components/checkbox/dist/index.js +125 -42
  17. package/components/checkbox/dist/registered.js +125 -42
  18. package/components/combobox/README.md +76 -74
  19. package/components/combobox/demo/api.html +1 -0
  20. package/components/combobox/demo/api.js +11 -12
  21. package/components/combobox/demo/api.md +1302 -875
  22. package/components/combobox/demo/api.min.js +416 -492
  23. package/components/combobox/demo/index.html +1 -7
  24. package/components/combobox/demo/index.js +0 -19
  25. package/components/combobox/demo/index.md +43 -723
  26. package/components/combobox/demo/index.min.js +369 -302
  27. package/components/combobox/demo/readme.html +3 -4
  28. package/components/combobox/demo/readme.md +76 -74
  29. package/components/combobox/dist/auro-combobox.d.ts +42 -42
  30. package/components/combobox/dist/index.js +204 -210
  31. package/components/combobox/dist/registered.js +204 -210
  32. package/components/counter/README.md +81 -66
  33. package/components/counter/demo/api.html +1 -2
  34. package/components/counter/demo/api.js +2 -2
  35. package/components/counter/demo/api.md +777 -259
  36. package/components/counter/demo/api.min.js +119 -171
  37. package/components/counter/demo/index.html +0 -2
  38. package/components/counter/demo/index.md +20 -329
  39. package/components/counter/demo/index.min.js +117 -152
  40. package/components/counter/demo/readme.html +3 -4
  41. package/components/counter/demo/readme.md +81 -66
  42. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  43. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  44. package/components/counter/dist/auro-counter.d.ts +5 -8
  45. package/components/counter/dist/index.js +117 -152
  46. package/components/counter/dist/registered.js +117 -152
  47. package/components/datepicker/README.md +57 -61
  48. package/components/datepicker/demo/api.js +8 -8
  49. package/components/datepicker/demo/api.md +720 -561
  50. package/components/datepicker/demo/api.min.js +678 -2769
  51. package/components/datepicker/demo/index.md +65 -117
  52. package/components/datepicker/demo/index.min.js +678 -2769
  53. package/components/datepicker/demo/readme.html +3 -4
  54. package/components/datepicker/demo/readme.md +57 -61
  55. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  56. package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
  57. package/components/datepicker/dist/iconVersion.d.ts +1 -1
  58. package/components/datepicker/dist/index.js +505 -2596
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +505 -2596
  61. package/components/dropdown/README.md +78 -62
  62. package/components/dropdown/demo/api.js +4 -4
  63. package/components/dropdown/demo/api.md +520 -478
  64. package/components/dropdown/demo/api.min.js +80 -95
  65. package/components/dropdown/demo/index.md +65 -119
  66. package/components/dropdown/demo/index.min.js +70 -85
  67. package/components/dropdown/demo/readme.html +3 -4
  68. package/components/dropdown/demo/readme.md +78 -62
  69. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  70. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  71. package/components/dropdown/dist/index.js +70 -85
  72. package/components/dropdown/dist/registered.js +70 -85
  73. package/components/form/README.md +16 -58
  74. package/components/form/demo/api.md +16 -21
  75. package/components/form/demo/api.min.js +13 -8
  76. package/components/form/demo/index.md +38 -39
  77. package/components/form/demo/index.min.js +13 -8
  78. package/components/form/demo/readme.md +16 -58
  79. package/components/form/demo/working.html +1 -1
  80. package/components/form/dist/auro-form.d.ts +15 -3
  81. package/components/form/dist/index.js +13 -8
  82. package/components/form/dist/registered.js +13 -8
  83. package/components/input/README.md +55 -60
  84. package/components/input/demo/api.js +3 -5
  85. package/components/input/demo/api.md +558 -537
  86. package/components/input/demo/api.min.js +102 -115
  87. package/components/input/demo/index.js +0 -1
  88. package/components/input/demo/index.md +90 -203
  89. package/components/input/demo/index.min.js +87 -99
  90. package/components/input/demo/readme.html +3 -4
  91. package/components/input/demo/readme.md +55 -60
  92. package/components/input/dist/auro-input.d.ts +6 -5
  93. package/components/input/dist/base-input.d.ts +68 -69
  94. package/components/input/dist/iconVersion.d.ts +1 -1
  95. package/components/input/dist/index.js +87 -82
  96. package/components/input/dist/registered.js +87 -82
  97. package/components/menu/README.md +61 -61
  98. package/components/menu/demo/api.js +6 -8
  99. package/components/menu/demo/api.md +520 -577
  100. package/components/menu/demo/api.min.js +199 -97
  101. package/components/menu/demo/index.js +0 -5
  102. package/components/menu/demo/index.md +36 -119
  103. package/components/menu/demo/index.min.js +164 -101
  104. package/components/menu/demo/readme.html +3 -4
  105. package/components/menu/demo/readme.md +61 -61
  106. package/components/menu/dist/auro-menu.context.d.ts +5 -0
  107. package/components/menu/dist/auro-menu.d.ts +75 -37
  108. package/components/menu/dist/auro-menuoption.d.ts +38 -13
  109. package/components/menu/dist/index.js +164 -50
  110. package/components/menu/dist/registered.js +164 -50
  111. package/components/radio/README.md +61 -57
  112. package/components/radio/demo/api.js +2 -2
  113. package/components/radio/demo/api.md +241 -170
  114. package/components/radio/demo/api.min.js +154 -77
  115. package/components/radio/demo/index.md +22 -99
  116. package/components/radio/demo/index.min.js +145 -68
  117. package/components/radio/demo/readme.html +3 -4
  118. package/components/radio/demo/readme.md +61 -57
  119. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  120. package/components/radio/dist/auro-radio.d.ts +56 -33
  121. package/components/radio/dist/index.js +145 -68
  122. package/components/radio/dist/registered.js +145 -68
  123. package/components/select/README.md +68 -65
  124. package/components/select/demo/api.html +1 -0
  125. package/components/select/demo/api.js +7 -7
  126. package/components/select/demo/api.md +1305 -625
  127. package/components/select/demo/api.min.js +357 -262
  128. package/components/select/demo/index.html +0 -2
  129. package/components/select/demo/index.md +25 -833
  130. package/components/select/demo/index.min.js +356 -230
  131. package/components/select/demo/readme.html +3 -4
  132. package/components/select/demo/readme.md +68 -65
  133. package/components/select/dist/auro-select.d.ts +99 -90
  134. package/components/select/dist/index.js +192 -180
  135. package/components/select/dist/registered.js +192 -180
  136. package/package.json +9 -4
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
18
18
  -->
19
19
 
20
20
  # Menu
21
+
21
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
23
24
  The `<auro-menu>` element provides a list of options for a user to select from.
@@ -31,7 +32,17 @@ The `<auro-menu>` element is designed for contextual menus, e.g. a dropdown menu
31
32
  <!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
32
33
  <!-- AURO-GENERATED-CONTENT:END -->
33
34
 
35
+ ## Menu Use Cases
36
+
37
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
38
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
39
+ The `<auro-menu>` element should be used in situations where users may:
40
+
41
+ * A user needs to select one option from a list of options.
42
+ <!-- AURO-GENERATED-CONTENT:END -->
43
+
34
44
  ## Getting Started
45
+
35
46
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
36
47
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
37
48
 
@@ -44,30 +55,7 @@ $ npm i @aurodesignsystem/auro-formkit
44
55
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
45
56
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
46
57
 
47
- ### Import Options
48
-
49
- #### Automatic Registration
50
-
51
- For automatic registration, simply import the component:
52
-
53
- ```javascript
54
- // Registers <auro-menu> automatically
55
- import '@aurodesignsystem/auro-formkit/auro-menu';
56
- ```
57
-
58
- #### Custom Registration
59
-
60
- To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroMenu.register('custom-menu')` method on the component class and pass in a unique name.
61
-
62
- ```javascript
63
- // Import the class only
64
- import { AuroMenu } from '@aurodesignsystem/auro-formkit/auro-menu/class';
65
-
66
- // Register with a custom name if desired
67
- AuroMenu.register('custom-menu');
68
- ```
69
-
70
- #### TypeScript Module Resolution
58
+ ### TypeScript Module Resolution
71
59
 
72
60
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
73
61
 
@@ -80,31 +68,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
80
68
  ```
81
69
 
82
70
  This configuration enables proper module resolution for the component's TypeScript files.
83
- <!-- AURO-GENERATED-CONTENT:END -->
84
- **Reference component in HTML**
85
-
86
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
87
- <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
88
-
89
- ```html
90
- <auro-menu>
91
- <auro-menuoption value="stops">Stops</auro-menuoption>
92
- <auro-menuoption value="price">Price</auro-menuoption>
93
- <auro-menuoption value="duration">Duration</auro-menuoption>
94
- <auro-menuoption value="departure">Departure</auro-menuoption>
95
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
96
- </auro-menu>
97
- ```
98
- <!-- AURO-GENERATED-CONTENT:END -->
99
-
100
- ### Design Token CSS Custom Property dependency
101
-
102
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
103
- The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
104
-
105
71
  <!-- AURO-GENERATED-CONTENT:END -->
106
72
 
107
73
  ## Install from CDN
74
+
108
75
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
109
76
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
110
77
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
@@ -114,21 +81,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
114
81
  ```
115
82
  <!-- AURO-GENERATED-CONTENT:END -->
116
83
 
117
- ## UI development browser support
118
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
119
- For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
120
-
121
- <!-- AURO-GENERATED-CONTENT:END -->
122
-
123
- ## auro-menu use cases
124
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
125
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
126
- The `<auro-menu>` element should be used in situations where users may:
127
-
128
- * A user needs to select one option from a list of options.
129
- <!-- AURO-GENERATED-CONTENT:END -->
130
-
131
- ## Formkit development
84
+ ## Formkit Development
132
85
 
133
86
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
134
87
  <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
@@ -142,4 +95,51 @@ To only develop a single component, use the `--filter` flag:
142
95
  ```shell
143
96
  npx turbo dev --filter=@aurodesignsystem/auro-input
144
97
  ```
98
+ <!-- AURO-GENERATED-CONTENT:END -->
99
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
100
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
101
+
102
+ ## Custom Component Registration for Version Management
103
+
104
+ There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
105
+
106
+ When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
107
+
108
+ However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
109
+
110
+ You can do this by importing only the component class and using the `register(name)` method with a unique name:
111
+
112
+ ```js
113
+ // Import the class only
114
+ import { AuroMenu, AuroMenuOption } from '@aurodesignsystem/auro-formkit/auro-menu/class';
115
+
116
+ // Register with a custom name if desired
117
+ AuroMenu.register('custom-menu');
118
+ AuroMenuOption.register('custom-menu-option');
119
+ ```
120
+
121
+ This will create a new custom element `<custom-menu>` and `<custom-menu-option>` that behaves exactly like `<auro-menu>` and `<auro-menu-option>`, allowing both to coexist on the same page without interfering with each other.
122
+
123
+ <div class="exampleWrapper exampleWrapper--flex">
124
+ <custom-menu>
125
+ <custom-menuoption value="stops">Stops</custom-menuoption>
126
+ <custom-menuoption value="price">Price</custom-menuoption>
127
+ <custom-menuoption value="duration">Duration</custom-menuoption>
128
+ <custom-menuoption value="departure">Departure</custom-menuoption>
129
+ <custom-menuoption value="arrival">Arrival</custom-menuoption>
130
+ </custom-menu>
131
+ </div>
132
+ <auro-accordion alignRight>
133
+ <span slot="trigger">See code</span>
134
+
135
+ ```html
136
+ <custom-menu>
137
+ <custom-menuoption value="stops">Stops</custom-menuoption>
138
+ <custom-menuoption value="price">Price</custom-menuoption>
139
+ <custom-menuoption value="duration">Duration</custom-menuoption>
140
+ <custom-menuoption value="departure">Departure</custom-menuoption>
141
+ <custom-menuoption value="arrival">Arrival</custom-menuoption>
142
+ </custom-menu>
143
+ ```
144
+ </auro-accordion>
145
145
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -29,6 +29,11 @@ export class MenuService {
29
29
  * @returns {string|string[]|undefined}
30
30
  */
31
31
  get currentValue(): string | string[] | undefined;
32
+ /**
33
+ * Gets the label(s) of the currently selected option(s).
34
+ * @returns {string}
35
+ */
36
+ get currentLabel(): string;
32
37
  /**
33
38
  * Gets the string representation of the current value(s).
34
39
  * For multi-select, this is a JSON stringified array.
@@ -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/>
@@ -130,6 +163,11 @@ export class AuroMenu extends AuroElement {
130
163
  * @private
131
164
  */
132
165
  private handleSlotChange;
166
+ /**
167
+ * @readonly
168
+ * @returns {string} - Returns the label of the currently selected option(s).
169
+ */
170
+ readonly get currentLabel(): string;
133
171
  /**
134
172
  * @readonly
135
173
  * @returns {Array<HTMLElement>} - Returns the array of available menu options.
@@ -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
  };
42
- nocheckmark: {
60
+ /**
61
+ * @private
62
+ */
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
  /**
@@ -78,7 +103,7 @@ export class AuroMenuOption extends AuroElement {
78
103
  private size;
79
104
  iconTag: any;
80
105
  selected: boolean;
81
- nocheckmark: boolean;
106
+ noCheckmark: boolean;
82
107
  disabled: boolean;
83
108
  /**
84
109
  * @private