@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
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$7=globalThis,e$a=t$7.ShadowRoot&&(
|
|
6
|
+
const t$7=globalThis,e$a=t$7.ShadowRoot&&(undefined===t$7.ShadyCSS||t$7.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$7=Symbol(),o$a=new WeakMap;let n$9 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$7)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$a&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$a.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$a.set(s,t));}return t}toString(){return this.cssText}};const r$a=t=>new n$9("string"==typeof t?t:t+"",undefined,s$7),i$c=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$9(o,t,s$7)},S$4=(s,o)=>{if(e$a)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$7.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$7=e$a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$a(e)})(t):t;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$b,defineProperty:e$9,getOwnPropertyDescriptor:r$9,getOwnPropertyNames:h$4,getOwnPropertySymbols:o$9,getPrototypeOf:n$8}=Object,a$6=globalThis,c$6=a$6.trustedTypes,l$6=c$6?c$6.emptyScript:"",p$5=a$6.reactiveElementPolyfillSupport,d$4=(t,s)=>t,u$8={toAttribute(t,s){switch(s){case Boolean:t=t?l$6:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$4=(t,s)=>!i$b(t,s),y$4={attribute
|
|
12
|
+
*/const{is:i$b,defineProperty:e$9,getOwnPropertyDescriptor:r$9,getOwnPropertyNames:h$4,getOwnPropertySymbols:o$9,getPrototypeOf:n$8}=Object,a$6=globalThis,c$6=a$6.trustedTypes,l$6=c$6?c$6.emptyScript:"",p$5=a$6.reactiveElementPolyfillSupport,d$4=(t,s)=>t,u$8={toAttribute(t,s){switch(s){case Boolean:t=t?l$6:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$4=(t,s)=>!i$b(t,s),y$4={attribute:true,type:String,converter:u$8,reflect:false,hasChanged:f$4};Symbol.metadata??=Symbol("metadata"),a$6.litPropertyMetadata??=new WeakMap;let b$2 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$4){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$9(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$9(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$4}static _$Ei(){if(this.hasOwnProperty(d$4("elementProperties")))return;const t=n$8(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$4("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$4("properties"))){const t=this.properties,s=[...h$4(t),...o$9(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$7(s));}else undefined!==s&&i.push(c$7(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$4(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$8).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$8;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$4)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$4("elementProperties")]=new Map,b$2[d$4("finalized")]=new Map,p$5?.({ReactiveElement:b$2}),(a$6.reactiveElementVersions??=[]).push("2.0.4");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const t$6=globalThis,i$a=t$6.trustedTypes,s$6=i$a?i$a.createPolicy("lit-html",{createHTML:t=>t}):
|
|
19
|
+
const t$6=globalThis,i$a=t$6.trustedTypes,s$6=i$a?i$a.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$8="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$3,n$7=`<${o$8}>`,r$8=document,l$5=()=>r$8.createComment(""),c$5=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$5=Array.isArray,u$7=t=>a$5(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$2=/>/g,m$3=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$3(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$8.createTreeWalker(r$8,129);function P$2(t,i){if(!a$5(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$6?s$6.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3?"!--"===u[1]?c=v$3:undefined!==u[1]?c=_$2:undefined!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):undefined!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$3,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$3:'"'===u[3]?g$2:p$4):c===g$2||c===p$4?c=m$3:c===v$3||c===_$2?c=f$3:(c=m$3,r=undefined);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$7:d>=0?(o.push(a),s.slice(0,d)+e$8+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$8)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$a?i$a.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$5()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$5());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$2)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$5(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$3 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$8).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$2(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$8,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$3(this,t,i),c$5(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$7(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$2&&c$5(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return undefined===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$5(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$5()),this.O(l$5()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$2 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$2,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$3(this,t,i,0),o=!c$5(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$5(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?undefined:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$2 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3(this,t);}};const j$2=t$6.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$6.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$2(i.insertBefore(l$5(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/let r$7 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
25
|
+
*/let r$7 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$7._$litElement$=true,r$7["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$7});const i$9=globalThis.litElementPolyfillSupport;i$9?.({LitElement:r$7});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
const a$4=Symbol.for(""),o$7=t=>{if(t?.r===a$4)return t?._$litStatic$},s$5=t=>({_$litStatic$:t,r:a$4}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
32
|
+
const a$4=Symbol.for(""),o$7=t=>{if(t?.r===a$4)return t?._$litStatic$},s$5=t=>({_$litStatic$:t,r:a$4}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$4}),l$4=new Map,n$6=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$7(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$4.get(t))&&(n.raw=n,l$4.set(t,r=n)),e=u;}return t(r,...e)},u$6=n$6(x$2);
|
|
33
33
|
|
|
34
34
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
35
35
|
// See LICENSE in the project root for license information.
|
|
@@ -135,30 +135,87 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* @param {
|
|
138
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
139
|
+
*
|
|
140
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
141
141
|
* @returns {void}
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
145
|
+
* validateElementAttributes(inputElement);
|
|
146
|
+
*
|
|
147
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
148
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
149
|
+
*
|
|
150
|
+
* Validation rules:
|
|
151
|
+
* - input:
|
|
152
|
+
* - length:
|
|
153
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
154
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
155
|
+
* - pattern:
|
|
156
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
157
|
+
* - counter:
|
|
158
|
+
* - range:
|
|
159
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
160
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
142
161
|
*/
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
162
|
+
validateElementAttributes(elem) {
|
|
163
|
+
const validationRules = {
|
|
164
|
+
input: {
|
|
165
|
+
length: [
|
|
166
|
+
{
|
|
167
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
168
|
+
validity: 'tooShort',
|
|
169
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
173
|
+
validity: 'tooLong',
|
|
174
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
pattern: [
|
|
178
|
+
{
|
|
179
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
180
|
+
validity: 'patternMismatch',
|
|
181
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
counter: {
|
|
186
|
+
range: [
|
|
187
|
+
{
|
|
188
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
189
|
+
validity: 'rangeOverflow',
|
|
190
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
194
|
+
validity: 'rangeUnderflow',
|
|
195
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
196
|
+
}
|
|
197
|
+
]
|
|
150
198
|
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
let elementType;
|
|
202
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
203
|
+
elementType = 'input';
|
|
204
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
205
|
+
elementType = 'counter';
|
|
151
206
|
}
|
|
152
|
-
|
|
153
|
-
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
154
|
-
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
155
|
-
elem.validity = 'tooShort';
|
|
156
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
157
|
-
}
|
|
158
207
|
|
|
159
|
-
if (
|
|
160
|
-
|
|
161
|
-
|
|
208
|
+
if (elementType) {
|
|
209
|
+
const rules = validationRules[elementType];
|
|
210
|
+
|
|
211
|
+
if (rules) {
|
|
212
|
+
Object.values(rules).flat().forEach(rule => {
|
|
213
|
+
if (rule.check(elem)) {
|
|
214
|
+
elem.validity = rule.validity;
|
|
215
|
+
elem.errorMessage = rule.message(elem);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
162
219
|
}
|
|
163
220
|
}
|
|
164
221
|
|
|
@@ -174,33 +231,32 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
174
231
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
175
232
|
|
|
176
233
|
if (!elem.value.match(emailRegex)) {
|
|
177
|
-
elem.validity = '
|
|
178
|
-
elem.
|
|
234
|
+
elem.validity = 'patternMismatch';
|
|
235
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
179
236
|
}
|
|
180
237
|
} else if (elem.type === 'credit-card') {
|
|
181
238
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
182
239
|
elem.validity = 'tooShort';
|
|
183
|
-
elem.
|
|
240
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
184
241
|
}
|
|
185
242
|
} else if (elem.type === 'number') {
|
|
186
243
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
187
244
|
elem.validity = 'rangeOverflow';
|
|
188
|
-
elem.
|
|
245
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
189
246
|
}
|
|
190
247
|
|
|
191
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
248
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
192
249
|
elem.validity = 'rangeUnderflow';
|
|
193
|
-
elem.
|
|
250
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
194
251
|
}
|
|
195
|
-
|
|
196
252
|
} else if (elem.type === 'month-day-year' ||
|
|
197
253
|
elem.type === 'month-year' ||
|
|
198
254
|
elem.type === 'month-fullYear' ||
|
|
199
255
|
elem.type === 'year-month-day'
|
|
200
256
|
) {
|
|
201
|
-
if (elem.value
|
|
257
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
202
258
|
elem.validity = 'tooShort';
|
|
203
|
-
elem.
|
|
259
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
204
260
|
} else {
|
|
205
261
|
const valueDate = new Date(elem.value);
|
|
206
262
|
|
|
@@ -210,7 +266,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
210
266
|
|
|
211
267
|
if (valueDate > maxDate) {
|
|
212
268
|
elem.validity = 'rangeOverflow';
|
|
213
|
-
elem.
|
|
269
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
214
270
|
}
|
|
215
271
|
}
|
|
216
272
|
|
|
@@ -220,7 +276,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
220
276
|
|
|
221
277
|
if (valueDate < minDate) {
|
|
222
278
|
elem.validity = 'rangeUnderflow';
|
|
223
|
-
elem.
|
|
279
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
224
280
|
}
|
|
225
281
|
}
|
|
226
282
|
}
|
|
@@ -243,10 +299,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
243
299
|
|
|
244
300
|
if (elem.hasAttribute('error')) {
|
|
245
301
|
elem.validity = 'customError';
|
|
246
|
-
elem.
|
|
302
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
247
303
|
} else if (validationShouldRun) {
|
|
248
304
|
elem.validity = 'valid';
|
|
249
|
-
elem.
|
|
305
|
+
elem.errorMessage = '';
|
|
250
306
|
|
|
251
307
|
/**
|
|
252
308
|
* Only validate once we interact with the datepicker
|
|
@@ -258,7 +314,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
258
314
|
let hasValue = elem.value && elem.value.length > 0;
|
|
259
315
|
|
|
260
316
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
261
|
-
if (this.auroInputElements
|
|
317
|
+
if (this.auroInputElements?.length === 2) {
|
|
262
318
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
263
319
|
hasValue = false;
|
|
264
320
|
}
|
|
@@ -266,31 +322,29 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
266
322
|
|
|
267
323
|
if (!hasValue && elem.required) {
|
|
268
324
|
elem.validity = 'valueMissing';
|
|
269
|
-
elem.
|
|
325
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
270
326
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
271
327
|
this.validateType(elem);
|
|
272
|
-
this.
|
|
328
|
+
this.validateElementAttributes(elem);
|
|
329
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
330
|
+
this.validateElementAttributes(elem);
|
|
273
331
|
}
|
|
274
332
|
}
|
|
275
333
|
|
|
276
|
-
if (this.auroInputElements
|
|
334
|
+
if (this.auroInputElements?.length > 0) {
|
|
277
335
|
elem.validity = this.auroInputElements[0].validity;
|
|
278
|
-
elem.
|
|
336
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
279
337
|
|
|
280
|
-
if (elem.validity === 'valid') {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
284
|
-
}
|
|
338
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
339
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
340
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
285
341
|
}
|
|
286
342
|
}
|
|
287
343
|
|
|
288
344
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
293
|
-
}
|
|
345
|
+
// Use the validity message override if it is declared
|
|
346
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
347
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
294
348
|
}
|
|
295
349
|
|
|
296
350
|
this.getErrorMessage(elem);
|
|
@@ -336,18 +390,18 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
336
390
|
if (elem.validity !== 'valid') {
|
|
337
391
|
if (elem.setCustomValidity) {
|
|
338
392
|
elem.errorMessage = elem.setCustomValidity;
|
|
339
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
393
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
340
394
|
const input = elem.renderRoot.querySelector('input');
|
|
341
395
|
|
|
342
396
|
if (input.validationMessage.length > 0) {
|
|
343
397
|
elem.errorMessage = input.validationMessage;
|
|
344
398
|
}
|
|
345
|
-
} else if (this.inputElements &&
|
|
399
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
346
400
|
const firstInput = this.inputElements[0];
|
|
347
401
|
|
|
348
402
|
if (firstInput.validationMessage.length > 0) {
|
|
349
403
|
elem.errorMessage = firstInput.validationMessage;
|
|
350
|
-
} else if (this.inputElements
|
|
404
|
+
} else if (this.inputElements?.length === 2) {
|
|
351
405
|
const secondInput = this.inputElements[1];
|
|
352
406
|
|
|
353
407
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -690,7 +744,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
690
744
|
* @license
|
|
691
745
|
* Copyright 2017 Google LLC
|
|
692
746
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
693
|
-
*/const o$6={attribute
|
|
747
|
+
*/const o$6={attribute:true,type:String,converter:u$8,reflect:false,hasChanged:f$4},r$6=(t=o$6,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(undefined===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return undefined!==e&&this.P(o,undefined,t),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n$5(t){return (e,o)=>"object"==typeof o?r$6(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:true}:t),r?Object.getOwnPropertyDescriptor(e,o):undefined})(t,e,o)}
|
|
694
748
|
|
|
695
749
|
/**
|
|
696
750
|
* @module constants
|
|
@@ -6415,7 +6469,7 @@ function cleanEscapedString(input) {
|
|
|
6415
6469
|
* //=> Mon Sep 01 2014 00:00:00
|
|
6416
6470
|
*/
|
|
6417
6471
|
function subMonths(date, amount, options) {
|
|
6418
|
-
return addMonths(date, -
|
|
6472
|
+
return addMonths(date, -1, options);
|
|
6419
6473
|
}
|
|
6420
6474
|
|
|
6421
6475
|
/**
|
|
@@ -6445,7 +6499,7 @@ function subMonths(date, amount, options) {
|
|
|
6445
6499
|
* //=> Tue Sep 01 2009 00:00:00
|
|
6446
6500
|
*/
|
|
6447
6501
|
function subYears(date, amount, options) {
|
|
6448
|
-
return addYears(date, -
|
|
6502
|
+
return addYears(date, -1, options);
|
|
6449
6503
|
}
|
|
6450
6504
|
|
|
6451
6505
|
class RangeDatepickerCell extends r$7 {
|
|
@@ -6486,8 +6540,8 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6486
6540
|
@focus="${this.handleHover}"
|
|
6487
6541
|
class="day ${this.isCurrentDate ? 'currentDate' : ''} ${this.isSelected(this.selected)} ${this.isHovered(this.hovered)} ${this.isEnabled(this.day, this.min, this.max, this.disabledDays)}"
|
|
6488
6542
|
?disabled="${this.disabled}"
|
|
6489
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
6490
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
6543
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}">
|
|
6544
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
6491
6545
|
</button>
|
|
6492
6546
|
`;
|
|
6493
6547
|
}
|
|
@@ -6527,7 +6581,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6527
6581
|
let _a;
|
|
6528
6582
|
if (!this.disabled) {
|
|
6529
6583
|
this.dispatchEvent(new CustomEvent('date-is-selected', {
|
|
6530
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6584
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6531
6585
|
}));
|
|
6532
6586
|
}
|
|
6533
6587
|
}
|
|
@@ -6535,7 +6589,7 @@ class RangeDatepickerCell extends r$7 {
|
|
|
6535
6589
|
handleHover() {
|
|
6536
6590
|
let _a;
|
|
6537
6591
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
6538
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
6592
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
6539
6593
|
}));
|
|
6540
6594
|
}
|
|
6541
6595
|
|
|
@@ -6636,18 +6690,18 @@ RangeDatepickerCell.styles = i$c`
|
|
|
6636
6690
|
opacity: 0.4;
|
|
6637
6691
|
}
|
|
6638
6692
|
`;
|
|
6639
|
-
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day",
|
|
6640
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected",
|
|
6641
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered",
|
|
6642
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo",
|
|
6643
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom",
|
|
6644
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month",
|
|
6645
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min",
|
|
6646
|
-
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max",
|
|
6647
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled",
|
|
6648
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
6649
|
-
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate",
|
|
6650
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate",
|
|
6693
|
+
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "day", undefined);
|
|
6694
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "selected", undefined);
|
|
6695
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "hovered", undefined);
|
|
6696
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateTo", undefined);
|
|
6697
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "dateFrom", undefined);
|
|
6698
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "month", undefined);
|
|
6699
|
+
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "min", undefined);
|
|
6700
|
+
__decorate([n$5({ type: Number })], RangeDatepickerCell.prototype, "max", undefined);
|
|
6701
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "disabled", undefined);
|
|
6702
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCell.prototype, "disabledDays", undefined);
|
|
6703
|
+
__decorate([n$5({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", undefined);
|
|
6704
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", undefined);
|
|
6651
6705
|
__decorate([n$5({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6652
6706
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6653
6707
|
|
|
@@ -6726,11 +6780,11 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6726
6780
|
<div class="table">
|
|
6727
6781
|
<div class="thead">
|
|
6728
6782
|
<div class="tr">
|
|
6729
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
6783
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map((dayNameOfWeek) => this.renderDayOfWeek(dayNameOfWeek))}
|
|
6730
6784
|
</div>
|
|
6731
6785
|
</div>
|
|
6732
6786
|
<div class="tbody">
|
|
6733
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
6787
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map((week) => this.renderWeek(week))}
|
|
6734
6788
|
</div>
|
|
6735
6789
|
</div>
|
|
6736
6790
|
</div>
|
|
@@ -6929,7 +6983,7 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6929
6983
|
|
|
6930
6984
|
handleOpenYearSelection() {
|
|
6931
6985
|
let _a;
|
|
6932
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
6986
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
6933
6987
|
const index = menu.items.findIndex((item) => item.value === this.year.toString());
|
|
6934
6988
|
menu.select(index);
|
|
6935
6989
|
menu.show();
|
|
@@ -6937,9 +6991,9 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6937
6991
|
|
|
6938
6992
|
handleYearSelected() {
|
|
6939
6993
|
let _a;
|
|
6940
|
-
const menu = (_a = this.shadowRoot) === null || _a ===
|
|
6994
|
+
const menu = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.year-change');
|
|
6941
6995
|
const selected = menu.selected;
|
|
6942
|
-
this.year = parseInt(selected === null || selected ===
|
|
6996
|
+
this.year = parseInt(selected === null || selected === undefined ? undefined : selected.value, 10);
|
|
6943
6997
|
}
|
|
6944
6998
|
|
|
6945
6999
|
handleDateHovered(event) {
|
|
@@ -6951,12 +7005,12 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6951
7005
|
|
|
6952
7006
|
handleNextMonth() {
|
|
6953
7007
|
let _a, _b;
|
|
6954
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
6955
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
6956
|
-
tbody === null || tbody ===
|
|
6957
|
-
tbody === null || tbody ===
|
|
6958
|
-
monthName === null || monthName ===
|
|
6959
|
-
monthName === null || monthName ===
|
|
7008
|
+
const tbody = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.tbody');
|
|
7009
|
+
const monthName = (_b = this.shadowRoot) === null || _b === undefined ? undefined : _b.querySelector('.header > div');
|
|
7010
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7011
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToLeft');
|
|
7012
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7013
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToLeft');
|
|
6960
7014
|
const month = parse(this.month, 'MM', new Date());
|
|
6961
7015
|
const monthPlusDate = addMonths(month, 1);
|
|
6962
7016
|
const monthPlusString = format(monthPlusDate, 'MM', {
|
|
@@ -6973,20 +7027,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6973
7027
|
}
|
|
6974
7028
|
this.dispatchEvent(new CustomEvent('next-month'));
|
|
6975
7029
|
setTimeout(() => {
|
|
6976
|
-
tbody === null || tbody ===
|
|
6977
|
-
tbody === null || tbody ===
|
|
6978
|
-
tbody === null || tbody ===
|
|
6979
|
-
monthName === null || monthName ===
|
|
6980
|
-
monthName === null || monthName ===
|
|
6981
|
-
monthName === null || monthName ===
|
|
7030
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7031
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToRight');
|
|
7032
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToLeft');
|
|
7033
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7034
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToRight');
|
|
7035
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToLeft');
|
|
6982
7036
|
setTimeout(() => {
|
|
6983
|
-
tbody === null || tbody ===
|
|
6984
|
-
tbody === null || tbody ===
|
|
6985
|
-
monthName === null || monthName ===
|
|
6986
|
-
monthName === null || monthName ===
|
|
7037
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7038
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToRight');
|
|
7039
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7040
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToRight');
|
|
6987
7041
|
setTimeout(() => {
|
|
6988
|
-
tbody === null || tbody ===
|
|
6989
|
-
monthName === null || monthName ===
|
|
7042
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7043
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
6990
7044
|
}, 100);
|
|
6991
7045
|
}, 100);
|
|
6992
7046
|
}, 100);
|
|
@@ -6994,21 +7048,21 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
6994
7048
|
|
|
6995
7049
|
handlePrevMonth() {
|
|
6996
7050
|
let _a, _b;
|
|
6997
|
-
const tbody = (_a = this.shadowRoot) === null || _a ===
|
|
6998
|
-
const monthName = (_b = this.shadowRoot) === null || _b ===
|
|
6999
|
-
tbody === null || tbody ===
|
|
7000
|
-
tbody === null || tbody ===
|
|
7001
|
-
monthName === null || monthName ===
|
|
7002
|
-
monthName === null || monthName ===
|
|
7051
|
+
const tbody = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('.tbody');
|
|
7052
|
+
const monthName = (_b = this.shadowRoot) === null || _b === undefined ? undefined : _b.querySelector('.header > div');
|
|
7053
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7054
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToRight');
|
|
7055
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7056
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToRight');
|
|
7003
7057
|
const month = parse(this.month, 'MM', new Date());
|
|
7004
|
-
const monthMinusDate = subMonths(month
|
|
7058
|
+
const monthMinusDate = subMonths(month);
|
|
7005
7059
|
const monthMinusString = format(monthMinusDate, 'MM', {
|
|
7006
7060
|
locale: this.locale,
|
|
7007
7061
|
});
|
|
7008
7062
|
this.month = monthMinusString;
|
|
7009
7063
|
if (this.month === '12') {
|
|
7010
7064
|
const year = parse(this.year.toString(), 'yyyy', new Date());
|
|
7011
|
-
const yearMinusDate = subYears(year
|
|
7065
|
+
const yearMinusDate = subYears(year);
|
|
7012
7066
|
const yearMinusString = format(yearMinusDate, 'yyyy', {
|
|
7013
7067
|
locale: this.locale,
|
|
7014
7068
|
});
|
|
@@ -7016,20 +7070,20 @@ class RangeDatepickerCalendar extends r$7 {
|
|
|
7016
7070
|
}
|
|
7017
7071
|
this.dispatchEvent(new CustomEvent('prev-month'));
|
|
7018
7072
|
setTimeout(() => {
|
|
7019
|
-
tbody === null || tbody ===
|
|
7020
|
-
tbody === null || tbody ===
|
|
7021
|
-
tbody === null || tbody ===
|
|
7022
|
-
monthName === null || monthName ===
|
|
7023
|
-
monthName === null || monthName ===
|
|
7024
|
-
monthName === null || monthName ===
|
|
7073
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('withTransition');
|
|
7074
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('moveToLeft');
|
|
7075
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToRight');
|
|
7076
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7077
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('moveToLeft');
|
|
7078
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToRight');
|
|
7025
7079
|
setTimeout(() => {
|
|
7026
|
-
tbody === null || tbody ===
|
|
7027
|
-
tbody === null || tbody ===
|
|
7028
|
-
monthName === null || monthName ===
|
|
7029
|
-
monthName === null || monthName ===
|
|
7080
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.add('withTransition');
|
|
7081
|
+
tbody === null || tbody === undefined ? undefined : tbody.classList.remove('moveToLeft');
|
|
7082
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.add('withTransition');
|
|
7083
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('moveToLeft');
|
|
7030
7084
|
setTimeout(() => {
|
|
7031
|
-
monthName === null || monthName ===
|
|
7032
|
-
monthName === null || monthName ===
|
|
7085
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7086
|
+
monthName === null || monthName === undefined ? undefined : monthName.classList.remove('withTransition');
|
|
7033
7087
|
}, 100);
|
|
7034
7088
|
}, 100);
|
|
7035
7089
|
}, 100);
|
|
@@ -7149,24 +7203,24 @@ RangeDatepickerCalendar.styles = i$c`
|
|
|
7149
7203
|
max-height: 200px;
|
|
7150
7204
|
}
|
|
7151
7205
|
`;
|
|
7152
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom",
|
|
7153
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo",
|
|
7154
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate",
|
|
7155
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange",
|
|
7156
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month",
|
|
7157
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow",
|
|
7158
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange",
|
|
7159
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next",
|
|
7160
|
-
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev",
|
|
7161
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year",
|
|
7162
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays",
|
|
7206
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom", undefined);
|
|
7207
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "dateTo", undefined);
|
|
7208
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate", undefined);
|
|
7209
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange", undefined);
|
|
7210
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "month", undefined);
|
|
7211
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow", undefined);
|
|
7212
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange", undefined);
|
|
7213
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "next", undefined);
|
|
7214
|
+
__decorate([n$5({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev", undefined);
|
|
7215
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "year", undefined);
|
|
7216
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays", undefined);
|
|
7163
7217
|
__decorate([n$5({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7164
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max",
|
|
7165
|
-
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min",
|
|
7166
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
7167
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList",
|
|
7168
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek",
|
|
7169
|
-
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth",
|
|
7218
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "max", undefined);
|
|
7219
|
+
__decorate([n$5({ type: String })], RangeDatepickerCalendar.prototype, "min", undefined);
|
|
7220
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList", undefined);
|
|
7221
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", undefined);
|
|
7222
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", undefined);
|
|
7223
|
+
__decorate([n$5({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", undefined);
|
|
7170
7224
|
AuroLibraryRuntimeUtils$2.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7171
7225
|
|
|
7172
7226
|
/**
|
|
@@ -7180,11 +7234,11 @@ const t$5={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
7180
7234
|
* @license
|
|
7181
7235
|
* Copyright 2018 Google LLC
|
|
7182
7236
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7183
|
-
*/const e$6=e$7(class extends i$7{constructor(t){if(super(t),t.type!==t$5.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(
|
|
7237
|
+
*/const e$6=e$7(class extends i$7{constructor(t){if(super(t),t.type!==t$5.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$2}});
|
|
7184
7238
|
|
|
7185
7239
|
var styleCss$6 = i$c`@media screen and (max-width: 576px){:host{display:flex;justify-content:center}}.day{position:relative;width:var(--ds-size-500, 2.5rem);height:calc(var(--ds-size-700, 3.5rem) - 2px);padding:0;border-width:1px;border-style:solid;border-radius:var(--ds-size-300, 1.5rem);cursor:pointer;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);user-select:none}.day.disabled{cursor:default !important}.day.inRange::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%)}@media screen and (min-width: 576px){.day.inRange::before{width:var(--ds-size-600, 3rem)}}.day.rangeDepartDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(0%, -50%)}@media screen and (min-width: 576px){.day.rangeDepartDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.day.rangeReturnDate::before,.day.lastHoveredDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(-100%, -50%)}@media screen and (min-width: 576px){.day.rangeReturnDate::before,.day.lastHoveredDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.dateSlot{display:flex;flex-direction:column;font-size:var(--ds-text-body-size-xxs, 0.625rem)}::slotted([slot^=date_]){position:absolute;top:80%;left:50%;width:80%;overflow:hidden;white-space:nowrap;transform:translate(-50%, -50%)}::slotted(auro-icon){max-height:24px;max-width:24px}:host([renderForDateSlot]) .buttonWrapper{position:relative;width:100%;top:5px}:host([renderForDateSlot]) .currentDayMarker{position:relative;padding-bottom:5px;top:-8px}@media screen and (min-width: 576px){.day{width:var(--ds-size-600, 3rem);height:var(--ds-size-800, 4rem);font-size:var(--ds-text-body-size-lg, 1.125rem)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-text-body-size-xs, 0.75rem)}}`;
|
|
7186
7240
|
|
|
7187
|
-
var colorCss$6 = i$c`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-success-default, #0b6f4d)}.day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}.day.selected{--ds-auro-calendar-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-calendar-cell-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-inverse, #ffffff);box-shadow:var(--ds-auro-calendar-boxshadow-color)}.day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-cell-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:unset}.day.selected:not(:hover){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-inverse, #ffffff)}.day:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-
|
|
7241
|
+
var colorCss$6 = i$c`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-success-default, #0b6f4d)}.day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}.day.selected{--ds-auro-calendar-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-calendar-cell-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-inverse, #ffffff);box-shadow:var(--ds-auro-calendar-boxshadow-color)}.day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-cell-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:unset}.day.selected:not(:hover){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-inverse, #ffffff)}.day:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-brand-neutral-200, #e4e8ec);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-default, #2a2a2a)}.day.disabled{--ds-auro-calendar-cell-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff)}.day.inRange:before,.day.rangeDepartDate:before,.day.rangeReturnDate:before,.day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}.day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}:host([disabled]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
7188
7242
|
|
|
7189
7243
|
var styleCss$5 = i$c`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 400;--ds-depth-tooltip: 300;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #dddddd;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #dddddd;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([addSpace]) :host(:not([data-show])) .popover,:host(:not([data-show])) .popover,:host([disabled]) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 300)}:host([removeSpace]) .popover{margin:calc(-1*(var(--ds-size-50, 0.25rem) + 1px)) 0 !important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0 !important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border-radius:var(--ds-border-radius, 0.375rem)}@media screen and (min-width: 576px){.popover{max-width:50%}}@media screen and (min-width: 768px){.popover{max-width:40%}}@media screen and (min-width: 1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1*var(--ds-size-200, 1rem));left:calc(-1*var(--ds-size-75, 0.375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, 0.25rem);right:calc(-1*var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100, 0.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, 0.75rem);height:var(--ds-size-150, 0.75rem);content:""}`;
|
|
7190
7244
|
|
|
@@ -7369,11 +7423,11 @@ function isLayoutViewport() {
|
|
|
7369
7423
|
}
|
|
7370
7424
|
|
|
7371
7425
|
function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
7372
|
-
if (includeScale ===
|
|
7426
|
+
if (includeScale === undefined) {
|
|
7373
7427
|
includeScale = false;
|
|
7374
7428
|
}
|
|
7375
7429
|
|
|
7376
|
-
if (isFixedStrategy ===
|
|
7430
|
+
if (isFixedStrategy === undefined) {
|
|
7377
7431
|
isFixedStrategy = false;
|
|
7378
7432
|
}
|
|
7379
7433
|
|
|
@@ -7627,7 +7681,7 @@ function effect$1(_ref2) {
|
|
|
7627
7681
|
var state = _ref2.state,
|
|
7628
7682
|
options = _ref2.options;
|
|
7629
7683
|
var _options$element = options.element,
|
|
7630
|
-
arrowElement = _options$element ===
|
|
7684
|
+
arrowElement = _options$element === undefined ? '[data-popper-arrow]' : _options$element;
|
|
7631
7685
|
|
|
7632
7686
|
if (arrowElement == null) {
|
|
7633
7687
|
return;
|
|
@@ -7697,9 +7751,9 @@ function mapToStyles(_ref2) {
|
|
|
7697
7751
|
roundOffsets = _ref2.roundOffsets,
|
|
7698
7752
|
isFixed = _ref2.isFixed;
|
|
7699
7753
|
var _offsets$x = offsets.x,
|
|
7700
|
-
x = _offsets$x ===
|
|
7754
|
+
x = _offsets$x === undefined ? 0 : _offsets$x,
|
|
7701
7755
|
_offsets$y = offsets.y,
|
|
7702
|
-
y = _offsets$y ===
|
|
7756
|
+
y = _offsets$y === undefined ? 0 : _offsets$y;
|
|
7703
7757
|
|
|
7704
7758
|
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
7705
7759
|
x: x,
|
|
@@ -7779,11 +7833,11 @@ function computeStyles(_ref5) {
|
|
|
7779
7833
|
var state = _ref5.state,
|
|
7780
7834
|
options = _ref5.options;
|
|
7781
7835
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
7782
|
-
gpuAcceleration = _options$gpuAccelerat ===
|
|
7836
|
+
gpuAcceleration = _options$gpuAccelerat === undefined ? true : _options$gpuAccelerat,
|
|
7783
7837
|
_options$adaptive = options.adaptive,
|
|
7784
|
-
adaptive = _options$adaptive ===
|
|
7838
|
+
adaptive = _options$adaptive === undefined ? true : _options$adaptive,
|
|
7785
7839
|
_options$roundOffsets = options.roundOffsets,
|
|
7786
|
-
roundOffsets = _options$roundOffsets ===
|
|
7840
|
+
roundOffsets = _options$roundOffsets === undefined ? true : _options$roundOffsets;
|
|
7787
7841
|
var commonStyles = {
|
|
7788
7842
|
placement: getBasePlacement(state.placement),
|
|
7789
7843
|
variation: getVariation(state.placement),
|
|
@@ -7834,9 +7888,9 @@ function effect(_ref) {
|
|
|
7834
7888
|
instance = _ref.instance,
|
|
7835
7889
|
options = _ref.options;
|
|
7836
7890
|
var _options$scroll = options.scroll,
|
|
7837
|
-
scroll = _options$scroll ===
|
|
7891
|
+
scroll = _options$scroll === undefined ? true : _options$scroll,
|
|
7838
7892
|
_options$resize = options.resize,
|
|
7839
|
-
resize = _options$resize ===
|
|
7893
|
+
resize = _options$resize === undefined ? true : _options$resize;
|
|
7840
7894
|
var window = getWindow$1(state.elements.popper);
|
|
7841
7895
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
7842
7896
|
|
|
@@ -7951,7 +8005,7 @@ function getDocumentRect$1(element) {
|
|
|
7951
8005
|
|
|
7952
8006
|
var html = getDocumentElement$1(element);
|
|
7953
8007
|
var winScroll = getWindowScroll(element);
|
|
7954
|
-
var body = (_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8008
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body;
|
|
7955
8009
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
7956
8010
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
7957
8011
|
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
@@ -8002,12 +8056,12 @@ reference element's position.
|
|
|
8002
8056
|
function listScrollParents(element, list) {
|
|
8003
8057
|
var _element$ownerDocumen;
|
|
8004
8058
|
|
|
8005
|
-
if (list ===
|
|
8059
|
+
if (list === undefined) {
|
|
8006
8060
|
list = [];
|
|
8007
8061
|
}
|
|
8008
8062
|
|
|
8009
8063
|
var scrollParent = getScrollParent(element);
|
|
8010
|
-
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ?
|
|
8064
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? undefined : _element$ownerDocumen.body);
|
|
8011
8065
|
var win = getWindow$1(scrollParent);
|
|
8012
8066
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
8013
8067
|
var updatedList = list.concat(target);
|
|
@@ -8146,25 +8200,25 @@ function computeOffsets(_ref) {
|
|
|
8146
8200
|
}
|
|
8147
8201
|
|
|
8148
8202
|
function detectOverflow$1(state, options) {
|
|
8149
|
-
if (options ===
|
|
8203
|
+
if (options === undefined) {
|
|
8150
8204
|
options = {};
|
|
8151
8205
|
}
|
|
8152
8206
|
|
|
8153
8207
|
var _options = options,
|
|
8154
8208
|
_options$placement = _options.placement,
|
|
8155
|
-
placement = _options$placement ===
|
|
8209
|
+
placement = _options$placement === undefined ? state.placement : _options$placement,
|
|
8156
8210
|
_options$strategy = _options.strategy,
|
|
8157
|
-
strategy = _options$strategy ===
|
|
8211
|
+
strategy = _options$strategy === undefined ? state.strategy : _options$strategy,
|
|
8158
8212
|
_options$boundary = _options.boundary,
|
|
8159
|
-
boundary = _options$boundary ===
|
|
8213
|
+
boundary = _options$boundary === undefined ? clippingParents : _options$boundary,
|
|
8160
8214
|
_options$rootBoundary = _options.rootBoundary,
|
|
8161
|
-
rootBoundary = _options$rootBoundary ===
|
|
8215
|
+
rootBoundary = _options$rootBoundary === undefined ? viewport : _options$rootBoundary,
|
|
8162
8216
|
_options$elementConte = _options.elementContext,
|
|
8163
|
-
elementContext = _options$elementConte ===
|
|
8217
|
+
elementContext = _options$elementConte === undefined ? popper : _options$elementConte,
|
|
8164
8218
|
_options$altBoundary = _options.altBoundary,
|
|
8165
|
-
altBoundary = _options$altBoundary ===
|
|
8219
|
+
altBoundary = _options$altBoundary === undefined ? false : _options$altBoundary,
|
|
8166
8220
|
_options$padding = _options.padding,
|
|
8167
|
-
padding = _options$padding ===
|
|
8221
|
+
padding = _options$padding === undefined ? 0 : _options$padding;
|
|
8168
8222
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
8169
8223
|
var altContext = elementContext === popper ? reference : popper;
|
|
8170
8224
|
var popperRect = state.rects.popper;
|
|
@@ -8202,7 +8256,7 @@ function detectOverflow$1(state, options) {
|
|
|
8202
8256
|
}
|
|
8203
8257
|
|
|
8204
8258
|
function computeAutoPlacement(state, options) {
|
|
8205
|
-
if (options ===
|
|
8259
|
+
if (options === undefined) {
|
|
8206
8260
|
options = {};
|
|
8207
8261
|
}
|
|
8208
8262
|
|
|
@@ -8213,7 +8267,7 @@ function computeAutoPlacement(state, options) {
|
|
|
8213
8267
|
padding = _options.padding,
|
|
8214
8268
|
flipVariations = _options.flipVariations,
|
|
8215
8269
|
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
8216
|
-
allowedAutoPlacements = _options$allowedAutoP ===
|
|
8270
|
+
allowedAutoPlacements = _options$allowedAutoP === undefined ? placements$1 : _options$allowedAutoP;
|
|
8217
8271
|
var variation = getVariation(placement);
|
|
8218
8272
|
var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
8219
8273
|
return getVariation(placement) === variation;
|
|
@@ -8260,16 +8314,16 @@ function flip$2(_ref) {
|
|
|
8260
8314
|
}
|
|
8261
8315
|
|
|
8262
8316
|
var _options$mainAxis = options.mainAxis,
|
|
8263
|
-
checkMainAxis = _options$mainAxis ===
|
|
8317
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8264
8318
|
_options$altAxis = options.altAxis,
|
|
8265
|
-
checkAltAxis = _options$altAxis ===
|
|
8319
|
+
checkAltAxis = _options$altAxis === undefined ? true : _options$altAxis,
|
|
8266
8320
|
specifiedFallbackPlacements = options.fallbackPlacements,
|
|
8267
8321
|
padding = options.padding,
|
|
8268
8322
|
boundary = options.boundary,
|
|
8269
8323
|
rootBoundary = options.rootBoundary,
|
|
8270
8324
|
altBoundary = options.altBoundary,
|
|
8271
8325
|
_options$flipVariatio = options.flipVariations,
|
|
8272
|
-
flipVariations = _options$flipVariatio ===
|
|
8326
|
+
flipVariations = _options$flipVariatio === undefined ? true : _options$flipVariatio,
|
|
8273
8327
|
allowedAutoPlacements = options.allowedAutoPlacements;
|
|
8274
8328
|
var preferredPlacement = state.options.placement;
|
|
8275
8329
|
var basePlacement = getBasePlacement(preferredPlacement);
|
|
@@ -8382,7 +8436,7 @@ var flip$3 = {
|
|
|
8382
8436
|
};
|
|
8383
8437
|
|
|
8384
8438
|
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
8385
|
-
if (preventedOffsets ===
|
|
8439
|
+
if (preventedOffsets === undefined) {
|
|
8386
8440
|
preventedOffsets = {
|
|
8387
8441
|
x: 0,
|
|
8388
8442
|
y: 0
|
|
@@ -8466,7 +8520,7 @@ function offset$2(_ref2) {
|
|
|
8466
8520
|
options = _ref2.options,
|
|
8467
8521
|
name = _ref2.name;
|
|
8468
8522
|
var _options$offset = options.offset,
|
|
8469
|
-
offset = _options$offset ===
|
|
8523
|
+
offset = _options$offset === undefined ? [0, 0] : _options$offset;
|
|
8470
8524
|
var data = placements$1.reduce(function (acc, placement) {
|
|
8471
8525
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
8472
8526
|
return acc;
|
|
@@ -8525,17 +8579,17 @@ function preventOverflow(_ref) {
|
|
|
8525
8579
|
options = _ref.options,
|
|
8526
8580
|
name = _ref.name;
|
|
8527
8581
|
var _options$mainAxis = options.mainAxis,
|
|
8528
|
-
checkMainAxis = _options$mainAxis ===
|
|
8582
|
+
checkMainAxis = _options$mainAxis === undefined ? true : _options$mainAxis,
|
|
8529
8583
|
_options$altAxis = options.altAxis,
|
|
8530
|
-
checkAltAxis = _options$altAxis ===
|
|
8584
|
+
checkAltAxis = _options$altAxis === undefined ? false : _options$altAxis,
|
|
8531
8585
|
boundary = options.boundary,
|
|
8532
8586
|
rootBoundary = options.rootBoundary,
|
|
8533
8587
|
altBoundary = options.altBoundary,
|
|
8534
8588
|
padding = options.padding,
|
|
8535
8589
|
_options$tether = options.tether,
|
|
8536
|
-
tether = _options$tether ===
|
|
8590
|
+
tether = _options$tether === undefined ? true : _options$tether,
|
|
8537
8591
|
_options$tetherOffset = options.tetherOffset,
|
|
8538
|
-
tetherOffset = _options$tetherOffset ===
|
|
8592
|
+
tetherOffset = _options$tetherOffset === undefined ? 0 : _options$tetherOffset;
|
|
8539
8593
|
var overflow = detectOverflow$1(state, {
|
|
8540
8594
|
boundary: boundary,
|
|
8541
8595
|
rootBoundary: rootBoundary,
|
|
@@ -8602,7 +8656,7 @@ function preventOverflow(_ref) {
|
|
|
8602
8656
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
8603
8657
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent$1(state.elements.arrow);
|
|
8604
8658
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
8605
|
-
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ?
|
|
8659
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? undefined : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
8606
8660
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
8607
8661
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
8608
8662
|
var preventedOffset = within(tether ? min$1(min, tetherMin) : min, offset, tether ? max$1(max, tetherMax) : max);
|
|
@@ -8627,7 +8681,7 @@ function preventOverflow(_ref) {
|
|
|
8627
8681
|
|
|
8628
8682
|
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
8629
8683
|
|
|
8630
|
-
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ?
|
|
8684
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? undefined : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
8631
8685
|
|
|
8632
8686
|
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
8633
8687
|
|
|
@@ -8676,7 +8730,7 @@ function isElementScaled(element) {
|
|
|
8676
8730
|
|
|
8677
8731
|
|
|
8678
8732
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
8679
|
-
if (isFixed ===
|
|
8733
|
+
if (isFixed === undefined) {
|
|
8680
8734
|
isFixed = false;
|
|
8681
8735
|
}
|
|
8682
8736
|
|
|
@@ -8807,17 +8861,17 @@ function areValidElements() {
|
|
|
8807
8861
|
}
|
|
8808
8862
|
|
|
8809
8863
|
function popperGenerator(generatorOptions) {
|
|
8810
|
-
if (generatorOptions ===
|
|
8864
|
+
if (generatorOptions === undefined) {
|
|
8811
8865
|
generatorOptions = {};
|
|
8812
8866
|
}
|
|
8813
8867
|
|
|
8814
8868
|
var _generatorOptions = generatorOptions,
|
|
8815
8869
|
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
8816
|
-
defaultModifiers = _generatorOptions$def ===
|
|
8870
|
+
defaultModifiers = _generatorOptions$def === undefined ? [] : _generatorOptions$def,
|
|
8817
8871
|
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
8818
|
-
defaultOptions = _generatorOptions$def2 ===
|
|
8872
|
+
defaultOptions = _generatorOptions$def2 === undefined ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
8819
8873
|
return function createPopper(reference, popper, options) {
|
|
8820
|
-
if (options ===
|
|
8874
|
+
if (options === undefined) {
|
|
8821
8875
|
options = defaultOptions;
|
|
8822
8876
|
}
|
|
8823
8877
|
|
|
@@ -8904,7 +8958,7 @@ function popperGenerator(generatorOptions) {
|
|
|
8904
8958
|
var _state$orderedModifie = state.orderedModifiers[index],
|
|
8905
8959
|
fn = _state$orderedModifie.fn,
|
|
8906
8960
|
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
8907
|
-
_options = _state$orderedModifie2 ===
|
|
8961
|
+
_options = _state$orderedModifie2 === undefined ? {} : _state$orderedModifie2,
|
|
8908
8962
|
name = _state$orderedModifie.name;
|
|
8909
8963
|
|
|
8910
8964
|
if (typeof fn === 'function') {
|
|
@@ -8949,7 +9003,7 @@ function popperGenerator(generatorOptions) {
|
|
|
8949
9003
|
state.orderedModifiers.forEach(function (_ref) {
|
|
8950
9004
|
var name = _ref.name,
|
|
8951
9005
|
_ref$options = _ref.options,
|
|
8952
|
-
options = _ref$options ===
|
|
9006
|
+
options = _ref$options === undefined ? {} : _ref$options,
|
|
8953
9007
|
effect = _ref.effect;
|
|
8954
9008
|
|
|
8955
9009
|
if (typeof effect === 'function') {
|
|
@@ -9384,7 +9438,7 @@ class AuroCalendarCell extends r$7 {
|
|
|
9384
9438
|
|
|
9385
9439
|
let _a;
|
|
9386
9440
|
this.dispatchEvent(new CustomEvent('date-is-hovered', {
|
|
9387
|
-
detail: { date: (_a = this.day) === null || _a ===
|
|
9441
|
+
detail: { date: (_a = this.day) === null || _a === undefined ? undefined : _a.date },
|
|
9388
9442
|
}));
|
|
9389
9443
|
}
|
|
9390
9444
|
|
|
@@ -9606,10 +9660,10 @@ class AuroCalendarCell extends r$7 {
|
|
|
9606
9660
|
@focus="${this.handleHover}"
|
|
9607
9661
|
class="${e$6(buttonClasses)}"
|
|
9608
9662
|
?disabled="${this.disabled}"
|
|
9609
|
-
title="${this.getTitle((_a = this.day) === null || _a ===
|
|
9663
|
+
title="${this.getTitle((_a = this.day) === null || _a === undefined ? undefined : _a.date)}"
|
|
9610
9664
|
tabindex="-1">
|
|
9611
9665
|
<div class="buttonWrapper">
|
|
9612
|
-
<div class="currentDayMarker">${(_b = this.day) === null || _b ===
|
|
9666
|
+
<div class="currentDayMarker">${(_b = this.day) === null || _b === undefined ? undefined : _b.title}</div>
|
|
9613
9667
|
<div class="dateSlot" part="dateSlot">
|
|
9614
9668
|
<slot name="date_${this.dateStr}"></slot>
|
|
9615
9669
|
</div>
|
|
@@ -9727,11 +9781,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9727
9781
|
<div class="table">
|
|
9728
9782
|
<div class="thead">
|
|
9729
9783
|
<div class="tr">
|
|
9730
|
-
${(_a = this.dayNamesOfTheWeek) === null || _a ===
|
|
9784
|
+
${(_a = this.dayNamesOfTheWeek) === null || _a === undefined ? undefined : _a.map(dayNameOfWeek => this.renderDayOfWeek(dayNameOfWeek))}
|
|
9731
9785
|
</div>
|
|
9732
9786
|
</div>
|
|
9733
9787
|
<div class="tbody">
|
|
9734
|
-
${(_b = this.daysOfMonth) === null || _b ===
|
|
9788
|
+
${(_b = this.daysOfMonth) === null || _b === undefined ? undefined : _b.map(week => this.renderWeek(week))}
|
|
9735
9789
|
</div>
|
|
9736
9790
|
</div>
|
|
9737
9791
|
</div>
|
|
@@ -9906,16 +9960,16 @@ class RangeDatepicker extends r$7 {
|
|
|
9906
9960
|
handlePrevMonth() {
|
|
9907
9961
|
let _a;
|
|
9908
9962
|
if (!this.enableYearChange) {
|
|
9909
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
9910
|
-
calendar === null || calendar ===
|
|
9963
|
+
const calendar = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('wc-range-datepicker-calendar[next]');
|
|
9964
|
+
calendar === null || calendar === undefined ? undefined : calendar.handlePrevMonth();
|
|
9911
9965
|
}
|
|
9912
9966
|
}
|
|
9913
9967
|
|
|
9914
9968
|
handleNextMonth() {
|
|
9915
9969
|
let _a;
|
|
9916
9970
|
if (!this.enableYearChange) {
|
|
9917
|
-
const calendar = (_a = this.shadowRoot) === null || _a ===
|
|
9918
|
-
calendar === null || calendar ===
|
|
9971
|
+
const calendar = (_a = this.shadowRoot) === null || _a === undefined ? undefined : _a.querySelector('wc-range-datepicker-calendar[prev]');
|
|
9972
|
+
calendar === null || calendar === undefined ? undefined : calendar.handleNextMonth();
|
|
9919
9973
|
}
|
|
9920
9974
|
}
|
|
9921
9975
|
|
|
@@ -9977,21 +10031,21 @@ RangeDatepicker.styles = i$c`
|
|
|
9977
10031
|
margin-right: 16px;
|
|
9978
10032
|
}
|
|
9979
10033
|
`;
|
|
9980
|
-
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays",
|
|
9981
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange",
|
|
9982
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow",
|
|
9983
|
-
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale",
|
|
9984
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max",
|
|
9985
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min",
|
|
9986
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month",
|
|
9987
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange",
|
|
9988
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year",
|
|
9989
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom",
|
|
9990
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo",
|
|
9991
|
-
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate",
|
|
9992
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus",
|
|
9993
|
-
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus",
|
|
9994
|
-
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "narrow",
|
|
10034
|
+
__decorate([n$5({ type: Array })], RangeDatepicker.prototype, "disabledDays", undefined);
|
|
10035
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange", undefined);
|
|
10036
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow", undefined);
|
|
10037
|
+
__decorate([n$5({ type: Object })], RangeDatepicker.prototype, "locale", undefined);
|
|
10038
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "max", undefined);
|
|
10039
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "min", undefined);
|
|
10040
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "month", undefined);
|
|
10041
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "noRange", undefined);
|
|
10042
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "year", undefined);
|
|
10043
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateFrom", undefined);
|
|
10044
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "dateTo", undefined);
|
|
10045
|
+
__decorate([n$5({ type: String })], RangeDatepicker.prototype, "hoveredDate", undefined);
|
|
10046
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "monthPlus", undefined);
|
|
10047
|
+
__decorate([n$5({ type: Number })], RangeDatepicker.prototype, "yearPlus", undefined);
|
|
10048
|
+
__decorate([n$5({ type: Boolean })], RangeDatepicker.prototype, "narrow", undefined);
|
|
9995
10049
|
|
|
9996
10050
|
var chevronLeft = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; left.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"chevron-left","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-left__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"chevron-left__desc\">Directional indicator; left.</desc><path d=\"m14.395 6.345.084.073a.75.75 0 0 1 .072.977l-.072.084-4.47 4.47 4.47 4.47a.75.75 0 0 1 .072.976l-.072.084a.75.75 0 0 1-.977.072l-.084-.072-4.823-4.823a1 1 0 0 1 0-1.415l4.823-4.823a.75.75 0 0 1 .977-.073\"/></svg>"};
|
|
9997
10051
|
|
|
@@ -10452,33 +10506,33 @@ if (!customElements.get('auro-calendar')) {
|
|
|
10452
10506
|
* Copyright 2017 Google LLC
|
|
10453
10507
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10454
10508
|
*/
|
|
10455
|
-
const t$2$1=globalThis,i$5$1=t$2$1.trustedTypes,s$2$1=i$5$1?i$5$1.createPolicy("lit-html",{createHTML:t=>t}):
|
|
10509
|
+
const t$2$1=globalThis,i$5$1=t$2$1.trustedTypes,s$2$1=i$5$1?i$5$1.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4$1="$lit$",h$1$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4$1="?"+h$1$1,n$3$1=`<${o$4$1}>`,r$3$1=document,l$2$1=()=>r$3$1.createComment(""),c$2$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2$1=Array.isArray,u$2$1=t=>a$2$1(t)||"function"==typeof t?.[Symbol.iterator],d$1$1="[ \t\n\f\r]",f$1$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$1$1}(?:([^\\s"'>=/]+)(${d$1$1}*=${d$1$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1$1=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$1$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$1$1(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$3$1.createTreeWalker(r$3$1,129);function P$1(t,i){if(!a$2$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$2$1?s$2$1.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1$1?"!--"===u[1]?c=v$2:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):undefined!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$1$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$2:'"'===u[3]?g$1:p$1$1):c===g$1||c===p$1$1?c=m$2:c===v$2||c===_$1?c=f$1$1:(c=m$2,r=undefined);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1$1?s+n$3$1:d>=0?(o.push(a),s.slice(0,d)+e$4$1+s.slice(d)+h$1$1+x):s+h$1$1+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4$1)){const i=v[a++],s=r.getAttribute(t).split(h$1$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$1$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$1$1),s=t.length-1;if(s>0){r.textContent=i$5$1?i$5$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2$1()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2$1());}}}else if(8===r.nodeType)if(r.data===o$4$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1$1,t+1));)d.push({type:7,index:c}),t+=h$1$1.length-1;}c++;}}static createElement(t,i){const s=r$3$1.createElement("template");return s.innerHTML=t,s}};function S$1$1(t,i,s=t,e){if(i===T$1)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2$1(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1$1(t,h._$AS(t,i.values),h,e)),i}let M$2 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3$1).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$3$1,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1$1(this,t,i),c$2$1(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$2$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$2$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return undefined===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$2$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2$1()),this.O(l$2$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1$1(this,t,i,0),o=!c$2$1(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1$1(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$2$1(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?undefined:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1$1(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1$1(this,t);}};const j$1=t$2$1.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$2$1.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$2$1(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
10456
10510
|
|
|
10457
10511
|
/**
|
|
10458
10512
|
* @license
|
|
10459
10513
|
* Copyright 2020 Google LLC
|
|
10460
10514
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10461
10515
|
*/
|
|
10462
|
-
const a$1$1=Symbol.for(""),o$3$1=t=>{if(t?.r===a$1$1)return t?._$litStatic$},s$1$1=t=>({_$litStatic$:t,r:a$1$1}),i$4$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
10516
|
+
const a$1$1=Symbol.for(""),o$3$1=t=>{if(t?.r===a$1$1)return t?._$litStatic$},s$1$1=t=>({_$litStatic$:t,r:a$1$1}),i$4$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1$1}),l$1$1=new Map,n$2$1=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1$1.get(t))&&(n.raw=n,l$1$1.set(t,r=n)),e=u;}return t(r,...e)},u$1$1=n$2$1(x$1);
|
|
10463
10517
|
|
|
10464
10518
|
/**
|
|
10465
10519
|
* @license
|
|
10466
10520
|
* Copyright 2019 Google LLC
|
|
10467
10521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10468
10522
|
*/
|
|
10469
|
-
const t$1$1=globalThis,e$3$1=t$1$1.ShadowRoot&&(
|
|
10523
|
+
const t$1$1=globalThis,e$3$1=t$1$1.ShadowRoot&&(undefined===t$1$1.ShadyCSS||t$1$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$2$1=new WeakMap;let n$1$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$1.set(s,t));}return t}toString(){return this.cssText}};const r$2$1=t=>new n$1$1("string"==typeof t?t:t+"",undefined,s$4),i$3$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1$1(o,t,s$4)},S$2=(s,o)=>{if(e$3$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1$1.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1$1=e$3$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2$1(e)})(t):t;
|
|
10470
10524
|
|
|
10471
10525
|
/**
|
|
10472
10526
|
* @license
|
|
10473
10527
|
* Copyright 2017 Google LLC
|
|
10474
10528
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10475
|
-
*/const{is:i$2$1,defineProperty:e$2$1,getOwnPropertyDescriptor:r$1$1,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$4}=Object,a$3=globalThis,c$4=a$3.trustedTypes,l$3=c$4?c$4.emptyScript:"",p$3=a$3.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$3:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$2$1(t,s),y$2={attribute
|
|
10529
|
+
*/const{is:i$2$1,defineProperty:e$2$1,getOwnPropertyDescriptor:r$1$1,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$4}=Object,a$3=globalThis,c$4=a$3.trustedTypes,l$3=c$4?c$4.emptyScript:"",p$3=a$3.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$3:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$2$1(t,s),y$2={attribute:true,type:String,converter:u$5,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$3.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$2$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$4(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$1$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1$1(s));}else undefined!==s&&i.push(c$1$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$5).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$5;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$3?.({ReactiveElement:b$1}),(a$3.reactiveElementVersions??=[]).push("2.0.4");
|
|
10476
10530
|
|
|
10477
10531
|
/**
|
|
10478
10532
|
* @license
|
|
10479
10533
|
* Copyright 2017 Google LLC
|
|
10480
10534
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10481
|
-
*/let r$5 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
10535
|
+
*/let r$5 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$5._$litElement$=true,r$5["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$5});const i$1$1=globalThis.litElementPolyfillSupport;i$1$1?.({LitElement:r$5});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
10482
10536
|
|
|
10483
10537
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10484
10538
|
// See LICENSE in the project root for license information.
|
|
@@ -10598,7 +10652,7 @@ function getAlignmentAxis(placement) {
|
|
|
10598
10652
|
return getOppositeAxis(getSideAxis(placement));
|
|
10599
10653
|
}
|
|
10600
10654
|
function getAlignmentSides(placement, rects, rtl) {
|
|
10601
|
-
if (rtl ===
|
|
10655
|
+
if (rtl === undefined) {
|
|
10602
10656
|
rtl = false;
|
|
10603
10657
|
}
|
|
10604
10658
|
const alignment = getAlignment(placement);
|
|
@@ -10755,7 +10809,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
10755
10809
|
platform
|
|
10756
10810
|
} = config;
|
|
10757
10811
|
const validMiddleware = middleware.filter(Boolean);
|
|
10758
|
-
const rtl = await (platform.isRTL == null ?
|
|
10812
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
|
|
10759
10813
|
let rects = await platform.getElementRects({
|
|
10760
10814
|
reference,
|
|
10761
10815
|
floating,
|
|
@@ -10841,7 +10895,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
10841
10895
|
*/
|
|
10842
10896
|
async function detectOverflow(state, options) {
|
|
10843
10897
|
var _await$platform$isEle;
|
|
10844
|
-
if (options ===
|
|
10898
|
+
if (options === undefined) {
|
|
10845
10899
|
options = {};
|
|
10846
10900
|
}
|
|
10847
10901
|
const {
|
|
@@ -10863,7 +10917,7 @@ async function detectOverflow(state, options) {
|
|
|
10863
10917
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
10864
10918
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
10865
10919
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
10866
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ?
|
|
10920
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? undefined : platform.getDocumentElement(elements.floating))),
|
|
10867
10921
|
boundary,
|
|
10868
10922
|
rootBoundary,
|
|
10869
10923
|
strategy
|
|
@@ -10874,8 +10928,8 @@ async function detectOverflow(state, options) {
|
|
|
10874
10928
|
width: rects.floating.width,
|
|
10875
10929
|
height: rects.floating.height
|
|
10876
10930
|
} : rects.reference;
|
|
10877
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
10878
|
-
const offsetScale = (await (platform.isElement == null ?
|
|
10931
|
+
const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
|
|
10932
|
+
const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
|
|
10879
10933
|
x: 1,
|
|
10880
10934
|
y: 1
|
|
10881
10935
|
} : {
|
|
@@ -10912,7 +10966,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
10912
10966
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
10913
10967
|
*/
|
|
10914
10968
|
const autoPlacement$1 = function (options) {
|
|
10915
|
-
if (options ===
|
|
10969
|
+
if (options === undefined) {
|
|
10916
10970
|
options = {};
|
|
10917
10971
|
}
|
|
10918
10972
|
return {
|
|
@@ -10936,12 +10990,12 @@ const autoPlacement$1 = function (options) {
|
|
|
10936
10990
|
} = evaluate(options, state);
|
|
10937
10991
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
10938
10992
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
10939
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
10993
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
|
|
10940
10994
|
const currentPlacement = placements$1[currentIndex];
|
|
10941
10995
|
if (currentPlacement == null) {
|
|
10942
10996
|
return {};
|
|
10943
10997
|
}
|
|
10944
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
10998
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
|
|
10945
10999
|
|
|
10946
11000
|
// Make `computeCoords` start from the right place.
|
|
10947
11001
|
if (placement !== currentPlacement) {
|
|
@@ -10952,7 +11006,7 @@ const autoPlacement$1 = function (options) {
|
|
|
10952
11006
|
};
|
|
10953
11007
|
}
|
|
10954
11008
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
10955
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
11009
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
|
|
10956
11010
|
placement: currentPlacement,
|
|
10957
11011
|
overflows: currentOverflows
|
|
10958
11012
|
}];
|
|
@@ -10982,7 +11036,7 @@ const autoPlacement$1 = function (options) {
|
|
|
10982
11036
|
// Aligned placements should not check their opposite crossAxis
|
|
10983
11037
|
// side.
|
|
10984
11038
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
10985
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
11039
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
10986
11040
|
if (resetPlacement !== placement) {
|
|
10987
11041
|
return {
|
|
10988
11042
|
data: {
|
|
@@ -11006,7 +11060,7 @@ const autoPlacement$1 = function (options) {
|
|
|
11006
11060
|
* @see https://floating-ui.com/docs/flip
|
|
11007
11061
|
*/
|
|
11008
11062
|
const flip$1 = function (options) {
|
|
11009
|
-
if (options ===
|
|
11063
|
+
if (options === undefined) {
|
|
11010
11064
|
options = {};
|
|
11011
11065
|
}
|
|
11012
11066
|
return {
|
|
@@ -11042,7 +11096,7 @@ const flip$1 = function (options) {
|
|
|
11042
11096
|
const side = getSide(placement);
|
|
11043
11097
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
11044
11098
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
11045
|
-
const rtl = await (platform.isRTL == null ?
|
|
11099
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11046
11100
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
11047
11101
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
11048
11102
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -11051,7 +11105,7 @@ const flip$1 = function (options) {
|
|
|
11051
11105
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
11052
11106
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
11053
11107
|
const overflows = [];
|
|
11054
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
11108
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
|
|
11055
11109
|
if (checkMainAxis) {
|
|
11056
11110
|
overflows.push(overflow[side]);
|
|
11057
11111
|
}
|
|
@@ -11067,7 +11121,7 @@ const flip$1 = function (options) {
|
|
|
11067
11121
|
// One or more sides is overflowing.
|
|
11068
11122
|
if (!overflows.every(side => side <= 0)) {
|
|
11069
11123
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
11070
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
11124
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
|
|
11071
11125
|
const nextPlacement = placements[nextIndex];
|
|
11072
11126
|
if (nextPlacement) {
|
|
11073
11127
|
// Try next placement and re-run the lifecycle.
|
|
@@ -11084,7 +11138,7 @@ const flip$1 = function (options) {
|
|
|
11084
11138
|
|
|
11085
11139
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
11086
11140
|
// then find the placement that fits the best on the main crossAxis side.
|
|
11087
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ?
|
|
11141
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
|
|
11088
11142
|
|
|
11089
11143
|
// Otherwise fallback.
|
|
11090
11144
|
if (!resetPlacement) {
|
|
@@ -11101,7 +11155,7 @@ const flip$1 = function (options) {
|
|
|
11101
11155
|
currentSideAxis === 'y';
|
|
11102
11156
|
}
|
|
11103
11157
|
return true;
|
|
11104
|
-
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ?
|
|
11158
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
|
|
11105
11159
|
if (placement) {
|
|
11106
11160
|
resetPlacement = placement;
|
|
11107
11161
|
}
|
|
@@ -11134,7 +11188,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11134
11188
|
platform,
|
|
11135
11189
|
elements
|
|
11136
11190
|
} = state;
|
|
11137
|
-
const rtl = await (platform.isRTL == null ?
|
|
11191
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
11138
11192
|
const side = getSide(placement);
|
|
11139
11193
|
const alignment = getAlignment(placement);
|
|
11140
11194
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -11176,7 +11230,7 @@ async function convertValueToCoords(state, options) {
|
|
|
11176
11230
|
* @see https://floating-ui.com/docs/offset
|
|
11177
11231
|
*/
|
|
11178
11232
|
const offset$1 = function (options) {
|
|
11179
|
-
if (options ===
|
|
11233
|
+
if (options === undefined) {
|
|
11180
11234
|
options = 0;
|
|
11181
11235
|
}
|
|
11182
11236
|
return {
|
|
@@ -11194,7 +11248,7 @@ const offset$1 = function (options) {
|
|
|
11194
11248
|
|
|
11195
11249
|
// If the placement is the same and the arrow caused an alignment offset
|
|
11196
11250
|
// then we don't need to change the positioning coordinates.
|
|
11197
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ?
|
|
11251
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
11198
11252
|
return {};
|
|
11199
11253
|
}
|
|
11200
11254
|
return {
|
|
@@ -11223,11 +11277,11 @@ function getNodeName(node) {
|
|
|
11223
11277
|
}
|
|
11224
11278
|
function getWindow(node) {
|
|
11225
11279
|
var _node$ownerDocument;
|
|
11226
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
11280
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
|
|
11227
11281
|
}
|
|
11228
11282
|
function getDocumentElement(node) {
|
|
11229
11283
|
var _ref;
|
|
11230
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ?
|
|
11284
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
|
|
11231
11285
|
}
|
|
11232
11286
|
function isNode(value) {
|
|
11233
11287
|
if (!hasWindow()) {
|
|
@@ -11342,14 +11396,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
11342
11396
|
}
|
|
11343
11397
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
11344
11398
|
var _node$ownerDocument2;
|
|
11345
|
-
if (list ===
|
|
11399
|
+
if (list === undefined) {
|
|
11346
11400
|
list = [];
|
|
11347
11401
|
}
|
|
11348
|
-
if (traverseIframes ===
|
|
11402
|
+
if (traverseIframes === undefined) {
|
|
11349
11403
|
traverseIframes = true;
|
|
11350
11404
|
}
|
|
11351
11405
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
11352
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
11406
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
|
|
11353
11407
|
const win = getWindow(scrollableAncestor);
|
|
11354
11408
|
if (isBody) {
|
|
11355
11409
|
const frameElement = getFrameElement(win);
|
|
@@ -11426,7 +11480,7 @@ function getVisualOffsets(element) {
|
|
|
11426
11480
|
};
|
|
11427
11481
|
}
|
|
11428
11482
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
11429
|
-
if (isFixed ===
|
|
11483
|
+
if (isFixed === undefined) {
|
|
11430
11484
|
isFixed = false;
|
|
11431
11485
|
}
|
|
11432
11486
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -11436,10 +11490,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
11436
11490
|
}
|
|
11437
11491
|
|
|
11438
11492
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
11439
|
-
if (includeScale ===
|
|
11493
|
+
if (includeScale === undefined) {
|
|
11440
11494
|
includeScale = false;
|
|
11441
11495
|
}
|
|
11442
|
-
if (isFixedStrategy ===
|
|
11496
|
+
if (isFixedStrategy === undefined) {
|
|
11443
11497
|
isFixedStrategy = false;
|
|
11444
11498
|
}
|
|
11445
11499
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -11499,7 +11553,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
11499
11553
|
}
|
|
11500
11554
|
|
|
11501
11555
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
11502
|
-
if (ignoreScrollbarX ===
|
|
11556
|
+
if (ignoreScrollbarX === undefined) {
|
|
11503
11557
|
ignoreScrollbarX = false;
|
|
11504
11558
|
}
|
|
11505
11559
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -11849,10 +11903,10 @@ function observeMove(element, onMove) {
|
|
|
11849
11903
|
io = null;
|
|
11850
11904
|
}
|
|
11851
11905
|
function refresh(skip, threshold) {
|
|
11852
|
-
if (skip ===
|
|
11906
|
+
if (skip === undefined) {
|
|
11853
11907
|
skip = false;
|
|
11854
11908
|
}
|
|
11855
|
-
if (threshold ===
|
|
11909
|
+
if (threshold === undefined) {
|
|
11856
11910
|
threshold = 1;
|
|
11857
11911
|
}
|
|
11858
11912
|
cleanup();
|
|
@@ -11923,7 +11977,7 @@ function observeMove(element, onMove) {
|
|
|
11923
11977
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
11924
11978
|
*/
|
|
11925
11979
|
function autoUpdate(reference, floating, update, options) {
|
|
11926
|
-
if (options ===
|
|
11980
|
+
if (options === undefined) {
|
|
11927
11981
|
options = {};
|
|
11928
11982
|
}
|
|
11929
11983
|
const {
|
|
@@ -12139,7 +12193,7 @@ class AuroFloatingUI {
|
|
|
12139
12193
|
// Compute the position of the bib
|
|
12140
12194
|
computePosition(this.element.trigger, this.element.bib, {
|
|
12141
12195
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
12142
|
-
middleware: middleware
|
|
12196
|
+
middleware: middleware
|
|
12143
12197
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
12144
12198
|
Object.assign(this.element.bib.style, {
|
|
12145
12199
|
left: `${x}px`,
|
|
@@ -12483,7 +12537,7 @@ const t$4={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
12483
12537
|
* @license
|
|
12484
12538
|
* Copyright 2018 Google LLC
|
|
12485
12539
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12486
|
-
*/const e$5=e$1$1(class extends i$6{constructor(t$1){if(super(t$1),t$1.type!==t$4.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(
|
|
12540
|
+
*/const e$5=e$1$1(class extends i$6{constructor(t$1){if(super(t$1),t$1.type!==t$4.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
12487
12541
|
|
|
12488
12542
|
/**
|
|
12489
12543
|
* @license
|
|
@@ -12851,7 +12905,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12851
12905
|
|
|
12852
12906
|
var iconVersion$1 = '6.1.2';
|
|
12853
12907
|
|
|
12854
|
-
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)}`;
|
|
12908
|
+
var styleCss$1$1 = i$3$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
12855
12909
|
|
|
12856
12910
|
var colorCss$1$1 = i$3$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
12857
12911
|
|
|
@@ -12875,9 +12929,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
12875
12929
|
];
|
|
12876
12930
|
|
|
12877
12931
|
/**
|
|
12878
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
12879
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
12880
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
12881
12932
|
* @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
12882
12933
|
* @csspart bibContainer - Apply css to the bib container.
|
|
12883
12934
|
*/
|
|
@@ -12903,14 +12954,26 @@ class AuroDropdownBib extends r$5 {
|
|
|
12903
12954
|
|
|
12904
12955
|
static get properties() {
|
|
12905
12956
|
return {
|
|
12957
|
+
|
|
12958
|
+
/**
|
|
12959
|
+
* If declared, will apply all styles for the common theme.
|
|
12960
|
+
*/
|
|
12906
12961
|
common: {
|
|
12907
12962
|
type: Boolean,
|
|
12908
12963
|
reflect: true
|
|
12909
12964
|
},
|
|
12965
|
+
|
|
12966
|
+
/**
|
|
12967
|
+
* If declared, will apply extra padding to bib content.
|
|
12968
|
+
*/
|
|
12910
12969
|
inset: {
|
|
12911
12970
|
type: Boolean,
|
|
12912
12971
|
reflect: true
|
|
12913
12972
|
},
|
|
12973
|
+
|
|
12974
|
+
/**
|
|
12975
|
+
* If declared, will apply border-radius to the bib.
|
|
12976
|
+
*/
|
|
12914
12977
|
rounded: {
|
|
12915
12978
|
type: Boolean,
|
|
12916
12979
|
reflect: true
|
|
@@ -12954,22 +13017,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
12954
13017
|
|
|
12955
13018
|
|
|
12956
13019
|
/**
|
|
12957
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
12958
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
12959
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
12960
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
12961
13020
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
12962
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
12963
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
12964
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
12965
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
12966
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
12967
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
12968
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
12969
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
12970
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
12971
|
-
* @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.
|
|
12972
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
12973
13021
|
* @slot - Default slot for the popover content.
|
|
12974
13022
|
* @slot label - Defines the content of the label.
|
|
12975
13023
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -13007,6 +13055,16 @@ class AuroDropdown extends r$5 {
|
|
|
13007
13055
|
this.tabIndex = 0;
|
|
13008
13056
|
this.noToggle = false;
|
|
13009
13057
|
|
|
13058
|
+
/**
|
|
13059
|
+
* @private
|
|
13060
|
+
*/
|
|
13061
|
+
this.hasTriggerContent = false;
|
|
13062
|
+
|
|
13063
|
+
/**
|
|
13064
|
+
* @private
|
|
13065
|
+
*/
|
|
13066
|
+
this.triggerContentSlot = undefined;
|
|
13067
|
+
|
|
13010
13068
|
/**
|
|
13011
13069
|
* @private
|
|
13012
13070
|
*/
|
|
@@ -13053,89 +13111,166 @@ class AuroDropdown extends r$5 {
|
|
|
13053
13111
|
// function to define props used within the scope of this component
|
|
13054
13112
|
static get properties() {
|
|
13055
13113
|
return {
|
|
13114
|
+
|
|
13115
|
+
/**
|
|
13116
|
+
* If declared, applies a border around the trigger slot.
|
|
13117
|
+
*/
|
|
13056
13118
|
bordered: {
|
|
13057
13119
|
type: Boolean,
|
|
13058
13120
|
reflect: true
|
|
13059
13121
|
},
|
|
13122
|
+
|
|
13123
|
+
/**
|
|
13124
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
13125
|
+
* @attr {Boolean} chevron
|
|
13126
|
+
*/
|
|
13060
13127
|
chevron: {
|
|
13061
13128
|
type: Boolean,
|
|
13062
13129
|
reflect: true
|
|
13063
13130
|
},
|
|
13064
|
-
|
|
13131
|
+
|
|
13132
|
+
/**
|
|
13133
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
13134
|
+
*/
|
|
13135
|
+
common: {
|
|
13065
13136
|
type: Boolean,
|
|
13066
13137
|
reflect: true
|
|
13067
13138
|
},
|
|
13068
|
-
|
|
13139
|
+
|
|
13140
|
+
/**
|
|
13141
|
+
* If declared, the dropdown is not interactive.
|
|
13142
|
+
*/
|
|
13143
|
+
disabled: {
|
|
13069
13144
|
type: Boolean,
|
|
13070
13145
|
reflect: true
|
|
13071
13146
|
},
|
|
13072
|
-
|
|
13147
|
+
|
|
13148
|
+
/**
|
|
13149
|
+
* @private
|
|
13150
|
+
*/
|
|
13151
|
+
dropdownWidth: {
|
|
13152
|
+
type: Number
|
|
13153
|
+
},
|
|
13154
|
+
|
|
13155
|
+
/**
|
|
13156
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
13157
|
+
*/
|
|
13158
|
+
error: {
|
|
13073
13159
|
type: Boolean,
|
|
13074
|
-
reflect: true
|
|
13160
|
+
reflect: true
|
|
13075
13161
|
},
|
|
13162
|
+
|
|
13163
|
+
/**
|
|
13164
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
13165
|
+
*/
|
|
13076
13166
|
focusShow: {
|
|
13077
13167
|
type: Boolean,
|
|
13078
13168
|
reflect: true
|
|
13079
13169
|
},
|
|
13080
|
-
|
|
13170
|
+
|
|
13171
|
+
/**
|
|
13172
|
+
* Makes the trigger to be full width of its parent container.
|
|
13173
|
+
*/
|
|
13174
|
+
fluid: {
|
|
13081
13175
|
type: Boolean,
|
|
13082
13176
|
reflect: true
|
|
13083
13177
|
},
|
|
13178
|
+
|
|
13179
|
+
/**
|
|
13180
|
+
* If declared, will apply padding around trigger slot content.
|
|
13181
|
+
*/
|
|
13084
13182
|
inset: {
|
|
13085
13183
|
type: Boolean,
|
|
13086
13184
|
reflect: true
|
|
13087
13185
|
},
|
|
13088
|
-
|
|
13186
|
+
|
|
13187
|
+
/**
|
|
13188
|
+
* If true, the dropdown bib is displayed.
|
|
13189
|
+
*/
|
|
13190
|
+
isPopoverVisible: {
|
|
13191
|
+
type: Boolean
|
|
13192
|
+
},
|
|
13193
|
+
|
|
13194
|
+
/**
|
|
13195
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
13196
|
+
*/
|
|
13197
|
+
hoverToggle: {
|
|
13089
13198
|
type: Boolean,
|
|
13090
13199
|
reflect: true
|
|
13091
13200
|
},
|
|
13092
|
-
|
|
13093
|
-
|
|
13201
|
+
|
|
13202
|
+
/**
|
|
13203
|
+
* @private
|
|
13204
|
+
*/
|
|
13205
|
+
hasTriggerContent: {
|
|
13206
|
+
type: Boolean
|
|
13207
|
+
},
|
|
13208
|
+
|
|
13209
|
+
/**
|
|
13210
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
13211
|
+
*/
|
|
13212
|
+
mobileFullscreenBreakpoint: {
|
|
13213
|
+
type: String,
|
|
13094
13214
|
reflect: true
|
|
13095
13215
|
},
|
|
13096
|
-
|
|
13216
|
+
|
|
13217
|
+
/**
|
|
13218
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
13219
|
+
*/
|
|
13220
|
+
matchWidth: {
|
|
13097
13221
|
type: Boolean,
|
|
13098
13222
|
reflect: true
|
|
13099
13223
|
},
|
|
13100
|
-
|
|
13224
|
+
|
|
13225
|
+
/**
|
|
13226
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
13227
|
+
*/
|
|
13228
|
+
noHideOnThisFocusLoss: {
|
|
13101
13229
|
type: Boolean,
|
|
13102
13230
|
reflect: true
|
|
13103
13231
|
},
|
|
13104
|
-
|
|
13232
|
+
|
|
13233
|
+
/**
|
|
13234
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
13235
|
+
*/
|
|
13236
|
+
noToggle: {
|
|
13105
13237
|
type: Boolean,
|
|
13106
13238
|
reflect: true
|
|
13107
13239
|
},
|
|
13108
|
-
|
|
13240
|
+
|
|
13109
13241
|
onSlotChange: {
|
|
13110
13242
|
type: Function,
|
|
13111
13243
|
reflect: false
|
|
13112
13244
|
},
|
|
13113
|
-
mobileFullscreenBreakpoint: {
|
|
13114
|
-
type: String,
|
|
13115
|
-
reflect: true,
|
|
13116
|
-
},
|
|
13117
13245
|
|
|
13118
13246
|
/**
|
|
13119
13247
|
* @private
|
|
13120
13248
|
*/
|
|
13121
|
-
|
|
13249
|
+
placement: {
|
|
13250
|
+
type: String
|
|
13251
|
+
},
|
|
13122
13252
|
|
|
13123
13253
|
/**
|
|
13124
|
-
*
|
|
13254
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
13125
13255
|
*/
|
|
13126
|
-
|
|
13256
|
+
rounded: {
|
|
13257
|
+
type: Boolean,
|
|
13258
|
+
reflect: true
|
|
13259
|
+
},
|
|
13127
13260
|
|
|
13128
13261
|
/**
|
|
13129
13262
|
* @private
|
|
13130
13263
|
*/
|
|
13131
|
-
tabIndex: {
|
|
13264
|
+
tabIndex: {
|
|
13265
|
+
type: Number
|
|
13266
|
+
}
|
|
13132
13267
|
};
|
|
13133
13268
|
}
|
|
13134
13269
|
|
|
13135
13270
|
static get styles() {
|
|
13136
13271
|
return [
|
|
13137
|
-
styleCss$1$1,
|
|
13138
13272
|
colorCss$1$1,
|
|
13273
|
+
styleCss$1$1,
|
|
13139
13274
|
tokensCss$4
|
|
13140
13275
|
];
|
|
13141
13276
|
}
|
|
@@ -13166,6 +13301,12 @@ class AuroDropdown extends r$5 {
|
|
|
13166
13301
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
13167
13302
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
13168
13303
|
}
|
|
13304
|
+
|
|
13305
|
+
// when trigger's content is changed without any attribute or node change,
|
|
13306
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
13307
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
13308
|
+
this.handleTriggerContentSlotChange();
|
|
13309
|
+
}
|
|
13169
13310
|
}
|
|
13170
13311
|
|
|
13171
13312
|
firstUpdated() {
|
|
@@ -13208,6 +13349,43 @@ class AuroDropdown extends r$5 {
|
|
|
13208
13349
|
return inCustomSlot;
|
|
13209
13350
|
}
|
|
13210
13351
|
|
|
13352
|
+
/**
|
|
13353
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
13354
|
+
*
|
|
13355
|
+
* It first updates the floater settings
|
|
13356
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
13357
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
13358
|
+
*
|
|
13359
|
+
* @private
|
|
13360
|
+
* @method handleTriggerContentSlotChange
|
|
13361
|
+
* @param {Event} event - native slotchange event
|
|
13362
|
+
* @returns {void}
|
|
13363
|
+
*/
|
|
13364
|
+
handleTriggerContentSlotChange(event) {
|
|
13365
|
+
this.floater.handleTriggerTabIndex();
|
|
13366
|
+
|
|
13367
|
+
if (event) {
|
|
13368
|
+
this.triggerNode = event.target;
|
|
13369
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
13370
|
+
}
|
|
13371
|
+
|
|
13372
|
+
if (this.triggerContentSlot) {
|
|
13373
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
13374
|
+
if (slot.textContent.trim()) {
|
|
13375
|
+
return true;
|
|
13376
|
+
}
|
|
13377
|
+
const slotInSlot = slot.querySelector('slot');
|
|
13378
|
+
if (!slotInSlot) {
|
|
13379
|
+
return false;
|
|
13380
|
+
}
|
|
13381
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
13382
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
13383
|
+
});
|
|
13384
|
+
} else {
|
|
13385
|
+
this.hasTriggerContent = false;
|
|
13386
|
+
}
|
|
13387
|
+
}
|
|
13388
|
+
|
|
13211
13389
|
/**
|
|
13212
13390
|
* Handles the default slot change event and updates the content.
|
|
13213
13391
|
*
|
|
@@ -13242,13 +13420,13 @@ class AuroDropdown extends r$5 {
|
|
|
13242
13420
|
tabindex="${this.tabIndex}"
|
|
13243
13421
|
>
|
|
13244
13422
|
<div class="triggerContentWrapper">
|
|
13245
|
-
<label class="label" id="triggerLabel">
|
|
13423
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
13246
13424
|
<slot name="label"></slot>
|
|
13247
13425
|
</label>
|
|
13248
13426
|
<div class="triggerContent">
|
|
13249
13427
|
<slot
|
|
13250
13428
|
name="trigger"
|
|
13251
|
-
@slotchange="${() =>
|
|
13429
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
13252
13430
|
</div>
|
|
13253
13431
|
</div>
|
|
13254
13432
|
${this.chevron || this.common ? u$1$1`
|
|
@@ -13295,14 +13473,14 @@ var dropdownVersion = '3.0.0';
|
|
|
13295
13473
|
* Copyright 2017 Google LLC
|
|
13296
13474
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13297
13475
|
*/
|
|
13298
|
-
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):
|
|
13476
|
+
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4="?"+h$1,n$3=`<${o$4}>`,r$4=document,l$2=()=>r$4.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$4.createTreeWalker(r$4,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$3?s$3.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1?"!--"===u[1]?c=v$1:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):undefined!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$1:'"'===u[3]?g:p$2):c===g||c===p$2?c=m$1:c===v$1||c===_?c=f$1:(c=m$1,r=undefined);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$4)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$4.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$4).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$4,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$3(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$4.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?undefined:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const Z={M:e$4,P:h$1,A:o$4,C:1,L:V,R:M$1,D:u$4,V:S$1,I:R,H:k,N:I,U:L,B:H,F:z},j=t$3.litHtmlPolyfillSupport;j?.(N,R),(t$3.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
13299
13477
|
|
|
13300
13478
|
/**
|
|
13301
13479
|
* @license
|
|
13302
13480
|
* Copyright 2020 Google LLC
|
|
13303
13481
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13304
13482
|
*/
|
|
13305
|
-
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$2=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(
|
|
13483
|
+
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$2=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1}),l$1=new Map,n$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$2(x);
|
|
13306
13484
|
|
|
13307
13485
|
/**
|
|
13308
13486
|
* @license
|
|
@@ -13315,20 +13493,20 @@ const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
13315
13493
|
* @license
|
|
13316
13494
|
* Copyright 2020 Google LLC
|
|
13317
13495
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13318
|
-
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=
|
|
13496
|
+
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=undefined===i?o._$AB:i._$AA;if(undefined===n){const i=e.insertBefore(s$1(),l),c=e.insertBefore(s$1(),l);n=new t$1(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,undefined!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v=(o,t,i=o)=>(o._$AI(t,i),o),u$2={},m=(o,t=u$2)=>o._$AH=t,p$1=o=>o._$AH,M=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
|
|
13319
13497
|
|
|
13320
13498
|
/**
|
|
13321
13499
|
* @license
|
|
13322
13500
|
* Copyright 2017 Google LLC
|
|
13323
13501
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13324
13502
|
*/
|
|
13325
|
-
const u$1=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$2=e$3(class extends i$3{constructor(e){if(super(e),e.type!==t$2.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;
|
|
13503
|
+
const u$1=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$2=e$3(class extends i$3{constructor(e){if(super(e),e.type!==t$2.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;undefined===t?t=s:undefined!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){const d=p$1(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p[w]),r$3(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p[k]),r$3(s,d[x],d[j]),j--,k++;else if(undefined===m$1&&(m$1=u$1(a,k,w),y=u$1(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=undefined!==e?d[e]:null;if(null===t){const e=r$3(s,d[x]);v(e,p[k]),v$1[k]=e;}else v$1[k]=v(t,p[k]),r$3(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r$3(s,v$1[w+1]);v(e,p[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
13326
13504
|
|
|
13327
13505
|
/**
|
|
13328
13506
|
* @license
|
|
13329
13507
|
* Copyright 2018 Google LLC
|
|
13330
13508
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13331
|
-
*/const e$2=e$3(class extends i$3{constructor(t){if(super(t),t.type!==t$2.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(
|
|
13509
|
+
*/const e$2=e$3(class extends i$3{constructor(t){if(super(t),t.type!==t$2.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
13332
13510
|
|
|
13333
13511
|
/**
|
|
13334
13512
|
* @license
|
|
@@ -13444,21 +13622,21 @@ function stopNotifyingOnLangChange(element) {
|
|
|
13444
13622
|
* Copyright 2019 Google LLC
|
|
13445
13623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13446
13624
|
*/
|
|
13447
|
-
const t=globalThis,e$1=t.ShadowRoot&&(
|
|
13625
|
+
const t=globalThis,e$1=t.ShadowRoot&&(undefined===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$1=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1(o,t,s)},S=(s,o)=>{if(e$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
|
13448
13626
|
|
|
13449
13627
|
/**
|
|
13450
13628
|
* @license
|
|
13451
13629
|
* Copyright 2017 Google LLC
|
|
13452
13630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13453
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$1(t,s),y={attribute
|
|
13631
|
+
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$1(t,s),y={attribute:true,type:String,converter:u,reflect:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1(s));}else undefined!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
|
|
13454
13632
|
|
|
13455
13633
|
/**
|
|
13456
13634
|
* @license
|
|
13457
13635
|
* Copyright 2017 Google LLC
|
|
13458
13636
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13459
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
13637
|
+
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
13460
13638
|
|
|
13461
|
-
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.
|
|
13639
|
+
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
13462
13640
|
|
|
13463
13641
|
var colorCss$3 = i$2`.wrapper{border-color:transparent}.inputElement-helpText{color:var(--ds-auro-input-help-text-color)}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);--ds-auro-input-help-text-color: var(--ds-color-text-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
13464
13642
|
|
|
@@ -15125,30 +15303,87 @@ class AuroFormValidation {
|
|
|
15125
15303
|
}
|
|
15126
15304
|
|
|
15127
15305
|
/**
|
|
15128
|
-
*
|
|
15129
|
-
*
|
|
15130
|
-
* @param {
|
|
15306
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
15307
|
+
*
|
|
15308
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
15131
15309
|
* @returns {void}
|
|
15310
|
+
*
|
|
15311
|
+
* @example
|
|
15312
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
15313
|
+
* validateElementAttributes(inputElement);
|
|
15314
|
+
*
|
|
15315
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
15316
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
15317
|
+
*
|
|
15318
|
+
* Validation rules:
|
|
15319
|
+
* - input:
|
|
15320
|
+
* - length:
|
|
15321
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
15322
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
15323
|
+
* - pattern:
|
|
15324
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
15325
|
+
* - counter:
|
|
15326
|
+
* - range:
|
|
15327
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
15328
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
15132
15329
|
*/
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
|
|
15139
|
-
|
|
15330
|
+
validateElementAttributes(elem) {
|
|
15331
|
+
const validationRules = {
|
|
15332
|
+
input: {
|
|
15333
|
+
length: [
|
|
15334
|
+
{
|
|
15335
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
15336
|
+
validity: 'tooShort',
|
|
15337
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
15338
|
+
},
|
|
15339
|
+
{
|
|
15340
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
15341
|
+
validity: 'tooLong',
|
|
15342
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
15343
|
+
}
|
|
15344
|
+
],
|
|
15345
|
+
pattern: [
|
|
15346
|
+
{
|
|
15347
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
15348
|
+
validity: 'patternMismatch',
|
|
15349
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
15350
|
+
}
|
|
15351
|
+
]
|
|
15352
|
+
},
|
|
15353
|
+
counter: {
|
|
15354
|
+
range: [
|
|
15355
|
+
{
|
|
15356
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
15357
|
+
validity: 'rangeOverflow',
|
|
15358
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
15359
|
+
},
|
|
15360
|
+
{
|
|
15361
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
15362
|
+
validity: 'rangeUnderflow',
|
|
15363
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
15364
|
+
}
|
|
15365
|
+
]
|
|
15140
15366
|
}
|
|
15141
|
-
}
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
if (
|
|
15145
|
-
|
|
15146
|
-
|
|
15367
|
+
};
|
|
15368
|
+
|
|
15369
|
+
let elementType;
|
|
15370
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15371
|
+
elementType = 'input';
|
|
15372
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
15373
|
+
elementType = 'counter';
|
|
15147
15374
|
}
|
|
15148
15375
|
|
|
15149
|
-
if (
|
|
15150
|
-
|
|
15151
|
-
|
|
15376
|
+
if (elementType) {
|
|
15377
|
+
const rules = validationRules[elementType];
|
|
15378
|
+
|
|
15379
|
+
if (rules) {
|
|
15380
|
+
Object.values(rules).flat().forEach(rule => {
|
|
15381
|
+
if (rule.check(elem)) {
|
|
15382
|
+
elem.validity = rule.validity;
|
|
15383
|
+
elem.errorMessage = rule.message(elem);
|
|
15384
|
+
}
|
|
15385
|
+
});
|
|
15386
|
+
}
|
|
15152
15387
|
}
|
|
15153
15388
|
}
|
|
15154
15389
|
|
|
@@ -15164,33 +15399,32 @@ class AuroFormValidation {
|
|
|
15164
15399
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
15165
15400
|
|
|
15166
15401
|
if (!elem.value.match(emailRegex)) {
|
|
15167
|
-
elem.validity = '
|
|
15168
|
-
elem.
|
|
15402
|
+
elem.validity = 'patternMismatch';
|
|
15403
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15169
15404
|
}
|
|
15170
15405
|
} else if (elem.type === 'credit-card') {
|
|
15171
15406
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
15172
15407
|
elem.validity = 'tooShort';
|
|
15173
|
-
elem.
|
|
15408
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15174
15409
|
}
|
|
15175
15410
|
} else if (elem.type === 'number') {
|
|
15176
15411
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
15177
15412
|
elem.validity = 'rangeOverflow';
|
|
15178
|
-
elem.
|
|
15413
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15179
15414
|
}
|
|
15180
15415
|
|
|
15181
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
15416
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
15182
15417
|
elem.validity = 'rangeUnderflow';
|
|
15183
|
-
elem.
|
|
15418
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15184
15419
|
}
|
|
15185
|
-
|
|
15186
15420
|
} else if (elem.type === 'month-day-year' ||
|
|
15187
15421
|
elem.type === 'month-year' ||
|
|
15188
15422
|
elem.type === 'month-fullYear' ||
|
|
15189
15423
|
elem.type === 'year-month-day'
|
|
15190
15424
|
) {
|
|
15191
|
-
if (elem.value
|
|
15425
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
15192
15426
|
elem.validity = 'tooShort';
|
|
15193
|
-
elem.
|
|
15427
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
15194
15428
|
} else {
|
|
15195
15429
|
const valueDate = new Date(elem.value);
|
|
15196
15430
|
|
|
@@ -15200,7 +15434,7 @@ class AuroFormValidation {
|
|
|
15200
15434
|
|
|
15201
15435
|
if (valueDate > maxDate) {
|
|
15202
15436
|
elem.validity = 'rangeOverflow';
|
|
15203
|
-
elem.
|
|
15437
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
15204
15438
|
}
|
|
15205
15439
|
}
|
|
15206
15440
|
|
|
@@ -15210,7 +15444,7 @@ class AuroFormValidation {
|
|
|
15210
15444
|
|
|
15211
15445
|
if (valueDate < minDate) {
|
|
15212
15446
|
elem.validity = 'rangeUnderflow';
|
|
15213
|
-
elem.
|
|
15447
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
15214
15448
|
}
|
|
15215
15449
|
}
|
|
15216
15450
|
}
|
|
@@ -15233,10 +15467,10 @@ class AuroFormValidation {
|
|
|
15233
15467
|
|
|
15234
15468
|
if (elem.hasAttribute('error')) {
|
|
15235
15469
|
elem.validity = 'customError';
|
|
15236
|
-
elem.
|
|
15470
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
15237
15471
|
} else if (validationShouldRun) {
|
|
15238
15472
|
elem.validity = 'valid';
|
|
15239
|
-
elem.
|
|
15473
|
+
elem.errorMessage = '';
|
|
15240
15474
|
|
|
15241
15475
|
/**
|
|
15242
15476
|
* Only validate once we interact with the datepicker
|
|
@@ -15248,7 +15482,7 @@ class AuroFormValidation {
|
|
|
15248
15482
|
let hasValue = elem.value && elem.value.length > 0;
|
|
15249
15483
|
|
|
15250
15484
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
15251
|
-
if (this.auroInputElements
|
|
15485
|
+
if (this.auroInputElements?.length === 2) {
|
|
15252
15486
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
15253
15487
|
hasValue = false;
|
|
15254
15488
|
}
|
|
@@ -15256,31 +15490,29 @@ class AuroFormValidation {
|
|
|
15256
15490
|
|
|
15257
15491
|
if (!hasValue && elem.required) {
|
|
15258
15492
|
elem.validity = 'valueMissing';
|
|
15259
|
-
elem.
|
|
15493
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
15260
15494
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15261
15495
|
this.validateType(elem);
|
|
15262
|
-
this.
|
|
15496
|
+
this.validateElementAttributes(elem);
|
|
15497
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
15498
|
+
this.validateElementAttributes(elem);
|
|
15263
15499
|
}
|
|
15264
15500
|
}
|
|
15265
15501
|
|
|
15266
|
-
if (this.auroInputElements
|
|
15502
|
+
if (this.auroInputElements?.length > 0) {
|
|
15267
15503
|
elem.validity = this.auroInputElements[0].validity;
|
|
15268
|
-
elem.
|
|
15504
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
15269
15505
|
|
|
15270
|
-
if (elem.validity === 'valid') {
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
15274
|
-
}
|
|
15506
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
15507
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
15508
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
15275
15509
|
}
|
|
15276
15510
|
}
|
|
15277
15511
|
|
|
15278
15512
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
15283
|
-
}
|
|
15513
|
+
// Use the validity message override if it is declared
|
|
15514
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
15515
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
15284
15516
|
}
|
|
15285
15517
|
|
|
15286
15518
|
this.getErrorMessage(elem);
|
|
@@ -15326,18 +15558,18 @@ class AuroFormValidation {
|
|
|
15326
15558
|
if (elem.validity !== 'valid') {
|
|
15327
15559
|
if (elem.setCustomValidity) {
|
|
15328
15560
|
elem.errorMessage = elem.setCustomValidity;
|
|
15329
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
15561
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
15330
15562
|
const input = elem.renderRoot.querySelector('input');
|
|
15331
15563
|
|
|
15332
15564
|
if (input.validationMessage.length > 0) {
|
|
15333
15565
|
elem.errorMessage = input.validationMessage;
|
|
15334
15566
|
}
|
|
15335
|
-
} else if (this.inputElements &&
|
|
15567
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
15336
15568
|
const firstInput = this.inputElements[0];
|
|
15337
15569
|
|
|
15338
15570
|
if (firstInput.validationMessage.length > 0) {
|
|
15339
15571
|
elem.errorMessage = firstInput.validationMessage;
|
|
15340
|
-
} else if (this.inputElements
|
|
15572
|
+
} else if (this.inputElements?.length === 2) {
|
|
15341
15573
|
const secondInput = this.inputElements[1];
|
|
15342
15574
|
|
|
15343
15575
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -15358,42 +15590,8 @@ class AuroFormValidation {
|
|
|
15358
15590
|
/**
|
|
15359
15591
|
* Auro-input provides users a way to enter data into a text field.
|
|
15360
15592
|
*
|
|
15361
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
15362
|
-
* @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]
|
|
15363
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15364
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
15365
15593
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
15366
15594
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
15367
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
15368
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
15369
|
-
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
15370
|
-
* @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.
|
|
15371
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
15372
|
-
* @attr {String} lang - defines the language of an element.
|
|
15373
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15374
|
-
* @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.
|
|
15375
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15376
|
-
* @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`.
|
|
15377
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
15378
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
15379
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
15380
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
15381
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
15382
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
15383
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
15384
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
15385
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
15386
|
-
* @attr {String} setCustomValidityBadInput - Custom help text message to display when validity = `badInput`.
|
|
15387
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
15388
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
15389
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
15390
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
15391
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
15392
|
-
* @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`.
|
|
15393
|
-
* @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`.
|
|
15394
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
15395
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
15396
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15397
15595
|
*
|
|
15398
15596
|
* @slot helptext - Sets the help text displayed below the input.
|
|
15399
15597
|
* @slot label - Sets the label text for the input.
|
|
@@ -15485,97 +15683,298 @@ class BaseInput extends r {
|
|
|
15485
15683
|
.substring(idSubstrStart, idSubstrEnd);
|
|
15486
15684
|
}
|
|
15487
15685
|
|
|
15488
|
-
// function to define props used within the scope of this
|
|
15686
|
+
// function to define props used within the scope of this componentstatic
|
|
15489
15687
|
static get properties() {
|
|
15490
15688
|
return {
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
pattern: {
|
|
15498
|
-
type: String,
|
|
15689
|
+
|
|
15690
|
+
/**
|
|
15691
|
+
* If set, the label will remain fixed in the active position.
|
|
15692
|
+
*/
|
|
15693
|
+
activeLabel: {
|
|
15694
|
+
type: Boolean,
|
|
15499
15695
|
reflect: true
|
|
15500
15696
|
},
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15697
|
+
|
|
15698
|
+
/**
|
|
15699
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
15700
|
+
*/
|
|
15701
|
+
autocapitalize: {
|
|
15702
|
+
type: String
|
|
15703
|
+
},
|
|
15704
|
+
|
|
15705
|
+
/**
|
|
15706
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15707
|
+
*/
|
|
15708
|
+
autocomplete: {
|
|
15509
15709
|
type: String,
|
|
15510
15710
|
reflect: true
|
|
15511
15711
|
},
|
|
15512
|
-
|
|
15513
|
-
|
|
15514
|
-
|
|
15515
|
-
|
|
15712
|
+
|
|
15713
|
+
/**
|
|
15714
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
15715
|
+
*/
|
|
15716
|
+
autocorrect: {
|
|
15717
|
+
type: String
|
|
15516
15718
|
},
|
|
15517
|
-
max: { type: String },
|
|
15518
|
-
min: { type: String },
|
|
15519
|
-
maxLength: { type: Number },
|
|
15520
|
-
minLength: { type: Number },
|
|
15521
15719
|
|
|
15522
15720
|
/**
|
|
15523
|
-
*
|
|
15721
|
+
* If set, disables the input.
|
|
15524
15722
|
*/
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
readonly: { type: Boolean },
|
|
15528
|
-
error: {
|
|
15529
|
-
type: String,
|
|
15530
|
-
reflect: true
|
|
15723
|
+
disabled: {
|
|
15724
|
+
type: Boolean
|
|
15531
15725
|
},
|
|
15532
|
-
|
|
15533
|
-
|
|
15726
|
+
|
|
15727
|
+
error: {
|
|
15534
15728
|
type: String,
|
|
15535
15729
|
reflect: true
|
|
15536
15730
|
},
|
|
15537
|
-
setCustomValidity: { type: String },
|
|
15538
|
-
setCustomValidityCustomError: { type: String },
|
|
15539
|
-
setCustomValidityValueMissing: { type: String },
|
|
15540
|
-
setCustomValidityBadInput: { type: String },
|
|
15541
|
-
setCustomValidityTooShort: { type: String },
|
|
15542
|
-
setCustomValidityTooLong: { type: String },
|
|
15543
|
-
setCustomValidityRangeOverflow: { type: String},
|
|
15544
|
-
setCustomValidityRangeUnderflow: { type: String},
|
|
15545
|
-
customValidityTypeEmail: { type: String }
|
|
15546
|
-
};
|
|
15547
|
-
}
|
|
15548
|
-
|
|
15549
|
-
static get styles() {
|
|
15550
|
-
return [
|
|
15551
|
-
i$2`${styleCss$3}`,
|
|
15552
|
-
i$2`${colorCss$3}`,
|
|
15553
|
-
i$2`${tokensCss$3}`
|
|
15554
|
-
];
|
|
15555
|
-
}
|
|
15556
|
-
|
|
15557
|
-
connectedCallback() {
|
|
15558
|
-
super.connectedCallback();
|
|
15559
15731
|
|
|
15560
|
-
|
|
15732
|
+
/**
|
|
15733
|
+
* Contains the help text message for the current validity error.
|
|
15734
|
+
*/
|
|
15735
|
+
errorMessage: {
|
|
15736
|
+
type: String
|
|
15737
|
+
},
|
|
15561
15738
|
|
|
15562
|
-
|
|
15739
|
+
/**
|
|
15740
|
+
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15741
|
+
*/
|
|
15742
|
+
icon: {
|
|
15743
|
+
type: Boolean
|
|
15744
|
+
},
|
|
15563
15745
|
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15746
|
+
/**
|
|
15747
|
+
* Sets the unique ID of the element.
|
|
15748
|
+
*/
|
|
15749
|
+
id: {
|
|
15750
|
+
type: String
|
|
15751
|
+
},
|
|
15567
15752
|
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
};
|
|
15753
|
+
/**
|
|
15754
|
+
* Defines the language of an element.
|
|
15755
|
+
*/
|
|
15756
|
+
lang: {
|
|
15757
|
+
type: String
|
|
15758
|
+
},
|
|
15575
15759
|
|
|
15576
|
-
|
|
15760
|
+
/**
|
|
15761
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15762
|
+
*/
|
|
15763
|
+
max: {
|
|
15764
|
+
type: String
|
|
15765
|
+
},
|
|
15577
15766
|
|
|
15578
|
-
|
|
15767
|
+
/**
|
|
15768
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
15769
|
+
*/
|
|
15770
|
+
maxLength: {
|
|
15771
|
+
type: Number
|
|
15772
|
+
},
|
|
15773
|
+
|
|
15774
|
+
/**
|
|
15775
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15776
|
+
*/
|
|
15777
|
+
min: {
|
|
15778
|
+
type: String
|
|
15779
|
+
},
|
|
15780
|
+
|
|
15781
|
+
/**
|
|
15782
|
+
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
15783
|
+
*/
|
|
15784
|
+
minLength: {
|
|
15785
|
+
type: Number
|
|
15786
|
+
},
|
|
15787
|
+
|
|
15788
|
+
/**
|
|
15789
|
+
* Populates the `name` attribute on the input.
|
|
15790
|
+
*/
|
|
15791
|
+
name: {
|
|
15792
|
+
type: String
|
|
15793
|
+
},
|
|
15794
|
+
|
|
15795
|
+
/**
|
|
15796
|
+
* If set, disables auto-validation on blur.
|
|
15797
|
+
*/
|
|
15798
|
+
noValidate: {
|
|
15799
|
+
type: Boolean
|
|
15800
|
+
},
|
|
15801
|
+
|
|
15802
|
+
/**
|
|
15803
|
+
* Specifies a regular expression the form control's value should match.
|
|
15804
|
+
*/
|
|
15805
|
+
pattern: {
|
|
15806
|
+
type: String,
|
|
15807
|
+
reflect: true
|
|
15808
|
+
},
|
|
15809
|
+
|
|
15810
|
+
/**
|
|
15811
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
15812
|
+
*/
|
|
15813
|
+
placeholder: {
|
|
15814
|
+
type: String
|
|
15815
|
+
},
|
|
15816
|
+
|
|
15817
|
+
/**
|
|
15818
|
+
* Makes the input read-only, but can be set programmatically.
|
|
15819
|
+
*/
|
|
15820
|
+
readonly: {
|
|
15821
|
+
type: Boolean
|
|
15822
|
+
},
|
|
15823
|
+
|
|
15824
|
+
/**
|
|
15825
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
15826
|
+
*/
|
|
15827
|
+
required: {
|
|
15828
|
+
type: Boolean
|
|
15829
|
+
},
|
|
15830
|
+
|
|
15831
|
+
/**
|
|
15832
|
+
* @ignore
|
|
15833
|
+
*/
|
|
15834
|
+
showPassword: {
|
|
15835
|
+
state: true
|
|
15836
|
+
},
|
|
15837
|
+
|
|
15838
|
+
/**
|
|
15839
|
+
* Sets a custom help text message to display for all validityStates.
|
|
15840
|
+
*/
|
|
15841
|
+
setCustomValidity: {
|
|
15842
|
+
type: String
|
|
15843
|
+
},
|
|
15844
|
+
|
|
15845
|
+
/**
|
|
15846
|
+
* Custom help text message to display when validity = `badInput`.
|
|
15847
|
+
*/
|
|
15848
|
+
setCustomValidityBadInput: {
|
|
15849
|
+
type: String
|
|
15850
|
+
},
|
|
15851
|
+
|
|
15852
|
+
/**
|
|
15853
|
+
* Custom help text message to display when validity = `customError`.
|
|
15854
|
+
*/
|
|
15855
|
+
setCustomValidityCustomError: {
|
|
15856
|
+
type: String
|
|
15857
|
+
},
|
|
15858
|
+
|
|
15859
|
+
/**
|
|
15860
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
15861
|
+
*/
|
|
15862
|
+
setCustomValidityForType: {
|
|
15863
|
+
type: String
|
|
15864
|
+
},
|
|
15865
|
+
|
|
15866
|
+
/**
|
|
15867
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
15868
|
+
*/
|
|
15869
|
+
setCustomValidityRangeOverflow: {
|
|
15870
|
+
type: String
|
|
15871
|
+
},
|
|
15872
|
+
|
|
15873
|
+
/**
|
|
15874
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
15875
|
+
*/
|
|
15876
|
+
setCustomValidityRangeUnderflow: {
|
|
15877
|
+
type: String
|
|
15878
|
+
},
|
|
15879
|
+
|
|
15880
|
+
/**
|
|
15881
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
15882
|
+
*/
|
|
15883
|
+
setCustomValidityTooLong: {
|
|
15884
|
+
type: String
|
|
15885
|
+
},
|
|
15886
|
+
|
|
15887
|
+
/**
|
|
15888
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
15889
|
+
*/
|
|
15890
|
+
setCustomValidityTooShort: {
|
|
15891
|
+
type: String
|
|
15892
|
+
},
|
|
15893
|
+
|
|
15894
|
+
/**
|
|
15895
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
15896
|
+
*/
|
|
15897
|
+
setCustomValidityValueMissing: {
|
|
15898
|
+
type: String
|
|
15899
|
+
},
|
|
15900
|
+
|
|
15901
|
+
/**
|
|
15902
|
+
* Custom help text message for email type validity.
|
|
15903
|
+
*/
|
|
15904
|
+
customValidityTypeEmail: {
|
|
15905
|
+
type: String
|
|
15906
|
+
},
|
|
15907
|
+
|
|
15908
|
+
/**
|
|
15909
|
+
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
15910
|
+
*/
|
|
15911
|
+
spellcheck: {
|
|
15912
|
+
type: String
|
|
15913
|
+
},
|
|
15914
|
+
|
|
15915
|
+
/**
|
|
15916
|
+
* Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
15917
|
+
*/
|
|
15918
|
+
type: {
|
|
15919
|
+
type: String,
|
|
15920
|
+
reflect: true
|
|
15921
|
+
},
|
|
15922
|
+
|
|
15923
|
+
/**
|
|
15924
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15925
|
+
*/
|
|
15926
|
+
value: {
|
|
15927
|
+
type: String
|
|
15928
|
+
},
|
|
15929
|
+
|
|
15930
|
+
/**
|
|
15931
|
+
* Sets validation mode to re-eval with each input.
|
|
15932
|
+
*/
|
|
15933
|
+
validateOnInput: {
|
|
15934
|
+
type: Boolean
|
|
15935
|
+
},
|
|
15936
|
+
|
|
15937
|
+
/**
|
|
15938
|
+
* Specifies the `validityState` this element is in.
|
|
15939
|
+
*/
|
|
15940
|
+
validity: {
|
|
15941
|
+
type: String,
|
|
15942
|
+
reflect: true
|
|
15943
|
+
}
|
|
15944
|
+
};
|
|
15945
|
+
}
|
|
15946
|
+
|
|
15947
|
+
|
|
15948
|
+
static get styles() {
|
|
15949
|
+
return [
|
|
15950
|
+
i$2`${colorCss$3}`,
|
|
15951
|
+
i$2`${styleCss$3}`,
|
|
15952
|
+
i$2`${tokensCss$3}`
|
|
15953
|
+
];
|
|
15954
|
+
}
|
|
15955
|
+
|
|
15956
|
+
connectedCallback() {
|
|
15957
|
+
super.connectedCallback();
|
|
15958
|
+
|
|
15959
|
+
this.privateDefaults();
|
|
15960
|
+
|
|
15961
|
+
notifyOnLangChange(this);
|
|
15962
|
+
|
|
15963
|
+
// Process auto-formatting if defined for CleaveJS
|
|
15964
|
+
if (this.type) {
|
|
15965
|
+
let config = null;
|
|
15966
|
+
|
|
15967
|
+
// Set config for credit card
|
|
15968
|
+
switch (this.type) {
|
|
15969
|
+
case 'number':
|
|
15970
|
+
config = {
|
|
15971
|
+
numeral: true,
|
|
15972
|
+
delimiter: ''
|
|
15973
|
+
};
|
|
15974
|
+
|
|
15975
|
+
this.inputMode = 'numeric';
|
|
15976
|
+
|
|
15977
|
+
break;
|
|
15579
15978
|
|
|
15580
15979
|
case 'credit-card':
|
|
15581
15980
|
config = {
|
|
@@ -16170,7 +16569,7 @@ class BaseInput extends r {
|
|
|
16170
16569
|
this.maxLength = card.formatLength;
|
|
16171
16570
|
this.minLength = card.formatMinLength;
|
|
16172
16571
|
|
|
16173
|
-
this.
|
|
16572
|
+
this.errorMessage = card.errorMessage;
|
|
16174
16573
|
|
|
16175
16574
|
if (this.icon) {
|
|
16176
16575
|
this.inputIconName = card.cardIcon;
|
|
@@ -16190,63 +16589,63 @@ class BaseInput extends r {
|
|
|
16190
16589
|
name: 'Airlines',
|
|
16191
16590
|
regex: /^(?<num>1|2)\d{0}/u,
|
|
16192
16591
|
formatMinLength: 17,
|
|
16193
|
-
|
|
16592
|
+
errorMessage: CreditCardValidationMessage,
|
|
16194
16593
|
cardIcon: 'credit-card'
|
|
16195
16594
|
},
|
|
16196
16595
|
{
|
|
16197
16596
|
name: 'Commercial',
|
|
16198
16597
|
regex: /^(?<num>2)\d{0}/u,
|
|
16199
16598
|
formatMinLength: 8,
|
|
16200
|
-
|
|
16599
|
+
errorMessage: CreditCardValidationMessage,
|
|
16201
16600
|
cardIcon: 'credit-card'
|
|
16202
16601
|
},
|
|
16203
16602
|
{
|
|
16204
16603
|
name: 'Alaska Commercial',
|
|
16205
16604
|
regex: /^(?<num>27)\d{0}/u,
|
|
16206
16605
|
formatMinLength: 8,
|
|
16207
|
-
|
|
16606
|
+
errorMessage: CreditCardValidationMessage,
|
|
16208
16607
|
cardIcon: 'cc-alaska'
|
|
16209
16608
|
},
|
|
16210
16609
|
{
|
|
16211
16610
|
name: 'American Express',
|
|
16212
16611
|
regex: /^(?<num>34|37)\d{0}/u,
|
|
16213
16612
|
formatLength: 17,
|
|
16214
|
-
|
|
16613
|
+
errorMessage: CreditCardValidationMessage,
|
|
16215
16614
|
cardIcon: 'cc-amex'
|
|
16216
16615
|
},
|
|
16217
16616
|
{
|
|
16218
16617
|
name: 'Diners club',
|
|
16219
16618
|
regex: /^(?<num>36|38)\d{0}/u,
|
|
16220
16619
|
formatLength: 16,
|
|
16221
|
-
|
|
16620
|
+
errorMessage: CreditCardValidationMessage,
|
|
16222
16621
|
cardIcon: 'credit-card'
|
|
16223
16622
|
},
|
|
16224
16623
|
{
|
|
16225
16624
|
name: 'Visa',
|
|
16226
16625
|
regex: /^(?<num>4)\d{0}/u,
|
|
16227
16626
|
formatLength: 19,
|
|
16228
|
-
|
|
16627
|
+
errorMessage: CreditCardValidationMessage,
|
|
16229
16628
|
cardIcon: 'cc-visa'
|
|
16230
16629
|
},
|
|
16231
16630
|
{
|
|
16232
16631
|
name: 'Alaska Airlines Visa',
|
|
16233
16632
|
regex: /^(?<num>4147\s34|4888\s93|4800\s11|4313\s51|4313\s07)\d{0}/u,
|
|
16234
16633
|
formatLength: 19,
|
|
16235
|
-
|
|
16634
|
+
errorMessage: CreditCardValidationMessage,
|
|
16236
16635
|
cardIcon: 'cc-alaska'
|
|
16237
16636
|
},
|
|
16238
16637
|
{
|
|
16239
16638
|
name: 'Master Card',
|
|
16240
16639
|
regex: /^(?<num>5)\d{0}/u,
|
|
16241
16640
|
formatLength: 19,
|
|
16242
|
-
|
|
16641
|
+
errorMessage: CreditCardValidationMessage,
|
|
16243
16642
|
cardIcon: 'cc-mastercard'
|
|
16244
16643
|
},
|
|
16245
16644
|
{
|
|
16246
16645
|
name: 'Discover Card',
|
|
16247
16646
|
regex: /^(?<num>6)\d{0}/u,
|
|
16248
16647
|
formatLength: 19,
|
|
16249
|
-
|
|
16648
|
+
errorMessage: CreditCardValidationMessage,
|
|
16250
16649
|
cardIcon: 'cc-discover'
|
|
16251
16650
|
}
|
|
16252
16651
|
];
|
|
@@ -16254,7 +16653,7 @@ class BaseInput extends r {
|
|
|
16254
16653
|
let type = {
|
|
16255
16654
|
name: 'Default Card',
|
|
16256
16655
|
formatLength: 19,
|
|
16257
|
-
|
|
16656
|
+
errorMessage: CreditCardValidationMessage,
|
|
16258
16657
|
cardIcon: 'credit-card'
|
|
16259
16658
|
};
|
|
16260
16659
|
|
|
@@ -17279,7 +17678,6 @@ class AuroInput extends BaseInput {
|
|
|
17279
17678
|
<p class="inputElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
17280
17679
|
${this.errorMessage}
|
|
17281
17680
|
</p>`
|
|
17282
|
-
|
|
17283
17681
|
}
|
|
17284
17682
|
`;
|
|
17285
17683
|
}
|
|
@@ -17295,25 +17693,6 @@ var inputVersion = '4.2.0';
|
|
|
17295
17693
|
|
|
17296
17694
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
17297
17695
|
/**
|
|
17298
|
-
* @prop {String} value - Value selected for the date picker.
|
|
17299
|
-
* @prop {String} valueEnd - Value selected for the second date picker when using date range.
|
|
17300
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
17301
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
17302
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
17303
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
17304
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
17305
|
-
* @attr {String} setCustomValidityValueMissing - Help text message to display when validity = `valueMissing`.
|
|
17306
|
-
* @attr {String} calendarStartDate - The first date that may be displayed in the calendar.
|
|
17307
|
-
* @attr {String} calendarEndDate - The last date that may be displayed in the calendar
|
|
17308
|
-
* @attr {String} calendarFocusDate - The date that will first be visually rendered to the user in the calendar.
|
|
17309
|
-
* @attr {Boolean} disabled - If set, disables the datepicker.
|
|
17310
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
17311
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
17312
|
-
* @attr {Boolean} range - If set, turns on date range functionality in auro-calendar.
|
|
17313
|
-
* @attr {String} centralDate - The date that determines the currently visible month.
|
|
17314
|
-
* @attr {String} maxDate - Maximum date. All dates after will be disabled.
|
|
17315
|
-
* @attr {String} minDate - Minimum date. All dates before will be disabled.
|
|
17316
|
-
* @attr {Array} monthNames = Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
17317
17696
|
* @slot helpText - Defines the content of the helpText.
|
|
17318
17697
|
* @slot mobileDateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
17319
17698
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -17410,7 +17789,15 @@ class AuroDatePicker extends r$7 {
|
|
|
17410
17789
|
* Generate unique names for dependency components.
|
|
17411
17790
|
*/
|
|
17412
17791
|
const versioning = new AuroDependencyVersioning$2();
|
|
17792
|
+
|
|
17793
|
+
/**
|
|
17794
|
+
* @private
|
|
17795
|
+
*/
|
|
17413
17796
|
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
17797
|
+
|
|
17798
|
+
/**
|
|
17799
|
+
* @private
|
|
17800
|
+
*/
|
|
17414
17801
|
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
17415
17802
|
}
|
|
17416
17803
|
|
|
@@ -17420,101 +17807,155 @@ class AuroDatePicker extends r$7 {
|
|
|
17420
17807
|
static get properties() {
|
|
17421
17808
|
return {
|
|
17422
17809
|
// ...super.properties,
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
noValidate: {
|
|
17428
|
-
type: Boolean
|
|
17429
|
-
},
|
|
17430
|
-
setCustomValidity: {
|
|
17431
|
-
type: String,
|
|
17432
|
-
reflect: true
|
|
17433
|
-
},
|
|
17434
|
-
setCustomValidityRangeUnderflow: {
|
|
17435
|
-
type: String,
|
|
17436
|
-
reflect: true
|
|
17437
|
-
},
|
|
17438
|
-
setCustomValidityRangeOverflow: {
|
|
17810
|
+
/**
|
|
17811
|
+
* The last date that may be displayed in the calendar.
|
|
17812
|
+
*/
|
|
17813
|
+
calendarEndDate: {
|
|
17439
17814
|
type: String,
|
|
17440
17815
|
reflect: true
|
|
17441
17816
|
},
|
|
17442
|
-
|
|
17817
|
+
|
|
17818
|
+
/**
|
|
17819
|
+
* The date that will first be visually rendered to the user in the calendar.
|
|
17820
|
+
*/
|
|
17821
|
+
calendarFocusDate: {
|
|
17443
17822
|
type: String,
|
|
17444
17823
|
reflect: true
|
|
17445
17824
|
},
|
|
17446
|
-
|
|
17825
|
+
|
|
17826
|
+
/**
|
|
17827
|
+
* The first date that may be displayed in the calendar.
|
|
17828
|
+
*/
|
|
17829
|
+
calendarStartDate: {
|
|
17447
17830
|
type: String,
|
|
17448
17831
|
reflect: true
|
|
17449
17832
|
},
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17833
|
+
|
|
17834
|
+
/**
|
|
17835
|
+
* The date that determines the currently visible month.
|
|
17836
|
+
*/
|
|
17837
|
+
centralDate: {
|
|
17838
|
+
type: String
|
|
17453
17839
|
},
|
|
17840
|
+
|
|
17841
|
+
/**
|
|
17842
|
+
* If set, disables the datepicker.
|
|
17843
|
+
*/
|
|
17454
17844
|
disabled: {
|
|
17455
17845
|
type: Boolean,
|
|
17456
17846
|
reflect: true
|
|
17457
17847
|
},
|
|
17458
|
-
|
|
17459
|
-
|
|
17460
|
-
|
|
17461
|
-
|
|
17462
|
-
|
|
17848
|
+
|
|
17849
|
+
/**
|
|
17850
|
+
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
17851
|
+
*/
|
|
17852
|
+
error: {
|
|
17463
17853
|
type: String,
|
|
17464
17854
|
reflect: true
|
|
17465
17855
|
},
|
|
17466
|
-
|
|
17467
|
-
|
|
17468
|
-
|
|
17469
|
-
|
|
17470
|
-
type: String
|
|
17471
|
-
},
|
|
17472
|
-
centralDate: {
|
|
17473
|
-
type: String
|
|
17474
|
-
},
|
|
17856
|
+
|
|
17857
|
+
/**
|
|
17858
|
+
* Maximum date. All dates after will be disabled.
|
|
17859
|
+
*/
|
|
17475
17860
|
maxDate: {
|
|
17476
17861
|
type: String,
|
|
17477
17862
|
reflect: true
|
|
17478
17863
|
},
|
|
17864
|
+
|
|
17865
|
+
/**
|
|
17866
|
+
* Minimum date. All dates before will be disabled.
|
|
17867
|
+
*/
|
|
17479
17868
|
minDate: {
|
|
17480
17869
|
type: String,
|
|
17481
17870
|
reflect: true
|
|
17482
17871
|
},
|
|
17872
|
+
|
|
17873
|
+
/**
|
|
17874
|
+
* Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
17875
|
+
*/
|
|
17483
17876
|
monthNames: {
|
|
17484
17877
|
type: Array
|
|
17485
17878
|
},
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17879
|
+
|
|
17880
|
+
/**
|
|
17881
|
+
* If set, disables auto-validation on blur.
|
|
17882
|
+
*/
|
|
17883
|
+
noValidate: {
|
|
17884
|
+
type: Boolean
|
|
17489
17885
|
},
|
|
17490
|
-
|
|
17491
|
-
|
|
17886
|
+
|
|
17887
|
+
/**
|
|
17888
|
+
* If set, turns on date range functionality in auro-calendar.
|
|
17889
|
+
*/
|
|
17890
|
+
range: {
|
|
17891
|
+
type: Boolean,
|
|
17492
17892
|
reflect: true
|
|
17493
17893
|
},
|
|
17494
|
-
|
|
17495
|
-
|
|
17894
|
+
|
|
17895
|
+
/**
|
|
17896
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
17897
|
+
*/
|
|
17898
|
+
required: {
|
|
17899
|
+
type: Boolean,
|
|
17496
17900
|
reflect: true
|
|
17497
17901
|
},
|
|
17498
17902
|
|
|
17499
17903
|
/**
|
|
17500
|
-
*
|
|
17904
|
+
* Sets a custom help text message to display for all validityStates.
|
|
17501
17905
|
*/
|
|
17502
|
-
|
|
17906
|
+
setCustomValidity: {
|
|
17907
|
+
type: String
|
|
17908
|
+
},
|
|
17503
17909
|
|
|
17504
17910
|
/**
|
|
17505
|
-
*
|
|
17911
|
+
* Custom help text message to display when validity = `customError`.
|
|
17506
17912
|
*/
|
|
17507
|
-
|
|
17913
|
+
setCustomValidityCustomError: {
|
|
17914
|
+
type: String
|
|
17915
|
+
},
|
|
17508
17916
|
|
|
17509
17917
|
/**
|
|
17510
|
-
*
|
|
17918
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17511
17919
|
*/
|
|
17512
|
-
|
|
17920
|
+
setCustomValidityRangeOverflow: {
|
|
17921
|
+
type: String
|
|
17922
|
+
},
|
|
17513
17923
|
|
|
17514
17924
|
/**
|
|
17515
|
-
*
|
|
17925
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
17926
|
+
*/
|
|
17927
|
+
setCustomValidityRangeUnderflow: {
|
|
17928
|
+
type: String
|
|
17929
|
+
},
|
|
17930
|
+
|
|
17931
|
+
/**
|
|
17932
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
17516
17933
|
*/
|
|
17517
|
-
|
|
17934
|
+
setCustomValidityValueMissing: {
|
|
17935
|
+
type: String
|
|
17936
|
+
},
|
|
17937
|
+
|
|
17938
|
+
/**
|
|
17939
|
+
* Specifies the `validityState` this element is in.
|
|
17940
|
+
*/
|
|
17941
|
+
validity: {
|
|
17942
|
+
type: String,
|
|
17943
|
+
reflect: true
|
|
17944
|
+
},
|
|
17945
|
+
|
|
17946
|
+
/**
|
|
17947
|
+
* Value selected for the datepicker.
|
|
17948
|
+
*/
|
|
17949
|
+
value: {
|
|
17950
|
+
type: String
|
|
17951
|
+
},
|
|
17952
|
+
|
|
17953
|
+
/**
|
|
17954
|
+
* Value selected for the second datepicker when using date range.
|
|
17955
|
+
*/
|
|
17956
|
+
valueEnd: {
|
|
17957
|
+
type: String
|
|
17958
|
+
}
|
|
17518
17959
|
};
|
|
17519
17960
|
}
|
|
17520
17961
|
|
|
@@ -17636,30 +18077,6 @@ class AuroDatePicker extends r$7 {
|
|
|
17636
18077
|
return dateStr;
|
|
17637
18078
|
}
|
|
17638
18079
|
|
|
17639
|
-
/**
|
|
17640
|
-
* Return appropriate error message.
|
|
17641
|
-
* @param {Object} evt - Event passed in from auro-input when the event triggered this function.
|
|
17642
|
-
* @private
|
|
17643
|
-
*/
|
|
17644
|
-
getErrorMessage(evt) {
|
|
17645
|
-
if (evt) {
|
|
17646
|
-
const inputClass = evt.target.getAttribute('class');
|
|
17647
|
-
if (inputClass === 'dateFrom') {
|
|
17648
|
-
if (this.inputList[0].validity && this.inputList[0].validity !== 'valid') {
|
|
17649
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17650
|
-
} else {
|
|
17651
|
-
this.errorMessage = undefined;
|
|
17652
|
-
}
|
|
17653
|
-
}
|
|
17654
|
-
|
|
17655
|
-
if (inputClass === 'dateTo') {
|
|
17656
|
-
if (!this.errorMessage && this.inputList[1].validity && this.inputList[1].validity !== 'valid') {
|
|
17657
|
-
this.errorMessage = evt.target.errorMessage;
|
|
17658
|
-
}
|
|
17659
|
-
}
|
|
17660
|
-
}
|
|
17661
|
-
}
|
|
17662
|
-
|
|
17663
18080
|
/**
|
|
17664
18081
|
* Changes the calendar's visibility to reflect the value of the central date attribute.
|
|
17665
18082
|
* @private
|
|
@@ -17768,13 +18185,13 @@ class AuroDatePicker extends r$7 {
|
|
|
17768
18185
|
input.addEventListener('auroFormElement-validated', (evt) => {
|
|
17769
18186
|
if (evt.detail.validity === 'customError') {
|
|
17770
18187
|
this.validity = evt.detail.validity;
|
|
17771
|
-
this.
|
|
18188
|
+
this.errorMessage = evt.detail.message;
|
|
17772
18189
|
} else if (evt.target === this.inputList[0]) {
|
|
17773
18190
|
this.validity = evt.detail.validity;
|
|
17774
|
-
this.
|
|
18191
|
+
this.errorMessage = evt.detail.message;
|
|
17775
18192
|
} else if (this.inputList.length > 1 && evt.target === this.inputList[1] && (this.inputList[0].validity === 'valid' || this.inputList[0].validity === undefined)) {
|
|
17776
18193
|
this.validity = evt.detail.validity;
|
|
17777
|
-
this.
|
|
18194
|
+
this.errorMessage = evt.detail.message;
|
|
17778
18195
|
}
|
|
17779
18196
|
});
|
|
17780
18197
|
});
|
|
@@ -17925,10 +18342,11 @@ class AuroDatePicker extends r$7 {
|
|
|
17925
18342
|
if (!this.value || !this.util.validDateStr(this.value)) {
|
|
17926
18343
|
this.value = newDate;
|
|
17927
18344
|
} else if (!this.valueEnd || !this.util.validDateStr(this.valueEnd)) {
|
|
17928
|
-
|
|
17929
18345
|
// verify the date is after this.value to insure we are setting a proper range
|
|
17930
18346
|
if (new Date(newDate) >= new Date(this.value)) {
|
|
17931
18347
|
this.valueEnd = newDate;
|
|
18348
|
+
} else {
|
|
18349
|
+
this.value = newDate;
|
|
17932
18350
|
}
|
|
17933
18351
|
} else {
|
|
17934
18352
|
this.value = newDate;
|
|
@@ -18064,7 +18482,7 @@ class AuroDatePicker extends r$7 {
|
|
|
18064
18482
|
// This is done to prevent error icon from displaying on both inputs in range support
|
|
18065
18483
|
const lastInput = this.inputList[this.inputList.length - 1];
|
|
18066
18484
|
|
|
18067
|
-
if (this.error) {
|
|
18485
|
+
if (this.hasAttribute('error')) {
|
|
18068
18486
|
// Set the error attribute on the last input
|
|
18069
18487
|
lastInput.setAttribute('error', this.getAttribute('error'));
|
|
18070
18488
|
} else {
|
|
@@ -18086,11 +18504,14 @@ class AuroDatePicker extends r$7 {
|
|
|
18086
18504
|
// a later date than the current value date
|
|
18087
18505
|
if (changedProperties.has('minDate')) {
|
|
18088
18506
|
if (this.minDate) {
|
|
18089
|
-
const minDateMonth = Number(this.minDate.
|
|
18507
|
+
const minDateMonth = Number(this.minDate.split('/')[0]);
|
|
18508
|
+
const minDateYear = Number(this.minDate.split('/')[2]);
|
|
18090
18509
|
|
|
18091
18510
|
// This sets the visible month of the calendar to the minDate when the minDate is later
|
|
18092
18511
|
// than the current visible date
|
|
18093
|
-
if (
|
|
18512
|
+
if (minDateYear > this.calendar.year) {
|
|
18513
|
+
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18514
|
+
} else if (minDateYear === this.calendar.year && minDateMonth > this.calendar.month) {
|
|
18094
18515
|
this.calendarRenderUtil.updateCentralDate(this, this.minDate);
|
|
18095
18516
|
}
|
|
18096
18517
|
|
|
@@ -18111,6 +18532,17 @@ class AuroDatePicker extends r$7 {
|
|
|
18111
18532
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
18112
18533
|
// an earlier date than the current value date
|
|
18113
18534
|
if (changedProperties.has('maxDate')) {
|
|
18535
|
+
const maxDateMonth = Number(this.maxDate.split('/')[0]);
|
|
18536
|
+
const maxDateYear = Number(this.maxDate.split('/')[2]);
|
|
18537
|
+
|
|
18538
|
+
// This sets the visible month of the calendar to the maxDate when the maxDate is earlier
|
|
18539
|
+
// than the current visible date
|
|
18540
|
+
if (maxDateYear < this.calendar.year) {
|
|
18541
|
+
this.calendarRenderUtil.updateCentralDate(this, this.maxDate);
|
|
18542
|
+
} else if (maxDateYear === this.calendar.year && maxDateMonth < this.calendar.month) {
|
|
18543
|
+
this.calendarRenderUtil.updateCentralDate(this, this.maxDate);
|
|
18544
|
+
}
|
|
18545
|
+
|
|
18114
18546
|
if (this.maxDate) {
|
|
18115
18547
|
if (this.value) {
|
|
18116
18548
|
if (new Date(this.maxDate).getTime() < new Date(this.value).getTime()) {
|
|
@@ -18182,6 +18614,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18182
18614
|
noValidate
|
|
18183
18615
|
.max="${this.maxDate}"
|
|
18184
18616
|
.min="${this.minDate}"
|
|
18617
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18618
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18185
18619
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18186
18620
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18187
18621
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18199,6 +18633,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18199
18633
|
noValidate
|
|
18200
18634
|
.max="${this.maxDate}"
|
|
18201
18635
|
.min="${this.minDate}"
|
|
18636
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
18637
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
18202
18638
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
18203
18639
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
18204
18640
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
@@ -18229,8 +18665,8 @@ class AuroDatePicker extends r$7 {
|
|
|
18229
18665
|
? u$6`
|
|
18230
18666
|
<slot name="helpText"></slot>
|
|
18231
18667
|
` : u$6`
|
|
18232
|
-
<p class="datepickerElement-helpText"
|
|
18233
|
-
${this.
|
|
18668
|
+
<p class="datepickerElement-helpText" role="alert" aria-live="assertive" part="helpText">
|
|
18669
|
+
${this.errorMessage}
|
|
18234
18670
|
</p>`
|
|
18235
18671
|
}
|
|
18236
18672
|
</span>
|