@aurodesignsystem-dev/auro-formkit 0.0.0-pr1483.3 → 0.0.0-pr1483.5
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/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -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.min.js +5 -5
- package/components/combobox/demo/getting-started.min.js +5 -5
- package/components/combobox/demo/index.min.js +5 -5
- package/components/combobox/demo/keyboard-behavior.md +68 -8
- package/components/combobox/dist/index.js +5 -5
- package/components/combobox/dist/registered.js +5 -5
- package/components/counter/demo/customize.min.js +2 -2
- 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.md +2 -1
- package/components/datepicker/demo/customize.md +52 -15
- package/components/datepicker/demo/index.md +23 -0
- package/components/datepicker/demo/index.min.js +4515 -520
- package/components/datepicker/dist/index.js +4478 -483
- package/components/datepicker/dist/registered.js +4478 -483
- package/components/datepicker/dist/src/auro-calendar.d.ts +2 -0
- package/components/datepicker/dist/src/auro-datepicker.d.ts +16 -10
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +4866 -869
- package/components/form/demo/getting-started.min.js +4866 -869
- package/components/form/demo/index.min.js +4866 -869
- package/components/form/demo/registerDemoDeps.min.js +4866 -869
- 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/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.min.js +20 -18
- package/components/select/demo/getting-started.min.js +20 -18
- package/components/select/demo/index.min.js +20 -18
- package/components/select/demo/keyboard-behavior.md +54 -8
- package/components/select/dist/index.js +20 -18
- package/components/select/dist/registered.js +20 -18
- package/custom-elements.json +47 -31
- package/package.json +3 -3
|
@@ -840,28 +840,30 @@ function navigateArrow(component, direction, options = {}) {
|
|
|
840
840
|
const selectKeyboardStrategy = {
|
|
841
841
|
ArrowDown(component, evt, ctx) {
|
|
842
842
|
evt.preventDefault();
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
843
|
+
if (ctx.isExpanded) {
|
|
844
|
+
if (evt.altKey || evt.ctrlKey || evt.metaKey) {
|
|
845
|
+
// navigate to last enabled option
|
|
846
|
+
selectKeyboardStrategy.End(component, evt, ctx);
|
|
847
|
+
} else {
|
|
848
|
+
navigateArrow(component, 'down', { ctx });
|
|
849
|
+
}
|
|
850
|
+
} else {
|
|
851
|
+
component.dropdown.show();
|
|
847
852
|
}
|
|
848
|
-
navigateArrow(component, 'down', {
|
|
849
|
-
ctx,
|
|
850
|
-
showFn: () => component.dropdown.show(),
|
|
851
|
-
});
|
|
852
853
|
},
|
|
853
854
|
|
|
854
855
|
ArrowUp(component, evt, ctx) {
|
|
855
856
|
evt.preventDefault();
|
|
856
|
-
if (
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
857
|
+
if (ctx.isExpanded) {
|
|
858
|
+
if (evt.altKey || evt.ctrlKey || evt.metaKey) {
|
|
859
|
+
// navigate to first enabled option
|
|
860
|
+
selectKeyboardStrategy.Home(component, evt, ctx);
|
|
861
|
+
} else {
|
|
862
|
+
navigateArrow(component, 'up', { ctx });
|
|
863
|
+
}
|
|
864
|
+
} else {
|
|
865
|
+
component.dropdown.show();
|
|
860
866
|
}
|
|
861
|
-
navigateArrow(component, 'up', {
|
|
862
|
-
ctx,
|
|
863
|
-
showFn: () => component.dropdown.show(),
|
|
864
|
-
});
|
|
865
867
|
},
|
|
866
868
|
|
|
867
869
|
Escape(component, evt, ctx) {
|
|
@@ -4844,7 +4846,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4844
4846
|
}
|
|
4845
4847
|
};
|
|
4846
4848
|
|
|
4847
|
-
var formkitVersion$1 = '
|
|
4849
|
+
var formkitVersion$1 = '202606031858';
|
|
4848
4850
|
|
|
4849
4851
|
class AuroElement extends LitElement {
|
|
4850
4852
|
static get properties() {
|
|
@@ -6597,7 +6599,7 @@ class AuroHelpText extends LitElement {
|
|
|
6597
6599
|
}
|
|
6598
6600
|
}
|
|
6599
6601
|
|
|
6600
|
-
var formkitVersion = '
|
|
6602
|
+
var formkitVersion = '202606031858';
|
|
6601
6603
|
|
|
6602
6604
|
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 [slot=displayValue]{display:none}.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%;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{height:auto}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}`;
|
|
6603
6605
|
|
package/custom-elements.json
CHANGED
|
@@ -2435,7 +2435,7 @@
|
|
|
2435
2435
|
"type": {
|
|
2436
2436
|
"text": "object"
|
|
2437
2437
|
},
|
|
2438
|
-
"default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.metaKey) { component.activateLastEnabledAvailableOption(); } else { navigateArrow(component, 'down'); } } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.metaKey) { component.activateFirstEnabledAvailableOption(); } else { navigateArrow(component, 'up'); } } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { if (isClearBtnFocused(ctx)) { // If the clear button has focus, let the browser activate it normally. // stopPropagation prevents parent containers (e.g., forms) from treating // Enter as a submit, but we must NOT call preventDefault — that would // block the browser's built-in \"Enter activates focused button\" behavior. evt.stopPropagation(); } else if (ctx.isExpanded && component.menu.optionActive) { component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); evt.stopPropagation(); } else { // Prevent the keypress from bubbling to parent containers (e.g., forms) // which could interpret Enter as a submit or trigger other unintended behavior. // This is safe because showBib() opens the dialog programmatically, // not via event propagation. evt.preventDefault(); evt.stopPropagation(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { if (ctx.isExpanded && !isClearBtnFocused(ctx)) { // When the clear button is focused, Tab events do not bubble out of // its shadow DOM, so this handler only fires when the clear button // is NOT focused. In that case, select the active option and close. component.menu.makeSelection(); component.hideBib(); // In fullscreen modal mode, closing the dialog does not // automatically restores focus to the input. In the tab case, // Explicitly move focus to the trigger's clear button so the // user can continues tabbing through the page normally. if (ctx.isModal && !evt.shiftKey) { component.setClearBtnFocus(); } } }, }"
|
|
2438
|
+
"default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { component.activateLastEnabledAvailableOption(); } else { navigateArrow(component, 'down'); } } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { component.activateFirstEnabledAvailableOption(); } else { navigateArrow(component, 'up'); } } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { if (isClearBtnFocused(ctx)) { // If the clear button has focus, let the browser activate it normally. // stopPropagation prevents parent containers (e.g., forms) from treating // Enter as a submit, but we must NOT call preventDefault — that would // block the browser's built-in \"Enter activates focused button\" behavior. evt.stopPropagation(); } else if (ctx.isExpanded && component.menu.optionActive) { component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); evt.stopPropagation(); } else { // Prevent the keypress from bubbling to parent containers (e.g., forms) // which could interpret Enter as a submit or trigger other unintended behavior. // This is safe because showBib() opens the dialog programmatically, // not via event propagation. evt.preventDefault(); evt.stopPropagation(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { if (ctx.isExpanded && !isClearBtnFocused(ctx)) { // When the clear button is focused, Tab events do not bubble out of // its shadow DOM, so this handler only fires when the clear button // is NOT focused. In that case, select the active option and close. component.menu.makeSelection(); component.hideBib(); // In fullscreen modal mode, closing the dialog does not // automatically restores focus to the input. In the tab case, // Explicitly move focus to the trigger's clear button so the // user can continues tabbing through the page normally. if (ctx.isModal && !evt.shiftKey) { component.setClearBtnFocus(); } } }, }"
|
|
2439
2439
|
}
|
|
2440
2440
|
],
|
|
2441
2441
|
"exports": [
|
|
@@ -5214,6 +5214,7 @@
|
|
|
5214
5214
|
"type": {
|
|
5215
5215
|
"text": "boolean"
|
|
5216
5216
|
},
|
|
5217
|
+
"description": "If true, the month will be displayed before the year in the calendar header.\nPassed to AuroCalendarMonth via utilitesCalendarRender.",
|
|
5217
5218
|
"attribute": "monthFirst"
|
|
5218
5219
|
}
|
|
5219
5220
|
],
|
|
@@ -5334,6 +5335,7 @@
|
|
|
5334
5335
|
"type": {
|
|
5335
5336
|
"text": "boolean"
|
|
5336
5337
|
},
|
|
5338
|
+
"description": "If true, the month will be displayed before the year in the calendar header.\nPassed to AuroCalendarMonth via utilitesCalendarRender.",
|
|
5337
5339
|
"fieldName": "monthFirst"
|
|
5338
5340
|
},
|
|
5339
5341
|
{
|
|
@@ -5544,7 +5546,13 @@
|
|
|
5544
5546
|
{
|
|
5545
5547
|
"kind": "field",
|
|
5546
5548
|
"name": "commonDisplayValueWrapperClasses",
|
|
5549
|
+
"description": "Common display value wrapper classes.",
|
|
5547
5550
|
"privacy": "private",
|
|
5551
|
+
"return": {
|
|
5552
|
+
"type": {
|
|
5553
|
+
"text": "Object"
|
|
5554
|
+
}
|
|
5555
|
+
},
|
|
5548
5556
|
"readonly": true
|
|
5549
5557
|
},
|
|
5550
5558
|
{
|
|
@@ -6106,6 +6114,7 @@
|
|
|
6106
6114
|
"parameters": [
|
|
6107
6115
|
{
|
|
6108
6116
|
"name": "event",
|
|
6117
|
+
"description": "The click event object.",
|
|
6109
6118
|
"type": {
|
|
6110
6119
|
"text": "MouseEvent"
|
|
6111
6120
|
}
|
|
@@ -6186,6 +6195,12 @@
|
|
|
6186
6195
|
"privacy": "private",
|
|
6187
6196
|
"default": "new UtilitiesCalendarRender()"
|
|
6188
6197
|
},
|
|
6198
|
+
{
|
|
6199
|
+
"kind": "field",
|
|
6200
|
+
"name": "domHandler",
|
|
6201
|
+
"privacy": "private",
|
|
6202
|
+
"default": "new DomHandler()"
|
|
6203
|
+
},
|
|
6189
6204
|
{
|
|
6190
6205
|
"kind": "field",
|
|
6191
6206
|
"name": "appearance",
|
|
@@ -6365,18 +6380,6 @@
|
|
|
6365
6380
|
"attribute": "calendarFocusDate",
|
|
6366
6381
|
"reflects": true
|
|
6367
6382
|
},
|
|
6368
|
-
{
|
|
6369
|
-
"kind": "field",
|
|
6370
|
-
"name": "format",
|
|
6371
|
-
"privacy": "public",
|
|
6372
|
-
"type": {
|
|
6373
|
-
"text": "string"
|
|
6374
|
-
},
|
|
6375
|
-
"description": "Specifies the date format. The default is `mm/dd/yyyy`.",
|
|
6376
|
-
"default": "'mm/dd/yyyy'",
|
|
6377
|
-
"attribute": "format",
|
|
6378
|
-
"reflects": true
|
|
6379
|
-
},
|
|
6380
6383
|
{
|
|
6381
6384
|
"kind": "field",
|
|
6382
6385
|
"name": "fullscreenBreakpoint",
|
|
@@ -6633,6 +6636,28 @@
|
|
|
6633
6636
|
"attribute": "error",
|
|
6634
6637
|
"reflects": true
|
|
6635
6638
|
},
|
|
6639
|
+
{
|
|
6640
|
+
"kind": "field",
|
|
6641
|
+
"name": "format",
|
|
6642
|
+
"privacy": "public",
|
|
6643
|
+
"type": {
|
|
6644
|
+
"text": "string"
|
|
6645
|
+
},
|
|
6646
|
+
"description": "Specifies the date format. The default is `mm/dd/yyyy`.",
|
|
6647
|
+
"attribute": "format",
|
|
6648
|
+
"reflects": true
|
|
6649
|
+
},
|
|
6650
|
+
{
|
|
6651
|
+
"kind": "field",
|
|
6652
|
+
"name": "locale",
|
|
6653
|
+
"privacy": "public",
|
|
6654
|
+
"type": {
|
|
6655
|
+
"text": "string"
|
|
6656
|
+
},
|
|
6657
|
+
"description": "Defines the locale of the element. Used to derive the date format when `format` is not explicitly set.",
|
|
6658
|
+
"attribute": "locale",
|
|
6659
|
+
"reflects": true
|
|
6660
|
+
},
|
|
6636
6661
|
{
|
|
6637
6662
|
"kind": "field",
|
|
6638
6663
|
"name": "inputmode",
|
|
@@ -6666,15 +6691,6 @@
|
|
|
6666
6691
|
"attribute": "minDate",
|
|
6667
6692
|
"reflects": true
|
|
6668
6693
|
},
|
|
6669
|
-
{
|
|
6670
|
-
"kind": "field",
|
|
6671
|
-
"name": "monthFirst",
|
|
6672
|
-
"privacy": "private",
|
|
6673
|
-
"type": {
|
|
6674
|
-
"text": "boolean"
|
|
6675
|
-
},
|
|
6676
|
-
"attribute": "monthFirst"
|
|
6677
|
-
},
|
|
6678
6694
|
{
|
|
6679
6695
|
"kind": "field",
|
|
6680
6696
|
"name": "placeholder",
|
|
@@ -6941,9 +6957,16 @@
|
|
|
6941
6957
|
"text": "string"
|
|
6942
6958
|
},
|
|
6943
6959
|
"description": "Specifies the date format. The default is `mm/dd/yyyy`.",
|
|
6944
|
-
"default": "'mm/dd/yyyy'",
|
|
6945
6960
|
"fieldName": "format"
|
|
6946
6961
|
},
|
|
6962
|
+
{
|
|
6963
|
+
"name": "locale",
|
|
6964
|
+
"type": {
|
|
6965
|
+
"text": "string"
|
|
6966
|
+
},
|
|
6967
|
+
"description": "Defines the locale of the element. Used to derive the date format when `format` is not explicitly set.",
|
|
6968
|
+
"fieldName": "locale"
|
|
6969
|
+
},
|
|
6947
6970
|
{
|
|
6948
6971
|
"name": "fullscreenBreakpoint",
|
|
6949
6972
|
"type": {
|
|
@@ -7008,13 +7031,6 @@
|
|
|
7008
7031
|
"default": "[ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ]",
|
|
7009
7032
|
"fieldName": "monthNames"
|
|
7010
7033
|
},
|
|
7011
|
-
{
|
|
7012
|
-
"name": "monthFirst",
|
|
7013
|
-
"type": {
|
|
7014
|
-
"text": "boolean"
|
|
7015
|
-
},
|
|
7016
|
-
"fieldName": "monthFirst"
|
|
7017
|
-
},
|
|
7018
7034
|
{
|
|
7019
7035
|
"name": "noFlip",
|
|
7020
7036
|
"type": {
|
|
@@ -19275,7 +19291,7 @@
|
|
|
19275
19291
|
"type": {
|
|
19276
19292
|
"text": "object"
|
|
19277
19293
|
},
|
|
19278
|
-
"default": "{ ArrowDown(component, evt, ctx) { evt.preventDefault(); if (evt.altKey || evt.metaKey) { // navigate to last enabled option selectKeyboardStrategy.End(component, evt, ctx);
|
|
19294
|
+
"default": "{ ArrowDown(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to last enabled option selectKeyboardStrategy.End(component, evt, ctx); } else { navigateArrow(component, 'down', { ctx }); } } else { component.dropdown.show(); } }, ArrowUp(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to first enabled option selectKeyboardStrategy.Home(component, evt, ctx); } else { navigateArrow(component, 'up', { ctx }); } } else { component.dropdown.show(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); component.dropdown.hide(); }, End(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const lastOption = [...component.menu.menuService.menuOptions].reverse().find((option) => !option.disabled); if (lastOption) { component.menu.updateActiveOption(lastOption); } }, Enter(component, evt, ctx) { evt.preventDefault(); evt.stopPropagation(); if (!ctx.isExpanded) { component.dropdown.show(); return; } component.menu.makeSelection(); }, Home(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const firstOption = component.menu.menuService.menuOptions.find((option) => !option.disabled); if (firstOption) { component.menu.updateActiveOption(firstOption); } }, Tab(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Tab selects the focused option and closes the popup per the // WAI-ARIA APG select-only combobox / listbox pattern. if (component.optionActive) { component.menu.makeSelection(); } component.dropdown.hide(); }, default(component, evt, ctx) { component.updateActiveOptionBasedOnKey(evt.key); if (evt.key === ' ') { evt.preventDefault(); evt.stopPropagation(); if (ctx.isExpanded) { component.dropdown.hide(); return; } component.dropdown.show(); } }, }"
|
|
19279
19295
|
}
|
|
19280
19296
|
],
|
|
19281
19297
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-pr1483.
|
|
3
|
+
"version": "0.0.0-pr1483.5",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@floating-ui/dom": "^1.6.13",
|
|
127
127
|
"@noticeable/sass-render": "^3.0.0",
|
|
128
128
|
"@open-wc/testing": "^4.0.0",
|
|
129
|
-
"@playwright/test": "^1.
|
|
129
|
+
"@playwright/test": "^1.60.0",
|
|
130
130
|
"@popperjs/core": "^2.11.8",
|
|
131
131
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
132
132
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"monocart-reporter": "^2.10.1",
|
|
170
170
|
"nodemon": "^3.1.14",
|
|
171
171
|
"npm-run-all": "^4.1.5",
|
|
172
|
-
"playwright": "^1.
|
|
172
|
+
"playwright": "^1.60.0",
|
|
173
173
|
"postcss": "^8.5.10",
|
|
174
174
|
"postcss-custom-properties": "^15.0.1",
|
|
175
175
|
"postcss-discard-comments": "^7.0.7",
|