@aurodesignsystem/auro-formkit 6.0.2 → 6.0.3-rc-1579.1
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/CHANGELOG.md +8 -10
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +20 -1
- 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/customize.md +40 -0
- package/components/combobox/demo/customize.min.js +390 -56
- package/components/combobox/demo/getting-started.min.js +390 -56
- package/components/combobox/demo/index.html +1 -1
- package/components/combobox/demo/index.min.js +390 -56
- package/components/combobox/dist/index.js +68 -29
- package/components/combobox/dist/registered.js +68 -29
- package/components/counter/demo/customize.min.js +38 -3
- package/components/counter/demo/index.min.js +12 -3
- package/components/counter/dist/index.js +12 -3
- package/components/counter/dist/registered.js +12 -3
- package/components/datepicker/demo/customize.min.js +49 -5
- package/components/datepicker/demo/index.min.js +14 -5
- package/components/datepicker/dist/index.js +14 -5
- package/components/datepicker/dist/registered.js +14 -5
- package/components/dropdown/demo/customize.md +4 -4
- package/components/dropdown/demo/customize.min.js +53 -5
- package/components/dropdown/demo/getting-started.html +3 -0
- package/components/dropdown/demo/getting-started.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +13087 -77
- package/components/dropdown/demo/index.min.js +30 -11
- package/components/dropdown/dist/index.js +10 -1
- package/components/dropdown/dist/registered.js +10 -1
- package/components/form/demo/customize.min.js +430 -69
- package/components/form/demo/getting-started.min.js +430 -69
- package/components/form/demo/index.min.js +430 -69
- package/components/form/demo/registerDemoDeps.min.js +430 -69
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/customize.md +50 -0
- package/components/menu/demo/index.min.js +322 -27
- package/components/menu/dist/auro-menu-utils.d.ts +30 -0
- package/components/menu/dist/auro-menu.d.ts +23 -0
- package/components/menu/dist/index.js +322 -27
- package/components/menu/dist/registered.js +322 -27
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.md +72 -0
- package/components/select/demo/customize.min.js +333 -29
- package/components/select/demo/getting-started.min.js +333 -29
- package/components/select/demo/index.min.js +333 -29
- package/components/select/dist/index.js +11 -2
- package/components/select/dist/registered.js +11 -2
- package/custom-elements.json +103 -0
- package/package.json +1 -1
|
@@ -4769,7 +4769,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4769
4769
|
}
|
|
4770
4770
|
};
|
|
4771
4771
|
|
|
4772
|
-
var formkitVersion$1 = '
|
|
4772
|
+
var formkitVersion$1 = '202608111728';
|
|
4773
4773
|
|
|
4774
4774
|
class AuroElement extends LitElement {
|
|
4775
4775
|
static get properties() {
|
|
@@ -5471,6 +5471,15 @@ class AuroDropdown extends AuroElement {
|
|
|
5471
5471
|
|
|
5472
5472
|
connectedCallback() {
|
|
5473
5473
|
super.connectedCallback();
|
|
5474
|
+
// Re-register trigger event listeners removed by floater.disconnect() in
|
|
5475
|
+
// disconnectedCallback(). Fires when a parent element (e.g. auro-drawer)
|
|
5476
|
+
// moves this element to a new DOM location. firstUpdated() won't re-run,
|
|
5477
|
+
// so without this the trigger click/keydown handlers are permanently gone.
|
|
5478
|
+
// Guard on floater.element so this is a no-op on the initial connect
|
|
5479
|
+
// (before firstUpdated() has called configure()).
|
|
5480
|
+
if (this.floater?.element) {
|
|
5481
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
5482
|
+
}
|
|
5474
5483
|
}
|
|
5475
5484
|
|
|
5476
5485
|
disconnectedCallback() {
|
|
@@ -6871,7 +6880,7 @@ class AuroHelpText extends LitElement {
|
|
|
6871
6880
|
}
|
|
6872
6881
|
}
|
|
6873
6882
|
|
|
6874
|
-
var formkitVersion = '
|
|
6883
|
+
var formkitVersion = '202608111728';
|
|
6875
6884
|
|
|
6876
6885
|
var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer{max-width:100%}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{overflow:hidden;height:auto;text-overflow:ellipsis;white-space:nowrap}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
6877
6886
|
|
package/custom-elements.json
CHANGED
|
@@ -16620,6 +16620,74 @@
|
|
|
16620
16620
|
}
|
|
16621
16621
|
}
|
|
16622
16622
|
},
|
|
16623
|
+
{
|
|
16624
|
+
"kind": "function",
|
|
16625
|
+
"name": "resolveSelectedOption",
|
|
16626
|
+
"parameters": [
|
|
16627
|
+
{
|
|
16628
|
+
"name": "items",
|
|
16629
|
+
"description": "The menu's flat option list.",
|
|
16630
|
+
"type": {
|
|
16631
|
+
"text": "Array<HTMLElement>"
|
|
16632
|
+
}
|
|
16633
|
+
},
|
|
16634
|
+
{
|
|
16635
|
+
"name": "value",
|
|
16636
|
+
"description": "The value to resolve.",
|
|
16637
|
+
"type": {
|
|
16638
|
+
"text": "string"
|
|
16639
|
+
}
|
|
16640
|
+
},
|
|
16641
|
+
{
|
|
16642
|
+
"name": "selectedKey",
|
|
16643
|
+
"description": "The `_optionKey` of the user-selected option, if any.",
|
|
16644
|
+
"type": {
|
|
16645
|
+
"text": "string|undefined"
|
|
16646
|
+
}
|
|
16647
|
+
}
|
|
16648
|
+
],
|
|
16649
|
+
"description": "Resolves the single selected option for a given `value`, preferring the\noption tracked by `selectedKey` (a user-initiated selection) over a\nfirst-by-value match. When multiple options share the same `value`, matching\nby `value` alone cannot distinguish which one the user picked; the key\ndisambiguates it.\n\nThe key is trusted only when it still resolves to an option whose `value`\nmatches the requested `value`. If the key is stale (option removed) or the\nvalue was changed programmatically, resolution falls back to value matching —\npreserving backward-compatible behavior for preselection and `selectByValue`.",
|
|
16650
|
+
"privacy": "private",
|
|
16651
|
+
"return": {
|
|
16652
|
+
"type": {
|
|
16653
|
+
"text": "HTMLElement|undefined"
|
|
16654
|
+
}
|
|
16655
|
+
}
|
|
16656
|
+
},
|
|
16657
|
+
{
|
|
16658
|
+
"kind": "function",
|
|
16659
|
+
"name": "resolveSelectedOptions",
|
|
16660
|
+
"parameters": [
|
|
16661
|
+
{
|
|
16662
|
+
"name": "items",
|
|
16663
|
+
"description": "The menu's flat option list.",
|
|
16664
|
+
"type": {
|
|
16665
|
+
"text": "Array<HTMLElement>"
|
|
16666
|
+
}
|
|
16667
|
+
},
|
|
16668
|
+
{
|
|
16669
|
+
"name": "valueArray",
|
|
16670
|
+
"description": "The selected values.",
|
|
16671
|
+
"type": {
|
|
16672
|
+
"text": "Array<string>"
|
|
16673
|
+
}
|
|
16674
|
+
},
|
|
16675
|
+
{
|
|
16676
|
+
"name": "selectedKeys",
|
|
16677
|
+
"description": "The `_optionKey`s of the user-selected options, if any.",
|
|
16678
|
+
"type": {
|
|
16679
|
+
"text": "Array<string>|undefined"
|
|
16680
|
+
}
|
|
16681
|
+
}
|
|
16682
|
+
],
|
|
16683
|
+
"description": "Resolves the selected options for a multi-select `value` array, preferring\noptions tracked by `selectedKeys` (user-initiated selections) and falling\nback to value matching for any values not resolved by key. The result is\nalways sorted into DOM order regardless of selection sequence.",
|
|
16684
|
+
"privacy": "private",
|
|
16685
|
+
"return": {
|
|
16686
|
+
"type": {
|
|
16687
|
+
"text": "Array<HTMLElement>"
|
|
16688
|
+
}
|
|
16689
|
+
}
|
|
16690
|
+
},
|
|
16623
16691
|
{
|
|
16624
16692
|
"kind": "function",
|
|
16625
16693
|
"name": "dispatchMenuEvent",
|
|
@@ -16692,6 +16760,22 @@
|
|
|
16692
16760
|
"module": "components/menu/src/auro-menu-utils.js"
|
|
16693
16761
|
}
|
|
16694
16762
|
},
|
|
16763
|
+
{
|
|
16764
|
+
"kind": "js",
|
|
16765
|
+
"name": "resolveSelectedOption",
|
|
16766
|
+
"declaration": {
|
|
16767
|
+
"name": "resolveSelectedOption",
|
|
16768
|
+
"module": "components/menu/src/auro-menu-utils.js"
|
|
16769
|
+
}
|
|
16770
|
+
},
|
|
16771
|
+
{
|
|
16772
|
+
"kind": "js",
|
|
16773
|
+
"name": "resolveSelectedOptions",
|
|
16774
|
+
"declaration": {
|
|
16775
|
+
"name": "resolveSelectedOptions",
|
|
16776
|
+
"module": "components/menu/src/auro-menu-utils.js"
|
|
16777
|
+
}
|
|
16778
|
+
},
|
|
16695
16779
|
{
|
|
16696
16780
|
"kind": "js",
|
|
16697
16781
|
"name": "dispatchMenuEvent",
|
|
@@ -16871,6 +16955,12 @@
|
|
|
16871
16955
|
"description": "Initializes menu items and their attributes.",
|
|
16872
16956
|
"privacy": "private"
|
|
16873
16957
|
},
|
|
16958
|
+
{
|
|
16959
|
+
"kind": "method",
|
|
16960
|
+
"name": "_assignOptionKeys",
|
|
16961
|
+
"description": "Assigns a private, auto-generated unique key (`_optionKey`) to each menu\noption that does not already have one. Keys are internal state on the\nelement instance — never reflected as an attribute or exposed publicly —\nand let selection tracking distinguish options that share the same `value`.\n\nThe `_optionKey === undefined` guard makes this idempotent: options keep the\nkey they were first assigned across re-renders and slot changes, and if a\nnested menu's lifecycle runs a pass before the root, options simply wait for\nthe root to key them (or keep whatever key they already hold).",
|
|
16962
|
+
"privacy": "private"
|
|
16963
|
+
},
|
|
16874
16964
|
{
|
|
16875
16965
|
"kind": "method",
|
|
16876
16966
|
"name": "handleSelectState",
|
|
@@ -16907,6 +16997,12 @@
|
|
|
16907
16997
|
"description": "Resets all options to their default state.",
|
|
16908
16998
|
"privacy": "private"
|
|
16909
16999
|
},
|
|
17000
|
+
{
|
|
17001
|
+
"kind": "method",
|
|
17002
|
+
"name": "_sortSelectedByDomOrder",
|
|
17003
|
+
"description": "Re-sorts the multi-select selection into DOM order and rebuilds the derived\n`_selectedKey` and `value` from `optionSelected`. Selection is always stored\nand serialized in the order options appear in the menu, never in click\norder — so selecting C then A yields `[A, C]`.",
|
|
17004
|
+
"privacy": "private"
|
|
17005
|
+
},
|
|
16910
17006
|
{
|
|
16911
17007
|
"kind": "method",
|
|
16912
17008
|
"name": "reset",
|
|
@@ -17250,6 +17346,13 @@
|
|
|
17250
17346
|
"attribute": "multiselect",
|
|
17251
17347
|
"reflects": true
|
|
17252
17348
|
},
|
|
17349
|
+
{
|
|
17350
|
+
"kind": "field",
|
|
17351
|
+
"type": {
|
|
17352
|
+
"text": "number"
|
|
17353
|
+
},
|
|
17354
|
+
"default": "1"
|
|
17355
|
+
},
|
|
17253
17356
|
{
|
|
17254
17357
|
"kind": "field",
|
|
17255
17358
|
"name": "disabled",
|
package/package.json
CHANGED