@aurodesignsystem-dev/auro-formkit 0.0.0-pr1462.0 → 0.0.0-pr1471.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.
- package/README.md +1 -1
- package/components/checkbox/demo/api.html +0 -1
- package/components/checkbox/demo/customize.html +2 -2
- package/components/checkbox/demo/customize.js +22 -0
- package/components/checkbox/demo/customize.min.js +2110 -0
- package/components/checkbox/demo/demo-support.min.js +2 -0
- package/components/checkbox/demo/getting-started.html +2 -2
- package/components/checkbox/demo/getting-started.js +22 -0
- package/components/checkbox/demo/getting-started.min.js +2110 -0
- package/components/checkbox/demo/index.md +0 -7
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.html +0 -1
- package/components/combobox/demo/customize.min.js +18107 -1
- package/components/combobox/demo/demo-support.min.js +2 -0
- package/components/combobox/demo/getting-started.md +7 -7
- package/components/combobox/demo/getting-started.min.js +18107 -1
- package/components/combobox/demo/index.min.js +18108 -2
- package/components/combobox/dist/auro-combobox.d.ts +1 -1
- package/components/combobox/dist/index.js +18 -11
- package/components/combobox/dist/registered.js +18 -11
- package/components/counter/demo/api.html +0 -1
- package/components/counter/demo/customize.html +1 -1
- package/components/counter/demo/customize.js +21 -0
- package/components/{select/demo/registered.min.js → counter/demo/customize.min.js} +6086 -8307
- package/components/counter/demo/demo-support.min.js +2 -0
- package/components/counter/demo/design.md +10 -10
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/api.html +0 -1
- package/components/datepicker/demo/demo-support.min.js +2 -0
- package/components/datepicker/demo/getting-started.md +10 -11
- package/components/datepicker/demo/index.md +0 -7
- package/components/datepicker/demo/index.min.js +10 -10
- package/components/datepicker/dist/index.js +10 -10
- package/components/datepicker/dist/registered.js +10 -10
- package/components/dropdown/README.md +3 -3
- package/components/dropdown/demo/api.html +0 -1
- package/components/dropdown/demo/demo-support.min.js +2 -0
- package/components/dropdown/demo/index.md +2 -10
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/demo/readme.md +3 -3
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/README.md +4 -5
- package/components/form/demo/api.html +0 -1
- package/components/form/demo/customize.html +1 -1
- package/components/form/demo/customize.js +9 -0
- package/components/form/demo/customize.min.js +71946 -0
- package/components/form/demo/demo-support.min.js +2 -0
- package/components/form/demo/getting-started.html +1 -1
- package/components/form/demo/getting-started.js +9 -0
- package/components/form/demo/getting-started.min.js +71946 -0
- package/components/form/demo/index.md +4 -5
- package/components/form/demo/index.min.js +71233 -11
- package/components/form/demo/readme.md +4 -5
- package/components/form/demo/registerDemoDeps.min.js +60989 -11916
- package/components/input/demo/api.html +0 -1
- package/components/input/demo/customize.min.js +7361 -1
- package/components/input/demo/demo-support.min.js +2 -0
- package/components/input/demo/getting-started.min.js +7361 -1
- package/components/input/demo/index.min.js +7361 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/README.md +3 -5
- package/components/menu/demo/api.html +0 -1
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/demo-support.min.js +2 -0
- package/components/menu/demo/index.md +3 -5
- package/components/menu/demo/index.min.js +5 -4
- package/components/menu/demo/readme.md +3 -5
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +5 -4
- package/components/menu/dist/registered.js +5 -4
- package/components/radio/README.md +0 -2
- package/components/radio/demo/api.html +0 -1
- package/components/radio/demo/customize.html +1 -1
- package/components/radio/demo/customize.js +8 -0
- package/components/radio/demo/customize.min.js +2181 -0
- package/components/radio/demo/demo-support.min.js +24 -22
- package/components/radio/demo/getting-started.html +1 -1
- package/components/radio/demo/getting-started.js +22 -0
- package/components/radio/demo/getting-started.min.js +2186 -0
- package/components/radio/demo/index.md +1 -3
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/readme.md +0 -2
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.html +0 -1
- package/components/select/demo/customize.min.js +10624 -1
- package/components/select/demo/demo-support.min.js +2 -0
- package/components/select/demo/getting-started.md +7 -7
- package/components/select/demo/getting-started.min.js +10625 -2
- package/components/select/demo/index.min.js +10624 -1
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +1443 -1445
- package/package.json +26 -27
- package/components/combobox/demo/registered.min.js +0 -18101
- package/components/input/demo/auro-input.min.js +0 -7363
|
@@ -6614,7 +6614,7 @@ class AuroHelpText extends LitElement {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
var formkitVersion = '
|
|
6617
|
+
var formkitVersion = '202605111744';
|
|
6618
6618
|
|
|
6619
6619
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6620
6620
|
// See LICENSE in the project root for license information.
|
|
@@ -6614,7 +6614,7 @@ class AuroHelpText extends LitElement {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
var formkitVersion = '
|
|
6617
|
+
var formkitVersion = '202605111744';
|
|
6618
6618
|
|
|
6619
6619
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6620
6620
|
// See LICENSE in the project root for license information.
|
|
@@ -20,11 +20,9 @@ The following sections are editable by making changes to the following files:
|
|
|
20
20
|
|
|
21
21
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
22
22
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
23
|
-
The <code><auro-menu></code> element provides a list of options for a user to select from
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
The <code><auro-menu></code> element is designed for contextual menus, e.g. a dropdown menus. They are not intended to be used for navigation menus which have a different semantic meaning. The <code><auro-menu></code> element does not support hide/show functionality within its scope. This functionality will be managed by a wrapping element such as a drop-down menu composite element.
|
|
23
|
+
<p>The <code><auro-menu></code> element provides a list of options for a user to select from.</p>
|
|
24
|
+
<p>A list of options is created within the <code><slot></code> of the <code><auro-menu></code> element by using the <code><auro-menuoption></code> element to define options. Use a standard <code><hr></code> element to create dividers within the list of options.</p>
|
|
25
|
+
<p>The <code><auro-menu></code> element is designed for contextual menus, e.g. a dropdown menus. They are not intended to be used for navigation menus which have a different semantic meaning. The <code><auro-menu></code> element does not support hide/show functionality within its scope. This functionality will be managed by a wrapping element such as a drop-down menu composite element.</p>
|
|
28
26
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
29
27
|
|
|
30
28
|
## Menu Use Cases
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
20
20
|
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
21
21
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
22
|
-
<script src="./api.min.js" data-demo-script="true" type="module"></script>
|
|
23
22
|
<script type="module">
|
|
24
23
|
import { renderPage } from './demo-support.min.js';
|
|
25
24
|
await renderPage('./api.md');
|
|
@@ -25,7 +25,7 @@ The `auro-menu` element provides users a way to select from a list of options.
|
|
|
25
25
|
| `selectAllMatchingOptions` | `selectAllMatchingOptions` | | `boolean` | false | When true, selects all options that match the provided value/key when setting value and multiselect is enabled. |
|
|
26
26
|
| `selectedOption` | | readonly | `HTMLElement \| null` | | Gets the first selected option, or null if none. |
|
|
27
27
|
| `selectedOptions` | | readonly | `HTMLElement[]` | | Gets the currently selected options. |
|
|
28
|
-
| `value` | `value` | | `string` |
|
|
28
|
+
| `value` | `value` | | `string` | | The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values. |
|
|
29
29
|
|
|
30
30
|
## Methods
|
|
31
31
|
|
|
@@ -53145,6 +53145,8 @@ function requireCore () {
|
|
|
53145
53145
|
var coreExports = /*@__PURE__*/ requireCore();
|
|
53146
53146
|
var HighlightJS = /*@__PURE__*/getDefaultExportFromCjs(coreExports);
|
|
53147
53147
|
|
|
53148
|
+
// https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards
|
|
53149
|
+
|
|
53148
53150
|
/**
|
|
53149
53151
|
* @import {ElementContent, Element, RootData, Root} from 'hast'
|
|
53150
53152
|
* @import {Emitter, HLJSOptions as HljsOptions, HighlightResult, LanguageFn} from 'highlight.js'
|
|
@@ -14,11 +14,9 @@
|
|
|
14
14
|
<auro-header level="2" id="description">Description</auro-header>
|
|
15
15
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
|
|
16
16
|
<!-- The below content is automatically added from ./../docs/partials/description.md -->
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
The <code><auro-menu></code> element is designed for contextual menus, e.g. a dropdown menus. They are not intended to be used for navigation menus which have a different semantic meaning. The <code><auro-menu></code> element does not support hide/show functionality within its scope. This functionality will be managed by a wrapping element such as a drop-down menu composite element.
|
|
17
|
+
<p>The <code><auro-menu></code> element provides a list of options for a user to select from.</p>
|
|
18
|
+
<p>A list of options is created within the <code><slot></code> of the <code><auro-menu></code> element by using the <code><auro-menuoption></code> element to define options. Use a standard <code><hr></code> element to create dividers within the list of options.</p>
|
|
19
|
+
<p>The <code><auro-menu></code> element is designed for contextual menus, e.g. a dropdown menus. They are not intended to be used for navigation menus which have a different semantic meaning. The <code><auro-menu></code> element does not support hide/show functionality within its scope. This functionality will be managed by a wrapping element such as a drop-down menu composite element.</p>
|
|
22
20
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
23
21
|
</section>
|
|
24
22
|
<section>
|
|
@@ -496,10 +496,13 @@ class MenuService {
|
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
const optionsSet = new Set(optionsToDeselect);
|
|
499
|
+
const previousCount = this.selectedOptions.length;
|
|
499
500
|
this.selectedOptions = (this.selectedOptions || [])
|
|
500
501
|
.filter(opt => !optionsSet.has(opt));
|
|
501
502
|
|
|
502
|
-
this.
|
|
503
|
+
if (this.selectedOptions.length < previousCount) {
|
|
504
|
+
this.stageUpdate();
|
|
505
|
+
}
|
|
503
506
|
}
|
|
504
507
|
|
|
505
508
|
/**
|
|
@@ -1039,8 +1042,6 @@ class AuroMenu extends AuroElement {
|
|
|
1039
1042
|
*/
|
|
1040
1043
|
this.size = "sm";
|
|
1041
1044
|
|
|
1042
|
-
// Value of the selected options
|
|
1043
|
-
this.value = undefined;
|
|
1044
1045
|
// Currently selected option
|
|
1045
1046
|
this.optionSelected = undefined;
|
|
1046
1047
|
// String used for highlighting/filtering
|
|
@@ -2196,7 +2197,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
2196
2197
|
* @private
|
|
2197
2198
|
*/
|
|
2198
2199
|
handleClick() {
|
|
2199
|
-
if (!this.disabled) {
|
|
2200
|
+
if (!this.disabled && !this.menuService?.disabled) {
|
|
2200
2201
|
this.dispatchClickEvent();
|
|
2201
2202
|
this.selected = !this.selected;
|
|
2202
2203
|
}
|
|
@@ -20,11 +20,9 @@ The following sections are editable by making changes to the following files:
|
|
|
20
20
|
|
|
21
21
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
22
22
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
23
|
-
The <code><auro-menu></code> element provides a list of options for a user to select from
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
The <code><auro-menu></code> element is designed for contextual menus, e.g. a dropdown menus. They are not intended to be used for navigation menus which have a different semantic meaning. The <code><auro-menu></code> element does not support hide/show functionality within its scope. This functionality will be managed by a wrapping element such as a drop-down menu composite element.
|
|
23
|
+
<p>The <code><auro-menu></code> element provides a list of options for a user to select from.</p>
|
|
24
|
+
<p>A list of options is created within the <code><slot></code> of the <code><auro-menu></code> element by using the <code><auro-menuoption></code> element to define options. Use a standard <code><hr></code> element to create dividers within the list of options.</p>
|
|
25
|
+
<p>The <code><auro-menu></code> element is designed for contextual menus, e.g. a dropdown menus. They are not intended to be used for navigation menus which have a different semantic meaning. The <code><auro-menu></code> element does not support hide/show functionality within its scope. This functionality will be managed by a wrapping element such as a drop-down menu composite element.</p>
|
|
28
26
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
29
27
|
|
|
30
28
|
## Menu Use Cases
|
|
@@ -144,7 +144,6 @@ export class AuroMenu extends AuroElement {
|
|
|
144
144
|
* @private
|
|
145
145
|
*/
|
|
146
146
|
private size;
|
|
147
|
-
value: any;
|
|
148
147
|
optionSelected: any;
|
|
149
148
|
matchWord: any;
|
|
150
149
|
noCheckmark: boolean;
|
|
@@ -211,6 +210,7 @@ export class AuroMenu extends AuroElement {
|
|
|
211
210
|
*/
|
|
212
211
|
protected setInternalValue(value: string | Array<string>): void;
|
|
213
212
|
internalUpdateInProgress: boolean | undefined;
|
|
213
|
+
value: any;
|
|
214
214
|
/**
|
|
215
215
|
* Handles changes from the menu service and updates component state.
|
|
216
216
|
* @param {Object} event - The event object from the menu service.
|
|
@@ -443,10 +443,13 @@ class MenuService {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
const optionsSet = new Set(optionsToDeselect);
|
|
446
|
+
const previousCount = this.selectedOptions.length;
|
|
446
447
|
this.selectedOptions = (this.selectedOptions || [])
|
|
447
448
|
.filter(opt => !optionsSet.has(opt));
|
|
448
449
|
|
|
449
|
-
this.
|
|
450
|
+
if (this.selectedOptions.length < previousCount) {
|
|
451
|
+
this.stageUpdate();
|
|
452
|
+
}
|
|
450
453
|
}
|
|
451
454
|
|
|
452
455
|
/**
|
|
@@ -1026,8 +1029,6 @@ class AuroMenu extends AuroElement {
|
|
|
1026
1029
|
*/
|
|
1027
1030
|
this.size = "sm";
|
|
1028
1031
|
|
|
1029
|
-
// Value of the selected options
|
|
1030
|
-
this.value = undefined;
|
|
1031
1032
|
// Currently selected option
|
|
1032
1033
|
this.optionSelected = undefined;
|
|
1033
1034
|
// String used for highlighting/filtering
|
|
@@ -2170,7 +2171,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
2170
2171
|
* @private
|
|
2171
2172
|
*/
|
|
2172
2173
|
handleClick() {
|
|
2173
|
-
if (!this.disabled) {
|
|
2174
|
+
if (!this.disabled && !this.menuService?.disabled) {
|
|
2174
2175
|
this.dispatchClickEvent();
|
|
2175
2176
|
this.selected = !this.selected;
|
|
2176
2177
|
}
|
|
@@ -443,10 +443,13 @@ class MenuService {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
const optionsSet = new Set(optionsToDeselect);
|
|
446
|
+
const previousCount = this.selectedOptions.length;
|
|
446
447
|
this.selectedOptions = (this.selectedOptions || [])
|
|
447
448
|
.filter(opt => !optionsSet.has(opt));
|
|
448
449
|
|
|
449
|
-
this.
|
|
450
|
+
if (this.selectedOptions.length < previousCount) {
|
|
451
|
+
this.stageUpdate();
|
|
452
|
+
}
|
|
450
453
|
}
|
|
451
454
|
|
|
452
455
|
/**
|
|
@@ -973,8 +976,6 @@ class AuroMenu extends AuroElement {
|
|
|
973
976
|
*/
|
|
974
977
|
this.size = "sm";
|
|
975
978
|
|
|
976
|
-
// Value of the selected options
|
|
977
|
-
this.value = undefined;
|
|
978
979
|
// Currently selected option
|
|
979
980
|
this.optionSelected = undefined;
|
|
980
981
|
// String used for highlighting/filtering
|
|
@@ -2117,7 +2118,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
2117
2118
|
* @private
|
|
2118
2119
|
*/
|
|
2119
2120
|
handleClick() {
|
|
2120
|
-
if (!this.disabled) {
|
|
2121
|
+
if (!this.disabled && !this.menuService?.disabled) {
|
|
2121
2122
|
this.dispatchClickEvent();
|
|
2122
2123
|
this.selected = !this.selected;
|
|
2123
2124
|
}
|
|
@@ -21,8 +21,6 @@ The following sections are editable by making changes to the following files:
|
|
|
21
21
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
22
22
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
23
23
|
<code><auro-radio></code> is a <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements" target="_blank">HTML custom element</auro-hyperlink> that is rendered as a small circle, which is filled or highlighted when selected. Only one <code><auro-radio></code> component in a given <code><auro-radio-group></code> can be selected at the same time.
|
|
24
|
-
|
|
25
|
-
test
|
|
26
24
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
27
25
|
|
|
28
26
|
## Radio Use Cases
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
20
20
|
<link rel="stylesheet" type="text/css" href="./styles.min.css" />
|
|
21
21
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
22
|
-
<script src="./api.min.js" data-demo-script="true" type="module"></script>
|
|
23
22
|
<script type="module">
|
|
24
23
|
import { renderPage } from './demo-support.min.js';
|
|
25
24
|
await renderPage('./api.md');
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
49
49
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
50
50
|
|
|
51
|
-
<script src="./
|
|
51
|
+
<script src="./customize.min.js" data-demo-script="true" type="module"></script>
|
|
52
52
|
</body>
|
|
53
53
|
</html>
|