@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
|
@@ -250,38 +250,46 @@ function inDialogExample() {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
+
function resetStateExample() {
|
|
254
|
+
const elem = document.querySelector('#resetStateExample');
|
|
255
|
+
|
|
256
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
257
|
+
elem.reset();
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
|
|
253
261
|
/**
|
|
254
262
|
* @license
|
|
255
263
|
* Copyright 2019 Google LLC
|
|
256
264
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
257
265
|
*/
|
|
258
|
-
const t$7=globalThis,e$a=t$7.ShadowRoot&&(
|
|
266
|
+
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;
|
|
259
267
|
|
|
260
268
|
/**
|
|
261
269
|
* @license
|
|
262
270
|
* Copyright 2017 Google LLC
|
|
263
271
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
|
-
*/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
|
|
272
|
+
*/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");
|
|
265
273
|
|
|
266
274
|
/**
|
|
267
275
|
* @license
|
|
268
276
|
* Copyright 2017 Google LLC
|
|
269
277
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
270
278
|
*/
|
|
271
|
-
const t$6=globalThis,i$a=t$6.trustedTypes,s$6=i$a?i$a.createPolicy("lit-html",{createHTML:t=>t}):
|
|
279
|
+
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};
|
|
272
280
|
|
|
273
281
|
/**
|
|
274
282
|
* @license
|
|
275
283
|
* Copyright 2017 Google LLC
|
|
276
284
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
|
-
*/let r$7 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
285
|
+
*/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");
|
|
278
286
|
|
|
279
287
|
/**
|
|
280
288
|
* @license
|
|
281
289
|
* Copyright 2020 Google LLC
|
|
282
290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
291
|
*/
|
|
284
|
-
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(
|
|
292
|
+
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);
|
|
285
293
|
|
|
286
294
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
287
295
|
// See LICENSE in the project root for license information.
|
|
@@ -363,25 +371,111 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
363
371
|
}
|
|
364
372
|
|
|
365
373
|
/**
|
|
366
|
-
*
|
|
374
|
+
* Resets the element to its initial state.
|
|
367
375
|
* @private
|
|
368
|
-
* @param {object} elem - HTML element to
|
|
376
|
+
* @param {object} elem - HTML element to reset.
|
|
369
377
|
* @returns {void}
|
|
370
378
|
*/
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
379
|
+
reset(elem) {
|
|
380
|
+
elem.validity = undefined;
|
|
381
|
+
elem.value = undefined;
|
|
382
|
+
|
|
383
|
+
// Resets the second value of the datepicker in range state
|
|
384
|
+
if (elem.valueEnd) {
|
|
385
|
+
elem.valueEnd = undefined;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Resets selected option of element
|
|
389
|
+
if (elem.optionSelected) {
|
|
390
|
+
elem.optionSelected = undefined;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// Runs validation to handle error attribute
|
|
394
|
+
this.validate(elem);
|
|
395
|
+
}
|
|
374
396
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
397
|
+
/**
|
|
398
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
399
|
+
*
|
|
400
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
401
|
+
* @returns {void}
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
405
|
+
* validateElementAttributes(inputElement);
|
|
406
|
+
*
|
|
407
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
408
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
409
|
+
*
|
|
410
|
+
* Validation rules:
|
|
411
|
+
* - input:
|
|
412
|
+
* - length:
|
|
413
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
414
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
415
|
+
* - pattern:
|
|
416
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
417
|
+
* - counter:
|
|
418
|
+
* - range:
|
|
419
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
420
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
421
|
+
*/
|
|
422
|
+
validateElementAttributes(elem) {
|
|
423
|
+
const validationRules = {
|
|
424
|
+
input: {
|
|
425
|
+
length: [
|
|
426
|
+
{
|
|
427
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
428
|
+
validity: 'tooShort',
|
|
429
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
433
|
+
validity: 'tooLong',
|
|
434
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
pattern: [
|
|
438
|
+
{
|
|
439
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
440
|
+
validity: 'patternMismatch',
|
|
441
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
counter: {
|
|
446
|
+
range: [
|
|
447
|
+
{
|
|
448
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
449
|
+
validity: 'rangeOverflow',
|
|
450
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
454
|
+
validity: 'rangeUnderflow',
|
|
455
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
let elementType;
|
|
462
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
463
|
+
elementType = 'input';
|
|
464
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
465
|
+
elementType = 'counter';
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (elementType) {
|
|
469
|
+
const rules = validationRules[elementType];
|
|
470
|
+
|
|
471
|
+
if (rules) {
|
|
472
|
+
Object.values(rules).flat().forEach(rule => {
|
|
473
|
+
if (rule.check(elem)) {
|
|
474
|
+
elem.validity = rule.validity;
|
|
475
|
+
elem.errorMessage = rule.message(elem);
|
|
476
|
+
}
|
|
477
|
+
});
|
|
378
478
|
}
|
|
379
|
-
} else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
|
|
380
|
-
elem.validity = 'tooShort';
|
|
381
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
382
|
-
} else if (elem.value && elem.value.length > elem.maxLength) {
|
|
383
|
-
elem.validity = 'tooLong';
|
|
384
|
-
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
385
479
|
}
|
|
386
480
|
}
|
|
387
481
|
|
|
@@ -397,33 +491,32 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
397
491
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
398
492
|
|
|
399
493
|
if (!elem.value.match(emailRegex)) {
|
|
400
|
-
elem.validity = '
|
|
401
|
-
elem.
|
|
494
|
+
elem.validity = 'patternMismatch';
|
|
495
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
402
496
|
}
|
|
403
497
|
} else if (elem.type === 'credit-card') {
|
|
404
498
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
405
499
|
elem.validity = 'tooShort';
|
|
406
|
-
elem.
|
|
500
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
407
501
|
}
|
|
408
|
-
} else if (elem.type === 'number'
|
|
502
|
+
} else if (elem.type === 'number') {
|
|
409
503
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
410
504
|
elem.validity = 'rangeOverflow';
|
|
411
|
-
elem.
|
|
505
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
412
506
|
}
|
|
413
507
|
|
|
414
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
508
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
415
509
|
elem.validity = 'rangeUnderflow';
|
|
416
|
-
elem.
|
|
510
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
417
511
|
}
|
|
418
|
-
|
|
419
512
|
} else if (elem.type === 'month-day-year' ||
|
|
420
513
|
elem.type === 'month-year' ||
|
|
421
514
|
elem.type === 'month-fullYear' ||
|
|
422
515
|
elem.type === 'year-month-day'
|
|
423
516
|
) {
|
|
424
|
-
if (elem.value
|
|
517
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
425
518
|
elem.validity = 'tooShort';
|
|
426
|
-
elem.
|
|
519
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
427
520
|
} else {
|
|
428
521
|
const valueDate = new Date(elem.value);
|
|
429
522
|
|
|
@@ -433,7 +526,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
433
526
|
|
|
434
527
|
if (valueDate > maxDate) {
|
|
435
528
|
elem.validity = 'rangeOverflow';
|
|
436
|
-
elem.
|
|
529
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
437
530
|
}
|
|
438
531
|
}
|
|
439
532
|
|
|
@@ -443,7 +536,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
443
536
|
|
|
444
537
|
if (valueDate < minDate) {
|
|
445
538
|
elem.validity = 'rangeUnderflow';
|
|
446
|
-
elem.
|
|
539
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
447
540
|
}
|
|
448
541
|
}
|
|
449
542
|
}
|
|
@@ -466,10 +559,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
466
559
|
|
|
467
560
|
if (elem.hasAttribute('error')) {
|
|
468
561
|
elem.validity = 'customError';
|
|
469
|
-
elem.
|
|
562
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
470
563
|
} else if (validationShouldRun) {
|
|
471
564
|
elem.validity = 'valid';
|
|
472
|
-
elem.
|
|
565
|
+
elem.errorMessage = '';
|
|
473
566
|
|
|
474
567
|
/**
|
|
475
568
|
* Only validate once we interact with the datepicker
|
|
@@ -481,7 +574,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
481
574
|
let hasValue = elem.value && elem.value.length > 0;
|
|
482
575
|
|
|
483
576
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
484
|
-
if (this.auroInputElements
|
|
577
|
+
if (this.auroInputElements?.length === 2) {
|
|
485
578
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
486
579
|
hasValue = false;
|
|
487
580
|
}
|
|
@@ -489,35 +582,29 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
489
582
|
|
|
490
583
|
if (!hasValue && elem.required) {
|
|
491
584
|
elem.validity = 'valueMissing';
|
|
492
|
-
elem.
|
|
585
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
493
586
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
494
587
|
this.validateType(elem);
|
|
495
|
-
this.
|
|
588
|
+
this.validateElementAttributes(elem);
|
|
589
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
590
|
+
this.validateElementAttributes(elem);
|
|
496
591
|
}
|
|
497
592
|
}
|
|
498
593
|
|
|
499
|
-
if (this.auroInputElements
|
|
594
|
+
if (this.auroInputElements?.length > 0) {
|
|
500
595
|
elem.validity = this.auroInputElements[0].validity;
|
|
501
|
-
elem.
|
|
596
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
502
597
|
|
|
503
|
-
if (elem.validity === 'valid') {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
507
|
-
}
|
|
598
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
599
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
600
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
508
601
|
}
|
|
509
602
|
}
|
|
510
603
|
|
|
511
604
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
// Use the validity message override if it is declared
|
|
516
|
-
if (elem.ValidityMessageOverride) {
|
|
517
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
518
|
-
}
|
|
519
|
-
} else {
|
|
520
|
-
elem.isValid = true;
|
|
605
|
+
// Use the validity message override if it is declared
|
|
606
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
607
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
521
608
|
}
|
|
522
609
|
|
|
523
610
|
this.getErrorMessage(elem);
|
|
@@ -563,18 +650,18 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
563
650
|
if (elem.validity !== 'valid') {
|
|
564
651
|
if (elem.setCustomValidity) {
|
|
565
652
|
elem.errorMessage = elem.setCustomValidity;
|
|
566
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
653
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
567
654
|
const input = elem.renderRoot.querySelector('input');
|
|
568
655
|
|
|
569
656
|
if (input.validationMessage.length > 0) {
|
|
570
657
|
elem.errorMessage = input.validationMessage;
|
|
571
658
|
}
|
|
572
|
-
} else if (this.inputElements &&
|
|
659
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
573
660
|
const firstInput = this.inputElements[0];
|
|
574
661
|
|
|
575
662
|
if (firstInput.validationMessage.length > 0) {
|
|
576
663
|
elem.errorMessage = firstInput.validationMessage;
|
|
577
|
-
} else if (this.inputElements
|
|
664
|
+
} else if (this.inputElements?.length === 2) {
|
|
578
665
|
const secondInput = this.inputElements[1];
|
|
579
666
|
|
|
580
667
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -917,7 +1004,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
917
1004
|
* @license
|
|
918
1005
|
* Copyright 2017 Google LLC
|
|
919
1006
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
920
|
-
*/const o$6={attribute
|
|
1007
|
+
*/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)}
|
|
921
1008
|
|
|
922
1009
|
/**
|
|
923
1010
|
* @module constants
|
|
@@ -6642,7 +6729,7 @@ function cleanEscapedString(input) {
|
|
|
6642
6729
|
* //=> Mon Sep 01 2014 00:00:00
|
|
6643
6730
|
*/
|
|
6644
6731
|
function subMonths(date, amount, options) {
|
|
6645
|
-
return addMonths(date, -
|
|
6732
|
+
return addMonths(date, -1, options);
|
|
6646
6733
|
}
|
|
6647
6734
|
|
|
6648
6735
|
/**
|
|
@@ -6672,7 +6759,7 @@ function subMonths(date, amount, options) {
|
|
|
6672
6759
|
* //=> Tue Sep 01 2009 00:00:00
|
|
6673
6760
|
*/
|
|
6674
6761
|
function subYears(date, amount, options) {
|
|
6675
|
-
return addYears(date, -
|
|
6762
|
+
return addYears(date, -1, options);
|
|
6676
6763
|
}
|
|
6677
6764
|
|
|
6678
6765
|
class RangeDatepickerCell extends r$7 {
|
|
@@ -6713,8 +6800,8 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6713
6800
|
@focus="${this.handleHover}"
|
|
6714
6801
|
class="day ${this.isCurrentDate ? 'currentDate' : ''} ${this.isSelected(this.selected)} ${this.isHovered(this.hovered)} ${this.isEnabled(this.day, this.min, this.max, this.disabledDays)}"
|
|
6715
6802
|
?disabled="${this.disabled}"
|
|
6716
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
6717
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
6803
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}">
|
|
6804
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
6718
6805
|
</button>
|
|
6719
6806
|
`;
|
|
6720
6807
|
}
|
|
@@ -6754,7 +6841,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6754
6841
|
let _a;
|
|
6755
6842
|
if (!this.disabled) {
|
|
6756
6843
|
this.dispatchEvent(new CustomEvent('date-is-selected', {
|
|
6757
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6844
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6758
6845
|
}));
|
|
6759
6846
|
}
|
|
6760
6847
|
}
|
|
@@ -6762,7 +6849,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6762
6849
|
handleHover() {
|
|
6763
6850
|
let _a;
|
|
6764
6851
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
6765
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6852
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6766
6853
|
}));
|
|
6767
6854
|
}
|
|
6768
6855
|
|
|
@@ -6863,18 +6950,18 @@ RangeDatepickerCell.styles = i$c`
|
|
|
6863
6950
|
opacity: 0.4;
|
|
6864
6951
|
}
|
|
6865
6952
|
`;
|
|
6866
|
-
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day",
|
|
6867
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected",
|
|
6868
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered",
|
|
6869
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo",
|
|
6870
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom",
|
|
6871
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month",
|
|
6872
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min",
|
|
6873
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max",
|
|
6874
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled",
|
|
6875
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
6876
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate",
|
|
6877
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate",
|
|
6953
|
+
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day", undefined);
|
|
6954
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected", undefined);
|
|
6955
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered", undefined);
|
|
6956
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo", undefined);
|
|
6957
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom", undefined);
|
|
6958
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month", undefined);
|
|
6959
|
+
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min", undefined);
|
|
6960
|
+
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max", undefined);
|
|
6961
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled", undefined);
|
|
6962
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays", undefined);
|
|
6963
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", undefined);
|
|
6964
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", undefined);
|
|
6878
6965
|
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6879
6966
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6880
6967
|
|
|
@@ -6953,11 +7040,11 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6953
7040
|
<div class="table">
|
|
6954
7041
|
<div class="thead">
|
|
6955
7042
|
<div class="tr">
|
|
6956
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
7043
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map((dayNameOfWeek) => this.renderDayOfWeek(dayNameOfWeek))}
|
|
6957
7044
|
</div>
|
|
6958
7045
|
</div>
|
|
6959
7046
|
<div class="tbody">
|
|
6960
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
7047
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map((week) => this.renderWeek(week))}
|
|
6961
7048
|
</div>
|
|
6962
7049
|
</div>
|
|
6963
7050
|
</div>
|
|
@@ -7156,7 +7243,7 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7156
7243
|
|
|
7157
7244
|
handleOpenYearSelection() {
|
|
7158
7245
|
let _a;
|
|
7159
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
7246
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
7160
7247
|
const index = menu.items.findIndex((item) => item.value === this.year.toString());
|
|
7161
7248
|
menu.select(index);
|
|
7162
7249
|
menu.show();
|
|
@@ -7164,9 +7251,9 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7164
7251
|
|
|
7165
7252
|
handleYearSelected() {
|
|
7166
7253
|
let _a;
|
|
7167
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
7254
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
7168
7255
|
const selected = menu.selected;
|
|
7169
|
-
this.year = parseInt(selected === null || selected ===
|
|
7256
|
+
this.year = parseInt(selected === null || selected === undefined ? undefined : selected.value, 10);
|
|
7170
7257
|
}
|
|
7171
7258
|
|
|
7172
7259
|
handleDateHovered(event) {
|
|
@@ -7178,12 +7265,12 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7178
7265
|
|
|
7179
7266
|
handleNextMonth() {
|
|
7180
7267
|
let _a, _b;
|
|
7181
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
7182
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
7183
|
-
tbody === null || tbody ===
|
|
7184
|
-
tbody === null || tbody ===
|
|
7185
|
-
monthName === null || monthName ===
|
|
7186
|
-
monthName === null || monthName ===
|
|
7268
|
+
const tbody = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.tbody');
|
|
7269
|
+
const monthName = (_b = this.shadowRoot) === null || _b === undefined ? undefined : _b.querySelector('.header > div');
|
|
7270
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7271
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToLeft');
|
|
7272
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7273
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToLeft');
|
|
7187
7274
|
const month = parse(this.month, 'MM', new Date());
|
|
7188
7275
|
const monthPlusDate = addMonths(month, 1);
|
|
7189
7276
|
const monthPlusString = format(monthPlusDate, 'MM', {
|
|
@@ -7200,20 +7287,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7200
7287
|
}
|
|
7201
7288
|
this.dispatchEvent(new CustomEvent('next-month'));
|
|
7202
7289
|
setTimeout(() => {
|
|
7203
|
-
tbody === null || tbody ===
|
|
7204
|
-
tbody === null || tbody ===
|
|
7205
|
-
tbody === null || tbody ===
|
|
7206
|
-
monthName === null || monthName ===
|
|
7207
|
-
monthName === null || monthName ===
|
|
7208
|
-
monthName === null || monthName ===
|
|
7290
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7291
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToRight');
|
|
7292
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToLeft');
|
|
7293
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7294
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToRight');
|
|
7295
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToLeft');
|
|
7209
7296
|
setTimeout(() => {
|
|
7210
|
-
tbody === null || tbody ===
|
|
7211
|
-
tbody === null || tbody ===
|
|
7212
|
-
monthName === null || monthName ===
|
|
7213
|
-
monthName === null || monthName ===
|
|
7297
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7298
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToRight');
|
|
7299
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7300
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToRight');
|
|
7214
7301
|
setTimeout(() => {
|
|
7215
|
-
tbody === null || tbody ===
|
|
7216
|
-
monthName === null || monthName ===
|
|
7302
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7303
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7217
7304
|
}, 100);
|
|
7218
7305
|
}, 100);
|
|
7219
7306
|
}, 100);
|
|
@@ -7221,21 +7308,21 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7221
7308
|
|
|
7222
7309
|
handlePrevMonth() {
|
|
7223
7310
|
let _a, _b;
|
|
7224
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
7225
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
7226
|
-
tbody === null || tbody ===
|
|
7227
|
-
tbody === null || tbody ===
|
|
7228
|
-
monthName === null || monthName ===
|
|
7229
|
-
monthName === null || monthName ===
|
|
7311
|
+
const tbody = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.tbody');
|
|
7312
|
+
const monthName = (_b = this.shadowRoot) === null || _b === undefined ? undefined : _b.querySelector('.header > div');
|
|
7313
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7314
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToRight');
|
|
7315
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7316
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToRight');
|
|
7230
7317
|
const month = parse(this.month, 'MM', new Date());
|
|
7231
|
-
const monthMinusDate = subMonths(month
|
|
7318
|
+
const monthMinusDate = subMonths(month);
|
|
7232
7319
|
const monthMinusString = format(monthMinusDate, 'MM', {
|
|
7233
7320
|
locale: this.locale,
|
|
7234
7321
|
});
|
|
7235
7322
|
this.month = monthMinusString;
|
|
7236
7323
|
if (this.month === '12') {
|
|
7237
7324
|
const year = parse(this.year.toString(), 'yyyy', new Date());
|
|
7238
|
-
const yearMinusDate = subYears(year
|
|
7325
|
+
const yearMinusDate = subYears(year);
|
|
7239
7326
|
const yearMinusString = format(yearMinusDate, 'yyyy', {
|
|
7240
7327
|
locale: this.locale,
|
|
7241
7328
|
});
|
|
@@ -7243,20 +7330,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7243
7330
|
}
|
|
7244
7331
|
this.dispatchEvent(new CustomEvent('prev-month'));
|
|
7245
7332
|
setTimeout(() => {
|
|
7246
|
-
tbody === null || tbody ===
|
|
7247
|
-
tbody === null || tbody ===
|
|
7248
|
-
tbody === null || tbody ===
|
|
7249
|
-
monthName === null || monthName ===
|
|
7250
|
-
monthName === null || monthName ===
|
|
7251
|
-
monthName === null || monthName ===
|
|
7333
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7334
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToLeft');
|
|
7335
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToRight');
|
|
7336
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7337
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToLeft');
|
|
7338
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToRight');
|
|
7252
7339
|
setTimeout(() => {
|
|
7253
|
-
tbody === null || tbody ===
|
|
7254
|
-
tbody === null || tbody ===
|
|
7255
|
-
monthName === null || monthName ===
|
|
7256
|
-
monthName === null || monthName ===
|
|
7340
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7341
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToLeft');
|
|
7342
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7343
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToLeft');
|
|
7257
7344
|
setTimeout(() => {
|
|
7258
|
-
monthName === null || monthName ===
|
|
7259
|
-
monthName === null || monthName ===
|
|
7345
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7346
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7260
7347
|
}, 100);
|
|
7261
7348
|
}, 100);
|
|
7262
7349
|
}, 100);
|
|
@@ -7376,24 +7463,24 @@ RangeDatepickerCalendar.styles = i$c`
|
|
|
7376
7463
|
max-height: 200px;
|
|
7377
7464
|
}
|
|
7378
7465
|
`;
|
|
7379
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom",
|
|
7380
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo",
|
|
7381
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate",
|
|
7382
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange",
|
|
7383
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month",
|
|
7384
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow",
|
|
7385
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange",
|
|
7386
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next",
|
|
7387
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev",
|
|
7388
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year",
|
|
7389
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays",
|
|
7466
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom", undefined);
|
|
7467
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo", undefined);
|
|
7468
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate", undefined);
|
|
7469
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange", undefined);
|
|
7470
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month", undefined);
|
|
7471
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow", undefined);
|
|
7472
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange", undefined);
|
|
7473
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next", undefined);
|
|
7474
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev", undefined);
|
|
7475
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year", undefined);
|
|
7476
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays", undefined);
|
|
7390
7477
|
__decorate([n$5({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7391
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max",
|
|
7392
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min",
|
|
7393
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
7394
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList",
|
|
7395
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek",
|
|
7396
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth",
|
|
7478
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max", undefined);
|
|
7479
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min", undefined);
|
|
7480
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList", undefined);
|
|
7481
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", undefined);
|
|
7482
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", undefined);
|
|
7483
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", undefined);
|
|
7397
7484
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7398
7485
|
|
|
7399
7486
|
/**
|
|
@@ -7407,11 +7494,11 @@ const t$5={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
7407
7494
|
* @license
|
|
7408
7495
|
* Copyright 2018 Google LLC
|
|
7409
7496
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7410
|
-
*/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(
|
|
7497
|
+
*/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}});
|
|
7411
7498
|
|
|
7412
7499
|
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)}}`;
|
|
7413
7500
|
|
|
7414
|
-
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-
|
|
7501
|
+
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)}`;
|
|
7415
7502
|
|
|
7416
7503
|
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:""}`;
|
|
7417
7504
|
|
|
@@ -7596,11 +7683,11 @@ function isLayoutViewport() {
|
|
|
7596
7683
|
}
|
|
7597
7684
|
|
|
7598
7685
|
function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
7599
|
-
if (includeScale ===
|
|
7686
|
+
if (includeScale === undefined) {
|
|
7600
7687
|
includeScale = false;
|
|
7601
7688
|
}
|
|
7602
7689
|
|
|
7603
|
-
if (isFixedStrategy ===
|
|
7690
|
+
if (isFixedStrategy === undefined) {
|
|
7604
7691
|
isFixedStrategy = false;
|
|
7605
7692
|
}
|
|
7606
7693
|
|
|
@@ -7854,7 +7941,7 @@ function effect$1(_ref2) {
|
|
|
7854
7941
|
var state = _ref2.state,
|
|
7855
7942
|
options = _ref2.options;
|
|
7856
7943
|
var _options$element = options.element,
|
|
7857
|
-
arrowElement = _options$element ===
|
|
7944
|
+
arrowElement = _options$element === undefined ? '[data-popper-arrow]' : _options$element;
|
|
7858
7945
|
|
|
7859
7946
|
if (arrowElement == null) {
|
|
7860
7947
|
return;
|
|
@@ -7924,9 +8011,9 @@ function mapToStyles(_ref2) {
|
|
|
7924
8011
|
roundOffsets = _ref2.roundOffsets,
|
|
7925
8012
|
isFixed = _ref2.isFixed;
|
|
7926
8013
|
var _offsets$x = offsets.x,
|
|
7927
|
-
x = _offsets$x ===
|
|
8014
|
+
x = _offsets$x === undefined ? 0 : _offsets$x,
|
|
7928
8015
|
_offsets$y = offsets.y,
|
|
7929
|
-
y = _offsets$y ===
|
|
8016
|
+
y = _offsets$y === undefined ? 0 : _offsets$y;
|
|
7930
8017
|
|
|
7931
8018
|
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
7932
8019
|
x: x,
|
|
@@ -8006,11 +8093,11 @@ function computeStyles(_ref5) {
|
|
|
8006
8093
|
var state = _ref5.state,
|
|
8007
8094
|
options = _ref5.options;
|
|
8008
8095
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
8009
|
-
gpuAcceleration = _options$gpuAccelerat ===
|
|
8096
|
+
gpuAcceleration = _options$gpuAccelerat === undefined ? true : _options$gpuAccelerat,
|
|
8010
8097
|
_options$adaptive = options.adaptive,
|
|
8011
|
-
adaptive = _options$adaptive ===
|
|
8098
|
+
adaptive = _options$adaptive === undefined ? true : _options$adaptive,
|
|
8012
8099
|
_options$roundOffsets = options.roundOffsets,
|
|
8013
|
-
roundOffsets = _options$roundOffsets ===
|
|
8100
|
+
roundOffsets = _options$roundOffsets === undefined ? true : _options$roundOffsets;
|
|
8014
8101
|
var commonStyles = {
|
|
8015
8102
|
placement: getBasePlacement(state.placement),
|
|
8016
8103
|
variation: getVariation(state.placement),
|
|
@@ -8061,9 +8148,9 @@ function effect(_ref) {
|
|
|
8061
8148
|
instance = _ref.instance,
|
|
8062
8149
|
options = _ref.options;
|
|
8063
8150
|
var _options$scroll = options.scroll,
|
|
8064
|
-
scroll = _options$scroll ===
|
|
8151
|
+
scroll = _options$scroll === undefined ? true : _options$scroll,
|
|
8065
8152
|
_options$resize = options.resize,
|
|
8066
|
-
resize = _options$resize ===
|
|
8153
|
+
resize = _options$resize === undefined ? true : _options$resize;
|
|
8067
8154
|
var window = getWindow$1(state.elements.popper);
|
|
8068
8155
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
8069
8156
|
|
|
@@ -8178,7 +8265,7 @@ function getDocumentRect$1(element) {
|
|
|
8178
8265
|
|
|
8179
8266
|
var html = getDocumentElement$1(element);
|
|
8180
8267
|
var winScroll = getWindowScroll(element);
|
|
8181
|
-
var body = (_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8268
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body;
|
|
8182
8269
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
8183
8270
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
8184
8271
|
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
@@ -8229,12 +8316,12 @@ reference element's position.
|
|
|
8229
8316
|
function listScrollParents(element, list) {
|
|
8230
8317
|
var _element$ownerDocumen;
|
|
8231
8318
|
|
|
8232
|
-
if (list ===
|
|
8319
|
+
if (list === undefined) {
|
|
8233
8320
|
list = [];
|
|
8234
8321
|
}
|
|
8235
8322
|
|
|
8236
8323
|
var scrollParent = getScrollParent(element);
|
|
8237
|
-
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8324
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body);
|
|
8238
8325
|
var win = getWindow$1(scrollParent);
|
|
8239
8326
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
8240
8327
|
var updatedList = list.concat(target);
|
|
@@ -8373,25 +8460,25 @@ function computeOffsets(_ref) {
|
|
|
8373
8460
|
}
|
|
8374
8461
|
|
|
8375
8462
|
function detectOverflow$1(state, options) {
|
|
8376
|
-
if (options ===
|
|
8463
|
+
if (options === undefined) {
|
|
8377
8464
|
options = {};
|
|
8378
8465
|
}
|
|
8379
8466
|
|
|
8380
8467
|
var _options = options,
|
|
8381
8468
|
_options$placement = _options.placement,
|
|
8382
|
-
placement = _options$placement ===
|
|
8469
|
+
placement = _options$placement === undefined ? state.placement : _options$placement,
|
|
8383
8470
|
_options$strategy = _options.strategy,
|
|
8384
|
-
strategy = _options$strategy ===
|
|
8471
|
+
strategy = _options$strategy === undefined ? state.strategy : _options$strategy,
|
|
8385
8472
|
_options$boundary = _options.boundary,
|
|
8386
|
-
boundary = _options$boundary ===
|
|
8473
|
+
boundary = _options$boundary === undefined ? clippingParents : _options$boundary,
|
|
8387
8474
|
_options$rootBoundary = _options.rootBoundary,
|
|
8388
|
-
rootBoundary = _options$rootBoundary ===
|
|
8475
|
+
rootBoundary = _options$rootBoundary === undefined ? viewport : _options$rootBoundary,
|
|
8389
8476
|
_options$elementConte = _options.elementContext,
|
|
8390
|
-
elementContext = _options$elementConte ===
|
|
8477
|
+
elementContext = _options$elementConte === undefined ? popper : _options$elementConte,
|
|
8391
8478
|
_options$altBoundary = _options.altBoundary,
|
|
8392
|
-
altBoundary = _options$altBoundary ===
|
|
8479
|
+
altBoundary = _options$altBoundary === undefined ? false : _options$altBoundary,
|
|
8393
8480
|
_options$padding = _options.padding,
|
|
8394
|
-
padding = _options$padding ===
|
|
8481
|
+
padding = _options$padding === undefined ? 0 : _options$padding;
|
|
8395
8482
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
8396
8483
|
var altContext = elementContext === popper ? reference : popper;
|
|
8397
8484
|
var popperRect = state.rects.popper;
|
|
@@ -8429,7 +8516,7 @@ function detectOverflow$1(state, options) {
|
|
|
8429
8516
|
}
|
|
8430
8517
|
|
|
8431
8518
|
function computeAutoPlacement(state, options) {
|
|
8432
|
-
if (options ===
|
|
8519
|
+
if (options === undefined) {
|
|
8433
8520
|
options = {};
|
|
8434
8521
|
}
|
|
8435
8522
|
|
|
@@ -8440,7 +8527,7 @@ function computeAutoPlacement(state, options) {
|
|
|
8440
8527
|
padding = _options.padding,
|
|
8441
8528
|
flipVariations = _options.flipVariations,
|
|
8442
8529
|
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
8443
|
-
allowedAutoPlacements = _options$allowedAutoP ===
|
|
8530
|
+
allowedAutoPlacements = _options$allowedAutoP === undefined ? placements$1 : _options$allowedAutoP;
|
|
8444
8531
|
var variation = getVariation(placement);
|
|
8445
8532
|
var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
8446
8533
|
return getVariation(placement) === variation;
|
|
@@ -8487,16 +8574,16 @@ function flip$2(_ref) {
|
|
|
8487
8574
|
}
|
|
8488
8575
|
|
|
8489
8576
|
var _options$mainAxis = options.mainAxis,
|
|
8490
|
-
checkMainAxis = _options$mainAxis ===
|
|
8577
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8491
8578
|
_options$altAxis = options.altAxis,
|
|
8492
|
-
checkAltAxis = _options$altAxis ===
|
|
8579
|
+
checkAltAxis = _options$altAxis === undefined ? true : _options$altAxis,
|
|
8493
8580
|
specifiedFallbackPlacements = options.fallbackPlacements,
|
|
8494
8581
|
padding = options.padding,
|
|
8495
8582
|
boundary = options.boundary,
|
|
8496
8583
|
rootBoundary = options.rootBoundary,
|
|
8497
8584
|
altBoundary = options.altBoundary,
|
|
8498
8585
|
_options$flipVariatio = options.flipVariations,
|
|
8499
|
-
flipVariations = _options$flipVariatio ===
|
|
8586
|
+
flipVariations = _options$flipVariatio === undefined ? true : _options$flipVariatio,
|
|
8500
8587
|
allowedAutoPlacements = options.allowedAutoPlacements;
|
|
8501
8588
|
var preferredPlacement = state.options.placement;
|
|
8502
8589
|
var basePlacement = getBasePlacement(preferredPlacement);
|
|
@@ -8609,7 +8696,7 @@ var flip$3 = {
|
|
|
8609
8696
|
};
|
|
8610
8697
|
|
|
8611
8698
|
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
8612
|
-
if (preventedOffsets ===
|
|
8699
|
+
if (preventedOffsets === undefined) {
|
|
8613
8700
|
preventedOffsets = {
|
|
8614
8701
|
x: 0,
|
|
8615
8702
|
y: 0
|
|
@@ -8693,7 +8780,7 @@ function offset$2(_ref2) {
|
|
|
8693
8780
|
options = _ref2.options,
|
|
8694
8781
|
name = _ref2.name;
|
|
8695
8782
|
var _options$offset = options.offset,
|
|
8696
|
-
offset = _options$offset ===
|
|
8783
|
+
offset = _options$offset === undefined ? [0, 0] : _options$offset;
|
|
8697
8784
|
var data = placements$1.reduce(function (acc, placement) {
|
|
8698
8785
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
8699
8786
|
return acc;
|
|
@@ -8752,17 +8839,17 @@ function preventOverflow(_ref) {
|
|
|
8752
8839
|
options = _ref.options,
|
|
8753
8840
|
name = _ref.name;
|
|
8754
8841
|
var _options$mainAxis = options.mainAxis,
|
|
8755
|
-
checkMainAxis = _options$mainAxis ===
|
|
8842
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8756
8843
|
_options$altAxis = options.altAxis,
|
|
8757
|
-
checkAltAxis = _options$altAxis ===
|
|
8844
|
+
checkAltAxis = _options$altAxis === undefined ? false : _options$altAxis,
|
|
8758
8845
|
boundary = options.boundary,
|
|
8759
8846
|
rootBoundary = options.rootBoundary,
|
|
8760
8847
|
altBoundary = options.altBoundary,
|
|
8761
8848
|
padding = options.padding,
|
|
8762
8849
|
_options$tether = options.tether,
|
|
8763
|
-
tether = _options$tether ===
|
|
8850
|
+
tether = _options$tether === undefined ? true : _options$tether,
|
|
8764
8851
|
_options$tetherOffset = options.tetherOffset,
|
|
8765
|
-
tetherOffset = _options$tetherOffset ===
|
|
8852
|
+
tetherOffset = _options$tetherOffset === undefined ? 0 : _options$tetherOffset;
|
|
8766
8853
|
var overflow = detectOverflow$1(state, {
|
|
8767
8854
|
boundary: boundary,
|
|
8768
8855
|
rootBoundary: rootBoundary,
|
|
@@ -8829,7 +8916,7 @@ function preventOverflow(_ref) {
|
|
|
8829
8916
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
8830
8917
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent$1(state.elements.arrow);
|
|
8831
8918
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
8832
|
-
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ?
|
|
8919
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? undefined : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
8833
8920
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
8834
8921
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
8835
8922
|
var preventedOffset = within(tether ? min$1(min, tetherMin) : min, offset, tether ? max$1(max, tetherMax) : max);
|
|
@@ -8854,7 +8941,7 @@ function preventOverflow(_ref) {
|
|
|
8854
8941
|
|
|
8855
8942
|
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
8856
8943
|
|
|
8857
|
-
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ?
|
|
8944
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? undefined : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
8858
8945
|
|
|
8859
8946
|
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
8860
8947
|
|
|
@@ -8903,7 +8990,7 @@ function isElementScaled(element) {
|
|
|
8903
8990
|
|
|
8904
8991
|
|
|
8905
8992
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
8906
|
-
if (isFixed ===
|
|
8993
|
+
if (isFixed === undefined) {
|
|
8907
8994
|
isFixed = false;
|
|
8908
8995
|
}
|
|
8909
8996
|
|
|
@@ -9034,17 +9121,17 @@ function areValidElements() {
|
|
|
9034
9121
|
}
|
|
9035
9122
|
|
|
9036
9123
|
function popperGenerator(generatorOptions) {
|
|
9037
|
-
if (generatorOptions ===
|
|
9124
|
+
if (generatorOptions === undefined) {
|
|
9038
9125
|
generatorOptions = {};
|
|
9039
9126
|
}
|
|
9040
9127
|
|
|
9041
9128
|
var _generatorOptions = generatorOptions,
|
|
9042
9129
|
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
9043
|
-
defaultModifiers = _generatorOptions$def ===
|
|
9130
|
+
defaultModifiers = _generatorOptions$def === undefined ? [] : _generatorOptions$def,
|
|
9044
9131
|
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
9045
|
-
defaultOptions = _generatorOptions$def2 ===
|
|
9132
|
+
defaultOptions = _generatorOptions$def2 === undefined ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
9046
9133
|
return function createPopper(reference, popper, options) {
|
|
9047
|
-
if (options ===
|
|
9134
|
+
if (options === undefined) {
|
|
9048
9135
|
options = defaultOptions;
|
|
9049
9136
|
}
|
|
9050
9137
|
|
|
@@ -9131,7 +9218,7 @@ function popperGenerator(generatorOptions) {
|
|
|
9131
9218
|
var _state$orderedModifie = state.orderedModifiers[index],
|
|
9132
9219
|
fn = _state$orderedModifie.fn,
|
|
9133
9220
|
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
9134
|
-
_options = _state$orderedModifie2 ===
|
|
9221
|
+
_options = _state$orderedModifie2 === undefined ? {} : _state$orderedModifie2,
|
|
9135
9222
|
name = _state$orderedModifie.name;
|
|
9136
9223
|
|
|
9137
9224
|
if (typeof fn === 'function') {
|
|
@@ -9176,7 +9263,7 @@ function popperGenerator(generatorOptions) {
|
|
|
9176
9263
|
state.orderedModifiers.forEach(function (_ref) {
|
|
9177
9264
|
var name = _ref.name,
|
|
9178
9265
|
_ref$options = _ref.options,
|
|
9179
|
-
options = _ref$options ===
|
|
9266
|
+
options = _ref$options === undefined ? {} : _ref$options,
|
|
9180
9267
|
effect = _ref.effect;
|
|
9181
9268
|
|
|
9182
9269
|
if (typeof effect === 'function') {
|
|
@@ -9484,7 +9571,7 @@ class AuroPopover extends r$7 {
|
|
|
9484
9571
|
}
|
|
9485
9572
|
}
|
|
9486
9573
|
|
|
9487
|
-
var popoverVersion = '4.1.
|
|
9574
|
+
var popoverVersion = '4.1.2';
|
|
9488
9575
|
|
|
9489
9576
|
/* 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 */
|
|
9490
9577
|
|
|
@@ -9611,7 +9698,7 @@ class AuroCalendarCell extends r$7 {
|
|
|
9611
9698
|
|
|
9612
9699
|
let _a;
|
|
9613
9700
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
9614
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
9701
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
9615
9702
|
}));
|
|
9616
9703
|
}
|
|
9617
9704
|
|
|
@@ -9833,10 +9920,10 @@ class AuroCalendarCell extends r$7 {
|
|
|
9833
9920
|
@focus="${this.handleHover}"
|
|
9834
9921
|
class="${e$6(buttonClasses)}"
|
|
9835
9922
|
?disabled="${this.disabled}"
|
|
9836
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
9923
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}"
|
|
9837
9924
|
tabindex="-1">
|
|
9838
9925
|
<div class="buttonWrapper">
|
|
9839
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
9926
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
9840
9927
|
<div class="dateSlot" part="dateSlot">
|
|
9841
9928
|
<slot name="date_${this.dateStr}"></slot>
|
|
9842
9929
|
</div>
|
|
@@ -9954,11 +10041,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9954
10041
|
<div class="table">
|
|
9955
10042
|
<div class="thead">
|
|
9956
10043
|
<div class="tr">
|
|
9957
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
10044
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map(dayNameOfWeek => this.renderDayOfWeek(dayNameOfWeek))}
|
|
9958
10045
|
</div>
|
|
9959
10046
|
</div>
|
|
9960
10047
|
<div class="tbody">
|
|
9961
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
10048
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map(week => this.renderWeek(week))}
|
|
9962
10049
|
</div>
|
|
9963
10050
|
</div>
|
|
9964
10051
|
</div>
|
|
@@ -10133,16 +10220,16 @@ class RangeDatepicker extends r$7 {
|
|
|
10133
10220
|
handlePrevMonth() {
|
|
10134
10221
|
let _a;
|
|
10135
10222
|
if (!this.enableYearChange) {
|
|
10136
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
10137
|
-
calendar === null || calendar ===
|
|
10223
|
+
const calendar = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('wc-range-datepicker-calendar[next]');
|
|
10224
|
+
calendar === null || calendar === undefined ? undefined : calendar.handlePrevMonth();
|
|
10138
10225
|
}
|
|
10139
10226
|
}
|
|
10140
10227
|
|
|
10141
10228
|
handleNextMonth() {
|
|
10142
10229
|
let _a;
|
|
10143
10230
|
if (!this.enableYearChange) {
|
|
10144
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
10145
|
-
calendar === null || calendar ===
|
|
10231
|
+
const calendar = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('wc-range-datepicker-calendar[prev]');
|
|
10232
|
+
calendar === null || calendar === undefined ? undefined : calendar.handleNextMonth();
|
|
10146
10233
|
}
|
|
10147
10234
|
}
|
|
10148
10235
|
|
|
@@ -10204,21 +10291,21 @@ RangeDatepicker.styles = i$c`
|
|
|
10204
10291
|
margin-right: 16px;
|
|
10205
10292
|
}
|
|
10206
10293
|
`;
|
|
10207
|
-
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays",
|
|
10208
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange",
|
|
10209
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow",
|
|
10210
|
-
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale",
|
|
10211
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max",
|
|
10212
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min",
|
|
10213
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month",
|
|
10214
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange",
|
|
10215
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year",
|
|
10216
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom",
|
|
10217
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo",
|
|
10218
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate",
|
|
10219
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus",
|
|
10220
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus",
|
|
10221
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "narrow",
|
|
10294
|
+
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays", undefined);
|
|
10295
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange", undefined);
|
|
10296
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow", undefined);
|
|
10297
|
+
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale", undefined);
|
|
10298
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max", undefined);
|
|
10299
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min", undefined);
|
|
10300
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month", undefined);
|
|
10301
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange", undefined);
|
|
10302
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year", undefined);
|
|
10303
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom", undefined);
|
|
10304
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo", undefined);
|
|
10305
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate", undefined);
|
|
10306
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus", undefined);
|
|
10307
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus", undefined);
|
|
10308
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "narrow", undefined);
|
|
10222
10309
|
|
|
10223
10310
|
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>"};
|
|
10224
10311
|
|
|
@@ -10679,33 +10766,33 @@ if (!customElements.get('auro-calendar')) {
|
|
|
10679
10766
|
* Copyright 2017 Google LLC
|
|
10680
10767
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10681
10768
|
*/
|
|
10682
|
-
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}):
|
|
10769
|
+
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};
|
|
10683
10770
|
|
|
10684
10771
|
/**
|
|
10685
10772
|
* @license
|
|
10686
10773
|
* Copyright 2020 Google LLC
|
|
10687
10774
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10688
10775
|
*/
|
|
10689
|
-
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(
|
|
10776
|
+
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);
|
|
10690
10777
|
|
|
10691
10778
|
/**
|
|
10692
10779
|
* @license
|
|
10693
10780
|
* Copyright 2019 Google LLC
|
|
10694
10781
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10695
10782
|
*/
|
|
10696
|
-
const t$1$1=globalThis,e$3$1=t$1$1.ShadowRoot&&(
|
|
10783
|
+
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;
|
|
10697
10784
|
|
|
10698
10785
|
/**
|
|
10699
10786
|
* @license
|
|
10700
10787
|
* Copyright 2017 Google LLC
|
|
10701
10788
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10702
|
-
*/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
|
|
10789
|
+
*/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");
|
|
10703
10790
|
|
|
10704
10791
|
/**
|
|
10705
10792
|
* @license
|
|
10706
10793
|
* Copyright 2017 Google LLC
|
|
10707
10794
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10708
|
-
*/let r$5 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
10795
|
+
*/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");
|
|
10709
10796
|
|
|
10710
10797
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10711
10798
|
// See LICENSE in the project root for license information.
|
|
@@ -10825,7 +10912,7 @@ function getAlignmentAxis(placement) {
|
|
|
10825
10912
|
return getOppositeAxis(getSideAxis(placement));
|
|
10826
10913
|
}
|
|
10827
10914
|
function getAlignmentSides(placement, rects, rtl) {
|
|
10828
|
-
if (rtl ===
|
|
10915
|
+
if (rtl === undefined) {
|
|
10829
10916
|
rtl = false;
|
|
10830
10917
|
}
|
|
10831
10918
|
const alignment = getAlignment(placement);
|
|
@@ -10982,7 +11069,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
10982
11069
|
platform
|
|
10983
11070
|
} = config;
|
|
10984
11071
|
const validMiddleware = middleware.filter(Boolean);
|
|
10985
|
-
const rtl = await (platform.isRTL == null ?
|
|
11072
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
|
|
10986
11073
|
let rects = await platform.getElementRects({
|
|
10987
11074
|
reference,
|
|
10988
11075
|
floating,
|
|
@@ -11068,7 +11155,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
11068
11155
|
*/
|
|
11069
11156
|
async function detectOverflow(state, options) {
|
|
11070
11157
|
var _await$platform$isEle;
|
|
11071
|
-
if (options ===
|
|
11158
|
+
if (options === undefined) {
|
|
11072
11159
|
options = {};
|
|
11073
11160
|
}
|
|
11074
11161
|
const {
|
|
@@ -11090,7 +11177,7 @@ async function detectOverflow(state, options) {
|
|
|
11090
11177
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
11091
11178
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
11092
11179
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
11093
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ?
|
|
11180
|
+
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))),
|
|
11094
11181
|
boundary,
|
|
11095
11182
|
rootBoundary,
|
|
11096
11183
|
strategy
|
|
@@ -11101,8 +11188,8 @@ async function detectOverflow(state, options) {
|
|
|
11101
11188
|
width: rects.floating.width,
|
|
11102
11189
|
height: rects.floating.height
|
|
11103
11190
|
} : rects.reference;
|
|
11104
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
11105
|
-
const offsetScale = (await (platform.isElement == null ?
|
|
11191
|
+
const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
|
|
11192
|
+
const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
|
|
11106
11193
|
x: 1,
|
|
11107
11194
|
y: 1
|
|
11108
11195
|
} : {
|
|
@@ -11139,7 +11226,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
11139
11226
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
11140
11227
|
*/
|
|
11141
11228
|
const autoPlacement$1 = function (options) {
|
|
11142
|
-
if (options ===
|
|
11229
|
+
if (options === undefined) {
|
|
11143
11230
|
options = {};
|
|
11144
11231
|
}
|
|
11145
11232
|
return {
|
|
@@ -11163,12 +11250,12 @@ const autoPlacement$1 = function (options) {
|
|
|
11163
11250
|
} = evaluate(options, state);
|
|
11164
11251
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
11165
11252
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
11166
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
11253
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
|
|
11167
11254
|
const currentPlacement = placements$1[currentIndex];
|
|
11168
11255
|
if (currentPlacement == null) {
|
|
11169
11256
|
return {};
|
|
11170
11257
|
}
|
|
11171
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
11258
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
|
|
11172
11259
|
|
|
11173
11260
|
// Make `computeCoords` start from the right place.
|
|
11174
11261
|
if (placement !== currentPlacement) {
|
|
@@ -11179,7 +11266,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11179
11266
|
};
|
|
11180
11267
|
}
|
|
11181
11268
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
11182
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
11269
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
|
|
11183
11270
|
placement: currentPlacement,
|
|
11184
11271
|
overflows: currentOverflows
|
|
11185
11272
|
}];
|
|
@@ -11209,7 +11296,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11209
11296
|
// Aligned placements should not check their opposite crossAxis
|
|
11210
11297
|
// side.
|
|
11211
11298
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
11212
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
11299
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
11213
11300
|
if (resetPlacement !== placement) {
|
|
11214
11301
|
return {
|
|
11215
11302
|
data: {
|
|
@@ -11233,7 +11320,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11233
11320
|
* @see https://floating-ui.com/docs/flip
|
|
11234
11321
|
*/
|
|
11235
11322
|
const flip$1 = function (options) {
|
|
11236
|
-
if (options ===
|
|
11323
|
+
if (options === undefined) {
|
|
11237
11324
|
options = {};
|
|
11238
11325
|
}
|
|
11239
11326
|
return {
|
|
@@ -11269,7 +11356,7 @@ const flip$1 = function (options) {
|
|
|
11269
11356
|
const side = getSide(placement);
|
|
11270
11357
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
11271
11358
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
11272
|
-
const rtl = await (platform.isRTL == null ?
|
|
11359
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11273
11360
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
11274
11361
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
11275
11362
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -11278,7 +11365,7 @@ const flip$1 = function (options) {
|
|
|
11278
11365
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
11279
11366
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
11280
11367
|
const overflows = [];
|
|
11281
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
11368
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
|
|
11282
11369
|
if (checkMainAxis) {
|
|
11283
11370
|
overflows.push(overflow[side]);
|
|
11284
11371
|
}
|
|
@@ -11294,7 +11381,7 @@ const flip$1 = function (options) {
|
|
|
11294
11381
|
// One or more sides is overflowing.
|
|
11295
11382
|
if (!overflows.every(side => side <= 0)) {
|
|
11296
11383
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
11297
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
11384
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
|
|
11298
11385
|
const nextPlacement = placements[nextIndex];
|
|
11299
11386
|
if (nextPlacement) {
|
|
11300
11387
|
// Try next placement and re-run the lifecycle.
|
|
@@ -11311,7 +11398,7 @@ const flip$1 = function (options) {
|
|
|
11311
11398
|
|
|
11312
11399
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
11313
11400
|
// then find the placement that fits the best on the main crossAxis side.
|
|
11314
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ?
|
|
11401
|
+
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;
|
|
11315
11402
|
|
|
11316
11403
|
// Otherwise fallback.
|
|
11317
11404
|
if (!resetPlacement) {
|
|
@@ -11328,7 +11415,7 @@ const flip$1 = function (options) {
|
|
|
11328
11415
|
currentSideAxis === 'y';
|
|
11329
11416
|
}
|
|
11330
11417
|
return true;
|
|
11331
|
-
}).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 ?
|
|
11418
|
+
}).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];
|
|
11332
11419
|
if (placement) {
|
|
11333
11420
|
resetPlacement = placement;
|
|
11334
11421
|
}
|
|
@@ -11361,7 +11448,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11361
11448
|
platform,
|
|
11362
11449
|
elements
|
|
11363
11450
|
} = state;
|
|
11364
|
-
const rtl = await (platform.isRTL == null ?
|
|
11451
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11365
11452
|
const side = getSide(placement);
|
|
11366
11453
|
const alignment = getAlignment(placement);
|
|
11367
11454
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -11403,7 +11490,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11403
11490
|
* @see https://floating-ui.com/docs/offset
|
|
11404
11491
|
*/
|
|
11405
11492
|
const offset$1 = function (options) {
|
|
11406
|
-
if (options ===
|
|
11493
|
+
if (options === undefined) {
|
|
11407
11494
|
options = 0;
|
|
11408
11495
|
}
|
|
11409
11496
|
return {
|
|
@@ -11421,7 +11508,7 @@ const offset$1 = function (options) {
|
|
|
11421
11508
|
|
|
11422
11509
|
// If the placement is the same and the arrow caused an alignment offset
|
|
11423
11510
|
// then we don't need to change the positioning coordinates.
|
|
11424
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ?
|
|
11511
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
11425
11512
|
return {};
|
|
11426
11513
|
}
|
|
11427
11514
|
return {
|
|
@@ -11450,11 +11537,11 @@ function getNodeName(node) {
|
|
|
11450
11537
|
}
|
|
11451
11538
|
function getWindow(node) {
|
|
11452
11539
|
var _node$ownerDocument;
|
|
11453
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
11540
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
|
|
11454
11541
|
}
|
|
11455
11542
|
function getDocumentElement(node) {
|
|
11456
11543
|
var _ref;
|
|
11457
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ?
|
|
11544
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
|
|
11458
11545
|
}
|
|
11459
11546
|
function isNode(value) {
|
|
11460
11547
|
if (!hasWindow()) {
|
|
@@ -11569,14 +11656,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
11569
11656
|
}
|
|
11570
11657
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
11571
11658
|
var _node$ownerDocument2;
|
|
11572
|
-
if (list ===
|
|
11659
|
+
if (list === undefined) {
|
|
11573
11660
|
list = [];
|
|
11574
11661
|
}
|
|
11575
|
-
if (traverseIframes ===
|
|
11662
|
+
if (traverseIframes === undefined) {
|
|
11576
11663
|
traverseIframes = true;
|
|
11577
11664
|
}
|
|
11578
11665
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
11579
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
11666
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
|
|
11580
11667
|
const win = getWindow(scrollableAncestor);
|
|
11581
11668
|
if (isBody) {
|
|
11582
11669
|
const frameElement = getFrameElement(win);
|
|
@@ -11653,7 +11740,7 @@ function getVisualOffsets(element) {
|
|
|
11653
11740
|
};
|
|
11654
11741
|
}
|
|
11655
11742
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
11656
|
-
if (isFixed ===
|
|
11743
|
+
if (isFixed === undefined) {
|
|
11657
11744
|
isFixed = false;
|
|
11658
11745
|
}
|
|
11659
11746
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -11663,10 +11750,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
11663
11750
|
}
|
|
11664
11751
|
|
|
11665
11752
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
11666
|
-
if (includeScale ===
|
|
11753
|
+
if (includeScale === undefined) {
|
|
11667
11754
|
includeScale = false;
|
|
11668
11755
|
}
|
|
11669
|
-
if (isFixedStrategy ===
|
|
11756
|
+
if (isFixedStrategy === undefined) {
|
|
11670
11757
|
isFixedStrategy = false;
|
|
11671
11758
|
}
|
|
11672
11759
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -11726,7 +11813,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
11726
11813
|
}
|
|
11727
11814
|
|
|
11728
11815
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
11729
|
-
if (ignoreScrollbarX ===
|
|
11816
|
+
if (ignoreScrollbarX === undefined) {
|
|
11730
11817
|
ignoreScrollbarX = false;
|
|
11731
11818
|
}
|
|
11732
11819
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -12076,10 +12163,10 @@ function observeMove(element, onMove) {
|
|
|
12076
12163
|
io = null;
|
|
12077
12164
|
}
|
|
12078
12165
|
function refresh(skip, threshold) {
|
|
12079
|
-
if (skip ===
|
|
12166
|
+
if (skip === undefined) {
|
|
12080
12167
|
skip = false;
|
|
12081
12168
|
}
|
|
12082
|
-
if (threshold ===
|
|
12169
|
+
if (threshold === undefined) {
|
|
12083
12170
|
threshold = 1;
|
|
12084
12171
|
}
|
|
12085
12172
|
cleanup();
|
|
@@ -12150,7 +12237,7 @@ function observeMove(element, onMove) {
|
|
|
12150
12237
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
12151
12238
|
*/
|
|
12152
12239
|
function autoUpdate(reference, floating, update, options) {
|
|
12153
|
-
if (options ===
|
|
12240
|
+
if (options === undefined) {
|
|
12154
12241
|
options = {};
|
|
12155
12242
|
}
|
|
12156
12243
|
const {
|
|
@@ -12277,6 +12364,11 @@ class AuroFloatingUI {
|
|
|
12277
12364
|
this.focusHandler = null;
|
|
12278
12365
|
this.clickHandler = null;
|
|
12279
12366
|
this.keyDownHandler = null;
|
|
12367
|
+
|
|
12368
|
+
/**
|
|
12369
|
+
* @private
|
|
12370
|
+
*/
|
|
12371
|
+
this.eventPrefix = undefined;
|
|
12280
12372
|
}
|
|
12281
12373
|
|
|
12282
12374
|
/**
|
|
@@ -12293,22 +12385,24 @@ class AuroFloatingUI {
|
|
|
12293
12385
|
*/
|
|
12294
12386
|
mirrorSize(fullscreen) {
|
|
12295
12387
|
// mirror the boxsize from bibSizer
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12388
|
+
if (this.element.bibSizer) {
|
|
12389
|
+
const sizerStyle = window.getComputedStyle(this.element.bibSizer);
|
|
12390
|
+
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
12391
|
+
if (fullscreen) {
|
|
12392
|
+
bibContent.style.width = '';
|
|
12393
|
+
bibContent.style.height = '';
|
|
12394
|
+
bibContent.style.maxWidth = '';
|
|
12395
|
+
bibContent.style.maxHeight = '';
|
|
12396
|
+
} else {
|
|
12397
|
+
if (sizerStyle.width !== '0px') {
|
|
12398
|
+
bibContent.style.width = sizerStyle.width;
|
|
12399
|
+
}
|
|
12400
|
+
if (sizerStyle.height !== '0px') {
|
|
12401
|
+
bibContent.style.height = sizerStyle.height;
|
|
12402
|
+
}
|
|
12403
|
+
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
12404
|
+
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
12309
12405
|
}
|
|
12310
|
-
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
12311
|
-
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
12312
12406
|
}
|
|
12313
12407
|
}
|
|
12314
12408
|
|
|
@@ -12359,7 +12453,7 @@ class AuroFloatingUI {
|
|
|
12359
12453
|
// Compute the position of the bib
|
|
12360
12454
|
computePosition(this.element.trigger, this.element.bib, {
|
|
12361
12455
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
12362
|
-
middleware: middleware
|
|
12456
|
+
middleware: middleware
|
|
12363
12457
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
12364
12458
|
Object.assign(this.element.bib.style, {
|
|
12365
12459
|
left: `${x}px`,
|
|
@@ -12515,7 +12609,7 @@ class AuroFloatingUI {
|
|
|
12515
12609
|
* @returns {void} Dispatches event with an object showing the state of the dropdown.
|
|
12516
12610
|
*/
|
|
12517
12611
|
dispatchEventDropdownToggle() {
|
|
12518
|
-
const event = new CustomEvent(
|
|
12612
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
|
|
12519
12613
|
detail: {
|
|
12520
12614
|
expanded: this.isPopoverVisible,
|
|
12521
12615
|
},
|
|
@@ -12532,7 +12626,7 @@ class AuroFloatingUI {
|
|
|
12532
12626
|
this.showBib();
|
|
12533
12627
|
}
|
|
12534
12628
|
|
|
12535
|
-
const event = new CustomEvent(
|
|
12629
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-triggerClick` : "triggerClick", {
|
|
12536
12630
|
composed: true,
|
|
12537
12631
|
details: {
|
|
12538
12632
|
expanded: this.element.isPopoverVisible
|
|
@@ -12576,6 +12670,9 @@ class AuroFloatingUI {
|
|
|
12576
12670
|
this.handleFocusLoss();
|
|
12577
12671
|
break;
|
|
12578
12672
|
case 'click':
|
|
12673
|
+
if (document.activeElement === document.body) {
|
|
12674
|
+
event.currentTarget.focus();
|
|
12675
|
+
}
|
|
12579
12676
|
this.handleClick();
|
|
12580
12677
|
break;
|
|
12581
12678
|
// Do nothing
|
|
@@ -12613,7 +12710,8 @@ class AuroFloatingUI {
|
|
|
12613
12710
|
});
|
|
12614
12711
|
}
|
|
12615
12712
|
|
|
12616
|
-
configure(elem) {
|
|
12713
|
+
configure(elem, eventPrefix) {
|
|
12714
|
+
this.eventPrefix = eventPrefix;
|
|
12617
12715
|
this.element = elem;
|
|
12618
12716
|
this.element.trigger = this.element.shadowRoot.querySelector('#trigger');
|
|
12619
12717
|
this.element.bib = this.element.shadowRoot.querySelector('#bib');
|
|
@@ -12699,7 +12797,7 @@ const t$4={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
12699
12797
|
* @license
|
|
12700
12798
|
* Copyright 2018 Google LLC
|
|
12701
12799
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12702
|
-
*/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(
|
|
12800
|
+
*/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}});
|
|
12703
12801
|
|
|
12704
12802
|
/**
|
|
12705
12803
|
* @license
|
|
@@ -12773,7 +12871,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
12773
12871
|
return _fetchMap$1.get(uri);
|
|
12774
12872
|
};
|
|
12775
12873
|
|
|
12776
|
-
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}`;
|
|
12874
|
+
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}`;
|
|
12777
12875
|
|
|
12778
12876
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12779
12877
|
// See LICENSE in the project root for license information.
|
|
@@ -13040,7 +13138,8 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13040
13138
|
};
|
|
13041
13139
|
|
|
13042
13140
|
const classes = {
|
|
13043
|
-
'label': this.label
|
|
13141
|
+
'label': this.label,
|
|
13142
|
+
'wrapper': true,
|
|
13044
13143
|
};
|
|
13045
13144
|
|
|
13046
13145
|
return x$1`
|
|
@@ -13064,15 +13163,15 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13064
13163
|
}
|
|
13065
13164
|
};
|
|
13066
13165
|
|
|
13067
|
-
var iconVersion$1 = '6.1.
|
|
13166
|
+
var iconVersion$1 = '6.1.2';
|
|
13068
13167
|
|
|
13069
|
-
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)}`;
|
|
13168
|
+
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)}`;
|
|
13070
13169
|
|
|
13071
|
-
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);
|
|
13170
|
+
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)}`;
|
|
13072
13171
|
|
|
13073
13172
|
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)}`;
|
|
13074
13173
|
|
|
13075
|
-
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]
|
|
13174
|
+
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}`;
|
|
13076
13175
|
|
|
13077
13176
|
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)}`;
|
|
13078
13177
|
|
|
@@ -13090,9 +13189,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
13090
13189
|
];
|
|
13091
13190
|
|
|
13092
13191
|
/**
|
|
13093
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
13094
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
13095
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
13096
13192
|
* @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.
|
|
13097
13193
|
* @csspart bibContainer - Apply css to the bib container.
|
|
13098
13194
|
*/
|
|
@@ -13118,14 +13214,26 @@ class AuroDropdownBib extends r$5 {
|
|
|
13118
13214
|
|
|
13119
13215
|
static get properties() {
|
|
13120
13216
|
return {
|
|
13217
|
+
|
|
13218
|
+
/**
|
|
13219
|
+
* If declared, will apply all styles for the common theme.
|
|
13220
|
+
*/
|
|
13121
13221
|
common: {
|
|
13122
13222
|
type: Boolean,
|
|
13123
13223
|
reflect: true
|
|
13124
13224
|
},
|
|
13225
|
+
|
|
13226
|
+
/**
|
|
13227
|
+
* If declared, will apply extra padding to bib content.
|
|
13228
|
+
*/
|
|
13125
13229
|
inset: {
|
|
13126
13230
|
type: Boolean,
|
|
13127
13231
|
reflect: true
|
|
13128
13232
|
},
|
|
13233
|
+
|
|
13234
|
+
/**
|
|
13235
|
+
* If declared, will apply border-radius to the bib.
|
|
13236
|
+
*/
|
|
13129
13237
|
rounded: {
|
|
13130
13238
|
type: Boolean,
|
|
13131
13239
|
reflect: true
|
|
@@ -13169,22 +13277,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
13169
13277
|
|
|
13170
13278
|
|
|
13171
13279
|
/**
|
|
13172
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
13173
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
13174
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
13175
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
13176
13280
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
13177
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
13178
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
13179
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
13180
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
13181
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
13182
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
13183
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
13184
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
13185
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
13186
|
-
* @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.
|
|
13187
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
13188
13281
|
* @slot - Default slot for the popover content.
|
|
13189
13282
|
* @slot label - Defines the content of the label.
|
|
13190
13283
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -13222,6 +13315,16 @@ class AuroDropdown extends r$5 {
|
|
|
13222
13315
|
this.tabIndex = 0;
|
|
13223
13316
|
this.noToggle = false;
|
|
13224
13317
|
|
|
13318
|
+
/**
|
|
13319
|
+
* @private
|
|
13320
|
+
*/
|
|
13321
|
+
this.hasTriggerContent = false;
|
|
13322
|
+
|
|
13323
|
+
/**
|
|
13324
|
+
* @private
|
|
13325
|
+
*/
|
|
13326
|
+
this.triggerContentSlot = undefined;
|
|
13327
|
+
|
|
13225
13328
|
/**
|
|
13226
13329
|
* @private
|
|
13227
13330
|
*/
|
|
@@ -13268,89 +13371,166 @@ class AuroDropdown extends r$5 {
|
|
|
13268
13371
|
// function to define props used within the scope of this component
|
|
13269
13372
|
static get properties() {
|
|
13270
13373
|
return {
|
|
13374
|
+
|
|
13375
|
+
/**
|
|
13376
|
+
* If declared, applies a border around the trigger slot.
|
|
13377
|
+
*/
|
|
13271
13378
|
bordered: {
|
|
13272
13379
|
type: Boolean,
|
|
13273
13380
|
reflect: true
|
|
13274
13381
|
},
|
|
13382
|
+
|
|
13383
|
+
/**
|
|
13384
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
13385
|
+
* @attr {Boolean} chevron
|
|
13386
|
+
*/
|
|
13275
13387
|
chevron: {
|
|
13276
13388
|
type: Boolean,
|
|
13277
13389
|
reflect: true
|
|
13278
13390
|
},
|
|
13279
|
-
|
|
13391
|
+
|
|
13392
|
+
/**
|
|
13393
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
13394
|
+
*/
|
|
13395
|
+
common: {
|
|
13280
13396
|
type: Boolean,
|
|
13281
13397
|
reflect: true
|
|
13282
13398
|
},
|
|
13283
|
-
|
|
13399
|
+
|
|
13400
|
+
/**
|
|
13401
|
+
* If declared, the dropdown is not interactive.
|
|
13402
|
+
*/
|
|
13403
|
+
disabled: {
|
|
13284
13404
|
type: Boolean,
|
|
13285
13405
|
reflect: true
|
|
13286
13406
|
},
|
|
13287
|
-
|
|
13407
|
+
|
|
13408
|
+
/**
|
|
13409
|
+
* @private
|
|
13410
|
+
*/
|
|
13411
|
+
dropdownWidth: {
|
|
13412
|
+
type: Number
|
|
13413
|
+
},
|
|
13414
|
+
|
|
13415
|
+
/**
|
|
13416
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
13417
|
+
*/
|
|
13418
|
+
error: {
|
|
13288
13419
|
type: Boolean,
|
|
13289
|
-
reflect: true
|
|
13420
|
+
reflect: true
|
|
13290
13421
|
},
|
|
13422
|
+
|
|
13423
|
+
/**
|
|
13424
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
13425
|
+
*/
|
|
13291
13426
|
focusShow: {
|
|
13292
13427
|
type: Boolean,
|
|
13293
13428
|
reflect: true
|
|
13294
13429
|
},
|
|
13295
|
-
|
|
13430
|
+
|
|
13431
|
+
/**
|
|
13432
|
+
* Makes the trigger to be full width of its parent container.
|
|
13433
|
+
*/
|
|
13434
|
+
fluid: {
|
|
13296
13435
|
type: Boolean,
|
|
13297
13436
|
reflect: true
|
|
13298
13437
|
},
|
|
13438
|
+
|
|
13439
|
+
/**
|
|
13440
|
+
* If declared, will apply padding around trigger slot content.
|
|
13441
|
+
*/
|
|
13299
13442
|
inset: {
|
|
13300
13443
|
type: Boolean,
|
|
13301
13444
|
reflect: true
|
|
13302
13445
|
},
|
|
13303
|
-
|
|
13446
|
+
|
|
13447
|
+
/**
|
|
13448
|
+
* If true, the dropdown bib is displayed.
|
|
13449
|
+
*/
|
|
13450
|
+
isPopoverVisible: {
|
|
13451
|
+
type: Boolean
|
|
13452
|
+
},
|
|
13453
|
+
|
|
13454
|
+
/**
|
|
13455
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
13456
|
+
*/
|
|
13457
|
+
hoverToggle: {
|
|
13304
13458
|
type: Boolean,
|
|
13305
13459
|
reflect: true
|
|
13306
13460
|
},
|
|
13307
|
-
|
|
13308
|
-
|
|
13461
|
+
|
|
13462
|
+
/**
|
|
13463
|
+
* @private
|
|
13464
|
+
*/
|
|
13465
|
+
hasTriggerContent: {
|
|
13466
|
+
type: Boolean
|
|
13467
|
+
},
|
|
13468
|
+
|
|
13469
|
+
/**
|
|
13470
|
+
* 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.
|
|
13471
|
+
*/
|
|
13472
|
+
mobileFullscreenBreakpoint: {
|
|
13473
|
+
type: String,
|
|
13309
13474
|
reflect: true
|
|
13310
13475
|
},
|
|
13311
|
-
|
|
13476
|
+
|
|
13477
|
+
/**
|
|
13478
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
13479
|
+
*/
|
|
13480
|
+
matchWidth: {
|
|
13312
13481
|
type: Boolean,
|
|
13313
13482
|
reflect: true
|
|
13314
13483
|
},
|
|
13315
|
-
|
|
13484
|
+
|
|
13485
|
+
/**
|
|
13486
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
13487
|
+
*/
|
|
13488
|
+
noHideOnThisFocusLoss: {
|
|
13316
13489
|
type: Boolean,
|
|
13317
13490
|
reflect: true
|
|
13318
13491
|
},
|
|
13319
|
-
|
|
13492
|
+
|
|
13493
|
+
/**
|
|
13494
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
13495
|
+
*/
|
|
13496
|
+
noToggle: {
|
|
13320
13497
|
type: Boolean,
|
|
13321
13498
|
reflect: true
|
|
13322
13499
|
},
|
|
13323
|
-
|
|
13500
|
+
|
|
13324
13501
|
onSlotChange: {
|
|
13325
13502
|
type: Function,
|
|
13326
13503
|
reflect: false
|
|
13327
13504
|
},
|
|
13328
|
-
mobileFullscreenBreakpoint: {
|
|
13329
|
-
type: String,
|
|
13330
|
-
reflect: true,
|
|
13331
|
-
},
|
|
13332
13505
|
|
|
13333
13506
|
/**
|
|
13334
13507
|
* @private
|
|
13335
13508
|
*/
|
|
13336
|
-
|
|
13509
|
+
placement: {
|
|
13510
|
+
type: String
|
|
13511
|
+
},
|
|
13337
13512
|
|
|
13338
13513
|
/**
|
|
13339
|
-
*
|
|
13514
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
13340
13515
|
*/
|
|
13341
|
-
|
|
13516
|
+
rounded: {
|
|
13517
|
+
type: Boolean,
|
|
13518
|
+
reflect: true
|
|
13519
|
+
},
|
|
13342
13520
|
|
|
13343
13521
|
/**
|
|
13344
13522
|
* @private
|
|
13345
13523
|
*/
|
|
13346
|
-
tabIndex: {
|
|
13524
|
+
tabIndex: {
|
|
13525
|
+
type: Number
|
|
13526
|
+
}
|
|
13347
13527
|
};
|
|
13348
13528
|
}
|
|
13349
13529
|
|
|
13350
13530
|
static get styles() {
|
|
13351
13531
|
return [
|
|
13352
|
-
styleCss$1$1,
|
|
13353
13532
|
colorCss$1$1,
|
|
13533
|
+
styleCss$1$1,
|
|
13354
13534
|
tokensCss$4
|
|
13355
13535
|
];
|
|
13356
13536
|
}
|
|
@@ -13381,10 +13561,16 @@ class AuroDropdown extends r$5 {
|
|
|
13381
13561
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
13382
13562
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
13383
13563
|
}
|
|
13564
|
+
|
|
13565
|
+
// when trigger's content is changed without any attribute or node change,
|
|
13566
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
13567
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
13568
|
+
this.handleTriggerContentSlotChange();
|
|
13569
|
+
}
|
|
13384
13570
|
}
|
|
13385
13571
|
|
|
13386
13572
|
firstUpdated() {
|
|
13387
|
-
this.floater.configure(this);
|
|
13573
|
+
this.floater.configure(this, 'auroDropdown');
|
|
13388
13574
|
this.bibContent = this.floater.element.bib;
|
|
13389
13575
|
|
|
13390
13576
|
// Add the tag name as an attribute if it is different than the component name
|
|
@@ -13423,6 +13609,43 @@ class AuroDropdown extends r$5 {
|
|
|
13423
13609
|
return inCustomSlot;
|
|
13424
13610
|
}
|
|
13425
13611
|
|
|
13612
|
+
/**
|
|
13613
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
13614
|
+
*
|
|
13615
|
+
* It first updates the floater settings
|
|
13616
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
13617
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
13618
|
+
*
|
|
13619
|
+
* @private
|
|
13620
|
+
* @method handleTriggerContentSlotChange
|
|
13621
|
+
* @param {Event} event - native slotchange event
|
|
13622
|
+
* @returns {void}
|
|
13623
|
+
*/
|
|
13624
|
+
handleTriggerContentSlotChange(event) {
|
|
13625
|
+
this.floater.handleTriggerTabIndex();
|
|
13626
|
+
|
|
13627
|
+
if (event) {
|
|
13628
|
+
this.triggerNode = event.target;
|
|
13629
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
13630
|
+
}
|
|
13631
|
+
|
|
13632
|
+
if (this.triggerContentSlot) {
|
|
13633
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
13634
|
+
if (slot.textContent.trim()) {
|
|
13635
|
+
return true;
|
|
13636
|
+
}
|
|
13637
|
+
const slotInSlot = slot.querySelector('slot');
|
|
13638
|
+
if (!slotInSlot) {
|
|
13639
|
+
return false;
|
|
13640
|
+
}
|
|
13641
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
13642
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
13643
|
+
});
|
|
13644
|
+
} else {
|
|
13645
|
+
this.hasTriggerContent = false;
|
|
13646
|
+
}
|
|
13647
|
+
}
|
|
13648
|
+
|
|
13426
13649
|
/**
|
|
13427
13650
|
* Handles the default slot change event and updates the content.
|
|
13428
13651
|
*
|
|
@@ -13457,13 +13680,13 @@ class AuroDropdown extends r$5 {
|
|
|
13457
13680
|
tabindex="${this.tabIndex}"
|
|
13458
13681
|
>
|
|
13459
13682
|
<div class="triggerContentWrapper">
|
|
13460
|
-
<label class="label" id="triggerLabel">
|
|
13683
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
13461
13684
|
<slot name="label"></slot>
|
|
13462
13685
|
</label>
|
|
13463
13686
|
<div class="triggerContent">
|
|
13464
13687
|
<slot
|
|
13465
13688
|
name="trigger"
|
|
13466
|
-
@slotchange="${() =>
|
|
13689
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
13467
13690
|
</div>
|
|
13468
13691
|
</div>
|
|
13469
13692
|
${this.chevron || this.common ? u$1$1`
|
|
@@ -13510,14 +13733,14 @@ var dropdownVersion = '3.0.0';
|
|
|
13510
13733
|
* Copyright 2017 Google LLC
|
|
13511
13734
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13512
13735
|
*/
|
|
13513
|
-
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):
|
|
13736
|
+
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};
|
|
13514
13737
|
|
|
13515
13738
|
/**
|
|
13516
13739
|
* @license
|
|
13517
13740
|
* Copyright 2020 Google LLC
|
|
13518
13741
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13519
13742
|
*/
|
|
13520
|
-
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(
|
|
13743
|
+
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);
|
|
13521
13744
|
|
|
13522
13745
|
/**
|
|
13523
13746
|
* @license
|
|
@@ -13530,20 +13753,20 @@ const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
13530
13753
|
* @license
|
|
13531
13754
|
* Copyright 2020 Google LLC
|
|
13532
13755
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13533
|
-
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=
|
|
13756
|
+
*/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;}};
|
|
13534
13757
|
|
|
13535
13758
|
/**
|
|
13536
13759
|
* @license
|
|
13537
13760
|
* Copyright 2017 Google LLC
|
|
13538
13761
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13539
13762
|
*/
|
|
13540
|
-
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;
|
|
13763
|
+
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}});
|
|
13541
13764
|
|
|
13542
13765
|
/**
|
|
13543
13766
|
* @license
|
|
13544
13767
|
* Copyright 2018 Google LLC
|
|
13545
13768
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13546
|
-
*/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(
|
|
13769
|
+
*/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}});
|
|
13547
13770
|
|
|
13548
13771
|
/**
|
|
13549
13772
|
* @license
|
|
@@ -13659,21 +13882,21 @@ function stopNotifyingOnLangChange(element) {
|
|
|
13659
13882
|
* Copyright 2019 Google LLC
|
|
13660
13883
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13661
13884
|
*/
|
|
13662
|
-
const t=globalThis,e$1=t.ShadowRoot&&(
|
|
13885
|
+
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;
|
|
13663
13886
|
|
|
13664
13887
|
/**
|
|
13665
13888
|
* @license
|
|
13666
13889
|
* Copyright 2017 Google LLC
|
|
13667
13890
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13668
|
-
*/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
|
|
13891
|
+
*/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");
|
|
13669
13892
|
|
|
13670
13893
|
/**
|
|
13671
13894
|
* @license
|
|
13672
13895
|
* Copyright 2017 Google LLC
|
|
13673
13896
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13674
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
13897
|
+
*/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");
|
|
13675
13898
|
|
|
13676
|
-
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))}.
|
|
13899
|
+
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)}`;
|
|
13677
13900
|
|
|
13678
13901
|
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)}`;
|
|
13679
13902
|
|
|
@@ -15316,25 +15539,111 @@ class AuroFormValidation {
|
|
|
15316
15539
|
}
|
|
15317
15540
|
|
|
15318
15541
|
/**
|
|
15319
|
-
*
|
|
15542
|
+
* Resets the element to its initial state.
|
|
15320
15543
|
* @private
|
|
15321
|
-
* @param {object} elem - HTML element to
|
|
15544
|
+
* @param {object} elem - HTML element to reset.
|
|
15322
15545
|
* @returns {void}
|
|
15323
15546
|
*/
|
|
15324
|
-
|
|
15325
|
-
|
|
15326
|
-
|
|
15547
|
+
reset(elem) {
|
|
15548
|
+
elem.validity = undefined;
|
|
15549
|
+
elem.value = undefined;
|
|
15550
|
+
|
|
15551
|
+
// Resets the second value of the datepicker in range state
|
|
15552
|
+
if (elem.valueEnd) {
|
|
15553
|
+
elem.valueEnd = undefined;
|
|
15554
|
+
}
|
|
15555
|
+
|
|
15556
|
+
// Resets selected option of element
|
|
15557
|
+
if (elem.optionSelected) {
|
|
15558
|
+
elem.optionSelected = undefined;
|
|
15559
|
+
}
|
|
15560
|
+
|
|
15561
|
+
// Runs validation to handle error attribute
|
|
15562
|
+
this.validate(elem);
|
|
15563
|
+
}
|
|
15327
15564
|
|
|
15328
|
-
|
|
15329
|
-
|
|
15330
|
-
|
|
15565
|
+
/**
|
|
15566
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
15567
|
+
*
|
|
15568
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
15569
|
+
* @returns {void}
|
|
15570
|
+
*
|
|
15571
|
+
* @example
|
|
15572
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
15573
|
+
* validateElementAttributes(inputElement);
|
|
15574
|
+
*
|
|
15575
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
15576
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
15577
|
+
*
|
|
15578
|
+
* Validation rules:
|
|
15579
|
+
* - input:
|
|
15580
|
+
* - length:
|
|
15581
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
15582
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
15583
|
+
* - pattern:
|
|
15584
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
15585
|
+
* - counter:
|
|
15586
|
+
* - range:
|
|
15587
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
15588
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
15589
|
+
*/
|
|
15590
|
+
validateElementAttributes(elem) {
|
|
15591
|
+
const validationRules = {
|
|
15592
|
+
input: {
|
|
15593
|
+
length: [
|
|
15594
|
+
{
|
|
15595
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
15596
|
+
validity: 'tooShort',
|
|
15597
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
15598
|
+
},
|
|
15599
|
+
{
|
|
15600
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
15601
|
+
validity: 'tooLong',
|
|
15602
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
15603
|
+
}
|
|
15604
|
+
],
|
|
15605
|
+
pattern: [
|
|
15606
|
+
{
|
|
15607
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
15608
|
+
validity: 'patternMismatch',
|
|
15609
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
15610
|
+
}
|
|
15611
|
+
]
|
|
15612
|
+
},
|
|
15613
|
+
counter: {
|
|
15614
|
+
range: [
|
|
15615
|
+
{
|
|
15616
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
15617
|
+
validity: 'rangeOverflow',
|
|
15618
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
15619
|
+
},
|
|
15620
|
+
{
|
|
15621
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
15622
|
+
validity: 'rangeUnderflow',
|
|
15623
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
15624
|
+
}
|
|
15625
|
+
]
|
|
15626
|
+
}
|
|
15627
|
+
};
|
|
15628
|
+
|
|
15629
|
+
let elementType;
|
|
15630
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15631
|
+
elementType = 'input';
|
|
15632
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
15633
|
+
elementType = 'counter';
|
|
15634
|
+
}
|
|
15635
|
+
|
|
15636
|
+
if (elementType) {
|
|
15637
|
+
const rules = validationRules[elementType];
|
|
15638
|
+
|
|
15639
|
+
if (rules) {
|
|
15640
|
+
Object.values(rules).flat().forEach(rule => {
|
|
15641
|
+
if (rule.check(elem)) {
|
|
15642
|
+
elem.validity = rule.validity;
|
|
15643
|
+
elem.errorMessage = rule.message(elem);
|
|
15644
|
+
}
|
|
15645
|
+
});
|
|
15331
15646
|
}
|
|
15332
|
-
} else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
|
|
15333
|
-
elem.validity = 'tooShort';
|
|
15334
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
15335
|
-
} else if (elem.value && elem.value.length > elem.maxLength) {
|
|
15336
|
-
elem.validity = 'tooLong';
|
|
15337
|
-
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
15338
15647
|
}
|
|
15339
15648
|
}
|
|
15340
15649
|
|
|
@@ -15350,33 +15659,32 @@ class AuroFormValidation {
|
|
|
15350
15659
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
15351
15660
|
|
|
15352
15661
|
if (!elem.value.match(emailRegex)) {
|
|
15353
|
-
elem.validity = '
|
|
15354
|
-
elem.
|
|
15662
|
+
elem.validity = 'patternMismatch';
|
|
15663
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15355
15664
|
}
|
|
15356
15665
|
} else if (elem.type === 'credit-card') {
|
|
15357
15666
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
15358
15667
|
elem.validity = 'tooShort';
|
|
15359
|
-
elem.
|
|
15668
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15360
15669
|
}
|
|
15361
|
-
} else if (elem.type === 'number'
|
|
15670
|
+
} else if (elem.type === 'number') {
|
|
15362
15671
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
15363
15672
|
elem.validity = 'rangeOverflow';
|
|
15364
|
-
elem.
|
|
15673
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15365
15674
|
}
|
|
15366
15675
|
|
|
15367
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
15676
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
15368
15677
|
elem.validity = 'rangeUnderflow';
|
|
15369
|
-
elem.
|
|
15678
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15370
15679
|
}
|
|
15371
|
-
|
|
15372
15680
|
} else if (elem.type === 'month-day-year' ||
|
|
15373
15681
|
elem.type === 'month-year' ||
|
|
15374
15682
|
elem.type === 'month-fullYear' ||
|
|
15375
15683
|
elem.type === 'year-month-day'
|
|
15376
15684
|
) {
|
|
15377
|
-
if (elem.value
|
|
15685
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
15378
15686
|
elem.validity = 'tooShort';
|
|
15379
|
-
elem.
|
|
15687
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15380
15688
|
} else {
|
|
15381
15689
|
const valueDate = new Date(elem.value);
|
|
15382
15690
|
|
|
@@ -15386,7 +15694,7 @@ class AuroFormValidation {
|
|
|
15386
15694
|
|
|
15387
15695
|
if (valueDate > maxDate) {
|
|
15388
15696
|
elem.validity = 'rangeOverflow';
|
|
15389
|
-
elem.
|
|
15697
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15390
15698
|
}
|
|
15391
15699
|
}
|
|
15392
15700
|
|
|
@@ -15396,7 +15704,7 @@ class AuroFormValidation {
|
|
|
15396
15704
|
|
|
15397
15705
|
if (valueDate < minDate) {
|
|
15398
15706
|
elem.validity = 'rangeUnderflow';
|
|
15399
|
-
elem.
|
|
15707
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15400
15708
|
}
|
|
15401
15709
|
}
|
|
15402
15710
|
}
|
|
@@ -15419,10 +15727,10 @@ class AuroFormValidation {
|
|
|
15419
15727
|
|
|
15420
15728
|
if (elem.hasAttribute('error')) {
|
|
15421
15729
|
elem.validity = 'customError';
|
|
15422
|
-
elem.
|
|
15730
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
15423
15731
|
} else if (validationShouldRun) {
|
|
15424
15732
|
elem.validity = 'valid';
|
|
15425
|
-
elem.
|
|
15733
|
+
elem.errorMessage = '';
|
|
15426
15734
|
|
|
15427
15735
|
/**
|
|
15428
15736
|
* Only validate once we interact with the datepicker
|
|
@@ -15434,7 +15742,7 @@ class AuroFormValidation {
|
|
|
15434
15742
|
let hasValue = elem.value && elem.value.length > 0;
|
|
15435
15743
|
|
|
15436
15744
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
15437
|
-
if (this.auroInputElements
|
|
15745
|
+
if (this.auroInputElements?.length === 2) {
|
|
15438
15746
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
15439
15747
|
hasValue = false;
|
|
15440
15748
|
}
|
|
@@ -15442,35 +15750,29 @@ class AuroFormValidation {
|
|
|
15442
15750
|
|
|
15443
15751
|
if (!hasValue && elem.required) {
|
|
15444
15752
|
elem.validity = 'valueMissing';
|
|
15445
|
-
elem.
|
|
15753
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
15446
15754
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15447
15755
|
this.validateType(elem);
|
|
15448
|
-
this.
|
|
15756
|
+
this.validateElementAttributes(elem);
|
|
15757
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
15758
|
+
this.validateElementAttributes(elem);
|
|
15449
15759
|
}
|
|
15450
15760
|
}
|
|
15451
15761
|
|
|
15452
|
-
if (this.auroInputElements
|
|
15762
|
+
if (this.auroInputElements?.length > 0) {
|
|
15453
15763
|
elem.validity = this.auroInputElements[0].validity;
|
|
15454
|
-
elem.
|
|
15764
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
15455
15765
|
|
|
15456
|
-
if (elem.validity === 'valid') {
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
15460
|
-
}
|
|
15766
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
15767
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
15768
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
15461
15769
|
}
|
|
15462
15770
|
}
|
|
15463
15771
|
|
|
15464
15772
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
// Use the validity message override if it is declared
|
|
15469
|
-
if (elem.ValidityMessageOverride) {
|
|
15470
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
15471
|
-
}
|
|
15472
|
-
} else {
|
|
15473
|
-
elem.isValid = true;
|
|
15773
|
+
// Use the validity message override if it is declared
|
|
15774
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
15775
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
15474
15776
|
}
|
|
15475
15777
|
|
|
15476
15778
|
this.getErrorMessage(elem);
|
|
@@ -15516,18 +15818,18 @@ class AuroFormValidation {
|
|
|
15516
15818
|
if (elem.validity !== 'valid') {
|
|
15517
15819
|
if (elem.setCustomValidity) {
|
|
15518
15820
|
elem.errorMessage = elem.setCustomValidity;
|
|
15519
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15821
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
15520
15822
|
const input = elem.renderRoot.querySelector('input');
|
|
15521
15823
|
|
|
15522
15824
|
if (input.validationMessage.length > 0) {
|
|
15523
15825
|
elem.errorMessage = input.validationMessage;
|
|
15524
15826
|
}
|
|
15525
|
-
} else if (this.inputElements &&
|
|
15827
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
15526
15828
|
const firstInput = this.inputElements[0];
|
|
15527
15829
|
|
|
15528
15830
|
if (firstInput.validationMessage.length > 0) {
|
|
15529
15831
|
elem.errorMessage = firstInput.validationMessage;
|
|
15530
|
-
} else if (this.inputElements
|
|
15832
|
+
} else if (this.inputElements?.length === 2) {
|
|
15531
15833
|
const secondInput = this.inputElements[1];
|
|
15532
15834
|
|
|
15533
15835
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -15548,45 +15850,8 @@ class AuroFormValidation {
|
|
|
15548
15850
|
/**
|
|
15549
15851
|
* Auro-input provides users a way to enter data into a text field.
|
|
15550
15852
|
*
|
|
15551
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
15552
|
-
* @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]
|
|
15553
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15554
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
15555
15853
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
15556
15854
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
15557
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
15558
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
15559
|
-
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
15560
|
-
* @attr {String} helpText - Deprecated, see `slot`.
|
|
15561
|
-
* @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.
|
|
15562
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
15563
|
-
* @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.
|
|
15564
|
-
* @attr {String} label - Deprecated, see `slot`.
|
|
15565
|
-
* @attr {String} lang - defines the language of an element.
|
|
15566
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `numeric` and all date formats.
|
|
15567
|
-
* @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.
|
|
15568
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `numeric` and all date formats.
|
|
15569
|
-
* @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`.
|
|
15570
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
15571
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
15572
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
15573
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
15574
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
15575
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
15576
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
15577
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
15578
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
15579
|
-
* @attr {String} setCustomValidityBadInput - Custom help text message to display when validity = `badInput`.
|
|
15580
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
15581
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
15582
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
15583
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
15584
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
15585
|
-
* @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`.
|
|
15586
|
-
* @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`.
|
|
15587
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
15588
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
15589
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15590
15855
|
*
|
|
15591
15856
|
* @slot helptext - Sets the help text displayed below the input.
|
|
15592
15857
|
* @slot label - Sets the label text for the input.
|
|
@@ -15605,8 +15870,6 @@ class BaseInput extends r {
|
|
|
15605
15870
|
constructor() {
|
|
15606
15871
|
super();
|
|
15607
15872
|
|
|
15608
|
-
this.isValid = false;
|
|
15609
|
-
|
|
15610
15873
|
this.icon = false;
|
|
15611
15874
|
this.disabled = false;
|
|
15612
15875
|
this.required = false;
|
|
@@ -15615,9 +15878,7 @@ class BaseInput extends r {
|
|
|
15615
15878
|
this.min = undefined;
|
|
15616
15879
|
this.maxLength = undefined;
|
|
15617
15880
|
this.minLength = undefined;
|
|
15618
|
-
this.label = 'Input label is undefined';
|
|
15619
15881
|
this.activeLabel = false;
|
|
15620
|
-
|
|
15621
15882
|
this.setCustomValidityForType = undefined;
|
|
15622
15883
|
}
|
|
15623
15884
|
|
|
@@ -15632,9 +15893,11 @@ class BaseInput extends r {
|
|
|
15632
15893
|
this.showPassword = false;
|
|
15633
15894
|
this.validationCCLength = undefined;
|
|
15634
15895
|
this.hasValue = false;
|
|
15896
|
+
this.label = 'Input label is undefined';
|
|
15635
15897
|
|
|
15636
15898
|
this.allowedInputTypes = [
|
|
15637
15899
|
"text",
|
|
15900
|
+
"number",
|
|
15638
15901
|
"email",
|
|
15639
15902
|
"password",
|
|
15640
15903
|
"credit-card",
|
|
@@ -15680,80 +15943,275 @@ class BaseInput extends r {
|
|
|
15680
15943
|
.substring(idSubstrStart, idSubstrEnd);
|
|
15681
15944
|
}
|
|
15682
15945
|
|
|
15683
|
-
// function to define props used within the scope of this
|
|
15946
|
+
// function to define props used within the scope of this componentstatic
|
|
15684
15947
|
static get properties() {
|
|
15685
15948
|
return {
|
|
15686
|
-
|
|
15687
|
-
|
|
15688
|
-
|
|
15689
|
-
|
|
15690
|
-
|
|
15691
|
-
|
|
15692
|
-
lang: { type: String },
|
|
15693
|
-
pattern: {
|
|
15694
|
-
type: String,
|
|
15949
|
+
|
|
15950
|
+
/**
|
|
15951
|
+
* If set, the label will remain fixed in the active position.
|
|
15952
|
+
*/
|
|
15953
|
+
activeLabel: {
|
|
15954
|
+
type: Boolean,
|
|
15695
15955
|
reflect: true
|
|
15696
15956
|
},
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15957
|
+
|
|
15958
|
+
/**
|
|
15959
|
+
* 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]
|
|
15960
|
+
*/
|
|
15961
|
+
autocapitalize: {
|
|
15962
|
+
type: String
|
|
15963
|
+
},
|
|
15964
|
+
|
|
15965
|
+
/**
|
|
15966
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15967
|
+
*/
|
|
15968
|
+
autocomplete: {
|
|
15706
15969
|
type: String,
|
|
15707
15970
|
reflect: true
|
|
15708
15971
|
},
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15972
|
+
|
|
15973
|
+
/**
|
|
15974
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
15975
|
+
*/
|
|
15976
|
+
autocorrect: {
|
|
15977
|
+
type: String
|
|
15713
15978
|
},
|
|
15714
|
-
max: { type: String },
|
|
15715
|
-
min: { type: String },
|
|
15716
|
-
maxLength: { type: Number },
|
|
15717
|
-
minLength: { type: Number },
|
|
15718
15979
|
|
|
15719
15980
|
/**
|
|
15720
|
-
*
|
|
15981
|
+
* If set, disables the input.
|
|
15721
15982
|
*/
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
readonly: { type: Boolean },
|
|
15725
|
-
error: {
|
|
15726
|
-
type: String,
|
|
15727
|
-
reflect: true
|
|
15983
|
+
disabled: {
|
|
15984
|
+
type: Boolean
|
|
15728
15985
|
},
|
|
15729
|
-
|
|
15730
|
-
|
|
15986
|
+
|
|
15987
|
+
error: {
|
|
15731
15988
|
type: String,
|
|
15732
15989
|
reflect: true
|
|
15733
15990
|
},
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15991
|
+
|
|
15992
|
+
/**
|
|
15993
|
+
* Contains the help text message for the current validity error.
|
|
15994
|
+
*/
|
|
15995
|
+
errorMessage: {
|
|
15996
|
+
type: String
|
|
15737
15997
|
},
|
|
15738
|
-
setCustomValidity: { type: String },
|
|
15739
|
-
setCustomValidityCustomError: { type: String },
|
|
15740
|
-
setCustomValidityValueMissing: { type: String },
|
|
15741
|
-
setCustomValidityBadInput: { type: String },
|
|
15742
|
-
setCustomValidityTooShort: { type: String },
|
|
15743
|
-
setCustomValidityTooLong: { type: String },
|
|
15744
|
-
setCustomValidityRangeOverflow: { type: String},
|
|
15745
|
-
setCustomValidityRangeUnderflow: { type: String},
|
|
15746
|
-
customValidityTypeEmail: { type: String }
|
|
15747
|
-
};
|
|
15748
|
-
}
|
|
15749
15998
|
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
15756
|
-
|
|
15999
|
+
/**
|
|
16000
|
+
* 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.
|
|
16001
|
+
*/
|
|
16002
|
+
icon: {
|
|
16003
|
+
type: Boolean
|
|
16004
|
+
},
|
|
16005
|
+
|
|
16006
|
+
/**
|
|
16007
|
+
* Sets the unique ID of the element.
|
|
16008
|
+
*/
|
|
16009
|
+
id: {
|
|
16010
|
+
type: String
|
|
16011
|
+
},
|
|
16012
|
+
|
|
16013
|
+
/**
|
|
16014
|
+
* Defines the language of an element.
|
|
16015
|
+
*/
|
|
16016
|
+
lang: {
|
|
16017
|
+
type: String
|
|
16018
|
+
},
|
|
16019
|
+
|
|
16020
|
+
/**
|
|
16021
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
16022
|
+
*/
|
|
16023
|
+
max: {
|
|
16024
|
+
type: String
|
|
16025
|
+
},
|
|
16026
|
+
|
|
16027
|
+
/**
|
|
16028
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
16029
|
+
*/
|
|
16030
|
+
maxLength: {
|
|
16031
|
+
type: Number
|
|
16032
|
+
},
|
|
16033
|
+
|
|
16034
|
+
/**
|
|
16035
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
16036
|
+
*/
|
|
16037
|
+
min: {
|
|
16038
|
+
type: String
|
|
16039
|
+
},
|
|
16040
|
+
|
|
16041
|
+
/**
|
|
16042
|
+
* 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`.
|
|
16043
|
+
*/
|
|
16044
|
+
minLength: {
|
|
16045
|
+
type: Number
|
|
16046
|
+
},
|
|
16047
|
+
|
|
16048
|
+
/**
|
|
16049
|
+
* Populates the `name` attribute on the input.
|
|
16050
|
+
*/
|
|
16051
|
+
name: {
|
|
16052
|
+
type: String
|
|
16053
|
+
},
|
|
16054
|
+
|
|
16055
|
+
/**
|
|
16056
|
+
* If set, disables auto-validation on blur.
|
|
16057
|
+
*/
|
|
16058
|
+
noValidate: {
|
|
16059
|
+
type: Boolean
|
|
16060
|
+
},
|
|
16061
|
+
|
|
16062
|
+
/**
|
|
16063
|
+
* Specifies a regular expression the form control's value should match.
|
|
16064
|
+
*/
|
|
16065
|
+
pattern: {
|
|
16066
|
+
type: String,
|
|
16067
|
+
reflect: true
|
|
16068
|
+
},
|
|
16069
|
+
|
|
16070
|
+
/**
|
|
16071
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
16072
|
+
*/
|
|
16073
|
+
placeholder: {
|
|
16074
|
+
type: String
|
|
16075
|
+
},
|
|
16076
|
+
|
|
16077
|
+
/**
|
|
16078
|
+
* Makes the input read-only, but can be set programmatically.
|
|
16079
|
+
*/
|
|
16080
|
+
readonly: {
|
|
16081
|
+
type: Boolean
|
|
16082
|
+
},
|
|
16083
|
+
|
|
16084
|
+
/**
|
|
16085
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
16086
|
+
*/
|
|
16087
|
+
required: {
|
|
16088
|
+
type: Boolean
|
|
16089
|
+
},
|
|
16090
|
+
|
|
16091
|
+
/**
|
|
16092
|
+
* @ignore
|
|
16093
|
+
*/
|
|
16094
|
+
showPassword: {
|
|
16095
|
+
state: true
|
|
16096
|
+
},
|
|
16097
|
+
|
|
16098
|
+
/**
|
|
16099
|
+
* Sets a custom help text message to display for all validityStates.
|
|
16100
|
+
*/
|
|
16101
|
+
setCustomValidity: {
|
|
16102
|
+
type: String
|
|
16103
|
+
},
|
|
16104
|
+
|
|
16105
|
+
/**
|
|
16106
|
+
* Custom help text message to display when validity = `badInput`.
|
|
16107
|
+
*/
|
|
16108
|
+
setCustomValidityBadInput: {
|
|
16109
|
+
type: String
|
|
16110
|
+
},
|
|
16111
|
+
|
|
16112
|
+
/**
|
|
16113
|
+
* Custom help text message to display when validity = `customError`.
|
|
16114
|
+
*/
|
|
16115
|
+
setCustomValidityCustomError: {
|
|
16116
|
+
type: String
|
|
16117
|
+
},
|
|
16118
|
+
|
|
16119
|
+
/**
|
|
16120
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
16121
|
+
*/
|
|
16122
|
+
setCustomValidityForType: {
|
|
16123
|
+
type: String
|
|
16124
|
+
},
|
|
16125
|
+
|
|
16126
|
+
/**
|
|
16127
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
16128
|
+
*/
|
|
16129
|
+
setCustomValidityRangeOverflow: {
|
|
16130
|
+
type: String
|
|
16131
|
+
},
|
|
16132
|
+
|
|
16133
|
+
/**
|
|
16134
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
16135
|
+
*/
|
|
16136
|
+
setCustomValidityRangeUnderflow: {
|
|
16137
|
+
type: String
|
|
16138
|
+
},
|
|
16139
|
+
|
|
16140
|
+
/**
|
|
16141
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
16142
|
+
*/
|
|
16143
|
+
setCustomValidityTooLong: {
|
|
16144
|
+
type: String
|
|
16145
|
+
},
|
|
16146
|
+
|
|
16147
|
+
/**
|
|
16148
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
16149
|
+
*/
|
|
16150
|
+
setCustomValidityTooShort: {
|
|
16151
|
+
type: String
|
|
16152
|
+
},
|
|
16153
|
+
|
|
16154
|
+
/**
|
|
16155
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
16156
|
+
*/
|
|
16157
|
+
setCustomValidityValueMissing: {
|
|
16158
|
+
type: String
|
|
16159
|
+
},
|
|
16160
|
+
|
|
16161
|
+
/**
|
|
16162
|
+
* Custom help text message for email type validity.
|
|
16163
|
+
*/
|
|
16164
|
+
customValidityTypeEmail: {
|
|
16165
|
+
type: String
|
|
16166
|
+
},
|
|
16167
|
+
|
|
16168
|
+
/**
|
|
16169
|
+
* 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`.
|
|
16170
|
+
*/
|
|
16171
|
+
spellcheck: {
|
|
16172
|
+
type: String
|
|
16173
|
+
},
|
|
16174
|
+
|
|
16175
|
+
/**
|
|
16176
|
+
* 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`.
|
|
16177
|
+
*/
|
|
16178
|
+
type: {
|
|
16179
|
+
type: String,
|
|
16180
|
+
reflect: true
|
|
16181
|
+
},
|
|
16182
|
+
|
|
16183
|
+
/**
|
|
16184
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
16185
|
+
*/
|
|
16186
|
+
value: {
|
|
16187
|
+
type: String
|
|
16188
|
+
},
|
|
16189
|
+
|
|
16190
|
+
/**
|
|
16191
|
+
* Sets validation mode to re-eval with each input.
|
|
16192
|
+
*/
|
|
16193
|
+
validateOnInput: {
|
|
16194
|
+
type: Boolean
|
|
16195
|
+
},
|
|
16196
|
+
|
|
16197
|
+
/**
|
|
16198
|
+
* Specifies the `validityState` this element is in.
|
|
16199
|
+
*/
|
|
16200
|
+
validity: {
|
|
16201
|
+
type: String,
|
|
16202
|
+
reflect: true
|
|
16203
|
+
}
|
|
16204
|
+
};
|
|
16205
|
+
}
|
|
16206
|
+
|
|
16207
|
+
|
|
16208
|
+
static get styles() {
|
|
16209
|
+
return [
|
|
16210
|
+
i$2`${colorCss$3}`,
|
|
16211
|
+
i$2`${styleCss$3}`,
|
|
16212
|
+
i$2`${tokensCss$3}`
|
|
16213
|
+
];
|
|
16214
|
+
}
|
|
15757
16215
|
|
|
15758
16216
|
connectedCallback() {
|
|
15759
16217
|
super.connectedCallback();
|
|
@@ -16133,7 +16591,7 @@ class BaseInput extends r {
|
|
|
16133
16591
|
* @return {void}
|
|
16134
16592
|
*/
|
|
16135
16593
|
handleInput() {
|
|
16136
|
-
// Prevent non-
|
|
16594
|
+
// Prevent non-number characters from being entered on credit card fields.
|
|
16137
16595
|
if (this.type === 'credit-card') {
|
|
16138
16596
|
this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
|
|
16139
16597
|
}
|
|
@@ -16219,6 +16677,13 @@ class BaseInput extends r {
|
|
|
16219
16677
|
this.validation.validate(this);
|
|
16220
16678
|
}
|
|
16221
16679
|
|
|
16680
|
+
/**
|
|
16681
|
+
* Resets component to initial state.
|
|
16682
|
+
* @returns {void}
|
|
16683
|
+
*/
|
|
16684
|
+
reset() {
|
|
16685
|
+
this.validation.reset(this);
|
|
16686
|
+
}
|
|
16222
16687
|
|
|
16223
16688
|
/**
|
|
16224
16689
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
@@ -16261,30 +16726,28 @@ class BaseInput extends r {
|
|
|
16261
16726
|
*/
|
|
16262
16727
|
getHelpText(type) {
|
|
16263
16728
|
if (type === 'password') {
|
|
16264
|
-
|
|
16729
|
+
return i18n(this.lang, 'password');
|
|
16265
16730
|
} else if (type === 'email') {
|
|
16266
|
-
|
|
16731
|
+
return i18n(this.lang, 'email');
|
|
16267
16732
|
} else if (type === 'credit-card') {
|
|
16268
|
-
|
|
16733
|
+
return i18n(this.lang, 'creditcard');
|
|
16269
16734
|
} else if (type === 'month-day-year') {
|
|
16270
|
-
|
|
16735
|
+
return i18n(this.lang, 'dateMMDDYYYY');
|
|
16271
16736
|
} else if (type === 'month-year') {
|
|
16272
|
-
|
|
16737
|
+
return i18n(this.lang, 'dateMMYY');
|
|
16273
16738
|
} else if (type === 'month-fullyear') {
|
|
16274
|
-
|
|
16739
|
+
return i18n(this.lang, 'dateMMYYYY');
|
|
16275
16740
|
} else if (type === 'year-month-day') {
|
|
16276
|
-
|
|
16741
|
+
return i18n(this.lang, 'dateYYYYMMDD');
|
|
16277
16742
|
} else if (type === 'month') {
|
|
16278
|
-
|
|
16743
|
+
return i18n(this.lang, 'dateMM');
|
|
16279
16744
|
} else if (type === 'year') {
|
|
16280
|
-
|
|
16745
|
+
return i18n(this.lang, 'dateYY');
|
|
16281
16746
|
} else if (type === 'fullYear') {
|
|
16282
|
-
|
|
16283
|
-
} else {
|
|
16284
|
-
this.helpText = '';
|
|
16747
|
+
return i18n(this.lang, 'dateYYYY');
|
|
16285
16748
|
}
|
|
16286
16749
|
|
|
16287
|
-
return
|
|
16750
|
+
return '';
|
|
16288
16751
|
}
|
|
16289
16752
|
|
|
16290
16753
|
/**
|
|
@@ -16366,7 +16829,7 @@ class BaseInput extends r {
|
|
|
16366
16829
|
this.maxLength = card.formatLength;
|
|
16367
16830
|
this.minLength = card.formatMinLength;
|
|
16368
16831
|
|
|
16369
|
-
this.
|
|
16832
|
+
this.errorMessage = card.errorMessage;
|
|
16370
16833
|
|
|
16371
16834
|
if (this.icon) {
|
|
16372
16835
|
this.inputIconName = card.cardIcon;
|
|
@@ -16386,63 +16849,63 @@ class BaseInput extends r {
|
|
|
16386
16849
|
name: 'Airlines',
|
|
16387
16850
|
regex: /^(?<num>1|2)\d{0}/u,
|
|
16388
16851
|
formatMinLength: 17,
|
|
16389
|
-
|
|
16852
|
+
errorMessage: CreditCardValidationMessage,
|
|
16390
16853
|
cardIcon: 'credit-card'
|
|
16391
16854
|
},
|
|
16392
16855
|
{
|
|
16393
16856
|
name: 'Commercial',
|
|
16394
16857
|
regex: /^(?<num>2)\d{0}/u,
|
|
16395
16858
|
formatMinLength: 8,
|
|
16396
|
-
|
|
16859
|
+
errorMessage: CreditCardValidationMessage,
|
|
16397
16860
|
cardIcon: 'credit-card'
|
|
16398
16861
|
},
|
|
16399
16862
|
{
|
|
16400
16863
|
name: 'Alaska Commercial',
|
|
16401
16864
|
regex: /^(?<num>27)\d{0}/u,
|
|
16402
16865
|
formatMinLength: 8,
|
|
16403
|
-
|
|
16866
|
+
errorMessage: CreditCardValidationMessage,
|
|
16404
16867
|
cardIcon: 'cc-alaska'
|
|
16405
16868
|
},
|
|
16406
16869
|
{
|
|
16407
16870
|
name: 'American Express',
|
|
16408
16871
|
regex: /^(?<num>34|37)\d{0}/u,
|
|
16409
16872
|
formatLength: 17,
|
|
16410
|
-
|
|
16873
|
+
errorMessage: CreditCardValidationMessage,
|
|
16411
16874
|
cardIcon: 'cc-amex'
|
|
16412
16875
|
},
|
|
16413
16876
|
{
|
|
16414
16877
|
name: 'Diners club',
|
|
16415
16878
|
regex: /^(?<num>36|38)\d{0}/u,
|
|
16416
16879
|
formatLength: 16,
|
|
16417
|
-
|
|
16880
|
+
errorMessage: CreditCardValidationMessage,
|
|
16418
16881
|
cardIcon: 'credit-card'
|
|
16419
16882
|
},
|
|
16420
16883
|
{
|
|
16421
16884
|
name: 'Visa',
|
|
16422
16885
|
regex: /^(?<num>4)\d{0}/u,
|
|
16423
16886
|
formatLength: 19,
|
|
16424
|
-
|
|
16887
|
+
errorMessage: CreditCardValidationMessage,
|
|
16425
16888
|
cardIcon: 'cc-visa'
|
|
16426
16889
|
},
|
|
16427
16890
|
{
|
|
16428
16891
|
name: 'Alaska Airlines Visa',
|
|
16429
16892
|
regex: /^(?<num>4147\s34|4888\s93|4800\s11|4313\s51|4313\s07)\d{0}/u,
|
|
16430
16893
|
formatLength: 19,
|
|
16431
|
-
|
|
16894
|
+
errorMessage: CreditCardValidationMessage,
|
|
16432
16895
|
cardIcon: 'cc-alaska'
|
|
16433
16896
|
},
|
|
16434
16897
|
{
|
|
16435
16898
|
name: 'Master Card',
|
|
16436
16899
|
regex: /^(?<num>5)\d{0}/u,
|
|
16437
16900
|
formatLength: 19,
|
|
16438
|
-
|
|
16901
|
+
errorMessage: CreditCardValidationMessage,
|
|
16439
16902
|
cardIcon: 'cc-mastercard'
|
|
16440
16903
|
},
|
|
16441
16904
|
{
|
|
16442
16905
|
name: 'Discover Card',
|
|
16443
16906
|
regex: /^(?<num>6)\d{0}/u,
|
|
16444
16907
|
formatLength: 19,
|
|
16445
|
-
|
|
16908
|
+
errorMessage: CreditCardValidationMessage,
|
|
16446
16909
|
cardIcon: 'cc-discover'
|
|
16447
16910
|
}
|
|
16448
16911
|
];
|
|
@@ -16450,7 +16913,7 @@ class BaseInput extends r {
|
|
|
16450
16913
|
let type = {
|
|
16451
16914
|
name: 'Default Card',
|
|
16452
16915
|
formatLength: 19,
|
|
16453
|
-
|
|
16916
|
+
errorMessage: CreditCardValidationMessage,
|
|
16454
16917
|
cardIcon: 'credit-card'
|
|
16455
16918
|
};
|
|
16456
16919
|
|
|
@@ -16572,7 +17035,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
16572
17035
|
return _fetchMap.get(uri);
|
|
16573
17036
|
};
|
|
16574
17037
|
|
|
16575
|
-
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}`;
|
|
17038
|
+
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}`;
|
|
16576
17039
|
|
|
16577
17040
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
16578
17041
|
// See LICENSE in the project root for license information.
|
|
@@ -16839,7 +17302,8 @@ class AuroIcon extends BaseIcon {
|
|
|
16839
17302
|
};
|
|
16840
17303
|
|
|
16841
17304
|
const classes = {
|
|
16842
|
-
'label': this.label
|
|
17305
|
+
'label': this.label,
|
|
17306
|
+
'wrapper': true,
|
|
16843
17307
|
};
|
|
16844
17308
|
|
|
16845
17309
|
return x`
|
|
@@ -16863,7 +17327,7 @@ class AuroIcon extends BaseIcon {
|
|
|
16863
17327
|
}
|
|
16864
17328
|
}
|
|
16865
17329
|
|
|
16866
|
-
var iconVersion = '6.1.
|
|
17330
|
+
var iconVersion = '6.1.2';
|
|
16867
17331
|
|
|
16868
17332
|
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}`;
|
|
16869
17333
|
|
|
@@ -17215,6 +17679,7 @@ class AuroButton extends r {
|
|
|
17215
17679
|
const classes = {
|
|
17216
17680
|
'util_insetLg--squish': true,
|
|
17217
17681
|
'auro-button': true,
|
|
17682
|
+
'auroButton': true,
|
|
17218
17683
|
'auro-button--rounded': this.rounded,
|
|
17219
17684
|
'auro-button--slim': this.slim,
|
|
17220
17685
|
'auro-button--iconOnly': this.iconOnly,
|
|
@@ -17254,7 +17719,7 @@ class AuroButton extends r {
|
|
|
17254
17719
|
}
|
|
17255
17720
|
}
|
|
17256
17721
|
|
|
17257
|
-
var buttonVersion = '8.2.
|
|
17722
|
+
var buttonVersion = '8.2.2';
|
|
17258
17723
|
|
|
17259
17724
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
17260
17725
|
// See LICENSE in the project root for license information.
|
|
@@ -17473,7 +17938,6 @@ class AuroInput extends BaseInput {
|
|
|
17473
17938
|
<p class="inputElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
17474
17939
|
${this.errorMessage}
|
|
17475
17940
|
</p>`
|
|
17476
|
-
|
|
17477
17941
|
}
|
|
17478
17942
|
`;
|
|
17479
17943
|
}
|
|
@@ -17489,25 +17953,6 @@ var inputVersion = '4.2.0';
|
|
|
17489
17953
|
|
|
17490
17954
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
17491
17955
|
/**
|
|
17492
|
-
* @prop {String} value - Value selected for the date picker.
|
|
17493
|
-
* @prop {String} valueEnd - Value selected for the second date picker when using date range.
|
|
17494
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
17495
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
17496
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
17497
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
17498
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
17499
|
-
* @attr {String} setCustomValidityValueMissing - Help text message to display when validity = `valueMissing`.
|
|
17500
|
-
* @attr {String} calendarStartDate - The first date that may be displayed in the calendar.
|
|
17501
|
-
* @attr {String} calendarEndDate - The last date that may be displayed in the calendar
|
|
17502
|
-
* @attr {String} calendarFocusDate - The date that will first be visually rendered to the user in the calendar.
|
|
17503
|
-
* @attr {Boolean} disabled - If set, disables the datepicker.
|
|
17504
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
17505
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
17506
|
-
* @attr {Boolean} range - If set, turns on date range functionality in auro-calendar.
|
|
17507
|
-
* @attr {String} centralDate - The date that determines the currently visible month.
|
|
17508
|
-
* @attr {String} maxDate - Maximum date. All dates after will be disabled.
|
|
17509
|
-
* @attr {String} minDate - Minimum date. All dates before will be disabled.
|
|
17510
|
-
* @attr {Array} monthNames = Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
17511
17956
|
* @slot helpText - Defines the content of the helpText.
|
|
17512
17957
|
* @slot mobileDateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
17513
17958
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -17604,7 +18049,15 @@ class AuroDatePicker extends r$7 {
|
|
|
17604
18049
|
* Generate unique names for dependency components.
|
|
17605
18050
|
*/
|
|
17606
18051
|
const versioning = new AuroDependencyVersioning$2();
|
|
18052
|
+
|
|
18053
|
+
/**
|
|
18054
|
+
* @private
|
|
18055
|
+
*/
|
|
17607
18056
|
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
18057
|
+
|
|
18058
|
+
/**
|
|
18059
|
+
* @private
|
|
18060
|
+
*/
|
|
17608
18061
|
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
17609
18062
|
}
|
|
17610
18063
|
|
|
@@ -17614,103 +18067,155 @@ class AuroDatePicker extends r$7 {
|
|
|
17614
18067
|
static get properties() {
|
|
17615
18068
|
return {
|
|
17616
18069
|
// ...super.properties,
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
noValidate: {
|
|
17622
|
-
type: Boolean
|
|
17623
|
-
},
|
|
17624
|
-
setCustomValidity: {
|
|
17625
|
-
type: String,
|
|
17626
|
-
reflect: true
|
|
17627
|
-
},
|
|
17628
|
-
setCustomValidityRangeUnderflow: {
|
|
17629
|
-
type: String,
|
|
17630
|
-
reflect: true
|
|
17631
|
-
},
|
|
17632
|
-
setCustomValidityRangeOverflow: {
|
|
18070
|
+
/**
|
|
18071
|
+
* The last date that may be displayed in the calendar.
|
|
18072
|
+
*/
|
|
18073
|
+
calendarEndDate: {
|
|
17633
18074
|
type: String,
|
|
17634
18075
|
reflect: true
|
|
17635
18076
|
},
|
|
17636
|
-
|
|
18077
|
+
|
|
18078
|
+
/**
|
|
18079
|
+
* The date that will first be visually rendered to the user in the calendar.
|
|
18080
|
+
*/
|
|
18081
|
+
calendarFocusDate: {
|
|
17637
18082
|
type: String,
|
|
17638
18083
|
reflect: true
|
|
17639
18084
|
},
|
|
17640
|
-
|
|
18085
|
+
|
|
18086
|
+
/**
|
|
18087
|
+
* The first date that may be displayed in the calendar.
|
|
18088
|
+
*/
|
|
18089
|
+
calendarStartDate: {
|
|
17641
18090
|
type: String,
|
|
17642
18091
|
reflect: true
|
|
17643
18092
|
},
|
|
17644
|
-
|
|
17645
|
-
|
|
17646
|
-
|
|
18093
|
+
|
|
18094
|
+
/**
|
|
18095
|
+
* The date that determines the currently visible month.
|
|
18096
|
+
*/
|
|
18097
|
+
centralDate: {
|
|
18098
|
+
type: String
|
|
17647
18099
|
},
|
|
18100
|
+
|
|
18101
|
+
/**
|
|
18102
|
+
* If set, disables the datepicker.
|
|
18103
|
+
*/
|
|
17648
18104
|
disabled: {
|
|
17649
18105
|
type: Boolean,
|
|
17650
18106
|
reflect: true
|
|
17651
18107
|
},
|
|
17652
|
-
|
|
17653
|
-
|
|
17654
|
-
|
|
17655
|
-
|
|
17656
|
-
|
|
17657
|
-
type: String,
|
|
17658
|
-
reflect: true
|
|
17659
|
-
},
|
|
17660
|
-
value: {
|
|
17661
|
-
type: String,
|
|
17662
|
-
reflect: true
|
|
17663
|
-
},
|
|
17664
|
-
valueEnd: {
|
|
18108
|
+
|
|
18109
|
+
/**
|
|
18110
|
+
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
18111
|
+
*/
|
|
18112
|
+
error: {
|
|
17665
18113
|
type: String,
|
|
17666
18114
|
reflect: true
|
|
17667
18115
|
},
|
|
17668
|
-
|
|
17669
|
-
|
|
17670
|
-
|
|
18116
|
+
|
|
18117
|
+
/**
|
|
18118
|
+
* Maximum date. All dates after will be disabled.
|
|
18119
|
+
*/
|
|
17671
18120
|
maxDate: {
|
|
17672
18121
|
type: String,
|
|
17673
18122
|
reflect: true
|
|
17674
18123
|
},
|
|
18124
|
+
|
|
18125
|
+
/**
|
|
18126
|
+
* Minimum date. All dates before will be disabled.
|
|
18127
|
+
*/
|
|
17675
18128
|
minDate: {
|
|
17676
18129
|
type: String,
|
|
17677
18130
|
reflect: true
|
|
17678
18131
|
},
|
|
18132
|
+
|
|
18133
|
+
/**
|
|
18134
|
+
* Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
18135
|
+
*/
|
|
17679
18136
|
monthNames: {
|
|
17680
18137
|
type: Array
|
|
17681
18138
|
},
|
|
17682
|
-
|
|
17683
|
-
|
|
17684
|
-
|
|
18139
|
+
|
|
18140
|
+
/**
|
|
18141
|
+
* If set, disables auto-validation on blur.
|
|
18142
|
+
*/
|
|
18143
|
+
noValidate: {
|
|
18144
|
+
type: Boolean
|
|
17685
18145
|
},
|
|
17686
|
-
|
|
17687
|
-
|
|
18146
|
+
|
|
18147
|
+
/**
|
|
18148
|
+
* If set, turns on date range functionality in auro-calendar.
|
|
18149
|
+
*/
|
|
18150
|
+
range: {
|
|
18151
|
+
type: Boolean,
|
|
17688
18152
|
reflect: true
|
|
17689
18153
|
},
|
|
17690
|
-
|
|
17691
|
-
|
|
18154
|
+
|
|
18155
|
+
/**
|
|
18156
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
18157
|
+
*/
|
|
18158
|
+
required: {
|
|
18159
|
+
type: Boolean,
|
|
17692
18160
|
reflect: true
|
|
17693
18161
|
},
|
|
17694
18162
|
|
|
17695
18163
|
/**
|
|
17696
|
-
*
|
|
18164
|
+
* Sets a custom help text message to display for all validityStates.
|
|
17697
18165
|
*/
|
|
17698
|
-
|
|
18166
|
+
setCustomValidity: {
|
|
18167
|
+
type: String
|
|
18168
|
+
},
|
|
17699
18169
|
|
|
17700
18170
|
/**
|
|
17701
|
-
*
|
|
18171
|
+
* Custom help text message to display when validity = `customError`.
|
|
17702
18172
|
*/
|
|
17703
|
-
|
|
18173
|
+
setCustomValidityCustomError: {
|
|
18174
|
+
type: String
|
|
18175
|
+
},
|
|
17704
18176
|
|
|
17705
18177
|
/**
|
|
17706
|
-
*
|
|
18178
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17707
18179
|
*/
|
|
17708
|
-
|
|
18180
|
+
setCustomValidityRangeOverflow: {
|
|
18181
|
+
type: String
|
|
18182
|
+
},
|
|
17709
18183
|
|
|
17710
18184
|
/**
|
|
17711
|
-
*
|
|
18185
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
18186
|
+
*/
|
|
18187
|
+
setCustomValidityRangeUnderflow: {
|
|
18188
|
+
type: String
|
|
18189
|
+
},
|
|
18190
|
+
|
|
18191
|
+
/**
|
|
18192
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
18193
|
+
*/
|
|
18194
|
+
setCustomValidityValueMissing: {
|
|
18195
|
+
type: String
|
|
18196
|
+
},
|
|
18197
|
+
|
|
18198
|
+
/**
|
|
18199
|
+
* Specifies the `validityState` this element is in.
|
|
17712
18200
|
*/
|
|
17713
|
-
|
|
18201
|
+
validity: {
|
|
18202
|
+
type: String,
|
|
18203
|
+
reflect: true
|
|
18204
|
+
},
|
|
18205
|
+
|
|
18206
|
+
/**
|
|
18207
|
+
* Value selected for the datepicker.
|
|
18208
|
+
*/
|
|
18209
|
+
value: {
|
|
18210
|
+
type: String
|
|
18211
|
+
},
|
|
18212
|
+
|
|
18213
|
+
/**
|
|
18214
|
+
* Value selected for the second datepicker when using date range.
|
|
18215
|
+
*/
|
|
18216
|
+
valueEnd: {
|
|
18217
|
+
type: String
|
|
18218
|
+
}
|
|
17714
18219
|
};
|
|
17715
18220
|
}
|
|
17716
18221
|
|
|
@@ -17832,30 +18337,6 @@ class AuroDatePicker extends r$7 {
|
|
|
17832
18337
|
return dateStr;
|
|
17833
18338
|
}
|
|
17834
18339
|
|
|
17835
|
-
/**
|
|
17836
|
-
* Return appropriate error message.
|
|
17837
|
-
* @param {Object} evt - Event passed in from auro-input when the event triggered this function.
|
|
17838
|
-
* @private
|
|
17839
|
-
*/
|
|
17840
|
-
getErrorMessage(evt) {
|
|
17841
|
-
if (evt) {
|
|
17842
|
-
const inputClass = evt.target.getAttribute('class');
|
|
17843
|
-
if (inputClass === 'dateFrom') {
|
|
17844
|
-
if (this.inputList[0].validity && this.inputList[0].validity !== 'valid') {
|
|
17845
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17846
|
-
} else {
|
|
17847
|
-
this.errorMessage = undefined;
|
|
17848
|
-
}
|
|
17849
|
-
}
|
|
17850
|
-
|
|
17851
|
-
if (inputClass === 'dateTo') {
|
|
17852
|
-
if (!this.errorMessage && this.inputList[1].validity && this.inputList[1].validity !== 'valid') {
|
|
17853
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17854
|
-
}
|
|
17855
|
-
}
|
|
17856
|
-
}
|
|
17857
|
-
}
|
|
17858
|
-
|
|
17859
18340
|
/**
|
|
17860
18341
|
* Changes the calendar's visibility to reflect the value of the central date attribute.
|
|
17861
18342
|
* @private
|
|
@@ -17964,13 +18445,13 @@ class AuroDatePicker extends r$7 {
|
|
|
17964
18445
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
17965
18446
|
if (evt.detail.validity === 'customError') {
|
|
17966
18447
|
this.validity = evt.detail.validity;
|
|
17967
|
-
this.
|
|
18448
|
+
this.errorMessage = evt.detail.message;
|
|
17968
18449
|
} else if (evt.target === this.inputList[0]) {
|
|
17969
18450
|
this.validity = evt.detail.validity;
|
|
17970
|
-
this.
|
|
18451
|
+
this.errorMessage = evt.detail.message;
|
|
17971
18452
|
} else if (this.inputList.length > 1 && evt.target === this.inputList[1] && (this.inputList[0].validity === 'valid' || this.inputList[0].validity === undefined)) {
|
|
17972
18453
|
this.validity = evt.detail.validity;
|
|
17973
|
-
this.
|
|
18454
|
+
this.errorMessage = evt.detail.message;
|
|
17974
18455
|
}
|
|
17975
18456
|
});
|
|
17976
18457
|
});
|
|
@@ -18121,10 +18602,11 @@ class AuroDatePicker extends r$7 {
|
|
|
18121
18602
|
if (!this.value || !this.util.validDateStr(this.value)) {
|
|
18122
18603
|
this.value = newDate;
|
|
18123
18604
|
} else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd)) {
|
|
18124
|
-
|
|
18125
18605
|
// verify the date is after this.value to insure we are setting a proper range
|
|
18126
18606
|
if (new Date(newDate) >= new Date(this.value)) {
|
|
18127
18607
|
this.valueEnd = newDate;
|
|
18608
|
+
} else {
|
|
18609
|
+
this.value = newDate;
|
|
18128
18610
|
}
|
|
18129
18611
|
} else {
|
|
18130
18612
|
this.value = newDate;
|
|
@@ -18145,6 +18627,18 @@ class AuroDatePicker extends r$7 {
|
|
|
18145
18627
|
this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
|
|
18146
18628
|
}
|
|
18147
18629
|
|
|
18630
|
+
/**
|
|
18631
|
+
* Resets component to initial state.
|
|
18632
|
+
* @returns {void}
|
|
18633
|
+
*/
|
|
18634
|
+
reset() {
|
|
18635
|
+
this.inputList.forEach((input) => {
|
|
18636
|
+
input.reset();
|
|
18637
|
+
});
|
|
18638
|
+
|
|
18639
|
+
this.validation.reset(this);
|
|
18640
|
+
}
|
|
18641
|
+
|
|
18148
18642
|
updated(changedProperties) {
|
|
18149
18643
|
if (changedProperties.has('calendarFocusDate')) {
|
|
18150
18644
|
this.handleFocusDateChange();
|
|
@@ -18248,7 +18742,7 @@ class AuroDatePicker extends r$7 {
|
|
|
18248
18742
|
// This is done to prevent error icon from displaying on both inputs in range support
|
|
18249
18743
|
const lastInput = this.inputList[this.inputList.length - 1];
|
|
18250
18744
|
|
|
18251
|
-
if (this.error) {
|
|
18745
|
+
if (this.hasAttribute('error')) {
|
|
18252
18746
|
// Set the error attribute on the last input
|
|
18253
18747
|
lastInput.setAttribute('error', this.getAttribute('error'));
|
|
18254
18748
|
} else {
|
|
@@ -18270,11 +18764,14 @@ class AuroDatePicker extends r$7 {
|
|
|
18270
18764
|
// a later date than the current value date
|
|
18271
18765
|
if (changedProperties.has('minDate')) {
|
|
18272
18766
|
if (this.minDate) {
|
|
18273
|
-
const minDateMonth = Number(this.minDate.
|
|
18767
|
+
const minDateMonth = Number(this.minDate.split('/')[0]);
|
|
18768
|
+
const minDateYear = Number(this.minDate.split('/')[2]);
|
|
18274
18769
|
|
|
18275
18770
|
// This sets the visible month of the calendar to the minDate when the minDate is later
|
|
18276
18771
|
// than the current visible date
|
|
18277
|
-
if (
|
|
18772
|
+
if (minDateYear > this.calendar.year) {
|
|
18773
|
+
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18774
|
+
} else if (minDateYear === this.calendar.year && minDateMonth > this.calendar.month) {
|
|
18278
18775
|
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18279
18776
|
}
|
|
18280
18777
|
|
|
@@ -18295,6 +18792,17 @@ class AuroDatePicker extends r$7 {
|
|
|
18295
18792
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
18296
18793
|
// an earlier date than the current value date
|
|
18297
18794
|
if (changedProperties.has('maxDate')) {
|
|
18795
|
+
const maxDateMonth = Number(this.maxDate.split('/')[0]);
|
|
18796
|
+
const maxDateYear = Number(this.maxDate.split('/')[2]);
|
|
18797
|
+
|
|
18798
|
+
// This sets the visible month of the calendar to the maxDate when the maxDate is earlier
|
|
18799
|
+
// than the current visible date
|
|
18800
|
+
if (maxDateYear < this.calendar.year) {
|
|
18801
|
+
this.calendarRenderUtil.updateCentralDate(this, this.maxDate);
|
|
18802
|
+
} else if (maxDateYear === this.calendar.year && maxDateMonth < this.calendar.month) {
|
|
18803
|
+
this.calendarRenderUtil.updateCentralDate(this, this.maxDate);
|
|
18804
|
+
}
|
|
18805
|
+
|
|
18298
18806
|
if (this.maxDate) {
|
|
18299
18807
|
if (this.value) {
|
|
18300
18808
|
if (new Date(this.maxDate).getTime() < new Date(this.value).getTime()) {
|
|
@@ -18366,6 +18874,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18366
18874
|
noValidate
|
|
18367
18875
|
.max="${this.maxDate}"
|
|
18368
18876
|
.min="${this.minDate}"
|
|
18877
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18878
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18369
18879
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18370
18880
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18371
18881
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18383,6 +18893,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18383
18893
|
noValidate
|
|
18384
18894
|
.max="${this.maxDate}"
|
|
18385
18895
|
.min="${this.minDate}"
|
|
18896
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18897
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18386
18898
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18387
18899
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18388
18900
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18413,8 +18925,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18413
18925
|
? u$6`
|
|
18414
18926
|
<slot name="helpText"></slot>
|
|
18415
18927
|
` : u$6`
|
|
18416
|
-
<p class="datepickerElement-helpText"
|
|
18417
|
-
${this.
|
|
18928
|
+
<p class="datepickerElement-helpText" role="alert" aria-live="assertive" part="helpText">
|
|
18929
|
+
${this.errorMessage}
|
|
18418
18930
|
</p>`
|
|
18419
18931
|
}
|
|
18420
18932
|
</span>
|
|
@@ -18439,6 +18951,7 @@ function initExamples(initCount) {
|
|
|
18439
18951
|
updateMinDateExample();
|
|
18440
18952
|
validityExample();
|
|
18441
18953
|
inDialogExample();
|
|
18954
|
+
resetStateExample();
|
|
18442
18955
|
} catch (error) {
|
|
18443
18956
|
if (initCount <= 20) {
|
|
18444
18957
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|