@aurodesignsystem/auro-formkit 2.0.0-beta.40 → 2.0.0-beta.42
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/04e52430125e8954-meta.json +1 -0
- package/.turbo/cache/04e52430125e8954.tar.zst +0 -0
- package/.turbo/cache/0593ea8b5b3ed321-meta.json +1 -0
- package/.turbo/cache/068b8eef3688b4e2-meta.json +1 -0
- package/.turbo/cache/068b8eef3688b4e2.tar.zst +0 -0
- package/.turbo/cache/06c6468593bc10ab-meta.json +1 -0
- package/.turbo/cache/06c6468593bc10ab.tar.zst +0 -0
- package/.turbo/cache/0c48a4d7b5aac928-meta.json +1 -0
- package/.turbo/cache/0c48a4d7b5aac928.tar.zst +0 -0
- package/.turbo/cache/1959dd19c8cca5b3-meta.json +1 -0
- package/.turbo/cache/1c16e59f30927b15-meta.json +1 -0
- package/.turbo/cache/29ac8c4304c43ba8-meta.json +1 -0
- package/.turbo/cache/29ac8c4304c43ba8.tar.zst +0 -0
- package/.turbo/cache/2b46337c7a6faa1f-meta.json +1 -0
- package/.turbo/cache/33b12bddab905466-meta.json +1 -0
- package/.turbo/cache/{6d48e8dc24e08c8c.tar.zst → 33b12bddab905466.tar.zst} +0 -0
- package/.turbo/cache/3e068f9ea52e35fd-meta.json +1 -0
- package/.turbo/cache/3f6725da0ddcb57a-meta.json +1 -0
- package/.turbo/cache/3fa3b39e63c49920-meta.json +1 -0
- package/.turbo/cache/3fbb4335136fe72b-meta.json +1 -0
- package/.turbo/cache/3fbb4335136fe72b.tar.zst +0 -0
- package/.turbo/cache/4d32cb975704a7bc-meta.json +1 -0
- package/.turbo/cache/4d32cb975704a7bc.tar.zst +0 -0
- package/.turbo/cache/504dc5478398bc23-meta.json +1 -0
- package/.turbo/cache/504dc5478398bc23.tar.zst +0 -0
- package/.turbo/cache/5736b4ba6916fd8d-meta.json +1 -0
- package/.turbo/cache/5736b4ba6916fd8d.tar.zst +0 -0
- package/.turbo/cache/5aae6a716a40ac0d-meta.json +1 -0
- package/.turbo/cache/618b3075ce2d9a61-meta.json +1 -0
- package/.turbo/cache/618b3075ce2d9a61.tar.zst +0 -0
- package/.turbo/cache/67c13dfc4fd939fc-meta.json +1 -0
- package/.turbo/cache/68fe65245fb34e68-meta.json +1 -0
- package/.turbo/cache/68fe65245fb34e68.tar.zst +0 -0
- package/.turbo/cache/6a25a3c0fc92f44d-meta.json +1 -0
- package/.turbo/cache/6a25a3c0fc92f44d.tar.zst +0 -0
- package/.turbo/cache/6cd6d76ac166da16-meta.json +1 -0
- package/.turbo/cache/71cd21072abc2990-meta.json +1 -0
- package/.turbo/cache/7b4e0f3ba43fedf0-meta.json +1 -0
- package/.turbo/cache/7b9897d3439462f4-meta.json +1 -0
- package/.turbo/cache/7b9897d3439462f4.tar.zst +0 -0
- package/.turbo/cache/80a42a1ee43a7b11-meta.json +1 -0
- package/.turbo/cache/{7a2e937d0f5acb7c.tar.zst → 80a42a1ee43a7b11.tar.zst} +0 -0
- package/.turbo/cache/80bda930b819e4e5-meta.json +1 -0
- package/.turbo/cache/826ecc96865e3b2b-meta.json +1 -0
- package/.turbo/cache/{4aadd7fe6b69cccf.tar.zst → 826ecc96865e3b2b.tar.zst} +0 -0
- package/.turbo/cache/8a66291a4385f56d-meta.json +1 -0
- package/.turbo/cache/8b33dd53ac78ffcb-meta.json +1 -0
- package/.turbo/cache/8b33dd53ac78ffcb.tar.zst +0 -0
- package/.turbo/cache/922ac9eb482cf470-meta.json +1 -0
- package/.turbo/cache/939cf3ccc40e9ab0-meta.json +1 -0
- package/.turbo/cache/{47d63056350252e5.tar.zst → 939cf3ccc40e9ab0.tar.zst} +0 -0
- package/.turbo/cache/997795fcad6346cf-meta.json +1 -0
- package/.turbo/cache/9d39077f59442e6d-meta.json +1 -0
- package/.turbo/cache/9f33c2699df2acc2-meta.json +1 -0
- package/.turbo/cache/9f33c2699df2acc2.tar.zst +0 -0
- package/.turbo/cache/a95cdb7b2836627c-meta.json +1 -0
- package/.turbo/cache/aa7a71eea03e0057-meta.json +1 -0
- package/.turbo/cache/ac01a85fedf6d42a-meta.json +1 -0
- package/.turbo/cache/ac01a85fedf6d42a.tar.zst +0 -0
- package/.turbo/cache/b0b5371ee9e6fd7b-meta.json +1 -0
- package/.turbo/cache/b0b5371ee9e6fd7b.tar.zst +0 -0
- package/.turbo/cache/b21472a210e5d253-meta.json +1 -0
- package/.turbo/cache/b21472a210e5d253.tar.zst +0 -0
- package/.turbo/cache/ba6844de212fdfc5-meta.json +1 -0
- package/.turbo/cache/bb95b8c7cc483fe7-meta.json +1 -0
- package/.turbo/cache/bb95b8c7cc483fe7.tar.zst +0 -0
- package/.turbo/cache/be89ec729b2d7aa1-meta.json +1 -0
- package/.turbo/cache/be89ec729b2d7aa1.tar.zst +0 -0
- package/.turbo/cache/c0c0f7ab71b548fe-meta.json +1 -0
- package/.turbo/cache/c0c0f7ab71b548fe.tar.zst +0 -0
- package/.turbo/cache/c4b442aa3a612c5a-meta.json +1 -0
- package/.turbo/cache/c833fd369811f0b3-meta.json +1 -0
- package/.turbo/cache/c833fd369811f0b3.tar.zst +0 -0
- package/.turbo/cache/cc1bb0ba75999fd5-meta.json +1 -0
- package/.turbo/cache/cc1bb0ba75999fd5.tar.zst +0 -0
- package/.turbo/cache/cc999fcae80b9892-meta.json +1 -0
- package/.turbo/cache/cf739f73c4d81043-meta.json +1 -0
- package/.turbo/cache/cf87272227a0d544-meta.json +1 -0
- package/.turbo/cache/cf87272227a0d544.tar.zst +0 -0
- package/.turbo/cache/d09e82feba2c48a3-meta.json +1 -0
- package/.turbo/cache/d264bb58130e3915-meta.json +1 -0
- package/.turbo/cache/d4fda50b9aa326d9-meta.json +1 -0
- package/.turbo/cache/da0461631780f1e1-meta.json +1 -0
- package/.turbo/cache/dbdfe30495790f74-meta.json +1 -0
- package/.turbo/cache/dea41fd4a13eb241-meta.json +1 -0
- package/.turbo/cache/e229b033acee0336-meta.json +1 -0
- package/.turbo/cache/ed401f9a734e292c-meta.json +1 -0
- package/.turbo/cache/efafac21cf262b2c-meta.json +1 -0
- package/.turbo/cache/{b323342fa340ccb5.tar.zst → efafac21cf262b2c.tar.zst} +0 -0
- package/.turbo/cache/f20df212682f7978-meta.json +1 -0
- package/.turbo/cache/f20df212682f7978.tar.zst +0 -0
- package/.turbo/cache/f272ad05432871ac-meta.json +1 -0
- package/CHANGELOG.md +27 -0
- package/components/bibtemplate/.stylelintrc.json +3 -0
- package/components/bibtemplate/.turbo/turbo-build$colon$sass.log +24 -0
- package/components/bibtemplate/.turbo/turbo-build$colon$version.log +10 -0
- package/components/bibtemplate/.turbo/turbo-build.log +49 -0
- package/components/bibtemplate/.turbo/turbo-bundler.log +7 -0
- package/components/bibtemplate/.turbo/turbo-postCss$colon$component.log +4 -0
- package/components/bibtemplate/.turbo/turbo-sass$colon$render.log +22 -0
- package/components/bibtemplate/.turbo/turbo-types.log +4 -0
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +39 -0
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts.map +1 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +3 -0
- package/components/bibtemplate/dist/headerVersion.d.ts.map +1 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +3 -0
- package/components/bibtemplate/dist/iconVersion.d.ts.map +1 -0
- package/components/bibtemplate/dist/index.d.ts +3 -0
- package/components/bibtemplate/dist/index.d.ts.map +1 -0
- package/components/bibtemplate/dist/index.js +792 -0
- package/components/bibtemplate/dist/styles/color-css.d.ts +3 -0
- package/components/bibtemplate/dist/styles/color-css.d.ts.map +1 -0
- package/components/bibtemplate/dist/styles/style-css.d.ts +3 -0
- package/components/bibtemplate/dist/styles/style-css.d.ts.map +1 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +3 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/bibtemplate/node_modules/chalk/package.json +83 -0
- package/components/bibtemplate/node_modules/chalk/readme.md +297 -0
- package/components/bibtemplate/node_modules/chalk/source/index.d.ts +325 -0
- package/components/bibtemplate/node_modules/chalk/source/index.js +225 -0
- package/components/bibtemplate/node_modules/chalk/source/utilities.js +33 -0
- package/components/bibtemplate/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/bibtemplate/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/bibtemplate/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/bibtemplate/package.json +60 -0
- package/components/bibtemplate/src/auro-bibtemplate.js +137 -0
- package/components/bibtemplate/src/headerVersion.js +1 -0
- package/components/bibtemplate/src/iconVersion.js +1 -0
- package/components/bibtemplate/src/index.js +6 -0
- package/components/bibtemplate/src/styles/color-css.js +2 -0
- package/components/bibtemplate/src/styles/color.css +1 -0
- package/components/bibtemplate/src/styles/color.scss +0 -0
- package/components/bibtemplate/src/styles/style-css.js +2 -0
- package/components/bibtemplate/src/styles/style.css +58 -0
- package/components/bibtemplate/src/styles/style.scss +62 -0
- package/components/bibtemplate/src/styles/tokens-css.js +2 -0
- package/components/bibtemplate/src/styles/tokens.css +3 -0
- package/components/bibtemplate/src/styles/tokens.scss +5 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/combobox/.turbo/turbo-build.log +5 -0
- package/components/combobox/README.md +6 -4
- package/components/combobox/demo/api.md +79 -0
- package/components/combobox/demo/api.min.js +1529 -514
- package/components/combobox/demo/index.md +16 -0
- package/components/combobox/demo/index.min.js +1529 -514
- package/components/combobox/dist/auro-combobox.d.ts +45 -2
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/bibtemplateVersion.d.ts +3 -0
- package/components/combobox/dist/bibtemplateVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.js +1454 -439
- package/components/combobox/package.json +1 -0
- package/components/combobox/src/auro-combobox.js +172 -23
- package/components/combobox/src/bibtemplateVersion.js +1 -0
- package/components/combobox/src/styles/style-css.js +1 -1
- package/components/combobox/src/styles/style.css +0 -4
- package/components/combobox/src/styles/style.scss +0 -8
- package/components/counter/.turbo/turbo-build.log +2 -2
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +244 -168
- package/components/counter/demo/index.min.js +244 -168
- package/components/counter/dist/index.js +244 -168
- package/components/datepicker/.turbo/turbo-build.log +3 -3
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +245 -169
- package/components/datepicker/demo/index.min.js +245 -169
- package/components/datepicker/dist/index.js +245 -169
- package/components/datepicker/src/auro-calendar.js +1 -1
- package/components/dropdown/.turbo/turbo-build.log +6 -3
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +6 -4
- package/components/dropdown/demo/api.min.js +244 -168
- package/components/dropdown/demo/index.min.js +244 -168
- package/components/dropdown/dist/auro-dropdown.d.ts +17 -3
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/dropdownVersion.d.ts +3 -0
- package/components/dropdown/dist/dropdownVersion.d.ts.map +1 -0
- package/components/dropdown/dist/index.js +244 -168
- package/components/dropdown/src/auro-dropdown.js +25 -4
- package/components/dropdown/src/auro-dropdownBib.js +27 -5
- package/components/dropdown/src/dropdownVersion.js +1 -0
- package/components/dropdown/src/styles/bibStyles-css.js +1 -1
- package/components/dropdown/src/styles/bibStyles.css +1 -0
- package/components/dropdown/src/styles/bibStyles.scss +1 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/form/demo/api.min.js +15 -2
- package/components/form/demo/index.min.js +15 -2
- package/components/form/dist/auro-form.d.ts +1 -0
- package/components/form/dist/auro-form.d.ts.map +1 -1
- package/components/form/dist/index.js +15 -2
- package/components/form/src/auro-form.js +15 -2
- package/components/helptext/.turbo/turbo-build.log +1 -1
- package/components/helptext/.turbo/turbo-bundler.log +1 -1
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/README.md +1 -1
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/select/.turbo/turbo-build.log +2 -2
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +244 -168
- package/components/select/demo/index.min.js +244 -168
- package/components/select/dist/index.js +244 -168
- package/package.json +2 -2
- package/turbo.json +1 -0
- package/.turbo/cache/006be80261b993a5-meta.json +0 -1
- package/.turbo/cache/006be80261b993a5.tar.zst +0 -0
- package/.turbo/cache/03338963f2ae4c89-meta.json +0 -1
- package/.turbo/cache/06dfc9c20aacd0fa-meta.json +0 -1
- package/.turbo/cache/075034ccdb82fbea-meta.json +0 -1
- package/.turbo/cache/0ff927ad868537f6-meta.json +0 -1
- package/.turbo/cache/0ff927ad868537f6.tar.zst +0 -0
- package/.turbo/cache/10b8500a6b0c6655-meta.json +0 -1
- package/.turbo/cache/138466aaa06fa946-meta.json +0 -1
- package/.turbo/cache/1a8525cb6ad91e2a-meta.json +0 -1
- package/.turbo/cache/1a8525cb6ad91e2a.tar.zst +0 -0
- package/.turbo/cache/1c347bdf63624c8a-meta.json +0 -1
- package/.turbo/cache/1d4e8167ea8e924f-meta.json +0 -1
- package/.turbo/cache/2289d12debb3c42c-meta.json +0 -1
- package/.turbo/cache/2289d12debb3c42c.tar.zst +0 -0
- package/.turbo/cache/22fc147c04804f70-meta.json +0 -1
- package/.turbo/cache/2d51091c22fc92f5-meta.json +0 -1
- package/.turbo/cache/2d51091c22fc92f5.tar.zst +0 -0
- package/.turbo/cache/3025cdff2ca7afbf-meta.json +0 -1
- package/.turbo/cache/3082b3a86c0f9b94-meta.json +0 -1
- package/.turbo/cache/366fc19b143f7957-meta.json +0 -1
- package/.turbo/cache/366fc19b143f7957.tar.zst +0 -0
- package/.turbo/cache/3dba2f8fdc7eb1d0-meta.json +0 -1
- package/.turbo/cache/43995f6c84a2de33-meta.json +0 -1
- package/.turbo/cache/45d6aea680ecb5ec-meta.json +0 -1
- package/.turbo/cache/45ecc27552696bd6-meta.json +0 -1
- package/.turbo/cache/45ecc27552696bd6.tar.zst +0 -0
- package/.turbo/cache/47d63056350252e5-meta.json +0 -1
- package/.turbo/cache/4aadd7fe6b69cccf-meta.json +0 -1
- package/.turbo/cache/5b3bb164db4c477c-meta.json +0 -1
- package/.turbo/cache/6bfd7cffad1e6b8a-meta.json +0 -1
- package/.turbo/cache/6d48e8dc24e08c8c-meta.json +0 -1
- package/.turbo/cache/70e65d2581c9de95-meta.json +0 -1
- package/.turbo/cache/78629f56974cc5d7-meta.json +0 -1
- package/.turbo/cache/78629f56974cc5d7.tar.zst +0 -0
- package/.turbo/cache/7a2e937d0f5acb7c-meta.json +0 -1
- package/.turbo/cache/85f181c5a0ebfdc3-meta.json +0 -1
- package/.turbo/cache/8830b8b624914679-meta.json +0 -1
- package/.turbo/cache/8830b8b624914679.tar.zst +0 -0
- package/.turbo/cache/88d4c5b7339b081b-meta.json +0 -1
- package/.turbo/cache/8f20a1cd3533e2cb-meta.json +0 -1
- package/.turbo/cache/91de2098a36b6939-meta.json +0 -1
- package/.turbo/cache/96edc0764ed4ab77-meta.json +0 -1
- package/.turbo/cache/a776eb6f87cd7464-meta.json +0 -1
- package/.turbo/cache/aa2a6d9e7beff7fc-meta.json +0 -1
- package/.turbo/cache/aa2a6d9e7beff7fc.tar.zst +0 -0
- package/.turbo/cache/ac47b2df8381d990-meta.json +0 -1
- package/.turbo/cache/ac47b2df8381d990.tar.zst +0 -0
- package/.turbo/cache/ac98992ca27cd36e-meta.json +0 -1
- package/.turbo/cache/b323342fa340ccb5-meta.json +0 -1
- package/.turbo/cache/b681d1652a7f2aca-meta.json +0 -1
- package/.turbo/cache/b681d1652a7f2aca.tar.zst +0 -0
- package/.turbo/cache/b99d21002170d86d-meta.json +0 -1
- package/.turbo/cache/b99d21002170d86d.tar.zst +0 -0
- package/.turbo/cache/bff34c0db361f414-meta.json +0 -1
- package/.turbo/cache/c1c7334875426ff3-meta.json +0 -1
- package/.turbo/cache/cd12b66dd972aaf7-meta.json +0 -1
- package/.turbo/cache/cf74604f39b00f11-meta.json +0 -1
- package/.turbo/cache/d5dbe6fb31ae5667-meta.json +0 -1
- package/.turbo/cache/e2688cc026390fd6-meta.json +0 -1
- package/.turbo/cache/e2688cc026390fd6.tar.zst +0 -0
- package/.turbo/cache/e34579fa4cd85684-meta.json +0 -1
- package/.turbo/cache/e34579fa4cd85684.tar.zst +0 -0
- package/.turbo/cache/e64bd75c16c140f3-meta.json +0 -1
- package/.turbo/cache/ea92743dea3b7023-meta.json +0 -1
- package/.turbo/cache/f1b0cb8241603223-meta.json +0 -1
- package/.turbo/cache/f1b0cb8241603223.tar.zst +0 -0
- package/.turbo/cache/f22dc2dd55715ba2-meta.json +0 -1
- package/.turbo/cache/f8f7a8045f230b79-meta.json +0 -1
- package/.turbo/cache/f8f7a8045f230b79.tar.zst +0 -0
- package/.turbo/cache/f8f99ba69bff8f2c-meta.json +0 -1
- package/.turbo/cache/faafa5cc35d12e06-meta.json +0 -1
- package/.turbo/cache/faafa5cc35d12e06.tar.zst +0 -0
- /package/.turbo/cache/{03338963f2ae4c89.tar.zst → 0593ea8b5b3ed321.tar.zst} +0 -0
- /package/.turbo/cache/{d5dbe6fb31ae5667.tar.zst → 1959dd19c8cca5b3.tar.zst} +0 -0
- /package/.turbo/cache/{cd12b66dd972aaf7.tar.zst → 1c16e59f30927b15.tar.zst} +0 -0
- /package/.turbo/cache/{8f20a1cd3533e2cb.tar.zst → 2b46337c7a6faa1f.tar.zst} +0 -0
- /package/.turbo/cache/{f22dc2dd55715ba2.tar.zst → 3e068f9ea52e35fd.tar.zst} +0 -0
- /package/.turbo/cache/{91de2098a36b6939.tar.zst → 3f6725da0ddcb57a.tar.zst} +0 -0
- /package/.turbo/cache/{43995f6c84a2de33.tar.zst → 3fa3b39e63c49920.tar.zst} +0 -0
- /package/.turbo/cache/{bff34c0db361f414.tar.zst → 5aae6a716a40ac0d.tar.zst} +0 -0
- /package/.turbo/cache/{a776eb6f87cd7464.tar.zst → 67c13dfc4fd939fc.tar.zst} +0 -0
- /package/.turbo/cache/{3dba2f8fdc7eb1d0.tar.zst → 6cd6d76ac166da16.tar.zst} +0 -0
- /package/.turbo/cache/{10b8500a6b0c6655.tar.zst → 71cd21072abc2990.tar.zst} +0 -0
- /package/.turbo/cache/{88d4c5b7339b081b.tar.zst → 7b4e0f3ba43fedf0.tar.zst} +0 -0
- /package/.turbo/cache/{1d4e8167ea8e924f.tar.zst → 80bda930b819e4e5.tar.zst} +0 -0
- /package/.turbo/cache/{5b3bb164db4c477c.tar.zst → 8a66291a4385f56d.tar.zst} +0 -0
- /package/.turbo/cache/{45d6aea680ecb5ec.tar.zst → 922ac9eb482cf470.tar.zst} +0 -0
- /package/.turbo/cache/{3025cdff2ca7afbf.tar.zst → 997795fcad6346cf.tar.zst} +0 -0
- /package/.turbo/cache/{06dfc9c20aacd0fa.tar.zst → 9d39077f59442e6d.tar.zst} +0 -0
- /package/.turbo/cache/{22fc147c04804f70.tar.zst → a95cdb7b2836627c.tar.zst} +0 -0
- /package/.turbo/cache/{f8f99ba69bff8f2c.tar.zst → aa7a71eea03e0057.tar.zst} +0 -0
- /package/.turbo/cache/{96edc0764ed4ab77.tar.zst → ba6844de212fdfc5.tar.zst} +0 -0
- /package/.turbo/cache/{85f181c5a0ebfdc3.tar.zst → c4b442aa3a612c5a.tar.zst} +0 -0
- /package/.turbo/cache/{70e65d2581c9de95.tar.zst → cc999fcae80b9892.tar.zst} +0 -0
- /package/.turbo/cache/{3082b3a86c0f9b94.tar.zst → cf739f73c4d81043.tar.zst} +0 -0
- /package/.turbo/cache/{ea92743dea3b7023.tar.zst → d09e82feba2c48a3.tar.zst} +0 -0
- /package/.turbo/cache/{c1c7334875426ff3.tar.zst → d264bb58130e3915.tar.zst} +0 -0
- /package/.turbo/cache/{1c347bdf63624c8a.tar.zst → d4fda50b9aa326d9.tar.zst} +0 -0
- /package/.turbo/cache/{138466aaa06fa946.tar.zst → da0461631780f1e1.tar.zst} +0 -0
- /package/.turbo/cache/{075034ccdb82fbea.tar.zst → dbdfe30495790f74.tar.zst} +0 -0
- /package/.turbo/cache/{ac98992ca27cd36e.tar.zst → dea41fd4a13eb241.tar.zst} +0 -0
- /package/.turbo/cache/{6bfd7cffad1e6b8a.tar.zst → e229b033acee0336.tar.zst} +0 -0
- /package/.turbo/cache/{e64bd75c16c140f3.tar.zst → ed401f9a734e292c.tar.zst} +0 -0
- /package/.turbo/cache/{cf74604f39b00f11.tar.zst → f272ad05432871ac.tar.zst} +0 -0
|
@@ -0,0 +1,792 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const t$2=globalThis,e$4=t$2.ShadowRoot&&(undefined===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$4.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",undefined,s$2),i$5=(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$3(o,t,s$2)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2017 Google LLC
|
|
11
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(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$1=(t,s)=>!i$4(t,s),y$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.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$3(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$2(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$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$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$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$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$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright 2017 Google LLC
|
|
17
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
+
*/
|
|
19
|
+
const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(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$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$1?s$1.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$1:d>=0?(o.push(a),s.slice(0,d)+e$2+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$2)){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$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$2)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$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&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$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}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$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.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$1(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2017 Google LLC
|
|
24
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
+
*/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$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright 2020 Google LLC
|
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
+
*/
|
|
32
|
+
const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=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$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
|
|
33
|
+
|
|
34
|
+
var colorCss$1 = i$5``;
|
|
35
|
+
|
|
36
|
+
var styleCss$2 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, $ds-size-500)}#bodyContainer{overflow:auto;flex:1 1 100%;padding-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
37
|
+
|
|
38
|
+
var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15))}`;
|
|
39
|
+
|
|
40
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
41
|
+
// See LICENSE in the project root for license information.
|
|
42
|
+
|
|
43
|
+
// ---------------------------------------------------------------------
|
|
44
|
+
|
|
45
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
46
|
+
|
|
47
|
+
class AuroLibraryRuntimeUtils {
|
|
48
|
+
|
|
49
|
+
/* eslint-disable jsdoc/require-param */
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* This will register a new custom element with the browser.
|
|
53
|
+
* @param {String} name - The name of the custom element.
|
|
54
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
55
|
+
* @returns {void}
|
|
56
|
+
*/
|
|
57
|
+
registerComponent(name, componentClass) {
|
|
58
|
+
if (!customElements.get(name)) {
|
|
59
|
+
customElements.define(name, class extends componentClass {});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
65
|
+
* @returns {void}
|
|
66
|
+
*/
|
|
67
|
+
closestElement(
|
|
68
|
+
selector, // selector like in .closest()
|
|
69
|
+
base = this, // extra functionality to skip a parent
|
|
70
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
71
|
+
!el || el === document || el === window
|
|
72
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
73
|
+
: found
|
|
74
|
+
? found // found a selector INside this element
|
|
75
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
76
|
+
) {
|
|
77
|
+
return __Closest(base);
|
|
78
|
+
}
|
|
79
|
+
/* eslint-enable jsdoc/require-param */
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 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.
|
|
83
|
+
* @param {Object} elem - The element to check.
|
|
84
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
85
|
+
* @returns {void}
|
|
86
|
+
*/
|
|
87
|
+
handleComponentTagRename(elem, tagName) {
|
|
88
|
+
const tag = tagName.toLowerCase();
|
|
89
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
90
|
+
|
|
91
|
+
if (elemTag !== tag) {
|
|
92
|
+
elem.setAttribute(tag, true);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Validates if an element is a specific Auro component.
|
|
98
|
+
* @param {Object} elem - The element to validate.
|
|
99
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
100
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
101
|
+
*/
|
|
102
|
+
elementMatch(elem, tagName) {
|
|
103
|
+
const tag = tagName.toLowerCase();
|
|
104
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
105
|
+
|
|
106
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
111
|
+
// See LICENSE in the project root for license information.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class AuroDependencyVersioning {
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Generates a unique string to be used for child auro element naming.
|
|
118
|
+
* @private
|
|
119
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
120
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
121
|
+
* @returns {string} - Unique string to be used for naming.
|
|
122
|
+
*/
|
|
123
|
+
generateElementName(baseName, version) {
|
|
124
|
+
let result = baseName;
|
|
125
|
+
|
|
126
|
+
result += '-';
|
|
127
|
+
result += version.replace(/[.]/g, '_');
|
|
128
|
+
|
|
129
|
+
return result;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Generates a unique string to be used for child auro element naming.
|
|
134
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
135
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
136
|
+
* @returns {string} - Unique string to be used for naming.
|
|
137
|
+
*/
|
|
138
|
+
generateTag(baseName, version, tagClass) {
|
|
139
|
+
const elementName = this.generateElementName(baseName, version);
|
|
140
|
+
const tag = i$1`${s(elementName)}`;
|
|
141
|
+
|
|
142
|
+
if (!customElements.get(elementName)) {
|
|
143
|
+
customElements.define(elementName, class extends tagClass {});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return tag;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @license
|
|
152
|
+
* Copyright 2017 Google LLC
|
|
153
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
154
|
+
*/
|
|
155
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});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)}}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @license
|
|
159
|
+
* Copyright 2018 Google LLC
|
|
160
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
161
|
+
*/const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @license
|
|
165
|
+
* Copyright 2018 Google LLC
|
|
166
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
|
+
*/const o=o=>o??E;
|
|
168
|
+
|
|
169
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
170
|
+
// See LICENSE in the project root for license information.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
|
|
175
|
+
* @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
|
|
176
|
+
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
class AuroElement extends r {
|
|
180
|
+
|
|
181
|
+
// function to define props used within the scope of this component
|
|
182
|
+
static get properties() {
|
|
183
|
+
return {
|
|
184
|
+
hidden: { type: Boolean,
|
|
185
|
+
reflect: true },
|
|
186
|
+
hiddenVisually: { type: Boolean,
|
|
187
|
+
reflect: true },
|
|
188
|
+
hiddenAudible: { type: Boolean,
|
|
189
|
+
reflect: true },
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @private Function that determines state of aria-hidden
|
|
195
|
+
*/
|
|
196
|
+
hideAudible(value) {
|
|
197
|
+
if (value) {
|
|
198
|
+
return 'true'
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return 'false'
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
206
|
+
|
|
207
|
+
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
208
|
+
|
|
209
|
+
const _fetchMap = new Map();
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* A callback to parse Response body.
|
|
213
|
+
*
|
|
214
|
+
* @callback ResponseParser
|
|
215
|
+
* @param {Fetch.Response} response
|
|
216
|
+
* @returns {Promise}
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* A minimal in-memory map to de-duplicate Fetch API media requests.
|
|
221
|
+
*
|
|
222
|
+
* @param {String} uri
|
|
223
|
+
* @param {Object} [options={}]
|
|
224
|
+
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
225
|
+
* @returns {Promise}
|
|
226
|
+
*/
|
|
227
|
+
const cacheFetch = (uri, options = {}) => {
|
|
228
|
+
const responseParser = options.responseParser || ((response) => response.text());
|
|
229
|
+
if (!_fetchMap.has(uri)) {
|
|
230
|
+
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
231
|
+
}
|
|
232
|
+
return _fetchMap.get(uri);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
var styleCss$1 = i$5`*,*: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}`;
|
|
236
|
+
|
|
237
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
238
|
+
// See LICENSE in the project root for license information.
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
242
|
+
/**
|
|
243
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
244
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
// build the component class
|
|
248
|
+
class BaseIcon extends AuroElement {
|
|
249
|
+
constructor() {
|
|
250
|
+
super();
|
|
251
|
+
this.onDark = false;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// function to define props used within the scope of this component
|
|
255
|
+
static get properties() {
|
|
256
|
+
return {
|
|
257
|
+
...super.properties,
|
|
258
|
+
onDark: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
reflect: true
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @private
|
|
265
|
+
*/
|
|
266
|
+
svg: {
|
|
267
|
+
attribute: false,
|
|
268
|
+
reflect: true
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
static get styles() {
|
|
274
|
+
return i$5`
|
|
275
|
+
${styleCss$1}
|
|
276
|
+
`;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Async function to fetch requested icon from npm CDN.
|
|
281
|
+
* @private
|
|
282
|
+
* @param {string} category - Icon category.
|
|
283
|
+
* @param {string} name - Icon name.
|
|
284
|
+
* @returns {SVGElement} DOM - Ready HTML to be appended.
|
|
285
|
+
*/
|
|
286
|
+
async fetchIcon(category, name) {
|
|
287
|
+
let iconHTML = '';
|
|
288
|
+
|
|
289
|
+
if (category === 'logos') {
|
|
290
|
+
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
291
|
+
} else {
|
|
292
|
+
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
296
|
+
|
|
297
|
+
return dom.body.querySelector('svg');
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// lifecycle function
|
|
301
|
+
async firstUpdated() {
|
|
302
|
+
if (!this.customSvg) {
|
|
303
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
304
|
+
|
|
305
|
+
if (svg) {
|
|
306
|
+
this.svg = svg;
|
|
307
|
+
} else if (!svg) {
|
|
308
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
309
|
+
|
|
310
|
+
this.svg = penDOM.body.firstChild;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
var tokensCss = i$5`: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)}`;
|
|
317
|
+
|
|
318
|
+
var colorCss = i$5`: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)}`;
|
|
319
|
+
|
|
320
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
321
|
+
// See LICENSE in the project root for license information.
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
325
|
+
/**
|
|
326
|
+
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
327
|
+
*
|
|
328
|
+
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
329
|
+
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
330
|
+
* @attr {Boolean} customColor - Removes primary selector.
|
|
331
|
+
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
332
|
+
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
333
|
+
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
334
|
+
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
335
|
+
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
336
|
+
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
337
|
+
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
338
|
+
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
339
|
+
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
340
|
+
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
341
|
+
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
342
|
+
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
343
|
+
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
344
|
+
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
345
|
+
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
346
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
347
|
+
* @slot svg - Used for custom SVG content.
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
// build the component class
|
|
351
|
+
class AuroIcon extends BaseIcon {
|
|
352
|
+
constructor() {
|
|
353
|
+
super();
|
|
354
|
+
|
|
355
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
356
|
+
|
|
357
|
+
this.privateDefaults();
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Internal Defaults.
|
|
362
|
+
* @private
|
|
363
|
+
* @returns {void}
|
|
364
|
+
*/
|
|
365
|
+
privateDefaults() {
|
|
366
|
+
this.accent = false;
|
|
367
|
+
this.customColor = false;
|
|
368
|
+
this.customSvg = false;
|
|
369
|
+
this.disabled = false;
|
|
370
|
+
this.emphasis = false;
|
|
371
|
+
this.error = false;
|
|
372
|
+
this.info = false;
|
|
373
|
+
this.label = false;
|
|
374
|
+
this.primary = false;
|
|
375
|
+
this.secondary = false;
|
|
376
|
+
this.subtle = false;
|
|
377
|
+
this.success = false;
|
|
378
|
+
this.tertiary = false;
|
|
379
|
+
this.warning = false;
|
|
380
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// function to define props used within the scope of this component
|
|
384
|
+
static get properties() {
|
|
385
|
+
return {
|
|
386
|
+
...super.properties,
|
|
387
|
+
accent: {
|
|
388
|
+
type: Boolean,
|
|
389
|
+
reflect: true
|
|
390
|
+
},
|
|
391
|
+
ariaHidden: {
|
|
392
|
+
type: String,
|
|
393
|
+
reflect: true
|
|
394
|
+
},
|
|
395
|
+
category: {
|
|
396
|
+
type: String,
|
|
397
|
+
reflect: true
|
|
398
|
+
},
|
|
399
|
+
customColor: {
|
|
400
|
+
type: Boolean
|
|
401
|
+
},
|
|
402
|
+
customSvg: {
|
|
403
|
+
type: Boolean
|
|
404
|
+
},
|
|
405
|
+
disabled: {
|
|
406
|
+
type: Boolean,
|
|
407
|
+
reflect: true
|
|
408
|
+
},
|
|
409
|
+
emphasis: {
|
|
410
|
+
type: Boolean,
|
|
411
|
+
reflect: true
|
|
412
|
+
},
|
|
413
|
+
error: {
|
|
414
|
+
type: Boolean,
|
|
415
|
+
reflect: true
|
|
416
|
+
},
|
|
417
|
+
info: {
|
|
418
|
+
type: Boolean,
|
|
419
|
+
reflect: true
|
|
420
|
+
},
|
|
421
|
+
label: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
reflect: true
|
|
424
|
+
},
|
|
425
|
+
name: {
|
|
426
|
+
type: String,
|
|
427
|
+
reflect: true
|
|
428
|
+
},
|
|
429
|
+
primary: {
|
|
430
|
+
type: Boolean,
|
|
431
|
+
reflect: true
|
|
432
|
+
},
|
|
433
|
+
secondary: {
|
|
434
|
+
type: Boolean,
|
|
435
|
+
reflect: true
|
|
436
|
+
},
|
|
437
|
+
subtle: {
|
|
438
|
+
type: Boolean,
|
|
439
|
+
reflect: true
|
|
440
|
+
},
|
|
441
|
+
success: {
|
|
442
|
+
type: Boolean,
|
|
443
|
+
reflect: true
|
|
444
|
+
},
|
|
445
|
+
tertiary: {
|
|
446
|
+
type: Boolean,
|
|
447
|
+
reflect: true
|
|
448
|
+
},
|
|
449
|
+
uri: {
|
|
450
|
+
type: String
|
|
451
|
+
},
|
|
452
|
+
warning: {
|
|
453
|
+
type: Boolean,
|
|
454
|
+
reflect: true
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
static get styles() {
|
|
460
|
+
return [
|
|
461
|
+
super.styles,
|
|
462
|
+
i$5`${tokensCss}`,
|
|
463
|
+
i$5`${styleCss$1}`,
|
|
464
|
+
i$5`${colorCss}`
|
|
465
|
+
];
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* This will register this element with the browser.
|
|
470
|
+
* @param {string} [name="auro-icon"] - The name of element that you want to register to.
|
|
471
|
+
*
|
|
472
|
+
* @example
|
|
473
|
+
* AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
|
|
474
|
+
*
|
|
475
|
+
*/
|
|
476
|
+
static register(name = "auro-icon") {
|
|
477
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
connectedCallback() {
|
|
481
|
+
super.connectedCallback();
|
|
482
|
+
|
|
483
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
484
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
489
|
+
*/
|
|
490
|
+
exposeCssParts() {
|
|
491
|
+
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
495
|
+
render() {
|
|
496
|
+
const a11y = {
|
|
497
|
+
'labelContainer': true,
|
|
498
|
+
'util_displayHiddenVisually': !this.label
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
const classes = {
|
|
502
|
+
'label': this.label,
|
|
503
|
+
'wrapper': true,
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
return x`
|
|
507
|
+
<div
|
|
508
|
+
class="${e(classes)}"
|
|
509
|
+
title="${o(this.title || undefined)}">
|
|
510
|
+
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
511
|
+
${this.customSvg ? x`
|
|
512
|
+
<slot name="svg"></slot>
|
|
513
|
+
` : x`
|
|
514
|
+
${this.svg}
|
|
515
|
+
`
|
|
516
|
+
}
|
|
517
|
+
</span>
|
|
518
|
+
|
|
519
|
+
<div class="${e(a11y)}">
|
|
520
|
+
<slot></slot>
|
|
521
|
+
</div>
|
|
522
|
+
</div>
|
|
523
|
+
`;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
var iconVersion = '6.1.2';
|
|
528
|
+
|
|
529
|
+
var styleCss = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
530
|
+
|
|
531
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
532
|
+
// See LICENSE in the project root for license information.
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
537
|
+
*
|
|
538
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
539
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
540
|
+
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
541
|
+
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
542
|
+
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
543
|
+
*/
|
|
544
|
+
|
|
545
|
+
/* eslint complexity: ["error", 21] */
|
|
546
|
+
|
|
547
|
+
// build the component class
|
|
548
|
+
class AuroHeader extends r {
|
|
549
|
+
constructor() {
|
|
550
|
+
super();
|
|
551
|
+
|
|
552
|
+
this.display = 'display';
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* @private
|
|
556
|
+
*/
|
|
557
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// function to define props used within the scope of this component
|
|
561
|
+
static get properties() {
|
|
562
|
+
return {
|
|
563
|
+
level: { type: String },
|
|
564
|
+
display: {
|
|
565
|
+
type: String,
|
|
566
|
+
reflect: true
|
|
567
|
+
},
|
|
568
|
+
color: { type: String },
|
|
569
|
+
margin: { type: String },
|
|
570
|
+
size: { type: String }
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
static get styles() {
|
|
575
|
+
return [styleCss];
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* This will register this element with the browser.
|
|
580
|
+
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
581
|
+
*
|
|
582
|
+
* @example
|
|
583
|
+
* AuroHeader.register("custom-header") // this will register this element to <custom-header/>
|
|
584
|
+
*
|
|
585
|
+
*/
|
|
586
|
+
static register(name = "auro-header") {
|
|
587
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
firstUpdated() {
|
|
591
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
592
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-header');
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Determines if the spacing is to be applied uniform or individual.
|
|
597
|
+
* @private
|
|
598
|
+
* @param {string} size - Accepts string for size definition.
|
|
599
|
+
* @returns {string} - Returns either selectors or function.
|
|
600
|
+
*/
|
|
601
|
+
spacingDecision(size) {
|
|
602
|
+
if (this.margin === 'both') {
|
|
603
|
+
switch (size) {
|
|
604
|
+
case 'none': return `util_stackMarginnone--top util_stackMarginnone--bottom`;
|
|
605
|
+
case '25': return `util_stackMargin25--top util_stackMargin25--bottom`;
|
|
606
|
+
case '50': return `util_stackMargin50--top util_stackMargin50--bottom`;
|
|
607
|
+
case '100': return `util_stackMargin100--top util_stackMargin100--bottom`;
|
|
608
|
+
case '150': return `util_stackMargin150--top util_stackMargin150--bottom`;
|
|
609
|
+
case '200': return `util_stackMargin200--top util_stackMargin200--bottom`;
|
|
610
|
+
case '300': return `util_stackMargin300--top util_stackMargin300--bottom`;
|
|
611
|
+
case '400': return `util_stackMargin400--top util_stackMargin400--bottom`;
|
|
612
|
+
case '600': return `util_stackMargin600--top util_stackMargin600--bottom`;
|
|
613
|
+
case '800': return `util_stackMargin800--top util_stackMargin800--bottom`;
|
|
614
|
+
default: return '';
|
|
615
|
+
}
|
|
616
|
+
} else {
|
|
617
|
+
return this.spacingApplied(size);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* If spacing is individual, return will be single selector based on input.
|
|
623
|
+
* @private
|
|
624
|
+
* @param {string} size - Accepts string for size definition.
|
|
625
|
+
* @returns {string} - Returns selector.
|
|
626
|
+
*/
|
|
627
|
+
spacingApplied(size) {
|
|
628
|
+
switch (size) {
|
|
629
|
+
case 'none': return `util_stackMarginnone--${this.margin}`;
|
|
630
|
+
case '25': return `util_stackMargin25--${this.margin}`;
|
|
631
|
+
case '50': return `util_stackMargin50--${this.margin}`;
|
|
632
|
+
case '100': return `util_stackMargin100--${this.margin}`;
|
|
633
|
+
case '150': return `util_stackMargin150--${this.margin}`;
|
|
634
|
+
case '200': return `util_stackMargin200--${this.margin}`;
|
|
635
|
+
case '300': return `util_stackMargin300--${this.margin}`;
|
|
636
|
+
case '400': return `util_stackMargin400--${this.margin}`;
|
|
637
|
+
case '600': return `util_stackMarginX600--${this.margin}`;
|
|
638
|
+
case '800': return `util_stackMargin800--${this.margin}`;
|
|
639
|
+
default: return '';
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Creates HTML template for use in render function.
|
|
645
|
+
* @private
|
|
646
|
+
* @param {string} level - Accepts string value.
|
|
647
|
+
* @returns {string} - Returns HTML template.
|
|
648
|
+
*/
|
|
649
|
+
template(level) {
|
|
650
|
+
if (this.display === '' || this.display === null) {
|
|
651
|
+
this.display = 'display';
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
switch (level) {
|
|
655
|
+
case '2': return x`<h2 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h2>`;
|
|
656
|
+
case '3': return x`<h3 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h3>`;
|
|
657
|
+
case '4': return x`<h4 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h4>`;
|
|
658
|
+
case '5': return x`<h5 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h5>`;
|
|
659
|
+
case '6': return x`<h6 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h6>`;
|
|
660
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
664
|
+
|
|
665
|
+
render() {
|
|
666
|
+
return this.template(this.level);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
var headerVersion = '3.0.0';
|
|
671
|
+
|
|
672
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
673
|
+
// See LICENSE in the project root for license information.
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
class AuroBibtemplate extends r {
|
|
677
|
+
|
|
678
|
+
constructor() {
|
|
679
|
+
super();
|
|
680
|
+
|
|
681
|
+
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
682
|
+
|
|
683
|
+
const versioning = new AuroDependencyVersioning();
|
|
684
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
685
|
+
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
static get styles() {
|
|
689
|
+
return [
|
|
690
|
+
colorCss$1,
|
|
691
|
+
styleCss$2,
|
|
692
|
+
tokenCss
|
|
693
|
+
];
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// function to define props used within the scope of this component
|
|
697
|
+
static get properties() {
|
|
698
|
+
return {
|
|
699
|
+
isFullscreen: {
|
|
700
|
+
type: Boolean,
|
|
701
|
+
reflect: true,
|
|
702
|
+
},
|
|
703
|
+
large: {
|
|
704
|
+
type: Boolean,
|
|
705
|
+
reflect: true,
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
// function to define props used within the scope of this component
|
|
711
|
+
/**
|
|
712
|
+
* This will register this element with the browser.
|
|
713
|
+
* @param {string} [name="auro-bibtemplate"] - The name of element that you want to register to.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* AuroCheckbox.register("custom-bibtemplate") // this will register this element to <custom-bibtemplate/>
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
719
|
+
static register(name = "auro-bibtemplate") {
|
|
720
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Prevents scrolling of the body when touching empty areas of the component.
|
|
725
|
+
* @param {Event} event - The touchmove event.
|
|
726
|
+
* @returns {void}
|
|
727
|
+
*/
|
|
728
|
+
preventBodyScroll(event) {
|
|
729
|
+
if (event.target === this) {
|
|
730
|
+
event.preventDefault();
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
connectedCallback() {
|
|
735
|
+
super.connectedCallback();
|
|
736
|
+
|
|
737
|
+
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
738
|
+
this.addEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
disconnectedCallback() {
|
|
742
|
+
super.disconnectedCallback();
|
|
743
|
+
|
|
744
|
+
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
onCloseButtonClick() {
|
|
748
|
+
this.dispatchEvent(new Event("close-click", { bubbles: true,
|
|
749
|
+
composed: true }));
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Exposes CSS parts for styling from parent components.
|
|
754
|
+
* @returns {void}
|
|
755
|
+
*/
|
|
756
|
+
exposeCssParts() {
|
|
757
|
+
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
761
|
+
render() {
|
|
762
|
+
return u`
|
|
763
|
+
<div id="bibTemplate" part="bibtemplate">
|
|
764
|
+
${this.isFullscreen ? u`
|
|
765
|
+
<div id="headerContainer">
|
|
766
|
+
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
767
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
768
|
+
</button>
|
|
769
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header">
|
|
770
|
+
<slot name="header"></slot>
|
|
771
|
+
</${this.headerTag}>
|
|
772
|
+
<span id="subheader">
|
|
773
|
+
<slot name="subheader"></slot>
|
|
774
|
+
</span>
|
|
775
|
+
</div>` : null}
|
|
776
|
+
|
|
777
|
+
<div id="bodyContainer">
|
|
778
|
+
<slot></slot>
|
|
779
|
+
</div>
|
|
780
|
+
|
|
781
|
+
${this.isFullscreen ? u`
|
|
782
|
+
<div id="footerContainer">
|
|
783
|
+
<slot name="footer"></slot>
|
|
784
|
+
</div>` : null}
|
|
785
|
+
</div>
|
|
786
|
+
`;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
AuroBibtemplate.register();
|
|
791
|
+
|
|
792
|
+
export { AuroBibtemplate };
|