@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.31
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/0b59b3b61897d950-meta.json +1 -0
- package/.turbo/cache/0b59b3b61897d950.tar.zst +0 -0
- package/.turbo/cache/1215c5e3dd25e0c3-meta.json +1 -0
- package/.turbo/cache/1215c5e3dd25e0c3.tar.zst +0 -0
- package/.turbo/cache/13ff0d757be18ae9-meta.json +1 -0
- package/.turbo/cache/13ff0d757be18ae9.tar.zst +0 -0
- package/.turbo/cache/1b653bcfa2eef748-meta.json +1 -0
- package/.turbo/cache/1b653bcfa2eef748.tar.zst +0 -0
- package/.turbo/cache/1d4280429ff4222f-meta.json +1 -0
- package/.turbo/cache/1d4280429ff4222f.tar.zst +0 -0
- package/.turbo/cache/1e094164b4932553-meta.json +1 -0
- package/.turbo/cache/1e094164b4932553.tar.zst +0 -0
- package/.turbo/cache/24cb18ffa2f611b1-meta.json +1 -0
- package/.turbo/cache/24cb18ffa2f611b1.tar.zst +0 -0
- package/.turbo/cache/251ba344c6338ba3-meta.json +1 -0
- package/.turbo/cache/251ba344c6338ba3.tar.zst +0 -0
- package/.turbo/cache/298b6ff0272e6226-meta.json +1 -0
- package/.turbo/cache/298b6ff0272e6226.tar.zst +0 -0
- package/.turbo/cache/2abb5400a01a1694-meta.json +1 -0
- package/.turbo/cache/2abb5400a01a1694.tar.zst +0 -0
- package/.turbo/cache/30fda91ef83677e4-meta.json +1 -0
- package/.turbo/cache/30fda91ef83677e4.tar.zst +0 -0
- package/.turbo/cache/3221d91a94756c26-meta.json +1 -0
- package/.turbo/cache/3221d91a94756c26.tar.zst +0 -0
- package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -0
- package/.turbo/cache/3ab09fe7cf32b3bf.tar.zst +0 -0
- package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -0
- package/.turbo/cache/3f1b3db13386acdc.tar.zst +0 -0
- package/.turbo/cache/430c124614841675-meta.json +1 -0
- package/.turbo/cache/430c124614841675.tar.zst +0 -0
- package/.turbo/cache/45bdeb0396723b25-meta.json +1 -0
- package/.turbo/cache/45bdeb0396723b25.tar.zst +0 -0
- package/.turbo/cache/4e8248fc9e1e3e8f-meta.json +1 -0
- package/.turbo/cache/4e8248fc9e1e3e8f.tar.zst +0 -0
- package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -0
- package/.turbo/cache/4e9c9a5dd62c50a4.tar.zst +0 -0
- package/.turbo/cache/4f81392ada08f240-meta.json +1 -0
- package/.turbo/cache/4f81392ada08f240.tar.zst +0 -0
- package/.turbo/cache/5326b73ddda05291-meta.json +1 -0
- package/.turbo/cache/5326b73ddda05291.tar.zst +0 -0
- package/.turbo/cache/59481fd7f6f355ed-meta.json +1 -0
- package/.turbo/cache/59481fd7f6f355ed.tar.zst +0 -0
- package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -0
- package/.turbo/cache/5fc9a7a072827b7b.tar.zst +0 -0
- package/.turbo/cache/62214e9883afcc4d-meta.json +1 -0
- package/.turbo/cache/62214e9883afcc4d.tar.zst +0 -0
- package/.turbo/cache/6e0b3da6e3ff3718-meta.json +1 -0
- package/.turbo/cache/6e0b3da6e3ff3718.tar.zst +0 -0
- package/.turbo/cache/753b119a389426be-meta.json +1 -0
- package/.turbo/cache/753b119a389426be.tar.zst +0 -0
- package/.turbo/cache/79c16437b6eb7e44-meta.json +1 -0
- package/.turbo/cache/79c16437b6eb7e44.tar.zst +0 -0
- package/.turbo/cache/8388331cc15d7fd2-meta.json +1 -0
- package/.turbo/cache/8388331cc15d7fd2.tar.zst +0 -0
- package/.turbo/cache/8c637a8d4c2166c5-meta.json +1 -0
- package/.turbo/cache/8c637a8d4c2166c5.tar.zst +0 -0
- package/.turbo/cache/8f94ccea023ee254-meta.json +1 -0
- package/.turbo/cache/8f94ccea023ee254.tar.zst +0 -0
- package/.turbo/cache/92b4b6ba93458685-meta.json +1 -0
- package/.turbo/cache/92b4b6ba93458685.tar.zst +0 -0
- package/.turbo/cache/9337429c745d33f9-meta.json +1 -0
- package/.turbo/cache/9337429c745d33f9.tar.zst +0 -0
- package/.turbo/cache/a5717ca784f036bc-meta.json +1 -0
- package/.turbo/cache/a5717ca784f036bc.tar.zst +0 -0
- package/.turbo/cache/a7dea1f1ae1fdc27-meta.json +1 -0
- package/.turbo/cache/a7dea1f1ae1fdc27.tar.zst +0 -0
- package/.turbo/cache/abfc52db26c84ceb-meta.json +1 -0
- package/.turbo/cache/abfc52db26c84ceb.tar.zst +0 -0
- package/.turbo/cache/b169402fda42f218-meta.json +1 -0
- package/.turbo/cache/b169402fda42f218.tar.zst +0 -0
- package/.turbo/cache/b7aefb222b98306d-meta.json +1 -0
- package/.turbo/cache/b7aefb222b98306d.tar.zst +0 -0
- package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -0
- package/.turbo/cache/bf3d1eace5e676f9.tar.zst +0 -0
- package/.turbo/cache/c13e85d809af02f6-meta.json +1 -0
- package/.turbo/cache/c13e85d809af02f6.tar.zst +0 -0
- package/.turbo/cache/c860cecd25be20af-meta.json +1 -0
- package/.turbo/cache/c860cecd25be20af.tar.zst +0 -0
- package/.turbo/cache/c89150633a136dc8-meta.json +1 -0
- package/.turbo/cache/c89150633a136dc8.tar.zst +0 -0
- package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -0
- package/.turbo/cache/cbcd9db8ac9a2d52.tar.zst +0 -0
- package/.turbo/cache/cdb0e45299352fce-meta.json +1 -0
- package/.turbo/cache/cdb0e45299352fce.tar.zst +0 -0
- package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -0
- package/.turbo/cache/d3afdb9a7db9eacc.tar.zst +0 -0
- package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -0
- package/.turbo/cache/d8ecdff9c663c38e.tar.zst +0 -0
- package/.turbo/cache/de494df6a3006101-meta.json +1 -0
- package/.turbo/cache/de494df6a3006101.tar.zst +0 -0
- package/.turbo/cache/df379f765f10ec9c-meta.json +1 -0
- package/.turbo/cache/df379f765f10ec9c.tar.zst +0 -0
- package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -0
- package/.turbo/cache/e56a9865641ec3e8.tar.zst +0 -0
- package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -0
- package/.turbo/cache/e7ed9e7056d80938.tar.zst +0 -0
- package/.turbo/cache/e837827cd24834c4-meta.json +1 -0
- package/.turbo/cache/e837827cd24834c4.tar.zst +0 -0
- package/.turbo/cache/e95b9e3b7f35e801-meta.json +1 -0
- package/.turbo/cache/e95b9e3b7f35e801.tar.zst +0 -0
- package/.turbo/cache/e9ff93179777aa26-meta.json +1 -0
- package/.turbo/cache/e9ff93179777aa26.tar.zst +0 -0
- package/.turbo/cache/f2e689c8cdd1aafe-meta.json +1 -0
- package/.turbo/cache/f2e689c8cdd1aafe.tar.zst +0 -0
- package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -0
- package/.turbo/cache/f7ab9a13f9acc0ab.tar.zst +0 -0
- package/.turbo/cache/fb3845d2ca66fee8-meta.json +1 -0
- package/.turbo/cache/fb3845d2ca66fee8.tar.zst +0 -0
- package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -0
- package/.turbo/cache/ff3c8a3042cab66e.tar.zst +0 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +283 -0
- package/README.md +59 -59
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
- package/components/checkbox/.turbo/turbo-build.log +20 -21
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/checkbox/README.md +26 -34
- package/components/checkbox/demo/api.md +67 -68
- package/components/checkbox/demo/api.min.js +429 -89
- package/components/checkbox/demo/index.md +62 -62
- package/components/checkbox/demo/index.min.js +429 -89
- package/components/checkbox/dist/auro-checkbox-group.d.ts +40 -16
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +19 -6
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +429 -89
- package/components/checkbox/package.json +4 -3
- package/components/checkbox/src/auro-checkbox-group.js +62 -23
- package/components/checkbox/src/auro-checkbox.js +30 -9
- package/components/checkbox/src/styles/colorGroup-css.js +1 -1
- package/components/checkbox/src/styles/colorGroup.css +0 -8
- package/components/checkbox/src/styles/colorGroup.scss +0 -8
- package/components/checkbox/src/styles/tokens-css.js +1 -1
- package/components/checkbox/src/styles/tokens.css +0 -1
- package/components/checkbox/src/styles/tokens.scss +0 -1
- package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
- package/components/combobox/.turbo/turbo-build.log +22 -23
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
- package/components/combobox/README.md +23 -28
- package/components/combobox/demo/api.md +27 -25
- package/components/combobox/demo/api.min.js +3681 -943
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +3678 -940
- package/components/combobox/dist/auro-combobox.d.ts +74 -79
- 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 +3047 -623
- 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 +11 -12
- package/components/combobox/src/auro-combobox.js +215 -159
- 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 +210 -7
- package/components/{input → counter}/.turbo/turbo-build$colon$version.log +5 -5
- package/components/counter/.turbo/turbo-build.log +329 -14
- package/components/counter/.turbo/turbo-bundler.log +13 -4
- package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/counter/.turbo/turbo-sass$colon$render.log +45 -3
- package/components/counter/.turbo/turbo-types.log +1 -1
- package/components/counter/README.md +188 -0
- package/components/counter/demo/api.md +107 -1014
- package/components/counter/demo/api.min.js +4999 -36
- package/components/counter/demo/index.js +2 -1
- package/components/counter/demo/index.md +292 -0
- package/components/counter/demo/index.min.js +5027 -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 +115 -5
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter-wrapper.d.ts +23 -0
- package/components/counter/dist/auro-counter-wrapper.d.ts.map +1 -0
- package/components/counter/dist/auro-counter.d.ts +82 -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/iconVersion.d.ts +3 -0
- package/components/counter/dist/iconVersion.d.ts.map +1 -0
- package/components/counter/dist/index.js +4999 -36
- package/components/{input/dist/styles/helpText-css.d.ts → counter/dist/styles/color-css.d.ts} +1 -1
- 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-wrapper-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-wrapper-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 +12 -3
- package/components/counter/src/auro-counter-button.js +42 -0
- package/components/counter/src/auro-counter-group.js +236 -20
- package/components/counter/src/auro-counter-wrapper.js +54 -0
- package/components/counter/src/auro-counter.js +285 -12
- package/components/counter/src/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-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +12 -1
- package/components/counter/src/styles/counter-group.scss +12 -1
- package/components/counter/src/styles/counter-wrapper-color-css.js +2 -0
- package/components/counter/src/styles/counter-wrapper-color.css +4 -0
- package/components/counter/src/styles/counter-wrapper-color.scss +19 -0
- package/components/counter/src/styles/counter-wrapper-css.js +2 -0
- package/components/counter/src/styles/counter-wrapper.css +15 -0
- package/components/counter/src/styles/counter-wrapper.scss +29 -0
- 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 +51 -52
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
- package/components/datepicker/README.md +21 -26
- package/components/datepicker/demo/api.md +85 -57
- package/components/datepicker/demo/api.min.js +1643 -693
- package/components/datepicker/demo/index.md +1 -1
- package/components/datepicker/demo/index.min.js +1643 -693
- package/components/datepicker/dist/auro-calendar.d.ts +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +101 -73
- 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 +1643 -693
- package/components/datepicker/dist/inputVersion.d.ts +3 -0
- package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +2 -2
- package/components/datepicker/package.json +5 -5
- package/components/datepicker/src/auro-calendar.js +1 -1
- package/components/datepicker/src/auro-datepicker.js +170 -82
- package/components/datepicker/src/dropdownVersion.js +1 -0
- package/components/datepicker/src/inputVersion.js +1 -0
- package/components/datepicker/src/styles/color-cell-css.js +1 -1
- package/components/datepicker/src/styles/color-cell.css +1 -1
- package/components/datepicker/src/styles/color-cell.scss +1 -1
- package/components/datepicker/src/styles/style-css.js +1 -1
- package/components/datepicker/src/styles/style.css +0 -6
- package/components/datepicker/src/styles/style.scss +0 -6
- package/components/datepicker/src/utilitiesCalendarRender.js +2 -2
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
- package/components/dropdown/.turbo/turbo-build.log +19 -20
- 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/README.md +18 -26
- package/components/dropdown/demo/api.md +4 -5
- package/components/dropdown/demo/api.min.js +467 -122
- package/components/dropdown/demo/index.min.js +467 -122
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +467 -122
- package/components/dropdown/package.json +4 -3
- package/components/dropdown/src/auro-dropdown.js +157 -43
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/color-css.js +1 -1
- package/components/dropdown/src/styles/color.css +0 -5
- package/components/dropdown/src/styles/color.scss +0 -5
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -6
- package/components/dropdown/src/styles/style.scss +5 -6
- package/components/dropdown/src/styles/tokens-css.js +1 -1
- package/components/dropdown/src/styles/tokens.css +0 -1
- package/components/dropdown/src/styles/tokens.scss +0 -1
- 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 +28 -34
- package/components/form/demo/api.min.js +405 -25
- package/components/form/demo/index.min.js +405 -25
- package/components/form/demo/registerDemoDeps.js +6 -0
- package/components/form/demo/working.html +117 -0
- package/components/form/dist/auro-form.d.ts +160 -2
- package/components/form/dist/auro-form.d.ts.map +1 -1
- package/components/form/dist/index.js +405 -25
- package/components/form/package.json +6 -4
- package/components/form/src/auro-form.js +402 -25
- package/components/form/src/styles/style.css +1 -1
- package/components/helptext/.stylelintrc.json +3 -0
- package/components/helptext/.turbo/turbo-build$colon$sass.log +34 -0
- package/components/helptext/.turbo/turbo-build.log +49 -0
- package/components/helptext/.turbo/turbo-bundler.log +7 -0
- package/components/helptext/.turbo/turbo-postCss$colon$component.log +4 -0
- package/components/helptext/.turbo/turbo-sass$colon$render.log +22 -0
- package/components/helptext/.turbo/turbo-types.log +4 -0
- package/components/helptext/dist/auro-helptext.d.ts +54 -0
- package/components/helptext/dist/auro-helptext.d.ts.map +1 -0
- package/components/helptext/dist/index.d.ts +3 -0
- package/components/helptext/dist/index.d.ts.map +1 -0
- package/components/helptext/dist/index.js +224 -0
- package/components/helptext/dist/styles/color-css.d.ts +3 -0
- package/components/helptext/dist/styles/color-css.d.ts.map +1 -0
- package/components/helptext/dist/styles/style-css.d.ts +3 -0
- package/components/helptext/dist/styles/style-css.d.ts.map +1 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +3 -0
- package/components/helptext/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/helptext/node_modules/chalk/package.json +83 -0
- package/components/helptext/node_modules/chalk/readme.md +297 -0
- package/components/helptext/node_modules/chalk/source/index.d.ts +325 -0
- package/components/helptext/node_modules/chalk/source/index.js +225 -0
- package/components/helptext/node_modules/chalk/source/utilities.js +33 -0
- package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/helptext/package.json +57 -0
- package/components/helptext/src/auro-helptext.js +127 -0
- package/components/helptext/src/index.js +6 -0
- package/components/helptext/src/styles/color-css.js +2 -0
- package/components/helptext/src/styles/color.css +8 -0
- package/components/helptext/src/styles/color.scss +11 -0
- package/components/helptext/src/styles/style-css.js +2 -0
- package/components/helptext/src/styles/style.css +23 -0
- package/components/helptext/src/styles/style.scss +33 -0
- package/components/helptext/src/styles/tokens-css.js +2 -0
- package/components/helptext/src/styles/tokens.css +3 -0
- package/components/helptext/src/styles/tokens.scss +5 -0
- package/components/input/.turbo/turbo-build$colon$sass.log +22 -32
- package/components/input/.turbo/turbo-build.log +33 -46
- package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/input/.turbo/turbo-sass$colon$render.log +9 -15
- package/components/input/README.md +18 -28
- package/components/input/demo/api.md +122 -288
- package/components/input/demo/api.min.js +653 -195
- package/components/input/demo/index.md +9 -59
- package/components/input/demo/index.min.js +653 -195
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +160 -82
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +653 -195
- package/components/input/package.json +4 -3
- package/components/input/src/auro-input.js +18 -10
- package/components/input/src/base-input.js +246 -76
- package/components/input/src/styles/color-css.js +1 -1
- package/components/input/src/styles/color.css +0 -5
- package/components/input/src/styles/color.scss +0 -5
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +2 -2
- package/components/input/src/styles/input.scss +2 -2
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +2 -9
- package/components/input/src/styles/style.scss +0 -1
- package/components/input/src/styles/tokens-css.js +1 -1
- package/components/input/src/styles/tokens.css +0 -1
- package/components/input/src/styles/tokens.scss +0 -1
- 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 +22 -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 +57 -20
- package/components/menu/demo/api.min.js +626 -312
- package/components/menu/demo/index.min.js +624 -310
- package/components/menu/dist/auro-menu-utils.d.ts +43 -0
- package/components/menu/dist/auro-menu-utils.d.ts.map +1 -0
- package/components/menu/dist/auro-menu.d.ts +97 -81
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/index.d.ts +1 -0
- package/components/menu/dist/index.js +625 -311
- package/components/menu/package.json +3 -3
- package/components/menu/src/auro-menu-utils.js +131 -0
- package/components/menu/src/auro-menu.js +492 -303
- package/components/menu/src/index.js +7 -0
- package/components/menu/src/styles/color-menuoption-css.js +1 -1
- package/components/menu/src/styles/color-menuoption.css +3 -0
- package/components/menu/src/styles/color-menuoption.scss +4 -0
- package/components/menu/src/styles/style-menu.css +1 -1
- package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
- package/components/radio/.turbo/turbo-build.log +23 -24
- package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
- package/components/radio/README.md +18 -26
- package/components/radio/demo/api.md +4 -4
- package/components/radio/demo/api.min.js +350 -61
- package/components/radio/demo/index.min.js +350 -61
- package/components/radio/dist/auro-radio-group.d.ts +5 -0
- package/components/radio/dist/auro-radio-group.d.ts.map +1 -1
- package/components/radio/dist/index.js +350 -61
- package/components/radio/package.json +4 -3
- package/components/radio/src/auro-radio-group.js +14 -5
- package/components/radio/src/styles/groupColor-css.js +1 -1
- package/components/radio/src/styles/groupColor.css +0 -8
- package/components/radio/src/styles/groupColor.scss +0 -8
- package/components/radio/src/styles/tokens-css.js +1 -1
- package/components/radio/src/styles/tokens.css +0 -1
- package/components/radio/src/styles/tokens.scss +0 -1
- package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
- package/components/select/.turbo/turbo-build.log +32 -33
- package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
- package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
- package/components/select/README.md +21 -42
- package/components/select/demo/api.md +86 -111
- package/components/select/demo/api.min.js +2961 -701
- package/components/select/demo/index.md +101 -59
- package/components/select/demo/index.min.js +2960 -700
- package/components/select/dist/auro-select.d.ts +77 -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 +2421 -462
- package/components/select/package.json +5 -5
- package/components/select/src/auro-select.js +157 -120
- 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 +12 -4
- package/components/select/src/styles/style.scss +22 -5
- package/package.json +27 -23
- package/packages/build-tools/src/docProcessor.mjs +37 -8
- package/packages/build-tools/src/postinstall.mjs +8 -0
- package/packages/form-validation/src/validation.js +79 -20
- 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 +42 -9
- package/.turbo/cache/013a48308b893dac-meta.json +0 -1
- package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
- package/.turbo/cache/02244170c798a2bd-meta.json +0 -1
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +0 -1
- package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +0 -1
- package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +0 -1
- package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
- package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +0 -1
- package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
- package/.turbo/cache/1c0f580d37370ba2-meta.json +0 -1
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +0 -1
- package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +0 -1
- package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +0 -1
- package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
- package/.turbo/cache/3e12285c614db539-meta.json +0 -1
- package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +0 -1
- package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +0 -1
- package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +0 -1
- package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
- package/.turbo/cache/64de7a53e02db647-meta.json +0 -1
- package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
- package/.turbo/cache/691a74627ec57993-meta.json +0 -1
- package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +0 -1
- package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
- package/.turbo/cache/6dd67d179191bda8-meta.json +0 -1
- package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
- package/.turbo/cache/6dd7058e6703cb35-meta.json +0 -1
- package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
- package/.turbo/cache/73e9073a5274616d-meta.json +0 -1
- package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +0 -1
- package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/786a822763403879-meta.json +0 -1
- package/.turbo/cache/786a822763403879.tar.zst +0 -0
- package/.turbo/cache/7e1043cffa69f327-meta.json +0 -1
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +0 -1
- package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +0 -1
- package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/8954c6073396fadd-meta.json +0 -1
- package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +0 -1
- package/.turbo/cache/8e79bd5c3a16a72e.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +0 -1
- package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
- package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +0 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +0 -1
- package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
- package/.turbo/cache/ba4418918621fbcd-meta.json +0 -1
- package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +0 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bffc7582905c2a5e-meta.json +0 -1
- package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +0 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +0 -1
- package/.turbo/cache/cc81de9c0b452a7c.tar.zst +0 -0
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
- package/.turbo/cache/d39e6ef95ebc4cc0.tar.zst +0 -0
- package/.turbo/cache/d572ebb3c833e8f4-meta.json +0 -1
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +0 -1
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +0 -1
- package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
- package/.turbo/cache/dea5945f55c6aba5-meta.json +0 -1
- package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +0 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +0 -1
- package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- package/components/checkbox/.turbo/turbo-bundler.log +0 -13
- package/components/checkbox/.turbo/turbo-types.log +0 -4
- package/components/dropdown/.turbo/turbo-build$colon$version.log +0 -7
- package/components/dropdown/.turbo/turbo-bundler.log +0 -13
- package/components/dropdown/.turbo/turbo-types.log +0 -4
- package/components/input/.turbo/turbo-bundler.log +0 -13
- package/components/input/.turbo/turbo-types.log +0 -4
- package/components/input/dist/styles/helpText-css.d.ts.map +0 -1
- package/components/input/src/styles/helpText-css.js +0 -2
- package/components/input/src/styles/helpText.css +0 -6
- package/components/input/src/styles/helpText.scss +0 -9
- package/components/radio/.turbo/turbo-bundler.log +0 -13
- package/components/radio/.turbo/turbo-types.log +0 -4
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$
|
|
6
|
+
const t$5=globalThis,i$9=t$5.trustedTypes,s$5=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$7="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$3,n$6=`<${o$7}>`,r$8=document,l$4=()=>r$8.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$6=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$3(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$8.createTreeWalker(r$8,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$5?s$5.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3?"!--"===u[1]?c=v$2:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):undefined!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$3,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$2:'"'===u[3]?g$1:p$4):c===g$1||c===p$4?c=m$2:c===v$2||c===_$1?c=f$3:(c=m$2,r=undefined);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$6:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$1)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$6(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$2 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$8).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$8,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$3(this,t,i),c$6(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$6(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return undefined===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(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$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$3(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?undefined:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3(this,t);}};const Z={M:e$7,P:h$3,A:o$7,C:1,L:V$1,R:M$2,D:u$6,V:S$3,I:R$1,H:k$1,N:I$1,U:L$1,B:H$1,F:z$1},j$1=t$5.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$5.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const a$
|
|
13
|
+
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$4=t=>({_$litStatic$:t,r:a$3}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3}),l$3=new Map,n$5=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$6(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$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$5=n$5(x$1);
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
19
|
*/
|
|
20
|
-
const t$
|
|
20
|
+
const t$4={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @license
|
|
24
24
|
* Copyright 2020 Google LLC
|
|
25
25
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
-
*/const {I:t$
|
|
26
|
+
*/const {I:t$3}=Z,s$3=()=>document.createComment(""),r$7=(o,i,n)=>{const e=o._$AA.parentNode,l=undefined===i?o._$AB:i._$AA;if(undefined===n){const i=e.insertBefore(s$3(),l),c=e.insertBefore(s$3(),l);n=new t$3(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$1=(o,t,i=o)=>(o._$AI(t,i),o),u$4={},m$1=(o,t=u$4)=>o._$AH=t,p$3=o=>o._$AH,M$1=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;}};
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
const u$
|
|
33
|
+
const u$3=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$5=e$6(class extends i$7{constructor(e){if(super(e),e.type!==t$4.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$3(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v=[];let m,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[k]=v$1(d[x],p[k]),x++,k++;else if(h[j]===a[w])v[w]=v$1(d[j],p[w]),j--,w--;else if(h[x]===a[w])v[w]=v$1(d[x],p[w]),r$7(s,v[w+1],d[x]),x++,w--;else if(h[j]===a[k])v[k]=v$1(d[j],p[k]),r$7(s,d[x],d[j]),j--,k++;else if(undefined===m&&(m=u$3(a,k,w),y=u$3(h,x,j)),m.has(h[x]))if(m.has(h[j])){const e=y.get(a[k]),t=undefined!==e?d[e]:null;if(null===t){const e=r$7(s,d[x]);v$1(e,p[k]),v[k]=e;}else v[k]=v$1(t,p[k]),r$7(s,d[x],t),d[e]=null;k++;}else M$1(d[j]),j--;else M$1(d[x]),x++;for(;k<=w;){const e=r$7(s,v[w+1]);v$1(e,p[k]),v[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M$1(e);}return this.ut=a,m$1(s,v),T$1}});
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2018 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/const e$
|
|
39
|
+
*/const e$5=e$6(class extends i$7{constructor(t){if(super(t),t.type!==t$4.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$1}});
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2018 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
*/const o$
|
|
45
|
+
*/const o$5=o=>o??E$1;
|
|
46
46
|
|
|
47
47
|
const watchedItems = new Set();
|
|
48
48
|
|
|
@@ -152,25 +152,25 @@ function stopNotifyingOnLangChange(element) {
|
|
|
152
152
|
* Copyright 2019 Google LLC
|
|
153
153
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
154
154
|
*/
|
|
155
|
-
const t=globalThis,e$
|
|
155
|
+
const t$2=globalThis,e$4=t$2.ShadowRoot&&(undefined===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)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$4&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$4.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$6=t=>new n$4("string"==typeof t?t:t+"",undefined,s$2),i$6=(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$4(o,t,s$2)},S$2=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @license
|
|
159
159
|
* Copyright 2017 Google LLC
|
|
160
160
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
161
|
-
*/const{is:i$
|
|
161
|
+
*/const{is:i$5,defineProperty:e$3,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$3}=Object,a$2=globalThis,c$3=a$2.trustedTypes,l$2=c$3?c$3.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$5(t,s),y$2={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$3(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$3(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$4(s));}else undefined!==s&&i.push(c$4(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$2).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$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$2?.({ReactiveElement:b$1}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* @license
|
|
165
165
|
* Copyright 2017 Google LLC
|
|
166
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
167
|
+
*/let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$4=globalThis.litElementPolyfillSupport;i$4?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
168
168
|
|
|
169
|
-
var styleCss$
|
|
169
|
+
var styleCss$4 = i$6`*,*: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}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:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem);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)}`;
|
|
170
170
|
|
|
171
|
-
var colorCss$
|
|
171
|
+
var colorCss$4 = i$6`.wrapper{border-color:transparent}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)}: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)}`;
|
|
172
172
|
|
|
173
|
-
var tokensCss$
|
|
173
|
+
var tokensCss$4 = i$6`:host{--ds-auro-input-border-color: var(--ds-color-border-secondary-default, #939fad);--ds-auro-input-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-input-caret-color: var(--ds-color-text-ui-focus-default, #2c67b5);--ds-auro-input-label-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-placeholder-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
174
174
|
|
|
175
175
|
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
176
176
|
|
|
@@ -1736,7 +1736,7 @@ var Cleave_1 = Cleave;
|
|
|
1736
1736
|
|
|
1737
1737
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1738
1738
|
|
|
1739
|
-
class AuroLibraryRuntimeUtils {
|
|
1739
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
1740
1740
|
|
|
1741
1741
|
/* eslint-disable jsdoc/require-param */
|
|
1742
1742
|
|
|
@@ -1797,7 +1797,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
1797
1797
|
|
|
1798
1798
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1799
1799
|
}
|
|
1800
|
-
}
|
|
1800
|
+
};
|
|
1801
1801
|
|
|
1802
1802
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1803
1803
|
// See LICENSE in the project root for license information.
|
|
@@ -1805,7 +1805,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
1805
1805
|
|
|
1806
1806
|
class AuroFormValidation {
|
|
1807
1807
|
constructor() {
|
|
1808
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
1808
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
1811
|
/**
|
|
@@ -1833,30 +1833,87 @@ class AuroFormValidation {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
/**
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
* @param {
|
|
1836
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
1837
|
+
*
|
|
1838
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
1839
1839
|
* @returns {void}
|
|
1840
|
+
*
|
|
1841
|
+
* @example
|
|
1842
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
1843
|
+
* validateElementAttributes(inputElement);
|
|
1844
|
+
*
|
|
1845
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
1846
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
1847
|
+
*
|
|
1848
|
+
* Validation rules:
|
|
1849
|
+
* - input:
|
|
1850
|
+
* - length:
|
|
1851
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
1852
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
1853
|
+
* - pattern:
|
|
1854
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
1855
|
+
* - counter:
|
|
1856
|
+
* - range:
|
|
1857
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
1858
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
1840
1859
|
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1860
|
+
validateElementAttributes(elem) {
|
|
1861
|
+
const validationRules = {
|
|
1862
|
+
input: {
|
|
1863
|
+
length: [
|
|
1864
|
+
{
|
|
1865
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
1866
|
+
validity: 'tooShort',
|
|
1867
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
1871
|
+
validity: 'tooLong',
|
|
1872
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
1873
|
+
}
|
|
1874
|
+
],
|
|
1875
|
+
pattern: [
|
|
1876
|
+
{
|
|
1877
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
1878
|
+
validity: 'patternMismatch',
|
|
1879
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
1880
|
+
}
|
|
1881
|
+
]
|
|
1882
|
+
},
|
|
1883
|
+
counter: {
|
|
1884
|
+
range: [
|
|
1885
|
+
{
|
|
1886
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
1887
|
+
validity: 'rangeOverflow',
|
|
1888
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
1892
|
+
validity: 'rangeUnderflow',
|
|
1893
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
1894
|
+
}
|
|
1895
|
+
]
|
|
1848
1896
|
}
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
if (
|
|
1853
|
-
|
|
1854
|
-
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
let elementType;
|
|
1900
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1901
|
+
elementType = 'input';
|
|
1902
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
1903
|
+
elementType = 'counter';
|
|
1855
1904
|
}
|
|
1856
1905
|
|
|
1857
|
-
if (
|
|
1858
|
-
|
|
1859
|
-
|
|
1906
|
+
if (elementType) {
|
|
1907
|
+
const rules = validationRules[elementType];
|
|
1908
|
+
|
|
1909
|
+
if (rules) {
|
|
1910
|
+
Object.values(rules).flat().forEach(rule => {
|
|
1911
|
+
if (rule.check(elem)) {
|
|
1912
|
+
elem.validity = rule.validity;
|
|
1913
|
+
elem.errorMessage = rule.message(elem);
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
}
|
|
1860
1917
|
}
|
|
1861
1918
|
}
|
|
1862
1919
|
|
|
@@ -1966,7 +2023,9 @@ class AuroFormValidation {
|
|
|
1966
2023
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
1967
2024
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
1968
2025
|
this.validateType(elem);
|
|
1969
|
-
this.
|
|
2026
|
+
this.validateElementAttributes(elem);
|
|
2027
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
2028
|
+
this.validateElementAttributes(elem);
|
|
1970
2029
|
}
|
|
1971
2030
|
}
|
|
1972
2031
|
|
|
@@ -2061,41 +2120,8 @@ class AuroFormValidation {
|
|
|
2061
2120
|
/**
|
|
2062
2121
|
* Auro-input provides users a way to enter data into a text field.
|
|
2063
2122
|
*
|
|
2064
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
2065
|
-
* @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]
|
|
2066
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2067
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
2068
2123
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
2069
2124
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
2070
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
2071
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
2072
|
-
* @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.
|
|
2073
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
2074
|
-
* @attr {String} lang - defines the language of an element.
|
|
2075
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2076
|
-
* @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.
|
|
2077
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2078
|
-
* @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`.
|
|
2079
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
2080
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
2081
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
2082
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
2083
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
2084
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
2085
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
|
|
2086
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
2087
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
2088
|
-
* @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
|
|
2089
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
2090
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
2091
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
2092
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
2093
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
2094
|
-
* @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`.
|
|
2095
|
-
* @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`.
|
|
2096
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
2097
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
2098
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2099
2125
|
*
|
|
2100
2126
|
* @slot helptext - Sets the help text displayed below the input.
|
|
2101
2127
|
* @slot label - Sets the label text for the input.
|
|
@@ -2109,7 +2135,7 @@ class AuroFormValidation {
|
|
|
2109
2135
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
2110
2136
|
*/
|
|
2111
2137
|
|
|
2112
|
-
class BaseInput extends r {
|
|
2138
|
+
class BaseInput extends r$4 {
|
|
2113
2139
|
|
|
2114
2140
|
constructor() {
|
|
2115
2141
|
super();
|
|
@@ -2187,70 +2213,273 @@ class BaseInput extends r {
|
|
|
2187
2213
|
.substring(idSubstrStart, idSubstrEnd);
|
|
2188
2214
|
}
|
|
2189
2215
|
|
|
2190
|
-
// function to define props used within the scope of this
|
|
2216
|
+
// function to define props used within the scope of this componentstatic
|
|
2191
2217
|
static get properties() {
|
|
2192
2218
|
return {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* If set, the label will remain fixed in the active position.
|
|
2222
|
+
*/
|
|
2223
|
+
activeLabel: {
|
|
2224
|
+
type: Boolean,
|
|
2225
|
+
reflect: true
|
|
2226
|
+
},
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* 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]
|
|
2230
|
+
*/
|
|
2231
|
+
autocapitalize: {
|
|
2232
|
+
type: String
|
|
2233
|
+
},
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2237
|
+
*/
|
|
2238
|
+
autocomplete: {
|
|
2200
2239
|
type: String,
|
|
2201
2240
|
reflect: true
|
|
2202
2241
|
},
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
2245
|
+
*/
|
|
2246
|
+
autocorrect: {
|
|
2247
|
+
type: String
|
|
2248
|
+
},
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* If set, disables the input.
|
|
2252
|
+
*/
|
|
2253
|
+
disabled: {
|
|
2254
|
+
type: Boolean
|
|
2255
|
+
},
|
|
2256
|
+
|
|
2257
|
+
error: {
|
|
2211
2258
|
type: String,
|
|
2212
2259
|
reflect: true
|
|
2213
2260
|
},
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* Contains the help text message for the current validity error.
|
|
2264
|
+
*/
|
|
2265
|
+
errorMessage: {
|
|
2266
|
+
type: String
|
|
2267
|
+
},
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* 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.
|
|
2271
|
+
*/
|
|
2272
|
+
icon: {
|
|
2273
|
+
type: Boolean
|
|
2274
|
+
},
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* Sets the unique ID of the element.
|
|
2278
|
+
*/
|
|
2279
|
+
id: {
|
|
2280
|
+
type: String
|
|
2281
|
+
},
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* Defines the language of an element.
|
|
2285
|
+
*/
|
|
2286
|
+
lang: {
|
|
2287
|
+
type: String
|
|
2288
|
+
},
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2292
|
+
*/
|
|
2293
|
+
max: {
|
|
2294
|
+
type: String
|
|
2295
|
+
},
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2299
|
+
*/
|
|
2300
|
+
maxLength: {
|
|
2301
|
+
type: Number
|
|
2302
|
+
},
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2306
|
+
*/
|
|
2307
|
+
min: {
|
|
2308
|
+
type: String
|
|
2309
|
+
},
|
|
2310
|
+
|
|
2311
|
+
/**
|
|
2312
|
+
* 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`.
|
|
2313
|
+
*/
|
|
2314
|
+
minLength: {
|
|
2315
|
+
type: Number
|
|
2316
|
+
},
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Populates the `name` attribute on the input.
|
|
2320
|
+
*/
|
|
2321
|
+
name: {
|
|
2322
|
+
type: String
|
|
2323
|
+
},
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* If set, disables auto-validation on blur.
|
|
2327
|
+
*/
|
|
2328
|
+
noValidate: {
|
|
2329
|
+
type: Boolean
|
|
2330
|
+
},
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* Specifies a regular expression the form control's value should match.
|
|
2334
|
+
*/
|
|
2335
|
+
pattern: {
|
|
2336
|
+
type: String,
|
|
2217
2337
|
reflect: true
|
|
2218
2338
|
},
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
2342
|
+
*/
|
|
2343
|
+
placeholder: {
|
|
2344
|
+
type: String
|
|
2345
|
+
},
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* Makes the input read-only, but can be set programmatically.
|
|
2349
|
+
*/
|
|
2350
|
+
readonly: {
|
|
2351
|
+
type: Boolean
|
|
2352
|
+
},
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
2356
|
+
*/
|
|
2357
|
+
required: {
|
|
2358
|
+
type: Boolean
|
|
2359
|
+
},
|
|
2223
2360
|
|
|
2224
2361
|
/**
|
|
2225
2362
|
* @ignore
|
|
2226
2363
|
*/
|
|
2227
|
-
showPassword:
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2364
|
+
showPassword: {
|
|
2365
|
+
state: true
|
|
2366
|
+
},
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* Sets a custom help text message to display for all validityStates.
|
|
2370
|
+
*/
|
|
2371
|
+
setCustomValidity: {
|
|
2372
|
+
type: String
|
|
2373
|
+
},
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* Custom help text message to display when validity = `badInput`.
|
|
2377
|
+
*/
|
|
2378
|
+
setCustomValidityBadInput: {
|
|
2379
|
+
type: String
|
|
2380
|
+
},
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* Custom help text message to display when validity = `customError`.
|
|
2384
|
+
*/
|
|
2385
|
+
setCustomValidityCustomError: {
|
|
2386
|
+
type: String
|
|
2387
|
+
},
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
2391
|
+
*/
|
|
2392
|
+
setCustomValidityForType: {
|
|
2393
|
+
type: String
|
|
2394
|
+
},
|
|
2395
|
+
|
|
2396
|
+
/**
|
|
2397
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
2398
|
+
*/
|
|
2399
|
+
setCustomValidityRangeOverflow: {
|
|
2400
|
+
type: String
|
|
2401
|
+
},
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
2405
|
+
*/
|
|
2406
|
+
setCustomValidityRangeUnderflow: {
|
|
2407
|
+
type: String
|
|
2408
|
+
},
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
2412
|
+
*/
|
|
2413
|
+
setCustomValidityTooLong: {
|
|
2414
|
+
type: String
|
|
2415
|
+
},
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
2419
|
+
*/
|
|
2420
|
+
setCustomValidityTooShort: {
|
|
2421
|
+
type: String
|
|
2422
|
+
},
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
2426
|
+
*/
|
|
2427
|
+
setCustomValidityValueMissing: {
|
|
2428
|
+
type: String
|
|
2429
|
+
},
|
|
2430
|
+
|
|
2431
|
+
/**
|
|
2432
|
+
* Custom help text message for email type validity.
|
|
2433
|
+
*/
|
|
2434
|
+
customValidityTypeEmail: {
|
|
2435
|
+
type: String
|
|
2436
|
+
},
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* 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`.
|
|
2440
|
+
*/
|
|
2441
|
+
spellcheck: {
|
|
2442
|
+
type: String
|
|
2443
|
+
},
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* 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`.
|
|
2447
|
+
*/
|
|
2448
|
+
type: {
|
|
2231
2449
|
type: String,
|
|
2232
2450
|
reflect: true
|
|
2233
2451
|
},
|
|
2234
|
-
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2455
|
+
*/
|
|
2456
|
+
value: {
|
|
2457
|
+
type: String
|
|
2458
|
+
},
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Sets validation mode to re-eval with each input.
|
|
2462
|
+
*/
|
|
2463
|
+
validateOnInput: {
|
|
2464
|
+
type: Boolean
|
|
2465
|
+
},
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* Specifies the `validityState` this element is in.
|
|
2469
|
+
*/
|
|
2470
|
+
validity: {
|
|
2235
2471
|
type: String,
|
|
2236
2472
|
reflect: true
|
|
2237
|
-
}
|
|
2238
|
-
setCustomValidity: { type: String },
|
|
2239
|
-
setCustomValidityCustomError: { type: String },
|
|
2240
|
-
setCustomValidityValueMissing: { type: String },
|
|
2241
|
-
setCustomValidityPatternMismatch: { type: String },
|
|
2242
|
-
setCustomValidityTooShort: { type: String },
|
|
2243
|
-
setCustomValidityTooLong: { type: String },
|
|
2244
|
-
setCustomValidityRangeOverflow: { type: String },
|
|
2245
|
-
setCustomValidityRangeUnderflow: { type: String }
|
|
2473
|
+
}
|
|
2246
2474
|
};
|
|
2247
2475
|
}
|
|
2248
2476
|
|
|
2477
|
+
|
|
2249
2478
|
static get styles() {
|
|
2250
2479
|
return [
|
|
2251
|
-
i$
|
|
2252
|
-
i$
|
|
2253
|
-
i$
|
|
2480
|
+
i$6`${colorCss$4}`,
|
|
2481
|
+
i$6`${styleCss$4}`,
|
|
2482
|
+
i$6`${tokensCss$4}`
|
|
2254
2483
|
];
|
|
2255
2484
|
}
|
|
2256
2485
|
|
|
@@ -2519,7 +2748,7 @@ class BaseInput extends r {
|
|
|
2519
2748
|
}
|
|
2520
2749
|
|
|
2521
2750
|
if (changedProperties.has('error')) {
|
|
2522
|
-
this.
|
|
2751
|
+
this.validate(true);
|
|
2523
2752
|
}
|
|
2524
2753
|
|
|
2525
2754
|
if (changedProperties.has('validity')) {
|
|
@@ -2711,11 +2940,11 @@ class BaseInput extends r {
|
|
|
2711
2940
|
}
|
|
2712
2941
|
|
|
2713
2942
|
/**
|
|
2714
|
-
*
|
|
2715
|
-
* @
|
|
2943
|
+
* Validates value.
|
|
2944
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
2716
2945
|
*/
|
|
2717
|
-
validate() {
|
|
2718
|
-
this.validation.validate(this);
|
|
2946
|
+
validate(force = false) {
|
|
2947
|
+
this.validation.validate(this, force);
|
|
2719
2948
|
}
|
|
2720
2949
|
|
|
2721
2950
|
/**
|
|
@@ -2823,7 +3052,7 @@ class BaseInput extends r {
|
|
|
2823
3052
|
return !this.placeholder ? 'MM' : this.placeholder;
|
|
2824
3053
|
}
|
|
2825
3054
|
|
|
2826
|
-
return o$
|
|
3055
|
+
return o$5(this.placeholder);
|
|
2827
3056
|
}
|
|
2828
3057
|
|
|
2829
3058
|
/**
|
|
@@ -3000,7 +3229,7 @@ class AuroDependencyVersioning {
|
|
|
3000
3229
|
*/
|
|
3001
3230
|
generateTag(baseName, version, tagClass) {
|
|
3002
3231
|
const elementName = this.generateElementName(baseName, version);
|
|
3003
|
-
const tag = i$
|
|
3232
|
+
const tag = i$8`${s$4(elementName)}`;
|
|
3004
3233
|
|
|
3005
3234
|
if (!customElements.get(elementName)) {
|
|
3006
3235
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -3020,7 +3249,7 @@ class AuroDependencyVersioning {
|
|
|
3020
3249
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
3021
3250
|
*/
|
|
3022
3251
|
|
|
3023
|
-
class AuroElement extends r {
|
|
3252
|
+
class AuroElement extends r$4 {
|
|
3024
3253
|
|
|
3025
3254
|
// function to define props used within the scope of this component
|
|
3026
3255
|
static get properties() {
|
|
@@ -3076,7 +3305,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
3076
3305
|
return _fetchMap.get(uri);
|
|
3077
3306
|
};
|
|
3078
3307
|
|
|
3079
|
-
var styleCss$
|
|
3308
|
+
var styleCss$3 = i$6`*,*: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}`;
|
|
3080
3309
|
|
|
3081
3310
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3082
3311
|
// See LICENSE in the project root for license information.
|
|
@@ -3115,8 +3344,8 @@ class BaseIcon extends AuroElement {
|
|
|
3115
3344
|
}
|
|
3116
3345
|
|
|
3117
3346
|
static get styles() {
|
|
3118
|
-
return i$
|
|
3119
|
-
${styleCss$
|
|
3347
|
+
return i$6`
|
|
3348
|
+
${styleCss$3}
|
|
3120
3349
|
`;
|
|
3121
3350
|
}
|
|
3122
3351
|
|
|
@@ -3157,9 +3386,9 @@ class BaseIcon extends AuroElement {
|
|
|
3157
3386
|
}
|
|
3158
3387
|
}
|
|
3159
3388
|
|
|
3160
|
-
var tokensCss$
|
|
3389
|
+
var tokensCss$3 = i$6`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
3161
3390
|
|
|
3162
|
-
var colorCss$
|
|
3391
|
+
var colorCss$3 = i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
3163
3392
|
|
|
3164
3393
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3165
3394
|
// See LICENSE in the project root for license information.
|
|
@@ -3221,7 +3450,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3221
3450
|
this.success = false;
|
|
3222
3451
|
this.tertiary = false;
|
|
3223
3452
|
this.warning = false;
|
|
3224
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
3453
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
3225
3454
|
}
|
|
3226
3455
|
|
|
3227
3456
|
// function to define props used within the scope of this component
|
|
@@ -3303,9 +3532,9 @@ class AuroIcon extends BaseIcon {
|
|
|
3303
3532
|
static get styles() {
|
|
3304
3533
|
return [
|
|
3305
3534
|
super.styles,
|
|
3306
|
-
i$
|
|
3307
|
-
i$
|
|
3308
|
-
i$
|
|
3535
|
+
i$6`${tokensCss$3}`,
|
|
3536
|
+
i$6`${styleCss$3}`,
|
|
3537
|
+
i$6`${colorCss$3}`
|
|
3309
3538
|
];
|
|
3310
3539
|
}
|
|
3311
3540
|
|
|
@@ -3318,7 +3547,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3318
3547
|
*
|
|
3319
3548
|
*/
|
|
3320
3549
|
static register(name = "auro-icon") {
|
|
3321
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
3550
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
3322
3551
|
}
|
|
3323
3552
|
|
|
3324
3553
|
connectedCallback() {
|
|
@@ -3347,20 +3576,20 @@ class AuroIcon extends BaseIcon {
|
|
|
3347
3576
|
'wrapper': true,
|
|
3348
3577
|
};
|
|
3349
3578
|
|
|
3350
|
-
return x`
|
|
3579
|
+
return x$1`
|
|
3351
3580
|
<div
|
|
3352
|
-
class="${e$
|
|
3353
|
-
title="${o$
|
|
3354
|
-
<span aria-hidden="${o$
|
|
3355
|
-
${this.customSvg ? x`
|
|
3581
|
+
class="${e$5(classes)}"
|
|
3582
|
+
title="${o$5(this.title || undefined)}">
|
|
3583
|
+
<span aria-hidden="${o$5(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
3584
|
+
${this.customSvg ? x$1`
|
|
3356
3585
|
<slot name="svg"></slot>
|
|
3357
|
-
` : x`
|
|
3586
|
+
` : x$1`
|
|
3358
3587
|
${this.svg}
|
|
3359
3588
|
`
|
|
3360
3589
|
}
|
|
3361
3590
|
</span>
|
|
3362
3591
|
|
|
3363
|
-
<div class="${e$
|
|
3592
|
+
<div class="${e$5(a11y)}">
|
|
3364
3593
|
<slot></slot>
|
|
3365
3594
|
</div>
|
|
3366
3595
|
</div>
|
|
@@ -3370,17 +3599,17 @@ class AuroIcon extends BaseIcon {
|
|
|
3370
3599
|
|
|
3371
3600
|
var iconVersion = '6.1.2';
|
|
3372
3601
|
|
|
3373
|
-
var styleCss$
|
|
3602
|
+
var styleCss$2 = i$6`*,*: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}`;
|
|
3374
3603
|
|
|
3375
|
-
var colorCss$1 = i$2`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
3604
|
+
var colorCss$2 = i$6`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
3376
3605
|
|
|
3377
|
-
var tokensCss$
|
|
3606
|
+
var tokensCss$2 = i$6`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
|
|
3378
3607
|
|
|
3379
|
-
var styleCss = i$
|
|
3608
|
+
var styleCss$1 = i$6`*,*: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}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
3380
3609
|
|
|
3381
|
-
var colorCss = i$
|
|
3610
|
+
var colorCss$1 = i$6`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
3382
3611
|
|
|
3383
|
-
var tokensCss = i$
|
|
3612
|
+
var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
|
|
3384
3613
|
|
|
3385
3614
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3386
3615
|
// See LICENSE in the project root for license information.
|
|
@@ -3405,7 +3634,7 @@ var tokensCss = i$2`:host{--ds-auro-loader-background-color: currentcolor;--ds-a
|
|
|
3405
3634
|
*/
|
|
3406
3635
|
|
|
3407
3636
|
// build the component class
|
|
3408
|
-
class AuroLoader extends r {
|
|
3637
|
+
class AuroLoader extends r$4 {
|
|
3409
3638
|
constructor() {
|
|
3410
3639
|
super();
|
|
3411
3640
|
|
|
@@ -3427,7 +3656,7 @@ class AuroLoader extends r {
|
|
|
3427
3656
|
/**
|
|
3428
3657
|
* @private
|
|
3429
3658
|
*/
|
|
3430
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
3659
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
3431
3660
|
|
|
3432
3661
|
this.orbit = false;
|
|
3433
3662
|
this.ringworm = false;
|
|
@@ -3459,9 +3688,9 @@ class AuroLoader extends r {
|
|
|
3459
3688
|
|
|
3460
3689
|
static get styles() {
|
|
3461
3690
|
return [
|
|
3462
|
-
i$
|
|
3463
|
-
i$
|
|
3464
|
-
i$
|
|
3691
|
+
i$6`${styleCss$1}`,
|
|
3692
|
+
i$6`${colorCss$1}`,
|
|
3693
|
+
i$6`${tokensCss$1}`
|
|
3465
3694
|
];
|
|
3466
3695
|
}
|
|
3467
3696
|
|
|
@@ -3474,7 +3703,7 @@ class AuroLoader extends r {
|
|
|
3474
3703
|
*
|
|
3475
3704
|
*/
|
|
3476
3705
|
static register(name = "auro-loader") {
|
|
3477
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
|
|
3706
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
|
|
3478
3707
|
}
|
|
3479
3708
|
|
|
3480
3709
|
firstUpdated() {
|
|
@@ -3507,14 +3736,14 @@ class AuroLoader extends r {
|
|
|
3507
3736
|
|
|
3508
3737
|
// function that renders the HTML and CSS into the scope of the component
|
|
3509
3738
|
render() {
|
|
3510
|
-
return x`
|
|
3511
|
-
${this.defineTemplate().map((idx) => x`
|
|
3739
|
+
return x$1`
|
|
3740
|
+
${this.defineTemplate().map((idx) => x$1`
|
|
3512
3741
|
<span part="element" class="loader node-${idx}"></span>
|
|
3513
3742
|
`)}
|
|
3514
3743
|
|
|
3515
3744
|
<div class="no-animation">Loading...</div>
|
|
3516
3745
|
|
|
3517
|
-
${this.ringworm ? x`
|
|
3746
|
+
${this.ringworm ? x$1`
|
|
3518
3747
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
3519
3748
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
3520
3749
|
</svg>`
|
|
@@ -3560,7 +3789,7 @@ var loaderVersion = '3.1.1';
|
|
|
3560
3789
|
|
|
3561
3790
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
3562
3791
|
|
|
3563
|
-
class AuroButton extends r {
|
|
3792
|
+
class AuroButton extends r$4 {
|
|
3564
3793
|
|
|
3565
3794
|
constructor() {
|
|
3566
3795
|
super();
|
|
@@ -3589,9 +3818,9 @@ class AuroButton extends r {
|
|
|
3589
3818
|
|
|
3590
3819
|
static get styles() {
|
|
3591
3820
|
return [
|
|
3592
|
-
tokensCss$
|
|
3593
|
-
styleCss$
|
|
3594
|
-
colorCss$
|
|
3821
|
+
tokensCss$2,
|
|
3822
|
+
styleCss$2,
|
|
3823
|
+
colorCss$2
|
|
3595
3824
|
];
|
|
3596
3825
|
}
|
|
3597
3826
|
|
|
@@ -3674,7 +3903,7 @@ class AuroButton extends r {
|
|
|
3674
3903
|
*
|
|
3675
3904
|
*/
|
|
3676
3905
|
static register(name = "auro-button") {
|
|
3677
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
|
|
3906
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
|
|
3678
3907
|
}
|
|
3679
3908
|
|
|
3680
3909
|
/**
|
|
@@ -3728,27 +3957,27 @@ class AuroButton extends r {
|
|
|
3728
3957
|
'loading': this.loading
|
|
3729
3958
|
};
|
|
3730
3959
|
|
|
3731
|
-
return u$
|
|
3960
|
+
return u$5`
|
|
3732
3961
|
<button
|
|
3733
3962
|
part="button"
|
|
3734
|
-
aria-label="${o$
|
|
3735
|
-
aria-labelledby="${o$
|
|
3963
|
+
aria-label="${o$5(this.arialabel ? this.arialabel : undefined)}"
|
|
3964
|
+
aria-labelledby="${o$5(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
3736
3965
|
?autofocus="${this.autofocus}"
|
|
3737
|
-
class="${e$
|
|
3966
|
+
class="${e$5(classes)}"
|
|
3738
3967
|
?disabled="${this.disabled || this.loading}"
|
|
3739
3968
|
?onDark="${this.onDark}"
|
|
3740
|
-
title="${o$
|
|
3741
|
-
name="${o$
|
|
3742
|
-
type="${o$
|
|
3743
|
-
variant="${o$
|
|
3744
|
-
.value="${o$
|
|
3969
|
+
title="${o$5(this.title ? this.title : undefined)}"
|
|
3970
|
+
name="${o$5(this.name ? this.name : undefined)}"
|
|
3971
|
+
type="${o$5(this.type ? this.type : undefined)}"
|
|
3972
|
+
variant="${o$5(this.variant ? this.variant : undefined)}"
|
|
3973
|
+
.value="${o$5(this.value ? this.value : undefined)}"
|
|
3745
3974
|
@click="${() => {}}"
|
|
3746
3975
|
>
|
|
3747
|
-
${o$
|
|
3976
|
+
${o$5(this.loading ? u$5`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
3748
3977
|
|
|
3749
3978
|
<span class="contentWrapper">
|
|
3750
3979
|
<span class="textSlot" part="text">
|
|
3751
|
-
${this.iconOnly ? undefined : u$
|
|
3980
|
+
${this.iconOnly ? undefined : u$5`<slot></slot>`}
|
|
3752
3981
|
</span>
|
|
3753
3982
|
|
|
3754
3983
|
<span part="icon">
|
|
@@ -3762,6 +3991,229 @@ class AuroButton extends r {
|
|
|
3762
3991
|
|
|
3763
3992
|
var buttonVersion = '8.2.2';
|
|
3764
3993
|
|
|
3994
|
+
/**
|
|
3995
|
+
* @license
|
|
3996
|
+
* Copyright 2019 Google LLC
|
|
3997
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3998
|
+
*/
|
|
3999
|
+
const t$1=globalThis,e$2=t$1.ShadowRoot&&(undefined===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)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$2&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",undefined,s$1),i$3=(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$2(o,t,s$1)},S$1=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* @license
|
|
4003
|
+
* Copyright 2017 Google LLC
|
|
4004
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4005
|
+
*/const{is:i$2,defineProperty:e$1,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1: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$1=(t,s)=>!i$2(t,s),y$1={attribute:true,type:String,converter:u$1,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.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$1){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$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(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$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$1(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else undefined!==s&&i.push(c$2(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$1(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$1).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$1;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$1)(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$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* @license
|
|
4009
|
+
* Copyright 2017 Google LLC
|
|
4010
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4011
|
+
*/
|
|
4012
|
+
const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):undefined,e="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h,n=`<${o}>`,r$1=document,l=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;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?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-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)){const i=v[a++],s=r.getAttribute(t).split(h),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)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c(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(t,h._$AS(t,i.values),h,e)),i}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$1).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$1,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}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(this,t,i),c(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(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(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(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(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()),this.O(l()),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(this,t,i,0),o=!c(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(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(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(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(this,t);}}const j=t.litHtmlPolyfillSupport;j?.(N,R),(t.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(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
4013
|
+
|
|
4014
|
+
/**
|
|
4015
|
+
* @license
|
|
4016
|
+
* Copyright 2017 Google LLC
|
|
4017
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4018
|
+
*/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");
|
|
4019
|
+
|
|
4020
|
+
var colorCss = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4021
|
+
|
|
4022
|
+
var styleCss = i$3`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
4023
|
+
|
|
4024
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
4025
|
+
|
|
4026
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4027
|
+
// See LICENSE in the project root for license information.
|
|
4028
|
+
|
|
4029
|
+
// ---------------------------------------------------------------------
|
|
4030
|
+
|
|
4031
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4032
|
+
|
|
4033
|
+
class AuroLibraryRuntimeUtils {
|
|
4034
|
+
|
|
4035
|
+
/* eslint-disable jsdoc/require-param */
|
|
4036
|
+
|
|
4037
|
+
/**
|
|
4038
|
+
* This will register a new custom element with the browser.
|
|
4039
|
+
* @param {String} name - The name of the custom element.
|
|
4040
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4041
|
+
* @returns {void}
|
|
4042
|
+
*/
|
|
4043
|
+
registerComponent(name, componentClass) {
|
|
4044
|
+
if (!customElements.get(name)) {
|
|
4045
|
+
customElements.define(name, class extends componentClass {});
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4049
|
+
/**
|
|
4050
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4051
|
+
* @returns {void}
|
|
4052
|
+
*/
|
|
4053
|
+
closestElement(
|
|
4054
|
+
selector, // selector like in .closest()
|
|
4055
|
+
base = this, // extra functionality to skip a parent
|
|
4056
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4057
|
+
!el || el === document || el === window
|
|
4058
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4059
|
+
: found
|
|
4060
|
+
? found // found a selector INside this element
|
|
4061
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4062
|
+
) {
|
|
4063
|
+
return __Closest(base);
|
|
4064
|
+
}
|
|
4065
|
+
/* eslint-enable jsdoc/require-param */
|
|
4066
|
+
|
|
4067
|
+
/**
|
|
4068
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
4069
|
+
* @param {Object} elem - The element to check.
|
|
4070
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4071
|
+
* @returns {void}
|
|
4072
|
+
*/
|
|
4073
|
+
handleComponentTagRename(elem, tagName) {
|
|
4074
|
+
const tag = tagName.toLowerCase();
|
|
4075
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4076
|
+
|
|
4077
|
+
if (elemTag !== tag) {
|
|
4078
|
+
elem.setAttribute(tag, true);
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
/**
|
|
4083
|
+
* Validates if an element is a specific Auro component.
|
|
4084
|
+
* @param {Object} elem - The element to validate.
|
|
4085
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4086
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4087
|
+
*/
|
|
4088
|
+
elementMatch(elem, tagName) {
|
|
4089
|
+
const tag = tagName.toLowerCase();
|
|
4090
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4091
|
+
|
|
4092
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4093
|
+
}
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4096
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4097
|
+
// See LICENSE in the project root for license information.
|
|
4098
|
+
|
|
4099
|
+
|
|
4100
|
+
/**
|
|
4101
|
+
* Displays help text or error messages within form elements - Internal Use Only.
|
|
4102
|
+
*
|
|
4103
|
+
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
4104
|
+
*/
|
|
4105
|
+
class AuroHelpText extends r {
|
|
4106
|
+
|
|
4107
|
+
constructor() {
|
|
4108
|
+
super();
|
|
4109
|
+
|
|
4110
|
+
this.error = false;
|
|
4111
|
+
this.hasTextContent = false;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
static get styles() {
|
|
4115
|
+
return [
|
|
4116
|
+
colorCss,
|
|
4117
|
+
styleCss,
|
|
4118
|
+
tokensCss
|
|
4119
|
+
];
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
// function to define props used within the scope of this component
|
|
4123
|
+
static get properties() {
|
|
4124
|
+
return {
|
|
4125
|
+
|
|
4126
|
+
/**
|
|
4127
|
+
* @private
|
|
4128
|
+
*/
|
|
4129
|
+
slotNodes: {
|
|
4130
|
+
type: Boolean,
|
|
4131
|
+
},
|
|
4132
|
+
|
|
4133
|
+
/**
|
|
4134
|
+
* @private
|
|
4135
|
+
*/
|
|
4136
|
+
hasTextContent: {
|
|
4137
|
+
type: Boolean,
|
|
4138
|
+
},
|
|
4139
|
+
|
|
4140
|
+
/**
|
|
4141
|
+
* If declared, make font color red.
|
|
4142
|
+
*/
|
|
4143
|
+
error: {
|
|
4144
|
+
type: Boolean,
|
|
4145
|
+
reflect: true,
|
|
4146
|
+
},
|
|
4147
|
+
};
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
/**
|
|
4151
|
+
* This will register this element with the browser.
|
|
4152
|
+
* @param {string} [name="auro-helptext"] - The name of element that you want to register to.
|
|
4153
|
+
*
|
|
4154
|
+
* @example
|
|
4155
|
+
* AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
|
|
4156
|
+
*
|
|
4157
|
+
*/
|
|
4158
|
+
static register(name = "auro-helptext") {
|
|
4159
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
updated() {
|
|
4163
|
+
this.handleSlotChange();
|
|
4164
|
+
}
|
|
4165
|
+
|
|
4166
|
+
handleSlotChange(event) {
|
|
4167
|
+
if (event) {
|
|
4168
|
+
this.slotNodes = event.target.assignedNodes();
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
|
|
4172
|
+
}
|
|
4173
|
+
|
|
4174
|
+
/**
|
|
4175
|
+
* Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
|
|
4176
|
+
*
|
|
4177
|
+
* @param {NodeList|Array} nodes - The list of nodes to check for content.
|
|
4178
|
+
* @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
|
|
4179
|
+
* @private
|
|
4180
|
+
*/
|
|
4181
|
+
checkSlotsForContent(nodes) {
|
|
4182
|
+
if (!nodes) {
|
|
4183
|
+
return false;
|
|
4184
|
+
}
|
|
4185
|
+
|
|
4186
|
+
return nodes.some((node) => {
|
|
4187
|
+
if (node.textContent.trim()) {
|
|
4188
|
+
return true;
|
|
4189
|
+
}
|
|
4190
|
+
|
|
4191
|
+
if (!node.querySelector) {
|
|
4192
|
+
return false;
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
|
|
4196
|
+
if (!nestedSlot) {
|
|
4197
|
+
return false;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
const nestedSlotNodes = nestedSlot.assignedNodes();
|
|
4201
|
+
return this.checkSlotsForContent(nestedSlotNodes);
|
|
4202
|
+
});
|
|
4203
|
+
}
|
|
4204
|
+
|
|
4205
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
4206
|
+
render() {
|
|
4207
|
+
return x`
|
|
4208
|
+
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
4209
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
4210
|
+
</div>
|
|
4211
|
+
`;
|
|
4212
|
+
}
|
|
4213
|
+
}
|
|
4214
|
+
|
|
4215
|
+
AuroHelpText.register();
|
|
4216
|
+
|
|
3765
4217
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3766
4218
|
// See LICENSE in the project root for license information.
|
|
3767
4219
|
|
|
@@ -3796,7 +4248,7 @@ class AuroInput extends BaseInput {
|
|
|
3796
4248
|
*
|
|
3797
4249
|
*/
|
|
3798
4250
|
static register(name = "auro-input") {
|
|
3799
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroInput);
|
|
4251
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroInput);
|
|
3800
4252
|
}
|
|
3801
4253
|
|
|
3802
4254
|
/**
|
|
@@ -3849,7 +4301,7 @@ class AuroInput extends BaseInput {
|
|
|
3849
4301
|
'withValue': this.value && this.value.length > 0
|
|
3850
4302
|
};
|
|
3851
4303
|
|
|
3852
|
-
return u$
|
|
4304
|
+
return u$5`
|
|
3853
4305
|
<div class="wrapper" part="wrapper">
|
|
3854
4306
|
<div class="main">
|
|
3855
4307
|
<div class="typeIcon">
|
|
@@ -3858,7 +4310,7 @@ class AuroInput extends BaseInput {
|
|
|
3858
4310
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
3859
4311
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
3860
4312
|
${this.inputIconName
|
|
3861
|
-
? c$
|
|
4313
|
+
? c$5([this.inputIconName], (val) => val, (name) => u$5`
|
|
3862
4314
|
<${this.iconTag}
|
|
3863
4315
|
class="accentIcon"
|
|
3864
4316
|
category="payment"
|
|
@@ -3870,7 +4322,7 @@ class AuroInput extends BaseInput {
|
|
|
3870
4322
|
}
|
|
3871
4323
|
|
|
3872
4324
|
${this.isDateType()
|
|
3873
|
-
? u$
|
|
4325
|
+
? u$5`
|
|
3874
4326
|
<${this.iconTag}
|
|
3875
4327
|
class="accentIcon"
|
|
3876
4328
|
category="interface"
|
|
@@ -3881,7 +4333,7 @@ class AuroInput extends BaseInput {
|
|
|
3881
4333
|
: undefined
|
|
3882
4334
|
}
|
|
3883
4335
|
</div>
|
|
3884
|
-
<label for=${this.id} class="${e$
|
|
4336
|
+
<label for=${this.id} class="${e$5(labelClasses)}" part="label">
|
|
3885
4337
|
<slot name="label">
|
|
3886
4338
|
${this.label}
|
|
3887
4339
|
</slot>
|
|
@@ -3892,23 +4344,23 @@ class AuroInput extends BaseInput {
|
|
|
3892
4344
|
@focusin="${this.handleFocusin}"
|
|
3893
4345
|
@blur="${this.handleBlur}"
|
|
3894
4346
|
id="${this.id}"
|
|
3895
|
-
name="${o$
|
|
4347
|
+
name="${o$5(this.name)}"
|
|
3896
4348
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
3897
|
-
pattern="${o$
|
|
3898
|
-
maxlength="${o$
|
|
3899
|
-
minlength="${o$
|
|
3900
|
-
inputMode="${o$
|
|
4349
|
+
pattern="${o$5(this.definePattern())}"
|
|
4350
|
+
maxlength="${o$5(this.maxLength ? this.maxLength : undefined)}"
|
|
4351
|
+
minlength="${o$5(this.minLength ? this.minLength : undefined)}"
|
|
4352
|
+
inputMode="${o$5(this.inputMode ? this.inputMode : undefined)}"
|
|
3901
4353
|
?required="${this.required}"
|
|
3902
4354
|
?disabled="${this.disabled}"
|
|
3903
4355
|
aria-describedby="${this.uniqueId}"
|
|
3904
4356
|
aria-invalid="${this.validity !== 'valid'}"
|
|
3905
4357
|
placeholder=${this.getPlaceholder()}
|
|
3906
|
-
lang="${o$
|
|
4358
|
+
lang="${o$5(this.lang)}"
|
|
3907
4359
|
?activeLabel="${this.activeLabel}"
|
|
3908
|
-
spellcheck="${o$
|
|
3909
|
-
autocorrect="${o$
|
|
3910
|
-
autocapitalize="${o$
|
|
3911
|
-
autocomplete="${o$
|
|
4360
|
+
spellcheck="${o$5(this.spellcheck ? this.spellcheck : undefined)}"
|
|
4361
|
+
autocorrect="${o$5(this.autocorrect ? this.autocorrect : undefined)}"
|
|
4362
|
+
autocapitalize="${o$5(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
4363
|
+
autocomplete="${o$5(this.autocomplete ? this.autocomplete : undefined)}"
|
|
3912
4364
|
part="input"
|
|
3913
4365
|
/>
|
|
3914
4366
|
</div>
|
|
@@ -3916,7 +4368,7 @@ class AuroInput extends BaseInput {
|
|
|
3916
4368
|
class="notificationIcons"
|
|
3917
4369
|
part="notificationIcons"
|
|
3918
4370
|
?hasValue="${this.hasValue}">
|
|
3919
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
4371
|
+
${this.validity && this.validity !== 'valid' ? u$5`
|
|
3920
4372
|
<div class="notification alertNotification">
|
|
3921
4373
|
<${this.iconTag}
|
|
3922
4374
|
category="alert"
|
|
@@ -3925,8 +4377,8 @@ class AuroInput extends BaseInput {
|
|
|
3925
4377
|
</${this.iconTag}>
|
|
3926
4378
|
</div>
|
|
3927
4379
|
` : undefined}
|
|
3928
|
-
${this.hasValue ? u$
|
|
3929
|
-
${this.type === 'password' ? u$
|
|
4380
|
+
${this.hasValue ? u$5`
|
|
4381
|
+
${this.type === 'password' ? u$5`
|
|
3930
4382
|
<div class="notification">
|
|
3931
4383
|
<${this.buttonTag}
|
|
3932
4384
|
variant="flat"
|
|
@@ -3949,7 +4401,7 @@ class AuroInput extends BaseInput {
|
|
|
3949
4401
|
</${this.buttonTag}>
|
|
3950
4402
|
</div>
|
|
3951
4403
|
` : undefined}
|
|
3952
|
-
${!this.disabled && !this.readonly ? u$
|
|
4404
|
+
${!this.disabled && !this.readonly ? u$5`
|
|
3953
4405
|
<div class="notification">
|
|
3954
4406
|
<${this.buttonTag}
|
|
3955
4407
|
variant="flat"
|
|
@@ -3970,16 +4422,22 @@ class AuroInput extends BaseInput {
|
|
|
3970
4422
|
</div>
|
|
3971
4423
|
</div>
|
|
3972
4424
|
<!-- Help text and error message template -->
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
<
|
|
3976
|
-
<
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
4425
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
4426
|
+
? u$5`
|
|
4427
|
+
<auro-helptext>
|
|
4428
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
4429
|
+
<slot name="helptext">${this.getHelpText(this.type)}</slot>
|
|
4430
|
+
</p>
|
|
4431
|
+
</auro-helptext>
|
|
4432
|
+
`
|
|
4433
|
+
: u$5`
|
|
4434
|
+
<auro-helptext error>
|
|
4435
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
4436
|
+
${this.errorMessage}
|
|
4437
|
+
</p>
|
|
4438
|
+
</auro-helptext>
|
|
4439
|
+
`
|
|
4440
|
+
}
|
|
3983
4441
|
`;
|
|
3984
4442
|
}
|
|
3985
4443
|
}
|