@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
|
@@ -28,33 +28,33 @@ function inDialogExample() {
|
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const t$
|
|
31
|
+
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=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$7=document,l$4=()=>r$7.createComment(""),c$5=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=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$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/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$7.createTreeWalker(r$7,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$4?s$4.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$1:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):undefined!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$3,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$1:'"'===u[3]?g$1:p$3):c===g$1||c===p$3?c=m$1:c===v$1||c===_$1?c=f$3:(c=m$1,r=undefined);const x=c===m$1&&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$7.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$5(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$7).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$7,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$5(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$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$5(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$7.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$1(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$5(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$5(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 j$1=t$4.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$4.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};
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2020 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
const a$
|
|
38
|
+
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=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$3=n$5(x$1);
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2019 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/
|
|
45
|
-
const t$
|
|
45
|
+
const t$3=globalThis,e$6=t$3.ShadowRoot&&(undefined===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$5=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$6&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$5.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.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$7=(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$6)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$6?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const{is:i$
|
|
51
|
+
*/const{is:i$6,defineProperty:e$5,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$4,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$6(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$5(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$4(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");
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
57
|
+
*/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$5=globalThis.litElementPolyfillSupport;i$5?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
58
58
|
|
|
59
59
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
60
60
|
// See LICENSE in the project root for license information.
|
|
@@ -63,7 +63,7 @@ const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
63
63
|
|
|
64
64
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
65
65
|
|
|
66
|
-
class AuroLibraryRuntimeUtils {
|
|
66
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
67
67
|
|
|
68
68
|
/* eslint-disable jsdoc/require-param */
|
|
69
69
|
|
|
@@ -124,7 +124,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
124
124
|
|
|
125
125
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
126
126
|
}
|
|
127
|
-
}
|
|
127
|
+
};
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* Custom positioning reference element.
|
|
@@ -174,7 +174,7 @@ function getAlignmentAxis(placement) {
|
|
|
174
174
|
return getOppositeAxis(getSideAxis(placement));
|
|
175
175
|
}
|
|
176
176
|
function getAlignmentSides(placement, rects, rtl) {
|
|
177
|
-
if (rtl ===
|
|
177
|
+
if (rtl === undefined) {
|
|
178
178
|
rtl = false;
|
|
179
179
|
}
|
|
180
180
|
const alignment = getAlignment(placement);
|
|
@@ -331,7 +331,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
331
331
|
platform
|
|
332
332
|
} = config;
|
|
333
333
|
const validMiddleware = middleware.filter(Boolean);
|
|
334
|
-
const rtl = await (platform.isRTL == null ?
|
|
334
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
|
|
335
335
|
let rects = await platform.getElementRects({
|
|
336
336
|
reference,
|
|
337
337
|
floating,
|
|
@@ -417,7 +417,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
417
417
|
*/
|
|
418
418
|
async function detectOverflow(state, options) {
|
|
419
419
|
var _await$platform$isEle;
|
|
420
|
-
if (options ===
|
|
420
|
+
if (options === undefined) {
|
|
421
421
|
options = {};
|
|
422
422
|
}
|
|
423
423
|
const {
|
|
@@ -439,7 +439,7 @@ async function detectOverflow(state, options) {
|
|
|
439
439
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
440
440
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
441
441
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
442
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ?
|
|
442
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? undefined : platform.getDocumentElement(elements.floating))),
|
|
443
443
|
boundary,
|
|
444
444
|
rootBoundary,
|
|
445
445
|
strategy
|
|
@@ -450,8 +450,8 @@ async function detectOverflow(state, options) {
|
|
|
450
450
|
width: rects.floating.width,
|
|
451
451
|
height: rects.floating.height
|
|
452
452
|
} : rects.reference;
|
|
453
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
454
|
-
const offsetScale = (await (platform.isElement == null ?
|
|
453
|
+
const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
|
|
454
|
+
const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
|
|
455
455
|
x: 1,
|
|
456
456
|
y: 1
|
|
457
457
|
} : {
|
|
@@ -488,7 +488,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
488
488
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
489
489
|
*/
|
|
490
490
|
const autoPlacement$1 = function (options) {
|
|
491
|
-
if (options ===
|
|
491
|
+
if (options === undefined) {
|
|
492
492
|
options = {};
|
|
493
493
|
}
|
|
494
494
|
return {
|
|
@@ -512,12 +512,12 @@ const autoPlacement$1 = function (options) {
|
|
|
512
512
|
} = evaluate(options, state);
|
|
513
513
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
514
514
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
515
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
515
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
|
|
516
516
|
const currentPlacement = placements$1[currentIndex];
|
|
517
517
|
if (currentPlacement == null) {
|
|
518
518
|
return {};
|
|
519
519
|
}
|
|
520
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
520
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
|
|
521
521
|
|
|
522
522
|
// Make `computeCoords` start from the right place.
|
|
523
523
|
if (placement !== currentPlacement) {
|
|
@@ -528,7 +528,7 @@ const autoPlacement$1 = function (options) {
|
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
531
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
531
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
|
|
532
532
|
placement: currentPlacement,
|
|
533
533
|
overflows: currentOverflows
|
|
534
534
|
}];
|
|
@@ -558,7 +558,7 @@ const autoPlacement$1 = function (options) {
|
|
|
558
558
|
// Aligned placements should not check their opposite crossAxis
|
|
559
559
|
// side.
|
|
560
560
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
561
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
561
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
562
562
|
if (resetPlacement !== placement) {
|
|
563
563
|
return {
|
|
564
564
|
data: {
|
|
@@ -582,7 +582,7 @@ const autoPlacement$1 = function (options) {
|
|
|
582
582
|
* @see https://floating-ui.com/docs/flip
|
|
583
583
|
*/
|
|
584
584
|
const flip$1 = function (options) {
|
|
585
|
-
if (options ===
|
|
585
|
+
if (options === undefined) {
|
|
586
586
|
options = {};
|
|
587
587
|
}
|
|
588
588
|
return {
|
|
@@ -618,7 +618,7 @@ const flip$1 = function (options) {
|
|
|
618
618
|
const side = getSide(placement);
|
|
619
619
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
620
620
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
621
|
-
const rtl = await (platform.isRTL == null ?
|
|
621
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
622
622
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
623
623
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
624
624
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -627,7 +627,7 @@ const flip$1 = function (options) {
|
|
|
627
627
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
628
628
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
629
629
|
const overflows = [];
|
|
630
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
630
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
|
|
631
631
|
if (checkMainAxis) {
|
|
632
632
|
overflows.push(overflow[side]);
|
|
633
633
|
}
|
|
@@ -643,7 +643,7 @@ const flip$1 = function (options) {
|
|
|
643
643
|
// One or more sides is overflowing.
|
|
644
644
|
if (!overflows.every(side => side <= 0)) {
|
|
645
645
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
646
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
646
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
|
|
647
647
|
const nextPlacement = placements[nextIndex];
|
|
648
648
|
if (nextPlacement) {
|
|
649
649
|
// Try next placement and re-run the lifecycle.
|
|
@@ -660,7 +660,7 @@ const flip$1 = function (options) {
|
|
|
660
660
|
|
|
661
661
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
662
662
|
// then find the placement that fits the best on the main crossAxis side.
|
|
663
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ?
|
|
663
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
|
|
664
664
|
|
|
665
665
|
// Otherwise fallback.
|
|
666
666
|
if (!resetPlacement) {
|
|
@@ -677,7 +677,7 @@ const flip$1 = function (options) {
|
|
|
677
677
|
currentSideAxis === 'y';
|
|
678
678
|
}
|
|
679
679
|
return true;
|
|
680
|
-
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ?
|
|
680
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
|
|
681
681
|
if (placement) {
|
|
682
682
|
resetPlacement = placement;
|
|
683
683
|
}
|
|
@@ -710,7 +710,7 @@ async function convertValueToCoords(state, options) {
|
|
|
710
710
|
platform,
|
|
711
711
|
elements
|
|
712
712
|
} = state;
|
|
713
|
-
const rtl = await (platform.isRTL == null ?
|
|
713
|
+
const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
|
|
714
714
|
const side = getSide(placement);
|
|
715
715
|
const alignment = getAlignment(placement);
|
|
716
716
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -752,7 +752,7 @@ async function convertValueToCoords(state, options) {
|
|
|
752
752
|
* @see https://floating-ui.com/docs/offset
|
|
753
753
|
*/
|
|
754
754
|
const offset$1 = function (options) {
|
|
755
|
-
if (options ===
|
|
755
|
+
if (options === undefined) {
|
|
756
756
|
options = 0;
|
|
757
757
|
}
|
|
758
758
|
return {
|
|
@@ -770,7 +770,7 @@ const offset$1 = function (options) {
|
|
|
770
770
|
|
|
771
771
|
// If the placement is the same and the arrow caused an alignment offset
|
|
772
772
|
// then we don't need to change the positioning coordinates.
|
|
773
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ?
|
|
773
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
774
774
|
return {};
|
|
775
775
|
}
|
|
776
776
|
return {
|
|
@@ -799,11 +799,11 @@ function getNodeName(node) {
|
|
|
799
799
|
}
|
|
800
800
|
function getWindow(node) {
|
|
801
801
|
var _node$ownerDocument;
|
|
802
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
802
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
|
|
803
803
|
}
|
|
804
804
|
function getDocumentElement(node) {
|
|
805
805
|
var _ref;
|
|
806
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ?
|
|
806
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
|
|
807
807
|
}
|
|
808
808
|
function isNode(value) {
|
|
809
809
|
if (!hasWindow()) {
|
|
@@ -918,14 +918,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
918
918
|
}
|
|
919
919
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
920
920
|
var _node$ownerDocument2;
|
|
921
|
-
if (list ===
|
|
921
|
+
if (list === undefined) {
|
|
922
922
|
list = [];
|
|
923
923
|
}
|
|
924
|
-
if (traverseIframes ===
|
|
924
|
+
if (traverseIframes === undefined) {
|
|
925
925
|
traverseIframes = true;
|
|
926
926
|
}
|
|
927
927
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
928
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
928
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
|
|
929
929
|
const win = getWindow(scrollableAncestor);
|
|
930
930
|
if (isBody) {
|
|
931
931
|
const frameElement = getFrameElement(win);
|
|
@@ -1002,7 +1002,7 @@ function getVisualOffsets(element) {
|
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1005
|
-
if (isFixed ===
|
|
1005
|
+
if (isFixed === undefined) {
|
|
1006
1006
|
isFixed = false;
|
|
1007
1007
|
}
|
|
1008
1008
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -1012,10 +1012,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1015
|
-
if (includeScale ===
|
|
1015
|
+
if (includeScale === undefined) {
|
|
1016
1016
|
includeScale = false;
|
|
1017
1017
|
}
|
|
1018
|
-
if (isFixedStrategy ===
|
|
1018
|
+
if (isFixedStrategy === undefined) {
|
|
1019
1019
|
isFixedStrategy = false;
|
|
1020
1020
|
}
|
|
1021
1021
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -1075,7 +1075,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
|
|
1077
1077
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
1078
|
-
if (ignoreScrollbarX ===
|
|
1078
|
+
if (ignoreScrollbarX === undefined) {
|
|
1079
1079
|
ignoreScrollbarX = false;
|
|
1080
1080
|
}
|
|
1081
1081
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -1425,10 +1425,10 @@ function observeMove(element, onMove) {
|
|
|
1425
1425
|
io = null;
|
|
1426
1426
|
}
|
|
1427
1427
|
function refresh(skip, threshold) {
|
|
1428
|
-
if (skip ===
|
|
1428
|
+
if (skip === undefined) {
|
|
1429
1429
|
skip = false;
|
|
1430
1430
|
}
|
|
1431
|
-
if (threshold ===
|
|
1431
|
+
if (threshold === undefined) {
|
|
1432
1432
|
threshold = 1;
|
|
1433
1433
|
}
|
|
1434
1434
|
cleanup();
|
|
@@ -1499,7 +1499,7 @@ function observeMove(element, onMove) {
|
|
|
1499
1499
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
1500
1500
|
*/
|
|
1501
1501
|
function autoUpdate(reference, floating, update, options) {
|
|
1502
|
-
if (options ===
|
|
1502
|
+
if (options === undefined) {
|
|
1503
1503
|
options = {};
|
|
1504
1504
|
}
|
|
1505
1505
|
const {
|
|
@@ -1715,7 +1715,7 @@ class AuroFloatingUI {
|
|
|
1715
1715
|
// Compute the position of the bib
|
|
1716
1716
|
computePosition(this.element.trigger, this.element.bib, {
|
|
1717
1717
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
1718
|
-
middleware: middleware
|
|
1718
|
+
middleware: middleware
|
|
1719
1719
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
1720
1720
|
Object.assign(this.element.bib.style, {
|
|
1721
1721
|
left: `${x}px`,
|
|
@@ -2038,7 +2038,7 @@ class AuroDependencyVersioning {
|
|
|
2038
2038
|
*/
|
|
2039
2039
|
generateTag(baseName, version, tagClass) {
|
|
2040
2040
|
const elementName = this.generateElementName(baseName, version);
|
|
2041
|
-
const tag = i$
|
|
2041
|
+
const tag = i$8`${s$3(elementName)}`;
|
|
2042
2042
|
|
|
2043
2043
|
if (!customElements.get(elementName)) {
|
|
2044
2044
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -2053,19 +2053,19 @@ class AuroDependencyVersioning {
|
|
|
2053
2053
|
* Copyright 2017 Google LLC
|
|
2054
2054
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2055
2055
|
*/
|
|
2056
|
-
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$
|
|
2056
|
+
const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$4=t=>(...e)=>({_$litDirective$:t,values:e});let i$4 = 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)}};
|
|
2057
2057
|
|
|
2058
2058
|
/**
|
|
2059
2059
|
* @license
|
|
2060
2060
|
* Copyright 2018 Google LLC
|
|
2061
2061
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2062
|
-
*/const e=e$
|
|
2062
|
+
*/const e$3=e$4(class extends i$4{constructor(t){if(super(t),t.type!==t$2.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
2063
2063
|
|
|
2064
2064
|
/**
|
|
2065
2065
|
* @license
|
|
2066
2066
|
* Copyright 2018 Google LLC
|
|
2067
2067
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2068
|
-
*/const o=o=>o??E;
|
|
2068
|
+
*/const o$3=o=>o??E$1;
|
|
2069
2069
|
|
|
2070
2070
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2071
2071
|
// See LICENSE in the project root for license information.
|
|
@@ -2077,7 +2077,7 @@ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e
|
|
|
2077
2077
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
2078
2078
|
*/
|
|
2079
2079
|
|
|
2080
|
-
class AuroElement extends r {
|
|
2080
|
+
class AuroElement extends r$4 {
|
|
2081
2081
|
|
|
2082
2082
|
// function to define props used within the scope of this component
|
|
2083
2083
|
static get properties() {
|
|
@@ -2133,7 +2133,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
2133
2133
|
return _fetchMap.get(uri);
|
|
2134
2134
|
};
|
|
2135
2135
|
|
|
2136
|
-
var styleCss$
|
|
2136
|
+
var styleCss$3 = i$7`*,*: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}`;
|
|
2137
2137
|
|
|
2138
2138
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2139
2139
|
// See LICENSE in the project root for license information.
|
|
@@ -2172,8 +2172,8 @@ class BaseIcon extends AuroElement {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
2174
|
static get styles() {
|
|
2175
|
-
return i$
|
|
2176
|
-
${styleCss$
|
|
2175
|
+
return i$7`
|
|
2176
|
+
${styleCss$3}
|
|
2177
2177
|
`;
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
@@ -2214,9 +2214,9 @@ class BaseIcon extends AuroElement {
|
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
|
-
var tokensCss$
|
|
2217
|
+
var tokensCss$2 = i$7`: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)}`;
|
|
2218
2218
|
|
|
2219
|
-
var colorCss$
|
|
2219
|
+
var colorCss$3 = i$7`: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)}`;
|
|
2220
2220
|
|
|
2221
2221
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2222
2222
|
// See LICENSE in the project root for license information.
|
|
@@ -2278,7 +2278,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2278
2278
|
this.success = false;
|
|
2279
2279
|
this.tertiary = false;
|
|
2280
2280
|
this.warning = false;
|
|
2281
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
2281
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
2282
2282
|
}
|
|
2283
2283
|
|
|
2284
2284
|
// function to define props used within the scope of this component
|
|
@@ -2360,9 +2360,9 @@ class AuroIcon extends BaseIcon {
|
|
|
2360
2360
|
static get styles() {
|
|
2361
2361
|
return [
|
|
2362
2362
|
super.styles,
|
|
2363
|
-
i$
|
|
2364
|
-
i$
|
|
2365
|
-
i$
|
|
2363
|
+
i$7`${tokensCss$2}`,
|
|
2364
|
+
i$7`${styleCss$3}`,
|
|
2365
|
+
i$7`${colorCss$3}`
|
|
2366
2366
|
];
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
@@ -2375,7 +2375,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2375
2375
|
*
|
|
2376
2376
|
*/
|
|
2377
2377
|
static register(name = "auro-icon") {
|
|
2378
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
2378
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
2381
|
connectedCallback() {
|
|
@@ -2404,20 +2404,20 @@ class AuroIcon extends BaseIcon {
|
|
|
2404
2404
|
'wrapper': true,
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
return x`
|
|
2407
|
+
return x$1`
|
|
2408
2408
|
<div
|
|
2409
|
-
class="${e(classes)}"
|
|
2410
|
-
title="${o(this.title || undefined)}">
|
|
2411
|
-
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2412
|
-
${this.customSvg ? x`
|
|
2409
|
+
class="${e$3(classes)}"
|
|
2410
|
+
title="${o$3(this.title || undefined)}">
|
|
2411
|
+
<span aria-hidden="${o$3(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2412
|
+
${this.customSvg ? x$1`
|
|
2413
2413
|
<slot name="svg"></slot>
|
|
2414
|
-
` : x`
|
|
2414
|
+
` : x$1`
|
|
2415
2415
|
${this.svg}
|
|
2416
2416
|
`
|
|
2417
2417
|
}
|
|
2418
2418
|
</span>
|
|
2419
2419
|
|
|
2420
|
-
<div class="${e(a11y)}">
|
|
2420
|
+
<div class="${e$3(a11y)}">
|
|
2421
2421
|
<slot></slot>
|
|
2422
2422
|
</div>
|
|
2423
2423
|
</div>
|
|
@@ -2427,15 +2427,238 @@ class AuroIcon extends BaseIcon {
|
|
|
2427
2427
|
|
|
2428
2428
|
var iconVersion = '6.1.2';
|
|
2429
2429
|
|
|
2430
|
-
var styleCss$
|
|
2430
|
+
var styleCss$2 = i$7`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2431
|
+
|
|
2432
|
+
var colorCss$2 = i$7`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
2433
|
+
|
|
2434
|
+
var tokensCss$1 = i$7`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* @license
|
|
2438
|
+
* Copyright 2019 Google LLC
|
|
2439
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2440
|
+
*/
|
|
2441
|
+
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;
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* @license
|
|
2445
|
+
* Copyright 2017 Google LLC
|
|
2446
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2447
|
+
*/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");
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* @license
|
|
2451
|
+
* Copyright 2017 Google LLC
|
|
2452
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2453
|
+
*/
|
|
2454
|
+
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};
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* @license
|
|
2458
|
+
* Copyright 2017 Google LLC
|
|
2459
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2460
|
+
*/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");
|
|
2461
|
+
|
|
2462
|
+
var colorCss$1 = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2463
|
+
|
|
2464
|
+
var styleCss$1 = 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}`;
|
|
2465
|
+
|
|
2466
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
2467
|
+
|
|
2468
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2469
|
+
// See LICENSE in the project root for license information.
|
|
2470
|
+
|
|
2471
|
+
// ---------------------------------------------------------------------
|
|
2472
|
+
|
|
2473
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2474
|
+
|
|
2475
|
+
class AuroLibraryRuntimeUtils {
|
|
2476
|
+
|
|
2477
|
+
/* eslint-disable jsdoc/require-param */
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* This will register a new custom element with the browser.
|
|
2481
|
+
* @param {String} name - The name of the custom element.
|
|
2482
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2483
|
+
* @returns {void}
|
|
2484
|
+
*/
|
|
2485
|
+
registerComponent(name, componentClass) {
|
|
2486
|
+
if (!customElements.get(name)) {
|
|
2487
|
+
customElements.define(name, class extends componentClass {});
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2493
|
+
* @returns {void}
|
|
2494
|
+
*/
|
|
2495
|
+
closestElement(
|
|
2496
|
+
selector, // selector like in .closest()
|
|
2497
|
+
base = this, // extra functionality to skip a parent
|
|
2498
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2499
|
+
!el || el === document || el === window
|
|
2500
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2501
|
+
: found
|
|
2502
|
+
? found // found a selector INside this element
|
|
2503
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2504
|
+
) {
|
|
2505
|
+
return __Closest(base);
|
|
2506
|
+
}
|
|
2507
|
+
/* eslint-enable jsdoc/require-param */
|
|
2508
|
+
|
|
2509
|
+
/**
|
|
2510
|
+
* 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.
|
|
2511
|
+
* @param {Object} elem - The element to check.
|
|
2512
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2513
|
+
* @returns {void}
|
|
2514
|
+
*/
|
|
2515
|
+
handleComponentTagRename(elem, tagName) {
|
|
2516
|
+
const tag = tagName.toLowerCase();
|
|
2517
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2518
|
+
|
|
2519
|
+
if (elemTag !== tag) {
|
|
2520
|
+
elem.setAttribute(tag, true);
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* Validates if an element is a specific Auro component.
|
|
2526
|
+
* @param {Object} elem - The element to validate.
|
|
2527
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2528
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2529
|
+
*/
|
|
2530
|
+
elementMatch(elem, tagName) {
|
|
2531
|
+
const tag = tagName.toLowerCase();
|
|
2532
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2533
|
+
|
|
2534
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2539
|
+
// See LICENSE in the project root for license information.
|
|
2540
|
+
|
|
2431
2541
|
|
|
2432
|
-
|
|
2542
|
+
/**
|
|
2543
|
+
* Displays help text or error messages within form elements - Internal Use Only.
|
|
2544
|
+
*
|
|
2545
|
+
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
2546
|
+
*/
|
|
2547
|
+
class AuroHelpText extends r {
|
|
2433
2548
|
|
|
2434
|
-
|
|
2549
|
+
constructor() {
|
|
2550
|
+
super();
|
|
2435
2551
|
|
|
2436
|
-
|
|
2552
|
+
this.error = false;
|
|
2553
|
+
this.hasTextContent = false;
|
|
2554
|
+
}
|
|
2437
2555
|
|
|
2438
|
-
|
|
2556
|
+
static get styles() {
|
|
2557
|
+
return [
|
|
2558
|
+
colorCss$1,
|
|
2559
|
+
styleCss$1,
|
|
2560
|
+
tokensCss
|
|
2561
|
+
];
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
// function to define props used within the scope of this component
|
|
2565
|
+
static get properties() {
|
|
2566
|
+
return {
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* @private
|
|
2570
|
+
*/
|
|
2571
|
+
slotNodes: {
|
|
2572
|
+
type: Boolean,
|
|
2573
|
+
},
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* @private
|
|
2577
|
+
*/
|
|
2578
|
+
hasTextContent: {
|
|
2579
|
+
type: Boolean,
|
|
2580
|
+
},
|
|
2581
|
+
|
|
2582
|
+
/**
|
|
2583
|
+
* If declared, make font color red.
|
|
2584
|
+
*/
|
|
2585
|
+
error: {
|
|
2586
|
+
type: Boolean,
|
|
2587
|
+
reflect: true,
|
|
2588
|
+
},
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* This will register this element with the browser.
|
|
2594
|
+
* @param {string} [name="auro-helptext"] - The name of element that you want to register to.
|
|
2595
|
+
*
|
|
2596
|
+
* @example
|
|
2597
|
+
* AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
|
|
2598
|
+
*
|
|
2599
|
+
*/
|
|
2600
|
+
static register(name = "auro-helptext") {
|
|
2601
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
updated() {
|
|
2605
|
+
this.handleSlotChange();
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
handleSlotChange(event) {
|
|
2609
|
+
if (event) {
|
|
2610
|
+
this.slotNodes = event.target.assignedNodes();
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
|
|
2618
|
+
*
|
|
2619
|
+
* @param {NodeList|Array} nodes - The list of nodes to check for content.
|
|
2620
|
+
* @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
|
|
2621
|
+
* @private
|
|
2622
|
+
*/
|
|
2623
|
+
checkSlotsForContent(nodes) {
|
|
2624
|
+
if (!nodes) {
|
|
2625
|
+
return false;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
return nodes.some((node) => {
|
|
2629
|
+
if (node.textContent.trim()) {
|
|
2630
|
+
return true;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
if (!node.querySelector) {
|
|
2634
|
+
return false;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
|
|
2638
|
+
if (!nestedSlot) {
|
|
2639
|
+
return false;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
const nestedSlotNodes = nestedSlot.assignedNodes();
|
|
2643
|
+
return this.checkSlotsForContent(nestedSlotNodes);
|
|
2644
|
+
});
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
2648
|
+
render() {
|
|
2649
|
+
return x`
|
|
2650
|
+
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
2651
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
2652
|
+
</div>
|
|
2653
|
+
`;
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
AuroHelpText.register();
|
|
2658
|
+
|
|
2659
|
+
var styleCss = i$7`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2660
|
+
|
|
2661
|
+
var colorCss = i$7`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2439
2662
|
|
|
2440
2663
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2441
2664
|
// See LICENSE in the project root for license information.
|
|
@@ -2451,14 +2674,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2451
2674
|
];
|
|
2452
2675
|
|
|
2453
2676
|
/**
|
|
2454
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
2455
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
2456
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
2457
2677
|
* @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2458
2678
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2459
2679
|
*/
|
|
2460
2680
|
|
|
2461
|
-
class AuroDropdownBib extends r {
|
|
2681
|
+
class AuroDropdownBib extends r$4 {
|
|
2462
2682
|
|
|
2463
2683
|
constructor() {
|
|
2464
2684
|
super();
|
|
@@ -2473,20 +2693,32 @@ class AuroDropdownBib extends r {
|
|
|
2473
2693
|
return [
|
|
2474
2694
|
styleCss,
|
|
2475
2695
|
colorCss,
|
|
2476
|
-
tokensCss
|
|
2696
|
+
tokensCss$1
|
|
2477
2697
|
];
|
|
2478
2698
|
}
|
|
2479
2699
|
|
|
2480
2700
|
static get properties() {
|
|
2481
2701
|
return {
|
|
2702
|
+
|
|
2703
|
+
/**
|
|
2704
|
+
* If declared, will apply all styles for the common theme.
|
|
2705
|
+
*/
|
|
2482
2706
|
common: {
|
|
2483
2707
|
type: Boolean,
|
|
2484
2708
|
reflect: true
|
|
2485
2709
|
},
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* If declared, will apply extra padding to bib content.
|
|
2713
|
+
*/
|
|
2486
2714
|
inset: {
|
|
2487
2715
|
type: Boolean,
|
|
2488
2716
|
reflect: true
|
|
2489
2717
|
},
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* If declared, will apply border-radius to the bib.
|
|
2721
|
+
*/
|
|
2490
2722
|
rounded: {
|
|
2491
2723
|
type: Boolean,
|
|
2492
2724
|
reflect: true
|
|
@@ -2512,7 +2744,7 @@ class AuroDropdownBib extends r {
|
|
|
2512
2744
|
|
|
2513
2745
|
// function that renders the HTML and CSS into the scope of the component
|
|
2514
2746
|
render() {
|
|
2515
|
-
return u$
|
|
2747
|
+
return u$3`
|
|
2516
2748
|
<div class="container" part="bibContainer">
|
|
2517
2749
|
<slot></slot>
|
|
2518
2750
|
</div>
|
|
@@ -2530,22 +2762,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2530
2762
|
|
|
2531
2763
|
|
|
2532
2764
|
/**
|
|
2533
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
2534
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
2535
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
2536
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
2537
2765
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
2538
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2539
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
2540
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
2541
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
2542
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
2543
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
2544
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
2545
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
2546
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
2547
|
-
* @attr { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2548
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
2549
2766
|
* @slot - Default slot for the popover content.
|
|
2550
2767
|
* @slot label - Defines the content of the label.
|
|
2551
2768
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -2557,7 +2774,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2557
2774
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
2558
2775
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
2559
2776
|
*/
|
|
2560
|
-
class AuroDropdown extends r {
|
|
2777
|
+
class AuroDropdown extends r$4 {
|
|
2561
2778
|
constructor() {
|
|
2562
2779
|
super();
|
|
2563
2780
|
|
|
@@ -2586,7 +2803,17 @@ class AuroDropdown extends r {
|
|
|
2586
2803
|
/**
|
|
2587
2804
|
* @private
|
|
2588
2805
|
*/
|
|
2589
|
-
this.
|
|
2806
|
+
this.hasTriggerContent = false;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* @private
|
|
2810
|
+
*/
|
|
2811
|
+
this.triggerContentSlot = undefined;
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* @private
|
|
2815
|
+
*/
|
|
2816
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
2590
2817
|
|
|
2591
2818
|
/**
|
|
2592
2819
|
* @private
|
|
@@ -2629,90 +2856,167 @@ class AuroDropdown extends r {
|
|
|
2629
2856
|
// function to define props used within the scope of this component
|
|
2630
2857
|
static get properties() {
|
|
2631
2858
|
return {
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* If declared, applies a border around the trigger slot.
|
|
2862
|
+
*/
|
|
2632
2863
|
bordered: {
|
|
2633
2864
|
type: Boolean,
|
|
2634
2865
|
reflect: true
|
|
2635
2866
|
},
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
2870
|
+
* @attr {Boolean} chevron
|
|
2871
|
+
*/
|
|
2636
2872
|
chevron: {
|
|
2637
2873
|
type: Boolean,
|
|
2638
2874
|
reflect: true
|
|
2639
2875
|
},
|
|
2640
|
-
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
2879
|
+
*/
|
|
2880
|
+
common: {
|
|
2641
2881
|
type: Boolean,
|
|
2642
2882
|
reflect: true
|
|
2643
2883
|
},
|
|
2644
|
-
|
|
2884
|
+
|
|
2885
|
+
/**
|
|
2886
|
+
* If declared, the dropdown is not interactive.
|
|
2887
|
+
*/
|
|
2888
|
+
disabled: {
|
|
2645
2889
|
type: Boolean,
|
|
2646
2890
|
reflect: true
|
|
2647
2891
|
},
|
|
2648
|
-
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* @private
|
|
2895
|
+
*/
|
|
2896
|
+
dropdownWidth: {
|
|
2897
|
+
type: Number
|
|
2898
|
+
},
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2902
|
+
*/
|
|
2903
|
+
error: {
|
|
2649
2904
|
type: Boolean,
|
|
2650
|
-
reflect: true
|
|
2905
|
+
reflect: true
|
|
2651
2906
|
},
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
2910
|
+
*/
|
|
2652
2911
|
focusShow: {
|
|
2653
2912
|
type: Boolean,
|
|
2654
2913
|
reflect: true
|
|
2655
2914
|
},
|
|
2656
|
-
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* Makes the trigger to be full width of its parent container.
|
|
2918
|
+
*/
|
|
2919
|
+
fluid: {
|
|
2657
2920
|
type: Boolean,
|
|
2658
2921
|
reflect: true
|
|
2659
2922
|
},
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
* If declared, will apply padding around trigger slot content.
|
|
2926
|
+
*/
|
|
2660
2927
|
inset: {
|
|
2661
2928
|
type: Boolean,
|
|
2662
2929
|
reflect: true
|
|
2663
2930
|
},
|
|
2664
|
-
|
|
2931
|
+
|
|
2932
|
+
/**
|
|
2933
|
+
* If true, the dropdown bib is displayed.
|
|
2934
|
+
*/
|
|
2935
|
+
isPopoverVisible: {
|
|
2936
|
+
type: Boolean
|
|
2937
|
+
},
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
2941
|
+
*/
|
|
2942
|
+
hoverToggle: {
|
|
2665
2943
|
type: Boolean,
|
|
2666
2944
|
reflect: true
|
|
2667
2945
|
},
|
|
2668
|
-
|
|
2669
|
-
|
|
2946
|
+
|
|
2947
|
+
/**
|
|
2948
|
+
* @private
|
|
2949
|
+
*/
|
|
2950
|
+
hasTriggerContent: {
|
|
2951
|
+
type: Boolean
|
|
2952
|
+
},
|
|
2953
|
+
|
|
2954
|
+
/**
|
|
2955
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2956
|
+
*/
|
|
2957
|
+
mobileFullscreenBreakpoint: {
|
|
2958
|
+
type: String,
|
|
2670
2959
|
reflect: true
|
|
2671
2960
|
},
|
|
2672
|
-
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
2964
|
+
*/
|
|
2965
|
+
matchWidth: {
|
|
2673
2966
|
type: Boolean,
|
|
2674
2967
|
reflect: true
|
|
2675
2968
|
},
|
|
2676
|
-
|
|
2969
|
+
|
|
2970
|
+
/**
|
|
2971
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
2972
|
+
*/
|
|
2973
|
+
noHideOnThisFocusLoss: {
|
|
2677
2974
|
type: Boolean,
|
|
2678
2975
|
reflect: true
|
|
2679
2976
|
},
|
|
2680
|
-
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
2980
|
+
*/
|
|
2981
|
+
noToggle: {
|
|
2681
2982
|
type: Boolean,
|
|
2682
2983
|
reflect: true
|
|
2683
2984
|
},
|
|
2684
|
-
|
|
2985
|
+
|
|
2685
2986
|
onSlotChange: {
|
|
2686
2987
|
type: Function,
|
|
2687
2988
|
reflect: false
|
|
2688
2989
|
},
|
|
2689
|
-
mobileFullscreenBreakpoint: {
|
|
2690
|
-
type: String,
|
|
2691
|
-
reflect: true,
|
|
2692
|
-
},
|
|
2693
2990
|
|
|
2694
2991
|
/**
|
|
2695
2992
|
* @private
|
|
2696
2993
|
*/
|
|
2697
|
-
|
|
2994
|
+
placement: {
|
|
2995
|
+
type: String
|
|
2996
|
+
},
|
|
2698
2997
|
|
|
2699
2998
|
/**
|
|
2700
|
-
*
|
|
2999
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
2701
3000
|
*/
|
|
2702
|
-
|
|
3001
|
+
rounded: {
|
|
3002
|
+
type: Boolean,
|
|
3003
|
+
reflect: true
|
|
3004
|
+
},
|
|
2703
3005
|
|
|
2704
3006
|
/**
|
|
2705
3007
|
* @private
|
|
2706
3008
|
*/
|
|
2707
|
-
tabIndex: {
|
|
3009
|
+
tabIndex: {
|
|
3010
|
+
type: Number
|
|
3011
|
+
}
|
|
2708
3012
|
};
|
|
2709
3013
|
}
|
|
2710
3014
|
|
|
2711
3015
|
static get styles() {
|
|
2712
3016
|
return [
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
tokensCss
|
|
3017
|
+
colorCss$2,
|
|
3018
|
+
styleCss$2,
|
|
3019
|
+
tokensCss$1
|
|
2716
3020
|
];
|
|
2717
3021
|
}
|
|
2718
3022
|
|
|
@@ -2725,7 +3029,7 @@ class AuroDropdown extends r {
|
|
|
2725
3029
|
*
|
|
2726
3030
|
*/
|
|
2727
3031
|
static register(name = "auro-dropdown") {
|
|
2728
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroDropdown);
|
|
3032
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
2729
3033
|
}
|
|
2730
3034
|
|
|
2731
3035
|
connectedCallback() {
|
|
@@ -2742,6 +3046,12 @@ class AuroDropdown extends r {
|
|
|
2742
3046
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
2743
3047
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
2744
3048
|
}
|
|
3049
|
+
|
|
3050
|
+
// when trigger's content is changed without any attribute or node change,
|
|
3051
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
3052
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3053
|
+
this.handleTriggerContentSlotChange();
|
|
3054
|
+
}
|
|
2745
3055
|
}
|
|
2746
3056
|
|
|
2747
3057
|
firstUpdated() {
|
|
@@ -2784,6 +3094,43 @@ class AuroDropdown extends r {
|
|
|
2784
3094
|
return inCustomSlot;
|
|
2785
3095
|
}
|
|
2786
3096
|
|
|
3097
|
+
/**
|
|
3098
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
3099
|
+
*
|
|
3100
|
+
* It first updates the floater settings
|
|
3101
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
3102
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
3103
|
+
*
|
|
3104
|
+
* @private
|
|
3105
|
+
* @method handleTriggerContentSlotChange
|
|
3106
|
+
* @param {Event} event - native slotchange event
|
|
3107
|
+
* @returns {void}
|
|
3108
|
+
*/
|
|
3109
|
+
handleTriggerContentSlotChange(event) {
|
|
3110
|
+
this.floater.handleTriggerTabIndex();
|
|
3111
|
+
|
|
3112
|
+
if (event) {
|
|
3113
|
+
this.triggerNode = event.target;
|
|
3114
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
if (this.triggerContentSlot) {
|
|
3118
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
3119
|
+
if (slot.textContent.trim()) {
|
|
3120
|
+
return true;
|
|
3121
|
+
}
|
|
3122
|
+
const slotInSlot = slot.querySelector('slot');
|
|
3123
|
+
if (!slotInSlot) {
|
|
3124
|
+
return false;
|
|
3125
|
+
}
|
|
3126
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
3127
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
3128
|
+
});
|
|
3129
|
+
} else {
|
|
3130
|
+
this.hasTriggerContent = false;
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
|
|
2787
3134
|
/**
|
|
2788
3135
|
* Handles the default slot change event and updates the content.
|
|
2789
3136
|
*
|
|
@@ -2806,7 +3153,7 @@ class AuroDropdown extends r {
|
|
|
2806
3153
|
|
|
2807
3154
|
// function that renders the HTML and CSS into the scope of the component
|
|
2808
3155
|
render() {
|
|
2809
|
-
return u$
|
|
3156
|
+
return u$3`
|
|
2810
3157
|
<div>
|
|
2811
3158
|
<div
|
|
2812
3159
|
id="trigger"
|
|
@@ -2818,16 +3165,16 @@ class AuroDropdown extends r {
|
|
|
2818
3165
|
tabindex="${this.tabIndex}"
|
|
2819
3166
|
>
|
|
2820
3167
|
<div class="triggerContentWrapper">
|
|
2821
|
-
<label class="label" id="triggerLabel">
|
|
3168
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
2822
3169
|
<slot name="label"></slot>
|
|
2823
3170
|
</label>
|
|
2824
3171
|
<div class="triggerContent">
|
|
2825
3172
|
<slot
|
|
2826
3173
|
name="trigger"
|
|
2827
|
-
@slotchange="${
|
|
3174
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
2828
3175
|
</div>
|
|
2829
3176
|
</div>
|
|
2830
|
-
${this.chevron || this.common ? u$
|
|
3177
|
+
${this.chevron || this.common ? u$3`
|
|
2831
3178
|
<div
|
|
2832
3179
|
id="showStateIcon"
|
|
2833
3180
|
part="chevron">
|
|
@@ -2841,11 +3188,9 @@ class AuroDropdown extends r {
|
|
|
2841
3188
|
</div>
|
|
2842
3189
|
` : undefined }
|
|
2843
3190
|
</div>
|
|
2844
|
-
<
|
|
2845
|
-
class="helpText"
|
|
2846
|
-
part="helpText">
|
|
3191
|
+
<auro-helptext part="helpText" ?error="${this.error}">
|
|
2847
3192
|
<slot name="helpText"></slot>
|
|
2848
|
-
</
|
|
3193
|
+
</auro-helptext>
|
|
2849
3194
|
<div class="slotContent">
|
|
2850
3195
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
2851
3196
|
</div>
|