@aurodesignsystem/auro-formkit 2.0.0-beta.1 → 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 +109 -0
- package/README.md +59 -59
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
- package/components/checkbox/.turbo/turbo-build.log +20 -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.md +65 -65
- package/components/checkbox/demo/api.min.js +184 -84
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +184 -84
- package/components/checkbox/dist/auro-checkbox-group.d.ts +35 -16
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +20 -11
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +184 -84
- package/components/checkbox/package.json +1 -1
- package/components/checkbox/src/auro-checkbox-group.js +46 -17
- package/components/checkbox/src/auro-checkbox.js +29 -12
- package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
- package/components/combobox/.turbo/turbo-build.log +22 -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.md +17 -15
- package/components/combobox/demo/api.min.js +754 -357
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +754 -357
- package/components/combobox/dist/auro-combobox.d.ts +11 -4
- 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 +752 -355
- 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 +75 -76
- 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 +59 -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.md +177 -131
- package/components/datepicker/demo/api.min.js +995 -559
- package/components/datepicker/demo/index.md +1 -1
- package/components/datepicker/demo/index.min.js +995 -559
- package/components/datepicker/dist/auro-datepicker.d.ts +89 -78
- 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 +995 -559
- package/components/datepicker/dist/inputVersion.d.ts +3 -0
- package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
- package/components/datepicker/package.json +3 -3
- package/components/datepicker/src/auro-datepicker.js +142 -104
- package/components/datepicker/src/dropdownVersion.js +1 -0
- package/components/datepicker/src/inputVersion.js +1 -0
- 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 +205 -81
- package/components/dropdown/demo/index.min.js +205 -81
- 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/index.js +205 -81
- package/components/dropdown/package.json +1 -1
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -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 +66 -16
- package/components/input/.turbo/turbo-build$colon$version.log +1 -1
- package/components/input/.turbo/turbo-build.log +79 -32
- 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.md +146 -311
- package/components/input/demo/api.min.js +365 -145
- package/components/input/demo/index.md +11 -61
- package/components/input/demo/index.min.js +365 -145
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +155 -84
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +365 -145
- 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 +1 -1
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +252 -85
- 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 +1 -1
- package/components/input/src/styles/input.scss +4 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +1 -1
- package/components/input/src/styles/label.scss +4 -7
- 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 -12
- package/components/input/src/styles/notificationIcons.scss +17 -25
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +15 -17
- 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.min.js +7 -7
- package/components/menu/demo/index.min.js +7 -7
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +7 -7
- package/components/menu/package.json +1 -1
- package/components/menu/src/auro-menu.js +1 -1
- package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
- package/components/radio/.turbo/turbo-build.log +23 -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.md +3 -1
- package/components/radio/demo/api.min.js +111 -57
- package/components/radio/demo/index.min.js +111 -57
- package/components/radio/dist/index.js +111 -57
- package/components/radio/package.json +1 -1
- package/components/radio/src/auro-radio-group.js +1 -1
- package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
- package/components/select/.turbo/turbo-build.log +30 -33
- 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.md +45 -110
- package/components/select/demo/api.min.js +434 -279
- package/components/select/demo/index.md +101 -59
- package/components/select/demo/index.min.js +434 -275
- package/components/select/dist/auro-select.d.ts +64 -51
- 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 +429 -257
- package/components/select/package.json +3 -3
- package/components/select/src/auro-select.js +101 -119
- 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 +104 -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/013a48308b893dac-meta.json +0 -1
- package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
- package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
- package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +0 -1
- package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
- package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
- package/.turbo/cache/0a2b0a4df8a0443f.tar.zst +0 -0
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +0 -1
- package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
- package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
- package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
- package/.turbo/cache/141bb7d9a95e288b-meta.json +0 -1
- package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +0 -1
- package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
- package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
- package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +0 -1
- package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +0 -1
- package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +0 -1
- package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +0 -1
- package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
- package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +0 -1
- package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
- package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
- package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
- package/.turbo/cache/64de7a53e02db647-meta.json +0 -1
- package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
- package/.turbo/cache/691a74627ec57993-meta.json +0 -1
- package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +0 -1
- package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
- package/.turbo/cache/6dd7058e6703cb35-meta.json +0 -1
- package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
- package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
- package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
- package/.turbo/cache/73e9073a5274616d-meta.json +0 -1
- package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +0 -1
- package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/786a822763403879-meta.json +0 -1
- package/.turbo/cache/786a822763403879.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +0 -1
- package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/8954c6073396fadd-meta.json +0 -1
- package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
- package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
- package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +0 -1
- package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a49cc58242467fdc-meta.json +0 -1
- package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +0 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
- package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
- package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
- package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +0 -1
- package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
- package/.turbo/cache/ba4418918621fbcd-meta.json +0 -1
- package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
- package/.turbo/cache/bb8b41cd0ade3986-meta.json +0 -1
- package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +0 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
- package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +0 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +0 -1
- package/.turbo/cache/cc81de9c0b452a7c.tar.zst +0 -0
- package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
- package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
- package/.turbo/cache/cd845bb6102c589a-meta.json +0 -1
- package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
- package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
- package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
- package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
- package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +0 -1
- package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +0 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +0 -1
- package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
- package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
|
@@ -263,33 +263,33 @@ function resetStateExample() {
|
|
|
263
263
|
* Copyright 2019 Google LLC
|
|
264
264
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
265
265
|
*/
|
|
266
|
-
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;
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
269
|
* @license
|
|
270
270
|
* Copyright 2017 Google LLC
|
|
271
271
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
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
|
|
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");
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
275
|
* @license
|
|
276
276
|
* Copyright 2017 Google LLC
|
|
277
277
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
278
278
|
*/
|
|
279
|
-
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};
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* @license
|
|
283
283
|
* Copyright 2017 Google LLC
|
|
284
284
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
285
|
-
*/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");
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
288
|
* @license
|
|
289
289
|
* Copyright 2020 Google LLC
|
|
290
290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
291
291
|
*/
|
|
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(
|
|
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);
|
|
293
293
|
|
|
294
294
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
295
295
|
// See LICENSE in the project root for license information.
|
|
@@ -395,30 +395,87 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
/**
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
* @param {
|
|
398
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
399
|
+
*
|
|
400
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
401
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.
|
|
402
421
|
*/
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
+
]
|
|
410
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';
|
|
411
466
|
}
|
|
412
|
-
|
|
413
|
-
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
414
|
-
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
415
|
-
elem.validity = 'tooShort';
|
|
416
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
417
|
-
}
|
|
418
467
|
|
|
419
|
-
if (
|
|
420
|
-
|
|
421
|
-
|
|
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
|
+
});
|
|
478
|
+
}
|
|
422
479
|
}
|
|
423
480
|
}
|
|
424
481
|
|
|
@@ -434,33 +491,32 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
434
491
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
435
492
|
|
|
436
493
|
if (!elem.value.match(emailRegex)) {
|
|
437
|
-
elem.validity = '
|
|
438
|
-
elem.
|
|
494
|
+
elem.validity = 'patternMismatch';
|
|
495
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
439
496
|
}
|
|
440
497
|
} else if (elem.type === 'credit-card') {
|
|
441
498
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
442
499
|
elem.validity = 'tooShort';
|
|
443
|
-
elem.
|
|
500
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
444
501
|
}
|
|
445
502
|
} else if (elem.type === 'number') {
|
|
446
503
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
447
504
|
elem.validity = 'rangeOverflow';
|
|
448
|
-
elem.
|
|
505
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
449
506
|
}
|
|
450
507
|
|
|
451
|
-
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)) {
|
|
452
509
|
elem.validity = 'rangeUnderflow';
|
|
453
|
-
elem.
|
|
510
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
454
511
|
}
|
|
455
|
-
|
|
456
512
|
} else if (elem.type === 'month-day-year' ||
|
|
457
513
|
elem.type === 'month-year' ||
|
|
458
514
|
elem.type === 'month-fullYear' ||
|
|
459
515
|
elem.type === 'year-month-day'
|
|
460
516
|
) {
|
|
461
|
-
if (elem.value
|
|
517
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
462
518
|
elem.validity = 'tooShort';
|
|
463
|
-
elem.
|
|
519
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
464
520
|
} else {
|
|
465
521
|
const valueDate = new Date(elem.value);
|
|
466
522
|
|
|
@@ -470,7 +526,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
470
526
|
|
|
471
527
|
if (valueDate > maxDate) {
|
|
472
528
|
elem.validity = 'rangeOverflow';
|
|
473
|
-
elem.
|
|
529
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
474
530
|
}
|
|
475
531
|
}
|
|
476
532
|
|
|
@@ -480,7 +536,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
480
536
|
|
|
481
537
|
if (valueDate < minDate) {
|
|
482
538
|
elem.validity = 'rangeUnderflow';
|
|
483
|
-
elem.
|
|
539
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
484
540
|
}
|
|
485
541
|
}
|
|
486
542
|
}
|
|
@@ -503,10 +559,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
503
559
|
|
|
504
560
|
if (elem.hasAttribute('error')) {
|
|
505
561
|
elem.validity = 'customError';
|
|
506
|
-
elem.
|
|
562
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
507
563
|
} else if (validationShouldRun) {
|
|
508
564
|
elem.validity = 'valid';
|
|
509
|
-
elem.
|
|
565
|
+
elem.errorMessage = '';
|
|
510
566
|
|
|
511
567
|
/**
|
|
512
568
|
* Only validate once we interact with the datepicker
|
|
@@ -518,7 +574,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
518
574
|
let hasValue = elem.value && elem.value.length > 0;
|
|
519
575
|
|
|
520
576
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
521
|
-
if (this.auroInputElements
|
|
577
|
+
if (this.auroInputElements?.length === 2) {
|
|
522
578
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
523
579
|
hasValue = false;
|
|
524
580
|
}
|
|
@@ -526,31 +582,29 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
526
582
|
|
|
527
583
|
if (!hasValue && elem.required) {
|
|
528
584
|
elem.validity = 'valueMissing';
|
|
529
|
-
elem.
|
|
585
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
530
586
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
531
587
|
this.validateType(elem);
|
|
532
|
-
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);
|
|
533
591
|
}
|
|
534
592
|
}
|
|
535
593
|
|
|
536
|
-
if (this.auroInputElements
|
|
594
|
+
if (this.auroInputElements?.length > 0) {
|
|
537
595
|
elem.validity = this.auroInputElements[0].validity;
|
|
538
|
-
elem.
|
|
596
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
539
597
|
|
|
540
|
-
if (elem.validity === 'valid') {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
544
|
-
}
|
|
598
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
599
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
600
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
545
601
|
}
|
|
546
602
|
}
|
|
547
603
|
|
|
548
604
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
553
|
-
}
|
|
605
|
+
// Use the validity message override if it is declared
|
|
606
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
607
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
554
608
|
}
|
|
555
609
|
|
|
556
610
|
this.getErrorMessage(elem);
|
|
@@ -596,18 +650,18 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
596
650
|
if (elem.validity !== 'valid') {
|
|
597
651
|
if (elem.setCustomValidity) {
|
|
598
652
|
elem.errorMessage = elem.setCustomValidity;
|
|
599
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
653
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
600
654
|
const input = elem.renderRoot.querySelector('input');
|
|
601
655
|
|
|
602
656
|
if (input.validationMessage.length > 0) {
|
|
603
657
|
elem.errorMessage = input.validationMessage;
|
|
604
658
|
}
|
|
605
|
-
} else if (this.inputElements &&
|
|
659
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
606
660
|
const firstInput = this.inputElements[0];
|
|
607
661
|
|
|
608
662
|
if (firstInput.validationMessage.length > 0) {
|
|
609
663
|
elem.errorMessage = firstInput.validationMessage;
|
|
610
|
-
} else if (this.inputElements
|
|
664
|
+
} else if (this.inputElements?.length === 2) {
|
|
611
665
|
const secondInput = this.inputElements[1];
|
|
612
666
|
|
|
613
667
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -950,7 +1004,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
950
1004
|
* @license
|
|
951
1005
|
* Copyright 2017 Google LLC
|
|
952
1006
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
953
|
-
*/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)}
|
|
954
1008
|
|
|
955
1009
|
/**
|
|
956
1010
|
* @module constants
|
|
@@ -6675,7 +6729,7 @@ function cleanEscapedString(input) {
|
|
|
6675
6729
|
* //=> Mon Sep 01 2014 00:00:00
|
|
6676
6730
|
*/
|
|
6677
6731
|
function subMonths(date, amount, options) {
|
|
6678
|
-
return addMonths(date, -
|
|
6732
|
+
return addMonths(date, -1, options);
|
|
6679
6733
|
}
|
|
6680
6734
|
|
|
6681
6735
|
/**
|
|
@@ -6705,7 +6759,7 @@ function subMonths(date, amount, options) {
|
|
|
6705
6759
|
* //=> Tue Sep 01 2009 00:00:00
|
|
6706
6760
|
*/
|
|
6707
6761
|
function subYears(date, amount, options) {
|
|
6708
|
-
return addYears(date, -
|
|
6762
|
+
return addYears(date, -1, options);
|
|
6709
6763
|
}
|
|
6710
6764
|
|
|
6711
6765
|
class RangeDatepickerCell extends r$7 {
|
|
@@ -6746,8 +6800,8 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6746
6800
|
@focus="${this.handleHover}"
|
|
6747
6801
|
class="day ${this.isCurrentDate ? 'currentDate' : ''} ${this.isSelected(this.selected)} ${this.isHovered(this.hovered)} ${this.isEnabled(this.day, this.min, this.max, this.disabledDays)}"
|
|
6748
6802
|
?disabled="${this.disabled}"
|
|
6749
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
6750
|
-
<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>
|
|
6751
6805
|
</button>
|
|
6752
6806
|
`;
|
|
6753
6807
|
}
|
|
@@ -6787,7 +6841,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6787
6841
|
let _a;
|
|
6788
6842
|
if (!this.disabled) {
|
|
6789
6843
|
this.dispatchEvent(new CustomEvent('date-is-selected', {
|
|
6790
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6844
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6791
6845
|
}));
|
|
6792
6846
|
}
|
|
6793
6847
|
}
|
|
@@ -6795,7 +6849,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6795
6849
|
handleHover() {
|
|
6796
6850
|
let _a;
|
|
6797
6851
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
6798
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6852
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6799
6853
|
}));
|
|
6800
6854
|
}
|
|
6801
6855
|
|
|
@@ -6896,18 +6950,18 @@ RangeDatepickerCell.styles = i$c`
|
|
|
6896
6950
|
opacity: 0.4;
|
|
6897
6951
|
}
|
|
6898
6952
|
`;
|
|
6899
|
-
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day",
|
|
6900
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected",
|
|
6901
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered",
|
|
6902
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo",
|
|
6903
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom",
|
|
6904
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month",
|
|
6905
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min",
|
|
6906
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max",
|
|
6907
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled",
|
|
6908
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
6909
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate",
|
|
6910
|
-
__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);
|
|
6911
6965
|
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6912
6966
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6913
6967
|
|
|
@@ -6986,11 +7040,11 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6986
7040
|
<div class="table">
|
|
6987
7041
|
<div class="thead">
|
|
6988
7042
|
<div class="tr">
|
|
6989
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
7043
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map((dayNameOfWeek) => this.renderDayOfWeek(dayNameOfWeek))}
|
|
6990
7044
|
</div>
|
|
6991
7045
|
</div>
|
|
6992
7046
|
<div class="tbody">
|
|
6993
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
7047
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map((week) => this.renderWeek(week))}
|
|
6994
7048
|
</div>
|
|
6995
7049
|
</div>
|
|
6996
7050
|
</div>
|
|
@@ -7189,7 +7243,7 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7189
7243
|
|
|
7190
7244
|
handleOpenYearSelection() {
|
|
7191
7245
|
let _a;
|
|
7192
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
7246
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
7193
7247
|
const index = menu.items.findIndex((item) => item.value === this.year.toString());
|
|
7194
7248
|
menu.select(index);
|
|
7195
7249
|
menu.show();
|
|
@@ -7197,9 +7251,9 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7197
7251
|
|
|
7198
7252
|
handleYearSelected() {
|
|
7199
7253
|
let _a;
|
|
7200
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
7254
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
7201
7255
|
const selected = menu.selected;
|
|
7202
|
-
this.year = parseInt(selected === null || selected ===
|
|
7256
|
+
this.year = parseInt(selected === null || selected === undefined ? undefined : selected.value, 10);
|
|
7203
7257
|
}
|
|
7204
7258
|
|
|
7205
7259
|
handleDateHovered(event) {
|
|
@@ -7211,12 +7265,12 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7211
7265
|
|
|
7212
7266
|
handleNextMonth() {
|
|
7213
7267
|
let _a, _b;
|
|
7214
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
7215
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
7216
|
-
tbody === null || tbody ===
|
|
7217
|
-
tbody === null || tbody ===
|
|
7218
|
-
monthName === null || monthName ===
|
|
7219
|
-
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');
|
|
7220
7274
|
const month = parse(this.month, 'MM', new Date());
|
|
7221
7275
|
const monthPlusDate = addMonths(month, 1);
|
|
7222
7276
|
const monthPlusString = format(monthPlusDate, 'MM', {
|
|
@@ -7233,20 +7287,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7233
7287
|
}
|
|
7234
7288
|
this.dispatchEvent(new CustomEvent('next-month'));
|
|
7235
7289
|
setTimeout(() => {
|
|
7236
|
-
tbody === null || tbody ===
|
|
7237
|
-
tbody === null || tbody ===
|
|
7238
|
-
tbody === null || tbody ===
|
|
7239
|
-
monthName === null || monthName ===
|
|
7240
|
-
monthName === null || monthName ===
|
|
7241
|
-
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');
|
|
7242
7296
|
setTimeout(() => {
|
|
7243
|
-
tbody === null || tbody ===
|
|
7244
|
-
tbody === null || tbody ===
|
|
7245
|
-
monthName === null || monthName ===
|
|
7246
|
-
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');
|
|
7247
7301
|
setTimeout(() => {
|
|
7248
|
-
tbody === null || tbody ===
|
|
7249
|
-
monthName === null || monthName ===
|
|
7302
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7303
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7250
7304
|
}, 100);
|
|
7251
7305
|
}, 100);
|
|
7252
7306
|
}, 100);
|
|
@@ -7254,21 +7308,21 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7254
7308
|
|
|
7255
7309
|
handlePrevMonth() {
|
|
7256
7310
|
let _a, _b;
|
|
7257
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
7258
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
7259
|
-
tbody === null || tbody ===
|
|
7260
|
-
tbody === null || tbody ===
|
|
7261
|
-
monthName === null || monthName ===
|
|
7262
|
-
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');
|
|
7263
7317
|
const month = parse(this.month, 'MM', new Date());
|
|
7264
|
-
const monthMinusDate = subMonths(month
|
|
7318
|
+
const monthMinusDate = subMonths(month);
|
|
7265
7319
|
const monthMinusString = format(monthMinusDate, 'MM', {
|
|
7266
7320
|
locale: this.locale,
|
|
7267
7321
|
});
|
|
7268
7322
|
this.month = monthMinusString;
|
|
7269
7323
|
if (this.month === '12') {
|
|
7270
7324
|
const year = parse(this.year.toString(), 'yyyy', new Date());
|
|
7271
|
-
const yearMinusDate = subYears(year
|
|
7325
|
+
const yearMinusDate = subYears(year);
|
|
7272
7326
|
const yearMinusString = format(yearMinusDate, 'yyyy', {
|
|
7273
7327
|
locale: this.locale,
|
|
7274
7328
|
});
|
|
@@ -7276,20 +7330,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7276
7330
|
}
|
|
7277
7331
|
this.dispatchEvent(new CustomEvent('prev-month'));
|
|
7278
7332
|
setTimeout(() => {
|
|
7279
|
-
tbody === null || tbody ===
|
|
7280
|
-
tbody === null || tbody ===
|
|
7281
|
-
tbody === null || tbody ===
|
|
7282
|
-
monthName === null || monthName ===
|
|
7283
|
-
monthName === null || monthName ===
|
|
7284
|
-
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');
|
|
7285
7339
|
setTimeout(() => {
|
|
7286
|
-
tbody === null || tbody ===
|
|
7287
|
-
tbody === null || tbody ===
|
|
7288
|
-
monthName === null || monthName ===
|
|
7289
|
-
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');
|
|
7290
7344
|
setTimeout(() => {
|
|
7291
|
-
monthName === null || monthName ===
|
|
7292
|
-
monthName === null || monthName ===
|
|
7345
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7346
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7293
7347
|
}, 100);
|
|
7294
7348
|
}, 100);
|
|
7295
7349
|
}, 100);
|
|
@@ -7409,24 +7463,24 @@ RangeDatepickerCalendar.styles = i$c`
|
|
|
7409
7463
|
max-height: 200px;
|
|
7410
7464
|
}
|
|
7411
7465
|
`;
|
|
7412
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom",
|
|
7413
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo",
|
|
7414
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate",
|
|
7415
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange",
|
|
7416
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month",
|
|
7417
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow",
|
|
7418
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange",
|
|
7419
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next",
|
|
7420
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev",
|
|
7421
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year",
|
|
7422
|
-
__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);
|
|
7423
7477
|
__decorate([n$5({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7424
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max",
|
|
7425
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min",
|
|
7426
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
7427
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList",
|
|
7428
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek",
|
|
7429
|
-
__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);
|
|
7430
7484
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7431
7485
|
|
|
7432
7486
|
/**
|
|
@@ -7440,11 +7494,11 @@ const t$5={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
7440
7494
|
* @license
|
|
7441
7495
|
* Copyright 2018 Google LLC
|
|
7442
7496
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7443
|
-
*/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}});
|
|
7444
7498
|
|
|
7445
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)}}`;
|
|
7446
7500
|
|
|
7447
|
-
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)}`;
|
|
7448
7502
|
|
|
7449
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:""}`;
|
|
7450
7504
|
|
|
@@ -7629,11 +7683,11 @@ function isLayoutViewport() {
|
|
|
7629
7683
|
}
|
|
7630
7684
|
|
|
7631
7685
|
function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
7632
|
-
if (includeScale ===
|
|
7686
|
+
if (includeScale === undefined) {
|
|
7633
7687
|
includeScale = false;
|
|
7634
7688
|
}
|
|
7635
7689
|
|
|
7636
|
-
if (isFixedStrategy ===
|
|
7690
|
+
if (isFixedStrategy === undefined) {
|
|
7637
7691
|
isFixedStrategy = false;
|
|
7638
7692
|
}
|
|
7639
7693
|
|
|
@@ -7887,7 +7941,7 @@ function effect$1(_ref2) {
|
|
|
7887
7941
|
var state = _ref2.state,
|
|
7888
7942
|
options = _ref2.options;
|
|
7889
7943
|
var _options$element = options.element,
|
|
7890
|
-
arrowElement = _options$element ===
|
|
7944
|
+
arrowElement = _options$element === undefined ? '[data-popper-arrow]' : _options$element;
|
|
7891
7945
|
|
|
7892
7946
|
if (arrowElement == null) {
|
|
7893
7947
|
return;
|
|
@@ -7957,9 +8011,9 @@ function mapToStyles(_ref2) {
|
|
|
7957
8011
|
roundOffsets = _ref2.roundOffsets,
|
|
7958
8012
|
isFixed = _ref2.isFixed;
|
|
7959
8013
|
var _offsets$x = offsets.x,
|
|
7960
|
-
x = _offsets$x ===
|
|
8014
|
+
x = _offsets$x === undefined ? 0 : _offsets$x,
|
|
7961
8015
|
_offsets$y = offsets.y,
|
|
7962
|
-
y = _offsets$y ===
|
|
8016
|
+
y = _offsets$y === undefined ? 0 : _offsets$y;
|
|
7963
8017
|
|
|
7964
8018
|
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
7965
8019
|
x: x,
|
|
@@ -8039,11 +8093,11 @@ function computeStyles(_ref5) {
|
|
|
8039
8093
|
var state = _ref5.state,
|
|
8040
8094
|
options = _ref5.options;
|
|
8041
8095
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
8042
|
-
gpuAcceleration = _options$gpuAccelerat ===
|
|
8096
|
+
gpuAcceleration = _options$gpuAccelerat === undefined ? true : _options$gpuAccelerat,
|
|
8043
8097
|
_options$adaptive = options.adaptive,
|
|
8044
|
-
adaptive = _options$adaptive ===
|
|
8098
|
+
adaptive = _options$adaptive === undefined ? true : _options$adaptive,
|
|
8045
8099
|
_options$roundOffsets = options.roundOffsets,
|
|
8046
|
-
roundOffsets = _options$roundOffsets ===
|
|
8100
|
+
roundOffsets = _options$roundOffsets === undefined ? true : _options$roundOffsets;
|
|
8047
8101
|
var commonStyles = {
|
|
8048
8102
|
placement: getBasePlacement(state.placement),
|
|
8049
8103
|
variation: getVariation(state.placement),
|
|
@@ -8094,9 +8148,9 @@ function effect(_ref) {
|
|
|
8094
8148
|
instance = _ref.instance,
|
|
8095
8149
|
options = _ref.options;
|
|
8096
8150
|
var _options$scroll = options.scroll,
|
|
8097
|
-
scroll = _options$scroll ===
|
|
8151
|
+
scroll = _options$scroll === undefined ? true : _options$scroll,
|
|
8098
8152
|
_options$resize = options.resize,
|
|
8099
|
-
resize = _options$resize ===
|
|
8153
|
+
resize = _options$resize === undefined ? true : _options$resize;
|
|
8100
8154
|
var window = getWindow$1(state.elements.popper);
|
|
8101
8155
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
8102
8156
|
|
|
@@ -8211,7 +8265,7 @@ function getDocumentRect$1(element) {
|
|
|
8211
8265
|
|
|
8212
8266
|
var html = getDocumentElement$1(element);
|
|
8213
8267
|
var winScroll = getWindowScroll(element);
|
|
8214
|
-
var body = (_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8268
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body;
|
|
8215
8269
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
8216
8270
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
8217
8271
|
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
@@ -8262,12 +8316,12 @@ reference element's position.
|
|
|
8262
8316
|
function listScrollParents(element, list) {
|
|
8263
8317
|
var _element$ownerDocumen;
|
|
8264
8318
|
|
|
8265
|
-
if (list ===
|
|
8319
|
+
if (list === undefined) {
|
|
8266
8320
|
list = [];
|
|
8267
8321
|
}
|
|
8268
8322
|
|
|
8269
8323
|
var scrollParent = getScrollParent(element);
|
|
8270
|
-
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8324
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body);
|
|
8271
8325
|
var win = getWindow$1(scrollParent);
|
|
8272
8326
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
8273
8327
|
var updatedList = list.concat(target);
|
|
@@ -8406,25 +8460,25 @@ function computeOffsets(_ref) {
|
|
|
8406
8460
|
}
|
|
8407
8461
|
|
|
8408
8462
|
function detectOverflow$1(state, options) {
|
|
8409
|
-
if (options ===
|
|
8463
|
+
if (options === undefined) {
|
|
8410
8464
|
options = {};
|
|
8411
8465
|
}
|
|
8412
8466
|
|
|
8413
8467
|
var _options = options,
|
|
8414
8468
|
_options$placement = _options.placement,
|
|
8415
|
-
placement = _options$placement ===
|
|
8469
|
+
placement = _options$placement === undefined ? state.placement : _options$placement,
|
|
8416
8470
|
_options$strategy = _options.strategy,
|
|
8417
|
-
strategy = _options$strategy ===
|
|
8471
|
+
strategy = _options$strategy === undefined ? state.strategy : _options$strategy,
|
|
8418
8472
|
_options$boundary = _options.boundary,
|
|
8419
|
-
boundary = _options$boundary ===
|
|
8473
|
+
boundary = _options$boundary === undefined ? clippingParents : _options$boundary,
|
|
8420
8474
|
_options$rootBoundary = _options.rootBoundary,
|
|
8421
|
-
rootBoundary = _options$rootBoundary ===
|
|
8475
|
+
rootBoundary = _options$rootBoundary === undefined ? viewport : _options$rootBoundary,
|
|
8422
8476
|
_options$elementConte = _options.elementContext,
|
|
8423
|
-
elementContext = _options$elementConte ===
|
|
8477
|
+
elementContext = _options$elementConte === undefined ? popper : _options$elementConte,
|
|
8424
8478
|
_options$altBoundary = _options.altBoundary,
|
|
8425
|
-
altBoundary = _options$altBoundary ===
|
|
8479
|
+
altBoundary = _options$altBoundary === undefined ? false : _options$altBoundary,
|
|
8426
8480
|
_options$padding = _options.padding,
|
|
8427
|
-
padding = _options$padding ===
|
|
8481
|
+
padding = _options$padding === undefined ? 0 : _options$padding;
|
|
8428
8482
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
8429
8483
|
var altContext = elementContext === popper ? reference : popper;
|
|
8430
8484
|
var popperRect = state.rects.popper;
|
|
@@ -8462,7 +8516,7 @@ function detectOverflow$1(state, options) {
|
|
|
8462
8516
|
}
|
|
8463
8517
|
|
|
8464
8518
|
function computeAutoPlacement(state, options) {
|
|
8465
|
-
if (options ===
|
|
8519
|
+
if (options === undefined) {
|
|
8466
8520
|
options = {};
|
|
8467
8521
|
}
|
|
8468
8522
|
|
|
@@ -8473,7 +8527,7 @@ function computeAutoPlacement(state, options) {
|
|
|
8473
8527
|
padding = _options.padding,
|
|
8474
8528
|
flipVariations = _options.flipVariations,
|
|
8475
8529
|
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
8476
|
-
allowedAutoPlacements = _options$allowedAutoP ===
|
|
8530
|
+
allowedAutoPlacements = _options$allowedAutoP === undefined ? placements$1 : _options$allowedAutoP;
|
|
8477
8531
|
var variation = getVariation(placement);
|
|
8478
8532
|
var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
8479
8533
|
return getVariation(placement) === variation;
|
|
@@ -8520,16 +8574,16 @@ function flip$2(_ref) {
|
|
|
8520
8574
|
}
|
|
8521
8575
|
|
|
8522
8576
|
var _options$mainAxis = options.mainAxis,
|
|
8523
|
-
checkMainAxis = _options$mainAxis ===
|
|
8577
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8524
8578
|
_options$altAxis = options.altAxis,
|
|
8525
|
-
checkAltAxis = _options$altAxis ===
|
|
8579
|
+
checkAltAxis = _options$altAxis === undefined ? true : _options$altAxis,
|
|
8526
8580
|
specifiedFallbackPlacements = options.fallbackPlacements,
|
|
8527
8581
|
padding = options.padding,
|
|
8528
8582
|
boundary = options.boundary,
|
|
8529
8583
|
rootBoundary = options.rootBoundary,
|
|
8530
8584
|
altBoundary = options.altBoundary,
|
|
8531
8585
|
_options$flipVariatio = options.flipVariations,
|
|
8532
|
-
flipVariations = _options$flipVariatio ===
|
|
8586
|
+
flipVariations = _options$flipVariatio === undefined ? true : _options$flipVariatio,
|
|
8533
8587
|
allowedAutoPlacements = options.allowedAutoPlacements;
|
|
8534
8588
|
var preferredPlacement = state.options.placement;
|
|
8535
8589
|
var basePlacement = getBasePlacement(preferredPlacement);
|
|
@@ -8642,7 +8696,7 @@ var flip$3 = {
|
|
|
8642
8696
|
};
|
|
8643
8697
|
|
|
8644
8698
|
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
8645
|
-
if (preventedOffsets ===
|
|
8699
|
+
if (preventedOffsets === undefined) {
|
|
8646
8700
|
preventedOffsets = {
|
|
8647
8701
|
x: 0,
|
|
8648
8702
|
y: 0
|
|
@@ -8726,7 +8780,7 @@ function offset$2(_ref2) {
|
|
|
8726
8780
|
options = _ref2.options,
|
|
8727
8781
|
name = _ref2.name;
|
|
8728
8782
|
var _options$offset = options.offset,
|
|
8729
|
-
offset = _options$offset ===
|
|
8783
|
+
offset = _options$offset === undefined ? [0, 0] : _options$offset;
|
|
8730
8784
|
var data = placements$1.reduce(function (acc, placement) {
|
|
8731
8785
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
8732
8786
|
return acc;
|
|
@@ -8785,17 +8839,17 @@ function preventOverflow(_ref) {
|
|
|
8785
8839
|
options = _ref.options,
|
|
8786
8840
|
name = _ref.name;
|
|
8787
8841
|
var _options$mainAxis = options.mainAxis,
|
|
8788
|
-
checkMainAxis = _options$mainAxis ===
|
|
8842
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8789
8843
|
_options$altAxis = options.altAxis,
|
|
8790
|
-
checkAltAxis = _options$altAxis ===
|
|
8844
|
+
checkAltAxis = _options$altAxis === undefined ? false : _options$altAxis,
|
|
8791
8845
|
boundary = options.boundary,
|
|
8792
8846
|
rootBoundary = options.rootBoundary,
|
|
8793
8847
|
altBoundary = options.altBoundary,
|
|
8794
8848
|
padding = options.padding,
|
|
8795
8849
|
_options$tether = options.tether,
|
|
8796
|
-
tether = _options$tether ===
|
|
8850
|
+
tether = _options$tether === undefined ? true : _options$tether,
|
|
8797
8851
|
_options$tetherOffset = options.tetherOffset,
|
|
8798
|
-
tetherOffset = _options$tetherOffset ===
|
|
8852
|
+
tetherOffset = _options$tetherOffset === undefined ? 0 : _options$tetherOffset;
|
|
8799
8853
|
var overflow = detectOverflow$1(state, {
|
|
8800
8854
|
boundary: boundary,
|
|
8801
8855
|
rootBoundary: rootBoundary,
|
|
@@ -8862,7 +8916,7 @@ function preventOverflow(_ref) {
|
|
|
8862
8916
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
8863
8917
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent$1(state.elements.arrow);
|
|
8864
8918
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
8865
|
-
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ?
|
|
8919
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? undefined : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
8866
8920
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
8867
8921
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
8868
8922
|
var preventedOffset = within(tether ? min$1(min, tetherMin) : min, offset, tether ? max$1(max, tetherMax) : max);
|
|
@@ -8887,7 +8941,7 @@ function preventOverflow(_ref) {
|
|
|
8887
8941
|
|
|
8888
8942
|
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
8889
8943
|
|
|
8890
|
-
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ?
|
|
8944
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? undefined : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
8891
8945
|
|
|
8892
8946
|
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
8893
8947
|
|
|
@@ -8936,7 +8990,7 @@ function isElementScaled(element) {
|
|
|
8936
8990
|
|
|
8937
8991
|
|
|
8938
8992
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
8939
|
-
if (isFixed ===
|
|
8993
|
+
if (isFixed === undefined) {
|
|
8940
8994
|
isFixed = false;
|
|
8941
8995
|
}
|
|
8942
8996
|
|
|
@@ -9067,17 +9121,17 @@ function areValidElements() {
|
|
|
9067
9121
|
}
|
|
9068
9122
|
|
|
9069
9123
|
function popperGenerator(generatorOptions) {
|
|
9070
|
-
if (generatorOptions ===
|
|
9124
|
+
if (generatorOptions === undefined) {
|
|
9071
9125
|
generatorOptions = {};
|
|
9072
9126
|
}
|
|
9073
9127
|
|
|
9074
9128
|
var _generatorOptions = generatorOptions,
|
|
9075
9129
|
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
9076
|
-
defaultModifiers = _generatorOptions$def ===
|
|
9130
|
+
defaultModifiers = _generatorOptions$def === undefined ? [] : _generatorOptions$def,
|
|
9077
9131
|
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
9078
|
-
defaultOptions = _generatorOptions$def2 ===
|
|
9132
|
+
defaultOptions = _generatorOptions$def2 === undefined ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
9079
9133
|
return function createPopper(reference, popper, options) {
|
|
9080
|
-
if (options ===
|
|
9134
|
+
if (options === undefined) {
|
|
9081
9135
|
options = defaultOptions;
|
|
9082
9136
|
}
|
|
9083
9137
|
|
|
@@ -9164,7 +9218,7 @@ function popperGenerator(generatorOptions) {
|
|
|
9164
9218
|
var _state$orderedModifie = state.orderedModifiers[index],
|
|
9165
9219
|
fn = _state$orderedModifie.fn,
|
|
9166
9220
|
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
9167
|
-
_options = _state$orderedModifie2 ===
|
|
9221
|
+
_options = _state$orderedModifie2 === undefined ? {} : _state$orderedModifie2,
|
|
9168
9222
|
name = _state$orderedModifie.name;
|
|
9169
9223
|
|
|
9170
9224
|
if (typeof fn === 'function') {
|
|
@@ -9209,7 +9263,7 @@ function popperGenerator(generatorOptions) {
|
|
|
9209
9263
|
state.orderedModifiers.forEach(function (_ref) {
|
|
9210
9264
|
var name = _ref.name,
|
|
9211
9265
|
_ref$options = _ref.options,
|
|
9212
|
-
options = _ref$options ===
|
|
9266
|
+
options = _ref$options === undefined ? {} : _ref$options,
|
|
9213
9267
|
effect = _ref.effect;
|
|
9214
9268
|
|
|
9215
9269
|
if (typeof effect === 'function') {
|
|
@@ -9644,7 +9698,7 @@ class AuroCalendarCell extends r$7 {
|
|
|
9644
9698
|
|
|
9645
9699
|
let _a;
|
|
9646
9700
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
9647
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
9701
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
9648
9702
|
}));
|
|
9649
9703
|
}
|
|
9650
9704
|
|
|
@@ -9866,10 +9920,10 @@ class AuroCalendarCell extends r$7 {
|
|
|
9866
9920
|
@focus="${this.handleHover}"
|
|
9867
9921
|
class="${e$6(buttonClasses)}"
|
|
9868
9922
|
?disabled="${this.disabled}"
|
|
9869
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
9923
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}"
|
|
9870
9924
|
tabindex="-1">
|
|
9871
9925
|
<div class="buttonWrapper">
|
|
9872
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
9926
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
9873
9927
|
<div class="dateSlot" part="dateSlot">
|
|
9874
9928
|
<slot name="date_${this.dateStr}"></slot>
|
|
9875
9929
|
</div>
|
|
@@ -9987,11 +10041,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9987
10041
|
<div class="table">
|
|
9988
10042
|
<div class="thead">
|
|
9989
10043
|
<div class="tr">
|
|
9990
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
10044
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map(dayNameOfWeek => this.renderDayOfWeek(dayNameOfWeek))}
|
|
9991
10045
|
</div>
|
|
9992
10046
|
</div>
|
|
9993
10047
|
<div class="tbody">
|
|
9994
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
10048
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map(week => this.renderWeek(week))}
|
|
9995
10049
|
</div>
|
|
9996
10050
|
</div>
|
|
9997
10051
|
</div>
|
|
@@ -10166,16 +10220,16 @@ class RangeDatepicker extends r$7 {
|
|
|
10166
10220
|
handlePrevMonth() {
|
|
10167
10221
|
let _a;
|
|
10168
10222
|
if (!this.enableYearChange) {
|
|
10169
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
10170
|
-
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();
|
|
10171
10225
|
}
|
|
10172
10226
|
}
|
|
10173
10227
|
|
|
10174
10228
|
handleNextMonth() {
|
|
10175
10229
|
let _a;
|
|
10176
10230
|
if (!this.enableYearChange) {
|
|
10177
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
10178
|
-
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();
|
|
10179
10233
|
}
|
|
10180
10234
|
}
|
|
10181
10235
|
|
|
@@ -10237,21 +10291,21 @@ RangeDatepicker.styles = i$c`
|
|
|
10237
10291
|
margin-right: 16px;
|
|
10238
10292
|
}
|
|
10239
10293
|
`;
|
|
10240
|
-
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays",
|
|
10241
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange",
|
|
10242
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow",
|
|
10243
|
-
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale",
|
|
10244
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max",
|
|
10245
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min",
|
|
10246
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month",
|
|
10247
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange",
|
|
10248
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year",
|
|
10249
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom",
|
|
10250
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo",
|
|
10251
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate",
|
|
10252
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus",
|
|
10253
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus",
|
|
10254
|
-
__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);
|
|
10255
10309
|
|
|
10256
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>"};
|
|
10257
10311
|
|
|
@@ -10712,33 +10766,33 @@ if (!customElements.get('auro-calendar')) {
|
|
|
10712
10766
|
* Copyright 2017 Google LLC
|
|
10713
10767
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10714
10768
|
*/
|
|
10715
|
-
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};
|
|
10716
10770
|
|
|
10717
10771
|
/**
|
|
10718
10772
|
* @license
|
|
10719
10773
|
* Copyright 2020 Google LLC
|
|
10720
10774
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10721
10775
|
*/
|
|
10722
|
-
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);
|
|
10723
10777
|
|
|
10724
10778
|
/**
|
|
10725
10779
|
* @license
|
|
10726
10780
|
* Copyright 2019 Google LLC
|
|
10727
10781
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10728
10782
|
*/
|
|
10729
|
-
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;
|
|
10730
10784
|
|
|
10731
10785
|
/**
|
|
10732
10786
|
* @license
|
|
10733
10787
|
* Copyright 2017 Google LLC
|
|
10734
10788
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10735
|
-
*/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");
|
|
10736
10790
|
|
|
10737
10791
|
/**
|
|
10738
10792
|
* @license
|
|
10739
10793
|
* Copyright 2017 Google LLC
|
|
10740
10794
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10741
|
-
*/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");
|
|
10742
10796
|
|
|
10743
10797
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10744
10798
|
// See LICENSE in the project root for license information.
|
|
@@ -10858,7 +10912,7 @@ function getAlignmentAxis(placement) {
|
|
|
10858
10912
|
return getOppositeAxis(getSideAxis(placement));
|
|
10859
10913
|
}
|
|
10860
10914
|
function getAlignmentSides(placement, rects, rtl) {
|
|
10861
|
-
if (rtl ===
|
|
10915
|
+
if (rtl === undefined) {
|
|
10862
10916
|
rtl = false;
|
|
10863
10917
|
}
|
|
10864
10918
|
const alignment = getAlignment(placement);
|
|
@@ -11015,7 +11069,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
11015
11069
|
platform
|
|
11016
11070
|
} = config;
|
|
11017
11071
|
const validMiddleware = middleware.filter(Boolean);
|
|
11018
|
-
const rtl = await (platform.isRTL == null ?
|
|
11072
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
|
|
11019
11073
|
let rects = await platform.getElementRects({
|
|
11020
11074
|
reference,
|
|
11021
11075
|
floating,
|
|
@@ -11101,7 +11155,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
11101
11155
|
*/
|
|
11102
11156
|
async function detectOverflow(state, options) {
|
|
11103
11157
|
var _await$platform$isEle;
|
|
11104
|
-
if (options ===
|
|
11158
|
+
if (options === undefined) {
|
|
11105
11159
|
options = {};
|
|
11106
11160
|
}
|
|
11107
11161
|
const {
|
|
@@ -11123,7 +11177,7 @@ async function detectOverflow(state, options) {
|
|
|
11123
11177
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
11124
11178
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
11125
11179
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
11126
|
-
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))),
|
|
11127
11181
|
boundary,
|
|
11128
11182
|
rootBoundary,
|
|
11129
11183
|
strategy
|
|
@@ -11134,8 +11188,8 @@ async function detectOverflow(state, options) {
|
|
|
11134
11188
|
width: rects.floating.width,
|
|
11135
11189
|
height: rects.floating.height
|
|
11136
11190
|
} : rects.reference;
|
|
11137
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
11138
|
-
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))) || {
|
|
11139
11193
|
x: 1,
|
|
11140
11194
|
y: 1
|
|
11141
11195
|
} : {
|
|
@@ -11172,7 +11226,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
11172
11226
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
11173
11227
|
*/
|
|
11174
11228
|
const autoPlacement$1 = function (options) {
|
|
11175
|
-
if (options ===
|
|
11229
|
+
if (options === undefined) {
|
|
11176
11230
|
options = {};
|
|
11177
11231
|
}
|
|
11178
11232
|
return {
|
|
@@ -11196,12 +11250,12 @@ const autoPlacement$1 = function (options) {
|
|
|
11196
11250
|
} = evaluate(options, state);
|
|
11197
11251
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
11198
11252
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
11199
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
11253
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
|
|
11200
11254
|
const currentPlacement = placements$1[currentIndex];
|
|
11201
11255
|
if (currentPlacement == null) {
|
|
11202
11256
|
return {};
|
|
11203
11257
|
}
|
|
11204
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
11258
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
|
|
11205
11259
|
|
|
11206
11260
|
// Make `computeCoords` start from the right place.
|
|
11207
11261
|
if (placement !== currentPlacement) {
|
|
@@ -11212,7 +11266,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11212
11266
|
};
|
|
11213
11267
|
}
|
|
11214
11268
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
11215
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
11269
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
|
|
11216
11270
|
placement: currentPlacement,
|
|
11217
11271
|
overflows: currentOverflows
|
|
11218
11272
|
}];
|
|
@@ -11242,7 +11296,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11242
11296
|
// Aligned placements should not check their opposite crossAxis
|
|
11243
11297
|
// side.
|
|
11244
11298
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
11245
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
11299
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
11246
11300
|
if (resetPlacement !== placement) {
|
|
11247
11301
|
return {
|
|
11248
11302
|
data: {
|
|
@@ -11266,7 +11320,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11266
11320
|
* @see https://floating-ui.com/docs/flip
|
|
11267
11321
|
*/
|
|
11268
11322
|
const flip$1 = function (options) {
|
|
11269
|
-
if (options ===
|
|
11323
|
+
if (options === undefined) {
|
|
11270
11324
|
options = {};
|
|
11271
11325
|
}
|
|
11272
11326
|
return {
|
|
@@ -11302,7 +11356,7 @@ const flip$1 = function (options) {
|
|
|
11302
11356
|
const side = getSide(placement);
|
|
11303
11357
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
11304
11358
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
11305
|
-
const rtl = await (platform.isRTL == null ?
|
|
11359
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11306
11360
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
11307
11361
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
11308
11362
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -11311,7 +11365,7 @@ const flip$1 = function (options) {
|
|
|
11311
11365
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
11312
11366
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
11313
11367
|
const overflows = [];
|
|
11314
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
11368
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
|
|
11315
11369
|
if (checkMainAxis) {
|
|
11316
11370
|
overflows.push(overflow[side]);
|
|
11317
11371
|
}
|
|
@@ -11327,7 +11381,7 @@ const flip$1 = function (options) {
|
|
|
11327
11381
|
// One or more sides is overflowing.
|
|
11328
11382
|
if (!overflows.every(side => side <= 0)) {
|
|
11329
11383
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
11330
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
11384
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
|
|
11331
11385
|
const nextPlacement = placements[nextIndex];
|
|
11332
11386
|
if (nextPlacement) {
|
|
11333
11387
|
// Try next placement and re-run the lifecycle.
|
|
@@ -11344,7 +11398,7 @@ const flip$1 = function (options) {
|
|
|
11344
11398
|
|
|
11345
11399
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
11346
11400
|
// then find the placement that fits the best on the main crossAxis side.
|
|
11347
|
-
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;
|
|
11348
11402
|
|
|
11349
11403
|
// Otherwise fallback.
|
|
11350
11404
|
if (!resetPlacement) {
|
|
@@ -11361,7 +11415,7 @@ const flip$1 = function (options) {
|
|
|
11361
11415
|
currentSideAxis === 'y';
|
|
11362
11416
|
}
|
|
11363
11417
|
return true;
|
|
11364
|
-
}).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];
|
|
11365
11419
|
if (placement) {
|
|
11366
11420
|
resetPlacement = placement;
|
|
11367
11421
|
}
|
|
@@ -11394,7 +11448,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11394
11448
|
platform,
|
|
11395
11449
|
elements
|
|
11396
11450
|
} = state;
|
|
11397
|
-
const rtl = await (platform.isRTL == null ?
|
|
11451
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11398
11452
|
const side = getSide(placement);
|
|
11399
11453
|
const alignment = getAlignment(placement);
|
|
11400
11454
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -11436,7 +11490,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11436
11490
|
* @see https://floating-ui.com/docs/offset
|
|
11437
11491
|
*/
|
|
11438
11492
|
const offset$1 = function (options) {
|
|
11439
|
-
if (options ===
|
|
11493
|
+
if (options === undefined) {
|
|
11440
11494
|
options = 0;
|
|
11441
11495
|
}
|
|
11442
11496
|
return {
|
|
@@ -11454,7 +11508,7 @@ const offset$1 = function (options) {
|
|
|
11454
11508
|
|
|
11455
11509
|
// If the placement is the same and the arrow caused an alignment offset
|
|
11456
11510
|
// then we don't need to change the positioning coordinates.
|
|
11457
|
-
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) {
|
|
11458
11512
|
return {};
|
|
11459
11513
|
}
|
|
11460
11514
|
return {
|
|
@@ -11483,11 +11537,11 @@ function getNodeName(node) {
|
|
|
11483
11537
|
}
|
|
11484
11538
|
function getWindow(node) {
|
|
11485
11539
|
var _node$ownerDocument;
|
|
11486
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
11540
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
|
|
11487
11541
|
}
|
|
11488
11542
|
function getDocumentElement(node) {
|
|
11489
11543
|
var _ref;
|
|
11490
|
-
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;
|
|
11491
11545
|
}
|
|
11492
11546
|
function isNode(value) {
|
|
11493
11547
|
if (!hasWindow()) {
|
|
@@ -11602,14 +11656,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
11602
11656
|
}
|
|
11603
11657
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
11604
11658
|
var _node$ownerDocument2;
|
|
11605
|
-
if (list ===
|
|
11659
|
+
if (list === undefined) {
|
|
11606
11660
|
list = [];
|
|
11607
11661
|
}
|
|
11608
|
-
if (traverseIframes ===
|
|
11662
|
+
if (traverseIframes === undefined) {
|
|
11609
11663
|
traverseIframes = true;
|
|
11610
11664
|
}
|
|
11611
11665
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
11612
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
11666
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
|
|
11613
11667
|
const win = getWindow(scrollableAncestor);
|
|
11614
11668
|
if (isBody) {
|
|
11615
11669
|
const frameElement = getFrameElement(win);
|
|
@@ -11686,7 +11740,7 @@ function getVisualOffsets(element) {
|
|
|
11686
11740
|
};
|
|
11687
11741
|
}
|
|
11688
11742
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
11689
|
-
if (isFixed ===
|
|
11743
|
+
if (isFixed === undefined) {
|
|
11690
11744
|
isFixed = false;
|
|
11691
11745
|
}
|
|
11692
11746
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -11696,10 +11750,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
11696
11750
|
}
|
|
11697
11751
|
|
|
11698
11752
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
11699
|
-
if (includeScale ===
|
|
11753
|
+
if (includeScale === undefined) {
|
|
11700
11754
|
includeScale = false;
|
|
11701
11755
|
}
|
|
11702
|
-
if (isFixedStrategy ===
|
|
11756
|
+
if (isFixedStrategy === undefined) {
|
|
11703
11757
|
isFixedStrategy = false;
|
|
11704
11758
|
}
|
|
11705
11759
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -11759,7 +11813,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
11759
11813
|
}
|
|
11760
11814
|
|
|
11761
11815
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
11762
|
-
if (ignoreScrollbarX ===
|
|
11816
|
+
if (ignoreScrollbarX === undefined) {
|
|
11763
11817
|
ignoreScrollbarX = false;
|
|
11764
11818
|
}
|
|
11765
11819
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -12109,10 +12163,10 @@ function observeMove(element, onMove) {
|
|
|
12109
12163
|
io = null;
|
|
12110
12164
|
}
|
|
12111
12165
|
function refresh(skip, threshold) {
|
|
12112
|
-
if (skip ===
|
|
12166
|
+
if (skip === undefined) {
|
|
12113
12167
|
skip = false;
|
|
12114
12168
|
}
|
|
12115
|
-
if (threshold ===
|
|
12169
|
+
if (threshold === undefined) {
|
|
12116
12170
|
threshold = 1;
|
|
12117
12171
|
}
|
|
12118
12172
|
cleanup();
|
|
@@ -12183,7 +12237,7 @@ function observeMove(element, onMove) {
|
|
|
12183
12237
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
12184
12238
|
*/
|
|
12185
12239
|
function autoUpdate(reference, floating, update, options) {
|
|
12186
|
-
if (options ===
|
|
12240
|
+
if (options === undefined) {
|
|
12187
12241
|
options = {};
|
|
12188
12242
|
}
|
|
12189
12243
|
const {
|
|
@@ -12399,7 +12453,7 @@ class AuroFloatingUI {
|
|
|
12399
12453
|
// Compute the position of the bib
|
|
12400
12454
|
computePosition(this.element.trigger, this.element.bib, {
|
|
12401
12455
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
12402
|
-
middleware: middleware
|
|
12456
|
+
middleware: middleware
|
|
12403
12457
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
12404
12458
|
Object.assign(this.element.bib.style, {
|
|
12405
12459
|
left: `${x}px`,
|
|
@@ -12743,7 +12797,7 @@ const t$4={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
12743
12797
|
* @license
|
|
12744
12798
|
* Copyright 2018 Google LLC
|
|
12745
12799
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12746
|
-
*/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}});
|
|
12747
12801
|
|
|
12748
12802
|
/**
|
|
12749
12803
|
* @license
|
|
@@ -13111,7 +13165,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13111
13165
|
|
|
13112
13166
|
var iconVersion$1 = '6.1.2';
|
|
13113
13167
|
|
|
13114
|
-
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;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)}`;
|
|
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)}`;
|
|
13115
13169
|
|
|
13116
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)}`;
|
|
13117
13171
|
|
|
@@ -13135,9 +13189,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
13135
13189
|
];
|
|
13136
13190
|
|
|
13137
13191
|
/**
|
|
13138
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
13139
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
13140
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
13141
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.
|
|
13142
13193
|
* @csspart bibContainer - Apply css to the bib container.
|
|
13143
13194
|
*/
|
|
@@ -13163,14 +13214,26 @@ class AuroDropdownBib extends r$5 {
|
|
|
13163
13214
|
|
|
13164
13215
|
static get properties() {
|
|
13165
13216
|
return {
|
|
13217
|
+
|
|
13218
|
+
/**
|
|
13219
|
+
* If declared, will apply all styles for the common theme.
|
|
13220
|
+
*/
|
|
13166
13221
|
common: {
|
|
13167
13222
|
type: Boolean,
|
|
13168
13223
|
reflect: true
|
|
13169
13224
|
},
|
|
13225
|
+
|
|
13226
|
+
/**
|
|
13227
|
+
* If declared, will apply extra padding to bib content.
|
|
13228
|
+
*/
|
|
13170
13229
|
inset: {
|
|
13171
13230
|
type: Boolean,
|
|
13172
13231
|
reflect: true
|
|
13173
13232
|
},
|
|
13233
|
+
|
|
13234
|
+
/**
|
|
13235
|
+
* If declared, will apply border-radius to the bib.
|
|
13236
|
+
*/
|
|
13174
13237
|
rounded: {
|
|
13175
13238
|
type: Boolean,
|
|
13176
13239
|
reflect: true
|
|
@@ -13214,22 +13277,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
13214
13277
|
|
|
13215
13278
|
|
|
13216
13279
|
/**
|
|
13217
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
13218
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
13219
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
13220
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
13221
13280
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
13222
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
13223
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
13224
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
13225
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
13226
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
13227
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
13228
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
13229
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
13230
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
13231
|
-
* @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.
|
|
13232
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
13233
13281
|
* @slot - Default slot for the popover content.
|
|
13234
13282
|
* @slot label - Defines the content of the label.
|
|
13235
13283
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -13267,6 +13315,16 @@ class AuroDropdown extends r$5 {
|
|
|
13267
13315
|
this.tabIndex = 0;
|
|
13268
13316
|
this.noToggle = false;
|
|
13269
13317
|
|
|
13318
|
+
/**
|
|
13319
|
+
* @private
|
|
13320
|
+
*/
|
|
13321
|
+
this.hasTriggerContent = false;
|
|
13322
|
+
|
|
13323
|
+
/**
|
|
13324
|
+
* @private
|
|
13325
|
+
*/
|
|
13326
|
+
this.triggerContentSlot = undefined;
|
|
13327
|
+
|
|
13270
13328
|
/**
|
|
13271
13329
|
* @private
|
|
13272
13330
|
*/
|
|
@@ -13313,89 +13371,166 @@ class AuroDropdown extends r$5 {
|
|
|
13313
13371
|
// function to define props used within the scope of this component
|
|
13314
13372
|
static get properties() {
|
|
13315
13373
|
return {
|
|
13374
|
+
|
|
13375
|
+
/**
|
|
13376
|
+
* If declared, applies a border around the trigger slot.
|
|
13377
|
+
*/
|
|
13316
13378
|
bordered: {
|
|
13317
13379
|
type: Boolean,
|
|
13318
13380
|
reflect: true
|
|
13319
13381
|
},
|
|
13382
|
+
|
|
13383
|
+
/**
|
|
13384
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
13385
|
+
* @attr {Boolean} chevron
|
|
13386
|
+
*/
|
|
13320
13387
|
chevron: {
|
|
13321
13388
|
type: Boolean,
|
|
13322
13389
|
reflect: true
|
|
13323
13390
|
},
|
|
13324
|
-
|
|
13391
|
+
|
|
13392
|
+
/**
|
|
13393
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
13394
|
+
*/
|
|
13395
|
+
common: {
|
|
13325
13396
|
type: Boolean,
|
|
13326
13397
|
reflect: true
|
|
13327
13398
|
},
|
|
13328
|
-
|
|
13399
|
+
|
|
13400
|
+
/**
|
|
13401
|
+
* If declared, the dropdown is not interactive.
|
|
13402
|
+
*/
|
|
13403
|
+
disabled: {
|
|
13329
13404
|
type: Boolean,
|
|
13330
13405
|
reflect: true
|
|
13331
13406
|
},
|
|
13332
|
-
|
|
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: {
|
|
13333
13419
|
type: Boolean,
|
|
13334
|
-
reflect: true
|
|
13420
|
+
reflect: true
|
|
13335
13421
|
},
|
|
13422
|
+
|
|
13423
|
+
/**
|
|
13424
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
13425
|
+
*/
|
|
13336
13426
|
focusShow: {
|
|
13337
13427
|
type: Boolean,
|
|
13338
13428
|
reflect: true
|
|
13339
13429
|
},
|
|
13340
|
-
|
|
13430
|
+
|
|
13431
|
+
/**
|
|
13432
|
+
* Makes the trigger to be full width of its parent container.
|
|
13433
|
+
*/
|
|
13434
|
+
fluid: {
|
|
13341
13435
|
type: Boolean,
|
|
13342
13436
|
reflect: true
|
|
13343
13437
|
},
|
|
13438
|
+
|
|
13439
|
+
/**
|
|
13440
|
+
* If declared, will apply padding around trigger slot content.
|
|
13441
|
+
*/
|
|
13344
13442
|
inset: {
|
|
13345
13443
|
type: Boolean,
|
|
13346
13444
|
reflect: true
|
|
13347
13445
|
},
|
|
13348
|
-
|
|
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: {
|
|
13349
13458
|
type: Boolean,
|
|
13350
13459
|
reflect: true
|
|
13351
13460
|
},
|
|
13352
|
-
|
|
13353
|
-
|
|
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,
|
|
13354
13474
|
reflect: true
|
|
13355
13475
|
},
|
|
13356
|
-
|
|
13476
|
+
|
|
13477
|
+
/**
|
|
13478
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
13479
|
+
*/
|
|
13480
|
+
matchWidth: {
|
|
13357
13481
|
type: Boolean,
|
|
13358
13482
|
reflect: true
|
|
13359
13483
|
},
|
|
13360
|
-
|
|
13484
|
+
|
|
13485
|
+
/**
|
|
13486
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
13487
|
+
*/
|
|
13488
|
+
noHideOnThisFocusLoss: {
|
|
13361
13489
|
type: Boolean,
|
|
13362
13490
|
reflect: true
|
|
13363
13491
|
},
|
|
13364
|
-
|
|
13492
|
+
|
|
13493
|
+
/**
|
|
13494
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
13495
|
+
*/
|
|
13496
|
+
noToggle: {
|
|
13365
13497
|
type: Boolean,
|
|
13366
13498
|
reflect: true
|
|
13367
13499
|
},
|
|
13368
|
-
|
|
13500
|
+
|
|
13369
13501
|
onSlotChange: {
|
|
13370
13502
|
type: Function,
|
|
13371
13503
|
reflect: false
|
|
13372
13504
|
},
|
|
13373
|
-
mobileFullscreenBreakpoint: {
|
|
13374
|
-
type: String,
|
|
13375
|
-
reflect: true,
|
|
13376
|
-
},
|
|
13377
13505
|
|
|
13378
13506
|
/**
|
|
13379
13507
|
* @private
|
|
13380
13508
|
*/
|
|
13381
|
-
|
|
13509
|
+
placement: {
|
|
13510
|
+
type: String
|
|
13511
|
+
},
|
|
13382
13512
|
|
|
13383
13513
|
/**
|
|
13384
|
-
*
|
|
13514
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
13385
13515
|
*/
|
|
13386
|
-
|
|
13516
|
+
rounded: {
|
|
13517
|
+
type: Boolean,
|
|
13518
|
+
reflect: true
|
|
13519
|
+
},
|
|
13387
13520
|
|
|
13388
13521
|
/**
|
|
13389
13522
|
* @private
|
|
13390
13523
|
*/
|
|
13391
|
-
tabIndex: {
|
|
13524
|
+
tabIndex: {
|
|
13525
|
+
type: Number
|
|
13526
|
+
}
|
|
13392
13527
|
};
|
|
13393
13528
|
}
|
|
13394
13529
|
|
|
13395
13530
|
static get styles() {
|
|
13396
13531
|
return [
|
|
13397
|
-
styleCss$1$1,
|
|
13398
13532
|
colorCss$1$1,
|
|
13533
|
+
styleCss$1$1,
|
|
13399
13534
|
tokensCss$4
|
|
13400
13535
|
];
|
|
13401
13536
|
}
|
|
@@ -13426,6 +13561,12 @@ class AuroDropdown extends r$5 {
|
|
|
13426
13561
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
13427
13562
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
13428
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
|
+
}
|
|
13429
13570
|
}
|
|
13430
13571
|
|
|
13431
13572
|
firstUpdated() {
|
|
@@ -13468,6 +13609,43 @@ class AuroDropdown extends r$5 {
|
|
|
13468
13609
|
return inCustomSlot;
|
|
13469
13610
|
}
|
|
13470
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
|
+
|
|
13471
13649
|
/**
|
|
13472
13650
|
* Handles the default slot change event and updates the content.
|
|
13473
13651
|
*
|
|
@@ -13502,13 +13680,13 @@ class AuroDropdown extends r$5 {
|
|
|
13502
13680
|
tabindex="${this.tabIndex}"
|
|
13503
13681
|
>
|
|
13504
13682
|
<div class="triggerContentWrapper">
|
|
13505
|
-
<label class="label" id="triggerLabel">
|
|
13683
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
13506
13684
|
<slot name="label"></slot>
|
|
13507
13685
|
</label>
|
|
13508
13686
|
<div class="triggerContent">
|
|
13509
13687
|
<slot
|
|
13510
13688
|
name="trigger"
|
|
13511
|
-
@slotchange="${() =>
|
|
13689
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
13512
13690
|
</div>
|
|
13513
13691
|
</div>
|
|
13514
13692
|
${this.chevron || this.common ? u$1$1`
|
|
@@ -13555,14 +13733,14 @@ var dropdownVersion = '3.0.0';
|
|
|
13555
13733
|
* Copyright 2017 Google LLC
|
|
13556
13734
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13557
13735
|
*/
|
|
13558
|
-
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};
|
|
13559
13737
|
|
|
13560
13738
|
/**
|
|
13561
13739
|
* @license
|
|
13562
13740
|
* Copyright 2020 Google LLC
|
|
13563
13741
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13564
13742
|
*/
|
|
13565
|
-
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);
|
|
13566
13744
|
|
|
13567
13745
|
/**
|
|
13568
13746
|
* @license
|
|
@@ -13575,20 +13753,20 @@ const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
13575
13753
|
* @license
|
|
13576
13754
|
* Copyright 2020 Google LLC
|
|
13577
13755
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13578
|
-
*/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;}};
|
|
13579
13757
|
|
|
13580
13758
|
/**
|
|
13581
13759
|
* @license
|
|
13582
13760
|
* Copyright 2017 Google LLC
|
|
13583
13761
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13584
13762
|
*/
|
|
13585
|
-
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}});
|
|
13586
13764
|
|
|
13587
13765
|
/**
|
|
13588
13766
|
* @license
|
|
13589
13767
|
* Copyright 2018 Google LLC
|
|
13590
13768
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13591
|
-
*/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}});
|
|
13592
13770
|
|
|
13593
13771
|
/**
|
|
13594
13772
|
* @license
|
|
@@ -13704,21 +13882,21 @@ function stopNotifyingOnLangChange(element) {
|
|
|
13704
13882
|
* Copyright 2019 Google LLC
|
|
13705
13883
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13706
13884
|
*/
|
|
13707
|
-
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;
|
|
13708
13886
|
|
|
13709
13887
|
/**
|
|
13710
13888
|
* @license
|
|
13711
13889
|
* Copyright 2017 Google LLC
|
|
13712
13890
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13713
|
-
*/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");
|
|
13714
13892
|
|
|
13715
13893
|
/**
|
|
13716
13894
|
* @license
|
|
13717
13895
|
* Copyright 2017 Google LLC
|
|
13718
13896
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13719
|
-
*/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");
|
|
13720
13898
|
|
|
13721
|
-
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)}`;
|
|
13722
13900
|
|
|
13723
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)}`;
|
|
13724
13902
|
|
|
@@ -15385,30 +15563,87 @@ class AuroFormValidation {
|
|
|
15385
15563
|
}
|
|
15386
15564
|
|
|
15387
15565
|
/**
|
|
15388
|
-
*
|
|
15389
|
-
*
|
|
15390
|
-
* @param {
|
|
15566
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
15567
|
+
*
|
|
15568
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
15391
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.
|
|
15392
15589
|
*/
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
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
|
+
]
|
|
15400
15626
|
}
|
|
15401
|
-
}
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
if (
|
|
15405
|
-
|
|
15406
|
-
|
|
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';
|
|
15407
15634
|
}
|
|
15408
15635
|
|
|
15409
|
-
if (
|
|
15410
|
-
|
|
15411
|
-
|
|
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
|
+
});
|
|
15646
|
+
}
|
|
15412
15647
|
}
|
|
15413
15648
|
}
|
|
15414
15649
|
|
|
@@ -15424,33 +15659,32 @@ class AuroFormValidation {
|
|
|
15424
15659
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
15425
15660
|
|
|
15426
15661
|
if (!elem.value.match(emailRegex)) {
|
|
15427
|
-
elem.validity = '
|
|
15428
|
-
elem.
|
|
15662
|
+
elem.validity = 'patternMismatch';
|
|
15663
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15429
15664
|
}
|
|
15430
15665
|
} else if (elem.type === 'credit-card') {
|
|
15431
15666
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
15432
15667
|
elem.validity = 'tooShort';
|
|
15433
|
-
elem.
|
|
15668
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15434
15669
|
}
|
|
15435
15670
|
} else if (elem.type === 'number') {
|
|
15436
15671
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
15437
15672
|
elem.validity = 'rangeOverflow';
|
|
15438
|
-
elem.
|
|
15673
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15439
15674
|
}
|
|
15440
15675
|
|
|
15441
|
-
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)) {
|
|
15442
15677
|
elem.validity = 'rangeUnderflow';
|
|
15443
|
-
elem.
|
|
15678
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15444
15679
|
}
|
|
15445
|
-
|
|
15446
15680
|
} else if (elem.type === 'month-day-year' ||
|
|
15447
15681
|
elem.type === 'month-year' ||
|
|
15448
15682
|
elem.type === 'month-fullYear' ||
|
|
15449
15683
|
elem.type === 'year-month-day'
|
|
15450
15684
|
) {
|
|
15451
|
-
if (elem.value
|
|
15685
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
15452
15686
|
elem.validity = 'tooShort';
|
|
15453
|
-
elem.
|
|
15687
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15454
15688
|
} else {
|
|
15455
15689
|
const valueDate = new Date(elem.value);
|
|
15456
15690
|
|
|
@@ -15460,7 +15694,7 @@ class AuroFormValidation {
|
|
|
15460
15694
|
|
|
15461
15695
|
if (valueDate > maxDate) {
|
|
15462
15696
|
elem.validity = 'rangeOverflow';
|
|
15463
|
-
elem.
|
|
15697
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15464
15698
|
}
|
|
15465
15699
|
}
|
|
15466
15700
|
|
|
@@ -15470,7 +15704,7 @@ class AuroFormValidation {
|
|
|
15470
15704
|
|
|
15471
15705
|
if (valueDate < minDate) {
|
|
15472
15706
|
elem.validity = 'rangeUnderflow';
|
|
15473
|
-
elem.
|
|
15707
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15474
15708
|
}
|
|
15475
15709
|
}
|
|
15476
15710
|
}
|
|
@@ -15493,10 +15727,10 @@ class AuroFormValidation {
|
|
|
15493
15727
|
|
|
15494
15728
|
if (elem.hasAttribute('error')) {
|
|
15495
15729
|
elem.validity = 'customError';
|
|
15496
|
-
elem.
|
|
15730
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
15497
15731
|
} else if (validationShouldRun) {
|
|
15498
15732
|
elem.validity = 'valid';
|
|
15499
|
-
elem.
|
|
15733
|
+
elem.errorMessage = '';
|
|
15500
15734
|
|
|
15501
15735
|
/**
|
|
15502
15736
|
* Only validate once we interact with the datepicker
|
|
@@ -15508,7 +15742,7 @@ class AuroFormValidation {
|
|
|
15508
15742
|
let hasValue = elem.value && elem.value.length > 0;
|
|
15509
15743
|
|
|
15510
15744
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
15511
|
-
if (this.auroInputElements
|
|
15745
|
+
if (this.auroInputElements?.length === 2) {
|
|
15512
15746
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
15513
15747
|
hasValue = false;
|
|
15514
15748
|
}
|
|
@@ -15516,31 +15750,29 @@ class AuroFormValidation {
|
|
|
15516
15750
|
|
|
15517
15751
|
if (!hasValue && elem.required) {
|
|
15518
15752
|
elem.validity = 'valueMissing';
|
|
15519
|
-
elem.
|
|
15753
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
15520
15754
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15521
15755
|
this.validateType(elem);
|
|
15522
|
-
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);
|
|
15523
15759
|
}
|
|
15524
15760
|
}
|
|
15525
15761
|
|
|
15526
|
-
if (this.auroInputElements
|
|
15762
|
+
if (this.auroInputElements?.length > 0) {
|
|
15527
15763
|
elem.validity = this.auroInputElements[0].validity;
|
|
15528
|
-
elem.
|
|
15764
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
15529
15765
|
|
|
15530
|
-
if (elem.validity === 'valid') {
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
15534
|
-
}
|
|
15766
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
15767
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
15768
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
15535
15769
|
}
|
|
15536
15770
|
}
|
|
15537
15771
|
|
|
15538
15772
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
15539
|
-
|
|
15540
|
-
|
|
15541
|
-
|
|
15542
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
15543
|
-
}
|
|
15773
|
+
// Use the validity message override if it is declared
|
|
15774
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
15775
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
15544
15776
|
}
|
|
15545
15777
|
|
|
15546
15778
|
this.getErrorMessage(elem);
|
|
@@ -15586,18 +15818,18 @@ class AuroFormValidation {
|
|
|
15586
15818
|
if (elem.validity !== 'valid') {
|
|
15587
15819
|
if (elem.setCustomValidity) {
|
|
15588
15820
|
elem.errorMessage = elem.setCustomValidity;
|
|
15589
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15821
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
15590
15822
|
const input = elem.renderRoot.querySelector('input');
|
|
15591
15823
|
|
|
15592
15824
|
if (input.validationMessage.length > 0) {
|
|
15593
15825
|
elem.errorMessage = input.validationMessage;
|
|
15594
15826
|
}
|
|
15595
|
-
} else if (this.inputElements &&
|
|
15827
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
15596
15828
|
const firstInput = this.inputElements[0];
|
|
15597
15829
|
|
|
15598
15830
|
if (firstInput.validationMessage.length > 0) {
|
|
15599
15831
|
elem.errorMessage = firstInput.validationMessage;
|
|
15600
|
-
} else if (this.inputElements
|
|
15832
|
+
} else if (this.inputElements?.length === 2) {
|
|
15601
15833
|
const secondInput = this.inputElements[1];
|
|
15602
15834
|
|
|
15603
15835
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -15618,42 +15850,8 @@ class AuroFormValidation {
|
|
|
15618
15850
|
/**
|
|
15619
15851
|
* Auro-input provides users a way to enter data into a text field.
|
|
15620
15852
|
*
|
|
15621
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
15622
|
-
* @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]
|
|
15623
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15624
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
15625
15853
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
15626
15854
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
15627
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
15628
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
15629
|
-
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
15630
|
-
* @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.
|
|
15631
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
15632
|
-
* @attr {String} lang - defines the language of an element.
|
|
15633
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15634
|
-
* @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.
|
|
15635
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15636
|
-
* @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`.
|
|
15637
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
15638
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
15639
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
15640
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
15641
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
15642
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
15643
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
15644
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
15645
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
15646
|
-
* @attr {String} setCustomValidityBadInput - Custom help text message to display when validity = `badInput`.
|
|
15647
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
15648
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
15649
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
15650
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
15651
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
15652
|
-
* @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`.
|
|
15653
|
-
* @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`.
|
|
15654
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
15655
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
15656
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15657
15855
|
*
|
|
15658
15856
|
* @slot helptext - Sets the help text displayed below the input.
|
|
15659
15857
|
* @slot label - Sets the label text for the input.
|
|
@@ -15745,97 +15943,298 @@ class BaseInput extends r {
|
|
|
15745
15943
|
.substring(idSubstrStart, idSubstrEnd);
|
|
15746
15944
|
}
|
|
15747
15945
|
|
|
15748
|
-
// function to define props used within the scope of this
|
|
15946
|
+
// function to define props used within the scope of this componentstatic
|
|
15749
15947
|
static get properties() {
|
|
15750
15948
|
return {
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
15756
|
-
|
|
15757
|
-
pattern: {
|
|
15758
|
-
type: String,
|
|
15949
|
+
|
|
15950
|
+
/**
|
|
15951
|
+
* If set, the label will remain fixed in the active position.
|
|
15952
|
+
*/
|
|
15953
|
+
activeLabel: {
|
|
15954
|
+
type: Boolean,
|
|
15759
15955
|
reflect: true
|
|
15760
15956
|
},
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15765
|
-
|
|
15766
|
-
|
|
15767
|
-
|
|
15768
|
-
|
|
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: {
|
|
15769
15969
|
type: String,
|
|
15770
15970
|
reflect: true
|
|
15771
15971
|
},
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
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
|
|
15776
15978
|
},
|
|
15777
|
-
max: { type: String },
|
|
15778
|
-
min: { type: String },
|
|
15779
|
-
maxLength: { type: Number },
|
|
15780
|
-
minLength: { type: Number },
|
|
15781
15979
|
|
|
15782
15980
|
/**
|
|
15783
|
-
*
|
|
15981
|
+
* If set, disables the input.
|
|
15784
15982
|
*/
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
readonly: { type: Boolean },
|
|
15788
|
-
error: {
|
|
15789
|
-
type: String,
|
|
15790
|
-
reflect: true
|
|
15983
|
+
disabled: {
|
|
15984
|
+
type: Boolean
|
|
15791
15985
|
},
|
|
15792
|
-
|
|
15793
|
-
|
|
15986
|
+
|
|
15987
|
+
error: {
|
|
15794
15988
|
type: String,
|
|
15795
15989
|
reflect: true
|
|
15796
15990
|
},
|
|
15797
|
-
setCustomValidity: { type: String },
|
|
15798
|
-
setCustomValidityCustomError: { type: String },
|
|
15799
|
-
setCustomValidityValueMissing: { type: String },
|
|
15800
|
-
setCustomValidityBadInput: { type: String },
|
|
15801
|
-
setCustomValidityTooShort: { type: String },
|
|
15802
|
-
setCustomValidityTooLong: { type: String },
|
|
15803
|
-
setCustomValidityRangeOverflow: { type: String},
|
|
15804
|
-
setCustomValidityRangeUnderflow: { type: String},
|
|
15805
|
-
customValidityTypeEmail: { type: String }
|
|
15806
|
-
};
|
|
15807
|
-
}
|
|
15808
|
-
|
|
15809
|
-
static get styles() {
|
|
15810
|
-
return [
|
|
15811
|
-
i$2`${styleCss$3}`,
|
|
15812
|
-
i$2`${colorCss$3}`,
|
|
15813
|
-
i$2`${tokensCss$3}`
|
|
15814
|
-
];
|
|
15815
|
-
}
|
|
15816
|
-
|
|
15817
|
-
connectedCallback() {
|
|
15818
|
-
super.connectedCallback();
|
|
15819
15991
|
|
|
15820
|
-
|
|
15992
|
+
/**
|
|
15993
|
+
* Contains the help text message for the current validity error.
|
|
15994
|
+
*/
|
|
15995
|
+
errorMessage: {
|
|
15996
|
+
type: String
|
|
15997
|
+
},
|
|
15821
15998
|
|
|
15822
|
-
|
|
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
|
+
},
|
|
15823
16005
|
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
16006
|
+
/**
|
|
16007
|
+
* Sets the unique ID of the element.
|
|
16008
|
+
*/
|
|
16009
|
+
id: {
|
|
16010
|
+
type: String
|
|
16011
|
+
},
|
|
15827
16012
|
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
};
|
|
16013
|
+
/**
|
|
16014
|
+
* Defines the language of an element.
|
|
16015
|
+
*/
|
|
16016
|
+
lang: {
|
|
16017
|
+
type: String
|
|
16018
|
+
},
|
|
15835
16019
|
|
|
15836
|
-
|
|
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
|
+
},
|
|
15837
16026
|
|
|
15838
|
-
|
|
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
|
+
}
|
|
16215
|
+
|
|
16216
|
+
connectedCallback() {
|
|
16217
|
+
super.connectedCallback();
|
|
16218
|
+
|
|
16219
|
+
this.privateDefaults();
|
|
16220
|
+
|
|
16221
|
+
notifyOnLangChange(this);
|
|
16222
|
+
|
|
16223
|
+
// Process auto-formatting if defined for CleaveJS
|
|
16224
|
+
if (this.type) {
|
|
16225
|
+
let config = null;
|
|
16226
|
+
|
|
16227
|
+
// Set config for credit card
|
|
16228
|
+
switch (this.type) {
|
|
16229
|
+
case 'number':
|
|
16230
|
+
config = {
|
|
16231
|
+
numeral: true,
|
|
16232
|
+
delimiter: ''
|
|
16233
|
+
};
|
|
16234
|
+
|
|
16235
|
+
this.inputMode = 'numeric';
|
|
16236
|
+
|
|
16237
|
+
break;
|
|
15839
16238
|
|
|
15840
16239
|
case 'credit-card':
|
|
15841
16240
|
config = {
|
|
@@ -16430,7 +16829,7 @@ class BaseInput extends r {
|
|
|
16430
16829
|
this.maxLength = card.formatLength;
|
|
16431
16830
|
this.minLength = card.formatMinLength;
|
|
16432
16831
|
|
|
16433
|
-
this.
|
|
16832
|
+
this.errorMessage = card.errorMessage;
|
|
16434
16833
|
|
|
16435
16834
|
if (this.icon) {
|
|
16436
16835
|
this.inputIconName = card.cardIcon;
|
|
@@ -16450,63 +16849,63 @@ class BaseInput extends r {
|
|
|
16450
16849
|
name: 'Airlines',
|
|
16451
16850
|
regex: /^(?<num>1|2)\d{0}/u,
|
|
16452
16851
|
formatMinLength: 17,
|
|
16453
|
-
|
|
16852
|
+
errorMessage: CreditCardValidationMessage,
|
|
16454
16853
|
cardIcon: 'credit-card'
|
|
16455
16854
|
},
|
|
16456
16855
|
{
|
|
16457
16856
|
name: 'Commercial',
|
|
16458
16857
|
regex: /^(?<num>2)\d{0}/u,
|
|
16459
16858
|
formatMinLength: 8,
|
|
16460
|
-
|
|
16859
|
+
errorMessage: CreditCardValidationMessage,
|
|
16461
16860
|
cardIcon: 'credit-card'
|
|
16462
16861
|
},
|
|
16463
16862
|
{
|
|
16464
16863
|
name: 'Alaska Commercial',
|
|
16465
16864
|
regex: /^(?<num>27)\d{0}/u,
|
|
16466
16865
|
formatMinLength: 8,
|
|
16467
|
-
|
|
16866
|
+
errorMessage: CreditCardValidationMessage,
|
|
16468
16867
|
cardIcon: 'cc-alaska'
|
|
16469
16868
|
},
|
|
16470
16869
|
{
|
|
16471
16870
|
name: 'American Express',
|
|
16472
16871
|
regex: /^(?<num>34|37)\d{0}/u,
|
|
16473
16872
|
formatLength: 17,
|
|
16474
|
-
|
|
16873
|
+
errorMessage: CreditCardValidationMessage,
|
|
16475
16874
|
cardIcon: 'cc-amex'
|
|
16476
16875
|
},
|
|
16477
16876
|
{
|
|
16478
16877
|
name: 'Diners club',
|
|
16479
16878
|
regex: /^(?<num>36|38)\d{0}/u,
|
|
16480
16879
|
formatLength: 16,
|
|
16481
|
-
|
|
16880
|
+
errorMessage: CreditCardValidationMessage,
|
|
16482
16881
|
cardIcon: 'credit-card'
|
|
16483
16882
|
},
|
|
16484
16883
|
{
|
|
16485
16884
|
name: 'Visa',
|
|
16486
16885
|
regex: /^(?<num>4)\d{0}/u,
|
|
16487
16886
|
formatLength: 19,
|
|
16488
|
-
|
|
16887
|
+
errorMessage: CreditCardValidationMessage,
|
|
16489
16888
|
cardIcon: 'cc-visa'
|
|
16490
16889
|
},
|
|
16491
16890
|
{
|
|
16492
16891
|
name: 'Alaska Airlines Visa',
|
|
16493
16892
|
regex: /^(?<num>4147\s34|4888\s93|4800\s11|4313\s51|4313\s07)\d{0}/u,
|
|
16494
16893
|
formatLength: 19,
|
|
16495
|
-
|
|
16894
|
+
errorMessage: CreditCardValidationMessage,
|
|
16496
16895
|
cardIcon: 'cc-alaska'
|
|
16497
16896
|
},
|
|
16498
16897
|
{
|
|
16499
16898
|
name: 'Master Card',
|
|
16500
16899
|
regex: /^(?<num>5)\d{0}/u,
|
|
16501
16900
|
formatLength: 19,
|
|
16502
|
-
|
|
16901
|
+
errorMessage: CreditCardValidationMessage,
|
|
16503
16902
|
cardIcon: 'cc-mastercard'
|
|
16504
16903
|
},
|
|
16505
16904
|
{
|
|
16506
16905
|
name: 'Discover Card',
|
|
16507
16906
|
regex: /^(?<num>6)\d{0}/u,
|
|
16508
16907
|
formatLength: 19,
|
|
16509
|
-
|
|
16908
|
+
errorMessage: CreditCardValidationMessage,
|
|
16510
16909
|
cardIcon: 'cc-discover'
|
|
16511
16910
|
}
|
|
16512
16911
|
];
|
|
@@ -16514,7 +16913,7 @@ class BaseInput extends r {
|
|
|
16514
16913
|
let type = {
|
|
16515
16914
|
name: 'Default Card',
|
|
16516
16915
|
formatLength: 19,
|
|
16517
|
-
|
|
16916
|
+
errorMessage: CreditCardValidationMessage,
|
|
16518
16917
|
cardIcon: 'credit-card'
|
|
16519
16918
|
};
|
|
16520
16919
|
|
|
@@ -17539,7 +17938,6 @@ class AuroInput extends BaseInput {
|
|
|
17539
17938
|
<p class="inputElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
17540
17939
|
${this.errorMessage}
|
|
17541
17940
|
</p>`
|
|
17542
|
-
|
|
17543
17941
|
}
|
|
17544
17942
|
`;
|
|
17545
17943
|
}
|
|
@@ -17555,25 +17953,6 @@ var inputVersion = '4.2.0';
|
|
|
17555
17953
|
|
|
17556
17954
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
17557
17955
|
/**
|
|
17558
|
-
* @prop {String} value - Value selected for the date picker.
|
|
17559
|
-
* @prop {String} valueEnd - Value selected for the second date picker when using date range.
|
|
17560
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
17561
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
17562
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
17563
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
17564
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
17565
|
-
* @attr {String} setCustomValidityValueMissing - Help text message to display when validity = `valueMissing`.
|
|
17566
|
-
* @attr {String} calendarStartDate - The first date that may be displayed in the calendar.
|
|
17567
|
-
* @attr {String} calendarEndDate - The last date that may be displayed in the calendar
|
|
17568
|
-
* @attr {String} calendarFocusDate - The date that will first be visually rendered to the user in the calendar.
|
|
17569
|
-
* @attr {Boolean} disabled - If set, disables the datepicker.
|
|
17570
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
17571
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
17572
|
-
* @attr {Boolean} range - If set, turns on date range functionality in auro-calendar.
|
|
17573
|
-
* @attr {String} centralDate - The date that determines the currently visible month.
|
|
17574
|
-
* @attr {String} maxDate - Maximum date. All dates after will be disabled.
|
|
17575
|
-
* @attr {String} minDate - Minimum date. All dates before will be disabled.
|
|
17576
|
-
* @attr {Array} monthNames = Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
17577
17956
|
* @slot helpText - Defines the content of the helpText.
|
|
17578
17957
|
* @slot mobileDateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
17579
17958
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -17670,7 +18049,15 @@ class AuroDatePicker extends r$7 {
|
|
|
17670
18049
|
* Generate unique names for dependency components.
|
|
17671
18050
|
*/
|
|
17672
18051
|
const versioning = new AuroDependencyVersioning$2();
|
|
18052
|
+
|
|
18053
|
+
/**
|
|
18054
|
+
* @private
|
|
18055
|
+
*/
|
|
17673
18056
|
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
18057
|
+
|
|
18058
|
+
/**
|
|
18059
|
+
* @private
|
|
18060
|
+
*/
|
|
17674
18061
|
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
17675
18062
|
}
|
|
17676
18063
|
|
|
@@ -17680,101 +18067,155 @@ class AuroDatePicker extends r$7 {
|
|
|
17680
18067
|
static get properties() {
|
|
17681
18068
|
return {
|
|
17682
18069
|
// ...super.properties,
|
|
17683
|
-
|
|
17684
|
-
|
|
17685
|
-
|
|
17686
|
-
|
|
17687
|
-
noValidate: {
|
|
17688
|
-
type: Boolean
|
|
17689
|
-
},
|
|
17690
|
-
setCustomValidity: {
|
|
17691
|
-
type: String,
|
|
17692
|
-
reflect: true
|
|
17693
|
-
},
|
|
17694
|
-
setCustomValidityRangeUnderflow: {
|
|
17695
|
-
type: String,
|
|
17696
|
-
reflect: true
|
|
17697
|
-
},
|
|
17698
|
-
setCustomValidityRangeOverflow: {
|
|
18070
|
+
/**
|
|
18071
|
+
* The last date that may be displayed in the calendar.
|
|
18072
|
+
*/
|
|
18073
|
+
calendarEndDate: {
|
|
17699
18074
|
type: String,
|
|
17700
18075
|
reflect: true
|
|
17701
18076
|
},
|
|
17702
|
-
|
|
18077
|
+
|
|
18078
|
+
/**
|
|
18079
|
+
* The date that will first be visually rendered to the user in the calendar.
|
|
18080
|
+
*/
|
|
18081
|
+
calendarFocusDate: {
|
|
17703
18082
|
type: String,
|
|
17704
18083
|
reflect: true
|
|
17705
18084
|
},
|
|
17706
|
-
|
|
18085
|
+
|
|
18086
|
+
/**
|
|
18087
|
+
* The first date that may be displayed in the calendar.
|
|
18088
|
+
*/
|
|
18089
|
+
calendarStartDate: {
|
|
17707
18090
|
type: String,
|
|
17708
18091
|
reflect: true
|
|
17709
18092
|
},
|
|
17710
|
-
|
|
17711
|
-
|
|
17712
|
-
|
|
18093
|
+
|
|
18094
|
+
/**
|
|
18095
|
+
* The date that determines the currently visible month.
|
|
18096
|
+
*/
|
|
18097
|
+
centralDate: {
|
|
18098
|
+
type: String
|
|
17713
18099
|
},
|
|
18100
|
+
|
|
18101
|
+
/**
|
|
18102
|
+
* If set, disables the datepicker.
|
|
18103
|
+
*/
|
|
17714
18104
|
disabled: {
|
|
17715
18105
|
type: Boolean,
|
|
17716
18106
|
reflect: true
|
|
17717
18107
|
},
|
|
17718
|
-
|
|
17719
|
-
|
|
17720
|
-
|
|
17721
|
-
|
|
17722
|
-
|
|
18108
|
+
|
|
18109
|
+
/**
|
|
18110
|
+
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
18111
|
+
*/
|
|
18112
|
+
error: {
|
|
17723
18113
|
type: String,
|
|
17724
18114
|
reflect: true
|
|
17725
18115
|
},
|
|
17726
|
-
|
|
17727
|
-
|
|
17728
|
-
|
|
17729
|
-
|
|
17730
|
-
type: String
|
|
17731
|
-
},
|
|
17732
|
-
centralDate: {
|
|
17733
|
-
type: String
|
|
17734
|
-
},
|
|
18116
|
+
|
|
18117
|
+
/**
|
|
18118
|
+
* Maximum date. All dates after will be disabled.
|
|
18119
|
+
*/
|
|
17735
18120
|
maxDate: {
|
|
17736
18121
|
type: String,
|
|
17737
18122
|
reflect: true
|
|
17738
18123
|
},
|
|
18124
|
+
|
|
18125
|
+
/**
|
|
18126
|
+
* Minimum date. All dates before will be disabled.
|
|
18127
|
+
*/
|
|
17739
18128
|
minDate: {
|
|
17740
18129
|
type: String,
|
|
17741
18130
|
reflect: true
|
|
17742
18131
|
},
|
|
18132
|
+
|
|
18133
|
+
/**
|
|
18134
|
+
* Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
18135
|
+
*/
|
|
17743
18136
|
monthNames: {
|
|
17744
18137
|
type: Array
|
|
17745
18138
|
},
|
|
17746
|
-
|
|
17747
|
-
|
|
17748
|
-
|
|
18139
|
+
|
|
18140
|
+
/**
|
|
18141
|
+
* If set, disables auto-validation on blur.
|
|
18142
|
+
*/
|
|
18143
|
+
noValidate: {
|
|
18144
|
+
type: Boolean
|
|
17749
18145
|
},
|
|
17750
|
-
|
|
17751
|
-
|
|
18146
|
+
|
|
18147
|
+
/**
|
|
18148
|
+
* If set, turns on date range functionality in auro-calendar.
|
|
18149
|
+
*/
|
|
18150
|
+
range: {
|
|
18151
|
+
type: Boolean,
|
|
17752
18152
|
reflect: true
|
|
17753
18153
|
},
|
|
17754
|
-
|
|
17755
|
-
|
|
18154
|
+
|
|
18155
|
+
/**
|
|
18156
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
18157
|
+
*/
|
|
18158
|
+
required: {
|
|
18159
|
+
type: Boolean,
|
|
17756
18160
|
reflect: true
|
|
17757
18161
|
},
|
|
17758
18162
|
|
|
17759
18163
|
/**
|
|
17760
|
-
*
|
|
18164
|
+
* Sets a custom help text message to display for all validityStates.
|
|
17761
18165
|
*/
|
|
17762
|
-
|
|
18166
|
+
setCustomValidity: {
|
|
18167
|
+
type: String
|
|
18168
|
+
},
|
|
17763
18169
|
|
|
17764
18170
|
/**
|
|
17765
|
-
*
|
|
18171
|
+
* Custom help text message to display when validity = `customError`.
|
|
17766
18172
|
*/
|
|
17767
|
-
|
|
18173
|
+
setCustomValidityCustomError: {
|
|
18174
|
+
type: String
|
|
18175
|
+
},
|
|
17768
18176
|
|
|
17769
18177
|
/**
|
|
17770
|
-
*
|
|
18178
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17771
18179
|
*/
|
|
17772
|
-
|
|
18180
|
+
setCustomValidityRangeOverflow: {
|
|
18181
|
+
type: String
|
|
18182
|
+
},
|
|
17773
18183
|
|
|
17774
18184
|
/**
|
|
17775
|
-
*
|
|
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`.
|
|
17776
18193
|
*/
|
|
17777
|
-
|
|
18194
|
+
setCustomValidityValueMissing: {
|
|
18195
|
+
type: String
|
|
18196
|
+
},
|
|
18197
|
+
|
|
18198
|
+
/**
|
|
18199
|
+
* Specifies the `validityState` this element is in.
|
|
18200
|
+
*/
|
|
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
|
+
}
|
|
17778
18219
|
};
|
|
17779
18220
|
}
|
|
17780
18221
|
|
|
@@ -17896,30 +18337,6 @@ class AuroDatePicker extends r$7 {
|
|
|
17896
18337
|
return dateStr;
|
|
17897
18338
|
}
|
|
17898
18339
|
|
|
17899
|
-
/**
|
|
17900
|
-
* Return appropriate error message.
|
|
17901
|
-
* @param {Object} evt - Event passed in from auro-input when the event triggered this function.
|
|
17902
|
-
* @private
|
|
17903
|
-
*/
|
|
17904
|
-
getErrorMessage(evt) {
|
|
17905
|
-
if (evt) {
|
|
17906
|
-
const inputClass = evt.target.getAttribute('class');
|
|
17907
|
-
if (inputClass === 'dateFrom') {
|
|
17908
|
-
if (this.inputList[0].validity && this.inputList[0].validity !== 'valid') {
|
|
17909
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17910
|
-
} else {
|
|
17911
|
-
this.errorMessage = undefined;
|
|
17912
|
-
}
|
|
17913
|
-
}
|
|
17914
|
-
|
|
17915
|
-
if (inputClass === 'dateTo') {
|
|
17916
|
-
if (!this.errorMessage && this.inputList[1].validity && this.inputList[1].validity !== 'valid') {
|
|
17917
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17918
|
-
}
|
|
17919
|
-
}
|
|
17920
|
-
}
|
|
17921
|
-
}
|
|
17922
|
-
|
|
17923
18340
|
/**
|
|
17924
18341
|
* Changes the calendar's visibility to reflect the value of the central date attribute.
|
|
17925
18342
|
* @private
|
|
@@ -18028,13 +18445,13 @@ class AuroDatePicker extends r$7 {
|
|
|
18028
18445
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
18029
18446
|
if (evt.detail.validity === 'customError') {
|
|
18030
18447
|
this.validity = evt.detail.validity;
|
|
18031
|
-
this.
|
|
18448
|
+
this.errorMessage = evt.detail.message;
|
|
18032
18449
|
} else if (evt.target === this.inputList[0]) {
|
|
18033
18450
|
this.validity = evt.detail.validity;
|
|
18034
|
-
this.
|
|
18451
|
+
this.errorMessage = evt.detail.message;
|
|
18035
18452
|
} else if (this.inputList.length > 1 && evt.target === this.inputList[1] && (this.inputList[0].validity === 'valid' || this.inputList[0].validity === undefined)) {
|
|
18036
18453
|
this.validity = evt.detail.validity;
|
|
18037
|
-
this.
|
|
18454
|
+
this.errorMessage = evt.detail.message;
|
|
18038
18455
|
}
|
|
18039
18456
|
});
|
|
18040
18457
|
});
|
|
@@ -18185,10 +18602,11 @@ class AuroDatePicker extends r$7 {
|
|
|
18185
18602
|
if (!this.value || !this.util.validDateStr(this.value)) {
|
|
18186
18603
|
this.value = newDate;
|
|
18187
18604
|
} else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd)) {
|
|
18188
|
-
|
|
18189
18605
|
// verify the date is after this.value to insure we are setting a proper range
|
|
18190
18606
|
if (new Date(newDate) >= new Date(this.value)) {
|
|
18191
18607
|
this.valueEnd = newDate;
|
|
18608
|
+
} else {
|
|
18609
|
+
this.value = newDate;
|
|
18192
18610
|
}
|
|
18193
18611
|
} else {
|
|
18194
18612
|
this.value = newDate;
|
|
@@ -18324,7 +18742,7 @@ class AuroDatePicker extends r$7 {
|
|
|
18324
18742
|
// This is done to prevent error icon from displaying on both inputs in range support
|
|
18325
18743
|
const lastInput = this.inputList[this.inputList.length - 1];
|
|
18326
18744
|
|
|
18327
|
-
if (this.error) {
|
|
18745
|
+
if (this.hasAttribute('error')) {
|
|
18328
18746
|
// Set the error attribute on the last input
|
|
18329
18747
|
lastInput.setAttribute('error', this.getAttribute('error'));
|
|
18330
18748
|
} else {
|
|
@@ -18346,11 +18764,14 @@ class AuroDatePicker extends r$7 {
|
|
|
18346
18764
|
// a later date than the current value date
|
|
18347
18765
|
if (changedProperties.has('minDate')) {
|
|
18348
18766
|
if (this.minDate) {
|
|
18349
|
-
const minDateMonth = Number(this.minDate.
|
|
18767
|
+
const minDateMonth = Number(this.minDate.split('/')[0]);
|
|
18768
|
+
const minDateYear = Number(this.minDate.split('/')[2]);
|
|
18350
18769
|
|
|
18351
18770
|
// This sets the visible month of the calendar to the minDate when the minDate is later
|
|
18352
18771
|
// than the current visible date
|
|
18353
|
-
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) {
|
|
18354
18775
|
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18355
18776
|
}
|
|
18356
18777
|
|
|
@@ -18371,6 +18792,17 @@ class AuroDatePicker extends r$7 {
|
|
|
18371
18792
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
18372
18793
|
// an earlier date than the current value date
|
|
18373
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
|
+
|
|
18374
18806
|
if (this.maxDate) {
|
|
18375
18807
|
if (this.value) {
|
|
18376
18808
|
if (new Date(this.maxDate).getTime() < new Date(this.value).getTime()) {
|
|
@@ -18442,6 +18874,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18442
18874
|
noValidate
|
|
18443
18875
|
.max="${this.maxDate}"
|
|
18444
18876
|
.min="${this.minDate}"
|
|
18877
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18878
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18445
18879
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18446
18880
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18447
18881
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18459,6 +18893,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18459
18893
|
noValidate
|
|
18460
18894
|
.max="${this.maxDate}"
|
|
18461
18895
|
.min="${this.minDate}"
|
|
18896
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18897
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18462
18898
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18463
18899
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18464
18900
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18489,8 +18925,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18489
18925
|
? u$6`
|
|
18490
18926
|
<slot name="helpText"></slot>
|
|
18491
18927
|
` : u$6`
|
|
18492
|
-
<p class="datepickerElement-helpText"
|
|
18493
|
-
${this.
|
|
18928
|
+
<p class="datepickerElement-helpText" role="alert" aria-live="assertive" part="helpText">
|
|
18929
|
+
${this.errorMessage}
|
|
18494
18930
|
</p>`
|
|
18495
18931
|
}
|
|
18496
18932
|
</span>
|