@aurodesignsystem/auro-formkit 1.6.0-beta.9 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/cache/026e4d886ba97e63-meta.json +1 -0
- package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
- package/.turbo/cache/080ca6155e637d5d-meta.json +1 -0
- package/.turbo/cache/080ca6155e637d5d.tar.zst +0 -0
- package/.turbo/cache/0b115e30ff606299-meta.json +1 -0
- package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -0
- package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -0
- package/.turbo/cache/18129dba20f51b6b.tar.zst +0 -0
- package/.turbo/cache/1c630fb3411e4a41-meta.json +1 -0
- package/.turbo/cache/1c630fb3411e4a41.tar.zst +0 -0
- package/.turbo/cache/24b19ac5895e5dd6-meta.json +1 -0
- package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -0
- package/.turbo/cache/2787020e69f50af2.tar.zst +0 -0
- package/.turbo/cache/29b72c73cbccb53d-meta.json +1 -0
- package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -0
- package/.turbo/cache/2c0d681132c153dd.tar.zst +0 -0
- package/.turbo/cache/3e647c5863d32e6f-meta.json +1 -0
- package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -0
- package/.turbo/cache/4006a206400d5c7b.tar.zst +0 -0
- package/.turbo/cache/43f5206cc4e69b44-meta.json +1 -0
- package/.turbo/cache/43f5206cc4e69b44.tar.zst +0 -0
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -0
- package/.turbo/cache/492dda333b8d15f1.tar.zst +0 -0
- package/.turbo/cache/4a85ec226b585fd5-meta.json +1 -0
- package/.turbo/cache/4a85ec226b585fd5.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -0
- package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
- package/.turbo/cache/50a29c70b93c57dd-meta.json +1 -0
- package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -0
- package/.turbo/cache/51eaa58d5c167de8.tar.zst +0 -0
- package/.turbo/cache/56455145cd768755-meta.json +1 -0
- package/.turbo/cache/56455145cd768755.tar.zst +0 -0
- package/.turbo/cache/5c06332cf9f132da-meta.json +1 -0
- package/.turbo/cache/5c06332cf9f132da.tar.zst +0 -0
- package/.turbo/cache/5e613afc6868d0e2-meta.json +1 -0
- package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
- package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -0
- package/.turbo/cache/60ad74320c682a2b.tar.zst +0 -0
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -0
- package/.turbo/cache/61e218aba69cff58.tar.zst +0 -0
- package/.turbo/cache/639dac15b979bedc-meta.json +1 -0
- package/.turbo/cache/639dac15b979bedc.tar.zst +0 -0
- package/.turbo/cache/664c2e08614fd212-meta.json +1 -0
- package/.turbo/cache/664c2e08614fd212.tar.zst +0 -0
- package/.turbo/cache/6c51b0ebfc086faa-meta.json +1 -0
- package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
- package/.turbo/cache/7216d994164825fb-meta.json +1 -0
- package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -0
- package/.turbo/cache/77da375a012de9d0.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -0
- package/.turbo/cache/7bf2b06a479d0b30.tar.zst +0 -0
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -0
- package/.turbo/cache/7c9ca6163e61285c.tar.zst +0 -0
- package/.turbo/cache/83a167e135cb431a-meta.json +1 -0
- package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
- package/.turbo/cache/8af27c076dc010c3-meta.json +1 -0
- package/.turbo/cache/8af27c076dc010c3.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -0
- package/.turbo/cache/8bb856bd31b5b479.tar.zst +0 -0
- package/.turbo/cache/953c8216249d3509-meta.json +1 -0
- package/.turbo/cache/953c8216249d3509.tar.zst +0 -0
- package/.turbo/cache/95a5e76ffd8c5110-meta.json +1 -0
- package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -0
- package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
- package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +1 -0
- package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
- package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +1 -0
- package/.turbo/cache/b22ca87b2f7f9cc2.tar.zst +0 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f.tar.zst +0 -0
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -0
- package/.turbo/cache/b6a202cc85cb61a0.tar.zst +0 -0
- package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +1 -0
- package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -0
- package/.turbo/cache/be0b95293ea517cc.tar.zst +0 -0
- package/.turbo/cache/c2b51643f886a493-meta.json +1 -0
- package/.turbo/cache/c2b51643f886a493.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -0
- package/.turbo/cache/c44efc9e4ddd8a0e.tar.zst +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -0
- package/.turbo/cache/c6c6411199b68170.tar.zst +0 -0
- package/.turbo/cache/c74d369a0475b124-meta.json +1 -0
- package/.turbo/cache/c74d369a0475b124.tar.zst +0 -0
- package/.turbo/cache/c7f5a276ddb73cf7-meta.json +1 -0
- package/.turbo/cache/c7f5a276ddb73cf7.tar.zst +0 -0
- package/.turbo/cache/c96933d40404e4c8-meta.json +1 -0
- package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c.tar.zst +0 -0
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -0
- package/.turbo/cache/d775555355d6b8fc.tar.zst +0 -0
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -0
- package/.turbo/cache/d7c3007be148d2a1.tar.zst +0 -0
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
- package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -0
- package/.turbo/cache/e62cfee068e3ef36.tar.zst +0 -0
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
- package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
- package/.turbo/cache/eb1dbe885532c1dc-meta.json +1 -0
- package/.turbo/cache/eb1dbe885532c1dc.tar.zst +0 -0
- package/.turbo/cache/f1f6744948f1b18f-meta.json +1 -0
- package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
- package/.turbo/cache/feefbc25d550c1cd-meta.json +1 -0
- package/.turbo/cache/feefbc25d550c1cd.tar.zst +0 -0
- package/.turbo/cache/ff4dbfffc29255ab-meta.json +1 -0
- package/.turbo/cache/ff4dbfffc29255ab.tar.zst +0 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +175 -0
- package/README.md +59 -59
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
- package/components/checkbox/.turbo/turbo-build.log +23 -21
- package/components/checkbox/.turbo/turbo-bundler.log +4 -4
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/checkbox/.turbo/turbo-types.log +1 -1
- package/components/checkbox/README.md +26 -34
- package/components/checkbox/demo/api.html +6 -1
- package/components/checkbox/demo/api.js +16 -0
- package/components/checkbox/demo/api.md +120 -61
- package/components/checkbox/demo/api.min.js +261 -90
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +236 -90
- package/components/checkbox/dist/auro-checkbox-group.d.ts +41 -17
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +25 -11
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +236 -90
- package/components/checkbox/package.json +1 -1
- package/components/checkbox/src/auro-checkbox-group.js +64 -23
- package/components/checkbox/src/auro-checkbox.js +38 -12
- package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
- package/components/combobox/.turbo/turbo-build.log +25 -23
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/combobox/README.md +21 -26
- package/components/combobox/demo/api.js +4 -2
- package/components/combobox/demo/api.md +77 -16
- package/components/combobox/demo/api.min.js +890 -447
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +881 -447
- package/components/combobox/dist/auro-combobox.d.ts +16 -5
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/dropdownVersion.d.ts +3 -0
- package/components/combobox/dist/dropdownVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.js +874 -408
- package/components/combobox/dist/inputVersion.d.ts +3 -0
- package/components/combobox/dist/inputVersion.d.ts.map +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +1 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +863 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +109 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +45 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +38 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +110 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +106 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +8 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +813 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +134 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +39 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +30 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +46 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +155 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +25 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +267 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +36 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +50 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +395 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +255 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +663 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +31 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +22 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +19 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +32 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +59 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +54 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +37 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +5 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +18 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +123 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +16 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +42 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +142 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +151 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +188 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +176 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +249 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +49 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +26 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +29 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +76 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +86 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +9 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +75 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +96 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +20 -0
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +13 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +293 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +115 -0
- package/components/combobox/node_modules/chalk/package.json +3 -3
- package/components/combobox/node_modules/chalk/readme.md +25 -53
- package/components/combobox/node_modules/chalk/source/index.d.ts +6 -1
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +6 -2
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +2 -2
- package/components/combobox/package.json +8 -8
- package/components/combobox/src/auro-combobox.js +85 -75
- package/components/combobox/src/dropdownVersion.js +1 -0
- package/components/combobox/src/inputVersion.js +1 -0
- package/components/counter/.turbo/turbo-build$colon$sass.log +179 -7
- package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
- package/components/counter/.turbo/turbo-build.log +288 -14
- package/components/counter/.turbo/turbo-bundler.log +4 -4
- package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/counter/.turbo/turbo-sass$colon$render.log +39 -3
- package/components/counter/.turbo/turbo-types.log +1 -1
- package/components/counter/README.md +188 -0
- package/components/counter/demo/api.md +98 -1016
- package/components/counter/demo/api.min.js +1670 -32
- package/components/counter/demo/index.js +2 -1
- package/components/counter/demo/index.md +194 -0
- package/components/counter/demo/index.min.js +1702 -19
- package/components/counter/dist/auro-counter-button.d.ts +13 -0
- package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
- package/components/counter/dist/auro-counter-group.d.ts +77 -6
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +78 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/dropdownVersion.d.ts +3 -0
- package/components/counter/dist/dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/iconVersion.d.ts +3 -0
- package/components/counter/dist/iconVersion.d.ts.map +1 -0
- package/components/counter/dist/index.js +1670 -32
- package/components/counter/dist/styles/color-css.d.ts +3 -0
- package/components/counter/dist/styles/color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/counter/package.json +9 -3
- package/components/counter/src/auro-counter-button.js +42 -0
- package/components/counter/src/auro-counter-group.js +150 -21
- package/components/counter/src/auro-counter.js +272 -12
- package/components/counter/src/dropdownVersion.js +1 -0
- package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/counter/src/iconVersion.js +1 -0
- package/components/counter/src/index.js +1 -1
- package/components/counter/src/styles/color-css.js +2 -0
- package/components/counter/src/styles/color.css +25 -0
- package/components/counter/src/styles/color.scss +44 -0
- package/components/counter/src/styles/counter-button-color-css.js +2 -0
- package/components/counter/src/styles/counter-button-color.css +14 -0
- package/components/counter/src/styles/counter-button-color.scss +29 -0
- package/components/counter/src/styles/counter-button-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens.css +7 -0
- package/components/counter/src/styles/counter-button-tokens.scss +9 -0
- package/components/counter/src/styles/counter-button.css +187 -0
- package/components/counter/src/styles/counter-button.scss +83 -0
- package/components/counter/src/styles/counter-group-color-css.js +2 -0
- package/components/counter/src/styles/counter-group-color.css +4 -0
- package/components/counter/src/styles/counter-group-color.scss +19 -0
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +13 -1
- package/components/counter/src/styles/counter-group.scss +14 -1
- package/components/counter/src/styles/style-css.js +1 -1
- package/components/counter/src/styles/style.css +43 -1
- package/components/counter/src/styles/style.scss +48 -2
- package/components/counter/src/styles/tokens-css.js +2 -0
- package/components/counter/src/styles/tokens.css +11 -0
- package/components/counter/src/styles/tokens.scss +24 -0
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +34 -34
- package/components/datepicker/.turbo/turbo-build.log +62 -59
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
- package/components/datepicker/README.md +21 -26
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +216 -125
- package/components/datepicker/demo/api.min.js +1111 -598
- package/components/datepicker/demo/index.md +1 -1
- package/components/datepicker/demo/index.min.js +1102 -598
- package/components/datepicker/dist/auro-datepicker.d.ts +94 -80
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +1102 -598
- package/components/datepicker/dist/inputVersion.d.ts +3 -0
- package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/package.json +4 -4
- package/components/datepicker/src/auro-datepicker.js +154 -106
- package/components/datepicker/src/dropdownVersion.js +1 -0
- package/components/datepicker/src/inputVersion.js +1 -0
- package/components/datepicker/src/popoverVersion.js +1 -1
- package/components/datepicker/src/styles/color-cell-css.js +1 -1
- package/components/datepicker/src/styles/color-cell.css +1 -1
- package/components/datepicker/src/styles/color-cell.scss +1 -1
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
- package/components/dropdown/.turbo/turbo-build$colon$version.log +1 -1
- package/components/dropdown/.turbo/turbo-build.log +19 -20
- package/components/dropdown/.turbo/turbo-bundler.log +4 -4
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/dropdown/.turbo/turbo-types.log +1 -1
- package/components/dropdown/README.md +18 -26
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +241 -105
- package/components/dropdown/demo/index.min.js +241 -105
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +241 -105
- package/components/dropdown/package.json +2 -2
- package/components/dropdown/src/auro-dropdown.js +156 -41
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/iconVersion.js +1 -1
- package/components/dropdown/src/styles/bibStyles-css.js +1 -1
- package/components/dropdown/src/styles/bibStyles.css +0 -5
- package/components/dropdown/src/styles/bibStyles.scss +0 -7
- package/components/dropdown/src/styles/color-css.js +1 -1
- package/components/dropdown/src/styles/color.css +6 -7
- package/components/dropdown/src/styles/color.scss +7 -7
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +5 -0
- package/components/dropdown/src/styles/style.scss +6 -0
- package/components/form/.turbo/turbo-build$colon$sass.log +6 -6
- package/components/form/.turbo/turbo-build$colon$version.log +1 -1
- package/components/form/.turbo/turbo-build.log +17 -18
- package/components/form/.turbo/turbo-bundler.log +4 -4
- package/components/form/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/form/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/form/.turbo/turbo-types.log +1 -1
- package/components/form/README.md +18 -26
- package/components/form/demo/api.min.js +4 -4
- package/components/form/demo/index.min.js +4 -4
- package/components/form/dist/index.js +4 -4
- package/components/form/package.json +1 -1
- package/components/input/.turbo/turbo-build$colon$sass.log +68 -18
- package/components/input/.turbo/turbo-build$colon$version.log +1 -1
- package/components/input/.turbo/turbo-build.log +90 -40
- package/components/input/.turbo/turbo-bundler.log +4 -4
- package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/input/.turbo/turbo-sass$colon$render.log +15 -9
- package/components/input/.turbo/turbo-types.log +1 -1
- package/components/input/README.md +18 -28
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +234 -351
- package/components/input/demo/api.min.js +428 -178
- package/components/input/demo/index.md +11 -61
- package/components/input/demo/index.min.js +416 -175
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +158 -97
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +416 -175
- package/components/input/dist/styles/mixins-css.d.ts +3 -0
- package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
- package/components/input/package.json +3 -3
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +272 -111
- package/components/input/src/buttonVersion.js +1 -1
- package/components/input/src/iconVersion.js +1 -1
- package/components/input/src/styles/borders.scss +3 -19
- package/components/input/src/styles/color.css +1 -2
- package/components/input/src/styles/color.scss +3 -10
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +14 -1
- package/components/input/src/styles/input.scss +25 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +4 -4
- package/components/input/src/styles/label.scss +4 -8
- package/components/input/src/styles/mixins-css.js +2 -0
- package/components/input/src/styles/mixins.css +1 -0
- package/components/input/src/styles/mixins.scss +45 -0
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +13 -5
- package/components/input/src/styles/notificationIcons.scss +17 -11
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +31 -13
- package/components/input/src/styles/style.scss +0 -4
- package/components/menu/.turbo/turbo-build$colon$sass.log +9 -9
- package/components/menu/.turbo/turbo-build$colon$version.log +1 -1
- package/components/menu/.turbo/turbo-build.log +20 -21
- package/components/menu/.turbo/turbo-bundler.log +4 -4
- package/components/menu/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/menu/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/menu/.turbo/turbo-types.log +1 -1
- package/components/menu/README.md +18 -26
- package/components/menu/demo/api.md +1 -5
- package/components/menu/demo/api.min.js +12 -44
- package/components/menu/demo/index.min.js +12 -44
- package/components/menu/dist/auro-menu.d.ts +1 -5
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/auro-menuoption.d.ts +0 -1
- package/components/menu/dist/auro-menuoption.d.ts.map +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +12 -44
- package/components/menu/package.json +2 -2
- package/components/menu/src/auro-menu.js +1 -33
- package/components/menu/src/auro-menuoption.js +1 -2
- package/components/menu/src/iconVersion.js +1 -1
- package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
- package/components/radio/.turbo/turbo-build.log +26 -24
- package/components/radio/.turbo/turbo-bundler.log +4 -4
- package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/radio/.turbo/turbo-types.log +1 -1
- package/components/radio/README.md +18 -26
- package/components/radio/demo/api.html +1 -0
- package/components/radio/demo/api.js +2 -0
- package/components/radio/demo/api.md +60 -4
- package/components/radio/demo/api.min.js +159 -62
- package/components/radio/demo/index.min.js +150 -62
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +5 -0
- package/components/radio/dist/auro-radio.d.ts.map +1 -1
- package/components/radio/dist/index.js +150 -62
- package/components/radio/package.json +1 -1
- package/components/radio/src/auro-radio-group.js +6 -6
- package/components/radio/src/auro-radio.js +9 -0
- package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
- package/components/select/.turbo/turbo-build.log +37 -37
- package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
- package/components/select/README.md +21 -42
- package/components/select/demo/api.js +6 -2
- package/components/select/demo/api.md +165 -163
- package/components/select/demo/api.min.js +524 -337
- package/components/select/demo/index.md +101 -59
- package/components/select/demo/index.min.js +504 -333
- package/components/select/dist/auro-select.d.ts +65 -48
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/dropdownVersion.d.ts +3 -0
- package/components/select/dist/dropdownVersion.d.ts.map +1 -0
- package/components/select/dist/index.js +494 -278
- package/components/select/package.json +3 -3
- package/components/select/src/auro-select.js +105 -116
- package/components/select/src/dropdownVersion.js +1 -0
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +21 -21
- package/packages/build-tools/src/docProcessor.mjs +37 -8
- package/packages/form-validation/src/validation.js +129 -50
- package/packages/utils/package.json +12 -0
- package/packages/utils/src/iconUtil.js +25 -0
- package/packages/utils/src/index.js +1 -0
- package/turbo.json +8 -8
- package/.turbo/cache/0008b92c8752bf75-meta.json +0 -1
- package/.turbo/cache/0008b92c8752bf75.tar.zst +0 -0
- package/.turbo/cache/00cb38bef1105dac-meta.json +0 -1
- package/.turbo/cache/00cb38bef1105dac.tar.zst +0 -0
- package/.turbo/cache/0157ec8abdaf2a9c-meta.json +0 -1
- package/.turbo/cache/0157ec8abdaf2a9c.tar.zst +0 -0
- package/.turbo/cache/0636e9cedc83238b-meta.json +0 -1
- package/.turbo/cache/0636e9cedc83238b.tar.zst +0 -0
- package/.turbo/cache/06f476671015e973-meta.json +0 -1
- package/.turbo/cache/06f476671015e973.tar.zst +0 -0
- package/.turbo/cache/09df74d672102662-meta.json +0 -1
- package/.turbo/cache/09df74d672102662.tar.zst +0 -0
- package/.turbo/cache/0cd109fb3183c2e6-meta.json +0 -1
- package/.turbo/cache/0cd109fb3183c2e6.tar.zst +0 -0
- package/.turbo/cache/17c429ade621ffcb-meta.json +0 -1
- package/.turbo/cache/17c429ade621ffcb.tar.zst +0 -0
- package/.turbo/cache/1c47128a0e12fcfa-meta.json +0 -1
- package/.turbo/cache/1c47128a0e12fcfa.tar.zst +0 -0
- package/.turbo/cache/1db02f756ce85784-meta.json +0 -1
- package/.turbo/cache/1db02f756ce85784.tar.zst +0 -0
- package/.turbo/cache/21705fa179d5f820-meta.json +0 -1
- package/.turbo/cache/21705fa179d5f820.tar.zst +0 -0
- package/.turbo/cache/249d9ba3ee6aa1cb-meta.json +0 -1
- package/.turbo/cache/249d9ba3ee6aa1cb.tar.zst +0 -0
- package/.turbo/cache/2666b96bfcf4e9cd-meta.json +0 -1
- package/.turbo/cache/2666b96bfcf4e9cd.tar.zst +0 -0
- package/.turbo/cache/2778d5e895240cd1-meta.json +0 -1
- package/.turbo/cache/2778d5e895240cd1.tar.zst +0 -0
- package/.turbo/cache/300b59df2de12b46-meta.json +0 -1
- package/.turbo/cache/300b59df2de12b46.tar.zst +0 -0
- package/.turbo/cache/31729e74fccaafb0-meta.json +0 -1
- package/.turbo/cache/31729e74fccaafb0.tar.zst +0 -0
- package/.turbo/cache/32702694d62a08ac-meta.json +0 -1
- package/.turbo/cache/32702694d62a08ac.tar.zst +0 -0
- package/.turbo/cache/3482a3cba9a51c2d-meta.json +0 -1
- package/.turbo/cache/3482a3cba9a51c2d.tar.zst +0 -0
- package/.turbo/cache/3a9d73752f23a40a-meta.json +0 -1
- package/.turbo/cache/3a9d73752f23a40a.tar.zst +0 -0
- package/.turbo/cache/3afe2e6f714a4fcb-meta.json +0 -1
- package/.turbo/cache/3afe2e6f714a4fcb.tar.zst +0 -0
- package/.turbo/cache/408ea1754276298c-meta.json +0 -1
- package/.turbo/cache/408ea1754276298c.tar.zst +0 -0
- package/.turbo/cache/42066c793c3816f3-meta.json +0 -1
- package/.turbo/cache/42066c793c3816f3.tar.zst +0 -0
- package/.turbo/cache/4bec46ffff6fd2e8-meta.json +0 -1
- package/.turbo/cache/4bec46ffff6fd2e8.tar.zst +0 -0
- package/.turbo/cache/50b275350abe14dd-meta.json +0 -1
- package/.turbo/cache/50b275350abe14dd.tar.zst +0 -0
- package/.turbo/cache/51078a087b52c65e-meta.json +0 -1
- package/.turbo/cache/51078a087b52c65e.tar.zst +0 -0
- package/.turbo/cache/593ddf689673e305-meta.json +0 -1
- package/.turbo/cache/593ddf689673e305.tar.zst +0 -0
- package/.turbo/cache/64e4f18395bd4461-meta.json +0 -1
- package/.turbo/cache/64e4f18395bd4461.tar.zst +0 -0
- package/.turbo/cache/68843ecab6e09320-meta.json +0 -1
- package/.turbo/cache/68843ecab6e09320.tar.zst +0 -0
- package/.turbo/cache/7419ef01dc18b433-meta.json +0 -1
- package/.turbo/cache/7419ef01dc18b433.tar.zst +0 -0
- package/.turbo/cache/748faca09d14fea7-meta.json +0 -1
- package/.turbo/cache/748faca09d14fea7.tar.zst +0 -0
- package/.turbo/cache/75495b0bbd6c06a7-meta.json +0 -1
- package/.turbo/cache/75495b0bbd6c06a7.tar.zst +0 -0
- package/.turbo/cache/7a6a8af4392c4b05-meta.json +0 -1
- package/.turbo/cache/7a6a8af4392c4b05.tar.zst +0 -0
- package/.turbo/cache/7e81141e0140dd3a-meta.json +0 -1
- package/.turbo/cache/7e81141e0140dd3a.tar.zst +0 -0
- package/.turbo/cache/7eb50d96639e6dd4-meta.json +0 -1
- package/.turbo/cache/7eb50d96639e6dd4.tar.zst +0 -0
- package/.turbo/cache/83bb78fec13808d0-meta.json +0 -1
- package/.turbo/cache/83bb78fec13808d0.tar.zst +0 -0
- package/.turbo/cache/8605f60efb7d3957-meta.json +0 -1
- package/.turbo/cache/8605f60efb7d3957.tar.zst +0 -0
- package/.turbo/cache/892a90b62716ded5-meta.json +0 -1
- package/.turbo/cache/892a90b62716ded5.tar.zst +0 -0
- package/.turbo/cache/8cac06ca809bd2b1-meta.json +0 -1
- package/.turbo/cache/8cac06ca809bd2b1.tar.zst +0 -0
- package/.turbo/cache/9a908bf8f82c84a6-meta.json +0 -1
- package/.turbo/cache/9a908bf8f82c84a6.tar.zst +0 -0
- package/.turbo/cache/9ed3089ffd7d0c00-meta.json +0 -1
- package/.turbo/cache/9ed3089ffd7d0c00.tar.zst +0 -0
- package/.turbo/cache/a3a879aea25debf8-meta.json +0 -1
- package/.turbo/cache/a3a879aea25debf8.tar.zst +0 -0
- package/.turbo/cache/a8dbafaf6177f677-meta.json +0 -1
- package/.turbo/cache/a8dbafaf6177f677.tar.zst +0 -0
- package/.turbo/cache/a8f6418b830ef0ba-meta.json +0 -1
- package/.turbo/cache/a8f6418b830ef0ba.tar.zst +0 -0
- package/.turbo/cache/b37b0eb5597e160f-meta.json +0 -1
- package/.turbo/cache/b37b0eb5597e160f.tar.zst +0 -0
- package/.turbo/cache/b7e7a8c425673f7c-meta.json +0 -1
- package/.turbo/cache/b7e7a8c425673f7c.tar.zst +0 -0
- package/.turbo/cache/bc8eed3d7216f5b7-meta.json +0 -1
- package/.turbo/cache/bc8eed3d7216f5b7.tar.zst +0 -0
- package/.turbo/cache/bde11c3029373459-meta.json +0 -1
- package/.turbo/cache/bde11c3029373459.tar.zst +0 -0
- package/.turbo/cache/c8e5fe6aec4479f5-meta.json +0 -1
- package/.turbo/cache/c8e5fe6aec4479f5.tar.zst +0 -0
- package/.turbo/cache/d0e874a9a71c9468-meta.json +0 -1
- package/.turbo/cache/d0e874a9a71c9468.tar.zst +0 -0
- package/.turbo/cache/d61b4e1bde4c0a12-meta.json +0 -1
- package/.turbo/cache/d61b4e1bde4c0a12.tar.zst +0 -0
- package/.turbo/cache/db6dedc0e7a12575-meta.json +0 -1
- package/.turbo/cache/db6dedc0e7a12575.tar.zst +0 -0
- package/.turbo/cache/de9737607345ec54-meta.json +0 -1
- package/.turbo/cache/de9737607345ec54.tar.zst +0 -0
- package/.turbo/cache/e234aa902b2c5b30-meta.json +0 -1
- package/.turbo/cache/e234aa902b2c5b30.tar.zst +0 -0
- package/.turbo/cache/e541225f46f7cf86-meta.json +0 -1
- package/.turbo/cache/e541225f46f7cf86.tar.zst +0 -0
- package/.turbo/cache/e67ac30b07d9e800-meta.json +0 -1
- package/.turbo/cache/e67ac30b07d9e800.tar.zst +0 -0
- package/.turbo/cache/e7244fdd3397eba7-meta.json +0 -1
- package/.turbo/cache/e7244fdd3397eba7.tar.zst +0 -0
- package/.turbo/cache/e7cf2cc625bd92b3-meta.json +0 -1
- package/.turbo/cache/e7cf2cc625bd92b3.tar.zst +0 -0
- package/.turbo/cache/e89a401ebdda3fc2-meta.json +0 -1
- package/.turbo/cache/e89a401ebdda3fc2.tar.zst +0 -0
- package/components/dropdown/dist/floatingUI.d.mts +0 -68
- package/components/dropdown/dist/floatingUI.d.mts.map +0 -1
- package/components/dropdown/src/floatingUI.mjs +0 -381
- package/components/select/demo/alertValue.js +0 -6
|
@@ -20,14 +20,14 @@ const changeLang = () => {
|
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):
|
|
23
|
+
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};
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2020 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
29
|
*/
|
|
30
|
-
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(
|
|
30
|
+
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);
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
@@ -40,20 +40,20 @@ const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2020 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=
|
|
43
|
+
*/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;}};
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
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;
|
|
50
|
+
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}});
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2018 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/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(
|
|
56
|
+
*/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}});
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
@@ -169,21 +169,21 @@ function stopNotifyingOnLangChange(element) {
|
|
|
169
169
|
* Copyright 2019 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
171
|
*/
|
|
172
|
-
const t=globalThis,e$1=t.ShadowRoot&&(
|
|
172
|
+
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;
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* @license
|
|
176
176
|
* Copyright 2017 Google LLC
|
|
177
177
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
178
|
-
*/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
|
|
178
|
+
*/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");
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* @license
|
|
182
182
|
* Copyright 2017 Google LLC
|
|
183
183
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
184
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
184
|
+
*/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");
|
|
185
185
|
|
|
186
|
-
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))}.
|
|
186
|
+
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)}`;
|
|
187
187
|
|
|
188
188
|
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)}`;
|
|
189
189
|
|
|
@@ -1826,25 +1826,111 @@ class AuroFormValidation {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
1828
1828
|
/**
|
|
1829
|
-
*
|
|
1829
|
+
* Resets the element to its initial state.
|
|
1830
1830
|
* @private
|
|
1831
|
-
* @param {object} elem - HTML element to
|
|
1831
|
+
* @param {object} elem - HTML element to reset.
|
|
1832
1832
|
* @returns {void}
|
|
1833
1833
|
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1834
|
+
reset(elem) {
|
|
1835
|
+
elem.validity = undefined;
|
|
1836
|
+
elem.value = undefined;
|
|
1837
|
+
|
|
1838
|
+
// Resets the second value of the datepicker in range state
|
|
1839
|
+
if (elem.valueEnd) {
|
|
1840
|
+
elem.valueEnd = undefined;
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
// Resets selected option of element
|
|
1844
|
+
if (elem.optionSelected) {
|
|
1845
|
+
elem.optionSelected = undefined;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
// Runs validation to handle error attribute
|
|
1849
|
+
this.validate(elem);
|
|
1850
|
+
}
|
|
1837
1851
|
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1852
|
+
/**
|
|
1853
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
1854
|
+
*
|
|
1855
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
1856
|
+
* @returns {void}
|
|
1857
|
+
*
|
|
1858
|
+
* @example
|
|
1859
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
1860
|
+
* validateElementAttributes(inputElement);
|
|
1861
|
+
*
|
|
1862
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
1863
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
1864
|
+
*
|
|
1865
|
+
* Validation rules:
|
|
1866
|
+
* - input:
|
|
1867
|
+
* - length:
|
|
1868
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
1869
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
1870
|
+
* - pattern:
|
|
1871
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
1872
|
+
* - counter:
|
|
1873
|
+
* - range:
|
|
1874
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
1875
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
1876
|
+
*/
|
|
1877
|
+
validateElementAttributes(elem) {
|
|
1878
|
+
const validationRules = {
|
|
1879
|
+
input: {
|
|
1880
|
+
length: [
|
|
1881
|
+
{
|
|
1882
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
1883
|
+
validity: 'tooShort',
|
|
1884
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
1888
|
+
validity: 'tooLong',
|
|
1889
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
1890
|
+
}
|
|
1891
|
+
],
|
|
1892
|
+
pattern: [
|
|
1893
|
+
{
|
|
1894
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
1895
|
+
validity: 'patternMismatch',
|
|
1896
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
1897
|
+
}
|
|
1898
|
+
]
|
|
1899
|
+
},
|
|
1900
|
+
counter: {
|
|
1901
|
+
range: [
|
|
1902
|
+
{
|
|
1903
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
1904
|
+
validity: 'rangeOverflow',
|
|
1905
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
1909
|
+
validity: 'rangeUnderflow',
|
|
1910
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
1911
|
+
}
|
|
1912
|
+
]
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
let elementType;
|
|
1917
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1918
|
+
elementType = 'input';
|
|
1919
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1920
|
+
elementType = 'counter';
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
if (elementType) {
|
|
1924
|
+
const rules = validationRules[elementType];
|
|
1925
|
+
|
|
1926
|
+
if (rules) {
|
|
1927
|
+
Object.values(rules).flat().forEach(rule => {
|
|
1928
|
+
if (rule.check(elem)) {
|
|
1929
|
+
elem.validity = rule.validity;
|
|
1930
|
+
elem.errorMessage = rule.message(elem);
|
|
1931
|
+
}
|
|
1932
|
+
});
|
|
1841
1933
|
}
|
|
1842
|
-
} else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
|
|
1843
|
-
elem.validity = 'tooShort';
|
|
1844
|
-
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
1845
|
-
} else if (elem.value && elem.value.length > elem.maxLength) {
|
|
1846
|
-
elem.validity = 'tooLong';
|
|
1847
|
-
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
1848
1934
|
}
|
|
1849
1935
|
}
|
|
1850
1936
|
|
|
@@ -1860,33 +1946,32 @@ class AuroFormValidation {
|
|
|
1860
1946
|
const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
|
|
1861
1947
|
|
|
1862
1948
|
if (!elem.value.match(emailRegex)) {
|
|
1863
|
-
elem.validity = '
|
|
1864
|
-
elem.
|
|
1949
|
+
elem.validity = 'patternMismatch';
|
|
1950
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
1865
1951
|
}
|
|
1866
1952
|
} else if (elem.type === 'credit-card') {
|
|
1867
1953
|
if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
|
|
1868
1954
|
elem.validity = 'tooShort';
|
|
1869
|
-
elem.
|
|
1955
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
1870
1956
|
}
|
|
1871
|
-
} else if (elem.type === 'number'
|
|
1957
|
+
} else if (elem.type === 'number') {
|
|
1872
1958
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
1873
1959
|
elem.validity = 'rangeOverflow';
|
|
1874
|
-
elem.
|
|
1960
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
1875
1961
|
}
|
|
1876
1962
|
|
|
1877
|
-
if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
|
|
1963
|
+
if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
|
|
1878
1964
|
elem.validity = 'rangeUnderflow';
|
|
1879
|
-
elem.
|
|
1965
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
1880
1966
|
}
|
|
1881
|
-
|
|
1882
1967
|
} else if (elem.type === 'month-day-year' ||
|
|
1883
1968
|
elem.type === 'month-year' ||
|
|
1884
1969
|
elem.type === 'month-fullYear' ||
|
|
1885
1970
|
elem.type === 'year-month-day'
|
|
1886
1971
|
) {
|
|
1887
|
-
if (elem.value
|
|
1972
|
+
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
1888
1973
|
elem.validity = 'tooShort';
|
|
1889
|
-
elem.
|
|
1974
|
+
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
1890
1975
|
} else {
|
|
1891
1976
|
const valueDate = new Date(elem.value);
|
|
1892
1977
|
|
|
@@ -1896,7 +1981,7 @@ class AuroFormValidation {
|
|
|
1896
1981
|
|
|
1897
1982
|
if (valueDate > maxDate) {
|
|
1898
1983
|
elem.validity = 'rangeOverflow';
|
|
1899
|
-
elem.
|
|
1984
|
+
elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
|
|
1900
1985
|
}
|
|
1901
1986
|
}
|
|
1902
1987
|
|
|
@@ -1906,7 +1991,7 @@ class AuroFormValidation {
|
|
|
1906
1991
|
|
|
1907
1992
|
if (valueDate < minDate) {
|
|
1908
1993
|
elem.validity = 'rangeUnderflow';
|
|
1909
|
-
elem.
|
|
1994
|
+
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
1910
1995
|
}
|
|
1911
1996
|
}
|
|
1912
1997
|
}
|
|
@@ -1929,10 +2014,10 @@ class AuroFormValidation {
|
|
|
1929
2014
|
|
|
1930
2015
|
if (elem.hasAttribute('error')) {
|
|
1931
2016
|
elem.validity = 'customError';
|
|
1932
|
-
elem.
|
|
2017
|
+
elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
|
|
1933
2018
|
} else if (validationShouldRun) {
|
|
1934
2019
|
elem.validity = 'valid';
|
|
1935
|
-
elem.
|
|
2020
|
+
elem.errorMessage = '';
|
|
1936
2021
|
|
|
1937
2022
|
/**
|
|
1938
2023
|
* Only validate once we interact with the datepicker
|
|
@@ -1944,7 +2029,7 @@ class AuroFormValidation {
|
|
|
1944
2029
|
let hasValue = elem.value && elem.value.length > 0;
|
|
1945
2030
|
|
|
1946
2031
|
// If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
|
|
1947
|
-
if (this.auroInputElements
|
|
2032
|
+
if (this.auroInputElements?.length === 2) {
|
|
1948
2033
|
if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
|
|
1949
2034
|
hasValue = false;
|
|
1950
2035
|
}
|
|
@@ -1952,35 +2037,29 @@ class AuroFormValidation {
|
|
|
1952
2037
|
|
|
1953
2038
|
if (!hasValue && elem.required) {
|
|
1954
2039
|
elem.validity = 'valueMissing';
|
|
1955
|
-
elem.
|
|
2040
|
+
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1956
2041
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1957
2042
|
this.validateType(elem);
|
|
1958
|
-
this.
|
|
2043
|
+
this.validateElementAttributes(elem);
|
|
2044
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
2045
|
+
this.validateElementAttributes(elem);
|
|
1959
2046
|
}
|
|
1960
2047
|
}
|
|
1961
2048
|
|
|
1962
|
-
if (this.auroInputElements
|
|
2049
|
+
if (this.auroInputElements?.length > 0) {
|
|
1963
2050
|
elem.validity = this.auroInputElements[0].validity;
|
|
1964
|
-
elem.
|
|
2051
|
+
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
1965
2052
|
|
|
1966
|
-
if (elem.validity === 'valid') {
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
|
|
1970
|
-
}
|
|
2053
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
|
|
2054
|
+
elem.validity = this.auroInputElements[1].validity;
|
|
2055
|
+
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
1971
2056
|
}
|
|
1972
2057
|
}
|
|
1973
2058
|
|
|
1974
2059
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
// Use the validity message override if it is declared
|
|
1979
|
-
if (elem.ValidityMessageOverride) {
|
|
1980
|
-
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
1981
|
-
}
|
|
1982
|
-
} else {
|
|
1983
|
-
elem.isValid = true;
|
|
2060
|
+
// Use the validity message override if it is declared
|
|
2061
|
+
if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
|
|
2062
|
+
elem.errorMessage = elem.ValidityMessageOverride;
|
|
1984
2063
|
}
|
|
1985
2064
|
|
|
1986
2065
|
this.getErrorMessage(elem);
|
|
@@ -2026,18 +2105,18 @@ class AuroFormValidation {
|
|
|
2026
2105
|
if (elem.validity !== 'valid') {
|
|
2027
2106
|
if (elem.setCustomValidity) {
|
|
2028
2107
|
elem.errorMessage = elem.setCustomValidity;
|
|
2029
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
2108
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
2030
2109
|
const input = elem.renderRoot.querySelector('input');
|
|
2031
2110
|
|
|
2032
2111
|
if (input.validationMessage.length > 0) {
|
|
2033
2112
|
elem.errorMessage = input.validationMessage;
|
|
2034
2113
|
}
|
|
2035
|
-
} else if (this.inputElements &&
|
|
2114
|
+
} else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
|
|
2036
2115
|
const firstInput = this.inputElements[0];
|
|
2037
2116
|
|
|
2038
2117
|
if (firstInput.validationMessage.length > 0) {
|
|
2039
2118
|
elem.errorMessage = firstInput.validationMessage;
|
|
2040
|
-
} else if (this.inputElements
|
|
2119
|
+
} else if (this.inputElements?.length === 2) {
|
|
2041
2120
|
const secondInput = this.inputElements[1];
|
|
2042
2121
|
|
|
2043
2122
|
if (secondInput.validationMessage.length > 0) {
|
|
@@ -2058,45 +2137,8 @@ class AuroFormValidation {
|
|
|
2058
2137
|
/**
|
|
2059
2138
|
* Auro-input provides users a way to enter data into a text field.
|
|
2060
2139
|
*
|
|
2061
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
2062
|
-
* @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]
|
|
2063
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2064
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
2065
2140
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
2066
2141
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
2067
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
2068
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
2069
|
-
* @prop {String} errorMessage - Contains the help text message for the current validity error.
|
|
2070
|
-
* @attr {String} helpText - Deprecated, see `slot`.
|
|
2071
|
-
* @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.
|
|
2072
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
2073
|
-
* @attr {String} isValid - (DEPRECATED - Please use validity) Can be accessed to determine if the input validity. Returns true when validity has not yet been checked or validity = 'valid', all other cases return false. Not intended to be set by the consumer.
|
|
2074
|
-
* @attr {String} label - Deprecated, see `slot`.
|
|
2075
|
-
* @attr {String} lang - defines the language of an element.
|
|
2076
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `numeric` and all date formats.
|
|
2077
|
-
* @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.
|
|
2078
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `numeric` and all date formats.
|
|
2079
|
-
* @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`.
|
|
2080
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
2081
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
2082
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
2083
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
2084
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
2085
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
2086
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
2087
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
2088
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
2089
|
-
* @attr {String} setCustomValidityBadInput - Custom help text message to display when validity = `badInput`.
|
|
2090
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
2091
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
2092
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
2093
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
2094
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
2095
|
-
* @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`.
|
|
2096
|
-
* @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`.
|
|
2097
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
2098
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
2099
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2100
2142
|
*
|
|
2101
2143
|
* @slot helptext - Sets the help text displayed below the input.
|
|
2102
2144
|
* @slot label - Sets the label text for the input.
|
|
@@ -2115,8 +2157,6 @@ class BaseInput extends r {
|
|
|
2115
2157
|
constructor() {
|
|
2116
2158
|
super();
|
|
2117
2159
|
|
|
2118
|
-
this.isValid = false;
|
|
2119
|
-
|
|
2120
2160
|
this.icon = false;
|
|
2121
2161
|
this.disabled = false;
|
|
2122
2162
|
this.required = false;
|
|
@@ -2125,9 +2165,7 @@ class BaseInput extends r {
|
|
|
2125
2165
|
this.min = undefined;
|
|
2126
2166
|
this.maxLength = undefined;
|
|
2127
2167
|
this.minLength = undefined;
|
|
2128
|
-
this.label = 'Input label is undefined';
|
|
2129
2168
|
this.activeLabel = false;
|
|
2130
|
-
|
|
2131
2169
|
this.setCustomValidityForType = undefined;
|
|
2132
2170
|
}
|
|
2133
2171
|
|
|
@@ -2142,9 +2180,11 @@ class BaseInput extends r {
|
|
|
2142
2180
|
this.showPassword = false;
|
|
2143
2181
|
this.validationCCLength = undefined;
|
|
2144
2182
|
this.hasValue = false;
|
|
2183
|
+
this.label = 'Input label is undefined';
|
|
2145
2184
|
|
|
2146
2185
|
this.allowedInputTypes = [
|
|
2147
2186
|
"text",
|
|
2187
|
+
"number",
|
|
2148
2188
|
"email",
|
|
2149
2189
|
"password",
|
|
2150
2190
|
"credit-card",
|
|
@@ -2190,77 +2230,272 @@ class BaseInput extends r {
|
|
|
2190
2230
|
.substring(idSubstrStart, idSubstrEnd);
|
|
2191
2231
|
}
|
|
2192
2232
|
|
|
2193
|
-
// function to define props used within the scope of this
|
|
2233
|
+
// function to define props used within the scope of this componentstatic
|
|
2194
2234
|
static get properties() {
|
|
2195
2235
|
return {
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
lang: { type: String },
|
|
2203
|
-
pattern: {
|
|
2204
|
-
type: String,
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* If set, the label will remain fixed in the active position.
|
|
2239
|
+
*/
|
|
2240
|
+
activeLabel: {
|
|
2241
|
+
type: Boolean,
|
|
2205
2242
|
reflect: true
|
|
2206
2243
|
},
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* 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]
|
|
2247
|
+
*/
|
|
2248
|
+
autocapitalize: {
|
|
2249
|
+
type: String
|
|
2250
|
+
},
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2254
|
+
*/
|
|
2255
|
+
autocomplete: {
|
|
2216
2256
|
type: String,
|
|
2217
2257
|
reflect: true
|
|
2218
2258
|
},
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
2262
|
+
*/
|
|
2263
|
+
autocorrect: {
|
|
2264
|
+
type: String
|
|
2223
2265
|
},
|
|
2224
|
-
max: { type: String },
|
|
2225
|
-
min: { type: String },
|
|
2226
|
-
maxLength: { type: Number },
|
|
2227
|
-
minLength: { type: Number },
|
|
2228
2266
|
|
|
2229
2267
|
/**
|
|
2230
|
-
*
|
|
2268
|
+
* If set, disables the input.
|
|
2231
2269
|
*/
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2270
|
+
disabled: {
|
|
2271
|
+
type: Boolean
|
|
2272
|
+
},
|
|
2273
|
+
|
|
2274
|
+
error: {
|
|
2236
2275
|
type: String,
|
|
2237
2276
|
reflect: true
|
|
2238
2277
|
},
|
|
2239
|
-
|
|
2240
|
-
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* Contains the help text message for the current validity error.
|
|
2281
|
+
*/
|
|
2282
|
+
errorMessage: {
|
|
2283
|
+
type: String
|
|
2284
|
+
},
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* 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.
|
|
2288
|
+
*/
|
|
2289
|
+
icon: {
|
|
2290
|
+
type: Boolean
|
|
2291
|
+
},
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* Sets the unique ID of the element.
|
|
2295
|
+
*/
|
|
2296
|
+
id: {
|
|
2297
|
+
type: String
|
|
2298
|
+
},
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Defines the language of an element.
|
|
2302
|
+
*/
|
|
2303
|
+
lang: {
|
|
2304
|
+
type: String
|
|
2305
|
+
},
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2309
|
+
*/
|
|
2310
|
+
max: {
|
|
2311
|
+
type: String
|
|
2312
|
+
},
|
|
2313
|
+
|
|
2314
|
+
/**
|
|
2315
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2316
|
+
*/
|
|
2317
|
+
maxLength: {
|
|
2318
|
+
type: Number
|
|
2319
|
+
},
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2323
|
+
*/
|
|
2324
|
+
min: {
|
|
2325
|
+
type: String
|
|
2326
|
+
},
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* 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`.
|
|
2330
|
+
*/
|
|
2331
|
+
minLength: {
|
|
2332
|
+
type: Number
|
|
2333
|
+
},
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Populates the `name` attribute on the input.
|
|
2337
|
+
*/
|
|
2338
|
+
name: {
|
|
2339
|
+
type: String
|
|
2340
|
+
},
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* If set, disables auto-validation on blur.
|
|
2344
|
+
*/
|
|
2345
|
+
noValidate: {
|
|
2346
|
+
type: Boolean
|
|
2347
|
+
},
|
|
2348
|
+
|
|
2349
|
+
/**
|
|
2350
|
+
* Specifies a regular expression the form control's value should match.
|
|
2351
|
+
*/
|
|
2352
|
+
pattern: {
|
|
2241
2353
|
type: String,
|
|
2242
2354
|
reflect: true
|
|
2243
2355
|
},
|
|
2244
|
-
|
|
2356
|
+
|
|
2357
|
+
/**
|
|
2358
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
2359
|
+
*/
|
|
2360
|
+
placeholder: {
|
|
2361
|
+
type: String
|
|
2362
|
+
},
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* Makes the input read-only, but can be set programmatically.
|
|
2366
|
+
*/
|
|
2367
|
+
readonly: {
|
|
2368
|
+
type: Boolean
|
|
2369
|
+
},
|
|
2370
|
+
|
|
2371
|
+
/**
|
|
2372
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
2373
|
+
*/
|
|
2374
|
+
required: {
|
|
2375
|
+
type: Boolean
|
|
2376
|
+
},
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* @ignore
|
|
2380
|
+
*/
|
|
2381
|
+
showPassword: {
|
|
2382
|
+
state: true
|
|
2383
|
+
},
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* Sets a custom help text message to display for all validityStates.
|
|
2387
|
+
*/
|
|
2388
|
+
setCustomValidity: {
|
|
2389
|
+
type: String
|
|
2390
|
+
},
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* Custom help text message to display when validity = `badInput`.
|
|
2394
|
+
*/
|
|
2395
|
+
setCustomValidityBadInput: {
|
|
2396
|
+
type: String
|
|
2397
|
+
},
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* Custom help text message to display when validity = `customError`.
|
|
2401
|
+
*/
|
|
2402
|
+
setCustomValidityCustomError: {
|
|
2403
|
+
type: String
|
|
2404
|
+
},
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
2408
|
+
*/
|
|
2409
|
+
setCustomValidityForType: {
|
|
2410
|
+
type: String
|
|
2411
|
+
},
|
|
2412
|
+
|
|
2413
|
+
/**
|
|
2414
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
2415
|
+
*/
|
|
2416
|
+
setCustomValidityRangeOverflow: {
|
|
2417
|
+
type: String
|
|
2418
|
+
},
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
2422
|
+
*/
|
|
2423
|
+
setCustomValidityRangeUnderflow: {
|
|
2424
|
+
type: String
|
|
2425
|
+
},
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
2429
|
+
*/
|
|
2430
|
+
setCustomValidityTooLong: {
|
|
2431
|
+
type: String
|
|
2432
|
+
},
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
2436
|
+
*/
|
|
2437
|
+
setCustomValidityTooShort: {
|
|
2438
|
+
type: String
|
|
2439
|
+
},
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
2443
|
+
*/
|
|
2444
|
+
setCustomValidityValueMissing: {
|
|
2445
|
+
type: String
|
|
2446
|
+
},
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Custom help text message for email type validity.
|
|
2450
|
+
*/
|
|
2451
|
+
customValidityTypeEmail: {
|
|
2452
|
+
type: String
|
|
2453
|
+
},
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* 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`.
|
|
2457
|
+
*/
|
|
2458
|
+
spellcheck: {
|
|
2459
|
+
type: String
|
|
2460
|
+
},
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* 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`.
|
|
2464
|
+
*/
|
|
2465
|
+
type: {
|
|
2245
2466
|
type: String,
|
|
2246
2467
|
reflect: true
|
|
2247
2468
|
},
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2472
|
+
*/
|
|
2473
|
+
value: {
|
|
2474
|
+
type: String
|
|
2475
|
+
},
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Sets validation mode to re-eval with each input.
|
|
2479
|
+
*/
|
|
2480
|
+
validateOnInput: {
|
|
2481
|
+
type: Boolean
|
|
2482
|
+
},
|
|
2483
|
+
|
|
2484
|
+
/**
|
|
2485
|
+
* Specifies the `validityState` this element is in.
|
|
2486
|
+
*/
|
|
2487
|
+
validity: {
|
|
2488
|
+
type: String,
|
|
2489
|
+
reflect: true
|
|
2490
|
+
}
|
|
2257
2491
|
};
|
|
2258
2492
|
}
|
|
2259
2493
|
|
|
2494
|
+
|
|
2260
2495
|
static get styles() {
|
|
2261
2496
|
return [
|
|
2262
|
-
i$2`${styleCss$3}`,
|
|
2263
2497
|
i$2`${colorCss$3}`,
|
|
2498
|
+
i$2`${styleCss$3}`,
|
|
2264
2499
|
i$2`${tokensCss$3}`
|
|
2265
2500
|
];
|
|
2266
2501
|
}
|
|
@@ -2643,7 +2878,7 @@ class BaseInput extends r {
|
|
|
2643
2878
|
* @return {void}
|
|
2644
2879
|
*/
|
|
2645
2880
|
handleInput() {
|
|
2646
|
-
// Prevent non-
|
|
2881
|
+
// Prevent non-number characters from being entered on credit card fields.
|
|
2647
2882
|
if (this.type === 'credit-card') {
|
|
2648
2883
|
this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
|
|
2649
2884
|
}
|
|
@@ -2729,6 +2964,13 @@ class BaseInput extends r {
|
|
|
2729
2964
|
this.validation.validate(this);
|
|
2730
2965
|
}
|
|
2731
2966
|
|
|
2967
|
+
/**
|
|
2968
|
+
* Resets component to initial state.
|
|
2969
|
+
* @returns {void}
|
|
2970
|
+
*/
|
|
2971
|
+
reset() {
|
|
2972
|
+
this.validation.reset(this);
|
|
2973
|
+
}
|
|
2732
2974
|
|
|
2733
2975
|
/**
|
|
2734
2976
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
@@ -2771,30 +3013,28 @@ class BaseInput extends r {
|
|
|
2771
3013
|
*/
|
|
2772
3014
|
getHelpText(type) {
|
|
2773
3015
|
if (type === 'password') {
|
|
2774
|
-
|
|
3016
|
+
return i18n(this.lang, 'password');
|
|
2775
3017
|
} else if (type === 'email') {
|
|
2776
|
-
|
|
3018
|
+
return i18n(this.lang, 'email');
|
|
2777
3019
|
} else if (type === 'credit-card') {
|
|
2778
|
-
|
|
3020
|
+
return i18n(this.lang, 'creditcard');
|
|
2779
3021
|
} else if (type === 'month-day-year') {
|
|
2780
|
-
|
|
3022
|
+
return i18n(this.lang, 'dateMMDDYYYY');
|
|
2781
3023
|
} else if (type === 'month-year') {
|
|
2782
|
-
|
|
3024
|
+
return i18n(this.lang, 'dateMMYY');
|
|
2783
3025
|
} else if (type === 'month-fullyear') {
|
|
2784
|
-
|
|
3026
|
+
return i18n(this.lang, 'dateMMYYYY');
|
|
2785
3027
|
} else if (type === 'year-month-day') {
|
|
2786
|
-
|
|
3028
|
+
return i18n(this.lang, 'dateYYYYMMDD');
|
|
2787
3029
|
} else if (type === 'month') {
|
|
2788
|
-
|
|
3030
|
+
return i18n(this.lang, 'dateMM');
|
|
2789
3031
|
} else if (type === 'year') {
|
|
2790
|
-
|
|
3032
|
+
return i18n(this.lang, 'dateYY');
|
|
2791
3033
|
} else if (type === 'fullYear') {
|
|
2792
|
-
|
|
2793
|
-
} else {
|
|
2794
|
-
this.helpText = '';
|
|
3034
|
+
return i18n(this.lang, 'dateYYYY');
|
|
2795
3035
|
}
|
|
2796
3036
|
|
|
2797
|
-
return
|
|
3037
|
+
return '';
|
|
2798
3038
|
}
|
|
2799
3039
|
|
|
2800
3040
|
/**
|
|
@@ -2876,7 +3116,7 @@ class BaseInput extends r {
|
|
|
2876
3116
|
this.maxLength = card.formatLength;
|
|
2877
3117
|
this.minLength = card.formatMinLength;
|
|
2878
3118
|
|
|
2879
|
-
this.
|
|
3119
|
+
this.errorMessage = card.errorMessage;
|
|
2880
3120
|
|
|
2881
3121
|
if (this.icon) {
|
|
2882
3122
|
this.inputIconName = card.cardIcon;
|
|
@@ -2896,63 +3136,63 @@ class BaseInput extends r {
|
|
|
2896
3136
|
name: 'Airlines',
|
|
2897
3137
|
regex: /^(?<num>1|2)\d{0}/u,
|
|
2898
3138
|
formatMinLength: 17,
|
|
2899
|
-
|
|
3139
|
+
errorMessage: CreditCardValidationMessage,
|
|
2900
3140
|
cardIcon: 'credit-card'
|
|
2901
3141
|
},
|
|
2902
3142
|
{
|
|
2903
3143
|
name: 'Commercial',
|
|
2904
3144
|
regex: /^(?<num>2)\d{0}/u,
|
|
2905
3145
|
formatMinLength: 8,
|
|
2906
|
-
|
|
3146
|
+
errorMessage: CreditCardValidationMessage,
|
|
2907
3147
|
cardIcon: 'credit-card'
|
|
2908
3148
|
},
|
|
2909
3149
|
{
|
|
2910
3150
|
name: 'Alaska Commercial',
|
|
2911
3151
|
regex: /^(?<num>27)\d{0}/u,
|
|
2912
3152
|
formatMinLength: 8,
|
|
2913
|
-
|
|
3153
|
+
errorMessage: CreditCardValidationMessage,
|
|
2914
3154
|
cardIcon: 'cc-alaska'
|
|
2915
3155
|
},
|
|
2916
3156
|
{
|
|
2917
3157
|
name: 'American Express',
|
|
2918
3158
|
regex: /^(?<num>34|37)\d{0}/u,
|
|
2919
3159
|
formatLength: 17,
|
|
2920
|
-
|
|
3160
|
+
errorMessage: CreditCardValidationMessage,
|
|
2921
3161
|
cardIcon: 'cc-amex'
|
|
2922
3162
|
},
|
|
2923
3163
|
{
|
|
2924
3164
|
name: 'Diners club',
|
|
2925
3165
|
regex: /^(?<num>36|38)\d{0}/u,
|
|
2926
3166
|
formatLength: 16,
|
|
2927
|
-
|
|
3167
|
+
errorMessage: CreditCardValidationMessage,
|
|
2928
3168
|
cardIcon: 'credit-card'
|
|
2929
3169
|
},
|
|
2930
3170
|
{
|
|
2931
3171
|
name: 'Visa',
|
|
2932
3172
|
regex: /^(?<num>4)\d{0}/u,
|
|
2933
3173
|
formatLength: 19,
|
|
2934
|
-
|
|
3174
|
+
errorMessage: CreditCardValidationMessage,
|
|
2935
3175
|
cardIcon: 'cc-visa'
|
|
2936
3176
|
},
|
|
2937
3177
|
{
|
|
2938
3178
|
name: 'Alaska Airlines Visa',
|
|
2939
3179
|
regex: /^(?<num>4147\s34|4888\s93|4800\s11|4313\s51|4313\s07)\d{0}/u,
|
|
2940
3180
|
formatLength: 19,
|
|
2941
|
-
|
|
3181
|
+
errorMessage: CreditCardValidationMessage,
|
|
2942
3182
|
cardIcon: 'cc-alaska'
|
|
2943
3183
|
},
|
|
2944
3184
|
{
|
|
2945
3185
|
name: 'Master Card',
|
|
2946
3186
|
regex: /^(?<num>5)\d{0}/u,
|
|
2947
3187
|
formatLength: 19,
|
|
2948
|
-
|
|
3188
|
+
errorMessage: CreditCardValidationMessage,
|
|
2949
3189
|
cardIcon: 'cc-mastercard'
|
|
2950
3190
|
},
|
|
2951
3191
|
{
|
|
2952
3192
|
name: 'Discover Card',
|
|
2953
3193
|
regex: /^(?<num>6)\d{0}/u,
|
|
2954
3194
|
formatLength: 19,
|
|
2955
|
-
|
|
3195
|
+
errorMessage: CreditCardValidationMessage,
|
|
2956
3196
|
cardIcon: 'cc-discover'
|
|
2957
3197
|
}
|
|
2958
3198
|
];
|
|
@@ -2960,7 +3200,7 @@ class BaseInput extends r {
|
|
|
2960
3200
|
let type = {
|
|
2961
3201
|
name: 'Default Card',
|
|
2962
3202
|
formatLength: 19,
|
|
2963
|
-
|
|
3203
|
+
errorMessage: CreditCardValidationMessage,
|
|
2964
3204
|
cardIcon: 'credit-card'
|
|
2965
3205
|
};
|
|
2966
3206
|
|
|
@@ -3082,7 +3322,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
3082
3322
|
return _fetchMap.get(uri);
|
|
3083
3323
|
};
|
|
3084
3324
|
|
|
3085
|
-
var styleCss$2 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.labelContainer{line-height:1.8}`;
|
|
3325
|
+
var styleCss$2 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
3086
3326
|
|
|
3087
3327
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3088
3328
|
// See LICENSE in the project root for license information.
|
|
@@ -3349,7 +3589,8 @@ class AuroIcon extends BaseIcon {
|
|
|
3349
3589
|
};
|
|
3350
3590
|
|
|
3351
3591
|
const classes = {
|
|
3352
|
-
'label': this.label
|
|
3592
|
+
'label': this.label,
|
|
3593
|
+
'wrapper': true,
|
|
3353
3594
|
};
|
|
3354
3595
|
|
|
3355
3596
|
return x`
|
|
@@ -3373,7 +3614,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3373
3614
|
}
|
|
3374
3615
|
}
|
|
3375
3616
|
|
|
3376
|
-
var iconVersion = '6.1.
|
|
3617
|
+
var iconVersion = '6.1.2';
|
|
3377
3618
|
|
|
3378
3619
|
var styleCss$1 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
3379
3620
|
|
|
@@ -3725,6 +3966,7 @@ class AuroButton extends r {
|
|
|
3725
3966
|
const classes = {
|
|
3726
3967
|
'util_insetLg--squish': true,
|
|
3727
3968
|
'auro-button': true,
|
|
3969
|
+
'auroButton': true,
|
|
3728
3970
|
'auro-button--rounded': this.rounded,
|
|
3729
3971
|
'auro-button--slim': this.slim,
|
|
3730
3972
|
'auro-button--iconOnly': this.iconOnly,
|
|
@@ -3764,7 +4006,7 @@ class AuroButton extends r {
|
|
|
3764
4006
|
}
|
|
3765
4007
|
}
|
|
3766
4008
|
|
|
3767
|
-
var buttonVersion = '8.2.
|
|
4009
|
+
var buttonVersion = '8.2.2';
|
|
3768
4010
|
|
|
3769
4011
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3770
4012
|
// See LICENSE in the project root for license information.
|
|
@@ -3983,7 +4225,6 @@ class AuroInput extends BaseInput {
|
|
|
3983
4225
|
<p class="inputElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
3984
4226
|
${this.errorMessage}
|
|
3985
4227
|
</p>`
|
|
3986
|
-
|
|
3987
4228
|
}
|
|
3988
4229
|
`;
|
|
3989
4230
|
}
|