@baloise/ds-core 16.0.3 → 16.1.0-nightly.20240419
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/components/all.d.ts +236 -0
- package/components/all.js +353 -0
- package/components/aria.js +3 -0
- package/components/bal-accordion-details.js +4 -4
- package/components/bal-app.js +1 -85
- package/components/bal-app2.js +87 -0
- package/components/bal-card.js +2 -2
- package/components/bal-card2.js +3 -3
- package/components/bal-carousel2.js +1 -1
- package/components/bal-checkbox-button.js +6 -6
- package/components/bal-checkbox-group.js +1 -1
- package/components/bal-checkbox2.js +3 -2
- package/components/bal-close2.js +1 -1
- package/components/bal-content.js +4 -4
- package/components/bal-date-calendar-cell.js +2 -2
- package/components/bal-date-calendar-cell2.js +3 -3
- package/components/bal-date-calendar2.js +3 -3
- package/components/bal-datepicker.js +3 -3
- package/components/bal-divider.js +4 -4
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +260 -0
- package/components/bal-dropdown.d.ts +11 -0
- package/components/bal-dropdown.js +710 -0
- package/components/bal-field.js +12 -2
- package/components/bal-file-upload.js +1 -1
- package/components/bal-footer.js +4 -4
- package/components/bal-input-slider.js +1 -1
- package/components/bal-label.js +2 -2
- package/components/bal-label2.js +5 -5
- package/components/bal-nav-link-grid-col.js +2 -2
- package/components/bal-nav-link-grid-col2.js +4 -4
- package/components/bal-nav-link-grid.js +2 -2
- package/components/bal-nav-link-grid2.js +4 -4
- package/components/bal-nav-link-group.js +4 -4
- package/components/bal-nav-link.js +2 -2
- package/components/bal-nav-link2.js +4 -4
- package/components/bal-nav.js +8 -8
- package/components/bal-notices.js +3 -3
- package/components/bal-number-input.js +31 -13
- package/components/bal-option-list.d.ts +11 -0
- package/components/bal-option-list.js +459 -0
- package/components/bal-option.d.ts +11 -0
- package/components/bal-option.js +171 -0
- package/components/bal-popup.js +1 -1
- package/components/bal-radio-button.js +5 -5
- package/components/bal-radio-group.js +1 -1
- package/components/bal-radio2.js +1 -1
- package/components/bal-select2.js +4 -4
- package/components/bal-spinner2.js +54 -6
- package/components/bal-stack.js +2 -2
- package/components/bal-stack2.js +4 -4
- package/components/bal-steps.js +1 -1
- package/components/bal-tabs2.js +2 -2
- package/components/bal-tag2.js +1 -1
- package/components/config.default.js +1 -0
- package/components/date.js +5 -1
- package/components/index.esm.js +1 -1
- package/components/index.js +6 -282
- package/components/initialize.js +288 -0
- package/components/option.js +46 -0
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/p-0639833837.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-88852ce68d.system.entry.js → p-06e9a468fc.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-0793c0159f.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-cee3cd08.js → p-0cb5658b.js} +1 -1
- package/dist/baloise-design-system/{p-e113196061.system.entry.js → p-126c79c9e9.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bb2ec275bb.system.entry.js → p-12bb6ea3e7.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-12bcc7da.js +1 -0
- package/dist/baloise-design-system/p-14c79109d8.entry.js +1 -0
- package/dist/baloise-design-system/{p-3bbf43bb.system.js → p-1509eaa7.system.js} +1 -1
- package/dist/baloise-design-system/{p-946e9e784d.system.entry.js → p-1659bb968c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-187f98a1.system.js +1 -0
- package/dist/baloise-design-system/{p-a5568e05fb.system.entry.js → p-18b0683fdc.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-18e2e391e0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1de6b20b1c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-681d41fc97.entry.js → p-21af55e28a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1c2dee82c4.system.entry.js → p-222bc9b30e.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-22b041a511.entry.js +1 -0
- package/dist/baloise-design-system/{p-762f45ff6f.entry.js → p-2abdcb6dcf.entry.js} +1 -1
- package/dist/baloise-design-system/p-2d82b78410.entry.js +1 -0
- package/dist/baloise-design-system/{p-a0db085f89.entry.js → p-2d8bd11634.entry.js} +1 -1
- package/dist/baloise-design-system/p-2db9030ad9.system.entry.js +1 -0
- package/dist/baloise-design-system/p-317cee9b56.system.entry.js +1 -0
- package/dist/baloise-design-system/p-360068a4.system.js +1 -0
- package/dist/baloise-design-system/{p-9a5cb17cb9.entry.js → p-39bc49bc3d.entry.js} +1 -1
- package/dist/baloise-design-system/p-3bad0907.system.js +1 -0
- package/dist/baloise-design-system/p-3cdc486c.system.js +1 -0
- package/dist/baloise-design-system/{p-12786937.js → p-3f1c49d0.js} +1 -1
- package/dist/baloise-design-system/p-473125ae77.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4c3107abae.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-32bc2b926a.entry.js → p-4e0c5650db.entry.js} +1 -1
- package/dist/baloise-design-system/{p-62770d5d.system.js → p-51f6ee7a.system.js} +1 -1
- package/dist/baloise-design-system/{p-9e4fcb76.js → p-54f81c32.js} +1 -1
- package/dist/baloise-design-system/{p-922fd809.system.js → p-55faac1d.system.js} +1 -1
- package/dist/baloise-design-system/p-56493de51e.entry.js +1 -0
- package/dist/baloise-design-system/p-5b571a9fb1.entry.js +1 -0
- package/dist/baloise-design-system/{p-06e959a11a.entry.js → p-6164f99bb8.entry.js} +1 -1
- package/dist/baloise-design-system/p-6648acba05.entry.js +1 -0
- package/dist/baloise-design-system/{p-8177dec3.system.js → p-67ed04b9.system.js} +1 -1
- package/dist/baloise-design-system/p-68e87619.js +1 -0
- package/dist/baloise-design-system/{p-33cd610840.system.entry.js → p-6b3e1f72ee.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-6cecede8d4.entry.js +1 -0
- package/dist/baloise-design-system/p-6d1b6215.js +1 -0
- package/dist/baloise-design-system/{p-31d9c875c0.system.entry.js → p-6f29dd6430.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7291766c.system.js +1 -0
- package/dist/baloise-design-system/{p-ac825842e4.system.entry.js → p-746f464427.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-77f5e777e6.entry.js +1 -0
- package/dist/baloise-design-system/p-7c42a363f3.entry.js +1 -0
- package/dist/baloise-design-system/p-7cd815d3e8.entry.js +1 -0
- package/dist/baloise-design-system/{p-9e7610a20f.system.entry.js → p-7f42c8d65e.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-80b45dd4d6.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-9cc5ae9e5c.entry.js → p-833c1c2fb9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f62222a85d.entry.js → p-83fb742dde.entry.js} +1 -1
- package/dist/baloise-design-system/{p-af5b58ab1c.system.entry.js → p-8870e1f3e0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3cb83cf9.system.js → p-8a87b9a8.system.js} +1 -1
- package/dist/baloise-design-system/{p-720c90ea90.system.entry.js → p-8d71cd5071.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8f77c423ad.entry.js +1 -0
- package/dist/baloise-design-system/{p-1b76afbf.js → p-94efe2aa.js} +1 -1
- package/dist/baloise-design-system/{p-0ce86357bd.entry.js → p-9658f4a66f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c3bd665a8b.entry.js → p-9e167705ca.entry.js} +1 -1
- package/dist/baloise-design-system/p-9ecce014c2.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-33fca72859.entry.js → p-a04617f794.entry.js} +1 -1
- package/dist/baloise-design-system/p-a19d1e1d.js +1 -0
- package/dist/baloise-design-system/p-a7e5ee75e2.entry.js +1 -0
- package/dist/baloise-design-system/p-ae28b86fe5.entry.js +1 -0
- package/dist/baloise-design-system/{p-1cdfb98b54.entry.js → p-af3d0413d9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6b80dee13f.system.entry.js → p-b292c6efb8.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b779742f50.entry.js +1 -0
- package/dist/baloise-design-system/p-b8f085f7b5.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b97d9336a7.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-b3a2290c0d.entry.js → p-b9f197815f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cf6ccb4dd1.entry.js → p-ba1d007d58.entry.js} +1 -1
- package/dist/baloise-design-system/p-bb6304d0.system.js +1 -0
- package/dist/baloise-design-system/p-bcbb5b59f3.system.entry.js +1 -0
- package/dist/baloise-design-system/p-bd5de78b2c.entry.js +1 -0
- package/dist/baloise-design-system/{p-8444cfcbed.system.entry.js → p-bf0a07bdf3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-c304d5fa9c.entry.js +1 -0
- package/dist/baloise-design-system/{p-8998eeb2a7.system.entry.js → p-c65e1d9169.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d9b38501.js +1 -0
- package/dist/baloise-design-system/p-d9d229a026.entry.js +1 -0
- package/dist/baloise-design-system/{p-13227d037a.system.entry.js → p-dbc2d22240.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aacb0cee66.system.entry.js → p-dce3764ee5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b34e0daa6e.system.entry.js → p-dd8e4e1c0a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a9300668b4.system.entry.js → p-e1e0243bf9.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-49a8bfb790.system.entry.js → p-e4de708de1.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-e60c936359.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e86ca61a84.entry.js +1 -0
- package/dist/baloise-design-system/p-e8ffddeb.js +1 -0
- package/dist/baloise-design-system/{p-f55c50abfa.system.entry.js → p-f076d1ed4f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-671a986aff.entry.js → p-f133bb7235.entry.js} +1 -1
- package/dist/baloise-design-system/p-f56fb1a197.entry.js +1 -0
- package/dist/baloise-design-system/p-f8a98657a1.entry.js +1 -0
- package/dist/baloise-design-system/p-f959646a.system.js +1 -0
- package/dist/cjs/app-globals-5fd73c0c.js +7 -0
- package/dist/cjs/aria-c8955a5c.js +5 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/bal-card_6.cjs.entry.js +3 -3
- package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +6 -6
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +4 -3
- package/dist/cjs/bal-close.cjs.entry.js +2 -2
- package/dist/cjs/bal-content.cjs.entry.js +4 -4
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -2
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-date.cjs.entry.js +2 -2
- package/dist/cjs/bal-datepicker.cjs.entry.js +7 -7
- package/dist/cjs/bal-divider.cjs.entry.js +4 -4
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +660 -0
- package/dist/cjs/bal-field_5.cjs.entry.js +12 -2
- package/dist/cjs/bal-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/bal-footer.cjs.entry.js +4 -4
- package/dist/cjs/bal-hint_3.cjs.entry.js +3 -3
- package/dist/cjs/bal-icon.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-slider.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bal-label.cjs.entry.js +6 -6
- package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +28 -28
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-notices.cjs.entry.js +3 -3
- package/dist/cjs/bal-number-input.cjs.entry.js +32 -14
- package/dist/cjs/bal-option_2.cjs.entry.js +541 -0
- package/dist/cjs/bal-pagination.cjs.entry.js +4 -4
- package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/bal-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/bal-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-select_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-spinner.cjs.entry.js +49 -4
- package/dist/cjs/bal-stack.cjs.entry.js +4 -4
- package/dist/cjs/bal-steps.cjs.entry.js +4 -4
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-tag_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-time-input.cjs.entry.js +1 -1
- package/dist/cjs/baloise-design-system.cjs.js +5 -4
- package/dist/cjs/{breakpoints.decorator-7f888011.js → breakpoints.decorator-ea915727.js} +1 -1
- package/dist/cjs/{breakpoints.subject-28c980cd.js → breakpoints.subject-2de06dfa.js} +1 -1
- package/dist/cjs/{config.default-32725178.js → config.default-5bdd6e3d.js} +1 -0
- package/dist/cjs/{date-df1d61a8.js → date-3e33b208.js} +5 -1
- package/dist/cjs/global-2562a984.js +9 -0
- package/dist/cjs/index.cjs.js +7 -5
- package/dist/cjs/{initialize-e38e7028.js → initialize-2a19d091.js} +9 -2
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/option-c33cf2b8.js +49 -0
- package/dist/cjs/{tokens.esm-89d0f18d.js → tokens.esm-191e70ea.js} +1 -1
- package/dist/collection/collection-manifest.json +16 -1
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +2 -2
- package/dist/collection/components/bal-card/bal-card.js +1 -1
- package/dist/collection/components/bal-carousel/controls/tab-control.js +1 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.css +1 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +3 -3
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +1 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +2 -1
- package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
- package/dist/collection/components/bal-close/bal-close.js +1 -1
- package/dist/collection/components/bal-content/bal-content.js +2 -2
- package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__gird.js +1 -1
- package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__list.js +1 -1
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +1 -1
- package/dist/collection/components/bal-datepicker/bal-datepicker.js +3 -3
- package/dist/collection/components/bal-divider/bal-divider.js +2 -2
- package/dist/collection/components/bal-dropdown/bal-dropdown.css +1 -0
- package/dist/collection/components/bal-dropdown/bal-dropdown.interfaces.js +4 -0
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +882 -0
- package/dist/collection/components/bal-field/bal-field.js +12 -2
- package/dist/collection/components/bal-file-upload/components/file-list.js +1 -1
- package/dist/collection/components/bal-footer/bal-footer.js +3 -3
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +1 -1
- package/dist/collection/components/bal-label/bal-label.js +3 -3
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav.js +6 -6
- package/dist/collection/components/bal-nav/components/section-list.js +2 -2
- package/dist/collection/components/bal-nav/components/service-list.js +2 -2
- package/dist/collection/components/bal-notices/bal-notices.js +1 -1
- package/dist/collection/components/bal-number-input/bal-number-input.js +5 -0
- package/dist/collection/components/bal-number-input/bal-number-input.utils.js +27 -14
- package/dist/collection/components/bal-number-input/bal-number-input.utils.spec.js +82 -0
- package/dist/collection/components/bal-option/bal-option.css +1 -0
- package/dist/collection/components/bal-option/bal-option.interfaces.js +4 -0
- package/dist/collection/components/bal-option/bal-option.js +360 -0
- package/dist/collection/components/bal-option-list/bal-option-list.css +1 -0
- package/dist/collection/components/bal-option-list/bal-option-list.interfaces.js +4 -0
- package/dist/collection/components/bal-option-list/bal-option-list.js +939 -0
- package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +3 -3
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +1 -1
- package/dist/collection/components/bal-select/bal-select.js +4 -4
- package/dist/collection/components/bal-spinner/bal-spinner.css +1 -1
- package/dist/collection/components/bal-spinner/bal-spinner.interfaces.js +4 -0
- package/dist/collection/components/bal-spinner/bal-spinner.js +83 -4
- package/dist/collection/components/bal-stack/bal-stack.js +2 -2
- package/dist/collection/components/bal-steps/bal-steps.js +1 -1
- package/dist/collection/components/bal-tabs/components/tab-nav.js +1 -1
- package/dist/collection/components/bal-tabs/components/tab-select.js +1 -1
- package/dist/collection/components/bal-tag/bal-tag.css +1 -1
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/aria.js +1 -0
- package/dist/collection/utils/config/config.default.js +1 -0
- package/dist/collection/utils/config/config.js +7 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/date/date.js +5 -1
- package/dist/collection/utils/date/date.spec.js +11 -5
- package/dist/collection/utils/dropdown/auto-fill.js +38 -0
- package/dist/collection/utils/dropdown/component.js +1 -0
- package/dist/collection/utils/dropdown/dropdown.i18n.js +52 -0
- package/dist/collection/utils/dropdown/events.js +43 -0
- package/dist/collection/utils/dropdown/filters.js +10 -0
- package/dist/collection/utils/dropdown/focus.js +19 -0
- package/dist/collection/utils/dropdown/form-submit.js +35 -0
- package/dist/collection/utils/dropdown/icon.js +15 -0
- package/dist/collection/utils/dropdown/index.js +13 -0
- package/dist/collection/utils/dropdown/input.js +12 -0
- package/dist/collection/utils/dropdown/option-list.js +8 -0
- package/dist/collection/utils/dropdown/option.js +44 -0
- package/dist/collection/utils/dropdown/popup.js +45 -0
- package/dist/collection/utils/dropdown/value.js +103 -0
- package/dist/esm/app-globals-970bab17.js +5 -0
- package/dist/esm/aria-d5877698.js +3 -0
- package/dist/esm/bal-accordion_4.entry.js +4 -4
- package/dist/esm/bal-card_6.entry.js +3 -3
- package/dist/esm/bal-carousel_2.entry.js +5 -5
- package/dist/esm/bal-checkbox-button.entry.js +6 -6
- package/dist/esm/bal-checkbox_2.entry.js +5 -4
- package/dist/esm/bal-close.entry.js +2 -2
- package/dist/esm/bal-content.entry.js +4 -4
- package/dist/esm/bal-date-calendar-cell.entry.js +2 -2
- package/dist/esm/bal-date-calendar_2.entry.js +6 -6
- package/dist/esm/bal-date.entry.js +3 -3
- package/dist/esm/bal-datepicker.entry.js +8 -8
- package/dist/esm/bal-divider.entry.js +4 -4
- package/dist/esm/bal-doc-app.entry.js +227 -0
- package/dist/esm/bal-dropdown.entry.js +656 -0
- package/dist/esm/bal-field_5.entry.js +12 -2
- package/dist/esm/bal-file-upload.entry.js +2 -2
- package/dist/esm/bal-footer.entry.js +5 -5
- package/dist/esm/bal-hint_3.entry.js +3 -3
- package/dist/esm/bal-icon.entry.js +1 -1
- package/dist/esm/bal-input-slider.entry.js +1 -1
- package/dist/esm/bal-input-stepper.entry.js +2 -2
- package/dist/esm/bal-label.entry.js +6 -6
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +24 -24
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-notices.entry.js +3 -3
- package/dist/esm/bal-number-input.entry.js +33 -15
- package/dist/esm/bal-option_2.entry.js +536 -0
- package/dist/esm/bal-pagination.entry.js +4 -4
- package/dist/esm/bal-popover_2.entry.js +3 -3
- package/dist/esm/bal-popup.entry.js +1 -1
- package/dist/esm/bal-progress-bar.entry.js +3 -3
- package/dist/esm/bal-radio-button.entry.js +5 -5
- package/dist/esm/bal-radio_2.entry.js +3 -3
- package/dist/esm/bal-select_2.entry.js +4 -4
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +50 -5
- package/dist/esm/bal-stack.entry.js +4 -4
- package/dist/esm/bal-steps.entry.js +5 -5
- package/dist/esm/bal-tab-item_2.entry.js +6 -6
- package/dist/esm/bal-tag_2.entry.js +1 -1
- package/dist/esm/bal-time-input.entry.js +1 -1
- package/dist/esm/baloise-design-system.js +5 -4
- package/dist/esm/{breakpoints.decorator-52979d29.js → breakpoints.decorator-4f0969a0.js} +1 -1
- package/dist/esm/{breakpoints.subject-64327a3b.js → breakpoints.subject-5b2ef6bb.js} +1 -1
- package/dist/esm/{config.default-79f94bf7.js → config.default-7efdc82d.js} +1 -0
- package/dist/esm/{date-db6afc26.js → date-38a0b208.js} +6 -2
- package/dist/esm/global-63f4bcec.js +7 -0
- package/dist/esm/{index.esm-ec4cba26.js → index.esm-83b1f9c4.js} +1 -1
- package/dist/esm/index.js +8 -7
- package/dist/esm/{initialize-66615dde.js → initialize-e216cfe4.js} +9 -2
- package/dist/esm/loader.js +5 -4
- package/dist/esm/option-37cb0282.js +46 -0
- package/dist/esm/{tokens.esm-12daa3af.js → tokens.esm-5fc473dd.js} +1 -1
- package/dist/esm-es5/app-globals-970bab17.js +1 -0
- package/dist/esm-es5/aria-d5877698.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- package/dist/esm-es5/bal-card_6.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-content.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-datepicker.entry.js +1 -1
- package/dist/esm-es5/bal-divider.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-dropdown.entry.js +1 -0
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-hint_3.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-slider.entry.js +1 -1
- package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
- package/dist/esm-es5/bal-label.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-notices.entry.js +1 -1
- package/dist/esm-es5/bal-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-option_2.entry.js +1 -0
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popover_2.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-button.entry.js +1 -1
- package/dist/esm-es5/bal-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-select_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stack.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/bal-tag_2.entry.js +1 -1
- package/dist/esm-es5/bal-time-input.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/breakpoints.decorator-4f0969a0.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-64327a3b.js → breakpoints.subject-5b2ef6bb.js} +1 -1
- package/dist/esm-es5/{config.default-79f94bf7.js → config.default-7efdc82d.js} +1 -1
- package/dist/esm-es5/{date-db6afc26.js → date-38a0b208.js} +1 -1
- package/dist/esm-es5/global-63f4bcec.js +1 -0
- package/dist/esm-es5/{index.esm-ec4cba26.js → index.esm-83b1f9c4.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{initialize-66615dde.js → initialize-e216cfe4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/option-37cb0282.js +1 -0
- package/dist/html.html-data.json +357 -0
- package/dist/types/components/bal-accordion/bal-accordion-details/bal-accordion-details.d.ts +1 -1
- package/dist/types/components/bal-card/bal-card.d.ts +1 -1
- package/dist/types/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.d.ts +1 -1
- package/dist/types/components/bal-content/bal-content.d.ts +1 -1
- package/dist/types/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.d.ts +1 -1
- package/dist/types/components/bal-divider/bal-divider.d.ts +1 -1
- package/dist/types/components/bal-dropdown/bal-dropdown.d.ts +187 -0
- package/dist/types/components/bal-dropdown/bal-dropdown.interfaces.d.ts +14 -0
- package/dist/types/components/bal-field/bal-field.d.ts +1 -0
- package/dist/types/components/bal-label/bal-label.d.ts +1 -1
- package/dist/types/components/bal-nav/bal-nav-link/bal-nav-link.d.ts +1 -1
- package/dist/types/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.d.ts +1 -1
- package/dist/types/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.d.ts +1 -1
- package/dist/types/components/bal-nav/bal-nav-link-group/bal-nav-link-group.d.ts +1 -1
- package/dist/types/components/bal-nav/bal-nav.d.ts +1 -1
- package/dist/types/components/bal-notices/bal-notices.d.ts +1 -1
- package/dist/types/components/bal-number-input/bal-number-input.d.ts +1 -0
- package/dist/types/components/bal-number-input/bal-number-input.utils.d.ts +3 -1
- package/dist/types/components/bal-option/bal-option.d.ts +91 -0
- package/dist/types/components/bal-option/bal-option.interfaces.d.ts +19 -0
- package/dist/types/components/bal-option-list/bal-option-list.d.ts +168 -0
- package/dist/types/components/bal-option-list/bal-option-list.interfaces.d.ts +5 -0
- package/dist/types/components/bal-radio/bal-radio-button/bal-radio-button.d.ts +1 -1
- package/dist/types/components/bal-select/bal-select.d.ts +1 -1
- package/dist/types/components/bal-spinner/bal-spinner.d.ts +14 -2
- package/dist/types/components/bal-spinner/bal-spinner.interfaces.d.ts +6 -0
- package/dist/types/components/bal-stack/bal-stack.d.ts +1 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +488 -3
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interfaces.d.ts +4 -0
- package/dist/types/utils/aria.d.ts +1 -0
- package/dist/types/utils/config/config.d.ts +2 -0
- package/dist/types/utils/config/config.types.d.ts +2 -0
- package/dist/types/utils/date/date.d.ts +1 -0
- package/dist/types/utils/dropdown/auto-fill.d.ts +8 -0
- package/dist/types/utils/dropdown/component.d.ts +34 -0
- package/dist/types/utils/dropdown/dropdown.i18n.d.ts +8 -0
- package/dist/types/utils/dropdown/events.d.ts +13 -0
- package/dist/types/utils/dropdown/filters.d.ts +2 -0
- package/dist/types/utils/dropdown/focus.d.ts +13 -0
- package/dist/types/utils/dropdown/form-submit.d.ts +22 -0
- package/dist/types/utils/dropdown/icon.d.ts +13 -0
- package/dist/types/utils/dropdown/index.d.ts +13 -0
- package/dist/types/utils/dropdown/input.d.ts +27 -0
- package/dist/types/utils/dropdown/option-list.d.ts +17 -0
- package/dist/types/utils/dropdown/option.d.ts +25 -0
- package/dist/types/utils/dropdown/popup.d.ts +9 -0
- package/dist/types/utils/dropdown/value.d.ts +28 -0
- package/package.json +8 -7
- package/dist/baloise-design-system/p-05b55c958d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0d30cbfab8.entry.js +0 -1
- package/dist/baloise-design-system/p-15ca43f2.system.js +0 -1
- package/dist/baloise-design-system/p-1e0e5892a3.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2c3370fdbe.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2d10e25c6b.entry.js +0 -1
- package/dist/baloise-design-system/p-2dda46c5f8.entry.js +0 -1
- package/dist/baloise-design-system/p-34a9557f.system.js +0 -1
- package/dist/baloise-design-system/p-34d1472a.system.js +0 -1
- package/dist/baloise-design-system/p-3990d97696.entry.js +0 -1
- package/dist/baloise-design-system/p-48a2de5d.js +0 -1
- package/dist/baloise-design-system/p-4e218ac923.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4f4df156.js +0 -1
- package/dist/baloise-design-system/p-5eea406ac6.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6496dcd5.js +0 -1
- package/dist/baloise-design-system/p-67f25817a6.entry.js +0 -1
- package/dist/baloise-design-system/p-6dd26958d2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7e180ac10f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8ea27b553e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-90c4c1a5c0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-99dcda2fcd.entry.js +0 -1
- package/dist/baloise-design-system/p-a9d8b71709.entry.js +0 -1
- package/dist/baloise-design-system/p-af8604cef2.entry.js +0 -1
- package/dist/baloise-design-system/p-b1c7ddc442.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b1e3fc0bc8.entry.js +0 -1
- package/dist/baloise-design-system/p-bb291d6067.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c0a3d422.system.js +0 -1
- package/dist/baloise-design-system/p-c34504aa32.entry.js +0 -1
- package/dist/baloise-design-system/p-c6900b09e7.entry.js +0 -1
- package/dist/baloise-design-system/p-d4fd428711.entry.js +0 -1
- package/dist/baloise-design-system/p-d6fc0dd434.entry.js +0 -1
- package/dist/baloise-design-system/p-db3e6b861f.entry.js +0 -1
- package/dist/baloise-design-system/p-eba35b2adf.entry.js +0 -1
- package/dist/baloise-design-system/p-ec180f9bbf.entry.js +0 -1
- package/dist/baloise-design-system/p-f15b12d84f.entry.js +0 -1
- package/dist/cjs/app-globals-d6bc7866.js +0 -11
- package/dist/esm/app-globals-89691d80.js +0 -9
- package/dist/esm-es5/app-globals-89691d80.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-52979d29.js +0 -1
- /package/dist/baloise-design-system/{p-979368af.js → p-243cb124.js} +0 -0
- /package/dist/baloise-design-system/{p-61eda028.system.js → p-716f4ea0.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-12daa3af.js → tokens.esm-5fc473dd.js} +0 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import * as balIcons from "../../../../../../icons/src/index";
|
|
3
|
+
import { updateBalIcons } from "../../../utils/config";
|
|
4
|
+
import { balBrowser } from "../../../utils/browser";
|
|
5
|
+
import globalScript from "../../../global";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export class DocApp {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.logComponents = '';
|
|
12
|
+
this.logLifecycle = true;
|
|
13
|
+
this.logEvents = true;
|
|
14
|
+
this.logRender = true;
|
|
15
|
+
this.logCustom = true;
|
|
16
|
+
this.stickyFooter = false;
|
|
17
|
+
this.region = undefined;
|
|
18
|
+
this.language = undefined;
|
|
19
|
+
this.animated = true;
|
|
20
|
+
}
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
globalScript();
|
|
23
|
+
updateBalIcons(balIcons);
|
|
24
|
+
}
|
|
25
|
+
componentDidRender() {
|
|
26
|
+
const logConfig = {
|
|
27
|
+
components: this.logComponents
|
|
28
|
+
.split(',')
|
|
29
|
+
.map(c => c.trim())
|
|
30
|
+
.filter(c => c !== ''),
|
|
31
|
+
lifecycle: this.logLifecycle,
|
|
32
|
+
event: this.logEvents,
|
|
33
|
+
render: this.logRender,
|
|
34
|
+
custom: this.logCustom,
|
|
35
|
+
};
|
|
36
|
+
if (balBrowser.hasWindow) {
|
|
37
|
+
if (this.logComponents) {
|
|
38
|
+
;
|
|
39
|
+
window.BaloiseDesignSystem.config.logger = logConfig;
|
|
40
|
+
}
|
|
41
|
+
if (this.region) {
|
|
42
|
+
;
|
|
43
|
+
window.BaloiseDesignSystem.config.region = this.region;
|
|
44
|
+
}
|
|
45
|
+
if (this.language) {
|
|
46
|
+
;
|
|
47
|
+
window.BaloiseDesignSystem.config.language = this.language;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, null, h("bal-app", { animated: this.animated }, h("div", { class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", null)))));
|
|
53
|
+
}
|
|
54
|
+
static get is() { return "bal-doc-app"; }
|
|
55
|
+
static get originalStyleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["bal-doc-app.sass"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get styleUrls() {
|
|
61
|
+
return {
|
|
62
|
+
"$": ["bal-doc-app.css"]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static get properties() {
|
|
66
|
+
return {
|
|
67
|
+
"logComponents": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "log-components",
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"defaultValue": "''"
|
|
84
|
+
},
|
|
85
|
+
"logLifecycle": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "boolean",
|
|
90
|
+
"resolved": "boolean",
|
|
91
|
+
"references": {}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"attribute": "log-lifecycle",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "true"
|
|
102
|
+
},
|
|
103
|
+
"logEvents": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"mutable": false,
|
|
106
|
+
"complexType": {
|
|
107
|
+
"original": "boolean",
|
|
108
|
+
"resolved": "boolean",
|
|
109
|
+
"references": {}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": false,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [],
|
|
115
|
+
"text": ""
|
|
116
|
+
},
|
|
117
|
+
"attribute": "log-events",
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"defaultValue": "true"
|
|
120
|
+
},
|
|
121
|
+
"logRender": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "boolean",
|
|
126
|
+
"resolved": "boolean",
|
|
127
|
+
"references": {}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": false,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": ""
|
|
134
|
+
},
|
|
135
|
+
"attribute": "log-render",
|
|
136
|
+
"reflect": false,
|
|
137
|
+
"defaultValue": "true"
|
|
138
|
+
},
|
|
139
|
+
"logCustom": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "boolean",
|
|
144
|
+
"resolved": "boolean",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"attribute": "log-custom",
|
|
154
|
+
"reflect": false,
|
|
155
|
+
"defaultValue": "true"
|
|
156
|
+
},
|
|
157
|
+
"stickyFooter": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "boolean",
|
|
162
|
+
"resolved": "boolean",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"attribute": "sticky-footer",
|
|
172
|
+
"reflect": false,
|
|
173
|
+
"defaultValue": "false"
|
|
174
|
+
},
|
|
175
|
+
"region": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "string",
|
|
180
|
+
"resolved": "string",
|
|
181
|
+
"references": {}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": true,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [],
|
|
187
|
+
"text": ""
|
|
188
|
+
},
|
|
189
|
+
"attribute": "region",
|
|
190
|
+
"reflect": false
|
|
191
|
+
},
|
|
192
|
+
"language": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "string",
|
|
197
|
+
"resolved": "string",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": true,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": ""
|
|
205
|
+
},
|
|
206
|
+
"attribute": "language",
|
|
207
|
+
"reflect": false
|
|
208
|
+
},
|
|
209
|
+
"animated": {
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"mutable": false,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "boolean",
|
|
214
|
+
"resolved": "boolean",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
|
|
222
|
+
},
|
|
223
|
+
"attribute": "animated",
|
|
224
|
+
"reflect": true,
|
|
225
|
+
"defaultValue": "true"
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
package/dist/collection/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export * from './components/bal-label/bal-label.i18n';
|
|
|
26
26
|
* Utils
|
|
27
27
|
*/
|
|
28
28
|
export { initializeBaloiseDesignSystem as initialize, initializeBaloiseDesignSystem } from './initialize';
|
|
29
|
+
export { newBalOption } from './utils/dropdown/option';
|
|
29
30
|
export { newBalStepOption } from './components/bal-steps/bal-step.util';
|
|
30
31
|
export { newBalTabOption } from './components/bal-tabs/bal-tab.util';
|
|
31
32
|
export { newBalCheckboxOption } from './components/bal-checkbox/utils/bal-checkbox.util';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ariaBooleanToString = (bool) => (!!bool ? 'true' : 'false');
|
|
@@ -63,6 +63,13 @@ export class Config {
|
|
|
63
63
|
this._config.animated = animated;
|
|
64
64
|
this._notify();
|
|
65
65
|
}
|
|
66
|
+
get httpFormSubmit() {
|
|
67
|
+
return this._config.httpFormSubmit;
|
|
68
|
+
}
|
|
69
|
+
set httpFormSubmit(httpFormSubmit) {
|
|
70
|
+
this._config.httpFormSubmit = httpFormSubmit;
|
|
71
|
+
this._notify();
|
|
72
|
+
}
|
|
66
73
|
attach(observer) {
|
|
67
74
|
const isExist = this._observers.includes(observer);
|
|
68
75
|
if (isExist) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by .build/version.js
|
|
2
|
-
export const VERSION = '16.0.
|
|
2
|
+
export const VERSION = '16.1.0-nightly.20240419';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { DateTime, Info } from "luxon";
|
|
1
|
+
import { DateTime, Info, Settings } from "luxon";
|
|
2
2
|
import { useBalConfig } from "../config";
|
|
3
3
|
import { dateSeparator } from "@baloise/web-app-utils";
|
|
4
4
|
export class BalDate {
|
|
5
|
+
static setTwoDigitCutoffYear(cutoff = 10) {
|
|
6
|
+
Settings.twoDigitCutoffYear = (new Date().getFullYear() % 100) + cutoff;
|
|
7
|
+
}
|
|
5
8
|
static fromAnyFormat(value) {
|
|
6
9
|
const separator = value.replace(/[0-9]/g, '').charAt(0);
|
|
7
10
|
const config = useBalConfig();
|
|
@@ -109,3 +112,4 @@ export class BalDate {
|
|
|
109
112
|
return undefined;
|
|
110
113
|
}
|
|
111
114
|
}
|
|
115
|
+
BalDate.setTwoDigitCutoffYear();
|
|
@@ -60,15 +60,21 @@ describe('balDate', () => {
|
|
|
60
60
|
expect(BalDate.fromAnyFormat('1.02.1988').toISODate()).toStrictEqual('1988-02-01');
|
|
61
61
|
expect(BalDate.fromAnyFormat('01.2.1988').toISODate()).toStrictEqual('1988-02-01');
|
|
62
62
|
expect(BalDate.fromAnyFormat('1.2.1988').toISODate()).toStrictEqual('1988-02-01');
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
expect(BalDate.fromAnyFormat('1.2.00').toISODate()).toStrictEqual('2000-02-01');
|
|
66
|
-
expect(BalDate.fromAnyFormat('1.2.0').toISODate()).toStrictEqual('2000-02-01');
|
|
67
|
-
expect(BalDate.fromAnyFormat('12.12.1').toISODate()).toStrictEqual('2001-12-12');
|
|
63
|
+
});
|
|
64
|
+
test('should parse to todays year', () => {
|
|
68
65
|
const year = new Date().getFullYear();
|
|
69
66
|
expect(BalDate.fromAnyFormat('1.2.').toISODate()).toStrictEqual(`${year}-02-01`);
|
|
70
67
|
expect(BalDate.fromAnyFormat('1.2').toISODate()).toStrictEqual(`${year}-02-01`);
|
|
71
68
|
});
|
|
69
|
+
test('should fill up with the year correctly by the cutoff year', () => {
|
|
70
|
+
const year = new Date().getFullYear();
|
|
71
|
+
const cutoff = year + 10;
|
|
72
|
+
const cutoffTwoDigits = cutoff % 100;
|
|
73
|
+
console.log('cutoff', cutoff);
|
|
74
|
+
expect(BalDate.fromAnyFormat(`1.1.${cutoffTwoDigits}`).toISODate()).toStrictEqual(`20${cutoffTwoDigits}-01-01`);
|
|
75
|
+
expect(BalDate.fromAnyFormat(`1.1.${cutoffTwoDigits - 1}`).toISODate()).toStrictEqual(`20${cutoffTwoDigits - 1}-01-01`);
|
|
76
|
+
expect(BalDate.fromAnyFormat(`1.1.${cutoffTwoDigits + 1}`).toISODate()).toStrictEqual(`19${cutoffTwoDigits + 1}-01-01`);
|
|
77
|
+
});
|
|
72
78
|
test('should parse all supported number formats', () => {
|
|
73
79
|
expect(BalDate.fromAnyFormat('20021988').toISODate()).toStrictEqual('1988-02-20');
|
|
74
80
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { areArraysEqual } from "@baloise/web-app-utils";
|
|
2
|
+
import { stopEventBubbling } from "../form-input";
|
|
3
|
+
export class DropdownAutoFillUtil {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.handleAutoFill = async (ev) => {
|
|
6
|
+
stopEventBubbling(ev);
|
|
7
|
+
if (this.isAutoFillAllowed()) {
|
|
8
|
+
this.component.isAutoFilled = true;
|
|
9
|
+
const autoFillValue = this.component.nativeEl.value;
|
|
10
|
+
const newValue = await this.parseAutoFillValueWithOptions(autoFillValue);
|
|
11
|
+
if (newValue === undefined) {
|
|
12
|
+
this.component.isAutoFilled = false;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (!areArraysEqual(newValue, this.component.rawValue)) {
|
|
16
|
+
this.component.valueUtil.updateRawValueBySelection(newValue, true);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
connectedCallback(component) {
|
|
22
|
+
this.component = component;
|
|
23
|
+
}
|
|
24
|
+
isAutoFillAllowed() {
|
|
25
|
+
return !this.component.multiple;
|
|
26
|
+
}
|
|
27
|
+
async parseAutoFillValueWithOptions(autoFillValue) {
|
|
28
|
+
const options = await this.component.listEl.getOptions();
|
|
29
|
+
const value = undefined;
|
|
30
|
+
for (let index = 0; index < options.length; index++) {
|
|
31
|
+
const option = options[index];
|
|
32
|
+
if (option.value === autoFillValue || option.label === autoFillValue) {
|
|
33
|
+
return [option.value];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const i18nBalDropdown = {
|
|
2
|
+
de: {
|
|
3
|
+
clearable: 'Löschen',
|
|
4
|
+
open: 'Öffnen',
|
|
5
|
+
close: 'Schließen',
|
|
6
|
+
},
|
|
7
|
+
en: {
|
|
8
|
+
clearable: 'clear',
|
|
9
|
+
open: 'Open',
|
|
10
|
+
close: 'Close',
|
|
11
|
+
},
|
|
12
|
+
fr: {
|
|
13
|
+
clearable: 'Effacer',
|
|
14
|
+
open: 'Ouvrir',
|
|
15
|
+
close: 'Fermer',
|
|
16
|
+
},
|
|
17
|
+
it: {
|
|
18
|
+
clearable: 'Cancellare',
|
|
19
|
+
open: 'Apri',
|
|
20
|
+
close: 'Chiudi',
|
|
21
|
+
},
|
|
22
|
+
nl: {
|
|
23
|
+
clearable: 'Wissen',
|
|
24
|
+
open: 'Open',
|
|
25
|
+
close: 'Sluiten',
|
|
26
|
+
},
|
|
27
|
+
es: {
|
|
28
|
+
clearable: 'Limpiar',
|
|
29
|
+
open: 'Abrir',
|
|
30
|
+
close: 'Cerrar',
|
|
31
|
+
},
|
|
32
|
+
pl: {
|
|
33
|
+
clearable: 'Wyczyść',
|
|
34
|
+
open: 'Otwórz',
|
|
35
|
+
close: 'Zamknij',
|
|
36
|
+
},
|
|
37
|
+
pt: {
|
|
38
|
+
clearable: 'Limpar',
|
|
39
|
+
open: 'Abrir',
|
|
40
|
+
close: 'Fechar',
|
|
41
|
+
},
|
|
42
|
+
sv: {
|
|
43
|
+
clearable: 'Rensa',
|
|
44
|
+
open: 'Öppna',
|
|
45
|
+
close: 'Stäng',
|
|
46
|
+
},
|
|
47
|
+
fi: {
|
|
48
|
+
clearable: 'Tyhjennä',
|
|
49
|
+
open: 'Avaa',
|
|
50
|
+
close: 'Sulje',
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export class DropdownEventsUtil {
|
|
2
|
+
connectedCallback(component) {
|
|
3
|
+
this.component = component;
|
|
4
|
+
}
|
|
5
|
+
handleFocus(ev) {
|
|
6
|
+
this.component.hasFocus = true;
|
|
7
|
+
this.component.balFocus.emit(ev);
|
|
8
|
+
}
|
|
9
|
+
handleBlur(ev) {
|
|
10
|
+
this.component.hasFocus = false;
|
|
11
|
+
this.component.balBlur.emit(ev);
|
|
12
|
+
}
|
|
13
|
+
handleClick(ev) {
|
|
14
|
+
if (!this.component.valueUtil.isDisabled()) {
|
|
15
|
+
if (this.component.chips) {
|
|
16
|
+
const targetEl = ev.target;
|
|
17
|
+
const closeEl = targetEl.closest('bal-close');
|
|
18
|
+
if (closeEl) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (this.component.clearable) {
|
|
23
|
+
const targetEl = ev.target;
|
|
24
|
+
const clearEl = targetEl.closest('.bal-dropdown__clear');
|
|
25
|
+
if (clearEl) {
|
|
26
|
+
this.component.valueUtil.updateRawValueBySelection([]);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
this.component.popupUtil.toggleList();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
// @Listen('click', { target: 'document' })
|
|
34
|
+
handleOutsideClick(ev) {
|
|
35
|
+
var _a;
|
|
36
|
+
if (this.component.isExpanded) {
|
|
37
|
+
if (!this.component.el.contains(ev.target)) {
|
|
38
|
+
this.component.isExpanded = false;
|
|
39
|
+
(_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.resetFocus();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function startsWith(text, input) {
|
|
2
|
+
const content = text.trim().toLowerCase();
|
|
3
|
+
const value = input.trim().toLowerCase();
|
|
4
|
+
return content.startsWith(value);
|
|
5
|
+
}
|
|
6
|
+
export function includes(text, input) {
|
|
7
|
+
const content = text.trim().toLowerCase();
|
|
8
|
+
const value = input.trim().toLowerCase();
|
|
9
|
+
return content.includes(value);
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class DropdownFocusUtil {
|
|
2
|
+
connectedCallback(component) {
|
|
3
|
+
this.component = component;
|
|
4
|
+
}
|
|
5
|
+
focusOptionByLabel(key, options = {}) {
|
|
6
|
+
this.component.labelToFocus = (this.component.labelToFocus + key).trim();
|
|
7
|
+
if (this.component.labelToFocus.length > 0) {
|
|
8
|
+
clearTimeout(this.keyHitTimeout);
|
|
9
|
+
this.keyHitTimeout = setTimeout(() => {
|
|
10
|
+
var _a;
|
|
11
|
+
(_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusByLabel(this.component.labelToFocus, options);
|
|
12
|
+
}, 100);
|
|
13
|
+
clearTimeout(this.timeout);
|
|
14
|
+
this.timeout = setTimeout(async () => {
|
|
15
|
+
this.component.labelToFocus = '';
|
|
16
|
+
}, 1000);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { BEM } from "../bem";
|
|
3
|
+
export class DropdownFormSubmitUtil {
|
|
4
|
+
connectedCallback(component) {
|
|
5
|
+
this.component = component;
|
|
6
|
+
this.component.initialValue = this.component.value;
|
|
7
|
+
}
|
|
8
|
+
componentDidRender() {
|
|
9
|
+
if (this.component.selectEl) {
|
|
10
|
+
const options = this.component.selectEl.querySelectorAll('option');
|
|
11
|
+
options.forEach(option => {
|
|
12
|
+
if (this.component.rawValue.includes(option.value)) {
|
|
13
|
+
option.selected = true;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
// @Listen('reset', { capture: true, target: 'document' })
|
|
19
|
+
handle(ev) {
|
|
20
|
+
const formElement = ev.target;
|
|
21
|
+
if (formElement === null || formElement === void 0 ? void 0 : formElement.contains(this.component.el)) {
|
|
22
|
+
if (this.resetHandlerTimer) {
|
|
23
|
+
clearTimeout(this.resetHandlerTimer);
|
|
24
|
+
}
|
|
25
|
+
this.resetHandlerTimer = setTimeout(() => {
|
|
26
|
+
const newRawValue = this.component.valueUtil.parseValueString(this.component.initialValue);
|
|
27
|
+
this.component.valueUtil.updateRawValueBySelection(newRawValue);
|
|
28
|
+
}, 0);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export const DropdownNativeSelect = ({ name, httpFormSubmit, multiple, required, disabled, rawValue, refSelectEl, }) => {
|
|
33
|
+
const block = BEM.block('dropdown');
|
|
34
|
+
return httpFormSubmit ? (h("select", { class: Object.assign({}, block.element('root').element('select').class()), "aria-hidden": "true", name: name, multiple: multiple, required: required, disabled: disabled, tabindex: -1, ref: refSelectEl }, rawValue.map((value) => (h("option", { key: value, value: value, selected: true }, value))))) : ('');
|
|
35
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { BEM } from "../bem";
|
|
3
|
+
import { i18nBalDropdown } from "./dropdown.i18n";
|
|
4
|
+
export const DropdownIcon = ({ icon, language, loading, clearable, invalid, filled, expanded, disabled, }) => {
|
|
5
|
+
const block = BEM.block('dropdown');
|
|
6
|
+
if (loading) {
|
|
7
|
+
return h("bal-spinner", { class: Object.assign({}, block.element('rear').class()), small: true, variation: "circle" });
|
|
8
|
+
}
|
|
9
|
+
else if (clearable && filled && !disabled) {
|
|
10
|
+
return (h("button", { title: i18nBalDropdown[language].clearable, class: Object.assign(Object.assign(Object.assign({}, block.element('rear').class()), block.element('clear').class()), block.element('clear').modifier('invalid').class(invalid)) }, h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: 'close-circle', size: "", color: 'grey' })));
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return (h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: icon, turn: expanded, color: disabled ? 'grey' : invalid ? 'danger' : 'primary' }));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './auto-fill';
|
|
2
|
+
export * from './component';
|
|
3
|
+
export * from './dropdown.i18n';
|
|
4
|
+
export * from './events';
|
|
5
|
+
export * from './filters';
|
|
6
|
+
export * from './focus';
|
|
7
|
+
export * from './form-submit';
|
|
8
|
+
export * from './icon';
|
|
9
|
+
export * from './option';
|
|
10
|
+
export * from './option-list';
|
|
11
|
+
export * from './popup';
|
|
12
|
+
export * from './value';
|
|
13
|
+
export * from './input';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { BEM } from "../bem";
|
|
3
|
+
import { i18nBalDropdown } from "./dropdown.i18n";
|
|
4
|
+
import { ariaBooleanToString } from "../aria";
|
|
5
|
+
export const DropdownInput = ({ name, inputId, httpFormSubmit, ariaForm, rawValue, autocomplete, required, disabled, readonly, placeholder, expanded, invalid, language, inputLabel, inheritedAttributes, refInputEl, onChange, onFocus, onBlur, onKeyDown, }) => {
|
|
6
|
+
const block = BEM.block('dropdown');
|
|
7
|
+
const Input = () => (h("input", Object.assign({ id: ariaForm.controlId || `${inputId}-ctrl`, class: Object.assign({}, block.element('root').element('input').class()), type: "text", size: 1, inputmode: "none", tabindex: "0", name: name, autoComplete: autocomplete, value: rawValue.join(','), required: required, disabled: disabled, readonly: readonly, placeholder: placeholder, title: expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-label": expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-owns": `${inputId}-menu`, "aria-invalid": ariaBooleanToString(invalid), "aria-disabled": ariaBooleanToString(disabled || readonly), "aria-labelledby": ariaForm.labelId, "aria-describedby": ariaForm.messageId, "aria-haspopup": 'listbox', "data-native": true, "data-label": inputLabel, "data-value": rawValue.join(','), ref: el => refInputEl(el), onChange: ev => onChange(ev), onFocus: ev => onFocus(ev), onBlur: ev => onBlur(ev), onKeyDown: ev => onKeyDown(ev) }, inheritedAttributes)));
|
|
8
|
+
if (httpFormSubmit) {
|
|
9
|
+
return h(Input, null);
|
|
10
|
+
}
|
|
11
|
+
return (h("form", { novalidate: true }, h(Input, null)));
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { BEM } from "../bem";
|
|
3
|
+
export const DropdownOptionList = ({ inputId, isExpanded, rawOptions, isDisabled, hasPropOptions, required, filter, multiple, contentHeight, refPanelEl, refListEl, }) => {
|
|
4
|
+
const block = BEM.block('dropdown');
|
|
5
|
+
return (h("div", { id: `${inputId}-menu`, class: Object.assign(Object.assign({}, block.element('list').class()), block.element('list').modifier('expanded').class(isExpanded)), ref: refPanelEl }, h("bal-option-list", { multiple: multiple, disabled: isDisabled, filter: filter, required: required, contentHeight: contentHeight, ref: refListEl }, h("slot", null), hasPropOptions
|
|
6
|
+
? rawOptions.map(option => (h("bal-option", { key: option.value, value: option.value, label: option.label, disabled: option.disabled, multiline: option.multiline, invalid: option.invalid, hidden: option.hidden, selected: option.selected, focused: option.focused }, option.label)))
|
|
7
|
+
: '')));
|
|
8
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const newBalOption = (option, options) => {
|
|
2
|
+
const data = Object.assign(Object.assign({}, option), { disabled: false, invalid: false, selected: false, focused: false, hidden: false, multiline: false });
|
|
3
|
+
if (options) {
|
|
4
|
+
data.disabled = options.disabled === undefined ? data.disabled : options.disabled;
|
|
5
|
+
data.invalid = options.invalid === undefined ? data.invalid : options.invalid;
|
|
6
|
+
data.selected = options.selected === undefined ? data.selected : options.selected;
|
|
7
|
+
data.focused = options.focused === undefined ? data.focused : options.focused;
|
|
8
|
+
data.hidden = options.hidden === undefined ? data.hidden : options.hidden;
|
|
9
|
+
data.multiline = options.multiline === undefined ? data.multiline : options.multiline;
|
|
10
|
+
}
|
|
11
|
+
return data;
|
|
12
|
+
};
|
|
13
|
+
export const mapOption = (option) => {
|
|
14
|
+
return newBalOption({
|
|
15
|
+
value: option.value,
|
|
16
|
+
label: option.label,
|
|
17
|
+
}, option);
|
|
18
|
+
};
|
|
19
|
+
export class DropdownOptionUtil {
|
|
20
|
+
connectedCallback(component) {
|
|
21
|
+
this.component = component;
|
|
22
|
+
this.optionChanged();
|
|
23
|
+
}
|
|
24
|
+
async componentWillRender() {
|
|
25
|
+
if (this.component.listEl) {
|
|
26
|
+
this.component.nativeOptions = await this.component.listEl.getValues();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
hasPropOptions() {
|
|
30
|
+
return this.component.options && this.component.options.length > 0;
|
|
31
|
+
}
|
|
32
|
+
async optionChanged() {
|
|
33
|
+
this.component.rawOptions = this.component.options.map(mapOption);
|
|
34
|
+
await this.component.valueUtil.updateInputContent();
|
|
35
|
+
}
|
|
36
|
+
async listenToOptionChange(_ev) {
|
|
37
|
+
var _a;
|
|
38
|
+
const newSelectedValues = (await ((_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.getSelectedValues())) || [];
|
|
39
|
+
this.component.valueUtil.updateRawValueBySelection(newSelectedValues);
|
|
40
|
+
if (!this.component.multiple) {
|
|
41
|
+
this.component.popupUtil.collapseList();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { autoUpdate, computePosition, flip, shift } from "@floating-ui/dom";
|
|
2
|
+
export class DropdownPopupUtil {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.updatePanelPosition = (referenceEl, floatingEl) => () => {
|
|
5
|
+
computePosition(referenceEl, floatingEl, {
|
|
6
|
+
placement: 'bottom-start',
|
|
7
|
+
middleware: [flip(), shift()],
|
|
8
|
+
}).then(({ x, y }) => {
|
|
9
|
+
Object.assign(floatingEl.style, {
|
|
10
|
+
left: `${x}px`,
|
|
11
|
+
top: `${y}px`,
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
connectedCallback(component) {
|
|
17
|
+
this.component = component;
|
|
18
|
+
}
|
|
19
|
+
toggleList() {
|
|
20
|
+
if (!this.component.valueUtil.isDisabled()) {
|
|
21
|
+
if (this.component.isExpanded) {
|
|
22
|
+
this.collapseList();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this.expandList();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
expandList() {
|
|
30
|
+
var _a;
|
|
31
|
+
if (this.component.panelEl) {
|
|
32
|
+
this.component.panelCleanup = autoUpdate(this.component.el, this.component.panelEl, this.updatePanelPosition(this.component.el, this.component.panelEl));
|
|
33
|
+
}
|
|
34
|
+
this.component.isExpanded = true;
|
|
35
|
+
(_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusFirst();
|
|
36
|
+
}
|
|
37
|
+
collapseList() {
|
|
38
|
+
var _a;
|
|
39
|
+
this.component.isExpanded = false;
|
|
40
|
+
(_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.resetFocus();
|
|
41
|
+
if (this.component.panelCleanup) {
|
|
42
|
+
this.component.panelCleanup();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|