@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
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$7=globalThis,e$a=t$7.ShadowRoot&&(
|
|
6
|
+
const t$7=globalThis,e$a=t$7.ShadowRoot&&(undefined===t$7.ShadyCSS||t$7.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$7=Symbol(),o$a=new WeakMap;let n$9 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$7)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$a&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$a.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$a.set(s,t));}return t}toString(){return this.cssText}};const r$a=t=>new n$9("string"==typeof t?t:t+"",undefined,s$7),i$c=(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$9(o,t,s$7)},S$4=(s,o)=>{if(e$a)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$7.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$7=e$a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$a(e)})(t):t;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$b,defineProperty:e$9,getOwnPropertyDescriptor:r$9,getOwnPropertyNames:h$4,getOwnPropertySymbols:o$9,getPrototypeOf:n$8}=Object,a$6=globalThis,c$6=a$6.trustedTypes,l$6=c$6?c$6.emptyScript:"",p$5=a$6.reactiveElementPolyfillSupport,d$4=(t,s)=>t,u$8={toAttribute(t,s){switch(s){case Boolean:t=t?l$6: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$4=(t,s)=>!i$b(t,s),y$4={attribute
|
|
12
|
+
*/const{is:i$b,defineProperty:e$9,getOwnPropertyDescriptor:r$9,getOwnPropertyNames:h$4,getOwnPropertySymbols:o$9,getPrototypeOf:n$8}=Object,a$6=globalThis,c$6=a$6.trustedTypes,l$6=c$6?c$6.emptyScript:"",p$5=a$6.reactiveElementPolyfillSupport,d$4=(t,s)=>t,u$8={toAttribute(t,s){switch(s){case Boolean:t=t?l$6: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$4=(t,s)=>!i$b(t,s),y$4={attribute:true,type:String,converter:u$8,reflect:false,hasChanged:f$4};Symbol.metadata??=Symbol("metadata"),a$6.litPropertyMetadata??=new WeakMap;let b$2 = 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$4){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$9(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$9(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$4}static _$Ei(){if(this.hasOwnProperty(d$4("elementProperties")))return;const t=n$8(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$4("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$4("properties"))){const t=this.properties,s=[...h$4(t),...o$9(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$7(s));}else undefined!==s&&i.push(c$7(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$4(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$8).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$8;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$4)(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$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$4("elementProperties")]=new Map,b$2[d$4("finalized")]=new Map,p$5?.({ReactiveElement:b$2}),(a$6.reactiveElementVersions??=[]).push("2.0.4");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const t$6=globalThis,i$a=t$6.trustedTypes,s$6=i$a?i$a.createPolicy("lit-html",{createHTML:t=>t}):
|
|
19
|
+
const t$6=globalThis,i$a=t$6.trustedTypes,s$6=i$a?i$a.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$8="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$3,n$7=`<${o$8}>`,r$8=document,l$5=()=>r$8.createComment(""),c$5=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$5=Array.isArray,u$7=t=>a$5(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$2=/>/g,m$3=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$3(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$8.createTreeWalker(r$8,129);function P$2(t,i){if(!a$5(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$6?s$6.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;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$3?"!--"===u[1]?c=v$3:undefined!==u[1]?c=_$2:undefined!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):undefined!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$3,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$3:'"'===u[3]?g$2:p$4):c===g$2||c===p$4?c=m$3:c===v$3||c===_$2?c=f$3:(c=m$3,r=undefined);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$7:d>=0?(o.push(a),s.slice(0,d)+e$8+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = 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$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$8)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$a?i$a.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$5()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$5());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$2)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$5(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$3(t,h._$AS(t,i.values),h,e)),i}let M$3 = 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$8).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$2(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$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$8,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$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,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$3(this,t,i),c$5(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$7(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$2&&c$5(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.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$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return undefined===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$5(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$5()),this.O(l$5()),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$2 = 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$2,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$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$3(this,t,i,0),o=!c$5(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$5(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?undefined:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||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$2 = 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$3(this,t);}};const j$2=t$6.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$6.litHtmlVersions??=[]).push("3.2.1");const B$2=(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$2(i.insertBefore(l$5(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/let r$7 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
25
|
+
*/let r$7 = class r extends b$2{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$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$7._$litElement$=true,r$7["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$7});const i$9=globalThis.litElementPolyfillSupport;i$9?.({LitElement:r$7});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
const a$4=Symbol.for(""),o$7=t=>{if(t?.r===a$4)return t?._$litStatic$},s$5=t=>({_$litStatic$:t,r:a$4}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
32
|
+
const a$4=Symbol.for(""),o$7=t=>{if(t?.r===a$4)return t?._$litStatic$},s$5=t=>({_$litStatic$:t,r:a$4}),i$8=(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$4}),l$4=new Map,n$6=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$7(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$4.get(t))&&(n.raw=n,l$4.set(t,r=n)),e=u;}return t(r,...e)},u$6=n$6(x$2);
|
|
33
33
|
|
|
34
34
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
35
35
|
// See LICENSE in the project root for license information.
|
|
@@ -111,25 +111,111 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Resets the element to its initial state.
|
|
115
115
|
* @private
|
|
116
|
-
* @param {object} elem - HTML element to
|
|
116
|
+
* @param {object} elem - HTML element to reset.
|
|
117
117
|
* @returns {void}
|
|
118
118
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
reset(elem) {
|
|
120
|
+
elem.validity = undefined;
|
|
121
|
+
elem.value = undefined;
|
|
122
|
+
|
|
123
|
+
// Resets the second value of the datepicker in range state
|
|
124
|
+
if (elem.valueEnd) {
|
|
125
|
+
elem.valueEnd = undefined;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Resets selected option of element
|
|
129
|
+
if (elem.optionSelected) {
|
|
130
|
+
elem.optionSelected = undefined;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Runs validation to handle error attribute
|
|
134
|
+
this.validate(elem);
|
|
135
|
+
}
|
|
122
136
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
139
|
+
*
|
|
140
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
141
|
+
* @returns {void}
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
145
|
+
* validateElementAttributes(inputElement);
|
|
146
|
+
*
|
|
147
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
148
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
149
|
+
*
|
|
150
|
+
* Validation rules:
|
|
151
|
+
* - input:
|
|
152
|
+
* - length:
|
|
153
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
154
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
155
|
+
* - pattern:
|
|
156
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
157
|
+
* - counter:
|
|
158
|
+
* - range:
|
|
159
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
160
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
161
|
+
*/
|
|
162
|
+
validateElementAttributes(elem) {
|
|
163
|
+
const validationRules = {
|
|
164
|
+
input: {
|
|
165
|
+
length: [
|
|
166
|
+
{
|
|
167
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
168
|
+
validity: 'tooShort',
|
|
169
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
173
|
+
validity: 'tooLong',
|
|
174
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
pattern: [
|
|
178
|
+
{
|
|
179
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
180
|
+
validity: 'patternMismatch',
|
|
181
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
counter: {
|
|
186
|
+
range: [
|
|
187
|
+
{
|
|
188
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
189
|
+
validity: 'rangeOverflow',
|
|
190
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
194
|
+
validity: 'rangeUnderflow',
|
|
195
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
let elementType;
|
|
202
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
203
|
+
elementType = 'input';
|
|
204
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
205
|
+
elementType = 'counter';
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (elementType) {
|
|
209
|
+
const rules = validationRules[elementType];
|
|
210
|
+
|
|
211
|
+
if (rules) {
|
|
212
|
+
Object.values(rules).flat().forEach(rule => {
|
|
213
|
+
if (rule.check(elem)) {
|
|
214
|
+
elem.validity = rule.validity;
|
|
215
|
+
elem.errorMessage = rule.message(elem);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
126
218
|
}
|
|
127
|
-
} else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
|
|
128
|
-
elem.validity = 'tooShort';
|
|
129
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
130
|
-
} else if (elem.value && elem.value.length > elem.maxLength) {
|
|
131
|
-
elem.validity = 'tooLong';
|
|
132
|
-
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
133
219
|
}
|
|
134
220
|
}
|
|
135
221
|
|
|
@@ -145,33 +231,32 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
145
231
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
146
232
|
|
|
147
233
|
if (!elem.value.match(emailRegex)) {
|
|
148
|
-
elem.validity = '
|
|
149
|
-
elem.
|
|
234
|
+
elem.validity = 'patternMismatch';
|
|
235
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
150
236
|
}
|
|
151
237
|
} else if (elem.type === 'credit-card') {
|
|
152
238
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
153
239
|
elem.validity = 'tooShort';
|
|
154
|
-
elem.
|
|
240
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
155
241
|
}
|
|
156
|
-
} else if (elem.type === 'number'
|
|
242
|
+
} else if (elem.type === 'number') {
|
|
157
243
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
158
244
|
elem.validity = 'rangeOverflow';
|
|
159
|
-
elem.
|
|
245
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
160
246
|
}
|
|
161
247
|
|
|
162
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
248
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
163
249
|
elem.validity = 'rangeUnderflow';
|
|
164
|
-
elem.
|
|
250
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
165
251
|
}
|
|
166
|
-
|
|
167
252
|
} else if (elem.type === 'month-day-year' ||
|
|
168
253
|
elem.type === 'month-year' ||
|
|
169
254
|
elem.type === 'month-fullYear' ||
|
|
170
255
|
elem.type === 'year-month-day'
|
|
171
256
|
) {
|
|
172
|
-
if (elem.value
|
|
257
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
173
258
|
elem.validity = 'tooShort';
|
|
174
|
-
elem.
|
|
259
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
175
260
|
} else {
|
|
176
261
|
const valueDate = new Date(elem.value);
|
|
177
262
|
|
|
@@ -181,7 +266,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
181
266
|
|
|
182
267
|
if (valueDate > maxDate) {
|
|
183
268
|
elem.validity = 'rangeOverflow';
|
|
184
|
-
elem.
|
|
269
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
185
270
|
}
|
|
186
271
|
}
|
|
187
272
|
|
|
@@ -191,7 +276,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
191
276
|
|
|
192
277
|
if (valueDate < minDate) {
|
|
193
278
|
elem.validity = 'rangeUnderflow';
|
|
194
|
-
elem.
|
|
279
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
195
280
|
}
|
|
196
281
|
}
|
|
197
282
|
}
|
|
@@ -214,10 +299,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
214
299
|
|
|
215
300
|
if (elem.hasAttribute('error')) {
|
|
216
301
|
elem.validity = 'customError';
|
|
217
|
-
elem.
|
|
302
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
218
303
|
} else if (validationShouldRun) {
|
|
219
304
|
elem.validity = 'valid';
|
|
220
|
-
elem.
|
|
305
|
+
elem.errorMessage = '';
|
|
221
306
|
|
|
222
307
|
/**
|
|
223
308
|
* Only validate once we interact with the datepicker
|
|
@@ -229,7 +314,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
229
314
|
let hasValue = elem.value && elem.value.length > 0;
|
|
230
315
|
|
|
231
316
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
232
|
-
if (this.auroInputElements
|
|
317
|
+
if (this.auroInputElements?.length === 2) {
|
|
233
318
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
234
319
|
hasValue = false;
|
|
235
320
|
}
|
|
@@ -237,35 +322,29 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
237
322
|
|
|
238
323
|
if (!hasValue && elem.required) {
|
|
239
324
|
elem.validity = 'valueMissing';
|
|
240
|
-
elem.
|
|
325
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
241
326
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
242
327
|
this.validateType(elem);
|
|
243
|
-
this.
|
|
328
|
+
this.validateElementAttributes(elem);
|
|
329
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
330
|
+
this.validateElementAttributes(elem);
|
|
244
331
|
}
|
|
245
332
|
}
|
|
246
333
|
|
|
247
|
-
if (this.auroInputElements
|
|
334
|
+
if (this.auroInputElements?.length > 0) {
|
|
248
335
|
elem.validity = this.auroInputElements[0].validity;
|
|
249
|
-
elem.
|
|
336
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
250
337
|
|
|
251
|
-
if (elem.validity === 'valid') {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
255
|
-
}
|
|
338
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
339
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
340
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
256
341
|
}
|
|
257
342
|
}
|
|
258
343
|
|
|
259
344
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
// Use the validity message override if it is declared
|
|
264
|
-
if (elem.ValidityMessageOverride) {
|
|
265
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
266
|
-
}
|
|
267
|
-
} else {
|
|
268
|
-
elem.isValid = true;
|
|
345
|
+
// Use the validity message override if it is declared
|
|
346
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
347
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
269
348
|
}
|
|
270
349
|
|
|
271
350
|
this.getErrorMessage(elem);
|
|
@@ -311,18 +390,18 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
311
390
|
if (elem.validity !== 'valid') {
|
|
312
391
|
if (elem.setCustomValidity) {
|
|
313
392
|
elem.errorMessage = elem.setCustomValidity;
|
|
314
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
393
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
315
394
|
const input = elem.renderRoot.querySelector('input');
|
|
316
395
|
|
|
317
396
|
if (input.validationMessage.length > 0) {
|
|
318
397
|
elem.errorMessage = input.validationMessage;
|
|
319
398
|
}
|
|
320
|
-
} else if (this.inputElements &&
|
|
399
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
321
400
|
const firstInput = this.inputElements[0];
|
|
322
401
|
|
|
323
402
|
if (firstInput.validationMessage.length > 0) {
|
|
324
403
|
elem.errorMessage = firstInput.validationMessage;
|
|
325
|
-
} else if (this.inputElements
|
|
404
|
+
} else if (this.inputElements?.length === 2) {
|
|
326
405
|
const secondInput = this.inputElements[1];
|
|
327
406
|
|
|
328
407
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -665,7 +744,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
665
744
|
* @license
|
|
666
745
|
* Copyright 2017 Google LLC
|
|
667
746
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
668
|
-
*/const o$6={attribute
|
|
747
|
+
*/const o$6={attribute:true,type:String,converter:u$8,reflect:false,hasChanged:f$4},r$6=(t=o$6,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(undefined===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return undefined!==e&&this.P(o,undefined,t),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n$5(t){return (e,o)=>"object"==typeof o?r$6(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:true}:t),r?Object.getOwnPropertyDescriptor(e,o):undefined})(t,e,o)}
|
|
669
748
|
|
|
670
749
|
/**
|
|
671
750
|
* @module constants
|
|
@@ -6390,7 +6469,7 @@ function cleanEscapedString(input) {
|
|
|
6390
6469
|
* //=> Mon Sep 01 2014 00:00:00
|
|
6391
6470
|
*/
|
|
6392
6471
|
function subMonths(date, amount, options) {
|
|
6393
|
-
return addMonths(date, -
|
|
6472
|
+
return addMonths(date, -1, options);
|
|
6394
6473
|
}
|
|
6395
6474
|
|
|
6396
6475
|
/**
|
|
@@ -6420,7 +6499,7 @@ function subMonths(date, amount, options) {
|
|
|
6420
6499
|
* //=> Tue Sep 01 2009 00:00:00
|
|
6421
6500
|
*/
|
|
6422
6501
|
function subYears(date, amount, options) {
|
|
6423
|
-
return addYears(date, -
|
|
6502
|
+
return addYears(date, -1, options);
|
|
6424
6503
|
}
|
|
6425
6504
|
|
|
6426
6505
|
class RangeDatepickerCell extends r$7 {
|
|
@@ -6461,8 +6540,8 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6461
6540
|
@focus="${this.handleHover}"
|
|
6462
6541
|
class="day ${this.isCurrentDate ? 'currentDate' : ''} ${this.isSelected(this.selected)} ${this.isHovered(this.hovered)} ${this.isEnabled(this.day, this.min, this.max, this.disabledDays)}"
|
|
6463
6542
|
?disabled="${this.disabled}"
|
|
6464
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
6465
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
6543
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}">
|
|
6544
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
6466
6545
|
</button>
|
|
6467
6546
|
`;
|
|
6468
6547
|
}
|
|
@@ -6502,7 +6581,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6502
6581
|
let _a;
|
|
6503
6582
|
if (!this.disabled) {
|
|
6504
6583
|
this.dispatchEvent(new CustomEvent('date-is-selected', {
|
|
6505
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6584
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6506
6585
|
}));
|
|
6507
6586
|
}
|
|
6508
6587
|
}
|
|
@@ -6510,7 +6589,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6510
6589
|
handleHover() {
|
|
6511
6590
|
let _a;
|
|
6512
6591
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
6513
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6592
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6514
6593
|
}));
|
|
6515
6594
|
}
|
|
6516
6595
|
|
|
@@ -6611,18 +6690,18 @@ RangeDatepickerCell.styles = i$c`
|
|
|
6611
6690
|
opacity: 0.4;
|
|
6612
6691
|
}
|
|
6613
6692
|
`;
|
|
6614
|
-
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day",
|
|
6615
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected",
|
|
6616
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered",
|
|
6617
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo",
|
|
6618
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom",
|
|
6619
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month",
|
|
6620
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min",
|
|
6621
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max",
|
|
6622
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled",
|
|
6623
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
6624
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate",
|
|
6625
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate",
|
|
6693
|
+
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day", undefined);
|
|
6694
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected", undefined);
|
|
6695
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered", undefined);
|
|
6696
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo", undefined);
|
|
6697
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom", undefined);
|
|
6698
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month", undefined);
|
|
6699
|
+
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min", undefined);
|
|
6700
|
+
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max", undefined);
|
|
6701
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled", undefined);
|
|
6702
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays", undefined);
|
|
6703
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", undefined);
|
|
6704
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", undefined);
|
|
6626
6705
|
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6627
6706
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6628
6707
|
|
|
@@ -6701,11 +6780,11 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6701
6780
|
<div class="table">
|
|
6702
6781
|
<div class="thead">
|
|
6703
6782
|
<div class="tr">
|
|
6704
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
6783
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map((dayNameOfWeek) => this.renderDayOfWeek(dayNameOfWeek))}
|
|
6705
6784
|
</div>
|
|
6706
6785
|
</div>
|
|
6707
6786
|
<div class="tbody">
|
|
6708
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
6787
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map((week) => this.renderWeek(week))}
|
|
6709
6788
|
</div>
|
|
6710
6789
|
</div>
|
|
6711
6790
|
</div>
|
|
@@ -6904,7 +6983,7 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6904
6983
|
|
|
6905
6984
|
handleOpenYearSelection() {
|
|
6906
6985
|
let _a;
|
|
6907
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
6986
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
6908
6987
|
const index = menu.items.findIndex((item) => item.value === this.year.toString());
|
|
6909
6988
|
menu.select(index);
|
|
6910
6989
|
menu.show();
|
|
@@ -6912,9 +6991,9 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6912
6991
|
|
|
6913
6992
|
handleYearSelected() {
|
|
6914
6993
|
let _a;
|
|
6915
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
6994
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
6916
6995
|
const selected = menu.selected;
|
|
6917
|
-
this.year = parseInt(selected === null || selected ===
|
|
6996
|
+
this.year = parseInt(selected === null || selected === undefined ? undefined : selected.value, 10);
|
|
6918
6997
|
}
|
|
6919
6998
|
|
|
6920
6999
|
handleDateHovered(event) {
|
|
@@ -6926,12 +7005,12 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6926
7005
|
|
|
6927
7006
|
handleNextMonth() {
|
|
6928
7007
|
let _a, _b;
|
|
6929
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
6930
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
6931
|
-
tbody === null || tbody ===
|
|
6932
|
-
tbody === null || tbody ===
|
|
6933
|
-
monthName === null || monthName ===
|
|
6934
|
-
monthName === null || monthName ===
|
|
7008
|
+
const tbody = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.tbody');
|
|
7009
|
+
const monthName = (_b = this.shadowRoot) === null || _b === undefined ? undefined : _b.querySelector('.header > div');
|
|
7010
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7011
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToLeft');
|
|
7012
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7013
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToLeft');
|
|
6935
7014
|
const month = parse(this.month, 'MM', new Date());
|
|
6936
7015
|
const monthPlusDate = addMonths(month, 1);
|
|
6937
7016
|
const monthPlusString = format(monthPlusDate, 'MM', {
|
|
@@ -6948,20 +7027,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6948
7027
|
}
|
|
6949
7028
|
this.dispatchEvent(new CustomEvent('next-month'));
|
|
6950
7029
|
setTimeout(() => {
|
|
6951
|
-
tbody === null || tbody ===
|
|
6952
|
-
tbody === null || tbody ===
|
|
6953
|
-
tbody === null || tbody ===
|
|
6954
|
-
monthName === null || monthName ===
|
|
6955
|
-
monthName === null || monthName ===
|
|
6956
|
-
monthName === null || monthName ===
|
|
7030
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7031
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToRight');
|
|
7032
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToLeft');
|
|
7033
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7034
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToRight');
|
|
7035
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToLeft');
|
|
6957
7036
|
setTimeout(() => {
|
|
6958
|
-
tbody === null || tbody ===
|
|
6959
|
-
tbody === null || tbody ===
|
|
6960
|
-
monthName === null || monthName ===
|
|
6961
|
-
monthName === null || monthName ===
|
|
7037
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7038
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToRight');
|
|
7039
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7040
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToRight');
|
|
6962
7041
|
setTimeout(() => {
|
|
6963
|
-
tbody === null || tbody ===
|
|
6964
|
-
monthName === null || monthName ===
|
|
7042
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7043
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
6965
7044
|
}, 100);
|
|
6966
7045
|
}, 100);
|
|
6967
7046
|
}, 100);
|
|
@@ -6969,21 +7048,21 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6969
7048
|
|
|
6970
7049
|
handlePrevMonth() {
|
|
6971
7050
|
let _a, _b;
|
|
6972
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
6973
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
6974
|
-
tbody === null || tbody ===
|
|
6975
|
-
tbody === null || tbody ===
|
|
6976
|
-
monthName === null || monthName ===
|
|
6977
|
-
monthName === null || monthName ===
|
|
7051
|
+
const tbody = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.tbody');
|
|
7052
|
+
const monthName = (_b = this.shadowRoot) === null || _b === undefined ? undefined : _b.querySelector('.header > div');
|
|
7053
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7054
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToRight');
|
|
7055
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7056
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToRight');
|
|
6978
7057
|
const month = parse(this.month, 'MM', new Date());
|
|
6979
|
-
const monthMinusDate = subMonths(month
|
|
7058
|
+
const monthMinusDate = subMonths(month);
|
|
6980
7059
|
const monthMinusString = format(monthMinusDate, 'MM', {
|
|
6981
7060
|
locale: this.locale,
|
|
6982
7061
|
});
|
|
6983
7062
|
this.month = monthMinusString;
|
|
6984
7063
|
if (this.month === '12') {
|
|
6985
7064
|
const year = parse(this.year.toString(), 'yyyy', new Date());
|
|
6986
|
-
const yearMinusDate = subYears(year
|
|
7065
|
+
const yearMinusDate = subYears(year);
|
|
6987
7066
|
const yearMinusString = format(yearMinusDate, 'yyyy', {
|
|
6988
7067
|
locale: this.locale,
|
|
6989
7068
|
});
|
|
@@ -6991,20 +7070,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6991
7070
|
}
|
|
6992
7071
|
this.dispatchEvent(new CustomEvent('prev-month'));
|
|
6993
7072
|
setTimeout(() => {
|
|
6994
|
-
tbody === null || tbody ===
|
|
6995
|
-
tbody === null || tbody ===
|
|
6996
|
-
tbody === null || tbody ===
|
|
6997
|
-
monthName === null || monthName ===
|
|
6998
|
-
monthName === null || monthName ===
|
|
6999
|
-
monthName === null || monthName ===
|
|
7073
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7074
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToLeft');
|
|
7075
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToRight');
|
|
7076
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7077
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToLeft');
|
|
7078
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToRight');
|
|
7000
7079
|
setTimeout(() => {
|
|
7001
|
-
tbody === null || tbody ===
|
|
7002
|
-
tbody === null || tbody ===
|
|
7003
|
-
monthName === null || monthName ===
|
|
7004
|
-
monthName === null || monthName ===
|
|
7080
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7081
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToLeft');
|
|
7082
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7083
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToLeft');
|
|
7005
7084
|
setTimeout(() => {
|
|
7006
|
-
monthName === null || monthName ===
|
|
7007
|
-
monthName === null || monthName ===
|
|
7085
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7086
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7008
7087
|
}, 100);
|
|
7009
7088
|
}, 100);
|
|
7010
7089
|
}, 100);
|
|
@@ -7124,24 +7203,24 @@ RangeDatepickerCalendar.styles = i$c`
|
|
|
7124
7203
|
max-height: 200px;
|
|
7125
7204
|
}
|
|
7126
7205
|
`;
|
|
7127
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom",
|
|
7128
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo",
|
|
7129
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate",
|
|
7130
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange",
|
|
7131
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month",
|
|
7132
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow",
|
|
7133
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange",
|
|
7134
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next",
|
|
7135
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev",
|
|
7136
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year",
|
|
7137
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays",
|
|
7206
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom", undefined);
|
|
7207
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo", undefined);
|
|
7208
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate", undefined);
|
|
7209
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange", undefined);
|
|
7210
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month", undefined);
|
|
7211
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow", undefined);
|
|
7212
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange", undefined);
|
|
7213
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next", undefined);
|
|
7214
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev", undefined);
|
|
7215
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year", undefined);
|
|
7216
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays", undefined);
|
|
7138
7217
|
__decorate([n$5({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7139
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max",
|
|
7140
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min",
|
|
7141
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
7142
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList",
|
|
7143
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek",
|
|
7144
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth",
|
|
7218
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max", undefined);
|
|
7219
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min", undefined);
|
|
7220
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList", undefined);
|
|
7221
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", undefined);
|
|
7222
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", undefined);
|
|
7223
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", undefined);
|
|
7145
7224
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7146
7225
|
|
|
7147
7226
|
/**
|
|
@@ -7155,11 +7234,11 @@ const t$5={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
7155
7234
|
* @license
|
|
7156
7235
|
* Copyright 2018 Google LLC
|
|
7157
7236
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7158
|
-
*/const e$6=e$7(class extends i$7{constructor(t){if(super(t),t.type!==t$5.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(
|
|
7237
|
+
*/const e$6=e$7(class extends i$7{constructor(t){if(super(t),t.type!==t$5.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$2}});
|
|
7159
7238
|
|
|
7160
7239
|
var styleCss$6 = i$c`@media screen and (max-width: 576px){:host{display:flex;justify-content:center}}.day{position:relative;width:var(--ds-size-500, 2.5rem);height:calc(var(--ds-size-700, 3.5rem) - 2px);padding:0;border-width:1px;border-style:solid;border-radius:var(--ds-size-300, 1.5rem);cursor:pointer;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);user-select:none}.day.disabled{cursor:default !important}.day.inRange::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%)}@media screen and (min-width: 576px){.day.inRange::before{width:var(--ds-size-600, 3rem)}}.day.rangeDepartDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(0%, -50%)}@media screen and (min-width: 576px){.day.rangeDepartDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.day.rangeReturnDate::before,.day.lastHoveredDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(-100%, -50%)}@media screen and (min-width: 576px){.day.rangeReturnDate::before,.day.lastHoveredDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.dateSlot{display:flex;flex-direction:column;font-size:var(--ds-text-body-size-xxs, 0.625rem)}::slotted([slot^=date_]){position:absolute;top:80%;left:50%;width:80%;overflow:hidden;white-space:nowrap;transform:translate(-50%, -50%)}::slotted(auro-icon){max-height:24px;max-width:24px}:host([renderForDateSlot]) .buttonWrapper{position:relative;width:100%;top:5px}:host([renderForDateSlot]) .currentDayMarker{position:relative;padding-bottom:5px;top:-8px}@media screen and (min-width: 576px){.day{width:var(--ds-size-600, 3rem);height:var(--ds-size-800, 4rem);font-size:var(--ds-text-body-size-lg, 1.125rem)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-text-body-size-xs, 0.75rem)}}`;
|
|
7161
7240
|
|
|
7162
|
-
var colorCss$6 = i$c`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-success-default, #0b6f4d)}.day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}.day.selected{--ds-auro-calendar-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-calendar-cell-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-inverse, #ffffff);box-shadow:var(--ds-auro-calendar-boxshadow-color)}.day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-cell-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:unset}.day.selected:not(:hover){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-inverse, #ffffff)}.day:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-
|
|
7241
|
+
var colorCss$6 = i$c`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-success-default, #0b6f4d)}.day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}.day.selected{--ds-auro-calendar-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-calendar-cell-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-inverse, #ffffff);box-shadow:var(--ds-auro-calendar-boxshadow-color)}.day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-cell-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:unset}.day.selected:not(:hover){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-inverse, #ffffff)}.day:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-brand-neutral-200, #e4e8ec);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-default, #2a2a2a)}.day.disabled{--ds-auro-calendar-cell-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff)}.day.inRange:before,.day.rangeDepartDate:before,.day.rangeReturnDate:before,.day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}.day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}:host([disabled]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
7163
7242
|
|
|
7164
7243
|
var styleCss$5 = i$c`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 400;--ds-depth-tooltip: 300;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #dddddd;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #dddddd;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*: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,:host([addSpace]) :host(:not([data-show])) .popover,:host(:not([data-show])) .popover,:host([disabled]) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 300)}:host([removeSpace]) .popover{margin:calc(-1*(var(--ds-size-50, 0.25rem) + 1px)) 0 !important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0 !important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border-radius:var(--ds-border-radius, 0.375rem)}@media screen and (min-width: 576px){.popover{max-width:50%}}@media screen and (min-width: 768px){.popover{max-width:40%}}@media screen and (min-width: 1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1*var(--ds-size-200, 1rem));left:calc(-1*var(--ds-size-75, 0.375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, 0.25rem);right:calc(-1*var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100, 0.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, 0.75rem);height:var(--ds-size-150, 0.75rem);content:""}`;
|
|
7165
7244
|
|
|
@@ -7344,11 +7423,11 @@ function isLayoutViewport() {
|
|
|
7344
7423
|
}
|
|
7345
7424
|
|
|
7346
7425
|
function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
7347
|
-
if (includeScale ===
|
|
7426
|
+
if (includeScale === undefined) {
|
|
7348
7427
|
includeScale = false;
|
|
7349
7428
|
}
|
|
7350
7429
|
|
|
7351
|
-
if (isFixedStrategy ===
|
|
7430
|
+
if (isFixedStrategy === undefined) {
|
|
7352
7431
|
isFixedStrategy = false;
|
|
7353
7432
|
}
|
|
7354
7433
|
|
|
@@ -7602,7 +7681,7 @@ function effect$1(_ref2) {
|
|
|
7602
7681
|
var state = _ref2.state,
|
|
7603
7682
|
options = _ref2.options;
|
|
7604
7683
|
var _options$element = options.element,
|
|
7605
|
-
arrowElement = _options$element ===
|
|
7684
|
+
arrowElement = _options$element === undefined ? '[data-popper-arrow]' : _options$element;
|
|
7606
7685
|
|
|
7607
7686
|
if (arrowElement == null) {
|
|
7608
7687
|
return;
|
|
@@ -7672,9 +7751,9 @@ function mapToStyles(_ref2) {
|
|
|
7672
7751
|
roundOffsets = _ref2.roundOffsets,
|
|
7673
7752
|
isFixed = _ref2.isFixed;
|
|
7674
7753
|
var _offsets$x = offsets.x,
|
|
7675
|
-
x = _offsets$x ===
|
|
7754
|
+
x = _offsets$x === undefined ? 0 : _offsets$x,
|
|
7676
7755
|
_offsets$y = offsets.y,
|
|
7677
|
-
y = _offsets$y ===
|
|
7756
|
+
y = _offsets$y === undefined ? 0 : _offsets$y;
|
|
7678
7757
|
|
|
7679
7758
|
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
7680
7759
|
x: x,
|
|
@@ -7754,11 +7833,11 @@ function computeStyles(_ref5) {
|
|
|
7754
7833
|
var state = _ref5.state,
|
|
7755
7834
|
options = _ref5.options;
|
|
7756
7835
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
7757
|
-
gpuAcceleration = _options$gpuAccelerat ===
|
|
7836
|
+
gpuAcceleration = _options$gpuAccelerat === undefined ? true : _options$gpuAccelerat,
|
|
7758
7837
|
_options$adaptive = options.adaptive,
|
|
7759
|
-
adaptive = _options$adaptive ===
|
|
7838
|
+
adaptive = _options$adaptive === undefined ? true : _options$adaptive,
|
|
7760
7839
|
_options$roundOffsets = options.roundOffsets,
|
|
7761
|
-
roundOffsets = _options$roundOffsets ===
|
|
7840
|
+
roundOffsets = _options$roundOffsets === undefined ? true : _options$roundOffsets;
|
|
7762
7841
|
var commonStyles = {
|
|
7763
7842
|
placement: getBasePlacement(state.placement),
|
|
7764
7843
|
variation: getVariation(state.placement),
|
|
@@ -7809,9 +7888,9 @@ function effect(_ref) {
|
|
|
7809
7888
|
instance = _ref.instance,
|
|
7810
7889
|
options = _ref.options;
|
|
7811
7890
|
var _options$scroll = options.scroll,
|
|
7812
|
-
scroll = _options$scroll ===
|
|
7891
|
+
scroll = _options$scroll === undefined ? true : _options$scroll,
|
|
7813
7892
|
_options$resize = options.resize,
|
|
7814
|
-
resize = _options$resize ===
|
|
7893
|
+
resize = _options$resize === undefined ? true : _options$resize;
|
|
7815
7894
|
var window = getWindow$1(state.elements.popper);
|
|
7816
7895
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
7817
7896
|
|
|
@@ -7926,7 +8005,7 @@ function getDocumentRect$1(element) {
|
|
|
7926
8005
|
|
|
7927
8006
|
var html = getDocumentElement$1(element);
|
|
7928
8007
|
var winScroll = getWindowScroll(element);
|
|
7929
|
-
var body = (_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8008
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body;
|
|
7930
8009
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
7931
8010
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
7932
8011
|
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
@@ -7977,12 +8056,12 @@ reference element's position.
|
|
|
7977
8056
|
function listScrollParents(element, list) {
|
|
7978
8057
|
var _element$ownerDocumen;
|
|
7979
8058
|
|
|
7980
|
-
if (list ===
|
|
8059
|
+
if (list === undefined) {
|
|
7981
8060
|
list = [];
|
|
7982
8061
|
}
|
|
7983
8062
|
|
|
7984
8063
|
var scrollParent = getScrollParent(element);
|
|
7985
|
-
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8064
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body);
|
|
7986
8065
|
var win = getWindow$1(scrollParent);
|
|
7987
8066
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
7988
8067
|
var updatedList = list.concat(target);
|
|
@@ -8121,25 +8200,25 @@ function computeOffsets(_ref) {
|
|
|
8121
8200
|
}
|
|
8122
8201
|
|
|
8123
8202
|
function detectOverflow$1(state, options) {
|
|
8124
|
-
if (options ===
|
|
8203
|
+
if (options === undefined) {
|
|
8125
8204
|
options = {};
|
|
8126
8205
|
}
|
|
8127
8206
|
|
|
8128
8207
|
var _options = options,
|
|
8129
8208
|
_options$placement = _options.placement,
|
|
8130
|
-
placement = _options$placement ===
|
|
8209
|
+
placement = _options$placement === undefined ? state.placement : _options$placement,
|
|
8131
8210
|
_options$strategy = _options.strategy,
|
|
8132
|
-
strategy = _options$strategy ===
|
|
8211
|
+
strategy = _options$strategy === undefined ? state.strategy : _options$strategy,
|
|
8133
8212
|
_options$boundary = _options.boundary,
|
|
8134
|
-
boundary = _options$boundary ===
|
|
8213
|
+
boundary = _options$boundary === undefined ? clippingParents : _options$boundary,
|
|
8135
8214
|
_options$rootBoundary = _options.rootBoundary,
|
|
8136
|
-
rootBoundary = _options$rootBoundary ===
|
|
8215
|
+
rootBoundary = _options$rootBoundary === undefined ? viewport : _options$rootBoundary,
|
|
8137
8216
|
_options$elementConte = _options.elementContext,
|
|
8138
|
-
elementContext = _options$elementConte ===
|
|
8217
|
+
elementContext = _options$elementConte === undefined ? popper : _options$elementConte,
|
|
8139
8218
|
_options$altBoundary = _options.altBoundary,
|
|
8140
|
-
altBoundary = _options$altBoundary ===
|
|
8219
|
+
altBoundary = _options$altBoundary === undefined ? false : _options$altBoundary,
|
|
8141
8220
|
_options$padding = _options.padding,
|
|
8142
|
-
padding = _options$padding ===
|
|
8221
|
+
padding = _options$padding === undefined ? 0 : _options$padding;
|
|
8143
8222
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
8144
8223
|
var altContext = elementContext === popper ? reference : popper;
|
|
8145
8224
|
var popperRect = state.rects.popper;
|
|
@@ -8177,7 +8256,7 @@ function detectOverflow$1(state, options) {
|
|
|
8177
8256
|
}
|
|
8178
8257
|
|
|
8179
8258
|
function computeAutoPlacement(state, options) {
|
|
8180
|
-
if (options ===
|
|
8259
|
+
if (options === undefined) {
|
|
8181
8260
|
options = {};
|
|
8182
8261
|
}
|
|
8183
8262
|
|
|
@@ -8188,7 +8267,7 @@ function computeAutoPlacement(state, options) {
|
|
|
8188
8267
|
padding = _options.padding,
|
|
8189
8268
|
flipVariations = _options.flipVariations,
|
|
8190
8269
|
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
8191
|
-
allowedAutoPlacements = _options$allowedAutoP ===
|
|
8270
|
+
allowedAutoPlacements = _options$allowedAutoP === undefined ? placements$1 : _options$allowedAutoP;
|
|
8192
8271
|
var variation = getVariation(placement);
|
|
8193
8272
|
var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
8194
8273
|
return getVariation(placement) === variation;
|
|
@@ -8235,16 +8314,16 @@ function flip$2(_ref) {
|
|
|
8235
8314
|
}
|
|
8236
8315
|
|
|
8237
8316
|
var _options$mainAxis = options.mainAxis,
|
|
8238
|
-
checkMainAxis = _options$mainAxis ===
|
|
8317
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8239
8318
|
_options$altAxis = options.altAxis,
|
|
8240
|
-
checkAltAxis = _options$altAxis ===
|
|
8319
|
+
checkAltAxis = _options$altAxis === undefined ? true : _options$altAxis,
|
|
8241
8320
|
specifiedFallbackPlacements = options.fallbackPlacements,
|
|
8242
8321
|
padding = options.padding,
|
|
8243
8322
|
boundary = options.boundary,
|
|
8244
8323
|
rootBoundary = options.rootBoundary,
|
|
8245
8324
|
altBoundary = options.altBoundary,
|
|
8246
8325
|
_options$flipVariatio = options.flipVariations,
|
|
8247
|
-
flipVariations = _options$flipVariatio ===
|
|
8326
|
+
flipVariations = _options$flipVariatio === undefined ? true : _options$flipVariatio,
|
|
8248
8327
|
allowedAutoPlacements = options.allowedAutoPlacements;
|
|
8249
8328
|
var preferredPlacement = state.options.placement;
|
|
8250
8329
|
var basePlacement = getBasePlacement(preferredPlacement);
|
|
@@ -8357,7 +8436,7 @@ var flip$3 = {
|
|
|
8357
8436
|
};
|
|
8358
8437
|
|
|
8359
8438
|
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
8360
|
-
if (preventedOffsets ===
|
|
8439
|
+
if (preventedOffsets === undefined) {
|
|
8361
8440
|
preventedOffsets = {
|
|
8362
8441
|
x: 0,
|
|
8363
8442
|
y: 0
|
|
@@ -8441,7 +8520,7 @@ function offset$2(_ref2) {
|
|
|
8441
8520
|
options = _ref2.options,
|
|
8442
8521
|
name = _ref2.name;
|
|
8443
8522
|
var _options$offset = options.offset,
|
|
8444
|
-
offset = _options$offset ===
|
|
8523
|
+
offset = _options$offset === undefined ? [0, 0] : _options$offset;
|
|
8445
8524
|
var data = placements$1.reduce(function (acc, placement) {
|
|
8446
8525
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
8447
8526
|
return acc;
|
|
@@ -8500,17 +8579,17 @@ function preventOverflow(_ref) {
|
|
|
8500
8579
|
options = _ref.options,
|
|
8501
8580
|
name = _ref.name;
|
|
8502
8581
|
var _options$mainAxis = options.mainAxis,
|
|
8503
|
-
checkMainAxis = _options$mainAxis ===
|
|
8582
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8504
8583
|
_options$altAxis = options.altAxis,
|
|
8505
|
-
checkAltAxis = _options$altAxis ===
|
|
8584
|
+
checkAltAxis = _options$altAxis === undefined ? false : _options$altAxis,
|
|
8506
8585
|
boundary = options.boundary,
|
|
8507
8586
|
rootBoundary = options.rootBoundary,
|
|
8508
8587
|
altBoundary = options.altBoundary,
|
|
8509
8588
|
padding = options.padding,
|
|
8510
8589
|
_options$tether = options.tether,
|
|
8511
|
-
tether = _options$tether ===
|
|
8590
|
+
tether = _options$tether === undefined ? true : _options$tether,
|
|
8512
8591
|
_options$tetherOffset = options.tetherOffset,
|
|
8513
|
-
tetherOffset = _options$tetherOffset ===
|
|
8592
|
+
tetherOffset = _options$tetherOffset === undefined ? 0 : _options$tetherOffset;
|
|
8514
8593
|
var overflow = detectOverflow$1(state, {
|
|
8515
8594
|
boundary: boundary,
|
|
8516
8595
|
rootBoundary: rootBoundary,
|
|
@@ -8577,7 +8656,7 @@ function preventOverflow(_ref) {
|
|
|
8577
8656
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
8578
8657
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent$1(state.elements.arrow);
|
|
8579
8658
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
8580
|
-
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ?
|
|
8659
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? undefined : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
8581
8660
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
8582
8661
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
8583
8662
|
var preventedOffset = within(tether ? min$1(min, tetherMin) : min, offset, tether ? max$1(max, tetherMax) : max);
|
|
@@ -8602,7 +8681,7 @@ function preventOverflow(_ref) {
|
|
|
8602
8681
|
|
|
8603
8682
|
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
8604
8683
|
|
|
8605
|
-
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ?
|
|
8684
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? undefined : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
8606
8685
|
|
|
8607
8686
|
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
8608
8687
|
|
|
@@ -8651,7 +8730,7 @@ function isElementScaled(element) {
|
|
|
8651
8730
|
|
|
8652
8731
|
|
|
8653
8732
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
8654
|
-
if (isFixed ===
|
|
8733
|
+
if (isFixed === undefined) {
|
|
8655
8734
|
isFixed = false;
|
|
8656
8735
|
}
|
|
8657
8736
|
|
|
@@ -8782,17 +8861,17 @@ function areValidElements() {
|
|
|
8782
8861
|
}
|
|
8783
8862
|
|
|
8784
8863
|
function popperGenerator(generatorOptions) {
|
|
8785
|
-
if (generatorOptions ===
|
|
8864
|
+
if (generatorOptions === undefined) {
|
|
8786
8865
|
generatorOptions = {};
|
|
8787
8866
|
}
|
|
8788
8867
|
|
|
8789
8868
|
var _generatorOptions = generatorOptions,
|
|
8790
8869
|
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
8791
|
-
defaultModifiers = _generatorOptions$def ===
|
|
8870
|
+
defaultModifiers = _generatorOptions$def === undefined ? [] : _generatorOptions$def,
|
|
8792
8871
|
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
8793
|
-
defaultOptions = _generatorOptions$def2 ===
|
|
8872
|
+
defaultOptions = _generatorOptions$def2 === undefined ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
8794
8873
|
return function createPopper(reference, popper, options) {
|
|
8795
|
-
if (options ===
|
|
8874
|
+
if (options === undefined) {
|
|
8796
8875
|
options = defaultOptions;
|
|
8797
8876
|
}
|
|
8798
8877
|
|
|
@@ -8879,7 +8958,7 @@ function popperGenerator(generatorOptions) {
|
|
|
8879
8958
|
var _state$orderedModifie = state.orderedModifiers[index],
|
|
8880
8959
|
fn = _state$orderedModifie.fn,
|
|
8881
8960
|
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
8882
|
-
_options = _state$orderedModifie2 ===
|
|
8961
|
+
_options = _state$orderedModifie2 === undefined ? {} : _state$orderedModifie2,
|
|
8883
8962
|
name = _state$orderedModifie.name;
|
|
8884
8963
|
|
|
8885
8964
|
if (typeof fn === 'function') {
|
|
@@ -8924,7 +9003,7 @@ function popperGenerator(generatorOptions) {
|
|
|
8924
9003
|
state.orderedModifiers.forEach(function (_ref) {
|
|
8925
9004
|
var name = _ref.name,
|
|
8926
9005
|
_ref$options = _ref.options,
|
|
8927
|
-
options = _ref$options ===
|
|
9006
|
+
options = _ref$options === undefined ? {} : _ref$options,
|
|
8928
9007
|
effect = _ref.effect;
|
|
8929
9008
|
|
|
8930
9009
|
if (typeof effect === 'function') {
|
|
@@ -9232,7 +9311,7 @@ class AuroPopover extends r$7 {
|
|
|
9232
9311
|
}
|
|
9233
9312
|
}
|
|
9234
9313
|
|
|
9235
|
-
var popoverVersion = '4.1.
|
|
9314
|
+
var popoverVersion = '4.1.2';
|
|
9236
9315
|
|
|
9237
9316
|
/* eslint-disable max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-void, init-declarations, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
9238
9317
|
|
|
@@ -9359,7 +9438,7 @@ class AuroCalendarCell extends r$7 {
|
|
|
9359
9438
|
|
|
9360
9439
|
let _a;
|
|
9361
9440
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
9362
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
9441
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
9363
9442
|
}));
|
|
9364
9443
|
}
|
|
9365
9444
|
|
|
@@ -9581,10 +9660,10 @@ class AuroCalendarCell extends r$7 {
|
|
|
9581
9660
|
@focus="${this.handleHover}"
|
|
9582
9661
|
class="${e$6(buttonClasses)}"
|
|
9583
9662
|
?disabled="${this.disabled}"
|
|
9584
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
9663
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}"
|
|
9585
9664
|
tabindex="-1">
|
|
9586
9665
|
<div class="buttonWrapper">
|
|
9587
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
9666
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
9588
9667
|
<div class="dateSlot" part="dateSlot">
|
|
9589
9668
|
<slot name="date_${this.dateStr}"></slot>
|
|
9590
9669
|
</div>
|
|
@@ -9702,11 +9781,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9702
9781
|
<div class="table">
|
|
9703
9782
|
<div class="thead">
|
|
9704
9783
|
<div class="tr">
|
|
9705
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
9784
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map(dayNameOfWeek => this.renderDayOfWeek(dayNameOfWeek))}
|
|
9706
9785
|
</div>
|
|
9707
9786
|
</div>
|
|
9708
9787
|
<div class="tbody">
|
|
9709
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
9788
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map(week => this.renderWeek(week))}
|
|
9710
9789
|
</div>
|
|
9711
9790
|
</div>
|
|
9712
9791
|
</div>
|
|
@@ -9881,16 +9960,16 @@ class RangeDatepicker extends r$7 {
|
|
|
9881
9960
|
handlePrevMonth() {
|
|
9882
9961
|
let _a;
|
|
9883
9962
|
if (!this.enableYearChange) {
|
|
9884
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
9885
|
-
calendar === null || calendar ===
|
|
9963
|
+
const calendar = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('wc-range-datepicker-calendar[next]');
|
|
9964
|
+
calendar === null || calendar === undefined ? undefined : calendar.handlePrevMonth();
|
|
9886
9965
|
}
|
|
9887
9966
|
}
|
|
9888
9967
|
|
|
9889
9968
|
handleNextMonth() {
|
|
9890
9969
|
let _a;
|
|
9891
9970
|
if (!this.enableYearChange) {
|
|
9892
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
9893
|
-
calendar === null || calendar ===
|
|
9971
|
+
const calendar = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('wc-range-datepicker-calendar[prev]');
|
|
9972
|
+
calendar === null || calendar === undefined ? undefined : calendar.handleNextMonth();
|
|
9894
9973
|
}
|
|
9895
9974
|
}
|
|
9896
9975
|
|
|
@@ -9952,21 +10031,21 @@ RangeDatepicker.styles = i$c`
|
|
|
9952
10031
|
margin-right: 16px;
|
|
9953
10032
|
}
|
|
9954
10033
|
`;
|
|
9955
|
-
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays",
|
|
9956
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange",
|
|
9957
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow",
|
|
9958
|
-
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale",
|
|
9959
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max",
|
|
9960
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min",
|
|
9961
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month",
|
|
9962
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange",
|
|
9963
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year",
|
|
9964
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom",
|
|
9965
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo",
|
|
9966
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate",
|
|
9967
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus",
|
|
9968
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus",
|
|
9969
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "narrow",
|
|
10034
|
+
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays", undefined);
|
|
10035
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange", undefined);
|
|
10036
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow", undefined);
|
|
10037
|
+
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale", undefined);
|
|
10038
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max", undefined);
|
|
10039
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min", undefined);
|
|
10040
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month", undefined);
|
|
10041
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange", undefined);
|
|
10042
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year", undefined);
|
|
10043
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom", undefined);
|
|
10044
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo", undefined);
|
|
10045
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate", undefined);
|
|
10046
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus", undefined);
|
|
10047
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus", undefined);
|
|
10048
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "narrow", undefined);
|
|
9970
10049
|
|
|
9971
10050
|
var chevronLeft = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; left.","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":"chevron-left","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-left__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=\"chevron-left__desc\">Directional indicator; left.</desc><path d=\"m14.395 6.345.084.073a.75.75 0 0 1 .072.977l-.072.084-4.47 4.47 4.47 4.47a.75.75 0 0 1 .072.976l-.072.084a.75.75 0 0 1-.977.072l-.084-.072-4.823-4.823a1 1 0 0 1 0-1.415l4.823-4.823a.75.75 0 0 1 .977-.073\"/></svg>"};
|
|
9972
10051
|
|
|
@@ -10427,33 +10506,33 @@ if (!customElements.get('auro-calendar')) {
|
|
|
10427
10506
|
* Copyright 2017 Google LLC
|
|
10428
10507
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10429
10508
|
*/
|
|
10430
|
-
const t$2$1=globalThis,i$5$1=t$2$1.trustedTypes,s$2$1=i$5$1?i$5$1.createPolicy("lit-html",{createHTML:t=>t}):
|
|
10509
|
+
const t$2$1=globalThis,i$5$1=t$2$1.trustedTypes,s$2$1=i$5$1?i$5$1.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4$1="$lit$",h$1$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4$1="?"+h$1$1,n$3$1=`<${o$4$1}>`,r$3$1=document,l$2$1=()=>r$3$1.createComment(""),c$2$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2$1=Array.isArray,u$2$1=t=>a$2$1(t)||"function"==typeof t?.[Symbol.iterator],d$1$1="[ \t\n\f\r]",f$1$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$1$1}(?:([^\\s"'>=/]+)(${d$1$1}*=${d$1$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1$1=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$1$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$1$1(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$3$1.createTreeWalker(r$3$1,129);function P$1(t,i){if(!a$2$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$2$1?s$2$1.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$1$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$1?"!--"===u[1]?c=v$2:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):undefined!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$1$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$2:'"'===u[3]?g$1:p$1$1):c===g$1||c===p$1$1?c=m$2:c===v$2||c===_$1?c=f$1$1:(c=m$2,r=undefined);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1$1?s+n$3$1:d>=0?(o.push(a),s.slice(0,d)+e$4$1+s.slice(d)+h$1$1+x):s+h$1$1+(-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$4$1)){const i=v[a++],s=r.getAttribute(t).split(h$1$1),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$1$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$1$1),s=t.length-1;if(s>0){r.textContent=i$5$1?i$5$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2$1()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2$1());}}}else if(8===r.nodeType)if(r.data===o$4$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1$1,t+1));)d.push({type:7,index:c}),t+=h$1$1.length-1;}c++;}}static createElement(t,i){const s=r$3$1.createElement("template");return s.innerHTML=t,s}};function S$1$1(t,i,s=t,e){if(i===T$1)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2$1(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$1(t,h._$AS(t,i.values),h,e)),i}let M$2 = 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$1).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$3$1,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$1$1(this,t,i),c$2$1(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$2$1(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$2$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3$1.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$2(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$2$1(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$1()),this.O(l$2$1()),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$1$1(this,t,i,0),o=!c$2$1(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$1$1(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$2$1(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$1$1(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$1$1(this,t);}};const j$1=t$2$1.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$2$1.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$2$1(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
10431
10510
|
|
|
10432
10511
|
/**
|
|
10433
10512
|
* @license
|
|
10434
10513
|
* Copyright 2020 Google LLC
|
|
10435
10514
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10436
10515
|
*/
|
|
10437
|
-
const a$1$1=Symbol.for(""),o$3$1=t=>{if(t?.r===a$1$1)return t?._$litStatic$},s$1$1=t=>({_$litStatic$:t,r:a$1$1}),i$4$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
10516
|
+
const a$1$1=Symbol.for(""),o$3$1=t=>{if(t?.r===a$1$1)return t?._$litStatic$},s$1$1=t=>({_$litStatic$:t,r:a$1$1}),i$4$1=(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$1}),l$1$1=new Map,n$2$1=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$1(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$1.get(t))&&(n.raw=n,l$1$1.set(t,r=n)),e=u;}return t(r,...e)},u$1$1=n$2$1(x$1);
|
|
10438
10517
|
|
|
10439
10518
|
/**
|
|
10440
10519
|
* @license
|
|
10441
10520
|
* Copyright 2019 Google LLC
|
|
10442
10521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10443
10522
|
*/
|
|
10444
|
-
const t$1$1=globalThis,e$3$1=t$1$1.ShadowRoot&&(
|
|
10523
|
+
const t$1$1=globalThis,e$3$1=t$1$1.ShadowRoot&&(undefined===t$1$1.ShadyCSS||t$1$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$2$1=new WeakMap;let n$1$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$4)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$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$1.set(s,t));}return t}toString(){return this.cssText}};const r$2$1=t=>new n$1$1("string"==typeof t?t:t+"",undefined,s$4),i$3$1=(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$1(o,t,s$4)},S$2=(s,o)=>{if(e$3$1)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$1.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1$1=e$3$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2$1(e)})(t):t;
|
|
10445
10524
|
|
|
10446
10525
|
/**
|
|
10447
10526
|
* @license
|
|
10448
10527
|
* Copyright 2017 Google LLC
|
|
10449
10528
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10450
|
-
*/const{is:i$2$1,defineProperty:e$2$1,getOwnPropertyDescriptor:r$1$1,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$4}=Object,a$3=globalThis,c$4=a$3.trustedTypes,l$3=c$4?c$4.emptyScript:"",p$3=a$3.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$3: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$2=(t,s)=>!i$2$1(t,s),y$2={attribute
|
|
10529
|
+
*/const{is:i$2$1,defineProperty:e$2$1,getOwnPropertyDescriptor:r$1$1,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$4}=Object,a$3=globalThis,c$4=a$3.trustedTypes,l$3=c$4?c$4.emptyScript:"",p$3=a$3.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$3: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$2=(t,s)=>!i$2$1(t,s),y$2={attribute:true,type:String,converter:u$5,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$3.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$2){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$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1$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$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$4(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$1$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$1(s));}else undefined!==s&&i.push(c$1$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$2(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$2)(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$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$3?.({ReactiveElement:b$1}),(a$3.reactiveElementVersions??=[]).push("2.0.4");
|
|
10451
10530
|
|
|
10452
10531
|
/**
|
|
10453
10532
|
* @license
|
|
10454
10533
|
* Copyright 2017 Google LLC
|
|
10455
10534
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10456
|
-
*/let r$5 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
10535
|
+
*/let r$5 = 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$5._$litElement$=true,r$5["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$5});const i$1$1=globalThis.litElementPolyfillSupport;i$1$1?.({LitElement:r$5});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
10457
10536
|
|
|
10458
10537
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10459
10538
|
// See LICENSE in the project root for license information.
|
|
@@ -10573,7 +10652,7 @@ function getAlignmentAxis(placement) {
|
|
|
10573
10652
|
return getOppositeAxis(getSideAxis(placement));
|
|
10574
10653
|
}
|
|
10575
10654
|
function getAlignmentSides(placement, rects, rtl) {
|
|
10576
|
-
if (rtl ===
|
|
10655
|
+
if (rtl === undefined) {
|
|
10577
10656
|
rtl = false;
|
|
10578
10657
|
}
|
|
10579
10658
|
const alignment = getAlignment(placement);
|
|
@@ -10730,7 +10809,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
10730
10809
|
platform
|
|
10731
10810
|
} = config;
|
|
10732
10811
|
const validMiddleware = middleware.filter(Boolean);
|
|
10733
|
-
const rtl = await (platform.isRTL == null ?
|
|
10812
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
|
|
10734
10813
|
let rects = await platform.getElementRects({
|
|
10735
10814
|
reference,
|
|
10736
10815
|
floating,
|
|
@@ -10816,7 +10895,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
10816
10895
|
*/
|
|
10817
10896
|
async function detectOverflow(state, options) {
|
|
10818
10897
|
var _await$platform$isEle;
|
|
10819
|
-
if (options ===
|
|
10898
|
+
if (options === undefined) {
|
|
10820
10899
|
options = {};
|
|
10821
10900
|
}
|
|
10822
10901
|
const {
|
|
@@ -10838,7 +10917,7 @@ async function detectOverflow(state, options) {
|
|
|
10838
10917
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
10839
10918
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
10840
10919
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
10841
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ?
|
|
10920
|
+
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))),
|
|
10842
10921
|
boundary,
|
|
10843
10922
|
rootBoundary,
|
|
10844
10923
|
strategy
|
|
@@ -10849,8 +10928,8 @@ async function detectOverflow(state, options) {
|
|
|
10849
10928
|
width: rects.floating.width,
|
|
10850
10929
|
height: rects.floating.height
|
|
10851
10930
|
} : rects.reference;
|
|
10852
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
10853
|
-
const offsetScale = (await (platform.isElement == null ?
|
|
10931
|
+
const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
|
|
10932
|
+
const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
|
|
10854
10933
|
x: 1,
|
|
10855
10934
|
y: 1
|
|
10856
10935
|
} : {
|
|
@@ -10887,7 +10966,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
10887
10966
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
10888
10967
|
*/
|
|
10889
10968
|
const autoPlacement$1 = function (options) {
|
|
10890
|
-
if (options ===
|
|
10969
|
+
if (options === undefined) {
|
|
10891
10970
|
options = {};
|
|
10892
10971
|
}
|
|
10893
10972
|
return {
|
|
@@ -10911,12 +10990,12 @@ const autoPlacement$1 = function (options) {
|
|
|
10911
10990
|
} = evaluate(options, state);
|
|
10912
10991
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
10913
10992
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
10914
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
10993
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
|
|
10915
10994
|
const currentPlacement = placements$1[currentIndex];
|
|
10916
10995
|
if (currentPlacement == null) {
|
|
10917
10996
|
return {};
|
|
10918
10997
|
}
|
|
10919
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
10998
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
|
|
10920
10999
|
|
|
10921
11000
|
// Make `computeCoords` start from the right place.
|
|
10922
11001
|
if (placement !== currentPlacement) {
|
|
@@ -10927,7 +11006,7 @@ const autoPlacement$1 = function (options) {
|
|
|
10927
11006
|
};
|
|
10928
11007
|
}
|
|
10929
11008
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
10930
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
11009
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
|
|
10931
11010
|
placement: currentPlacement,
|
|
10932
11011
|
overflows: currentOverflows
|
|
10933
11012
|
}];
|
|
@@ -10957,7 +11036,7 @@ const autoPlacement$1 = function (options) {
|
|
|
10957
11036
|
// Aligned placements should not check their opposite crossAxis
|
|
10958
11037
|
// side.
|
|
10959
11038
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
10960
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
11039
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
10961
11040
|
if (resetPlacement !== placement) {
|
|
10962
11041
|
return {
|
|
10963
11042
|
data: {
|
|
@@ -10981,7 +11060,7 @@ const autoPlacement$1 = function (options) {
|
|
|
10981
11060
|
* @see https://floating-ui.com/docs/flip
|
|
10982
11061
|
*/
|
|
10983
11062
|
const flip$1 = function (options) {
|
|
10984
|
-
if (options ===
|
|
11063
|
+
if (options === undefined) {
|
|
10985
11064
|
options = {};
|
|
10986
11065
|
}
|
|
10987
11066
|
return {
|
|
@@ -11017,7 +11096,7 @@ const flip$1 = function (options) {
|
|
|
11017
11096
|
const side = getSide(placement);
|
|
11018
11097
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
11019
11098
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
11020
|
-
const rtl = await (platform.isRTL == null ?
|
|
11099
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11021
11100
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
11022
11101
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
11023
11102
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -11026,7 +11105,7 @@ const flip$1 = function (options) {
|
|
|
11026
11105
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
11027
11106
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
11028
11107
|
const overflows = [];
|
|
11029
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
11108
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
|
|
11030
11109
|
if (checkMainAxis) {
|
|
11031
11110
|
overflows.push(overflow[side]);
|
|
11032
11111
|
}
|
|
@@ -11042,7 +11121,7 @@ const flip$1 = function (options) {
|
|
|
11042
11121
|
// One or more sides is overflowing.
|
|
11043
11122
|
if (!overflows.every(side => side <= 0)) {
|
|
11044
11123
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
11045
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
11124
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
|
|
11046
11125
|
const nextPlacement = placements[nextIndex];
|
|
11047
11126
|
if (nextPlacement) {
|
|
11048
11127
|
// Try next placement and re-run the lifecycle.
|
|
@@ -11059,7 +11138,7 @@ const flip$1 = function (options) {
|
|
|
11059
11138
|
|
|
11060
11139
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
11061
11140
|
// then find the placement that fits the best on the main crossAxis side.
|
|
11062
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ?
|
|
11141
|
+
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;
|
|
11063
11142
|
|
|
11064
11143
|
// Otherwise fallback.
|
|
11065
11144
|
if (!resetPlacement) {
|
|
@@ -11076,7 +11155,7 @@ const flip$1 = function (options) {
|
|
|
11076
11155
|
currentSideAxis === 'y';
|
|
11077
11156
|
}
|
|
11078
11157
|
return true;
|
|
11079
|
-
}).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 ?
|
|
11158
|
+
}).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];
|
|
11080
11159
|
if (placement) {
|
|
11081
11160
|
resetPlacement = placement;
|
|
11082
11161
|
}
|
|
@@ -11109,7 +11188,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11109
11188
|
platform,
|
|
11110
11189
|
elements
|
|
11111
11190
|
} = state;
|
|
11112
|
-
const rtl = await (platform.isRTL == null ?
|
|
11191
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11113
11192
|
const side = getSide(placement);
|
|
11114
11193
|
const alignment = getAlignment(placement);
|
|
11115
11194
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -11151,7 +11230,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11151
11230
|
* @see https://floating-ui.com/docs/offset
|
|
11152
11231
|
*/
|
|
11153
11232
|
const offset$1 = function (options) {
|
|
11154
|
-
if (options ===
|
|
11233
|
+
if (options === undefined) {
|
|
11155
11234
|
options = 0;
|
|
11156
11235
|
}
|
|
11157
11236
|
return {
|
|
@@ -11169,7 +11248,7 @@ const offset$1 = function (options) {
|
|
|
11169
11248
|
|
|
11170
11249
|
// If the placement is the same and the arrow caused an alignment offset
|
|
11171
11250
|
// then we don't need to change the positioning coordinates.
|
|
11172
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ?
|
|
11251
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
11173
11252
|
return {};
|
|
11174
11253
|
}
|
|
11175
11254
|
return {
|
|
@@ -11198,11 +11277,11 @@ function getNodeName(node) {
|
|
|
11198
11277
|
}
|
|
11199
11278
|
function getWindow(node) {
|
|
11200
11279
|
var _node$ownerDocument;
|
|
11201
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
11280
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
|
|
11202
11281
|
}
|
|
11203
11282
|
function getDocumentElement(node) {
|
|
11204
11283
|
var _ref;
|
|
11205
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ?
|
|
11284
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
|
|
11206
11285
|
}
|
|
11207
11286
|
function isNode(value) {
|
|
11208
11287
|
if (!hasWindow()) {
|
|
@@ -11317,14 +11396,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
11317
11396
|
}
|
|
11318
11397
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
11319
11398
|
var _node$ownerDocument2;
|
|
11320
|
-
if (list ===
|
|
11399
|
+
if (list === undefined) {
|
|
11321
11400
|
list = [];
|
|
11322
11401
|
}
|
|
11323
|
-
if (traverseIframes ===
|
|
11402
|
+
if (traverseIframes === undefined) {
|
|
11324
11403
|
traverseIframes = true;
|
|
11325
11404
|
}
|
|
11326
11405
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
11327
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
11406
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
|
|
11328
11407
|
const win = getWindow(scrollableAncestor);
|
|
11329
11408
|
if (isBody) {
|
|
11330
11409
|
const frameElement = getFrameElement(win);
|
|
@@ -11401,7 +11480,7 @@ function getVisualOffsets(element) {
|
|
|
11401
11480
|
};
|
|
11402
11481
|
}
|
|
11403
11482
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
11404
|
-
if (isFixed ===
|
|
11483
|
+
if (isFixed === undefined) {
|
|
11405
11484
|
isFixed = false;
|
|
11406
11485
|
}
|
|
11407
11486
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -11411,10 +11490,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
11411
11490
|
}
|
|
11412
11491
|
|
|
11413
11492
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
11414
|
-
if (includeScale ===
|
|
11493
|
+
if (includeScale === undefined) {
|
|
11415
11494
|
includeScale = false;
|
|
11416
11495
|
}
|
|
11417
|
-
if (isFixedStrategy ===
|
|
11496
|
+
if (isFixedStrategy === undefined) {
|
|
11418
11497
|
isFixedStrategy = false;
|
|
11419
11498
|
}
|
|
11420
11499
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -11474,7 +11553,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
11474
11553
|
}
|
|
11475
11554
|
|
|
11476
11555
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
11477
|
-
if (ignoreScrollbarX ===
|
|
11556
|
+
if (ignoreScrollbarX === undefined) {
|
|
11478
11557
|
ignoreScrollbarX = false;
|
|
11479
11558
|
}
|
|
11480
11559
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -11824,10 +11903,10 @@ function observeMove(element, onMove) {
|
|
|
11824
11903
|
io = null;
|
|
11825
11904
|
}
|
|
11826
11905
|
function refresh(skip, threshold) {
|
|
11827
|
-
if (skip ===
|
|
11906
|
+
if (skip === undefined) {
|
|
11828
11907
|
skip = false;
|
|
11829
11908
|
}
|
|
11830
|
-
if (threshold ===
|
|
11909
|
+
if (threshold === undefined) {
|
|
11831
11910
|
threshold = 1;
|
|
11832
11911
|
}
|
|
11833
11912
|
cleanup();
|
|
@@ -11898,7 +11977,7 @@ function observeMove(element, onMove) {
|
|
|
11898
11977
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
11899
11978
|
*/
|
|
11900
11979
|
function autoUpdate(reference, floating, update, options) {
|
|
11901
|
-
if (options ===
|
|
11980
|
+
if (options === undefined) {
|
|
11902
11981
|
options = {};
|
|
11903
11982
|
}
|
|
11904
11983
|
const {
|
|
@@ -12025,6 +12104,11 @@ class AuroFloatingUI {
|
|
|
12025
12104
|
this.focusHandler = null;
|
|
12026
12105
|
this.clickHandler = null;
|
|
12027
12106
|
this.keyDownHandler = null;
|
|
12107
|
+
|
|
12108
|
+
/**
|
|
12109
|
+
* @private
|
|
12110
|
+
*/
|
|
12111
|
+
this.eventPrefix = undefined;
|
|
12028
12112
|
}
|
|
12029
12113
|
|
|
12030
12114
|
/**
|
|
@@ -12041,22 +12125,24 @@ class AuroFloatingUI {
|
|
|
12041
12125
|
*/
|
|
12042
12126
|
mirrorSize(fullscreen) {
|
|
12043
12127
|
// mirror the boxsize from bibSizer
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12128
|
+
if (this.element.bibSizer) {
|
|
12129
|
+
const sizerStyle = window.getComputedStyle(this.element.bibSizer);
|
|
12130
|
+
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
12131
|
+
if (fullscreen) {
|
|
12132
|
+
bibContent.style.width = '';
|
|
12133
|
+
bibContent.style.height = '';
|
|
12134
|
+
bibContent.style.maxWidth = '';
|
|
12135
|
+
bibContent.style.maxHeight = '';
|
|
12136
|
+
} else {
|
|
12137
|
+
if (sizerStyle.width !== '0px') {
|
|
12138
|
+
bibContent.style.width = sizerStyle.width;
|
|
12139
|
+
}
|
|
12140
|
+
if (sizerStyle.height !== '0px') {
|
|
12141
|
+
bibContent.style.height = sizerStyle.height;
|
|
12142
|
+
}
|
|
12143
|
+
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
12144
|
+
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
12057
12145
|
}
|
|
12058
|
-
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
12059
|
-
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
12060
12146
|
}
|
|
12061
12147
|
}
|
|
12062
12148
|
|
|
@@ -12107,7 +12193,7 @@ class AuroFloatingUI {
|
|
|
12107
12193
|
// Compute the position of the bib
|
|
12108
12194
|
computePosition(this.element.trigger, this.element.bib, {
|
|
12109
12195
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
12110
|
-
middleware: middleware
|
|
12196
|
+
middleware: middleware
|
|
12111
12197
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
12112
12198
|
Object.assign(this.element.bib.style, {
|
|
12113
12199
|
left: `${x}px`,
|
|
@@ -12263,7 +12349,7 @@ class AuroFloatingUI {
|
|
|
12263
12349
|
* @returns {void} Dispatches event with an object showing the state of the dropdown.
|
|
12264
12350
|
*/
|
|
12265
12351
|
dispatchEventDropdownToggle() {
|
|
12266
|
-
const event = new CustomEvent(
|
|
12352
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
|
|
12267
12353
|
detail: {
|
|
12268
12354
|
expanded: this.isPopoverVisible,
|
|
12269
12355
|
},
|
|
@@ -12280,7 +12366,7 @@ class AuroFloatingUI {
|
|
|
12280
12366
|
this.showBib();
|
|
12281
12367
|
}
|
|
12282
12368
|
|
|
12283
|
-
const event = new CustomEvent(
|
|
12369
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-triggerClick` : "triggerClick", {
|
|
12284
12370
|
composed: true,
|
|
12285
12371
|
details: {
|
|
12286
12372
|
expanded: this.element.isPopoverVisible
|
|
@@ -12324,6 +12410,9 @@ class AuroFloatingUI {
|
|
|
12324
12410
|
this.handleFocusLoss();
|
|
12325
12411
|
break;
|
|
12326
12412
|
case 'click':
|
|
12413
|
+
if (document.activeElement === document.body) {
|
|
12414
|
+
event.currentTarget.focus();
|
|
12415
|
+
}
|
|
12327
12416
|
this.handleClick();
|
|
12328
12417
|
break;
|
|
12329
12418
|
// Do nothing
|
|
@@ -12361,7 +12450,8 @@ class AuroFloatingUI {
|
|
|
12361
12450
|
});
|
|
12362
12451
|
}
|
|
12363
12452
|
|
|
12364
|
-
configure(elem) {
|
|
12453
|
+
configure(elem, eventPrefix) {
|
|
12454
|
+
this.eventPrefix = eventPrefix;
|
|
12365
12455
|
this.element = elem;
|
|
12366
12456
|
this.element.trigger = this.element.shadowRoot.querySelector('#trigger');
|
|
12367
12457
|
this.element.bib = this.element.shadowRoot.querySelector('#bib');
|
|
@@ -12447,7 +12537,7 @@ const t$4={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
12447
12537
|
* @license
|
|
12448
12538
|
* Copyright 2018 Google LLC
|
|
12449
12539
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12450
|
-
*/const e$5=e$1$1(class extends i$6{constructor(t$1){if(super(t$1),t$1.type!==t$4.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(
|
|
12540
|
+
*/const e$5=e$1$1(class extends i$6{constructor(t$1){if(super(t$1),t$1.type!==t$4.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$1}});
|
|
12451
12541
|
|
|
12452
12542
|
/**
|
|
12453
12543
|
* @license
|
|
@@ -12521,7 +12611,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
12521
12611
|
return _fetchMap$1.get(uri);
|
|
12522
12612
|
};
|
|
12523
12613
|
|
|
12524
|
-
var styleCss$2$1 = i$3$1`*,*: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}`;
|
|
12614
|
+
var styleCss$2$1 = i$3$1`*,*: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}`;
|
|
12525
12615
|
|
|
12526
12616
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12527
12617
|
// See LICENSE in the project root for license information.
|
|
@@ -12788,7 +12878,8 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12788
12878
|
};
|
|
12789
12879
|
|
|
12790
12880
|
const classes = {
|
|
12791
|
-
'label': this.label
|
|
12881
|
+
'label': this.label,
|
|
12882
|
+
'wrapper': true,
|
|
12792
12883
|
};
|
|
12793
12884
|
|
|
12794
12885
|
return x$1`
|
|
@@ -12812,15 +12903,15 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12812
12903
|
}
|
|
12813
12904
|
};
|
|
12814
12905
|
|
|
12815
|
-
var iconVersion$1 = '6.1.
|
|
12906
|
+
var iconVersion$1 = '6.1.2';
|
|
12816
12907
|
|
|
12817
|
-
var styleCss$1$1 = i$3$1`: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)}`;
|
|
12908
|
+
var styleCss$1$1 = i$3$1`: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)}`;
|
|
12818
12909
|
|
|
12819
|
-
var colorCss$1$1 = i$3$1`.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);
|
|
12910
|
+
var colorCss$1$1 = i$3$1`.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)}`;
|
|
12820
12911
|
|
|
12821
12912
|
var tokensCss$4 = i$3$1`: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)}`;
|
|
12822
12913
|
|
|
12823
|
-
var styleCss$4 = i$3$1`: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]
|
|
12914
|
+
var styleCss$4 = i$3$1`: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}`;
|
|
12824
12915
|
|
|
12825
12916
|
var colorCss$4 = i$3$1`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
12826
12917
|
|
|
@@ -12838,9 +12929,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
12838
12929
|
];
|
|
12839
12930
|
|
|
12840
12931
|
/**
|
|
12841
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
12842
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
12843
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
12844
12932
|
* @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.
|
|
12845
12933
|
* @csspart bibContainer - Apply css to the bib container.
|
|
12846
12934
|
*/
|
|
@@ -12866,14 +12954,26 @@ class AuroDropdownBib extends r$5 {
|
|
|
12866
12954
|
|
|
12867
12955
|
static get properties() {
|
|
12868
12956
|
return {
|
|
12957
|
+
|
|
12958
|
+
/**
|
|
12959
|
+
* If declared, will apply all styles for the common theme.
|
|
12960
|
+
*/
|
|
12869
12961
|
common: {
|
|
12870
12962
|
type: Boolean,
|
|
12871
12963
|
reflect: true
|
|
12872
12964
|
},
|
|
12965
|
+
|
|
12966
|
+
/**
|
|
12967
|
+
* If declared, will apply extra padding to bib content.
|
|
12968
|
+
*/
|
|
12873
12969
|
inset: {
|
|
12874
12970
|
type: Boolean,
|
|
12875
12971
|
reflect: true
|
|
12876
12972
|
},
|
|
12973
|
+
|
|
12974
|
+
/**
|
|
12975
|
+
* If declared, will apply border-radius to the bib.
|
|
12976
|
+
*/
|
|
12877
12977
|
rounded: {
|
|
12878
12978
|
type: Boolean,
|
|
12879
12979
|
reflect: true
|
|
@@ -12917,22 +13017,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
12917
13017
|
|
|
12918
13018
|
|
|
12919
13019
|
/**
|
|
12920
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
12921
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
12922
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
12923
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
12924
13020
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
12925
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
12926
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
12927
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
12928
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
12929
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
12930
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
12931
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
12932
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
12933
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
12934
|
-
* @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.
|
|
12935
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
12936
13021
|
* @slot - Default slot for the popover content.
|
|
12937
13022
|
* @slot label - Defines the content of the label.
|
|
12938
13023
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -12970,6 +13055,16 @@ class AuroDropdown extends r$5 {
|
|
|
12970
13055
|
this.tabIndex = 0;
|
|
12971
13056
|
this.noToggle = false;
|
|
12972
13057
|
|
|
13058
|
+
/**
|
|
13059
|
+
* @private
|
|
13060
|
+
*/
|
|
13061
|
+
this.hasTriggerContent = false;
|
|
13062
|
+
|
|
13063
|
+
/**
|
|
13064
|
+
* @private
|
|
13065
|
+
*/
|
|
13066
|
+
this.triggerContentSlot = undefined;
|
|
13067
|
+
|
|
12973
13068
|
/**
|
|
12974
13069
|
* @private
|
|
12975
13070
|
*/
|
|
@@ -13016,89 +13111,166 @@ class AuroDropdown extends r$5 {
|
|
|
13016
13111
|
// function to define props used within the scope of this component
|
|
13017
13112
|
static get properties() {
|
|
13018
13113
|
return {
|
|
13114
|
+
|
|
13115
|
+
/**
|
|
13116
|
+
* If declared, applies a border around the trigger slot.
|
|
13117
|
+
*/
|
|
13019
13118
|
bordered: {
|
|
13020
13119
|
type: Boolean,
|
|
13021
13120
|
reflect: true
|
|
13022
13121
|
},
|
|
13122
|
+
|
|
13123
|
+
/**
|
|
13124
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
13125
|
+
* @attr {Boolean} chevron
|
|
13126
|
+
*/
|
|
13023
13127
|
chevron: {
|
|
13024
13128
|
type: Boolean,
|
|
13025
13129
|
reflect: true
|
|
13026
13130
|
},
|
|
13027
|
-
|
|
13131
|
+
|
|
13132
|
+
/**
|
|
13133
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
13134
|
+
*/
|
|
13135
|
+
common: {
|
|
13028
13136
|
type: Boolean,
|
|
13029
13137
|
reflect: true
|
|
13030
13138
|
},
|
|
13031
|
-
|
|
13139
|
+
|
|
13140
|
+
/**
|
|
13141
|
+
* If declared, the dropdown is not interactive.
|
|
13142
|
+
*/
|
|
13143
|
+
disabled: {
|
|
13032
13144
|
type: Boolean,
|
|
13033
13145
|
reflect: true
|
|
13034
13146
|
},
|
|
13035
|
-
|
|
13147
|
+
|
|
13148
|
+
/**
|
|
13149
|
+
* @private
|
|
13150
|
+
*/
|
|
13151
|
+
dropdownWidth: {
|
|
13152
|
+
type: Number
|
|
13153
|
+
},
|
|
13154
|
+
|
|
13155
|
+
/**
|
|
13156
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
13157
|
+
*/
|
|
13158
|
+
error: {
|
|
13036
13159
|
type: Boolean,
|
|
13037
|
-
reflect: true
|
|
13160
|
+
reflect: true
|
|
13038
13161
|
},
|
|
13162
|
+
|
|
13163
|
+
/**
|
|
13164
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
13165
|
+
*/
|
|
13039
13166
|
focusShow: {
|
|
13040
13167
|
type: Boolean,
|
|
13041
13168
|
reflect: true
|
|
13042
13169
|
},
|
|
13043
|
-
|
|
13170
|
+
|
|
13171
|
+
/**
|
|
13172
|
+
* Makes the trigger to be full width of its parent container.
|
|
13173
|
+
*/
|
|
13174
|
+
fluid: {
|
|
13044
13175
|
type: Boolean,
|
|
13045
13176
|
reflect: true
|
|
13046
13177
|
},
|
|
13178
|
+
|
|
13179
|
+
/**
|
|
13180
|
+
* If declared, will apply padding around trigger slot content.
|
|
13181
|
+
*/
|
|
13047
13182
|
inset: {
|
|
13048
13183
|
type: Boolean,
|
|
13049
13184
|
reflect: true
|
|
13050
13185
|
},
|
|
13051
|
-
|
|
13186
|
+
|
|
13187
|
+
/**
|
|
13188
|
+
* If true, the dropdown bib is displayed.
|
|
13189
|
+
*/
|
|
13190
|
+
isPopoverVisible: {
|
|
13191
|
+
type: Boolean
|
|
13192
|
+
},
|
|
13193
|
+
|
|
13194
|
+
/**
|
|
13195
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
13196
|
+
*/
|
|
13197
|
+
hoverToggle: {
|
|
13052
13198
|
type: Boolean,
|
|
13053
13199
|
reflect: true
|
|
13054
13200
|
},
|
|
13055
|
-
|
|
13056
|
-
|
|
13201
|
+
|
|
13202
|
+
/**
|
|
13203
|
+
* @private
|
|
13204
|
+
*/
|
|
13205
|
+
hasTriggerContent: {
|
|
13206
|
+
type: Boolean
|
|
13207
|
+
},
|
|
13208
|
+
|
|
13209
|
+
/**
|
|
13210
|
+
* 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.
|
|
13211
|
+
*/
|
|
13212
|
+
mobileFullscreenBreakpoint: {
|
|
13213
|
+
type: String,
|
|
13057
13214
|
reflect: true
|
|
13058
13215
|
},
|
|
13059
|
-
|
|
13216
|
+
|
|
13217
|
+
/**
|
|
13218
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
13219
|
+
*/
|
|
13220
|
+
matchWidth: {
|
|
13060
13221
|
type: Boolean,
|
|
13061
13222
|
reflect: true
|
|
13062
13223
|
},
|
|
13063
|
-
|
|
13224
|
+
|
|
13225
|
+
/**
|
|
13226
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
13227
|
+
*/
|
|
13228
|
+
noHideOnThisFocusLoss: {
|
|
13064
13229
|
type: Boolean,
|
|
13065
13230
|
reflect: true
|
|
13066
13231
|
},
|
|
13067
|
-
|
|
13232
|
+
|
|
13233
|
+
/**
|
|
13234
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
13235
|
+
*/
|
|
13236
|
+
noToggle: {
|
|
13068
13237
|
type: Boolean,
|
|
13069
13238
|
reflect: true
|
|
13070
13239
|
},
|
|
13071
|
-
|
|
13240
|
+
|
|
13072
13241
|
onSlotChange: {
|
|
13073
13242
|
type: Function,
|
|
13074
13243
|
reflect: false
|
|
13075
13244
|
},
|
|
13076
|
-
mobileFullscreenBreakpoint: {
|
|
13077
|
-
type: String,
|
|
13078
|
-
reflect: true,
|
|
13079
|
-
},
|
|
13080
13245
|
|
|
13081
13246
|
/**
|
|
13082
13247
|
* @private
|
|
13083
13248
|
*/
|
|
13084
|
-
|
|
13249
|
+
placement: {
|
|
13250
|
+
type: String
|
|
13251
|
+
},
|
|
13085
13252
|
|
|
13086
13253
|
/**
|
|
13087
|
-
*
|
|
13254
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
13088
13255
|
*/
|
|
13089
|
-
|
|
13256
|
+
rounded: {
|
|
13257
|
+
type: Boolean,
|
|
13258
|
+
reflect: true
|
|
13259
|
+
},
|
|
13090
13260
|
|
|
13091
13261
|
/**
|
|
13092
13262
|
* @private
|
|
13093
13263
|
*/
|
|
13094
|
-
tabIndex: {
|
|
13264
|
+
tabIndex: {
|
|
13265
|
+
type: Number
|
|
13266
|
+
}
|
|
13095
13267
|
};
|
|
13096
13268
|
}
|
|
13097
13269
|
|
|
13098
13270
|
static get styles() {
|
|
13099
13271
|
return [
|
|
13100
|
-
styleCss$1$1,
|
|
13101
13272
|
colorCss$1$1,
|
|
13273
|
+
styleCss$1$1,
|
|
13102
13274
|
tokensCss$4
|
|
13103
13275
|
];
|
|
13104
13276
|
}
|
|
@@ -13129,10 +13301,16 @@ class AuroDropdown extends r$5 {
|
|
|
13129
13301
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
13130
13302
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
13131
13303
|
}
|
|
13304
|
+
|
|
13305
|
+
// when trigger's content is changed without any attribute or node change,
|
|
13306
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
13307
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
13308
|
+
this.handleTriggerContentSlotChange();
|
|
13309
|
+
}
|
|
13132
13310
|
}
|
|
13133
13311
|
|
|
13134
13312
|
firstUpdated() {
|
|
13135
|
-
this.floater.configure(this);
|
|
13313
|
+
this.floater.configure(this, 'auroDropdown');
|
|
13136
13314
|
this.bibContent = this.floater.element.bib;
|
|
13137
13315
|
|
|
13138
13316
|
// Add the tag name as an attribute if it is different than the component name
|
|
@@ -13171,6 +13349,43 @@ class AuroDropdown extends r$5 {
|
|
|
13171
13349
|
return inCustomSlot;
|
|
13172
13350
|
}
|
|
13173
13351
|
|
|
13352
|
+
/**
|
|
13353
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
13354
|
+
*
|
|
13355
|
+
* It first updates the floater settings
|
|
13356
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
13357
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
13358
|
+
*
|
|
13359
|
+
* @private
|
|
13360
|
+
* @method handleTriggerContentSlotChange
|
|
13361
|
+
* @param {Event} event - native slotchange event
|
|
13362
|
+
* @returns {void}
|
|
13363
|
+
*/
|
|
13364
|
+
handleTriggerContentSlotChange(event) {
|
|
13365
|
+
this.floater.handleTriggerTabIndex();
|
|
13366
|
+
|
|
13367
|
+
if (event) {
|
|
13368
|
+
this.triggerNode = event.target;
|
|
13369
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
13370
|
+
}
|
|
13371
|
+
|
|
13372
|
+
if (this.triggerContentSlot) {
|
|
13373
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
13374
|
+
if (slot.textContent.trim()) {
|
|
13375
|
+
return true;
|
|
13376
|
+
}
|
|
13377
|
+
const slotInSlot = slot.querySelector('slot');
|
|
13378
|
+
if (!slotInSlot) {
|
|
13379
|
+
return false;
|
|
13380
|
+
}
|
|
13381
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
13382
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
13383
|
+
});
|
|
13384
|
+
} else {
|
|
13385
|
+
this.hasTriggerContent = false;
|
|
13386
|
+
}
|
|
13387
|
+
}
|
|
13388
|
+
|
|
13174
13389
|
/**
|
|
13175
13390
|
* Handles the default slot change event and updates the content.
|
|
13176
13391
|
*
|
|
@@ -13205,13 +13420,13 @@ class AuroDropdown extends r$5 {
|
|
|
13205
13420
|
tabindex="${this.tabIndex}"
|
|
13206
13421
|
>
|
|
13207
13422
|
<div class="triggerContentWrapper">
|
|
13208
|
-
<label class="label" id="triggerLabel">
|
|
13423
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
13209
13424
|
<slot name="label"></slot>
|
|
13210
13425
|
</label>
|
|
13211
13426
|
<div class="triggerContent">
|
|
13212
13427
|
<slot
|
|
13213
13428
|
name="trigger"
|
|
13214
|
-
@slotchange="${() =>
|
|
13429
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
13215
13430
|
</div>
|
|
13216
13431
|
</div>
|
|
13217
13432
|
${this.chevron || this.common ? u$1$1`
|
|
@@ -13258,14 +13473,14 @@ var dropdownVersion = '3.0.0';
|
|
|
13258
13473
|
* Copyright 2017 Google LLC
|
|
13259
13474
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13260
13475
|
*/
|
|
13261
|
-
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):
|
|
13476
|
+
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=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$4=document,l$2=()=>r$4.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=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$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/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$4.createTreeWalker(r$4,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$3?s$3.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$1:undefined!==u[1]?c=_:undefined!==u[2]?($.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$1,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:p$2):c===g||c===p$2?c=m$1:c===v$1||c===_?c=f$1:(c=m$1,r=undefined);const x=c===m$1&&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$4.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$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$1(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$4).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$4,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$3(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$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&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$4.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$1(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$3(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$3(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 Z={M:e$4,P:h$1,A:o$4,C:1,L:V,R:M$1,D:u$4,V:S$1,I:R,H:k,N:I,U:L,B:H,F:z},j=t$3.litHtmlPolyfillSupport;j?.(N,R),(t$3.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};
|
|
13262
13477
|
|
|
13263
13478
|
/**
|
|
13264
13479
|
* @license
|
|
13265
13480
|
* Copyright 2020 Google LLC
|
|
13266
13481
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13267
13482
|
*/
|
|
13268
|
-
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$2=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
13483
|
+
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$2=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$3=n$2(x);
|
|
13269
13484
|
|
|
13270
13485
|
/**
|
|
13271
13486
|
* @license
|
|
@@ -13278,20 +13493,20 @@ const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
13278
13493
|
* @license
|
|
13279
13494
|
* Copyright 2020 Google LLC
|
|
13280
13495
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13281
|
-
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=
|
|
13496
|
+
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=undefined===i?o._$AB:i._$AA;if(undefined===n){const i=e.insertBefore(s$1(),l),c=e.insertBefore(s$1(),l);n=new t$1(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,undefined!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v=(o,t,i=o)=>(o._$AI(t,i),o),u$2={},m=(o,t=u$2)=>o._$AH=t,p$1=o=>o._$AH,M=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
|
|
13282
13497
|
|
|
13283
13498
|
/**
|
|
13284
13499
|
* @license
|
|
13285
13500
|
* Copyright 2017 Google LLC
|
|
13286
13501
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13287
13502
|
*/
|
|
13288
|
-
const u$1=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$2=e$3(class extends i$3{constructor(e){if(super(e),e.type!==t$2.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;
|
|
13503
|
+
const u$1=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$2=e$3(class extends i$3{constructor(e){if(super(e),e.type!==t$2.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;undefined===t?t=s:undefined!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){const d=p$1(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p[w]),r$3(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p[k]),r$3(s,d[x],d[j]),j--,k++;else if(undefined===m$1&&(m$1=u$1(a,k,w),y=u$1(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=undefined!==e?d[e]:null;if(null===t){const e=r$3(s,d[x]);v(e,p[k]),v$1[k]=e;}else v$1[k]=v(t,p[k]),r$3(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r$3(s,v$1[w+1]);v(e,p[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
13289
13504
|
|
|
13290
13505
|
/**
|
|
13291
13506
|
* @license
|
|
13292
13507
|
* Copyright 2018 Google LLC
|
|
13293
13508
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13294
|
-
*/const e$2=e$3(class extends i$3{constructor(t){if(super(t),t.type!==t$2.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(
|
|
13509
|
+
*/const e$2=e$3(class extends i$3{constructor(t){if(super(t),t.type!==t$2.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}});
|
|
13295
13510
|
|
|
13296
13511
|
/**
|
|
13297
13512
|
* @license
|
|
@@ -13407,21 +13622,21 @@ function stopNotifyingOnLangChange(element) {
|
|
|
13407
13622
|
* Copyright 2019 Google LLC
|
|
13408
13623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13409
13624
|
*/
|
|
13410
|
-
const t=globalThis,e$1=t.ShadowRoot&&(
|
|
13625
|
+
const t=globalThis,e$1=t.ShadowRoot&&(undefined===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$1=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$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$2=(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$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
|
13411
13626
|
|
|
13412
13627
|
/**
|
|
13413
13628
|
* @license
|
|
13414
13629
|
* Copyright 2017 Google LLC
|
|
13415
13630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13416
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,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$1(t,s),y={attribute
|
|
13631
|
+
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,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$1(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(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(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");
|
|
13417
13632
|
|
|
13418
13633
|
/**
|
|
13419
13634
|
* @license
|
|
13420
13635
|
* Copyright 2017 Google LLC
|
|
13421
13636
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13422
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
13637
|
+
*/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=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
13423
13638
|
|
|
13424
|
-
var styleCss$3 = i$2`*,*: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}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.
|
|
13639
|
+
var styleCss$3 = i$2`*,*: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}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
13425
13640
|
|
|
13426
13641
|
var colorCss$3 = i$2`.wrapper{border-color:transparent}.inputElement-helpText{color:var(--ds-auro-input-help-text-color)}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);--ds-auro-input-help-text-color: var(--ds-color-text-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
13427
13642
|
|
|
@@ -15064,25 +15279,111 @@ class AuroFormValidation {
|
|
|
15064
15279
|
}
|
|
15065
15280
|
|
|
15066
15281
|
/**
|
|
15067
|
-
*
|
|
15282
|
+
* Resets the element to its initial state.
|
|
15068
15283
|
* @private
|
|
15069
|
-
* @param {object} elem - HTML element to
|
|
15284
|
+
* @param {object} elem - HTML element to reset.
|
|
15070
15285
|
* @returns {void}
|
|
15071
15286
|
*/
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15287
|
+
reset(elem) {
|
|
15288
|
+
elem.validity = undefined;
|
|
15289
|
+
elem.value = undefined;
|
|
15290
|
+
|
|
15291
|
+
// Resets the second value of the datepicker in range state
|
|
15292
|
+
if (elem.valueEnd) {
|
|
15293
|
+
elem.valueEnd = undefined;
|
|
15294
|
+
}
|
|
15295
|
+
|
|
15296
|
+
// Resets selected option of element
|
|
15297
|
+
if (elem.optionSelected) {
|
|
15298
|
+
elem.optionSelected = undefined;
|
|
15299
|
+
}
|
|
15300
|
+
|
|
15301
|
+
// Runs validation to handle error attribute
|
|
15302
|
+
this.validate(elem);
|
|
15303
|
+
}
|
|
15075
15304
|
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15305
|
+
/**
|
|
15306
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
15307
|
+
*
|
|
15308
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
15309
|
+
* @returns {void}
|
|
15310
|
+
*
|
|
15311
|
+
* @example
|
|
15312
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
15313
|
+
* validateElementAttributes(inputElement);
|
|
15314
|
+
*
|
|
15315
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
15316
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
15317
|
+
*
|
|
15318
|
+
* Validation rules:
|
|
15319
|
+
* - input:
|
|
15320
|
+
* - length:
|
|
15321
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
15322
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
15323
|
+
* - pattern:
|
|
15324
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
15325
|
+
* - counter:
|
|
15326
|
+
* - range:
|
|
15327
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
15328
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
15329
|
+
*/
|
|
15330
|
+
validateElementAttributes(elem) {
|
|
15331
|
+
const validationRules = {
|
|
15332
|
+
input: {
|
|
15333
|
+
length: [
|
|
15334
|
+
{
|
|
15335
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
15336
|
+
validity: 'tooShort',
|
|
15337
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
15338
|
+
},
|
|
15339
|
+
{
|
|
15340
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
15341
|
+
validity: 'tooLong',
|
|
15342
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
15343
|
+
}
|
|
15344
|
+
],
|
|
15345
|
+
pattern: [
|
|
15346
|
+
{
|
|
15347
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
15348
|
+
validity: 'patternMismatch',
|
|
15349
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
15350
|
+
}
|
|
15351
|
+
]
|
|
15352
|
+
},
|
|
15353
|
+
counter: {
|
|
15354
|
+
range: [
|
|
15355
|
+
{
|
|
15356
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
15357
|
+
validity: 'rangeOverflow',
|
|
15358
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
15359
|
+
},
|
|
15360
|
+
{
|
|
15361
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
15362
|
+
validity: 'rangeUnderflow',
|
|
15363
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
15364
|
+
}
|
|
15365
|
+
]
|
|
15366
|
+
}
|
|
15367
|
+
};
|
|
15368
|
+
|
|
15369
|
+
let elementType;
|
|
15370
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15371
|
+
elementType = 'input';
|
|
15372
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
15373
|
+
elementType = 'counter';
|
|
15374
|
+
}
|
|
15375
|
+
|
|
15376
|
+
if (elementType) {
|
|
15377
|
+
const rules = validationRules[elementType];
|
|
15378
|
+
|
|
15379
|
+
if (rules) {
|
|
15380
|
+
Object.values(rules).flat().forEach(rule => {
|
|
15381
|
+
if (rule.check(elem)) {
|
|
15382
|
+
elem.validity = rule.validity;
|
|
15383
|
+
elem.errorMessage = rule.message(elem);
|
|
15384
|
+
}
|
|
15385
|
+
});
|
|
15079
15386
|
}
|
|
15080
|
-
} else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
|
|
15081
|
-
elem.validity = 'tooShort';
|
|
15082
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
15083
|
-
} else if (elem.value && elem.value.length > elem.maxLength) {
|
|
15084
|
-
elem.validity = 'tooLong';
|
|
15085
|
-
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
15086
15387
|
}
|
|
15087
15388
|
}
|
|
15088
15389
|
|
|
@@ -15098,33 +15399,32 @@ class AuroFormValidation {
|
|
|
15098
15399
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
15099
15400
|
|
|
15100
15401
|
if (!elem.value.match(emailRegex)) {
|
|
15101
|
-
elem.validity = '
|
|
15102
|
-
elem.
|
|
15402
|
+
elem.validity = 'patternMismatch';
|
|
15403
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15103
15404
|
}
|
|
15104
15405
|
} else if (elem.type === 'credit-card') {
|
|
15105
15406
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
15106
15407
|
elem.validity = 'tooShort';
|
|
15107
|
-
elem.
|
|
15408
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15108
15409
|
}
|
|
15109
|
-
} else if (elem.type === 'number'
|
|
15410
|
+
} else if (elem.type === 'number') {
|
|
15110
15411
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
15111
15412
|
elem.validity = 'rangeOverflow';
|
|
15112
|
-
elem.
|
|
15413
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15113
15414
|
}
|
|
15114
15415
|
|
|
15115
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
15416
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
15116
15417
|
elem.validity = 'rangeUnderflow';
|
|
15117
|
-
elem.
|
|
15418
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15118
15419
|
}
|
|
15119
|
-
|
|
15120
15420
|
} else if (elem.type === 'month-day-year' ||
|
|
15121
15421
|
elem.type === 'month-year' ||
|
|
15122
15422
|
elem.type === 'month-fullYear' ||
|
|
15123
15423
|
elem.type === 'year-month-day'
|
|
15124
15424
|
) {
|
|
15125
|
-
if (elem.value
|
|
15425
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
15126
15426
|
elem.validity = 'tooShort';
|
|
15127
|
-
elem.
|
|
15427
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15128
15428
|
} else {
|
|
15129
15429
|
const valueDate = new Date(elem.value);
|
|
15130
15430
|
|
|
@@ -15134,7 +15434,7 @@ class AuroFormValidation {
|
|
|
15134
15434
|
|
|
15135
15435
|
if (valueDate > maxDate) {
|
|
15136
15436
|
elem.validity = 'rangeOverflow';
|
|
15137
|
-
elem.
|
|
15437
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15138
15438
|
}
|
|
15139
15439
|
}
|
|
15140
15440
|
|
|
@@ -15144,7 +15444,7 @@ class AuroFormValidation {
|
|
|
15144
15444
|
|
|
15145
15445
|
if (valueDate < minDate) {
|
|
15146
15446
|
elem.validity = 'rangeUnderflow';
|
|
15147
|
-
elem.
|
|
15447
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15148
15448
|
}
|
|
15149
15449
|
}
|
|
15150
15450
|
}
|
|
@@ -15167,10 +15467,10 @@ class AuroFormValidation {
|
|
|
15167
15467
|
|
|
15168
15468
|
if (elem.hasAttribute('error')) {
|
|
15169
15469
|
elem.validity = 'customError';
|
|
15170
|
-
elem.
|
|
15470
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
15171
15471
|
} else if (validationShouldRun) {
|
|
15172
15472
|
elem.validity = 'valid';
|
|
15173
|
-
elem.
|
|
15473
|
+
elem.errorMessage = '';
|
|
15174
15474
|
|
|
15175
15475
|
/**
|
|
15176
15476
|
* Only validate once we interact with the datepicker
|
|
@@ -15182,7 +15482,7 @@ class AuroFormValidation {
|
|
|
15182
15482
|
let hasValue = elem.value && elem.value.length > 0;
|
|
15183
15483
|
|
|
15184
15484
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
15185
|
-
if (this.auroInputElements
|
|
15485
|
+
if (this.auroInputElements?.length === 2) {
|
|
15186
15486
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
15187
15487
|
hasValue = false;
|
|
15188
15488
|
}
|
|
@@ -15190,35 +15490,29 @@ class AuroFormValidation {
|
|
|
15190
15490
|
|
|
15191
15491
|
if (!hasValue && elem.required) {
|
|
15192
15492
|
elem.validity = 'valueMissing';
|
|
15193
|
-
elem.
|
|
15493
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
15194
15494
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15195
15495
|
this.validateType(elem);
|
|
15196
|
-
this.
|
|
15496
|
+
this.validateElementAttributes(elem);
|
|
15497
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
15498
|
+
this.validateElementAttributes(elem);
|
|
15197
15499
|
}
|
|
15198
15500
|
}
|
|
15199
15501
|
|
|
15200
|
-
if (this.auroInputElements
|
|
15502
|
+
if (this.auroInputElements?.length > 0) {
|
|
15201
15503
|
elem.validity = this.auroInputElements[0].validity;
|
|
15202
|
-
elem.
|
|
15504
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
15203
15505
|
|
|
15204
|
-
if (elem.validity === 'valid') {
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
15208
|
-
}
|
|
15506
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
15507
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
15508
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
15209
15509
|
}
|
|
15210
15510
|
}
|
|
15211
15511
|
|
|
15212
15512
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
// Use the validity message override if it is declared
|
|
15217
|
-
if (elem.ValidityMessageOverride) {
|
|
15218
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
15219
|
-
}
|
|
15220
|
-
} else {
|
|
15221
|
-
elem.isValid = true;
|
|
15513
|
+
// Use the validity message override if it is declared
|
|
15514
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
15515
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
15222
15516
|
}
|
|
15223
15517
|
|
|
15224
15518
|
this.getErrorMessage(elem);
|
|
@@ -15264,18 +15558,18 @@ class AuroFormValidation {
|
|
|
15264
15558
|
if (elem.validity !== 'valid') {
|
|
15265
15559
|
if (elem.setCustomValidity) {
|
|
15266
15560
|
elem.errorMessage = elem.setCustomValidity;
|
|
15267
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15561
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
15268
15562
|
const input = elem.renderRoot.querySelector('input');
|
|
15269
15563
|
|
|
15270
15564
|
if (input.validationMessage.length > 0) {
|
|
15271
15565
|
elem.errorMessage = input.validationMessage;
|
|
15272
15566
|
}
|
|
15273
|
-
} else if (this.inputElements &&
|
|
15567
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
15274
15568
|
const firstInput = this.inputElements[0];
|
|
15275
15569
|
|
|
15276
15570
|
if (firstInput.validationMessage.length > 0) {
|
|
15277
15571
|
elem.errorMessage = firstInput.validationMessage;
|
|
15278
|
-
} else if (this.inputElements
|
|
15572
|
+
} else if (this.inputElements?.length === 2) {
|
|
15279
15573
|
const secondInput = this.inputElements[1];
|
|
15280
15574
|
|
|
15281
15575
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -15296,45 +15590,8 @@ class AuroFormValidation {
|
|
|
15296
15590
|
/**
|
|
15297
15591
|
* Auro-input provides users a way to enter data into a text field.
|
|
15298
15592
|
*
|
|
15299
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
15300
|
-
* @attr {String} autocapitalize - An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
15301
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15302
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
15303
15593
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
15304
15594
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
15305
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
15306
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
15307
|
-
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
15308
|
-
* @attr {String} helpText - Deprecated, see `slot`.
|
|
15309
|
-
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15310
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
15311
|
-
* @attr {String} isValid - (DEPRECATED - Please use validity) Can be accessed to determine if the input validity. Returns true when validity has not yet been checked or validity = 'valid', all other cases return false. Not intended to be set by the consumer.
|
|
15312
|
-
* @attr {String} label - Deprecated, see `slot`.
|
|
15313
|
-
* @attr {String} lang - defines the language of an element.
|
|
15314
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `numeric` and all date formats.
|
|
15315
|
-
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
15316
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `numeric` and all date formats.
|
|
15317
|
-
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
15318
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
15319
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
15320
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
15321
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
15322
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
15323
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
15324
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
15325
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
15326
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
15327
|
-
* @attr {String} setCustomValidityBadInput - Custom help text message to display when validity = `badInput`.
|
|
15328
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
15329
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
15330
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
15331
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
15332
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
15333
|
-
* @attr {String} spellcheck - An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
15334
|
-
* @attr {String} type - Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
15335
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
15336
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
15337
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15338
15595
|
*
|
|
15339
15596
|
* @slot helptext - Sets the help text displayed below the input.
|
|
15340
15597
|
* @slot label - Sets the label text for the input.
|
|
@@ -15353,8 +15610,6 @@ class BaseInput extends r {
|
|
|
15353
15610
|
constructor() {
|
|
15354
15611
|
super();
|
|
15355
15612
|
|
|
15356
|
-
this.isValid = false;
|
|
15357
|
-
|
|
15358
15613
|
this.icon = false;
|
|
15359
15614
|
this.disabled = false;
|
|
15360
15615
|
this.required = false;
|
|
@@ -15363,9 +15618,7 @@ class BaseInput extends r {
|
|
|
15363
15618
|
this.min = undefined;
|
|
15364
15619
|
this.maxLength = undefined;
|
|
15365
15620
|
this.minLength = undefined;
|
|
15366
|
-
this.label = 'Input label is undefined';
|
|
15367
15621
|
this.activeLabel = false;
|
|
15368
|
-
|
|
15369
15622
|
this.setCustomValidityForType = undefined;
|
|
15370
15623
|
}
|
|
15371
15624
|
|
|
@@ -15380,9 +15633,11 @@ class BaseInput extends r {
|
|
|
15380
15633
|
this.showPassword = false;
|
|
15381
15634
|
this.validationCCLength = undefined;
|
|
15382
15635
|
this.hasValue = false;
|
|
15636
|
+
this.label = 'Input label is undefined';
|
|
15383
15637
|
|
|
15384
15638
|
this.allowedInputTypes = [
|
|
15385
15639
|
"text",
|
|
15640
|
+
"number",
|
|
15386
15641
|
"email",
|
|
15387
15642
|
"password",
|
|
15388
15643
|
"credit-card",
|
|
@@ -15428,80 +15683,275 @@ class BaseInput extends r {
|
|
|
15428
15683
|
.substring(idSubstrStart, idSubstrEnd);
|
|
15429
15684
|
}
|
|
15430
15685
|
|
|
15431
|
-
// function to define props used within the scope of this
|
|
15686
|
+
// function to define props used within the scope of this componentstatic
|
|
15432
15687
|
static get properties() {
|
|
15433
15688
|
return {
|
|
15434
|
-
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
|
|
15439
|
-
|
|
15440
|
-
lang: { type: String },
|
|
15441
|
-
pattern: {
|
|
15442
|
-
type: String,
|
|
15689
|
+
|
|
15690
|
+
/**
|
|
15691
|
+
* If set, the label will remain fixed in the active position.
|
|
15692
|
+
*/
|
|
15693
|
+
activeLabel: {
|
|
15694
|
+
type: Boolean,
|
|
15443
15695
|
reflect: true
|
|
15444
15696
|
},
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15697
|
+
|
|
15698
|
+
/**
|
|
15699
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
15700
|
+
*/
|
|
15701
|
+
autocapitalize: {
|
|
15702
|
+
type: String
|
|
15703
|
+
},
|
|
15704
|
+
|
|
15705
|
+
/**
|
|
15706
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15707
|
+
*/
|
|
15708
|
+
autocomplete: {
|
|
15454
15709
|
type: String,
|
|
15455
15710
|
reflect: true
|
|
15456
15711
|
},
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15712
|
+
|
|
15713
|
+
/**
|
|
15714
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
15715
|
+
*/
|
|
15716
|
+
autocorrect: {
|
|
15717
|
+
type: String
|
|
15461
15718
|
},
|
|
15462
|
-
max: { type: String },
|
|
15463
|
-
min: { type: String },
|
|
15464
|
-
maxLength: { type: Number },
|
|
15465
|
-
minLength: { type: Number },
|
|
15466
15719
|
|
|
15467
15720
|
/**
|
|
15468
|
-
*
|
|
15721
|
+
* If set, disables the input.
|
|
15469
15722
|
*/
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
readonly: { type: Boolean },
|
|
15473
|
-
error: {
|
|
15474
|
-
type: String,
|
|
15475
|
-
reflect: true
|
|
15723
|
+
disabled: {
|
|
15724
|
+
type: Boolean
|
|
15476
15725
|
},
|
|
15477
|
-
|
|
15478
|
-
|
|
15726
|
+
|
|
15727
|
+
error: {
|
|
15479
15728
|
type: String,
|
|
15480
15729
|
reflect: true
|
|
15481
15730
|
},
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15731
|
+
|
|
15732
|
+
/**
|
|
15733
|
+
* Contains the help text message for the current validity error.
|
|
15734
|
+
*/
|
|
15735
|
+
errorMessage: {
|
|
15736
|
+
type: String
|
|
15485
15737
|
},
|
|
15486
|
-
setCustomValidity: { type: String },
|
|
15487
|
-
setCustomValidityCustomError: { type: String },
|
|
15488
|
-
setCustomValidityValueMissing: { type: String },
|
|
15489
|
-
setCustomValidityBadInput: { type: String },
|
|
15490
|
-
setCustomValidityTooShort: { type: String },
|
|
15491
|
-
setCustomValidityTooLong: { type: String },
|
|
15492
|
-
setCustomValidityRangeOverflow: { type: String},
|
|
15493
|
-
setCustomValidityRangeUnderflow: { type: String},
|
|
15494
|
-
customValidityTypeEmail: { type: String }
|
|
15495
|
-
};
|
|
15496
|
-
}
|
|
15497
15738
|
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15739
|
+
/**
|
|
15740
|
+
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15741
|
+
*/
|
|
15742
|
+
icon: {
|
|
15743
|
+
type: Boolean
|
|
15744
|
+
},
|
|
15745
|
+
|
|
15746
|
+
/**
|
|
15747
|
+
* Sets the unique ID of the element.
|
|
15748
|
+
*/
|
|
15749
|
+
id: {
|
|
15750
|
+
type: String
|
|
15751
|
+
},
|
|
15752
|
+
|
|
15753
|
+
/**
|
|
15754
|
+
* Defines the language of an element.
|
|
15755
|
+
*/
|
|
15756
|
+
lang: {
|
|
15757
|
+
type: String
|
|
15758
|
+
},
|
|
15759
|
+
|
|
15760
|
+
/**
|
|
15761
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15762
|
+
*/
|
|
15763
|
+
max: {
|
|
15764
|
+
type: String
|
|
15765
|
+
},
|
|
15766
|
+
|
|
15767
|
+
/**
|
|
15768
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
15769
|
+
*/
|
|
15770
|
+
maxLength: {
|
|
15771
|
+
type: Number
|
|
15772
|
+
},
|
|
15773
|
+
|
|
15774
|
+
/**
|
|
15775
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15776
|
+
*/
|
|
15777
|
+
min: {
|
|
15778
|
+
type: String
|
|
15779
|
+
},
|
|
15780
|
+
|
|
15781
|
+
/**
|
|
15782
|
+
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
15783
|
+
*/
|
|
15784
|
+
minLength: {
|
|
15785
|
+
type: Number
|
|
15786
|
+
},
|
|
15787
|
+
|
|
15788
|
+
/**
|
|
15789
|
+
* Populates the `name` attribute on the input.
|
|
15790
|
+
*/
|
|
15791
|
+
name: {
|
|
15792
|
+
type: String
|
|
15793
|
+
},
|
|
15794
|
+
|
|
15795
|
+
/**
|
|
15796
|
+
* If set, disables auto-validation on blur.
|
|
15797
|
+
*/
|
|
15798
|
+
noValidate: {
|
|
15799
|
+
type: Boolean
|
|
15800
|
+
},
|
|
15801
|
+
|
|
15802
|
+
/**
|
|
15803
|
+
* Specifies a regular expression the form control's value should match.
|
|
15804
|
+
*/
|
|
15805
|
+
pattern: {
|
|
15806
|
+
type: String,
|
|
15807
|
+
reflect: true
|
|
15808
|
+
},
|
|
15809
|
+
|
|
15810
|
+
/**
|
|
15811
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
15812
|
+
*/
|
|
15813
|
+
placeholder: {
|
|
15814
|
+
type: String
|
|
15815
|
+
},
|
|
15816
|
+
|
|
15817
|
+
/**
|
|
15818
|
+
* Makes the input read-only, but can be set programmatically.
|
|
15819
|
+
*/
|
|
15820
|
+
readonly: {
|
|
15821
|
+
type: Boolean
|
|
15822
|
+
},
|
|
15823
|
+
|
|
15824
|
+
/**
|
|
15825
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
15826
|
+
*/
|
|
15827
|
+
required: {
|
|
15828
|
+
type: Boolean
|
|
15829
|
+
},
|
|
15830
|
+
|
|
15831
|
+
/**
|
|
15832
|
+
* @ignore
|
|
15833
|
+
*/
|
|
15834
|
+
showPassword: {
|
|
15835
|
+
state: true
|
|
15836
|
+
},
|
|
15837
|
+
|
|
15838
|
+
/**
|
|
15839
|
+
* Sets a custom help text message to display for all validityStates.
|
|
15840
|
+
*/
|
|
15841
|
+
setCustomValidity: {
|
|
15842
|
+
type: String
|
|
15843
|
+
},
|
|
15844
|
+
|
|
15845
|
+
/**
|
|
15846
|
+
* Custom help text message to display when validity = `badInput`.
|
|
15847
|
+
*/
|
|
15848
|
+
setCustomValidityBadInput: {
|
|
15849
|
+
type: String
|
|
15850
|
+
},
|
|
15851
|
+
|
|
15852
|
+
/**
|
|
15853
|
+
* Custom help text message to display when validity = `customError`.
|
|
15854
|
+
*/
|
|
15855
|
+
setCustomValidityCustomError: {
|
|
15856
|
+
type: String
|
|
15857
|
+
},
|
|
15858
|
+
|
|
15859
|
+
/**
|
|
15860
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
15861
|
+
*/
|
|
15862
|
+
setCustomValidityForType: {
|
|
15863
|
+
type: String
|
|
15864
|
+
},
|
|
15865
|
+
|
|
15866
|
+
/**
|
|
15867
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
15868
|
+
*/
|
|
15869
|
+
setCustomValidityRangeOverflow: {
|
|
15870
|
+
type: String
|
|
15871
|
+
},
|
|
15872
|
+
|
|
15873
|
+
/**
|
|
15874
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
15875
|
+
*/
|
|
15876
|
+
setCustomValidityRangeUnderflow: {
|
|
15877
|
+
type: String
|
|
15878
|
+
},
|
|
15879
|
+
|
|
15880
|
+
/**
|
|
15881
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
15882
|
+
*/
|
|
15883
|
+
setCustomValidityTooLong: {
|
|
15884
|
+
type: String
|
|
15885
|
+
},
|
|
15886
|
+
|
|
15887
|
+
/**
|
|
15888
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
15889
|
+
*/
|
|
15890
|
+
setCustomValidityTooShort: {
|
|
15891
|
+
type: String
|
|
15892
|
+
},
|
|
15893
|
+
|
|
15894
|
+
/**
|
|
15895
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
15896
|
+
*/
|
|
15897
|
+
setCustomValidityValueMissing: {
|
|
15898
|
+
type: String
|
|
15899
|
+
},
|
|
15900
|
+
|
|
15901
|
+
/**
|
|
15902
|
+
* Custom help text message for email type validity.
|
|
15903
|
+
*/
|
|
15904
|
+
customValidityTypeEmail: {
|
|
15905
|
+
type: String
|
|
15906
|
+
},
|
|
15907
|
+
|
|
15908
|
+
/**
|
|
15909
|
+
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
15910
|
+
*/
|
|
15911
|
+
spellcheck: {
|
|
15912
|
+
type: String
|
|
15913
|
+
},
|
|
15914
|
+
|
|
15915
|
+
/**
|
|
15916
|
+
* Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
15917
|
+
*/
|
|
15918
|
+
type: {
|
|
15919
|
+
type: String,
|
|
15920
|
+
reflect: true
|
|
15921
|
+
},
|
|
15922
|
+
|
|
15923
|
+
/**
|
|
15924
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15925
|
+
*/
|
|
15926
|
+
value: {
|
|
15927
|
+
type: String
|
|
15928
|
+
},
|
|
15929
|
+
|
|
15930
|
+
/**
|
|
15931
|
+
* Sets validation mode to re-eval with each input.
|
|
15932
|
+
*/
|
|
15933
|
+
validateOnInput: {
|
|
15934
|
+
type: Boolean
|
|
15935
|
+
},
|
|
15936
|
+
|
|
15937
|
+
/**
|
|
15938
|
+
* Specifies the `validityState` this element is in.
|
|
15939
|
+
*/
|
|
15940
|
+
validity: {
|
|
15941
|
+
type: String,
|
|
15942
|
+
reflect: true
|
|
15943
|
+
}
|
|
15944
|
+
};
|
|
15945
|
+
}
|
|
15946
|
+
|
|
15947
|
+
|
|
15948
|
+
static get styles() {
|
|
15949
|
+
return [
|
|
15950
|
+
i$2`${colorCss$3}`,
|
|
15951
|
+
i$2`${styleCss$3}`,
|
|
15952
|
+
i$2`${tokensCss$3}`
|
|
15953
|
+
];
|
|
15954
|
+
}
|
|
15505
15955
|
|
|
15506
15956
|
connectedCallback() {
|
|
15507
15957
|
super.connectedCallback();
|
|
@@ -15881,7 +16331,7 @@ class BaseInput extends r {
|
|
|
15881
16331
|
* @return {void}
|
|
15882
16332
|
*/
|
|
15883
16333
|
handleInput() {
|
|
15884
|
-
// Prevent non-
|
|
16334
|
+
// Prevent non-number characters from being entered on credit card fields.
|
|
15885
16335
|
if (this.type === 'credit-card') {
|
|
15886
16336
|
this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
|
|
15887
16337
|
}
|
|
@@ -15967,6 +16417,13 @@ class BaseInput extends r {
|
|
|
15967
16417
|
this.validation.validate(this);
|
|
15968
16418
|
}
|
|
15969
16419
|
|
|
16420
|
+
/**
|
|
16421
|
+
* Resets component to initial state.
|
|
16422
|
+
* @returns {void}
|
|
16423
|
+
*/
|
|
16424
|
+
reset() {
|
|
16425
|
+
this.validation.reset(this);
|
|
16426
|
+
}
|
|
15970
16427
|
|
|
15971
16428
|
/**
|
|
15972
16429
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
@@ -16009,30 +16466,28 @@ class BaseInput extends r {
|
|
|
16009
16466
|
*/
|
|
16010
16467
|
getHelpText(type) {
|
|
16011
16468
|
if (type === 'password') {
|
|
16012
|
-
|
|
16469
|
+
return i18n(this.lang, 'password');
|
|
16013
16470
|
} else if (type === 'email') {
|
|
16014
|
-
|
|
16471
|
+
return i18n(this.lang, 'email');
|
|
16015
16472
|
} else if (type === 'credit-card') {
|
|
16016
|
-
|
|
16473
|
+
return i18n(this.lang, 'creditcard');
|
|
16017
16474
|
} else if (type === 'month-day-year') {
|
|
16018
|
-
|
|
16475
|
+
return i18n(this.lang, 'dateMMDDYYYY');
|
|
16019
16476
|
} else if (type === 'month-year') {
|
|
16020
|
-
|
|
16477
|
+
return i18n(this.lang, 'dateMMYY');
|
|
16021
16478
|
} else if (type === 'month-fullyear') {
|
|
16022
|
-
|
|
16479
|
+
return i18n(this.lang, 'dateMMYYYY');
|
|
16023
16480
|
} else if (type === 'year-month-day') {
|
|
16024
|
-
|
|
16481
|
+
return i18n(this.lang, 'dateYYYYMMDD');
|
|
16025
16482
|
} else if (type === 'month') {
|
|
16026
|
-
|
|
16483
|
+
return i18n(this.lang, 'dateMM');
|
|
16027
16484
|
} else if (type === 'year') {
|
|
16028
|
-
|
|
16485
|
+
return i18n(this.lang, 'dateYY');
|
|
16029
16486
|
} else if (type === 'fullYear') {
|
|
16030
|
-
|
|
16031
|
-
} else {
|
|
16032
|
-
this.helpText = '';
|
|
16487
|
+
return i18n(this.lang, 'dateYYYY');
|
|
16033
16488
|
}
|
|
16034
16489
|
|
|
16035
|
-
return
|
|
16490
|
+
return '';
|
|
16036
16491
|
}
|
|
16037
16492
|
|
|
16038
16493
|
/**
|
|
@@ -16114,7 +16569,7 @@ class BaseInput extends r {
|
|
|
16114
16569
|
this.maxLength = card.formatLength;
|
|
16115
16570
|
this.minLength = card.formatMinLength;
|
|
16116
16571
|
|
|
16117
|
-
this.
|
|
16572
|
+
this.errorMessage = card.errorMessage;
|
|
16118
16573
|
|
|
16119
16574
|
if (this.icon) {
|
|
16120
16575
|
this.inputIconName = card.cardIcon;
|
|
@@ -16134,63 +16589,63 @@ class BaseInput extends r {
|
|
|
16134
16589
|
name: 'Airlines',
|
|
16135
16590
|
regex: /^(?<num>1|2)\d{0}/u,
|
|
16136
16591
|
formatMinLength: 17,
|
|
16137
|
-
|
|
16592
|
+
errorMessage: CreditCardValidationMessage,
|
|
16138
16593
|
cardIcon: 'credit-card'
|
|
16139
16594
|
},
|
|
16140
16595
|
{
|
|
16141
16596
|
name: 'Commercial',
|
|
16142
16597
|
regex: /^(?<num>2)\d{0}/u,
|
|
16143
16598
|
formatMinLength: 8,
|
|
16144
|
-
|
|
16599
|
+
errorMessage: CreditCardValidationMessage,
|
|
16145
16600
|
cardIcon: 'credit-card'
|
|
16146
16601
|
},
|
|
16147
16602
|
{
|
|
16148
16603
|
name: 'Alaska Commercial',
|
|
16149
16604
|
regex: /^(?<num>27)\d{0}/u,
|
|
16150
16605
|
formatMinLength: 8,
|
|
16151
|
-
|
|
16606
|
+
errorMessage: CreditCardValidationMessage,
|
|
16152
16607
|
cardIcon: 'cc-alaska'
|
|
16153
16608
|
},
|
|
16154
16609
|
{
|
|
16155
16610
|
name: 'American Express',
|
|
16156
16611
|
regex: /^(?<num>34|37)\d{0}/u,
|
|
16157
16612
|
formatLength: 17,
|
|
16158
|
-
|
|
16613
|
+
errorMessage: CreditCardValidationMessage,
|
|
16159
16614
|
cardIcon: 'cc-amex'
|
|
16160
16615
|
},
|
|
16161
16616
|
{
|
|
16162
16617
|
name: 'Diners club',
|
|
16163
16618
|
regex: /^(?<num>36|38)\d{0}/u,
|
|
16164
16619
|
formatLength: 16,
|
|
16165
|
-
|
|
16620
|
+
errorMessage: CreditCardValidationMessage,
|
|
16166
16621
|
cardIcon: 'credit-card'
|
|
16167
16622
|
},
|
|
16168
16623
|
{
|
|
16169
16624
|
name: 'Visa',
|
|
16170
16625
|
regex: /^(?<num>4)\d{0}/u,
|
|
16171
16626
|
formatLength: 19,
|
|
16172
|
-
|
|
16627
|
+
errorMessage: CreditCardValidationMessage,
|
|
16173
16628
|
cardIcon: 'cc-visa'
|
|
16174
16629
|
},
|
|
16175
16630
|
{
|
|
16176
16631
|
name: 'Alaska Airlines Visa',
|
|
16177
16632
|
regex: /^(?<num>4147\s34|4888\s93|4800\s11|4313\s51|4313\s07)\d{0}/u,
|
|
16178
16633
|
formatLength: 19,
|
|
16179
|
-
|
|
16634
|
+
errorMessage: CreditCardValidationMessage,
|
|
16180
16635
|
cardIcon: 'cc-alaska'
|
|
16181
16636
|
},
|
|
16182
16637
|
{
|
|
16183
16638
|
name: 'Master Card',
|
|
16184
16639
|
regex: /^(?<num>5)\d{0}/u,
|
|
16185
16640
|
formatLength: 19,
|
|
16186
|
-
|
|
16641
|
+
errorMessage: CreditCardValidationMessage,
|
|
16187
16642
|
cardIcon: 'cc-mastercard'
|
|
16188
16643
|
},
|
|
16189
16644
|
{
|
|
16190
16645
|
name: 'Discover Card',
|
|
16191
16646
|
regex: /^(?<num>6)\d{0}/u,
|
|
16192
16647
|
formatLength: 19,
|
|
16193
|
-
|
|
16648
|
+
errorMessage: CreditCardValidationMessage,
|
|
16194
16649
|
cardIcon: 'cc-discover'
|
|
16195
16650
|
}
|
|
16196
16651
|
];
|
|
@@ -16198,7 +16653,7 @@ class BaseInput extends r {
|
|
|
16198
16653
|
let type = {
|
|
16199
16654
|
name: 'Default Card',
|
|
16200
16655
|
formatLength: 19,
|
|
16201
|
-
|
|
16656
|
+
errorMessage: CreditCardValidationMessage,
|
|
16202
16657
|
cardIcon: 'credit-card'
|
|
16203
16658
|
};
|
|
16204
16659
|
|
|
@@ -16320,7 +16775,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
16320
16775
|
return _fetchMap.get(uri);
|
|
16321
16776
|
};
|
|
16322
16777
|
|
|
16323
|
-
var styleCss$2 = i$2`*,*: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}`;
|
|
16778
|
+
var styleCss$2 = i$2`*,*: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}`;
|
|
16324
16779
|
|
|
16325
16780
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
16326
16781
|
// See LICENSE in the project root for license information.
|
|
@@ -16587,7 +17042,8 @@ class AuroIcon extends BaseIcon {
|
|
|
16587
17042
|
};
|
|
16588
17043
|
|
|
16589
17044
|
const classes = {
|
|
16590
|
-
'label': this.label
|
|
17045
|
+
'label': this.label,
|
|
17046
|
+
'wrapper': true,
|
|
16591
17047
|
};
|
|
16592
17048
|
|
|
16593
17049
|
return x`
|
|
@@ -16611,7 +17067,7 @@ class AuroIcon extends BaseIcon {
|
|
|
16611
17067
|
}
|
|
16612
17068
|
}
|
|
16613
17069
|
|
|
16614
|
-
var iconVersion = '6.1.
|
|
17070
|
+
var iconVersion = '6.1.2';
|
|
16615
17071
|
|
|
16616
17072
|
var styleCss$1 = i$2`*,*: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_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
16617
17073
|
|
|
@@ -16963,6 +17419,7 @@ class AuroButton extends r {
|
|
|
16963
17419
|
const classes = {
|
|
16964
17420
|
'util_insetLg--squish': true,
|
|
16965
17421
|
'auro-button': true,
|
|
17422
|
+
'auroButton': true,
|
|
16966
17423
|
'auro-button--rounded': this.rounded,
|
|
16967
17424
|
'auro-button--slim': this.slim,
|
|
16968
17425
|
'auro-button--iconOnly': this.iconOnly,
|
|
@@ -17002,7 +17459,7 @@ class AuroButton extends r {
|
|
|
17002
17459
|
}
|
|
17003
17460
|
}
|
|
17004
17461
|
|
|
17005
|
-
var buttonVersion = '8.2.
|
|
17462
|
+
var buttonVersion = '8.2.2';
|
|
17006
17463
|
|
|
17007
17464
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
17008
17465
|
// See LICENSE in the project root for license information.
|
|
@@ -17221,7 +17678,6 @@ class AuroInput extends BaseInput {
|
|
|
17221
17678
|
<p class="inputElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
17222
17679
|
${this.errorMessage}
|
|
17223
17680
|
</p>`
|
|
17224
|
-
|
|
17225
17681
|
}
|
|
17226
17682
|
`;
|
|
17227
17683
|
}
|
|
@@ -17237,25 +17693,6 @@ var inputVersion = '4.2.0';
|
|
|
17237
17693
|
|
|
17238
17694
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
17239
17695
|
/**
|
|
17240
|
-
* @prop {String} value - Value selected for the date picker.
|
|
17241
|
-
* @prop {String} valueEnd - Value selected for the second date picker when using date range.
|
|
17242
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
17243
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
17244
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
17245
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
17246
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
17247
|
-
* @attr {String} setCustomValidityValueMissing - Help text message to display when validity = `valueMissing`.
|
|
17248
|
-
* @attr {String} calendarStartDate - The first date that may be displayed in the calendar.
|
|
17249
|
-
* @attr {String} calendarEndDate - The last date that may be displayed in the calendar
|
|
17250
|
-
* @attr {String} calendarFocusDate - The date that will first be visually rendered to the user in the calendar.
|
|
17251
|
-
* @attr {Boolean} disabled - If set, disables the datepicker.
|
|
17252
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
17253
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
17254
|
-
* @attr {Boolean} range - If set, turns on date range functionality in auro-calendar.
|
|
17255
|
-
* @attr {String} centralDate - The date that determines the currently visible month.
|
|
17256
|
-
* @attr {String} maxDate - Maximum date. All dates after will be disabled.
|
|
17257
|
-
* @attr {String} minDate - Minimum date. All dates before will be disabled.
|
|
17258
|
-
* @attr {Array} monthNames = Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
17259
17696
|
* @slot helpText - Defines the content of the helpText.
|
|
17260
17697
|
* @slot mobileDateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
17261
17698
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -17352,7 +17789,15 @@ class AuroDatePicker extends r$7 {
|
|
|
17352
17789
|
* Generate unique names for dependency components.
|
|
17353
17790
|
*/
|
|
17354
17791
|
const versioning = new AuroDependencyVersioning$2();
|
|
17792
|
+
|
|
17793
|
+
/**
|
|
17794
|
+
* @private
|
|
17795
|
+
*/
|
|
17355
17796
|
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
17797
|
+
|
|
17798
|
+
/**
|
|
17799
|
+
* @private
|
|
17800
|
+
*/
|
|
17356
17801
|
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
17357
17802
|
}
|
|
17358
17803
|
|
|
@@ -17362,103 +17807,155 @@ class AuroDatePicker extends r$7 {
|
|
|
17362
17807
|
static get properties() {
|
|
17363
17808
|
return {
|
|
17364
17809
|
// ...super.properties,
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
noValidate: {
|
|
17370
|
-
type: Boolean
|
|
17371
|
-
},
|
|
17372
|
-
setCustomValidity: {
|
|
17373
|
-
type: String,
|
|
17374
|
-
reflect: true
|
|
17375
|
-
},
|
|
17376
|
-
setCustomValidityRangeUnderflow: {
|
|
17377
|
-
type: String,
|
|
17378
|
-
reflect: true
|
|
17379
|
-
},
|
|
17380
|
-
setCustomValidityRangeOverflow: {
|
|
17810
|
+
/**
|
|
17811
|
+
* The last date that may be displayed in the calendar.
|
|
17812
|
+
*/
|
|
17813
|
+
calendarEndDate: {
|
|
17381
17814
|
type: String,
|
|
17382
17815
|
reflect: true
|
|
17383
17816
|
},
|
|
17384
|
-
|
|
17817
|
+
|
|
17818
|
+
/**
|
|
17819
|
+
* The date that will first be visually rendered to the user in the calendar.
|
|
17820
|
+
*/
|
|
17821
|
+
calendarFocusDate: {
|
|
17385
17822
|
type: String,
|
|
17386
17823
|
reflect: true
|
|
17387
17824
|
},
|
|
17388
|
-
|
|
17825
|
+
|
|
17826
|
+
/**
|
|
17827
|
+
* The first date that may be displayed in the calendar.
|
|
17828
|
+
*/
|
|
17829
|
+
calendarStartDate: {
|
|
17389
17830
|
type: String,
|
|
17390
17831
|
reflect: true
|
|
17391
17832
|
},
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17833
|
+
|
|
17834
|
+
/**
|
|
17835
|
+
* The date that determines the currently visible month.
|
|
17836
|
+
*/
|
|
17837
|
+
centralDate: {
|
|
17838
|
+
type: String
|
|
17395
17839
|
},
|
|
17840
|
+
|
|
17841
|
+
/**
|
|
17842
|
+
* If set, disables the datepicker.
|
|
17843
|
+
*/
|
|
17396
17844
|
disabled: {
|
|
17397
17845
|
type: Boolean,
|
|
17398
17846
|
reflect: true
|
|
17399
17847
|
},
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
type: String,
|
|
17406
|
-
reflect: true
|
|
17407
|
-
},
|
|
17408
|
-
value: {
|
|
17409
|
-
type: String,
|
|
17410
|
-
reflect: true
|
|
17411
|
-
},
|
|
17412
|
-
valueEnd: {
|
|
17848
|
+
|
|
17849
|
+
/**
|
|
17850
|
+
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
17851
|
+
*/
|
|
17852
|
+
error: {
|
|
17413
17853
|
type: String,
|
|
17414
17854
|
reflect: true
|
|
17415
17855
|
},
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17856
|
+
|
|
17857
|
+
/**
|
|
17858
|
+
* Maximum date. All dates after will be disabled.
|
|
17859
|
+
*/
|
|
17419
17860
|
maxDate: {
|
|
17420
17861
|
type: String,
|
|
17421
17862
|
reflect: true
|
|
17422
17863
|
},
|
|
17864
|
+
|
|
17865
|
+
/**
|
|
17866
|
+
* Minimum date. All dates before will be disabled.
|
|
17867
|
+
*/
|
|
17423
17868
|
minDate: {
|
|
17424
17869
|
type: String,
|
|
17425
17870
|
reflect: true
|
|
17426
17871
|
},
|
|
17872
|
+
|
|
17873
|
+
/**
|
|
17874
|
+
* Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
17875
|
+
*/
|
|
17427
17876
|
monthNames: {
|
|
17428
17877
|
type: Array
|
|
17429
17878
|
},
|
|
17430
|
-
|
|
17431
|
-
|
|
17432
|
-
|
|
17879
|
+
|
|
17880
|
+
/**
|
|
17881
|
+
* If set, disables auto-validation on blur.
|
|
17882
|
+
*/
|
|
17883
|
+
noValidate: {
|
|
17884
|
+
type: Boolean
|
|
17433
17885
|
},
|
|
17434
|
-
|
|
17435
|
-
|
|
17886
|
+
|
|
17887
|
+
/**
|
|
17888
|
+
* If set, turns on date range functionality in auro-calendar.
|
|
17889
|
+
*/
|
|
17890
|
+
range: {
|
|
17891
|
+
type: Boolean,
|
|
17436
17892
|
reflect: true
|
|
17437
17893
|
},
|
|
17438
|
-
|
|
17439
|
-
|
|
17894
|
+
|
|
17895
|
+
/**
|
|
17896
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
17897
|
+
*/
|
|
17898
|
+
required: {
|
|
17899
|
+
type: Boolean,
|
|
17440
17900
|
reflect: true
|
|
17441
17901
|
},
|
|
17442
17902
|
|
|
17443
17903
|
/**
|
|
17444
|
-
*
|
|
17904
|
+
* Sets a custom help text message to display for all validityStates.
|
|
17905
|
+
*/
|
|
17906
|
+
setCustomValidity: {
|
|
17907
|
+
type: String
|
|
17908
|
+
},
|
|
17909
|
+
|
|
17910
|
+
/**
|
|
17911
|
+
* Custom help text message to display when validity = `customError`.
|
|
17445
17912
|
*/
|
|
17446
|
-
|
|
17913
|
+
setCustomValidityCustomError: {
|
|
17914
|
+
type: String
|
|
17915
|
+
},
|
|
17447
17916
|
|
|
17448
17917
|
/**
|
|
17449
|
-
*
|
|
17918
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17450
17919
|
*/
|
|
17451
|
-
|
|
17920
|
+
setCustomValidityRangeOverflow: {
|
|
17921
|
+
type: String
|
|
17922
|
+
},
|
|
17452
17923
|
|
|
17453
17924
|
/**
|
|
17454
|
-
*
|
|
17925
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
17455
17926
|
*/
|
|
17456
|
-
|
|
17927
|
+
setCustomValidityRangeUnderflow: {
|
|
17928
|
+
type: String
|
|
17929
|
+
},
|
|
17457
17930
|
|
|
17458
17931
|
/**
|
|
17459
|
-
*
|
|
17932
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
17933
|
+
*/
|
|
17934
|
+
setCustomValidityValueMissing: {
|
|
17935
|
+
type: String
|
|
17936
|
+
},
|
|
17937
|
+
|
|
17938
|
+
/**
|
|
17939
|
+
* Specifies the `validityState` this element is in.
|
|
17460
17940
|
*/
|
|
17461
|
-
|
|
17941
|
+
validity: {
|
|
17942
|
+
type: String,
|
|
17943
|
+
reflect: true
|
|
17944
|
+
},
|
|
17945
|
+
|
|
17946
|
+
/**
|
|
17947
|
+
* Value selected for the datepicker.
|
|
17948
|
+
*/
|
|
17949
|
+
value: {
|
|
17950
|
+
type: String
|
|
17951
|
+
},
|
|
17952
|
+
|
|
17953
|
+
/**
|
|
17954
|
+
* Value selected for the second datepicker when using date range.
|
|
17955
|
+
*/
|
|
17956
|
+
valueEnd: {
|
|
17957
|
+
type: String
|
|
17958
|
+
}
|
|
17462
17959
|
};
|
|
17463
17960
|
}
|
|
17464
17961
|
|
|
@@ -17580,30 +18077,6 @@ class AuroDatePicker extends r$7 {
|
|
|
17580
18077
|
return dateStr;
|
|
17581
18078
|
}
|
|
17582
18079
|
|
|
17583
|
-
/**
|
|
17584
|
-
* Return appropriate error message.
|
|
17585
|
-
* @param {Object} evt - Event passed in from auro-input when the event triggered this function.
|
|
17586
|
-
* @private
|
|
17587
|
-
*/
|
|
17588
|
-
getErrorMessage(evt) {
|
|
17589
|
-
if (evt) {
|
|
17590
|
-
const inputClass = evt.target.getAttribute('class');
|
|
17591
|
-
if (inputClass === 'dateFrom') {
|
|
17592
|
-
if (this.inputList[0].validity && this.inputList[0].validity !== 'valid') {
|
|
17593
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17594
|
-
} else {
|
|
17595
|
-
this.errorMessage = undefined;
|
|
17596
|
-
}
|
|
17597
|
-
}
|
|
17598
|
-
|
|
17599
|
-
if (inputClass === 'dateTo') {
|
|
17600
|
-
if (!this.errorMessage && this.inputList[1].validity && this.inputList[1].validity !== 'valid') {
|
|
17601
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17602
|
-
}
|
|
17603
|
-
}
|
|
17604
|
-
}
|
|
17605
|
-
}
|
|
17606
|
-
|
|
17607
18080
|
/**
|
|
17608
18081
|
* Changes the calendar's visibility to reflect the value of the central date attribute.
|
|
17609
18082
|
* @private
|
|
@@ -17712,13 +18185,13 @@ class AuroDatePicker extends r$7 {
|
|
|
17712
18185
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
17713
18186
|
if (evt.detail.validity === 'customError') {
|
|
17714
18187
|
this.validity = evt.detail.validity;
|
|
17715
|
-
this.
|
|
18188
|
+
this.errorMessage = evt.detail.message;
|
|
17716
18189
|
} else if (evt.target === this.inputList[0]) {
|
|
17717
18190
|
this.validity = evt.detail.validity;
|
|
17718
|
-
this.
|
|
18191
|
+
this.errorMessage = evt.detail.message;
|
|
17719
18192
|
} else if (this.inputList.length > 1 && evt.target === this.inputList[1] && (this.inputList[0].validity === 'valid' || this.inputList[0].validity === undefined)) {
|
|
17720
18193
|
this.validity = evt.detail.validity;
|
|
17721
|
-
this.
|
|
18194
|
+
this.errorMessage = evt.detail.message;
|
|
17722
18195
|
}
|
|
17723
18196
|
});
|
|
17724
18197
|
});
|
|
@@ -17869,10 +18342,11 @@ class AuroDatePicker extends r$7 {
|
|
|
17869
18342
|
if (!this.value || !this.util.validDateStr(this.value)) {
|
|
17870
18343
|
this.value = newDate;
|
|
17871
18344
|
} else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd)) {
|
|
17872
|
-
|
|
17873
18345
|
// verify the date is after this.value to insure we are setting a proper range
|
|
17874
18346
|
if (new Date(newDate) >= new Date(this.value)) {
|
|
17875
18347
|
this.valueEnd = newDate;
|
|
18348
|
+
} else {
|
|
18349
|
+
this.value = newDate;
|
|
17876
18350
|
}
|
|
17877
18351
|
} else {
|
|
17878
18352
|
this.value = newDate;
|
|
@@ -17893,6 +18367,18 @@ class AuroDatePicker extends r$7 {
|
|
|
17893
18367
|
this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
|
|
17894
18368
|
}
|
|
17895
18369
|
|
|
18370
|
+
/**
|
|
18371
|
+
* Resets component to initial state.
|
|
18372
|
+
* @returns {void}
|
|
18373
|
+
*/
|
|
18374
|
+
reset() {
|
|
18375
|
+
this.inputList.forEach((input) => {
|
|
18376
|
+
input.reset();
|
|
18377
|
+
});
|
|
18378
|
+
|
|
18379
|
+
this.validation.reset(this);
|
|
18380
|
+
}
|
|
18381
|
+
|
|
17896
18382
|
updated(changedProperties) {
|
|
17897
18383
|
if (changedProperties.has('calendarFocusDate')) {
|
|
17898
18384
|
this.handleFocusDateChange();
|
|
@@ -17996,7 +18482,7 @@ class AuroDatePicker extends r$7 {
|
|
|
17996
18482
|
// This is done to prevent error icon from displaying on both inputs in range support
|
|
17997
18483
|
const lastInput = this.inputList[this.inputList.length - 1];
|
|
17998
18484
|
|
|
17999
|
-
if (this.error) {
|
|
18485
|
+
if (this.hasAttribute('error')) {
|
|
18000
18486
|
// Set the error attribute on the last input
|
|
18001
18487
|
lastInput.setAttribute('error', this.getAttribute('error'));
|
|
18002
18488
|
} else {
|
|
@@ -18018,11 +18504,14 @@ class AuroDatePicker extends r$7 {
|
|
|
18018
18504
|
// a later date than the current value date
|
|
18019
18505
|
if (changedProperties.has('minDate')) {
|
|
18020
18506
|
if (this.minDate) {
|
|
18021
|
-
const minDateMonth = Number(this.minDate.
|
|
18507
|
+
const minDateMonth = Number(this.minDate.split('/')[0]);
|
|
18508
|
+
const minDateYear = Number(this.minDate.split('/')[2]);
|
|
18022
18509
|
|
|
18023
18510
|
// This sets the visible month of the calendar to the minDate when the minDate is later
|
|
18024
18511
|
// than the current visible date
|
|
18025
|
-
if (
|
|
18512
|
+
if (minDateYear > this.calendar.year) {
|
|
18513
|
+
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18514
|
+
} else if (minDateYear === this.calendar.year && minDateMonth > this.calendar.month) {
|
|
18026
18515
|
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18027
18516
|
}
|
|
18028
18517
|
|
|
@@ -18043,6 +18532,17 @@ class AuroDatePicker extends r$7 {
|
|
|
18043
18532
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
18044
18533
|
// an earlier date than the current value date
|
|
18045
18534
|
if (changedProperties.has('maxDate')) {
|
|
18535
|
+
const maxDateMonth = Number(this.maxDate.split('/')[0]);
|
|
18536
|
+
const maxDateYear = Number(this.maxDate.split('/')[2]);
|
|
18537
|
+
|
|
18538
|
+
// This sets the visible month of the calendar to the maxDate when the maxDate is earlier
|
|
18539
|
+
// than the current visible date
|
|
18540
|
+
if (maxDateYear < this.calendar.year) {
|
|
18541
|
+
this.calendarRenderUtil.updateCentralDate(this, this.maxDate);
|
|
18542
|
+
} else if (maxDateYear === this.calendar.year && maxDateMonth < this.calendar.month) {
|
|
18543
|
+
this.calendarRenderUtil.updateCentralDate(this, this.maxDate);
|
|
18544
|
+
}
|
|
18545
|
+
|
|
18046
18546
|
if (this.maxDate) {
|
|
18047
18547
|
if (this.value) {
|
|
18048
18548
|
if (new Date(this.maxDate).getTime() < new Date(this.value).getTime()) {
|
|
@@ -18114,6 +18614,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18114
18614
|
noValidate
|
|
18115
18615
|
.max="${this.maxDate}"
|
|
18116
18616
|
.min="${this.minDate}"
|
|
18617
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18618
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18117
18619
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18118
18620
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18119
18621
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18131,6 +18633,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18131
18633
|
noValidate
|
|
18132
18634
|
.max="${this.maxDate}"
|
|
18133
18635
|
.min="${this.minDate}"
|
|
18636
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18637
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18134
18638
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18135
18639
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18136
18640
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18161,8 +18665,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18161
18665
|
? u$6`
|
|
18162
18666
|
<slot name="helpText"></slot>
|
|
18163
18667
|
` : u$6`
|
|
18164
|
-
<p class="datepickerElement-helpText"
|
|
18165
|
-
${this.
|
|
18668
|
+
<p class="datepickerElement-helpText" role="alert" aria-live="assertive" part="helpText">
|
|
18669
|
+
${this.errorMessage}
|
|
18166
18670
|
</p>`
|
|
18167
18671
|
}
|
|
18168
18672
|
</span>
|