@baloise/ds-core 19.8.2 → 19.8.3-nightly.20251110
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/animation.decorator.js +1 -1
- package/components/bal-accordion-details.js +6 -4
- package/components/bal-accordion-summary.js +7 -5
- package/components/bal-accordion-trigger.js +7 -5
- package/components/bal-accordion.js +9 -7
- package/components/bal-app.js +1 -98
- package/components/bal-app2.js +104 -0
- package/components/bal-badge2.js +6 -4
- package/components/bal-button-group2.js +5 -3
- package/components/bal-button2.js +6 -4
- package/components/bal-card-actions.js +5 -3
- package/components/bal-card-button.js +5 -3
- package/components/bal-card-content2.js +5 -3
- package/components/bal-card-subtitle.js +5 -3
- package/components/bal-card-title.js +5 -3
- package/components/bal-card2.js +5 -3
- package/components/bal-carousel-item.js +6 -4
- package/components/bal-carousel.js +21 -22
- package/components/bal-check2.js +5 -3
- package/components/bal-checkbox-group.js +8 -6
- package/components/bal-checkbox2.js +7 -5
- package/components/bal-close2.js +8 -6
- package/components/bal-content2.js +5 -3
- package/components/bal-data-item.js +5 -3
- package/components/bal-data-label.js +5 -3
- package/components/bal-data-value.js +7 -5
- package/components/bal-data.js +5 -3
- package/components/bal-date-calendar-cell2.js +5 -3
- package/components/bal-date-calendar2.js +20 -33
- package/components/bal-date.js +12 -10
- package/components/bal-divider.js +5 -3
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +264 -0
- package/components/bal-dropdown.js +22 -25
- package/components/bal-field-control.js +5 -3
- package/components/bal-field-hint.js +7 -9
- package/components/bal-field-label.js +5 -3
- package/components/bal-field-message.js +5 -3
- package/components/bal-field.js +9 -7
- package/components/bal-file-upload.js +15 -22
- package/components/bal-footer.js +10 -8
- package/components/bal-form-col.js +7 -5
- package/components/bal-form-grid.js +5 -3
- package/components/bal-form.js +6 -4
- package/components/bal-heading2.js +6 -4
- package/components/bal-hint-text2.js +5 -3
- package/components/bal-hint-title2.js +5 -3
- package/components/bal-hint2.js +10 -8
- package/components/bal-icon2.js +6 -4
- package/components/bal-input-date2.js +10 -8
- package/components/bal-input-group2.js +6 -4
- package/components/bal-input-slider.js +11 -9
- package/components/bal-input-stepper.js +1028 -1057
- package/components/bal-input.js +6 -4
- package/components/bal-label2.js +9 -7
- package/components/bal-list-item-accordion-body2.js +11 -10
- package/components/bal-list-item-accordion-head2.js +10 -8
- package/components/bal-list-item-content2.js +5 -3
- package/components/bal-list-item-icon2.js +5 -3
- package/components/bal-list-item-subtitle2.js +5 -3
- package/components/bal-list-item-title2.js +5 -3
- package/components/bal-list-item2.js +6 -4
- package/components/bal-list2.js +6 -4
- package/components/bal-logo2.js +6 -4
- package/components/bal-modal-body.js +5 -3
- package/components/bal-modal-header.js +6 -4
- package/components/bal-modal.js +29 -27
- package/components/bal-nav-link-grid-col2.js +5 -3
- package/components/bal-nav-link-grid2.js +5 -3
- package/components/bal-nav-link-group.js +5 -3
- package/components/bal-nav-link2.js +7 -5
- package/components/bal-nav-menu-bar2.js +6 -4
- package/components/bal-nav-menu-flyout2.js +7 -6
- package/components/bal-nav-meta-bar2.js +7 -5
- package/components/bal-nav.js +31 -53
- package/components/bal-navbar-brand.js +8 -6
- package/components/bal-navbar-menu-end.js +5 -3
- package/components/bal-navbar-menu-start.js +5 -3
- package/components/bal-navbar-menu.js +5 -3
- package/components/bal-navbar.js +5 -3
- package/components/bal-notices.js +6 -4
- package/components/bal-notification.js +5 -3
- package/components/bal-number-input.js +8 -6
- package/components/bal-option-list.js +8 -6
- package/components/bal-option.js +7 -5
- package/components/bal-pagination.js +7 -5
- package/components/bal-popover-content2.js +7 -5
- package/components/bal-popover2.js +7 -5
- package/components/bal-popup2.js +9 -7
- package/components/bal-progress-bar.js +8 -7
- package/components/bal-radio-group.js +8 -6
- package/components/bal-radio-icon2.js +5 -3
- package/components/bal-radio2.js +6 -4
- package/components/bal-segment-item.js +7 -5
- package/components/bal-segment.js +11 -11
- package/components/bal-select-option2.js +5 -3
- package/components/bal-select2.js +13 -11
- package/components/bal-shape2.js +9 -7
- package/components/bal-sheet.js +5 -3
- package/components/bal-snackbar.js +7 -5
- package/components/bal-spinner2.js +8 -6
- package/components/bal-stack2.js +5 -3
- package/components/bal-stage-back-link.js +7 -5
- package/components/bal-stage-body.js +6 -4
- package/components/bal-stage-foot.js +6 -4
- package/components/bal-stage-head.js +6 -4
- package/components/bal-stage-image.js +8 -6
- package/components/bal-stage.js +5 -3
- package/components/bal-step-item.js +7 -5
- package/components/bal-steps.js +13 -17
- package/components/bal-switch.js +6 -4
- package/components/bal-tab-item.js +7 -5
- package/components/bal-table.js +6 -4
- package/components/bal-tabs2.js +29 -42
- package/components/bal-tag-group.js +5 -3
- package/components/bal-tag2.js +7 -5
- package/components/bal-text.js +5 -3
- package/components/bal-textarea.js +6 -4
- package/components/bal-time-input.js +8 -6
- package/components/bal-toast.js +6 -4
- package/components/bal-tooltip.js +7 -5
- package/components/breakpoints.subject.js +79 -5
- package/components/config.default.js +1 -1
- package/components/config.utils.js +1 -1
- package/components/element-states.decorator.js +1 -1
- package/components/floating-ui.js +1 -1
- package/components/focus.decorator.js +1 -1
- package/components/helpers.js +2 -2
- package/components/index.js +10 -326
- package/components/initialize.js +441 -0
- package/components/mutation.decorator.js +1 -1
- package/components/overlays.js +1 -1
- package/components/resize.decorator.js +1 -1
- package/components/swipe.subject.js +1 -1
- package/components/swiper.util.js +4 -9
- package/components/tokens.esm.js +2 -2
- package/components/visibility.decorator.js +1 -1
- package/components/window-resize.decorator.js +24 -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-00bc3e9699.system.entry.js +1 -0
- package/dist/baloise-design-system/p-01c556671d.system.entry.js +1 -0
- package/dist/baloise-design-system/p-06ae31c81e.entry.js +1 -0
- package/dist/baloise-design-system/p-06bXsI9A.system.js +1 -0
- package/dist/baloise-design-system/p-06d6d65df7.entry.js +1 -0
- package/dist/baloise-design-system/p-07cd3d2e40.entry.js +1 -0
- package/dist/baloise-design-system/p-08644e325b.entry.js +1 -0
- package/dist/baloise-design-system/p-0b8fd4ec15.entry.js +1 -0
- package/dist/baloise-design-system/p-0dadba9150.system.entry.js +1 -0
- package/dist/baloise-design-system/p-167806fc44.entry.js +1 -0
- package/dist/baloise-design-system/p-17fb47d0d4.entry.js +1 -0
- package/dist/baloise-design-system/p-1a8c916cc0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1b1fdadab3.entry.js +1 -0
- package/dist/baloise-design-system/p-1be9313de6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1cfc8fedc1.entry.js +1 -0
- package/dist/baloise-design-system/{p-aa6b291c05.entry.js → p-1f011724dd.entry.js} +1 -1
- package/dist/baloise-design-system/p-2264ba1f28.entry.js +1 -0
- package/dist/baloise-design-system/{p-6bb94607cc.entry.js → p-23537928fa.entry.js} +1 -1
- package/dist/baloise-design-system/p-261f0c83c1.entry.js +1 -0
- package/dist/baloise-design-system/p-26764b092e.entry.js +1 -0
- package/dist/baloise-design-system/p-2be4cdf378.system.entry.js +1 -0
- package/dist/baloise-design-system/p-2d57df519d.entry.js +1 -0
- package/dist/baloise-design-system/p-2d8dd4be3a.entry.js +1 -0
- package/dist/baloise-design-system/{p-5233b94b59.system.entry.js → p-2dbbdfb785.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3189fa7942.entry.js +1 -0
- package/dist/baloise-design-system/p-3418645d64.system.entry.js +1 -0
- package/dist/baloise-design-system/p-3717f4438f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-42801b7e0c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-43878b51c9.system.entry.js +1 -0
- package/dist/baloise-design-system/p-440fb2470e.entry.js +1 -0
- package/dist/baloise-design-system/p-4657486988.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6f8769f0fd.entry.js → p-469503b436.entry.js} +1 -1
- package/dist/baloise-design-system/p-486be602a5.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4Y53iwfN.system.js +1 -0
- package/dist/baloise-design-system/p-4c12fc1e8f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4d22a5895d.entry.js +1 -0
- package/dist/baloise-design-system/p-527bf6171c.entry.js +1 -0
- package/dist/baloise-design-system/p-5439c93408.entry.js +1 -0
- package/dist/baloise-design-system/p-56535b513e.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-34251be01a.entry.js → p-5965694a0f.entry.js} +1 -1
- package/dist/baloise-design-system/p-5a1125cbec.entry.js +1 -0
- package/dist/baloise-design-system/p-5c583159db.entry.js +1 -0
- package/dist/baloise-design-system/{p-85453d4b0a.system.entry.js → p-5d95c50514.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-5e4a2342f3.entry.js +1 -0
- package/dist/baloise-design-system/p-5f58645dbb.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5f8ae628c4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-60ab46a87c.entry.js +1 -0
- package/dist/baloise-design-system/p-61b696962e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-6da83fc08c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-70bdd60500.system.entry.js +1 -0
- package/dist/baloise-design-system/p-71ab949cfb.system.entry.js +1 -0
- package/dist/baloise-design-system/p-73a84e687d.entry.js +1 -0
- package/dist/baloise-design-system/{p-46048d30b3.system.entry.js → p-75f3abf19e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5437056c7e.system.entry.js → p-76fdd28025.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-77045369a5.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7e55f97a9b.entry.js +1 -0
- package/dist/baloise-design-system/p-7e6c509606.entry.js +1 -0
- package/dist/baloise-design-system/p-80cae9282e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-84d321b4f8.entry.js +1 -0
- package/dist/baloise-design-system/p-84de20be7c.entry.js +1 -0
- package/dist/baloise-design-system/p-85428cc869.entry.js +1 -0
- package/dist/baloise-design-system/p-8670cb3845.entry.js +1 -0
- package/dist/baloise-design-system/{p-0d618c466b.system.entry.js → p-88c626a221.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8b3958b0a1.entry.js +1 -0
- package/dist/baloise-design-system/p-8cff569252.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-85f99546f7.system.entry.js → p-8da6979637.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-90d225c57c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-93311a064b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-93bba463b3.system.entry.js +1 -0
- package/dist/baloise-design-system/p-94f54b5ec2.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-60249e3303.system.entry.js → p-967ff349ed.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-96bf290c11.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-a968e7d20a.entry.js → p-996075a13e.entry.js} +1 -1
- package/dist/baloise-design-system/p-B-L34nz8.js +1 -0
- package/dist/baloise-design-system/p-B1u-Mq75.js +1 -0
- package/dist/baloise-design-system/p-B6vQsAz6.system.js +1 -0
- package/dist/baloise-design-system/p-B9BMZmYk.js +1 -0
- package/dist/baloise-design-system/p-BCtb7Ny9.system.js +1 -0
- package/dist/baloise-design-system/{p-D1VPLQ5z.js → p-BERg8BNc.js} +1 -1
- package/dist/baloise-design-system/{p-4RggM_kM.js → p-BIF5qtzE.js} +1 -1
- package/dist/baloise-design-system/p-BM_oHMik.system.js +1 -0
- package/dist/baloise-design-system/p-BNWt5z9B.system.js +1 -0
- package/dist/baloise-design-system/p-B_C7V4Sa.js +1 -0
- package/dist/baloise-design-system/p-Ba5qjFjW.js +1 -0
- package/dist/baloise-design-system/p-BblIE2Vz.system.js +1 -0
- package/dist/baloise-design-system/p-BdVwMG9u.js +2 -0
- package/dist/baloise-design-system/p-Bno1rIf-.js +1 -0
- package/dist/baloise-design-system/p-BpMXwP_q.system.js +1 -0
- package/dist/baloise-design-system/p-BtgFoKGn.js +1 -0
- package/dist/baloise-design-system/p-BwTzTXZG.js +1 -0
- package/dist/baloise-design-system/{p-Zfrf1YrK.js → p-C20cwFWy.js} +1 -1
- package/dist/baloise-design-system/{p-C8rDagP9.system.js → p-C6x8G3mu.system.js} +1 -1
- package/dist/baloise-design-system/p-CDeyBUqm.system.js +1 -0
- package/dist/baloise-design-system/p-CHB5cQPr.js +1 -0
- package/dist/baloise-design-system/{p-CzMY8q3l.js → p-CI2FR64u.js} +1 -1
- package/dist/baloise-design-system/p-CLDmOIBx.system.js +1 -0
- package/dist/baloise-design-system/p-CTuoH3RE.system.js +1 -0
- package/dist/baloise-design-system/p-CXAw6SMX.system.js +1 -0
- package/dist/baloise-design-system/p-C_0MGoKB.js +1 -0
- package/dist/baloise-design-system/p-Cam_G4gg.system.js +1 -0
- package/dist/baloise-design-system/{p-lN4h2Pow.js → p-CeIZ5hSt.js} +1 -1
- package/dist/baloise-design-system/p-CeRECGC7.js +1 -0
- package/dist/baloise-design-system/p-CjLBufZf.js +1 -0
- package/dist/baloise-design-system/{p-CzSV5e8r.js → p-CpDHeXfo.js} +1 -1
- package/dist/baloise-design-system/p-CpsUiYOl.system.js +1 -0
- package/dist/baloise-design-system/{p-m9_QZ3Uf.system.js → p-CvHtWfhm.system.js} +1 -1
- package/dist/baloise-design-system/{p-CInq3uzG.system.js → p-CzkO3G_2.system.js} +1 -1
- package/dist/baloise-design-system/p-D1opIX9W.system.js +1 -0
- package/dist/baloise-design-system/p-D7M-7v58.js +1 -0
- package/dist/baloise-design-system/p-D7_eHNTI.system.js +1 -0
- package/dist/baloise-design-system/p-D7ovid3w.js +1 -0
- package/dist/baloise-design-system/{p-D4gL5qCn.system.js → p-DDPYMMGG.system.js} +1 -1
- package/dist/baloise-design-system/p-DNy7adIE.system.js +1 -0
- package/dist/baloise-design-system/{p-CpCwptFO.js → p-DOUIg6bI.js} +1 -1
- package/dist/baloise-design-system/p-DST0VloN.system.js +1 -0
- package/dist/baloise-design-system/p-DV-2u4Pm.system.js +1 -0
- package/dist/baloise-design-system/p-DWgCJRpS.system.js +1 -1
- package/dist/baloise-design-system/{p-C9hJ2TuZ.system.js → p-DdX8FaaK.system.js} +1 -1
- package/dist/baloise-design-system/p-DowF7e07.system.js +1 -0
- package/dist/baloise-design-system/{p-B5KM7rHn.js → p-Dp4edqFK.js} +1 -1
- package/dist/baloise-design-system/p-DsxGYykr.js +1 -0
- package/dist/baloise-design-system/{p-SdtgSPca.system.js → p-DtlqgdI2.system.js} +1 -1
- package/dist/baloise-design-system/{p-9kAhgg3Z.js → p-Dvgek0Sb.js} +1 -1
- package/dist/baloise-design-system/p-Dz-E2PRm.system.js +1 -1
- package/dist/baloise-design-system/p-DzPJ4kvt.system.js +1 -0
- package/dist/baloise-design-system/p-IZFfLjcz.js +1 -0
- package/dist/baloise-design-system/{p-DXtc2jog.system.js → p-LCYlRPr6.system.js} +1 -1
- package/dist/baloise-design-system/{p-cH5PDB1i.js → p-MBsgW7uz.js} +1 -1
- package/dist/baloise-design-system/p-PNu_g_s6.system.js +2 -0
- package/dist/baloise-design-system/p-TqRS9XF1.system.js +1 -0
- package/dist/baloise-design-system/{p-DXVk9Ina.js → p-ZalPEZLa.js} +1 -1
- package/dist/baloise-design-system/p-a17017ddc0.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-48180ac5f9.system.entry.js → p-a2abd2bae3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-27c4c637c1.system.entry.js → p-a494f5de47.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a4ba08cb91.system.entry.js +1 -0
- package/dist/baloise-design-system/p-a97c5309f7.entry.js +1 -0
- package/dist/baloise-design-system/p-b03de8e7ba.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b098a19ef7.entry.js +1 -0
- package/dist/baloise-design-system/p-b0b5fa7a40.entry.js +1 -0
- package/dist/baloise-design-system/p-b38b2e9484.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b48bcd0098.entry.js +1 -0
- package/dist/baloise-design-system/p-b62daadd38.entry.js +1 -0
- package/dist/baloise-design-system/{p-b06c400104.entry.js → p-b66021b38c.entry.js} +1 -1
- package/dist/baloise-design-system/p-b68d7f33b5.entry.js +1 -0
- package/dist/baloise-design-system/p-b81b635342.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b9be7f4ef6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-bb955ec336.entry.js +1 -0
- package/dist/baloise-design-system/p-be43702758.entry.js +1 -0
- package/dist/baloise-design-system/p-bf4f338b08.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c2136842fd.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c291d986ba.entry.js +1 -0
- package/dist/baloise-design-system/p-c3af6cc44a.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c5f5d18004.entry.js +1 -0
- package/dist/baloise-design-system/p-c78c0dd43a.entry.js +1 -0
- package/dist/baloise-design-system/p-c8a8ed7a61.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c983f0df44.entry.js +1 -0
- package/dist/baloise-design-system/p-cbc17a1f06.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ccf29475c6.entry.js +1 -0
- package/dist/baloise-design-system/p-cf749f385e.entry.js +1 -0
- package/dist/baloise-design-system/{p-09bcea6590.entry.js → p-d04073fca3.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f5da815d40.system.entry.js → p-d680dc3dd0.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d846f14080.system.entry.js +1 -0
- package/dist/baloise-design-system/p-d97f45c07f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-dbb9b3b5e2.system.entry.js +1 -0
- package/dist/baloise-design-system/p-dde1a53fbc.system.entry.js +1 -0
- package/dist/baloise-design-system/p-df0264e119.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e03203e89d.entry.js +1 -0
- package/dist/baloise-design-system/p-e2296eb10b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e988e88636.entry.js +1 -0
- package/dist/baloise-design-system/p-ea29fa4382.entry.js +1 -0
- package/dist/baloise-design-system/p-eb726f11fd.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ef841ce7eb.system.entry.js +1 -0
- package/dist/baloise-design-system/p-f12905324e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-f2773433fa.system.entry.js +1 -0
- package/dist/baloise-design-system/p-f348ec6012.entry.js +1 -0
- package/dist/baloise-design-system/{p-845bb5b65f.entry.js → p-f7b16f08ab.entry.js} +1 -1
- package/dist/baloise-design-system/p-f9a22579af.entry.js +1 -0
- package/dist/baloise-design-system/{p-09dea19d2d.entry.js → p-fdb00a8fdc.entry.js} +1 -1
- package/dist/baloise-design-system/p-hcWLO6Gg.js +1 -0
- package/dist/baloise-design-system/{p-hMjQnp7y.js → p-iPagImQC.js} +1 -1
- package/dist/baloise-design-system/{p-BUT7svFW.js → p-j851_ZaC.js} +1 -1
- package/dist/baloise-design-system/p-jQQqRgMt.system.js +1 -0
- package/dist/baloise-design-system/p-q0o_ZUxe.js +1 -0
- package/dist/baloise-design-system/p-qBjAGKgI.system.js +1 -0
- package/dist/baloise-design-system/p-wAfnccKA.system.js +1 -0
- package/dist/baloise-design-system/{p-D4O83t4p.system.js → p-xlS5vO33.system.js} +1 -1
- package/dist/cjs/{animation.decorator-DvBKgd0w.js → animation.decorator-B4NJvcMF.js} +9 -9
- package/dist/cjs/app-globals-BDN1sd_6.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +24 -19
- package/dist/cjs/bal-app.cjs.entry.js +20 -14
- package/dist/cjs/bal-badge.cjs.entry.js +2 -2
- package/dist/cjs/bal-button_2.cjs.entry.js +5 -2
- package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +31 -29
- package/dist/cjs/bal-check.cjs.entry.js +1 -1
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +16 -12
- package/dist/cjs/bal-close.cjs.entry.js +9 -5
- package/dist/cjs/bal-content.cjs.entry.js +4 -2
- package/dist/cjs/bal-data_4.cjs.entry.js +6 -3
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +5 -2
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +33 -44
- package/dist/cjs/bal-date.cjs.entry.js +29 -25
- package/dist/cjs/bal-divider.cjs.entry.js +4 -2
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/{bal-dropdown.cjs.entry.js → bal-dropdown_3.cjs.entry.js} +635 -41
- package/dist/cjs/bal-field_5.cjs.entry.js +14 -14
- package/dist/cjs/bal-file-upload.cjs.entry.js +16 -21
- package/dist/cjs/bal-footer.cjs.entry.js +14 -9
- package/dist/cjs/bal-form-col_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-form.cjs.entry.js +7 -4
- package/dist/cjs/bal-heading_2.cjs.entry.js +4 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +22 -18
- package/dist/cjs/bal-icon.cjs.entry.js +7 -3
- package/dist/cjs/bal-input-group.cjs.entry.js +2 -2
- package/dist/cjs/bal-input-slider.cjs.entry.js +10 -7
- package/dist/cjs/bal-input-stepper.cjs.entry.js +1035 -1061
- package/dist/cjs/bal-input.cjs.entry.js +9 -5
- package/dist/cjs/bal-label.cjs.entry.js +11 -7
- package/dist/cjs/bal-list_8.cjs.entry.js +33 -29
- package/dist/cjs/bal-logo.cjs.entry.js +13 -9
- package/dist/cjs/bal-modal_3.cjs.entry.js +33 -30
- package/dist/cjs/bal-nav_8.cjs.entry.js +64 -84
- package/dist/cjs/bal-navbar_5.cjs.entry.js +19 -14
- package/dist/cjs/bal-notices_3.cjs.entry.js +2 -2
- package/dist/cjs/bal-notification.cjs.entry.js +1 -1
- package/dist/cjs/bal-number-input.cjs.entry.js +14 -9
- package/dist/cjs/bal-pagination.cjs.entry.js +13 -8
- package/dist/cjs/bal-popup.cjs.entry.js +17 -13
- package/dist/cjs/bal-progress-bar.cjs.entry.js +12 -10
- package/dist/cjs/bal-radio-icon.cjs.entry.js +1 -1
- package/dist/cjs/bal-radio_2.cjs.entry.js +16 -12
- package/dist/cjs/bal-segment_2.cjs.entry.js +24 -21
- package/dist/cjs/bal-select_2.cjs.entry.js +20 -16
- package/dist/cjs/bal-shape.cjs.entry.js +6 -6
- package/dist/cjs/bal-sheet.cjs.entry.js +1 -1
- package/dist/cjs/bal-spinner.cjs.entry.js +12 -7
- package/dist/cjs/bal-stack.cjs.entry.js +4 -2
- package/dist/cjs/bal-stage_6.cjs.entry.js +11 -8
- package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
- package/dist/cjs/bal-steps.cjs.entry.js +18 -20
- package/dist/cjs/bal-switch.cjs.entry.js +2 -2
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +55 -65
- package/dist/cjs/bal-table.cjs.entry.js +2 -2
- package/dist/cjs/bal-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-textarea.cjs.entry.js +7 -4
- package/dist/cjs/bal-time-input.cjs.entry.js +13 -8
- package/dist/cjs/bal-tooltip.cjs.entry.js +11 -7
- package/dist/cjs/baloise-design-system.cjs.js +12 -4
- package/dist/cjs/{breakpoints.decorator-Bcx5bHdk.js → breakpoints.decorator-BhTlR8ms.js} +1 -1
- package/dist/cjs/{breakpoints.subject-DyM7928g.js → breakpoints.subject-C8aZfH8x.js} +17 -16
- package/dist/cjs/browser-BwmkTmm8.js +64 -0
- package/dist/cjs/{config.decorator-D_YTqpYj.js → config.decorator-CUe4yCTd.js} +3 -3
- package/dist/cjs/config.default-Bkso4_bY.js +50 -0
- package/dist/cjs/config.utils-Civnz2jT.js +142 -0
- package/dist/cjs/{date-CA-bG6cD.js → date-BPyuc34s.js} +69 -5
- package/dist/cjs/{device-CrnZOym8.js → device-CoogBamh.js} +5 -5
- package/dist/cjs/{element-states.decorator-0udYH_TL.js → element-states.decorator-BG2oNUsO.js} +13 -12
- package/dist/cjs/{floating-ui-T_yqQ0TC.js → floating-ui-DyN44UhF.js} +2 -2
- package/dist/cjs/{focus.decorator-Bu4qsoNG.js → focus.decorator-BL2kLsNv.js} +10 -9
- package/dist/cjs/{form-input-DBZuEpuy.js → form-input-BwFB4Rej.js} +2 -2
- package/dist/cjs/global-CO1ixlqx.js +9 -0
- package/dist/cjs/helpers-HuaiWXrB.js +331 -0
- package/dist/{esm/index-BgWhYta3.js → cjs/index-feA4skrY.js} +215 -1152
- package/dist/cjs/index.cjs.js +60 -56
- package/dist/cjs/initialize-CWGvp-PN.js +448 -0
- package/dist/cjs/{listener-h1eTpBYL.js → listener-DspXpqzY.js} +2 -2
- package/dist/cjs/loader.cjs.js +11 -3
- package/dist/cjs/log-CXDMiw7o.js +80 -0
- package/dist/cjs/{mutation.decorator-C3JICFwA.js → mutation.decorator-BolUYaKD.js} +5 -5
- package/dist/cjs/{number-B6kudt4D.js → number-COdZG-wK.js} +4 -3
- package/dist/cjs/{overlays-CkF6MI3c.js → overlays-DQGlu5jj.js} +5 -4
- package/dist/cjs/{resize.decorator-Cxv0R8v_.js → resize.decorator-ChuFQ8x3.js} +6 -5
- package/dist/cjs/{scroll-DU1EZHWg.js → scroll-B_kvfDui.js} +5 -5
- package/dist/cjs/{swiper.util-B4hvYgKv.js → string-CKS6CsMi.js} +28 -32
- package/dist/cjs/{swipe.decorator-B69SZ4Jn.js → swipe.decorator-BZYUlkYt.js} +1 -1
- package/dist/cjs/{swipe.subject-BbLTKDyB.js → swipe.subject-BaKNugDQ.js} +4 -4
- package/dist/cjs/{tokens.esm-yrgVVjY8.js → tokens.esm-2iBr6ctn.js} +1 -1
- package/dist/cjs/{visibility.decorator-CC35M6Un.js → visibility.decorator-DTARY-5M.js} +5 -5
- package/dist/cjs/window-resize.decorator-DEMQCVGu.js +48 -0
- package/dist/collection/collection-manifest.json +5 -8
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +5 -5
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +7 -7
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +12 -12
- package/dist/collection/components/bal-accordion/bal-accordion.js +13 -14
- package/dist/collection/components/bal-accordion/test/bal-accordion.visual.play.js +16 -0
- package/dist/collection/components/bal-app/bal-app.js +26 -7
- package/dist/collection/components/bal-badge/bal-badge.js +6 -6
- package/dist/collection/components/bal-badge/test/bal-badge.visual.play.js +13 -0
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +3 -3
- package/dist/collection/components/bal-button/bal-button.js +31 -31
- package/dist/collection/components/bal-button/test/bal-button.visual.play.js +32 -0
- 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 +10 -10
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +3 -3
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +1 -1
- package/dist/collection/components/bal-card/bal-card.js +9 -9
- package/dist/collection/components/bal-card/test/bal-card.visual.play.js +13 -0
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +17 -17
- package/dist/collection/components/bal-carousel/bal-carousel.js +20 -20
- package/dist/collection/components/bal-carousel/test/bal-carousel.visual.play.js +13 -0
- package/dist/collection/components/bal-checkbox/bal-check/bal-check.js +6 -6
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +13 -15
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +20 -20
- package/dist/collection/components/bal-checkbox/bal-switch/bal-switch.css +1 -1
- package/dist/collection/components/bal-checkbox/bal-switch/bal-switch.js +5 -5
- package/dist/collection/components/bal-checkbox/test/bal-checkbox-icons.visual.play.js +13 -0
- package/dist/collection/components/bal-checkbox/test/bal-checkbox-tiles.visual.play.js +13 -0
- package/dist/collection/components/bal-checkbox/test/bal-checkbox.visual.play.js +30 -0
- package/dist/collection/components/bal-close/bal-close.js +4 -4
- package/dist/collection/components/bal-close/test/bal-close.visual.play.js +13 -0
- package/dist/collection/components/bal-content/bal-content.js +5 -5
- package/dist/collection/components/bal-content/test/bal-content.visual.play.js +13 -0
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +2 -2
- 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 +6 -6
- package/dist/collection/components/bal-data/bal-data.js +2 -2
- package/dist/collection/components/bal-data/test/bal-data.visual.play.js +13 -0
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +13 -14
- package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__nav.js +2 -2
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +13 -13
- package/dist/collection/components/bal-date/bal-date.js +26 -27
- package/dist/collection/components/bal-date/test/bal-date.visual.play.js +24 -0
- package/dist/collection/components/bal-divider/bal-divider.js +4 -4
- package/dist/collection/components/bal-divider/test/bal-divider.visual.play.js +13 -0
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +21 -22
- package/dist/collection/components/bal-dropdown/test/bal-dropdown.visual.play.js +85 -0
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +4 -4
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +4 -4
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +8 -8
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +6 -6
- package/dist/collection/components/bal-field/bal-field.js +11 -11
- package/dist/collection/components/bal-field/test/bal-field-horizontal.visual.play.js +13 -0
- package/dist/collection/components/bal-field/test/bal-field.visual.play.js +26 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +25 -27
- package/dist/collection/components/bal-file-upload/test/bal-file-upload.visual.play.js +13 -0
- package/dist/collection/components/bal-footer/bal-footer.js +5 -6
- package/dist/collection/components/bal-footer/test/bal-footer.visual.play.js +42 -0
- package/dist/collection/components/bal-form/bal-form.js +4 -4
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +3 -3
- package/dist/collection/components/bal-form-grid/test/bal-form-grid.visual.play.js +13 -0
- package/dist/collection/components/bal-heading/bal-heading.js +14 -14
- package/dist/collection/components/bal-heading/test/bal-heading.visual.play.js +24 -0
- package/dist/collection/components/bal-hint/bal-hint.css +1 -1
- package/dist/collection/components/bal-hint/bal-hint.js +3 -3
- package/dist/collection/components/bal-hint/test/bal-hint.visual.play.js +15 -0
- package/dist/collection/components/bal-icon/bal-icon.js +16 -16
- package/dist/collection/components/bal-icon/test/bal-icon.visual.play.js +13 -0
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +19 -19
- package/dist/collection/components/bal-input/bal-input.js +41 -41
- package/dist/collection/components/bal-input/test/bal-input.visual.play.js +13 -0
- package/dist/collection/components/bal-input-group/bal-input-group.js +4 -4
- package/dist/collection/components/bal-input-group/test/bal-input-group.visual.play.js +26 -0
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +19 -19
- package/dist/collection/components/bal-input-slider/test/bal-input-slider.visual.play.js +13 -0
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +11 -11
- package/dist/collection/components/bal-input-stepper/test/bal-input-stepper.visual.play.js +13 -0
- package/dist/collection/components/bal-label/bal-label.js +15 -15
- package/dist/collection/components/bal-label/test/bal-label.visual.play.js +13 -0
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +11 -11
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +7 -7
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +4 -4
- 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 +1 -1
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +3 -3
- package/dist/collection/components/bal-list/bal-list.js +7 -7
- package/dist/collection/components/bal-list/test/bal-list.visual.play.js +13 -0
- package/dist/collection/components/bal-logo/bal-logo.js +6 -6
- package/dist/collection/components/bal-logo/test/bal-logo.visual.play.js +13 -0
- package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal.js +24 -26
- package/dist/collection/components/bal-modal/test/bal-modal.visual.play.js +13 -0
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +10 -10
- 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 +4 -4
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +8 -8
- package/dist/collection/components/bal-nav/bal-nav.js +2 -5
- package/dist/collection/components/bal-nav/test/bal-nav-colors.visual.play.js +9 -0
- package/dist/collection/components/bal-nav/test/bal-nav-long.visual.play.js +9 -0
- package/dist/collection/components/bal-nav/test/bal-nav.visual.play.js +9 -0
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +14 -14
- 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 +3 -3
- package/dist/collection/components/bal-navbar/test/bal-navbar.visual.play.js +20 -0
- package/dist/collection/components/bal-notices/bal-notices.css +1 -1
- package/dist/collection/components/bal-notices/bal-notices.js +3 -3
- package/dist/collection/components/bal-notification/bal-notification.js +3 -3
- package/dist/collection/components/bal-notification/test/bal-notification.visual.play.js +13 -0
- package/dist/collection/components/bal-number-input/bal-number-input.js +22 -22
- package/dist/collection/components/bal-number-input/test/bal-number-input.visual.play.js +13 -0
- package/dist/collection/components/bal-option/bal-option.js +9 -9
- package/dist/collection/components/bal-option/test/bal-option.visual.play.js +13 -0
- package/dist/collection/components/bal-option-list/bal-option-list.js +11 -11
- package/dist/collection/components/bal-option-list/test/bal-option-list.visual.play.js +13 -0
- package/dist/collection/components/bal-pagination/bal-pagination.js +9 -9
- package/dist/collection/components/bal-pagination/test/bal-pagination.visual.play.js +13 -0
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +11 -11
- package/dist/collection/components/bal-popover/bal-popover.js +16 -16
- package/dist/collection/components/bal-popover/test/bal-popover.visual.play.js +13 -0
- package/dist/collection/components/bal-popup/bal-popup.js +15 -15
- package/dist/collection/components/bal-popup/test/bal-popup.visual.play.js +13 -0
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +6 -6
- package/dist/collection/components/bal-progress-bar/test/bal-progress-bar.visual.play.js +13 -0
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +15 -16
- package/dist/collection/components/bal-radio/bal-radio-icon/bal-radio-icon.js +6 -6
- package/dist/collection/components/bal-radio/bal-radio.js +19 -19
- package/dist/collection/components/bal-radio/test/bal-radio-icons.visual.play.js +13 -0
- package/dist/collection/components/bal-radio/test/bal-radio-tiles.visual.play.js +13 -0
- package/dist/collection/components/bal-radio/test/bal-radio.visual.play.js +25 -0
- package/dist/collection/components/bal-radio/test/car.svg +1 -1
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +7 -7
- package/dist/collection/components/bal-segment/bal-segment.js +9 -9
- package/dist/collection/components/bal-segment/test/bal-segment.visual.play.js +13 -0
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +6 -6
- package/dist/collection/components/bal-select/bal-select.js +30 -30
- package/dist/collection/components/bal-select/test/bal-select-multiple.visual.play.js +28 -0
- package/dist/collection/components/bal-select/test/bal-select.visual.play.js +28 -0
- package/dist/collection/components/bal-shape/bal-shape.js +7 -7
- package/dist/collection/components/bal-shape/test/bal-shape.visual.play.js +13 -0
- package/dist/collection/components/bal-sheet/bal-sheet.js +1 -1
- package/dist/collection/components/bal-sheet/test/bal-sheet.visual.play.js +12 -0
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +9 -11
- package/dist/collection/components/bal-snackbar/test/bal-snackbar.visual.play.js +13 -0
- package/dist/collection/components/bal-spinner/bal-spinner.js +9 -10
- package/dist/collection/components/bal-stack/bal-stack.js +13 -13
- package/dist/collection/components/bal-stack/test/bal-stack.visual.play.js +13 -0
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +8 -8
- 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 +7 -7
- package/dist/collection/components/bal-stage/bal-stage.js +8 -8
- package/dist/collection/components/bal-stage/test/bal-stage.visual.play.js +11 -0
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +14 -14
- package/dist/collection/components/bal-steps/bal-steps.js +10 -11
- package/dist/collection/components/bal-steps/test/bal-steps.visual.play.js +13 -0
- package/dist/collection/components/bal-table/bal-table.js +2 -2
- package/dist/collection/components/bal-table/test/bal-table.visual.play.js +13 -0
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +19 -19
- package/dist/collection/components/bal-tabs/bal-tabs.js +22 -23
- package/dist/collection/components/bal-tabs/test/bal-tabs.visual.play.js +25 -0
- package/dist/collection/components/bal-tag/bal-tag.js +10 -10
- package/dist/collection/components/bal-tag/test/bal-tag.a11y.play.js +20 -0
- package/dist/collection/components/bal-tag/test/bal-tag.component.play.js +19 -0
- package/dist/collection/components/bal-tag/test/bal-tag.visual.play.js +18 -0
- package/dist/collection/components/bal-text/bal-text.js +13 -13
- package/dist/collection/components/bal-text/test/bal-text.visual.play.js +13 -0
- package/dist/collection/components/bal-textarea/bal-textarea.js +27 -27
- package/dist/collection/components/bal-textarea/test/bal-textarea.visual.play.js +13 -0
- package/dist/collection/components/bal-time-input/bal-time-input.js +9 -9
- package/dist/collection/components/bal-time-input/test/bal-time-input.visual.play.js +13 -0
- package/dist/collection/components/bal-toast/bal-toast.js +4 -5
- package/dist/collection/components/bal-toast/test/bal-toast.visual.play.js +13 -0
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +10 -10
- package/dist/collection/components/bal-tooltip/test/bal-tooltip.visual.play.js +15 -0
- 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 +248 -0
- package/dist/collection/test/css-border.visual.play.js +23 -0
- package/dist/collection/test/css-color.visual.play.js +27 -0
- package/dist/collection/test/css-core.visual.play.js +13 -0
- package/dist/collection/test/css-display.visual.play.js +19 -0
- package/dist/collection/test/css-flex.visual.play.js +21 -0
- package/dist/collection/test/css-grid.visual.play.js +23 -0
- package/dist/collection/test/css-inheritance.visual.play.js +13 -0
- package/dist/collection/test/css-opacity.visual.play.js +13 -0
- package/dist/collection/test/css-radius.visual.play.js +13 -0
- package/dist/collection/test/css-shadow.visual.play.js +13 -0
- package/dist/collection/test/css-spacing.visual.play.js +27 -0
- package/dist/collection/test/css-structure.visual.play.js +13 -0
- package/dist/collection/test/css-typography.visual.play.js +12 -0
- package/dist/collection/test/theme-compact.visual.play.js +13 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/dropdown/value.js +1 -1
- package/dist/collection/utils/focus/focus.listener.js +1 -1
- package/dist/collection/utils/helpers.js +1 -1
- package/dist/collection/utils/swipe/swipe.listener.js +1 -1
- package/dist/esm/{animation.decorator-CNK3bJ6X.js → animation.decorator-zbSqKhw6.js} +2 -2
- package/dist/esm/app-globals-BZ6_qxBr.js +5 -0
- package/dist/esm/bal-accordion_4.entry.js +12 -7
- package/dist/esm/bal-app.entry.js +10 -4
- package/dist/esm/bal-badge.entry.js +2 -2
- package/dist/esm/bal-button_2.entry.js +4 -1
- package/dist/esm/bal-card_6.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +27 -25
- package/dist/esm/bal-check.entry.js +1 -1
- package/dist/esm/bal-checkbox_2.entry.js +11 -7
- package/dist/esm/bal-close.entry.js +7 -3
- package/dist/esm/bal-content.entry.js +3 -1
- package/dist/esm/bal-data_4.entry.js +6 -3
- package/dist/esm/bal-date-calendar-cell.entry.js +5 -2
- package/dist/esm/bal-date-calendar_2.entry.js +25 -36
- package/dist/esm/bal-date.entry.js +12 -8
- package/dist/esm/bal-divider.entry.js +3 -1
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/{bal-dropdown.entry.js → bal-dropdown_3.entry.js} +613 -21
- package/dist/esm/bal-field_5.entry.js +12 -12
- package/dist/esm/bal-file-upload.entry.js +15 -20
- package/dist/esm/bal-footer.entry.js +7 -2
- package/dist/esm/bal-form-col_2.entry.js +3 -3
- package/dist/esm/bal-form.entry.js +5 -2
- package/dist/esm/bal-heading_2.entry.js +3 -2
- package/dist/esm/bal-hint_5.entry.js +17 -13
- package/dist/esm/bal-icon.entry.js +6 -2
- package/dist/esm/bal-input-group.entry.js +2 -2
- package/dist/esm/bal-input-slider.entry.js +9 -6
- package/dist/esm/bal-input-stepper.entry.js +1029 -1055
- package/dist/esm/bal-input.entry.js +7 -3
- package/dist/esm/bal-label.entry.js +8 -4
- package/dist/esm/bal-list_8.entry.js +21 -17
- package/dist/esm/bal-logo.entry.js +11 -7
- package/dist/esm/bal-modal_3.entry.js +28 -25
- package/dist/esm/bal-nav_8.entry.js +42 -62
- package/dist/esm/bal-navbar_5.entry.js +14 -9
- package/dist/esm/bal-notices_3.entry.js +2 -2
- package/dist/esm/bal-notification.entry.js +1 -1
- package/dist/esm/bal-number-input.entry.js +10 -5
- package/dist/esm/bal-pagination.entry.js +12 -7
- package/dist/esm/bal-popup.entry.js +9 -5
- package/dist/esm/bal-progress-bar.entry.js +11 -9
- package/dist/esm/bal-radio-icon.entry.js +1 -1
- package/dist/esm/bal-radio_2.entry.js +10 -6
- package/dist/esm/bal-segment_2.entry.js +18 -15
- package/dist/esm/bal-select_2.entry.js +13 -9
- package/dist/esm/bal-shape.entry.js +6 -6
- package/dist/esm/bal-sheet.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +8 -3
- package/dist/esm/bal-stack.entry.js +3 -1
- package/dist/esm/bal-stage_6.entry.js +10 -7
- package/dist/esm/bal-step-item.entry.js +3 -3
- package/dist/esm/bal-steps.entry.js +16 -18
- package/dist/esm/bal-switch.entry.js +2 -2
- package/dist/esm/bal-tab-item_2.entry.js +37 -47
- package/dist/esm/bal-table.entry.js +2 -2
- package/dist/esm/bal-tag_2.entry.js +3 -3
- package/dist/esm/bal-textarea.entry.js +6 -3
- package/dist/esm/bal-time-input.entry.js +9 -4
- package/dist/esm/bal-tooltip.entry.js +8 -4
- package/dist/esm/baloise-design-system.js +12 -4
- package/dist/esm/{breakpoints.decorator-CB70vvLx.js → breakpoints.decorator-BIYeDfWr.js} +1 -1
- package/dist/esm/{breakpoints.subject-Dpu4Jjc3.js → breakpoints.subject-C-l-r4eB.js} +5 -4
- package/dist/esm/browser-B1u-Mq75.js +62 -0
- package/dist/esm/{config.decorator-FwS7csea.js → config.decorator-3bfyZ-0Y.js} +1 -1
- package/dist/esm/config.default-I6QXKbhg.js +47 -0
- package/dist/esm/config.utils-B7jugjyM.js +102 -0
- package/dist/esm/{date-wScrQINJ.js → date-W0XtD641.js} +65 -2
- package/dist/esm/{device-CWdcsnSc.js → device-TtMibDFL.js} +1 -1
- package/dist/esm/{element-states.decorator-BPErBZif.js → element-states.decorator-B68ANq1p.js} +3 -2
- package/dist/esm/{floating-ui-CNYJCYYO.js → floating-ui-Bx04QSXP.js} +1 -1
- package/dist/esm/{focus.decorator-BBUVspZX.js → focus.decorator-C1s3OoqI.js} +3 -2
- package/dist/esm/{form-input-Dv0N9pEu.js → form-input-DYvzaBlM.js} +1 -1
- package/dist/esm/global-xMZNVTi9.js +7 -0
- package/dist/esm/helpers-BNj87EbG.js +307 -0
- package/dist/{cjs/index-TwNDE7ev.js → esm/index-BdVwMG9u.js} +204 -1207
- package/dist/esm/index.js +18 -14
- package/dist/esm/initialize-pdWsVO-c.js +441 -0
- package/dist/esm/{keyboard.helpers-D1VPLQ5z.js → keyboard.helpers-BERg8BNc.js} +1 -1
- package/dist/esm/{listener-BCxt7kj7.js → listener-CClDIhvK.js} +1 -1
- package/dist/esm/loader.js +11 -3
- package/dist/esm/log-CwssmmaV.js +77 -0
- package/dist/esm/{mutation.decorator-DVnSOGDK.js → mutation.decorator-DhVeNnnY.js} +2 -2
- package/dist/esm/{number-oUZz7C1l.js → number-Bwx2aNR0.js} +2 -1
- package/dist/esm/{overlays-B9nzshwp.js → overlays-DuvWMrlA.js} +2 -1
- package/dist/esm/{resize.decorator-xO0LVkHO.js → resize.decorator-ZKPOJfw5.js} +3 -2
- package/dist/esm/{scroll-Dhp_eUkh.js → scroll-X92R_eyZ.js} +1 -1
- package/dist/esm/{swiper.util-vb9wIkyd.js → string-Dk4PnSfl.js} +18 -22
- package/dist/esm/{swipe.decorator-Bk0DXvq0.js → swipe.decorator-B_Ghrp1o.js} +1 -1
- package/dist/esm/{swipe.subject-CCKruupP.js → swipe.subject-T0VStuOK.js} +3 -3
- package/dist/esm/{tokens.esm-4RggM_kM.js → tokens.esm-BIF5qtzE.js} +2 -2
- package/dist/esm/{visibility.decorator-C5quU420.js → visibility.decorator-zTjPC2du.js} +2 -2
- package/dist/esm/{window-resize.decorator-tooGxqQM.js → window-resize.decorator-B9Y460NJ.js} +24 -1
- package/dist/esm-es5/animation.decorator-zbSqKhw6.js +1 -0
- package/dist/esm-es5/app-globals-BZ6_qxBr.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-check.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_3.entry.js +1 -0
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-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-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-icon.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-switch.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-BIYeDfWr.js +1 -0
- package/dist/esm-es5/breakpoints.subject-C-l-r4eB.js +1 -0
- package/dist/esm-es5/browser-B1u-Mq75.js +1 -0
- package/dist/esm-es5/config.decorator-3bfyZ-0Y.js +1 -0
- package/dist/esm-es5/config.default-I6QXKbhg.js +1 -0
- package/dist/esm-es5/config.utils-B7jugjyM.js +1 -0
- package/dist/esm-es5/{date-wScrQINJ.js → date-W0XtD641.js} +1 -1
- package/dist/esm-es5/device-TtMibDFL.js +1 -0
- package/dist/esm-es5/element-states.decorator-B68ANq1p.js +1 -0
- package/dist/esm-es5/floating-ui-Bx04QSXP.js +1 -0
- package/dist/esm-es5/focus.decorator-C1s3OoqI.js +1 -0
- package/dist/esm-es5/form-input-DYvzaBlM.js +1 -0
- package/dist/esm-es5/global-xMZNVTi9.js +1 -0
- package/dist/esm-es5/helpers-BNj87EbG.js +1 -0
- package/dist/esm-es5/index-BdVwMG9u.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-pdWsVO-c.js +1 -0
- package/dist/esm-es5/{keyboard.helpers-D1VPLQ5z.js → keyboard.helpers-BERg8BNc.js} +1 -1
- package/dist/esm-es5/listener-CClDIhvK.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/log-CwssmmaV.js +1 -0
- package/dist/esm-es5/mutation.decorator-DhVeNnnY.js +1 -0
- package/dist/esm-es5/number-Bwx2aNR0.js +1 -0
- package/dist/esm-es5/overlays-DuvWMrlA.js +1 -0
- package/dist/esm-es5/resize.decorator-ZKPOJfw5.js +1 -0
- package/dist/esm-es5/scroll-X92R_eyZ.js +1 -0
- package/dist/esm-es5/string-Dk4PnSfl.js +1 -0
- package/dist/esm-es5/{swipe.decorator-Bk0DXvq0.js → swipe.decorator-B_Ghrp1o.js} +1 -1
- package/dist/esm-es5/swipe.subject-T0VStuOK.js +1 -0
- package/dist/esm-es5/{tokens.esm-4RggM_kM.js → tokens.esm-BIF5qtzE.js} +1 -1
- package/dist/esm-es5/visibility.decorator-zTjPC2du.js +1 -0
- package/dist/esm-es5/window-resize.decorator-B9Y460NJ.js +1 -0
- package/dist/html.html-data.json +1 -62
- package/dist/types/components/bal-accordion/bal-accordion-details/bal-accordion-details.d.ts +3 -2
- package/dist/types/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.d.ts +3 -2
- package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +4 -3
- package/dist/types/components/bal-accordion/bal-accordion.d.ts +4 -3
- package/dist/types/components/bal-accordion/test/bal-accordion.visual.play.d.ts +1 -0
- package/dist/types/components/bal-app/bal-app.d.ts +7 -1
- package/dist/types/components/bal-badge/bal-badge.d.ts +2 -1
- package/dist/types/components/bal-badge/test/bal-badge.visual.play.d.ts +1 -0
- package/dist/types/components/bal-button/bal-button.d.ts +2 -1
- package/dist/types/components/bal-button/test/bal-button.visual.play.d.ts +1 -0
- package/dist/types/components/bal-card/test/bal-card.visual.play.d.ts +1 -0
- package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +2 -1
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +4 -3
- package/dist/types/components/bal-carousel/test/bal-carousel.visual.play.d.ts +1 -0
- package/dist/types/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.d.ts +2 -1
- package/dist/types/components/bal-checkbox/test/bal-checkbox-icons.visual.play.d.ts +1 -0
- package/dist/types/components/bal-checkbox/test/bal-checkbox-tiles.visual.play.d.ts +1 -0
- package/dist/types/components/bal-checkbox/test/bal-checkbox.visual.play.d.ts +1 -0
- package/dist/types/components/bal-close/bal-close.d.ts +2 -1
- package/dist/types/components/bal-close/test/bal-close.visual.play.d.ts +1 -0
- package/dist/types/components/bal-content/test/bal-content.visual.play.d.ts +1 -0
- package/dist/types/components/bal-data/bal-data-value/bal-data-value.d.ts +2 -1
- package/dist/types/components/bal-data/test/bal-data.visual.play.d.ts +1 -0
- package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +2 -1
- package/dist/types/components/bal-date/bal-date.d.ts +2 -1
- package/dist/types/components/bal-date/test/bal-date.visual.play.d.ts +1 -0
- package/dist/types/components/bal-divider/test/bal-divider.visual.play.d.ts +1 -0
- package/dist/types/components/bal-dropdown/bal-dropdown.d.ts +2 -1
- package/dist/types/components/bal-dropdown/test/bal-dropdown.visual.play.d.ts +1 -0
- package/dist/types/components/bal-field/bal-field.d.ts +3 -3
- package/dist/types/components/bal-field/test/bal-field-horizontal.visual.play.d.ts +1 -0
- package/dist/types/components/bal-field/test/bal-field.visual.play.d.ts +1 -0
- package/dist/types/components/bal-file-upload/bal-file-upload.d.ts +3 -2
- package/dist/types/components/bal-file-upload/test/bal-file-upload.visual.play.d.ts +1 -0
- package/dist/types/components/bal-footer/test/bal-footer.visual.play.d.ts +1 -0
- package/dist/types/components/bal-form/bal-form.d.ts +2 -1
- package/dist/types/components/bal-form-grid/bal-form-col/bal-form-col.d.ts +2 -1
- package/dist/types/components/bal-form-grid/test/bal-form-grid.visual.play.d.ts +1 -0
- package/dist/types/components/bal-heading/bal-heading.d.ts +2 -1
- package/dist/types/components/bal-heading/test/bal-heading.visual.play.d.ts +1 -0
- package/dist/types/components/bal-hint/test/bal-hint.visual.play.d.ts +1 -0
- package/dist/types/components/bal-icon/test/bal-icon.visual.play.d.ts +1 -0
- package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +2 -1
- package/dist/types/components/bal-input/bal-input.d.ts +2 -1
- package/dist/types/components/bal-input/test/bal-input.visual.play.d.ts +1 -0
- package/dist/types/components/bal-input-group/bal-input-group.d.ts +2 -1
- package/dist/types/components/bal-input-group/test/bal-input-group.visual.play.d.ts +1 -0
- package/dist/types/components/bal-input-slider/bal-input-slider.d.ts +2 -1
- package/dist/types/components/bal-input-slider/test/bal-input-slider.visual.play.d.ts +1 -0
- package/dist/types/components/bal-input-stepper/bal-input-stepper.d.ts +2 -1
- package/dist/types/components/bal-input-stepper/test/bal-input-stepper.visual.play.d.ts +1 -0
- package/dist/types/components/bal-label/bal-label.d.ts +4 -3
- package/dist/types/components/bal-label/test/bal-label.visual.play.d.ts +1 -0
- package/dist/types/components/bal-list/bal-list-item/bal-list-item.d.ts +2 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +2 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +2 -1
- package/dist/types/components/bal-list/bal-list.d.ts +2 -1
- package/dist/types/components/bal-list/test/bal-list.visual.play.d.ts +1 -0
- package/dist/types/components/bal-logo/bal-logo.d.ts +3 -2
- package/dist/types/components/bal-logo/test/bal-logo.visual.play.d.ts +1 -0
- package/dist/types/components/bal-modal/bal-modal-header/bal-modal-header.d.ts +2 -1
- package/dist/types/components/bal-modal/bal-modal.d.ts +2 -1
- package/dist/types/components/bal-modal/bal-modal.type.d.ts +2 -1
- package/dist/types/components/bal-modal/test/bal-modal.visual.play.d.ts +1 -0
- package/dist/types/components/bal-nav/bal-nav-focus.util.d.ts +3 -2
- package/dist/types/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav.d.ts +2 -1
- package/dist/types/components/bal-nav/test/bal-nav-colors.visual.play.d.ts +1 -0
- package/dist/types/components/bal-nav/test/bal-nav-long.visual.play.d.ts +1 -0
- package/dist/types/components/bal-nav/test/bal-nav.visual.play.d.ts +1 -0
- package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +2 -1
- package/dist/types/components/bal-navbar/test/bal-navbar.visual.play.d.ts +1 -0
- package/dist/types/components/bal-notification/test/bal-notification.visual.play.d.ts +1 -0
- package/dist/types/components/bal-number-input/bal-number-input.d.ts +2 -1
- package/dist/types/components/bal-number-input/test/bal-number-input.visual.play.d.ts +1 -0
- package/dist/types/components/bal-option/bal-option.d.ts +2 -1
- package/dist/types/components/bal-option/test/bal-option.visual.play.d.ts +1 -0
- package/dist/types/components/bal-option-list/bal-option-list.d.ts +4 -3
- package/dist/types/components/bal-option-list/test/bal-option-list.visual.play.d.ts +1 -0
- package/dist/types/components/bal-pagination/test/bal-pagination.visual.play.d.ts +1 -0
- package/dist/types/components/bal-popover/bal-popover-content/bal-popover-content.d.ts +2 -1
- package/dist/types/components/bal-popover/bal-popover.d.ts +4 -3
- package/dist/types/components/bal-popover/test/bal-popover.visual.play.d.ts +1 -0
- package/dist/types/components/bal-popup/bal-popup.d.ts +2 -1
- package/dist/types/components/bal-popup/test/bal-popup.visual.play.d.ts +1 -0
- package/dist/types/components/bal-popup/variants/variant.interfaces.d.ts +2 -1
- package/dist/types/components/bal-progress-bar/bal-progress-bar.d.ts +2 -1
- package/dist/types/components/bal-progress-bar/test/bal-progress-bar.visual.play.d.ts +1 -0
- package/dist/types/components/bal-radio/bal-radio-group/bal-radio-group.d.ts +2 -1
- package/dist/types/components/bal-radio/test/bal-radio-icons.visual.play.d.ts +1 -0
- package/dist/types/components/bal-radio/test/bal-radio-tiles.visual.play.d.ts +1 -0
- package/dist/types/components/bal-radio/test/bal-radio.visual.play.d.ts +1 -0
- package/dist/types/components/bal-segment/bal-segment-item/bal-segment-item.d.ts +2 -1
- package/dist/types/components/bal-segment/bal-segment.d.ts +2 -1
- package/dist/types/components/bal-segment/test/bal-segment.visual.play.d.ts +1 -0
- package/dist/types/components/bal-select/bal-select.d.ts +2 -1
- package/dist/types/components/bal-select/test/bal-select-multiple.visual.play.d.ts +1 -0
- package/dist/types/components/bal-select/test/bal-select.visual.play.d.ts +1 -0
- package/dist/types/components/bal-select/utils/watch-options.d.ts +2 -1
- package/dist/types/components/bal-shape/bal-shape.d.ts +2 -1
- package/dist/types/components/bal-shape/test/bal-shape.visual.play.d.ts +1 -0
- package/dist/types/components/bal-sheet/test/bal-sheet.visual.play.d.ts +1 -0
- package/dist/types/components/bal-snackbar/test/bal-snackbar.visual.play.d.ts +1 -0
- package/dist/types/components/bal-spinner/bal-spinner.d.ts +3 -2
- package/dist/types/components/bal-stack/test/bal-stack.visual.play.d.ts +1 -0
- package/dist/types/components/bal-stage/bal-stage-back-link/bal-stage-back-link.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-body/bal-stage-body.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-foot/bal-stage-foot.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-head/bal-stage-head.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-image/bal-stage-image.d.ts +2 -1
- package/dist/types/components/bal-stage/test/bal-stage.visual.play.d.ts +1 -0
- package/dist/types/components/bal-steps/bal-step-item/bal-step-item.d.ts +2 -1
- package/dist/types/components/bal-steps/bal-steps.d.ts +5 -4
- package/dist/types/components/bal-steps/test/bal-steps.visual.play.d.ts +1 -0
- package/dist/types/components/bal-table/bal-table.d.ts +2 -1
- package/dist/types/components/bal-table/test/bal-table.visual.play.d.ts +1 -0
- package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +2 -1
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +2 -1
- package/dist/types/components/bal-tabs/test/bal-tabs.visual.play.d.ts +1 -0
- package/dist/types/components/bal-tag/bal-tag.d.ts +2 -1
- package/dist/types/components/bal-tag/test/bal-tag.a11y.play.d.ts +1 -0
- package/dist/types/components/bal-tag/test/bal-tag.component.play.d.ts +1 -0
- package/dist/types/components/bal-tag/test/bal-tag.visual.play.d.ts +1 -0
- package/dist/types/components/bal-text/test/bal-text.visual.play.d.ts +1 -0
- package/dist/types/components/bal-textarea/bal-textarea.d.ts +2 -1
- package/dist/types/components/bal-textarea/test/bal-textarea.visual.play.d.ts +1 -0
- package/dist/types/components/bal-time-input/bal-time-input.d.ts +2 -1
- package/dist/types/components/bal-time-input/test/bal-time-input.visual.play.d.ts +1 -0
- package/dist/types/components/bal-toast/test/bal-toast.visual.play.d.ts +1 -0
- package/dist/types/components/bal-tooltip/bal-tooltip.d.ts +2 -1
- package/dist/types/components/bal-tooltip/test/bal-tooltip.visual.play.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 +95 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/index.d.ts +9 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/bal-tag.po.d.ts +8 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +1 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/page-object.d.ts +7 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/devices.d.ts +1 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/extend.d.ts +9 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/functions/a11y.d.ts +2 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/index.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-first-received-event-detail.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-nth-received-event-detail.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-received-event-detail.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-received-event-times.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-received-event.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/event-spy.d.ts +44 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/goto.d.ts +8 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/index.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/locator.d.ts +21 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/mount.d.ts +3 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/spy-on-event.d.ts +3 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/wait-for-changes.d.ts +2 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/screenshot.d.ts +2 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/test-expect.d.ts +22 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/types.d.ts +39 -0
- package/dist/types/stencil-public-runtime.d.ts +62 -8
- package/dist/types/test/css-border.visual.play.d.ts +1 -0
- package/dist/types/test/css-color.visual.play.d.ts +1 -0
- package/dist/types/test/css-core.visual.play.d.ts +1 -0
- package/dist/types/test/css-display.visual.play.d.ts +1 -0
- package/dist/types/test/css-flex.visual.play.d.ts +1 -0
- package/dist/types/test/css-grid.visual.play.d.ts +1 -0
- package/dist/types/test/css-inheritance.visual.play.d.ts +1 -0
- package/dist/types/test/css-opacity.visual.play.d.ts +1 -0
- package/dist/types/test/css-radius.visual.play.d.ts +1 -0
- package/dist/types/test/css-shadow.visual.play.d.ts +1 -0
- package/dist/types/test/css-spacing.visual.play.d.ts +1 -0
- package/dist/types/test/css-structure.visual.play.d.ts +1 -0
- package/dist/types/test/css-typography.visual.play.d.ts +1 -0
- package/dist/types/test/theme-compact.visual.play.d.ts +1 -0
- package/dist/types/utils/animation/animation.interfaces.d.ts +3 -2
- package/dist/types/utils/animation/animation.listener.d.ts +2 -1
- package/dist/types/utils/attributes.d.ts +3 -2
- package/dist/types/utils/bem.d.ts +2 -2
- package/dist/types/utils/dropdown/component.d.ts +2 -1
- package/dist/types/utils/dropdown/popup.d.ts +2 -1
- package/dist/types/utils/element-states/element-states.interfaces.d.ts +2 -1
- package/dist/types/utils/element-states/element-states.listener.d.ts +2 -1
- package/dist/types/utils/focus/focus.interfaces.d.ts +2 -1
- package/dist/types/utils/focus/focus.listener.d.ts +2 -1
- package/dist/types/utils/form-input.d.ts +2 -1
- package/dist/types/utils/form.d.ts +2 -1
- package/dist/types/utils/helpers.d.ts +6 -5
- package/dist/types/utils/mask/component/mask-component-interfaces.d.ts +2 -1
- package/dist/types/utils/mutation/mutation.interfaces.d.ts +2 -1
- package/dist/types/utils/mutation/mutation.listener.d.ts +2 -1
- package/dist/types/utils/overlays/overlays.d.ts +2 -2
- package/dist/types/utils/resize/resize.interfaces.d.ts +2 -1
- package/dist/types/utils/resize/resize.listener.d.ts +2 -1
- package/dist/types/utils/resize/window-resize.interfaces.d.ts +2 -1
- package/dist/types/utils/style.d.ts +2 -1
- package/dist/types/utils/swipe/swipe.interfaces.d.ts +2 -1
- package/dist/types/utils/swipe/swipe.listener.d.ts +2 -1
- package/dist/types/utils/swiper/swiper.type.d.ts +3 -2
- package/dist/types/utils/types/listener.d.ts +3 -2
- package/dist/types/utils/visibility/visibility.interfaces.d.ts +2 -1
- package/dist/types/utils/visibility/visibility.listener.d.ts +2 -1
- package/package.json +10 -7
- package/components/bal-toast.controller.js +0 -127
- package/components/window-resize.listener.js +0 -80
- package/components/window-resize.subject.js +0 -26
- package/dist/baloise-design-system/p-0907fd261f.entry.js +0 -1
- package/dist/baloise-design-system/p-09348ab262.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0986fe6bd0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0fad8a1e31.entry.js +0 -1
- package/dist/baloise-design-system/p-0fe98f59a4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-10d754691a.entry.js +0 -1
- package/dist/baloise-design-system/p-113691a62f.entry.js +0 -1
- package/dist/baloise-design-system/p-1516c91d4e.entry.js +0 -1
- package/dist/baloise-design-system/p-1638d00f2d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1744fb223c.entry.js +0 -1
- package/dist/baloise-design-system/p-1a1b714236.entry.js +0 -1
- package/dist/baloise-design-system/p-1a48f63b91.entry.js +0 -1
- package/dist/baloise-design-system/p-1d177e7449.entry.js +0 -1
- package/dist/baloise-design-system/p-1d3f76cacc.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1edf81b274.entry.js +0 -1
- package/dist/baloise-design-system/p-261a40555d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-26f33fb309.system.entry.js +0 -1
- package/dist/baloise-design-system/p-28f315ce54.system.entry.js +0 -1
- package/dist/baloise-design-system/p-29be3c5644.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2ad2cd8a77.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2bb50edb03.entry.js +0 -1
- package/dist/baloise-design-system/p-2d88aa248e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-32ed11b23d.entry.js +0 -1
- package/dist/baloise-design-system/p-33e4fc1641.entry.js +0 -1
- package/dist/baloise-design-system/p-37022683b7.entry.js +0 -1
- package/dist/baloise-design-system/p-380c5803d9.entry.js +0 -1
- package/dist/baloise-design-system/p-3eb7056b78.entry.js +0 -1
- package/dist/baloise-design-system/p-4173b195f5.entry.js +0 -1
- package/dist/baloise-design-system/p-429b6209eb.entry.js +0 -1
- package/dist/baloise-design-system/p-446235d66d.entry.js +0 -1
- package/dist/baloise-design-system/p-4592890c87.system.entry.js +0 -1
- package/dist/baloise-design-system/p-46aaffaa70.entry.js +0 -1
- package/dist/baloise-design-system/p-4861d5c268.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4ab1baaeb2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4cbacb2728.entry.js +0 -1
- package/dist/baloise-design-system/p-54252e93ae.system.entry.js +0 -1
- package/dist/baloise-design-system/p-57303f4cf0.entry.js +0 -1
- package/dist/baloise-design-system/p-577c4fbffa.entry.js +0 -1
- package/dist/baloise-design-system/p-61d6ce6346.entry.js +0 -1
- package/dist/baloise-design-system/p-63d9b0dc71.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6845434665.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6JPfxkH9.system.js +0 -2
- package/dist/baloise-design-system/p-6a2d541345.entry.js +0 -1
- package/dist/baloise-design-system/p-6af4878ee1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6b7cef6b56.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6c89fe7777.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6d016ad721.entry.js +0 -1
- package/dist/baloise-design-system/p-7255ac5e19.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7567bed290.system.entry.js +0 -1
- package/dist/baloise-design-system/p-77ed6cef4e.entry.js +0 -1
- package/dist/baloise-design-system/p-78d48f3d1a.entry.js +0 -1
- package/dist/baloise-design-system/p-7f39c04ab4.entry.js +0 -1
- package/dist/baloise-design-system/p-85ef72f929.entry.js +0 -1
- package/dist/baloise-design-system/p-87e06064a3.entry.js +0 -1
- package/dist/baloise-design-system/p-8d7d5197d6.entry.js +0 -1
- package/dist/baloise-design-system/p-97dca06bad.system.entry.js +0 -1
- package/dist/baloise-design-system/p-98d8c0b274.system.entry.js +0 -1
- package/dist/baloise-design-system/p-98fedb26af.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9a7614a6da.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9ccc9420aa.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9ed893d2f1.entry.js +0 -1
- package/dist/baloise-design-system/p-9f46f38337.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9faad04082.entry.js +0 -1
- package/dist/baloise-design-system/p-B97IGjGv.js +0 -1
- package/dist/baloise-design-system/p-BDsO8HVR.system.js +0 -1
- package/dist/baloise-design-system/p-BdMT8-qh.system.js +0 -1
- package/dist/baloise-design-system/p-BgWhYta3.js +0 -2
- package/dist/baloise-design-system/p-BiQW-kmH.js +0 -1
- package/dist/baloise-design-system/p-Brj9SizC.js +0 -1
- package/dist/baloise-design-system/p-BsGRcohK.js +0 -1
- package/dist/baloise-design-system/p-BuwrUtcI.js +0 -1
- package/dist/baloise-design-system/p-C89aCsha.system.js +0 -1
- package/dist/baloise-design-system/p-C9gtg7pC.js +0 -1
- package/dist/baloise-design-system/p-CLs4UZCO.js +0 -1
- package/dist/baloise-design-system/p-CPvYKxnJ.system.js +0 -1
- package/dist/baloise-design-system/p-CdRteRAi.system.js +0 -1
- package/dist/baloise-design-system/p-Clusr4_J.system.js +0 -1
- package/dist/baloise-design-system/p-Csghe1wj.system.js +0 -1
- package/dist/baloise-design-system/p-CvJZJ5PO.system.js +0 -1
- package/dist/baloise-design-system/p-DA9xpxCC.system.js +0 -1
- package/dist/baloise-design-system/p-DMPBkH8m.js +0 -1
- package/dist/baloise-design-system/p-DVQeGKBt.system.js +0 -1
- package/dist/baloise-design-system/p-DYGnSrkp.system.js +0 -1
- package/dist/baloise-design-system/p-DblLSfCr.js +0 -1
- package/dist/baloise-design-system/p-DcxdJ7xo.system.js +0 -1
- package/dist/baloise-design-system/p-DkkPrFJ4.js +0 -1
- package/dist/baloise-design-system/p-DrYtyUx4.js +0 -1
- package/dist/baloise-design-system/p-Dv-qApwY.system.js +0 -1
- package/dist/baloise-design-system/p-PJBCHUTX.system.js +0 -1
- package/dist/baloise-design-system/p-YxrA2V8G.system.js +0 -1
- package/dist/baloise-design-system/p-Z2WXCS2z.system.js +0 -1
- package/dist/baloise-design-system/p-ZO510gkN.system.js +0 -1
- package/dist/baloise-design-system/p-a24b0f04ac.entry.js +0 -1
- package/dist/baloise-design-system/p-a49cbc975f.entry.js +0 -1
- package/dist/baloise-design-system/p-ab4f18d946.system.entry.js +0 -1
- package/dist/baloise-design-system/p-adf9dc4b6c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-af0438175b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-af25440706.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b2d3c28f7e.entry.js +0 -1
- package/dist/baloise-design-system/p-b465562e59.entry.js +0 -1
- package/dist/baloise-design-system/p-b6348cd01c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b8e45544f8.system.entry.js +0 -1
- package/dist/baloise-design-system/p-bb3c1187e2.entry.js +0 -1
- package/dist/baloise-design-system/p-bdeea100d1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c0ec248967.entry.js +0 -1
- package/dist/baloise-design-system/p-c46abb4720.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c7b4bbf341.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c88b2139c4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ce3e28b217.entry.js +0 -1
- package/dist/baloise-design-system/p-cec255ddb5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-cfbff4d0c5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d292509747.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d40c3b818d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d56db02feb.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d9f1657d3a.entry.js +0 -1
- package/dist/baloise-design-system/p-dcd16c9edf.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e2ff5ec460.entry.js +0 -1
- package/dist/baloise-design-system/p-e5e10f7330.entry.js +0 -1
- package/dist/baloise-design-system/p-eb318eae31.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ef2aa99689.entry.js +0 -1
- package/dist/baloise-design-system/p-f09b1d15cb.entry.js +0 -1
- package/dist/baloise-design-system/p-f701f3341f.entry.js +0 -1
- package/dist/baloise-design-system/p-f931d7af5f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fa6414dc04.entry.js +0 -1
- package/dist/baloise-design-system/p-fb932a0e2d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fbedfc8307.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fc05075fc7.entry.js +0 -1
- package/dist/baloise-design-system/p-fe41123fad.entry.js +0 -1
- package/dist/baloise-design-system/p-ffdfc86824.system.entry.js +0 -1
- package/dist/baloise-design-system/p-irA_rSP3.system.js +0 -1
- package/dist/baloise-design-system/p-otQuEMP7.js +0 -1
- package/dist/baloise-design-system/p-t17chohV.system.js +0 -1
- package/dist/cjs/bal-date.i18n-DJlY99as.js +0 -66
- package/dist/cjs/bal-option_2.cjs.entry.js +0 -606
- package/dist/cjs/window-resize.decorator-DZPJwKe1.js +0 -25
- package/dist/cjs/window-resize.subject-AALAxaW0.js +0 -28
- package/dist/esm/bal-date.i18n-CLs4UZCO.js +0 -64
- package/dist/esm/bal-option_2.entry.js +0 -603
- package/dist/esm/window-resize.subject-BfRcRWok.js +0 -26
- package/dist/esm-es5/animation.decorator-CNK3bJ6X.js +0 -1
- package/dist/esm-es5/bal-date.i18n-CLs4UZCO.js +0 -1
- package/dist/esm-es5/bal-dropdown.entry.js +0 -1
- package/dist/esm-es5/bal-option_2.entry.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-CB70vvLx.js +0 -1
- package/dist/esm-es5/breakpoints.subject-Dpu4Jjc3.js +0 -1
- package/dist/esm-es5/config.decorator-FwS7csea.js +0 -1
- package/dist/esm-es5/device-CWdcsnSc.js +0 -1
- package/dist/esm-es5/element-states.decorator-BPErBZif.js +0 -1
- package/dist/esm-es5/floating-ui-CNYJCYYO.js +0 -1
- package/dist/esm-es5/focus.decorator-BBUVspZX.js +0 -1
- package/dist/esm-es5/form-input-Dv0N9pEu.js +0 -1
- package/dist/esm-es5/index-BgWhYta3.js +0 -2
- package/dist/esm-es5/listener-BCxt7kj7.js +0 -1
- package/dist/esm-es5/mutation.decorator-DVnSOGDK.js +0 -1
- package/dist/esm-es5/number-oUZz7C1l.js +0 -1
- package/dist/esm-es5/overlays-B9nzshwp.js +0 -1
- package/dist/esm-es5/resize.decorator-xO0LVkHO.js +0 -1
- package/dist/esm-es5/scroll-Dhp_eUkh.js +0 -1
- package/dist/esm-es5/swipe.subject-CCKruupP.js +0 -1
- package/dist/esm-es5/swiper.util-vb9wIkyd.js +0 -1
- package/dist/esm-es5/visibility.decorator-C5quU420.js +0 -1
- package/dist/esm-es5/window-resize.decorator-tooGxqQM.js +0 -1
- package/dist/esm-es5/window-resize.subject-BfRcRWok.js +0 -1
|
@@ -1,1032 +1,8 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
const NAMESPACE = 'baloise-design-system';
|
|
4
|
-
const BUILD = /* baloise-design-system */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
5
|
-
|
|
6
|
-
class BrowserWindow {
|
|
7
|
-
/**
|
|
8
|
-
* Returns the width of the window
|
|
9
|
-
*/
|
|
10
|
-
get width() {
|
|
11
|
-
if (balBrowser.hasWindow) {
|
|
12
|
-
return window.innerWidth;
|
|
13
|
-
}
|
|
14
|
-
return 0;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Returns the height of the window
|
|
18
|
-
*/
|
|
19
|
-
get height() {
|
|
20
|
-
if (balBrowser.hasWindow) {
|
|
21
|
-
return window.innerHeight;
|
|
22
|
-
}
|
|
23
|
-
return 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
class Browser {
|
|
27
|
-
constructor() {
|
|
28
|
-
this.window = new BrowserWindow();
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Is true when it is a Safari browser
|
|
32
|
-
*/
|
|
33
|
-
get isSafari() {
|
|
34
|
-
return /^((?!chrome|android).)*safari/i.test(this.userAgent);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Is true when the window object is defined
|
|
38
|
-
*/
|
|
39
|
-
get hasWindow() {
|
|
40
|
-
return typeof window !== 'undefined';
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Is true when the navigator object is defined
|
|
44
|
-
*/
|
|
45
|
-
get hasNavigator() {
|
|
46
|
-
return typeof navigator !== 'undefined';
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Is true when the document object is defined
|
|
50
|
-
*/
|
|
51
|
-
get hasDocument() {
|
|
52
|
-
return typeof document !== 'undefined';
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Returns a string with the user agents
|
|
56
|
-
*/
|
|
57
|
-
get userAgent() {
|
|
58
|
-
var _a;
|
|
59
|
-
if (this.hasWindow && this.hasNavigator) {
|
|
60
|
-
return (_a = navigator.userAgent) !== null && _a !== void 0 ? _a : '';
|
|
61
|
-
}
|
|
62
|
-
return '';
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const balBrowser = new Browser();
|
|
66
|
-
|
|
67
|
-
const BALOISE_ANIMATION_KEY = 'baloise-animated';
|
|
68
|
-
|
|
69
|
-
// generated file
|
|
70
|
-
const balIconYoutube = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0 4C0 2.61929 1.11929 1.5 2.5 1.5H11.5C12.8807 1.5 14 2.61929 14 4V10C14 11.3807 12.8807 12.5 11.5 12.5H2.5C1.11929 12.5 0 11.3807 0 10V4ZM5.30998 5.11998V9.31998C5.30935 9.3905 5.32737 9.45993 5.36222 9.52124C5.39707 9.58255 5.4475 9.63356 5.50842 9.66909C5.56933 9.70462 5.63856 9.72342 5.70908 9.72358C5.7796 9.72374 5.84891 9.70524 5.90998 9.66998L9.50998 7.56998C9.57013 7.53469 9.62001 7.48428 9.65467 7.42377C9.68933 7.36325 9.70756 7.29472 9.70756 7.22498C9.70756 7.15524 9.68933 7.08671 9.65467 7.0262C9.62001 6.96568 9.57013 6.91527 9.50998 6.87998L5.90998 4.77998C5.85023 4.74175 5.78117 4.72055 5.71026 4.71865C5.63935 4.71675 5.56926 4.73422 5.50754 4.7692C5.44582 4.80417 5.39481 4.85532 5.36 4.91713C5.32519 4.97894 5.3079 5.04907 5.30998 5.11998Z" clip-rule="evenodd"/></svg>';
|
|
71
|
-
const balIconXing = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M13.0056 0C13.385 0 13.6262 0.406033 13.4447 0.739215L9.3722 8.21397C9.28942 8.3659 9.29108 8.54984 9.37658 8.70026L11.9644 13.2529C12.1539 13.5862 11.9131 14 11.5297 14H8.88832C8.70848 14 8.5425 13.9034 8.45363 13.7471L5.58749 8.70478C5.50059 8.55191 5.50038 8.36464 5.58694 8.21157L10.0872 0.253872C10.1759 0.0969935 10.3422 0 10.5224 0H13.0056ZM5.60519 5.58358C5.68784 5.73855 5.68312 5.92552 5.59276 6.07613L3.43406 9.67396C3.3437 9.82456 3.18095 9.91671 3.00532 9.91671H0.500779C0.111209 9.91671 -0.128712 9.49091 0.0730986 9.15769L1.97318 6.02035C2.06519 5.86842 2.0697 5.67908 1.98502 5.52295L0.655558 3.07176C0.474862 2.7386 0.716068 2.33337 1.09507 2.33337H3.57175C3.7564 2.33337 3.92603 2.43515 4.01292 2.59808L5.60519 5.58358Z"/></svg>';
|
|
72
|
-
const balIconX = '<svg viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3608 1.15369C13.4169 1.2059 13.4622 1.26865 13.494 1.33837C13.5259 1.40808 13.5436 1.48339 13.5464 1.55999C13.5491 1.63659 13.5367 1.71297 13.5098 1.78477C13.483 1.85656 13.4423 1.92236 13.39 1.97841L8.64428 7.06727L13.8824 14.0198C13.9477 14.1064 13.9876 14.2095 13.9975 14.3176C14.0075 14.4256 13.9871 14.5343 13.9386 14.6313C13.8902 14.7284 13.8156 14.81 13.7233 14.8671C13.631 14.9241 13.5246 14.9542 13.4161 14.9541H10.2207C10.1303 14.9542 10.0412 14.9333 9.96026 14.893C9.87935 14.8528 9.8089 14.7943 9.75447 14.7222L6.06784 9.8299L1.46336 14.7684C1.41113 14.8245 1.34837 14.8696 1.27867 14.9014C1.20897 14.9332 1.13369 14.9509 1.05714 14.9536C0.980585 14.9563 0.904251 14.9439 0.832496 14.9171C0.760741 14.8903 0.69497 14.8496 0.63894 14.7973C0.582909 14.7451 0.537715 14.6823 0.505938 14.6126C0.474162 14.5429 0.456425 14.4677 0.45374 14.3911C0.451056 14.3146 0.463476 14.2382 0.490292 14.1665C0.517108 14.0947 0.557794 14.029 0.610028 13.9729L5.35572 8.88407L0.117626 1.93154C0.0523114 1.84497 0.0124314 1.74191 0.00246702 1.63393C-0.00749732 1.52595 0.0128489 1.41733 0.0612194 1.32027C0.10959 1.22322 0.184068 1.14157 0.276285 1.08451C0.368503 1.02746 0.474805 0.997244 0.583248 0.997273H3.7793C3.86956 0.997249 3.9586 1.01818 4.0394 1.05842C4.1202 1.09866 4.19055 1.15711 4.24492 1.22917L7.93155 6.12144L12.5354 1.18291C12.5876 1.12679 12.6504 1.08151 12.7201 1.04966C12.7898 1.01782 12.8651 1.00003 12.9417 0.997314C13.0183 0.9946 13.0947 1.00702 13.1665 1.03385C13.2383 1.06068 13.3047 1.10141 13.3608 1.15369ZM7.44036 7.40872C7.42386 7.38964 7.40861 7.36951 7.39471 7.34846L3.48836 2.16343H1.75308L10.511 13.7885H12.2463L7.43975 7.40933L7.44036 7.40872Z"/></svg>';
|
|
73
|
-
const balIconWeb = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M5.04883 0.275541C2.32493 1.06453 0.285118 3.46373 0.0275269 6.375H3.22773C3.41606 4.22626 4.03911 2.14922 5.04883 0.275541ZM3.22773 7.625H0.0275269C0.285118 10.5363 2.32493 12.9355 5.04883 13.7245C4.0391 11.8508 3.41606 9.77374 3.22773 7.625ZM6.6522 13.9915C5.44618 12.0855 4.69968 9.90183 4.48294 7.625H9.51704C9.30031 9.90183 8.5538 12.0855 7.34777 13.9915C7.23256 13.9971 7.11661 14 7.00001 14C6.88338 14 6.76743 13.9971 6.6522 13.9915ZM8.95115 13.7245C11.6751 12.9355 13.7149 10.5363 13.9725 7.625H10.7722C10.5839 9.77375 9.96087 11.8508 8.95115 13.7245ZM10.7722 6.375H13.9725C13.7149 3.46372 11.6751 1.06451 8.95114 0.275533C9.96087 2.14921 10.5839 4.22625 10.7722 6.375ZM6.65221 0.00848953C6.76743 0.00285182 6.88339 0 7.00001 0C7.11661 0 7.23256 0.0028513 7.34777 0.008488C8.5538 1.91446 9.3003 4.09817 9.51704 6.375H4.48294C4.69968 4.09817 5.44618 1.91446 6.65221 0.00848953Z" clip-rule="evenodd"/></svg>';
|
|
74
|
-
const balIconUpload = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M8.99999 4C9.2883 4 9.55108 3.83474 9.67597 3.57489C9.80086 3.31504 9.76575 3.00661 9.58564 2.78148L7.58564 0.281479C7.44331 0.103567 7.22783 0 6.99999 0C6.77215 0 6.55667 0.103567 6.41434 0.281479L4.41434 2.78148C4.23424 3.00661 4.19912 3.31504 4.32401 3.57489C4.4489 3.83474 4.71169 4 4.99999 4H6L6 9.5C6 10.0523 6.44772 10.5 7 10.5C7.55228 10.5 8 10.0523 8 9.5L8 4H8.99999ZM3 12V5.99998C3.55228 5.99998 4 5.55227 4 4.99998C4 4.4477 3.55228 3.99998 3 3.99998H2.5C2.10217 3.99998 1.72064 4.15802 1.43934 4.43932C1.15804 4.72062 1 5.10216 1 5.49998V12.5C1 12.8979 1.15804 13.2794 1.43934 13.5607C1.72065 13.842 2.10218 14 2.5 14L11.5 14.0001C11.8978 14.0001 12.2794 13.842 12.5607 13.5607C12.842 13.2794 13 12.8979 13 12.5001V5.5C13 5.10218 12.842 4.72065 12.5607 4.43934C12.2794 4.15804 11.8978 4 11.5 4H11C10.4477 4 10 4.44772 10 5C10 5.55228 10.4477 6 11 6V12.0001L3 12Z" clip-rule="evenodd"/></svg>';
|
|
75
|
-
const balIconTwitter = '<svg viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3608 1.15369C13.4169 1.2059 13.4622 1.26865 13.494 1.33837C13.5259 1.40808 13.5436 1.48339 13.5464 1.55999C13.5491 1.63659 13.5367 1.71297 13.5098 1.78477C13.483 1.85656 13.4423 1.92236 13.39 1.97841L8.64428 7.06727L13.8824 14.0198C13.9477 14.1064 13.9876 14.2095 13.9975 14.3176C14.0075 14.4256 13.9871 14.5343 13.9386 14.6313C13.8902 14.7284 13.8156 14.81 13.7233 14.8671C13.631 14.9241 13.5246 14.9542 13.4161 14.9541H10.2207C10.1303 14.9542 10.0412 14.9333 9.96026 14.893C9.87935 14.8528 9.8089 14.7943 9.75447 14.7222L6.06784 9.8299L1.46336 14.7684C1.41113 14.8245 1.34837 14.8696 1.27867 14.9014C1.20897 14.9332 1.13369 14.9509 1.05714 14.9536C0.980585 14.9563 0.904251 14.9439 0.832496 14.9171C0.760741 14.8903 0.69497 14.8496 0.63894 14.7973C0.582909 14.7451 0.537715 14.6823 0.505938 14.6126C0.474162 14.5429 0.456425 14.4677 0.45374 14.3911C0.451056 14.3146 0.463476 14.2382 0.490292 14.1665C0.517108 14.0947 0.557794 14.029 0.610028 13.9729L5.35572 8.88407L0.117626 1.93154C0.0523114 1.84497 0.0124314 1.74191 0.00246702 1.63393C-0.00749732 1.52595 0.0128489 1.41733 0.0612194 1.32027C0.10959 1.22322 0.184068 1.14157 0.276285 1.08451C0.368503 1.02746 0.474805 0.997244 0.583248 0.997273H3.7793C3.86956 0.997249 3.9586 1.01818 4.0394 1.05842C4.1202 1.09866 4.19055 1.15711 4.24492 1.22917L7.93155 6.12144L12.5354 1.18291C12.5876 1.12679 12.6504 1.08151 12.7201 1.04966C12.7898 1.01782 12.8651 1.00003 12.9417 0.997314C13.0183 0.9946 13.0947 1.00702 13.1665 1.03385C13.2383 1.06068 13.3047 1.10141 13.3608 1.15369ZM7.44036 7.40872C7.42386 7.38964 7.40861 7.36951 7.39471 7.34846L3.48836 2.16343H1.75308L10.511 13.7885H12.2463L7.43975 7.40933L7.44036 7.40872Z"/></svg>';
|
|
76
|
-
const balIconTrash = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M5.76256 2.01256C6.09075 1.68437 6.53587 1.5 7 1.5C7.46413 1.5 7.90925 1.68437 8.23744 2.01256C8.4448 2.21993 8.59475 2.47397 8.67705 2.75H5.32295C5.40525 2.47397 5.5552 2.21993 5.76256 2.01256ZM3.78868 2.75C3.89405 2.07321 4.21153 1.44227 4.7019 0.951903C5.3114 0.34241 6.13805 0 7 0C7.86195 0 8.6886 0.34241 9.2981 0.951903C9.78847 1.44227 10.106 2.07321 10.2113 2.75H13C13.4142 2.75 13.75 3.08579 13.75 3.5C13.75 3.91422 13.4142 4.25 13 4.25H12V12.5C12 12.8978 11.842 13.2794 11.5607 13.5607C11.2794 13.842 10.8978 14 10.5 14H3.5C3.10217 14 2.72064 13.842 2.43934 13.5607C2.15804 13.2794 2 12.8978 2 12.5V4.25H1C0.585786 4.25 0.25 3.91422 0.25 3.5C0.25 3.08579 0.585786 2.75 1 2.75H3.78868ZM5 5.87646C5.34518 5.87646 5.625 6.15629 5.625 6.50146V10.503C5.625 10.8481 5.34518 11.128 5 11.128C4.65482 11.128 4.375 10.8481 4.375 10.503V6.50146C4.375 6.15629 4.65482 5.87646 5 5.87646ZM9.625 6.50146C9.625 6.15629 9.34518 5.87646 9 5.87646C8.65482 5.87646 8.375 6.15629 8.375 6.50146V10.503C8.375 10.8481 8.65482 11.128 9 11.128C9.34518 11.128 9.625 10.8481 9.625 10.503V6.50146Z" clip-rule="evenodd"/></svg>';
|
|
77
|
-
const balIconPlus = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M8 1C8 0.447715 7.55228 0 7 0C6.44772 0 6 0.447715 6 1V6H1C0.447715 6 0 6.44772 0 7C0 7.55228 0.447715 8 1 8H6V13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13V8H13C13.5523 8 14 7.55228 14 7C14 6.44772 13.5523 6 13 6H8V1Z" clip-rule="evenodd"/></svg>';
|
|
78
|
-
const balIconNavGoUp = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M9.794,6.607,5.884,2.49A1.255,1.255,0,0,0,4.1,2.5l-3.9,4.1A.75.75,0,1,0,1.294,7.641L4.819,3.928a.249.249,0,0,1,.362,0L8.706,7.641A.75.75,0,1,0,9.794,6.607Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
79
|
-
const balIconNavGoRight = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.5,4.1l-4.1-3.9A.75.75,0,1,0,2.36,1.294L6.072,4.819a.249.249,0,0,1,0,.362L2.36,8.706A.75.75,0,0,0,3.393,9.794L7.51,5.884A1.256,1.256,0,0,0,7.5,4.1Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
80
|
-
const balIconNavGoLeft = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.124,10a.749.749,0,0,1-.517-.206L2.5,5.9A1.257,1.257,0,0,1,2.49,4.116L6.607.206A.75.75,0,1,1,7.64,1.294L3.928,4.819a.249.249,0,0,0,0,.362L7.64,8.706A.75.75,0,0,1,7.124,10Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
81
|
-
const balIconNavGoDown = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M5,7.874a1.238,1.238,0,0,1-.879-.364L.206,3.393A.75.75,0,1,1,1.294,2.36L4.819,6.072a.249.249,0,0,0,.362,0L8.706,2.36A.75.75,0,1,1,9.794,3.393L5.9,7.5A1.269,1.269,0,0,1,5,7.874Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
82
|
-
const balIconMinus = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0 7C0 6.44772 0.447715 6 1 6H13C13.5523 6 14 6.44772 14 7C14 7.55228 13.5523 8 13 8H1C0.447715 8 0 7.55228 0 7Z" clip-rule="evenodd"/></svg>';
|
|
83
|
-
const balIconMenuBars = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0 2a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1zm0 5a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1zm1 4a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H1z" clip-rule="evenodd"/></svg>';
|
|
84
|
-
const balIconLinkedin = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M3.31334 1.36381C3.31624 1.73602 3.17257 2.09441 2.9134 2.36157C2.65422 2.62872 2.30034 2.78317 1.92822 2.79156C1.55687 2.77793 1.20495 2.62217 0.945182 2.35645C0.685414 2.09073 0.537655 1.73538 0.53244 1.36381C0.548583 1.0018 0.701774 0.659474 0.96096 0.406224C1.22015 0.152974 1.56593 0.00775305 1.92822 0C2.28945 0.00789779 2.63402 0.153479 2.89148 0.40698C3.14894 0.66048 3.29985 1.00275 3.31334 1.36381ZM0.681607 5.3274C0.681607 4.50698 1.20369 4.63484 1.92822 4.63484C2.65275 4.63484 3.16418 4.50698 3.16418 5.3274V13.3185C3.16418 14.1496 2.64209 13.9791 1.92822 13.9791C1.21435 13.9791 0.681607 14.1496 0.681607 13.3185V5.3274Z"/><path d="M5.31647 5.32741C5.31647 4.86926 5.48694 4.69878 5.75331 4.64551C6.01968 4.59223 6.936 4.64551 7.25564 4.64551C7.57528 4.64551 7.70314 5.16759 7.69249 5.56182C7.96591 5.19486 8.32892 4.9042 8.7468 4.71765C9.16467 4.5311 9.62342 4.4549 10.0792 4.49634C10.5267 4.46898 10.975 4.53608 11.3949 4.69327C11.8148 4.85046 12.1969 5.09424 12.5165 5.40876C12.836 5.72328 13.0858 6.1015 13.2496 6.51887C13.4135 6.93623 13.4877 7.38339 13.4674 7.83129V13.2865C13.4674 14.1176 12.956 13.9471 12.2314 13.9471C11.5069 13.9471 10.9955 14.1176 10.9955 13.2865V9.02463C11.0142 8.80528 10.9855 8.58447 10.9114 8.3772C10.8372 8.16992 10.7193 7.98103 10.5657 7.82335C10.412 7.66568 10.2263 7.54291 10.021 7.46339C9.8157 7.38387 9.59571 7.34945 9.37595 7.36248C9.1572 7.35692 8.93978 7.3979 8.73806 7.48268C8.53635 7.56747 8.35494 7.69414 8.20586 7.85431C8.05677 8.01447 7.94341 8.20447 7.87328 8.41174C7.80314 8.61901 7.77784 8.83881 7.79904 9.05659V13.3185C7.79904 14.1496 7.27695 13.9791 6.55242 13.9791C5.8279 13.9791 5.31647 14.1496 5.31647 13.3185V5.32741Z"/></svg>';
|
|
85
|
-
const balIconInstagram = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0.786499 3.39046C0.786499 1.95243 1.95225 0.786682 3.39027 0.786682H10.3337C11.7717 0.786682 12.9374 1.95243 12.9374 3.39046V10.3339C12.9374 11.7719 11.7717 12.9376 10.3337 12.9376H3.39027C1.95225 12.9376 0.786499 11.7719 0.786499 10.3339V3.39046ZM6.8621 4.78204C5.71332 4.78204 4.78204 5.71332 4.78204 6.8621C4.78204 8.01088 5.71332 8.94216 6.8621 8.94216C8.01088 8.94216 8.94216 8.01088 8.94216 6.8621C8.94216 5.71332 8.01088 4.78204 6.8621 4.78204ZM3.78204 6.8621C3.78204 5.16103 5.16103 3.78204 6.8621 3.78204C8.56317 3.78204 9.94216 5.16103 9.94216 6.8621C9.94216 8.56317 8.56317 9.94216 6.8621 9.94216C5.16103 9.94216 3.78204 8.56317 3.78204 6.8621ZM10.3349 3.98516C10.6842 3.98516 10.9673 3.70199 10.9673 3.35269C10.9673 3.00338 10.6842 2.72021 10.3349 2.72021C9.98556 2.72021 9.70239 3.00338 9.70239 3.35269C9.70239 3.70199 9.98556 3.98516 10.3349 3.98516Z" clip-rule="evenodd"/></svg>';
|
|
86
|
-
const balIconInfoCircle = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM5.5 9.375C5.15482 9.375 4.875 9.65482 4.875 10C4.875 10.3452 5.15482 10.625 5.5 10.625H7H8.5C8.84518 10.625 9.125 10.3452 9.125 10C9.125 9.65482 8.84518 9.375 8.5 9.375H7.625V6.5C7.625 6.15482 7.34518 5.875 7 5.875H6C5.65482 5.875 5.375 6.15482 5.375 6.5C5.375 6.84518 5.65482 7.125 6 7.125H6.375V9.375H5.5ZM8 4C8 4.55228 7.55228 5 7 5C6.44772 5 6 4.55228 6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4Z" clip-rule="evenodd"/></svg>';
|
|
87
|
-
const balIconFacebook = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M8.06356 3.75515C8.06356 2.67675 8.60345 2.67675 9.14334 2.67675H9.79121C9.89938 2.6782 10.0067 2.65799 10.107 2.61732C10.2072 2.57664 10.2982 2.51633 10.3747 2.43993C10.4512 2.36353 10.5116 2.2726 10.5523 2.17251C10.5931 2.07242 10.6133 1.96519 10.6118 1.85716V0.84346C10.6119 0.734917 10.5903 0.627453 10.5484 0.527307C10.5064 0.42716 10.445 0.336327 10.3677 0.260078C10.2903 0.18383 10.1986 0.123686 10.0978 0.0831375C9.99696 0.0425893 9.88909 0.0224446 9.78041 0.0238728L8.24712 0.00230466C7.80066 -0.0149417 7.35577 0.0647696 6.94316 0.235937C6.53054 0.407104 6.16003 0.665651 5.8572 0.993733C5.55436 1.32181 5.32641 1.71162 5.18908 2.13624C5.05175 2.56086 5.00831 3.01018 5.06176 3.4532V5.01689H4.20873C3.99108 5.01689 3.78235 5.10324 3.62845 5.25694C3.47455 5.41064 3.38809 5.61911 3.38809 5.83648V6.85018C3.38809 7.06754 3.47455 7.27601 3.62845 7.42971C3.78235 7.58341 3.99108 7.66976 4.20873 7.66976H5.06176V13.4608C5.06176 13.6038 5.11864 13.741 5.21989 13.8421C5.32114 13.9432 5.45846 14 5.60165 14H7.55606C7.69356 13.9917 7.8227 13.9313 7.91705 13.8311C8.01139 13.7308 8.0638 13.5984 8.06356 13.4608V7.66976H9.01377C9.23141 7.66976 9.44014 7.58341 9.59404 7.42971C9.74794 7.27601 9.8344 7.06754 9.8344 6.85018V5.83648C9.8344 5.61911 9.74794 5.41064 9.59404 5.25694C9.44014 5.10324 9.23141 5.01689 9.01377 5.01689H8.06356V3.75515Z"/></svg>';
|
|
88
|
-
const balIconEdit = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M10.715 -0.000976562C10.5152 -0.000976562 10.3174 0.0389464 10.1332 0.116448C9.95019 0.193468 9.78428 0.306058 9.64512 0.447676L1.40732 8.64549C1.34616 8.70635 1.30179 8.782 1.27853 8.86508L0.0185299 13.3651C-0.0301752 13.539 0.0187291 13.7257 0.146458 13.8535C0.274188 13.9812 0.46088 14.0301 0.634827 13.9814L5.13483 12.7214C5.21791 12.6981 5.29356 12.6537 5.35442 12.5926L13.5521 4.3549L13.5535 4.35355C13.6934 4.21438 13.8045 4.04896 13.8804 3.86676C13.9566 3.68398 13.9958 3.48792 13.9958 3.2899C13.9958 3.09188 13.9566 2.89582 13.8804 2.71303C13.8045 2.53083 13.6934 2.3654 13.5535 2.22624L13.5521 2.2249L11.7859 0.448721C11.6466 0.306611 11.4803 0.193657 11.2968 0.116448C11.1126 0.0389464 10.9148 -0.000976562 10.715 -0.000976562Z"/></svg>';
|
|
89
|
-
const balIconDocument = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M1.43934 0.43934C1.72064 0.158035 2.10218 0 2.5 0H7.5C7.63261 0 7.75979 0.0526784 7.85355 0.146447L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 12.8978 12.842 13.2794 12.5607 13.5607C12.2794 13.842 11.8978 14 11.5 14H2.5C2.10217 14 1.72064 13.842 1.43934 13.5607C1.15804 13.2794 1 12.8978 1 12.5V1.5C1 1.10218 1.15804 0.720644 1.43934 0.43934ZM4.5 3.875C4.15482 3.875 3.875 4.15482 3.875 4.5C3.875 4.84518 4.15482 5.125 4.5 5.125H6.5C6.84518 5.125 7.125 4.84518 7.125 4.5C7.125 4.15482 6.84518 3.875 6.5 3.875H4.5ZM3.875 7.5C3.875 7.15482 4.15482 6.875 4.5 6.875H9.5C9.84518 6.875 10.125 7.15482 10.125 7.5C10.125 7.84518 9.84518 8.125 9.5 8.125H4.5C4.15482 8.125 3.875 7.84518 3.875 7.5ZM4.5 9.875C4.15482 9.875 3.875 10.1548 3.875 10.5C3.875 10.8452 4.15482 11.125 4.5 11.125H9.5C9.84518 11.125 10.125 10.8452 10.125 10.5C10.125 10.1548 9.84518 9.875 9.5 9.875H4.5Z" clip-rule="evenodd"/></svg>';
|
|
90
|
-
const balIconDate = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M10 0a.75.75 0 0 1 .75.75v.75h1.5c.966 0 1.75.784 1.75 1.75v9A1.75 1.75 0 0 1 12.25 14H1.75A1.75 1.75 0 0 1 0 12.25v-9C0 2.284.784 1.5 1.75 1.5h1.5V.75a.75.75 0 0 1 1.5 0v.75h4.5V.75A.75.75 0 0 1 10 0zM3.25 3v.75a.75.75 0 0 0 1.5 0V3h4.5v.75a.75.75 0 0 0 1.5 0V3h1.5a.25.25 0 0 1 .25.25v2.282a1.002 1.002 0 0 0-.25-.032H1.75c-.086 0-.17.01-.25.032V3.25A.25.25 0 0 1 1.75 3h1.5z" clip-rule="evenodd"/></svg>';
|
|
91
|
-
const balIconClose = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L5.58579 7L0.292893 12.2929C-0.0976311 12.6834 -0.0976311 13.3166 0.292893 13.7071C0.683417 14.0976 1.31658 14.0976 1.70711 13.7071L7 8.41421L12.2929 13.7071C12.6834 14.0976 13.3166 14.0976 13.7071 13.7071C14.0976 13.3166 14.0976 12.6834 13.7071 12.2929L8.41421 7L13.7071 1.70711C14.0976 1.31658 14.0976 0.683417 13.7071 0.292893C13.3166 -0.0976311 12.6834 -0.0976311 12.2929 0.292893L7 5.58579L1.70711 0.292893Z" clip-rule="evenodd"/></svg>';
|
|
92
|
-
const balIconClock = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7.625 4.5C7.625 4.15482 7.34518 3.875 7 3.875C6.65482 3.875 6.375 4.15482 6.375 4.5V7C6.375 7.14621 6.42626 7.28779 6.51986 7.40012L9.01986 10.4001C9.24084 10.6653 9.63494 10.7011 9.90012 10.4801C10.1653 10.2592 10.2011 9.86506 9.98014 9.59988L7.625 6.77372V4.5Z" clip-rule="evenodd"/></svg>';
|
|
93
|
-
const balIconCheck = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M13.637 1.19792C14.0627 1.54974 14.1227 2.18006 13.7708 2.60579L5.73084 12.335L5.72842 12.3379C5.54554 12.5575 5.31602 12.7336 5.05655 12.8534C4.79707 12.9731 4.51417 13.0336 4.22842 13.0302L4.22752 13.0302C3.93709 13.0266 3.65125 12.9573 3.39146 12.8274C3.13254 12.6979 2.9062 12.5117 2.72931 12.2826C2.72871 12.2818 2.72812 12.281 2.72752 12.2802L0.210633 9.04426C-0.128437 8.60831 -0.0499029 7.98003 0.386044 7.64096C0.821992 7.30189 1.45027 7.38043 1.78934 7.81638L4.25291 10.9838L12.2291 1.33176C12.5809 0.906034 13.2113 0.846112 13.637 1.19792Z" clip-rule="evenodd"/></svg>';
|
|
94
|
-
const balIconCaretUp = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M9.794,6.607,5.884,2.49A1.255,1.255,0,0,0,4.1,2.5l-3.9,4.1A.75.75,0,1,0,1.294,7.641L4.819,3.928a.249.249,0,0,1,.362,0L8.706,7.641A.75.75,0,1,0,9.794,6.607Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
95
|
-
const balIconCaretRight = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.5,4.1l-4.1-3.9A.75.75,0,1,0,2.36,1.294L6.072,4.819a.249.249,0,0,1,0,.362L2.36,8.706A.75.75,0,0,0,3.393,9.794L7.51,5.884A1.256,1.256,0,0,0,7.5,4.1Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
96
|
-
const balIconCaretLeft = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.124,10a.749.749,0,0,1-.517-.206L2.5,5.9A1.257,1.257,0,0,1,2.49,4.116L6.607.206A.75.75,0,1,1,7.64,1.294L3.928,4.819a.249.249,0,0,0,0,.362L7.64,8.706A.75.75,0,0,1,7.124,10Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
97
|
-
const balIconCaretDown = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M5,7.874a1.238,1.238,0,0,1-.879-.364L.206,3.393A.75.75,0,1,1,1.294,2.36L4.819,6.072a.249.249,0,0,0,.362,0L8.706,2.36A.75.75,0,1,1,9.794,3.393L5.9,7.5A1.269,1.269,0,0,1,5,7.874Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
|
|
98
|
-
|
|
99
|
-
const defaultLoggerConfig = {
|
|
100
|
-
components: [],
|
|
101
|
-
event: false,
|
|
102
|
-
lifecycle: false,
|
|
103
|
-
render: false,
|
|
104
|
-
custom: false,
|
|
105
|
-
};
|
|
106
|
-
const getConfig = () => {
|
|
107
|
-
let loggerConfig = defaultLoggerConfig;
|
|
108
|
-
if (balBrowser.hasWindow &&
|
|
109
|
-
window.BaloiseDesignSystem &&
|
|
110
|
-
window.BaloiseDesignSystem.config &&
|
|
111
|
-
window.BaloiseDesignSystem.config.logger) {
|
|
112
|
-
loggerConfig = window.BaloiseDesignSystem.config.logger;
|
|
113
|
-
}
|
|
114
|
-
return loggerConfig;
|
|
115
|
-
};
|
|
116
|
-
const buildLogger = (tag) => {
|
|
117
|
-
const l = (type, message, ...optionalParams) => {
|
|
118
|
-
const config = getConfig();
|
|
119
|
-
if (config.components.includes(tag) && config[type]) {
|
|
120
|
-
console.log(message, ...optionalParams);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
return {
|
|
124
|
-
custom: (message, ...optionalParams) => l('custom', ` ➡️ [${tag}] - ${message}`, ...optionalParams),
|
|
125
|
-
lifecycle: (lifecycleName, ...optionalParams) => l('lifecycle', `${lifecycleName === 'connectedCallback'
|
|
126
|
-
? '🟢'
|
|
127
|
-
: lifecycleName === 'disconnectedCallback'
|
|
128
|
-
? '🔴'
|
|
129
|
-
: lifecycleName === 'componentDidLoad'
|
|
130
|
-
? '🏁'
|
|
131
|
-
: ' ➡️'} [${tag}] - (${lifecycleName})`, ...optionalParams),
|
|
132
|
-
event: (eventName, ...optionalParams) => l('event', `🔥 [${tag}] - (${eventName})`, ...optionalParams),
|
|
133
|
-
render: (...optionalParams) => l('render', `🖌️ [${tag}] - (render)`, ...optionalParams),
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
function Logger(tag = 'unknown') {
|
|
137
|
-
return function (target, _propertyKey, _descriptor) {
|
|
138
|
-
const { connectedCallback, disconnectedCallback, render, componentDidLoad, createLogger } = target;
|
|
139
|
-
const log = buildLogger(tag);
|
|
140
|
-
target.connectedCallback = function () {
|
|
141
|
-
log.lifecycle(`connectedCallback`, this);
|
|
142
|
-
const events = Object.keys(this)
|
|
143
|
-
.filter(n => n.startsWith('bal'))
|
|
144
|
-
.filter(n => typeof this[n] === 'object');
|
|
145
|
-
for (let index = 0; index < events.length; index++) {
|
|
146
|
-
const event = events[index];
|
|
147
|
-
const emitter = this[event];
|
|
148
|
-
this[event] = {
|
|
149
|
-
emit: (...args) => {
|
|
150
|
-
log.event(event, this, ...args);
|
|
151
|
-
return emitter.emit.call(this, ...args);
|
|
152
|
-
},
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
createLogger.call(this, log.custom);
|
|
156
|
-
return connectedCallback && connectedCallback.call(this);
|
|
157
|
-
};
|
|
158
|
-
target.disconnectedCallback = function () {
|
|
159
|
-
log.lifecycle(`disconnectedCallback`, this);
|
|
160
|
-
return disconnectedCallback && disconnectedCallback.call(this);
|
|
161
|
-
};
|
|
162
|
-
target.componentDidLoad = function () {
|
|
163
|
-
log.lifecycle(`componentDidLoad`, this);
|
|
164
|
-
return componentDidLoad && componentDidLoad.call(this);
|
|
165
|
-
};
|
|
166
|
-
target.render = function () {
|
|
167
|
-
log.render(this);
|
|
168
|
-
return render.call(this);
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const defaultIcons = {
|
|
174
|
-
balIconClock,
|
|
175
|
-
balIconClose,
|
|
176
|
-
balIconInfoCircle,
|
|
177
|
-
balIconPlus,
|
|
178
|
-
balIconMinus,
|
|
179
|
-
balIconEdit,
|
|
180
|
-
balIconTrash,
|
|
181
|
-
balIconNavGoLeft,
|
|
182
|
-
balIconNavGoRight,
|
|
183
|
-
balIconNavGoDown,
|
|
184
|
-
balIconNavGoUp,
|
|
185
|
-
balIconCheck,
|
|
186
|
-
balIconDate,
|
|
187
|
-
balIconDocument,
|
|
188
|
-
balIconUpload,
|
|
189
|
-
balIconMenuBars,
|
|
190
|
-
balIconFacebook,
|
|
191
|
-
balIconInstagram,
|
|
192
|
-
balIconLinkedin,
|
|
193
|
-
balIconTwitter,
|
|
194
|
-
balIconX,
|
|
195
|
-
balIconXing,
|
|
196
|
-
balIconYoutube,
|
|
197
|
-
balIconWeb,
|
|
198
|
-
balIconCaretDown,
|
|
199
|
-
balIconCaretLeft,
|
|
200
|
-
balIconCaretRight,
|
|
201
|
-
balIconCaretUp,
|
|
202
|
-
};
|
|
203
|
-
const defaultConfig = {
|
|
204
|
-
region: 'CH',
|
|
205
|
-
language: 'de',
|
|
206
|
-
allowedLanguages: ['de', 'fr', 'it', 'en'],
|
|
207
|
-
icons: defaultIcons,
|
|
208
|
-
fallbackLanguage: 'de',
|
|
209
|
-
logger: defaultLoggerConfig,
|
|
210
|
-
animated: true,
|
|
211
|
-
httpFormSubmit: true,
|
|
212
|
-
_generateHydrateForCustomElementsOutput: false,
|
|
213
|
-
};
|
|
214
|
-
const defaultLocale = `${defaultConfig.language}-${defaultConfig.region}`;
|
|
215
|
-
|
|
216
|
-
class Config {
|
|
217
|
-
constructor() {
|
|
218
|
-
this._componentObservers = [];
|
|
219
|
-
this._observers = [];
|
|
220
|
-
this._config = defaultConfig;
|
|
221
|
-
}
|
|
222
|
-
get locale() {
|
|
223
|
-
return `${this._config.language}-${this._config.region}`;
|
|
224
|
-
}
|
|
225
|
-
get region() {
|
|
226
|
-
return this._config.region;
|
|
227
|
-
}
|
|
228
|
-
set region(region) {
|
|
229
|
-
if (region !== this._config.region) {
|
|
230
|
-
this._config.region = region;
|
|
231
|
-
this._notify();
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
get language() {
|
|
235
|
-
return this._config.language;
|
|
236
|
-
}
|
|
237
|
-
set language(language) {
|
|
238
|
-
if (language !== this._config.language) {
|
|
239
|
-
if (this._config.allowedLanguages.includes(language)) {
|
|
240
|
-
this._config.language = language;
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
this._config.language = this._config.fallbackLanguage;
|
|
244
|
-
}
|
|
245
|
-
this._notify();
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
get allowedLanguages() {
|
|
249
|
-
return this._config.allowedLanguages;
|
|
250
|
-
}
|
|
251
|
-
set allowedLanguages(allowedLanguages) {
|
|
252
|
-
if (allowedLanguages !== this._config.allowedLanguages) {
|
|
253
|
-
this._config.allowedLanguages = allowedLanguages;
|
|
254
|
-
this._notify();
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
get icons() {
|
|
258
|
-
return this._config.icons;
|
|
259
|
-
}
|
|
260
|
-
set icons(icons) {
|
|
261
|
-
this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
|
|
262
|
-
this._notify();
|
|
263
|
-
}
|
|
264
|
-
get logger() {
|
|
265
|
-
return this._config.logger;
|
|
266
|
-
}
|
|
267
|
-
set logger(logger) {
|
|
268
|
-
this._config.logger = Object.assign({}, logger);
|
|
269
|
-
this._notify();
|
|
270
|
-
}
|
|
271
|
-
get animated() {
|
|
272
|
-
return this._config.animated;
|
|
273
|
-
}
|
|
274
|
-
set animated(animated) {
|
|
275
|
-
this._config.animated = animated;
|
|
276
|
-
this._notify();
|
|
277
|
-
}
|
|
278
|
-
get httpFormSubmit() {
|
|
279
|
-
return this._config.httpFormSubmit;
|
|
280
|
-
}
|
|
281
|
-
set httpFormSubmit(httpFormSubmit) {
|
|
282
|
-
this._config.httpFormSubmit = httpFormSubmit;
|
|
283
|
-
this._notify();
|
|
284
|
-
}
|
|
285
|
-
attach(observer) {
|
|
286
|
-
const isExist = this._observers.includes(observer);
|
|
287
|
-
if (isExist) {
|
|
288
|
-
return console.log('Subject: Observer has been attached already.');
|
|
289
|
-
}
|
|
290
|
-
this._observers.push(observer);
|
|
291
|
-
observer.configChanged(this._config);
|
|
292
|
-
}
|
|
293
|
-
detach(observer) {
|
|
294
|
-
const observerIndex = this._observers.indexOf(observer);
|
|
295
|
-
if (observerIndex === -1) {
|
|
296
|
-
return console.log('Subject: Nonexistent observer.');
|
|
297
|
-
}
|
|
298
|
-
this._observers.splice(observerIndex, 1);
|
|
299
|
-
}
|
|
300
|
-
attachComponent(observer) {
|
|
301
|
-
const isExist = this._componentObservers.includes(observer);
|
|
302
|
-
if (isExist) {
|
|
303
|
-
return console.log('Subject: Observer has been attached already.');
|
|
304
|
-
}
|
|
305
|
-
this._componentObservers.push(observer);
|
|
306
|
-
observer.configChanged(this._config);
|
|
307
|
-
}
|
|
308
|
-
detachComponent(observer) {
|
|
309
|
-
const observerIndex = this._componentObservers.indexOf(observer);
|
|
310
|
-
if (observerIndex === -1) {
|
|
311
|
-
return console.log('Subject: Nonexistent observer.');
|
|
312
|
-
}
|
|
313
|
-
this._componentObservers.splice(observerIndex, 1);
|
|
314
|
-
}
|
|
315
|
-
toString() {
|
|
316
|
-
return JSON.stringify(this._config);
|
|
317
|
-
}
|
|
318
|
-
reset(config) {
|
|
319
|
-
this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
|
|
320
|
-
this._notify(false);
|
|
321
|
-
}
|
|
322
|
-
_notify(all = true) {
|
|
323
|
-
for (const observer of this._componentObservers) {
|
|
324
|
-
observer.configChanged(this._config);
|
|
325
|
-
}
|
|
326
|
-
if (all) {
|
|
327
|
-
for (const observer of this._observers) {
|
|
328
|
-
observer.configChanged(this._config);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
const config = /*@__PURE__*/ new Config();
|
|
334
|
-
const configFromLocalStorage = (win) => {
|
|
335
|
-
try {
|
|
336
|
-
const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
|
|
337
|
-
if (animated !== null) {
|
|
338
|
-
return {
|
|
339
|
-
animated,
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
return {};
|
|
343
|
-
}
|
|
344
|
-
catch (e) {
|
|
345
|
-
return {};
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
const setupConfig = (userConfig = {}, win = {}) => {
|
|
350
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
351
|
-
win = window;
|
|
352
|
-
}
|
|
353
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
354
|
-
config.reset(Object.assign(Object.assign(Object.assign({}, configFromLocalStorage(win)), userConfig), { icons: Object.assign({}, userConfig.icons) }));
|
|
355
|
-
win.BaloiseDesignSystem.config = config;
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
const onBalConfigChange = (callback) => {
|
|
359
|
-
attachToConfig({
|
|
360
|
-
configChanged(state) {
|
|
361
|
-
callback(state);
|
|
362
|
-
},
|
|
363
|
-
});
|
|
364
|
-
};
|
|
365
|
-
const useBalConfig = () => {
|
|
366
|
-
if (!balBrowser.hasWindow) {
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
const win = window;
|
|
370
|
-
return win && win.BaloiseDesignSystem && win.BaloiseDesignSystem.config;
|
|
371
|
-
};
|
|
372
|
-
const attachToConfig = (observer) => {
|
|
373
|
-
const config = useBalConfig();
|
|
374
|
-
if (config) {
|
|
375
|
-
config.attach(observer);
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
const detachFromConfig = (observer) => {
|
|
379
|
-
const config = useBalConfig();
|
|
380
|
-
if (config) {
|
|
381
|
-
config.detach(observer);
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
const attachComponentToConfig = (observer) => {
|
|
385
|
-
const config = useBalConfig();
|
|
386
|
-
if (config) {
|
|
387
|
-
config.attachComponent(observer);
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
const detachComponentFromConfig = (observer) => {
|
|
391
|
-
const config = useBalConfig();
|
|
392
|
-
if (config) {
|
|
393
|
-
config.detachComponent(observer);
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
const updateBalLanguage = (language) => {
|
|
397
|
-
const config = useBalConfig();
|
|
398
|
-
if (config) {
|
|
399
|
-
config.language = language;
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
const updateBalRegion = (region) => {
|
|
403
|
-
const config = useBalConfig();
|
|
404
|
-
if (config) {
|
|
405
|
-
config.region = region;
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
const updateBalAllowedLanguages = (allowedLanguages) => {
|
|
409
|
-
const config = useBalConfig();
|
|
410
|
-
if (config) {
|
|
411
|
-
config.allowedLanguages = allowedLanguages;
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
const updateBalIcons = (icons) => {
|
|
415
|
-
const config = useBalConfig();
|
|
416
|
-
if (config) {
|
|
417
|
-
config.icons = Object.assign(Object.assign({}, config.icons), icons);
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
const updateBalAnimated = (animated) => {
|
|
421
|
-
const config = useBalConfig();
|
|
422
|
-
if (config) {
|
|
423
|
-
config.animated = animated;
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Request Largest Contentful Paint (LCP) callback
|
|
429
|
-
*/
|
|
430
|
-
const rLCP = (callback, timeout = 3000) => {
|
|
431
|
-
let isLargestContentPatinDone = false;
|
|
432
|
-
if (!balBrowser.isSafari && balBrowser.hasWindow && 'PerformanceObserver' in window) {
|
|
433
|
-
const observer = new PerformanceObserver(entryList => {
|
|
434
|
-
const entries = entryList.getEntries();
|
|
435
|
-
const lcpEntry = entries[entries.length - 1]; // Get the last (largest) entry
|
|
436
|
-
if (lcpEntry) {
|
|
437
|
-
// Disconnect the observer as we only need the LCP
|
|
438
|
-
observer.disconnect();
|
|
439
|
-
// Load the script after LCP
|
|
440
|
-
isLargestContentPatinDone = true;
|
|
441
|
-
rIC(() => callback());
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
// Start observing for Largest Contentful Paint (LCP) entries
|
|
445
|
-
observer.observe({ type: 'largest-contentful-paint', buffered: true });
|
|
446
|
-
setTimeout(() => {
|
|
447
|
-
if (!isLargestContentPatinDone) {
|
|
448
|
-
observer.disconnect();
|
|
449
|
-
callback();
|
|
450
|
-
}
|
|
451
|
-
}, timeout);
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
return setTimeout(callback, 32);
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
const rOnLoad = (callback, timeout = 32) => {
|
|
458
|
-
let called = false;
|
|
459
|
-
const callOnce = () => {
|
|
460
|
-
if (!called) {
|
|
461
|
-
called = true;
|
|
462
|
-
callback();
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
if (balBrowser.hasWindow) {
|
|
466
|
-
const timer = setTimeout(callOnce, timeout);
|
|
467
|
-
window.addEventListener('load', () => {
|
|
468
|
-
clearTimeout(timer);
|
|
469
|
-
callOnce();
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
setTimeout(callOnce, 32);
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
const rIC = (callback, timeout = 5000) => {
|
|
477
|
-
if (balBrowser.hasWindow && 'requestIdleCallback' in window) {
|
|
478
|
-
window.requestIdleCallback(callback, { timeout });
|
|
479
|
-
}
|
|
480
|
-
else {
|
|
481
|
-
setTimeout(callback, 32);
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
const wait = (ms = 0) => {
|
|
485
|
-
return new Promise(resolve => {
|
|
486
|
-
setTimeout(() => resolve(), ms);
|
|
487
|
-
});
|
|
488
|
-
};
|
|
489
|
-
const debounceEvent = (ev, wait) => {
|
|
490
|
-
const original = ev._original || ev;
|
|
491
|
-
return {
|
|
492
|
-
_original: ev,
|
|
493
|
-
emit: debounce(original.emit.bind(original), wait),
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
const debounce = (func, wait = 0) => {
|
|
497
|
-
let timer;
|
|
498
|
-
return (...args) => {
|
|
499
|
-
clearTimeout(timer);
|
|
500
|
-
timer = setTimeout(func, wait, ...args);
|
|
501
|
-
};
|
|
502
|
-
};
|
|
503
|
-
const hasTagName = (element, tag) => {
|
|
504
|
-
return element && element.tagName && element.tagName === tag.toUpperCase();
|
|
505
|
-
};
|
|
506
|
-
const isDescendant = (parent, child) => {
|
|
507
|
-
let node = child.parentNode;
|
|
508
|
-
while (node != null) {
|
|
509
|
-
if (node == parent) {
|
|
510
|
-
return true;
|
|
511
|
-
}
|
|
512
|
-
node = node.parentNode;
|
|
513
|
-
}
|
|
514
|
-
return false;
|
|
515
|
-
};
|
|
516
|
-
const hasParent = (parentTag, child) => {
|
|
517
|
-
let node = child.parentNode;
|
|
518
|
-
while (node != null) {
|
|
519
|
-
if (node.tagName === parentTag.toUpperCase()) {
|
|
520
|
-
return true;
|
|
521
|
-
}
|
|
522
|
-
node = node.parentNode;
|
|
523
|
-
}
|
|
524
|
-
return false;
|
|
525
|
-
};
|
|
526
|
-
const getAppRoot = (doc) => {
|
|
527
|
-
return doc.querySelector('bal-app') || doc.body;
|
|
528
|
-
};
|
|
529
|
-
/**
|
|
530
|
-
* Waits for a component to be ready for
|
|
531
|
-
* both custom element and non-custom element builds.
|
|
532
|
-
* If non-custom element build, el.componentOnReady
|
|
533
|
-
* will be used.
|
|
534
|
-
* For custom element builds, we wait a frame
|
|
535
|
-
* so that the inner contents of the component
|
|
536
|
-
* have a chance to render.
|
|
537
|
-
*
|
|
538
|
-
* Use this utility rather than calling
|
|
539
|
-
* el.componentOnReady yourself.
|
|
540
|
-
*/
|
|
541
|
-
const componentOnReady = (el, callback) => {
|
|
542
|
-
if (el.componentOnReady !== null && el.componentOnReady !== undefined) {
|
|
543
|
-
el.componentOnReady().then((resolvedEl) => callback(resolvedEl));
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
raf(() => callback(el));
|
|
547
|
-
}
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* Patched version of requestAnimationFrame that avoids ngzone
|
|
551
|
-
* Use only when you know ngzone should not run
|
|
552
|
-
*/
|
|
553
|
-
const raf = (h) => {
|
|
554
|
-
if (typeof __zone_symbol__requestAnimationFrame === 'function') {
|
|
555
|
-
return __zone_symbol__requestAnimationFrame(h);
|
|
556
|
-
}
|
|
557
|
-
if (typeof requestAnimationFrame === 'function') {
|
|
558
|
-
return requestAnimationFrame(h);
|
|
559
|
-
}
|
|
560
|
-
return setTimeout(h);
|
|
561
|
-
};
|
|
562
|
-
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
563
|
-
return new Promise(resolve => {
|
|
564
|
-
transitionEnd(el, expectedDuration, resolve);
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
|
-
/**
|
|
568
|
-
* Allows developer to wait for a transition
|
|
569
|
-
* to finish and fallback to a timer if the
|
|
570
|
-
* transition is cancelled or otherwise
|
|
571
|
-
* never finishes. Also see transitionEndAsync
|
|
572
|
-
* which is an await-able version of this.
|
|
573
|
-
*/
|
|
574
|
-
const transitionEnd = (el, expectedDuration = 0, callback) => {
|
|
575
|
-
let unRegTrans;
|
|
576
|
-
let animationTimeout;
|
|
577
|
-
const opts = { passive: true };
|
|
578
|
-
const ANIMATION_FALLBACK_TIMEOUT = 500;
|
|
579
|
-
const unregister = () => {
|
|
580
|
-
if (unRegTrans) {
|
|
581
|
-
unRegTrans();
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
const onTransitionEnd = (ev) => {
|
|
585
|
-
if (ev === undefined || el === ev.target) {
|
|
586
|
-
unregister();
|
|
587
|
-
callback(ev);
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
|
-
if (el) {
|
|
591
|
-
el.addEventListener('webkitTransitionEnd', onTransitionEnd, opts);
|
|
592
|
-
el.addEventListener('transitionend', onTransitionEnd, opts);
|
|
593
|
-
animationTimeout = setTimeout(onTransitionEnd, expectedDuration + ANIMATION_FALLBACK_TIMEOUT);
|
|
594
|
-
unRegTrans = () => {
|
|
595
|
-
if (animationTimeout) {
|
|
596
|
-
clearTimeout(animationTimeout);
|
|
597
|
-
animationTimeout = undefined;
|
|
598
|
-
}
|
|
599
|
-
el.removeEventListener('webkitTransitionEnd', onTransitionEnd, opts);
|
|
600
|
-
el.removeEventListener('transitionend', onTransitionEnd, opts);
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
return unregister;
|
|
604
|
-
};
|
|
605
|
-
const addEventListener = (el, eventName, callback, opts) => {
|
|
606
|
-
if (balBrowser.hasWindow) {
|
|
607
|
-
const config = useBalConfig();
|
|
608
|
-
if (config) {
|
|
609
|
-
const ael = config._ael;
|
|
610
|
-
if (ael) {
|
|
611
|
-
return ael(el, eventName, callback, opts);
|
|
612
|
-
}
|
|
613
|
-
else if (config._ael) {
|
|
614
|
-
return config._ael(el, eventName, callback, opts);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return el.addEventListener(eventName, callback, opts);
|
|
619
|
-
};
|
|
620
|
-
const removeEventListener = (el, eventName, callback, opts) => {
|
|
621
|
-
if (balBrowser.hasWindow) {
|
|
622
|
-
const config = useBalConfig();
|
|
623
|
-
if (config) {
|
|
624
|
-
const rel = config._rel;
|
|
625
|
-
if (rel) {
|
|
626
|
-
return rel(el, eventName, callback, opts);
|
|
627
|
-
}
|
|
628
|
-
else if (config._rel) {
|
|
629
|
-
return config._rel(el, eventName, callback, opts);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
return el.removeEventListener(eventName, callback, opts);
|
|
634
|
-
};
|
|
635
|
-
const shallowReady = (el) => {
|
|
636
|
-
if (el) {
|
|
637
|
-
return new Promise(resolve => componentOnReady(el, resolve));
|
|
638
|
-
}
|
|
639
|
-
return Promise.resolve();
|
|
640
|
-
};
|
|
641
|
-
const deepReady = async (el, full = false) => {
|
|
642
|
-
const element = el;
|
|
643
|
-
if (element) {
|
|
644
|
-
if (element.componentOnReady !== null && element.componentOnReady !== undefined) {
|
|
645
|
-
const stencilEl = await element.componentOnReady();
|
|
646
|
-
if (!full && stencilEl !== null && stencilEl !== undefined) {
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
await Promise.all(Array.from(element.children).map(child => deepReady(child, full)));
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
|
-
const waitForComponent = async (el) => {
|
|
654
|
-
await deepReady(el, true);
|
|
655
|
-
await waitAfterFramePaint();
|
|
656
|
-
await waitAfterIdleCallback();
|
|
657
|
-
};
|
|
658
|
-
const isChildOfEventTarget = async (ev, el, callback) => {
|
|
659
|
-
if (ev && ev.target && el && el !== ev.target) {
|
|
660
|
-
let target = ev.target;
|
|
661
|
-
// special case for the navbar case
|
|
662
|
-
const isNavbarBrand = ev.target.nodeName === 'BAL-NAVBAR-BRAND';
|
|
663
|
-
if (isNavbarBrand) {
|
|
664
|
-
target = target.closest('bal-navbar');
|
|
665
|
-
}
|
|
666
|
-
if (target && isDescendant(target, el)) {
|
|
667
|
-
callback(target);
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
const waitForDesignSystem = async (el, _config) => {
|
|
672
|
-
const config = Object.assign({ animated: false, icons: {
|
|
673
|
-
balIconClose,
|
|
674
|
-
balIconInfoCircle,
|
|
675
|
-
balIconPlus,
|
|
676
|
-
balIconMinus,
|
|
677
|
-
balIconEdit,
|
|
678
|
-
balIconTrash,
|
|
679
|
-
balIconNavGoLeft,
|
|
680
|
-
balIconNavGoRight,
|
|
681
|
-
balIconNavGoDown,
|
|
682
|
-
balIconNavGoUp,
|
|
683
|
-
balIconCaretUp,
|
|
684
|
-
balIconCaretDown,
|
|
685
|
-
balIconCaretLeft,
|
|
686
|
-
balIconCaretRight,
|
|
687
|
-
balIconCheck,
|
|
688
|
-
balIconDate,
|
|
689
|
-
balIconDocument,
|
|
690
|
-
balIconUpload,
|
|
691
|
-
balIconMenuBars,
|
|
692
|
-
} }, _config);
|
|
693
|
-
const element = el;
|
|
694
|
-
if (element !== null && element !== undefined) {
|
|
695
|
-
await deepReady(element, true);
|
|
696
|
-
const webComponents = Array.prototype.slice
|
|
697
|
-
.call(element.querySelectorAll('*'))
|
|
698
|
-
.filter(el => el.tagName.match(/^bal/i));
|
|
699
|
-
await Promise.all(webComponents.map(c => {
|
|
700
|
-
if (c.configChanged !== null && c.configChanged !== undefined) {
|
|
701
|
-
return c.configChanged(config);
|
|
702
|
-
}
|
|
703
|
-
}));
|
|
704
|
-
}
|
|
705
|
-
await Promise.all([waitAfterFramePaint(), waitAfterLargestContentfulPaintCallback(), waitAfterIdleCallback()]);
|
|
706
|
-
};
|
|
707
|
-
const waitAfterFramePaint = () => {
|
|
708
|
-
return new Promise(resolve => raf(() => runHighPrioritizedTask(resolve)));
|
|
709
|
-
};
|
|
710
|
-
const waitAfterIdleCallback = () => {
|
|
711
|
-
return new Promise(resolve => rIC(() => runHighPrioritizedTask(resolve)));
|
|
712
|
-
};
|
|
713
|
-
const waitAfterLargestContentfulPaintCallback = () => {
|
|
714
|
-
return new Promise(resolve => rLCP(() => runHighPrioritizedTask(resolve)));
|
|
715
|
-
};
|
|
716
|
-
const waitOnLoadEventCallback = () => {
|
|
717
|
-
return new Promise(resolve => rOnLoad(() => runHighPrioritizedTask(resolve)));
|
|
718
|
-
};
|
|
719
|
-
const runHighPrioritizedTask = (callback) => {
|
|
720
|
-
if (balBrowser.hasWindow && 'MessageChannel' in window) {
|
|
721
|
-
const messageChannel = new window.MessageChannel();
|
|
722
|
-
messageChannel.port1.onmessage = callback;
|
|
723
|
-
messageChannel.port2.postMessage(undefined);
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
setTimeout(callback, 32);
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
class BalNoticeController {
|
|
731
|
-
constructor(options) {
|
|
732
|
-
this.options = options;
|
|
733
|
-
this.container = null;
|
|
734
|
-
this.queue = [];
|
|
735
|
-
this.preQueue = [];
|
|
736
|
-
this.queueLimit = 5;
|
|
737
|
-
}
|
|
738
|
-
create(options) {
|
|
739
|
-
if (balBrowser.hasDocument) {
|
|
740
|
-
this.setupContainer(options);
|
|
741
|
-
const clone = this.findClone(options);
|
|
742
|
-
if (clone === undefined) {
|
|
743
|
-
const el = document.createElement(this.options.tag);
|
|
744
|
-
Object.assign(el, options);
|
|
745
|
-
el.addEventListener('balClose', ev => {
|
|
746
|
-
this.removeFromQueue(ev.detail);
|
|
747
|
-
});
|
|
748
|
-
this.preQueue.push(el);
|
|
749
|
-
this.updateQueue();
|
|
750
|
-
return el;
|
|
751
|
-
}
|
|
752
|
-
return clone;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
setQueue(queueLimit) {
|
|
756
|
-
this.queueLimit = queueLimit;
|
|
757
|
-
}
|
|
758
|
-
async dismissAll() {
|
|
759
|
-
var _a;
|
|
760
|
-
const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
|
|
761
|
-
if (elements) {
|
|
762
|
-
const closingQueue = [];
|
|
763
|
-
for (let index = 0; index < elements.length; index++) {
|
|
764
|
-
const el = elements[index];
|
|
765
|
-
if (el.close) {
|
|
766
|
-
closingQueue.push(el.close());
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
await Promise.all(closingQueue);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* @deprecated use dismissAll instead
|
|
774
|
-
*/
|
|
775
|
-
async clearAll() {
|
|
776
|
-
console.warn('[DEPRECATED] - use dismissAll() instead');
|
|
777
|
-
return this.dismissAll();
|
|
778
|
-
}
|
|
779
|
-
findClone(options) {
|
|
780
|
-
for (let index = 0; index < this.queue.length; index++) {
|
|
781
|
-
const el = this.queue[index];
|
|
782
|
-
if (el.message === options.message && el.color === options.color) {
|
|
783
|
-
return el;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
return undefined;
|
|
787
|
-
}
|
|
788
|
-
setupContainer(options) {
|
|
789
|
-
if (balBrowser.hasDocument) {
|
|
790
|
-
const containerId = `${this.options.tag}-container`;
|
|
791
|
-
this.container = document.getElementById(containerId);
|
|
792
|
-
if (this.container)
|
|
793
|
-
return;
|
|
794
|
-
if (!this.container) {
|
|
795
|
-
this.container = document.createElement('bal-notices');
|
|
796
|
-
this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
|
|
797
|
-
this.container.setAttribute('animated', options.animated ? 'true' : 'false');
|
|
798
|
-
if (options.container !== undefined) {
|
|
799
|
-
this.container.setAttribute('container', options.container === true ? '' : options.container);
|
|
800
|
-
}
|
|
801
|
-
this.container.id = containerId;
|
|
802
|
-
}
|
|
803
|
-
document.body.appendChild(this.container);
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
async updateQueue() {
|
|
807
|
-
var _a;
|
|
808
|
-
if (this.queue.length < this.queueLimit) {
|
|
809
|
-
const el = this.preQueue.shift();
|
|
810
|
-
if (el && this.container) {
|
|
811
|
-
await waitForComponent(this.container);
|
|
812
|
-
const innerEl = this.container.querySelector('.bal-notices__inner');
|
|
813
|
-
if (innerEl) {
|
|
814
|
-
this.queue.push(el);
|
|
815
|
-
innerEl.insertAdjacentElement('beforeend', el);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
if (this.queue.length === 0) {
|
|
820
|
-
(_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
removeFromQueue(toastId) {
|
|
824
|
-
this.queue = this.queue.filter(el => el.id !== toastId);
|
|
825
|
-
setTimeout(() => this.updateQueue(), 0);
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
class BalSnackbarController extends BalNoticeController {
|
|
830
|
-
constructor() {
|
|
831
|
-
super({
|
|
832
|
-
tag: 'bal-snackbar',
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
create(options) {
|
|
836
|
-
return super.create(options);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
const balSnackbarController = new BalSnackbarController();
|
|
840
|
-
|
|
841
|
-
class BalToastController extends BalNoticeController {
|
|
842
|
-
constructor() {
|
|
843
|
-
super({
|
|
844
|
-
tag: 'bal-toast',
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
create(options) {
|
|
848
|
-
return super.create(options);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
const balToastController = new BalToastController();
|
|
852
|
-
|
|
853
|
-
const tags = [
|
|
854
|
-
"bal-accordion",
|
|
855
|
-
"bal-accordion-details",
|
|
856
|
-
"bal-accordion-summary",
|
|
857
|
-
"bal-accordion-trigger",
|
|
858
|
-
"bal-app",
|
|
859
|
-
"bal-badge",
|
|
860
|
-
"bal-button",
|
|
861
|
-
"bal-button-group",
|
|
862
|
-
"bal-card",
|
|
863
|
-
"bal-card-actions",
|
|
864
|
-
"bal-card-button",
|
|
865
|
-
"bal-card-content",
|
|
866
|
-
"bal-card-subtitle",
|
|
867
|
-
"bal-card-title",
|
|
868
|
-
"bal-carousel",
|
|
869
|
-
"bal-carousel-item",
|
|
870
|
-
"bal-check",
|
|
871
|
-
"bal-checkbox",
|
|
872
|
-
"bal-checkbox-group",
|
|
873
|
-
"bal-close",
|
|
874
|
-
"bal-content",
|
|
875
|
-
"bal-data",
|
|
876
|
-
"bal-data-item",
|
|
877
|
-
"bal-data-label",
|
|
878
|
-
"bal-data-value",
|
|
879
|
-
"bal-date",
|
|
880
|
-
"bal-date-calendar",
|
|
881
|
-
"bal-date-calendar-cell",
|
|
882
|
-
"bal-divider",
|
|
883
|
-
"bal-dropdown",
|
|
884
|
-
"bal-field",
|
|
885
|
-
"bal-field-control",
|
|
886
|
-
"bal-field-hint",
|
|
887
|
-
"bal-field-label",
|
|
888
|
-
"bal-field-message",
|
|
889
|
-
"bal-file-upload",
|
|
890
|
-
"bal-footer",
|
|
891
|
-
"bal-form",
|
|
892
|
-
"bal-form-col",
|
|
893
|
-
"bal-form-grid",
|
|
894
|
-
"bal-heading",
|
|
895
|
-
"bal-hint",
|
|
896
|
-
"bal-hint-text",
|
|
897
|
-
"bal-hint-title",
|
|
898
|
-
"bal-icon",
|
|
899
|
-
"bal-input",
|
|
900
|
-
"bal-input-date",
|
|
901
|
-
"bal-input-group",
|
|
902
|
-
"bal-input-slider",
|
|
903
|
-
"bal-input-stepper",
|
|
904
|
-
"bal-label",
|
|
905
|
-
"bal-list",
|
|
906
|
-
"bal-list-item",
|
|
907
|
-
"bal-list-item-accordion-body",
|
|
908
|
-
"bal-list-item-accordion-head",
|
|
909
|
-
"bal-list-item-content",
|
|
910
|
-
"bal-list-item-icon",
|
|
911
|
-
"bal-list-item-subtitle",
|
|
912
|
-
"bal-list-item-title",
|
|
913
|
-
"bal-logo",
|
|
914
|
-
"bal-modal",
|
|
915
|
-
"bal-modal-body",
|
|
916
|
-
"bal-modal-header",
|
|
917
|
-
"bal-nav",
|
|
918
|
-
"bal-nav-link",
|
|
919
|
-
"bal-nav-link-grid",
|
|
920
|
-
"bal-nav-link-grid-col",
|
|
921
|
-
"bal-nav-link-group",
|
|
922
|
-
"bal-nav-menu-bar",
|
|
923
|
-
"bal-nav-menu-flyout",
|
|
924
|
-
"bal-nav-meta-bar",
|
|
925
|
-
"bal-navbar",
|
|
926
|
-
"bal-navbar-brand",
|
|
927
|
-
"bal-navbar-menu",
|
|
928
|
-
"bal-navbar-menu-end",
|
|
929
|
-
"bal-navbar-menu-start",
|
|
930
|
-
"bal-notices",
|
|
931
|
-
"bal-notification",
|
|
932
|
-
"bal-number-input",
|
|
933
|
-
"bal-option",
|
|
934
|
-
"bal-option-list",
|
|
935
|
-
"bal-pagination",
|
|
936
|
-
"bal-popover",
|
|
937
|
-
"bal-popover-content",
|
|
938
|
-
"bal-popup",
|
|
939
|
-
"bal-progress-bar",
|
|
940
|
-
"bal-radio",
|
|
941
|
-
"bal-radio-group",
|
|
942
|
-
"bal-radio-icon",
|
|
943
|
-
"bal-segment",
|
|
944
|
-
"bal-segment-item",
|
|
945
|
-
"bal-select",
|
|
946
|
-
"bal-select-option",
|
|
947
|
-
"bal-shape",
|
|
948
|
-
"bal-sheet",
|
|
949
|
-
"bal-snackbar",
|
|
950
|
-
"bal-spinner",
|
|
951
|
-
"bal-stack",
|
|
952
|
-
"bal-stage",
|
|
953
|
-
"bal-stage-back-link",
|
|
954
|
-
"bal-stage-body",
|
|
955
|
-
"bal-stage-foot",
|
|
956
|
-
"bal-stage-head",
|
|
957
|
-
"bal-stage-image",
|
|
958
|
-
"bal-step-item",
|
|
959
|
-
"bal-steps",
|
|
960
|
-
"bal-switch",
|
|
961
|
-
"bal-tab-item",
|
|
962
|
-
"bal-table",
|
|
963
|
-
"bal-tabs",
|
|
964
|
-
"bal-tag",
|
|
965
|
-
"bal-tag-group",
|
|
966
|
-
"bal-text",
|
|
967
|
-
"bal-textarea",
|
|
968
|
-
"bal-time-input",
|
|
969
|
-
"bal-toast",
|
|
970
|
-
"bal-tooltip"
|
|
971
|
-
];
|
|
972
|
-
|
|
973
|
-
// generated by .build/version.js
|
|
974
|
-
const VERSION = '19.8.2';
|
|
975
|
-
|
|
976
|
-
const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
|
|
977
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
978
|
-
win = window;
|
|
979
|
-
}
|
|
980
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
981
|
-
if (platformConfig) {
|
|
982
|
-
setPlatformHelpers(platformConfig);
|
|
983
|
-
}
|
|
984
|
-
setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
|
|
985
|
-
win.BaloiseDesignSystem.toastController = balToastController;
|
|
986
|
-
win.BaloiseDesignSystem.snackbarController = balSnackbarController;
|
|
987
|
-
win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
|
|
988
|
-
win.BaloiseDesignSystem.version = VERSION;
|
|
989
|
-
if (userConfig._generateHydrateForCustomElementsOutput) {
|
|
990
|
-
generateHydrateForCustomElementsOutput(tags);
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
/**
|
|
994
|
-
* This function generates the CSS needed for custom elements hydration and inserts it into the document head.
|
|
995
|
-
* The CSS rules include styles for slot fallback and the hydrated class.
|
|
996
|
-
*
|
|
997
|
-
* This is copied from the Stencil core library.
|
|
998
|
-
* src/runtime/bootstrap-lazy.ts
|
|
999
|
-
*/
|
|
1000
|
-
const generateHydrateForCustomElementsOutput = (cmpTags = []) => {
|
|
1001
|
-
const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
|
|
1002
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
1003
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
1004
|
-
if (!win.document) {
|
|
1005
|
-
console.warn('Stencil: No document found. Skipping bootstrapping lazy components.');
|
|
1006
|
-
return;
|
|
1007
|
-
}
|
|
1008
|
-
const head = win.document.head;
|
|
1009
|
-
const metaCharset = /* @__PURE__ */ head.querySelector('meta[charset]');
|
|
1010
|
-
const dataStyles = /* @__PURE__ */ win.document.createElement('style');
|
|
1011
|
-
if (cmpTags.length > 0) {
|
|
1012
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
1013
|
-
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1014
|
-
if (dataStyles.innerHTML.length) {
|
|
1015
|
-
dataStyles.setAttribute('data-styles', '');
|
|
1016
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
function appGlobalScript () {
|
|
1022
|
-
initializeBaloiseDesignSystem();
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
const globalScripts = appGlobalScript;
|
|
1026
|
-
const globalStyles = "";
|
|
2
|
+
const BUILD = /* baloise-design-system */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, updatable: true};
|
|
1027
3
|
|
|
1028
4
|
/*
|
|
1029
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.38.2 | MIT Licensed | https://stenciljs.com
|
|
1030
6
|
*/
|
|
1031
7
|
var __defProp = Object.defineProperty;
|
|
1032
8
|
var __export = (target, all) => {
|
|
@@ -1046,6 +22,7 @@ var getHostRef = (ref) => {
|
|
|
1046
22
|
return void 0;
|
|
1047
23
|
};
|
|
1048
24
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
25
|
+
if (!hostRef) return;
|
|
1049
26
|
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
1050
27
|
hostRef.$lazyInstance$ = lazyInstance;
|
|
1051
28
|
};
|
|
@@ -1054,7 +31,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
1054
31
|
$flags$: 0,
|
|
1055
32
|
$hostElement$: hostElement,
|
|
1056
33
|
$cmpMeta$: cmpMeta,
|
|
1057
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
34
|
+
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
35
|
+
$serializerValues$: /* @__PURE__ */ new Map()
|
|
1058
36
|
};
|
|
1059
37
|
{
|
|
1060
38
|
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
@@ -1064,6 +42,9 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
1064
42
|
hostElement["s-p"] = [];
|
|
1065
43
|
hostElement["s-rc"] = [];
|
|
1066
44
|
}
|
|
45
|
+
{
|
|
46
|
+
hostRef.$fetchedCbList$ = [];
|
|
47
|
+
}
|
|
1067
48
|
const ref = hostRef;
|
|
1068
49
|
hostElement.__stencil__getHostRef = () => ref;
|
|
1069
50
|
return ref;
|
|
@@ -1147,6 +128,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
|
1147
128
|
}
|
|
1148
129
|
return false;
|
|
1149
130
|
})() ;
|
|
131
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
1150
132
|
var queuePending = false;
|
|
1151
133
|
var queueDomReads = [];
|
|
1152
134
|
var queueDomWrites = [];
|
|
@@ -1249,12 +231,24 @@ var unwrapErr = (result) => {
|
|
|
1249
231
|
throw result.value;
|
|
1250
232
|
}
|
|
1251
233
|
};
|
|
234
|
+
|
|
235
|
+
// src/utils/style.ts
|
|
236
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
237
|
+
return void 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// src/utils/shadow-root.ts
|
|
241
|
+
var globalStyleSheet;
|
|
1252
242
|
function createShadowRoot(cmpMeta) {
|
|
243
|
+
var _a;
|
|
1253
244
|
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
1254
|
-
if (
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
245
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
|
246
|
+
if (globalStyleSheet) {
|
|
247
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
248
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
249
|
+
} else {
|
|
250
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
251
|
+
}
|
|
1258
252
|
}
|
|
1259
253
|
}
|
|
1260
254
|
var updateFallbackSlotVisibility = (elm) => {
|
|
@@ -1377,6 +371,110 @@ var uniqueTime = (key, measureText) => {
|
|
|
1377
371
|
};
|
|
1378
372
|
}
|
|
1379
373
|
};
|
|
374
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
375
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
376
|
+
let style = styles.get(scopeId2);
|
|
377
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
378
|
+
style = style || new CSSStyleSheet();
|
|
379
|
+
if (typeof style === "string") {
|
|
380
|
+
style = cssText;
|
|
381
|
+
} else {
|
|
382
|
+
style.replaceSync(cssText);
|
|
383
|
+
}
|
|
384
|
+
} else {
|
|
385
|
+
style = cssText;
|
|
386
|
+
}
|
|
387
|
+
styles.set(scopeId2, style);
|
|
388
|
+
};
|
|
389
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
390
|
+
var _a;
|
|
391
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
392
|
+
const style = styles.get(scopeId2);
|
|
393
|
+
if (!win.document) {
|
|
394
|
+
return scopeId2;
|
|
395
|
+
}
|
|
396
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
397
|
+
if (style) {
|
|
398
|
+
if (typeof style === "string") {
|
|
399
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
400
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
401
|
+
let styleElm;
|
|
402
|
+
if (!appliedStyles) {
|
|
403
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
404
|
+
}
|
|
405
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
406
|
+
{
|
|
407
|
+
styleElm = win.document.createElement("style");
|
|
408
|
+
styleElm.innerHTML = style;
|
|
409
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
410
|
+
if (nonce != null) {
|
|
411
|
+
styleElm.setAttribute("nonce", nonce);
|
|
412
|
+
}
|
|
413
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
414
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
415
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
416
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
417
|
+
styleContainerNode.insertBefore(
|
|
418
|
+
styleElm,
|
|
419
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
420
|
+
);
|
|
421
|
+
} else if ("host" in styleContainerNode) {
|
|
422
|
+
if (supportsConstructableStylesheets) {
|
|
423
|
+
const stylesheet = new CSSStyleSheet();
|
|
424
|
+
stylesheet.replaceSync(style);
|
|
425
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
426
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
427
|
+
} else {
|
|
428
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
429
|
+
}
|
|
430
|
+
} else {
|
|
431
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
432
|
+
if (existingStyleContainer) {
|
|
433
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
434
|
+
} else {
|
|
435
|
+
styleContainerNode.prepend(styleElm);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
} else {
|
|
439
|
+
styleContainerNode.append(styleElm);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
443
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
447
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
448
|
+
}
|
|
449
|
+
if (appliedStyles) {
|
|
450
|
+
appliedStyles.add(scopeId2);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
454
|
+
if (supportsMutableAdoptedStyleSheets) {
|
|
455
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
456
|
+
} else {
|
|
457
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
return scopeId2;
|
|
462
|
+
};
|
|
463
|
+
var attachStyles = (hostRef) => {
|
|
464
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
465
|
+
const elm = hostRef.$hostElement$;
|
|
466
|
+
const flags = cmpMeta.$flags$;
|
|
467
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
468
|
+
const scopeId2 = addStyle(
|
|
469
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
470
|
+
cmpMeta);
|
|
471
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
472
|
+
elm["s-sc"] = scopeId2;
|
|
473
|
+
elm.classList.add(scopeId2 + "-h");
|
|
474
|
+
}
|
|
475
|
+
endAttachStyles();
|
|
476
|
+
};
|
|
477
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1380
478
|
var h = (nodeName, vnodeData, ...children) => {
|
|
1381
479
|
let child = null;
|
|
1382
480
|
let key = null;
|
|
@@ -1517,7 +615,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
1517
615
|
}
|
|
1518
616
|
return propValue;
|
|
1519
617
|
};
|
|
1520
|
-
var getElement = (ref) =>
|
|
618
|
+
var getElement = (ref) => {
|
|
619
|
+
var _a;
|
|
620
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
621
|
+
};
|
|
1521
622
|
|
|
1522
623
|
// src/runtime/event-emitter.ts
|
|
1523
624
|
var createEvent = (ref, name, flags) => {
|
|
@@ -1538,102 +639,6 @@ var emitEvent = (elm, name, opts) => {
|
|
|
1538
639
|
elm.dispatchEvent(ev);
|
|
1539
640
|
return ev;
|
|
1540
641
|
};
|
|
1541
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1542
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1543
|
-
let style = styles.get(scopeId2);
|
|
1544
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1545
|
-
style = style || new CSSStyleSheet();
|
|
1546
|
-
if (typeof style === "string") {
|
|
1547
|
-
style = cssText;
|
|
1548
|
-
} else {
|
|
1549
|
-
style.replaceSync(cssText);
|
|
1550
|
-
}
|
|
1551
|
-
} else {
|
|
1552
|
-
style = cssText;
|
|
1553
|
-
}
|
|
1554
|
-
styles.set(scopeId2, style);
|
|
1555
|
-
};
|
|
1556
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1557
|
-
var _a;
|
|
1558
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1559
|
-
const style = styles.get(scopeId2);
|
|
1560
|
-
if (!win.document) {
|
|
1561
|
-
return scopeId2;
|
|
1562
|
-
}
|
|
1563
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1564
|
-
if (style) {
|
|
1565
|
-
if (typeof style === "string") {
|
|
1566
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1567
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1568
|
-
let styleElm;
|
|
1569
|
-
if (!appliedStyles) {
|
|
1570
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1571
|
-
}
|
|
1572
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1573
|
-
{
|
|
1574
|
-
styleElm = win.document.createElement("style");
|
|
1575
|
-
styleElm.innerHTML = style;
|
|
1576
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1577
|
-
if (nonce != null) {
|
|
1578
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1579
|
-
}
|
|
1580
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1581
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1582
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1583
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1584
|
-
styleContainerNode.insertBefore(
|
|
1585
|
-
styleElm,
|
|
1586
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1587
|
-
);
|
|
1588
|
-
} else if ("host" in styleContainerNode) {
|
|
1589
|
-
if (supportsConstructableStylesheets) {
|
|
1590
|
-
const stylesheet = new CSSStyleSheet();
|
|
1591
|
-
stylesheet.replaceSync(style);
|
|
1592
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1593
|
-
} else {
|
|
1594
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1595
|
-
if (existingStyleContainer) {
|
|
1596
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1597
|
-
} else {
|
|
1598
|
-
styleContainerNode.prepend(styleElm);
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
} else {
|
|
1602
|
-
styleContainerNode.append(styleElm);
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1606
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1610
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1611
|
-
}
|
|
1612
|
-
if (appliedStyles) {
|
|
1613
|
-
appliedStyles.add(scopeId2);
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1617
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
return scopeId2;
|
|
1621
|
-
};
|
|
1622
|
-
var attachStyles = (hostRef) => {
|
|
1623
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1624
|
-
const elm = hostRef.$hostElement$;
|
|
1625
|
-
const flags = cmpMeta.$flags$;
|
|
1626
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1627
|
-
const scopeId2 = addStyle(
|
|
1628
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1629
|
-
cmpMeta);
|
|
1630
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1631
|
-
elm["s-sc"] = scopeId2;
|
|
1632
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1633
|
-
}
|
|
1634
|
-
endAttachStyles();
|
|
1635
|
-
};
|
|
1636
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1637
642
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1638
643
|
if (oldValue === newValue) {
|
|
1639
644
|
return;
|
|
@@ -2074,7 +1079,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2074
1079
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
2075
1080
|
) {
|
|
2076
1081
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2077
|
-
}
|
|
1082
|
+
} else ;
|
|
2078
1083
|
if (isSvgMode && tag === "svg") {
|
|
2079
1084
|
isSvgMode = false;
|
|
2080
1085
|
}
|
|
@@ -2179,9 +1184,11 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2179
1184
|
hostTagName = hostElm.tagName;
|
|
2180
1185
|
if (cmpMeta.$attrsToReflect$) {
|
|
2181
1186
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
2182
|
-
cmpMeta.$attrsToReflect$.
|
|
2183
|
-
|
|
2184
|
-
|
|
1187
|
+
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
1188
|
+
{
|
|
1189
|
+
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
2185
1192
|
}
|
|
2186
1193
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
2187
1194
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -2294,6 +1301,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
2294
1301
|
}
|
|
2295
1302
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2296
1303
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1304
|
+
if (isInitialLoad) {
|
|
1305
|
+
queueMicrotask(() => {
|
|
1306
|
+
dispatch();
|
|
1307
|
+
});
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
2297
1310
|
return writeTask(dispatch) ;
|
|
2298
1311
|
};
|
|
2299
1312
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -2308,10 +1321,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2308
1321
|
let maybePromise;
|
|
2309
1322
|
if (isInitialLoad) {
|
|
2310
1323
|
{
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
hostRef.$queuedListeners
|
|
2314
|
-
|
|
1324
|
+
{
|
|
1325
|
+
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
1326
|
+
if (hostRef.$queuedListeners$) {
|
|
1327
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
1328
|
+
hostRef.$queuedListeners$ = void 0;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
if (hostRef.$fetchedCbList$.length) {
|
|
1332
|
+
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
2315
1333
|
}
|
|
2316
1334
|
}
|
|
2317
1335
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
@@ -2438,6 +1456,9 @@ var addHydratedFlag = (elm) => {
|
|
|
2438
1456
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2439
1457
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2440
1458
|
const hostRef = getHostRef(ref);
|
|
1459
|
+
if (!hostRef) {
|
|
1460
|
+
return;
|
|
1461
|
+
}
|
|
2441
1462
|
if (!hostRef) {
|
|
2442
1463
|
throw new Error(
|
|
2443
1464
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
@@ -2483,9 +1504,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
2483
1504
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2484
1505
|
var _a, _b;
|
|
2485
1506
|
const prototype = Cstr.prototype;
|
|
2486
|
-
if (cmpMeta.$members$ ||
|
|
2487
|
-
|
|
2488
|
-
cmpMeta.$watchers$
|
|
1507
|
+
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
1508
|
+
{
|
|
1509
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1510
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1511
|
+
}
|
|
1512
|
+
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1513
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1514
|
+
}
|
|
1515
|
+
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1516
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1517
|
+
}
|
|
2489
1518
|
}
|
|
2490
1519
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2491
1520
|
members.map(([memberName, [memberFlags]]) => {
|
|
@@ -2513,12 +1542,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2513
1542
|
Object.defineProperty(prototype, memberName, {
|
|
2514
1543
|
set(newValue) {
|
|
2515
1544
|
const ref = getHostRef(this);
|
|
1545
|
+
if (!ref) {
|
|
1546
|
+
return;
|
|
1547
|
+
}
|
|
2516
1548
|
if (origSetter) {
|
|
2517
1549
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2518
1550
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
2519
1551
|
newValue = ref.$instanceValues$.get(memberName);
|
|
2520
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2521
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2522
1552
|
}
|
|
2523
1553
|
origSetter.apply(this, [
|
|
2524
1554
|
parsePropertyValue(
|
|
@@ -2533,7 +1563,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2533
1563
|
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
2534
1564
|
setValue(this, memberName, newValue, cmpMeta);
|
|
2535
1565
|
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
2536
|
-
ref.$
|
|
1566
|
+
ref.$fetchedCbList$.push(() => {
|
|
2537
1567
|
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
2538
1568
|
ref.$lazyInstance$[memberName] = newValue;
|
|
2539
1569
|
}
|
|
@@ -2554,7 +1584,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2554
1584
|
if (ref.$lazyInstance$) {
|
|
2555
1585
|
setterSetVal();
|
|
2556
1586
|
} else {
|
|
2557
|
-
ref.$
|
|
1587
|
+
ref.$fetchedCbList$.push(() => {
|
|
1588
|
+
setterSetVal();
|
|
1589
|
+
});
|
|
2558
1590
|
}
|
|
2559
1591
|
}
|
|
2560
1592
|
}
|
|
@@ -2578,16 +1610,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2578
1610
|
plt.jmp(() => {
|
|
2579
1611
|
var _a2;
|
|
2580
1612
|
const propName = attrNameToPropName.get(attrName);
|
|
1613
|
+
const hostRef = getHostRef(this);
|
|
2581
1614
|
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
2582
1615
|
newValue = this[propName];
|
|
2583
1616
|
delete this[propName];
|
|
2584
|
-
}
|
|
1617
|
+
}
|
|
1618
|
+
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
2585
1619
|
this[propName] == newValue) {
|
|
2586
1620
|
return;
|
|
2587
1621
|
} else if (propName == null) {
|
|
2588
|
-
const hostRef = getHostRef(this);
|
|
2589
1622
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2590
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1623
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2591
1624
|
const instance = hostRef.$lazyInstance$ ;
|
|
2592
1625
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2593
1626
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
@@ -2598,9 +1631,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2598
1631
|
}
|
|
2599
1632
|
return;
|
|
2600
1633
|
}
|
|
1634
|
+
const propFlags = members.find(([m]) => m === propName);
|
|
1635
|
+
if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
|
|
1636
|
+
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1637
|
+
}
|
|
2601
1638
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
2602
|
-
|
|
2603
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1639
|
+
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
2604
1640
|
this[propName] = newValue;
|
|
2605
1641
|
}
|
|
2606
1642
|
});
|
|
@@ -2608,7 +1644,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2608
1644
|
Cstr.observedAttributes = Array.from(
|
|
2609
1645
|
/* @__PURE__ */ new Set([
|
|
2610
1646
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
2611
|
-
...members.filter(([_, m]) => m[0] &
|
|
1647
|
+
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
2612
1648
|
var _a2;
|
|
2613
1649
|
const attrName = m[1] || propName;
|
|
2614
1650
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -2645,6 +1681,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2645
1681
|
if (!Cstr.isProxied) {
|
|
2646
1682
|
{
|
|
2647
1683
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1684
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1685
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2648
1686
|
}
|
|
2649
1687
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
2650
1688
|
Cstr.isProxied = true;
|
|
@@ -2702,6 +1740,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
|
2702
1740
|
var connectedCallback = (elm) => {
|
|
2703
1741
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2704
1742
|
const hostRef = getHostRef(elm);
|
|
1743
|
+
if (!hostRef) {
|
|
1744
|
+
return;
|
|
1745
|
+
}
|
|
2705
1746
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
2706
1747
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2707
1748
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
@@ -2723,7 +1764,7 @@ var connectedCallback = (elm) => {
|
|
|
2723
1764
|
}
|
|
2724
1765
|
if (cmpMeta.$members$) {
|
|
2725
1766
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
2726
|
-
if (memberFlags & 31 /* Prop */ && elm.
|
|
1767
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
2727
1768
|
const value = elm[memberName];
|
|
2728
1769
|
delete elm[memberName];
|
|
2729
1770
|
elm[memberName] = value;
|
|
@@ -2763,7 +1804,7 @@ var disconnectedCallback = async (elm) => {
|
|
|
2763
1804
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2764
1805
|
const hostRef = getHostRef(elm);
|
|
2765
1806
|
{
|
|
2766
|
-
if (hostRef.$rmListeners$) {
|
|
1807
|
+
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
2767
1808
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2768
1809
|
hostRef.$rmListeners$ = void 0;
|
|
2769
1810
|
}
|
|
@@ -2804,7 +1845,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2804
1845
|
let hasSlotRelocation = false;
|
|
2805
1846
|
lazyBundles.map((lazyBundle) => {
|
|
2806
1847
|
lazyBundle[1].map((compactMeta) => {
|
|
2807
|
-
var _a2;
|
|
1848
|
+
var _a2, _b, _c;
|
|
2808
1849
|
const cmpMeta = {
|
|
2809
1850
|
$flags$: compactMeta[0],
|
|
2810
1851
|
$tagName$: compactMeta[1],
|
|
@@ -2825,6 +1866,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2825
1866
|
}
|
|
2826
1867
|
{
|
|
2827
1868
|
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1869
|
+
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
1870
|
+
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
2828
1871
|
}
|
|
2829
1872
|
const tagName = cmpMeta.$tagName$;
|
|
2830
1873
|
const HostElement = class extends HTMLElement {
|
|
@@ -2850,6 +1893,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2850
1893
|
}
|
|
2851
1894
|
connectedCallback() {
|
|
2852
1895
|
const hostRef = getHostRef(this);
|
|
1896
|
+
if (!hostRef) {
|
|
1897
|
+
return;
|
|
1898
|
+
}
|
|
2853
1899
|
if (!this.hasRegisteredEventListeners) {
|
|
2854
1900
|
this.hasRegisteredEventListeners = true;
|
|
2855
1901
|
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
@@ -2869,6 +1915,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2869
1915
|
plt.raf(() => {
|
|
2870
1916
|
var _a3;
|
|
2871
1917
|
const hostRef = getHostRef(this);
|
|
1918
|
+
if (!hostRef) {
|
|
1919
|
+
return;
|
|
1920
|
+
}
|
|
2872
1921
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2873
1922
|
if (i2 > -1) {
|
|
2874
1923
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
@@ -2879,7 +1928,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2879
1928
|
});
|
|
2880
1929
|
}
|
|
2881
1930
|
componentOnReady() {
|
|
2882
|
-
|
|
1931
|
+
var _a3;
|
|
1932
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
2883
1933
|
}
|
|
2884
1934
|
};
|
|
2885
1935
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
@@ -2960,57 +2010,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
2960
2010
|
// src/runtime/nonce.ts
|
|
2961
2011
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2962
2012
|
|
|
2963
|
-
|
|
2964
|
-
exports.BalToastController = BalToastController;
|
|
2965
|
-
exports.Host = Host;
|
|
2966
|
-
exports.Logger = Logger;
|
|
2967
|
-
exports.addEventListener = addEventListener;
|
|
2968
|
-
exports.attachComponentToConfig = attachComponentToConfig;
|
|
2969
|
-
exports.attachToConfig = attachToConfig;
|
|
2970
|
-
exports.balBrowser = balBrowser;
|
|
2971
|
-
exports.balSnackbarController = balSnackbarController;
|
|
2972
|
-
exports.balToastController = balToastController;
|
|
2973
|
-
exports.bootstrapLazy = bootstrapLazy;
|
|
2974
|
-
exports.componentOnReady = componentOnReady;
|
|
2975
|
-
exports.createEvent = createEvent;
|
|
2976
|
-
exports.debounce = debounce;
|
|
2977
|
-
exports.debounceEvent = debounceEvent;
|
|
2978
|
-
exports.deepReady = deepReady;
|
|
2979
|
-
exports.defaultConfig = defaultConfig;
|
|
2980
|
-
exports.defaultLocale = defaultLocale;
|
|
2981
|
-
exports.detachComponentFromConfig = detachComponentFromConfig;
|
|
2982
|
-
exports.detachFromConfig = detachFromConfig;
|
|
2983
|
-
exports.getAppRoot = getAppRoot;
|
|
2984
|
-
exports.getElement = getElement;
|
|
2985
|
-
exports.globalScripts = globalScripts;
|
|
2986
|
-
exports.h = h;
|
|
2987
|
-
exports.hasParent = hasParent;
|
|
2988
|
-
exports.hasTagName = hasTagName;
|
|
2989
|
-
exports.initializeBaloiseDesignSystem = initializeBaloiseDesignSystem;
|
|
2990
|
-
exports.isChildOfEventTarget = isChildOfEventTarget;
|
|
2991
|
-
exports.isDescendant = isDescendant;
|
|
2992
|
-
exports.onBalConfigChange = onBalConfigChange;
|
|
2993
|
-
exports.promiseResolve = promiseResolve;
|
|
2994
|
-
exports.rIC = rIC;
|
|
2995
|
-
exports.rOnLoad = rOnLoad;
|
|
2996
|
-
exports.raf = raf;
|
|
2997
|
-
exports.registerInstance = registerInstance;
|
|
2998
|
-
exports.removeEventListener = removeEventListener;
|
|
2999
|
-
exports.setNonce = setNonce;
|
|
3000
|
-
exports.setupConfig = setupConfig;
|
|
3001
|
-
exports.shallowReady = shallowReady;
|
|
3002
|
-
exports.transitionEndAsync = transitionEndAsync;
|
|
3003
|
-
exports.updateBalAllowedLanguages = updateBalAllowedLanguages;
|
|
3004
|
-
exports.updateBalAnimated = updateBalAnimated;
|
|
3005
|
-
exports.updateBalIcons = updateBalIcons;
|
|
3006
|
-
exports.updateBalLanguage = updateBalLanguage;
|
|
3007
|
-
exports.updateBalRegion = updateBalRegion;
|
|
3008
|
-
exports.useBalConfig = useBalConfig;
|
|
3009
|
-
exports.wait = wait;
|
|
3010
|
-
exports.waitAfterFramePaint = waitAfterFramePaint;
|
|
3011
|
-
exports.waitAfterIdleCallback = waitAfterIdleCallback;
|
|
3012
|
-
exports.waitAfterLargestContentfulPaintCallback = waitAfterLargestContentfulPaintCallback;
|
|
3013
|
-
exports.waitForComponent = waitForComponent;
|
|
3014
|
-
exports.waitForDesignSystem = waitForDesignSystem;
|
|
3015
|
-
exports.waitOnLoadEventCallback = waitOnLoadEventCallback;
|
|
3016
|
-
exports.writeTask = writeTask;
|
|
2013
|
+
export { Host as H, setPlatformHelpers as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };
|