@aurodesignsystem/auro-formkit 2.0.0-beta.8 → 2.0.0
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/CHANGELOG.md +857 -0
- package/NOTICE +2 -0
- package/README.md +95 -6
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +38 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
- package/components/bibtemplate/dist/index.d.ts +2 -0
- package/components/bibtemplate/dist/index.js +791 -0
- package/components/bibtemplate/dist/registered.js +791 -0
- package/components/{input/dist/styles/helpText-css.d.ts → bibtemplate/dist/styles/color-css.d.ts} +0 -1
- package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
- package/components/checkbox/README.md +56 -93
- package/components/checkbox/demo/api.md +5 -4
- package/components/checkbox/demo/api.min.js +431 -81
- package/components/checkbox/demo/index.html +49 -0
- package/components/checkbox/demo/index.md +0 -45
- package/components/checkbox/demo/index.min.js +431 -81
- package/components/checkbox/demo/readme.html +49 -0
- package/components/checkbox/demo/readme.md +142 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +10 -2
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -5
- package/components/checkbox/dist/helptextVersion.d.ts +2 -0
- package/components/checkbox/dist/index.d.ts +0 -1
- package/components/checkbox/dist/index.js +431 -84
- package/components/checkbox/dist/registered.js +1279 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -1
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -1
- package/components/checkbox/dist/styles/color-css.d.ts +0 -1
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -1
- package/components/checkbox/dist/styles/tokens-css.d.ts +0 -1
- package/components/combobox/README.md +58 -101
- package/components/combobox/demo/api.js +1 -1
- package/components/combobox/demo/api.md +116 -32
- package/components/combobox/demo/api.min.js +8225 -3872
- package/components/combobox/demo/index.html +57 -0
- package/components/combobox/demo/index.js +1 -1
- package/components/combobox/demo/index.md +17 -54
- package/components/combobox/demo/index.min.js +8222 -3869
- package/components/combobox/demo/readme.html +49 -0
- package/components/combobox/demo/readme.md +152 -0
- package/components/combobox/dist/auro-combobox.d.ts +123 -76
- package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
- package/components/combobox/dist/{formkit/auro-dropdownVersion.d.ts → dropdownVersion.d.ts} +0 -1
- package/components/combobox/dist/index.d.ts +0 -1
- package/components/combobox/dist/index.js +7570 -3533
- package/components/combobox/dist/{formkit/auro-inputVersion.d.ts → inputVersion.d.ts} +0 -1
- package/components/combobox/dist/registered.js +12271 -0
- package/components/combobox/dist/styles/style-css.d.ts +0 -1
- package/components/counter/README.md +146 -0
- package/components/counter/demo/api.js +5 -1
- package/components/counter/demo/api.md +371 -962
- package/components/counter/demo/api.min.js +6205 -40
- package/components/counter/demo/index.html +52 -0
- package/components/counter/demo/index.js +3 -3
- package/components/counter/demo/index.md +148 -0
- package/components/counter/demo/index.min.js +6191 -19
- package/components/counter/demo/readme.html +49 -0
- package/components/counter/demo/readme.md +146 -0
- package/components/counter/dist/auro-counter-button.d.ts +12 -0
- package/components/counter/dist/auro-counter-group.d.ts +168 -5
- package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
- package/components/counter/dist/auro-counter.d.ts +91 -1
- package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
- package/components/{select/dist/formkit/auro-dropdownVersion.d.ts → counter/dist/dropdownVersion.d.ts} +0 -1
- package/components/counter/dist/iconVersion.d.ts +2 -0
- package/components/counter/dist/index.d.ts +0 -1
- package/components/counter/dist/index.js +6162 -38
- package/components/counter/dist/registered.js +6235 -0
- package/components/counter/dist/styles/color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +0 -1
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
- package/components/counter/dist/styles/style-css.d.ts +0 -1
- package/components/counter/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/README.md +59 -95
- package/components/datepicker/demo/api.js +3 -3
- package/components/datepicker/demo/api.md +259 -144
- package/components/datepicker/demo/api.min.js +6495 -2575
- package/components/datepicker/demo/index.html +57 -0
- package/components/datepicker/demo/index.md +9 -42
- package/components/datepicker/demo/index.min.js +6483 -2562
- package/components/datepicker/demo/readme.html +49 -0
- package/components/datepicker/demo/readme.md +140 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -1
- package/components/datepicker/dist/auro-calendar-month.d.ts +15 -1
- package/components/datepicker/dist/auro-calendar.d.ts +25 -2
- package/components/datepicker/dist/auro-datepicker.d.ts +42 -13
- package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -1
- package/components/datepicker/dist/index.d.ts +0 -1
- package/components/datepicker/dist/index.js +6481 -2562
- package/components/datepicker/dist/{formkit/auro-inputVersion.d.ts → inputVersion.d.ts} +0 -1
- package/components/datepicker/dist/popoverVersion.d.ts +0 -1
- package/components/datepicker/dist/registered.js +22468 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -1
- package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -1
- package/components/datepicker/dist/styles/color-css.d.ts +0 -1
- package/components/datepicker/dist/styles/color-month-css.d.ts +0 -1
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -1
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -1
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -1
- package/components/datepicker/dist/styles/style-css.d.ts +0 -1
- package/components/datepicker/dist/styles/tokens-css.d.ts +0 -1
- package/components/datepicker/dist/utilities.d.ts +25 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +2 -2
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +2 -3
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -1
- package/components/dropdown/README.md +56 -92
- package/components/dropdown/demo/api.js +1 -1
- package/components/dropdown/demo/api.md +43 -29
- package/components/dropdown/demo/api.min.js +558 -157
- package/components/dropdown/demo/index.html +53 -0
- package/components/dropdown/demo/index.js +0 -3
- package/components/dropdown/demo/index.md +1 -60
- package/components/dropdown/demo/index.min.js +558 -160
- package/components/dropdown/demo/readme.html +49 -0
- package/components/dropdown/demo/readme.md +144 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +38 -7
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -2
- package/components/{datepicker/dist/formkit/auro-dropdownVersion.d.ts → dropdown/dist/dropdownVersion.d.ts} +0 -1
- package/components/dropdown/dist/helptextVersion.d.ts +2 -0
- package/components/dropdown/dist/iconVersion.d.ts +0 -1
- package/components/dropdown/dist/index.d.ts +0 -1
- package/components/dropdown/dist/index.js +558 -159
- package/components/dropdown/dist/registered.js +3365 -0
- package/components/dropdown/dist/styles/bibColors-css.d.ts +0 -1
- package/components/dropdown/dist/styles/bibStyles-css.d.ts +0 -1
- package/components/dropdown/dist/styles/color-css.d.ts +0 -1
- package/components/dropdown/dist/styles/style-css.d.ts +0 -1
- package/components/dropdown/dist/styles/tokens-css.d.ts +0 -1
- package/components/form/README.md +66 -98
- package/components/form/demo/api.js +1 -1
- package/components/form/demo/api.min.js +497 -25
- package/components/form/demo/index.html +48 -0
- package/components/form/demo/index.md +94 -25
- package/components/form/demo/index.min.js +497 -25
- package/components/form/demo/readme.html +49 -0
- package/components/form/demo/readme.md +146 -0
- package/components/form/demo/registerDemoDeps.js +22 -0
- package/components/form/demo/working.html +117 -0
- package/components/form/dist/auro-form.d.ts +194 -3
- package/components/form/dist/index.d.ts +0 -1
- package/components/form/dist/index.js +497 -27
- package/components/form/dist/registered.d.ts +1 -0
- package/components/form/dist/registered.js +632 -0
- package/components/form/dist/styles/style-css.d.ts +0 -1
- package/components/helptext/dist/auro-helptext.d.ts +53 -0
- package/components/helptext/dist/index.d.ts +2 -0
- package/components/helptext/dist/index.js +224 -0
- package/components/helptext/dist/registered.js +224 -0
- package/components/helptext/dist/styles/color-css.d.ts +2 -0
- package/components/helptext/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/README.md +56 -87
- package/components/input/demo/api.md +91 -90
- package/components/input/demo/api.min.js +4216 -1781
- package/components/input/demo/index.html +41 -0
- package/components/input/demo/index.md +2 -33
- package/components/input/demo/index.min.js +4217 -1782
- package/components/input/demo/readme.html +49 -0
- package/components/input/demo/readme.md +135 -0
- package/components/input/dist/auro-input.d.ts +4 -2
- package/components/input/dist/base-input.d.ts +49 -16
- package/components/input/dist/buttonVersion.d.ts +0 -1
- package/components/input/dist/helptextVersion.d.ts +2 -0
- package/components/input/dist/i18n.d.ts +0 -1
- package/components/input/dist/iconVersion.d.ts +0 -1
- package/components/input/dist/index.d.ts +0 -1
- package/components/input/dist/index.js +4216 -1783
- package/components/input/dist/registered.js +6592 -0
- package/components/input/dist/styles/borders-css.d.ts +0 -1
- package/components/input/dist/styles/color-css.d.ts +0 -1
- package/components/input/dist/styles/input-css.d.ts +0 -1
- package/components/input/dist/styles/label-css.d.ts +0 -1
- package/components/input/dist/styles/mixins-css.d.ts +0 -1
- package/components/input/dist/styles/notificationIcons-css.d.ts +0 -1
- package/components/input/dist/styles/style-css.d.ts +0 -1
- package/components/input/dist/styles/tokens-css.d.ts +0 -1
- package/components/input/dist/utilities.d.ts +25 -0
- package/components/menu/README.md +56 -93
- package/components/menu/demo/api.js +1 -1
- package/components/menu/demo/api.md +57 -20
- package/components/menu/demo/api.min.js +629 -315
- package/components/menu/demo/index.html +50 -0
- package/components/menu/demo/index.md +1 -44
- package/components/menu/demo/index.min.js +627 -313
- package/components/menu/demo/readme.html +49 -0
- package/components/menu/demo/readme.md +145 -0
- package/components/menu/dist/auro-menu-utils.d.ts +42 -0
- package/components/menu/dist/auro-menu.d.ts +97 -82
- package/components/menu/dist/auro-menuoption.d.ts +0 -1
- package/components/menu/dist/dropdownVersion.d.ts +2 -0
- package/components/menu/dist/iconVersion.d.ts +0 -1
- package/components/menu/dist/index.d.ts +1 -1
- package/components/menu/dist/index.js +628 -317
- package/components/menu/dist/registered.js +1510 -0
- package/components/menu/dist/styles/color-menu-css.d.ts +0 -1
- package/components/menu/dist/styles/color-menuoption-css.d.ts +0 -1
- package/components/menu/dist/styles/style-menu-css.d.ts +0 -1
- package/components/menu/dist/styles/style-menuoption-css.d.ts +0 -1
- package/components/menu/dist/styles/tokens-css.d.ts +0 -1
- package/components/radio/README.md +56 -87
- package/components/radio/demo/api.md +9 -8
- package/components/radio/demo/api.min.js +428 -74
- package/components/radio/demo/index.html +48 -0
- package/components/radio/demo/index.md +0 -45
- package/components/radio/demo/index.min.js +428 -74
- package/components/radio/demo/readme.html +49 -0
- package/components/radio/demo/readme.md +137 -0
- package/components/radio/dist/auro-radio-group.d.ts +12 -3
- package/components/radio/dist/auro-radio.d.ts +0 -1
- package/components/radio/dist/helptextVersion.d.ts +2 -0
- package/components/radio/dist/index.d.ts +0 -1
- package/components/radio/dist/index.js +428 -77
- package/components/radio/dist/registered.js +1396 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -1
- package/components/radio/dist/styles/color-css.d.ts +0 -1
- package/components/radio/dist/styles/groupColor-css.d.ts +0 -1
- package/components/radio/dist/styles/style-css.d.ts +0 -1
- package/components/radio/dist/styles/tokens-css.d.ts +0 -1
- package/components/select/README.md +58 -99
- package/components/select/demo/api.js +1 -1
- package/components/select/demo/api.md +149 -32
- package/components/select/demo/api.min.js +2597 -782
- package/components/select/demo/index.html +49 -0
- package/components/select/demo/index.js +1 -1
- package/components/select/demo/index.md +18 -51
- package/components/select/demo/index.min.js +2604 -789
- package/components/select/demo/readme.html +49 -0
- package/components/select/demo/readme.md +143 -0
- package/components/select/dist/auro-select.d.ts +60 -8
- package/components/select/dist/bibtemplateVersion.d.ts +2 -0
- package/components/select/dist/dropdownVersion.d.ts +2 -0
- package/components/select/dist/index.d.ts +0 -1
- package/components/select/dist/index.js +1966 -467
- package/components/select/dist/registered.js +5426 -0
- package/components/select/dist/styles/color-css.d.ts +0 -1
- package/components/select/dist/styles/style-css.d.ts +0 -1
- package/components/select/dist/styles/tokens-css.d.ts +0 -1
- package/package.json +121 -48
- package/packages/build-tools/src/postinstall.mjs +8 -0
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -3
- package/.turbo/cache/06845874cc82b186-meta.json +0 -1
- package/.turbo/cache/06845874cc82b186.tar.zst +0 -0
- package/.turbo/cache/0a96f136af026d57-meta.json +0 -1
- package/.turbo/cache/0a96f136af026d57.tar.zst +0 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +0 -1
- package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
- package/.turbo/cache/0c9ee13a7c863709-meta.json +0 -1
- package/.turbo/cache/0c9ee13a7c863709.tar.zst +0 -0
- package/.turbo/cache/0ca9c5ccf3e90704-meta.json +0 -1
- package/.turbo/cache/0ca9c5ccf3e90704.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +0 -1
- package/.turbo/cache/18129dba20f51b6b.tar.zst +0 -0
- package/.turbo/cache/1a8d6e4cab38121a-meta.json +0 -1
- package/.turbo/cache/1a8d6e4cab38121a.tar.zst +0 -0
- package/.turbo/cache/1ce32edb29492636-meta.json +0 -1
- package/.turbo/cache/1ce32edb29492636.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +0 -1
- package/.turbo/cache/2787020e69f50af2.tar.zst +0 -0
- package/.turbo/cache/2ec1b6d23563659e-meta.json +0 -1
- package/.turbo/cache/2ec1b6d23563659e.tar.zst +0 -0
- package/.turbo/cache/3afc5b2ea7c1bf51-meta.json +0 -1
- package/.turbo/cache/3afc5b2ea7c1bf51.tar.zst +0 -0
- package/.turbo/cache/3cd8fc5f388323db-meta.json +0 -1
- package/.turbo/cache/3cd8fc5f388323db.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +0 -1
- package/.turbo/cache/4006a206400d5c7b.tar.zst +0 -0
- package/.turbo/cache/40de011abc31c0cf-meta.json +0 -1
- package/.turbo/cache/40de011abc31c0cf.tar.zst +0 -0
- package/.turbo/cache/426c825f57054f5f-meta.json +0 -1
- package/.turbo/cache/426c825f57054f5f.tar.zst +0 -0
- package/.turbo/cache/4524aae614598308-meta.json +0 -1
- package/.turbo/cache/4524aae614598308.tar.zst +0 -0
- package/.turbo/cache/45ea3e30ae949d53-meta.json +0 -1
- package/.turbo/cache/45ea3e30ae949d53.tar.zst +0 -0
- package/.turbo/cache/492dda333b8d15f1-meta.json +0 -1
- package/.turbo/cache/492dda333b8d15f1.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +0 -1
- package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +0 -1
- package/.turbo/cache/51eaa58d5c167de8.tar.zst +0 -0
- package/.turbo/cache/577d86e4072c01f5-meta.json +0 -1
- package/.turbo/cache/577d86e4072c01f5.tar.zst +0 -0
- package/.turbo/cache/5aadae8d3f94202e-meta.json +0 -1
- package/.turbo/cache/5aadae8d3f94202e.tar.zst +0 -0
- package/.turbo/cache/5d770c787aa78d4d-meta.json +0 -1
- package/.turbo/cache/5d770c787aa78d4d.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +0 -1
- package/.turbo/cache/60ad74320c682a2b.tar.zst +0 -0
- package/.turbo/cache/61e218aba69cff58-meta.json +0 -1
- package/.turbo/cache/61e218aba69cff58.tar.zst +0 -0
- package/.turbo/cache/624bf5350aacae42-meta.json +0 -1
- package/.turbo/cache/624bf5350aacae42.tar.zst +0 -0
- package/.turbo/cache/68060c79df03f45a-meta.json +0 -1
- package/.turbo/cache/68060c79df03f45a.tar.zst +0 -0
- package/.turbo/cache/68e3afb31feab4e9-meta.json +0 -1
- package/.turbo/cache/68e3afb31feab4e9.tar.zst +0 -0
- package/.turbo/cache/6a1c28febca6163f-meta.json +0 -1
- package/.turbo/cache/6a1c28febca6163f.tar.zst +0 -0
- package/.turbo/cache/6bc4e2d881af6ffb-meta.json +0 -1
- package/.turbo/cache/6bc4e2d881af6ffb.tar.zst +0 -0
- package/.turbo/cache/6c8ea74dc3b07640-meta.json +0 -1
- package/.turbo/cache/6c8ea74dc3b07640.tar.zst +0 -0
- package/.turbo/cache/71dbeaf0706c12fe-meta.json +0 -1
- package/.turbo/cache/71dbeaf0706c12fe.tar.zst +0 -0
- package/.turbo/cache/7445df6e7feed2a7-meta.json +0 -1
- package/.turbo/cache/7445df6e7feed2a7.tar.zst +0 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +0 -1
- package/.turbo/cache/77da375a012de9d0.tar.zst +0 -0
- package/.turbo/cache/7a6ef918375d4010-meta.json +0 -1
- package/.turbo/cache/7a6ef918375d4010.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +0 -1
- package/.turbo/cache/7bf2b06a479d0b30.tar.zst +0 -0
- package/.turbo/cache/7da23884069695e6-meta.json +0 -1
- package/.turbo/cache/7da23884069695e6.tar.zst +0 -0
- package/.turbo/cache/7f3b42ddf36d0158-meta.json +0 -1
- package/.turbo/cache/7f3b42ddf36d0158.tar.zst +0 -0
- package/.turbo/cache/83e1029b14af6545-meta.json +0 -1
- package/.turbo/cache/83e1029b14af6545.tar.zst +0 -0
- package/.turbo/cache/8410cd8eeadc3af7-meta.json +0 -1
- package/.turbo/cache/8410cd8eeadc3af7.tar.zst +0 -0
- package/.turbo/cache/98936c69a55361fc-meta.json +0 -1
- package/.turbo/cache/98936c69a55361fc.tar.zst +0 -0
- package/.turbo/cache/9a9b4e449cd84be4-meta.json +0 -1
- package/.turbo/cache/9a9b4e449cd84be4.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +0 -1
- package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
- package/.turbo/cache/a275406512608e45-meta.json +0 -1
- package/.turbo/cache/a275406512608e45.tar.zst +0 -0
- package/.turbo/cache/a3db8f78e018a955-meta.json +0 -1
- package/.turbo/cache/a3db8f78e018a955.tar.zst +0 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +0 -1
- package/.turbo/cache/b5e6dc7fb9ae1a2f.tar.zst +0 -0
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +0 -1
- package/.turbo/cache/b6a202cc85cb61a0.tar.zst +0 -0
- package/.turbo/cache/b91d2888e699c76a-meta.json +0 -1
- package/.turbo/cache/b91d2888e699c76a.tar.zst +0 -0
- package/.turbo/cache/bdc6aadfdbb6feb9-meta.json +0 -1
- package/.turbo/cache/bdc6aadfdbb6feb9.tar.zst +0 -0
- package/.turbo/cache/c114d428251f56a5-meta.json +0 -1
- package/.turbo/cache/c114d428251f56a5.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +0 -1
- package/.turbo/cache/c44efc9e4ddd8a0e.tar.zst +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +0 -1
- package/.turbo/cache/c6c6411199b68170.tar.zst +0 -0
- package/.turbo/cache/c7338727efbc457a-meta.json +0 -1
- package/.turbo/cache/c7338727efbc457a.tar.zst +0 -0
- package/.turbo/cache/cf235df1ef8d90b0-meta.json +0 -1
- package/.turbo/cache/cf235df1ef8d90b0.tar.zst +0 -0
- package/.turbo/cache/d1d1a072ee099992-meta.json +0 -1
- package/.turbo/cache/d1d1a072ee099992.tar.zst +0 -0
- package/.turbo/cache/d3a05e38449c9b24-meta.json +0 -1
- package/.turbo/cache/d3a05e38449c9b24.tar.zst +0 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +0 -1
- package/.turbo/cache/d5db503b2eaf239c.tar.zst +0 -0
- package/.turbo/cache/d9331772756d3d94-meta.json +0 -1
- package/.turbo/cache/d9331772756d3d94.tar.zst +0 -0
- package/.turbo/cache/db4ea5071b44ee8c-meta.json +0 -1
- package/.turbo/cache/db4ea5071b44ee8c.tar.zst +0 -0
- package/.turbo/cache/dc6fbe2a8d5b9d9b-meta.json +0 -1
- package/.turbo/cache/dc6fbe2a8d5b9d9b.tar.zst +0 -0
- package/.turbo/cache/df28a5ee199e995d-meta.json +0 -1
- package/.turbo/cache/df28a5ee199e995d.tar.zst +0 -0
- package/.turbo/cache/e1e2582a7131011f-meta.json +0 -1
- package/.turbo/cache/e1e2582a7131011f.tar.zst +0 -0
- package/.turbo/cache/e6271174c00888fe-meta.json +0 -1
- package/.turbo/cache/e6271174c00888fe.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +0 -1
- package/.turbo/cache/e62cfee068e3ef36.tar.zst +0 -0
- package/.turbo/cache/e8485d2a584b5f08-meta.json +0 -1
- package/.turbo/cache/e8485d2a584b5f08.tar.zst +0 -0
- package/.turbo/cache/e86451b8f88594b2-meta.json +0 -1
- package/.turbo/cache/e86451b8f88594b2.tar.zst +0 -0
- package/.turbo/cache/e9872ba002963dd3-meta.json +0 -1
- package/.turbo/cache/e9872ba002963dd3.tar.zst +0 -0
- package/components/checkbox/.stylelintrc.json +0 -3
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +0 -98
- package/components/checkbox/.turbo/turbo-build.log +0 -184
- package/components/checkbox/.turbo/turbo-bundler.log +0 -13
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +0 -34
- package/components/checkbox/.turbo/turbo-types.log +0 -4
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +0 -1
- package/components/checkbox/dist/auro-checkbox.d.ts.map +0 -1
- package/components/checkbox/dist/index.d.ts.map +0 -1
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts.map +0 -1
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts.map +0 -1
- package/components/checkbox/dist/styles/color-css.d.ts.map +0 -1
- package/components/checkbox/dist/styles/colorGroup-css.d.ts.map +0 -1
- package/components/checkbox/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/checkbox/node_modules/chalk/package.json +0 -83
- package/components/checkbox/node_modules/chalk/readme.md +0 -325
- package/components/checkbox/node_modules/chalk/source/index.d.ts +0 -320
- package/components/checkbox/node_modules/chalk/source/index.js +0 -225
- package/components/checkbox/node_modules/chalk/source/utilities.js +0 -33
- package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/checkbox/package.json +0 -68
- package/components/checkbox/src/auro-checkbox-group.js +0 -360
- package/components/checkbox/src/auro-checkbox.js +0 -210
- package/components/checkbox/src/index.js +0 -8
- package/components/checkbox/src/styles/auro-checkbox-css.js +0 -2
- package/components/checkbox/src/styles/auro-checkbox-group-css.js +0 -2
- package/components/checkbox/src/styles/auro-checkbox-group.css +0 -26
- package/components/checkbox/src/styles/auro-checkbox-group.scss +0 -38
- package/components/checkbox/src/styles/auro-checkbox.css +0 -123
- package/components/checkbox/src/styles/auro-checkbox.scss +0 -100
- package/components/checkbox/src/styles/color-css.js +0 -2
- package/components/checkbox/src/styles/color.css +0 -84
- package/components/checkbox/src/styles/color.scss +0 -118
- package/components/checkbox/src/styles/colorGroup-css.js +0 -2
- package/components/checkbox/src/styles/colorGroup.css +0 -16
- package/components/checkbox/src/styles/colorGroup.scss +0 -24
- package/components/checkbox/src/styles/tokens-css.js +0 -2
- package/components/checkbox/src/styles/tokens.css +0 -9
- package/components/checkbox/src/styles/tokens.scss +0 -11
- package/components/combobox/.stylelintrc.json +0 -3
- package/components/combobox/.turbo/turbo-build$colon$sass.log +0 -46
- package/components/combobox/.turbo/turbo-build$colon$version.log +0 -10
- package/components/combobox/.turbo/turbo-build.log +0 -162
- package/components/combobox/.turbo/turbo-bundler.log +0 -25
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/combobox/.turbo/turbo-sass$colon$render.log +0 -10
- package/components/combobox/.turbo/turbo-types.log +0 -4
- package/components/combobox/dist/auro-combobox.d.ts.map +0 -1
- package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
- package/components/combobox/dist/formkit/auro-inputVersion.d.ts.map +0 -1
- package/components/combobox/dist/index.d.ts.map +0 -1
- package/components/combobox/dist/styles/style-css.d.ts.map +0 -1
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +0 -1
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +0 -863
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +0 -109
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +0 -86
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +0 -45
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +0 -38
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +0 -38
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +0 -110
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +0 -106
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +0 -8
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +0 -813
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +0 -134
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +0 -39
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +0 -30
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +0 -46
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +0 -155
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +0 -25
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +0 -267
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +0 -36
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +0 -50
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +0 -395
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +0 -255
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +0 -663
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +0 -31
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +0 -22
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +0 -19
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +0 -18
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +0 -32
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +0 -26
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +0 -59
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +0 -54
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +0 -37
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +0 -5
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +0 -18
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +0 -123
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +0 -16
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +0 -42
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +0 -142
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +0 -151
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +0 -188
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +0 -75
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +0 -176
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +0 -249
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +0 -49
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +0 -20
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +0 -26
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +0 -29
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +0 -76
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +0 -86
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +0 -9
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +0 -75
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +0 -96
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +0 -20
- package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +0 -13
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +0 -293
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +0 -1377
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +0 -1370
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +0 -1
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +0 -89
- package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +0 -115
- package/components/combobox/node_modules/chalk/package.json +0 -83
- package/components/combobox/node_modules/chalk/readme.md +0 -297
- package/components/combobox/node_modules/chalk/source/index.d.ts +0 -325
- package/components/combobox/node_modules/chalk/source/index.js +0 -225
- package/components/combobox/node_modules/chalk/source/utilities.js +0 -33
- package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/combobox/package.json +0 -67
- package/components/combobox/src/auro-combobox.js +0 -721
- package/components/combobox/src/formkit/auro-dropdownVersion.js +0 -1
- package/components/combobox/src/formkit/auro-inputVersion.js +0 -1
- package/components/combobox/src/index.js +0 -6
- package/components/combobox/src/styles/style-css.js +0 -2
- package/components/combobox/src/styles/style.css +0 -60
- package/components/combobox/src/styles/style.scss +0 -46
- package/components/counter/.stylelintrc.json +0 -3
- package/components/counter/.turbo/turbo-build$colon$sass.log +0 -66
- package/components/counter/.turbo/turbo-build.log +0 -87
- package/components/counter/.turbo/turbo-bundler.log +0 -13
- package/components/counter/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/counter/.turbo/turbo-sass$colon$render.log +0 -16
- package/components/counter/.turbo/turbo-types.log +0 -4
- package/components/counter/dist/auro-counter-group.d.ts.map +0 -1
- package/components/counter/dist/auro-counter.d.ts.map +0 -1
- package/components/counter/dist/index.d.ts.map +0 -1
- package/components/counter/dist/styles/counter-group-css.d.ts.map +0 -1
- package/components/counter/dist/styles/style-css.d.ts.map +0 -1
- package/components/counter/node_modules/chalk/package.json +0 -83
- package/components/counter/node_modules/chalk/readme.md +0 -325
- package/components/counter/node_modules/chalk/source/index.d.ts +0 -320
- package/components/counter/node_modules/chalk/source/index.js +0 -225
- package/components/counter/node_modules/chalk/source/utilities.js +0 -33
- package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/counter/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/counter/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/counter/package.json +0 -50
- package/components/counter/src/auro-counter-group.js +0 -48
- package/components/counter/src/auro-counter.js +0 -29
- package/components/counter/src/index.js +0 -8
- package/components/counter/src/styles/counter-group-css.js +0 -2
- package/components/counter/src/styles/counter-group.css +0 -4
- package/components/counter/src/styles/counter-group.scss +0 -17
- package/components/counter/src/styles/style-css.js +0 -2
- package/components/counter/src/styles/style.css +0 -4
- package/components/counter/src/styles/style.scss +0 -17
- package/components/datepicker/.stylelintrc.json +0 -3
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +0 -352
- package/components/datepicker/.turbo/turbo-build$colon$version.log +0 -13
- package/components/datepicker/.turbo/turbo-build.log +0 -492
- package/components/datepicker/.turbo/turbo-bundler.log +0 -17
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +0 -58
- package/components/datepicker/.turbo/turbo-types.log +0 -4
- package/components/datepicker/dist/auro-calendar-cell.d.ts.map +0 -1
- package/components/datepicker/dist/auro-calendar-month.d.ts.map +0 -1
- package/components/datepicker/dist/auro-calendar.d.ts.map +0 -1
- package/components/datepicker/dist/auro-datepicker.d.ts.map +0 -1
- package/components/datepicker/dist/dropdownVersion.d.ts.map +0 -1
- package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
- package/components/datepicker/dist/formkit/auro-inputVersion.d.ts.map +0 -1
- package/components/datepicker/dist/index.d.ts.map +0 -1
- package/components/datepicker/dist/popoverVersion.d.ts.map +0 -1
- package/components/datepicker/dist/styles/color-calendar-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/color-cell-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/color-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/color-month-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/style-css.d.ts.map +0 -1
- package/components/datepicker/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/datepicker/dist/utilities.d.ts.map +0 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts.map +0 -1
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts.map +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts.map +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts.map +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts.map +0 -1
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts.map +0 -1
- package/components/datepicker/node_modules/chalk/package.json +0 -83
- package/components/datepicker/node_modules/chalk/readme.md +0 -325
- package/components/datepicker/node_modules/chalk/source/index.d.ts +0 -320
- package/components/datepicker/node_modules/chalk/source/index.js +0 -225
- package/components/datepicker/node_modules/chalk/source/utilities.js +0 -33
- package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/datepicker/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
- package/components/datepicker/node_modules/rollup-plugin-serve/README.md +0 -137
- package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
- package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
- package/components/datepicker/node_modules/rollup-plugin-serve/index.d.ts +0 -75
- package/components/datepicker/node_modules/rollup-plugin-serve/package.json +0 -51
- package/components/datepicker/package.json +0 -79
- package/components/datepicker/src/auro-calendar-cell.js +0 -381
- package/components/datepicker/src/auro-calendar-month.js +0 -128
- package/components/datepicker/src/auro-calendar.js +0 -329
- package/components/datepicker/src/auro-datepicker.js +0 -1003
- package/components/datepicker/src/dropdownVersion.js +0 -0
- package/components/datepicker/src/formkit/auro-dropdownVersion.js +0 -1
- package/components/datepicker/src/formkit/auro-inputVersion.js +0 -1
- package/components/datepicker/src/index.js +0 -6
- package/components/datepicker/src/popoverVersion.js +0 -1
- package/components/datepicker/src/styles/color-calendar-css.js +0 -2
- package/components/datepicker/src/styles/color-calendar.css +0 -35
- package/components/datepicker/src/styles/color-calendar.scss +0 -51
- package/components/datepicker/src/styles/color-cell-css.js +0 -2
- package/components/datepicker/src/styles/color-cell.css +0 -45
- package/components/datepicker/src/styles/color-cell.scss +0 -73
- package/components/datepicker/src/styles/color-css.js +0 -2
- package/components/datepicker/src/styles/color-month-css.js +0 -2
- package/components/datepicker/src/styles/color-month.css +0 -34
- package/components/datepicker/src/styles/color-month.scss +0 -27
- package/components/datepicker/src/styles/color.css +0 -43
- package/components/datepicker/src/styles/color.scss +0 -30
- package/components/datepicker/src/styles/style-auro-calendar-cell-css.js +0 -2
- package/components/datepicker/src/styles/style-auro-calendar-cell.css +0 -123
- package/components/datepicker/src/styles/style-auro-calendar-cell.scss +0 -147
- package/components/datepicker/src/styles/style-auro-calendar-css.js +0 -2
- package/components/datepicker/src/styles/style-auro-calendar-month-css.js +0 -2
- package/components/datepicker/src/styles/style-auro-calendar-month.css +0 -121
- package/components/datepicker/src/styles/style-auro-calendar-month.scss +0 -141
- package/components/datepicker/src/styles/style-auro-calendar.css +0 -152
- package/components/datepicker/src/styles/style-auro-calendar.scss +0 -191
- package/components/datepicker/src/styles/style-css.js +0 -2
- package/components/datepicker/src/styles/style.css +0 -111
- package/components/datepicker/src/styles/style.scss +0 -107
- package/components/datepicker/src/styles/tokens-css.js +0 -2
- package/components/datepicker/src/styles/tokens.css +0 -22
- package/components/datepicker/src/styles/tokens.scss +0 -25
- package/components/datepicker/src/utilities.js +0 -87
- package/components/datepicker/src/utilitiesCalendar.js +0 -138
- package/components/datepicker/src/utilitiesCalendarRender.js +0 -156
- package/components/datepicker/src/vendor/wc-range-datepicker/day.js +0 -8
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-calendar.js +0 -521
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-cell.js +0 -211
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker.js +0 -254
- package/components/dropdown/.stylelintrc.json +0 -3
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +0 -75
- package/components/dropdown/.turbo/turbo-build$colon$version.log +0 -7
- package/components/dropdown/.turbo/turbo-build.log +0 -205
- package/components/dropdown/.turbo/turbo-bundler.log +0 -13
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +0 -34
- package/components/dropdown/.turbo/turbo-types.log +0 -4
- package/components/dropdown/dist/auro-dropdown.d.ts.map +0 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +0 -1
- package/components/dropdown/dist/iconVersion.d.ts.map +0 -1
- package/components/dropdown/dist/index.d.ts.map +0 -1
- package/components/dropdown/dist/styles/bibColors-css.d.ts.map +0 -1
- package/components/dropdown/dist/styles/bibStyles-css.d.ts.map +0 -1
- package/components/dropdown/dist/styles/color-css.d.ts.map +0 -1
- package/components/dropdown/dist/styles/style-css.d.ts.map +0 -1
- package/components/dropdown/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/dropdown/node_modules/chalk/package.json +0 -83
- package/components/dropdown/node_modules/chalk/readme.md +0 -325
- package/components/dropdown/node_modules/chalk/source/index.d.ts +0 -320
- package/components/dropdown/node_modules/chalk/source/index.js +0 -225
- package/components/dropdown/node_modules/chalk/source/utilities.js +0 -33
- package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/dropdown/package.json +0 -57
- package/components/dropdown/src/auro-dropdown.js +0 -474
- package/components/dropdown/src/auro-dropdownBib.js +0 -106
- package/components/dropdown/src/iconVersion.js +0 -1
- package/components/dropdown/src/index.js +0 -6
- package/components/dropdown/src/styles/bibColors-css.js +0 -2
- package/components/dropdown/src/styles/bibColors.css +0 -6
- package/components/dropdown/src/styles/bibColors.scss +0 -18
- package/components/dropdown/src/styles/bibStyles-css.js +0 -2
- package/components/dropdown/src/styles/bibStyles.css +0 -43
- package/components/dropdown/src/styles/bibStyles.scss +0 -60
- package/components/dropdown/src/styles/color-css.js +0 -2
- package/components/dropdown/src/styles/color.css +0 -59
- package/components/dropdown/src/styles/color.scss +0 -79
- package/components/dropdown/src/styles/style-css.js +0 -2
- package/components/dropdown/src/styles/style.css +0 -92
- package/components/dropdown/src/styles/style.scss +0 -122
- package/components/dropdown/src/styles/tokens-css.js +0 -2
- package/components/dropdown/src/styles/tokens.css +0 -13
- package/components/dropdown/src/styles/tokens.scss +0 -15
- package/components/form/.stylelintrc.json +0 -3
- package/components/form/.turbo/turbo-build$colon$sass.log +0 -57
- package/components/form/.turbo/turbo-build$colon$version.log +0 -4
- package/components/form/.turbo/turbo-build.log +0 -112
- package/components/form/.turbo/turbo-bundler.log +0 -13
- package/components/form/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/form/.turbo/turbo-sass$colon$render.log +0 -10
- package/components/form/.turbo/turbo-types.log +0 -4
- package/components/form/dist/auro-form.d.ts.map +0 -1
- package/components/form/dist/index.d.ts.map +0 -1
- package/components/form/dist/styles/style-css.d.ts.map +0 -1
- package/components/form/node_modules/chalk/package.json +0 -83
- package/components/form/node_modules/chalk/readme.md +0 -325
- package/components/form/node_modules/chalk/source/index.d.ts +0 -320
- package/components/form/node_modules/chalk/source/index.js +0 -225
- package/components/form/node_modules/chalk/source/utilities.js +0 -33
- package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/form/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/form/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/form/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/form/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/form/package.json +0 -72
- package/components/form/src/auro-form.js +0 -74
- package/components/form/src/index.js +0 -6
- package/components/form/src/styles/style-css.js +0 -2
- package/components/form/src/styles/style.css +0 -36
- package/components/form/src/styles/style.scss +0 -37
- package/components/input/.stylelintrc.json +0 -3
- package/components/input/.turbo/turbo-build$colon$sass.log +0 -198
- package/components/input/.turbo/turbo-build$colon$version.log +0 -10
- package/components/input/.turbo/turbo-build.log +0 -350
- package/components/input/.turbo/turbo-bundler.log +0 -13
- package/components/input/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/input/.turbo/turbo-sass$colon$render.log +0 -58
- package/components/input/.turbo/turbo-types.log +0 -4
- package/components/input/dist/auro-input.d.ts.map +0 -1
- package/components/input/dist/base-input.d.ts.map +0 -1
- package/components/input/dist/buttonVersion.d.ts.map +0 -1
- package/components/input/dist/i18n.d.ts.map +0 -1
- package/components/input/dist/iconVersion.d.ts.map +0 -1
- package/components/input/dist/index.d.ts.map +0 -1
- package/components/input/dist/styles/borders-css.d.ts.map +0 -1
- package/components/input/dist/styles/color-css.d.ts.map +0 -1
- package/components/input/dist/styles/helpText-css.d.ts.map +0 -1
- package/components/input/dist/styles/input-css.d.ts.map +0 -1
- package/components/input/dist/styles/label-css.d.ts.map +0 -1
- package/components/input/dist/styles/mixins-css.d.ts.map +0 -1
- package/components/input/dist/styles/notificationIcons-css.d.ts.map +0 -1
- package/components/input/dist/styles/style-css.d.ts.map +0 -1
- package/components/input/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/input/node_modules/chalk/package.json +0 -83
- package/components/input/node_modules/chalk/readme.md +0 -325
- package/components/input/node_modules/chalk/source/index.d.ts +0 -320
- package/components/input/node_modules/chalk/source/index.js +0 -225
- package/components/input/node_modules/chalk/source/utilities.js +0 -33
- package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/input/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/input/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/input/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/input/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/input/package.json +0 -75
- package/components/input/src/auro-input.js +0 -241
- package/components/input/src/base-input.js +0 -1103
- package/components/input/src/buttonVersion.js +0 -1
- package/components/input/src/i18n.js +0 -102
- package/components/input/src/iconVersion.js +0 -1
- package/components/input/src/index.js +0 -6
- package/components/input/src/styles/@aurodesignsystem/webcorestylesheets/src/breakpoints +0 -0
- package/components/input/src/styles/borders-css.js +0 -2
- package/components/input/src/styles/borders.css +0 -35
- package/components/input/src/styles/borders.scss +0 -49
- package/components/input/src/styles/color-css.js +0 -2
- package/components/input/src/styles/color.css +0 -62
- package/components/input/src/styles/color.scss +0 -89
- 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/input/src/styles/input-css.js +0 -2
- package/components/input/src/styles/input.css +0 -35
- package/components/input/src/styles/input.scss +0 -53
- package/components/input/src/styles/label-css.js +0 -2
- package/components/input/src/styles/label.css +0 -45
- package/components/input/src/styles/label.scss +0 -71
- package/components/input/src/styles/mixins-css.js +0 -2
- package/components/input/src/styles/mixins.css +0 -1
- package/components/input/src/styles/mixins.scss +0 -45
- package/components/input/src/styles/notificationIcons-css.js +0 -2
- package/components/input/src/styles/notificationIcons.css +0 -84
- package/components/input/src/styles/notificationIcons.scss +0 -109
- package/components/input/src/styles/style-css.js +0 -2
- package/components/input/src/styles/style.css +0 -290
- package/components/input/src/styles/style.scss +0 -53
- package/components/input/src/styles/tokens-css.js +0 -2
- package/components/input/src/styles/tokens.css +0 -9
- package/components/input/src/styles/tokens.scss +0 -11
- package/components/menu/.stylelintrc.json +0 -3
- package/components/menu/.turbo/turbo-build$colon$sass.log +0 -86
- package/components/menu/.turbo/turbo-build$colon$version.log +0 -7
- package/components/menu/.turbo/turbo-build.log +0 -183
- package/components/menu/.turbo/turbo-bundler.log +0 -13
- package/components/menu/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/menu/.turbo/turbo-sass$colon$render.log +0 -34
- package/components/menu/.turbo/turbo-types.log +0 -4
- package/components/menu/dist/auro-menu.d.ts.map +0 -1
- package/components/menu/dist/auro-menuoption.d.ts.map +0 -1
- package/components/menu/dist/iconVersion.d.ts.map +0 -1
- package/components/menu/dist/index.d.ts.map +0 -1
- package/components/menu/dist/styles/color-menu-css.d.ts.map +0 -1
- package/components/menu/dist/styles/color-menuoption-css.d.ts.map +0 -1
- package/components/menu/dist/styles/style-menu-css.d.ts.map +0 -1
- package/components/menu/dist/styles/style-menuoption-css.d.ts.map +0 -1
- package/components/menu/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/menu/node_modules/chalk/package.json +0 -83
- package/components/menu/node_modules/chalk/readme.md +0 -325
- package/components/menu/node_modules/chalk/source/index.d.ts +0 -320
- package/components/menu/node_modules/chalk/source/index.js +0 -225
- package/components/menu/node_modules/chalk/source/utilities.js +0 -33
- package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/menu/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/menu/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/menu/node_modules/mime/CHANGELOG.md +0 -296
- package/components/menu/node_modules/mime/Mime.js +0 -97
- package/components/menu/node_modules/mime/README.md +0 -187
- package/components/menu/node_modules/mime/cli.js +0 -46
- package/components/menu/node_modules/mime/index.js +0 -4
- package/components/menu/node_modules/mime/lite.js +0 -4
- package/components/menu/node_modules/mime/package.json +0 -52
- package/components/menu/node_modules/mime/types/other.js +0 -1
- package/components/menu/node_modules/mime/types/standard.js +0 -1
- package/components/menu/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
- package/components/menu/node_modules/rollup-plugin-serve/README.md +0 -135
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs.js +0 -197
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.es.js +0 -193
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
- package/components/menu/node_modules/rollup-plugin-serve/package.json +0 -44
- package/components/menu/package.json +0 -70
- package/components/menu/src/auro-menu.js +0 -539
- package/components/menu/src/auro-menuoption.js +0 -147
- package/components/menu/src/iconVersion.js +0 -1
- package/components/menu/src/index.js +0 -8
- package/components/menu/src/styles/color-menu-css.js +0 -2
- package/components/menu/src/styles/color-menu.css +0 -4
- package/components/menu/src/styles/color-menu.scss +0 -12
- package/components/menu/src/styles/color-menuoption-css.js +0 -2
- package/components/menu/src/styles/color-menuoption.css +0 -23
- package/components/menu/src/styles/color-menuoption.scss +0 -33
- package/components/menu/src/styles/style-menu-css.js +0 -2
- package/components/menu/src/styles/style-menu.css +0 -2061
- package/components/menu/src/styles/style-menu.scss +0 -80
- package/components/menu/src/styles/style-menuoption-css.js +0 -2
- package/components/menu/src/styles/style-menuoption.css +0 -45
- package/components/menu/src/styles/style-menuoption.scss +0 -66
- package/components/menu/src/styles/tokens-css.js +0 -2
- package/components/menu/src/styles/tokens.css +0 -6
- package/components/menu/src/styles/tokens.scss +0 -6
- package/components/radio/.stylelintrc.json +0 -3
- package/components/radio/.turbo/turbo-build$colon$sass.log +0 -130
- package/components/radio/.turbo/turbo-build.log +0 -215
- package/components/radio/.turbo/turbo-bundler.log +0 -13
- package/components/radio/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/radio/.turbo/turbo-sass$colon$render.log +0 -34
- package/components/radio/.turbo/turbo-types.log +0 -4
- package/components/radio/dist/auro-radio-group.d.ts.map +0 -1
- package/components/radio/dist/auro-radio.d.ts.map +0 -1
- package/components/radio/dist/index.d.ts.map +0 -1
- package/components/radio/dist/styles/auro-radio-group-css.d.ts.map +0 -1
- package/components/radio/dist/styles/color-css.d.ts.map +0 -1
- package/components/radio/dist/styles/groupColor-css.d.ts.map +0 -1
- package/components/radio/dist/styles/style-css.d.ts.map +0 -1
- package/components/radio/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/radio/node_modules/chalk/package.json +0 -83
- package/components/radio/node_modules/chalk/readme.md +0 -325
- package/components/radio/node_modules/chalk/source/index.d.ts +0 -320
- package/components/radio/node_modules/chalk/source/index.js +0 -225
- package/components/radio/node_modules/chalk/source/utilities.js +0 -33
- package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/radio/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/radio/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/radio/package.json +0 -69
- package/components/radio/src/auro-radio-group.js +0 -433
- package/components/radio/src/auro-radio.js +0 -256
- package/components/radio/src/index.js +0 -8
- package/components/radio/src/styles/auro-radio-group-css.js +0 -2
- package/components/radio/src/styles/auro-radio-group.css +0 -23
- package/components/radio/src/styles/auro-radio-group.scss +0 -36
- package/components/radio/src/styles/color-css.js +0 -2
- package/components/radio/src/styles/color.css +0 -45
- package/components/radio/src/styles/color.scss +0 -56
- package/components/radio/src/styles/groupColor-css.js +0 -2
- package/components/radio/src/styles/groupColor.css +0 -21
- package/components/radio/src/styles/groupColor.scss +0 -33
- package/components/radio/src/styles/style-css.js +0 -2
- package/components/radio/src/styles/style.css +0 -113
- package/components/radio/src/styles/style.scss +0 -99
- package/components/radio/src/styles/tokens-css.js +0 -2
- package/components/radio/src/styles/tokens.css +0 -9
- package/components/radio/src/styles/tokens.scss +0 -12
- package/components/select/.stylelintrc.json +0 -3
- package/components/select/.turbo/turbo-build$colon$sass.log +0 -122
- package/components/select/.turbo/turbo-build$colon$version.log +0 -7
- package/components/select/.turbo/turbo-build.log +0 -240
- package/components/select/.turbo/turbo-bundler.log +0 -19
- package/components/select/.turbo/turbo-postCss$colon$component.log +0 -4
- package/components/select/.turbo/turbo-sass$colon$render.log +0 -22
- package/components/select/.turbo/turbo-types.log +0 -4
- package/components/select/dist/auro-select.d.ts.map +0 -1
- package/components/select/dist/formkit/auro-dropdownVersion.d.ts.map +0 -1
- package/components/select/dist/index.d.ts.map +0 -1
- package/components/select/dist/styles/color-css.d.ts.map +0 -1
- package/components/select/dist/styles/style-css.d.ts.map +0 -1
- package/components/select/dist/styles/tokens-css.d.ts.map +0 -1
- package/components/select/node_modules/chalk/package.json +0 -83
- package/components/select/node_modules/chalk/readme.md +0 -325
- package/components/select/node_modules/chalk/source/index.d.ts +0 -320
- package/components/select/node_modules/chalk/source/index.js +0 -225
- package/components/select/node_modules/chalk/source/utilities.js +0 -33
- package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/components/select/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/components/select/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- package/components/select/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/components/select/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- package/components/select/node_modules/mime/CHANGELOG.md +0 -296
- package/components/select/node_modules/mime/Mime.js +0 -97
- package/components/select/node_modules/mime/README.md +0 -187
- package/components/select/node_modules/mime/cli.js +0 -46
- package/components/select/node_modules/mime/index.js +0 -4
- package/components/select/node_modules/mime/lite.js +0 -4
- package/components/select/node_modules/mime/package.json +0 -52
- package/components/select/node_modules/mime/types/other.js +0 -1
- package/components/select/node_modules/mime/types/standard.js +0 -1
- package/components/select/node_modules/rollup-plugin-serve/LICENSE.md +0 -21
- package/components/select/node_modules/rollup-plugin-serve/README.md +0 -135
- package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs +0 -181
- package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs.js +0 -197
- package/components/select/node_modules/rollup-plugin-serve/dist/index.es.js +0 -193
- package/components/select/node_modules/rollup-plugin-serve/dist/index.mjs +0 -173
- package/components/select/node_modules/rollup-plugin-serve/package.json +0 -44
- package/components/select/package.json +0 -70
- package/components/select/packageScripts/postinstall.mjs +0 -28
- package/components/select/src/auro-select.js +0 -559
- package/components/select/src/formkit/auro-dropdownVersion.js +0 -1
- package/components/select/src/index.js +0 -6
- package/components/select/src/styles/color-css.js +0 -2
- package/components/select/src/styles/color.css +0 -63
- package/components/select/src/styles/color.scss +0 -33
- package/components/select/src/styles/style-css.js +0 -2
- package/components/select/src/styles/style.css +0 -104
- package/components/select/src/styles/style.scss +0 -76
- package/components/select/src/styles/tokens-css.js +0 -2
- package/components/select/src/styles/tokens.css +0 -3
- package/components/select/src/styles/tokens.scss +0 -5
- package/packages/build-tools/package.json +0 -15
- package/packages/build-tools/src/docProcessor.mjs +0 -133
- package/packages/build-tools/src/formVersionWriter.mjs +0 -75
- package/packages/build-tools/src/index.js +0 -1
- package/packages/build-tools/src/kitDocProcessor.mjs +0 -66
- package/packages/form-validation/package.json +0 -12
- package/packages/form-validation/src/index.js +0 -1
- package/packages/form-validation/src/validation.js +0 -259
- package/packages/typescript/base.json +0 -19
- package/packages/typescript/package.json +0 -20
- package/turbo.json +0 -100
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$
|
|
6
|
+
const t$8=globalThis,e$d=t$8.ShadowRoot&&(void 0===t$8.ShadyCSS||t$8.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$8=Symbol(),o$c=new WeakMap;let n$b = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$8)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$d&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$c.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$c.set(s,t));}return t}toString(){return this.cssText}};const r$c=t=>new n$b("string"==typeof t?t:t+"",void 0,s$8),i$g=(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$b(o,t,s$8)},S$6=(s,o)=>{if(e$d)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$8.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$9=e$d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$c(e)})(t):t;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$
|
|
12
|
+
*/const{is:i$f,defineProperty:e$c,getOwnPropertyDescriptor:r$b,getOwnPropertyNames:h$6,getOwnPropertySymbols:o$b,getPrototypeOf:n$a}=Object,a$8=globalThis,c$8=a$8.trustedTypes,l$8=c$8?c$8.emptyScript:"",p$6=a$8.reactiveElementPolyfillSupport,d$6=(t,s)=>t,u$8={toAttribute(t,s){switch(s){case Boolean:t=t?l$8: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$6=(t,s)=>!i$f(t,s),y$6={attribute:true,type:String,converter:u$8,reflect:false,hasChanged:f$6};Symbol.metadata??=Symbol("metadata"),a$8.litPropertyMetadata??=new WeakMap;let b$3 = 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$6){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$c(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$b(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$6}static _$Ei(){if(this.hasOwnProperty(d$6("elementProperties")))return;const t=n$a(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$6("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$6("properties"))){const t=this.properties,s=[...h$6(t),...o$b(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(void 0!==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);void 0!==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$9(s));}else void 0!==s&&i.push(c$9(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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$6(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(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$8).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$8;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$6)(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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===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$3.elementStyles=[],b$3.shadowRootOptions={mode:"open"},b$3[d$6("elementProperties")]=new Map,b$3[d$6("finalized")]=new Map,p$6?.({ReactiveElement:b$3}),(a$8.reactiveElementVersions??=[]).push("2.0.4");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const t$
|
|
19
|
+
const t$7=globalThis,i$e=t$7.trustedTypes,s$7=i$e?i$e.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$b="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$a="?"+h$5,n$9=`<${o$a}>`,r$a=document,l$7=()=>r$a.createComment(""),c$7=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$7=Array.isArray,u$7=t=>a$7(t)||"function"==typeof t?.[Symbol.iterator],d$5="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$3=/>/g,m$3=RegExp(`>|${d$5}(?:([^\\s"'>=/]+)(${d$5}*=${d$5}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$5=/'/g,g$3=/"/g,$$3=/^(?:script|style|textarea|title)$/i,y$5=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$3=y$5(1),T$3=Symbol.for("lit-noChange"),E$3=Symbol.for("lit-nothing"),A$3=new WeakMap,C$3=r$a.createTreeWalker(r$a,129);function P$3(t,i){if(!a$7(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$7?s$7.createHTML(i):i}const V$3=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$5;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$5?"!--"===u[1]?c=v$3:void 0!==u[1]?c=_$3:void 0!==u[2]?($$3.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):void 0!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$5,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$3:'"'===u[3]?g$3:p$5):c===g$3||c===p$5?c=m$3:c===v$3||c===_$3?c=f$5:(c=m$3,r=void 0);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$9:d>=0?(o.push(a),s.slice(0,d)+e$b+s.slice(d)+h$5+x):s+h$5+(-2===d?i:x);}return [P$3(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$3 = 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$3(t,s);if(this.el=N.createElement(f,n),C$3.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$3.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$b)){const i=v[a++],s=r.getAttribute(t).split(h$5),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$3:"?"===e[1]?I$3:"@"===e[1]?L$3:k$3}),r.removeAttribute(t);}else t.startsWith(h$5)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$3.test(r.tagName)){const t=r.textContent.split(h$5),s=t.length-1;if(s>0){r.textContent=i$e?i$e.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$7()),C$3.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$7());}}}else if(8===r.nodeType)if(r.data===o$a)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$5,t+1));)d.push({type:7,index:c}),t+=h$5.length-1;}c++;}}static createElement(t,i){const s=r$a.createElement("template");return s.innerHTML=t,s}};function S$5(t,i,s=t,e){if(i===T$3)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$7(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$5(t,h._$AS(t,i.values),h,e)),i}let M$3 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,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$a).importNode(i,true);C$3.currentNode=e;let h=C$3.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$3(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$3(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$3.nextNode(),o++);}return C$3.currentNode=r$a,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$3 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$3,this._$AN=void 0,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 void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$5(this,t,i),c$7(t)?t===E$3||null==t||""===t?(this._$AH!==E$3&&this._$AR(),this._$AH=E$3):t!==this._$AH&&t!==T$3&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$7(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$3&&c$7(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$a.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$3.createElement(P$3(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$3.get(t.strings);return void 0===i&&A$3.set(t.strings,i=new N$3(t)),i}k(t){a$7(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$7()),this.O(l$7()),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){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$3 = 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$3,this._$AN=void 0,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$3;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$5(this,t,i,0),o=!c$7(t)||t!==this._$AH&&t!==T$3,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$5(this,e[s+n],i,n),r===T$3&&(r=this._$AH[n]),o||=!c$7(r)||r!==this._$AH[n],r===E$3?t=E$3:t!==E$3&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$3 = class H extends k$3{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$3?void 0:t;}};let I$3 = class I extends k$3{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$3);}};let L$3 = class L extends k$3{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$5(this,t,i,0)??E$3)===T$3)return;const s=this._$AH,e=t===E$3&&s!==E$3||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$3&&(s===E$3||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$3 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$5(this,t);}};const j$3=t$7.litHtmlPolyfillSupport;j$3?.(N$3,R$3),(t$7.litHtmlVersions??=[]).push("3.2.1");const B$3=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$3(i.insertBefore(l$7(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/let r$
|
|
25
|
+
*/let r$9 = class r extends b$3{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}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$3(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$3}};r$9._$litElement$=true,r$9["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$9});const i$d=globalThis.litElementPolyfillSupport;i$d?.({LitElement:r$9});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
const t$
|
|
32
|
+
const t$6={ATTRIBUTE:1},e$a=t=>(...e)=>({_$litDirective$:t,values:e});let i$c = 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)}};
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2018 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/const e$
|
|
38
|
+
*/const e$9=e$a(class extends i$c{constructor(t){if(super(t),t.type!==t$6.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(void 0===this.st){this.st=new Set,void 0!==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$3}});
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2020 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/
|
|
45
|
-
const a$
|
|
45
|
+
const a$6=Symbol.for(""),o$9=t=>{if(t?.r===a$6)return t?._$litStatic$},s$6=t=>({_$litStatic$:t,r:a$6}),i$b=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==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$6}),l$6=new Map,n$8=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$9(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$$");void 0===(r=l$6.get(t))&&(n.raw=n,l$6.set(t,r=n)),e=u;}return t(r,...e)},u$6=n$8(x$3);
|
|
46
46
|
|
|
47
47
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
48
48
|
// See LICENSE in the project root for license information.
|
|
@@ -51,7 +51,7 @@ const a$3=Symbol.for(""),o$5=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=t=>({
|
|
|
51
51
|
|
|
52
52
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
53
53
|
|
|
54
|
-
let AuroLibraryRuntimeUtils$
|
|
54
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
55
55
|
|
|
56
56
|
/* eslint-disable jsdoc/require-param */
|
|
57
57
|
|
|
@@ -120,7 +120,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
120
120
|
|
|
121
121
|
class AuroFormValidation {
|
|
122
122
|
constructor() {
|
|
123
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
123
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -148,30 +148,87 @@ class AuroFormValidation {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* @param {
|
|
151
|
+
* Validates the attributes of a given element based on predefined validation rules.
|
|
152
|
+
*
|
|
153
|
+
* @param {HTMLElement} elem - The element to be validated.
|
|
154
154
|
* @returns {void}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* // Assuming `inputElement` is a reference to an input element in the DOM
|
|
158
|
+
* validateElementAttributes(inputElement);
|
|
159
|
+
*
|
|
160
|
+
* The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
|
|
161
|
+
* If a validation rule is violated, it sets the element's validity state and error message accordingly.
|
|
162
|
+
*
|
|
163
|
+
* Validation rules:
|
|
164
|
+
* - input:
|
|
165
|
+
* - length:
|
|
166
|
+
* - tooShort: Checks if the value length is less than the minimum length.
|
|
167
|
+
* - tooLong: Checks if the value length exceeds the maximum length.
|
|
168
|
+
* - pattern:
|
|
169
|
+
* - patternMismatch: Checks if the value does not match the specified pattern.
|
|
170
|
+
* - counter:
|
|
171
|
+
* - range:
|
|
172
|
+
* - rangeOverflow: Checks if the value exceeds the maximum value.
|
|
173
|
+
* - rangeUnderflow: Checks if the value is less than the minimum value.
|
|
155
174
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
175
|
+
validateElementAttributes(elem) {
|
|
176
|
+
const validationRules = {
|
|
177
|
+
input: {
|
|
178
|
+
length: [
|
|
179
|
+
{
|
|
180
|
+
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
181
|
+
validity: 'tooShort',
|
|
182
|
+
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
check: (e) => e.value?.length > e.maxLength,
|
|
186
|
+
validity: 'tooLong',
|
|
187
|
+
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
pattern: [
|
|
191
|
+
{
|
|
192
|
+
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
193
|
+
validity: 'patternMismatch',
|
|
194
|
+
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
counter: {
|
|
199
|
+
range: [
|
|
200
|
+
{
|
|
201
|
+
check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
|
|
202
|
+
validity: 'rangeOverflow',
|
|
203
|
+
message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
|
|
207
|
+
validity: 'rangeUnderflow',
|
|
208
|
+
message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
|
|
209
|
+
}
|
|
210
|
+
]
|
|
163
211
|
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
let elementType;
|
|
215
|
+
if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
216
|
+
elementType = 'input';
|
|
217
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
218
|
+
elementType = 'counter';
|
|
164
219
|
}
|
|
165
|
-
|
|
166
|
-
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
167
|
-
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
168
|
-
elem.validity = 'tooShort';
|
|
169
|
-
elem.errorMessage = elem.setCustomValidityTooShort || elem.setCustomValidity || '';
|
|
170
|
-
}
|
|
171
220
|
|
|
172
|
-
if (
|
|
173
|
-
|
|
174
|
-
|
|
221
|
+
if (elementType) {
|
|
222
|
+
const rules = validationRules[elementType];
|
|
223
|
+
|
|
224
|
+
if (rules) {
|
|
225
|
+
Object.values(rules).flat().forEach(rule => {
|
|
226
|
+
if (rule.check(elem)) {
|
|
227
|
+
elem.validity = rule.validity;
|
|
228
|
+
elem.errorMessage = rule.message(elem);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
175
232
|
}
|
|
176
233
|
}
|
|
177
234
|
|
|
@@ -205,20 +262,17 @@ class AuroFormValidation {
|
|
|
205
262
|
elem.validity = 'rangeUnderflow';
|
|
206
263
|
elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
|
|
207
264
|
}
|
|
208
|
-
} else if (elem.type === '
|
|
209
|
-
|
|
210
|
-
elem.type === 'month-fullYear' ||
|
|
211
|
-
elem.type === 'year-month-day'
|
|
212
|
-
) {
|
|
213
|
-
if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
|
|
265
|
+
} else if (elem.type === 'date') {
|
|
266
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.lengthForType) {
|
|
214
267
|
elem.validity = 'tooShort';
|
|
215
268
|
elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
|
|
216
|
-
} else {
|
|
217
|
-
const
|
|
269
|
+
} else if (elem.value?.length === elem.lengthForType && elem.util.toNorthAmericanFormat(elem.value, elem.format)) {
|
|
270
|
+
const formattedValue = elem.util.toNorthAmericanFormat(elem.value, elem.format);
|
|
271
|
+
const valueDate = new Date(formattedValue.dateForComparison);
|
|
218
272
|
|
|
219
273
|
// validate max
|
|
220
|
-
if (elem.max
|
|
221
|
-
const maxDate = new Date(elem.max);
|
|
274
|
+
if (elem.max?.length === elem.lengthForType) {
|
|
275
|
+
const maxDate = new Date(elem.util.toNorthAmericanFormat(elem.max, elem.format).dateForComparison);
|
|
222
276
|
|
|
223
277
|
if (valueDate > maxDate) {
|
|
224
278
|
elem.validity = 'rangeOverflow';
|
|
@@ -227,8 +281,8 @@ class AuroFormValidation {
|
|
|
227
281
|
}
|
|
228
282
|
|
|
229
283
|
// validate min
|
|
230
|
-
if (elem.min) {
|
|
231
|
-
const minDate = new Date(elem.min);
|
|
284
|
+
if (elem.min?.length === elem.lengthForType) {
|
|
285
|
+
const minDate = new Date(elem.util.toNorthAmericanFormat(elem.min, elem.format).dateForComparison);
|
|
232
286
|
|
|
233
287
|
if (valueDate < minDate) {
|
|
234
288
|
elem.validity = 'rangeUnderflow';
|
|
@@ -281,7 +335,9 @@ class AuroFormValidation {
|
|
|
281
335
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
282
336
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
283
337
|
this.validateType(elem);
|
|
284
|
-
this.
|
|
338
|
+
this.validateElementAttributes(elem);
|
|
339
|
+
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
340
|
+
this.validateElementAttributes(elem);
|
|
285
341
|
}
|
|
286
342
|
}
|
|
287
343
|
|
|
@@ -373,7 +429,7 @@ class AuroFormValidation {
|
|
|
373
429
|
// See LICENSE in the project root for license information.
|
|
374
430
|
|
|
375
431
|
|
|
376
|
-
let AuroDependencyVersioning$
|
|
432
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
377
433
|
|
|
378
434
|
/**
|
|
379
435
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -399,7 +455,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
399
455
|
*/
|
|
400
456
|
generateTag(baseName, version, tagClass) {
|
|
401
457
|
const elementName = this.generateElementName(baseName, version);
|
|
402
|
-
const tag = i$
|
|
458
|
+
const tag = i$b`${s$6(elementName)}`;
|
|
403
459
|
|
|
404
460
|
if (!customElements.get(elementName)) {
|
|
405
461
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -414,33 +470,33 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
414
470
|
* Copyright 2017 Google LLC
|
|
415
471
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
416
472
|
*/
|
|
417
|
-
const t$
|
|
473
|
+
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):void 0,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$1=/-->/g,_$1$1=/>/g,m$1$1=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/g,g$1$1=/"/g,$$1$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$3(1),T$1$1=Symbol.for("lit-noChange"),E$1$1=Symbol.for("lit-nothing"),A$1$1=new WeakMap,C$1$1=r$7.createTreeWalker(r$7,129);function P$1$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V$1$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$1:void 0!==u[1]?c=_$1$1:void 0!==u[2]?($$1$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1$1):void 0!==u[3]&&(c=m$1$1):c===m$1$1?">"===u[0]?(c=r??f$3,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1$1:'"'===u[3]?g$1$1:p$3):c===g$1$1||c===p$3?c=m$1$1:c===v$1$1||c===_$1$1?c=f$3:(c=m$1$1,r=void 0);const x=c===m$1$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$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1$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$1(t,s);if(this.el=N.createElement(f,n),C$1$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1$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$1:"?"===e[1]?I$1$1:"@"===e[1]?L$1$1:k$1$1}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1$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$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$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$5(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$1$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,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$1.currentNode=e;let h=C$1$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1$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$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1$1.nextNode(),o++);}return C$1$1.currentNode=r$7,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1$1,this._$AN=void 0,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 void 0!==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$1||null==t||""===t?(this._$AH!==E$1$1&&this._$AR(),this._$AH=E$1$1):t!==this._$AH&&t!==T$1$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==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$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):(void 0===s.el&&(s.el=N$1$1.createElement(P$1$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1$1.get(t.strings);return void 0===i&&A$1$1.set(t.strings,i=new N$1$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){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1$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$1,this._$AN=void 0,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$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3(this,t,i,0),o=!c$5(t)||t!==this._$AH&&t!==T$1$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$1&&(r=this._$AH[n]),o||=!c$5(r)||r!==this._$AH[n],r===E$1$1?t=E$1$1:t!==E$1$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1$1 = class H extends k$1$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1$1?void 0:t;}};let I$1$1 = class I extends k$1$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1$1);}};let L$1$1 = class L extends k$1$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$1)===T$1$1)return;const s=this._$AH,e=t===E$1$1&&s!==E$1$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1$1&&(s===E$1$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$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3(this,t);}};const j$1$1=t$4.litHtmlPolyfillSupport;j$1$1?.(N$1$1,R$1$1),(t$4.litHtmlVersions??=[]).push("3.2.1");const B$1$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1$1(i.insertBefore(l$4(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
418
474
|
|
|
419
475
|
/**
|
|
420
476
|
* @license
|
|
421
477
|
* Copyright 2020 Google LLC
|
|
422
478
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
423
479
|
*/
|
|
424
|
-
const a$
|
|
480
|
+
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(void 0!==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&&void 0!==(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$$");void 0===(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);
|
|
425
481
|
|
|
426
482
|
/**
|
|
427
483
|
* @license
|
|
428
484
|
* Copyright 2019 Google LLC
|
|
429
485
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
430
486
|
*/
|
|
431
|
-
const t$
|
|
487
|
+
const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$2=Symbol(),o$5=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$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&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===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+"",void 0,s$2$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$2)},S$2$1=(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;void 0!==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;
|
|
432
488
|
|
|
433
489
|
/**
|
|
434
490
|
* @license
|
|
435
491
|
* Copyright 2017 Google LLC
|
|
436
492
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
437
|
-
*/const{is:i$
|
|
493
|
+
*/const{is:i$6,defineProperty:e$5,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2$1,getOwnPropertySymbols:o$4$2,getPrototypeOf:n$3$2}=Object,a$2$2=globalThis,c$3$1=a$2$2.trustedTypes,l$2$2=c$3$1?c$3$1.emptyScript:"",p$2$1=a$2$2.reactiveElementPolyfillSupport,d$2$1=(t,s)=>t,u$2$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$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$1=(t,s)=>!i$6(t,s),y$2={attribute:true,type:String,converter:u$2$2,reflect:false,hasChanged:f$2$1};Symbol.metadata??=Symbol("metadata"),a$2$2.litPropertyMetadata??=new WeakMap;let b$1$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);void 0!==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$1("elementProperties")))return;const t=n$3$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2$1("properties"))){const t=this.properties,s=[...h$2$1(t),...o$4$2(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(void 0!==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);void 0!==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 void 0!==s&&i.push(c$4(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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$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(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$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(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2$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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===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$1.elementStyles=[],b$1$1.shadowRootOptions={mode:"open"},b$1$1[d$2$1("elementProperties")]=new Map,b$1$1[d$2$1("finalized")]=new Map,p$2$1?.({ReactiveElement:b$1$1}),(a$2$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
438
494
|
|
|
439
495
|
/**
|
|
440
496
|
* @license
|
|
441
497
|
* Copyright 2017 Google LLC
|
|
442
498
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
443
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=
|
|
499
|
+
*/let r$4$1 = class r extends b$1$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}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$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1$1}};r$4$1._$litElement$=true,r$4$1["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4$1});const i$5$2=globalThis.litElementPolyfillSupport;i$5$2?.({LitElement:r$4$1});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
444
500
|
|
|
445
501
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
446
502
|
// See LICENSE in the project root for license information.
|
|
@@ -449,7 +505,7 @@ const t$1=globalThis,e$3=t$1.ShadowRoot&&(undefined===t$1.ShadyCSS||t$1.ShadyCSS
|
|
|
449
505
|
|
|
450
506
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
451
507
|
|
|
452
|
-
class AuroLibraryRuntimeUtils {
|
|
508
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
453
509
|
|
|
454
510
|
/* eslint-disable jsdoc/require-param */
|
|
455
511
|
|
|
@@ -510,7 +566,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
510
566
|
|
|
511
567
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
512
568
|
}
|
|
513
|
-
}
|
|
569
|
+
};
|
|
514
570
|
|
|
515
571
|
/**
|
|
516
572
|
* Custom positioning reference element.
|
|
@@ -560,7 +616,7 @@ function getAlignmentAxis(placement) {
|
|
|
560
616
|
return getOppositeAxis(getSideAxis(placement));
|
|
561
617
|
}
|
|
562
618
|
function getAlignmentSides(placement, rects, rtl) {
|
|
563
|
-
if (rtl ===
|
|
619
|
+
if (rtl === void 0) {
|
|
564
620
|
rtl = false;
|
|
565
621
|
}
|
|
566
622
|
const alignment = getAlignment(placement);
|
|
@@ -717,7 +773,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
717
773
|
platform
|
|
718
774
|
} = config;
|
|
719
775
|
const validMiddleware = middleware.filter(Boolean);
|
|
720
|
-
const rtl = await (platform.isRTL == null ?
|
|
776
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
721
777
|
let rects = await platform.getElementRects({
|
|
722
778
|
reference,
|
|
723
779
|
floating,
|
|
@@ -803,7 +859,7 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
803
859
|
*/
|
|
804
860
|
async function detectOverflow(state, options) {
|
|
805
861
|
var _await$platform$isEle;
|
|
806
|
-
if (options ===
|
|
862
|
+
if (options === void 0) {
|
|
807
863
|
options = {};
|
|
808
864
|
}
|
|
809
865
|
const {
|
|
@@ -825,7 +881,7 @@ async function detectOverflow(state, options) {
|
|
|
825
881
|
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
826
882
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
827
883
|
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
828
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ?
|
|
884
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
829
885
|
boundary,
|
|
830
886
|
rootBoundary,
|
|
831
887
|
strategy
|
|
@@ -836,8 +892,8 @@ async function detectOverflow(state, options) {
|
|
|
836
892
|
width: rects.floating.width,
|
|
837
893
|
height: rects.floating.height
|
|
838
894
|
} : rects.reference;
|
|
839
|
-
const offsetParent = await (platform.getOffsetParent == null ?
|
|
840
|
-
const offsetScale = (await (platform.isElement == null ?
|
|
895
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
896
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
841
897
|
x: 1,
|
|
842
898
|
y: 1
|
|
843
899
|
} : {
|
|
@@ -874,7 +930,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
|
874
930
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
875
931
|
*/
|
|
876
932
|
const autoPlacement$1 = function (options) {
|
|
877
|
-
if (options ===
|
|
933
|
+
if (options === void 0) {
|
|
878
934
|
options = {};
|
|
879
935
|
}
|
|
880
936
|
return {
|
|
@@ -898,12 +954,12 @@ const autoPlacement$1 = function (options) {
|
|
|
898
954
|
} = evaluate(options, state);
|
|
899
955
|
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
900
956
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
901
|
-
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ?
|
|
957
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
902
958
|
const currentPlacement = placements$1[currentIndex];
|
|
903
959
|
if (currentPlacement == null) {
|
|
904
960
|
return {};
|
|
905
961
|
}
|
|
906
|
-
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ?
|
|
962
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
907
963
|
|
|
908
964
|
// Make `computeCoords` start from the right place.
|
|
909
965
|
if (placement !== currentPlacement) {
|
|
@@ -914,7 +970,7 @@ const autoPlacement$1 = function (options) {
|
|
|
914
970
|
};
|
|
915
971
|
}
|
|
916
972
|
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
917
|
-
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ?
|
|
973
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
918
974
|
placement: currentPlacement,
|
|
919
975
|
overflows: currentOverflows
|
|
920
976
|
}];
|
|
@@ -944,7 +1000,7 @@ const autoPlacement$1 = function (options) {
|
|
|
944
1000
|
// Aligned placements should not check their opposite crossAxis
|
|
945
1001
|
// side.
|
|
946
1002
|
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
947
|
-
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ?
|
|
1003
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
948
1004
|
if (resetPlacement !== placement) {
|
|
949
1005
|
return {
|
|
950
1006
|
data: {
|
|
@@ -968,7 +1024,7 @@ const autoPlacement$1 = function (options) {
|
|
|
968
1024
|
* @see https://floating-ui.com/docs/flip
|
|
969
1025
|
*/
|
|
970
1026
|
const flip$1 = function (options) {
|
|
971
|
-
if (options ===
|
|
1027
|
+
if (options === void 0) {
|
|
972
1028
|
options = {};
|
|
973
1029
|
}
|
|
974
1030
|
return {
|
|
@@ -1004,7 +1060,7 @@ const flip$1 = function (options) {
|
|
|
1004
1060
|
const side = getSide(placement);
|
|
1005
1061
|
const initialSideAxis = getSideAxis(initialPlacement);
|
|
1006
1062
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
1007
|
-
const rtl = await (platform.isRTL == null ?
|
|
1063
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
1008
1064
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
1009
1065
|
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
1010
1066
|
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
@@ -1013,7 +1069,7 @@ const flip$1 = function (options) {
|
|
|
1013
1069
|
const placements = [initialPlacement, ...fallbackPlacements];
|
|
1014
1070
|
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
1015
1071
|
const overflows = [];
|
|
1016
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ?
|
|
1072
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
1017
1073
|
if (checkMainAxis) {
|
|
1018
1074
|
overflows.push(overflow[side]);
|
|
1019
1075
|
}
|
|
@@ -1029,7 +1085,7 @@ const flip$1 = function (options) {
|
|
|
1029
1085
|
// One or more sides is overflowing.
|
|
1030
1086
|
if (!overflows.every(side => side <= 0)) {
|
|
1031
1087
|
var _middlewareData$flip2, _overflowsData$filter;
|
|
1032
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ?
|
|
1088
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1033
1089
|
const nextPlacement = placements[nextIndex];
|
|
1034
1090
|
if (nextPlacement) {
|
|
1035
1091
|
// Try next placement and re-run the lifecycle.
|
|
@@ -1046,7 +1102,7 @@ const flip$1 = function (options) {
|
|
|
1046
1102
|
|
|
1047
1103
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
1048
1104
|
// then find the placement that fits the best on the main crossAxis side.
|
|
1049
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ?
|
|
1105
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
1050
1106
|
|
|
1051
1107
|
// Otherwise fallback.
|
|
1052
1108
|
if (!resetPlacement) {
|
|
@@ -1063,7 +1119,7 @@ const flip$1 = function (options) {
|
|
|
1063
1119
|
currentSideAxis === 'y';
|
|
1064
1120
|
}
|
|
1065
1121
|
return true;
|
|
1066
|
-
}).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 ?
|
|
1122
|
+
}).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 ? void 0 : _overflowsData$filter2[0];
|
|
1067
1123
|
if (placement) {
|
|
1068
1124
|
resetPlacement = placement;
|
|
1069
1125
|
}
|
|
@@ -1096,7 +1152,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1096
1152
|
platform,
|
|
1097
1153
|
elements
|
|
1098
1154
|
} = state;
|
|
1099
|
-
const rtl = await (platform.isRTL == null ?
|
|
1155
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
1100
1156
|
const side = getSide(placement);
|
|
1101
1157
|
const alignment = getAlignment(placement);
|
|
1102
1158
|
const isVertical = getSideAxis(placement) === 'y';
|
|
@@ -1138,7 +1194,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1138
1194
|
* @see https://floating-ui.com/docs/offset
|
|
1139
1195
|
*/
|
|
1140
1196
|
const offset$1 = function (options) {
|
|
1141
|
-
if (options ===
|
|
1197
|
+
if (options === void 0) {
|
|
1142
1198
|
options = 0;
|
|
1143
1199
|
}
|
|
1144
1200
|
return {
|
|
@@ -1156,7 +1212,7 @@ const offset$1 = function (options) {
|
|
|
1156
1212
|
|
|
1157
1213
|
// If the placement is the same and the arrow caused an alignment offset
|
|
1158
1214
|
// then we don't need to change the positioning coordinates.
|
|
1159
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ?
|
|
1215
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
1160
1216
|
return {};
|
|
1161
1217
|
}
|
|
1162
1218
|
return {
|
|
@@ -1185,11 +1241,11 @@ function getNodeName(node) {
|
|
|
1185
1241
|
}
|
|
1186
1242
|
function getWindow(node) {
|
|
1187
1243
|
var _node$ownerDocument;
|
|
1188
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ?
|
|
1244
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
1189
1245
|
}
|
|
1190
1246
|
function getDocumentElement(node) {
|
|
1191
1247
|
var _ref;
|
|
1192
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ?
|
|
1248
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
1193
1249
|
}
|
|
1194
1250
|
function isNode(value) {
|
|
1195
1251
|
if (!hasWindow()) {
|
|
@@ -1304,14 +1360,14 @@ function getNearestOverflowAncestor(node) {
|
|
|
1304
1360
|
}
|
|
1305
1361
|
function getOverflowAncestors(node, list, traverseIframes) {
|
|
1306
1362
|
var _node$ownerDocument2;
|
|
1307
|
-
if (list ===
|
|
1363
|
+
if (list === void 0) {
|
|
1308
1364
|
list = [];
|
|
1309
1365
|
}
|
|
1310
|
-
if (traverseIframes ===
|
|
1366
|
+
if (traverseIframes === void 0) {
|
|
1311
1367
|
traverseIframes = true;
|
|
1312
1368
|
}
|
|
1313
1369
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1314
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ?
|
|
1370
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
1315
1371
|
const win = getWindow(scrollableAncestor);
|
|
1316
1372
|
if (isBody) {
|
|
1317
1373
|
const frameElement = getFrameElement(win);
|
|
@@ -1388,7 +1444,7 @@ function getVisualOffsets(element) {
|
|
|
1388
1444
|
};
|
|
1389
1445
|
}
|
|
1390
1446
|
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1391
|
-
if (isFixed ===
|
|
1447
|
+
if (isFixed === void 0) {
|
|
1392
1448
|
isFixed = false;
|
|
1393
1449
|
}
|
|
1394
1450
|
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
@@ -1398,10 +1454,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
1398
1454
|
}
|
|
1399
1455
|
|
|
1400
1456
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1401
|
-
if (includeScale ===
|
|
1457
|
+
if (includeScale === void 0) {
|
|
1402
1458
|
includeScale = false;
|
|
1403
1459
|
}
|
|
1404
|
-
if (isFixedStrategy ===
|
|
1460
|
+
if (isFixedStrategy === void 0) {
|
|
1405
1461
|
isFixedStrategy = false;
|
|
1406
1462
|
}
|
|
1407
1463
|
const clientRect = element.getBoundingClientRect();
|
|
@@ -1461,7 +1517,7 @@ function getWindowScrollBarX(element, rect) {
|
|
|
1461
1517
|
}
|
|
1462
1518
|
|
|
1463
1519
|
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
1464
|
-
if (ignoreScrollbarX ===
|
|
1520
|
+
if (ignoreScrollbarX === void 0) {
|
|
1465
1521
|
ignoreScrollbarX = false;
|
|
1466
1522
|
}
|
|
1467
1523
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
@@ -1811,10 +1867,10 @@ function observeMove(element, onMove) {
|
|
|
1811
1867
|
io = null;
|
|
1812
1868
|
}
|
|
1813
1869
|
function refresh(skip, threshold) {
|
|
1814
|
-
if (skip ===
|
|
1870
|
+
if (skip === void 0) {
|
|
1815
1871
|
skip = false;
|
|
1816
1872
|
}
|
|
1817
|
-
if (threshold ===
|
|
1873
|
+
if (threshold === void 0) {
|
|
1818
1874
|
threshold = 1;
|
|
1819
1875
|
}
|
|
1820
1876
|
cleanup();
|
|
@@ -1885,7 +1941,7 @@ function observeMove(element, onMove) {
|
|
|
1885
1941
|
* @see https://floating-ui.com/docs/autoUpdate
|
|
1886
1942
|
*/
|
|
1887
1943
|
function autoUpdate(reference, floating, update, options) {
|
|
1888
|
-
if (options ===
|
|
1944
|
+
if (options === void 0) {
|
|
1889
1945
|
options = {};
|
|
1890
1946
|
}
|
|
1891
1947
|
const {
|
|
@@ -2020,37 +2076,23 @@ class AuroFloatingUI {
|
|
|
2020
2076
|
}
|
|
2021
2077
|
|
|
2022
2078
|
/**
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
2025
|
-
*
|
|
2026
|
-
* This method retrieves the computed styles of the bibSizer element and applies them to the bib content.
|
|
2027
|
-
* If the fullscreen parameter is true, it resets the dimensions to their default values. Otherwise, it
|
|
2028
|
-
* mirrors the width and height from the bibSizer, ensuring that they are not set to zero.
|
|
2029
|
-
*
|
|
2030
|
-
* @param {boolean} fullscreen - A flag indicating whether to reset the dimensions for fullscreen mode.
|
|
2031
|
-
* If true, the bib content dimensions are cleared; if false, they are set
|
|
2032
|
-
* based on the bibSizer's computed styles.
|
|
2079
|
+
* Mirrors the size of the bibSizer element to the bib content.
|
|
2080
|
+
* Copies the width, height, max-width, and max-height styles from the bibSizer element to the bib content container.
|
|
2081
|
+
* This ensures that the bib content has the same dimensions as the sizer element.
|
|
2033
2082
|
*/
|
|
2034
|
-
mirrorSize(
|
|
2083
|
+
mirrorSize() {
|
|
2035
2084
|
// mirror the boxsize from bibSizer
|
|
2036
2085
|
if (this.element.bibSizer) {
|
|
2037
2086
|
const sizerStyle = window.getComputedStyle(this.element.bibSizer);
|
|
2038
2087
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
2039
|
-
if (
|
|
2040
|
-
bibContent.style.width =
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
bibContent.style.
|
|
2044
|
-
} else {
|
|
2045
|
-
if (sizerStyle.width !== '0px') {
|
|
2046
|
-
bibContent.style.width = sizerStyle.width;
|
|
2047
|
-
}
|
|
2048
|
-
if (sizerStyle.height !== '0px') {
|
|
2049
|
-
bibContent.style.height = sizerStyle.height;
|
|
2050
|
-
}
|
|
2051
|
-
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
2052
|
-
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
2088
|
+
if (sizerStyle.width !== '0px') {
|
|
2089
|
+
bibContent.style.width = sizerStyle.width;
|
|
2090
|
+
}
|
|
2091
|
+
if (sizerStyle.height !== '0px') {
|
|
2092
|
+
bibContent.style.height = sizerStyle.height;
|
|
2053
2093
|
}
|
|
2094
|
+
bibContent.style.maxWidth = sizerStyle.maxWidth;
|
|
2095
|
+
bibContent.style.maxHeight = sizerStyle.maxHeight;
|
|
2054
2096
|
}
|
|
2055
2097
|
}
|
|
2056
2098
|
|
|
@@ -2066,11 +2108,12 @@ class AuroFloatingUI {
|
|
|
2066
2108
|
getPositioningStrategy() {
|
|
2067
2109
|
let strategy = 'floating';
|
|
2068
2110
|
if (this.element.bib.mobileFullscreenBreakpoint) {
|
|
2069
|
-
const
|
|
2070
|
-
if (
|
|
2111
|
+
const smallerThanBreakpoint = window.matchMedia(`(max-width: ${this.element.bib.mobileFullscreenBreakpoint})`).matches;
|
|
2112
|
+
if (smallerThanBreakpoint) {
|
|
2071
2113
|
strategy = 'fullscreen';
|
|
2072
2114
|
}
|
|
2073
2115
|
}
|
|
2116
|
+
|
|
2074
2117
|
return strategy;
|
|
2075
2118
|
}
|
|
2076
2119
|
|
|
@@ -2084,13 +2127,10 @@ class AuroFloatingUI {
|
|
|
2084
2127
|
*/
|
|
2085
2128
|
position() {
|
|
2086
2129
|
const strategy = this.getPositioningStrategy();
|
|
2087
|
-
|
|
2088
|
-
this.configureBibFullscreen(true);
|
|
2089
|
-
this.mirrorSize(true);
|
|
2090
|
-
} else {
|
|
2091
|
-
this.configureBibFullscreen(false);
|
|
2092
|
-
this.mirrorSize(false);
|
|
2130
|
+
this.configureBibStrategy(strategy);
|
|
2093
2131
|
|
|
2132
|
+
if (strategy === 'floating') {
|
|
2133
|
+
this.mirrorSize();
|
|
2094
2134
|
// Define the middlware for the floater configuration
|
|
2095
2135
|
const middleware = [
|
|
2096
2136
|
offset(this.element.floaterConfig.offset || 0),
|
|
@@ -2101,7 +2141,7 @@ class AuroFloatingUI {
|
|
|
2101
2141
|
// Compute the position of the bib
|
|
2102
2142
|
computePosition(this.element.trigger, this.element.bib, {
|
|
2103
2143
|
placement: this.element.floaterConfig.placement || 'bottom',
|
|
2104
|
-
middleware: middleware
|
|
2144
|
+
middleware: middleware || []
|
|
2105
2145
|
}).then(({x, y}) => { // eslint-disable-line id-length
|
|
2106
2146
|
Object.assign(this.element.bib.style, {
|
|
2107
2147
|
left: `${x}px`,
|
|
@@ -2113,28 +2153,72 @@ class AuroFloatingUI {
|
|
|
2113
2153
|
|
|
2114
2154
|
/**
|
|
2115
2155
|
* @private
|
|
2116
|
-
*
|
|
2156
|
+
* Controls whether to lock the scrolling for the document's body.
|
|
2157
|
+
* @param {Boolean} lock - If true, locks the body's scrolling functionlity; otherwise, unlock.
|
|
2158
|
+
*/
|
|
2159
|
+
lockScroll(lock = true) {
|
|
2160
|
+
if (lock) {
|
|
2161
|
+
document.body.style.overflow = 'hidden'; // hide body's scrollbar
|
|
2162
|
+
|
|
2163
|
+
// Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
|
|
2164
|
+
this.element.bib.style.transform = `translateY(${visualViewport.offsetTop}px)`;
|
|
2165
|
+
} else {
|
|
2166
|
+
document.body.style.overflow = '';
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* @private
|
|
2172
|
+
* Configures the bib element's display strategy.
|
|
2117
2173
|
*
|
|
2118
|
-
*
|
|
2119
|
-
*
|
|
2120
|
-
* 'isFullscreen' attribute, indicating that the bib is not in fullscreen mode.
|
|
2174
|
+
* Sets the bib to fullscreen or floating mode based on the provided strategy.
|
|
2175
|
+
* Dispatches a 'strategy-change' event if the strategy changes.
|
|
2121
2176
|
*
|
|
2122
|
-
* @param {
|
|
2177
|
+
* @param {string} strategy - The positioning strategy ('fullscreen' or 'floating').
|
|
2123
2178
|
*/
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2179
|
+
configureBibStrategy(strategy) {
|
|
2180
|
+
const prevStrategy = this.element.isBibFullscreen ? 'fullscreen' : 'floating';
|
|
2181
|
+
if (strategy === 'fullscreen') {
|
|
2182
|
+
this.element.isBibFullscreen = true;
|
|
2127
2183
|
// reset the prev position
|
|
2128
2184
|
this.element.bib.style.top = "0px";
|
|
2129
2185
|
this.element.bib.style.left = "0px";
|
|
2186
|
+
|
|
2187
|
+
// reset the size that was mirroring `size` css-part
|
|
2188
|
+
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
2189
|
+
bibContent.style.width = '';
|
|
2190
|
+
bibContent.style.height = '';
|
|
2191
|
+
bibContent.style.maxWidth = '';
|
|
2192
|
+
bibContent.style.maxHeight = `${window.visualViewport.height}px`;
|
|
2193
|
+
|
|
2194
|
+
if (this.element.isPopoverVisible) {
|
|
2195
|
+
this.lockScroll(true);
|
|
2196
|
+
}
|
|
2130
2197
|
} else {
|
|
2131
|
-
this.element.
|
|
2198
|
+
this.element.isBibFullscreen = false;
|
|
2199
|
+
|
|
2200
|
+
this.lockScroll(false);
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
if (prevStrategy !== strategy) {
|
|
2204
|
+
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-strategy-change` : 'strategy-change', {
|
|
2205
|
+
detail: {
|
|
2206
|
+
strategy,
|
|
2207
|
+
},
|
|
2208
|
+
composed: true
|
|
2209
|
+
});
|
|
2210
|
+
|
|
2211
|
+
this.element.dispatchEvent(event);
|
|
2132
2212
|
}
|
|
2133
2213
|
}
|
|
2134
2214
|
|
|
2135
2215
|
updateState() {
|
|
2136
2216
|
const isVisible = this.element.isPopoverVisible;
|
|
2137
|
-
|
|
2217
|
+
|
|
2218
|
+
// Refactor this to apply attribute to correct focusable element
|
|
2219
|
+
// Reference Issue: https://github.com/AlaskaAirlines/auro-library/issues/105
|
|
2220
|
+
//
|
|
2221
|
+
// this.element.trigger.setAttribute('aria-expanded', isVisible);
|
|
2138
2222
|
|
|
2139
2223
|
if (isVisible) {
|
|
2140
2224
|
this.element.bib.setAttribute('data-show', true);
|
|
@@ -2230,6 +2314,7 @@ class AuroFloatingUI {
|
|
|
2230
2314
|
this.updateCurrentExpandedDropdown();
|
|
2231
2315
|
this.element.isPopoverVisible = true;
|
|
2232
2316
|
this.element.triggerChevron?.setAttribute('data-expanded', true);
|
|
2317
|
+
|
|
2233
2318
|
this.dispatchEventDropdownToggle();
|
|
2234
2319
|
this.position();
|
|
2235
2320
|
|
|
@@ -2247,6 +2332,7 @@ class AuroFloatingUI {
|
|
|
2247
2332
|
hideBib() {
|
|
2248
2333
|
if (this.element.isPopoverVisible && !this.element.disabled && !this.element.noToggle) {
|
|
2249
2334
|
this.element.isPopoverVisible = false;
|
|
2335
|
+
this.lockScroll(false);
|
|
2250
2336
|
this.element.triggerChevron?.removeAttribute('data-expanded');
|
|
2251
2337
|
this.dispatchEventDropdownToggle();
|
|
2252
2338
|
}
|
|
@@ -2259,7 +2345,7 @@ class AuroFloatingUI {
|
|
|
2259
2345
|
dispatchEventDropdownToggle() {
|
|
2260
2346
|
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
|
|
2261
2347
|
detail: {
|
|
2262
|
-
expanded: this.isPopoverVisible,
|
|
2348
|
+
expanded: this.element.isPopoverVisible,
|
|
2263
2349
|
},
|
|
2264
2350
|
composed: true
|
|
2265
2351
|
});
|
|
@@ -2276,7 +2362,7 @@ class AuroFloatingUI {
|
|
|
2276
2362
|
|
|
2277
2363
|
const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-triggerClick` : "triggerClick", {
|
|
2278
2364
|
composed: true,
|
|
2279
|
-
|
|
2365
|
+
detail: {
|
|
2280
2366
|
expanded: this.element.isPopoverVisible
|
|
2281
2367
|
}
|
|
2282
2368
|
});
|
|
@@ -2328,6 +2414,12 @@ class AuroFloatingUI {
|
|
|
2328
2414
|
}
|
|
2329
2415
|
}
|
|
2330
2416
|
|
|
2417
|
+
/**
|
|
2418
|
+
* Manages the tabIndex of the trigger element based on its focusability.
|
|
2419
|
+
*
|
|
2420
|
+
* If the trigger element or any of its children are inherently focusable, the tabIndex of the component is set to -1.
|
|
2421
|
+
* This prevents the component itself from being focusable when the trigger element already handles focus.
|
|
2422
|
+
*/
|
|
2331
2423
|
handleTriggerTabIndex() {
|
|
2332
2424
|
const focusableElementSelectors = [
|
|
2333
2425
|
'a',
|
|
@@ -2342,6 +2434,9 @@ class AuroFloatingUI {
|
|
|
2342
2434
|
];
|
|
2343
2435
|
|
|
2344
2436
|
const triggerNode = this.element.querySelectorAll('[slot="trigger"]')[0];
|
|
2437
|
+
if (!triggerNode) {
|
|
2438
|
+
return;
|
|
2439
|
+
}
|
|
2345
2440
|
const triggerNodeTagName = triggerNode.tagName.toLowerCase();
|
|
2346
2441
|
|
|
2347
2442
|
focusableElementSelectors.forEach((selector) => {
|
|
@@ -2370,12 +2465,13 @@ class AuroFloatingUI {
|
|
|
2370
2465
|
|
|
2371
2466
|
this.handleTriggerTabIndex();
|
|
2372
2467
|
|
|
2373
|
-
this.
|
|
2374
|
-
this.element.trigger.addEventListener('
|
|
2375
|
-
this.element.trigger.addEventListener('
|
|
2376
|
-
this.element.trigger.addEventListener('
|
|
2377
|
-
this.element.trigger.addEventListener('
|
|
2378
|
-
this.element.trigger.addEventListener('
|
|
2468
|
+
this.handleEvent = this.handleEvent.bind(this);
|
|
2469
|
+
this.element.trigger.addEventListener('keydown', this.handleEvent);
|
|
2470
|
+
this.element.trigger.addEventListener('click', this.handleEvent);
|
|
2471
|
+
this.element.trigger.addEventListener('mouseenter', this.handleEvent);
|
|
2472
|
+
this.element.trigger.addEventListener('mouseleave', this.handleEvent);
|
|
2473
|
+
this.element.trigger.addEventListener('focus', this.handleEvent);
|
|
2474
|
+
this.element.trigger.addEventListener('blur', this.handleEvent);
|
|
2379
2475
|
}
|
|
2380
2476
|
|
|
2381
2477
|
disconnect() {
|
|
@@ -2384,12 +2480,12 @@ class AuroFloatingUI {
|
|
|
2384
2480
|
|
|
2385
2481
|
// Remove event & keyboard listeners
|
|
2386
2482
|
if (this.element?.trigger) {
|
|
2387
|
-
this.element.trigger.removeEventListener('keydown',
|
|
2388
|
-
this.element.trigger.removeEventListener('click',
|
|
2389
|
-
this.element.trigger.removeEventListener('mouseenter',
|
|
2390
|
-
this.element.trigger.removeEventListener('mouseleave',
|
|
2391
|
-
this.element.trigger.removeEventListener('focus',
|
|
2392
|
-
this.element.trigger.removeEventListener('blur',
|
|
2483
|
+
this.element.trigger.removeEventListener('keydown', this.handleEvent);
|
|
2484
|
+
this.element.trigger.removeEventListener('click', this.handleEvent);
|
|
2485
|
+
this.element.trigger.removeEventListener('mouseenter', this.handleEvent);
|
|
2486
|
+
this.element.trigger.removeEventListener('mouseleave', this.handleEvent);
|
|
2487
|
+
this.element.trigger.removeEventListener('focus', this.handleEvent);
|
|
2488
|
+
this.element.trigger.removeEventListener('blur', this.handleEvent);
|
|
2393
2489
|
}
|
|
2394
2490
|
}
|
|
2395
2491
|
}
|
|
@@ -2398,7 +2494,7 @@ class AuroFloatingUI {
|
|
|
2398
2494
|
// See LICENSE in the project root for license information.
|
|
2399
2495
|
|
|
2400
2496
|
|
|
2401
|
-
class AuroDependencyVersioning {
|
|
2497
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
2402
2498
|
|
|
2403
2499
|
/**
|
|
2404
2500
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -2424,7 +2520,7 @@ class AuroDependencyVersioning {
|
|
|
2424
2520
|
*/
|
|
2425
2521
|
generateTag(baseName, version, tagClass) {
|
|
2426
2522
|
const elementName = this.generateElementName(baseName, version);
|
|
2427
|
-
const tag = i$
|
|
2523
|
+
const tag = i$8`${s$3(elementName)}`;
|
|
2428
2524
|
|
|
2429
2525
|
if (!customElements.get(elementName)) {
|
|
2430
2526
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -2432,26 +2528,26 @@ class AuroDependencyVersioning {
|
|
|
2432
2528
|
|
|
2433
2529
|
return tag;
|
|
2434
2530
|
}
|
|
2435
|
-
}
|
|
2531
|
+
};
|
|
2436
2532
|
|
|
2437
2533
|
/**
|
|
2438
2534
|
* @license
|
|
2439
2535
|
* Copyright 2017 Google LLC
|
|
2440
2536
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2441
2537
|
*/
|
|
2442
|
-
const t={ATTRIBUTE:1
|
|
2538
|
+
const t$2$2={ATTRIBUTE:1},e$4$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$4$2 = 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)}};
|
|
2443
2539
|
|
|
2444
2540
|
/**
|
|
2445
2541
|
* @license
|
|
2446
2542
|
* Copyright 2018 Google LLC
|
|
2447
2543
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2448
|
-
*/const e=e$
|
|
2544
|
+
*/const e$3$2=e$4$2(class extends i$4$2{constructor(t){if(super(t),t.type!==t$2$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(void 0===this.st){this.st=new Set,void 0!==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$1}});
|
|
2449
2545
|
|
|
2450
2546
|
/**
|
|
2451
2547
|
* @license
|
|
2452
2548
|
* Copyright 2018 Google LLC
|
|
2453
2549
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2454
|
-
*/const o=o=>o??E;
|
|
2550
|
+
*/const o$3$2=o=>o??E$1$1;
|
|
2455
2551
|
|
|
2456
2552
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2457
2553
|
// See LICENSE in the project root for license information.
|
|
@@ -2463,7 +2559,7 @@ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e
|
|
|
2463
2559
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
2464
2560
|
*/
|
|
2465
2561
|
|
|
2466
|
-
class AuroElement extends r {
|
|
2562
|
+
let AuroElement$1 = class AuroElement extends r$4$1 {
|
|
2467
2563
|
|
|
2468
2564
|
// function to define props used within the scope of this component
|
|
2469
2565
|
static get properties() {
|
|
@@ -2487,13 +2583,13 @@ class AuroElement extends r {
|
|
|
2487
2583
|
|
|
2488
2584
|
return 'false'
|
|
2489
2585
|
}
|
|
2490
|
-
}
|
|
2586
|
+
};
|
|
2491
2587
|
|
|
2492
|
-
var error = {"
|
|
2588
|
+
var error$1 = {"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>"};
|
|
2493
2589
|
|
|
2494
2590
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
2495
2591
|
|
|
2496
|
-
const _fetchMap = new Map();
|
|
2592
|
+
const _fetchMap$1 = new Map();
|
|
2497
2593
|
|
|
2498
2594
|
/**
|
|
2499
2595
|
* A callback to parse Response body.
|
|
@@ -2511,15 +2607,15 @@ const _fetchMap = new Map();
|
|
|
2511
2607
|
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
2512
2608
|
* @returns {Promise}
|
|
2513
2609
|
*/
|
|
2514
|
-
const cacheFetch = (uri, options = {}) => {
|
|
2610
|
+
const cacheFetch$1 = (uri, options = {}) => {
|
|
2515
2611
|
const responseParser = options.responseParser || ((response) => response.text());
|
|
2516
|
-
if (!_fetchMap.has(uri)) {
|
|
2517
|
-
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
2612
|
+
if (!_fetchMap$1.has(uri)) {
|
|
2613
|
+
_fetchMap$1.set(uri, fetch(uri).then(responseParser));
|
|
2518
2614
|
}
|
|
2519
|
-
return _fetchMap.get(uri);
|
|
2615
|
+
return _fetchMap$1.get(uri);
|
|
2520
2616
|
};
|
|
2521
2617
|
|
|
2522
|
-
var styleCss$
|
|
2618
|
+
var styleCss$3$1 = 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}`;
|
|
2523
2619
|
|
|
2524
2620
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2525
2621
|
// See LICENSE in the project root for license information.
|
|
@@ -2532,7 +2628,7 @@ var styleCss$2 = i$3`*,*:before,*:after{box-sizing:border-box}@media(prefers-red
|
|
|
2532
2628
|
*/
|
|
2533
2629
|
|
|
2534
2630
|
// build the component class
|
|
2535
|
-
class BaseIcon extends AuroElement {
|
|
2631
|
+
let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
2536
2632
|
constructor() {
|
|
2537
2633
|
super();
|
|
2538
2634
|
this.onDark = false;
|
|
@@ -2558,8 +2654,8 @@ class BaseIcon extends AuroElement {
|
|
|
2558
2654
|
}
|
|
2559
2655
|
|
|
2560
2656
|
static get styles() {
|
|
2561
|
-
return i$
|
|
2562
|
-
${styleCss$
|
|
2657
|
+
return i$7`
|
|
2658
|
+
${styleCss$3$1}
|
|
2563
2659
|
`;
|
|
2564
2660
|
}
|
|
2565
2661
|
|
|
@@ -2574,9 +2670,9 @@ class BaseIcon extends AuroElement {
|
|
|
2574
2670
|
let iconHTML = '';
|
|
2575
2671
|
|
|
2576
2672
|
if (category === 'logos') {
|
|
2577
|
-
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
2673
|
+
iconHTML = await cacheFetch$1(`${this.uri}/${category}/${name}.svg`);
|
|
2578
2674
|
} else {
|
|
2579
|
-
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
2675
|
+
iconHTML = await cacheFetch$1(`${this.uri}/icons/${category}/${name}.svg`);
|
|
2580
2676
|
}
|
|
2581
2677
|
|
|
2582
2678
|
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
@@ -2592,17 +2688,17 @@ class BaseIcon extends AuroElement {
|
|
|
2592
2688
|
if (svg) {
|
|
2593
2689
|
this.svg = svg;
|
|
2594
2690
|
} else if (!svg) {
|
|
2595
|
-
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
2691
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
2596
2692
|
|
|
2597
2693
|
this.svg = penDOM.body.firstChild;
|
|
2598
2694
|
}
|
|
2599
2695
|
}
|
|
2600
2696
|
}
|
|
2601
|
-
}
|
|
2697
|
+
};
|
|
2602
2698
|
|
|
2603
|
-
var tokensCss$
|
|
2699
|
+
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)}`;
|
|
2604
2700
|
|
|
2605
|
-
var colorCss$
|
|
2701
|
+
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)}`;
|
|
2606
2702
|
|
|
2607
2703
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2608
2704
|
// See LICENSE in the project root for license information.
|
|
@@ -2635,7 +2731,7 @@ var colorCss$2 = i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
2635
2731
|
*/
|
|
2636
2732
|
|
|
2637
2733
|
// build the component class
|
|
2638
|
-
class AuroIcon extends BaseIcon {
|
|
2734
|
+
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
2639
2735
|
constructor() {
|
|
2640
2736
|
super();
|
|
2641
2737
|
|
|
@@ -2664,7 +2760,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2664
2760
|
this.success = false;
|
|
2665
2761
|
this.tertiary = false;
|
|
2666
2762
|
this.warning = false;
|
|
2667
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
2763
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
2668
2764
|
}
|
|
2669
2765
|
|
|
2670
2766
|
// function to define props used within the scope of this component
|
|
@@ -2746,9 +2842,9 @@ class AuroIcon extends BaseIcon {
|
|
|
2746
2842
|
static get styles() {
|
|
2747
2843
|
return [
|
|
2748
2844
|
super.styles,
|
|
2749
|
-
i$
|
|
2750
|
-
i$
|
|
2751
|
-
i$
|
|
2845
|
+
i$7`${tokensCss$2}`,
|
|
2846
|
+
i$7`${styleCss$3$1}`,
|
|
2847
|
+
i$7`${colorCss$3}`
|
|
2752
2848
|
];
|
|
2753
2849
|
}
|
|
2754
2850
|
|
|
@@ -2761,7 +2857,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2761
2857
|
*
|
|
2762
2858
|
*/
|
|
2763
2859
|
static register(name = "auro-icon") {
|
|
2764
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
2860
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
2765
2861
|
}
|
|
2766
2862
|
|
|
2767
2863
|
connectedCallback() {
|
|
@@ -2790,38 +2886,34 @@ class AuroIcon extends BaseIcon {
|
|
|
2790
2886
|
'wrapper': true,
|
|
2791
2887
|
};
|
|
2792
2888
|
|
|
2793
|
-
return x`
|
|
2889
|
+
return x$1`
|
|
2794
2890
|
<div
|
|
2795
|
-
class="${e(classes)}"
|
|
2796
|
-
title="${o(this.title || undefined)}">
|
|
2797
|
-
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2798
|
-
${this.customSvg ? x`
|
|
2891
|
+
class="${e$3$2(classes)}"
|
|
2892
|
+
title="${o$3$2(this.title || undefined)}">
|
|
2893
|
+
<span aria-hidden="${o$3$2(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2894
|
+
${this.customSvg ? x$1`
|
|
2799
2895
|
<slot name="svg"></slot>
|
|
2800
|
-
` : x`
|
|
2896
|
+
` : x$1`
|
|
2801
2897
|
${this.svg}
|
|
2802
2898
|
`
|
|
2803
2899
|
}
|
|
2804
2900
|
</span>
|
|
2805
2901
|
|
|
2806
|
-
<div class="${e(a11y)}">
|
|
2902
|
+
<div class="${e$3$2(a11y)}">
|
|
2807
2903
|
<slot></slot>
|
|
2808
2904
|
</div>
|
|
2809
2905
|
</div>
|
|
2810
2906
|
`;
|
|
2811
2907
|
}
|
|
2812
|
-
}
|
|
2813
|
-
|
|
2814
|
-
var iconVersion = '6.1.2';
|
|
2815
|
-
|
|
2816
|
-
var styleCss$1 = i$3`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2908
|
+
};
|
|
2817
2909
|
|
|
2818
|
-
var
|
|
2910
|
+
var iconVersion$1 = '6.1.2';
|
|
2819
2911
|
|
|
2820
|
-
var
|
|
2912
|
+
var styleCss$2$1 = 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;overscroll-behavior:contain}: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}`;
|
|
2821
2913
|
|
|
2822
|
-
var
|
|
2914
|
+
var colorCss$2$1 = 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)}`;
|
|
2823
2915
|
|
|
2824
|
-
var
|
|
2916
|
+
var tokensCss$1$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-outline-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)}`;
|
|
2825
2917
|
|
|
2826
2918
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2827
2919
|
// See LICENSE in the project root for license information.
|
|
@@ -2837,11 +2929,11 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2837
2929
|
];
|
|
2838
2930
|
|
|
2839
2931
|
/**
|
|
2840
|
-
* @prop { String }
|
|
2932
|
+
* @prop { String } fullscreenBreakpoint - 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.
|
|
2841
2933
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2842
2934
|
*/
|
|
2843
2935
|
|
|
2844
|
-
class AuroDropdownBib extends r {
|
|
2936
|
+
class AuroDropdownBib extends r$4$1 {
|
|
2845
2937
|
|
|
2846
2938
|
constructor() {
|
|
2847
2939
|
super();
|
|
@@ -2850,19 +2942,29 @@ class AuroDropdownBib extends r {
|
|
|
2850
2942
|
* @private
|
|
2851
2943
|
*/
|
|
2852
2944
|
this._mobileBreakpointValue = undefined;
|
|
2945
|
+
|
|
2946
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2853
2947
|
}
|
|
2854
2948
|
|
|
2855
2949
|
static get styles() {
|
|
2856
2950
|
return [
|
|
2857
|
-
styleCss$
|
|
2858
|
-
colorCss$
|
|
2859
|
-
tokensCss$
|
|
2951
|
+
styleCss$2$1,
|
|
2952
|
+
colorCss$2$1,
|
|
2953
|
+
tokensCss$1$1
|
|
2860
2954
|
];
|
|
2861
2955
|
}
|
|
2862
2956
|
|
|
2863
2957
|
static get properties() {
|
|
2864
2958
|
return {
|
|
2865
2959
|
|
|
2960
|
+
/**
|
|
2961
|
+
* If declared, will take the fullscreen when the bib is displayed.
|
|
2962
|
+
*/
|
|
2963
|
+
isFullscreen: {
|
|
2964
|
+
type: Boolean,
|
|
2965
|
+
reflect: true
|
|
2966
|
+
},
|
|
2967
|
+
|
|
2866
2968
|
/**
|
|
2867
2969
|
* If declared, will apply all styles for the common theme.
|
|
2868
2970
|
*/
|
|
@@ -2905,9 +3007,24 @@ class AuroDropdownBib extends r {
|
|
|
2905
3007
|
return this._mobileBreakpointValue;
|
|
2906
3008
|
}
|
|
2907
3009
|
|
|
3010
|
+
updated(changedProperties) {
|
|
3011
|
+
if (changedProperties.has('isFullscreen')) {
|
|
3012
|
+
this.childNodes.forEach((child) => {
|
|
3013
|
+
// skip any text that is not in an HTMLElement on setting `isFullscreen` attr.
|
|
3014
|
+
if (child.nodeName !== '#text') {
|
|
3015
|
+
if (this.isFullscreen) {
|
|
3016
|
+
child.setAttribute('isFullscreen', 'true');
|
|
3017
|
+
} else {
|
|
3018
|
+
child.removeAttribute('isFullscreen');
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
});
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
|
|
2908
3025
|
// function that renders the HTML and CSS into the scope of the component
|
|
2909
3026
|
render() {
|
|
2910
|
-
return u$
|
|
3027
|
+
return u$3`
|
|
2911
3028
|
<div class="container" part="bibContainer">
|
|
2912
3029
|
<slot></slot>
|
|
2913
3030
|
</div>
|
|
@@ -2915,124 +3032,383 @@ class AuroDropdownBib extends r {
|
|
|
2915
3032
|
}
|
|
2916
3033
|
}
|
|
2917
3034
|
|
|
2918
|
-
|
|
2919
|
-
if (!customElements.get("auro-dropdownbib")) {
|
|
2920
|
-
customElements.define("auro-dropdownbib", AuroDropdownBib);
|
|
2921
|
-
}
|
|
3035
|
+
var dropdownVersion$1 = '3.0.0';
|
|
2922
3036
|
|
|
2923
|
-
|
|
2924
|
-
// See LICENSE in the project root for license information.
|
|
3037
|
+
var styleCss$1$1 = 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}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@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)}`;
|
|
2925
3038
|
|
|
3039
|
+
var colorCss$1$1 = 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);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-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);--ds-auro-dropdown-trigger-outline-color: 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)}`;
|
|
2926
3040
|
|
|
2927
3041
|
/**
|
|
2928
|
-
* @
|
|
2929
|
-
*
|
|
2930
|
-
*
|
|
2931
|
-
* @slot helpText - Defines the content of the helpText.
|
|
2932
|
-
* @slot trigger - Defines the content of the trigger.
|
|
2933
|
-
* @csspart trigger - The trigger content container.
|
|
2934
|
-
* @csspart chevron - The collapsed/expanded state icon container.
|
|
2935
|
-
* @csspart helpText - The helpText content container.
|
|
2936
|
-
* @csspart popover - The bib content container.
|
|
2937
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
2938
|
-
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
3042
|
+
* @license
|
|
3043
|
+
* Copyright 2019 Google LLC
|
|
3044
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2939
3045
|
*/
|
|
2940
|
-
class
|
|
2941
|
-
constructor() {
|
|
2942
|
-
super();
|
|
3046
|
+
const t$1$2=globalThis,e$2$2=t$1$2.ShadowRoot&&(void 0===t$1$2.ShadyCSS||t$1$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1$2=Symbol(),o$2$2=new WeakMap;let n$2$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1$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$2$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$2.set(s,t));}return t}toString(){return this.cssText}};const r$3$2=t=>new n$2$2("string"==typeof t?t:t+"",void 0,s$1$2),i$3$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2$2(o,t,s$1$2)},S$1$2=(s,o)=>{if(e$2$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$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$2=e$2$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$2(e)})(t):t;
|
|
2943
3047
|
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
3048
|
+
/**
|
|
3049
|
+
* @license
|
|
3050
|
+
* Copyright 2017 Google LLC
|
|
3051
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3052
|
+
*/const{is:i$2$2,defineProperty:e$1$1,getOwnPropertyDescriptor:r$2$2,getOwnPropertyNames:h$1$2,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$1$2}=Object,a$1$2=globalThis,c$1$2=a$1$2.trustedTypes,l$1$2=c$1$2?c$1$2.emptyScript:"",p$1$2=a$1$2.reactiveElementPolyfillSupport,d$1$2=(t,s)=>t,u$1$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$1$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$2=(t,s)=>!i$2$2(t,s),y$1$2={attribute:true,type:String,converter:u$1$2,reflect:false,hasChanged:f$1$2};Symbol.metadata??=Symbol("metadata"),a$1$2.litPropertyMetadata??=new WeakMap;let b$2 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1$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);void 0!==r&&e$1$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$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$2}static _$Ei(){if(this.hasOwnProperty(d$1$2("elementProperties")))return;const t=n$1$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$2("properties"))){const t=this.properties,s=[...h$1$2(t),...o$1$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==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);void 0!==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$2(s));}else void 0!==s&&i.push(c$2$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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$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(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1$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(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$1$2("elementProperties")]=new Map,b$2[d$1$2("finalized")]=new Map,p$1$2?.({ReactiveElement:b$2}),(a$1$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
2947
3053
|
|
|
2948
|
-
|
|
2949
|
-
|
|
3054
|
+
/**
|
|
3055
|
+
* @license
|
|
3056
|
+
* Copyright 2017 Google LLC
|
|
3057
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3058
|
+
*/
|
|
3059
|
+
const t$5=globalThis,i$1$1=t$5.trustedTypes,s$5=i$1$1?i$1$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$8="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$4,n$7=`<${o$8}>`,r$1$2=document,l$5=()=>r$1$2.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$5=Array.isArray,u$5=t=>a$5(t)||"function"==typeof t?.[Symbol.iterator],d$4="[ \t\n\f\r]",f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$2=/>/g,m$2=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y$4=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$4(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$1$2.createTreeWalker(r$1$2,129);function P$2(t,i){if(!a$5(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$5?s$5.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$4;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$4?"!--"===u[1]?c=v$2:void 0!==u[1]?c=_$2:void 0!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$4,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$2:p$4):c===g$2||c===p$4?c=m$2:c===v$2||c===_$2?c=f$4:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$4?s+n$7:d>=0?(o.push(a),s.slice(0,d)+e$8+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$8)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$1$1?i$1$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$5()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$5());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$1$2.createElement("template");return s.innerHTML=t,s}};function S$4(t,i,s=t,e){if(i===T$2)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$6(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$4(t,h._$AS(t,i.values),h,e)),i}let M$2 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,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$2).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$2(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$1$2,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,this._$AN=void 0,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 void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$4(this,t,i),c$6(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$5(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$2&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$2.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return void 0===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$5(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$5()),this.O(l$5()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$2 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$2,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$4(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$4(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?void 0:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$4(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$2 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$4(this,t);}};const j$2=t$5.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$5.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$2(i.insertBefore(l$5(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
2950
3060
|
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
this.bordered = false;
|
|
2957
|
-
this.chevron = false;
|
|
2958
|
-
this.disabled = false;
|
|
2959
|
-
this.error = false;
|
|
2960
|
-
this.inset = false;
|
|
2961
|
-
this.placement = 'bottom-start';
|
|
2962
|
-
this.rounded = false;
|
|
2963
|
-
this.tabIndex = 0;
|
|
2964
|
-
this.noToggle = false;
|
|
3061
|
+
/**
|
|
3062
|
+
* @license
|
|
3063
|
+
* Copyright 2017 Google LLC
|
|
3064
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3065
|
+
*/let r$8 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$8._$litElement$=true,r$8["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$8});const i$a=globalThis.litElementPolyfillSupport;i$a?.({LitElement:r$8});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
2965
3066
|
|
|
2966
|
-
|
|
2967
|
-
* @private
|
|
2968
|
-
*/
|
|
2969
|
-
this.hasTriggerContent = false;
|
|
3067
|
+
var colorCss$4 = i$3$2`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2970
3068
|
|
|
2971
|
-
|
|
2972
|
-
* @private
|
|
2973
|
-
*/
|
|
2974
|
-
this.triggerContentSlot = undefined;
|
|
3069
|
+
var styleCss$4 = i$3$2`.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}`;
|
|
2975
3070
|
|
|
2976
|
-
|
|
2977
|
-
* @private
|
|
2978
|
-
*/
|
|
2979
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
3071
|
+
var tokensCss$3 = i$3$2`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
2980
3072
|
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
*/
|
|
2984
|
-
this.floater = new AuroFloatingUI();
|
|
3073
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3074
|
+
// See LICENSE in the project root for license information.
|
|
2985
3075
|
|
|
2986
|
-
|
|
2987
|
-
* @private
|
|
2988
|
-
*/
|
|
2989
|
-
this.floaterConfig = {
|
|
2990
|
-
placement: 'bottom-start',
|
|
2991
|
-
flip: true,
|
|
2992
|
-
autoPlacement: false,
|
|
2993
|
-
offset: 0,
|
|
2994
|
-
};
|
|
3076
|
+
// ---------------------------------------------------------------------
|
|
2995
3077
|
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
}
|
|
3078
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
3079
|
+
|
|
3080
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
3081
|
+
|
|
3082
|
+
/* eslint-disable jsdoc/require-param */
|
|
3002
3083
|
|
|
3003
3084
|
/**
|
|
3004
|
-
*
|
|
3085
|
+
* This will register a new custom element with the browser.
|
|
3086
|
+
* @param {String} name - The name of the custom element.
|
|
3087
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
3005
3088
|
* @returns {void}
|
|
3006
3089
|
*/
|
|
3007
|
-
|
|
3008
|
-
|
|
3090
|
+
registerComponent(name, componentClass) {
|
|
3091
|
+
if (!customElements.get(name)) {
|
|
3092
|
+
customElements.define(name, class extends componentClass {});
|
|
3093
|
+
}
|
|
3009
3094
|
}
|
|
3010
3095
|
|
|
3011
3096
|
/**
|
|
3012
|
-
*
|
|
3097
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
3013
3098
|
* @returns {void}
|
|
3014
3099
|
*/
|
|
3015
|
-
|
|
3016
|
-
|
|
3100
|
+
closestElement(
|
|
3101
|
+
selector, // selector like in .closest()
|
|
3102
|
+
base = this, // extra functionality to skip a parent
|
|
3103
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
3104
|
+
!el || el === document || el === window
|
|
3105
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
3106
|
+
: found
|
|
3107
|
+
? found // found a selector INside this element
|
|
3108
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
3109
|
+
) {
|
|
3110
|
+
return __Closest(base);
|
|
3017
3111
|
}
|
|
3112
|
+
/* eslint-enable jsdoc/require-param */
|
|
3018
3113
|
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3114
|
+
/**
|
|
3115
|
+
* 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.
|
|
3116
|
+
* @param {Object} elem - The element to check.
|
|
3117
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
3118
|
+
* @returns {void}
|
|
3119
|
+
*/
|
|
3120
|
+
handleComponentTagRename(elem, tagName) {
|
|
3121
|
+
const tag = tagName.toLowerCase();
|
|
3122
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
3022
3123
|
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
type: Boolean,
|
|
3028
|
-
reflect: true
|
|
3029
|
-
},
|
|
3124
|
+
if (elemTag !== tag) {
|
|
3125
|
+
elem.setAttribute(tag, true);
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3030
3128
|
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3129
|
+
/**
|
|
3130
|
+
* Validates if an element is a specific Auro component.
|
|
3131
|
+
* @param {Object} elem - The element to validate.
|
|
3132
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
3133
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
3134
|
+
*/
|
|
3135
|
+
elementMatch(elem, tagName) {
|
|
3136
|
+
const tag = tagName.toLowerCase();
|
|
3137
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
3138
|
+
|
|
3139
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
3140
|
+
}
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3143
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3144
|
+
// See LICENSE in the project root for license information.
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* Displays help text or error messages within form elements - Internal Use Only.
|
|
3149
|
+
*
|
|
3150
|
+
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
3151
|
+
*/
|
|
3152
|
+
class AuroHelpText extends r$8 {
|
|
3153
|
+
|
|
3154
|
+
constructor() {
|
|
3155
|
+
super();
|
|
3156
|
+
|
|
3157
|
+
this.error = false;
|
|
3158
|
+
this.hasTextContent = false;
|
|
3159
|
+
|
|
3160
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
3161
|
+
}
|
|
3162
|
+
|
|
3163
|
+
static get styles() {
|
|
3164
|
+
return [
|
|
3165
|
+
colorCss$4,
|
|
3166
|
+
styleCss$4,
|
|
3167
|
+
tokensCss$3
|
|
3168
|
+
];
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
// function to define props used within the scope of this component
|
|
3172
|
+
static get properties() {
|
|
3173
|
+
return {
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* @private
|
|
3177
|
+
*/
|
|
3178
|
+
slotNodes: {
|
|
3179
|
+
type: Boolean,
|
|
3180
|
+
},
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* @private
|
|
3184
|
+
*/
|
|
3185
|
+
hasTextContent: {
|
|
3186
|
+
type: Boolean,
|
|
3187
|
+
},
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* If declared, make font color red.
|
|
3191
|
+
*/
|
|
3192
|
+
error: {
|
|
3193
|
+
type: Boolean,
|
|
3194
|
+
reflect: true,
|
|
3195
|
+
},
|
|
3196
|
+
};
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* This will register this element with the browser.
|
|
3201
|
+
* @param {string} [name="auro-helptext"] - The name of element that you want to register to.
|
|
3202
|
+
*
|
|
3203
|
+
* @example
|
|
3204
|
+
* AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
|
|
3205
|
+
*
|
|
3206
|
+
*/
|
|
3207
|
+
static register(name = "auro-helptext") {
|
|
3208
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
updated() {
|
|
3212
|
+
this.handleSlotChange();
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
handleSlotChange(event) {
|
|
3216
|
+
if (event) {
|
|
3217
|
+
this.slotNodes = event.target.assignedNodes();
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
|
|
3225
|
+
*
|
|
3226
|
+
* @param {NodeList|Array} nodes - The list of nodes to check for content.
|
|
3227
|
+
* @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
|
|
3228
|
+
* @private
|
|
3229
|
+
*/
|
|
3230
|
+
checkSlotsForContent(nodes) {
|
|
3231
|
+
if (!nodes) {
|
|
3232
|
+
return false;
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
return nodes.some((node) => {
|
|
3236
|
+
if (node.textContent.trim()) {
|
|
3237
|
+
return true;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
if (!node.querySelector) {
|
|
3241
|
+
return false;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
|
|
3245
|
+
if (!nestedSlot) {
|
|
3246
|
+
return false;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
const nestedSlotNodes = nestedSlot.assignedNodes();
|
|
3250
|
+
return this.checkSlotsForContent(nestedSlotNodes);
|
|
3251
|
+
});
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
3255
|
+
render() {
|
|
3256
|
+
return x$2`
|
|
3257
|
+
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
3258
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
3259
|
+
</div>
|
|
3260
|
+
`;
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
var helpTextVersion = '1.0.0';
|
|
3265
|
+
|
|
3266
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3267
|
+
// See LICENSE in the project root for license information.
|
|
3268
|
+
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
3272
|
+
* @slot - Default slot for the popover content.
|
|
3273
|
+
* @slot label - Defines the content of the label.
|
|
3274
|
+
* @slot helpText - Defines the content of the helpText.
|
|
3275
|
+
* @slot trigger - Defines the content of the trigger.
|
|
3276
|
+
* @csspart trigger - The trigger content container.
|
|
3277
|
+
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3278
|
+
* @csspart helpText - The helpText content container.
|
|
3279
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
3280
|
+
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
3281
|
+
*/
|
|
3282
|
+
class AuroDropdown extends r$4$1 {
|
|
3283
|
+
constructor() {
|
|
3284
|
+
super();
|
|
3285
|
+
|
|
3286
|
+
this.isPopoverVisible = false;
|
|
3287
|
+
this.isBibFullscreen = false;
|
|
3288
|
+
this.matchWidth = false;
|
|
3289
|
+
this.noHideOnThisFocusLoss = false;
|
|
3290
|
+
|
|
3291
|
+
this.privateDefaults();
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
* @private
|
|
3295
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
3296
|
+
*/
|
|
3297
|
+
this.constructor.shadowRootOptions = {
|
|
3298
|
+
...r$4$1.shadowRootOptions,
|
|
3299
|
+
delegatesFocus: true,
|
|
3300
|
+
};
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* @private
|
|
3304
|
+
*/
|
|
3305
|
+
this.triggerContentFocusable = false;
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* @private
|
|
3309
|
+
*/
|
|
3310
|
+
this.showTriggerBorders = true;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
/**
|
|
3314
|
+
* @private
|
|
3315
|
+
* @returns {void} Internal defaults.
|
|
3316
|
+
*/
|
|
3317
|
+
privateDefaults() {
|
|
3318
|
+
this.bordered = false;
|
|
3319
|
+
this.chevron = false;
|
|
3320
|
+
this.disabled = false;
|
|
3321
|
+
this.error = false;
|
|
3322
|
+
this.inset = false;
|
|
3323
|
+
this.placement = 'bottom-start';
|
|
3324
|
+
this.rounded = false;
|
|
3325
|
+
this.tabIndex = 0;
|
|
3326
|
+
this.noToggle = false;
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* @private
|
|
3330
|
+
*/
|
|
3331
|
+
this.hasTriggerContent = false;
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* @private
|
|
3335
|
+
*/
|
|
3336
|
+
this.triggerContentSlot = undefined;
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* @private
|
|
3340
|
+
*/
|
|
3341
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
3342
|
+
|
|
3343
|
+
/**
|
|
3344
|
+
* @private
|
|
3345
|
+
*/
|
|
3346
|
+
this.floater = new AuroFloatingUI();
|
|
3347
|
+
|
|
3348
|
+
/**
|
|
3349
|
+
* @private
|
|
3350
|
+
*/
|
|
3351
|
+
this.floaterConfig = {
|
|
3352
|
+
placement: 'bottom-start',
|
|
3353
|
+
flip: true,
|
|
3354
|
+
autoPlacement: false,
|
|
3355
|
+
offset: 0,
|
|
3356
|
+
};
|
|
3357
|
+
|
|
3358
|
+
/**
|
|
3359
|
+
* Generate unique names for dependency components.
|
|
3360
|
+
*/
|
|
3361
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* @private
|
|
3365
|
+
*/
|
|
3366
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
* @private
|
|
3370
|
+
*/
|
|
3371
|
+
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
3372
|
+
|
|
3373
|
+
/**
|
|
3374
|
+
* @private
|
|
3375
|
+
*/
|
|
3376
|
+
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
/**
|
|
3380
|
+
* Public method to hide the dropdown.
|
|
3381
|
+
* @returns {void}
|
|
3382
|
+
*/
|
|
3383
|
+
hide() {
|
|
3384
|
+
this.floater.hideBib();
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* Public method to show the dropdown.
|
|
3389
|
+
* @returns {void}
|
|
3390
|
+
*/
|
|
3391
|
+
show() {
|
|
3392
|
+
this.floater.showBib();
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
// function to define props used within the scope of this component
|
|
3396
|
+
static get properties() {
|
|
3397
|
+
return {
|
|
3398
|
+
|
|
3399
|
+
/**
|
|
3400
|
+
* If declared, applies a border around the trigger slot.
|
|
3401
|
+
*/
|
|
3402
|
+
bordered: {
|
|
3403
|
+
type: Boolean,
|
|
3404
|
+
reflect: true
|
|
3405
|
+
},
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
3409
|
+
* @attr {Boolean} chevron
|
|
3410
|
+
*/
|
|
3411
|
+
chevron: {
|
|
3036
3412
|
type: Boolean,
|
|
3037
3413
|
reflect: true
|
|
3038
3414
|
},
|
|
@@ -3099,6 +3475,14 @@ class AuroDropdown extends r {
|
|
|
3099
3475
|
type: Boolean
|
|
3100
3476
|
},
|
|
3101
3477
|
|
|
3478
|
+
/**
|
|
3479
|
+
* If true, the dropdown bib is taking the fullscreen when it's open
|
|
3480
|
+
*/
|
|
3481
|
+
isBibFullscreen: {
|
|
3482
|
+
type: Boolean,
|
|
3483
|
+
reflect: true,
|
|
3484
|
+
},
|
|
3485
|
+
|
|
3102
3486
|
/**
|
|
3103
3487
|
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
3104
3488
|
*/
|
|
@@ -3117,7 +3501,7 @@ class AuroDropdown extends r {
|
|
|
3117
3501
|
/**
|
|
3118
3502
|
* 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.
|
|
3119
3503
|
*/
|
|
3120
|
-
|
|
3504
|
+
fullscreenBreakpoint: {
|
|
3121
3505
|
type: String,
|
|
3122
3506
|
reflect: true
|
|
3123
3507
|
},
|
|
@@ -3177,9 +3561,9 @@ class AuroDropdown extends r {
|
|
|
3177
3561
|
|
|
3178
3562
|
static get styles() {
|
|
3179
3563
|
return [
|
|
3180
|
-
colorCss$1,
|
|
3181
|
-
styleCss$1,
|
|
3182
|
-
tokensCss$
|
|
3564
|
+
colorCss$1$1,
|
|
3565
|
+
styleCss$1$1,
|
|
3566
|
+
tokensCss$1$1
|
|
3183
3567
|
];
|
|
3184
3568
|
}
|
|
3185
3569
|
|
|
@@ -3192,7 +3576,7 @@ class AuroDropdown extends r {
|
|
|
3192
3576
|
*
|
|
3193
3577
|
*/
|
|
3194
3578
|
static register(name = "auro-dropdown") {
|
|
3195
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroDropdown);
|
|
3579
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
3196
3580
|
}
|
|
3197
3581
|
|
|
3198
3582
|
connectedCallback() {
|
|
@@ -3206,8 +3590,8 @@ class AuroDropdown extends r {
|
|
|
3206
3590
|
updated(changedProperties) {
|
|
3207
3591
|
this.floater.handleUpdate(changedProperties);
|
|
3208
3592
|
|
|
3209
|
-
if (changedProperties.has('
|
|
3210
|
-
this.bibContent.mobileFullscreenBreakpoint = this.
|
|
3593
|
+
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
3594
|
+
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
3211
3595
|
}
|
|
3212
3596
|
|
|
3213
3597
|
// when trigger's content is changed without any attribute or node change,
|
|
@@ -3217,170 +3601,1175 @@ class AuroDropdown extends r {
|
|
|
3217
3601
|
}
|
|
3218
3602
|
}
|
|
3219
3603
|
|
|
3220
|
-
firstUpdated() {
|
|
3221
|
-
this.floater.configure(this, 'auroDropdown');
|
|
3222
|
-
this.bibContent = this.floater.element.bib;
|
|
3604
|
+
firstUpdated() {
|
|
3605
|
+
this.floater.configure(this, 'auroDropdown');
|
|
3606
|
+
this.bibContent = this.floater.element.bib;
|
|
3607
|
+
|
|
3608
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
3609
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
* Exposes CSS parts for styling from parent components.
|
|
3614
|
+
* @returns {void}
|
|
3615
|
+
*/
|
|
3616
|
+
exposeCssParts() {
|
|
3617
|
+
this.setAttribute('exportparts', 'trigger:dropdownTrigger, chevron:dropdownChevron, helpText:dropdownHelpText, size:dropdownSize');
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
/**
|
|
3621
|
+
* Determines if content is within a custom slot.
|
|
3622
|
+
* @private
|
|
3623
|
+
* @param {HTMLElement} element - The element to check.
|
|
3624
|
+
* @returns {Boolean}
|
|
3625
|
+
*/
|
|
3626
|
+
isCustomSlotContent(element) {
|
|
3627
|
+
let currentElement = element;
|
|
3628
|
+
|
|
3629
|
+
let inCustomSlot = false;
|
|
3630
|
+
|
|
3631
|
+
while (currentElement) {
|
|
3632
|
+
currentElement = currentElement.parentElement;
|
|
3633
|
+
|
|
3634
|
+
if (currentElement && currentElement.hasAttribute('slot')) {
|
|
3635
|
+
inCustomSlot = true;
|
|
3636
|
+
break;
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
return inCustomSlot;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* Determines if the element or any children are focusable.
|
|
3645
|
+
* @private
|
|
3646
|
+
* @param {HTMLElement} element - Element to check.
|
|
3647
|
+
* @returns {Boolean} - True if the element or any children are focusable.
|
|
3648
|
+
*/
|
|
3649
|
+
containsFocusableElement(element) {
|
|
3650
|
+
this.showTriggerBorders = true;
|
|
3651
|
+
|
|
3652
|
+
const nodes = [
|
|
3653
|
+
element,
|
|
3654
|
+
...element.children
|
|
3655
|
+
];
|
|
3656
|
+
|
|
3657
|
+
const focusableElements = [
|
|
3658
|
+
'a',
|
|
3659
|
+
'auro-hyperlink',
|
|
3660
|
+
'button',
|
|
3661
|
+
'auro-button',
|
|
3662
|
+
'input',
|
|
3663
|
+
'auro-input',
|
|
3664
|
+
];
|
|
3665
|
+
|
|
3666
|
+
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
3667
|
+
|
|
3668
|
+
const result = nodes.some((node) => {
|
|
3669
|
+
const tagName = node.tagName.toLowerCase();
|
|
3670
|
+
|
|
3671
|
+
if (node.tabIndex > -1) {
|
|
3672
|
+
return true;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
if (focusableElements.includes(tagName)) {
|
|
3676
|
+
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
3677
|
+
return true;
|
|
3678
|
+
}
|
|
3679
|
+
if (!node.hasAttribute('disabled')) {
|
|
3680
|
+
return true;
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
3685
|
+
return true;
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
return false;
|
|
3689
|
+
});
|
|
3690
|
+
|
|
3691
|
+
if (result) {
|
|
3692
|
+
this.showTriggerBorders = !nodes.some((node) => {
|
|
3693
|
+
const tagName = node.tagName.toLowerCase();
|
|
3694
|
+
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
3695
|
+
});
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
return result;
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
3703
|
+
*
|
|
3704
|
+
* It first updates the floater settings
|
|
3705
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
3706
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
3707
|
+
*
|
|
3708
|
+
* @private
|
|
3709
|
+
* @method handleTriggerContentSlotChange
|
|
3710
|
+
* @param {Event} event - Native slotchange event.
|
|
3711
|
+
* @returns {void}
|
|
3712
|
+
*/
|
|
3713
|
+
handleTriggerContentSlotChange(event) {
|
|
3714
|
+
this.floater.handleTriggerTabIndex();
|
|
3715
|
+
|
|
3716
|
+
const triggerContentNodes = this.shadowRoot.querySelector('.triggerContent slot').assignedNodes();
|
|
3717
|
+
|
|
3718
|
+
triggerContentNodes.forEach((node) => {
|
|
3719
|
+
if (!this.triggerContentFocusable) {
|
|
3720
|
+
this.triggerContentFocusable = this.containsFocusableElement(node);
|
|
3721
|
+
}
|
|
3722
|
+
});
|
|
3723
|
+
|
|
3724
|
+
const trigger = this.shadowRoot.querySelector('#trigger');
|
|
3725
|
+
|
|
3726
|
+
if (!this.triggerContentFocusable) {
|
|
3727
|
+
trigger.setAttribute('tabindex', '0');
|
|
3728
|
+
trigger.setAttribute('role', 'button');
|
|
3729
|
+
} else {
|
|
3730
|
+
trigger.removeAttribute('tabindex');
|
|
3731
|
+
trigger.removeAttribute('role');
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
if (event) {
|
|
3735
|
+
this.triggerNode = event.target;
|
|
3736
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
3737
|
+
}
|
|
3738
|
+
|
|
3739
|
+
if (this.triggerContentSlot) {
|
|
3740
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
3741
|
+
if (slot.textContent.trim()) {
|
|
3742
|
+
return true;
|
|
3743
|
+
}
|
|
3744
|
+
const slotInSlot = slot.querySelector('slot');
|
|
3745
|
+
if (!slotInSlot) {
|
|
3746
|
+
return false;
|
|
3747
|
+
}
|
|
3748
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
3749
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
3750
|
+
});
|
|
3751
|
+
} else {
|
|
3752
|
+
this.hasTriggerContent = false;
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
3755
|
+
|
|
3756
|
+
/**
|
|
3757
|
+
* Handles the default slot change event and updates the content.
|
|
3758
|
+
*
|
|
3759
|
+
* This method retrieves all nodes assigned to the default slot of the event target and appends them
|
|
3760
|
+
* to the `bibContent` element. If a callback function `onSlotChange` is defined, it is invoked to
|
|
3761
|
+
* notify about the slot change.
|
|
3762
|
+
*
|
|
3763
|
+
* @private
|
|
3764
|
+
* @method handleDefaultSlot
|
|
3765
|
+
* @param {Event} event - The event object representing the slot change.
|
|
3766
|
+
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
3767
|
+
*/
|
|
3768
|
+
handleDefaultSlot(event) {
|
|
3769
|
+
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
3770
|
+
|
|
3771
|
+
if (this.onSlotChange) {
|
|
3772
|
+
this.onSlotChange();
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
3777
|
+
render() {
|
|
3778
|
+
return u$3`
|
|
3779
|
+
<div>
|
|
3780
|
+
<div
|
|
3781
|
+
id="trigger"
|
|
3782
|
+
class="trigger"
|
|
3783
|
+
part="trigger"
|
|
3784
|
+
aria-labelledby="triggerLabel"
|
|
3785
|
+
tabindex="${this.tabIndex}"
|
|
3786
|
+
?showBorder="${this.showTriggerBorders}"
|
|
3787
|
+
>
|
|
3788
|
+
<div class="triggerContentWrapper">
|
|
3789
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3790
|
+
<slot name="label"></slot>
|
|
3791
|
+
</label>
|
|
3792
|
+
<div class="triggerContent">
|
|
3793
|
+
<slot
|
|
3794
|
+
name="trigger"
|
|
3795
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
3796
|
+
</div>
|
|
3797
|
+
</div>
|
|
3798
|
+
${this.chevron || this.common ? u$3`
|
|
3799
|
+
<div
|
|
3800
|
+
id="showStateIcon"
|
|
3801
|
+
part="chevron">
|
|
3802
|
+
<${this.iconTag}
|
|
3803
|
+
category="interface"
|
|
3804
|
+
name="chevron-down"
|
|
3805
|
+
customColor
|
|
3806
|
+
?disabled=${this.disabled}
|
|
3807
|
+
>
|
|
3808
|
+
</${this.iconTag}>
|
|
3809
|
+
</div>
|
|
3810
|
+
` : undefined }
|
|
3811
|
+
</div>
|
|
3812
|
+
<${this.helpTextTag} part="helpText" ?error="${this.error}">
|
|
3813
|
+
<slot name="helpText"></slot>
|
|
3814
|
+
</${this.helpTextTag}>
|
|
3815
|
+
<div class="slotContent">
|
|
3816
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
3817
|
+
</div>
|
|
3818
|
+
<div id="bibSizer" part="size"></div>
|
|
3819
|
+
<${this.dropdownBibTag}
|
|
3820
|
+
id="bib"
|
|
3821
|
+
role="tooltip"
|
|
3822
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
3823
|
+
?common="${this.common}"
|
|
3824
|
+
?rounded="${this.common || this.rounded}"
|
|
3825
|
+
?inset="${this.common || this.inset}">
|
|
3826
|
+
</${this.dropdownBibTag}>
|
|
3827
|
+
</div>
|
|
3828
|
+
`;
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
var dropdownVersion = '3.0.0';
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* @license
|
|
3836
|
+
* Copyright 2019 Google LLC
|
|
3837
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3838
|
+
*/
|
|
3839
|
+
const t$2$1=globalThis,e$4$1=t$2$1.ShadowRoot&&(void 0===t$2$1.ShadyCSS||t$2$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$1=Symbol(),o$4$1=new WeakMap;let n$3$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$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$4$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4$1.set(s,t));}return t}toString(){return this.cssText}};const r$3$1=t=>new n$3$1("string"==typeof t?t:t+"",void 0,s$2$1),i$5$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3$1(o,t,s$2$1)},S$1$1=(s,o)=>{if(e$4$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$1=e$4$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$1(e)})(t):t;
|
|
3840
|
+
|
|
3841
|
+
/**
|
|
3842
|
+
* @license
|
|
3843
|
+
* Copyright 2017 Google LLC
|
|
3844
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3845
|
+
*/const{is:i$4$1,defineProperty:e$3$1,getOwnPropertyDescriptor:r$2$1,getOwnPropertyNames:h$1$1,getOwnPropertySymbols:o$3$1,getPrototypeOf:n$2$1}=Object,a$2$1=globalThis,c$1$1=a$2$1.trustedTypes,l$2$1=c$1$1?c$1$1.emptyScript:"",p$1$1=a$2$1.reactiveElementPolyfillSupport,d$1$1=(t,s)=>t,u$2$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$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$1=(t,s)=>!i$4$1(t,s),y$1$1={attribute:true,type:String,converter:u$2$1,reflect:false,hasChanged:f$1$1};Symbol.metadata??=Symbol("metadata"),a$2$1.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$1$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);void 0!==r&&e$3$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1$1}static _$Ei(){if(this.hasOwnProperty(d$1$1("elementProperties")))return;const t=n$2$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$1("properties"))){const t=this.properties,s=[...h$1$1(t),...o$3$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(void 0!==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);void 0!==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$1(s));}else void 0!==s&&i.push(c$2$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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$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(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$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(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===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$1$1("elementProperties")]=new Map,b$1[d$1$1("finalized")]=new Map,p$1$1?.({ReactiveElement:b$1}),(a$2$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
3846
|
+
|
|
3847
|
+
/**
|
|
3848
|
+
* @license
|
|
3849
|
+
* Copyright 2017 Google LLC
|
|
3850
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3851
|
+
*/
|
|
3852
|
+
const t$1$1=globalThis,i$3$1=t$1$1.trustedTypes,s$1$1=i$3$1?i$3$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2$1="$lit$",h$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2$1="?"+h$2,n$1$1=`<${o$2$1}>`,r$1$1=document,l$1$1=()=>r$1$1.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1$1=Array.isArray,u$1$1=t=>a$1$1(t)||"function"==typeof t?.[Symbol.iterator],d$2="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$1$1.createTreeWalker(r$1$1,129);function P$1(t,i){if(!a$1$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1$1?s$1$1.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$2;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$2?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$2,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g$1:p$2):c===g$1||c===p$2?c=m$1:c===v$1||c===_$1?c=f$2:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$2?s+n$1$1:d>=0?(o.push(a),s.slice(0,d)+e$2$1+s.slice(d)+h$2+x):s+h$2+(-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$2$1)){const i=v[a++],s=r.getAttribute(t).split(h$2),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$2)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$2),s=t.length-1;if(s>0){r.textContent=i$3$1?i$3$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1$1()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1$1());}}}else if(8===r.nodeType)if(r.data===o$2$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$2,t+1));)d.push({type:7,index:c}),t+=h$2.length-1;}c++;}}static createElement(t,i){const s=r$1$1.createElement("template");return s.innerHTML=t,s}};function S$2(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$2(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,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$1).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==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$1$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==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=void 0,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 void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$2(this,t,i),c$3(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):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$1$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===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 void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$1$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$1()),this.O(l$1$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){ void 0===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=void 0,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(void 0===h)t=S$2(this,t,i,0),o=!c$3(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$2(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$3(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?void 0: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$2(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=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$2(this,t);}};const j$1=t$1$1.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$1$1.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$1$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
3853
|
+
|
|
3854
|
+
/**
|
|
3855
|
+
* @license
|
|
3856
|
+
* Copyright 2017 Google LLC
|
|
3857
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3858
|
+
*/let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}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$2$1=globalThis.litElementPolyfillSupport;i$2$1?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
3859
|
+
|
|
3860
|
+
/**
|
|
3861
|
+
* @license
|
|
3862
|
+
* Copyright 2020 Google LLC
|
|
3863
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3864
|
+
*/
|
|
3865
|
+
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(void 0!==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&&void 0!==(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$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
|
|
3866
|
+
|
|
3867
|
+
var colorCss$1 = i$5$1`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
3868
|
+
|
|
3869
|
+
var styleCss$2 = i$5$1`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#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{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
3870
|
+
|
|
3871
|
+
var tokenCss = i$5$1`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-color-container-primary-default, #ffffff)}`;
|
|
3872
|
+
|
|
3873
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3874
|
+
// See LICENSE in the project root for license information.
|
|
3875
|
+
|
|
3876
|
+
// ---------------------------------------------------------------------
|
|
3877
|
+
|
|
3878
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
3879
|
+
|
|
3880
|
+
class AuroLibraryRuntimeUtils {
|
|
3881
|
+
|
|
3882
|
+
/* eslint-disable jsdoc/require-param */
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* This will register a new custom element with the browser.
|
|
3886
|
+
* @param {String} name - The name of the custom element.
|
|
3887
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
3888
|
+
* @returns {void}
|
|
3889
|
+
*/
|
|
3890
|
+
registerComponent(name, componentClass) {
|
|
3891
|
+
if (!customElements.get(name)) {
|
|
3892
|
+
customElements.define(name, class extends componentClass {});
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
/**
|
|
3897
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
3898
|
+
* @returns {void}
|
|
3899
|
+
*/
|
|
3900
|
+
closestElement(
|
|
3901
|
+
selector, // selector like in .closest()
|
|
3902
|
+
base = this, // extra functionality to skip a parent
|
|
3903
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
3904
|
+
!el || el === document || el === window
|
|
3905
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
3906
|
+
: found
|
|
3907
|
+
? found // found a selector INside this element
|
|
3908
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
3909
|
+
) {
|
|
3910
|
+
return __Closest(base);
|
|
3911
|
+
}
|
|
3912
|
+
/* eslint-enable jsdoc/require-param */
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* 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.
|
|
3916
|
+
* @param {Object} elem - The element to check.
|
|
3917
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
3918
|
+
* @returns {void}
|
|
3919
|
+
*/
|
|
3920
|
+
handleComponentTagRename(elem, tagName) {
|
|
3921
|
+
const tag = tagName.toLowerCase();
|
|
3922
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
3923
|
+
|
|
3924
|
+
if (elemTag !== tag) {
|
|
3925
|
+
elem.setAttribute(tag, true);
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
/**
|
|
3930
|
+
* Validates if an element is a specific Auro component.
|
|
3931
|
+
* @param {Object} elem - The element to validate.
|
|
3932
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
3933
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
3934
|
+
*/
|
|
3935
|
+
elementMatch(elem, tagName) {
|
|
3936
|
+
const tag = tagName.toLowerCase();
|
|
3937
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
3938
|
+
|
|
3939
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3944
|
+
// See LICENSE in the project root for license information.
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
class AuroDependencyVersioning {
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Generates a unique string to be used for child auro element naming.
|
|
3951
|
+
* @private
|
|
3952
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
3953
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
3954
|
+
* @returns {string} - Unique string to be used for naming.
|
|
3955
|
+
*/
|
|
3956
|
+
generateElementName(baseName, version) {
|
|
3957
|
+
let result = baseName;
|
|
3958
|
+
|
|
3959
|
+
result += '-';
|
|
3960
|
+
result += version.replace(/[.]/g, '_');
|
|
3961
|
+
|
|
3962
|
+
return result;
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
/**
|
|
3966
|
+
* Generates a unique string to be used for child auro element naming.
|
|
3967
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
3968
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
3969
|
+
* @returns {string} - Unique string to be used for naming.
|
|
3970
|
+
*/
|
|
3971
|
+
generateTag(baseName, version, tagClass) {
|
|
3972
|
+
const elementName = this.generateElementName(baseName, version);
|
|
3973
|
+
const tag = i$1`${s(elementName)}`;
|
|
3974
|
+
|
|
3975
|
+
if (!customElements.get(elementName)) {
|
|
3976
|
+
customElements.define(elementName, class extends tagClass {});
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
return tag;
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
/**
|
|
3984
|
+
* @license
|
|
3985
|
+
* Copyright 2017 Google LLC
|
|
3986
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3987
|
+
*/
|
|
3988
|
+
const t={ATTRIBUTE:1},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)}}
|
|
3989
|
+
|
|
3990
|
+
/**
|
|
3991
|
+
* @license
|
|
3992
|
+
* Copyright 2018 Google LLC
|
|
3993
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3994
|
+
*/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(void 0===this.st){this.st=new Set,void 0!==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}});
|
|
3995
|
+
|
|
3996
|
+
/**
|
|
3997
|
+
* @license
|
|
3998
|
+
* Copyright 2018 Google LLC
|
|
3999
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4000
|
+
*/const o=o=>o??E$1;
|
|
4001
|
+
|
|
4002
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4003
|
+
// See LICENSE in the project root for license information.
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
/**
|
|
4007
|
+
* @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
|
|
4008
|
+
* @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
|
|
4009
|
+
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
4010
|
+
*/
|
|
4011
|
+
|
|
4012
|
+
class AuroElement extends r$4 {
|
|
4013
|
+
|
|
4014
|
+
// function to define props used within the scope of this component
|
|
4015
|
+
static get properties() {
|
|
4016
|
+
return {
|
|
4017
|
+
hidden: { type: Boolean,
|
|
4018
|
+
reflect: true },
|
|
4019
|
+
hiddenVisually: { type: Boolean,
|
|
4020
|
+
reflect: true },
|
|
4021
|
+
hiddenAudible: { type: Boolean,
|
|
4022
|
+
reflect: true },
|
|
4023
|
+
};
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
/**
|
|
4027
|
+
* @private Function that determines state of aria-hidden
|
|
4028
|
+
*/
|
|
4029
|
+
hideAudible(value) {
|
|
4030
|
+
if (value) {
|
|
4031
|
+
return 'true'
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
return 'false'
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
var error = {"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>"};
|
|
4039
|
+
|
|
4040
|
+
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
4041
|
+
|
|
4042
|
+
const _fetchMap = new Map();
|
|
4043
|
+
|
|
4044
|
+
/**
|
|
4045
|
+
* A callback to parse Response body.
|
|
4046
|
+
*
|
|
4047
|
+
* @callback ResponseParser
|
|
4048
|
+
* @param {Fetch.Response} response
|
|
4049
|
+
* @returns {Promise}
|
|
4050
|
+
*/
|
|
4051
|
+
|
|
4052
|
+
/**
|
|
4053
|
+
* A minimal in-memory map to de-duplicate Fetch API media requests.
|
|
4054
|
+
*
|
|
4055
|
+
* @param {String} uri
|
|
4056
|
+
* @param {Object} [options={}]
|
|
4057
|
+
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
4058
|
+
* @returns {Promise}
|
|
4059
|
+
*/
|
|
4060
|
+
const cacheFetch = (uri, options = {}) => {
|
|
4061
|
+
const responseParser = options.responseParser || ((response) => response.text());
|
|
4062
|
+
if (!_fetchMap.has(uri)) {
|
|
4063
|
+
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
4064
|
+
}
|
|
4065
|
+
return _fetchMap.get(uri);
|
|
4066
|
+
};
|
|
4067
|
+
|
|
4068
|
+
var styleCss$1 = i$5$1`*,*: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}`;
|
|
4069
|
+
|
|
4070
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4071
|
+
// See LICENSE in the project root for license information.
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
4075
|
+
/**
|
|
4076
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
4077
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
4078
|
+
*/
|
|
4079
|
+
|
|
4080
|
+
// build the component class
|
|
4081
|
+
class BaseIcon extends AuroElement {
|
|
4082
|
+
constructor() {
|
|
4083
|
+
super();
|
|
4084
|
+
this.onDark = false;
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
// function to define props used within the scope of this component
|
|
4088
|
+
static get properties() {
|
|
4089
|
+
return {
|
|
4090
|
+
...super.properties,
|
|
4091
|
+
onDark: {
|
|
4092
|
+
type: Boolean,
|
|
4093
|
+
reflect: true
|
|
4094
|
+
},
|
|
4095
|
+
|
|
4096
|
+
/**
|
|
4097
|
+
* @private
|
|
4098
|
+
*/
|
|
4099
|
+
svg: {
|
|
4100
|
+
attribute: false,
|
|
4101
|
+
reflect: true
|
|
4102
|
+
}
|
|
4103
|
+
};
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
static get styles() {
|
|
4107
|
+
return i$5$1`
|
|
4108
|
+
${styleCss$1}
|
|
4109
|
+
`;
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
/**
|
|
4113
|
+
* Async function to fetch requested icon from npm CDN.
|
|
4114
|
+
* @private
|
|
4115
|
+
* @param {string} category - Icon category.
|
|
4116
|
+
* @param {string} name - Icon name.
|
|
4117
|
+
* @returns {SVGElement} DOM - Ready HTML to be appended.
|
|
4118
|
+
*/
|
|
4119
|
+
async fetchIcon(category, name) {
|
|
4120
|
+
let iconHTML = '';
|
|
4121
|
+
|
|
4122
|
+
if (category === 'logos') {
|
|
4123
|
+
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
4124
|
+
} else {
|
|
4125
|
+
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
4129
|
+
|
|
4130
|
+
return dom.body.querySelector('svg');
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
// lifecycle function
|
|
4134
|
+
async firstUpdated() {
|
|
4135
|
+
if (!this.customSvg) {
|
|
4136
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
4137
|
+
|
|
4138
|
+
if (svg) {
|
|
4139
|
+
this.svg = svg;
|
|
4140
|
+
} else if (!svg) {
|
|
4141
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
4142
|
+
|
|
4143
|
+
this.svg = penDOM.body.firstChild;
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
var tokensCss$1 = i$5$1`: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)}`;
|
|
4150
|
+
|
|
4151
|
+
var colorCss$2 = i$5$1`: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)}`;
|
|
4152
|
+
|
|
4153
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4154
|
+
// See LICENSE in the project root for license information.
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
4158
|
+
/**
|
|
4159
|
+
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
4160
|
+
*
|
|
4161
|
+
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
4162
|
+
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
4163
|
+
* @attr {Boolean} customColor - Removes primary selector.
|
|
4164
|
+
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
4165
|
+
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
4166
|
+
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
4167
|
+
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
4168
|
+
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
4169
|
+
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
4170
|
+
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
4171
|
+
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
4172
|
+
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
4173
|
+
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
4174
|
+
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
4175
|
+
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
4176
|
+
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
4177
|
+
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
4178
|
+
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
4179
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
4180
|
+
* @slot svg - Used for custom SVG content.
|
|
4181
|
+
*/
|
|
4182
|
+
|
|
4183
|
+
// build the component class
|
|
4184
|
+
class AuroIcon extends BaseIcon {
|
|
4185
|
+
constructor() {
|
|
4186
|
+
super();
|
|
4187
|
+
|
|
4188
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
4189
|
+
|
|
4190
|
+
this.privateDefaults();
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
/**
|
|
4194
|
+
* Internal Defaults.
|
|
4195
|
+
* @private
|
|
4196
|
+
* @returns {void}
|
|
4197
|
+
*/
|
|
4198
|
+
privateDefaults() {
|
|
4199
|
+
this.accent = false;
|
|
4200
|
+
this.customColor = false;
|
|
4201
|
+
this.customSvg = false;
|
|
4202
|
+
this.disabled = false;
|
|
4203
|
+
this.emphasis = false;
|
|
4204
|
+
this.error = false;
|
|
4205
|
+
this.info = false;
|
|
4206
|
+
this.label = false;
|
|
4207
|
+
this.primary = false;
|
|
4208
|
+
this.secondary = false;
|
|
4209
|
+
this.subtle = false;
|
|
4210
|
+
this.success = false;
|
|
4211
|
+
this.tertiary = false;
|
|
4212
|
+
this.warning = false;
|
|
4213
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
// function to define props used within the scope of this component
|
|
4217
|
+
static get properties() {
|
|
4218
|
+
return {
|
|
4219
|
+
...super.properties,
|
|
4220
|
+
accent: {
|
|
4221
|
+
type: Boolean,
|
|
4222
|
+
reflect: true
|
|
4223
|
+
},
|
|
4224
|
+
ariaHidden: {
|
|
4225
|
+
type: String,
|
|
4226
|
+
reflect: true
|
|
4227
|
+
},
|
|
4228
|
+
category: {
|
|
4229
|
+
type: String,
|
|
4230
|
+
reflect: true
|
|
4231
|
+
},
|
|
4232
|
+
customColor: {
|
|
4233
|
+
type: Boolean
|
|
4234
|
+
},
|
|
4235
|
+
customSvg: {
|
|
4236
|
+
type: Boolean
|
|
4237
|
+
},
|
|
4238
|
+
disabled: {
|
|
4239
|
+
type: Boolean,
|
|
4240
|
+
reflect: true
|
|
4241
|
+
},
|
|
4242
|
+
emphasis: {
|
|
4243
|
+
type: Boolean,
|
|
4244
|
+
reflect: true
|
|
4245
|
+
},
|
|
4246
|
+
error: {
|
|
4247
|
+
type: Boolean,
|
|
4248
|
+
reflect: true
|
|
4249
|
+
},
|
|
4250
|
+
info: {
|
|
4251
|
+
type: Boolean,
|
|
4252
|
+
reflect: true
|
|
4253
|
+
},
|
|
4254
|
+
label: {
|
|
4255
|
+
type: Boolean,
|
|
4256
|
+
reflect: true
|
|
4257
|
+
},
|
|
4258
|
+
name: {
|
|
4259
|
+
type: String,
|
|
4260
|
+
reflect: true
|
|
4261
|
+
},
|
|
4262
|
+
primary: {
|
|
4263
|
+
type: Boolean,
|
|
4264
|
+
reflect: true
|
|
4265
|
+
},
|
|
4266
|
+
secondary: {
|
|
4267
|
+
type: Boolean,
|
|
4268
|
+
reflect: true
|
|
4269
|
+
},
|
|
4270
|
+
subtle: {
|
|
4271
|
+
type: Boolean,
|
|
4272
|
+
reflect: true
|
|
4273
|
+
},
|
|
4274
|
+
success: {
|
|
4275
|
+
type: Boolean,
|
|
4276
|
+
reflect: true
|
|
4277
|
+
},
|
|
4278
|
+
tertiary: {
|
|
4279
|
+
type: Boolean,
|
|
4280
|
+
reflect: true
|
|
4281
|
+
},
|
|
4282
|
+
uri: {
|
|
4283
|
+
type: String
|
|
4284
|
+
},
|
|
4285
|
+
warning: {
|
|
4286
|
+
type: Boolean,
|
|
4287
|
+
reflect: true
|
|
4288
|
+
}
|
|
4289
|
+
};
|
|
4290
|
+
}
|
|
4291
|
+
|
|
4292
|
+
static get styles() {
|
|
4293
|
+
return [
|
|
4294
|
+
super.styles,
|
|
4295
|
+
i$5$1`${tokensCss$1}`,
|
|
4296
|
+
i$5$1`${styleCss$1}`,
|
|
4297
|
+
i$5$1`${colorCss$2}`
|
|
4298
|
+
];
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
/**
|
|
4302
|
+
* This will register this element with the browser.
|
|
4303
|
+
* @param {string} [name="auro-icon"] - The name of element that you want to register to.
|
|
4304
|
+
*
|
|
4305
|
+
* @example
|
|
4306
|
+
* AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
|
|
4307
|
+
*
|
|
4308
|
+
*/
|
|
4309
|
+
static register(name = "auro-icon") {
|
|
4310
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4313
|
+
connectedCallback() {
|
|
4314
|
+
super.connectedCallback();
|
|
4315
|
+
|
|
4316
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
4317
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
/**
|
|
4321
|
+
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
4322
|
+
*/
|
|
4323
|
+
exposeCssParts() {
|
|
4324
|
+
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
4328
|
+
render() {
|
|
4329
|
+
const a11y = {
|
|
4330
|
+
'labelContainer': true,
|
|
4331
|
+
'util_displayHiddenVisually': !this.label
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4334
|
+
const classes = {
|
|
4335
|
+
'label': this.label,
|
|
4336
|
+
'wrapper': true,
|
|
4337
|
+
};
|
|
4338
|
+
|
|
4339
|
+
return x`
|
|
4340
|
+
<div
|
|
4341
|
+
class="${e(classes)}"
|
|
4342
|
+
title="${o(this.title || undefined)}">
|
|
4343
|
+
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
4344
|
+
${this.customSvg ? x`
|
|
4345
|
+
<slot name="svg"></slot>
|
|
4346
|
+
` : x`
|
|
4347
|
+
${this.svg}
|
|
4348
|
+
`
|
|
4349
|
+
}
|
|
4350
|
+
</span>
|
|
4351
|
+
|
|
4352
|
+
<div class="${e(a11y)}">
|
|
4353
|
+
<slot></slot>
|
|
4354
|
+
</div>
|
|
4355
|
+
</div>
|
|
4356
|
+
`;
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
var iconVersion = '6.1.2';
|
|
4361
|
+
|
|
4362
|
+
var styleCss$3 = i$5$1`.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)}:host([no-margin-block]) .heading{margin-block:0}.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)}`;
|
|
4363
|
+
|
|
4364
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4365
|
+
// See LICENSE in the project root for license information.
|
|
4366
|
+
|
|
4367
|
+
|
|
4368
|
+
/**
|
|
4369
|
+
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
4370
|
+
*
|
|
4371
|
+
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
4372
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
4373
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
4374
|
+
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
4375
|
+
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
4376
|
+
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
4377
|
+
*/
|
|
4378
|
+
|
|
4379
|
+
/* eslint complexity: ["error", 21] */
|
|
4380
|
+
|
|
4381
|
+
// build the component class
|
|
4382
|
+
class AuroHeader extends r$4 {
|
|
4383
|
+
constructor() {
|
|
4384
|
+
super();
|
|
4385
|
+
|
|
4386
|
+
this.display = 'display';
|
|
4387
|
+
|
|
4388
|
+
/**
|
|
4389
|
+
* @private
|
|
4390
|
+
*/
|
|
4391
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
// function to define props used within the scope of this component
|
|
4395
|
+
static get properties() {
|
|
4396
|
+
return {
|
|
4397
|
+
level: { type: String },
|
|
4398
|
+
display: {
|
|
4399
|
+
type: String,
|
|
4400
|
+
reflect: true
|
|
4401
|
+
},
|
|
4402
|
+
color: { type: String },
|
|
4403
|
+
margin: { type: String },
|
|
4404
|
+
size: { type: String }
|
|
4405
|
+
};
|
|
4406
|
+
}
|
|
4407
|
+
|
|
4408
|
+
static get styles() {
|
|
4409
|
+
return [styleCss$3];
|
|
4410
|
+
}
|
|
4411
|
+
|
|
4412
|
+
/**
|
|
4413
|
+
* This will register this element with the browser.
|
|
4414
|
+
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
4415
|
+
*
|
|
4416
|
+
* @example
|
|
4417
|
+
* AuroHeader.register("custom-header") // this will register this element to <custom-header/>
|
|
4418
|
+
*
|
|
4419
|
+
*/
|
|
4420
|
+
static register(name = "auro-header") {
|
|
4421
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
firstUpdated() {
|
|
4425
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
4426
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-header');
|
|
4427
|
+
}
|
|
4428
|
+
|
|
4429
|
+
/**
|
|
4430
|
+
* Determines if the spacing is to be applied uniform or individual.
|
|
4431
|
+
* @private
|
|
4432
|
+
* @param {string} size - Accepts string for size definition.
|
|
4433
|
+
* @returns {string} - Returns either selectors or function.
|
|
4434
|
+
*/
|
|
4435
|
+
spacingDecision(size) {
|
|
4436
|
+
if (this.margin === 'both') {
|
|
4437
|
+
switch (size) {
|
|
4438
|
+
case 'none': return `util_stackMarginnone--top util_stackMarginnone--bottom`;
|
|
4439
|
+
case '25': return `util_stackMargin25--top util_stackMargin25--bottom`;
|
|
4440
|
+
case '50': return `util_stackMargin50--top util_stackMargin50--bottom`;
|
|
4441
|
+
case '100': return `util_stackMargin100--top util_stackMargin100--bottom`;
|
|
4442
|
+
case '150': return `util_stackMargin150--top util_stackMargin150--bottom`;
|
|
4443
|
+
case '200': return `util_stackMargin200--top util_stackMargin200--bottom`;
|
|
4444
|
+
case '300': return `util_stackMargin300--top util_stackMargin300--bottom`;
|
|
4445
|
+
case '400': return `util_stackMargin400--top util_stackMargin400--bottom`;
|
|
4446
|
+
case '600': return `util_stackMargin600--top util_stackMargin600--bottom`;
|
|
4447
|
+
case '800': return `util_stackMargin800--top util_stackMargin800--bottom`;
|
|
4448
|
+
default: return '';
|
|
4449
|
+
}
|
|
4450
|
+
} else {
|
|
4451
|
+
return this.spacingApplied(size);
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
|
|
4455
|
+
/**
|
|
4456
|
+
* If spacing is individual, return will be single selector based on input.
|
|
4457
|
+
* @private
|
|
4458
|
+
* @param {string} size - Accepts string for size definition.
|
|
4459
|
+
* @returns {string} - Returns selector.
|
|
4460
|
+
*/
|
|
4461
|
+
spacingApplied(size) {
|
|
4462
|
+
switch (size) {
|
|
4463
|
+
case 'none': return `util_stackMarginnone--${this.margin}`;
|
|
4464
|
+
case '25': return `util_stackMargin25--${this.margin}`;
|
|
4465
|
+
case '50': return `util_stackMargin50--${this.margin}`;
|
|
4466
|
+
case '100': return `util_stackMargin100--${this.margin}`;
|
|
4467
|
+
case '150': return `util_stackMargin150--${this.margin}`;
|
|
4468
|
+
case '200': return `util_stackMargin200--${this.margin}`;
|
|
4469
|
+
case '300': return `util_stackMargin300--${this.margin}`;
|
|
4470
|
+
case '400': return `util_stackMargin400--${this.margin}`;
|
|
4471
|
+
case '600': return `util_stackMarginX600--${this.margin}`;
|
|
4472
|
+
case '800': return `util_stackMargin800--${this.margin}`;
|
|
4473
|
+
default: return '';
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
|
|
4477
|
+
/**
|
|
4478
|
+
* Creates HTML template for use in render function.
|
|
4479
|
+
* @private
|
|
4480
|
+
* @param {string} level - Accepts string value.
|
|
4481
|
+
* @returns {string} - Returns HTML template.
|
|
4482
|
+
*/
|
|
4483
|
+
template(level) {
|
|
4484
|
+
if (this.display === '' || this.display === null) {
|
|
4485
|
+
this.display = 'display';
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
switch (level) {
|
|
4489
|
+
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>`;
|
|
4490
|
+
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>`;
|
|
4491
|
+
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>`;
|
|
4492
|
+
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>`;
|
|
4493
|
+
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>`;
|
|
4494
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
4498
|
+
|
|
4499
|
+
render() {
|
|
4500
|
+
return this.template(this.level);
|
|
4501
|
+
}
|
|
4502
|
+
}
|
|
4503
|
+
|
|
4504
|
+
var headerVersion = '4.0.0';
|
|
4505
|
+
|
|
4506
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4507
|
+
// See LICENSE in the project root for license information.
|
|
4508
|
+
|
|
4509
|
+
|
|
4510
|
+
class AuroBibtemplate extends r$4 {
|
|
4511
|
+
|
|
4512
|
+
constructor() {
|
|
4513
|
+
super();
|
|
4514
|
+
|
|
4515
|
+
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
4516
|
+
|
|
4517
|
+
const versioning = new AuroDependencyVersioning();
|
|
4518
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
4519
|
+
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4522
|
+
static get styles() {
|
|
4523
|
+
return [
|
|
4524
|
+
colorCss$1,
|
|
4525
|
+
styleCss$2,
|
|
4526
|
+
tokenCss
|
|
4527
|
+
];
|
|
4528
|
+
}
|
|
4529
|
+
|
|
4530
|
+
// function to define props used within the scope of this component
|
|
4531
|
+
static get properties() {
|
|
4532
|
+
return {
|
|
4533
|
+
isFullscreen: {
|
|
4534
|
+
type: Boolean,
|
|
4535
|
+
reflect: true,
|
|
4536
|
+
},
|
|
4537
|
+
large: {
|
|
4538
|
+
type: Boolean,
|
|
4539
|
+
reflect: true,
|
|
4540
|
+
}
|
|
4541
|
+
};
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
// function to define props used within the scope of this component
|
|
4545
|
+
/**
|
|
4546
|
+
* This will register this element with the browser.
|
|
4547
|
+
* @param {string} [name="auro-bibtemplate"] - The name of element that you want to register to.
|
|
4548
|
+
*
|
|
4549
|
+
* @example
|
|
4550
|
+
* AuroCheckbox.register("custom-bibtemplate") // this will register this element to <custom-bibtemplate/>
|
|
4551
|
+
*
|
|
4552
|
+
*/
|
|
4553
|
+
static register(name = "auro-bibtemplate") {
|
|
4554
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4557
|
+
/**
|
|
4558
|
+
* Prevents scrolling of the body when touching empty areas of the component.
|
|
4559
|
+
* @param {Event} event - The touchmove event.
|
|
4560
|
+
* @returns {void}
|
|
4561
|
+
*/
|
|
4562
|
+
preventBodyScroll(event) {
|
|
4563
|
+
if (event.target === this) {
|
|
4564
|
+
event.preventDefault();
|
|
4565
|
+
}
|
|
4566
|
+
}
|
|
4567
|
+
|
|
4568
|
+
connectedCallback() {
|
|
4569
|
+
super.connectedCallback();
|
|
4570
|
+
|
|
4571
|
+
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
4572
|
+
this.addEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
4573
|
+
}
|
|
4574
|
+
|
|
4575
|
+
disconnectedCallback() {
|
|
4576
|
+
super.disconnectedCallback();
|
|
3223
4577
|
|
|
3224
|
-
|
|
3225
|
-
|
|
4578
|
+
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
onCloseButtonClick() {
|
|
4582
|
+
this.dispatchEvent(new Event("close-click", { bubbles: true,
|
|
4583
|
+
composed: true }));
|
|
3226
4584
|
}
|
|
3227
4585
|
|
|
3228
4586
|
/**
|
|
3229
4587
|
* Exposes CSS parts for styling from parent components.
|
|
3230
|
-
* @private
|
|
3231
4588
|
* @returns {void}
|
|
3232
4589
|
*/
|
|
3233
4590
|
exposeCssParts() {
|
|
3234
|
-
this.setAttribute('exportparts', '
|
|
4591
|
+
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
3235
4592
|
}
|
|
3236
4593
|
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
4594
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
4595
|
+
render() {
|
|
4596
|
+
return u`
|
|
4597
|
+
<div id="bibTemplate" part="bibtemplate">
|
|
4598
|
+
${this.isFullscreen ? u`
|
|
4599
|
+
<div id="headerContainer">
|
|
4600
|
+
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
4601
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
4602
|
+
</button>
|
|
4603
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
4604
|
+
<slot name="header"></slot>
|
|
4605
|
+
</${this.headerTag}>
|
|
4606
|
+
<span id="subheader">
|
|
4607
|
+
<slot name="subheader"></slot>
|
|
4608
|
+
</span>
|
|
4609
|
+
</div>` : null}
|
|
3245
4610
|
|
|
3246
|
-
|
|
4611
|
+
<div id="bodyContainer">
|
|
4612
|
+
<slot></slot>
|
|
4613
|
+
</div>
|
|
3247
4614
|
|
|
3248
|
-
|
|
3249
|
-
|
|
4615
|
+
${this.isFullscreen ? u`
|
|
4616
|
+
<div id="footerContainer">
|
|
4617
|
+
<slot name="footer"></slot>
|
|
4618
|
+
</div>` : null}
|
|
4619
|
+
</div>
|
|
4620
|
+
`;
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
3250
4623
|
|
|
3251
|
-
|
|
3252
|
-
inCustomSlot = true;
|
|
3253
|
-
break;
|
|
3254
|
-
}
|
|
3255
|
-
}
|
|
4624
|
+
var bibTemplateVersion = '1.0.0';
|
|
3256
4625
|
|
|
3257
|
-
|
|
4626
|
+
/**
|
|
4627
|
+
* @license
|
|
4628
|
+
* Copyright 2019 Google LLC
|
|
4629
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4630
|
+
*/
|
|
4631
|
+
const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===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&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===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+"",void 0,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;void 0!==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;
|
|
4632
|
+
|
|
4633
|
+
/**
|
|
4634
|
+
* @license
|
|
4635
|
+
* Copyright 2017 Google LLC
|
|
4636
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4637
|
+
*/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);void 0!==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(),void 0!==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(void 0!==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);void 0!==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 void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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(void 0!==e&&true===i.reflect){const r=(void 0!==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(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==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(void 0!==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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===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");
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* @license
|
|
4641
|
+
* Copyright 2017 Google LLC
|
|
4642
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4643
|
+
*/
|
|
4644
|
+
const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,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,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 void 0!==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:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);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=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,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(;void 0!==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) void 0!==s&&(void 0!==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=void 0,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 void 0!==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):void 0!==t._$litType$?this.$(t):void 0!==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):(void 0===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 void 0===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){ void 0===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=void 0,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(void 0===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?void 0: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=void 0,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(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* @license
|
|
4648
|
+
* Copyright 2017 Google LLC
|
|
4649
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4650
|
+
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}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");
|
|
4651
|
+
|
|
4652
|
+
i$5`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-250: 1.25rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 300;--ds-depth-tooltip: 400;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #d4d4d4;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #d4d4d4;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder]{color:var(--ds-color-text-secondary-default, #525252)}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
|
|
4653
|
+
|
|
4654
|
+
i$5`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color) !important}`;
|
|
4655
|
+
|
|
4656
|
+
i$5`:host{--ds-auro-menu-divider-color: var(--ds-color-border-divider-default, $ds-color-border-divider-default);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default)}`;
|
|
4657
|
+
|
|
4658
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4659
|
+
// See LICENSE in the project root for license information.
|
|
4660
|
+
|
|
4661
|
+
// ---------------------------------------------------------------------
|
|
4662
|
+
|
|
4663
|
+
/**
|
|
4664
|
+
* Converts value to an array.
|
|
4665
|
+
* If the value is a JSON string representing an array, it will be parsed.
|
|
4666
|
+
* If the value is already an array, it is returned.
|
|
4667
|
+
* If the value is undefined, it returns undefined.
|
|
4668
|
+
* @private
|
|
4669
|
+
* @param {any} value - The value to be converted. Can be a string, array, or undefined.
|
|
4670
|
+
* @returns {Array|undefined} - The converted array or undefined.
|
|
4671
|
+
* @throws {Error} - Throws an error if the value is not an array, undefined,
|
|
4672
|
+
* or if the value cannot be parsed into an array from a JSON string.
|
|
4673
|
+
*/
|
|
4674
|
+
function arrayConverter(value) {
|
|
4675
|
+
// Allow undefined
|
|
4676
|
+
if (value === undefined) {
|
|
4677
|
+
return undefined;
|
|
3258
4678
|
}
|
|
3259
4679
|
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
3265
|
-
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
3266
|
-
*
|
|
3267
|
-
* @private
|
|
3268
|
-
* @method handleTriggerContentSlotChange
|
|
3269
|
-
* @param {Event} event - native slotchange event
|
|
3270
|
-
* @returns {void}
|
|
3271
|
-
*/
|
|
3272
|
-
handleTriggerContentSlotChange(event) {
|
|
3273
|
-
this.floater.handleTriggerTabIndex();
|
|
4680
|
+
// Return the value if it is already an array
|
|
4681
|
+
if (Array.isArray(value)) {
|
|
4682
|
+
return value;
|
|
4683
|
+
}
|
|
3274
4684
|
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
}
|
|
4685
|
+
try {
|
|
4686
|
+
// If value is a JSON string, parse it
|
|
4687
|
+
const parsed = typeof value === 'string' ? JSON.parse(value) : value;
|
|
3279
4688
|
|
|
3280
|
-
if
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
return true;
|
|
3284
|
-
}
|
|
3285
|
-
const slotInSlot = slot.querySelector('slot');
|
|
3286
|
-
if (!slotInSlot) {
|
|
3287
|
-
return false;
|
|
3288
|
-
}
|
|
3289
|
-
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
3290
|
-
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
3291
|
-
});
|
|
3292
|
-
} else {
|
|
3293
|
-
this.hasTriggerContent = false;
|
|
4689
|
+
// Check if the parsed value is an array
|
|
4690
|
+
if (Array.isArray(parsed)) {
|
|
4691
|
+
return parsed;
|
|
3294
4692
|
}
|
|
4693
|
+
} catch (error) {
|
|
4694
|
+
// If JSON parsing fails, continue to throw an error below
|
|
4695
|
+
/* eslint-disable no-console */
|
|
4696
|
+
console.error('JSON parsing failed:', error);
|
|
3295
4697
|
}
|
|
3296
4698
|
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
* This method retrieves all nodes assigned to the default slot of the event target and appends them
|
|
3301
|
-
* to the `bibContent` element. If a callback function `onSlotChange` is defined, it is invoked to
|
|
3302
|
-
* notify about the slot change.
|
|
3303
|
-
*
|
|
3304
|
-
* @private
|
|
3305
|
-
* @method handleDefaultSlot
|
|
3306
|
-
* @param {Event} event - The event object representing the slot change.
|
|
3307
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
3308
|
-
*/
|
|
3309
|
-
handleDefaultSlot(event) {
|
|
3310
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
4699
|
+
// Throw error if the input is not an array or undefined
|
|
4700
|
+
throw new Error('Invalid value: Input must be an array or undefined');
|
|
4701
|
+
}
|
|
3311
4702
|
|
|
3312
|
-
|
|
3313
|
-
|
|
4703
|
+
/**
|
|
4704
|
+
* Compare two arrays for equality.
|
|
4705
|
+
* @private
|
|
4706
|
+
* @param {Array} arr1 - First array to compare.
|
|
4707
|
+
* @param {Array} arr2 - Second array to compare.
|
|
4708
|
+
* @returns {boolean} True if arrays are equal.
|
|
4709
|
+
*/
|
|
4710
|
+
function arraysAreEqual(arr1, arr2) {
|
|
4711
|
+
// If both arrays undefined, they are equal (true)
|
|
4712
|
+
if (arr1 === undefined || arr2 === undefined) {
|
|
4713
|
+
return arr1 === arr2;
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
// If arrays have different lengths, they are not equal
|
|
4717
|
+
if (arr1.length !== arr2.length) {
|
|
4718
|
+
return false;
|
|
4719
|
+
}
|
|
4720
|
+
|
|
4721
|
+
// If every item at each index is the same, return true
|
|
4722
|
+
for (let index = 0; index < arr1.length; index += 1) {
|
|
4723
|
+
if (arr1[index] !== arr2[index]) {
|
|
4724
|
+
return false;
|
|
3314
4725
|
}
|
|
3315
4726
|
}
|
|
4727
|
+
return true;
|
|
4728
|
+
}
|
|
3316
4729
|
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
id="showStateIcon"
|
|
3343
|
-
part="chevron">
|
|
3344
|
-
<${this.iconTag}
|
|
3345
|
-
category="interface"
|
|
3346
|
-
name="chevron-down"
|
|
3347
|
-
customColor
|
|
3348
|
-
?disabled=${this.disabled}
|
|
3349
|
-
>
|
|
3350
|
-
</${this.iconTag}>
|
|
3351
|
-
</div>
|
|
3352
|
-
` : undefined }
|
|
3353
|
-
</div>
|
|
3354
|
-
<div
|
|
3355
|
-
class="helpText"
|
|
3356
|
-
part="helpText">
|
|
3357
|
-
<slot name="helpText"></slot>
|
|
3358
|
-
</div>
|
|
3359
|
-
<div class="slotContent">
|
|
3360
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
3361
|
-
</div>
|
|
3362
|
-
<div id="bibSizer" part="size"></div>
|
|
3363
|
-
<auro-dropdownbib
|
|
3364
|
-
id="bib"
|
|
3365
|
-
role="tooltip"
|
|
3366
|
-
?common="${this.common}"
|
|
3367
|
-
?rounded="${this.common || this.rounded}"
|
|
3368
|
-
?inset="${this.common || this.inset}">
|
|
3369
|
-
</auro-dropdownbib>
|
|
3370
|
-
</div>
|
|
3371
|
-
`;
|
|
4730
|
+
/**
|
|
4731
|
+
* Compares array for changes.
|
|
4732
|
+
* @private
|
|
4733
|
+
* @param {Array|any} newVal - New value to compare.
|
|
4734
|
+
* @param {Array|any} oldVal - Old value to compare.
|
|
4735
|
+
* @returns {boolean} True if arrays have changed.
|
|
4736
|
+
*/
|
|
4737
|
+
function arrayOrUndefinedHasChanged(newVal, oldVal) {
|
|
4738
|
+
try {
|
|
4739
|
+
// Check if values are undefined or arrays
|
|
4740
|
+
const isArrayOrUndefined = (val) => val === undefined || Array.isArray(val);
|
|
4741
|
+
|
|
4742
|
+
// If non-array or non-undefined, throw error
|
|
4743
|
+
if (!isArrayOrUndefined(newVal) || !isArrayOrUndefined(oldVal)) {
|
|
4744
|
+
const invalidValue = isArrayOrUndefined(newVal) ? oldVal : newVal;
|
|
4745
|
+
throw new Error(`Value must be an array or undefined, received ${typeof invalidValue}`);
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
// Return true if arrays have changed, false if they are the same
|
|
4749
|
+
return !arraysAreEqual(newVal, oldVal);
|
|
4750
|
+
} catch (error) {
|
|
4751
|
+
/* eslint-disable no-console */
|
|
4752
|
+
console.error(error);
|
|
4753
|
+
// If validation fails, it has changed
|
|
4754
|
+
return true;
|
|
3372
4755
|
}
|
|
3373
4756
|
}
|
|
3374
4757
|
|
|
3375
|
-
|
|
4758
|
+
i$5`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
|
|
3376
4759
|
|
|
3377
|
-
var
|
|
4760
|
+
i$5`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color) !important}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-active-default, #225296)}`;
|
|
4761
|
+
|
|
4762
|
+
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}`;
|
|
4763
|
+
|
|
4764
|
+
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)}`;
|
|
3378
4765
|
|
|
3379
|
-
|
|
4766
|
+
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)}`;
|
|
3380
4767
|
|
|
3381
|
-
var
|
|
4768
|
+
var styleCss = i$g`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}:host([multiselect]) [slot=trigger]{display:flex}:host([multiselect]) auro-menuoption:not(:first-child){margin-left:var(--ds-size-100)}#slotHolder{display:none}`;
|
|
3382
4769
|
|
|
3383
|
-
var
|
|
4770
|
+
var colorCss = i$g`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host [auro-dropdown]::part(trigger):hover{--ds-auro-dropdown-trigger-container-color: rgba(0 0 0 / 0.06)}:host([disabled]) *{color:var(--ds-color-text-ui-disabled-default, #adadad)}.placeholder{color:var(--ds-auro-select-placeholder-text-color)}`;
|
|
4771
|
+
|
|
4772
|
+
var tokensCss = i$g`:host{--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default)}`;
|
|
3384
4773
|
|
|
3385
4774
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3386
4775
|
// See LICENSE in the project root for license information.
|
|
@@ -3391,21 +4780,22 @@ var tokensCss = i$b`:host{--ds-auro-select-placeholder-text-color: var(--ds-colo
|
|
|
3391
4780
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
3392
4781
|
*
|
|
3393
4782
|
* @slot - Default slot for the menu content.
|
|
4783
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
3394
4784
|
* @slot label - Defines the content of the label.
|
|
3395
4785
|
* @slot helpText - Defines the content of the helpText.
|
|
3396
4786
|
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
3397
4787
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
4788
|
+
* @event input - Notifies every time the value prop of the element is changed.
|
|
3398
4789
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
3399
4790
|
* @csspart helpText - Apply CSS to the help text.
|
|
3400
4791
|
*/
|
|
3401
4792
|
|
|
3402
4793
|
// build the component class
|
|
3403
|
-
class AuroSelect extends r$
|
|
4794
|
+
class AuroSelect extends r$9 {
|
|
3404
4795
|
constructor() {
|
|
3405
4796
|
super();
|
|
3406
4797
|
|
|
3407
|
-
this.
|
|
3408
|
-
this.validity = undefined;
|
|
4798
|
+
this.privateDefaults();
|
|
3409
4799
|
|
|
3410
4800
|
const idLength = 36;
|
|
3411
4801
|
const idSubstrEnd = 8;
|
|
@@ -3426,18 +4816,23 @@ class AuroSelect extends r$4 {
|
|
|
3426
4816
|
/**
|
|
3427
4817
|
* @private
|
|
3428
4818
|
*/
|
|
3429
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4819
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
3430
4820
|
|
|
3431
4821
|
/**
|
|
3432
4822
|
* Generate unique names for dependency components.
|
|
3433
4823
|
*/
|
|
3434
|
-
const versioning = new AuroDependencyVersioning$
|
|
4824
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
3435
4825
|
|
|
3436
4826
|
/**
|
|
3437
4827
|
* @private
|
|
3438
4828
|
*/
|
|
3439
4829
|
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
3440
4830
|
|
|
4831
|
+
/**
|
|
4832
|
+
* @private
|
|
4833
|
+
*/
|
|
4834
|
+
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
4835
|
+
|
|
3441
4836
|
/**
|
|
3442
4837
|
* @private
|
|
3443
4838
|
*/
|
|
@@ -3451,6 +4846,9 @@ class AuroSelect extends r$4 {
|
|
|
3451
4846
|
privateDefaults() {
|
|
3452
4847
|
this.options = [];
|
|
3453
4848
|
this.optionActive = null;
|
|
4849
|
+
this.optionSelected = undefined;
|
|
4850
|
+
this.value = undefined;
|
|
4851
|
+
this.fullscreenBreakpoint = 'sm';
|
|
3454
4852
|
}
|
|
3455
4853
|
|
|
3456
4854
|
// This function is to define props used within the scope of this component
|
|
@@ -3475,6 +4873,25 @@ class AuroSelect extends r$4 {
|
|
|
3475
4873
|
reflect: true
|
|
3476
4874
|
},
|
|
3477
4875
|
|
|
4876
|
+
/**
|
|
4877
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
4878
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
4879
|
+
* @default sm
|
|
4880
|
+
*/
|
|
4881
|
+
fullscreenBreakpoint: {
|
|
4882
|
+
type: String,
|
|
4883
|
+
reflect: true
|
|
4884
|
+
},
|
|
4885
|
+
|
|
4886
|
+
/**
|
|
4887
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
4888
|
+
* Otherwise, Heading 600
|
|
4889
|
+
*/
|
|
4890
|
+
largeFullscreenHeadline: {
|
|
4891
|
+
type: Boolean,
|
|
4892
|
+
reflect: true
|
|
4893
|
+
},
|
|
4894
|
+
|
|
3478
4895
|
/**
|
|
3479
4896
|
* When true, checkmark on selected option will no longer be present.
|
|
3480
4897
|
*/
|
|
@@ -3502,7 +4919,9 @@ class AuroSelect extends r$4 {
|
|
|
3502
4919
|
* Specifies the current selected menuOption.
|
|
3503
4920
|
*/
|
|
3504
4921
|
optionSelected: {
|
|
3505
|
-
|
|
4922
|
+
// Allow HTMLElement[] arrays and undefined
|
|
4923
|
+
converter: arrayConverter,
|
|
4924
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
3506
4925
|
},
|
|
3507
4926
|
|
|
3508
4927
|
/**
|
|
@@ -3561,8 +4980,19 @@ class AuroSelect extends r$4 {
|
|
|
3561
4980
|
* Value selected for the component.
|
|
3562
4981
|
*/
|
|
3563
4982
|
value: {
|
|
3564
|
-
|
|
3565
|
-
|
|
4983
|
+
// Allow string[] arrays and undefined
|
|
4984
|
+
converter: arrayConverter,
|
|
4985
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
4986
|
+
},
|
|
4987
|
+
|
|
4988
|
+
/**
|
|
4989
|
+
* Sets multi-select mode, allowing multiple options to be selected at once.
|
|
4990
|
+
*/
|
|
4991
|
+
multiSelect: {
|
|
4992
|
+
type: Boolean,
|
|
4993
|
+
reflect: true,
|
|
4994
|
+
attribute: 'multiselect'
|
|
4995
|
+
},
|
|
3566
4996
|
};
|
|
3567
4997
|
}
|
|
3568
4998
|
|
|
@@ -3583,6 +5013,10 @@ class AuroSelect extends r$4 {
|
|
|
3583
5013
|
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
3584
5014
|
this.menuWrapper = this.dropdown.querySelector('.menuWrapper');
|
|
3585
5015
|
|
|
5016
|
+
// setting up bibtemplate
|
|
5017
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
|
|
5018
|
+
this.bibtemplate.append(this.menuWrapper);
|
|
5019
|
+
|
|
3586
5020
|
if (this.customBibWidth) {
|
|
3587
5021
|
this.dropdown.dropdownWidth = this.customBibWidth;
|
|
3588
5022
|
}
|
|
@@ -3600,33 +5034,34 @@ class AuroSelect extends r$4 {
|
|
|
3600
5034
|
*
|
|
3601
5035
|
*/
|
|
3602
5036
|
static register(name = "auro-select") {
|
|
3603
|
-
AuroLibraryRuntimeUtils$
|
|
5037
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroSelect);
|
|
3604
5038
|
}
|
|
3605
5039
|
|
|
3606
5040
|
/**
|
|
3607
|
-
* Updates the displayed value in an Auro dropdown component based on optionSelected
|
|
5041
|
+
* Updates the displayed value in an Auro dropdown component based on optionSelected.
|
|
3608
5042
|
* @private
|
|
3609
5043
|
* @returns {void}
|
|
3610
5044
|
*/
|
|
3611
5045
|
updateDisplayedValue() {
|
|
3612
5046
|
const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
|
|
3613
5047
|
|
|
3614
|
-
//
|
|
3615
|
-
triggerContentEl.
|
|
3616
|
-
|
|
3617
|
-
|
|
5048
|
+
// Clear everything except placeholder
|
|
5049
|
+
const placeholder = triggerContentEl.querySelector('#placeholder');
|
|
5050
|
+
triggerContentEl.innerHTML = '';
|
|
5051
|
+
if (placeholder) {
|
|
5052
|
+
triggerContentEl.appendChild(placeholder);
|
|
5053
|
+
}
|
|
3618
5054
|
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
clone.removeAttribute('class');
|
|
5055
|
+
// Handle selected options
|
|
5056
|
+
if (this.optionSelected && this.optionSelected.length) {
|
|
5057
|
+
// Create display text from selected options
|
|
5058
|
+
const displayText = this.optionSelected.map((option) => option.textContent).join(', ');
|
|
3624
5059
|
|
|
3625
|
-
|
|
3626
|
-
|
|
5060
|
+
const span = document.createElement('span');
|
|
5061
|
+
span.textContent = displayText;
|
|
5062
|
+
triggerContentEl.appendChild(span);
|
|
3627
5063
|
}
|
|
3628
5064
|
|
|
3629
|
-
// notify dropdown as trigger content is changed
|
|
3630
5065
|
this.dropdown.requestUpdate();
|
|
3631
5066
|
}
|
|
3632
5067
|
|
|
@@ -3646,6 +5081,10 @@ class AuroSelect extends r$4 {
|
|
|
3646
5081
|
return;
|
|
3647
5082
|
}
|
|
3648
5083
|
|
|
5084
|
+
if (this.multiSelect) {
|
|
5085
|
+
this.menu.multiSelect = this.multiSelect;
|
|
5086
|
+
}
|
|
5087
|
+
|
|
3649
5088
|
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
3650
5089
|
this.menu.setAttribute('aria-hidden', 'true');
|
|
3651
5090
|
|
|
@@ -3656,8 +5095,10 @@ class AuroSelect extends r$4 {
|
|
|
3656
5095
|
});
|
|
3657
5096
|
|
|
3658
5097
|
this.menu.addEventListener('auroMenu-selectedOption', () => {
|
|
5098
|
+
// Get array of selected options from menu
|
|
3659
5099
|
this.optionSelected = this.menu.optionSelected;
|
|
3660
|
-
|
|
5100
|
+
// For single select, we still use arrays but only take first value
|
|
5101
|
+
this.value = this.menu.value;
|
|
3661
5102
|
|
|
3662
5103
|
if (this.dropdown.isPopoverVisible) {
|
|
3663
5104
|
this.dropdown.hide();
|
|
@@ -3672,7 +5113,7 @@ class AuroSelect extends r$4 {
|
|
|
3672
5113
|
* with `auro-select.value`.
|
|
3673
5114
|
*/
|
|
3674
5115
|
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
3675
|
-
this.
|
|
5116
|
+
this.menu.clearSelection();
|
|
3676
5117
|
});
|
|
3677
5118
|
|
|
3678
5119
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
@@ -3697,7 +5138,7 @@ class AuroSelect extends r$4 {
|
|
|
3697
5138
|
this.dropdown.show();
|
|
3698
5139
|
|
|
3699
5140
|
if (this.dropdown.isPopoverVisible) {
|
|
3700
|
-
this.menu.
|
|
5141
|
+
this.menu.navigateOptions('up');
|
|
3701
5142
|
}
|
|
3702
5143
|
}
|
|
3703
5144
|
|
|
@@ -3707,7 +5148,7 @@ class AuroSelect extends r$4 {
|
|
|
3707
5148
|
this.dropdown.show();
|
|
3708
5149
|
|
|
3709
5150
|
if (this.dropdown.isPopoverVisible) {
|
|
3710
|
-
this.menu.
|
|
5151
|
+
this.menu.navigateOptions('down');
|
|
3711
5152
|
}
|
|
3712
5153
|
}
|
|
3713
5154
|
|
|
@@ -3719,7 +5160,11 @@ class AuroSelect extends r$4 {
|
|
|
3719
5160
|
}
|
|
3720
5161
|
|
|
3721
5162
|
if (evt.key === 'Tab') {
|
|
3722
|
-
this.dropdown.
|
|
5163
|
+
if (this.dropdown.isBibFullscreen) {
|
|
5164
|
+
evt.preventDefault();
|
|
5165
|
+
} else {
|
|
5166
|
+
this.dropdown.hide();
|
|
5167
|
+
}
|
|
3723
5168
|
}
|
|
3724
5169
|
});
|
|
3725
5170
|
|
|
@@ -3770,11 +5215,30 @@ class AuroSelect extends r$4 {
|
|
|
3770
5215
|
* input as no longer in the initial state.
|
|
3771
5216
|
*/
|
|
3772
5217
|
if (this.value === undefined) {
|
|
3773
|
-
this.value =
|
|
5218
|
+
this.value = undefined;
|
|
3774
5219
|
this.removeEventListener('focusin', this.handleFocusin);
|
|
3775
5220
|
}
|
|
3776
5221
|
}
|
|
3777
5222
|
|
|
5223
|
+
/**
|
|
5224
|
+
* Watch for slot changes and recalculate the menuoptions.
|
|
5225
|
+
* @private
|
|
5226
|
+
* @param {Event} event - `slotchange` event.
|
|
5227
|
+
* @returns {void}
|
|
5228
|
+
*/
|
|
5229
|
+
handleSlotChange(event) {
|
|
5230
|
+
// Remove previous slot nodes if necessary.
|
|
5231
|
+
const oldSlots = this.bibtemplate.querySelectorAll(`[slot="header"]`);
|
|
5232
|
+
oldSlots.forEach((old) => old.remove());
|
|
5233
|
+
|
|
5234
|
+
const newSlots = event.target.assignedNodes();
|
|
5235
|
+
newSlots.forEach((node) => {
|
|
5236
|
+
const clone = node.cloneNode(true);
|
|
5237
|
+
clone.setAttribute('slot', "header");
|
|
5238
|
+
this.bibtemplate.append(clone);
|
|
5239
|
+
});
|
|
5240
|
+
}
|
|
5241
|
+
|
|
3778
5242
|
/**
|
|
3779
5243
|
* Determines the element error state based on the `required` attribute and input value.
|
|
3780
5244
|
* @private
|
|
@@ -3828,22 +5292,33 @@ class AuroSelect extends r$4 {
|
|
|
3828
5292
|
}
|
|
3829
5293
|
}
|
|
3830
5294
|
|
|
3831
|
-
updated(changedProperties) {
|
|
3832
|
-
// After the component is ready, send direct value changes to auro-menu.
|
|
5295
|
+
async updated(changedProperties) {
|
|
3833
5296
|
if (changedProperties.has('value')) {
|
|
3834
5297
|
if (this.value) {
|
|
3835
5298
|
this.menu.value = this.value;
|
|
5299
|
+
|
|
5300
|
+
// Wait for menu to finish updating its value
|
|
5301
|
+
await this.menu.updateComplete;
|
|
5302
|
+
|
|
5303
|
+
this.optionSelected = this.menu.optionSelected;
|
|
3836
5304
|
} else {
|
|
3837
5305
|
this.menu.value = undefined;
|
|
3838
5306
|
}
|
|
3839
5307
|
|
|
3840
5308
|
this.validation.validate(this);
|
|
3841
5309
|
|
|
5310
|
+
// LEGACY EVENT
|
|
3842
5311
|
this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
|
|
3843
5312
|
bubbles: true,
|
|
3844
5313
|
cancelable: false,
|
|
3845
5314
|
composed: true,
|
|
3846
5315
|
}));
|
|
5316
|
+
|
|
5317
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
5318
|
+
bubbles: true,
|
|
5319
|
+
cancelable: true,
|
|
5320
|
+
composed: true,
|
|
5321
|
+
}));
|
|
3847
5322
|
}
|
|
3848
5323
|
|
|
3849
5324
|
if (changedProperties.has('optionSelected')) {
|
|
@@ -3851,7 +5326,7 @@ class AuroSelect extends r$4 {
|
|
|
3851
5326
|
}
|
|
3852
5327
|
|
|
3853
5328
|
if (changedProperties.has('error')) {
|
|
3854
|
-
this.
|
|
5329
|
+
this.validate(true);
|
|
3855
5330
|
}
|
|
3856
5331
|
}
|
|
3857
5332
|
|
|
@@ -3863,6 +5338,24 @@ class AuroSelect extends r$4 {
|
|
|
3863
5338
|
this.validation.reset(this);
|
|
3864
5339
|
}
|
|
3865
5340
|
|
|
5341
|
+
/**
|
|
5342
|
+
* Hide dropdownbib.
|
|
5343
|
+
* @private
|
|
5344
|
+
*/
|
|
5345
|
+
hideBib() {
|
|
5346
|
+
if (this.dropdown) {
|
|
5347
|
+
this.dropdown.hide();
|
|
5348
|
+
}
|
|
5349
|
+
}
|
|
5350
|
+
|
|
5351
|
+
/**
|
|
5352
|
+
* Validates value.
|
|
5353
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
5354
|
+
*/
|
|
5355
|
+
validate(force = false) {
|
|
5356
|
+
this.validation.validate(this, force);
|
|
5357
|
+
}
|
|
5358
|
+
|
|
3866
5359
|
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
3867
5360
|
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
3868
5361
|
|
|
@@ -3872,49 +5365,57 @@ class AuroSelect extends r$4 {
|
|
|
3872
5365
|
hidden: this.value,
|
|
3873
5366
|
};
|
|
3874
5367
|
|
|
3875
|
-
return u$
|
|
5368
|
+
return u$6`
|
|
3876
5369
|
<div class="outerWrapper">
|
|
3877
5370
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
3878
5371
|
${this.optionActive && this.options.length > 0
|
|
3879
|
-
? u$
|
|
5372
|
+
? u$6`
|
|
3880
5373
|
${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
|
|
3881
5374
|
`
|
|
3882
5375
|
: undefined
|
|
3883
5376
|
};
|
|
3884
5377
|
|
|
3885
5378
|
${this.optionSelected && this.options.length > 0
|
|
3886
|
-
? u$
|
|
5379
|
+
? u$6`
|
|
3887
5380
|
${`${this.optionSelected.innerText} selected`}
|
|
3888
5381
|
`
|
|
3889
5382
|
: undefined
|
|
3890
5383
|
};
|
|
3891
5384
|
</div>
|
|
5385
|
+
<div id="slotHolder" aria-hidden="true">
|
|
5386
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
5387
|
+
</div>
|
|
3892
5388
|
<${this.dropdownTag}
|
|
3893
5389
|
for="selectmenu"
|
|
3894
5390
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
3895
5391
|
common
|
|
3896
5392
|
fluid
|
|
5393
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
3897
5394
|
?matchWidth="${!this.flexMenuWidth}"
|
|
3898
5395
|
chevron
|
|
3899
5396
|
part="dropdown">
|
|
3900
5397
|
<span slot="trigger" aria-haspopup="true" id="triggerFocus">
|
|
3901
|
-
<span id="placeholder" class="${e$
|
|
5398
|
+
<span id="placeholder" class="${e$9(placeholderClass)}"><slot name="placeholder"></slot></span>
|
|
3902
5399
|
</span>
|
|
5400
|
+
|
|
3903
5401
|
<div class="menuWrapper">
|
|
3904
5402
|
</div>
|
|
5403
|
+
|
|
5404
|
+
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
|
|
5405
|
+
</${this.bibtemplateTag}>
|
|
3905
5406
|
<slot name="label" slot="label"></slot>
|
|
3906
|
-
<
|
|
5407
|
+
<p slot="helpText">
|
|
3907
5408
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
3908
|
-
? u$
|
|
3909
|
-
<
|
|
5409
|
+
? u$6`
|
|
5410
|
+
<span id="${this.uniqueId}" part="helpText">
|
|
3910
5411
|
<slot name="helpText"></slot>
|
|
3911
|
-
</
|
|
3912
|
-
: u$
|
|
3913
|
-
<
|
|
5412
|
+
</span>`
|
|
5413
|
+
: u$6`
|
|
5414
|
+
<span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
3914
5415
|
${this.errorMessage}
|
|
3915
|
-
</
|
|
5416
|
+
</span>`
|
|
3916
5417
|
}
|
|
3917
|
-
</
|
|
5418
|
+
</p>
|
|
3918
5419
|
</${this.dropdownTag}>
|
|
3919
5420
|
<!-- Help text and error message template -->
|
|
3920
5421
|
</div>
|
|
@@ -3922,6 +5423,4 @@ class AuroSelect extends r$4 {
|
|
|
3922
5423
|
}
|
|
3923
5424
|
}
|
|
3924
5425
|
|
|
3925
|
-
AuroSelect.register();
|
|
3926
|
-
|
|
3927
5426
|
export { AuroSelect };
|