@baloise/ds-core 18.2.0 → 18.3.0-nightly.20250401
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/bal-accordion-trigger.js +67 -29
- 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-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 +1 -1
- package/components/bal-checkbox-button.js +1 -1
- package/components/bal-checkbox2.js +1 -1
- package/components/bal-close2.js +1 -1
- 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 +1 -1
- package/components/bal-date-calendar2.js +1 -1
- package/components/bal-date.js +1 -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 +2 -2
- 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 +2 -2
- package/components/bal-file-upload.js +4 -4
- package/components/bal-footer.js +3 -3
- package/components/bal-form-col.js +2 -2
- package/components/bal-form-grid.js +1 -1
- 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 +1692 -311
- package/components/bal-input-date2.js +2 -2
- package/components/bal-input-group2.js +1 -1
- package/components/bal-input-slider.js +3 -3
- package/components/bal-input-stepper.js +3 -3
- package/components/bal-input.js +1 -1
- package/components/bal-label2.js +1 -1
- 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 +5 -5
- 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 +2 -2
- package/components/bal-navbar-brand.js +1 -1
- 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 +1 -1
- package/components/bal-option-list.js +1 -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-popup.js +1 -1
- package/components/bal-progress-bar.js +1 -1
- package/components/bal-radio-button.js +1 -1
- package/components/bal-radio2.js +1 -1
- 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 +5 -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-tab-item.js +2 -2
- package/components/bal-table.js +1 -1
- package/components/bal-tabs2.js +2 -2
- package/components/bal-tag-group.js +1 -1
- package/components/bal-tag2.js +1 -1
- package/components/bal-text2.js +2 -2
- package/components/bal-textarea.js +1 -1
- package/components/bal-time-input.js +1 -1
- package/components/bal-toast.js +1 -1
- package/components/bal-tooltip.js +1 -1
- package/components/index.js +7 -314
- package/components/initialize.js +312 -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-c22c22090f.system.entry.js → p-00e75d0c35.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-187e7da1ed.entry.js → p-0f9d3cbaaf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b46a35c33c.system.entry.js → p-108886df74.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cb0d5c384b.system.entry.js → p-11447dc62e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fb87f31739.system.entry.js → p-13d1a22814.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fe6d53dfdf.system.entry.js → p-14901b6156.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7c074055e7.system.entry.js → p-1812c4e712.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a7b46eaa9f.system.entry.js → p-190cd62ab2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-225aca33c2.entry.js → p-1ba2dc4b48.entry.js} +1 -1
- package/dist/baloise-design-system/{p-15f77798ad.entry.js → p-1cc159802a.entry.js} +1 -1
- package/dist/baloise-design-system/p-1d482bc569.entry.js +1 -0
- package/dist/baloise-design-system/{p-a0737d5595.entry.js → p-1d78f65898.entry.js} +1 -1
- package/dist/baloise-design-system/p-1e142b10.system.js +1 -0
- package/dist/baloise-design-system/{p-e0a3b80c8c.system.entry.js → p-24898ae0b6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5c31de6847.system.entry.js → p-259e90ef2b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ea8491b628.entry.js → p-277384b233.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a8a62f0a85.system.entry.js → p-28afd9707f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-221c096477.entry.js → p-28fbcf6fc9.entry.js} +1 -1
- package/dist/baloise-design-system/p-294f38c2.js +1 -0
- package/dist/baloise-design-system/{p-f2234a5a71.entry.js → p-29908af0fd.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5c7352eada.entry.js → p-3113f8a2a0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8d49461b8f.entry.js → p-32322fa69a.entry.js} +1 -1
- package/dist/baloise-design-system/p-3913c6ae.js +1 -1
- package/dist/baloise-design-system/{p-b4b88e4c03.system.entry.js → p-3928a3ae1f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-29709a5fee.system.entry.js → p-394ab784d8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4d857d11b6.system.entry.js → p-3a022b8d82.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ebecd76c66.system.entry.js → p-3c02768646.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7ddbde5c84.entry.js → p-3f3ebc8590.entry.js} +1 -1
- package/dist/baloise-design-system/p-3f6d4b4d69.entry.js +1 -0
- package/dist/baloise-design-system/{p-448d3298a1.entry.js → p-3f86c5d396.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c9cbfd5a61.entry.js → p-4026221074.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fb4f6a95a6.entry.js → p-40977d8619.entry.js} +1 -1
- package/dist/baloise-design-system/p-42e06975cf.system.entry.js +2 -0
- package/dist/baloise-design-system/p-42e66219.system.js +1 -0
- package/dist/baloise-design-system/{p-e6d0ea6084.entry.js → p-45d566bdc2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4c9ac6263c.entry.js → p-470ce384f4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9a00ac7fc8.system.entry.js → p-471441221c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-327cd52735.entry.js → p-47d8602fd8.entry.js} +1 -1
- package/dist/baloise-design-system/p-47f0669a.js +1 -0
- package/dist/baloise-design-system/p-4a2f22bde2.entry.js +1 -0
- package/dist/baloise-design-system/{p-774cad80b8.entry.js → p-4d4dd885fc.entry.js} +1 -1
- package/dist/baloise-design-system/{p-40d5ef4e.system.js → p-4ff06c10.system.js} +1 -1
- package/dist/baloise-design-system/p-50084ba924.entry.js +1 -0
- package/dist/baloise-design-system/{p-1288c2ed8a.entry.js → p-50e3e41042.entry.js} +1 -1
- package/dist/baloise-design-system/{p-607d361ba3.system.entry.js → p-513711e292.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b51a692e99.entry.js → p-5218b32665.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4155b8f059.system.entry.js → p-52a97b97f8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-253668db69.entry.js → p-57b6f2900e.entry.js} +1 -1
- package/dist/baloise-design-system/p-58c4ff0652.entry.js +1 -0
- package/dist/baloise-design-system/{p-908a7c5cfd.system.entry.js → p-5d84d62ded.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5429e0223f.system.entry.js → p-60a5335ef1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0ad80f603a.entry.js → p-60c0470d4a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4bc159376b.system.entry.js → p-61f268e54c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0e506e98e2.system.entry.js → p-63297f8b3b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-659ecadc.system.js +1 -1
- package/dist/baloise-design-system/{p-8723e490bf.system.entry.js → p-68a9ea13a0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9ed80c87cf.entry.js → p-68bcae4459.entry.js} +1 -1
- package/dist/baloise-design-system/{p-191459a962.entry.js → p-69ceb45b58.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3a0896c8a9.entry.js → p-6ad9cc1e47.entry.js} +1 -1
- package/dist/baloise-design-system/{p-702d0efef4.entry.js → p-6bf85d5757.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bfb6c67686.entry.js → p-6ce02b4115.entry.js} +1 -1
- package/dist/baloise-design-system/{p-75051cae.js → p-6d3611d0.js} +1 -1
- package/dist/baloise-design-system/{p-0b851cd59c.system.entry.js → p-704811f555.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7467605b28.entry.js +1 -0
- package/dist/baloise-design-system/{p-eeb954c6bc.system.entry.js → p-74cf083d69.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4e7c82ad7e.system.entry.js → p-7a3ec63587.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-421a77b6c1.system.entry.js → p-7c0a5504e1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dce0104d78.system.entry.js → p-7f87eea164.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cca78c7a8e.entry.js → p-82c5915caf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-456114b8.system.js → p-83512f21.system.js} +1 -1
- package/dist/baloise-design-system/{p-7496834468.system.entry.js → p-8441200b01.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-84fb413164.entry.js +1 -0
- package/dist/baloise-design-system/{p-808cc1fd05.entry.js → p-86997be9b6.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5d9f23045a.system.entry.js → p-8839179d19.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1b7a378e4b.system.entry.js → p-8849d53f7c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0242cdf474.entry.js → p-89d4432ac2.entry.js} +1 -1
- package/dist/baloise-design-system/p-8e38507542.entry.js +1 -0
- package/dist/baloise-design-system/{p-3ae755102b.system.entry.js → p-8ffd1803be.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dcb77164fc.system.entry.js → p-9070cf534c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e3c51dd5ce.system.entry.js → p-91a7fe0fc1.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-92dc6522aa.entry.js +1 -0
- package/dist/baloise-design-system/{p-0724c5fc39.entry.js → p-96876b3902.entry.js} +1 -1
- package/dist/baloise-design-system/{p-894409314e.system.entry.js → p-97ca986ad0.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-99f58181f8.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-e6196821f7.system.entry.js → p-9b78ab02f8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-676d07ed2e.system.entry.js → p-9ca539a218.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3bcfc7b117.system.entry.js → p-9da6a64729.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9effa7fc0c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-d4996fd889.system.entry.js → p-a01e0d6335.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9276f29a07.entry.js → p-a03531a187.entry.js} +1 -1
- package/dist/baloise-design-system/{p-08ba87f822.entry.js → p-a13164e512.entry.js} +1 -1
- package/dist/baloise-design-system/p-a1d4fd7a40.entry.js +2 -0
- package/dist/baloise-design-system/{p-1b31484d81.entry.js → p-a8b8e39162.entry.js} +1 -1
- package/dist/baloise-design-system/p-a8bca4e96f.entry.js +1 -0
- package/dist/baloise-design-system/{p-3c447e2884.entry.js → p-a8f4c51f7d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-eaf6fe83b7.entry.js → p-a9cd77d64b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4b22207353.system.entry.js → p-ac2d4c2c2b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c9c007a260.entry.js → p-ac4e801e21.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9b9a37274f.system.entry.js → p-b4b81faccc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-04a8a75fb8.entry.js → p-b4c5cc3b86.entry.js} +1 -1
- package/dist/baloise-design-system/{p-eeb7176703.system.entry.js → p-b594bf568d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1f0ddd16a2.system.entry.js → p-b5e8f8c5b5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b75d2a74cd.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c4aabcc6bc.system.entry.js → p-b83e7fd17a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5f3e40e522.system.entry.js → p-ba40faa1d5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2568bb635f.entry.js → p-ba7d03dfba.entry.js} +1 -1
- package/dist/baloise-design-system/{p-447bb8d6ce.entry.js → p-bd4f20f9ed.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1d09b5700d.system.entry.js → p-c72db97c1c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-c7cf7b2c6d.entry.js +1 -0
- package/dist/baloise-design-system/{p-9c204d3ac7.entry.js → p-ca80a03f51.entry.js} +1 -1
- package/dist/baloise-design-system/{p-afabc522e1.entry.js → p-cc84750855.entry.js} +1 -1
- package/dist/baloise-design-system/{p-53093cf5c3.system.entry.js → p-cd8072c189.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3114657eb7.system.entry.js → p-cec9dcd5f0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1fd9b1f748.system.entry.js → p-cf978b7bea.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a2f19988.js → p-d0a1eb2e.js} +1 -1
- package/dist/baloise-design-system/{p-380ca15c13.system.entry.js → p-d49d8917c3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-778ff1954d.system.entry.js → p-d4f12ff22c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4857a7ee.js → p-d6cc7169.js} +1 -1
- package/dist/baloise-design-system/{p-ba23bf69be.system.entry.js → p-dc18c95e40.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-56021799ec.entry.js → p-e50a9800ba.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7bf3e88ae4.entry.js → p-e6646714bb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b7ea548704.system.entry.js → p-e85c10c09b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-864cf36d45.system.entry.js → p-e962d42c24.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4c695be0.system.js → p-ea6bb09f.system.js} +1 -1
- package/dist/baloise-design-system/{p-7b7968e8d3.system.entry.js → p-ea841a9cda.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7162e44f.system.js → p-eba64b01.system.js} +1 -1
- package/dist/baloise-design-system/{p-6e37071912.entry.js → p-eedc7103b3.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a0d0cd2901.entry.js → p-ef911c2b87.entry.js} +1 -1
- package/dist/baloise-design-system/{p-27d9d109b4.entry.js → p-f6ed5ed24a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-36a4ecfe.system.js → p-f7112913.system.js} +1 -1
- package/dist/baloise-design-system/{p-a5c70dd2dd.system.entry.js → p-f863ef794a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-93906ca075.entry.js → p-fed37bccaa.entry.js} +1 -1
- package/dist/cjs/app-globals-f63c33e7.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +62 -27
- 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 +2 -2
- package/dist/cjs/bal-card_6.cjs.entry.js +7 -7
- package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +1 -1
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-close.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-date.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/bal-field_5.cjs.entry.js +8 -8
- package/dist/cjs/bal-file-upload.cjs.entry.js +4 -4
- package/dist/cjs/bal-footer.cjs.entry.js +3 -3
- package/dist/cjs/bal-form-col_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-form.cjs.entry.js +1 -1
- package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +6 -6
- package/dist/cjs/bal-icon.cjs.entry.js +1684 -311
- package/dist/cjs/bal-input-group.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-slider.cjs.entry.js +3 -3
- package/dist/cjs/bal-input-stepper.cjs.entry.js +3 -3
- package/dist/cjs/bal-input.cjs.entry.js +1 -1
- package/dist/cjs/bal-label.cjs.entry.js +1 -1
- package/dist/cjs/bal-list_8.cjs.entry.js +10 -10
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-modal_3.cjs.entry.js +7 -7
- package/dist/cjs/bal-nav_8.cjs.entry.js +13 -13
- package/dist/cjs/bal-navbar_5.cjs.entry.js +8 -8
- 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 +1 -1
- package/dist/cjs/bal-option_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
- package/dist/cjs/bal-popup.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/bal-segment_2.cjs.entry.js +6 -6
- package/dist/cjs/bal-select_2.cjs.entry.js +6 -6
- 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 +7 -7
- package/dist/cjs/bal-step-item.cjs.entry.js +2 -2
- package/dist/cjs/bal-steps.cjs.entry.js +3 -3
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +7 -7
- package/dist/cjs/bal-table.cjs.entry.js +1 -1
- package/dist/cjs/bal-tag_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-textarea.cjs.entry.js +1 -1
- package/dist/cjs/bal-time-input.cjs.entry.js +1 -1
- package/dist/cjs/bal-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-90762be4.js → breakpoints.decorator-d3231bd0.js} +1 -1
- package/dist/cjs/{breakpoints.subject-7ee9fb88.js → breakpoints.subject-13aeda38.js} +1 -1
- package/dist/cjs/{app-globals-0d8db19e.js → global-2a76769b.js} +2 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-2e8978a4.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{tokens.esm-aa5d038b.js → tokens.esm-c7d8932a.js} +1 -1
- package/dist/cjs/{window-resize.decorator-30d9f5ca.js → window-resize.decorator-c4dc5543.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.css +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +77 -12
- package/dist/collection/components/bal-accordion/bal-accordion.i18n.js +20 -20
- 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-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.js +1 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +1 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +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.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-date/bal-date.js +1 -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.js +2 -2
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +4 -4
- 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.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 +85 -8
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +2 -2
- package/dist/collection/components/bal-input/bal-input.js +1 -1
- package/dist/collection/components/bal-input-group/bal-input-group.js +1 -1
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +3 -3
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +3 -3
- package/dist/collection/components/bal-label/bal-label.js +1 -1
- 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.js +5 -5
- 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-navbar/bal-navbar-brand/bal-navbar-brand.js +1 -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 +1 -1
- package/dist/collection/components/bal-option/bal-option.js +1 -1
- package/dist/collection/components/bal-option-list/bal-option-list.js +1 -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-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.js +1 -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 +5 -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-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.js +2 -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 +1 -1
- package/dist/collection/components/bal-text/bal-text.js +2 -2
- package/dist/collection/components/bal-textarea/bal-textarea.js +1 -1
- package/dist/collection/components/bal-time-input/bal-time-input.js +1 -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/constants/version.constant.js +1 -1
- package/dist/esm/app-globals-1ecf000f.js +5 -0
- package/dist/esm/bal-accordion_4.entry.js +62 -27
- 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 +2 -2
- package/dist/esm/bal-card_6.entry.js +7 -7
- package/dist/esm/bal-carousel_2.entry.js +4 -4
- package/dist/esm/bal-checkbox-button.entry.js +1 -1
- package/dist/esm/bal-checkbox_2.entry.js +1 -1
- package/dist/esm/bal-close.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/bal-date-calendar_2.entry.js +3 -3
- package/dist/esm/bal-date.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/bal-field_5.entry.js +8 -8
- package/dist/esm/bal-file-upload.entry.js +4 -4
- package/dist/esm/bal-footer.entry.js +3 -3
- package/dist/esm/bal-form-col_2.entry.js +3 -3
- package/dist/esm/bal-form.entry.js +1 -1
- package/dist/esm/bal-heading_2.entry.js +3 -3
- package/dist/esm/bal-hint_5.entry.js +6 -6
- package/dist/esm/bal-icon.entry.js +1684 -311
- package/dist/esm/bal-input-group.entry.js +1 -1
- package/dist/esm/bal-input-slider.entry.js +3 -3
- package/dist/esm/bal-input-stepper.entry.js +3 -3
- package/dist/esm/bal-input.entry.js +1 -1
- package/dist/esm/bal-label.entry.js +1 -1
- package/dist/esm/bal-list_8.entry.js +10 -10
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-modal_3.entry.js +7 -7
- package/dist/esm/bal-nav_8.entry.js +13 -13
- package/dist/esm/bal-navbar_5.entry.js +8 -8
- 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 +1 -1
- package/dist/esm/bal-option_2.entry.js +2 -2
- package/dist/esm/bal-pagination.entry.js +7 -7
- package/dist/esm/bal-popup.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/bal-segment_2.entry.js +6 -6
- package/dist/esm/bal-select_2.entry.js +6 -6
- 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 +7 -7
- package/dist/esm/bal-step-item.entry.js +2 -2
- package/dist/esm/bal-steps.entry.js +3 -3
- package/dist/esm/bal-tab-item_2.entry.js +7 -7
- package/dist/esm/bal-table.entry.js +1 -1
- package/dist/esm/bal-tag_2.entry.js +2 -2
- package/dist/esm/bal-textarea.entry.js +1 -1
- package/dist/esm/bal-time-input.entry.js +1 -1
- package/dist/esm/bal-tooltip.entry.js +1 -1
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-2074b85a.js → breakpoints.decorator-ad70a895.js} +1 -1
- package/dist/esm/{breakpoints.subject-3329beee.js → breakpoints.subject-1bcc9ebd.js} +1 -1
- package/dist/esm/{app-globals-5dd5fe6b.js → global-6e86728b.js} +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-be160cc4.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{tokens.esm-9895930d.js → tokens.esm-82a8ee29.js} +1 -1
- package/dist/esm/{window-resize.decorator-9c64a902.js → window-resize.decorator-53a321cc.js} +1 -1
- package/dist/esm-es5/app-globals-1ecf000f.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 +2 -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-2074b85a.js → breakpoints.decorator-ad70a895.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-3329beee.js → breakpoints.subject-1bcc9ebd.js} +1 -1
- package/dist/esm-es5/global-6e86728b.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-be160cc4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{window-resize.decorator-9c64a902.js → window-resize.decorator-53a321cc.js} +1 -1
- package/dist/html.html-data.json +24 -1
- package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +42 -1
- package/dist/types/components/bal-accordion/bal-accordion.interfaces.d.ts +1 -0
- package/dist/types/components/bal-icon/bal-icon.d.ts +21 -2
- package/dist/types/components/bal-icon/bal-icon.interfaces.d.ts +1 -0
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +63 -2
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/package.json +7 -6
- package/dist/baloise-design-system/p-002d7bb9.js +0 -1
- package/dist/baloise-design-system/p-01d99206b2.entry.js +0 -1
- package/dist/baloise-design-system/p-309f1f7d4e.entry.js +0 -1
- package/dist/baloise-design-system/p-345aa92d.system.js +0 -1
- package/dist/baloise-design-system/p-35ca0dde1e.entry.js +0 -1
- package/dist/baloise-design-system/p-36f131eec6.entry.js +0 -1
- package/dist/baloise-design-system/p-3cfd6d7831.entry.js +0 -1
- package/dist/baloise-design-system/p-4d9a45256c.entry.js +0 -1
- package/dist/baloise-design-system/p-5c6d332a4e.entry.js +0 -1
- package/dist/baloise-design-system/p-5d6f66047b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6c29304485.system.entry.js +0 -1
- package/dist/baloise-design-system/p-76e1b06450.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7c4d5ab726.entry.js +0 -1
- package/dist/baloise-design-system/p-8255d835fe.entry.js +0 -1
- package/dist/baloise-design-system/p-a1d210ca31.entry.js +0 -1
- package/dist/baloise-design-system/p-bab48d7af7.entry.js +0 -1
- package/dist/esm-es5/app-globals-5dd5fe6b.js +0 -1
- /package/dist/baloise-design-system/{p-105f0019.system.js → p-2237907a.system.js} +0 -0
- /package/dist/baloise-design-system/{p-8b3520e9.js → p-d13e5666.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-9895930d.js → tokens.esm-82a8ee29.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 = '18.2.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 = '18.3.0-nightly.20250401';
|
|
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 };
|