@aurodesignsystem/auro-formkit 1.6.0-beta.9 → 2.0.0-beta.10
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/.turbo/cache/026e4d886ba97e63-meta.json +1 -0
- package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
- package/.turbo/cache/080ca6155e637d5d-meta.json +1 -0
- package/.turbo/cache/080ca6155e637d5d.tar.zst +0 -0
- package/.turbo/cache/0b115e30ff606299-meta.json +1 -0
- package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -0
- package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -0
- package/.turbo/cache/18129dba20f51b6b.tar.zst +0 -0
- package/.turbo/cache/1c630fb3411e4a41-meta.json +1 -0
- package/.turbo/cache/1c630fb3411e4a41.tar.zst +0 -0
- package/.turbo/cache/24b19ac5895e5dd6-meta.json +1 -0
- package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -0
- package/.turbo/cache/2787020e69f50af2.tar.zst +0 -0
- package/.turbo/cache/29b72c73cbccb53d-meta.json +1 -0
- package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -0
- package/.turbo/cache/2c0d681132c153dd.tar.zst +0 -0
- package/.turbo/cache/3e647c5863d32e6f-meta.json +1 -0
- package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -0
- package/.turbo/cache/4006a206400d5c7b.tar.zst +0 -0
- package/.turbo/cache/43f5206cc4e69b44-meta.json +1 -0
- package/.turbo/cache/43f5206cc4e69b44.tar.zst +0 -0
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -0
- package/.turbo/cache/492dda333b8d15f1.tar.zst +0 -0
- package/.turbo/cache/4a85ec226b585fd5-meta.json +1 -0
- package/.turbo/cache/4a85ec226b585fd5.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -0
- package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
- package/.turbo/cache/50a29c70b93c57dd-meta.json +1 -0
- package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -0
- package/.turbo/cache/51eaa58d5c167de8.tar.zst +0 -0
- package/.turbo/cache/56455145cd768755-meta.json +1 -0
- package/.turbo/cache/56455145cd768755.tar.zst +0 -0
- package/.turbo/cache/5c06332cf9f132da-meta.json +1 -0
- package/.turbo/cache/5c06332cf9f132da.tar.zst +0 -0
- package/.turbo/cache/5e613afc6868d0e2-meta.json +1 -0
- package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
- package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -0
- package/.turbo/cache/60ad74320c682a2b.tar.zst +0 -0
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -0
- package/.turbo/cache/61e218aba69cff58.tar.zst +0 -0
- package/.turbo/cache/639dac15b979bedc-meta.json +1 -0
- package/.turbo/cache/639dac15b979bedc.tar.zst +0 -0
- package/.turbo/cache/664c2e08614fd212-meta.json +1 -0
- package/.turbo/cache/664c2e08614fd212.tar.zst +0 -0
- package/.turbo/cache/6c51b0ebfc086faa-meta.json +1 -0
- package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
- package/.turbo/cache/7216d994164825fb-meta.json +1 -0
- package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -0
- package/.turbo/cache/77da375a012de9d0.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -0
- package/.turbo/cache/7bf2b06a479d0b30.tar.zst +0 -0
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -0
- package/.turbo/cache/7c9ca6163e61285c.tar.zst +0 -0
- package/.turbo/cache/83a167e135cb431a-meta.json +1 -0
- package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
- package/.turbo/cache/8af27c076dc010c3-meta.json +1 -0
- package/.turbo/cache/8af27c076dc010c3.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -0
- package/.turbo/cache/8bb856bd31b5b479.tar.zst +0 -0
- package/.turbo/cache/953c8216249d3509-meta.json +1 -0
- package/.turbo/cache/953c8216249d3509.tar.zst +0 -0
- package/.turbo/cache/95a5e76ffd8c5110-meta.json +1 -0
- package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -0
- package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
- package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +1 -0
- package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
- package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +1 -0
- package/.turbo/cache/b22ca87b2f7f9cc2.tar.zst +0 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f.tar.zst +0 -0
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -0
- package/.turbo/cache/b6a202cc85cb61a0.tar.zst +0 -0
- package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +1 -0
- package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -0
- package/.turbo/cache/be0b95293ea517cc.tar.zst +0 -0
- package/.turbo/cache/c2b51643f886a493-meta.json +1 -0
- package/.turbo/cache/c2b51643f886a493.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -0
- package/.turbo/cache/c44efc9e4ddd8a0e.tar.zst +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -0
- package/.turbo/cache/c6c6411199b68170.tar.zst +0 -0
- package/.turbo/cache/c74d369a0475b124-meta.json +1 -0
- package/.turbo/cache/c74d369a0475b124.tar.zst +0 -0
- package/.turbo/cache/c7f5a276ddb73cf7-meta.json +1 -0
- package/.turbo/cache/c7f5a276ddb73cf7.tar.zst +0 -0
- package/.turbo/cache/c96933d40404e4c8-meta.json +1 -0
- package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c.tar.zst +0 -0
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -0
- package/.turbo/cache/d775555355d6b8fc.tar.zst +0 -0
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -0
- package/.turbo/cache/d7c3007be148d2a1.tar.zst +0 -0
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
- package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -0
- package/.turbo/cache/e62cfee068e3ef36.tar.zst +0 -0
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
- package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
- package/.turbo/cache/eb1dbe885532c1dc-meta.json +1 -0
- package/.turbo/cache/eb1dbe885532c1dc.tar.zst +0 -0
- package/.turbo/cache/f1f6744948f1b18f-meta.json +1 -0
- package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
- package/.turbo/cache/feefbc25d550c1cd-meta.json +1 -0
- package/.turbo/cache/feefbc25d550c1cd.tar.zst +0 -0
- package/.turbo/cache/ff4dbfffc29255ab-meta.json +1 -0
- package/.turbo/cache/ff4dbfffc29255ab.tar.zst +0 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +175 -0
- package/README.md +59 -59
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
- package/components/checkbox/.turbo/turbo-build.log +23 -21
- package/components/checkbox/.turbo/turbo-bundler.log +4 -4
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/checkbox/.turbo/turbo-types.log +1 -1
- package/components/checkbox/README.md +26 -34
- package/components/checkbox/demo/api.html +6 -1
- package/components/checkbox/demo/api.js +16 -0
- package/components/checkbox/demo/api.md +120 -61
- package/components/checkbox/demo/api.min.js +261 -90
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +236 -90
- package/components/checkbox/dist/auro-checkbox-group.d.ts +41 -17
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +25 -11
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +236 -90
- package/components/checkbox/package.json +1 -1
- package/components/checkbox/src/auro-checkbox-group.js +64 -23
- package/components/checkbox/src/auro-checkbox.js +38 -12
- package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
- package/components/combobox/.turbo/turbo-build.log +25 -23
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/combobox/README.md +21 -26
- package/components/combobox/demo/api.js +4 -2
- package/components/combobox/demo/api.md +77 -16
- package/components/combobox/demo/api.min.js +890 -447
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +881 -447
- package/components/combobox/dist/auro-combobox.d.ts +16 -5
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/dropdownVersion.d.ts +3 -0
- package/components/combobox/dist/dropdownVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.js +874 -408
- package/components/combobox/dist/inputVersion.d.ts +3 -0
- package/components/combobox/dist/inputVersion.d.ts.map +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +863 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +109 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +45 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +110 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +106 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +8 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +813 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +134 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +39 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +30 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +46 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +155 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +25 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +267 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +36 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +50 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +395 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +255 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +663 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +31 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +22 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +19 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +32 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +59 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +54 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +37 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +5 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +123 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +16 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +42 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +142 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +151 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +188 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +176 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +249 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +49 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +29 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +76 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +9 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +96 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +13 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +293 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +115 -0
- package/components/combobox/node_modules/chalk/package.json +3 -3
- package/components/combobox/node_modules/chalk/readme.md +25 -53
- package/components/combobox/node_modules/chalk/source/index.d.ts +6 -1
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +6 -2
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +2 -2
- package/components/combobox/package.json +8 -8
- package/components/combobox/src/auro-combobox.js +85 -75
- package/components/combobox/src/dropdownVersion.js +1 -0
- package/components/combobox/src/inputVersion.js +1 -0
- package/components/counter/.turbo/turbo-build$colon$sass.log +179 -7
- package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
- package/components/counter/.turbo/turbo-build.log +288 -14
- package/components/counter/.turbo/turbo-bundler.log +4 -4
- package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/counter/.turbo/turbo-sass$colon$render.log +39 -3
- package/components/counter/.turbo/turbo-types.log +1 -1
- package/components/counter/README.md +188 -0
- package/components/counter/demo/api.md +98 -1016
- package/components/counter/demo/api.min.js +1670 -32
- package/components/counter/demo/index.js +2 -1
- package/components/counter/demo/index.md +194 -0
- package/components/counter/demo/index.min.js +1702 -19
- package/components/counter/dist/auro-counter-button.d.ts +13 -0
- package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
- package/components/counter/dist/auro-counter-group.d.ts +77 -6
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +78 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/dropdownVersion.d.ts +3 -0
- package/components/counter/dist/dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/iconVersion.d.ts +3 -0
- package/components/counter/dist/iconVersion.d.ts.map +1 -0
- package/components/counter/dist/index.js +1670 -32
- package/components/counter/dist/styles/color-css.d.ts +3 -0
- package/components/counter/dist/styles/color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/counter/package.json +9 -3
- package/components/counter/src/auro-counter-button.js +42 -0
- package/components/counter/src/auro-counter-group.js +150 -21
- package/components/counter/src/auro-counter.js +272 -12
- package/components/counter/src/dropdownVersion.js +1 -0
- package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/counter/src/iconVersion.js +1 -0
- package/components/counter/src/index.js +1 -1
- package/components/counter/src/styles/color-css.js +2 -0
- package/components/counter/src/styles/color.css +25 -0
- package/components/counter/src/styles/color.scss +44 -0
- package/components/counter/src/styles/counter-button-color-css.js +2 -0
- package/components/counter/src/styles/counter-button-color.css +14 -0
- package/components/counter/src/styles/counter-button-color.scss +29 -0
- package/components/counter/src/styles/counter-button-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens.css +7 -0
- package/components/counter/src/styles/counter-button-tokens.scss +9 -0
- package/components/counter/src/styles/counter-button.css +187 -0
- package/components/counter/src/styles/counter-button.scss +83 -0
- package/components/counter/src/styles/counter-group-color-css.js +2 -0
- package/components/counter/src/styles/counter-group-color.css +4 -0
- package/components/counter/src/styles/counter-group-color.scss +19 -0
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +13 -1
- package/components/counter/src/styles/counter-group.scss +14 -1
- package/components/counter/src/styles/style-css.js +1 -1
- package/components/counter/src/styles/style.css +43 -1
- package/components/counter/src/styles/style.scss +48 -2
- package/components/counter/src/styles/tokens-css.js +2 -0
- package/components/counter/src/styles/tokens.css +11 -0
- package/components/counter/src/styles/tokens.scss +24 -0
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +34 -34
- package/components/datepicker/.turbo/turbo-build.log +62 -59
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
- package/components/datepicker/README.md +21 -26
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +216 -125
- package/components/datepicker/demo/api.min.js +1111 -598
- package/components/datepicker/demo/index.md +1 -1
- package/components/datepicker/demo/index.min.js +1102 -598
- package/components/datepicker/dist/auro-datepicker.d.ts +94 -80
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +1102 -598
- package/components/datepicker/dist/inputVersion.d.ts +3 -0
- package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/package.json +4 -4
- package/components/datepicker/src/auro-datepicker.js +154 -106
- package/components/datepicker/src/dropdownVersion.js +1 -0
- package/components/datepicker/src/inputVersion.js +1 -0
- package/components/datepicker/src/popoverVersion.js +1 -1
- package/components/datepicker/src/styles/color-cell-css.js +1 -1
- package/components/datepicker/src/styles/color-cell.css +1 -1
- package/components/datepicker/src/styles/color-cell.scss +1 -1
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
- package/components/dropdown/.turbo/turbo-build$colon$version.log +1 -1
- package/components/dropdown/.turbo/turbo-build.log +19 -20
- package/components/dropdown/.turbo/turbo-bundler.log +4 -4
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/dropdown/.turbo/turbo-types.log +1 -1
- package/components/dropdown/README.md +18 -26
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +241 -105
- package/components/dropdown/demo/index.min.js +241 -105
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +241 -105
- package/components/dropdown/package.json +2 -2
- package/components/dropdown/src/auro-dropdown.js +156 -41
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/iconVersion.js +1 -1
- package/components/dropdown/src/styles/bibStyles-css.js +1 -1
- package/components/dropdown/src/styles/bibStyles.css +0 -5
- package/components/dropdown/src/styles/bibStyles.scss +0 -7
- package/components/dropdown/src/styles/color-css.js +1 -1
- package/components/dropdown/src/styles/color.css +6 -7
- package/components/dropdown/src/styles/color.scss +7 -7
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +5 -0
- package/components/dropdown/src/styles/style.scss +6 -0
- package/components/form/.turbo/turbo-build$colon$sass.log +6 -6
- package/components/form/.turbo/turbo-build$colon$version.log +1 -1
- package/components/form/.turbo/turbo-build.log +17 -18
- package/components/form/.turbo/turbo-bundler.log +4 -4
- package/components/form/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/form/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/form/.turbo/turbo-types.log +1 -1
- package/components/form/README.md +18 -26
- package/components/form/demo/api.min.js +4 -4
- package/components/form/demo/index.min.js +4 -4
- package/components/form/dist/index.js +4 -4
- package/components/form/package.json +1 -1
- package/components/input/.turbo/turbo-build$colon$sass.log +68 -18
- package/components/input/.turbo/turbo-build$colon$version.log +1 -1
- package/components/input/.turbo/turbo-build.log +90 -40
- package/components/input/.turbo/turbo-bundler.log +4 -4
- package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/input/.turbo/turbo-sass$colon$render.log +15 -9
- package/components/input/.turbo/turbo-types.log +1 -1
- package/components/input/README.md +18 -28
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +234 -351
- package/components/input/demo/api.min.js +428 -178
- package/components/input/demo/index.md +11 -61
- package/components/input/demo/index.min.js +416 -175
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +158 -97
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +416 -175
- package/components/input/dist/styles/mixins-css.d.ts +3 -0
- package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
- package/components/input/package.json +3 -3
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +272 -111
- package/components/input/src/buttonVersion.js +1 -1
- package/components/input/src/iconVersion.js +1 -1
- package/components/input/src/styles/borders.scss +3 -19
- package/components/input/src/styles/color.css +1 -2
- package/components/input/src/styles/color.scss +3 -10
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +14 -1
- package/components/input/src/styles/input.scss +25 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +4 -4
- package/components/input/src/styles/label.scss +4 -8
- package/components/input/src/styles/mixins-css.js +2 -0
- package/components/input/src/styles/mixins.css +1 -0
- package/components/input/src/styles/mixins.scss +45 -0
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +13 -5
- package/components/input/src/styles/notificationIcons.scss +17 -11
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +31 -13
- package/components/input/src/styles/style.scss +0 -4
- package/components/menu/.turbo/turbo-build$colon$sass.log +9 -9
- package/components/menu/.turbo/turbo-build$colon$version.log +1 -1
- package/components/menu/.turbo/turbo-build.log +20 -21
- package/components/menu/.turbo/turbo-bundler.log +4 -4
- package/components/menu/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/menu/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/menu/.turbo/turbo-types.log +1 -1
- package/components/menu/README.md +18 -26
- package/components/menu/demo/api.md +1 -5
- package/components/menu/demo/api.min.js +12 -44
- package/components/menu/demo/index.min.js +12 -44
- package/components/menu/dist/auro-menu.d.ts +1 -5
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/auro-menuoption.d.ts +0 -1
- package/components/menu/dist/auro-menuoption.d.ts.map +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +12 -44
- package/components/menu/package.json +2 -2
- package/components/menu/src/auro-menu.js +1 -33
- package/components/menu/src/auro-menuoption.js +1 -2
- package/components/menu/src/iconVersion.js +1 -1
- package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
- package/components/radio/.turbo/turbo-build.log +26 -24
- package/components/radio/.turbo/turbo-bundler.log +4 -4
- package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/radio/.turbo/turbo-types.log +1 -1
- package/components/radio/README.md +18 -26
- package/components/radio/demo/api.html +1 -0
- package/components/radio/demo/api.js +2 -0
- package/components/radio/demo/api.md +60 -4
- package/components/radio/demo/api.min.js +159 -62
- package/components/radio/demo/index.min.js +150 -62
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +5 -0
- package/components/radio/dist/auro-radio.d.ts.map +1 -1
- package/components/radio/dist/index.js +150 -62
- package/components/radio/package.json +1 -1
- package/components/radio/src/auro-radio-group.js +6 -6
- package/components/radio/src/auro-radio.js +9 -0
- package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
- package/components/select/.turbo/turbo-build.log +37 -37
- package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
- package/components/select/README.md +21 -42
- package/components/select/demo/api.js +6 -2
- package/components/select/demo/api.md +165 -163
- package/components/select/demo/api.min.js +524 -337
- package/components/select/demo/index.md +101 -59
- package/components/select/demo/index.min.js +504 -333
- package/components/select/dist/auro-select.d.ts +65 -48
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/dropdownVersion.d.ts +3 -0
- package/components/select/dist/dropdownVersion.d.ts.map +1 -0
- package/components/select/dist/index.js +494 -278
- package/components/select/package.json +3 -3
- package/components/select/src/auro-select.js +105 -116
- package/components/select/src/dropdownVersion.js +1 -0
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +21 -21
- package/packages/build-tools/src/docProcessor.mjs +37 -8
- package/packages/form-validation/src/validation.js +129 -50
- package/packages/utils/package.json +12 -0
- package/packages/utils/src/iconUtil.js +25 -0
- package/packages/utils/src/index.js +1 -0
- package/turbo.json +8 -8
- package/.turbo/cache/0008b92c8752bf75-meta.json +0 -1
- package/.turbo/cache/0008b92c8752bf75.tar.zst +0 -0
- package/.turbo/cache/00cb38bef1105dac-meta.json +0 -1
- package/.turbo/cache/00cb38bef1105dac.tar.zst +0 -0
- package/.turbo/cache/0157ec8abdaf2a9c-meta.json +0 -1
- package/.turbo/cache/0157ec8abdaf2a9c.tar.zst +0 -0
- package/.turbo/cache/0636e9cedc83238b-meta.json +0 -1
- package/.turbo/cache/0636e9cedc83238b.tar.zst +0 -0
- package/.turbo/cache/06f476671015e973-meta.json +0 -1
- package/.turbo/cache/06f476671015e973.tar.zst +0 -0
- package/.turbo/cache/09df74d672102662-meta.json +0 -1
- package/.turbo/cache/09df74d672102662.tar.zst +0 -0
- package/.turbo/cache/0cd109fb3183c2e6-meta.json +0 -1
- package/.turbo/cache/0cd109fb3183c2e6.tar.zst +0 -0
- package/.turbo/cache/17c429ade621ffcb-meta.json +0 -1
- package/.turbo/cache/17c429ade621ffcb.tar.zst +0 -0
- package/.turbo/cache/1c47128a0e12fcfa-meta.json +0 -1
- package/.turbo/cache/1c47128a0e12fcfa.tar.zst +0 -0
- package/.turbo/cache/1db02f756ce85784-meta.json +0 -1
- package/.turbo/cache/1db02f756ce85784.tar.zst +0 -0
- package/.turbo/cache/21705fa179d5f820-meta.json +0 -1
- package/.turbo/cache/21705fa179d5f820.tar.zst +0 -0
- package/.turbo/cache/249d9ba3ee6aa1cb-meta.json +0 -1
- package/.turbo/cache/249d9ba3ee6aa1cb.tar.zst +0 -0
- package/.turbo/cache/2666b96bfcf4e9cd-meta.json +0 -1
- package/.turbo/cache/2666b96bfcf4e9cd.tar.zst +0 -0
- package/.turbo/cache/2778d5e895240cd1-meta.json +0 -1
- package/.turbo/cache/2778d5e895240cd1.tar.zst +0 -0
- package/.turbo/cache/300b59df2de12b46-meta.json +0 -1
- package/.turbo/cache/300b59df2de12b46.tar.zst +0 -0
- package/.turbo/cache/31729e74fccaafb0-meta.json +0 -1
- package/.turbo/cache/31729e74fccaafb0.tar.zst +0 -0
- package/.turbo/cache/32702694d62a08ac-meta.json +0 -1
- package/.turbo/cache/32702694d62a08ac.tar.zst +0 -0
- package/.turbo/cache/3482a3cba9a51c2d-meta.json +0 -1
- package/.turbo/cache/3482a3cba9a51c2d.tar.zst +0 -0
- package/.turbo/cache/3a9d73752f23a40a-meta.json +0 -1
- package/.turbo/cache/3a9d73752f23a40a.tar.zst +0 -0
- package/.turbo/cache/3afe2e6f714a4fcb-meta.json +0 -1
- package/.turbo/cache/3afe2e6f714a4fcb.tar.zst +0 -0
- package/.turbo/cache/408ea1754276298c-meta.json +0 -1
- package/.turbo/cache/408ea1754276298c.tar.zst +0 -0
- package/.turbo/cache/42066c793c3816f3-meta.json +0 -1
- package/.turbo/cache/42066c793c3816f3.tar.zst +0 -0
- package/.turbo/cache/4bec46ffff6fd2e8-meta.json +0 -1
- package/.turbo/cache/4bec46ffff6fd2e8.tar.zst +0 -0
- package/.turbo/cache/50b275350abe14dd-meta.json +0 -1
- package/.turbo/cache/50b275350abe14dd.tar.zst +0 -0
- package/.turbo/cache/51078a087b52c65e-meta.json +0 -1
- package/.turbo/cache/51078a087b52c65e.tar.zst +0 -0
- package/.turbo/cache/593ddf689673e305-meta.json +0 -1
- package/.turbo/cache/593ddf689673e305.tar.zst +0 -0
- package/.turbo/cache/64e4f18395bd4461-meta.json +0 -1
- package/.turbo/cache/64e4f18395bd4461.tar.zst +0 -0
- package/.turbo/cache/68843ecab6e09320-meta.json +0 -1
- package/.turbo/cache/68843ecab6e09320.tar.zst +0 -0
- package/.turbo/cache/7419ef01dc18b433-meta.json +0 -1
- package/.turbo/cache/7419ef01dc18b433.tar.zst +0 -0
- package/.turbo/cache/748faca09d14fea7-meta.json +0 -1
- package/.turbo/cache/748faca09d14fea7.tar.zst +0 -0
- package/.turbo/cache/75495b0bbd6c06a7-meta.json +0 -1
- package/.turbo/cache/75495b0bbd6c06a7.tar.zst +0 -0
- package/.turbo/cache/7a6a8af4392c4b05-meta.json +0 -1
- package/.turbo/cache/7a6a8af4392c4b05.tar.zst +0 -0
- package/.turbo/cache/7e81141e0140dd3a-meta.json +0 -1
- package/.turbo/cache/7e81141e0140dd3a.tar.zst +0 -0
- package/.turbo/cache/7eb50d96639e6dd4-meta.json +0 -1
- package/.turbo/cache/7eb50d96639e6dd4.tar.zst +0 -0
- package/.turbo/cache/83bb78fec13808d0-meta.json +0 -1
- package/.turbo/cache/83bb78fec13808d0.tar.zst +0 -0
- package/.turbo/cache/8605f60efb7d3957-meta.json +0 -1
- package/.turbo/cache/8605f60efb7d3957.tar.zst +0 -0
- package/.turbo/cache/892a90b62716ded5-meta.json +0 -1
- package/.turbo/cache/892a90b62716ded5.tar.zst +0 -0
- package/.turbo/cache/8cac06ca809bd2b1-meta.json +0 -1
- package/.turbo/cache/8cac06ca809bd2b1.tar.zst +0 -0
- package/.turbo/cache/9a908bf8f82c84a6-meta.json +0 -1
- package/.turbo/cache/9a908bf8f82c84a6.tar.zst +0 -0
- package/.turbo/cache/9ed3089ffd7d0c00-meta.json +0 -1
- package/.turbo/cache/9ed3089ffd7d0c00.tar.zst +0 -0
- package/.turbo/cache/a3a879aea25debf8-meta.json +0 -1
- package/.turbo/cache/a3a879aea25debf8.tar.zst +0 -0
- package/.turbo/cache/a8dbafaf6177f677-meta.json +0 -1
- package/.turbo/cache/a8dbafaf6177f677.tar.zst +0 -0
- package/.turbo/cache/a8f6418b830ef0ba-meta.json +0 -1
- package/.turbo/cache/a8f6418b830ef0ba.tar.zst +0 -0
- package/.turbo/cache/b37b0eb5597e160f-meta.json +0 -1
- package/.turbo/cache/b37b0eb5597e160f.tar.zst +0 -0
- package/.turbo/cache/b7e7a8c425673f7c-meta.json +0 -1
- package/.turbo/cache/b7e7a8c425673f7c.tar.zst +0 -0
- package/.turbo/cache/bc8eed3d7216f5b7-meta.json +0 -1
- package/.turbo/cache/bc8eed3d7216f5b7.tar.zst +0 -0
- package/.turbo/cache/bde11c3029373459-meta.json +0 -1
- package/.turbo/cache/bde11c3029373459.tar.zst +0 -0
- package/.turbo/cache/c8e5fe6aec4479f5-meta.json +0 -1
- package/.turbo/cache/c8e5fe6aec4479f5.tar.zst +0 -0
- package/.turbo/cache/d0e874a9a71c9468-meta.json +0 -1
- package/.turbo/cache/d0e874a9a71c9468.tar.zst +0 -0
- package/.turbo/cache/d61b4e1bde4c0a12-meta.json +0 -1
- package/.turbo/cache/d61b4e1bde4c0a12.tar.zst +0 -0
- package/.turbo/cache/db6dedc0e7a12575-meta.json +0 -1
- package/.turbo/cache/db6dedc0e7a12575.tar.zst +0 -0
- package/.turbo/cache/de9737607345ec54-meta.json +0 -1
- package/.turbo/cache/de9737607345ec54.tar.zst +0 -0
- package/.turbo/cache/e234aa902b2c5b30-meta.json +0 -1
- package/.turbo/cache/e234aa902b2c5b30.tar.zst +0 -0
- package/.turbo/cache/e541225f46f7cf86-meta.json +0 -1
- package/.turbo/cache/e541225f46f7cf86.tar.zst +0 -0
- package/.turbo/cache/e67ac30b07d9e800-meta.json +0 -1
- package/.turbo/cache/e67ac30b07d9e800.tar.zst +0 -0
- package/.turbo/cache/e7244fdd3397eba7-meta.json +0 -1
- package/.turbo/cache/e7244fdd3397eba7.tar.zst +0 -0
- package/.turbo/cache/e7cf2cc625bd92b3-meta.json +0 -1
- package/.turbo/cache/e7cf2cc625bd92b3.tar.zst +0 -0
- package/.turbo/cache/e89a401ebdda3fc2-meta.json +0 -1
- package/.turbo/cache/e89a401ebdda3fc2.tar.zst +0 -0
- package/components/dropdown/dist/floatingUI.d.mts +0 -68
- package/components/dropdown/dist/floatingUI.d.mts.map +0 -1
- package/components/dropdown/src/floatingUI.mjs +0 -381
- package/components/select/demo/alertValue.js +0 -6
|
@@ -32,10 +32,6 @@ function valueExample() {
|
|
|
32
32
|
document.querySelector('#invalidValueExampleBtn').addEventListener('click', () => {
|
|
33
33
|
valueExample.value = 'flight course';
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
document.querySelector('#undefinedValueExampleBtn').addEventListener('click', () => {
|
|
37
|
-
valueExample.value = undefined;
|
|
38
|
-
});
|
|
39
35
|
}
|
|
40
36
|
|
|
41
37
|
function valueExtractionExample() {
|
|
@@ -50,6 +46,16 @@ function valueExtractionExample() {
|
|
|
50
46
|
});
|
|
51
47
|
}
|
|
52
48
|
|
|
49
|
+
function valueAlertExample() {
|
|
50
|
+
const select = document.querySelector('#valueAlert');
|
|
51
|
+
const menu = document.querySelector('#valueAlertMenu');
|
|
52
|
+
|
|
53
|
+
menu.addEventListener('auroMenu-selectedOption', () => {
|
|
54
|
+
console.warn('Select value changed to:', select.value);
|
|
55
|
+
console.warn('Select optionSelected changed to:', select.optionSelected);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
function inDialogExample() {
|
|
54
60
|
document.querySelector("#select-dialog-opener").addEventListener("click", () => {
|
|
55
61
|
const dialog = document.querySelector("#select-dialog");
|
|
@@ -57,6 +63,14 @@ function inDialogExample() {
|
|
|
57
63
|
});
|
|
58
64
|
}
|
|
59
65
|
|
|
66
|
+
function resetStateExample() {
|
|
67
|
+
const elem = document.querySelector('#resetStateExample');
|
|
68
|
+
|
|
69
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
70
|
+
elem.reset();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
60
74
|
function auroMenuLoadingExample() {
|
|
61
75
|
const select = document.querySelector("#loadingExample");
|
|
62
76
|
const menu = document.querySelector("#loadingExampleSelectMenu");
|
|
@@ -93,33 +107,46 @@ function auroMenuLoadingExample() {
|
|
|
93
107
|
* Copyright 2019 Google LLC
|
|
94
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
109
|
*/
|
|
96
|
-
const t$5=globalThis,e$
|
|
110
|
+
const t$5=globalThis,e$9=t$5.ShadowRoot&&(undefined===t$5.ShadyCSS||t$5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$5=Symbol(),o$9=new WeakMap;let n$7 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$9&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$9.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$9.set(s,t));}return t}toString(){return this.cssText}};const r$7=t=>new n$7("string"==typeof t?t:t+"",undefined,s$5),i$b=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$7(o,t,s$5)},S$3=(s,o)=>{if(e$9)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$5.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$5=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$7(e)})(t):t;
|
|
97
111
|
|
|
98
112
|
/**
|
|
99
113
|
* @license
|
|
100
114
|
* Copyright 2017 Google LLC
|
|
101
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
|
-
*/const{is:i$a,defineProperty:e$
|
|
116
|
+
*/const{is:i$a,defineProperty:e$8,getOwnPropertyDescriptor:r$6,getOwnPropertyNames:h$3,getOwnPropertySymbols:o$8,getPrototypeOf:n$6}=Object,a$5=globalThis,c$4=a$5.trustedTypes,l$5=c$4?c$4.emptyScript:"",p$3=a$5.reactiveElementPolyfillSupport,d$3=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$5:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$3=(t,s)=>!i$a(t,s),y$3={attribute:true,type:String,converter:u$5,reflect:false,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$5.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$3){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$8(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$6(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$3}static _$Ei(){if(this.hasOwnProperty(d$3("elementProperties")))return;const t=n$6(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$3("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$3("properties"))){const t=this.properties,s=[...h$3(t),...o$8(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$5(s));}else undefined!==s&&i.push(c$5(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$3(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$5).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$5;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$3)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$3("elementProperties")]=new Map,b$1[d$3("finalized")]=new Map,p$3?.({ReactiveElement:b$1}),(a$5.reactiveElementVersions??=[]).push("2.0.4");
|
|
103
117
|
|
|
104
118
|
/**
|
|
105
119
|
* @license
|
|
106
120
|
* Copyright 2017 Google LLC
|
|
107
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
122
|
*/
|
|
109
|
-
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):
|
|
123
|
+
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$7="$lit$",h$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$2,n$5=`<${o$7}>`,r$5=document,l$4=()=>r$5.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$2="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$2=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$2(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$5.createTreeWalker(r$5,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$4?s$4.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$2;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$2?"!--"===u[1]?c=v$1:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):undefined!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$2,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$1:'"'===u[3]?g$1:p$2):c===g$1||c===p$2?c=m$1:c===v$1||c===_$1?c=f$2:(c=m$1,r=undefined);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$2?s+n$5:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$2+x):s+h$2+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$2),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$2)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$2),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$2,t+1));)d.push({type:7,index:c}),t+=h$2.length-1;}c++;}}static createElement(t,i){const s=r$5.createElement("template");return s.innerHTML=t,s}};function S$2(t,i,s=t,e){if(i===T$1)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$2(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$5).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$5,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$2(this,t,i),c$3(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$5.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return undefined===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$2(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$2(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?undefined:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$2(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$2(this,t);}};const j$1=t$4.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$4.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @license
|
|
127
|
+
* Copyright 2017 Google LLC
|
|
128
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
+
*/let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$8=globalThis.litElementPolyfillSupport;i$8?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
110
130
|
|
|
111
131
|
/**
|
|
112
132
|
* @license
|
|
113
133
|
* Copyright 2017 Google LLC
|
|
114
134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
-
*/
|
|
135
|
+
*/
|
|
136
|
+
const t$3={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @license
|
|
140
|
+
* Copyright 2018 Google LLC
|
|
141
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
142
|
+
*/const e$5=e$6(class extends i$7{constructor(t){if(super(t),t.type!==t$3.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
116
143
|
|
|
117
144
|
/**
|
|
118
145
|
* @license
|
|
119
146
|
* Copyright 2020 Google LLC
|
|
120
147
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
121
148
|
*/
|
|
122
|
-
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$3}),i$
|
|
149
|
+
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$3}),i$6=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3}),l$3=new Map,n$4=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$4(x$1);
|
|
123
150
|
|
|
124
151
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
125
152
|
// See LICENSE in the project root for license information.
|
|
@@ -201,25 +228,111 @@ class AuroFormValidation {
|
|
|
201
228
|
}
|
|
202
229
|
|
|
203
230
|
/**
|
|
204
|
-
*
|
|
231
|
+
* Resets the element to its initial state.
|
|
205
232
|
* @private
|
|
206
|
-
* @param {object} elem - HTML element to
|
|
233
|
+
* @param {object} elem - HTML element to reset.
|
|
207
234
|
* @returns {void}
|
|
208
235
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
236
|
+
reset(elem) {
|
|
237
|
+
elem.validity = undefined;
|
|
238
|
+
elem.value = undefined;
|
|
212
239
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
240
|
+
// Resets the second value of the datepicker in range state
|
|
241
|
+
if (elem.valueEnd) {
|
|
242
|
+
elem.valueEnd = undefined;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Resets selected option of element
|
|
246
|
+
if (elem.optionSelected) {
|
|
247
|
+
elem.optionSelected = undefined;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Runs validation to handle error attribute
|
|
251
|
+
this.validate(elem);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
256
|
+
*
|
|
257
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
258
|
+
* @returns {void}
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
262
|
+
* validateElementAttributes(inputElement);
|
|
263
|
+
*
|
|
264
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
265
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
266
|
+
*
|
|
267
|
+
* Validation rules:
|
|
268
|
+
* - input:
|
|
269
|
+
* - length:
|
|
270
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
271
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
272
|
+
* - pattern:
|
|
273
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
274
|
+
* - counter:
|
|
275
|
+
* - range:
|
|
276
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
277
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
278
|
+
*/
|
|
279
|
+
validateElementAttributes(elem) {
|
|
280
|
+
const validationRules = {
|
|
281
|
+
input: {
|
|
282
|
+
length: [
|
|
283
|
+
{
|
|
284
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
285
|
+
validity: 'tooShort',
|
|
286
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
290
|
+
validity: 'tooLong',
|
|
291
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
pattern: [
|
|
295
|
+
{
|
|
296
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
297
|
+
validity: 'patternMismatch',
|
|
298
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
counter: {
|
|
303
|
+
range: [
|
|
304
|
+
{
|
|
305
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
306
|
+
validity: 'rangeOverflow',
|
|
307
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
311
|
+
validity: 'rangeUnderflow',
|
|
312
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
let elementType;
|
|
319
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
320
|
+
elementType = 'input';
|
|
321
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
322
|
+
elementType = 'counter';
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
if (elementType) {
|
|
326
|
+
const rules = validationRules[elementType];
|
|
327
|
+
|
|
328
|
+
if (rules) {
|
|
329
|
+
Object.values(rules).flat().forEach(rule => {
|
|
330
|
+
if (rule.check(elem)) {
|
|
331
|
+
elem.validity = rule.validity;
|
|
332
|
+
elem.errorMessage = rule.message(elem);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
216
335
|
}
|
|
217
|
-
} else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
|
|
218
|
-
elem.validity = 'tooShort';
|
|
219
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
220
|
-
} else if (elem.value && elem.value.length > elem.maxLength) {
|
|
221
|
-
elem.validity = 'tooLong';
|
|
222
|
-
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
223
336
|
}
|
|
224
337
|
}
|
|
225
338
|
|
|
@@ -235,33 +348,32 @@ class AuroFormValidation {
|
|
|
235
348
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
236
349
|
|
|
237
350
|
if (!elem.value.match(emailRegex)) {
|
|
238
|
-
elem.validity = '
|
|
239
|
-
elem.
|
|
351
|
+
elem.validity = 'patternMismatch';
|
|
352
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
240
353
|
}
|
|
241
354
|
} else if (elem.type === 'credit-card') {
|
|
242
355
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
243
356
|
elem.validity = 'tooShort';
|
|
244
|
-
elem.
|
|
357
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
245
358
|
}
|
|
246
|
-
} else if (elem.type === 'number'
|
|
359
|
+
} else if (elem.type === 'number') {
|
|
247
360
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
248
361
|
elem.validity = 'rangeOverflow';
|
|
249
|
-
elem.
|
|
362
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
250
363
|
}
|
|
251
364
|
|
|
252
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
365
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
253
366
|
elem.validity = 'rangeUnderflow';
|
|
254
|
-
elem.
|
|
367
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
255
368
|
}
|
|
256
|
-
|
|
257
369
|
} else if (elem.type === 'month-day-year' ||
|
|
258
370
|
elem.type === 'month-year' ||
|
|
259
371
|
elem.type === 'month-fullYear' ||
|
|
260
372
|
elem.type === 'year-month-day'
|
|
261
373
|
) {
|
|
262
|
-
if (elem.value
|
|
374
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
263
375
|
elem.validity = 'tooShort';
|
|
264
|
-
elem.
|
|
376
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
265
377
|
} else {
|
|
266
378
|
const valueDate = new Date(elem.value);
|
|
267
379
|
|
|
@@ -271,7 +383,7 @@ class AuroFormValidation {
|
|
|
271
383
|
|
|
272
384
|
if (valueDate > maxDate) {
|
|
273
385
|
elem.validity = 'rangeOverflow';
|
|
274
|
-
elem.
|
|
386
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
275
387
|
}
|
|
276
388
|
}
|
|
277
389
|
|
|
@@ -281,7 +393,7 @@ class AuroFormValidation {
|
|
|
281
393
|
|
|
282
394
|
if (valueDate < minDate) {
|
|
283
395
|
elem.validity = 'rangeUnderflow';
|
|
284
|
-
elem.
|
|
396
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
285
397
|
}
|
|
286
398
|
}
|
|
287
399
|
}
|
|
@@ -304,10 +416,10 @@ class AuroFormValidation {
|
|
|
304
416
|
|
|
305
417
|
if (elem.hasAttribute('error')) {
|
|
306
418
|
elem.validity = 'customError';
|
|
307
|
-
elem.
|
|
419
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
308
420
|
} else if (validationShouldRun) {
|
|
309
421
|
elem.validity = 'valid';
|
|
310
|
-
elem.
|
|
422
|
+
elem.errorMessage = '';
|
|
311
423
|
|
|
312
424
|
/**
|
|
313
425
|
* Only validate once we interact with the datepicker
|
|
@@ -319,7 +431,7 @@ class AuroFormValidation {
|
|
|
319
431
|
let hasValue = elem.value && elem.value.length > 0;
|
|
320
432
|
|
|
321
433
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
322
|
-
if (this.auroInputElements
|
|
434
|
+
if (this.auroInputElements?.length === 2) {
|
|
323
435
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
324
436
|
hasValue = false;
|
|
325
437
|
}
|
|
@@ -327,35 +439,29 @@ class AuroFormValidation {
|
|
|
327
439
|
|
|
328
440
|
if (!hasValue && elem.required) {
|
|
329
441
|
elem.validity = 'valueMissing';
|
|
330
|
-
elem.
|
|
442
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
331
443
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
332
444
|
this.validateType(elem);
|
|
333
|
-
this.
|
|
445
|
+
this.validateElementAttributes(elem);
|
|
446
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
447
|
+
this.validateElementAttributes(elem);
|
|
334
448
|
}
|
|
335
449
|
}
|
|
336
450
|
|
|
337
|
-
if (this.auroInputElements
|
|
451
|
+
if (this.auroInputElements?.length > 0) {
|
|
338
452
|
elem.validity = this.auroInputElements[0].validity;
|
|
339
|
-
elem.
|
|
453
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
340
454
|
|
|
341
|
-
if (elem.validity === 'valid') {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
345
|
-
}
|
|
455
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
456
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
457
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
346
458
|
}
|
|
347
459
|
}
|
|
348
460
|
|
|
349
461
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
// Use the validity message override if it is declared
|
|
354
|
-
if (elem.ValidityMessageOverride) {
|
|
355
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
356
|
-
}
|
|
357
|
-
} else {
|
|
358
|
-
elem.isValid = true;
|
|
462
|
+
// Use the validity message override if it is declared
|
|
463
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
464
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
359
465
|
}
|
|
360
466
|
|
|
361
467
|
this.getErrorMessage(elem);
|
|
@@ -401,18 +507,18 @@ class AuroFormValidation {
|
|
|
401
507
|
if (elem.validity !== 'valid') {
|
|
402
508
|
if (elem.setCustomValidity) {
|
|
403
509
|
elem.errorMessage = elem.setCustomValidity;
|
|
404
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
510
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
405
511
|
const input = elem.renderRoot.querySelector('input');
|
|
406
512
|
|
|
407
513
|
if (input.validationMessage.length > 0) {
|
|
408
514
|
elem.errorMessage = input.validationMessage;
|
|
409
515
|
}
|
|
410
|
-
} else if (this.inputElements &&
|
|
516
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
411
517
|
const firstInput = this.inputElements[0];
|
|
412
518
|
|
|
413
519
|
if (firstInput.validationMessage.length > 0) {
|
|
414
520
|
elem.errorMessage = firstInput.validationMessage;
|
|
415
|
-
} else if (this.inputElements
|
|
521
|
+
} else if (this.inputElements?.length === 2) {
|
|
416
522
|
const secondInput = this.inputElements[1];
|
|
417
523
|
|
|
418
524
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -456,7 +562,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
456
562
|
*/
|
|
457
563
|
generateTag(baseName, version, tagClass) {
|
|
458
564
|
const elementName = this.generateElementName(baseName, version);
|
|
459
|
-
const tag = i$
|
|
565
|
+
const tag = i$6`${s$3(elementName)}`;
|
|
460
566
|
|
|
461
567
|
if (!customElements.get(elementName)) {
|
|
462
568
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -471,33 +577,33 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
471
577
|
* Copyright 2017 Google LLC
|
|
472
578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
473
579
|
*/
|
|
474
|
-
const t$2=globalThis,i$5=t$2.trustedTypes,s$2=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):
|
|
580
|
+
const t$2=globalThis,i$5=t$2.trustedTypes,s$2=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4="?"+h$1,n$3=`<${o$4}>`,r$3=document,l$2=()=>r$3.createComment(""),c$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$2=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$2?s$2.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p$1):c===g||c===p$1?c=m:c===v||c===_?c=f$1:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$4)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$2(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$2(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1(this,t,i,0),o=!c$2(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$2(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?undefined:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
475
581
|
|
|
476
582
|
/**
|
|
477
583
|
* @license
|
|
478
584
|
* Copyright 2020 Google LLC
|
|
479
585
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
480
586
|
*/
|
|
481
|
-
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
587
|
+
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1}),l$1=new Map,n$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$1=n$2(x);
|
|
482
588
|
|
|
483
589
|
/**
|
|
484
590
|
* @license
|
|
485
591
|
* Copyright 2019 Google LLC
|
|
486
592
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
487
593
|
*/
|
|
488
|
-
const t$1=globalThis,e$3=t$1.ShadowRoot&&(
|
|
594
|
+
const t$1=globalThis,e$3=t$1.ShadowRoot&&(undefined===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$2=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1(o,t,s)},S=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
|
489
595
|
|
|
490
596
|
/**
|
|
491
597
|
* @license
|
|
492
598
|
* Copyright 2017 Google LLC
|
|
493
599
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
494
|
-
*/const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o$1,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$2(t,s),y={attribute
|
|
600
|
+
*/const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o$1,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$2(t,s),y={attribute:true,type:String,converter:u,reflect:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1(s));}else undefined!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
|
|
495
601
|
|
|
496
602
|
/**
|
|
497
603
|
* @license
|
|
498
604
|
* Copyright 2017 Google LLC
|
|
499
605
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
500
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
606
|
+
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i$1=globalThis.litElementPolyfillSupport;i$1?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
501
607
|
|
|
502
608
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
503
609
|
// See LICENSE in the project root for license information.
|
|
@@ -617,7 +723,7 @@ function getAlignmentAxis(placement) {
|
|
|
617
723
|
return getOppositeAxis(getSideAxis(placement));
|
|
618
724
|
}
|
|
619
725
|
function getAlignmentSides(placement, rects, rtl) {
|
|
620
|
-
if (rtl ===
|
|
726
|
+
if (rtl === undefined) {
|
|
621
727
|
rtl = false;
|
|
622
728
|
}
|
|
623
729
|
const alignment = getAlignment(placement);
|
|
@@ -774,7 +880,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
774
880
|
platform
|
|
775
881
|
} = config;
|
|
776
882
|
const validMiddleware = middleware.filter(Boolean);
|
|
777
|
-
const rtl = await (platform.isRTL == null ?
|
|
883
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
|
|
778
884
|
let rects = await platform.getElementRects({
|
|
779
885
|
reference,
|
|
780
886
|
floating,
|
|
@@ -860,7 +966,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
860
966
|
*/
|
|
861
967
|
async function detectOverflow(state, options) {
|
|
862
968
|
var _await$platform$isEle;
|
|
863
|
-
if (options ===
|
|
969
|
+
if (options === undefined) {
|
|
864
970
|
options = {};
|
|
865
971
|
}
|
|
866
972
|
const {
|
|
@@ -882,7 +988,7 @@ async function detectOverflow(state, options) {
|
|
|
882
988
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
883
989
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
884
990
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
885
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ?
|
|
991
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? undefined : platform.getDocumentElement(elements.floating))),
|
|
886
992
|
boundary,
|
|
887
993
|
rootBoundary,
|
|
888
994
|
strategy
|
|
@@ -893,8 +999,8 @@ async function detectOverflow(state, options) {
|
|
|
893
999
|
width: rects.floating.width,
|
|
894
1000
|
height: rects.floating.height
|
|
895
1001
|
} : rects.reference;
|
|
896
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
897
|
-
const offsetScale = (await (platform.isElement == null ?
|
|
1002
|
+
const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
|
|
1003
|
+
const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
|
|
898
1004
|
x: 1,
|
|
899
1005
|
y: 1
|
|
900
1006
|
} : {
|
|
@@ -931,7 +1037,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
931
1037
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
932
1038
|
*/
|
|
933
1039
|
const autoPlacement$1 = function (options) {
|
|
934
|
-
if (options ===
|
|
1040
|
+
if (options === undefined) {
|
|
935
1041
|
options = {};
|
|
936
1042
|
}
|
|
937
1043
|
return {
|
|
@@ -955,12 +1061,12 @@ const autoPlacement$1 = function (options) {
|
|
|
955
1061
|
} = evaluate(options, state);
|
|
956
1062
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
957
1063
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
958
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
1064
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
|
|
959
1065
|
const currentPlacement = placements$1[currentIndex];
|
|
960
1066
|
if (currentPlacement == null) {
|
|
961
1067
|
return {};
|
|
962
1068
|
}
|
|
963
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
1069
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
|
|
964
1070
|
|
|
965
1071
|
// Make `computeCoords` start from the right place.
|
|
966
1072
|
if (placement !== currentPlacement) {
|
|
@@ -971,7 +1077,7 @@ const autoPlacement$1 = function (options) {
|
|
|
971
1077
|
};
|
|
972
1078
|
}
|
|
973
1079
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
974
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
1080
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
|
|
975
1081
|
placement: currentPlacement,
|
|
976
1082
|
overflows: currentOverflows
|
|
977
1083
|
}];
|
|
@@ -1001,7 +1107,7 @@ const autoPlacement$1 = function (options) {
|
|
|
1001
1107
|
// Aligned placements should not check their opposite crossAxis
|
|
1002
1108
|
// side.
|
|
1003
1109
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
1004
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
1110
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
1005
1111
|
if (resetPlacement !== placement) {
|
|
1006
1112
|
return {
|
|
1007
1113
|
data: {
|
|
@@ -1025,7 +1131,7 @@ const autoPlacement$1 = function (options) {
|
|
|
1025
1131
|
* @see https://floating-ui.com/docs/flip
|
|
1026
1132
|
*/
|
|
1027
1133
|
const flip$1 = function (options) {
|
|
1028
|
-
if (options ===
|
|
1134
|
+
if (options === undefined) {
|
|
1029
1135
|
options = {};
|
|
1030
1136
|
}
|
|
1031
1137
|
return {
|
|
@@ -1061,7 +1167,7 @@ const flip$1 = function (options) {
|
|
|
1061
1167
|
const side = getSide(placement);
|
|
1062
1168
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
1063
1169
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
1064
|
-
const rtl = await (platform.isRTL == null ?
|
|
1170
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
1065
1171
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
1066
1172
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
1067
1173
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -1070,7 +1176,7 @@ const flip$1 = function (options) {
|
|
|
1070
1176
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
1071
1177
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
1072
1178
|
const overflows = [];
|
|
1073
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
1179
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
|
|
1074
1180
|
if (checkMainAxis) {
|
|
1075
1181
|
overflows.push(overflow[side]);
|
|
1076
1182
|
}
|
|
@@ -1086,7 +1192,7 @@ const flip$1 = function (options) {
|
|
|
1086
1192
|
// One or more sides is overflowing.
|
|
1087
1193
|
if (!overflows.every(side => side <= 0)) {
|
|
1088
1194
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
1089
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
1195
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
|
|
1090
1196
|
const nextPlacement = placements[nextIndex];
|
|
1091
1197
|
if (nextPlacement) {
|
|
1092
1198
|
// Try next placement and re-run the lifecycle.
|
|
@@ -1103,7 +1209,7 @@ const flip$1 = function (options) {
|
|
|
1103
1209
|
|
|
1104
1210
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
1105
1211
|
// then find the placement that fits the best on the main crossAxis side.
|
|
1106
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ?
|
|
1212
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
|
|
1107
1213
|
|
|
1108
1214
|
// Otherwise fallback.
|
|
1109
1215
|
if (!resetPlacement) {
|
|
@@ -1120,7 +1226,7 @@ const flip$1 = function (options) {
|
|
|
1120
1226
|
currentSideAxis === 'y';
|
|
1121
1227
|
}
|
|
1122
1228
|
return true;
|
|
1123
|
-
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ?
|
|
1229
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
|
|
1124
1230
|
if (placement) {
|
|
1125
1231
|
resetPlacement = placement;
|
|
1126
1232
|
}
|
|
@@ -1153,7 +1259,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1153
1259
|
platform,
|
|
1154
1260
|
elements
|
|
1155
1261
|
} = state;
|
|
1156
|
-
const rtl = await (platform.isRTL == null ?
|
|
1262
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
1157
1263
|
const side = getSide(placement);
|
|
1158
1264
|
const alignment = getAlignment(placement);
|
|
1159
1265
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -1195,7 +1301,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1195
1301
|
* @see https://floating-ui.com/docs/offset
|
|
1196
1302
|
*/
|
|
1197
1303
|
const offset$1 = function (options) {
|
|
1198
|
-
if (options ===
|
|
1304
|
+
if (options === undefined) {
|
|
1199
1305
|
options = 0;
|
|
1200
1306
|
}
|
|
1201
1307
|
return {
|
|
@@ -1213,7 +1319,7 @@ const offset$1 = function (options) {
|
|
|
1213
1319
|
|
|
1214
1320
|
// If the placement is the same and the arrow caused an alignment offset
|
|
1215
1321
|
// then we don't need to change the positioning coordinates.
|
|
1216
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ?
|
|
1322
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
1217
1323
|
return {};
|
|
1218
1324
|
}
|
|
1219
1325
|
return {
|
|
@@ -1242,11 +1348,11 @@ function getNodeName(node) {
|
|
|
1242
1348
|
}
|
|
1243
1349
|
function getWindow(node) {
|
|
1244
1350
|
var _node$ownerDocument;
|
|
1245
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
1351
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
|
|
1246
1352
|
}
|
|
1247
1353
|
function getDocumentElement(node) {
|
|
1248
1354
|
var _ref;
|
|
1249
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ?
|
|
1355
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
|
|
1250
1356
|
}
|
|
1251
1357
|
function isNode(value) {
|
|
1252
1358
|
if (!hasWindow()) {
|
|
@@ -1361,14 +1467,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
1361
1467
|
}
|
|
1362
1468
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
1363
1469
|
var _node$ownerDocument2;
|
|
1364
|
-
if (list ===
|
|
1470
|
+
if (list === undefined) {
|
|
1365
1471
|
list = [];
|
|
1366
1472
|
}
|
|
1367
|
-
if (traverseIframes ===
|
|
1473
|
+
if (traverseIframes === undefined) {
|
|
1368
1474
|
traverseIframes = true;
|
|
1369
1475
|
}
|
|
1370
1476
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1371
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
1477
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
|
|
1372
1478
|
const win = getWindow(scrollableAncestor);
|
|
1373
1479
|
if (isBody) {
|
|
1374
1480
|
const frameElement = getFrameElement(win);
|
|
@@ -1445,7 +1551,7 @@ function getVisualOffsets(element) {
|
|
|
1445
1551
|
};
|
|
1446
1552
|
}
|
|
1447
1553
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1448
|
-
if (isFixed ===
|
|
1554
|
+
if (isFixed === undefined) {
|
|
1449
1555
|
isFixed = false;
|
|
1450
1556
|
}
|
|
1451
1557
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -1455,10 +1561,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
1455
1561
|
}
|
|
1456
1562
|
|
|
1457
1563
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1458
|
-
if (includeScale ===
|
|
1564
|
+
if (includeScale === undefined) {
|
|
1459
1565
|
includeScale = false;
|
|
1460
1566
|
}
|
|
1461
|
-
if (isFixedStrategy ===
|
|
1567
|
+
if (isFixedStrategy === undefined) {
|
|
1462
1568
|
isFixedStrategy = false;
|
|
1463
1569
|
}
|
|
1464
1570
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -1518,7 +1624,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
1518
1624
|
}
|
|
1519
1625
|
|
|
1520
1626
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
1521
|
-
if (ignoreScrollbarX ===
|
|
1627
|
+
if (ignoreScrollbarX === undefined) {
|
|
1522
1628
|
ignoreScrollbarX = false;
|
|
1523
1629
|
}
|
|
1524
1630
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -1868,10 +1974,10 @@ function observeMove(element, onMove) {
|
|
|
1868
1974
|
io = null;
|
|
1869
1975
|
}
|
|
1870
1976
|
function refresh(skip, threshold) {
|
|
1871
|
-
if (skip ===
|
|
1977
|
+
if (skip === undefined) {
|
|
1872
1978
|
skip = false;
|
|
1873
1979
|
}
|
|
1874
|
-
if (threshold ===
|
|
1980
|
+
if (threshold === undefined) {
|
|
1875
1981
|
threshold = 1;
|
|
1876
1982
|
}
|
|
1877
1983
|
cleanup();
|
|
@@ -1942,7 +2048,7 @@ function observeMove(element, onMove) {
|
|
|
1942
2048
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
1943
2049
|
*/
|
|
1944
2050
|
function autoUpdate(reference, floating, update, options) {
|
|
1945
|
-
if (options ===
|
|
2051
|
+
if (options === undefined) {
|
|
1946
2052
|
options = {};
|
|
1947
2053
|
}
|
|
1948
2054
|
const {
|
|
@@ -2069,6 +2175,11 @@ class AuroFloatingUI {
|
|
|
2069
2175
|
this.focusHandler = null;
|
|
2070
2176
|
this.clickHandler = null;
|
|
2071
2177
|
this.keyDownHandler = null;
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* @private
|
|
2181
|
+
*/
|
|
2182
|
+
this.eventPrefix = undefined;
|
|
2072
2183
|
}
|
|
2073
2184
|
|
|
2074
2185
|
/**
|
|
@@ -2085,22 +2196,24 @@ class AuroFloatingUI {
|
|
|
2085
2196
|
*/
|
|
2086
2197
|
mirrorSize(fullscreen) {
|
|
2087
2198
|
// mirror the boxsize from bibSizer
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2199
|
+
if (this.element.bibSizer) {
|
|
2200
|
+
const sizerStyle = window.getComputedStyle(this.element.bibSizer);
|
|
2201
|
+
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
2202
|
+
if (fullscreen) {
|
|
2203
|
+
bibContent.style.width = '';
|
|
2204
|
+
bibContent.style.height = '';
|
|
2205
|
+
bibContent.style.maxWidth = '';
|
|
2206
|
+
bibContent.style.maxHeight = '';
|
|
2207
|
+
} else {
|
|
2208
|
+
if (sizerStyle.width !== '0px') {
|
|
2209
|
+
bibContent.style.width = sizerStyle.width;
|
|
2210
|
+
}
|
|
2211
|
+
if (sizerStyle.height !== '0px') {
|
|
2212
|
+
bibContent.style.height = sizerStyle.height;
|
|
2213
|
+
}
|
|
2214
|
+
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
2215
|
+
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
2101
2216
|
}
|
|
2102
|
-
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
2103
|
-
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
2104
2217
|
}
|
|
2105
2218
|
}
|
|
2106
2219
|
|
|
@@ -2151,7 +2264,7 @@ class AuroFloatingUI {
|
|
|
2151
2264
|
// Compute the position of the bib
|
|
2152
2265
|
computePosition(this.element.trigger, this.element.bib, {
|
|
2153
2266
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
2154
|
-
middleware: middleware
|
|
2267
|
+
middleware: middleware
|
|
2155
2268
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
2156
2269
|
Object.assign(this.element.bib.style, {
|
|
2157
2270
|
left: `${x}px`,
|
|
@@ -2307,7 +2420,7 @@ class AuroFloatingUI {
|
|
|
2307
2420
|
* @returns {void} Dispatches event with an object showing the state of the dropdown.
|
|
2308
2421
|
*/
|
|
2309
2422
|
dispatchEventDropdownToggle() {
|
|
2310
|
-
const event = new CustomEvent(
|
|
2423
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
|
|
2311
2424
|
detail: {
|
|
2312
2425
|
expanded: this.isPopoverVisible,
|
|
2313
2426
|
},
|
|
@@ -2324,7 +2437,7 @@ class AuroFloatingUI {
|
|
|
2324
2437
|
this.showBib();
|
|
2325
2438
|
}
|
|
2326
2439
|
|
|
2327
|
-
const event = new CustomEvent(
|
|
2440
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-triggerClick` : "triggerClick", {
|
|
2328
2441
|
composed: true,
|
|
2329
2442
|
details: {
|
|
2330
2443
|
expanded: this.element.isPopoverVisible
|
|
@@ -2368,6 +2481,9 @@ class AuroFloatingUI {
|
|
|
2368
2481
|
this.handleFocusLoss();
|
|
2369
2482
|
break;
|
|
2370
2483
|
case 'click':
|
|
2484
|
+
if (document.activeElement === document.body) {
|
|
2485
|
+
event.currentTarget.focus();
|
|
2486
|
+
}
|
|
2371
2487
|
this.handleClick();
|
|
2372
2488
|
break;
|
|
2373
2489
|
// Do nothing
|
|
@@ -2405,7 +2521,8 @@ class AuroFloatingUI {
|
|
|
2405
2521
|
});
|
|
2406
2522
|
}
|
|
2407
2523
|
|
|
2408
|
-
configure(elem) {
|
|
2524
|
+
configure(elem, eventPrefix) {
|
|
2525
|
+
this.eventPrefix = eventPrefix;
|
|
2409
2526
|
this.element = elem;
|
|
2410
2527
|
this.element.trigger = this.element.shadowRoot.querySelector('#trigger');
|
|
2411
2528
|
this.element.bib = this.element.shadowRoot.querySelector('#bib');
|
|
@@ -2485,13 +2602,13 @@ class AuroDependencyVersioning {
|
|
|
2485
2602
|
* Copyright 2017 Google LLC
|
|
2486
2603
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2487
2604
|
*/
|
|
2488
|
-
const t
|
|
2605
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
2489
2606
|
|
|
2490
2607
|
/**
|
|
2491
2608
|
* @license
|
|
2492
2609
|
* Copyright 2018 Google LLC
|
|
2493
2610
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2494
|
-
*/const e
|
|
2611
|
+
*/const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
2495
2612
|
|
|
2496
2613
|
/**
|
|
2497
2614
|
* @license
|
|
@@ -2565,7 +2682,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
2565
2682
|
return _fetchMap$1.get(uri);
|
|
2566
2683
|
};
|
|
2567
2684
|
|
|
2568
|
-
var styleCss$2$1 = i$3`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline: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}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.labelContainer{line-height:1.8}`;
|
|
2685
|
+
var styleCss$2$1 = i$3`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline: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}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
2569
2686
|
|
|
2570
2687
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2571
2688
|
// See LICENSE in the project root for license information.
|
|
@@ -2832,12 +2949,13 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2832
2949
|
};
|
|
2833
2950
|
|
|
2834
2951
|
const classes = {
|
|
2835
|
-
'label': this.label
|
|
2952
|
+
'label': this.label,
|
|
2953
|
+
'wrapper': true,
|
|
2836
2954
|
};
|
|
2837
2955
|
|
|
2838
2956
|
return x`
|
|
2839
2957
|
<div
|
|
2840
|
-
class="${e
|
|
2958
|
+
class="${e(classes)}"
|
|
2841
2959
|
title="${o$5(this.title || undefined)}">
|
|
2842
2960
|
<span aria-hidden="${o$5(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2843
2961
|
${this.customSvg ? x`
|
|
@@ -2848,7 +2966,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2848
2966
|
}
|
|
2849
2967
|
</span>
|
|
2850
2968
|
|
|
2851
|
-
<div class="${e
|
|
2969
|
+
<div class="${e(a11y)}">
|
|
2852
2970
|
<slot></slot>
|
|
2853
2971
|
</div>
|
|
2854
2972
|
</div>
|
|
@@ -2856,15 +2974,15 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2856
2974
|
}
|
|
2857
2975
|
};
|
|
2858
2976
|
|
|
2859
|
-
var iconVersion$1 = '6.1.
|
|
2977
|
+
var iconVersion$1 = '6.1.2';
|
|
2860
2978
|
|
|
2861
|
-
var styleCss$1$1 = i$3`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2979
|
+
var styleCss$1$1 = i$3`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2862
2980
|
|
|
2863
|
-
var colorCss$1$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);
|
|
2981
|
+
var colorCss$1$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
2864
2982
|
|
|
2865
2983
|
var tokensCss$3 = i$3`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2866
2984
|
|
|
2867
|
-
var styleCss$4 = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common]
|
|
2985
|
+
var styleCss$4 = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2868
2986
|
|
|
2869
2987
|
var colorCss$4 = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2870
2988
|
|
|
@@ -2882,9 +3000,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2882
3000
|
];
|
|
2883
3001
|
|
|
2884
3002
|
/**
|
|
2885
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
2886
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
2887
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
2888
3003
|
* @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2889
3004
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2890
3005
|
*/
|
|
@@ -2910,14 +3025,26 @@ class AuroDropdownBib extends r {
|
|
|
2910
3025
|
|
|
2911
3026
|
static get properties() {
|
|
2912
3027
|
return {
|
|
3028
|
+
|
|
3029
|
+
/**
|
|
3030
|
+
* If declared, will apply all styles for the common theme.
|
|
3031
|
+
*/
|
|
2913
3032
|
common: {
|
|
2914
3033
|
type: Boolean,
|
|
2915
3034
|
reflect: true
|
|
2916
3035
|
},
|
|
3036
|
+
|
|
3037
|
+
/**
|
|
3038
|
+
* If declared, will apply extra padding to bib content.
|
|
3039
|
+
*/
|
|
2917
3040
|
inset: {
|
|
2918
3041
|
type: Boolean,
|
|
2919
3042
|
reflect: true
|
|
2920
3043
|
},
|
|
3044
|
+
|
|
3045
|
+
/**
|
|
3046
|
+
* If declared, will apply border-radius to the bib.
|
|
3047
|
+
*/
|
|
2921
3048
|
rounded: {
|
|
2922
3049
|
type: Boolean,
|
|
2923
3050
|
reflect: true
|
|
@@ -2961,22 +3088,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2961
3088
|
|
|
2962
3089
|
|
|
2963
3090
|
/**
|
|
2964
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
2965
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
2966
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
2967
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
2968
3091
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
2969
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2970
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
2971
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
2972
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
2973
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
2974
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
2975
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
2976
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
2977
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
2978
|
-
* @attr { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2979
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
2980
3092
|
* @slot - Default slot for the popover content.
|
|
2981
3093
|
* @slot label - Defines the content of the label.
|
|
2982
3094
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -3014,6 +3126,16 @@ class AuroDropdown extends r {
|
|
|
3014
3126
|
this.tabIndex = 0;
|
|
3015
3127
|
this.noToggle = false;
|
|
3016
3128
|
|
|
3129
|
+
/**
|
|
3130
|
+
* @private
|
|
3131
|
+
*/
|
|
3132
|
+
this.hasTriggerContent = false;
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* @private
|
|
3136
|
+
*/
|
|
3137
|
+
this.triggerContentSlot = undefined;
|
|
3138
|
+
|
|
3017
3139
|
/**
|
|
3018
3140
|
* @private
|
|
3019
3141
|
*/
|
|
@@ -3060,89 +3182,166 @@ class AuroDropdown extends r {
|
|
|
3060
3182
|
// function to define props used within the scope of this component
|
|
3061
3183
|
static get properties() {
|
|
3062
3184
|
return {
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* If declared, applies a border around the trigger slot.
|
|
3188
|
+
*/
|
|
3063
3189
|
bordered: {
|
|
3064
3190
|
type: Boolean,
|
|
3065
3191
|
reflect: true
|
|
3066
3192
|
},
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
3196
|
+
* @attr {Boolean} chevron
|
|
3197
|
+
*/
|
|
3067
3198
|
chevron: {
|
|
3068
3199
|
type: Boolean,
|
|
3069
3200
|
reflect: true
|
|
3070
3201
|
},
|
|
3071
|
-
|
|
3202
|
+
|
|
3203
|
+
/**
|
|
3204
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
3205
|
+
*/
|
|
3206
|
+
common: {
|
|
3072
3207
|
type: Boolean,
|
|
3073
3208
|
reflect: true
|
|
3074
3209
|
},
|
|
3075
|
-
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* If declared, the dropdown is not interactive.
|
|
3213
|
+
*/
|
|
3214
|
+
disabled: {
|
|
3076
3215
|
type: Boolean,
|
|
3077
3216
|
reflect: true
|
|
3078
3217
|
},
|
|
3079
|
-
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* @private
|
|
3221
|
+
*/
|
|
3222
|
+
dropdownWidth: {
|
|
3223
|
+
type: Number
|
|
3224
|
+
},
|
|
3225
|
+
|
|
3226
|
+
/**
|
|
3227
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
3228
|
+
*/
|
|
3229
|
+
error: {
|
|
3080
3230
|
type: Boolean,
|
|
3081
|
-
reflect: true
|
|
3231
|
+
reflect: true
|
|
3082
3232
|
},
|
|
3233
|
+
|
|
3234
|
+
/**
|
|
3235
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
3236
|
+
*/
|
|
3083
3237
|
focusShow: {
|
|
3084
3238
|
type: Boolean,
|
|
3085
3239
|
reflect: true
|
|
3086
3240
|
},
|
|
3087
|
-
|
|
3241
|
+
|
|
3242
|
+
/**
|
|
3243
|
+
* Makes the trigger to be full width of its parent container.
|
|
3244
|
+
*/
|
|
3245
|
+
fluid: {
|
|
3088
3246
|
type: Boolean,
|
|
3089
3247
|
reflect: true
|
|
3090
3248
|
},
|
|
3249
|
+
|
|
3250
|
+
/**
|
|
3251
|
+
* If declared, will apply padding around trigger slot content.
|
|
3252
|
+
*/
|
|
3091
3253
|
inset: {
|
|
3092
3254
|
type: Boolean,
|
|
3093
3255
|
reflect: true
|
|
3094
3256
|
},
|
|
3095
|
-
|
|
3257
|
+
|
|
3258
|
+
/**
|
|
3259
|
+
* If true, the dropdown bib is displayed.
|
|
3260
|
+
*/
|
|
3261
|
+
isPopoverVisible: {
|
|
3262
|
+
type: Boolean
|
|
3263
|
+
},
|
|
3264
|
+
|
|
3265
|
+
/**
|
|
3266
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
3267
|
+
*/
|
|
3268
|
+
hoverToggle: {
|
|
3096
3269
|
type: Boolean,
|
|
3097
3270
|
reflect: true
|
|
3098
3271
|
},
|
|
3099
|
-
|
|
3100
|
-
|
|
3272
|
+
|
|
3273
|
+
/**
|
|
3274
|
+
* @private
|
|
3275
|
+
*/
|
|
3276
|
+
hasTriggerContent: {
|
|
3277
|
+
type: Boolean
|
|
3278
|
+
},
|
|
3279
|
+
|
|
3280
|
+
/**
|
|
3281
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3282
|
+
*/
|
|
3283
|
+
mobileFullscreenBreakpoint: {
|
|
3284
|
+
type: String,
|
|
3101
3285
|
reflect: true
|
|
3102
3286
|
},
|
|
3103
|
-
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
3290
|
+
*/
|
|
3291
|
+
matchWidth: {
|
|
3104
3292
|
type: Boolean,
|
|
3105
3293
|
reflect: true
|
|
3106
3294
|
},
|
|
3107
|
-
|
|
3295
|
+
|
|
3296
|
+
/**
|
|
3297
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3298
|
+
*/
|
|
3299
|
+
noHideOnThisFocusLoss: {
|
|
3108
3300
|
type: Boolean,
|
|
3109
3301
|
reflect: true
|
|
3110
3302
|
},
|
|
3111
|
-
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
3306
|
+
*/
|
|
3307
|
+
noToggle: {
|
|
3112
3308
|
type: Boolean,
|
|
3113
3309
|
reflect: true
|
|
3114
3310
|
},
|
|
3115
|
-
|
|
3311
|
+
|
|
3116
3312
|
onSlotChange: {
|
|
3117
3313
|
type: Function,
|
|
3118
3314
|
reflect: false
|
|
3119
3315
|
},
|
|
3120
|
-
mobileFullscreenBreakpoint: {
|
|
3121
|
-
type: String,
|
|
3122
|
-
reflect: true,
|
|
3123
|
-
},
|
|
3124
3316
|
|
|
3125
3317
|
/**
|
|
3126
3318
|
* @private
|
|
3127
3319
|
*/
|
|
3128
|
-
|
|
3320
|
+
placement: {
|
|
3321
|
+
type: String
|
|
3322
|
+
},
|
|
3129
3323
|
|
|
3130
3324
|
/**
|
|
3131
|
-
*
|
|
3325
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
3132
3326
|
*/
|
|
3133
|
-
|
|
3327
|
+
rounded: {
|
|
3328
|
+
type: Boolean,
|
|
3329
|
+
reflect: true
|
|
3330
|
+
},
|
|
3134
3331
|
|
|
3135
3332
|
/**
|
|
3136
3333
|
* @private
|
|
3137
3334
|
*/
|
|
3138
|
-
tabIndex: {
|
|
3335
|
+
tabIndex: {
|
|
3336
|
+
type: Number
|
|
3337
|
+
}
|
|
3139
3338
|
};
|
|
3140
3339
|
}
|
|
3141
3340
|
|
|
3142
3341
|
static get styles() {
|
|
3143
3342
|
return [
|
|
3144
|
-
styleCss$1$1,
|
|
3145
3343
|
colorCss$1$1,
|
|
3344
|
+
styleCss$1$1,
|
|
3146
3345
|
tokensCss$3
|
|
3147
3346
|
];
|
|
3148
3347
|
}
|
|
@@ -3173,10 +3372,16 @@ class AuroDropdown extends r {
|
|
|
3173
3372
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
3174
3373
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
3175
3374
|
}
|
|
3375
|
+
|
|
3376
|
+
// when trigger's content is changed without any attribute or node change,
|
|
3377
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
3378
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3379
|
+
this.handleTriggerContentSlotChange();
|
|
3380
|
+
}
|
|
3176
3381
|
}
|
|
3177
3382
|
|
|
3178
3383
|
firstUpdated() {
|
|
3179
|
-
this.floater.configure(this);
|
|
3384
|
+
this.floater.configure(this, 'auroDropdown');
|
|
3180
3385
|
this.bibContent = this.floater.element.bib;
|
|
3181
3386
|
|
|
3182
3387
|
// Add the tag name as an attribute if it is different than the component name
|
|
@@ -3215,6 +3420,43 @@ class AuroDropdown extends r {
|
|
|
3215
3420
|
return inCustomSlot;
|
|
3216
3421
|
}
|
|
3217
3422
|
|
|
3423
|
+
/**
|
|
3424
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
3425
|
+
*
|
|
3426
|
+
* It first updates the floater settings
|
|
3427
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
3428
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
3429
|
+
*
|
|
3430
|
+
* @private
|
|
3431
|
+
* @method handleTriggerContentSlotChange
|
|
3432
|
+
* @param {Event} event - native slotchange event
|
|
3433
|
+
* @returns {void}
|
|
3434
|
+
*/
|
|
3435
|
+
handleTriggerContentSlotChange(event) {
|
|
3436
|
+
this.floater.handleTriggerTabIndex();
|
|
3437
|
+
|
|
3438
|
+
if (event) {
|
|
3439
|
+
this.triggerNode = event.target;
|
|
3440
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
if (this.triggerContentSlot) {
|
|
3444
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
3445
|
+
if (slot.textContent.trim()) {
|
|
3446
|
+
return true;
|
|
3447
|
+
}
|
|
3448
|
+
const slotInSlot = slot.querySelector('slot');
|
|
3449
|
+
if (!slotInSlot) {
|
|
3450
|
+
return false;
|
|
3451
|
+
}
|
|
3452
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
3453
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
3454
|
+
});
|
|
3455
|
+
} else {
|
|
3456
|
+
this.hasTriggerContent = false;
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3218
3460
|
/**
|
|
3219
3461
|
* Handles the default slot change event and updates the content.
|
|
3220
3462
|
*
|
|
@@ -3249,13 +3491,13 @@ class AuroDropdown extends r {
|
|
|
3249
3491
|
tabindex="${this.tabIndex}"
|
|
3250
3492
|
>
|
|
3251
3493
|
<div class="triggerContentWrapper">
|
|
3252
|
-
<label class="label" id="triggerLabel">
|
|
3494
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3253
3495
|
<slot name="label"></slot>
|
|
3254
3496
|
</label>
|
|
3255
3497
|
<div class="triggerContent">
|
|
3256
3498
|
<slot
|
|
3257
3499
|
name="trigger"
|
|
3258
|
-
@slotchange="${() =>
|
|
3500
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
3259
3501
|
</div>
|
|
3260
3502
|
</div>
|
|
3261
3503
|
${this.chevron || this.common ? u$1`
|
|
@@ -3297,7 +3539,7 @@ AuroDropdown.register();
|
|
|
3297
3539
|
|
|
3298
3540
|
var dropdownVersion = '3.0.0';
|
|
3299
3541
|
|
|
3300
|
-
var styleCss$3 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.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}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
3542
|
+
var styleCss$3 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.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}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
3301
3543
|
|
|
3302
3544
|
var colorCss$3 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.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}:host [auro-dropdown]::part(trigger):hover{--ds-auro-dropdown-trigger-container-color: rgba(0 0 0 / 0.06)}:host([disabled]) *{color:var(--ds-color-text-ui-disabled-default, #adadad)}.placeholder{color:var(--ds-auro-select-placeholder-text-color)}`;
|
|
3303
3545
|
|
|
@@ -3311,22 +3553,10 @@ var tokensCss$2 = i$b`:host{--ds-auro-select-placeholder-text-color: var(--ds-co
|
|
|
3311
3553
|
/**
|
|
3312
3554
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
3313
3555
|
*
|
|
3314
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
3315
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
3316
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
3317
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
3318
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
3319
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
3320
|
-
* @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
|
|
3321
|
-
* @attr {Boolean} flexMenuWidth - If set, makes dropdown bib width match the size of the content, rather than the width of the trigger.
|
|
3322
|
-
* @prop {String} placeholder - Define placeholder text to display before a value is manually selected.
|
|
3323
|
-
* @prop {String} value - Value selected for the component.
|
|
3324
|
-
* @prop {Boolean} disabled - When attribute is present element shows disabled state.
|
|
3325
|
-
* @prop {Boolean} noCheckmark - When true, checkmark on selected option will no longer be present.
|
|
3326
|
-
* @attr {Object} optionSelected - Specifies the current selected menuOption.
|
|
3327
3556
|
* @slot - Default slot for the menu content.
|
|
3328
3557
|
* @slot label - Defines the content of the label.
|
|
3329
3558
|
* @slot helpText - Defines the content of the helpText.
|
|
3559
|
+
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
3330
3560
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
3331
3561
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
3332
3562
|
* @csspart helpText - Apply CSS to the help text.
|
|
@@ -3337,7 +3567,6 @@ class AuroSelect extends r$4 {
|
|
|
3337
3567
|
constructor() {
|
|
3338
3568
|
super();
|
|
3339
3569
|
|
|
3340
|
-
this.placeholder = 'Please select option';
|
|
3341
3570
|
this.optionSelected = undefined;
|
|
3342
3571
|
this.validity = undefined;
|
|
3343
3572
|
|
|
@@ -3392,69 +3621,118 @@ class AuroSelect extends r$4 {
|
|
|
3392
3621
|
// to understand how to use reflected attributes with your property settings.
|
|
3393
3622
|
static get properties() {
|
|
3394
3623
|
return {
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3624
|
+
|
|
3625
|
+
/**
|
|
3626
|
+
* When attribute is present, element shows disabled state.
|
|
3627
|
+
*/
|
|
3628
|
+
disabled: {
|
|
3629
|
+
type: Boolean,
|
|
3630
|
+
reflect: true
|
|
3398
3631
|
},
|
|
3399
|
-
|
|
3400
|
-
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* If set, makes dropdown width match the size of the content, rather than the width of the trigger.
|
|
3635
|
+
*/
|
|
3636
|
+
flexMenuWidth: {
|
|
3637
|
+
type: Boolean,
|
|
3638
|
+
reflect: true
|
|
3639
|
+
},
|
|
3640
|
+
|
|
3641
|
+
/**
|
|
3642
|
+
* When true, checkmark on selected option will no longer be present.
|
|
3643
|
+
*/
|
|
3644
|
+
noCheckmark: {
|
|
3645
|
+
type: Boolean,
|
|
3401
3646
|
reflect: true
|
|
3402
3647
|
},
|
|
3648
|
+
|
|
3649
|
+
/**
|
|
3650
|
+
* If set, disables auto-validation on blur.
|
|
3651
|
+
*/
|
|
3403
3652
|
noValidate: {
|
|
3404
3653
|
type: Boolean,
|
|
3405
3654
|
reflect: true
|
|
3406
3655
|
},
|
|
3656
|
+
|
|
3657
|
+
/**
|
|
3658
|
+
* @private
|
|
3659
|
+
*/
|
|
3660
|
+
optionActive: {
|
|
3661
|
+
type: Object
|
|
3662
|
+
},
|
|
3663
|
+
|
|
3664
|
+
/**
|
|
3665
|
+
* Specifies the current selected menuOption.
|
|
3666
|
+
*/
|
|
3667
|
+
optionSelected: {
|
|
3668
|
+
type: Object
|
|
3669
|
+
},
|
|
3670
|
+
|
|
3671
|
+
/**
|
|
3672
|
+
* @private
|
|
3673
|
+
*/
|
|
3674
|
+
options: {
|
|
3675
|
+
type: Array
|
|
3676
|
+
},
|
|
3677
|
+
|
|
3678
|
+
/**
|
|
3679
|
+
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
3680
|
+
*/
|
|
3407
3681
|
required: {
|
|
3408
3682
|
type: Boolean,
|
|
3409
3683
|
reflect: true
|
|
3410
3684
|
},
|
|
3685
|
+
|
|
3686
|
+
/**
|
|
3687
|
+
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
3688
|
+
*/
|
|
3411
3689
|
error: {
|
|
3412
3690
|
type: String,
|
|
3413
3691
|
reflect: true
|
|
3414
3692
|
},
|
|
3693
|
+
|
|
3694
|
+
/**
|
|
3695
|
+
* Sets a custom help text message to display for all validityStates.
|
|
3696
|
+
*/
|
|
3415
3697
|
setCustomValidity: {
|
|
3416
3698
|
type: String
|
|
3417
3699
|
},
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Custom help text message to display when validity = `customError`.
|
|
3703
|
+
*/
|
|
3418
3704
|
setCustomValidityCustomError: {
|
|
3419
3705
|
type: String
|
|
3420
3706
|
},
|
|
3707
|
+
|
|
3708
|
+
/**
|
|
3709
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
3710
|
+
*/
|
|
3421
3711
|
setCustomValidityValueMissing: {
|
|
3422
3712
|
type: String
|
|
3423
3713
|
},
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* Specifies the `validityState` this element is in.
|
|
3717
|
+
*/
|
|
3424
3718
|
validity: {
|
|
3425
3719
|
type: String,
|
|
3426
3720
|
reflect: true
|
|
3427
3721
|
},
|
|
3428
|
-
disabled: {
|
|
3429
|
-
type: Boolean,
|
|
3430
|
-
reflect: true
|
|
3431
|
-
},
|
|
3432
|
-
noCheckmark: {
|
|
3433
|
-
type: Boolean,
|
|
3434
|
-
reflect: true
|
|
3435
|
-
},
|
|
3436
|
-
flexMenuWidth: {
|
|
3437
|
-
type: Boolean,
|
|
3438
|
-
reflect: true
|
|
3439
|
-
},
|
|
3440
|
-
placeholder: { type: String },
|
|
3441
3722
|
|
|
3442
3723
|
/**
|
|
3443
|
-
*
|
|
3444
|
-
*/
|
|
3445
|
-
options: { type: Array },
|
|
3446
|
-
|
|
3447
|
-
/**
|
|
3448
|
-
* @private
|
|
3724
|
+
* Value selected for the component.
|
|
3449
3725
|
*/
|
|
3450
|
-
|
|
3726
|
+
value: {
|
|
3727
|
+
type: String
|
|
3728
|
+
}
|
|
3451
3729
|
};
|
|
3452
3730
|
}
|
|
3453
3731
|
|
|
3454
3732
|
static get styles() {
|
|
3455
3733
|
return [
|
|
3456
|
-
styleCss$3,
|
|
3457
3734
|
colorCss$3,
|
|
3735
|
+
styleCss$3,
|
|
3458
3736
|
tokensCss$2
|
|
3459
3737
|
];
|
|
3460
3738
|
}
|
|
@@ -3489,36 +3767,30 @@ class AuroSelect extends r$4 {
|
|
|
3489
3767
|
}
|
|
3490
3768
|
|
|
3491
3769
|
/**
|
|
3492
|
-
* Updates the displayed value in an Auro dropdown component based on
|
|
3493
|
-
* @param {string|HTMLElement} option - The option to display. If a string, a new span element with the value string is created. If an HTMLElement, the selected option is cloned and non-styling attributes are removed.
|
|
3770
|
+
* Updates the displayed value in an Auro dropdown component based on optionSelected
|
|
3494
3771
|
* @private
|
|
3495
3772
|
* @returns {void}
|
|
3496
3773
|
*/
|
|
3497
|
-
updateDisplayedValue(
|
|
3774
|
+
updateDisplayedValue() {
|
|
3498
3775
|
const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
|
|
3499
3776
|
|
|
3500
3777
|
// remove all existing rendered value(s)
|
|
3501
|
-
triggerContentEl.querySelectorAll('auro-menuoption, [
|
|
3778
|
+
triggerContentEl.querySelectorAll('auro-menuoption, [auro-menuoption]').forEach((elm) => {
|
|
3502
3779
|
elm.remove();
|
|
3503
3780
|
});
|
|
3504
3781
|
|
|
3505
|
-
if (
|
|
3506
|
-
// create a new span element with the value string
|
|
3507
|
-
const valueElem = document.createElement('span');
|
|
3508
|
-
valueElem.setAttribute('valuestr', true);
|
|
3509
|
-
valueElem.textContent = option;
|
|
3510
|
-
|
|
3511
|
-
// append the new element into the trigger content
|
|
3512
|
-
triggerContentEl.appendChild(valueElem);
|
|
3513
|
-
} else if (typeof option === 'object') {
|
|
3782
|
+
if (this.optionSelected) {
|
|
3514
3783
|
// clone the selected option and remove attributes that style it
|
|
3515
|
-
const clone =
|
|
3784
|
+
const clone = this.optionSelected.cloneNode(true);
|
|
3516
3785
|
clone.removeAttribute('selected');
|
|
3517
3786
|
clone.removeAttribute('class');
|
|
3518
3787
|
|
|
3519
3788
|
// insert the non-styled clone into the trigger
|
|
3520
3789
|
triggerContentEl.appendChild(clone);
|
|
3521
3790
|
}
|
|
3791
|
+
|
|
3792
|
+
// notify dropdown as trigger content is changed
|
|
3793
|
+
this.dropdown.requestUpdate();
|
|
3522
3794
|
}
|
|
3523
3795
|
|
|
3524
3796
|
/**
|
|
@@ -3528,7 +3800,7 @@ class AuroSelect extends r$4 {
|
|
|
3528
3800
|
*/
|
|
3529
3801
|
configureMenu() {
|
|
3530
3802
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
3531
|
-
|
|
3803
|
+
|
|
3532
3804
|
// racing condition on custom-select with custom-menu
|
|
3533
3805
|
if (!this.menu) {
|
|
3534
3806
|
setTimeout(() => {
|
|
@@ -3537,20 +3809,19 @@ class AuroSelect extends r$4 {
|
|
|
3537
3809
|
return;
|
|
3538
3810
|
}
|
|
3539
3811
|
|
|
3812
|
+
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
3540
3813
|
this.menu.setAttribute('aria-hidden', 'true');
|
|
3541
3814
|
|
|
3542
3815
|
this.generateOptionsArray();
|
|
3543
3816
|
|
|
3544
|
-
this.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
3817
|
+
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
3545
3818
|
this.optionActive = evt.detail;
|
|
3546
3819
|
});
|
|
3547
3820
|
|
|
3548
|
-
this.menu.addEventListener('selectedOption', () => {
|
|
3821
|
+
this.menu.addEventListener('auroMenu-selectedOption', () => {
|
|
3549
3822
|
this.optionSelected = this.menu.optionSelected;
|
|
3550
3823
|
this.value = this.optionSelected.value;
|
|
3551
3824
|
|
|
3552
|
-
this.updateDisplayedValue(this.optionSelected);
|
|
3553
|
-
|
|
3554
3825
|
if (this.dropdown.isPopoverVisible) {
|
|
3555
3826
|
this.dropdown.hide();
|
|
3556
3827
|
}
|
|
@@ -3564,25 +3835,11 @@ class AuroSelect extends r$4 {
|
|
|
3564
3835
|
* with `auro-select.value`.
|
|
3565
3836
|
*/
|
|
3566
3837
|
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
3567
|
-
this.
|
|
3568
|
-
this.optionSelected = this.menu.optionSelected;
|
|
3569
|
-
|
|
3570
|
-
this.validity = 'badInput';
|
|
3571
|
-
|
|
3572
|
-
// Capitalizes the first letter of each word in this.value string
|
|
3573
|
-
const valueStr = this.value.replace(/(^\w{1})|(\s+\w{1})/gu, (letter) => letter.toUpperCase());
|
|
3574
|
-
|
|
3575
|
-
// Pass the new string to the trigger content
|
|
3576
|
-
this.updateDisplayedValue(valueStr);
|
|
3838
|
+
this.reset();
|
|
3577
3839
|
});
|
|
3578
3840
|
|
|
3579
3841
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
3580
|
-
|
|
3581
|
-
this.updateDisplayedValue(this.placeholder);
|
|
3582
|
-
|
|
3583
|
-
this.optionSelected = undefined;
|
|
3584
|
-
this.value = undefined;
|
|
3585
|
-
|
|
3842
|
+
this.optionSelected = this.menu.optionSelected;
|
|
3586
3843
|
this.validation.validate(this);
|
|
3587
3844
|
});
|
|
3588
3845
|
}
|
|
@@ -3634,8 +3891,6 @@ class AuroSelect extends r$4 {
|
|
|
3634
3891
|
this.addEventListener('blur', () => {
|
|
3635
3892
|
this.validation.validate(this);
|
|
3636
3893
|
});
|
|
3637
|
-
|
|
3638
|
-
this.labelForSr();
|
|
3639
3894
|
}
|
|
3640
3895
|
|
|
3641
3896
|
/**
|
|
@@ -3754,50 +4009,21 @@ class AuroSelect extends r$4 {
|
|
|
3754
4009
|
}));
|
|
3755
4010
|
}
|
|
3756
4011
|
|
|
4012
|
+
if (changedProperties.has('optionSelected')) {
|
|
4013
|
+
this.updateDisplayedValue();
|
|
4014
|
+
}
|
|
4015
|
+
|
|
3757
4016
|
if (changedProperties.has('error')) {
|
|
3758
4017
|
this.validation.validate(this, true);
|
|
3759
4018
|
}
|
|
3760
4019
|
}
|
|
3761
4020
|
|
|
3762
4021
|
/**
|
|
3763
|
-
*
|
|
3764
|
-
* @private
|
|
4022
|
+
* Resets component to initial state.
|
|
3765
4023
|
* @returns {void}
|
|
3766
4024
|
*/
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
const textId = "label";
|
|
3770
|
-
|
|
3771
|
-
placeholderLabel.setAttribute("id", textId);
|
|
3772
|
-
placeholderLabel.setAttribute("aria-live", "polite");
|
|
3773
|
-
|
|
3774
|
-
const styles = {
|
|
3775
|
-
position: 'absolute',
|
|
3776
|
-
overflow: 'hidden',
|
|
3777
|
-
clipPath: 'inset(1px, 1px, 1px, 1px)',
|
|
3778
|
-
width: '1px',
|
|
3779
|
-
height: '1px',
|
|
3780
|
-
padding: '0',
|
|
3781
|
-
border: '0'
|
|
3782
|
-
};
|
|
3783
|
-
|
|
3784
|
-
Object.assign(placeholderLabel.style, styles);
|
|
3785
|
-
|
|
3786
|
-
this.addEventListener('focus', () => {
|
|
3787
|
-
document.body.appendChild(placeholderLabel);
|
|
3788
|
-
|
|
3789
|
-
if (!this.optionSelected) {
|
|
3790
|
-
document.getElementById(textId).innerHTML = this.placeholder;
|
|
3791
|
-
} else {
|
|
3792
|
-
document.getElementById(textId).innerHTML = `${this.optionSelected.innerText}, ${this.placeholder}`;
|
|
3793
|
-
}
|
|
3794
|
-
});
|
|
3795
|
-
|
|
3796
|
-
this.addEventListener('blur', () => {
|
|
3797
|
-
if (document.contains(placeholderLabel)) {
|
|
3798
|
-
document.body.removeChild(placeholderLabel);
|
|
3799
|
-
}
|
|
3800
|
-
});
|
|
4025
|
+
reset() {
|
|
4026
|
+
this.validation.reset(this);
|
|
3801
4027
|
}
|
|
3802
4028
|
|
|
3803
4029
|
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
@@ -3805,6 +4031,10 @@ class AuroSelect extends r$4 {
|
|
|
3805
4031
|
|
|
3806
4032
|
// function that renders the HTML and CSS into the scope of the component
|
|
3807
4033
|
render() {
|
|
4034
|
+
const placeholderClass = {
|
|
4035
|
+
hidden: this.value,
|
|
4036
|
+
};
|
|
4037
|
+
|
|
3808
4038
|
return u$3`
|
|
3809
4039
|
<div class="outerWrapper">
|
|
3810
4040
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
@@ -3831,7 +4061,7 @@ class AuroSelect extends r$4 {
|
|
|
3831
4061
|
chevron
|
|
3832
4062
|
part="dropdown">
|
|
3833
4063
|
<span slot="trigger" aria-haspopup="true" id="triggerFocus">
|
|
3834
|
-
|
|
4064
|
+
<span id="placeholder" class="${e$5(placeholderClass)}"><slot name="placeholder"></slot></span>
|
|
3835
4065
|
</span>
|
|
3836
4066
|
<div class="menuWrapper">
|
|
3837
4067
|
</div>
|
|
@@ -3844,7 +4074,7 @@ class AuroSelect extends r$4 {
|
|
|
3844
4074
|
</p>`
|
|
3845
4075
|
: u$3`
|
|
3846
4076
|
<p class="selectElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
3847
|
-
${this.
|
|
4077
|
+
${this.errorMessage}
|
|
3848
4078
|
</p>`
|
|
3849
4079
|
}
|
|
3850
4080
|
</span>
|
|
@@ -3876,14 +4106,10 @@ var tokensCss$1 = i$b`:host{--ds-auro-menu-divider-color: var(--ds-color-border-
|
|
|
3876
4106
|
* @attr {String} value - Value selected for the menu.
|
|
3877
4107
|
* @prop {Boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
3878
4108
|
* @event auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
|
|
3879
|
-
* @event selectedOption - (DEPRECATED) Notifies that a new menuoption selection has been made.
|
|
3880
4109
|
* @event auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
3881
|
-
* @event auroMenuActivatedOption - (DEPRECATED) Notifies that a menuoption has been made `active`.
|
|
3882
4110
|
* @event auroMenu-selectValueFailure - Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
3883
|
-
* @event auroMenuSelectValueFailure - (DEPRECATED) Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
3884
|
-
* @event auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
3885
|
-
* @event auroMenuCustomEventFired - (DEPRECATED) Notifies that a custom event has been fired.
|
|
3886
4111
|
* @event auroMenu-selectValueReset - Notifies that the component value has been reset.
|
|
4112
|
+
* @event auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
3887
4113
|
* @event auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
3888
4114
|
* @slot loadingText - Text to show while loading attribute is set
|
|
3889
4115
|
* @slot loadingIcon - Icon to show while loading attribute is set
|
|
@@ -4091,13 +4317,6 @@ class AuroMenu extends r$4 {
|
|
|
4091
4317
|
* @return {void}
|
|
4092
4318
|
*/
|
|
4093
4319
|
notifySelectionChange() {
|
|
4094
|
-
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
4095
|
-
this.dispatchEvent(new CustomEvent('selectedOption', {
|
|
4096
|
-
bubbles: true,
|
|
4097
|
-
cancelable: false,
|
|
4098
|
-
composed: true,
|
|
4099
|
-
}));
|
|
4100
|
-
|
|
4101
4320
|
this.dispatchEvent(new CustomEvent('auroMenu-selectedOption', {
|
|
4102
4321
|
bubbles: true,
|
|
4103
4322
|
cancelable: false,
|
|
@@ -4129,13 +4348,6 @@ class AuroMenu extends r$4 {
|
|
|
4129
4348
|
composed: true,
|
|
4130
4349
|
}));
|
|
4131
4350
|
|
|
4132
|
-
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
4133
|
-
this.dispatchEvent(new CustomEvent('auroMenuCustomEventFired', {
|
|
4134
|
-
bubbles: true,
|
|
4135
|
-
cancelable: false,
|
|
4136
|
-
composed: true,
|
|
4137
|
-
}));
|
|
4138
|
-
|
|
4139
4351
|
this.dispatchEvent(new CustomEvent('auroMenu-customEventFired', {
|
|
4140
4352
|
bubbles: true,
|
|
4141
4353
|
cancelable: false,
|
|
@@ -4296,13 +4508,6 @@ class AuroMenu extends r$4 {
|
|
|
4296
4508
|
// reset the menu to no selection
|
|
4297
4509
|
this.index = undefined;
|
|
4298
4510
|
|
|
4299
|
-
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
4300
|
-
this.dispatchEvent(new CustomEvent('auroMenuSelectValueFailure', {
|
|
4301
|
-
bubbles: true,
|
|
4302
|
-
cancelable: false,
|
|
4303
|
-
composed: true,
|
|
4304
|
-
}));
|
|
4305
|
-
|
|
4306
4511
|
this.dispatchEvent(new CustomEvent('auroMenu-selectValueFailure', {
|
|
4307
4512
|
bubbles: true,
|
|
4308
4513
|
cancelable: false,
|
|
@@ -4334,13 +4539,6 @@ class AuroMenu extends r$4 {
|
|
|
4334
4539
|
this.items[index].classList.add('active');
|
|
4335
4540
|
this.optionActive = this.items[index];
|
|
4336
4541
|
|
|
4337
|
-
this.dispatchEvent(new CustomEvent('auroMenuActivatedOption', {
|
|
4338
|
-
bubbles: true,
|
|
4339
|
-
cancelable: false,
|
|
4340
|
-
composed: true,
|
|
4341
|
-
detail: this.items[index]
|
|
4342
|
-
}));
|
|
4343
|
-
|
|
4344
4542
|
this.dispatchEvent(new CustomEvent('auroMenu-activatedOption', {
|
|
4345
4543
|
bubbles: true,
|
|
4346
4544
|
cancelable: false,
|
|
@@ -4426,19 +4624,6 @@ var styleCss$1 = i$b`:host{display:flex;align-items:center;padding:var(--ds-size
|
|
|
4426
4624
|
|
|
4427
4625
|
var colorCss$1 = i$b`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color) !important}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}`;
|
|
4428
4626
|
|
|
4429
|
-
/**
|
|
4430
|
-
* @license
|
|
4431
|
-
* Copyright 2017 Google LLC
|
|
4432
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4433
|
-
*/
|
|
4434
|
-
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
4435
|
-
|
|
4436
|
-
/**
|
|
4437
|
-
* @license
|
|
4438
|
-
* Copyright 2018 Google LLC
|
|
4439
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4440
|
-
*/const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
4441
|
-
|
|
4442
4627
|
/**
|
|
4443
4628
|
* @license
|
|
4444
4629
|
* Copyright 2018 Google LLC
|
|
@@ -4511,7 +4696,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
4511
4696
|
return _fetchMap.get(uri);
|
|
4512
4697
|
};
|
|
4513
4698
|
|
|
4514
|
-
var styleCss = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline: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}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.labelContainer{line-height:1.8}`;
|
|
4699
|
+
var styleCss = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline: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}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
4515
4700
|
|
|
4516
4701
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4517
4702
|
// See LICENSE in the project root for license information.
|
|
@@ -4778,12 +4963,13 @@ class AuroIcon extends BaseIcon {
|
|
|
4778
4963
|
};
|
|
4779
4964
|
|
|
4780
4965
|
const classes = {
|
|
4781
|
-
'label': this.label
|
|
4966
|
+
'label': this.label,
|
|
4967
|
+
'wrapper': true,
|
|
4782
4968
|
};
|
|
4783
4969
|
|
|
4784
4970
|
return x$1`
|
|
4785
4971
|
<div
|
|
4786
|
-
class="${e(classes)}"
|
|
4972
|
+
class="${e$5(classes)}"
|
|
4787
4973
|
title="${o(this.title || undefined)}">
|
|
4788
4974
|
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
4789
4975
|
${this.customSvg ? x$1`
|
|
@@ -4794,7 +4980,7 @@ class AuroIcon extends BaseIcon {
|
|
|
4794
4980
|
}
|
|
4795
4981
|
</span>
|
|
4796
4982
|
|
|
4797
|
-
<div class="${e(a11y)}">
|
|
4983
|
+
<div class="${e$5(a11y)}">
|
|
4798
4984
|
<slot></slot>
|
|
4799
4985
|
</div>
|
|
4800
4986
|
</div>
|
|
@@ -4802,7 +4988,7 @@ class AuroIcon extends BaseIcon {
|
|
|
4802
4988
|
}
|
|
4803
4989
|
}
|
|
4804
4990
|
|
|
4805
|
-
var iconVersion = '6.1.
|
|
4991
|
+
var iconVersion = '6.1.2';
|
|
4806
4992
|
|
|
4807
4993
|
var checkmarkIcon = {"role":"img","color":"currentColor","title":"","desc":"a small check mark.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"checkmark-sm","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
|
|
4808
4994
|
|
|
@@ -4860,8 +5046,7 @@ class AuroMenuOption extends r$4 {
|
|
|
4860
5046
|
reflect: true
|
|
4861
5047
|
},
|
|
4862
5048
|
value: {
|
|
4863
|
-
type: String
|
|
4864
|
-
reflect: true
|
|
5049
|
+
type: String
|
|
4865
5050
|
},
|
|
4866
5051
|
tabIndex: {
|
|
4867
5052
|
type: Number,
|
|
@@ -4952,7 +5137,9 @@ function initExamples(initCount) {
|
|
|
4952
5137
|
setErrorExample();
|
|
4953
5138
|
valueExample();
|
|
4954
5139
|
valueExtractionExample();
|
|
5140
|
+
valueAlertExample();
|
|
4955
5141
|
inDialogExample();
|
|
5142
|
+
resetStateExample();
|
|
4956
5143
|
auroMenuLoadingExample();
|
|
4957
5144
|
} catch (err) {
|
|
4958
5145
|
if (initCount <= 20) {
|