@aurodesignsystem/auro-formkit 5.8.0 → 5.9.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/CHANGELOG.md +3 -12
- package/components/checkbox/demo/api.min.js +2 -2
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/api.md +7 -6
- package/components/combobox/demo/api.min.js +1674 -1004
- package/components/combobox/demo/index.md +47 -2
- package/components/combobox/demo/index.min.js +1674 -1004
- package/components/combobox/dist/auro-combobox.d.ts +9 -8
- package/components/combobox/dist/index.js +129 -127
- package/components/combobox/dist/registered.js +129 -127
- package/components/counter/demo/api.min.js +12 -18
- package/components/counter/demo/index.min.js +12 -18
- package/components/counter/dist/buttonVersion.d.ts +2 -0
- package/components/counter/dist/index.js +12 -18
- package/components/counter/dist/registered.js +12 -18
- package/components/datepicker/demo/api.min.js +46 -45
- package/components/datepicker/demo/index.min.js +46 -45
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +46 -45
- package/components/datepicker/dist/registered.js +46 -45
- package/components/dropdown/demo/api.min.js +6 -8
- package/components/dropdown/demo/index.min.js +6 -8
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +6 -8
- package/components/dropdown/dist/registered.js +6 -8
- package/components/input/demo/api.min.js +33 -24
- package/components/input/demo/index.min.js +33 -24
- package/components/input/dist/base-input.d.ts +19 -2
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/index.js +33 -24
- package/components/input/dist/registered.js +33 -24
- package/components/menu/demo/api.js +4 -0
- package/components/menu/demo/api.md +271 -26
- package/components/menu/demo/api.min.js +1591 -858
- package/components/menu/demo/index.html +1 -0
- package/components/menu/demo/index.js +2 -0
- package/components/menu/demo/index.md +95 -1
- package/components/menu/demo/index.min.js +1529 -810
- package/components/menu/dist/auro-menu.context.d.ts +222 -0
- package/components/menu/dist/auro-menu.d.ts +93 -53
- package/components/menu/dist/auro-menuoption.d.ts +115 -13
- package/components/menu/dist/index.js +1441 -793
- package/components/menu/dist/registered.js +1439 -803
- package/components/radio/demo/api.min.js +3 -3
- package/components/radio/demo/index.min.js +3 -3
- package/components/radio/dist/index.js +3 -3
- package/components/radio/dist/registered.js +3 -3
- package/components/select/demo/api.md +8 -7
- package/components/select/demo/api.min.js +1587 -1020
- package/components/select/demo/index.min.js +1587 -1020
- package/components/select/dist/auro-select.d.ts +11 -35
- package/components/select/dist/index.js +72 -173
- package/components/select/dist/registered.js +72 -173
- package/package.json +6 -2
- package/components/checkbox/dist/helptextVersion.d.ts +0 -2
- package/components/combobox/dist/bibtemplateVersion.d.ts +0 -2
- package/components/combobox/dist/dropdownVersion.d.ts +0 -2
- package/components/combobox/dist/inputVersion.d.ts +0 -2
- package/components/counter/dist/bibtemplateVersion.d.ts +0 -2
- package/components/counter/dist/dropdownVersion.d.ts +0 -2
- package/components/counter/dist/helptextVersion.d.ts +0 -2
- package/components/datepicker/dist/bibtemplateVersion.d.ts +0 -2
- package/components/datepicker/dist/dropdownVersion.d.ts +0 -2
- package/components/datepicker/dist/inputVersion.d.ts +0 -2
- package/components/dropdown/dist/dropdownVersion.d.ts +0 -2
- package/components/dropdown/dist/helptextVersion.d.ts +0 -2
- package/components/input/dist/helptextVersion.d.ts +0 -2
- package/components/menu/dist/dropdownVersion.d.ts +0 -2
- package/components/radio/dist/helptextVersion.d.ts +0 -2
- package/components/select/dist/bibtemplateVersion.d.ts +0 -2
- package/components/select/dist/dropdownVersion.d.ts +0 -2
- package/components/select/dist/helptextVersion.d.ts +0 -2
|
@@ -6,7 +6,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
6
6
|
|
|
7
7
|
var shapeSizeCss = css`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:56px;max-height:56px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:58px;max-height:58px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:56px;max-height:56px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:54px;max-height:54px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
8
8
|
|
|
9
|
-
var styleCss$1 = 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);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-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, 450);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, 450);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}:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{overflow:clip !important;width:100%;padding:0;border:0;background:unset;outline:none;overflow-clip-margin:0 !important;text-overflow:ellipsis}input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.displayValue{display:none}.displayValue.hasContent:is(.withValue):not(.hasFocus){display:flex;align-items:center}.accents:not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}.wrapper:not(:focus-within):not(:hover) .notificationBtn.passwordBtn,.wrapper:not(:focus-within):not(:hover) .notification.clear{display:none}.notification{display:flex;align-items:center;justify-content:center}`;
|
|
9
|
+
var styleCss$1 = 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);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-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, 450);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, 450);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}:host{display:block}.wrapper:has(:enabled){cursor:text}.wrapper:has(:enabled) label{cursor:text}.helpTextClasses{cursor:default}input{overflow:clip !important;width:100%;padding:0;border:0;background:unset;outline:none;overflow-clip-margin:0 !important;text-overflow:ellipsis}input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.displayValue{display:none}.displayValue.hasContent:is(.withValue):not(.hasFocus){display:flex;align-items:center}.accents:not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}.wrapper:not(:focus-within):not(:hover) .notificationBtn.passwordBtn,.wrapper:not(:focus-within):not(:hover) .notification.clear{display:none}.notification{display:flex;align-items:center;justify-content:center}`;
|
|
10
10
|
|
|
11
11
|
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{text-align:left}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);b
|
|
|
14
14
|
|
|
15
15
|
var tokensCss$1 = css`:host(:not([ondark])),:host(:not([appearance=inverse])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]),:host([appearance=inverse]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: transparent}`;
|
|
16
16
|
|
|
17
|
-
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;background-color:var(--ds-auro-input-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center
|
|
17
|
+
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;background-color:var(--ds-auro-input-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center}:host([layout*=classic]) .mainContent label{overflow:hidden;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent input[type=password]::-ms-reveal{display:none}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18
18
|
|
|
19
19
|
var classicColorCss = css`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host(:not([ondark])) .layout-classic:focus-within,:host(:not([appearance=inverse])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within,:host([appearance=inverse]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))),:host([layout*=classic]:not([appearance=inverse]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within,:host([layout*=classic]:not([appearance=inverse]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))),:host([layout*=classic][appearance=inverse]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within,:host([layout*=classic][appearance=inverse]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
20
20
|
|
|
@@ -5130,7 +5130,6 @@ class BaseInput extends AuroElement {
|
|
|
5130
5130
|
this.validationCCLength = undefined;
|
|
5131
5131
|
this.hasValue = false;
|
|
5132
5132
|
this.label = 'Input label is undefined';
|
|
5133
|
-
this.placeholderStr = '';
|
|
5134
5133
|
|
|
5135
5134
|
this.allowedInputTypes = [
|
|
5136
5135
|
"text",
|
|
@@ -5287,6 +5286,26 @@ class BaseInput extends AuroElement {
|
|
|
5287
5286
|
reflect: true
|
|
5288
5287
|
},
|
|
5289
5288
|
|
|
5289
|
+
/**
|
|
5290
|
+
* @private
|
|
5291
|
+
* Flag to indicate if the input currently has value.
|
|
5292
|
+
*/
|
|
5293
|
+
hasValue: {
|
|
5294
|
+
type: Boolean,
|
|
5295
|
+
reflect: false,
|
|
5296
|
+
attribute: false
|
|
5297
|
+
},
|
|
5298
|
+
|
|
5299
|
+
/**
|
|
5300
|
+
* @private
|
|
5301
|
+
* Flag to indicate if the input currently has focus.
|
|
5302
|
+
*/
|
|
5303
|
+
hasFocus: {
|
|
5304
|
+
type: Boolean,
|
|
5305
|
+
reflect: false,
|
|
5306
|
+
attribute: false
|
|
5307
|
+
},
|
|
5308
|
+
|
|
5290
5309
|
/**
|
|
5291
5310
|
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
5292
5311
|
*/
|
|
@@ -5589,7 +5608,6 @@ class BaseInput extends AuroElement {
|
|
|
5589
5608
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
5590
5609
|
}
|
|
5591
5610
|
|
|
5592
|
-
this.getPlaceholder();
|
|
5593
5611
|
this.setCustomHelpTextMessage();
|
|
5594
5612
|
this.configureAutoFormatting();
|
|
5595
5613
|
}
|
|
@@ -5631,6 +5649,7 @@ class BaseInput extends AuroElement {
|
|
|
5631
5649
|
const inputEvent = new InputEvent('input', {
|
|
5632
5650
|
bubbles: true,
|
|
5633
5651
|
composed: true,
|
|
5652
|
+
cancelable: false
|
|
5634
5653
|
});
|
|
5635
5654
|
inputEvent.isProgrammatic = true;
|
|
5636
5655
|
this.dispatchEvent(inputEvent);
|
|
@@ -5707,10 +5726,8 @@ class BaseInput extends AuroElement {
|
|
|
5707
5726
|
if (changedProperties.has('value')) {
|
|
5708
5727
|
if (this.value && this.value.length > 0) {
|
|
5709
5728
|
this.hasValue = true;
|
|
5710
|
-
this.requestUpdate();
|
|
5711
5729
|
} else {
|
|
5712
5730
|
this.hasValue = false;
|
|
5713
|
-
this.requestUpdate();
|
|
5714
5731
|
}
|
|
5715
5732
|
|
|
5716
5733
|
if (this.value !== this.inputElement.value) {
|
|
@@ -5896,8 +5913,6 @@ class BaseInput extends AuroElement {
|
|
|
5896
5913
|
handleFocusin() {
|
|
5897
5914
|
this.hasFocus = true;
|
|
5898
5915
|
|
|
5899
|
-
this.getPlaceholder();
|
|
5900
|
-
|
|
5901
5916
|
this.touched = true;
|
|
5902
5917
|
}
|
|
5903
5918
|
|
|
@@ -5908,7 +5923,6 @@ class BaseInput extends AuroElement {
|
|
|
5908
5923
|
*/
|
|
5909
5924
|
handleFocusout() {
|
|
5910
5925
|
this.hasFocus = false;
|
|
5911
|
-
this.getPlaceholder();
|
|
5912
5926
|
}
|
|
5913
5927
|
|
|
5914
5928
|
/**
|
|
@@ -6045,16 +6059,11 @@ class BaseInput extends AuroElement {
|
|
|
6045
6059
|
* @private
|
|
6046
6060
|
* @returns {void}
|
|
6047
6061
|
*/
|
|
6048
|
-
|
|
6049
|
-
if (this.placeholder) {
|
|
6050
|
-
this.
|
|
6051
|
-
} else if (this.type === 'date') {
|
|
6052
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
6062
|
+
get placeholderStr() {
|
|
6063
|
+
if (!this.placeholder && this.type === 'date') {
|
|
6064
|
+
return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
6053
6065
|
}
|
|
6054
|
-
|
|
6055
|
-
this.requestUpdate();
|
|
6056
|
-
|
|
6057
|
-
return this.placeholderStr;
|
|
6066
|
+
return this.placeholder || "";
|
|
6058
6067
|
}
|
|
6059
6068
|
|
|
6060
6069
|
/**
|
|
@@ -6340,7 +6349,7 @@ class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),
|
|
|
6340
6349
|
</${this._renderTag}>
|
|
6341
6350
|
`}renderLayout(){return this.renderLayoutDefault()}}
|
|
6342
6351
|
|
|
6343
|
-
var buttonVersion = '12.
|
|
6352
|
+
var buttonVersion = '12.3.0';
|
|
6344
6353
|
|
|
6345
6354
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]),:host([appearance=inverse]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6346
6355
|
|
|
@@ -6570,7 +6579,7 @@ class AuroHelpText extends LitElement {
|
|
|
6570
6579
|
}
|
|
6571
6580
|
}
|
|
6572
6581
|
|
|
6573
|
-
var
|
|
6582
|
+
var formkitVersion = '202511191711';
|
|
6574
6583
|
|
|
6575
6584
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6576
6585
|
// See LICENSE in the project root for license information.
|
|
@@ -6600,7 +6609,7 @@ class AuroInput extends BaseInput {
|
|
|
6600
6609
|
/**
|
|
6601
6610
|
* @private
|
|
6602
6611
|
*/
|
|
6603
|
-
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext',
|
|
6612
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', formkitVersion, AuroHelpText);
|
|
6604
6613
|
|
|
6605
6614
|
/**
|
|
6606
6615
|
* @private
|
|
@@ -6636,7 +6645,7 @@ class AuroInput extends BaseInput {
|
|
|
6636
6645
|
(
|
|
6637
6646
|
(!this.value || this.value.length === 0) &&
|
|
6638
6647
|
!this.hasFocus &&
|
|
6639
|
-
(!this.
|
|
6648
|
+
(!this.placeholderStr || this.placeholderStr === '')
|
|
6640
6649
|
);
|
|
6641
6650
|
}
|
|
6642
6651
|
|
|
@@ -6681,11 +6690,11 @@ class AuroInput extends BaseInput {
|
|
|
6681
6690
|
}
|
|
6682
6691
|
|
|
6683
6692
|
if (this.layout === 'snowflake') {
|
|
6684
|
-
return this.hasValue || this.hasFocus || this.
|
|
6693
|
+
return this.hasValue || this.hasFocus || this.placeholderStr ? 'body-xs' : 'body-lg';
|
|
6685
6694
|
}
|
|
6686
6695
|
|
|
6687
6696
|
// classic layout (default)
|
|
6688
|
-
return ((!this.value || this.value.length === 0) && !this.
|
|
6697
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
6689
6698
|
}
|
|
6690
6699
|
|
|
6691
6700
|
/**
|
|
@@ -4,6 +4,8 @@ import { auroMenuResetExample } from '../apiExamples/reset';
|
|
|
4
4
|
import { auroMenuMatchWordExample } from '../apiExamples/matchWord';
|
|
5
5
|
import { auroMenuCustomEventExample } from '../apiExamples/customEvent';
|
|
6
6
|
import { auroMenuLoadingExample } from '../apiExamples/loading';
|
|
7
|
+
import { initSelectAllMatchingOptionsExample } from '../apiExamples/selectAllMatchingOptions.js';
|
|
8
|
+
import { initKeysExample } from '../apiExamples/keys.js';
|
|
7
9
|
import '../src/registered.js';
|
|
8
10
|
|
|
9
11
|
export function initExamples(initCount) {
|
|
@@ -15,6 +17,8 @@ export function initExamples(initCount) {
|
|
|
15
17
|
auroMenuMatchWordExample();
|
|
16
18
|
auroMenuCustomEventExample();
|
|
17
19
|
auroMenuLoadingExample();
|
|
20
|
+
initSelectAllMatchingOptionsExample();
|
|
21
|
+
initKeysExample();
|
|
18
22
|
} catch (err) {
|
|
19
23
|
if (initCount <= 20) {
|
|
20
24
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
@@ -7,25 +7,32 @@ The auro-menu element provides users a way to select from a list of options.
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property
|
|
11
|
-
|
|
12
|
-
| [
|
|
13
|
-
| [
|
|
14
|
-
| [
|
|
15
|
-
| [
|
|
16
|
-
| [
|
|
17
|
-
| [
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
10
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
11
|
+
|----------------------------|----------------------------|-----------|-----------------------------------|-------------|--------------------------------------------------|
|
|
12
|
+
| [allowDeselect](#allowDeselect) | `allowDeselect` | | `boolean` | false | Allows deselecting an already selected option when clicked again in single-select mode. |
|
|
13
|
+
| [disabled](#disabled) | `disabled` | | `boolean` | | When true, the entire menu and all options are disabled; |
|
|
14
|
+
| [hasLoadingPlaceholder](#hasLoadingPlaceholder) | | | `boolean` | | Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state. |
|
|
15
|
+
| [index](#index) | | | `number` | | |
|
|
16
|
+
| [items](#items) | | readonly | `HTMLElement[]` | | |
|
|
17
|
+
| [layout](#layout) | | | `string` | | |
|
|
18
|
+
| [loading](#loading) | `loading` | | `boolean` | false | When true, displays a loading state using the loadingIcon and loadingText slots if provided. |
|
|
19
|
+
| [matchWord](#matchWord) | `matchword` | | `string` | "undefined" | Specifies a string used to highlight matched string parts in options. |
|
|
20
|
+
| [multiSelect](#multiSelect) | `multiselect` | | `boolean` | false | When true, the selected option can be multiple options. |
|
|
21
|
+
| [noCheckmark](#noCheckmark) | `nocheckmark` | | `boolean` | false | When true, selected option will not show the checkmark. |
|
|
22
|
+
| [optionActive](#optionActive) | `optionactive` | | `object` | "undefined" | Specifies the current active menuOption. |
|
|
23
|
+
| [optionSelected](#optionSelected) | `optionSelected` | | `HTMLElement\|Array<HTMLElement>` | "undefined" | An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements. |
|
|
24
|
+
| [options](#options) | | readonly | `array` | | Available menu options |
|
|
25
|
+
| [selectAllMatchingOptions](#selectAllMatchingOptions) | `selectAllMatchingOptions` | | `boolean` | false | When true, selects all options that match the provided value/key when setting value and multiselect is enabled. |
|
|
26
|
+
| [selectedOption](#selectedOption) | | readonly | `HTMLElement \| null` | | Gets the first selected option, or null if none. |
|
|
27
|
+
| [selectedOptions](#selectedOptions) | | readonly | `HTMLElement[]` | | Gets the currently selected options. |
|
|
28
|
+
| [value](#value) | `value` | | `string` | "undefined" | Value selected for the component. |
|
|
22
29
|
|
|
23
30
|
## Methods
|
|
24
31
|
|
|
25
|
-
| Method | Type
|
|
26
|
-
|
|
27
|
-
| [reset](#reset) | `(): void`
|
|
28
|
-
| [updateActiveOption](#updateActiveOption) | `(
|
|
32
|
+
| Method | Type | Description |
|
|
33
|
+
|----------------------|-------------------------------|--------------------------------------------------|
|
|
34
|
+
| [reset](#reset) | `(): void` | Resets the menu to its initial state.<br />This is the only way to return value to undefined. |
|
|
35
|
+
| [updateActiveOption](#updateActiveOption) | `(option: HTMLElement): void` | Updates the currently active option in the menu.<br /><br />**option**: The option to set as active. |
|
|
29
36
|
|
|
30
37
|
## Events
|
|
31
38
|
|
|
@@ -34,6 +41,7 @@ The auro-menu element provides users a way to select from a list of options.
|
|
|
34
41
|
| `auroMenu-activatedOption` | `CustomEvent<Element>` | Notifies that a menuoption has been made `active`. |
|
|
35
42
|
| `auroMenu-customEventFired` | `CustomEvent<any>` | Notifies that a custom event has been fired. |
|
|
36
43
|
| `auroMenu-loadingChange` | `CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>` | Notifies when the loading attribute is changed. |
|
|
44
|
+
| `auroMenu-optionsChange` | `CustomEvent<{ options: any; }>` | |
|
|
37
45
|
| `auroMenu-selectValueFailure` | `CustomEvent<any>` | Notifies that an attempt to select a menuoption by matching a value has failed. |
|
|
38
46
|
| `auroMenu-selectValueReset` | `CustomEvent<any>` | Notifies that the component value has been reset. |
|
|
39
47
|
| `auroMenu-selectedOption` | `CustomEvent<any>` | Notifies that a new menuoption selection has been made. |
|
|
@@ -58,19 +66,38 @@ The auro-menu element provides users a way to define a menu option.
|
|
|
58
66
|
|
|
59
67
|
## Properties
|
|
60
68
|
|
|
61
|
-
| Property | Attribute | Type | Default | Description |
|
|
62
|
-
|
|
63
|
-
| [disabled](#disabled) | `disabled` | `Boolean` | false | When true specifies that the menuoption is disabled. |
|
|
64
|
-
| [
|
|
65
|
-
| [
|
|
66
|
-
| [
|
|
67
|
-
| [
|
|
68
|
-
| [
|
|
69
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
70
|
+
|---------------|---------------|-----------|-----------|---------|--------------------------------------------------|
|
|
71
|
+
| [disabled](#disabled) | `disabled` | | `Boolean` | false | When true specifies that the menuoption is disabled. |
|
|
72
|
+
| [event](#event) | `event` | | `string` | | |
|
|
73
|
+
| [iconTag](#iconTag) | | | `string` | | |
|
|
74
|
+
| [isActive](#isActive) | | readonly | `boolean` | | Returns whether the menu option is currently active and selectable.<br />An option is considered active if it is not hidden, not disabled, and not static. |
|
|
75
|
+
| [key](#key) | `key` | | `string` | | |
|
|
76
|
+
| [layout](#layout) | | | `string` | | |
|
|
77
|
+
| [matchWord](#matchWord) | `matchWord` | | `string` | | |
|
|
78
|
+
| [menuService](#menuService) | `menuService` | | `object` | null | |
|
|
79
|
+
| [nocheckmark](#nocheckmark) | `nocheckmark` | | `boolean` | false | |
|
|
80
|
+
| [selected](#selected) | `selected` | | `Boolean` | false | Specifies that an option is selected. |
|
|
81
|
+
| [tabIndex](#tabIndex) | `tabIndex` | | `number` | | |
|
|
82
|
+
| [unsubscribe](#unsubscribe) | | | | null | |
|
|
83
|
+
| [value](#value) | `value` | | `String` | | Specifies the value to be sent to a server. |
|
|
84
|
+
|
|
85
|
+
## Methods
|
|
86
|
+
|
|
87
|
+
| Method | Type | Description |
|
|
88
|
+
|-----------------------|-------------------------------|--------------------------------------------------|
|
|
89
|
+
| [attachTo](#attachTo) | `(service: Object): void` | Attaches this menu option to a menu service and subscribes to its events.<br />This method enables the option to participate in menu selection and highlighting logic.<br /><br />**service**: The menu service instance to attach to. |
|
|
90
|
+
| [bindEvents](#bindEvents) | `(): void` | Sets up event listeners for user interaction with the menu option.<br />This function enables click and mouse enter events to trigger selection and highlighting logic. |
|
|
91
|
+
| [handleMenuChange](#handleMenuChange) | `(event: Object): void` | Handles changes from the menu service and updates the option's state.<br />This function synchronizes the option's properties and selection/highlight state with menu events.<br /><br />**event**: The event object from the menu service. |
|
|
92
|
+
| [setInternalSelected](#setInternalSelected) | `(isSelected: boolean): void` | Updates the internal selected state of the menu option bypassing 'updated' and triggers custom events if selected.<br />This function ensures the option's selection state is synchronized with menu logic and notifies listeners.<br /><br />**isSelected**: Whether the option should be marked as selected. |
|
|
93
|
+
| [setSelected](#setSelected) | `(isSelected: boolean): void` | Sets the selected state of the menu option.<br />This function updates whether the option is currently selected.<br /><br />**isSelected**: Whether the option should be marked as selected. |
|
|
94
|
+
| [updateActive](#updateActive) | `(isActive: boolean): void` | Updates the active state and visual highlighting of the menu option.<br />This function toggles the option's active status and applies or removes the active CSS class.<br /><br />**isActive**: Whether the option should be marked as active. |
|
|
69
95
|
|
|
70
96
|
## Events
|
|
71
97
|
|
|
72
98
|
| Event | Type | Description |
|
|
73
99
|
|----------------------------|---------------------|--------------------------------------------------|
|
|
100
|
+
| `auroMenuOption-click` | `CustomEvent<this>` | |
|
|
74
101
|
| `auroMenuOption-mouseover` | `CustomEvent<this>` | Notifies that this option has been hovered over. |
|
|
75
102
|
|
|
76
103
|
## Slots
|
|
@@ -113,8 +140,138 @@ The auro-menu element provides users a way to define a menu option.
|
|
|
113
140
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
114
141
|
</auro-accordion>
|
|
115
142
|
|
|
143
|
+
### Using Keys
|
|
144
|
+
|
|
145
|
+
When setting the `value` property, matches are actually performed on the value of the `key` property of the `auro-menuoption` and not the `value` property. By default, the value of `key` is equal to the value of the `value` property. However, for advanced use cases, the `key` value can be overriden to allow for more specific matches.
|
|
146
|
+
|
|
147
|
+
In the below example, there is a list of "popular" options at the top, with the same values repeated underneath. To allow more specific selections, we can add a `key` attribute to the top options to allow them to be more specifically selected, or to prevent them from interfering with matches on the lower options.
|
|
148
|
+
|
|
149
|
+
In the below example, setting the value of the menu `'stops'` will select the bottom-most option with the value `'stops'`, and setting the value of menu to `'stops-top'` will select the top-most option with the value `'stops'` since the key now differs from the value. In either case, the resulting value of the menu will be `'stops'` because the resulting value of the menu is based on the `value` property and not the `key` property.
|
|
150
|
+
|
|
151
|
+
Due to a limitation with Lit change detection to the `value` property, if multiple options with the same exist and one is selected, you must first clear the current value before attempting to select another option with the same value, even if the keys are unique. See code example below.
|
|
152
|
+
|
|
153
|
+
_Note: Since the value passed to the `value` property when programmatically setting it is overwritten with the proper derived value once the menu has updated, note that it will take one lifecycle before the `value` property is updated to the value that represents the actual menu state._
|
|
154
|
+
|
|
155
|
+
<div class="exampleWrapper">
|
|
156
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/keys.html) -->
|
|
157
|
+
<!-- The below content is automatically added from ./../apiExamples/keys.html -->
|
|
158
|
+
<auro-button id="stopsTopButton">Call `menu.value = 'stops-top'`</auro-button>
|
|
159
|
+
<auro-button id="stopsButton">Call `menu.value = 'stops'`</auro-button>
|
|
160
|
+
<auro-menu id="keys-menu">
|
|
161
|
+
<auro-menuoption value="stops" key="stops-top">Stops</auro-menuoption>
|
|
162
|
+
<auro-menuoption value="price" key="price-top">Price</auro-menuoption>
|
|
163
|
+
<hr>
|
|
164
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
165
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
166
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
167
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
168
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
169
|
+
</auro-menu>
|
|
170
|
+
<p id="output" class="body-sm"></p>
|
|
171
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
172
|
+
</div>
|
|
173
|
+
<auro-accordion alignRight>
|
|
174
|
+
<span slot="trigger">See code</span>
|
|
175
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/keys.html) -->
|
|
176
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/keys.html -->
|
|
177
|
+
|
|
178
|
+
```html
|
|
179
|
+
<auro-button id="stopsTopButton">Call `menu.value = 'stops-top'`</auro-button>
|
|
180
|
+
<auro-button id="stopsButton">Call `menu.value = 'stops'`</auro-button>
|
|
181
|
+
<auro-menu id="keys-menu">
|
|
182
|
+
<auro-menuoption value="stops" key="stops-top">Stops</auro-menuoption>
|
|
183
|
+
<auro-menuoption value="price" key="price-top">Price</auro-menuoption>
|
|
184
|
+
<hr>
|
|
185
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
186
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
187
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
188
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
189
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
190
|
+
</auro-menu>
|
|
191
|
+
<p id="output" class="body-sm"></p>
|
|
192
|
+
```
|
|
193
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
194
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/keys.js) -->
|
|
195
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/keys.js -->
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
export function initKeysExample() {
|
|
199
|
+
const menu = document.getElementById('keys-menu');
|
|
200
|
+
const stopsButton = document.getElementById('stopsButton');
|
|
201
|
+
const stopsTopButton = document.getElementById('stopsTopButton');
|
|
202
|
+
const output = document.getElementById('output');
|
|
203
|
+
|
|
204
|
+
const createConsoleEntry = (message) => {
|
|
205
|
+
const node = document.createElement('span');
|
|
206
|
+
node.innerHTML = message;
|
|
207
|
+
output.appendChild(node);
|
|
208
|
+
output.appendChild(document.createElement('br'));
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const resetConsole = () => {
|
|
212
|
+
output.innerHTML = '';
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const updateMenuValue = (value) => {
|
|
216
|
+
resetConsole();
|
|
217
|
+
createConsoleEntry(`Setting menu.value: <em>"${value}"</em>`);
|
|
218
|
+
menu.value = '';
|
|
219
|
+
menu.value = value;
|
|
220
|
+
createConsoleEntry(`menu.value before next lifecycle: <em>"${menu.value}"</em>`);
|
|
221
|
+
setTimeout(() => {
|
|
222
|
+
createConsoleEntry(`menu.value after lifecycle: <em>"${menu.value}"</em>`);
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
stopsButton.addEventListener('click', () => {
|
|
227
|
+
updateMenuValue('stops');
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
stopsTopButton.addEventListener('click', () => {
|
|
231
|
+
updateMenuValue('stops-top');
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
```
|
|
235
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
236
|
+
</auro-accordion>
|
|
237
|
+
|
|
116
238
|
### Attribute Examples
|
|
117
239
|
|
|
240
|
+
#### allowDeselect
|
|
241
|
+
|
|
242
|
+
When set, the `allowDeselect` attribute allows the user to click on a selected menu option again to deselect it when the menu is not in multi-select mode.
|
|
243
|
+
|
|
244
|
+
When the menu is in multi-select mode, this attribute has no effect and the user will be able to deselect the last remaining selected option.
|
|
245
|
+
|
|
246
|
+
<div class="exampleWrapper">
|
|
247
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/allowDeselect.html) -->
|
|
248
|
+
<!-- The below content is automatically added from ./../apiExamples/allowDeselect.html -->
|
|
249
|
+
<auro-menu allowDeselect>
|
|
250
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
251
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
252
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
253
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
254
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
255
|
+
</auro-menu>
|
|
256
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
257
|
+
</div>
|
|
258
|
+
<auro-accordion alignRight>
|
|
259
|
+
<span slot="trigger">See code</span>
|
|
260
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/allowDeselect.html) -->
|
|
261
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/allowDeselect.html -->
|
|
262
|
+
|
|
263
|
+
```html
|
|
264
|
+
<auro-menu allowDeselect>
|
|
265
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
266
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
267
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
268
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
269
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
270
|
+
</auro-menu>
|
|
271
|
+
```
|
|
272
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
273
|
+
</auro-accordion>
|
|
274
|
+
|
|
118
275
|
#### noCheckmark<a name="noCheckmark"></a>
|
|
119
276
|
Applying the `noCheckmark` attribute will prevent the check icon from being shown on the selected option. The left padding to reserve space for the checkmark is also removed.
|
|
120
277
|
|
|
@@ -310,8 +467,17 @@ export function auroMenuMatchWordExample() {
|
|
|
310
467
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
311
468
|
</auro-accordion>
|
|
312
469
|
|
|
313
|
-
### Multi
|
|
314
|
-
The `auro-menu` supports a multi-select option. To use, place the `multiselect` attribute on the `<auro-menu>` element tag
|
|
470
|
+
### Multi-Select<a name="multiSelect"></a>
|
|
471
|
+
The `auro-menu` supports a multi-select option. To use, place the `multiselect` attribute on the `<auro-menu>` element tag or update the `multiselect` property programmatically.
|
|
472
|
+
|
|
473
|
+
In multi-select mode, the `value` property will always return a valid JSON string that contains an array of selected values, e.g. `'["stops","duration","arrival"]'`, when accessed.
|
|
474
|
+
|
|
475
|
+
The value of the menu may be set via multiple methods when in multi-select mode:
|
|
476
|
+
- Programmatically or via attribute by passing a valid JSON string that can be parsed using `JSON.parse`.
|
|
477
|
+
- Programmatically or via attribute by passing a single matching value in a string, e.g. `"stops"`.
|
|
478
|
+
- Programmatically by passing an array of string values, e.g. `["stops","duration","arrival"]`.
|
|
479
|
+
|
|
480
|
+
_Note: Other methods of setting the value may work but are not officially supported and may stop working unexpectedly._
|
|
315
481
|
|
|
316
482
|
<div class="exampleWrapper">
|
|
317
483
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multiSelect.html) -->
|
|
@@ -342,6 +508,85 @@ The `auro-menu` supports a multi-select option. To use, place the `multiselect`
|
|
|
342
508
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
343
509
|
</auro-accordion>
|
|
344
510
|
|
|
511
|
+
#### Optional Flag - `selectAllMatchingOptions`
|
|
512
|
+
|
|
513
|
+
When this flag is set on the `auro-menu` tag, when the value is set, any option with a matching key will be selected, even when multiple options with that key exist.
|
|
514
|
+
|
|
515
|
+
If not set, only the first matching option will be selected.
|
|
516
|
+
|
|
517
|
+
<div class="exampleWrapper">
|
|
518
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/selectAllMatchingOptions.html) -->
|
|
519
|
+
<!-- The below content is automatically added from ./../apiExamples/selectAllMatchingOptions.html -->
|
|
520
|
+
<p>With <code>selectAllMatchingOptions</code> enabled:</p>
|
|
521
|
+
<auro-button id="selectAllBtn">Set <code>menu.value</code> to <code>'stops'</code></auro-button>
|
|
522
|
+
<auro-button id="resetAllBtn">Reset Menu</auro-button>
|
|
523
|
+
<auro-menu multiselect selectAllMatchingOptions id="selectAllMenu">
|
|
524
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
525
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
526
|
+
<hr>
|
|
527
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
528
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
529
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
530
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
531
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
532
|
+
</auro-menu>
|
|
533
|
+
<br/>
|
|
534
|
+
<br/>
|
|
535
|
+
<br/>
|
|
536
|
+
<p>Without <code>selectAllMatchingOptions</code> enabled:</p>
|
|
537
|
+
<auro-button id="selectFirstBtn">Set <code>menu.value</code> to <code>'stops'</code></auro-button>
|
|
538
|
+
<auro-button id="resetFirstBtn">Reset Menu</auro-button>
|
|
539
|
+
<auro-menu multiselect id="selectFirstMenu">
|
|
540
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
541
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
542
|
+
<hr>
|
|
543
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
544
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
545
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
546
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
547
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
548
|
+
</auro-menu>
|
|
549
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
550
|
+
</div>
|
|
551
|
+
<auro-accordion alignRight>
|
|
552
|
+
<span slot="trigger">See code</span>
|
|
553
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/selectAllMatchingOptions.html) -->
|
|
554
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/selectAllMatchingOptions.html -->
|
|
555
|
+
|
|
556
|
+
```html
|
|
557
|
+
<p>With <code>selectAllMatchingOptions</code> enabled:</p>
|
|
558
|
+
<auro-button id="selectAllBtn">Set <code>menu.value</code> to <code>'stops'</code></auro-button>
|
|
559
|
+
<auro-button id="resetAllBtn">Reset Menu</auro-button>
|
|
560
|
+
<auro-menu multiselect selectAllMatchingOptions id="selectAllMenu">
|
|
561
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
562
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
563
|
+
<hr>
|
|
564
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
565
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
566
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
567
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
568
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
569
|
+
</auro-menu>
|
|
570
|
+
<br/>
|
|
571
|
+
<br/>
|
|
572
|
+
<br/>
|
|
573
|
+
<p>Without <code>selectAllMatchingOptions</code> enabled:</p>
|
|
574
|
+
<auro-button id="selectFirstBtn">Set <code>menu.value</code> to <code>'stops'</code></auro-button>
|
|
575
|
+
<auro-button id="resetFirstBtn">Reset Menu</auro-button>
|
|
576
|
+
<auro-menu multiselect id="selectFirstMenu">
|
|
577
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
578
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
579
|
+
<hr>
|
|
580
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
581
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
582
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
583
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
584
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
585
|
+
</auro-menu>
|
|
586
|
+
```
|
|
587
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
588
|
+
</auro-accordion>
|
|
589
|
+
|
|
345
590
|
#### Loading<a name="loading"></a>
|
|
346
591
|
While content is loading, the menu can either remain empty or display a loading placeholder
|
|
347
592
|
|