@baloise/ds-core 16.0.3 → 16.1.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/components/all.d.ts +234 -0
- package/components/all.js +350 -0
- package/components/aria.js +3 -0
- package/components/bal-accordion-details.js +4 -4
- 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-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 +9 -1
- 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-013b4c72.system.js +1 -0
- 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-720c90ea90.system.entry.js → p-0fed7a5f26.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-10b8686d91.entry.js +1 -0
- 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-762f45ff6f.entry.js → p-135c5759c5.entry.js} +1 -1
- package/dist/baloise-design-system/{p-62770d5d.system.js → p-14ae0709.system.js} +1 -1
- 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-18e2e391e0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1de6b20b1c.system.entry.js +1 -0
- 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-f62222a85d.entry.js → p-25da216e4f.entry.js} +1 -1
- package/dist/baloise-design-system/p-25e0d82e89.system.entry.js +1 -0
- 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-8444cfcbed.system.entry.js → p-3128128969.system.entry.js} +1 -1
- 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-12786937.js → p-3f1c49d0.js} +1 -1
- package/dist/baloise-design-system/{p-33fca72859.entry.js → p-4aba4c66ee.entry.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-5b571a9fb1.entry.js +1 -0
- package/dist/baloise-design-system/{p-671a986aff.entry.js → p-60e94f8144.entry.js} +1 -1
- package/dist/baloise-design-system/{p-06e959a11a.entry.js → p-6164f99bb8.entry.js} +1 -1
- package/dist/baloise-design-system/p-62ab1f0ae2.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6b80dee13f.system.entry.js → p-62b792a34b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8998eeb2a7.system.entry.js → p-74f4b9818b.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-80b45dd4d6.system.entry.js +1 -0
- 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-a5568e05fb.system.entry.js → p-8c209ac52b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8f77c423ad.entry.js +1 -0
- package/dist/baloise-design-system/{p-32bc2b926a.entry.js → p-8fe94b9e21.entry.js} +1 -1
- 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-9a0640d065.entry.js +1 -0
- 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-a19d1e1d.js +1 -0
- package/dist/baloise-design-system/p-a7e5ee75e2.entry.js +1 -0
- package/dist/baloise-design-system/{p-9cc5ae9e5c.entry.js → p-a8022ee701.entry.js} +1 -1
- package/dist/baloise-design-system/p-a97cbb7dda.entry.js +1 -0
- package/dist/baloise-design-system/p-acb5cea0.system.js +1 -0
- package/dist/baloise-design-system/p-ae28b86fe5.entry.js +1 -0
- package/dist/baloise-design-system/p-b779742f50.entry.js +1 -0
- package/dist/baloise-design-system/{p-cee3cd08.js → p-b8d99064.js} +1 -1
- 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-9e7610a20f.system.entry.js → p-bb3914c87a.system.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-bcca1ed3.system.js +1 -0
- package/dist/baloise-design-system/{p-1cdfb98b54.entry.js → p-bcebf41b74.entry.js} +1 -1
- package/dist/baloise-design-system/p-bd5de78b2c.entry.js +1 -0
- package/dist/baloise-design-system/p-c304d5fa9c.entry.js +1 -0
- package/dist/baloise-design-system/{p-8177dec3.system.js → p-cc61fac8.system.js} +1 -1
- package/dist/baloise-design-system/{p-ac825842e4.system.entry.js → p-cd8e72d87f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a9300668b4.system.entry.js → p-d16557d133.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d7a758b3.js +1 -0
- package/dist/baloise-design-system/{p-33cd610840.system.entry.js → p-d919753ed0.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-ddf9b2a289.entry.js +1 -0
- 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-e78a6409.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-b34e0daa6e.system.entry.js → p-f0b43f1452.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-f12abda2db.entry.js +1 -0
- package/dist/baloise-design-system/{p-31d9c875c0.system.entry.js → p-f1b95d78af.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-f56fb1a197.entry.js +1 -0
- package/dist/baloise-design-system/{p-681d41fc97.entry.js → p-f8974d743d.entry.js} +1 -1
- package/dist/baloise-design-system/p-f8a98657a1.entry.js +1 -0
- package/dist/cjs/{app-globals-d6bc7866.js → app-globals-ae3a8623.js} +1 -1
- 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-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 +4 -4
- package/dist/cjs/{breakpoints.decorator-7f888011.js → breakpoints.decorator-47fd6060.js} +1 -1
- package/dist/cjs/{breakpoints.subject-28c980cd.js → breakpoints.subject-66093c8f.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/index.cjs.js +7 -5
- package/dist/cjs/{initialize-e38e7028.js → initialize-2a19d091.js} +9 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/option-c33cf2b8.js +49 -0
- package/dist/cjs/{tokens.esm-89d0f18d.js → tokens.esm-bb0ef2db.js} +1 -1
- package/dist/collection/collection-manifest.json +14 -0
- 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/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-89691d80.js → app-globals-b0dd0fc4.js} +1 -1
- 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-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 +4 -4
- package/dist/esm/{breakpoints.decorator-52979d29.js → breakpoints.decorator-021fbaf0.js} +1 -1
- package/dist/esm/{breakpoints.subject-64327a3b.js → breakpoints.subject-ef464f89.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/{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 +4 -4
- package/dist/esm/option-37cb0282.js +46 -0
- package/dist/esm/{tokens.esm-12daa3af.js → tokens.esm-aab9bd61.js} +1 -1
- package/dist/esm-es5/app-globals-b0dd0fc4.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-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-021fbaf0.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-64327a3b.js → breakpoints.subject-ef464f89.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/{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.d.ts +451 -3
- 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-cf6ccb4dd1.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/esm-es5/app-globals-89691d80.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-52979d29.js +0 -1
- /package/dist/baloise-design-system/{p-61eda028.system.js → p-03c136e2.system.js} +0 -0
- /package/dist/baloise-design-system/{p-979368af.js → p-7b9c33ba.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-12daa3af.js → tokens.esm-aab9bd61.js} +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { ComponentInterface, Event, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { LogInstance, Loggable } from '../../utils/log';
|
|
3
|
+
import { Attributes } from '../../utils/attributes';
|
|
4
|
+
import { BalOption, DropdownEventsUtil, DropdownFormSubmit, DropdownFormSubmitUtil, DropdownOptionUtil, DropdownPopupUtil, DropdownValueUtil, DropdownFocus, DropdownFocusUtil, DropdownAutoFillUtil } from '../../utils/dropdown';
|
|
5
|
+
import { BalConfigObserver, BalConfigState, BalLanguage, BalRegion } from '../../utils/config';
|
|
6
|
+
import { BalAriaForm, BalAriaFormLinking } from '../../utils/form';
|
|
7
|
+
export declare class Dropdown implements ComponentInterface, Loggable, BalConfigObserver, BalAriaFormLinking, DropdownFormSubmit, DropdownFocus {
|
|
8
|
+
el: HTMLElement;
|
|
9
|
+
panelEl: HTMLDivElement | undefined;
|
|
10
|
+
listEl: HTMLBalOptionListElement | undefined;
|
|
11
|
+
nativeEl: HTMLInputElement | undefined;
|
|
12
|
+
selectEl: HTMLSelectElement | undefined;
|
|
13
|
+
inputId: string;
|
|
14
|
+
inheritedAttributes: Attributes;
|
|
15
|
+
initialValue?: string | string[];
|
|
16
|
+
nativeOptions: string[];
|
|
17
|
+
rawOptions: BalOption[];
|
|
18
|
+
choices: BalOption[];
|
|
19
|
+
rawValue: string[];
|
|
20
|
+
hasFocus: boolean;
|
|
21
|
+
isExpanded: boolean;
|
|
22
|
+
isAutoFilled: boolean;
|
|
23
|
+
inputLabel: string;
|
|
24
|
+
ariaForm: BalAriaForm;
|
|
25
|
+
language: BalLanguage;
|
|
26
|
+
region: BalRegion;
|
|
27
|
+
httpFormSubmit: boolean;
|
|
28
|
+
labelToFocus: string;
|
|
29
|
+
valueUtil: DropdownValueUtil;
|
|
30
|
+
eventsUtil: DropdownEventsUtil;
|
|
31
|
+
popupUtil: DropdownPopupUtil;
|
|
32
|
+
optionUtil: DropdownOptionUtil;
|
|
33
|
+
formSubmitUtil: DropdownFormSubmitUtil;
|
|
34
|
+
focusUtil: DropdownFocusUtil;
|
|
35
|
+
autoFillUtil: DropdownAutoFillUtil;
|
|
36
|
+
log: LogInstance;
|
|
37
|
+
createLogger(log: LogInstance): void;
|
|
38
|
+
/**
|
|
39
|
+
* PUBLIC PROPERTY API
|
|
40
|
+
* ------------------------------------------------------
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether the value of the control can be automatically completed by the browser.
|
|
44
|
+
*/
|
|
45
|
+
autocomplete: BalProps.BalInputAutocomplete;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the control, which is submitted with the form data.
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the placeholder of the component. Only shown when the value is empty
|
|
52
|
+
*/
|
|
53
|
+
placeholder: string;
|
|
54
|
+
/**
|
|
55
|
+
* If `true` there will be on trigger icon visible
|
|
56
|
+
*/
|
|
57
|
+
icon: string;
|
|
58
|
+
/**
|
|
59
|
+
* If `true`, the user cannot interact with the option.
|
|
60
|
+
*/
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* If `true` the element can not mutated, meaning the user can not edit the control.
|
|
64
|
+
*/
|
|
65
|
+
readonly: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* If `true`, the user can select multiple options.
|
|
68
|
+
*/
|
|
69
|
+
multiple: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* If `true`, the selected options are shown as chips
|
|
72
|
+
*/
|
|
73
|
+
chips: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* If `true`, a cross at the end is visible to clear the selection
|
|
76
|
+
*/
|
|
77
|
+
clearable: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* If `true`, the component will be shown as invalid
|
|
80
|
+
*/
|
|
81
|
+
invalid: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
84
|
+
*/
|
|
85
|
+
required: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Defines if the select is in a loading state.
|
|
88
|
+
*/
|
|
89
|
+
loading: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Defines the filter logic of the list
|
|
92
|
+
*/
|
|
93
|
+
filter: BalProps.BalOptionListFilter;
|
|
94
|
+
/**
|
|
95
|
+
* Defines the max height of the list element
|
|
96
|
+
*/
|
|
97
|
+
contentHeight: number;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
* Set this to `true` when the component is placed on a dark background.
|
|
101
|
+
*/
|
|
102
|
+
inverted: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Steps can be passed as a property or through HTML markup.
|
|
105
|
+
*/
|
|
106
|
+
options: BalOption[];
|
|
107
|
+
protected optionChanged(): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* The value of the selected options.
|
|
110
|
+
*/
|
|
111
|
+
value?: string | string[];
|
|
112
|
+
valueChanged(newValue: string | string[] | undefined, oldValue: string | string[] | undefined): void;
|
|
113
|
+
/**
|
|
114
|
+
* Emitted when a option got selected.
|
|
115
|
+
*/
|
|
116
|
+
balChange: EventEmitter<BalEvents.BalDropdownChangeDetail>;
|
|
117
|
+
/**
|
|
118
|
+
* Emitted when the input has focus.
|
|
119
|
+
*/
|
|
120
|
+
balFocus: EventEmitter<BalEvents.BalDropdownFocusDetail>;
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when the input loses focus.
|
|
123
|
+
*/
|
|
124
|
+
balBlur: EventEmitter<BalEvents.BalDropdownBlurDetail>;
|
|
125
|
+
/**
|
|
126
|
+
* LIFECYCLE
|
|
127
|
+
* ------------------------------------------------------
|
|
128
|
+
*/
|
|
129
|
+
connectedCallback(): void;
|
|
130
|
+
componentWillRender(): Promise<void>;
|
|
131
|
+
componentDidRender(): void;
|
|
132
|
+
componentDidLoad(): void;
|
|
133
|
+
/**
|
|
134
|
+
* LISTENERS
|
|
135
|
+
* ------------------------------------------------------
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* @internal define config for the component
|
|
139
|
+
*/
|
|
140
|
+
configChanged(state: BalConfigState): Promise<void>;
|
|
141
|
+
listenToOptionChange(ev: BalEvents.BalOptionChange): Promise<void>;
|
|
142
|
+
listenOnClickOutside(ev: UIEvent): void;
|
|
143
|
+
resetHandler(ev: UIEvent): void;
|
|
144
|
+
/**
|
|
145
|
+
* PUBLIC METHODS
|
|
146
|
+
* ------------------------------------------------------
|
|
147
|
+
*/
|
|
148
|
+
/**
|
|
149
|
+
* Sets the focus on the input element
|
|
150
|
+
*/
|
|
151
|
+
setFocus(): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Returns the value of the component
|
|
154
|
+
*/
|
|
155
|
+
getValue(): Promise<string[]>;
|
|
156
|
+
/**
|
|
157
|
+
* Sets the value to `[]`, the input value to ´''´ and the focus index to ´0´.
|
|
158
|
+
*/
|
|
159
|
+
clear(): Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Opens the popup with option list
|
|
162
|
+
*/
|
|
163
|
+
open(): Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* Closes the popup with option list
|
|
166
|
+
*/
|
|
167
|
+
close(): Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* Select option by passed value
|
|
170
|
+
*/
|
|
171
|
+
select(newValue: string | string[]): Promise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
setAriaForm(ariaForm: BalAriaForm): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* EVENT BINDING
|
|
178
|
+
* ------------------------------------------------------
|
|
179
|
+
*/
|
|
180
|
+
handleAutoFill: (ev: Event) => Promise<void>;
|
|
181
|
+
handleKeyDown: (ev: KeyboardEvent) => void;
|
|
182
|
+
/**
|
|
183
|
+
* RENDER
|
|
184
|
+
* ------------------------------------------------------
|
|
185
|
+
*/
|
|
186
|
+
render(): any;
|
|
187
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="@baloise/ds-core" />
|
|
2
|
+
declare namespace BalProps { }
|
|
3
|
+
declare namespace BalEvents {
|
|
4
|
+
interface BalDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
5
|
+
detail: T;
|
|
6
|
+
target: HTMLBalDropdownElement;
|
|
7
|
+
}
|
|
8
|
+
type BalDropdownChangeDetail = string | string[];
|
|
9
|
+
type BalDropdownChange = BalDropdownCustomEvent<BalDropdownChangeDetail>;
|
|
10
|
+
type BalDropdownBlurDetail = FocusEvent;
|
|
11
|
+
type BalDropdownBlur = BalDropdownCustomEvent<BalDropdownBlurDetail>;
|
|
12
|
+
type BalDropdownFocusDetail = FocusEvent;
|
|
13
|
+
type BalDropdownFocus = BalDropdownCustomEvent<BalDropdownFocusDetail>;
|
|
14
|
+
}
|
|
@@ -50,6 +50,7 @@ export declare class Field implements ComponentInterface, BalMutationObserver {
|
|
|
50
50
|
componentWillLoad(): void;
|
|
51
51
|
componentDidLoad(): Promise<void>;
|
|
52
52
|
private isDirectChild;
|
|
53
|
+
private isVisible;
|
|
53
54
|
private findDirectChild;
|
|
54
55
|
private findDirectChildren;
|
|
55
56
|
syncAriaAttributes(): Promise<void>;
|
|
@@ -3,7 +3,7 @@ import { BalConfigObserver, BalConfigState, BalLanguage, BalRegion } from '../..
|
|
|
3
3
|
import { Loggable, LogInstance } from '../../utils/log';
|
|
4
4
|
import { BalElementStateInfo } from '../../utils/element-states';
|
|
5
5
|
import { BalAriaFormLinking, BalAriaForm } from '../../utils/form';
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class Label implements ComponentInterface, Loggable, BalConfigObserver, BalElementStateInfo, BalAriaFormLinking {
|
|
7
7
|
el: HTMLElement;
|
|
8
8
|
private inputId;
|
|
9
9
|
language: BalLanguage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../../stencil-public-runtime';
|
|
2
2
|
import { LogInstance, Loggable } from '../../../utils/log';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NavLink implements ComponentInterface, Loggable {
|
|
4
4
|
log: LogInstance;
|
|
5
5
|
createLogger(log: LogInstance): void;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../../stencil-public-runtime';
|
|
2
2
|
import { LogInstance, Loggable } from '../../../utils/log';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NavLinkGrid implements ComponentInterface, Loggable {
|
|
4
4
|
log: LogInstance;
|
|
5
5
|
createLogger(log: LogInstance): void;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../../stencil-public-runtime';
|
|
2
2
|
import { LogInstance, Loggable } from '../../../utils/log';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NavLinkGridCol implements ComponentInterface, Loggable {
|
|
4
4
|
log: LogInstance;
|
|
5
5
|
createLogger(log: LogInstance): void;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../../stencil-public-runtime';
|
|
2
2
|
import { LogInstance, Loggable } from '../../../utils/log';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NavLinkGroup implements ComponentInterface, Loggable {
|
|
4
4
|
log: LogInstance;
|
|
5
5
|
createLogger(log: LogInstance): void;
|
|
6
6
|
/**
|
|
@@ -8,7 +8,7 @@ import { NavLinkItemObserver } from './bal-nav.types';
|
|
|
8
8
|
import { BalConfigObserver, BalConfigState, BalLanguage, BalRegion } from '../../utils/config';
|
|
9
9
|
import { NavMenuLinkItem } from './models/bal-nav-menu-link-item';
|
|
10
10
|
import { NavLinkItem } from './models/bal-nav-link-item';
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class Nav implements ComponentInterface, Loggable, BalBreakpointObserver, BalMutationObserver, NavLinkItemObserver, BalConfigObserver {
|
|
12
12
|
private navId;
|
|
13
13
|
private bodyScrollHandler;
|
|
14
14
|
private menuBarEl;
|
|
@@ -6,6 +6,7 @@ import { Loggable, LogInstance } from '../../utils/log';
|
|
|
6
6
|
export declare class NumberInput implements ComponentInterface, BalConfigObserver, FormInput<number | undefined>, BalAriaFormLinking, Loggable {
|
|
7
7
|
private inputId;
|
|
8
8
|
private inheritedAttributes;
|
|
9
|
+
private selectTimeout?;
|
|
9
10
|
lastValue: string;
|
|
10
11
|
nativeInput?: HTMLInputElement;
|
|
11
12
|
inputValue?: number;
|
|
@@ -7,10 +7,12 @@ export declare function toUserFormattedNumber(value: string, decimalPoints?: num
|
|
|
7
7
|
export type ValidateKeyDownOptions = {
|
|
8
8
|
decimal: number;
|
|
9
9
|
key: string;
|
|
10
|
+
ctrlKey: boolean;
|
|
11
|
+
metaKey: boolean;
|
|
10
12
|
newValue: string;
|
|
11
13
|
oldValue: string;
|
|
12
14
|
selectionStart: number | null;
|
|
13
15
|
selectionEnd: number | null;
|
|
14
16
|
};
|
|
15
17
|
export declare const countDecimalSeparators: (value: string) => number;
|
|
16
|
-
export declare function validateKeyDown({ key, selectionStart, selectionEnd, newValue, decimal, }: ValidateKeyDownOptions): boolean;
|
|
18
|
+
export declare function validateKeyDown({ key, ctrlKey, metaKey, selectionStart, selectionEnd, newValue, decimal, }: ValidateKeyDownOptions): boolean;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Loggable, LogInstance } from '../../utils/log';
|
|
3
|
+
import { BalElementStateInfo, BalElementStateObserver } from '../../utils/element-states';
|
|
4
|
+
import { BalOption } from '../../utils/dropdown';
|
|
5
|
+
export declare class Option implements ComponentInterface, Loggable, BalElementStateObserver, BalOption {
|
|
6
|
+
private inputId;
|
|
7
|
+
el: HTMLElement;
|
|
8
|
+
log: LogInstance;
|
|
9
|
+
createLogger(log: LogInstance): void;
|
|
10
|
+
checkbox: boolean;
|
|
11
|
+
interactionState: BalElementStateInfo;
|
|
12
|
+
/**
|
|
13
|
+
* PUBLIC PROPERTY API
|
|
14
|
+
* ------------------------------------------------------
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Label will be shown in the input element when it got selected
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* The value of the select option. This value will be returned by the parent `<bal-select>` element.
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* If `true`, the user cannot interact with the option.
|
|
26
|
+
*/
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the option can present in more than one line.
|
|
30
|
+
*/
|
|
31
|
+
multiline: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If `true`, the option is shown in red.
|
|
34
|
+
*/
|
|
35
|
+
invalid: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, the option is selected.
|
|
38
|
+
*/
|
|
39
|
+
selected: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If `true`, the option is focused.
|
|
42
|
+
*/
|
|
43
|
+
focused: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If `true`, the option is hidden.
|
|
46
|
+
*/
|
|
47
|
+
hidden: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Emitted when the option gets selected or unselected
|
|
50
|
+
*/
|
|
51
|
+
balOptionChange: EventEmitter<BalEvents.BalOptionChangeDetail>;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* Emitted when a option gets focused.
|
|
55
|
+
*/
|
|
56
|
+
balOptionFocus: EventEmitter<BalEvents.BalOptionFocusDetail>;
|
|
57
|
+
/**
|
|
58
|
+
* LIFECYCLE
|
|
59
|
+
* ------------------------------------------------------
|
|
60
|
+
*/
|
|
61
|
+
componentWillRender(): void | Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* LISTENERS
|
|
64
|
+
* ------------------------------------------------------
|
|
65
|
+
*/
|
|
66
|
+
listenToMouseEnter(): void;
|
|
67
|
+
elementStateListener(info: BalElementStateInfo): void;
|
|
68
|
+
/**
|
|
69
|
+
* PUBLIC METHODS
|
|
70
|
+
* ------------------------------------------------------
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Selects or deselects the option and informs other components
|
|
74
|
+
*/
|
|
75
|
+
select(selected?: boolean): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* PRIVATE METHODS
|
|
78
|
+
* ------------------------------------------------------
|
|
79
|
+
*/
|
|
80
|
+
private get interactionChildElements();
|
|
81
|
+
/**
|
|
82
|
+
* EVENT BINDING
|
|
83
|
+
* ------------------------------------------------------
|
|
84
|
+
*/
|
|
85
|
+
private onClick;
|
|
86
|
+
/**
|
|
87
|
+
* RENDER
|
|
88
|
+
* ------------------------------------------------------
|
|
89
|
+
*/
|
|
90
|
+
render(): any;
|
|
91
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="@baloise/ds-core" />
|
|
2
|
+
declare namespace BalProps { }
|
|
3
|
+
declare namespace BalEvents {
|
|
4
|
+
interface BalOptionCustomEvent<T> extends CustomEvent<T> {
|
|
5
|
+
detail: T;
|
|
6
|
+
target: HTMLBalOptionElement;
|
|
7
|
+
}
|
|
8
|
+
interface BalOption {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
}
|
|
13
|
+
type BalOptionFocusDetail = BalOption;
|
|
14
|
+
type BalOptionFocus = BalOptionCustomEvent<BalOptionFocusDetail>;
|
|
15
|
+
type BalOptionBlurDetail = FocusEvent;
|
|
16
|
+
type BalOptionBlur = BalOptionCustomEvent<BalOptionBlurDetail>;
|
|
17
|
+
type BalOptionChangeDetail = BalOption;
|
|
18
|
+
type BalOptionChange = BalOptionCustomEvent<BalOptionChangeDetail>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import { Loggable, LogInstance } from '../../utils/log';
|
|
3
|
+
import { BalAriaForm } from '../../utils/form';
|
|
4
|
+
import { BalOption } from '../../utils/dropdown';
|
|
5
|
+
export declare class OptionList implements ComponentInterface, Loggable {
|
|
6
|
+
private inputId;
|
|
7
|
+
private inheritAttributes;
|
|
8
|
+
private focusRaf;
|
|
9
|
+
el: HTMLElement;
|
|
10
|
+
log: LogInstance;
|
|
11
|
+
ariaForm: BalAriaForm;
|
|
12
|
+
createLogger(log: LogInstance): void;
|
|
13
|
+
/**
|
|
14
|
+
* PUBLIC PROPERTY API
|
|
15
|
+
* ------------------------------------------------------
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* If `true` the list supports multiple selections
|
|
19
|
+
*/
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, the user cannot interact with the option.
|
|
23
|
+
*/
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
27
|
+
*/
|
|
28
|
+
required: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the focused option with his index value
|
|
31
|
+
*/
|
|
32
|
+
focusIndex: number;
|
|
33
|
+
/**
|
|
34
|
+
* Id of the label element to describe this option list
|
|
35
|
+
*/
|
|
36
|
+
labelledby?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Defines the filter logic of the list
|
|
39
|
+
*/
|
|
40
|
+
filter: BalProps.BalOptionListFilter;
|
|
41
|
+
/**
|
|
42
|
+
* Defines the max height of the list element
|
|
43
|
+
*/
|
|
44
|
+
contentHeight?: number;
|
|
45
|
+
contentHeightChanged(value?: number): void;
|
|
46
|
+
/**
|
|
47
|
+
* LIFECYCLE
|
|
48
|
+
* ------------------------------------------------------
|
|
49
|
+
*/
|
|
50
|
+
componentDidLoad(): void;
|
|
51
|
+
componentWillRender(): void;
|
|
52
|
+
/**
|
|
53
|
+
* LISTENERS
|
|
54
|
+
* ------------------------------------------------------
|
|
55
|
+
*/
|
|
56
|
+
listenToMouseEnter(ev: BalEvents.BalOptionFocus): void;
|
|
57
|
+
listenToOptionChange({ detail }: BalEvents.BalOptionFocus): void;
|
|
58
|
+
/**
|
|
59
|
+
* PUBLIC METHODS
|
|
60
|
+
* ------------------------------------------------------
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* Focus the first visible option in the list
|
|
64
|
+
* @returns focusIndex
|
|
65
|
+
*/
|
|
66
|
+
focusFirst(): Promise<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Focus the last visible option in the list
|
|
69
|
+
* @returns focusIndex
|
|
70
|
+
*/
|
|
71
|
+
focusLast(): Promise<number>;
|
|
72
|
+
/**
|
|
73
|
+
* Focus the next visible option in the list
|
|
74
|
+
* @returns focusIndex
|
|
75
|
+
*/
|
|
76
|
+
focusNext(): Promise<number>;
|
|
77
|
+
/**
|
|
78
|
+
* Focus the previous visible option in the list
|
|
79
|
+
* @returns focusIndex
|
|
80
|
+
*/
|
|
81
|
+
focusPrevious(): Promise<number>;
|
|
82
|
+
/**
|
|
83
|
+
* Focus the option with the label that starts with the search property
|
|
84
|
+
* @returns focusIndex
|
|
85
|
+
*/
|
|
86
|
+
focusByLabel(search: string, config: Partial<{
|
|
87
|
+
select: boolean;
|
|
88
|
+
}>): Promise<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Filter the options by the given filter property and hides options
|
|
91
|
+
* @returns focusIndex
|
|
92
|
+
*/
|
|
93
|
+
filterByContent(search: string): Promise<number>;
|
|
94
|
+
/**
|
|
95
|
+
* Shows or hides all options
|
|
96
|
+
*/
|
|
97
|
+
resetHidden(hidden?: boolean): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Selects or deselects all options
|
|
100
|
+
*/
|
|
101
|
+
resetSelected(selected?: boolean): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Updates options
|
|
104
|
+
*/
|
|
105
|
+
updateSelected(values?: string[]): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Resets the focus index to pristine and scrolls to the top of the list
|
|
108
|
+
*/
|
|
109
|
+
resetFocus(): Promise<number>;
|
|
110
|
+
/**
|
|
111
|
+
* Returns a list of option values
|
|
112
|
+
*/
|
|
113
|
+
getSelectedValues(): Promise<string[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Returns a list of option labels
|
|
116
|
+
*/
|
|
117
|
+
getSelectedOptions(values?: string[]): Promise<BalOption[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Returns a list of options
|
|
120
|
+
*/
|
|
121
|
+
getValues(): Promise<string[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Returns a list of options
|
|
124
|
+
*/
|
|
125
|
+
getLabels(): Promise<string[]>;
|
|
126
|
+
/**
|
|
127
|
+
* Returns a list of accessible options
|
|
128
|
+
*/
|
|
129
|
+
getOptions(): Promise<BalOption[]>;
|
|
130
|
+
/**
|
|
131
|
+
* Selects the option with the current focus
|
|
132
|
+
*/
|
|
133
|
+
selectByFocus(): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
setAriaForm(ariaForm: BalAriaForm): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* GETTERS
|
|
140
|
+
* ------------------------------------------------------
|
|
141
|
+
*/
|
|
142
|
+
private get options();
|
|
143
|
+
private get allOptions();
|
|
144
|
+
/**
|
|
145
|
+
* PRIVATE METHODS
|
|
146
|
+
* ------------------------------------------------------
|
|
147
|
+
*/
|
|
148
|
+
private filterOptions;
|
|
149
|
+
private isOptionVisible;
|
|
150
|
+
private updateScrollTopPosition;
|
|
151
|
+
private updateScrollBottomPosition;
|
|
152
|
+
private getScrollTopForTopPosition;
|
|
153
|
+
private getScrollTopForBottomPosition;
|
|
154
|
+
private scrollTo;
|
|
155
|
+
private updateFocus;
|
|
156
|
+
private getOptionIndex;
|
|
157
|
+
private getFirstOptionIndex;
|
|
158
|
+
private getNextOptionIndex;
|
|
159
|
+
private getPreviousOptionIndex;
|
|
160
|
+
private getLastOptionIndex;
|
|
161
|
+
private getOptionIndexByLabel;
|
|
162
|
+
private getLength;
|
|
163
|
+
/**
|
|
164
|
+
* RENDER
|
|
165
|
+
* ------------------------------------------------------
|
|
166
|
+
*/
|
|
167
|
+
render(): any;
|
|
168
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, EventEmitter } from '../../../stencil-public-runtime';
|
|
2
2
|
import { Loggable, LogInstance } from '../../../utils/log';
|
|
3
3
|
import { BalElementStateInfo, BalElementStateObserver } from '../../../utils/element-states';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class RadioButton implements ComponentInterface, Loggable, BalElementStateObserver {
|
|
5
5
|
el: HTMLElement;
|
|
6
6
|
private keyboardMode;
|
|
7
7
|
log: LogInstance;
|
|
@@ -177,7 +177,7 @@ export declare class Select implements ComponentInterface, Loggable, BalAriaForm
|
|
|
177
177
|
*/
|
|
178
178
|
setFocus(): Promise<void>;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Returns the value of the component
|
|
181
181
|
*/
|
|
182
182
|
getValue(): Promise<string[]>;
|
|
183
183
|
/**
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
2
|
import { Loggable, LogInstance } from '../../utils/log';
|
|
3
|
-
|
|
3
|
+
import { BalConfigObserver, BalConfigState } from '../../utils/config';
|
|
4
|
+
export declare class Spinner implements ComponentInterface, Loggable, BalConfigObserver {
|
|
4
5
|
private animationItem;
|
|
5
6
|
private animationFunction?;
|
|
6
7
|
private currentRaf;
|
|
7
8
|
log: LogInstance;
|
|
9
|
+
animated: boolean;
|
|
8
10
|
createLogger(log: LogInstance): void;
|
|
9
11
|
el: HTMLElement;
|
|
10
12
|
/**
|
|
@@ -23,17 +25,27 @@ export declare class Spinner implements ComponentInterface, Loggable {
|
|
|
23
25
|
/**
|
|
24
26
|
* Defines the color of the spinner.
|
|
25
27
|
*/
|
|
26
|
-
color:
|
|
28
|
+
color: BalProps.BalSpinnerColor;
|
|
27
29
|
/**
|
|
28
30
|
* If `true` the component is smaller
|
|
29
31
|
*/
|
|
30
32
|
small: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Defines the look of the spinner
|
|
35
|
+
*/
|
|
36
|
+
variation: BalProps.BalSpinnerVariation;
|
|
37
|
+
variationWatcher(newValue: BalProps.BalSpinnerVariation, oldValue: BalProps.BalSpinnerVariation): void;
|
|
31
38
|
/**
|
|
32
39
|
* LIFECYCLE
|
|
33
40
|
* ------------------------------------------------------
|
|
34
41
|
*/
|
|
35
42
|
componentDidLoad(): void;
|
|
36
43
|
disconnectedCallback(): void;
|
|
44
|
+
/**
|
|
45
|
+
* LISTENERS
|
|
46
|
+
* ------------------------------------------------------
|
|
47
|
+
*/
|
|
48
|
+
configChanged(state: BalConfigState): void;
|
|
37
49
|
/**
|
|
38
50
|
* PRIVATE METHODS
|
|
39
51
|
* ------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
2
|
import { Loggable, LogInstance } from '../../utils/log';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class Stack implements ComponentInterface, Loggable {
|
|
4
4
|
log: LogInstance;
|
|
5
5
|
createLogger(log: LogInstance): void;
|
|
6
6
|
/**
|