@baloise/ds-core 17.3.0 → 17.4.0-snapshot.1609-d2bcc38d3
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 +2 -0
- package/components/all.js +3 -0
- package/components/aria.js +6 -1
- package/components/attributes.js +1 -0
- package/components/bal-accordion-details.js +1 -1
- package/components/bal-accordion-summary.js +1 -1
- package/components/bal-accordion-trigger.js +67 -2
- package/components/bal-app.js +1 -93
- package/components/bal-app2.js +95 -0
- package/components/bal-badge2.js +1 -1
- package/components/bal-button-group2.js +2 -2
- package/components/bal-button2.js +13 -2
- package/components/bal-card-actions.js +1 -1
- package/components/bal-card-button.js +1 -1
- package/components/bal-card-content2.js +1 -1
- package/components/bal-card-subtitle.js +1 -1
- package/components/bal-card-title.js +1 -1
- package/components/bal-card2.js +2 -2
- package/components/bal-carousel.js +12 -4
- package/components/bal-checkbox-button.js +1 -1
- package/components/bal-checkbox-group.js +2 -1
- package/components/bal-checkbox2.js +2 -2
- package/components/bal-close2.js +2 -2
- package/components/bal-content2.js +1 -1
- package/components/bal-data-item.js +1 -1
- package/components/bal-data-label.js +1 -1
- package/components/bal-data-value.js +1 -1
- package/components/bal-data.js +1 -1
- package/components/bal-date-calendar-cell2.js +2 -1
- package/components/bal-date-calendar2.js +2 -2
- package/components/bal-date.js +2 -1
- package/components/bal-divider.js +1 -1
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-dropdown.js +4 -4
- package/components/bal-field-control.js +2 -2
- package/components/bal-field-hint.js +1 -1
- package/components/bal-field-label.js +1 -1
- package/components/bal-field-message.js +2 -2
- package/components/bal-field.js +4 -4
- package/components/bal-file-upload.js +5 -4
- package/components/bal-footer.js +6 -12
- package/components/bal-form-col.js +2 -2
- package/components/bal-form-grid.js +2 -2
- package/components/bal-form.js +1 -1
- package/components/bal-heading2.js +1 -1
- package/components/bal-hint-text2.js +1 -1
- package/components/bal-hint-title2.js +1 -1
- package/components/bal-icon2.js +3 -2
- package/components/bal-input-date2.js +3 -2
- package/components/bal-input-group2.js +1 -1
- package/components/bal-input-slider.js +4 -3
- package/components/bal-input-stepper.js +4 -3
- package/components/bal-input.js +3 -2
- package/components/bal-label2.js +1 -1
- package/components/bal-list-item-accordion-body2.js +30 -8
- package/components/bal-list-item-accordion-head2.js +106 -3
- package/components/bal-list-item-content2.js +2 -2
- package/components/bal-list-item-icon2.js +2 -2
- package/components/bal-list-item-subtitle2.js +1 -1
- package/components/bal-list-item-title2.js +1 -1
- package/components/bal-list2.js +1 -1
- package/components/bal-modal-body.js +1 -1
- package/components/bal-modal-header.js +1 -1
- package/components/bal-modal.js +9 -7
- package/components/bal-nav-link-grid-col2.js +1 -1
- package/components/bal-nav-link-grid2.js +1 -1
- package/components/bal-nav-link-group.js +1 -1
- package/components/bal-nav-link2.js +2 -2
- package/components/bal-nav-menu-bar2.js +1 -1
- package/components/bal-nav-menu-flyout2.js +1 -1
- package/components/bal-nav-meta-bar2.js +1 -1
- package/components/bal-nav.js +8 -8
- package/components/bal-navbar-brand.js +58 -2
- package/components/bal-navbar-menu-end.js +1 -1
- package/components/bal-navbar-menu-start.js +1 -1
- package/components/bal-navbar-menu.js +1 -1
- package/components/bal-navbar.js +1 -1
- package/components/bal-notices.js +1 -1
- package/components/bal-notification.js +1 -1
- package/components/bal-number-input.js +8 -6
- package/components/bal-option-list.js +2 -1
- package/components/bal-option.js +1 -1
- package/components/bal-pagination.js +4 -4
- package/components/bal-popover-content2.js +1 -1
- package/components/bal-popover2.js +3 -2
- package/components/bal-popup.js +1 -1
- package/components/bal-progress-bar.js +1 -1
- package/components/bal-radio-button.js +1 -1
- package/components/bal-radio-group.js +2 -1
- package/components/bal-radio2.js +3 -2
- package/components/bal-segment-item.js +1 -1
- package/components/bal-segment.js +1 -1
- package/components/bal-select-option2.js +1 -1
- package/components/bal-select2.js +6 -5
- package/components/bal-shape2.js +4 -4
- package/components/bal-sheet.js +1 -1
- package/components/bal-snackbar.js +1 -1
- package/components/bal-spinner2.js +1 -1
- package/components/bal-stack2.js +1 -1
- package/components/bal-stage-back-link.js +2 -2
- package/components/bal-stage-body.js +1 -1
- package/components/bal-stage-foot.js +1 -1
- package/components/bal-stage-head.js +1 -1
- package/components/bal-stage-image.js +1 -1
- package/components/bal-stage.js +1 -1
- package/components/bal-step-item.js +2 -2
- package/components/bal-steps.js +1 -1
- package/components/bal-tab-item.js +2 -2
- package/components/bal-table.js +1 -1
- package/components/bal-tabs2.js +6 -5
- package/components/bal-tag-group.js +1 -1
- package/components/bal-tag2.js +2 -1
- package/components/bal-text2.js +2 -2
- package/components/bal-textarea.js +2 -1
- package/components/bal-time-input.js +3 -2
- package/components/bal-toast.js +1 -1
- package/components/bal-tooltip.js +1 -1
- package/components/floating-ui.dom.esm.js +205 -77
- package/components/form.js +2 -2
- package/components/index.js +7 -314
- package/components/initialize.js +312 -0
- package/components/overlays.js +285 -1
- package/components/swiper.util.js +8 -3
- 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-0242cdf474.entry.js +1 -0
- package/dist/baloise-design-system/p-055ec952e0.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-3f88c54b.js → p-070b692d.js} +1 -1
- package/dist/baloise-design-system/p-07bae1fdcc.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0a00140ece.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0b6380a77a.entry.js +1 -0
- package/dist/baloise-design-system/p-0d5459caac.system.entry.js +1 -0
- package/dist/baloise-design-system/p-10ff0eaf.js +1 -0
- package/dist/baloise-design-system/p-111d37ae18.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-516488d5fc.system.entry.js → p-12af198b96.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f80438cdac.entry.js → p-12db0c3477.entry.js} +1 -1
- package/dist/baloise-design-system/{p-35baa468.js → p-13d7688b.js} +1 -1
- package/dist/baloise-design-system/{p-95bf3ca0ae.entry.js → p-187e7da1ed.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3664ca2ce5.system.entry.js → p-18820ca258.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-1c8e64e58b.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-7042d9e34c.system.entry.js → p-208bd3127d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c1ca39528d.entry.js → p-2697b88cca.entry.js} +1 -1
- package/dist/baloise-design-system/p-2724ad9065.entry.js +1 -0
- package/dist/baloise-design-system/p-273fb2c2.system.js +1 -1
- package/dist/baloise-design-system/p-279428d318.entry.js +1 -0
- package/dist/baloise-design-system/p-2d98519440.system.entry.js +1 -0
- package/dist/baloise-design-system/p-2da669b4.system.js +1 -0
- package/dist/baloise-design-system/{p-66f6b46fd4.system.entry.js → p-3114657eb7.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-312a3215.js +1 -0
- package/dist/baloise-design-system/p-31c7ac3a.system.js +1 -0
- package/dist/baloise-design-system/p-341c9b6c63.entry.js +1 -0
- package/dist/baloise-design-system/{p-06e89742d9.system.entry.js → p-34a93475db.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a5964c8a.system.js → p-363254ce.system.js} +1 -1
- package/dist/baloise-design-system/p-36c4bd2450.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-e7c9357245.entry.js → p-374e5904fa.entry.js} +1 -1
- package/dist/baloise-design-system/p-3ae755102b.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-34ca390a2c.system.entry.js → p-3bcfc7b117.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-92e27ad87b.entry.js → p-3c447e2884.entry.js} +1 -1
- package/dist/baloise-design-system/p-3cb3bf6ca0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-3d5fac87cb.entry.js +1 -0
- package/dist/baloise-design-system/p-3f559c384a.system.entry.js +1 -0
- package/dist/baloise-design-system/p-426219f4.js +1 -0
- package/dist/baloise-design-system/p-43174c7095.entry.js +1 -0
- package/dist/baloise-design-system/p-4440f31c6b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-44539ccf68.entry.js +1 -0
- package/dist/baloise-design-system/{p-7ced24b550.system.entry.js → p-447acd07e7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2f23758d56.entry.js → p-447bb8d6ce.entry.js} +1 -1
- package/dist/baloise-design-system/p-462f564b70.entry.js +1 -0
- package/dist/baloise-design-system/{p-596000a871.entry.js → p-469a18b468.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c6f86d0612.entry.js → p-48809a4768.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1e7d65ac70.entry.js → p-4affef9b9b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8594937575.entry.js → p-4d9a45256c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-71eb478cc0.system.entry.js → p-4dc30ed346.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-50a49c0e5c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-50f3b012.js +1 -0
- package/dist/baloise-design-system/p-525a4b8a95.entry.js +1 -0
- package/dist/baloise-design-system/{p-649e542e.system.js → p-540bfa19.system.js} +1 -1
- package/dist/baloise-design-system/{p-1b5f932fe9.system.entry.js → p-5514228033.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-55fc8522eb.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1c08d81e34.entry.js → p-56021799ec.entry.js} +1 -1
- package/dist/baloise-design-system/p-570a1d673a.entry.js +1 -0
- package/dist/baloise-design-system/p-5776d1fde6.entry.js +1 -0
- package/dist/baloise-design-system/p-5821d4bbb2.system.entry.js +1 -0
- package/dist/baloise-design-system/p-59d9918c.system.js +1 -0
- package/dist/baloise-design-system/p-5d6f66047b.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-f385e205.js → p-5eb3fbb9.js} +1 -1
- package/dist/baloise-design-system/p-6079fa35e4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-649eedce8a.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-2b4970ea09.system.entry.js → p-6b14f26a4d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4a746f645b.entry.js → p-6e37071912.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e034c068.system.js → p-6e4a8fa7.system.js} +1 -1
- package/dist/baloise-design-system/{p-62f6d6e101.system.entry.js → p-6ee0ee61c1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dc61e01d7b.entry.js → p-71162da762.entry.js} +1 -1
- package/dist/baloise-design-system/p-73fdcff369.entry.js +1 -0
- package/dist/baloise-design-system/{p-6c85b9106b.entry.js → p-774cad80b8.entry.js} +1 -1
- package/dist/baloise-design-system/p-7ab2e7b846.entry.js +1 -0
- package/dist/baloise-design-system/p-7afa264997.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-270deaf56d.entry.js → p-7bd7839936.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ea27183b2a.system.entry.js → p-7c074055e7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-715f1670d4.entry.js → p-808cc1fd05.entry.js} +1 -1
- package/dist/baloise-design-system/p-857f898475.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-48c06e18ca.system.entry.js → p-8723e490bf.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8869d8fe38.system.entry.js +1 -0
- package/dist/baloise-design-system/p-8f2e9a7f.js +1 -0
- package/dist/baloise-design-system/{p-fbc35458.js → p-8f2ebeb2.js} +1 -1
- package/dist/baloise-design-system/{p-6e5745c8.system.js → p-907368ff.system.js} +1 -1
- package/dist/baloise-design-system/{p-a7bbafcf3c.entry.js → p-93906ca075.entry.js} +1 -1
- package/dist/baloise-design-system/p-94b7fba934.entry.js +1 -0
- package/dist/baloise-design-system/p-9727e05e.system.js +1 -0
- package/dist/baloise-design-system/p-9a1a9c980a.entry.js +1 -0
- package/dist/baloise-design-system/{p-57777973d0.entry.js → p-9b542bd976.entry.js} +1 -1
- package/dist/baloise-design-system/{p-652816cc.system.js → p-9e489928.system.js} +1 -1
- package/dist/baloise-design-system/p-9ec2c3e050.entry.js +1 -0
- package/dist/baloise-design-system/p-9fbf3690.system.js +1 -0
- package/dist/baloise-design-system/p-a576a58b09.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-d56a7e63df.system.entry.js → p-a5c70dd2dd.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-48a601d6f0.system.entry.js → p-a85fe6d188.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d96cc18c2d.system.entry.js → p-a8eef09399.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-31443ba141.entry.js → p-aa2b2147a2.entry.js} +1 -1
- package/dist/baloise-design-system/p-afca130b59.system.entry.js +1 -0
- package/dist/baloise-design-system/p-afef265b5f.entry.js +1 -0
- package/dist/baloise-design-system/p-b21f2874.system.js +1 -0
- package/dist/baloise-design-system/{p-6d51888831.entry.js → p-b2e3f97a3f.entry.js} +1 -1
- package/dist/baloise-design-system/p-b51a692e99.entry.js +1 -0
- package/dist/baloise-design-system/p-b721864305.entry.js +1 -0
- package/dist/baloise-design-system/p-b726b9f4c9.entry.js +1 -0
- package/dist/baloise-design-system/p-bb308299af.entry.js +1 -0
- package/dist/baloise-design-system/{p-84a762f80d.entry.js → p-be02300bdd.entry.js} +1 -1
- package/dist/baloise-design-system/p-bf200caec0.entry.js +1 -0
- package/dist/baloise-design-system/p-c017695c41.entry.js +1 -0
- package/dist/baloise-design-system/p-c0461c69d6.entry.js +1 -0
- package/dist/baloise-design-system/p-c08cbae3ec.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c0eefa4060.entry.js +1 -0
- package/dist/baloise-design-system/{p-e4c30a31a7.system.entry.js → p-c22c22090f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-c641bed817.entry.js +1 -0
- package/dist/baloise-design-system/p-c991d944.js +1 -1
- package/dist/baloise-design-system/{p-eaadfca758.entry.js → p-c9c007a260.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8f1c2e77b6.entry.js → p-cca78c7a8e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dacc50ec18.entry.js → p-cf570c9464.entry.js} +1 -1
- package/dist/baloise-design-system/{p-54166d49.system.js → p-d5cb701b.system.js} +1 -1
- package/dist/baloise-design-system/{p-ce1ce7d198.system.entry.js → p-db9b4e132d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-63b89f722f.system.entry.js → p-db9f48c0d5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9ba757663f.system.entry.js → p-dcb77164fc.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-deaa160f21.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e0a3b80c8c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e0b6c2eaf9.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-fbc010987b.system.entry.js → p-e0c8d647b3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-e48a46d6d7.entry.js +1 -0
- package/dist/baloise-design-system/p-e4b50159.js +1 -0
- package/dist/baloise-design-system/{p-594112b9e7.system.entry.js → p-e4ff14c5bf.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-e562e98c7e.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1e726ce985.system.entry.js → p-e6196821f7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aa125ebac6.system.entry.js → p-e63b388285.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-975634d334.system.entry.js → p-ebae74f9d4.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-ec5776f5.js +1 -0
- package/dist/baloise-design-system/{p-aa101747b4.system.entry.js → p-eeb954c6bc.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-f1849ab83d.entry.js +1 -0
- package/dist/baloise-design-system/p-f285a977e8.entry.js +1 -0
- package/dist/baloise-design-system/p-f4641c6a16.entry.js +1 -0
- package/dist/baloise-design-system/p-f55c127cb5.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-5c0ac570ac.entry.js → p-f669df60fb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8d1dc2f0d6.system.entry.js → p-f6f93e74c1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9438e5c989.entry.js → p-f7e9758f60.entry.js} +1 -1
- package/dist/baloise-design-system/{p-195ee683.system.js → p-fa246bef.system.js} +1 -1
- package/dist/baloise-design-system/{p-717d8ea880.entry.js → p-fca0dcccde.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5d0768fd46.system.entry.js → p-fe6d53dfdf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-245629d7ca.system.entry.js → p-ff2a5eae24.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4f74bac34b.system.entry.js → p-ff31e0e340.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-ffe0476dde.entry.js +1 -0
- package/dist/cjs/app-globals-44d3a5af.js +7 -0
- package/dist/cjs/aria-7672033f.js +10 -0
- package/dist/cjs/{attributes-9f366716.js → attributes-11acd153.js} +1 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +65 -3
- package/dist/cjs/bal-app.cjs.entry.js +2 -2
- package/dist/cjs/bal-badge.cjs.entry.js +1 -1
- package/dist/cjs/bal-button_2.cjs.entry.js +15 -5
- package/dist/cjs/bal-card_6.cjs.entry.js +7 -7
- package/dist/cjs/bal-carousel_2.cjs.entry.js +16 -10
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +1 -1
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/bal-close.cjs.entry.js +2 -2
- package/dist/cjs/bal-content.cjs.entry.js +1 -1
- package/dist/cjs/bal-data_4.cjs.entry.js +4 -4
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -1
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +7 -6
- package/dist/cjs/bal-date.cjs.entry.js +5 -4
- package/dist/cjs/bal-divider.cjs.entry.js +1 -1
- package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +8 -8
- package/dist/cjs/bal-field_5.cjs.entry.js +11 -11
- package/dist/cjs/bal-file-upload.cjs.entry.js +6 -5
- package/dist/cjs/bal-footer.cjs.entry.js +4 -4
- package/dist/cjs/bal-form-col_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-form.cjs.entry.js +2 -2
- package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +9 -8
- package/dist/cjs/bal-icon.cjs.entry.js +3 -2
- package/dist/cjs/bal-input-group.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-slider.cjs.entry.js +5 -4
- package/dist/cjs/bal-input-stepper.cjs.entry.js +6 -5
- package/dist/cjs/bal-input.cjs.entry.js +5 -4
- package/dist/cjs/bal-label.cjs.entry.js +2 -2
- package/dist/cjs/bal-list_8.cjs.entry.js +137 -19
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-modal_3.cjs.entry.js +10 -9
- package/dist/cjs/bal-nav_8.cjs.entry.js +19 -19
- package/dist/cjs/bal-navbar_5.cjs.entry.js +61 -9
- package/dist/cjs/bal-notices_3.cjs.entry.js +3 -3
- package/dist/cjs/bal-notification.cjs.entry.js +1 -1
- package/dist/cjs/bal-number-input.cjs.entry.js +9 -7
- package/dist/cjs/bal-option_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
- package/dist/cjs/bal-popup.cjs.entry.js +2 -2
- package/dist/cjs/bal-progress-bar.cjs.entry.js +5 -5
- package/dist/cjs/bal-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/bal-radio_2.cjs.entry.js +6 -5
- package/dist/cjs/bal-segment_2.cjs.entry.js +8 -8
- package/dist/cjs/bal-select_2.cjs.entry.js +8 -7
- package/dist/cjs/bal-shape.cjs.entry.js +5 -5
- package/dist/cjs/bal-sheet.cjs.entry.js +1 -1
- package/dist/cjs/bal-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bal-stack.cjs.entry.js +1 -1
- package/dist/cjs/bal-stage_6.cjs.entry.js +8 -8
- package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
- package/dist/cjs/bal-steps.cjs.entry.js +4 -4
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +13 -12
- package/dist/cjs/bal-table.cjs.entry.js +1 -1
- package/dist/cjs/bal-tag_2.cjs.entry.js +4 -3
- package/dist/cjs/bal-textarea.cjs.entry.js +4 -3
- package/dist/cjs/bal-time-input.cjs.entry.js +5 -4
- package/dist/cjs/bal-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-02f40938.js → breakpoints.decorator-f4800188.js} +1 -1
- package/dist/cjs/{breakpoints.subject-37ab025d.js → breakpoints.subject-3244205b.js} +1 -1
- package/dist/cjs/{floating-ui-3147d2ff.js → floating-ui-838f057c.js} +1 -1
- package/dist/cjs/{floating-ui.dom.esm-2ece9686.js → floating-ui.dom.esm-13e3f667.js} +205 -77
- package/dist/cjs/{form-2279fb2f.js → form-17c98ac2.js} +2 -2
- package/dist/cjs/{app-globals-fa3c14cc.js → global-872cca8d.js} +2 -4
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/initialize-3059001f.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/overlays-f6884b7e.js +367 -0
- package/dist/cjs/{swiper.util-9bad4b2d.js → swiper.util-62ca48ba.js} +8 -3
- package/dist/cjs/{tokens.esm-2b08bc6c.js → tokens.esm-b1eb9ac4.js} +1 -1
- package/dist/cjs/{window-resize.decorator-7153a9f2.js → window-resize.decorator-6133d79a.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +56 -2
- package/dist/collection/components/bal-accordion/bal-accordion.i18n.js +42 -0
- package/dist/collection/components/bal-app/bal-app.js +2 -2
- package/dist/collection/components/bal-badge/bal-badge.js +1 -1
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +2 -2
- package/dist/collection/components/bal-button/bal-button.js +33 -3
- package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +1 -1
- package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +1 -1
- package/dist/collection/components/bal-card/bal-card-content/bal-card-content.js +1 -1
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +1 -1
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +1 -1
- package/dist/collection/components/bal-card/bal-card.js +2 -2
- package/dist/collection/components/bal-carousel/bal-carousel.css +1 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +31 -3
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +1 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +2 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +1 -1
- package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
- package/dist/collection/components/bal-close/bal-close.css +1 -1
- package/dist/collection/components/bal-close/bal-close.js +1 -1
- package/dist/collection/components/bal-content/bal-content.js +1 -1
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +1 -1
- package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +1 -1
- package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +1 -1
- package/dist/collection/components/bal-data/bal-data.js +1 -1
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.css +1 -1
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +2 -1
- package/dist/collection/components/bal-date/bal-date.js +2 -1
- package/dist/collection/components/bal-divider/bal-divider.js +1 -1
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +2 -2
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +2 -2
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +1 -1
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +1 -1
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +2 -2
- package/dist/collection/components/bal-field/bal-field.css +1 -1
- package/dist/collection/components/bal-field/bal-field.js +3 -3
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +5 -4
- package/dist/collection/components/bal-footer/bal-footer.css +1 -1
- package/dist/collection/components/bal-footer/bal-footer.js +3 -3
- package/dist/collection/components/bal-form/bal-form.js +1 -1
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +2 -2
- package/dist/collection/components/bal-form-grid/bal-form-grid.css +1 -1
- package/dist/collection/components/bal-form-grid/bal-form-grid.js +1 -1
- package/dist/collection/components/bal-heading/bal-heading.js +1 -1
- package/dist/collection/components/bal-hint/bal-hint-text/bal-hint-text.js +1 -1
- package/dist/collection/components/bal-hint/bal-hint-title/bal-hint-title.js +1 -1
- package/dist/collection/components/bal-icon/bal-icon.css +1 -1
- package/dist/collection/components/bal-icon/bal-icon.js +2 -1
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +3 -2
- package/dist/collection/components/bal-input/bal-input.js +3 -2
- package/dist/collection/components/bal-input-group/bal-input-group.js +1 -1
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +4 -3
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +4 -3
- package/dist/collection/components/bal-label/bal-label.js +1 -1
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +65 -7
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.i18n.js +42 -0
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +127 -3
- package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +2 -2
- package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +2 -2
- package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +1 -1
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +1 -1
- package/dist/collection/components/bal-list/bal-list.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal.css +1 -1
- package/dist/collection/components/bal-modal/bal-modal.js +27 -6
- 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 +1 -1
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav.js +2 -2
- package/dist/collection/components/bal-nav/models/bal-nav-meta-button.js +6 -6
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.i18n.js +32 -0
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +93 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar.js +1 -1
- package/dist/collection/components/bal-notices/bal-notices.js +1 -1
- package/dist/collection/components/bal-notification/bal-notification.js +1 -1
- package/dist/collection/components/bal-number-input/bal-number-input.js +10 -8
- package/dist/collection/components/bal-option/bal-option.js +1 -1
- package/dist/collection/components/bal-option-list/bal-option-list.js +2 -1
- package/dist/collection/components/bal-pagination/bal-pagination.js +4 -4
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +1 -1
- package/dist/collection/components/bal-popover/bal-popover.js +3 -2
- package/dist/collection/components/bal-popup/bal-popup.js +1 -1
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +1 -1
- package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +1 -1
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +2 -1
- package/dist/collection/components/bal-radio/bal-radio.js +2 -1
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +1 -1
- package/dist/collection/components/bal-segment/bal-segment.js +1 -1
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +1 -1
- package/dist/collection/components/bal-select/bal-select.js +6 -5
- package/dist/collection/components/bal-shape/bal-shape.js +4 -4
- package/dist/collection/components/bal-sheet/bal-sheet.js +1 -1
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +1 -1
- package/dist/collection/components/bal-spinner/bal-spinner.js +1 -1
- package/dist/collection/components/bal-stack/bal-stack.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +2 -2
- package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage.js +1 -1
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +2 -2
- package/dist/collection/components/bal-steps/bal-steps.css +1 -1
- package/dist/collection/components/bal-table/bal-table.js +1 -1
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +2 -2
- package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +2 -2
- package/dist/collection/components/bal-tabs/components/tab-button.js +3 -2
- package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +1 -1
- package/dist/collection/components/bal-tag/bal-tag.js +2 -1
- package/dist/collection/components/bal-text/bal-text.js +2 -2
- package/dist/collection/components/bal-textarea/bal-textarea.js +2 -1
- package/dist/collection/components/bal-time-input/bal-time-input.css +1 -1
- package/dist/collection/components/bal-time-input/bal-time-input.js +2 -1
- package/dist/collection/components/bal-toast/bal-toast.js +1 -1
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +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 +247 -0
- package/dist/collection/utils/aria.js +6 -1
- package/dist/collection/utils/attributes.js +1 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/dropdown/input.js +2 -2
- package/dist/collection/utils/form.js +2 -2
- package/dist/collection/utils/overlays/focus-trap.js +91 -0
- package/dist/collection/utils/overlays/overlays.js +193 -0
- package/dist/collection/utils/swiper/swiper.util.js +8 -3
- package/dist/esm/app-globals-c5ea8144.js +5 -0
- package/dist/esm/aria-ea150568.js +8 -0
- package/dist/esm/{attributes-4fa7040f.js → attributes-a3e70948.js} +1 -0
- package/dist/esm/bal-accordion_4.entry.js +65 -3
- package/dist/esm/bal-app.entry.js +2 -2
- package/dist/esm/bal-badge.entry.js +1 -1
- package/dist/esm/bal-button_2.entry.js +15 -5
- package/dist/esm/bal-card_6.entry.js +7 -7
- package/dist/esm/bal-carousel_2.entry.js +16 -10
- package/dist/esm/bal-checkbox-button.entry.js +1 -1
- package/dist/esm/bal-checkbox_2.entry.js +6 -6
- package/dist/esm/bal-close.entry.js +2 -2
- package/dist/esm/bal-content.entry.js +1 -1
- package/dist/esm/bal-data_4.entry.js +4 -4
- package/dist/esm/bal-date-calendar-cell.entry.js +2 -1
- package/dist/esm/bal-date-calendar_2.entry.js +7 -6
- package/dist/esm/bal-date.entry.js +5 -4
- package/dist/esm/bal-divider.entry.js +1 -1
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-dropdown.entry.js +8 -8
- package/dist/esm/bal-field_5.entry.js +11 -11
- package/dist/esm/bal-file-upload.entry.js +6 -5
- package/dist/esm/bal-footer.entry.js +4 -4
- package/dist/esm/bal-form-col_2.entry.js +4 -4
- package/dist/esm/bal-form.entry.js +2 -2
- package/dist/esm/bal-heading_2.entry.js +3 -3
- package/dist/esm/bal-hint_5.entry.js +9 -8
- package/dist/esm/bal-icon.entry.js +3 -2
- package/dist/esm/bal-input-group.entry.js +1 -1
- package/dist/esm/bal-input-slider.entry.js +5 -4
- package/dist/esm/bal-input-stepper.entry.js +6 -5
- package/dist/esm/bal-input.entry.js +5 -4
- package/dist/esm/bal-label.entry.js +2 -2
- package/dist/esm/bal-list_8.entry.js +137 -19
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-modal_3.entry.js +10 -9
- package/dist/esm/bal-nav_8.entry.js +19 -19
- package/dist/esm/bal-navbar_5.entry.js +61 -9
- package/dist/esm/bal-notices_3.entry.js +3 -3
- package/dist/esm/bal-notification.entry.js +1 -1
- package/dist/esm/bal-number-input.entry.js +9 -7
- package/dist/esm/bal-option_2.entry.js +5 -5
- package/dist/esm/bal-pagination.entry.js +7 -7
- package/dist/esm/bal-popup.entry.js +2 -2
- package/dist/esm/bal-progress-bar.entry.js +5 -5
- package/dist/esm/bal-radio-button.entry.js +1 -1
- package/dist/esm/bal-radio_2.entry.js +6 -5
- package/dist/esm/bal-segment_2.entry.js +8 -8
- package/dist/esm/bal-select_2.entry.js +8 -7
- package/dist/esm/bal-shape.entry.js +5 -5
- package/dist/esm/bal-sheet.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +1 -1
- package/dist/esm/bal-stack.entry.js +1 -1
- package/dist/esm/bal-stage_6.entry.js +8 -8
- package/dist/esm/bal-step-item.entry.js +3 -3
- package/dist/esm/bal-steps.entry.js +4 -4
- package/dist/esm/bal-tab-item_2.entry.js +13 -12
- package/dist/esm/bal-table.entry.js +1 -1
- package/dist/esm/bal-tag_2.entry.js +4 -3
- package/dist/esm/bal-textarea.entry.js +4 -3
- package/dist/esm/bal-time-input.entry.js +5 -4
- package/dist/esm/bal-tooltip.entry.js +2 -2
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-fbc04097.js → breakpoints.decorator-43a5539d.js} +1 -1
- package/dist/esm/{breakpoints.subject-336f3c8b.js → breakpoints.subject-41117dc4.js} +1 -1
- package/dist/esm/{floating-ui-90bc6e58.js → floating-ui-d05a7ad6.js} +1 -1
- package/dist/esm/{floating-ui.dom.esm-8dcdb8d6.js → floating-ui.dom.esm-efb93616.js} +205 -77
- package/dist/esm/{form-fb8dd9f5.js → form-841232ff.js} +2 -2
- package/dist/esm/{app-globals-5b18a75c.js → global-181336dc.js} +2 -4
- package/dist/esm/index.js +5 -5
- package/dist/esm/initialize-66a526c0.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/overlays-df27551b.js +360 -0
- package/dist/esm/{swiper.util-a4c7d0f9.js → swiper.util-9564f1e8.js} +8 -3
- package/dist/esm/{tokens.esm-d6bf7bd8.js → tokens.esm-376de6fe.js} +1 -1
- package/dist/esm/{window-resize.decorator-f894e34b.js → window-resize.decorator-66d8fd79.js} +1 -1
- package/dist/esm-es5/app-globals-c5ea8144.js +1 -0
- package/dist/esm-es5/aria-ea150568.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- package/dist/esm-es5/bal-app.entry.js +1 -1
- package/dist/esm-es5/bal-badge.entry.js +1 -1
- package/dist/esm-es5/bal-button_2.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-data_4.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-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 -1
- 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-form-col_2.entry.js +1 -1
- package/dist/esm-es5/bal-form.entry.js +1 -1
- package/dist/esm-es5/bal-heading_2.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-group.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-input.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-modal_3.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_3.entry.js +1 -1
- package/dist/esm-es5/bal-notification.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 -1
- package/dist/esm-es5/bal-pagination.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-segment_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-sheet.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-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-step-item.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-table.entry.js +1 -1
- package/dist/esm-es5/bal-tag_2.entry.js +1 -1
- package/dist/esm-es5/bal-textarea.entry.js +1 -1
- package/dist/esm-es5/bal-time-input.entry.js +1 -1
- package/dist/esm-es5/bal-tooltip.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-fbc04097.js → breakpoints.decorator-43a5539d.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-336f3c8b.js → breakpoints.subject-41117dc4.js} +1 -1
- package/dist/esm-es5/{floating-ui-90bc6e58.js → floating-ui-d05a7ad6.js} +1 -1
- package/dist/esm-es5/floating-ui.dom.esm-efb93616.js +1 -0
- package/dist/esm-es5/{form-fb8dd9f5.js → form-841232ff.js} +1 -1
- package/dist/esm-es5/global-181336dc.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-66a526c0.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/overlays-df27551b.js +1 -0
- package/dist/esm-es5/swiper.util-9564f1e8.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-f894e34b.js → window-resize.decorator-66d8fd79.js} +1 -1
- package/dist/html.html-data.json +31 -0
- package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +10 -0
- package/dist/types/components/bal-accordion/bal-accordion.i18n.d.ts +7 -0
- package/dist/types/components/bal-button/bal-button.d.ts +4 -0
- package/dist/types/components/bal-button/bal-button.interfaces.d.ts +1 -0
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +5 -0
- package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +14 -0
- package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +33 -0
- package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.i18n.d.ts +7 -0
- package/dist/types/components/bal-modal/bal-modal.d.ts +18 -0
- package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +14 -0
- package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.i18n.d.ts +5 -0
- package/dist/types/components/bal-number-input/bal-number-input.d.ts +5 -5
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +88 -2
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/utils/aria.d.ts +1 -1
- package/dist/types/utils/attributes.d.ts +1 -0
- package/dist/types/utils/dropdown/input.d.ts +0 -1
- package/dist/types/utils/overlays/focus-trap.d.ts +36 -0
- package/dist/types/utils/overlays/overlays.d.ts +4 -0
- package/dist/types/utils/swiper/swiper.type.d.ts +1 -0
- package/dist/types/utils/swiper/swiper.util.d.ts +2 -2
- package/package.json +6 -8
- package/dist/baloise-design-system/p-007fc954.js +0 -1
- package/dist/baloise-design-system/p-0170c59c18.system.entry.js +0 -1
- package/dist/baloise-design-system/p-02c5d9fe7e.entry.js +0 -1
- package/dist/baloise-design-system/p-0932b2841b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1756cf373c.entry.js +0 -1
- package/dist/baloise-design-system/p-187f98a1.system.js +0 -1
- package/dist/baloise-design-system/p-18b510f972.entry.js +0 -1
- package/dist/baloise-design-system/p-1a91f0403a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1e9d6d442d.entry.js +0 -1
- package/dist/baloise-design-system/p-22bf3854a2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-233258cd04.system.entry.js +0 -1
- package/dist/baloise-design-system/p-29e7d95fdf.entry.js +0 -1
- package/dist/baloise-design-system/p-2f3c628b01.system.entry.js +0 -1
- package/dist/baloise-design-system/p-32f2098f72.entry.js +0 -1
- package/dist/baloise-design-system/p-34797e19f0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-36218e79.js +0 -1
- package/dist/baloise-design-system/p-38b11e34b4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-3a7c9c15.js +0 -1
- package/dist/baloise-design-system/p-3b18905319.entry.js +0 -1
- package/dist/baloise-design-system/p-3fcdc7bf1d.entry.js +0 -1
- package/dist/baloise-design-system/p-403f40e26a.entry.js +0 -1
- package/dist/baloise-design-system/p-43078d9a20.entry.js +0 -1
- package/dist/baloise-design-system/p-444d11044c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4543306ed6.system.entry.js +0 -1
- package/dist/baloise-design-system/p-45bbf6330f.entry.js +0 -1
- package/dist/baloise-design-system/p-47660601a1.entry.js +0 -1
- package/dist/baloise-design-system/p-477a9f8a40.entry.js +0 -1
- package/dist/baloise-design-system/p-489cda24c4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4a614fb255.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4dfdd589d8.system.entry.js +0 -1
- package/dist/baloise-design-system/p-513f6b88.js +0 -1
- package/dist/baloise-design-system/p-51e22c0c.js +0 -1
- package/dist/baloise-design-system/p-56d4310416.system.entry.js +0 -1
- package/dist/baloise-design-system/p-578047988c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5a3e5f6551.entry.js +0 -1
- package/dist/baloise-design-system/p-630b9272b1.entry.js +0 -1
- package/dist/baloise-design-system/p-725eed2595.entry.js +0 -1
- package/dist/baloise-design-system/p-72d3d56c55.entry.js +0 -1
- package/dist/baloise-design-system/p-732df3f390.system.entry.js +0 -1
- package/dist/baloise-design-system/p-759f25a3e5.entry.js +0 -1
- package/dist/baloise-design-system/p-7c76d17d2f.entry.js +0 -1
- package/dist/baloise-design-system/p-7e7d73b667.entry.js +0 -1
- package/dist/baloise-design-system/p-82ff80d9f0.entry.js +0 -1
- package/dist/baloise-design-system/p-89a8d47c12.entry.js +0 -1
- package/dist/baloise-design-system/p-8b0bd1adc7.entry.js +0 -1
- package/dist/baloise-design-system/p-8cb8360dcd.system.entry.js +0 -1
- package/dist/baloise-design-system/p-974e5cb5ec.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9b6e9746c1.entry.js +0 -1
- package/dist/baloise-design-system/p-b2198343bf.entry.js +0 -1
- package/dist/baloise-design-system/p-c09a268beb.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c2a4a78d58.system.entry.js +0 -1
- package/dist/baloise-design-system/p-cc899b3f92.entry.js +0 -1
- package/dist/baloise-design-system/p-d24c5aa8ad.entry.js +0 -1
- package/dist/baloise-design-system/p-d296994410.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d404537f.system.js +0 -1
- package/dist/baloise-design-system/p-d5e8e2bec8.entry.js +0 -1
- package/dist/baloise-design-system/p-d9b38501.js +0 -1
- package/dist/baloise-design-system/p-d9bc111444.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ddfbabb4d5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-de59bd37.system.js +0 -1
- package/dist/baloise-design-system/p-e104ac3699.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e2a70f10.system.js +0 -1
- package/dist/baloise-design-system/p-e5c0a1dbb2.entry.js +0 -1
- package/dist/baloise-design-system/p-e70c7951.system.js +0 -1
- package/dist/baloise-design-system/p-edd4a77fd5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-f01ae7b55b.entry.js +0 -1
- package/dist/baloise-design-system/p-f8ab470d9d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fa43380807.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ff859bec24.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ffeef88a26.entry.js +0 -1
- package/dist/cjs/aria-c8955a5c.js +0 -5
- package/dist/cjs/overlays-81ea4414.js +0 -82
- package/dist/esm/aria-d5877698.js +0 -3
- package/dist/esm/overlays-9a5950bd.js +0 -76
- package/dist/esm-es5/app-globals-5b18a75c.js +0 -1
- package/dist/esm-es5/aria-d5877698.js +0 -1
- package/dist/esm-es5/floating-ui.dom.esm-8dcdb8d6.js +0 -1
- package/dist/esm-es5/overlays-9a5950bd.js +0 -1
- package/dist/esm-es5/swiper.util-a4c7d0f9.js +0 -1
- /package/dist/baloise-design-system/{p-dd5e13d1.js → p-063808d7.js} +0 -0
- /package/dist/baloise-design-system/{p-ca9e987e.js → p-6e1e6cc5.js} +0 -0
- /package/dist/baloise-design-system/{p-8949aa8b.system.js → p-7720b262.system.js} +0 -0
- /package/dist/baloise-design-system/{p-d1847366.system.js → p-b119ef19.system.js} +0 -0
- /package/dist/esm-es5/{attributes-4fa7040f.js → attributes-a3e70948.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-d6bf7bd8.js → tokens.esm-376de6fe.js} +0 -0
package/components/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { setPlatformHelpers } from '@stencil/core/internal/client';
|
|
2
1
|
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
2
|
export { F as FileUploadRejectionReason } from './bal-file-upload.type.js';
|
|
4
3
|
export { i as i18nBalDate } from './bal-date.i18n.js';
|
|
@@ -6,17 +5,16 @@ export { i as i18nBalClose } from './bal-close.i18n.js';
|
|
|
6
5
|
export { i as i18nBalTimeInput } from './bal-time-input.i18n.js';
|
|
7
6
|
export { i as i18nBalInputStepper } from './bal-input-stepper.i18n.js';
|
|
8
7
|
export { i as i18nBalLabel } from './bal-label.i18n.js';
|
|
9
|
-
|
|
10
|
-
export { b as balBrowser } from './browser.js';
|
|
11
|
-
import { w as waitForComponent, g as getAppRoot, c as componentOnReady } from './helpers.js';
|
|
12
|
-
export { c as componentOnReady, h as deepReady, g as getAppRoot, j as isDescendant, s as shallowReady, i as wait, b as waitAfterFramePaint, d as waitAfterIdleCallback, e as waitAfterLargestContentfulPaintCallback, w as waitForComponent, a as waitForDesignSystem, f as waitOnLoadEventCallback } from './helpers.js';
|
|
13
|
-
import { d as defaultConfig } from './config.default.js';
|
|
14
|
-
export { d as defaultConfig } from './config.default.js';
|
|
8
|
+
export { a as BalSnackbarController, B as BalToastController, c as balSnackbarController, b as balToastController, i as initialize, i as initializeBaloiseDesignSystem, s as setupConfig } from './initialize.js';
|
|
15
9
|
export { n as newBalOption } from './option.js';
|
|
16
10
|
export { n as newBalStepOption } from './bal-step.util.js';
|
|
17
11
|
export { n as newBalTabOption } from './bal-tab.util.js';
|
|
12
|
+
import { g as getAppRoot, c as componentOnReady } from './helpers.js';
|
|
13
|
+
export { c as componentOnReady, h as deepReady, g as getAppRoot, j as isDescendant, s as shallowReady, i as wait, b as waitAfterFramePaint, d as waitAfterIdleCallback, e as waitAfterLargestContentfulPaintCallback, w as waitForComponent, a as waitForDesignSystem, f as waitOnLoadEventCallback } from './helpers.js';
|
|
18
14
|
export { s as scrollToFirstInvalidField } from './form.js';
|
|
19
15
|
export { B as BalScrollHandler } from './scroll.js';
|
|
16
|
+
import { b as balBrowser } from './browser.js';
|
|
17
|
+
export { b as balBrowser } from './browser.js';
|
|
20
18
|
import { b as balDevice } from './device.js';
|
|
21
19
|
export { B as BalDevice, b as balDevice } from './device.js';
|
|
22
20
|
export { I as INVALID_VALUE } from './mask-util.js';
|
|
@@ -24,175 +22,11 @@ import { g as getOverlays, a as getOverlay } from './overlays.js';
|
|
|
24
22
|
import { B as BalWindowResizeListener, b as balBreakpoints } from './breakpoints.subject.js';
|
|
25
23
|
export { c as BalBreakpointSubject, d as BalBreakpointsUtil, a as balBreakpointSubject, b as balBreakpoints } from './breakpoints.subject.js';
|
|
26
24
|
export { a as attachToConfig, d as detachFromConfig, o as onBalConfigChange, u as updateBalAllowedLanguages, b as updateBalAnimated, c as updateBalIcons, e as updateBalLanguage, f as updateBalRegion, g as useBalConfig } from './config.utils.js';
|
|
25
|
+
export { d as defaultConfig } from './config.default.js';
|
|
27
26
|
import { S as Subject } from './listener.js';
|
|
28
27
|
export { B as BalSwipeSubject } from './swipe.subject.js';
|
|
29
28
|
export { B as BalDate } from './date.js';
|
|
30
29
|
|
|
31
|
-
const BALOISE_SESSION_KEY = 'baloise-persist-config';
|
|
32
|
-
const BALOISE_ANIMATION_KEY = 'baloise-animated';
|
|
33
|
-
|
|
34
|
-
class Config {
|
|
35
|
-
constructor() {
|
|
36
|
-
this._componentObservers = [];
|
|
37
|
-
this._observers = [];
|
|
38
|
-
this._config = defaultConfig;
|
|
39
|
-
}
|
|
40
|
-
get locale() {
|
|
41
|
-
return `${this._config.language}-${this._config.region}`;
|
|
42
|
-
}
|
|
43
|
-
get region() {
|
|
44
|
-
return this._config.region;
|
|
45
|
-
}
|
|
46
|
-
set region(region) {
|
|
47
|
-
if (region !== this._config.region) {
|
|
48
|
-
this._config.region = region;
|
|
49
|
-
this._notify();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
get language() {
|
|
53
|
-
return this._config.language;
|
|
54
|
-
}
|
|
55
|
-
set language(language) {
|
|
56
|
-
if (language !== this._config.language) {
|
|
57
|
-
if (this._config.allowedLanguages.includes(language)) {
|
|
58
|
-
this._config.language = language;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
this._config.language = this._config.fallbackLanguage;
|
|
62
|
-
}
|
|
63
|
-
this._notify();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
get allowedLanguages() {
|
|
67
|
-
return this._config.allowedLanguages;
|
|
68
|
-
}
|
|
69
|
-
set allowedLanguages(allowedLanguages) {
|
|
70
|
-
if (allowedLanguages !== this._config.allowedLanguages) {
|
|
71
|
-
this._config.allowedLanguages = allowedLanguages;
|
|
72
|
-
this._notify();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
get icons() {
|
|
76
|
-
return this._config.icons;
|
|
77
|
-
}
|
|
78
|
-
set icons(icons) {
|
|
79
|
-
this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
|
|
80
|
-
this._notify();
|
|
81
|
-
}
|
|
82
|
-
get logger() {
|
|
83
|
-
return this._config.logger;
|
|
84
|
-
}
|
|
85
|
-
set logger(logger) {
|
|
86
|
-
this._config.logger = Object.assign({}, logger);
|
|
87
|
-
this._notify();
|
|
88
|
-
}
|
|
89
|
-
get animated() {
|
|
90
|
-
return this._config.animated;
|
|
91
|
-
}
|
|
92
|
-
set animated(animated) {
|
|
93
|
-
this._config.animated = animated;
|
|
94
|
-
this._notify();
|
|
95
|
-
}
|
|
96
|
-
get httpFormSubmit() {
|
|
97
|
-
return this._config.httpFormSubmit;
|
|
98
|
-
}
|
|
99
|
-
set httpFormSubmit(httpFormSubmit) {
|
|
100
|
-
this._config.httpFormSubmit = httpFormSubmit;
|
|
101
|
-
this._notify();
|
|
102
|
-
}
|
|
103
|
-
attach(observer) {
|
|
104
|
-
const isExist = this._observers.includes(observer);
|
|
105
|
-
if (isExist) {
|
|
106
|
-
return console.log('Subject: Observer has been attached already.');
|
|
107
|
-
}
|
|
108
|
-
this._observers.push(observer);
|
|
109
|
-
observer.configChanged(this._config);
|
|
110
|
-
}
|
|
111
|
-
detach(observer) {
|
|
112
|
-
const observerIndex = this._observers.indexOf(observer);
|
|
113
|
-
if (observerIndex === -1) {
|
|
114
|
-
return console.log('Subject: Nonexistent observer.');
|
|
115
|
-
}
|
|
116
|
-
this._observers.splice(observerIndex, 1);
|
|
117
|
-
}
|
|
118
|
-
attachComponent(observer) {
|
|
119
|
-
const isExist = this._componentObservers.includes(observer);
|
|
120
|
-
if (isExist) {
|
|
121
|
-
return console.log('Subject: Observer has been attached already.');
|
|
122
|
-
}
|
|
123
|
-
this._componentObservers.push(observer);
|
|
124
|
-
observer.configChanged(this._config);
|
|
125
|
-
}
|
|
126
|
-
detachComponent(observer) {
|
|
127
|
-
const observerIndex = this._componentObservers.indexOf(observer);
|
|
128
|
-
if (observerIndex === -1) {
|
|
129
|
-
return console.log('Subject: Nonexistent observer.');
|
|
130
|
-
}
|
|
131
|
-
this._componentObservers.splice(observerIndex, 1);
|
|
132
|
-
}
|
|
133
|
-
toString() {
|
|
134
|
-
return JSON.stringify(this._config);
|
|
135
|
-
}
|
|
136
|
-
reset(config) {
|
|
137
|
-
this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
|
|
138
|
-
this._notify(false);
|
|
139
|
-
}
|
|
140
|
-
_notify(all = true) {
|
|
141
|
-
for (const observer of this._componentObservers) {
|
|
142
|
-
observer.configChanged(this._config);
|
|
143
|
-
}
|
|
144
|
-
if (all) {
|
|
145
|
-
for (const observer of this._observers) {
|
|
146
|
-
observer.configChanged(this._config);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (balBrowser.hasWindow) {
|
|
150
|
-
saveConfig(window, this._config);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
const config = /*@__PURE__*/ new Config();
|
|
155
|
-
const configFromSession = (win) => {
|
|
156
|
-
try {
|
|
157
|
-
const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
|
|
158
|
-
return configStr !== null ? JSON.parse(configStr) : {};
|
|
159
|
-
}
|
|
160
|
-
catch (e) {
|
|
161
|
-
return {};
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
const configFromLocalStorage = (win) => {
|
|
165
|
-
try {
|
|
166
|
-
const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
|
|
167
|
-
if (animated !== null) {
|
|
168
|
-
return {
|
|
169
|
-
animated,
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
return {};
|
|
173
|
-
}
|
|
174
|
-
catch (e) {
|
|
175
|
-
return {};
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
const saveConfig = (win, c) => {
|
|
179
|
-
try {
|
|
180
|
-
win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
|
|
181
|
-
}
|
|
182
|
-
catch (e) {
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
const setupConfig = (userConfig = {}, win = {}) => {
|
|
188
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
189
|
-
win = window;
|
|
190
|
-
}
|
|
191
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
192
|
-
config.reset(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), configFromLocalStorage(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
|
|
193
|
-
win.BaloiseDesignSystem.config = config;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
30
|
const i18nBalFieldLabel = {
|
|
197
31
|
de: {
|
|
198
32
|
optional: ' (optional)',
|
|
@@ -226,147 +60,6 @@ const i18nBalFieldLabel = {
|
|
|
226
60
|
},
|
|
227
61
|
};
|
|
228
62
|
|
|
229
|
-
class BalNoticeController {
|
|
230
|
-
constructor(options) {
|
|
231
|
-
this.options = options;
|
|
232
|
-
this.container = null;
|
|
233
|
-
this.queue = [];
|
|
234
|
-
this.preQueue = [];
|
|
235
|
-
this.queueLimit = 5;
|
|
236
|
-
}
|
|
237
|
-
create(options) {
|
|
238
|
-
if (balBrowser.hasDocument) {
|
|
239
|
-
this.setupContainer(options);
|
|
240
|
-
const clone = this.findClone(options);
|
|
241
|
-
if (clone === undefined) {
|
|
242
|
-
const el = document.createElement(this.options.tag);
|
|
243
|
-
Object.assign(el, options);
|
|
244
|
-
el.addEventListener('balClose', ev => {
|
|
245
|
-
this.removeFromQueue(ev.detail);
|
|
246
|
-
});
|
|
247
|
-
this.preQueue.push(el);
|
|
248
|
-
this.updateQueue();
|
|
249
|
-
return el;
|
|
250
|
-
}
|
|
251
|
-
return clone;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
setQueue(queueLimit) {
|
|
255
|
-
this.queueLimit = queueLimit;
|
|
256
|
-
}
|
|
257
|
-
async dismissAll() {
|
|
258
|
-
var _a;
|
|
259
|
-
const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
|
|
260
|
-
if (elements) {
|
|
261
|
-
const closingQueue = [];
|
|
262
|
-
for (let index = 0; index < elements.length; index++) {
|
|
263
|
-
const el = elements[index];
|
|
264
|
-
if (el.close) {
|
|
265
|
-
closingQueue.push(el.close());
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
await Promise.all(closingQueue);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* @deprecated use dismissAll instead
|
|
273
|
-
*/
|
|
274
|
-
async clearAll() {
|
|
275
|
-
console.warn('[DEPRECATED] - use dismissAll() instead');
|
|
276
|
-
return this.dismissAll();
|
|
277
|
-
}
|
|
278
|
-
findClone(options) {
|
|
279
|
-
for (let index = 0; index < this.queue.length; index++) {
|
|
280
|
-
const el = this.queue[index];
|
|
281
|
-
if (el.message === options.message && el.color === options.color) {
|
|
282
|
-
return el;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
return undefined;
|
|
286
|
-
}
|
|
287
|
-
setupContainer(options) {
|
|
288
|
-
if (balBrowser.hasDocument) {
|
|
289
|
-
const containerId = `${this.options.tag}-container`;
|
|
290
|
-
this.container = document.getElementById(containerId);
|
|
291
|
-
if (this.container)
|
|
292
|
-
return;
|
|
293
|
-
if (!this.container) {
|
|
294
|
-
this.container = document.createElement('bal-notices');
|
|
295
|
-
this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
|
|
296
|
-
this.container.setAttribute('animated', options.animated ? 'true' : 'false');
|
|
297
|
-
if (options.container !== undefined) {
|
|
298
|
-
this.container.setAttribute('container', options.container === true ? '' : options.container);
|
|
299
|
-
}
|
|
300
|
-
this.container.id = containerId;
|
|
301
|
-
}
|
|
302
|
-
document.body.appendChild(this.container);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
async updateQueue() {
|
|
306
|
-
var _a;
|
|
307
|
-
if (this.queue.length < this.queueLimit) {
|
|
308
|
-
const el = this.preQueue.shift();
|
|
309
|
-
if (el && this.container) {
|
|
310
|
-
await waitForComponent(this.container);
|
|
311
|
-
const innerEl = this.container.querySelector('.bal-notices__inner');
|
|
312
|
-
if (innerEl) {
|
|
313
|
-
this.queue.push(el);
|
|
314
|
-
innerEl.insertAdjacentElement('beforeend', el);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
if (this.queue.length === 0) {
|
|
319
|
-
(_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
removeFromQueue(toastId) {
|
|
323
|
-
this.queue = this.queue.filter(el => el.id !== toastId);
|
|
324
|
-
setTimeout(() => this.updateQueue(), 0);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
class BalToastController extends BalNoticeController {
|
|
329
|
-
constructor() {
|
|
330
|
-
super({
|
|
331
|
-
tag: 'bal-toast',
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
create(options) {
|
|
335
|
-
return super.create(options);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
const balToastController = new BalToastController();
|
|
339
|
-
|
|
340
|
-
class BalSnackbarController extends BalNoticeController {
|
|
341
|
-
constructor() {
|
|
342
|
-
super({
|
|
343
|
-
tag: 'bal-snackbar',
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
create(options) {
|
|
347
|
-
return super.create(options);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
const balSnackbarController = new BalSnackbarController();
|
|
351
|
-
|
|
352
|
-
// generated by .build/version.js
|
|
353
|
-
const VERSION = '17.3.0';
|
|
354
|
-
|
|
355
|
-
const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
|
|
356
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
357
|
-
win = window;
|
|
358
|
-
}
|
|
359
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
360
|
-
if (platformConfig) {
|
|
361
|
-
setPlatformHelpers(platformConfig);
|
|
362
|
-
}
|
|
363
|
-
setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
|
|
364
|
-
win.BaloiseDesignSystem.toastController = balToastController;
|
|
365
|
-
win.BaloiseDesignSystem.snackbarController = balSnackbarController;
|
|
366
|
-
win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
|
|
367
|
-
win.BaloiseDesignSystem.version = VERSION;
|
|
368
|
-
};
|
|
369
|
-
|
|
370
63
|
const newBalCheckboxOption = (option) => {
|
|
371
64
|
return Object.assign(Object.assign({ interface: 'checkbox', labelHidden: false, flat: false, disabled: false, readonly: false, required: false, nonSubmit: false, invalid: false, checked: false }, option), { label: '', html: option.label });
|
|
372
65
|
};
|
|
@@ -484,4 +177,4 @@ const isPlatform = (winOrPlatform, platform) => {
|
|
|
484
177
|
const NewBalOptionValue = newBalOptionValue;
|
|
485
178
|
const NewBalSingleOptionValue = newBalSingleOptionValue;
|
|
486
179
|
|
|
487
|
-
export { BalModalController, BalOrientationSubject,
|
|
180
|
+
export { BalModalController, BalOrientationSubject, NewBalOptionValue, NewBalSingleOptionValue, balModalController, balOrientationSubject, getPlatforms, hasTouchSupport, i18nBalFieldLabel, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue };
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { setPlatformHelpers } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as balBrowser } from './browser.js';
|
|
3
|
+
import { w as waitForComponent } from './helpers.js';
|
|
4
|
+
import { d as defaultConfig } from './config.default.js';
|
|
5
|
+
|
|
6
|
+
const BALOISE_SESSION_KEY = 'baloise-persist-config';
|
|
7
|
+
const BALOISE_ANIMATION_KEY = 'baloise-animated';
|
|
8
|
+
|
|
9
|
+
class Config {
|
|
10
|
+
constructor() {
|
|
11
|
+
this._componentObservers = [];
|
|
12
|
+
this._observers = [];
|
|
13
|
+
this._config = defaultConfig;
|
|
14
|
+
}
|
|
15
|
+
get locale() {
|
|
16
|
+
return `${this._config.language}-${this._config.region}`;
|
|
17
|
+
}
|
|
18
|
+
get region() {
|
|
19
|
+
return this._config.region;
|
|
20
|
+
}
|
|
21
|
+
set region(region) {
|
|
22
|
+
if (region !== this._config.region) {
|
|
23
|
+
this._config.region = region;
|
|
24
|
+
this._notify();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
get language() {
|
|
28
|
+
return this._config.language;
|
|
29
|
+
}
|
|
30
|
+
set language(language) {
|
|
31
|
+
if (language !== this._config.language) {
|
|
32
|
+
if (this._config.allowedLanguages.includes(language)) {
|
|
33
|
+
this._config.language = language;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this._config.language = this._config.fallbackLanguage;
|
|
37
|
+
}
|
|
38
|
+
this._notify();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
get allowedLanguages() {
|
|
42
|
+
return this._config.allowedLanguages;
|
|
43
|
+
}
|
|
44
|
+
set allowedLanguages(allowedLanguages) {
|
|
45
|
+
if (allowedLanguages !== this._config.allowedLanguages) {
|
|
46
|
+
this._config.allowedLanguages = allowedLanguages;
|
|
47
|
+
this._notify();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
get icons() {
|
|
51
|
+
return this._config.icons;
|
|
52
|
+
}
|
|
53
|
+
set icons(icons) {
|
|
54
|
+
this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
|
|
55
|
+
this._notify();
|
|
56
|
+
}
|
|
57
|
+
get logger() {
|
|
58
|
+
return this._config.logger;
|
|
59
|
+
}
|
|
60
|
+
set logger(logger) {
|
|
61
|
+
this._config.logger = Object.assign({}, logger);
|
|
62
|
+
this._notify();
|
|
63
|
+
}
|
|
64
|
+
get animated() {
|
|
65
|
+
return this._config.animated;
|
|
66
|
+
}
|
|
67
|
+
set animated(animated) {
|
|
68
|
+
this._config.animated = animated;
|
|
69
|
+
this._notify();
|
|
70
|
+
}
|
|
71
|
+
get httpFormSubmit() {
|
|
72
|
+
return this._config.httpFormSubmit;
|
|
73
|
+
}
|
|
74
|
+
set httpFormSubmit(httpFormSubmit) {
|
|
75
|
+
this._config.httpFormSubmit = httpFormSubmit;
|
|
76
|
+
this._notify();
|
|
77
|
+
}
|
|
78
|
+
attach(observer) {
|
|
79
|
+
const isExist = this._observers.includes(observer);
|
|
80
|
+
if (isExist) {
|
|
81
|
+
return console.log('Subject: Observer has been attached already.');
|
|
82
|
+
}
|
|
83
|
+
this._observers.push(observer);
|
|
84
|
+
observer.configChanged(this._config);
|
|
85
|
+
}
|
|
86
|
+
detach(observer) {
|
|
87
|
+
const observerIndex = this._observers.indexOf(observer);
|
|
88
|
+
if (observerIndex === -1) {
|
|
89
|
+
return console.log('Subject: Nonexistent observer.');
|
|
90
|
+
}
|
|
91
|
+
this._observers.splice(observerIndex, 1);
|
|
92
|
+
}
|
|
93
|
+
attachComponent(observer) {
|
|
94
|
+
const isExist = this._componentObservers.includes(observer);
|
|
95
|
+
if (isExist) {
|
|
96
|
+
return console.log('Subject: Observer has been attached already.');
|
|
97
|
+
}
|
|
98
|
+
this._componentObservers.push(observer);
|
|
99
|
+
observer.configChanged(this._config);
|
|
100
|
+
}
|
|
101
|
+
detachComponent(observer) {
|
|
102
|
+
const observerIndex = this._componentObservers.indexOf(observer);
|
|
103
|
+
if (observerIndex === -1) {
|
|
104
|
+
return console.log('Subject: Nonexistent observer.');
|
|
105
|
+
}
|
|
106
|
+
this._componentObservers.splice(observerIndex, 1);
|
|
107
|
+
}
|
|
108
|
+
toString() {
|
|
109
|
+
return JSON.stringify(this._config);
|
|
110
|
+
}
|
|
111
|
+
reset(config) {
|
|
112
|
+
this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
|
|
113
|
+
this._notify(false);
|
|
114
|
+
}
|
|
115
|
+
_notify(all = true) {
|
|
116
|
+
for (const observer of this._componentObservers) {
|
|
117
|
+
observer.configChanged(this._config);
|
|
118
|
+
}
|
|
119
|
+
if (all) {
|
|
120
|
+
for (const observer of this._observers) {
|
|
121
|
+
observer.configChanged(this._config);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (balBrowser.hasWindow) {
|
|
125
|
+
saveConfig(window, this._config);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const config = /*@__PURE__*/ new Config();
|
|
130
|
+
const configFromSession = (win) => {
|
|
131
|
+
try {
|
|
132
|
+
const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
|
|
133
|
+
return configStr !== null ? JSON.parse(configStr) : {};
|
|
134
|
+
}
|
|
135
|
+
catch (e) {
|
|
136
|
+
return {};
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
const configFromLocalStorage = (win) => {
|
|
140
|
+
try {
|
|
141
|
+
const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
|
|
142
|
+
if (animated !== null) {
|
|
143
|
+
return {
|
|
144
|
+
animated,
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return {};
|
|
148
|
+
}
|
|
149
|
+
catch (e) {
|
|
150
|
+
return {};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const saveConfig = (win, c) => {
|
|
154
|
+
try {
|
|
155
|
+
win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const setupConfig = (userConfig = {}, win = {}) => {
|
|
163
|
+
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
164
|
+
win = window;
|
|
165
|
+
}
|
|
166
|
+
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
167
|
+
config.reset(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), configFromLocalStorage(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
|
|
168
|
+
win.BaloiseDesignSystem.config = config;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
class BalNoticeController {
|
|
172
|
+
constructor(options) {
|
|
173
|
+
this.options = options;
|
|
174
|
+
this.container = null;
|
|
175
|
+
this.queue = [];
|
|
176
|
+
this.preQueue = [];
|
|
177
|
+
this.queueLimit = 5;
|
|
178
|
+
}
|
|
179
|
+
create(options) {
|
|
180
|
+
if (balBrowser.hasDocument) {
|
|
181
|
+
this.setupContainer(options);
|
|
182
|
+
const clone = this.findClone(options);
|
|
183
|
+
if (clone === undefined) {
|
|
184
|
+
const el = document.createElement(this.options.tag);
|
|
185
|
+
Object.assign(el, options);
|
|
186
|
+
el.addEventListener('balClose', ev => {
|
|
187
|
+
this.removeFromQueue(ev.detail);
|
|
188
|
+
});
|
|
189
|
+
this.preQueue.push(el);
|
|
190
|
+
this.updateQueue();
|
|
191
|
+
return el;
|
|
192
|
+
}
|
|
193
|
+
return clone;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
setQueue(queueLimit) {
|
|
197
|
+
this.queueLimit = queueLimit;
|
|
198
|
+
}
|
|
199
|
+
async dismissAll() {
|
|
200
|
+
var _a;
|
|
201
|
+
const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
|
|
202
|
+
if (elements) {
|
|
203
|
+
const closingQueue = [];
|
|
204
|
+
for (let index = 0; index < elements.length; index++) {
|
|
205
|
+
const el = elements[index];
|
|
206
|
+
if (el.close) {
|
|
207
|
+
closingQueue.push(el.close());
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
await Promise.all(closingQueue);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* @deprecated use dismissAll instead
|
|
215
|
+
*/
|
|
216
|
+
async clearAll() {
|
|
217
|
+
console.warn('[DEPRECATED] - use dismissAll() instead');
|
|
218
|
+
return this.dismissAll();
|
|
219
|
+
}
|
|
220
|
+
findClone(options) {
|
|
221
|
+
for (let index = 0; index < this.queue.length; index++) {
|
|
222
|
+
const el = this.queue[index];
|
|
223
|
+
if (el.message === options.message && el.color === options.color) {
|
|
224
|
+
return el;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return undefined;
|
|
228
|
+
}
|
|
229
|
+
setupContainer(options) {
|
|
230
|
+
if (balBrowser.hasDocument) {
|
|
231
|
+
const containerId = `${this.options.tag}-container`;
|
|
232
|
+
this.container = document.getElementById(containerId);
|
|
233
|
+
if (this.container)
|
|
234
|
+
return;
|
|
235
|
+
if (!this.container) {
|
|
236
|
+
this.container = document.createElement('bal-notices');
|
|
237
|
+
this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
|
|
238
|
+
this.container.setAttribute('animated', options.animated ? 'true' : 'false');
|
|
239
|
+
if (options.container !== undefined) {
|
|
240
|
+
this.container.setAttribute('container', options.container === true ? '' : options.container);
|
|
241
|
+
}
|
|
242
|
+
this.container.id = containerId;
|
|
243
|
+
}
|
|
244
|
+
document.body.appendChild(this.container);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
async updateQueue() {
|
|
248
|
+
var _a;
|
|
249
|
+
if (this.queue.length < this.queueLimit) {
|
|
250
|
+
const el = this.preQueue.shift();
|
|
251
|
+
if (el && this.container) {
|
|
252
|
+
await waitForComponent(this.container);
|
|
253
|
+
const innerEl = this.container.querySelector('.bal-notices__inner');
|
|
254
|
+
if (innerEl) {
|
|
255
|
+
this.queue.push(el);
|
|
256
|
+
innerEl.insertAdjacentElement('beforeend', el);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
if (this.queue.length === 0) {
|
|
261
|
+
(_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
removeFromQueue(toastId) {
|
|
265
|
+
this.queue = this.queue.filter(el => el.id !== toastId);
|
|
266
|
+
setTimeout(() => this.updateQueue(), 0);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
class BalToastController extends BalNoticeController {
|
|
271
|
+
constructor() {
|
|
272
|
+
super({
|
|
273
|
+
tag: 'bal-toast',
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
create(options) {
|
|
277
|
+
return super.create(options);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
const balToastController = new BalToastController();
|
|
281
|
+
|
|
282
|
+
class BalSnackbarController extends BalNoticeController {
|
|
283
|
+
constructor() {
|
|
284
|
+
super({
|
|
285
|
+
tag: 'bal-snackbar',
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
create(options) {
|
|
289
|
+
return super.create(options);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
const balSnackbarController = new BalSnackbarController();
|
|
293
|
+
|
|
294
|
+
// generated by .build/version.js
|
|
295
|
+
const VERSION = '17.4.0-snapshot.1609-d2bcc38d3';
|
|
296
|
+
|
|
297
|
+
const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
|
|
298
|
+
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
299
|
+
win = window;
|
|
300
|
+
}
|
|
301
|
+
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
302
|
+
if (platformConfig) {
|
|
303
|
+
setPlatformHelpers(platformConfig);
|
|
304
|
+
}
|
|
305
|
+
setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
|
|
306
|
+
win.BaloiseDesignSystem.toastController = balToastController;
|
|
307
|
+
win.BaloiseDesignSystem.snackbarController = balSnackbarController;
|
|
308
|
+
win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
|
|
309
|
+
win.BaloiseDesignSystem.version = VERSION;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
export { BalToastController as B, BalSnackbarController as a, balToastController as b, balSnackbarController as c, initializeBaloiseDesignSystem as i, setupConfig as s };
|