@baloise/ds-core 19.3.0-nightly.20250704 → 19.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_commonjsHelpers.js +1 -5
- package/components/all.d.ts +0 -2
- package/components/all.js +0 -3
- package/components/animation.decorator.js +1 -1
- package/components/array.js +3 -3
- package/components/attributes.js +3 -0
- package/components/bal-accordion-details.js +5 -16
- package/components/bal-accordion-summary.js +6 -17
- package/components/bal-accordion-trigger.js +17 -49
- package/components/bal-accordion.js +15 -43
- package/components/bal-app.js +93 -1
- package/components/bal-badge2.js +3 -10
- package/components/bal-button-group2.js +0 -10
- package/components/bal-button2.js +32 -106
- package/components/bal-card-actions.js +0 -3
- package/components/bal-card-button.js +1 -19
- package/components/bal-card-subtitle.js +8 -13
- package/components/bal-card-title.js +0 -3
- package/components/bal-card2.js +4 -30
- package/components/bal-carousel-item.js +18 -36
- package/components/bal-carousel.js +10 -59
- package/components/bal-check2.js +2 -23
- package/components/bal-checkbox-group.js +21 -61
- package/components/bal-checkbox2.js +32 -93
- package/components/bal-close2.js +4 -9
- package/components/bal-content2.js +2 -24
- package/components/bal-data-item.js +0 -6
- package/components/bal-data-label.js +0 -3
- package/components/bal-data-value.js +5 -14
- package/components/bal-data.js +3 -8
- package/components/bal-date-calendar-cell2.js +8 -3
- package/components/bal-date-calendar2.js +32 -28
- package/components/bal-date.js +34 -72
- package/components/bal-divider.js +2 -18
- package/components/bal-dropdown.js +43 -107
- package/components/bal-field-control.js +0 -14
- package/components/bal-field-hint.js +0 -9
- package/components/bal-field-label.js +0 -32
- package/components/bal-field-message.js +0 -15
- package/components/bal-field.js +11 -32
- package/components/bal-file-upload.js +52 -103
- package/components/bal-footer.js +7 -22
- package/components/bal-form-grid.js +2 -1
- package/components/bal-form.js +3 -11
- package/components/bal-heading2.js +6 -25
- package/components/bal-hint2.js +12 -13
- package/components/bal-icon2.js +906 -965
- package/components/bal-input-date2.js +11 -45
- package/components/bal-input-group2.js +2 -10
- package/components/bal-input-slider.js +19 -57
- package/components/bal-input-stepper.js +1081 -1105
- package/components/bal-input.js +37 -87
- package/components/bal-label2.js +4 -52
- package/components/bal-list-item-accordion-body2.js +7 -13
- package/components/bal-list-item-accordion-head2.js +7 -17
- package/components/bal-list-item-content2.js +1 -0
- package/components/bal-list-item-icon2.js +0 -3
- package/components/bal-list-item-title2.js +1 -3
- package/components/bal-list-item2.js +11 -34
- package/components/bal-list2.js +2 -16
- package/components/bal-logo.animation.js +2 -2
- package/components/bal-logo2.js +3 -15
- package/components/bal-modal.js +10 -38
- package/components/bal-nav-link-grid-col2.js +2 -8
- package/components/bal-nav-link-grid2.js +2 -1
- package/components/bal-nav-link-group.js +2 -8
- package/components/bal-nav-link2.js +4 -18
- package/components/bal-nav-menu-bar2.js +2 -11
- package/components/bal-nav-menu-flyout2.js +3 -10
- package/components/bal-nav-meta-bar2.js +2 -20
- package/components/bal-nav.js +49 -33
- package/components/bal-navbar-brand.js +6 -29
- package/components/bal-navbar-menu-end.js +0 -6
- package/components/bal-navbar-menu-start.js +0 -6
- package/components/bal-navbar-menu.js +0 -6
- package/components/bal-navbar.js +2 -12
- package/components/bal-notices.js +2 -10
- package/components/bal-notification.js +2 -11
- package/components/bal-number-input.js +150 -66
- package/components/bal-option-list.js +7 -27
- package/components/bal-option.js +13 -40
- package/components/bal-pagination.js +64 -84
- package/components/bal-popover-content2.js +1 -28
- package/components/bal-popover2.js +13 -50
- package/components/bal-popup2.js +26 -58
- package/components/bal-progress-bar.js +4 -17
- package/components/bal-radio-group.js +21 -57
- package/components/bal-radio-icon2.js +2 -23
- package/components/bal-radio2.js +29 -78
- package/components/bal-segment-item.js +16 -35
- package/components/bal-segment.js +21 -42
- package/components/bal-select-option2.js +2 -7
- package/components/bal-select2.js +50 -107
- package/components/bal-shape2.js +5 -13
- package/components/bal-sheet.js +2 -4
- package/components/bal-snackbar.js +9 -35
- package/components/bal-spinner.animation.js +1917 -1927
- package/components/bal-spinner2.js +9 -27
- package/components/bal-stack2.js +4 -37
- package/components/bal-stage-back-link.js +2 -6
- package/components/bal-stage-image.js +3 -1
- package/components/bal-stage.js +8 -17
- package/components/bal-step-item.js +1 -31
- package/components/bal-steps.js +12 -30
- package/components/bal-switch.js +2 -20
- package/components/bal-tab-item.js +6 -48
- package/components/bal-table.js +2 -4
- package/components/bal-tabs2.js +45 -103
- package/components/bal-tag2.js +2 -26
- package/components/bal-text.js +1 -136
- package/components/bal-text2.js +94 -0
- package/components/bal-textarea.js +24 -52
- package/components/bal-time-input.js +19 -42
- package/components/bal-toast.js +3 -18
- package/components/bal-tooltip.js +4 -21
- package/components/breakpoints.subject.js +79 -5
- package/components/config.default.js +1 -1
- package/components/config.utils.js +1 -1
- package/components/date.js +3821 -3208
- package/components/element-states.decorator.js +1 -1
- package/components/floating-ui.js +2 -2
- package/components/focus-visible.js +2 -2
- package/components/focus.decorator.js +1 -1
- package/components/form-input.js +6 -2
- package/components/helpers.js +2 -2
- package/components/index.esm.js +118 -122
- package/components/index.js +322 -16
- package/components/index2.js +588 -44
- package/components/index3.js +27 -561
- package/components/index4.js +1849 -591
- package/components/index5.js +506 -1814
- package/components/keyboard.helpers.js +1 -1
- package/components/lottie_light_html.js +11684 -11694
- package/components/mutation.decorator.js +1 -1
- package/components/overlays.js +2 -2
- package/components/purify.js +1353 -0
- package/components/resize.decorator.js +1 -1
- package/components/swipe.subject.js +1 -1
- package/components/swiper.util.js +2 -2
- package/components/tokens.esm.js +2 -3
- package/components/tslib.es6.js +0 -2
- package/components/utils.js +6 -6
- 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-00b37ea2.js +1 -0
- package/dist/baloise-design-system/p-00d6cf9a.system.js +1 -0
- package/dist/baloise-design-system/{p-bbf0ab0d94.system.entry.js → p-00e75d0c35.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-0193364e31.entry.js +1 -0
- package/dist/baloise-design-system/p-01cd830b.system.js +1 -0
- package/dist/baloise-design-system/p-02509f2aa1.system.entry.js +1 -0
- package/dist/baloise-design-system/p-04515987c7.system.entry.js +1 -0
- package/dist/baloise-design-system/p-056b22a7.system.js +1 -0
- package/dist/baloise-design-system/{p-71f9f1ca2e.entry.js → p-05a5de36af.entry.js} +1 -1
- package/dist/baloise-design-system/{p-C4sZQbkT.js → p-063808d7.js} +1 -1
- package/dist/baloise-design-system/p-0783dc98dd.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0833e523b1.entry.js +1 -0
- package/dist/baloise-design-system/p-0aa6f3518b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0ae449ae.system.js +1 -0
- package/dist/baloise-design-system/p-0b2b3dbe1b.entry.js +1 -0
- package/dist/baloise-design-system/{p-e0161a8c00.system.entry.js → p-0b39e3fc7f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-0c336d76f5.entry.js +1 -0
- package/dist/baloise-design-system/p-0c34ba75.system.js +1 -0
- package/dist/baloise-design-system/{p-d093a0ccff.entry.js → p-0d07e6caf8.entry.js} +1 -1
- package/dist/baloise-design-system/p-11230944ba.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1272e3f9c5.system.entry.js +1 -0
- package/dist/baloise-design-system/p-12b975fee6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-13d44256.system.js +1 -0
- package/dist/baloise-design-system/p-14df54b760.entry.js +1 -0
- package/dist/baloise-design-system/p-15f86fd2.js +1 -0
- package/dist/baloise-design-system/{p-5b4c5cfff6.entry.js → p-160c193287.entry.js} +1 -1
- package/dist/baloise-design-system/p-16395ece.system.js +1 -0
- package/dist/baloise-design-system/p-166d571e.js +1 -0
- package/dist/baloise-design-system/p-16f5c678f5.entry.js +1 -0
- package/dist/baloise-design-system/p-1846561401.system.entry.js +1 -0
- package/dist/baloise-design-system/p-18675e20.js +1 -0
- package/dist/baloise-design-system/p-18c6b14c.system.js +1 -0
- package/dist/baloise-design-system/{p-fe8e5a5649.entry.js → p-18cab6ff5b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f32f4ce4d1.system.entry.js → p-1a99fea403.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-BPUKeAhO.system.js → p-1c41de53.system.js} +1 -1
- package/dist/baloise-design-system/p-1cfbf3093b.entry.js +1 -0
- package/dist/baloise-design-system/{p-2552306487.system.entry.js → p-1e517d518d.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-1f7d1eb48e.entry.js +1 -0
- package/dist/baloise-design-system/p-1fa4cbaca6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-210cd438.system.js +9 -0
- package/dist/baloise-design-system/p-211fd73b2d.entry.js +1 -0
- package/dist/baloise-design-system/p-21b2d5d33b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-23bdd8dc.system.js +1 -0
- package/dist/baloise-design-system/{p-059c584e1d.entry.js → p-240e3621c6.entry.js} +1 -1
- package/dist/baloise-design-system/p-242625df10.system.entry.js +1 -0
- package/dist/baloise-design-system/p-24486c2cd6.entry.js +1 -0
- package/dist/baloise-design-system/{p-B-nlYC3C.system.js → p-2509cd53.system.js} +1 -1
- package/dist/baloise-design-system/p-2725c79107.system.entry.js +1 -0
- package/dist/baloise-design-system/p-27b9d8e173.entry.js +1 -0
- package/dist/baloise-design-system/p-2880433e.system.js +1 -0
- package/dist/baloise-design-system/p-28d0b9c851.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-CkTFeT_v.system.js → p-2908a4b8.system.js} +1 -1
- package/dist/baloise-design-system/p-2ccbe55a.js +2 -0
- package/dist/baloise-design-system/p-2d3770e7.system.js +1 -0
- package/dist/baloise-design-system/p-3131f323.system.js +1 -0
- package/dist/baloise-design-system/p-3153f3e507.system.entry.js +1 -0
- package/dist/baloise-design-system/p-3156541849.system.entry.js +1 -0
- package/dist/baloise-design-system/p-350a85a9.js +1 -0
- package/dist/baloise-design-system/p-36c605b7ed.entry.js +1 -0
- package/dist/baloise-design-system/p-371f93bd95.system.entry.js +1 -0
- package/dist/baloise-design-system/p-39cbb5b4.system.js +1 -0
- package/dist/baloise-design-system/p-3b6395d90b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-3d3aa421.js +1 -0
- package/dist/baloise-design-system/p-3f01fc8b.js +1 -0
- package/dist/baloise-design-system/p-3f6fcc1a25.system.entry.js +1 -0
- package/dist/baloise-design-system/p-3fcfe14a45.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4191bdf0.js +1 -0
- package/dist/baloise-design-system/p-41c8319b5f.entry.js +1 -0
- package/dist/baloise-design-system/p-422f347380.entry.js +1 -0
- package/dist/baloise-design-system/p-42d1374d6f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4573c419.js +1 -0
- package/dist/baloise-design-system/p-45d69189d4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-472a8efc29.entry.js +1 -0
- package/dist/baloise-design-system/p-4743791e3f.entry.js +1 -0
- package/dist/baloise-design-system/p-4936cce309.entry.js +1 -0
- package/dist/baloise-design-system/{p-B3C_UjgS.js → p-4a0012fa.js} +1 -1
- package/dist/baloise-design-system/p-4a1237e8.js +1 -0
- package/dist/baloise-design-system/p-4ad57bd1ee.entry.js +1 -0
- package/dist/baloise-design-system/p-4af5f1f9.js +1 -0
- package/dist/baloise-design-system/p-4ca4dff6.js +1 -0
- package/dist/baloise-design-system/p-4d4dd885fc.entry.js +1 -0
- package/dist/baloise-design-system/p-4d5477db.js +1 -0
- package/dist/baloise-design-system/p-4e8633942b.entry.js +1 -0
- package/dist/baloise-design-system/p-4f1232cf16.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-DKxvaA1I.js → p-50f3b012.js} +1 -1
- package/dist/baloise-design-system/{p-Bd8SDbWy.js → p-537189e0.js} +1 -1
- package/dist/baloise-design-system/{p-BHFw3KrT.js → p-53e09ecb.js} +1 -1
- package/dist/baloise-design-system/{p-D619YWaH.system.js → p-5420740f.system.js} +1 -1
- package/dist/baloise-design-system/p-548ca0b3.js +1 -0
- package/dist/baloise-design-system/p-5569e7774f.entry.js +1 -0
- package/dist/baloise-design-system/{p-DWG-IuAM.js → p-55ebd30d.js} +1 -1
- package/dist/baloise-design-system/p-56f686f295.system.entry.js +1 -0
- package/dist/baloise-design-system/p-576fea8fe0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-584601ed8d.entry.js +1 -0
- package/dist/baloise-design-system/p-599fe1aecd.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-pZ7tokLV.js → p-5b163efa.js} +1 -1
- package/dist/baloise-design-system/p-5b81a72518.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5c391c5415.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5d26868b4c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5d94ecd9.system.js +1 -0
- package/dist/baloise-design-system/p-5e506fea89.entry.js +1 -0
- package/dist/baloise-design-system/p-5e7b2f7fa5.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5fbe1e715b.entry.js +1 -0
- package/dist/baloise-design-system/{p-48fca0b00b.system.entry.js → p-6077b576a9.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-6461e0dc8c.entry.js +1 -0
- package/dist/baloise-design-system/p-659270e6.system.js +1 -0
- package/dist/baloise-design-system/p-65a3f66bb1.entry.js +1 -0
- package/dist/baloise-design-system/p-6780a7ed.system.js +1 -0
- package/dist/baloise-design-system/p-68f3a1d5de.entry.js +1 -0
- package/dist/baloise-design-system/p-6913b916.system.js +1 -0
- package/dist/baloise-design-system/p-694808374d.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-DgNrhl33.system.js → p-6c080ebc.system.js} +1 -1
- package/dist/baloise-design-system/p-6ca25be56c.entry.js +1 -0
- package/dist/baloise-design-system/p-6df2900b29.system.entry.js +1 -0
- package/dist/baloise-design-system/p-6e3ed83858.entry.js +1 -0
- package/dist/baloise-design-system/p-70a29a3cf9.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7187bc892e.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-333e7be9dd.system.entry.js → p-7632019f26.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7720b262.system.js +1 -0
- package/dist/baloise-design-system/p-77c7a0b0.js +1 -0
- package/dist/baloise-design-system/p-7961e095.system.js +2 -0
- package/dist/baloise-design-system/p-7ace6bb2b2.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7d4fac85.js +1 -0
- package/dist/baloise-design-system/p-7ee8e43a78.entry.js +1 -0
- package/dist/baloise-design-system/p-835cf9d5.system.js +1 -0
- package/dist/baloise-design-system/p-86621bd1a3.system.entry.js +1 -0
- package/dist/baloise-design-system/p-8de1cbc123.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-DEH0fPxN.system.js → p-924b576e.system.js} +1 -1
- package/dist/baloise-design-system/{p-CrVMeGPj.js → p-96216bd1.js} +1 -1
- package/dist/baloise-design-system/p-975f69e2.js +1 -0
- package/dist/baloise-design-system/p-9a3d9e17.js +1 -0
- package/dist/baloise-design-system/p-9bea0924af.entry.js +1 -0
- package/dist/baloise-design-system/{p-CaFT5PQ1.system.js → p-9f7a1215.system.js} +1 -1
- package/dist/baloise-design-system/p-9fe6f3f427.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-e527a619c0.entry.js → p-a06f682955.entry.js} +1 -1
- package/dist/baloise-design-system/p-a1449d0827.system.entry.js +1 -0
- package/dist/baloise-design-system/p-a1f6e944.system.js +1 -0
- package/dist/baloise-design-system/p-a65354df.js +1 -0
- package/dist/baloise-design-system/p-a6f19c8102.entry.js +1 -0
- package/dist/baloise-design-system/{p-CQIRFXKv.js → p-a7894ace.js} +1 -1
- package/dist/baloise-design-system/p-a7f480e29e.entry.js +1 -0
- package/dist/baloise-design-system/p-a8161761.js +1 -0
- package/dist/baloise-design-system/{p-4c1dd77065.system.entry.js → p-a82d082286.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a8f4c51f7d.entry.js +1 -0
- package/dist/baloise-design-system/{p-B_VNoLFI.js → p-aae6003e.js} +1 -1
- package/dist/baloise-design-system/p-abaa6b209d.entry.js +1 -0
- package/dist/baloise-design-system/{p-N2wlH4Xn.js → p-acf222fd.js} +1 -1
- package/dist/baloise-design-system/p-ad848b32cc.entry.js +1 -0
- package/dist/baloise-design-system/p-ade92c8b.js +2 -0
- package/dist/baloise-design-system/p-b0471793.system.js +1 -0
- package/dist/baloise-design-system/p-b0cf4731.js +1 -0
- package/dist/baloise-design-system/{p-CbIltJfj.js → p-b2f7e364.js} +1 -1
- package/dist/baloise-design-system/p-b31ef16307.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b3720a73.system.js +1 -0
- package/dist/baloise-design-system/p-b53635762a.entry.js +1 -0
- package/dist/baloise-design-system/p-b651c3be06.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b77e3348.js +1 -0
- package/dist/baloise-design-system/{p-Dou6adza.system.js → p-b79d8942.system.js} +1 -1
- package/dist/baloise-design-system/p-ba04f59382.entry.js +1 -0
- package/dist/baloise-design-system/p-bb0bea1a12.entry.js +1 -0
- package/dist/baloise-design-system/{p-DExQyjsY.js → p-bb3d79e0.js} +1 -1
- package/dist/baloise-design-system/p-bdf651c552.system.entry.js +1 -0
- package/dist/baloise-design-system/p-be4404d14f.entry.js +1 -0
- package/dist/baloise-design-system/p-c018e14208.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-BG4j3FEv.js → p-c0c91eb1.js} +1 -1
- package/dist/baloise-design-system/p-c1df952485.entry.js +1 -0
- package/dist/baloise-design-system/p-c75b737789.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c90cd86f85.entry.js +1 -0
- package/dist/baloise-design-system/p-c942d04f.system.js +1 -0
- package/dist/baloise-design-system/p-caf7e785da.system.entry.js +1 -0
- package/dist/baloise-design-system/p-cb9a61cf9f.entry.js +1 -0
- package/dist/baloise-design-system/p-ce0bb62f88.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ce4f5a6a.js +1 -0
- package/dist/baloise-design-system/p-cec9dcd5f0.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-Cu1ebAbd.system.js → p-d0537382.system.js} +1 -1
- package/dist/baloise-design-system/p-d0cee779.system.js +2 -0
- package/dist/baloise-design-system/{p-361a85ce79.system.entry.js → p-d112488f3c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d41614f898.entry.js +1 -0
- package/dist/baloise-design-system/p-d4e5093b.js +1 -0
- package/dist/baloise-design-system/p-d96b1ee9.js +1 -0
- package/dist/baloise-design-system/{p-BomCpG-1.system.js → p-dac493c4.system.js} +1 -1
- package/dist/baloise-design-system/p-dc1f26ed82.entry.js +1 -0
- package/dist/baloise-design-system/p-ddfc39d563.system.entry.js +1 -0
- package/dist/baloise-design-system/p-de214c5ded.entry.js +1 -0
- package/dist/baloise-design-system/{p-c82575cbe6.system.entry.js → p-de8600efe8.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-df907af8.system.js +1 -0
- package/dist/baloise-design-system/p-e004afb272.entry.js +1 -0
- package/dist/baloise-design-system/p-e0248dd3.js +1 -0
- package/dist/baloise-design-system/p-e1daa037f5.entry.js +1 -0
- package/dist/baloise-design-system/p-e442bfd948.entry.js +1 -0
- package/dist/baloise-design-system/p-e53cf246d6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e581de20.js +1 -0
- package/dist/baloise-design-system/p-e75452d8.system.js +1 -0
- package/dist/baloise-design-system/p-e88286bed3.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ea96959c66.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ec1863d2.js +1 -0
- package/dist/baloise-design-system/{p-SeKJ5o8j.system.js → p-ec9a7cf5.system.js} +1 -1
- package/dist/baloise-design-system/p-edb1f50e6a.entry.js +1 -0
- package/dist/baloise-design-system/p-eec38fbd.system.js +1 -0
- package/dist/baloise-design-system/{p-YF2lEyTF.system.js → p-eecefb0a.system.js} +1 -1
- package/dist/baloise-design-system/p-eed5aa27.system.js +1 -0
- package/dist/baloise-design-system/p-f19930db.js +1 -0
- package/dist/baloise-design-system/p-f8db562aa1.entry.js +1 -0
- package/dist/baloise-design-system/p-fa2ea8a4.system.js +1 -0
- package/dist/baloise-design-system/p-fa6b5cde.system.js +1 -0
- package/dist/baloise-design-system/{p-DxjqC_a1.system.js → p-fbce8119.system.js} +1 -1
- package/dist/baloise-design-system/p-fd273f8f1e.entry.js +1 -0
- package/dist/baloise-design-system/p-fe2ef334.system.js +1 -0
- package/dist/baloise-design-system/p-ff36efab94.entry.js +1 -0
- package/dist/cjs/{_commonjsHelpers-BJu3ubxk.js → _commonjsHelpers-68cdf74f.js} +0 -5
- package/dist/cjs/{animation.decorator-Ct7aiy8a.js → animation.decorator-40bdfb52.js} +9 -9
- package/dist/cjs/app-globals-0d8db19e.js +11 -0
- package/dist/cjs/{array-Db63Hhl1.js → array-ae164ca3.js} +3 -3
- package/dist/cjs/{attributes-Cp0kpySW.js → attributes-11acd153.js} +3 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +67 -142
- package/dist/cjs/bal-app.cjs.entry.js +24 -23
- package/dist/cjs/bal-badge.cjs.entry.js +7 -12
- package/dist/cjs/bal-button_2.cjs.entry.js +45 -121
- package/dist/cjs/bal-card_6.cjs.entry.js +10 -69
- package/dist/cjs/bal-carousel_2.cjs.entry.js +54 -113
- package/dist/cjs/bal-check.cjs.entry.js +6 -25
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +83 -178
- package/dist/cjs/bal-close.cjs.entry.js +15 -14
- package/dist/cjs/bal-content.cjs.entry.js +10 -28
- package/dist/cjs/bal-data_4.cjs.entry.js +15 -37
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +18 -8
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +67 -90
- package/dist/cjs/bal-date.cjs.entry.js +76 -109
- package/dist/cjs/bal-divider.cjs.entry.js +10 -22
- package/dist/cjs/bal-dropdown.cjs.entry.js +82 -139
- package/dist/cjs/bal-field_5.cjs.entry.js +23 -109
- package/dist/cjs/bal-file-upload.cjs.entry.js +76 -120
- package/dist/cjs/bal-footer.cjs.entry.js +24 -34
- package/dist/cjs/bal-form-col_2.cjs.entry.js +5 -2
- package/dist/cjs/bal-form.cjs.entry.js +11 -14
- package/dist/cjs/bal-heading_2.cjs.entry.js +14 -74
- package/dist/cjs/bal-hint_5.cjs.entry.js +50 -110
- package/dist/cjs/bal-icon.cjs.entry.js +916 -969
- package/dist/cjs/bal-input-group.cjs.entry.js +6 -12
- package/dist/cjs/bal-input-slider.cjs.entry.js +34 -68
- package/dist/cjs/bal-input-stepper.cjs.entry.js +1089 -1112
- package/dist/cjs/bal-input.cjs.entry.js +57 -102
- package/dist/cjs/bal-label.cjs.entry.js +17 -59
- package/dist/cjs/bal-list_8.cjs.entry.js +59 -109
- package/dist/cjs/{bal-logo.animation-q2TTdoP3.js → bal-logo.animation-9704970d.js} +3 -4
- package/dist/cjs/bal-logo.cjs.entry.js +20 -26
- package/dist/cjs/bal-modal_3.cjs.entry.js +25 -48
- package/dist/cjs/bal-nav_8.cjs.entry.js +102 -138
- package/dist/cjs/bal-navbar_5.cjs.entry.js +30 -74
- package/dist/cjs/bal-notices_3.cjs.entry.js +18 -65
- package/dist/cjs/bal-notification.cjs.entry.js +6 -13
- package/dist/cjs/bal-number-input.cjs.entry.js +174 -83
- package/dist/cjs/bal-option_2.cjs.entry.js +49 -91
- package/dist/cjs/bal-pagination.cjs.entry.js +68 -87
- package/dist/cjs/bal-popup.cjs.entry.js +46 -72
- package/dist/cjs/bal-progress-bar.cjs.entry.js +17 -25
- package/dist/cjs/bal-radio-icon.cjs.entry.js +6 -25
- package/dist/cjs/bal-radio_2.cjs.entry.js +80 -161
- package/dist/cjs/bal-segment_2.cjs.entry.js +65 -98
- package/dist/cjs/bal-select_2.cjs.entry.js +81 -137
- package/dist/cjs/bal-shape.cjs.entry.js +10 -16
- package/dist/cjs/bal-sheet.cjs.entry.js +6 -6
- package/dist/cjs/{bal-spinner.animation-BL6PkxOx.js → bal-spinner.animation-a81cf10f.js} +1919 -1929
- package/dist/cjs/bal-spinner.cjs.entry.js +23 -34
- package/dist/cjs/bal-stack.cjs.entry.js +12 -41
- package/dist/cjs/bal-stage_6.cjs.entry.js +21 -27
- package/dist/cjs/bal-step-item.cjs.entry.js +6 -34
- package/dist/cjs/bal-steps.cjs.entry.js +33 -45
- package/dist/cjs/bal-switch.cjs.entry.js +6 -22
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +90 -183
- package/dist/cjs/bal-table.cjs.entry.js +6 -6
- package/dist/cjs/bal-tag_2.cjs.entry.js +9 -31
- package/dist/cjs/bal-textarea.cjs.entry.js +40 -63
- package/dist/cjs/bal-time-input.cjs.entry.js +41 -58
- package/dist/cjs/bal-tooltip.cjs.entry.js +20 -31
- package/dist/cjs/baloise-design-system.cjs.js +14 -7
- package/dist/cjs/{breakpoints.decorator-D9rKeaiV.js → breakpoints.decorator-881dd92d.js} +1 -1
- package/dist/cjs/{breakpoints.subject-BdO-YsQm.js → breakpoints.subject-485cf660.js} +17 -16
- package/dist/cjs/browser-1d542d0f.js +64 -0
- package/dist/cjs/{config.decorator-D_FjiIar.js → config.decorator-de244188.js} +3 -3
- package/dist/cjs/config.default-7e96eb95.js +48 -0
- package/dist/cjs/config.utils-df30e424.js +140 -0
- package/dist/cjs/{date-TPRfNe4M.js → date-ce9c7f3f.js} +3826 -3213
- package/dist/cjs/{device-PwXgHi--.js → device-9f97a845.js} +5 -5
- package/dist/cjs/{element-states.decorator-B-8GoxSa.js → element-states.decorator-aa5126e2.js} +13 -12
- package/dist/cjs/{floating-ui-l3NjU516.js → floating-ui-4a4a1aed.js} +3 -3
- package/dist/cjs/{focus-visible-DFZa8IIA.js → focus-visible-a434c91f.js} +2 -2
- package/dist/cjs/{focus.decorator-C6zfsYu-.js → focus.decorator-14a4a576.js} +10 -9
- package/dist/cjs/{form-input-B660-bjw.js → form-input-e9974433.js} +7 -2
- package/dist/cjs/helpers-debb881a.js +331 -0
- package/dist/cjs/index-24d802b4.js +594 -0
- package/dist/cjs/index-3b7f8988.js +1860 -0
- package/dist/cjs/index-758765f7.js +560 -0
- package/dist/cjs/index-84f42282.js +1810 -0
- package/dist/cjs/index-e6a233be.js +37 -0
- package/dist/cjs/index.cjs.js +74 -65
- package/dist/cjs/index.esm-a38eebac.js +212 -0
- package/dist/cjs/initialize-2e8978a4.js +319 -0
- package/dist/cjs/{listener-B7XPbb55.js → listener-52d2e5fd.js} +2 -2
- package/dist/cjs/loader.cjs.js +12 -3
- package/dist/cjs/log-33398c2a.js +80 -0
- package/dist/cjs/lottie_light_html-cbfdf82e.js +11694 -0
- package/dist/cjs/{mutation.decorator-CugZMhs4.js → mutation.decorator-485e250e.js} +5 -5
- package/dist/cjs/{number-hhFX3aKU.js → number-24bf265b.js} +4 -3
- package/dist/cjs/{overlays-D69-iSa6.js → overlays-94ebb271.js} +6 -5
- package/dist/cjs/purify-b01229e2.js +1355 -0
- package/dist/cjs/{resize.decorator-D7f4FbeF.js → resize.decorator-e4a92322.js} +6 -5
- package/dist/cjs/{scroll-D7ot6_a-.js → scroll-dc37ea84.js} +5 -5
- package/dist/cjs/{swipe.decorator-aP7AIbLE.js → swipe.decorator-9c105f90.js} +1 -1
- package/dist/cjs/{swipe.subject-BhMYr3OO.js → swipe.subject-191f7d8a.js} +5 -5
- package/dist/cjs/{swiper.util-Dh50nc_s.js → swiper.util-d23b8eb0.js} +16 -15
- package/dist/cjs/{tokens.esm-cUm8Yiyt.js → tokens.esm-e14cedac.js} +1 -2
- package/dist/cjs/{tslib.es6-DrfCPgT9.js → tslib.es6-a680968e.js} +0 -2
- package/dist/cjs/{utils-Bl0u6rg1.js → utils-9ea175af.js} +6 -6
- package/dist/cjs/{visibility.decorator-kwm3v9pQ.js → visibility.decorator-a218aab9.js} +5 -5
- package/dist/cjs/window-resize.decorator-56853e4c.js +48 -0
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +6 -18
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +7 -19
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +24 -57
- package/dist/collection/components/bal-accordion/bal-accordion.js +18 -47
- package/dist/collection/components/bal-app/bal-app.js +4 -10
- package/dist/collection/components/bal-badge/bal-badge.js +5 -13
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +3 -13
- package/dist/collection/components/bal-button/bal-button.js +63 -192
- package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +1 -4
- package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +8 -26
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +5 -16
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +1 -4
- package/dist/collection/components/bal-card/bal-card.css +1 -1
- package/dist/collection/components/bal-card/bal-card.js +9 -36
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +27 -45
- package/dist/collection/components/bal-carousel/bal-carousel.js +15 -64
- package/dist/collection/components/bal-checkbox/bal-check/bal-check.js +6 -28
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +29 -72
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +47 -109
- package/dist/collection/components/bal-checkbox/bal-switch/bal-switch.js +5 -24
- package/dist/collection/components/bal-close/bal-close.js +2 -8
- package/dist/collection/components/bal-content/bal-content.js +5 -28
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +2 -8
- package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +1 -4
- package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +6 -15
- package/dist/collection/components/bal-data/bal-data.js +3 -9
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +26 -24
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +16 -11
- package/dist/collection/components/bal-date/bal-date.js +45 -85
- package/dist/collection/components/bal-divider/bal-divider.js +4 -21
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +52 -118
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +4 -18
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +3 -12
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +8 -40
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +5 -20
- package/dist/collection/components/bal-field/bal-field.js +14 -36
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +33 -67
- package/dist/collection/components/bal-footer/bal-footer.js +3 -20
- package/dist/collection/components/bal-form/bal-form.js +3 -12
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +1 -1
- package/dist/collection/components/bal-heading/bal-heading.js +13 -33
- package/dist/collection/components/bal-hint/bal-hint.css +1 -1
- package/dist/collection/components/bal-hint/bal-hint.js +7 -9
- package/dist/collection/components/bal-icon/bal-icon.js +36 -82
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +19 -54
- package/dist/collection/components/bal-input/bal-input.js +60 -111
- package/dist/collection/components/bal-input-group/bal-input-group.js +3 -12
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +27 -66
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.css +1 -1
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +40 -62
- package/dist/collection/components/bal-label/bal-label.js +13 -62
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +19 -42
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +7 -12
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +6 -16
- package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +4 -1
- package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +1 -4
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +3 -5
- package/dist/collection/components/bal-list/bal-list.js +5 -20
- package/dist/collection/components/bal-logo/bal-logo.js +3 -16
- package/dist/collection/components/bal-modal/bal-modal.js +17 -48
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +8 -23
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +1 -8
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +1 -8
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +2 -12
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +1 -8
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +5 -24
- package/dist/collection/components/bal-nav/bal-nav.js +12 -18
- package/dist/collection/components/bal-nav/models/bal-nav-menu-link-item.js +2 -2
- package/dist/collection/components/bal-nav/models/bal-nav-meta-button.js +25 -7
- package/dist/collection/components/bal-nav/models/bal-nav-meta-link-item.js +2 -2
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +13 -36
- package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +1 -7
- package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +1 -7
- package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +1 -7
- package/dist/collection/components/bal-navbar/bal-navbar.js +3 -14
- package/dist/collection/components/bal-notices/bal-notices.js +3 -12
- package/dist/collection/components/bal-notification/bal-notification.js +3 -13
- package/dist/collection/components/bal-number-input/bal-number-input.js +36 -65
- package/dist/collection/components/bal-option/bal-option.js +18 -46
- package/dist/collection/components/bal-option-list/bal-option-list.js +8 -29
- package/dist/collection/components/bal-pagination/bal-pagination.css +1 -1
- package/dist/collection/components/bal-pagination/bal-pagination.js +15 -42
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +9 -36
- package/dist/collection/components/bal-popover/bal-popover.js +12 -52
- package/dist/collection/components/bal-popup/bal-popup.js +31 -64
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +3 -16
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +30 -68
- package/dist/collection/components/bal-radio/bal-radio-icon/bal-radio-icon.js +6 -28
- package/dist/collection/components/bal-radio/bal-radio.js +43 -93
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +19 -39
- package/dist/collection/components/bal-segment/bal-segment.js +20 -40
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +6 -11
- package/dist/collection/components/bal-select/bal-select.js +51 -109
- package/dist/collection/components/bal-shape/bal-shape.js +6 -15
- package/dist/collection/components/bal-sheet/bal-sheet.js +1 -4
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +13 -42
- package/dist/collection/components/bal-spinner/bal-spinner.js +11 -30
- package/dist/collection/components/bal-stack/bal-stack.js +13 -47
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +6 -10
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +4 -2
- package/dist/collection/components/bal-stage/bal-stage.js +12 -22
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +12 -42
- package/dist/collection/components/bal-steps/bal-steps.js +11 -31
- package/dist/collection/components/bal-table/bal-table.js +1 -4
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +30 -69
- package/dist/collection/components/bal-tabs/bal-tabs.js +52 -111
- package/dist/collection/components/bal-tag/bal-tag.js +8 -33
- package/dist/collection/components/bal-text/bal-text.js +13 -58
- package/dist/collection/components/bal-textarea/bal-textarea.js +40 -69
- package/dist/collection/components/bal-time-input/bal-time-input.js +20 -44
- package/dist/collection/components/bal-toast/bal-toast.js +4 -21
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +6 -24
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/esm/_commonjsHelpers-1c8beb5f.js +3 -0
- package/dist/esm/{animation.decorator-BRrK54mN.js → animation.decorator-7fca988f.js} +2 -2
- package/dist/esm/app-globals-07bd529a.js +9 -0
- package/dist/esm/{array-CDfSqLEo.js → array-4c09dfe3.js} +3 -3
- package/dist/esm/{attributes-C4sZQbkT.js → attributes-a3e70948.js} +3 -0
- package/dist/esm/bal-accordion_4.entry.js +53 -130
- package/dist/esm/bal-app.entry.js +12 -13
- package/dist/esm/bal-badge.entry.js +5 -12
- package/dist/esm/bal-button_2.entry.js +42 -120
- package/dist/esm/bal-card_6.entry.js +8 -69
- package/dist/esm/bal-carousel_2.entry.js +49 -110
- package/dist/esm/bal-check.entry.js +4 -25
- package/dist/esm/bal-checkbox_2.entry.js +75 -172
- package/dist/esm/bal-close.entry.js +11 -12
- package/dist/esm/bal-content.entry.js +7 -27
- package/dist/esm/bal-data_4.entry.js +13 -37
- package/dist/esm/bal-date-calendar-cell.entry.js +16 -8
- package/dist/esm/bal-date-calendar_2.entry.js +61 -86
- package/dist/esm/bal-date.entry.js +57 -92
- package/dist/esm/bal-divider.entry.js +7 -21
- package/dist/esm/bal-dropdown.entry.js +61 -120
- package/dist/esm/bal-field_5.entry.js +19 -107
- package/dist/esm/bal-file-upload.entry.js +73 -119
- package/dist/esm/bal-footer.entry.js +15 -27
- package/dist/esm/bal-form-col_2.entry.js +3 -2
- package/dist/esm/bal-form.entry.js +7 -12
- package/dist/esm/bal-heading_2.entry.js +11 -73
- package/dist/esm/bal-hint_5.entry.js +43 -105
- package/dist/esm/bal-icon.entry.js +914 -969
- package/dist/esm/bal-input-group.entry.js +4 -12
- package/dist/esm/bal-input-slider.entry.js +31 -67
- package/dist/esm/bal-input-stepper.entry.js +1083 -1108
- package/dist/esm/bal-input.entry.js +53 -100
- package/dist/esm/bal-label.entry.js +12 -56
- package/dist/esm/bal-list_8.entry.js +45 -97
- package/dist/esm/{bal-logo.animation-Bm-_mal3.js → bal-logo.animation-560601c6.js} +3 -4
- package/dist/esm/bal-logo.entry.js +16 -24
- package/dist/esm/bal-modal_3.entry.js +18 -43
- package/dist/esm/bal-nav_8.entry.js +79 -117
- package/dist/esm/bal-navbar_5.entry.js +23 -69
- package/dist/esm/bal-notices_3.entry.js +16 -65
- package/dist/esm/bal-notification.entry.js +4 -13
- package/dist/esm/bal-number-input.entry.js +167 -78
- package/dist/esm/bal-option_2.entry.js +33 -77
- package/dist/esm/bal-pagination.entry.js +66 -87
- package/dist/esm/bal-popup.entry.js +36 -64
- package/dist/esm/bal-progress-bar.entry.js +14 -24
- package/dist/esm/bal-radio-icon.entry.js +4 -25
- package/dist/esm/bal-radio_2.entry.js +72 -155
- package/dist/esm/bal-segment_2.entry.js +56 -91
- package/dist/esm/bal-select_2.entry.js +72 -130
- package/dist/esm/bal-shape.entry.js +8 -16
- package/dist/esm/bal-sheet.entry.js +4 -6
- package/dist/esm/{bal-spinner.animation-Bv2Ow6xu.js → bal-spinner.animation-81d4326e.js} +1919 -1929
- package/dist/esm/bal-spinner.entry.js +18 -31
- package/dist/esm/bal-stack.entry.js +9 -40
- package/dist/esm/bal-stage_6.entry.js +18 -26
- package/dist/esm/bal-step-item.entry.js +4 -34
- package/dist/esm/bal-steps.entry.js +29 -43
- package/dist/esm/bal-switch.entry.js +4 -22
- package/dist/esm/bal-tab-item_2.entry.js +75 -170
- package/dist/esm/bal-table.entry.js +4 -6
- package/dist/esm/bal-tag_2.entry.js +7 -31
- package/dist/esm/bal-textarea.entry.js +37 -62
- package/dist/esm/bal-time-input.entry.js +37 -56
- package/dist/esm/bal-tooltip.entry.js +15 -28
- package/dist/esm/baloise-design-system.js +11 -5
- package/dist/esm/{breakpoints.decorator-B9fGMzyI.js → breakpoints.decorator-4de4315f.js} +1 -1
- package/dist/esm/{breakpoints.subject-D2jditew.js → breakpoints.subject-2f68e834.js} +5 -4
- package/dist/esm/browser-a8073d92.js +62 -0
- package/dist/esm/{config.decorator-g255X8DE.js → config.decorator-6795d1fe.js} +1 -1
- package/dist/esm/config.default-53a04699.js +45 -0
- package/dist/esm/config.utils-f3793464.js +101 -0
- package/dist/esm/{date-CzITO5fO.js → date-87bdb1d1.js} +3822 -3209
- package/dist/esm/{device-dF5vUTps.js → device-8c6d2881.js} +1 -1
- package/dist/esm/{element-states.decorator-Dk8OIOdm.js → element-states.decorator-d99dc83c.js} +3 -2
- package/dist/esm/{floating-ui-ITd61PST.js → floating-ui-8ffbc979.js} +2 -2
- package/dist/esm/{focus-visible-DqCbGYzv.js → focus-visible-c1d6b5b8.js} +2 -2
- package/dist/esm/{focus.decorator-MIxVqnNR.js → focus.decorator-988245d7.js} +3 -2
- package/dist/esm/{form-input-DyU_I7Nf.js → form-input-1ebdb905.js} +6 -2
- package/dist/esm/helpers-51d51cc5.js +307 -0
- package/dist/esm/index-82aff103.js +35 -0
- package/dist/esm/index-8d2a7ce7.js +1779 -0
- package/dist/esm/index-95ee0c4b.js +1858 -0
- package/dist/esm/index-bba06972.js +558 -0
- package/dist/esm/index-db06fb0e.js +592 -0
- package/dist/esm/index.esm-9079680d.js +206 -0
- package/dist/esm/index.js +30 -24
- package/{components/initialize.js → dist/esm/initialize-c00194b2.js} +5 -5
- package/dist/esm/{listener-BRXdr5Mk.js → listener-04842ae9.js} +1 -1
- package/dist/esm/loader.js +10 -3
- package/dist/esm/log-dfd1c19f.js +77 -0
- package/dist/esm/lottie_light_html-ab90e4a2.js +11692 -0
- package/dist/esm/{mutation.decorator-CFRV3n5T.js → mutation.decorator-6a69cedb.js} +2 -2
- package/dist/esm/{number-DI8U2zZ7.js → number-ccf3fbd0.js} +2 -1
- package/dist/esm/{overlays-BE8fsAF4.js → overlays-cee3838b.js} +3 -2
- package/dist/esm/purify-8cb49f16.js +1353 -0
- package/dist/esm/{resize.decorator-CdfVlqf4.js → resize.decorator-3c8e5ee2.js} +3 -2
- package/dist/esm/{scroll-ytafAebU.js → scroll-521224a9.js} +1 -1
- package/dist/esm/{swipe.decorator-LAK4VYA0.js → swipe.decorator-3d3585e7.js} +1 -1
- package/dist/esm/{swipe.subject-2eHkUcpg.js → swipe.subject-26a9e5a5.js} +4 -4
- package/dist/esm/{swiper.util-Dy8CWRH7.js → swiper.util-8e17b8c4.js} +5 -4
- package/dist/esm/{tokens.esm-B0bmgb-_.js → tokens.esm-4409ffbb.js} +2 -3
- package/dist/esm/{tslib.es6-dfXERft2.js → tslib.es6-654e2c24.js} +0 -2
- package/dist/esm/{utils-C_qktPg7.js → utils-9fbab1d3.js} +6 -6
- package/dist/esm/{visibility.decorator-B1BbAwZf.js → visibility.decorator-5db91610.js} +2 -2
- package/dist/esm/{window-resize.decorator-B1fuKglH.js → window-resize.decorator-03b1ed50.js} +24 -1
- package/dist/esm-es5/_commonjsHelpers-1c8beb5f.js +1 -0
- package/dist/esm-es5/animation.decorator-7fca988f.js +1 -0
- package/dist/esm-es5/app-globals-07bd529a.js +1 -0
- package/dist/esm-es5/array-4c09dfe3.js +1 -0
- package/dist/esm-es5/{attributes-C4sZQbkT.js → attributes-a3e70948.js} +1 -1
- 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-dropdown.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
- package/dist/esm-es5/bal-form.entry.js +1 -1
- package/dist/esm-es5/bal-heading_2.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-group.entry.js +1 -1
- package/dist/esm-es5/bal-input-slider.entry.js +1 -1
- package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
- package/dist/esm-es5/bal-input.entry.js +1 -1
- package/dist/esm-es5/bal-label.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.animation-560601c6.js +1 -0
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-modal_3.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-notices_3.entry.js +1 -1
- package/dist/esm-es5/bal-notification.entry.js +1 -1
- package/dist/esm-es5/bal-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-option_2.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-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.animation-Bv2Ow6xu.js → bal-spinner.animation-81d4326e.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-4de4315f.js +1 -0
- package/dist/esm-es5/breakpoints.subject-2f68e834.js +1 -0
- package/dist/esm-es5/browser-a8073d92.js +1 -0
- package/dist/esm-es5/config.decorator-6795d1fe.js +1 -0
- package/dist/esm-es5/config.default-53a04699.js +1 -0
- package/dist/esm-es5/config.utils-f3793464.js +1 -0
- package/dist/esm-es5/date-87bdb1d1.js +1 -0
- package/dist/esm-es5/device-8c6d2881.js +1 -0
- package/dist/esm-es5/element-states.decorator-d99dc83c.js +1 -0
- package/dist/esm-es5/floating-ui-8ffbc979.js +1 -0
- package/dist/esm-es5/focus-visible-c1d6b5b8.js +1 -0
- package/dist/esm-es5/focus.decorator-988245d7.js +1 -0
- package/dist/esm-es5/form-input-1ebdb905.js +1 -0
- package/dist/esm-es5/helpers-51d51cc5.js +1 -0
- package/dist/esm-es5/index-82aff103.js +1 -0
- package/dist/esm-es5/index-8d2a7ce7.js +2 -0
- package/dist/esm-es5/index-95ee0c4b.js +1 -0
- package/dist/esm-es5/index-bba06972.js +1 -0
- package/dist/esm-es5/index-db06fb0e.js +1 -0
- package/dist/esm-es5/index.esm-9079680d.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-c00194b2.js +1 -0
- package/dist/esm-es5/listener-04842ae9.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/log-dfd1c19f.js +1 -0
- package/dist/esm-es5/lottie_light_html-ab90e4a2.js +9 -0
- package/dist/esm-es5/mutation.decorator-6a69cedb.js +1 -0
- package/dist/esm-es5/number-ccf3fbd0.js +1 -0
- package/dist/esm-es5/overlays-cee3838b.js +1 -0
- package/dist/esm-es5/purify-8cb49f16.js +2 -0
- package/dist/esm-es5/resize.decorator-3c8e5ee2.js +1 -0
- package/dist/esm-es5/scroll-521224a9.js +1 -0
- package/dist/esm-es5/{swipe.decorator-LAK4VYA0.js → swipe.decorator-3d3585e7.js} +1 -1
- package/dist/esm-es5/swipe.subject-26a9e5a5.js +1 -0
- package/dist/esm-es5/swiper.util-8e17b8c4.js +1 -0
- package/dist/esm-es5/{tokens.esm-B0bmgb-_.js → tokens.esm-4409ffbb.js} +1 -1
- package/dist/esm-es5/utils-9fbab1d3.js +1 -0
- package/dist/esm-es5/visibility.decorator-5db91610.js +1 -0
- package/dist/esm-es5/window-resize.decorator-03b1ed50.js +1 -0
- package/dist/html.html-data.json +1 -82
- package/dist/types/components/bal-button/bal-button.d.ts +1 -13
- package/dist/types/components/bal-input-stepper/bal-input-stepper.d.ts +1 -1
- package/dist/types/components/bal-nav/models/bal-nav-meta-button.d.ts +1 -1
- package/dist/types/components/bal-pagination/bal-pagination.d.ts +1 -1
- package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +3 -3
- package/dist/types/components.d.ts +10 -1519
- package/dist/types/stencil-public-runtime.d.ts +1 -23
- package/loader/package.json +11 -0
- package/package.json +7 -7
- package/components/bal-app2.js +0 -100
- package/components/bal-doc-app.d.ts +0 -11
- package/components/bal-doc-app.js +0 -262
- package/components/index6.js +0 -125
- package/components/purify.es.js +0 -1328
- package/components/window-resize.listener.js +0 -80
- package/components/window-resize.subject.js +0 -26
- package/dist/baloise-design-system/p--k0G90SD.system.js +0 -1
- package/dist/baloise-design-system/p-01d073573f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-02b8352ee5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-061510057f.entry.js +0 -1
- package/dist/baloise-design-system/p-07c4c0a34a.entry.js +0 -1
- package/dist/baloise-design-system/p-0c68f0d2a7.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0d6922d234.entry.js +0 -1
- package/dist/baloise-design-system/p-11c78979ba.entry.js +0 -1
- package/dist/baloise-design-system/p-140c45adf9.entry.js +0 -1
- package/dist/baloise-design-system/p-17be27154f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-189a96c522.entry.js +0 -1
- package/dist/baloise-design-system/p-1bd65d3478.entry.js +0 -1
- package/dist/baloise-design-system/p-1e314f5765.entry.js +0 -1
- package/dist/baloise-design-system/p-200de22241.system.entry.js +0 -1
- package/dist/baloise-design-system/p-21e94d929c.entry.js +0 -1
- package/dist/baloise-design-system/p-21f00c06f7.system.entry.js +0 -1
- package/dist/baloise-design-system/p-220bd32622.entry.js +0 -1
- package/dist/baloise-design-system/p-26d97d1341.entry.js +0 -1
- package/dist/baloise-design-system/p-2bedf5525c.entry.js +0 -1
- package/dist/baloise-design-system/p-2e7fc3dd31.entry.js +0 -1
- package/dist/baloise-design-system/p-31d57d6b98.system.entry.js +0 -1
- package/dist/baloise-design-system/p-32aa95a155.entry.js +0 -1
- package/dist/baloise-design-system/p-3758b52b14.system.entry.js +0 -1
- package/dist/baloise-design-system/p-37d5ef6005.system.entry.js +0 -1
- package/dist/baloise-design-system/p-3a7b577d1e.entry.js +0 -1
- package/dist/baloise-design-system/p-43d9277d12.system.entry.js +0 -1
- package/dist/baloise-design-system/p-45df3e8f55.system.entry.js +0 -1
- package/dist/baloise-design-system/p-46ebaa5408.entry.js +0 -1
- package/dist/baloise-design-system/p-47e172daa0.entry.js +0 -1
- package/dist/baloise-design-system/p-4e3b3039e7.entry.js +0 -1
- package/dist/baloise-design-system/p-4ea67d4f4e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-520794370e.entry.js +0 -1
- package/dist/baloise-design-system/p-5355439141.system.entry.js +0 -1
- package/dist/baloise-design-system/p-565686db22.entry.js +0 -1
- package/dist/baloise-design-system/p-57fb8b5eb2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5b0182d52f.entry.js +0 -1
- package/dist/baloise-design-system/p-61cb6b71ac.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6396d3b495.system.entry.js +0 -1
- package/dist/baloise-design-system/p-64ddc16b67.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6588e93372.entry.js +0 -1
- package/dist/baloise-design-system/p-6653708bd4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6ba67cb715.entry.js +0 -1
- package/dist/baloise-design-system/p-6e52cbd8c5.entry.js +0 -1
- package/dist/baloise-design-system/p-6lvI43hh.js +0 -1
- package/dist/baloise-design-system/p-72eadd5113.entry.js +0 -1
- package/dist/baloise-design-system/p-756c6d31b2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-758ffe7e03.entry.js +0 -1
- package/dist/baloise-design-system/p-77d927595c.entry.js +0 -1
- package/dist/baloise-design-system/p-79a2093f09.entry.js +0 -1
- package/dist/baloise-design-system/p-7b5cdd7059.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7de6dfad79.entry.js +0 -1
- package/dist/baloise-design-system/p-7e25c45a92.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8143d673eb.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8195485035.entry.js +0 -1
- package/dist/baloise-design-system/p-83e5034e65.entry.js +0 -1
- package/dist/baloise-design-system/p-8416fd07c5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-85beb9b3d5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-89eb53ffa3.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8b9e2d1b0b.entry.js +0 -1
- package/dist/baloise-design-system/p-8ba1580831.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8caeac83b7.entry.js +0 -1
- package/dist/baloise-design-system/p-8eb2cfd0a5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8f57e7854a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-93c234f5f9.system.entry.js +0 -1
- package/dist/baloise-design-system/p-979f0a41e7.system.entry.js +0 -1
- package/dist/baloise-design-system/p-98c3550261.system.entry.js +0 -1
- package/dist/baloise-design-system/p-B0bmgb-_.js +0 -1
- package/dist/baloise-design-system/p-B1a79Kak.system.js +0 -1
- package/dist/baloise-design-system/p-B33S9saU.system.js +0 -1
- package/dist/baloise-design-system/p-B3Q-Lii3.js +0 -2
- package/dist/baloise-design-system/p-BAaDJIzy.js +0 -1
- package/dist/baloise-design-system/p-BC9JH89x.js +0 -1
- package/dist/baloise-design-system/p-BFTU3MAI.js +0 -1
- package/dist/baloise-design-system/p-BfslJCJ1.system.js +0 -1
- package/dist/baloise-design-system/p-Bl6JuZha.js +0 -1
- package/dist/baloise-design-system/p-BnVL_HEz.js +0 -1
- package/dist/baloise-design-system/p-Bo7bt-QO.system.js +0 -1
- package/dist/baloise-design-system/p-BpPN4QPC.system.js +0 -1
- package/dist/baloise-design-system/p-Bzy18UgU.system.js +0 -1
- package/dist/baloise-design-system/p-C78VTo3I.js +0 -1
- package/dist/baloise-design-system/p-CEOTg0oT.system.js +0 -1
- package/dist/baloise-design-system/p-CHdm2a6D.js +0 -1
- package/dist/baloise-design-system/p-CTtLY-pQ.system.js +0 -1
- package/dist/baloise-design-system/p-CbvOgU0G.js +0 -1
- package/dist/baloise-design-system/p-Cj6DXhmQ.js +0 -1
- package/dist/baloise-design-system/p-Ckgicaeo.js +0 -1
- package/dist/baloise-design-system/p-CpWDVANq.system.js +0 -1
- package/dist/baloise-design-system/p-CwvovJM0.system.js +0 -3
- package/dist/baloise-design-system/p-CzKsK_-N.js +0 -1
- package/dist/baloise-design-system/p-Czl2AFQD.system.js +0 -1
- package/dist/baloise-design-system/p-D-yL3ygS.system.js +0 -1
- package/dist/baloise-design-system/p-D2IpojJH.js +0 -1
- package/dist/baloise-design-system/p-D3fFHb3d.system.js +0 -1
- package/dist/baloise-design-system/p-DObNWWwI.js +0 -1
- package/dist/baloise-design-system/p-DXglhVgP.js +0 -1
- package/dist/baloise-design-system/p-DgPiq0y0.js +0 -2
- package/dist/baloise-design-system/p-DieY27e8.js +0 -1
- package/dist/baloise-design-system/p-DpQhsHDk.system.js +0 -9
- package/dist/baloise-design-system/p-DpZ1EJms.system.js +0 -1
- package/dist/baloise-design-system/p-DqCbGYzv.js +0 -1
- package/dist/baloise-design-system/p-DvpDuwcR.system.js +0 -1
- package/dist/baloise-design-system/p-Dxz8zGB7.system.js +0 -1
- package/dist/baloise-design-system/p-HNsXrTcK.system.js +0 -1
- package/dist/baloise-design-system/p-NtpXzgnf.system.js +0 -1
- package/dist/baloise-design-system/p-RLU0CN2t.system.js +0 -1
- package/dist/baloise-design-system/p-RpbX6ZuY.system.js +0 -1
- package/dist/baloise-design-system/p-RzJv7e7Y.system.js +0 -1
- package/dist/baloise-design-system/p-S5-HQnxq.js +0 -1
- package/dist/baloise-design-system/p-UHSJaF1l.system.js +0 -2
- package/dist/baloise-design-system/p-a026dea6ff.system.entry.js +0 -1
- package/dist/baloise-design-system/p-a296f4d228.system.entry.js +0 -1
- package/dist/baloise-design-system/p-a3fc7283ce.system.entry.js +0 -1
- package/dist/baloise-design-system/p-a490a7c071.entry.js +0 -1
- package/dist/baloise-design-system/p-a7f243b3fe.system.entry.js +0 -1
- package/dist/baloise-design-system/p-a9bbd841f4.entry.js +0 -1
- package/dist/baloise-design-system/p-aa419a2a08.entry.js +0 -1
- package/dist/baloise-design-system/p-b219f3a83c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b5bc57a5cc.entry.js +0 -1
- package/dist/baloise-design-system/p-b5fa8d0dfd.entry.js +0 -1
- package/dist/baloise-design-system/p-b673357398.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b782a8351d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b798847724.entry.js +0 -1
- package/dist/baloise-design-system/p-b8c2106c2f.entry.js +0 -1
- package/dist/baloise-design-system/p-bb62fc0b8b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c26e50d86b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c5kwQsXB.system.js +0 -1
- package/dist/baloise-design-system/p-c6965794d7.entry.js +0 -1
- package/dist/baloise-design-system/p-c7370c3bcd.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ca2c7c3b2b.entry.js +0 -1
- package/dist/baloise-design-system/p-cc45f0d261.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ccafad087a.entry.js +0 -1
- package/dist/baloise-design-system/p-d99135bfae.system.entry.js +0 -1
- package/dist/baloise-design-system/p-dace8501ae.system.entry.js +0 -1
- package/dist/baloise-design-system/p-db401e5eca.system.entry.js +0 -1
- package/dist/baloise-design-system/p-dccc8331de.entry.js +0 -1
- package/dist/baloise-design-system/p-e1a35bc526.entry.js +0 -1
- package/dist/baloise-design-system/p-e264cbf7ab.entry.js +0 -1
- package/dist/baloise-design-system/p-e49d5935c0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e84e95c471.entry.js +0 -1
- package/dist/baloise-design-system/p-e871d48caf.entry.js +0 -1
- package/dist/baloise-design-system/p-e8c3c1829a.entry.js +0 -1
- package/dist/baloise-design-system/p-eba28c44f3.entry.js +0 -1
- package/dist/baloise-design-system/p-eba878531c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ebacacaadb.system.entry.js +0 -1
- package/dist/baloise-design-system/p-f01e31c121.entry.js +0 -1
- package/dist/baloise-design-system/p-f1f4340a3d.entry.js +0 -1
- package/dist/baloise-design-system/p-f2e7b54fd6.system.entry.js +0 -1
- package/dist/baloise-design-system/p-f3a820890f.entry.js +0 -1
- package/dist/baloise-design-system/p-fa1e4a4d20.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fa5c522e5d.entry.js +0 -1
- package/dist/baloise-design-system/p-fe3f059990.system.entry.js +0 -1
- package/dist/baloise-design-system/p-jv0tWyso.js +0 -1
- package/dist/baloise-design-system/p-lFDHYLJ4.system.js +0 -1
- package/dist/baloise-design-system/p-m5GX4h3i.system.js +0 -1
- package/dist/baloise-design-system/p-ns9Aprb9.js +0 -1
- package/dist/baloise-design-system/p-sUDAxNV7.js +0 -1
- package/dist/baloise-design-system/p-v8tPBXUI.js +0 -1
- package/dist/baloise-design-system/p-vPrRXkWt.system.js +0 -1
- package/dist/baloise-design-system/p-xbSOW78W.js +0 -1
- package/dist/cjs/bal-doc-app.cjs.entry.js +0 -224
- package/dist/cjs/index-BZ67Dcnb.js +0 -50
- package/dist/cjs/index-BobQkZjn.js +0 -1868
- package/dist/cjs/index-C413E-IK.js +0 -571
- package/dist/cjs/index-CuY5w2n4.js +0 -602
- package/dist/cjs/index-D4vG8k57.js +0 -2885
- package/dist/cjs/index-ifu9fMyU.js +0 -127
- package/dist/cjs/index.esm-CKDqUwIC.js +0 -216
- package/dist/cjs/lottie_light_html-OP40Exqq.js +0 -11704
- package/dist/cjs/purify.es-CJTp6uKN.js +0 -1330
- package/dist/cjs/window-resize.decorator-CVTXganH.js +0 -25
- package/dist/cjs/window-resize.subject-BAEG_21X.js +0 -28
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -248
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
- package/dist/esm/bal-doc-app.entry.js +0 -222
- package/dist/esm/index-B4k_dH6V.js +0 -1866
- package/dist/esm/index-BU7FUSdu.js +0 -569
- package/dist/esm/index-D6JOtC1P.js +0 -125
- package/dist/esm/index-DgPiq0y0.js +0 -2829
- package/dist/esm/index-dYcsHLfj.js +0 -600
- package/dist/esm/index-zWZxKBfo.js +0 -48
- package/dist/esm/index.esm-Btc0yydR.js +0 -210
- package/dist/esm/lottie_light_html-DuyI5RA6.js +0 -11702
- package/dist/esm/purify.es-B3Q-Lii3.js +0 -1328
- package/dist/esm/window-resize.subject-Dl0mHA8u.js +0 -26
- package/dist/esm-es5/_commonjsHelpers-BFTU3MAI.js +0 -1
- package/dist/esm-es5/animation.decorator-BRrK54mN.js +0 -1
- package/dist/esm-es5/array-CDfSqLEo.js +0 -1
- package/dist/esm-es5/bal-doc-app.entry.js +0 -1
- package/dist/esm-es5/bal-logo.animation-Bm-_mal3.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-B9fGMzyI.js +0 -1
- package/dist/esm-es5/breakpoints.subject-D2jditew.js +0 -1
- package/dist/esm-es5/config.decorator-g255X8DE.js +0 -1
- package/dist/esm-es5/date-CzITO5fO.js +0 -1
- package/dist/esm-es5/device-dF5vUTps.js +0 -1
- package/dist/esm-es5/element-states.decorator-Dk8OIOdm.js +0 -1
- package/dist/esm-es5/floating-ui-ITd61PST.js +0 -1
- package/dist/esm-es5/focus-visible-DqCbGYzv.js +0 -1
- package/dist/esm-es5/focus.decorator-MIxVqnNR.js +0 -1
- package/dist/esm-es5/form-input-DyU_I7Nf.js +0 -1
- package/dist/esm-es5/index-B4k_dH6V.js +0 -1
- package/dist/esm-es5/index-BU7FUSdu.js +0 -1
- package/dist/esm-es5/index-D6JOtC1P.js +0 -1
- package/dist/esm-es5/index-DgPiq0y0.js +0 -2
- package/dist/esm-es5/index-dYcsHLfj.js +0 -1
- package/dist/esm-es5/index-zWZxKBfo.js +0 -1
- package/dist/esm-es5/index.esm-Btc0yydR.js +0 -1
- package/dist/esm-es5/listener-BRXdr5Mk.js +0 -1
- package/dist/esm-es5/lottie_light_html-DuyI5RA6.js +0 -9
- package/dist/esm-es5/mutation.decorator-CFRV3n5T.js +0 -1
- package/dist/esm-es5/number-DI8U2zZ7.js +0 -1
- package/dist/esm-es5/overlays-BE8fsAF4.js +0 -1
- package/dist/esm-es5/purify.es-B3Q-Lii3.js +0 -2
- package/dist/esm-es5/resize.decorator-CdfVlqf4.js +0 -1
- package/dist/esm-es5/scroll-ytafAebU.js +0 -1
- package/dist/esm-es5/swipe.subject-2eHkUcpg.js +0 -1
- package/dist/esm-es5/swiper.util-Dy8CWRH7.js +0 -1
- package/dist/esm-es5/utils-C_qktPg7.js +0 -1
- package/dist/esm-es5/visibility.decorator-B1BbAwZf.js +0 -1
- package/dist/esm-es5/window-resize.decorator-B1fuKglH.js +0 -1
- package/dist/esm-es5/window-resize.subject-Dl0mHA8u.js +0 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -82
- /package/components/{floating-ui.dom.js → floating-ui.dom.esm.js} +0 -0
- /package/dist/baloise-design-system/{p-DIC_sxLd.js → p-06ecf846.js} +0 -0
- /package/dist/baloise-design-system/{p-JHAE10yr.js → p-09ab29d6.js} +0 -0
- /package/dist/baloise-design-system/{p-BkEdlCZJ.js → p-11f970ba.js} +0 -0
- /package/dist/baloise-design-system/{p-DPYRyPTD.system.js → p-14d0c5f3.system.js} +0 -0
- /package/dist/baloise-design-system/{p-DuObDTix.js → p-1a158488.js} +0 -0
- /package/dist/baloise-design-system/{p-DWgCJRpS.system.js → p-278aed95.system.js} +0 -0
- /package/dist/baloise-design-system/{p-DKjTFqnu.system.js → p-2da669b4.system.js} +0 -0
- /package/dist/baloise-design-system/{p-CDt5sRVY.system.js → p-3ecc7d9a.system.js} +0 -0
- /package/dist/baloise-design-system/{p-dfXERft2.js → p-43c9f5e9.js} +0 -0
- /package/dist/baloise-design-system/{p-BktTDSq4.system.js → p-4c0bad70.system.js} +0 -0
- /package/dist/baloise-design-system/{p-SdtgSPca.system.js → p-4e642b63.system.js} +0 -0
- /package/dist/baloise-design-system/{p-Dz-E2PRm.system.js → p-59d9918c.system.js} +0 -0
- /package/dist/baloise-design-system/{p-FCLKfv6B.js → p-5eb3fbb9.js} +0 -0
- /package/dist/baloise-design-system/{p-BLp4ll3i.js → p-5ed239cc.js} +0 -0
- /package/dist/baloise-design-system/{p-CGJ8YYiA.system.js → p-5f26e92f.system.js} +0 -0
- /package/dist/baloise-design-system/{p-DAOAbG5Y.system.js → p-6b45db53.system.js} +0 -0
- /package/dist/baloise-design-system/{p-Cjiw70Dk.system.js → p-6dbef894.system.js} +0 -0
- /package/dist/baloise-design-system/{p-CTl0uAFp.system.js → p-8a2bab70.system.js} +0 -0
- /package/dist/baloise-design-system/{p-B4aDEwd8.js → p-8dc7ee30.js} +0 -0
- /package/dist/baloise-design-system/{p-DBsOHTWj.js → p-8f2e9a7f.js} +0 -0
- /package/dist/baloise-design-system/{p-CLfE_o7e.system.js → p-907368ff.system.js} +0 -0
- /package/dist/baloise-design-system/{p-wTePExHL.system.js → p-99cfab9c.system.js} +0 -0
- /package/dist/baloise-design-system/{p-Ct27z6g9.js → p-a0fe8d65.js} +0 -0
- /package/dist/baloise-design-system/{p-rBUN7c88.js → p-a65bc5e2.js} +0 -0
- /package/dist/baloise-design-system/{p-DEb5iNGc.js → p-ad81b8ea.js} +0 -0
- /package/dist/baloise-design-system/{p-ByiN-QjD.js → p-ae86d0a0.js} +0 -0
- /package/dist/baloise-design-system/{p-Dd7xQwRJ.system.js → p-ba579059.system.js} +0 -0
- /package/dist/baloise-design-system/{p-BbAtjg9Y.system.js → p-db0895e2.system.js} +0 -0
- /package/dist/baloise-design-system/{p-D1VPLQ5z.js → p-dc98854c.js} +0 -0
- /package/dist/baloise-design-system/{p-D5Gy6WbU.system.js → p-e7d72d7c.system.js} +0 -0
- /package/dist/baloise-design-system/{p-xVPGsAdF.js → p-ec1efe3d.js} +0 -0
- /package/dist/baloise-design-system/{p-BmVI6cLw.js → p-f3f5ce4f.js} +0 -0
- /package/dist/baloise-design-system/{p-DkfWaTsH.system.js → p-fe76780d.system.js} +0 -0
- /package/dist/cjs/{aria-BzkqcV7W.js → aria-7672033f.js} +0 -0
- /package/dist/cjs/{bal-close.i18n-B3X5xlkl.js → bal-close.i18n-56dddd35.js} +0 -0
- /package/dist/cjs/{bal-file-upload.type-BzNkF3YQ.js → bal-file-upload.type-616d69d9.js} +0 -0
- /package/dist/cjs/{bal-input-stepper.i18n-D57DHpYR.js → bal-input-stepper.i18n-dbcd32ab.js} +0 -0
- /package/dist/cjs/{bal-label.i18n-BcNNm9Es.js → bal-label.i18n-a25878af.js} +0 -0
- /package/dist/cjs/{bal-step.util-DQcaqybX.js → bal-step.util-3c009db9.js} +0 -0
- /package/dist/cjs/{bal-tab.util-DFGwGbfr.js → bal-tab.util-d0785ef4.js} +0 -0
- /package/dist/cjs/{bal-time-input.i18n-Bfr3EMVD.js → bal-time-input.i18n-b2bb9182.js} +0 -0
- /package/dist/cjs/{bem-p0PWVN8n.js → bem-81bc6a2d.js} +0 -0
- /package/dist/cjs/{contact-qHJM5IBh.js → contact-61b41246.js} +0 -0
- /package/dist/cjs/{floating-ui.dom-BPU3HWKX.js → floating-ui.dom.esm-13e3f667.js} +0 -0
- /package/dist/cjs/{form-BSlIiqcR.js → form-17c98ac2.js} +0 -0
- /package/dist/cjs/{keyboard.helpers-BkZpVT-9.js → keyboard.helpers-2093e793.js} +0 -0
- /package/dist/cjs/{keys.constant-LnwxHAZo.js → keys.constant-b53da545.js} +0 -0
- /package/dist/cjs/{mask-util-B8hrxmqO.js → mask-util-19c28b4a.js} +0 -0
- /package/dist/cjs/{option-kGk4eTdA.js → option-85af0921.js} +0 -0
- /package/dist/esm/{aria-DBsOHTWj.js → aria-ea150568.js} +0 -0
- /package/dist/esm/{bal-close.i18n-Ct27z6g9.js → bal-close.i18n-f2daa707.js} +0 -0
- /package/dist/esm/{bal-file-upload.type-rBUN7c88.js → bal-file-upload.type-2a70f4ec.js} +0 -0
- /package/dist/esm/{bal-input-stepper.i18n-DEb5iNGc.js → bal-input-stepper.i18n-aaa4a009.js} +0 -0
- /package/dist/esm/{bal-label.i18n-JHAE10yr.js → bal-label.i18n-4212be56.js} +0 -0
- /package/dist/esm/{bal-step.util-DIC_sxLd.js → bal-step.util-3905ad56.js} +0 -0
- /package/dist/esm/{bal-tab.util-BmVI6cLw.js → bal-tab.util-933315fe.js} +0 -0
- /package/dist/esm/{bal-time-input.i18n-B4aDEwd8.js → bal-time-input.i18n-157c7092.js} +0 -0
- /package/dist/esm/{bem-ByiN-QjD.js → bem-8c7d2eb0.js} +0 -0
- /package/dist/esm/{contact-BkEdlCZJ.js → contact-91a44c8c.js} +0 -0
- /package/dist/esm/{floating-ui.dom-DKxvaA1I.js → floating-ui.dom.esm-efb93616.js} +0 -0
- /package/dist/esm/{form-FCLKfv6B.js → form-841232ff.js} +0 -0
- /package/dist/esm/{keyboard.helpers-D1VPLQ5z.js → keyboard.helpers-159e517d.js} +0 -0
- /package/dist/esm/{keys.constant-xVPGsAdF.js → keys.constant-0eb059e0.js} +0 -0
- /package/dist/esm/{mask-util-DuObDTix.js → mask-util-71edc2b8.js} +0 -0
- /package/dist/esm/{option-BLp4ll3i.js → option-367a5341.js} +0 -0
- /package/dist/esm-es5/{aria-DBsOHTWj.js → aria-ea150568.js} +0 -0
- /package/dist/esm-es5/{bal-close.i18n-Ct27z6g9.js → bal-close.i18n-f2daa707.js} +0 -0
- /package/dist/esm-es5/{bal-file-upload.type-rBUN7c88.js → bal-file-upload.type-2a70f4ec.js} +0 -0
- /package/dist/esm-es5/{bal-input-stepper.i18n-DEb5iNGc.js → bal-input-stepper.i18n-aaa4a009.js} +0 -0
- /package/dist/esm-es5/{bal-label.i18n-JHAE10yr.js → bal-label.i18n-4212be56.js} +0 -0
- /package/dist/esm-es5/{bal-step.util-DIC_sxLd.js → bal-step.util-3905ad56.js} +0 -0
- /package/dist/esm-es5/{bal-tab.util-BmVI6cLw.js → bal-tab.util-933315fe.js} +0 -0
- /package/dist/esm-es5/{bal-time-input.i18n-B4aDEwd8.js → bal-time-input.i18n-157c7092.js} +0 -0
- /package/dist/esm-es5/{bem-ByiN-QjD.js → bem-8c7d2eb0.js} +0 -0
- /package/dist/esm-es5/{contact-BkEdlCZJ.js → contact-91a44c8c.js} +0 -0
- /package/dist/esm-es5/{floating-ui.dom-DKxvaA1I.js → floating-ui.dom.esm-efb93616.js} +0 -0
- /package/dist/esm-es5/{form-FCLKfv6B.js → form-841232ff.js} +0 -0
- /package/dist/esm-es5/{keyboard.helpers-D1VPLQ5z.js → keyboard.helpers-159e517d.js} +0 -0
- /package/dist/esm-es5/{keys.constant-xVPGsAdF.js → keys.constant-0eb059e0.js} +0 -0
- /package/dist/esm-es5/{mask-util-DuObDTix.js → mask-util-71edc2b8.js} +0 -0
- /package/dist/esm-es5/{option-BLp4ll3i.js → option-367a5341.js} +0 -0
- /package/dist/esm-es5/{tslib.es6-dfXERft2.js → tslib.es6-654e2c24.js} +0 -0
|
@@ -1,2885 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
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_SESSION_KEY = 'baloise-persist-config';
|
|
68
|
-
const BALOISE_ANIMATION_KEY = 'baloise-animated';
|
|
69
|
-
|
|
70
|
-
const defaultLoggerConfig = {
|
|
71
|
-
components: [],
|
|
72
|
-
event: false,
|
|
73
|
-
lifecycle: false,
|
|
74
|
-
render: false,
|
|
75
|
-
custom: false,
|
|
76
|
-
};
|
|
77
|
-
const getConfig = () => {
|
|
78
|
-
let loggerConfig = defaultLoggerConfig;
|
|
79
|
-
if (balBrowser.hasWindow &&
|
|
80
|
-
window.BaloiseDesignSystem &&
|
|
81
|
-
window.BaloiseDesignSystem.config &&
|
|
82
|
-
window.BaloiseDesignSystem.config.logger) {
|
|
83
|
-
loggerConfig = window.BaloiseDesignSystem.config.logger;
|
|
84
|
-
}
|
|
85
|
-
return loggerConfig;
|
|
86
|
-
};
|
|
87
|
-
const buildLogger = (tag) => {
|
|
88
|
-
const l = (type, message, ...optionalParams) => {
|
|
89
|
-
const config = getConfig();
|
|
90
|
-
if (config.components.includes(tag) && config[type]) {
|
|
91
|
-
console.log(message, ...optionalParams);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return {
|
|
95
|
-
custom: (message, ...optionalParams) => l('custom', ` ➡️ [${tag}] - ${message}`, ...optionalParams),
|
|
96
|
-
lifecycle: (lifecycleName, ...optionalParams) => l('lifecycle', `${lifecycleName === 'connectedCallback'
|
|
97
|
-
? '🟢'
|
|
98
|
-
: lifecycleName === 'disconnectedCallback'
|
|
99
|
-
? '🔴'
|
|
100
|
-
: lifecycleName === 'componentDidLoad'
|
|
101
|
-
? '🏁'
|
|
102
|
-
: ' ➡️'} [${tag}] - (${lifecycleName})`, ...optionalParams),
|
|
103
|
-
event: (eventName, ...optionalParams) => l('event', `🔥 [${tag}] - (${eventName})`, ...optionalParams),
|
|
104
|
-
render: (...optionalParams) => l('render', `🖌️ [${tag}] - (render)`, ...optionalParams),
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
function Logger(tag = 'unknown') {
|
|
108
|
-
return function (target, _propertyKey, _descriptor) {
|
|
109
|
-
const { connectedCallback, disconnectedCallback, render, componentDidLoad, createLogger } = target;
|
|
110
|
-
const log = buildLogger(tag);
|
|
111
|
-
target.connectedCallback = function () {
|
|
112
|
-
log.lifecycle(`connectedCallback`, this);
|
|
113
|
-
const events = Object.keys(this)
|
|
114
|
-
.filter(n => n.startsWith('bal'))
|
|
115
|
-
.filter(n => typeof this[n] === 'object');
|
|
116
|
-
for (let index = 0; index < events.length; index++) {
|
|
117
|
-
const event = events[index];
|
|
118
|
-
const emitter = this[event];
|
|
119
|
-
this[event] = {
|
|
120
|
-
emit: (...args) => {
|
|
121
|
-
log.event(event, this, ...args);
|
|
122
|
-
return emitter.emit.call(this, ...args);
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
createLogger.call(this, log.custom);
|
|
127
|
-
return connectedCallback && connectedCallback.call(this);
|
|
128
|
-
};
|
|
129
|
-
target.disconnectedCallback = function () {
|
|
130
|
-
log.lifecycle(`disconnectedCallback`, this);
|
|
131
|
-
return disconnectedCallback && disconnectedCallback.call(this);
|
|
132
|
-
};
|
|
133
|
-
target.componentDidLoad = function () {
|
|
134
|
-
log.lifecycle(`componentDidLoad`, this);
|
|
135
|
-
return componentDidLoad && componentDidLoad.call(this);
|
|
136
|
-
};
|
|
137
|
-
target.render = function () {
|
|
138
|
-
log.render(this);
|
|
139
|
-
return render.call(this);
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// generated file
|
|
145
|
-
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>';
|
|
146
|
-
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>';
|
|
147
|
-
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>';
|
|
148
|
-
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>';
|
|
149
|
-
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>';
|
|
150
|
-
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>';
|
|
151
|
-
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>';
|
|
152
|
-
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>';
|
|
153
|
-
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>';
|
|
154
|
-
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>';
|
|
155
|
-
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>';
|
|
156
|
-
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>';
|
|
157
|
-
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>';
|
|
158
|
-
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>';
|
|
159
|
-
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>';
|
|
160
|
-
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>';
|
|
161
|
-
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>';
|
|
162
|
-
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>';
|
|
163
|
-
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>';
|
|
164
|
-
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>';
|
|
165
|
-
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>';
|
|
166
|
-
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>';
|
|
167
|
-
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>';
|
|
168
|
-
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>';
|
|
169
|
-
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>';
|
|
170
|
-
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>';
|
|
171
|
-
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>';
|
|
172
|
-
|
|
173
|
-
const defaultIcons = {
|
|
174
|
-
balIconClose,
|
|
175
|
-
balIconInfoCircle,
|
|
176
|
-
balIconPlus,
|
|
177
|
-
balIconMinus,
|
|
178
|
-
balIconEdit,
|
|
179
|
-
balIconTrash,
|
|
180
|
-
balIconNavGoLeft,
|
|
181
|
-
balIconNavGoRight,
|
|
182
|
-
balIconNavGoDown,
|
|
183
|
-
balIconNavGoUp,
|
|
184
|
-
balIconCheck,
|
|
185
|
-
balIconDate,
|
|
186
|
-
balIconDocument,
|
|
187
|
-
balIconUpload,
|
|
188
|
-
balIconMenuBars,
|
|
189
|
-
balIconFacebook,
|
|
190
|
-
balIconInstagram,
|
|
191
|
-
balIconLinkedin,
|
|
192
|
-
balIconTwitter,
|
|
193
|
-
balIconX,
|
|
194
|
-
balIconXing,
|
|
195
|
-
balIconYoutube,
|
|
196
|
-
balIconWeb,
|
|
197
|
-
balIconCaretDown,
|
|
198
|
-
balIconCaretLeft,
|
|
199
|
-
balIconCaretRight,
|
|
200
|
-
balIconCaretUp,
|
|
201
|
-
};
|
|
202
|
-
const defaultConfig = {
|
|
203
|
-
region: 'CH',
|
|
204
|
-
language: 'de',
|
|
205
|
-
allowedLanguages: ['de', 'fr', 'it', 'en'],
|
|
206
|
-
icons: defaultIcons,
|
|
207
|
-
fallbackLanguage: 'de',
|
|
208
|
-
logger: defaultLoggerConfig,
|
|
209
|
-
animated: true,
|
|
210
|
-
httpFormSubmit: true,
|
|
211
|
-
};
|
|
212
|
-
const defaultLocale = `${defaultConfig.language}-${defaultConfig.region}`;
|
|
213
|
-
|
|
214
|
-
class Config {
|
|
215
|
-
constructor() {
|
|
216
|
-
this._componentObservers = [];
|
|
217
|
-
this._observers = [];
|
|
218
|
-
this._config = defaultConfig;
|
|
219
|
-
}
|
|
220
|
-
get locale() {
|
|
221
|
-
return `${this._config.language}-${this._config.region}`;
|
|
222
|
-
}
|
|
223
|
-
get region() {
|
|
224
|
-
return this._config.region;
|
|
225
|
-
}
|
|
226
|
-
set region(region) {
|
|
227
|
-
if (region !== this._config.region) {
|
|
228
|
-
this._config.region = region;
|
|
229
|
-
this._notify();
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
get language() {
|
|
233
|
-
return this._config.language;
|
|
234
|
-
}
|
|
235
|
-
set language(language) {
|
|
236
|
-
if (language !== this._config.language) {
|
|
237
|
-
if (this._config.allowedLanguages.includes(language)) {
|
|
238
|
-
this._config.language = language;
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
this._config.language = this._config.fallbackLanguage;
|
|
242
|
-
}
|
|
243
|
-
this._notify();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
get allowedLanguages() {
|
|
247
|
-
return this._config.allowedLanguages;
|
|
248
|
-
}
|
|
249
|
-
set allowedLanguages(allowedLanguages) {
|
|
250
|
-
if (allowedLanguages !== this._config.allowedLanguages) {
|
|
251
|
-
this._config.allowedLanguages = allowedLanguages;
|
|
252
|
-
this._notify();
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
get icons() {
|
|
256
|
-
return this._config.icons;
|
|
257
|
-
}
|
|
258
|
-
set icons(icons) {
|
|
259
|
-
this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
|
|
260
|
-
this._notify();
|
|
261
|
-
}
|
|
262
|
-
get logger() {
|
|
263
|
-
return this._config.logger;
|
|
264
|
-
}
|
|
265
|
-
set logger(logger) {
|
|
266
|
-
this._config.logger = Object.assign({}, logger);
|
|
267
|
-
this._notify();
|
|
268
|
-
}
|
|
269
|
-
get animated() {
|
|
270
|
-
return this._config.animated;
|
|
271
|
-
}
|
|
272
|
-
set animated(animated) {
|
|
273
|
-
this._config.animated = animated;
|
|
274
|
-
this._notify();
|
|
275
|
-
}
|
|
276
|
-
get httpFormSubmit() {
|
|
277
|
-
return this._config.httpFormSubmit;
|
|
278
|
-
}
|
|
279
|
-
set httpFormSubmit(httpFormSubmit) {
|
|
280
|
-
this._config.httpFormSubmit = httpFormSubmit;
|
|
281
|
-
this._notify();
|
|
282
|
-
}
|
|
283
|
-
attach(observer) {
|
|
284
|
-
const isExist = this._observers.includes(observer);
|
|
285
|
-
if (isExist) {
|
|
286
|
-
return console.log('Subject: Observer has been attached already.');
|
|
287
|
-
}
|
|
288
|
-
this._observers.push(observer);
|
|
289
|
-
observer.configChanged(this._config);
|
|
290
|
-
}
|
|
291
|
-
detach(observer) {
|
|
292
|
-
const observerIndex = this._observers.indexOf(observer);
|
|
293
|
-
if (observerIndex === -1) {
|
|
294
|
-
return console.log('Subject: Nonexistent observer.');
|
|
295
|
-
}
|
|
296
|
-
this._observers.splice(observerIndex, 1);
|
|
297
|
-
}
|
|
298
|
-
attachComponent(observer) {
|
|
299
|
-
const isExist = this._componentObservers.includes(observer);
|
|
300
|
-
if (isExist) {
|
|
301
|
-
return console.log('Subject: Observer has been attached already.');
|
|
302
|
-
}
|
|
303
|
-
this._componentObservers.push(observer);
|
|
304
|
-
observer.configChanged(this._config);
|
|
305
|
-
}
|
|
306
|
-
detachComponent(observer) {
|
|
307
|
-
const observerIndex = this._componentObservers.indexOf(observer);
|
|
308
|
-
if (observerIndex === -1) {
|
|
309
|
-
return console.log('Subject: Nonexistent observer.');
|
|
310
|
-
}
|
|
311
|
-
this._componentObservers.splice(observerIndex, 1);
|
|
312
|
-
}
|
|
313
|
-
toString() {
|
|
314
|
-
return JSON.stringify(this._config);
|
|
315
|
-
}
|
|
316
|
-
reset(config) {
|
|
317
|
-
this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
|
|
318
|
-
this._notify(false);
|
|
319
|
-
}
|
|
320
|
-
_notify(all = true) {
|
|
321
|
-
for (const observer of this._componentObservers) {
|
|
322
|
-
observer.configChanged(this._config);
|
|
323
|
-
}
|
|
324
|
-
if (all) {
|
|
325
|
-
for (const observer of this._observers) {
|
|
326
|
-
observer.configChanged(this._config);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
if (balBrowser.hasWindow) {
|
|
330
|
-
saveConfig(window, this._config);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
const config = /*@__PURE__*/ new Config();
|
|
335
|
-
const configFromSession = (win) => {
|
|
336
|
-
try {
|
|
337
|
-
const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
|
|
338
|
-
return configStr !== null ? JSON.parse(configStr) : {};
|
|
339
|
-
}
|
|
340
|
-
catch (e) {
|
|
341
|
-
return {};
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
const configFromLocalStorage = (win) => {
|
|
345
|
-
try {
|
|
346
|
-
const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
|
|
347
|
-
if (animated !== null) {
|
|
348
|
-
return {
|
|
349
|
-
animated,
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
return {};
|
|
353
|
-
}
|
|
354
|
-
catch (e) {
|
|
355
|
-
return {};
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const saveConfig = (win, c) => {
|
|
359
|
-
try {
|
|
360
|
-
win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
|
|
361
|
-
}
|
|
362
|
-
catch (e) {
|
|
363
|
-
return;
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
const setupConfig = (userConfig = {}, win = {}) => {
|
|
368
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
369
|
-
win = window;
|
|
370
|
-
}
|
|
371
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
372
|
-
config.reset(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), configFromLocalStorage(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
|
|
373
|
-
win.BaloiseDesignSystem.config = config;
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
const onBalConfigChange = (callback) => {
|
|
377
|
-
attachToConfig({
|
|
378
|
-
configChanged(state) {
|
|
379
|
-
callback(state);
|
|
380
|
-
},
|
|
381
|
-
});
|
|
382
|
-
};
|
|
383
|
-
const useBalConfig = () => {
|
|
384
|
-
if (!balBrowser.hasWindow) {
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
const win = window;
|
|
388
|
-
return win && win.BaloiseDesignSystem && win.BaloiseDesignSystem.config;
|
|
389
|
-
};
|
|
390
|
-
const attachToConfig = (observer) => {
|
|
391
|
-
const config = useBalConfig();
|
|
392
|
-
if (config) {
|
|
393
|
-
config.attach(observer);
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
const detachFromConfig = (observer) => {
|
|
397
|
-
const config = useBalConfig();
|
|
398
|
-
if (config) {
|
|
399
|
-
config.detach(observer);
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
const attachComponentToConfig = (observer) => {
|
|
403
|
-
const config = useBalConfig();
|
|
404
|
-
if (config) {
|
|
405
|
-
config.attachComponent(observer);
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
const detachComponentFromConfig = (observer) => {
|
|
409
|
-
const config = useBalConfig();
|
|
410
|
-
if (config) {
|
|
411
|
-
config.detachComponent(observer);
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
const updateBalLanguage = (language) => {
|
|
415
|
-
const config = useBalConfig();
|
|
416
|
-
if (config) {
|
|
417
|
-
config.language = language;
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
const updateBalRegion = (region) => {
|
|
421
|
-
const config = useBalConfig();
|
|
422
|
-
if (config) {
|
|
423
|
-
config.region = region;
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
const updateBalAllowedLanguages = (allowedLanguages) => {
|
|
427
|
-
const config = useBalConfig();
|
|
428
|
-
if (config) {
|
|
429
|
-
config.allowedLanguages = allowedLanguages;
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
const updateBalIcons = (icons) => {
|
|
433
|
-
const config = useBalConfig();
|
|
434
|
-
if (config) {
|
|
435
|
-
config.icons = Object.assign(Object.assign({}, config.icons), icons);
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
const updateBalAnimated = (animated) => {
|
|
439
|
-
const config = useBalConfig();
|
|
440
|
-
if (config) {
|
|
441
|
-
config.animated = animated;
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Request Largest Contentful Paint (LCP) callback
|
|
447
|
-
*/
|
|
448
|
-
const rLCP = (callback, timeout = 3000) => {
|
|
449
|
-
let isLargestContentPatinDone = false;
|
|
450
|
-
if (!balBrowser.isSafari && balBrowser.hasWindow && 'PerformanceObserver' in window) {
|
|
451
|
-
const observer = new PerformanceObserver(entryList => {
|
|
452
|
-
const entries = entryList.getEntries();
|
|
453
|
-
const lcpEntry = entries[entries.length - 1]; // Get the last (largest) entry
|
|
454
|
-
if (lcpEntry) {
|
|
455
|
-
// Disconnect the observer as we only need the LCP
|
|
456
|
-
observer.disconnect();
|
|
457
|
-
// Load the script after LCP
|
|
458
|
-
isLargestContentPatinDone = true;
|
|
459
|
-
rIC(() => callback());
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
// Start observing for Largest Contentful Paint (LCP) entries
|
|
463
|
-
observer.observe({ type: 'largest-contentful-paint', buffered: true });
|
|
464
|
-
setTimeout(() => {
|
|
465
|
-
if (!isLargestContentPatinDone) {
|
|
466
|
-
observer.disconnect();
|
|
467
|
-
callback();
|
|
468
|
-
}
|
|
469
|
-
}, timeout);
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
return setTimeout(callback, 32);
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
const rOnLoad = (callback, timeout = 32) => {
|
|
476
|
-
let called = false;
|
|
477
|
-
const callOnce = () => {
|
|
478
|
-
if (!called) {
|
|
479
|
-
called = true;
|
|
480
|
-
callback();
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
if (balBrowser.hasWindow) {
|
|
484
|
-
const timer = setTimeout(callOnce, timeout);
|
|
485
|
-
window.addEventListener('load', () => {
|
|
486
|
-
clearTimeout(timer);
|
|
487
|
-
callOnce();
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
setTimeout(callOnce, 32);
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
const rIC = (callback, timeout = 5000) => {
|
|
495
|
-
if (balBrowser.hasWindow && 'requestIdleCallback' in window) {
|
|
496
|
-
window.requestIdleCallback(callback, { timeout });
|
|
497
|
-
}
|
|
498
|
-
else {
|
|
499
|
-
setTimeout(callback, 32);
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
const wait = (ms = 0) => {
|
|
503
|
-
return new Promise(resolve => {
|
|
504
|
-
setTimeout(() => resolve(), ms);
|
|
505
|
-
});
|
|
506
|
-
};
|
|
507
|
-
const debounceEvent = (ev, wait) => {
|
|
508
|
-
const original = ev._original || ev;
|
|
509
|
-
return {
|
|
510
|
-
_original: ev,
|
|
511
|
-
emit: debounce(original.emit.bind(original), wait),
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
|
-
const debounce = (func, wait = 0) => {
|
|
515
|
-
let timer;
|
|
516
|
-
return (...args) => {
|
|
517
|
-
clearTimeout(timer);
|
|
518
|
-
timer = setTimeout(func, wait, ...args);
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
const hasTagName = (element, tag) => {
|
|
522
|
-
return element && element.tagName && element.tagName === tag.toUpperCase();
|
|
523
|
-
};
|
|
524
|
-
const isDescendant = (parent, child) => {
|
|
525
|
-
let node = child.parentNode;
|
|
526
|
-
while (node != null) {
|
|
527
|
-
if (node == parent) {
|
|
528
|
-
return true;
|
|
529
|
-
}
|
|
530
|
-
node = node.parentNode;
|
|
531
|
-
}
|
|
532
|
-
return false;
|
|
533
|
-
};
|
|
534
|
-
const hasParent = (parentTag, child) => {
|
|
535
|
-
let node = child.parentNode;
|
|
536
|
-
while (node != null) {
|
|
537
|
-
if (node.tagName === parentTag.toUpperCase()) {
|
|
538
|
-
return true;
|
|
539
|
-
}
|
|
540
|
-
node = node.parentNode;
|
|
541
|
-
}
|
|
542
|
-
return false;
|
|
543
|
-
};
|
|
544
|
-
const getAppRoot = (doc) => {
|
|
545
|
-
return doc.querySelector('bal-app') || doc.body;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* Waits for a component to be ready for
|
|
549
|
-
* both custom element and non-custom element builds.
|
|
550
|
-
* If non-custom element build, el.componentOnReady
|
|
551
|
-
* will be used.
|
|
552
|
-
* For custom element builds, we wait a frame
|
|
553
|
-
* so that the inner contents of the component
|
|
554
|
-
* have a chance to render.
|
|
555
|
-
*
|
|
556
|
-
* Use this utility rather than calling
|
|
557
|
-
* el.componentOnReady yourself.
|
|
558
|
-
*/
|
|
559
|
-
const componentOnReady = (el, callback) => {
|
|
560
|
-
if (el.componentOnReady !== null && el.componentOnReady !== undefined) {
|
|
561
|
-
el.componentOnReady().then((resolvedEl) => callback(resolvedEl));
|
|
562
|
-
}
|
|
563
|
-
else {
|
|
564
|
-
raf(() => callback(el));
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
/**
|
|
568
|
-
* Patched version of requestAnimationFrame that avoids ngzone
|
|
569
|
-
* Use only when you know ngzone should not run
|
|
570
|
-
*/
|
|
571
|
-
const raf = (h) => {
|
|
572
|
-
if (typeof __zone_symbol__requestAnimationFrame === 'function') {
|
|
573
|
-
return __zone_symbol__requestAnimationFrame(h);
|
|
574
|
-
}
|
|
575
|
-
if (typeof requestAnimationFrame === 'function') {
|
|
576
|
-
return requestAnimationFrame(h);
|
|
577
|
-
}
|
|
578
|
-
return setTimeout(h);
|
|
579
|
-
};
|
|
580
|
-
const transitionEndAsync = (el, expectedDuration = 0) => {
|
|
581
|
-
return new Promise(resolve => {
|
|
582
|
-
transitionEnd(el, expectedDuration, resolve);
|
|
583
|
-
});
|
|
584
|
-
};
|
|
585
|
-
/**
|
|
586
|
-
* Allows developer to wait for a transition
|
|
587
|
-
* to finish and fallback to a timer if the
|
|
588
|
-
* transition is cancelled or otherwise
|
|
589
|
-
* never finishes. Also see transitionEndAsync
|
|
590
|
-
* which is an await-able version of this.
|
|
591
|
-
*/
|
|
592
|
-
const transitionEnd = (el, expectedDuration = 0, callback) => {
|
|
593
|
-
let unRegTrans;
|
|
594
|
-
let animationTimeout;
|
|
595
|
-
const opts = { passive: true };
|
|
596
|
-
const ANIMATION_FALLBACK_TIMEOUT = 500;
|
|
597
|
-
const unregister = () => {
|
|
598
|
-
if (unRegTrans) {
|
|
599
|
-
unRegTrans();
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
const onTransitionEnd = (ev) => {
|
|
603
|
-
if (ev === undefined || el === ev.target) {
|
|
604
|
-
unregister();
|
|
605
|
-
callback(ev);
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
if (el) {
|
|
609
|
-
el.addEventListener('webkitTransitionEnd', onTransitionEnd, opts);
|
|
610
|
-
el.addEventListener('transitionend', onTransitionEnd, opts);
|
|
611
|
-
animationTimeout = setTimeout(onTransitionEnd, expectedDuration + ANIMATION_FALLBACK_TIMEOUT);
|
|
612
|
-
unRegTrans = () => {
|
|
613
|
-
if (animationTimeout) {
|
|
614
|
-
clearTimeout(animationTimeout);
|
|
615
|
-
animationTimeout = undefined;
|
|
616
|
-
}
|
|
617
|
-
el.removeEventListener('webkitTransitionEnd', onTransitionEnd, opts);
|
|
618
|
-
el.removeEventListener('transitionend', onTransitionEnd, opts);
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
return unregister;
|
|
622
|
-
};
|
|
623
|
-
const addEventListener = (el, eventName, callback, opts) => {
|
|
624
|
-
if (balBrowser.hasWindow) {
|
|
625
|
-
const config = useBalConfig();
|
|
626
|
-
if (config) {
|
|
627
|
-
const ael = config._ael;
|
|
628
|
-
if (ael) {
|
|
629
|
-
return ael(el, eventName, callback, opts);
|
|
630
|
-
}
|
|
631
|
-
else if (config._ael) {
|
|
632
|
-
return config._ael(el, eventName, callback, opts);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return el.addEventListener(eventName, callback, opts);
|
|
637
|
-
};
|
|
638
|
-
const removeEventListener = (el, eventName, callback, opts) => {
|
|
639
|
-
if (balBrowser.hasWindow) {
|
|
640
|
-
const config = useBalConfig();
|
|
641
|
-
if (config) {
|
|
642
|
-
const rel = config._rel;
|
|
643
|
-
if (rel) {
|
|
644
|
-
return rel(el, eventName, callback, opts);
|
|
645
|
-
}
|
|
646
|
-
else if (config._rel) {
|
|
647
|
-
return config._rel(el, eventName, callback, opts);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
return el.removeEventListener(eventName, callback, opts);
|
|
652
|
-
};
|
|
653
|
-
const shallowReady = (el) => {
|
|
654
|
-
if (el) {
|
|
655
|
-
return new Promise(resolve => componentOnReady(el, resolve));
|
|
656
|
-
}
|
|
657
|
-
return Promise.resolve();
|
|
658
|
-
};
|
|
659
|
-
const deepReady = async (el, full = false) => {
|
|
660
|
-
const element = el;
|
|
661
|
-
if (element) {
|
|
662
|
-
if (element.componentOnReady !== null && element.componentOnReady !== undefined) {
|
|
663
|
-
const stencilEl = await element.componentOnReady();
|
|
664
|
-
if (!full && stencilEl !== null && stencilEl !== undefined) {
|
|
665
|
-
return;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
await Promise.all(Array.from(element.children).map(child => deepReady(child, full)));
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
const waitForComponent = async (el) => {
|
|
672
|
-
await deepReady(el, true);
|
|
673
|
-
await waitAfterFramePaint();
|
|
674
|
-
await waitAfterIdleCallback();
|
|
675
|
-
};
|
|
676
|
-
const isChildOfEventTarget = async (ev, el, callback) => {
|
|
677
|
-
if (ev && ev.target && el && el !== ev.target) {
|
|
678
|
-
let target = ev.target;
|
|
679
|
-
// special case for the navbar case
|
|
680
|
-
const isNavbarBrand = ev.target.nodeName === 'BAL-NAVBAR-BRAND';
|
|
681
|
-
if (isNavbarBrand) {
|
|
682
|
-
target = target.closest('bal-navbar');
|
|
683
|
-
}
|
|
684
|
-
if (target && isDescendant(target, el)) {
|
|
685
|
-
callback(target);
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
const waitForDesignSystem = async (el, _config) => {
|
|
690
|
-
const config = Object.assign({ animated: false, icons: {
|
|
691
|
-
balIconClose,
|
|
692
|
-
balIconInfoCircle,
|
|
693
|
-
balIconPlus,
|
|
694
|
-
balIconMinus,
|
|
695
|
-
balIconEdit,
|
|
696
|
-
balIconTrash,
|
|
697
|
-
balIconNavGoLeft,
|
|
698
|
-
balIconNavGoRight,
|
|
699
|
-
balIconNavGoDown,
|
|
700
|
-
balIconNavGoUp,
|
|
701
|
-
balIconCaretUp,
|
|
702
|
-
balIconCaretDown,
|
|
703
|
-
balIconCaretLeft,
|
|
704
|
-
balIconCaretRight,
|
|
705
|
-
balIconCheck,
|
|
706
|
-
balIconDate,
|
|
707
|
-
balIconDocument,
|
|
708
|
-
balIconUpload,
|
|
709
|
-
balIconMenuBars,
|
|
710
|
-
} }, _config);
|
|
711
|
-
const element = el;
|
|
712
|
-
if (element !== null && element !== undefined) {
|
|
713
|
-
await deepReady(element, true);
|
|
714
|
-
const webComponents = Array.prototype.slice
|
|
715
|
-
.call(element.querySelectorAll('*'))
|
|
716
|
-
.filter(el => el.tagName.match(/^bal/i));
|
|
717
|
-
await Promise.all(webComponents.map(c => {
|
|
718
|
-
if (c.configChanged !== null && c.configChanged !== undefined) {
|
|
719
|
-
return c.configChanged(config);
|
|
720
|
-
}
|
|
721
|
-
}));
|
|
722
|
-
}
|
|
723
|
-
await Promise.all([waitAfterFramePaint(), waitAfterLargestContentfulPaintCallback(), waitAfterIdleCallback()]);
|
|
724
|
-
};
|
|
725
|
-
const waitAfterFramePaint = () => {
|
|
726
|
-
return new Promise(resolve => raf(() => runHighPrioritizedTask(resolve)));
|
|
727
|
-
};
|
|
728
|
-
const waitAfterIdleCallback = () => {
|
|
729
|
-
return new Promise(resolve => rIC(() => runHighPrioritizedTask(resolve)));
|
|
730
|
-
};
|
|
731
|
-
const waitAfterLargestContentfulPaintCallback = () => {
|
|
732
|
-
return new Promise(resolve => rLCP(() => runHighPrioritizedTask(resolve)));
|
|
733
|
-
};
|
|
734
|
-
const waitOnLoadEventCallback = () => {
|
|
735
|
-
return new Promise(resolve => rOnLoad(() => runHighPrioritizedTask(resolve)));
|
|
736
|
-
};
|
|
737
|
-
const runHighPrioritizedTask = (callback) => {
|
|
738
|
-
if (balBrowser.hasWindow && 'MessageChannel' in window) {
|
|
739
|
-
const messageChannel = new window.MessageChannel();
|
|
740
|
-
messageChannel.port1.onmessage = callback;
|
|
741
|
-
messageChannel.port2.postMessage(undefined);
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
setTimeout(callback, 32);
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
class BalNoticeController {
|
|
749
|
-
constructor(options) {
|
|
750
|
-
this.options = options;
|
|
751
|
-
this.container = null;
|
|
752
|
-
this.queue = [];
|
|
753
|
-
this.preQueue = [];
|
|
754
|
-
this.queueLimit = 5;
|
|
755
|
-
}
|
|
756
|
-
create(options) {
|
|
757
|
-
if (balBrowser.hasDocument) {
|
|
758
|
-
this.setupContainer(options);
|
|
759
|
-
const clone = this.findClone(options);
|
|
760
|
-
if (clone === undefined) {
|
|
761
|
-
const el = document.createElement(this.options.tag);
|
|
762
|
-
Object.assign(el, options);
|
|
763
|
-
el.addEventListener('balClose', ev => {
|
|
764
|
-
this.removeFromQueue(ev.detail);
|
|
765
|
-
});
|
|
766
|
-
this.preQueue.push(el);
|
|
767
|
-
this.updateQueue();
|
|
768
|
-
return el;
|
|
769
|
-
}
|
|
770
|
-
return clone;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
setQueue(queueLimit) {
|
|
774
|
-
this.queueLimit = queueLimit;
|
|
775
|
-
}
|
|
776
|
-
async dismissAll() {
|
|
777
|
-
var _a;
|
|
778
|
-
const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
|
|
779
|
-
if (elements) {
|
|
780
|
-
const closingQueue = [];
|
|
781
|
-
for (let index = 0; index < elements.length; index++) {
|
|
782
|
-
const el = elements[index];
|
|
783
|
-
if (el.close) {
|
|
784
|
-
closingQueue.push(el.close());
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
await Promise.all(closingQueue);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* @deprecated use dismissAll instead
|
|
792
|
-
*/
|
|
793
|
-
async clearAll() {
|
|
794
|
-
console.warn('[DEPRECATED] - use dismissAll() instead');
|
|
795
|
-
return this.dismissAll();
|
|
796
|
-
}
|
|
797
|
-
findClone(options) {
|
|
798
|
-
for (let index = 0; index < this.queue.length; index++) {
|
|
799
|
-
const el = this.queue[index];
|
|
800
|
-
if (el.message === options.message && el.color === options.color) {
|
|
801
|
-
return el;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
return undefined;
|
|
805
|
-
}
|
|
806
|
-
setupContainer(options) {
|
|
807
|
-
if (balBrowser.hasDocument) {
|
|
808
|
-
const containerId = `${this.options.tag}-container`;
|
|
809
|
-
this.container = document.getElementById(containerId);
|
|
810
|
-
if (this.container)
|
|
811
|
-
return;
|
|
812
|
-
if (!this.container) {
|
|
813
|
-
this.container = document.createElement('bal-notices');
|
|
814
|
-
this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
|
|
815
|
-
this.container.setAttribute('animated', options.animated ? 'true' : 'false');
|
|
816
|
-
if (options.container !== undefined) {
|
|
817
|
-
this.container.setAttribute('container', options.container === true ? '' : options.container);
|
|
818
|
-
}
|
|
819
|
-
this.container.id = containerId;
|
|
820
|
-
}
|
|
821
|
-
document.body.appendChild(this.container);
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
async updateQueue() {
|
|
825
|
-
var _a;
|
|
826
|
-
if (this.queue.length < this.queueLimit) {
|
|
827
|
-
const el = this.preQueue.shift();
|
|
828
|
-
if (el && this.container) {
|
|
829
|
-
await waitForComponent(this.container);
|
|
830
|
-
const innerEl = this.container.querySelector('.bal-notices__inner');
|
|
831
|
-
if (innerEl) {
|
|
832
|
-
this.queue.push(el);
|
|
833
|
-
innerEl.insertAdjacentElement('beforeend', el);
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
if (this.queue.length === 0) {
|
|
838
|
-
(_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
removeFromQueue(toastId) {
|
|
842
|
-
this.queue = this.queue.filter(el => el.id !== toastId);
|
|
843
|
-
setTimeout(() => this.updateQueue(), 0);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
class BalToastController extends BalNoticeController {
|
|
848
|
-
constructor() {
|
|
849
|
-
super({
|
|
850
|
-
tag: 'bal-toast',
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
create(options) {
|
|
854
|
-
return super.create(options);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
const balToastController = new BalToastController();
|
|
858
|
-
|
|
859
|
-
class BalSnackbarController extends BalNoticeController {
|
|
860
|
-
constructor() {
|
|
861
|
-
super({
|
|
862
|
-
tag: 'bal-snackbar',
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
create(options) {
|
|
866
|
-
return super.create(options);
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
const balSnackbarController = new BalSnackbarController();
|
|
870
|
-
|
|
871
|
-
// generated by .build/version.js
|
|
872
|
-
const VERSION = '19.3.0-nightly.20250704';
|
|
873
|
-
|
|
874
|
-
const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
|
|
875
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
876
|
-
win = window;
|
|
877
|
-
}
|
|
878
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
879
|
-
if (platformConfig) {
|
|
880
|
-
setPlatformHelpers(platformConfig);
|
|
881
|
-
}
|
|
882
|
-
setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
|
|
883
|
-
win.BaloiseDesignSystem.toastController = balToastController;
|
|
884
|
-
win.BaloiseDesignSystem.snackbarController = balSnackbarController;
|
|
885
|
-
win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
|
|
886
|
-
win.BaloiseDesignSystem.version = VERSION;
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
function globalScript () {
|
|
890
|
-
initializeBaloiseDesignSystem();
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
const globalScripts = globalScript;
|
|
894
|
-
const globalStyles = "";
|
|
895
|
-
|
|
896
|
-
/*
|
|
897
|
-
Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
|
|
898
|
-
*/
|
|
899
|
-
var __defProp = Object.defineProperty;
|
|
900
|
-
var __export = (target, all) => {
|
|
901
|
-
for (var name in all)
|
|
902
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
// src/utils/constants.ts
|
|
906
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
907
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
908
|
-
|
|
909
|
-
// src/client/client-host-ref.ts
|
|
910
|
-
var getHostRef = (ref) => {
|
|
911
|
-
if (ref.__stencil__getHostRef) {
|
|
912
|
-
return ref.__stencil__getHostRef();
|
|
913
|
-
}
|
|
914
|
-
return void 0;
|
|
915
|
-
};
|
|
916
|
-
var registerInstance = (lazyInstance, hostRef) => {
|
|
917
|
-
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
918
|
-
hostRef.$lazyInstance$ = lazyInstance;
|
|
919
|
-
};
|
|
920
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
921
|
-
const hostRef = {
|
|
922
|
-
$flags$: 0,
|
|
923
|
-
$hostElement$: hostElement,
|
|
924
|
-
$cmpMeta$: cmpMeta,
|
|
925
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
926
|
-
};
|
|
927
|
-
{
|
|
928
|
-
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
929
|
-
}
|
|
930
|
-
{
|
|
931
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
932
|
-
hostElement["s-p"] = [];
|
|
933
|
-
hostElement["s-rc"] = [];
|
|
934
|
-
}
|
|
935
|
-
const ref = hostRef;
|
|
936
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
937
|
-
return ref;
|
|
938
|
-
};
|
|
939
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
940
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
941
|
-
|
|
942
|
-
// src/client/client-load-module.ts
|
|
943
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
944
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
945
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
946
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
947
|
-
if (!bundleId) {
|
|
948
|
-
return void 0;
|
|
949
|
-
}
|
|
950
|
-
const module = cmpModules.get(bundleId) ;
|
|
951
|
-
if (module) {
|
|
952
|
-
return module[exportName];
|
|
953
|
-
}
|
|
954
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
955
|
-
return import(
|
|
956
|
-
/* @vite-ignore */
|
|
957
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
958
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
959
|
-
/* webpackMode: "lazy" */
|
|
960
|
-
`./${bundleId}.entry.js${""}`
|
|
961
|
-
).then(
|
|
962
|
-
(importedModule) => {
|
|
963
|
-
{
|
|
964
|
-
cmpModules.set(bundleId, importedModule);
|
|
965
|
-
}
|
|
966
|
-
return importedModule[exportName];
|
|
967
|
-
},
|
|
968
|
-
(e) => {
|
|
969
|
-
consoleError(e, hostRef.$hostElement$);
|
|
970
|
-
}
|
|
971
|
-
);
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
// src/client/client-style.ts
|
|
975
|
-
var styles = /* @__PURE__ */ new Map();
|
|
976
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
977
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
978
|
-
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
979
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
980
|
-
var plt = {
|
|
981
|
-
$flags$: 0,
|
|
982
|
-
$resourcesUrl$: "",
|
|
983
|
-
jmp: (h2) => h2(),
|
|
984
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
985
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
986
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
987
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
988
|
-
};
|
|
989
|
-
var setPlatformHelpers = (helpers) => {
|
|
990
|
-
Object.assign(plt, helpers);
|
|
991
|
-
};
|
|
992
|
-
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
993
|
-
var _a;
|
|
994
|
-
let supportsListenerOptions2 = false;
|
|
995
|
-
try {
|
|
996
|
-
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
997
|
-
"e",
|
|
998
|
-
null,
|
|
999
|
-
Object.defineProperty({}, "passive", {
|
|
1000
|
-
get() {
|
|
1001
|
-
supportsListenerOptions2 = true;
|
|
1002
|
-
}
|
|
1003
|
-
})
|
|
1004
|
-
);
|
|
1005
|
-
} catch (e) {
|
|
1006
|
-
}
|
|
1007
|
-
return supportsListenerOptions2;
|
|
1008
|
-
})();
|
|
1009
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1010
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1011
|
-
try {
|
|
1012
|
-
new CSSStyleSheet();
|
|
1013
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1014
|
-
} catch (e) {
|
|
1015
|
-
}
|
|
1016
|
-
return false;
|
|
1017
|
-
})() ;
|
|
1018
|
-
var queuePending = false;
|
|
1019
|
-
var queueDomReads = [];
|
|
1020
|
-
var queueDomWrites = [];
|
|
1021
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1022
|
-
queue.push(cb);
|
|
1023
|
-
if (!queuePending) {
|
|
1024
|
-
queuePending = true;
|
|
1025
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1026
|
-
nextTick(flush);
|
|
1027
|
-
} else {
|
|
1028
|
-
plt.raf(flush);
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
|
-
var consume = (queue) => {
|
|
1033
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1034
|
-
try {
|
|
1035
|
-
queue[i2](performance.now());
|
|
1036
|
-
} catch (e) {
|
|
1037
|
-
consoleError(e);
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
queue.length = 0;
|
|
1041
|
-
};
|
|
1042
|
-
var flush = () => {
|
|
1043
|
-
consume(queueDomReads);
|
|
1044
|
-
{
|
|
1045
|
-
consume(queueDomWrites);
|
|
1046
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1047
|
-
plt.raf(flush);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
1051
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1052
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1053
|
-
|
|
1054
|
-
// src/utils/helpers.ts
|
|
1055
|
-
var isDef = (v) => v != null && v !== void 0;
|
|
1056
|
-
var isComplexType = (o) => {
|
|
1057
|
-
o = typeof o;
|
|
1058
|
-
return o === "object" || o === "function";
|
|
1059
|
-
};
|
|
1060
|
-
|
|
1061
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
1062
|
-
function queryNonceMetaTagContent(doc) {
|
|
1063
|
-
var _a, _b, _c;
|
|
1064
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
// src/utils/regular-expression.ts
|
|
1068
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
1069
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
// src/utils/result.ts
|
|
1073
|
-
var result_exports = {};
|
|
1074
|
-
__export(result_exports, {
|
|
1075
|
-
err: () => err,
|
|
1076
|
-
map: () => map,
|
|
1077
|
-
ok: () => ok,
|
|
1078
|
-
unwrap: () => unwrap,
|
|
1079
|
-
unwrapErr: () => unwrapErr
|
|
1080
|
-
});
|
|
1081
|
-
var ok = (value) => ({
|
|
1082
|
-
isOk: true,
|
|
1083
|
-
isErr: false,
|
|
1084
|
-
value
|
|
1085
|
-
});
|
|
1086
|
-
var err = (value) => ({
|
|
1087
|
-
isOk: false,
|
|
1088
|
-
isErr: true,
|
|
1089
|
-
value
|
|
1090
|
-
});
|
|
1091
|
-
function map(result, fn) {
|
|
1092
|
-
if (result.isOk) {
|
|
1093
|
-
const val = fn(result.value);
|
|
1094
|
-
if (val instanceof Promise) {
|
|
1095
|
-
return val.then((newVal) => ok(newVal));
|
|
1096
|
-
} else {
|
|
1097
|
-
return ok(val);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
if (result.isErr) {
|
|
1101
|
-
const value = result.value;
|
|
1102
|
-
return err(value);
|
|
1103
|
-
}
|
|
1104
|
-
throw "should never get here";
|
|
1105
|
-
}
|
|
1106
|
-
var unwrap = (result) => {
|
|
1107
|
-
if (result.isOk) {
|
|
1108
|
-
return result.value;
|
|
1109
|
-
} else {
|
|
1110
|
-
throw result.value;
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
var unwrapErr = (result) => {
|
|
1114
|
-
if (result.isErr) {
|
|
1115
|
-
return result.value;
|
|
1116
|
-
} else {
|
|
1117
|
-
throw result.value;
|
|
1118
|
-
}
|
|
1119
|
-
};
|
|
1120
|
-
function createShadowRoot(cmpMeta) {
|
|
1121
|
-
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
1122
|
-
if (supportsConstructableStylesheets) {
|
|
1123
|
-
const sheet = new CSSStyleSheet();
|
|
1124
|
-
sheet.replaceSync(globalStyles);
|
|
1125
|
-
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
var updateFallbackSlotVisibility = (elm) => {
|
|
1129
|
-
const childNodes = internalCall(elm, "childNodes");
|
|
1130
|
-
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
1131
|
-
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
1132
|
-
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
1133
|
-
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
1134
|
-
slotNode.hidden = true;
|
|
1135
|
-
} else {
|
|
1136
|
-
slotNode.hidden = false;
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
let i2 = 0;
|
|
1142
|
-
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
1143
|
-
const childNode = childNodes[i2];
|
|
1144
|
-
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
1145
|
-
updateFallbackSlotVisibility(childNode);
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
|
-
var getSlottedChildNodes = (childNodes) => {
|
|
1150
|
-
const result = [];
|
|
1151
|
-
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
1152
|
-
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
1153
|
-
if (slottedNode && slottedNode.isConnected) {
|
|
1154
|
-
result.push(slottedNode);
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
return result;
|
|
1158
|
-
};
|
|
1159
|
-
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
1160
|
-
let i2 = 0;
|
|
1161
|
-
let slottedNodes = [];
|
|
1162
|
-
let childNode;
|
|
1163
|
-
for (; i2 < childNodes.length; i2++) {
|
|
1164
|
-
childNode = childNodes[i2];
|
|
1165
|
-
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
|
|
1166
|
-
slottedNodes.push(childNode);
|
|
1167
|
-
}
|
|
1168
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
1169
|
-
}
|
|
1170
|
-
return slottedNodes;
|
|
1171
|
-
}
|
|
1172
|
-
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
1173
|
-
const childNodes = [];
|
|
1174
|
-
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
1175
|
-
let node = slot;
|
|
1176
|
-
while (node = node.nextSibling) {
|
|
1177
|
-
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
1178
|
-
}
|
|
1179
|
-
return childNodes;
|
|
1180
|
-
};
|
|
1181
|
-
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
1182
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1183
|
-
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
1184
|
-
return true;
|
|
1185
|
-
}
|
|
1186
|
-
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
1187
|
-
return true;
|
|
1188
|
-
}
|
|
1189
|
-
return false;
|
|
1190
|
-
}
|
|
1191
|
-
if (nodeToRelocate["s-sn"] === slotName) {
|
|
1192
|
-
return true;
|
|
1193
|
-
}
|
|
1194
|
-
return slotName === "";
|
|
1195
|
-
};
|
|
1196
|
-
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
1197
|
-
function patchSlotNode(node) {
|
|
1198
|
-
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
1199
|
-
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
1200
|
-
const toReturn = [];
|
|
1201
|
-
const slotName = this["s-sn"];
|
|
1202
|
-
if (opts == null ? void 0 : opts.flatten) {
|
|
1203
|
-
console.error(`
|
|
1204
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
1205
|
-
You can use \`.childNodes\` to nested slot fallback content.
|
|
1206
|
-
If you have a particular use case, please open an issue on the Stencil repo.
|
|
1207
|
-
`);
|
|
1208
|
-
}
|
|
1209
|
-
const parent = this["s-cr"].parentElement;
|
|
1210
|
-
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
1211
|
-
slottedNodes.forEach((n) => {
|
|
1212
|
-
if (slotName === getSlotName(n)) {
|
|
1213
|
-
toReturn.push(n);
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
if (elementsOnly) {
|
|
1217
|
-
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
1218
|
-
}
|
|
1219
|
-
return toReturn;
|
|
1220
|
-
}).bind(node);
|
|
1221
|
-
node.assignedElements = assignedFactory(true);
|
|
1222
|
-
node.assignedNodes = assignedFactory(false);
|
|
1223
|
-
}
|
|
1224
|
-
function internalCall(node, method) {
|
|
1225
|
-
if ("__" + method in node) {
|
|
1226
|
-
const toReturn = node["__" + method];
|
|
1227
|
-
if (typeof toReturn !== "function") return toReturn;
|
|
1228
|
-
return toReturn.bind(node);
|
|
1229
|
-
} else {
|
|
1230
|
-
if (typeof node[method] !== "function") return node[method];
|
|
1231
|
-
return node[method].bind(node);
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
var createTime = (fnName, tagName = "") => {
|
|
1235
|
-
{
|
|
1236
|
-
return () => {
|
|
1237
|
-
return;
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
|
-
var uniqueTime = (key, measureText) => {
|
|
1242
|
-
{
|
|
1243
|
-
return () => {
|
|
1244
|
-
return;
|
|
1245
|
-
};
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
|
-
var h = (nodeName, vnodeData, ...children) => {
|
|
1249
|
-
let child = null;
|
|
1250
|
-
let key = null;
|
|
1251
|
-
let slotName = null;
|
|
1252
|
-
let simple = false;
|
|
1253
|
-
let lastSimple = false;
|
|
1254
|
-
const vNodeChildren = [];
|
|
1255
|
-
const walk = (c) => {
|
|
1256
|
-
for (let i2 = 0; i2 < c.length; i2++) {
|
|
1257
|
-
child = c[i2];
|
|
1258
|
-
if (Array.isArray(child)) {
|
|
1259
|
-
walk(child);
|
|
1260
|
-
} else if (child != null && typeof child !== "boolean") {
|
|
1261
|
-
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
1262
|
-
child = String(child);
|
|
1263
|
-
}
|
|
1264
|
-
if (simple && lastSimple) {
|
|
1265
|
-
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
1266
|
-
} else {
|
|
1267
|
-
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
1268
|
-
}
|
|
1269
|
-
lastSimple = simple;
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
};
|
|
1273
|
-
walk(children);
|
|
1274
|
-
if (vnodeData) {
|
|
1275
|
-
if (vnodeData.key) {
|
|
1276
|
-
key = vnodeData.key;
|
|
1277
|
-
}
|
|
1278
|
-
if (vnodeData.name) {
|
|
1279
|
-
slotName = vnodeData.name;
|
|
1280
|
-
}
|
|
1281
|
-
{
|
|
1282
|
-
const classData = vnodeData.className || vnodeData.class;
|
|
1283
|
-
if (classData) {
|
|
1284
|
-
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
if (typeof nodeName === "function") {
|
|
1289
|
-
return nodeName(
|
|
1290
|
-
vnodeData === null ? {} : vnodeData,
|
|
1291
|
-
vNodeChildren,
|
|
1292
|
-
vdomFnUtils
|
|
1293
|
-
);
|
|
1294
|
-
}
|
|
1295
|
-
const vnode = newVNode(nodeName, null);
|
|
1296
|
-
vnode.$attrs$ = vnodeData;
|
|
1297
|
-
if (vNodeChildren.length > 0) {
|
|
1298
|
-
vnode.$children$ = vNodeChildren;
|
|
1299
|
-
}
|
|
1300
|
-
{
|
|
1301
|
-
vnode.$key$ = key;
|
|
1302
|
-
}
|
|
1303
|
-
{
|
|
1304
|
-
vnode.$name$ = slotName;
|
|
1305
|
-
}
|
|
1306
|
-
return vnode;
|
|
1307
|
-
};
|
|
1308
|
-
var newVNode = (tag, text) => {
|
|
1309
|
-
const vnode = {
|
|
1310
|
-
$flags$: 0,
|
|
1311
|
-
$tag$: tag,
|
|
1312
|
-
$text$: text,
|
|
1313
|
-
$elm$: null,
|
|
1314
|
-
$children$: null
|
|
1315
|
-
};
|
|
1316
|
-
{
|
|
1317
|
-
vnode.$attrs$ = null;
|
|
1318
|
-
}
|
|
1319
|
-
{
|
|
1320
|
-
vnode.$key$ = null;
|
|
1321
|
-
}
|
|
1322
|
-
{
|
|
1323
|
-
vnode.$name$ = null;
|
|
1324
|
-
}
|
|
1325
|
-
return vnode;
|
|
1326
|
-
};
|
|
1327
|
-
var Host = {};
|
|
1328
|
-
var isHost = (node) => node && node.$tag$ === Host;
|
|
1329
|
-
var vdomFnUtils = {
|
|
1330
|
-
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
1331
|
-
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
1332
|
-
};
|
|
1333
|
-
var convertToPublic = (node) => ({
|
|
1334
|
-
vattrs: node.$attrs$,
|
|
1335
|
-
vchildren: node.$children$,
|
|
1336
|
-
vkey: node.$key$,
|
|
1337
|
-
vname: node.$name$,
|
|
1338
|
-
vtag: node.$tag$,
|
|
1339
|
-
vtext: node.$text$
|
|
1340
|
-
});
|
|
1341
|
-
var convertToPrivate = (node) => {
|
|
1342
|
-
if (typeof node.vtag === "function") {
|
|
1343
|
-
const vnodeData = { ...node.vattrs };
|
|
1344
|
-
if (node.vkey) {
|
|
1345
|
-
vnodeData.key = node.vkey;
|
|
1346
|
-
}
|
|
1347
|
-
if (node.vname) {
|
|
1348
|
-
vnodeData.name = node.vname;
|
|
1349
|
-
}
|
|
1350
|
-
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
1351
|
-
}
|
|
1352
|
-
const vnode = newVNode(node.vtag, node.vtext);
|
|
1353
|
-
vnode.$attrs$ = node.vattrs;
|
|
1354
|
-
vnode.$children$ = node.vchildren;
|
|
1355
|
-
vnode.$key$ = node.vkey;
|
|
1356
|
-
vnode.$name$ = node.vname;
|
|
1357
|
-
return vnode;
|
|
1358
|
-
};
|
|
1359
|
-
var createSupportsRuleRe = (selector) => {
|
|
1360
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
1361
|
-
return new RegExp(
|
|
1362
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
1363
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
1364
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
1365
|
-
"g"
|
|
1366
|
-
);
|
|
1367
|
-
};
|
|
1368
|
-
createSupportsRuleRe("::slotted");
|
|
1369
|
-
createSupportsRuleRe(":host");
|
|
1370
|
-
createSupportsRuleRe(":host-context");
|
|
1371
|
-
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
1372
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
1373
|
-
if (propType & 4 /* Boolean */) {
|
|
1374
|
-
{
|
|
1375
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
if (propType & 2 /* Number */) {
|
|
1379
|
-
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
1380
|
-
}
|
|
1381
|
-
if (propType & 1 /* String */) {
|
|
1382
|
-
return String(propValue);
|
|
1383
|
-
}
|
|
1384
|
-
return propValue;
|
|
1385
|
-
}
|
|
1386
|
-
return propValue;
|
|
1387
|
-
};
|
|
1388
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
1389
|
-
|
|
1390
|
-
// src/runtime/event-emitter.ts
|
|
1391
|
-
var createEvent = (ref, name, flags) => {
|
|
1392
|
-
const elm = getElement(ref);
|
|
1393
|
-
return {
|
|
1394
|
-
emit: (detail) => {
|
|
1395
|
-
return emitEvent(elm, name, {
|
|
1396
|
-
bubbles: true,
|
|
1397
|
-
composed: true,
|
|
1398
|
-
cancelable: true,
|
|
1399
|
-
detail
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
};
|
|
1403
|
-
};
|
|
1404
|
-
var emitEvent = (elm, name, opts) => {
|
|
1405
|
-
const ev = plt.ce(name, opts);
|
|
1406
|
-
elm.dispatchEvent(ev);
|
|
1407
|
-
return ev;
|
|
1408
|
-
};
|
|
1409
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
1410
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
1411
|
-
let style = styles.get(scopeId2);
|
|
1412
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
1413
|
-
style = style || new CSSStyleSheet();
|
|
1414
|
-
if (typeof style === "string") {
|
|
1415
|
-
style = cssText;
|
|
1416
|
-
} else {
|
|
1417
|
-
style.replaceSync(cssText);
|
|
1418
|
-
}
|
|
1419
|
-
} else {
|
|
1420
|
-
style = cssText;
|
|
1421
|
-
}
|
|
1422
|
-
styles.set(scopeId2, style);
|
|
1423
|
-
};
|
|
1424
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
1425
|
-
var _a;
|
|
1426
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1427
|
-
const style = styles.get(scopeId2);
|
|
1428
|
-
if (!win.document) {
|
|
1429
|
-
return scopeId2;
|
|
1430
|
-
}
|
|
1431
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
1432
|
-
if (style) {
|
|
1433
|
-
if (typeof style === "string") {
|
|
1434
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
1435
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
1436
|
-
let styleElm;
|
|
1437
|
-
if (!appliedStyles) {
|
|
1438
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
1439
|
-
}
|
|
1440
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
1441
|
-
{
|
|
1442
|
-
styleElm = win.document.createElement("style");
|
|
1443
|
-
styleElm.innerHTML = style;
|
|
1444
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1445
|
-
if (nonce != null) {
|
|
1446
|
-
styleElm.setAttribute("nonce", nonce);
|
|
1447
|
-
}
|
|
1448
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1449
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
1450
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
1451
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1452
|
-
styleContainerNode.insertBefore(
|
|
1453
|
-
styleElm,
|
|
1454
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
1455
|
-
);
|
|
1456
|
-
} else if ("host" in styleContainerNode) {
|
|
1457
|
-
if (supportsConstructableStylesheets) {
|
|
1458
|
-
const stylesheet = new CSSStyleSheet();
|
|
1459
|
-
stylesheet.replaceSync(style);
|
|
1460
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1461
|
-
} else {
|
|
1462
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1463
|
-
if (existingStyleContainer) {
|
|
1464
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1465
|
-
} else {
|
|
1466
|
-
styleContainerNode.prepend(styleElm);
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
} else {
|
|
1470
|
-
styleContainerNode.append(styleElm);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1474
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
1478
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
1479
|
-
}
|
|
1480
|
-
if (appliedStyles) {
|
|
1481
|
-
appliedStyles.add(scopeId2);
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1485
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
return scopeId2;
|
|
1489
|
-
};
|
|
1490
|
-
var attachStyles = (hostRef) => {
|
|
1491
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1492
|
-
const elm = hostRef.$hostElement$;
|
|
1493
|
-
const flags = cmpMeta.$flags$;
|
|
1494
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1495
|
-
const scopeId2 = addStyle(
|
|
1496
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
1497
|
-
cmpMeta);
|
|
1498
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
1499
|
-
elm["s-sc"] = scopeId2;
|
|
1500
|
-
elm.classList.add(scopeId2 + "-h");
|
|
1501
|
-
}
|
|
1502
|
-
endAttachStyles();
|
|
1503
|
-
};
|
|
1504
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
1505
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
1506
|
-
if (oldValue === newValue) {
|
|
1507
|
-
return;
|
|
1508
|
-
}
|
|
1509
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
1510
|
-
let ln = memberName.toLowerCase();
|
|
1511
|
-
if (memberName === "class") {
|
|
1512
|
-
const classList = elm.classList;
|
|
1513
|
-
const oldClasses = parseClassList(oldValue);
|
|
1514
|
-
let newClasses = parseClassList(newValue);
|
|
1515
|
-
{
|
|
1516
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
1517
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
1518
|
-
}
|
|
1519
|
-
} else if (memberName === "style") {
|
|
1520
|
-
{
|
|
1521
|
-
for (const prop in oldValue) {
|
|
1522
|
-
if (!newValue || newValue[prop] == null) {
|
|
1523
|
-
if (prop.includes("-")) {
|
|
1524
|
-
elm.style.removeProperty(prop);
|
|
1525
|
-
} else {
|
|
1526
|
-
elm.style[prop] = "";
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
for (const prop in newValue) {
|
|
1532
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
1533
|
-
if (prop.includes("-")) {
|
|
1534
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
1535
|
-
} else {
|
|
1536
|
-
elm.style[prop] = newValue[prop];
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
1541
|
-
if (newValue) {
|
|
1542
|
-
newValue(elm);
|
|
1543
|
-
}
|
|
1544
|
-
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
1545
|
-
if (memberName[2] === "-") {
|
|
1546
|
-
memberName = memberName.slice(3);
|
|
1547
|
-
} else if (isMemberInElement(win, ln)) {
|
|
1548
|
-
memberName = ln.slice(2);
|
|
1549
|
-
} else {
|
|
1550
|
-
memberName = ln[2] + memberName.slice(3);
|
|
1551
|
-
}
|
|
1552
|
-
if (oldValue || newValue) {
|
|
1553
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
1554
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
1555
|
-
if (oldValue) {
|
|
1556
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
1557
|
-
}
|
|
1558
|
-
if (newValue) {
|
|
1559
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
} else {
|
|
1563
|
-
const isComplex = isComplexType(newValue);
|
|
1564
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
1565
|
-
try {
|
|
1566
|
-
if (!elm.tagName.includes("-")) {
|
|
1567
|
-
const n = newValue == null ? "" : newValue;
|
|
1568
|
-
if (memberName === "list") {
|
|
1569
|
-
isProp = false;
|
|
1570
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
1571
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
1572
|
-
elm[memberName] = n;
|
|
1573
|
-
} else {
|
|
1574
|
-
elm.setAttribute(memberName, n);
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
} else if (elm[memberName] !== newValue) {
|
|
1578
|
-
elm[memberName] = newValue;
|
|
1579
|
-
}
|
|
1580
|
-
} catch (e) {
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
let xlink = false;
|
|
1584
|
-
{
|
|
1585
|
-
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
1586
|
-
memberName = ln;
|
|
1587
|
-
xlink = true;
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
if (newValue == null || newValue === false) {
|
|
1591
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
1592
|
-
if (xlink) {
|
|
1593
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
1594
|
-
} else {
|
|
1595
|
-
elm.removeAttribute(memberName);
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
1599
|
-
newValue = newValue === true ? "" : newValue;
|
|
1600
|
-
if (xlink) {
|
|
1601
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
1602
|
-
} else {
|
|
1603
|
-
elm.setAttribute(memberName, newValue);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
};
|
|
1608
|
-
var parseClassListRegex = /\s/;
|
|
1609
|
-
var parseClassList = (value) => {
|
|
1610
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
1611
|
-
value = value.baseVal;
|
|
1612
|
-
}
|
|
1613
|
-
if (!value || typeof value !== "string") {
|
|
1614
|
-
return [];
|
|
1615
|
-
}
|
|
1616
|
-
return value.split(parseClassListRegex);
|
|
1617
|
-
};
|
|
1618
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
1619
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
1620
|
-
|
|
1621
|
-
// src/runtime/vdom/update-element.ts
|
|
1622
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
1623
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
1624
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
1625
|
-
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
1626
|
-
{
|
|
1627
|
-
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
1628
|
-
if (!(memberName in newVnodeAttrs)) {
|
|
1629
|
-
setAccessor(
|
|
1630
|
-
elm,
|
|
1631
|
-
memberName,
|
|
1632
|
-
oldVnodeAttrs[memberName],
|
|
1633
|
-
void 0,
|
|
1634
|
-
isSvgMode2,
|
|
1635
|
-
newVnode.$flags$);
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
1640
|
-
setAccessor(
|
|
1641
|
-
elm,
|
|
1642
|
-
memberName,
|
|
1643
|
-
oldVnodeAttrs[memberName],
|
|
1644
|
-
newVnodeAttrs[memberName],
|
|
1645
|
-
isSvgMode2,
|
|
1646
|
-
newVnode.$flags$);
|
|
1647
|
-
}
|
|
1648
|
-
};
|
|
1649
|
-
function sortedAttrNames(attrNames) {
|
|
1650
|
-
return attrNames.includes("ref") ? (
|
|
1651
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
|
1652
|
-
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
1653
|
-
) : (
|
|
1654
|
-
// no need to sort, return the original array
|
|
1655
|
-
attrNames
|
|
1656
|
-
);
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
// src/runtime/vdom/vdom-render.ts
|
|
1660
|
-
var scopeId;
|
|
1661
|
-
var contentRef;
|
|
1662
|
-
var hostTagName;
|
|
1663
|
-
var useNativeShadowDom = false;
|
|
1664
|
-
var checkSlotFallbackVisibility = false;
|
|
1665
|
-
var checkSlotRelocate = false;
|
|
1666
|
-
var isSvgMode = false;
|
|
1667
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
1668
|
-
var _a;
|
|
1669
|
-
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
1670
|
-
let i2 = 0;
|
|
1671
|
-
let elm;
|
|
1672
|
-
let childNode;
|
|
1673
|
-
let oldVNode;
|
|
1674
|
-
if (!useNativeShadowDom) {
|
|
1675
|
-
checkSlotRelocate = true;
|
|
1676
|
-
if (newVNode2.$tag$ === "slot") {
|
|
1677
|
-
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
1678
|
-
// slot element has fallback content
|
|
1679
|
-
// still create an element that "mocks" the slot element
|
|
1680
|
-
2 /* isSlotFallback */
|
|
1681
|
-
) : (
|
|
1682
|
-
// slot element does not have fallback content
|
|
1683
|
-
// create an html comment we'll use to always reference
|
|
1684
|
-
// where actual slot content should sit next to
|
|
1685
|
-
1 /* isSlotReference */
|
|
1686
|
-
);
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
if (newVNode2.$text$ !== null) {
|
|
1690
|
-
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1691
|
-
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
1692
|
-
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
1693
|
-
{
|
|
1694
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
1695
|
-
}
|
|
1696
|
-
} else {
|
|
1697
|
-
if (!isSvgMode) {
|
|
1698
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1699
|
-
}
|
|
1700
|
-
if (!win.document) {
|
|
1701
|
-
throw new Error(
|
|
1702
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
1703
|
-
);
|
|
1704
|
-
}
|
|
1705
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1706
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
1707
|
-
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
1708
|
-
) ;
|
|
1709
|
-
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
1710
|
-
isSvgMode = false;
|
|
1711
|
-
}
|
|
1712
|
-
{
|
|
1713
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
1714
|
-
}
|
|
1715
|
-
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
1716
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
1717
|
-
}
|
|
1718
|
-
if (newVNode2.$children$) {
|
|
1719
|
-
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
1720
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
1721
|
-
if (childNode) {
|
|
1722
|
-
elm.appendChild(childNode);
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
{
|
|
1727
|
-
if (newVNode2.$tag$ === "svg") {
|
|
1728
|
-
isSvgMode = false;
|
|
1729
|
-
} else if (elm.tagName === "foreignObject") {
|
|
1730
|
-
isSvgMode = true;
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
elm["s-hn"] = hostTagName;
|
|
1735
|
-
{
|
|
1736
|
-
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
1737
|
-
elm["s-sr"] = true;
|
|
1738
|
-
elm["s-cr"] = contentRef;
|
|
1739
|
-
elm["s-sn"] = newVNode2.$name$ || "";
|
|
1740
|
-
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
1741
|
-
patchSlotNode(elm);
|
|
1742
|
-
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
1743
|
-
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
1744
|
-
{
|
|
1745
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
{
|
|
1749
|
-
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
return elm;
|
|
1754
|
-
};
|
|
1755
|
-
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
1756
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1757
|
-
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
1758
|
-
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
1759
|
-
const childNode = oldSlotChildNodes[i2];
|
|
1760
|
-
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
1761
|
-
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
1762
|
-
childNode["s-ol"].remove();
|
|
1763
|
-
childNode["s-ol"] = void 0;
|
|
1764
|
-
childNode["s-sh"] = void 0;
|
|
1765
|
-
checkSlotRelocate = true;
|
|
1766
|
-
}
|
|
1767
|
-
if (recursive) {
|
|
1768
|
-
putBackInOriginalLocation(childNode, recursive);
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
1772
|
-
};
|
|
1773
|
-
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
1774
|
-
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
1775
|
-
let childNode;
|
|
1776
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
1777
|
-
containerElm = containerElm.shadowRoot;
|
|
1778
|
-
}
|
|
1779
|
-
for (; startIdx <= endIdx; ++startIdx) {
|
|
1780
|
-
if (vnodes[startIdx]) {
|
|
1781
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
1782
|
-
if (childNode) {
|
|
1783
|
-
vnodes[startIdx].$elm$ = childNode;
|
|
1784
|
-
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
};
|
|
1789
|
-
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
1790
|
-
for (let index = startIdx; index <= endIdx; ++index) {
|
|
1791
|
-
const vnode = vnodes[index];
|
|
1792
|
-
if (vnode) {
|
|
1793
|
-
const elm = vnode.$elm$;
|
|
1794
|
-
nullifyVNodeRefs(vnode);
|
|
1795
|
-
if (elm) {
|
|
1796
|
-
{
|
|
1797
|
-
checkSlotFallbackVisibility = true;
|
|
1798
|
-
if (elm["s-ol"]) {
|
|
1799
|
-
elm["s-ol"].remove();
|
|
1800
|
-
} else {
|
|
1801
|
-
putBackInOriginalLocation(elm, true);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
elm.remove();
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
}
|
|
1808
|
-
};
|
|
1809
|
-
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
1810
|
-
let oldStartIdx = 0;
|
|
1811
|
-
let newStartIdx = 0;
|
|
1812
|
-
let idxInOld = 0;
|
|
1813
|
-
let i2 = 0;
|
|
1814
|
-
let oldEndIdx = oldCh.length - 1;
|
|
1815
|
-
let oldStartVnode = oldCh[0];
|
|
1816
|
-
let oldEndVnode = oldCh[oldEndIdx];
|
|
1817
|
-
let newEndIdx = newCh.length - 1;
|
|
1818
|
-
let newStartVnode = newCh[0];
|
|
1819
|
-
let newEndVnode = newCh[newEndIdx];
|
|
1820
|
-
let node;
|
|
1821
|
-
let elmToMove;
|
|
1822
|
-
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
1823
|
-
if (oldStartVnode == null) {
|
|
1824
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
1825
|
-
} else if (oldEndVnode == null) {
|
|
1826
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
1827
|
-
} else if (newStartVnode == null) {
|
|
1828
|
-
newStartVnode = newCh[++newStartIdx];
|
|
1829
|
-
} else if (newEndVnode == null) {
|
|
1830
|
-
newEndVnode = newCh[--newEndIdx];
|
|
1831
|
-
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
1832
|
-
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
1833
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
1834
|
-
newStartVnode = newCh[++newStartIdx];
|
|
1835
|
-
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
1836
|
-
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
1837
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
1838
|
-
newEndVnode = newCh[--newEndIdx];
|
|
1839
|
-
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
1840
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1841
|
-
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
1842
|
-
}
|
|
1843
|
-
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
1844
|
-
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
1845
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
1846
|
-
newEndVnode = newCh[--newEndIdx];
|
|
1847
|
-
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
1848
|
-
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
1849
|
-
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
1850
|
-
}
|
|
1851
|
-
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
1852
|
-
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
1853
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
1854
|
-
newStartVnode = newCh[++newStartIdx];
|
|
1855
|
-
} else {
|
|
1856
|
-
idxInOld = -1;
|
|
1857
|
-
{
|
|
1858
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
1859
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
1860
|
-
idxInOld = i2;
|
|
1861
|
-
break;
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
if (idxInOld >= 0) {
|
|
1866
|
-
elmToMove = oldCh[idxInOld];
|
|
1867
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
1868
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
1869
|
-
} else {
|
|
1870
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
1871
|
-
oldCh[idxInOld] = void 0;
|
|
1872
|
-
node = elmToMove.$elm$;
|
|
1873
|
-
}
|
|
1874
|
-
newStartVnode = newCh[++newStartIdx];
|
|
1875
|
-
} else {
|
|
1876
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
1877
|
-
newStartVnode = newCh[++newStartIdx];
|
|
1878
|
-
}
|
|
1879
|
-
if (node) {
|
|
1880
|
-
{
|
|
1881
|
-
insertBefore(
|
|
1882
|
-
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
1883
|
-
node,
|
|
1884
|
-
referenceNode(oldStartVnode.$elm$)
|
|
1885
|
-
);
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
}
|
|
1889
|
-
}
|
|
1890
|
-
if (oldStartIdx > oldEndIdx) {
|
|
1891
|
-
addVnodes(
|
|
1892
|
-
parentElm,
|
|
1893
|
-
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
1894
|
-
newVNode2,
|
|
1895
|
-
newCh,
|
|
1896
|
-
newStartIdx,
|
|
1897
|
-
newEndIdx
|
|
1898
|
-
);
|
|
1899
|
-
} else if (newStartIdx > newEndIdx) {
|
|
1900
|
-
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
1901
|
-
}
|
|
1902
|
-
};
|
|
1903
|
-
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
1904
|
-
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1905
|
-
if (leftVNode.$tag$ === "slot") {
|
|
1906
|
-
return leftVNode.$name$ === rightVNode.$name$;
|
|
1907
|
-
}
|
|
1908
|
-
if (!isInitialRender) {
|
|
1909
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
1910
|
-
}
|
|
1911
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
1912
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
1913
|
-
}
|
|
1914
|
-
return true;
|
|
1915
|
-
}
|
|
1916
|
-
return false;
|
|
1917
|
-
};
|
|
1918
|
-
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
1919
|
-
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
1920
|
-
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
1921
|
-
const oldChildren = oldVNode.$children$;
|
|
1922
|
-
const newChildren = newVNode2.$children$;
|
|
1923
|
-
const tag = newVNode2.$tag$;
|
|
1924
|
-
const text = newVNode2.$text$;
|
|
1925
|
-
let defaultHolder;
|
|
1926
|
-
if (text === null) {
|
|
1927
|
-
{
|
|
1928
|
-
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1929
|
-
}
|
|
1930
|
-
{
|
|
1931
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
1932
|
-
}
|
|
1933
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
1934
|
-
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
1935
|
-
} else if (newChildren !== null) {
|
|
1936
|
-
if (oldVNode.$text$ !== null) {
|
|
1937
|
-
elm.textContent = "";
|
|
1938
|
-
}
|
|
1939
|
-
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
1940
|
-
} else if (
|
|
1941
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
1942
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
1943
|
-
) {
|
|
1944
|
-
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1945
|
-
}
|
|
1946
|
-
if (isSvgMode && tag === "svg") {
|
|
1947
|
-
isSvgMode = false;
|
|
1948
|
-
}
|
|
1949
|
-
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1950
|
-
defaultHolder.parentNode.textContent = text;
|
|
1951
|
-
} else if (oldVNode.$text$ !== text) {
|
|
1952
|
-
elm.data = text;
|
|
1953
|
-
}
|
|
1954
|
-
};
|
|
1955
|
-
var relocateNodes = [];
|
|
1956
|
-
var markSlotContentForRelocation = (elm) => {
|
|
1957
|
-
let node;
|
|
1958
|
-
let hostContentNodes;
|
|
1959
|
-
let j;
|
|
1960
|
-
const children = elm.__childNodes || elm.childNodes;
|
|
1961
|
-
for (const childNode of children) {
|
|
1962
|
-
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1963
|
-
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1964
|
-
const slotName = childNode["s-sn"];
|
|
1965
|
-
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1966
|
-
node = hostContentNodes[j];
|
|
1967
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
|
|
1968
|
-
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1969
|
-
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1970
|
-
checkSlotFallbackVisibility = true;
|
|
1971
|
-
node["s-sn"] = node["s-sn"] || slotName;
|
|
1972
|
-
if (relocateNodeData) {
|
|
1973
|
-
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1974
|
-
relocateNodeData.$slotRefNode$ = childNode;
|
|
1975
|
-
} else {
|
|
1976
|
-
node["s-sh"] = childNode["s-hn"];
|
|
1977
|
-
relocateNodes.push({
|
|
1978
|
-
$slotRefNode$: childNode,
|
|
1979
|
-
$nodeToRelocate$: node
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
if (node["s-sr"]) {
|
|
1983
|
-
relocateNodes.map((relocateNode) => {
|
|
1984
|
-
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1985
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1986
|
-
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1987
|
-
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
});
|
|
1991
|
-
}
|
|
1992
|
-
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1993
|
-
relocateNodes.push({
|
|
1994
|
-
$nodeToRelocate$: node
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
2001
|
-
markSlotContentForRelocation(childNode);
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
};
|
|
2005
|
-
var nullifyVNodeRefs = (vNode) => {
|
|
2006
|
-
{
|
|
2007
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
2008
|
-
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
2009
|
-
}
|
|
2010
|
-
};
|
|
2011
|
-
var insertBefore = (parent, newNode, reference) => {
|
|
2012
|
-
if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
2013
|
-
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2014
|
-
}
|
|
2015
|
-
{
|
|
2016
|
-
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
2017
|
-
}
|
|
2018
|
-
};
|
|
2019
|
-
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
2020
|
-
var _a, _b;
|
|
2021
|
-
let scopeId2;
|
|
2022
|
-
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
2023
|
-
const scopeName = slotNode["s-sn"];
|
|
2024
|
-
const hostName = slotNode["s-hn"];
|
|
2025
|
-
(_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
|
|
2026
|
-
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
2027
|
-
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
2028
|
-
let found = false;
|
|
2029
|
-
while (child) {
|
|
2030
|
-
if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
|
|
2031
|
-
found = true;
|
|
2032
|
-
break;
|
|
2033
|
-
}
|
|
2034
|
-
child = child.nextSibling;
|
|
2035
|
-
}
|
|
2036
|
-
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
2041
|
-
var _a, _b, _c, _d;
|
|
2042
|
-
const hostElm = hostRef.$hostElement$;
|
|
2043
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
2044
|
-
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
2045
|
-
const isHostElement = isHost(renderFnResults);
|
|
2046
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
2047
|
-
hostTagName = hostElm.tagName;
|
|
2048
|
-
if (cmpMeta.$attrsToReflect$) {
|
|
2049
|
-
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
2050
|
-
cmpMeta.$attrsToReflect$.map(
|
|
2051
|
-
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
2052
|
-
);
|
|
2053
|
-
}
|
|
2054
|
-
if (isInitialLoad && rootVnode.$attrs$) {
|
|
2055
|
-
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
2056
|
-
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
2057
|
-
rootVnode.$attrs$[key] = hostElm[key];
|
|
2058
|
-
}
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
rootVnode.$tag$ = null;
|
|
2062
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
2063
|
-
hostRef.$vnode$ = rootVnode;
|
|
2064
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
2065
|
-
{
|
|
2066
|
-
scopeId = hostElm["s-sc"];
|
|
2067
|
-
}
|
|
2068
|
-
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
2069
|
-
{
|
|
2070
|
-
contentRef = hostElm["s-cr"];
|
|
2071
|
-
checkSlotFallbackVisibility = false;
|
|
2072
|
-
}
|
|
2073
|
-
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2074
|
-
{
|
|
2075
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
2076
|
-
if (checkSlotRelocate) {
|
|
2077
|
-
markSlotContentForRelocation(rootVnode.$elm$);
|
|
2078
|
-
for (const relocateData of relocateNodes) {
|
|
2079
|
-
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2080
|
-
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
2081
|
-
const orgLocationNode = win.document.createTextNode("");
|
|
2082
|
-
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2083
|
-
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
for (const relocateData of relocateNodes) {
|
|
2087
|
-
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2088
|
-
const slotRefNode = relocateData.$slotRefNode$;
|
|
2089
|
-
if (slotRefNode) {
|
|
2090
|
-
const parentNodeRef = slotRefNode.parentNode;
|
|
2091
|
-
let insertBeforeNode = slotRefNode.nextSibling;
|
|
2092
|
-
{
|
|
2093
|
-
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
2094
|
-
while (orgLocationNode) {
|
|
2095
|
-
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
2096
|
-
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
2097
|
-
refNode = refNode.nextSibling;
|
|
2098
|
-
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
2099
|
-
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
2100
|
-
}
|
|
2101
|
-
if (!refNode || !refNode["s-nr"]) {
|
|
2102
|
-
insertBeforeNode = refNode;
|
|
2103
|
-
break;
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
orgLocationNode = orgLocationNode.previousSibling;
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
2110
|
-
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
2111
|
-
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
2112
|
-
if (nodeToRelocate !== insertBeforeNode) {
|
|
2113
|
-
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
2114
|
-
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
2115
|
-
}
|
|
2116
|
-
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
2117
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
2118
|
-
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
}
|
|
2122
|
-
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
2123
|
-
} else {
|
|
2124
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
2125
|
-
if (isInitialLoad) {
|
|
2126
|
-
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
2127
|
-
}
|
|
2128
|
-
nodeToRelocate.hidden = true;
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
if (checkSlotFallbackVisibility) {
|
|
2134
|
-
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
2135
|
-
}
|
|
2136
|
-
plt.$flags$ &= -2 /* isTmpDisconnected */;
|
|
2137
|
-
relocateNodes.length = 0;
|
|
2138
|
-
}
|
|
2139
|
-
contentRef = void 0;
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
// src/runtime/update-component.ts
|
|
2143
|
-
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
2144
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
2145
|
-
const index = ancestorComponent["s-p"].push(
|
|
2146
|
-
new Promise(
|
|
2147
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
2148
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
2149
|
-
r();
|
|
2150
|
-
}
|
|
2151
|
-
)
|
|
2152
|
-
);
|
|
2153
|
-
}
|
|
2154
|
-
};
|
|
2155
|
-
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
2156
|
-
{
|
|
2157
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
2158
|
-
}
|
|
2159
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
2160
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
2161
|
-
return;
|
|
2162
|
-
}
|
|
2163
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
2164
|
-
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
2165
|
-
return writeTask(dispatch) ;
|
|
2166
|
-
};
|
|
2167
|
-
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
2168
|
-
const elm = hostRef.$hostElement$;
|
|
2169
|
-
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
2170
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
2171
|
-
if (!instance) {
|
|
2172
|
-
throw new Error(
|
|
2173
|
-
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
2174
|
-
);
|
|
2175
|
-
}
|
|
2176
|
-
let maybePromise;
|
|
2177
|
-
if (isInitialLoad) {
|
|
2178
|
-
{
|
|
2179
|
-
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2180
|
-
if (hostRef.$queuedListeners$) {
|
|
2181
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
2182
|
-
hostRef.$queuedListeners$ = void 0;
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
2186
|
-
} else {
|
|
2187
|
-
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
2188
|
-
}
|
|
2189
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2190
|
-
endSchedule();
|
|
2191
|
-
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
2192
|
-
};
|
|
2193
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
2194
|
-
console.error(err2);
|
|
2195
|
-
fn();
|
|
2196
|
-
}) : fn();
|
|
2197
|
-
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
2198
|
-
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
2199
|
-
var _a;
|
|
2200
|
-
const elm = hostRef.$hostElement$;
|
|
2201
|
-
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
2202
|
-
const rc = elm["s-rc"];
|
|
2203
|
-
if (isInitialLoad) {
|
|
2204
|
-
attachStyles(hostRef);
|
|
2205
|
-
}
|
|
2206
|
-
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
2207
|
-
{
|
|
2208
|
-
callRender(hostRef, instance, elm, isInitialLoad);
|
|
2209
|
-
}
|
|
2210
|
-
if (rc) {
|
|
2211
|
-
rc.map((cb) => cb());
|
|
2212
|
-
elm["s-rc"] = void 0;
|
|
2213
|
-
}
|
|
2214
|
-
endRender();
|
|
2215
|
-
endUpdate();
|
|
2216
|
-
{
|
|
2217
|
-
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
2218
|
-
const postUpdate = () => postUpdateComponent(hostRef);
|
|
2219
|
-
if (childrenPromises.length === 0) {
|
|
2220
|
-
postUpdate();
|
|
2221
|
-
} else {
|
|
2222
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
2223
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
2224
|
-
childrenPromises.length = 0;
|
|
2225
|
-
}
|
|
2226
|
-
}
|
|
2227
|
-
};
|
|
2228
|
-
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
2229
|
-
try {
|
|
2230
|
-
instance = instance.render() ;
|
|
2231
|
-
{
|
|
2232
|
-
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
2233
|
-
}
|
|
2234
|
-
{
|
|
2235
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
2236
|
-
}
|
|
2237
|
-
{
|
|
2238
|
-
{
|
|
2239
|
-
{
|
|
2240
|
-
renderVdom(hostRef, instance, isInitialLoad);
|
|
2241
|
-
}
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
} catch (e) {
|
|
2245
|
-
consoleError(e, hostRef.$hostElement$);
|
|
2246
|
-
}
|
|
2247
|
-
return null;
|
|
2248
|
-
};
|
|
2249
|
-
var postUpdateComponent = (hostRef) => {
|
|
2250
|
-
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
2251
|
-
const elm = hostRef.$hostElement$;
|
|
2252
|
-
const endPostUpdate = createTime("postUpdate", tagName);
|
|
2253
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
2254
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2255
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
2256
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
2257
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
2258
|
-
{
|
|
2259
|
-
addHydratedFlag(elm);
|
|
2260
|
-
}
|
|
2261
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
2262
|
-
endPostUpdate();
|
|
2263
|
-
{
|
|
2264
|
-
hostRef.$onReadyResolve$(elm);
|
|
2265
|
-
if (!ancestorComponent) {
|
|
2266
|
-
appDidLoad();
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
|
-
} else {
|
|
2270
|
-
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
2271
|
-
endPostUpdate();
|
|
2272
|
-
}
|
|
2273
|
-
{
|
|
2274
|
-
hostRef.$onInstanceResolve$(elm);
|
|
2275
|
-
}
|
|
2276
|
-
{
|
|
2277
|
-
if (hostRef.$onRenderResolve$) {
|
|
2278
|
-
hostRef.$onRenderResolve$();
|
|
2279
|
-
hostRef.$onRenderResolve$ = void 0;
|
|
2280
|
-
}
|
|
2281
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
2282
|
-
nextTick(() => scheduleUpdate(hostRef, false));
|
|
2283
|
-
}
|
|
2284
|
-
hostRef.$flags$ &= -517;
|
|
2285
|
-
}
|
|
2286
|
-
};
|
|
2287
|
-
var appDidLoad = (who) => {
|
|
2288
|
-
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2289
|
-
};
|
|
2290
|
-
var safeCall = (instance, method, arg, elm) => {
|
|
2291
|
-
if (instance && instance[method]) {
|
|
2292
|
-
try {
|
|
2293
|
-
return instance[method](arg);
|
|
2294
|
-
} catch (e) {
|
|
2295
|
-
consoleError(e, elm);
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
return void 0;
|
|
2299
|
-
};
|
|
2300
|
-
var addHydratedFlag = (elm) => {
|
|
2301
|
-
var _a;
|
|
2302
|
-
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
2303
|
-
};
|
|
2304
|
-
|
|
2305
|
-
// src/runtime/set-value.ts
|
|
2306
|
-
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
2307
|
-
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
2308
|
-
const hostRef = getHostRef(ref);
|
|
2309
|
-
if (!hostRef) {
|
|
2310
|
-
throw new Error(
|
|
2311
|
-
`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).`
|
|
2312
|
-
);
|
|
2313
|
-
}
|
|
2314
|
-
const elm = hostRef.$hostElement$ ;
|
|
2315
|
-
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
2316
|
-
const flags = hostRef.$flags$;
|
|
2317
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
2318
|
-
newVal = parsePropertyValue(
|
|
2319
|
-
newVal,
|
|
2320
|
-
cmpMeta.$members$[propName][0]);
|
|
2321
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
2322
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
2323
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
2324
|
-
hostRef.$instanceValues$.set(propName, newVal);
|
|
2325
|
-
if (instance) {
|
|
2326
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
2327
|
-
const watchMethods = cmpMeta.$watchers$[propName];
|
|
2328
|
-
if (watchMethods) {
|
|
2329
|
-
watchMethods.map((watchMethodName) => {
|
|
2330
|
-
try {
|
|
2331
|
-
instance[watchMethodName](newVal, oldVal, propName);
|
|
2332
|
-
} catch (e) {
|
|
2333
|
-
consoleError(e, elm);
|
|
2334
|
-
}
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
2339
|
-
if (instance.componentShouldUpdate) {
|
|
2340
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
2341
|
-
return;
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
scheduleUpdate(hostRef, false);
|
|
2345
|
-
}
|
|
2346
|
-
}
|
|
2347
|
-
}
|
|
2348
|
-
};
|
|
2349
|
-
|
|
2350
|
-
// src/runtime/proxy-component.ts
|
|
2351
|
-
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
2352
|
-
var _a, _b;
|
|
2353
|
-
const prototype = Cstr.prototype;
|
|
2354
|
-
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
2355
|
-
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
2356
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2357
|
-
}
|
|
2358
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
2359
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
2360
|
-
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
2361
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
2362
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
2363
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
2364
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
2365
|
-
Object.defineProperty(prototype, memberName, {
|
|
2366
|
-
get() {
|
|
2367
|
-
{
|
|
2368
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
2369
|
-
return getValue(this, memberName);
|
|
2370
|
-
}
|
|
2371
|
-
const ref = getHostRef(this);
|
|
2372
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
2373
|
-
if (!instance) return;
|
|
2374
|
-
return instance[memberName];
|
|
2375
|
-
}
|
|
2376
|
-
},
|
|
2377
|
-
configurable: true,
|
|
2378
|
-
enumerable: true
|
|
2379
|
-
});
|
|
2380
|
-
}
|
|
2381
|
-
Object.defineProperty(prototype, memberName, {
|
|
2382
|
-
set(newValue) {
|
|
2383
|
-
const ref = getHostRef(this);
|
|
2384
|
-
if (origSetter) {
|
|
2385
|
-
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2386
|
-
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
2387
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
2388
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2389
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2390
|
-
}
|
|
2391
|
-
origSetter.apply(this, [
|
|
2392
|
-
parsePropertyValue(
|
|
2393
|
-
newValue,
|
|
2394
|
-
memberFlags)
|
|
2395
|
-
]);
|
|
2396
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
2397
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
2398
|
-
return;
|
|
2399
|
-
}
|
|
2400
|
-
{
|
|
2401
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
2402
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
2403
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
2404
|
-
ref.$onReadyPromise$.then(() => {
|
|
2405
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
2406
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
2407
|
-
}
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
return;
|
|
2411
|
-
}
|
|
2412
|
-
const setterSetVal = () => {
|
|
2413
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
2414
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
2415
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
2416
|
-
}
|
|
2417
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
2418
|
-
newValue,
|
|
2419
|
-
memberFlags);
|
|
2420
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
2421
|
-
};
|
|
2422
|
-
if (ref.$lazyInstance$) {
|
|
2423
|
-
setterSetVal();
|
|
2424
|
-
} else {
|
|
2425
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
2426
|
-
}
|
|
2427
|
-
}
|
|
2428
|
-
}
|
|
2429
|
-
});
|
|
2430
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
2431
|
-
Object.defineProperty(prototype, memberName, {
|
|
2432
|
-
value(...args) {
|
|
2433
|
-
var _a2;
|
|
2434
|
-
const ref = getHostRef(this);
|
|
2435
|
-
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
|
2436
|
-
var _a3;
|
|
2437
|
-
return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
});
|
|
2441
|
-
}
|
|
2442
|
-
});
|
|
2443
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
2444
|
-
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
2445
|
-
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
2446
|
-
plt.jmp(() => {
|
|
2447
|
-
var _a2;
|
|
2448
|
-
const propName = attrNameToPropName.get(attrName);
|
|
2449
|
-
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
2450
|
-
newValue = this[propName];
|
|
2451
|
-
delete this[propName];
|
|
2452
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
2453
|
-
this[propName] == newValue) {
|
|
2454
|
-
return;
|
|
2455
|
-
} else if (propName == null) {
|
|
2456
|
-
const hostRef = getHostRef(this);
|
|
2457
|
-
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
2458
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
2459
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
2460
|
-
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
2461
|
-
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
2462
|
-
if (instance[callbackName] != null) {
|
|
2463
|
-
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
2464
|
-
}
|
|
2465
|
-
});
|
|
2466
|
-
}
|
|
2467
|
-
return;
|
|
2468
|
-
}
|
|
2469
|
-
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
2470
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
2471
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
2472
|
-
this[propName] = newValue;
|
|
2473
|
-
}
|
|
2474
|
-
});
|
|
2475
|
-
};
|
|
2476
|
-
Cstr.observedAttributes = Array.from(
|
|
2477
|
-
/* @__PURE__ */ new Set([
|
|
2478
|
-
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
2479
|
-
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
2480
|
-
var _a2;
|
|
2481
|
-
const attrName = m[1] || propName;
|
|
2482
|
-
attrNameToPropName.set(attrName, propName);
|
|
2483
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
2484
|
-
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
2485
|
-
}
|
|
2486
|
-
return attrName;
|
|
2487
|
-
})
|
|
2488
|
-
])
|
|
2489
|
-
);
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
return Cstr;
|
|
2493
|
-
};
|
|
2494
|
-
|
|
2495
|
-
// src/runtime/initialize-component.ts
|
|
2496
|
-
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
2497
|
-
let Cstr;
|
|
2498
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
2499
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2500
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2501
|
-
if (bundleId) {
|
|
2502
|
-
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
2503
|
-
if (CstrImport && "then" in CstrImport) {
|
|
2504
|
-
const endLoad = uniqueTime();
|
|
2505
|
-
Cstr = await CstrImport;
|
|
2506
|
-
endLoad();
|
|
2507
|
-
} else {
|
|
2508
|
-
Cstr = CstrImport;
|
|
2509
|
-
}
|
|
2510
|
-
if (!Cstr) {
|
|
2511
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
2512
|
-
}
|
|
2513
|
-
if (!Cstr.isProxied) {
|
|
2514
|
-
{
|
|
2515
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2516
|
-
}
|
|
2517
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
2518
|
-
Cstr.isProxied = true;
|
|
2519
|
-
}
|
|
2520
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
2521
|
-
{
|
|
2522
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
2523
|
-
}
|
|
2524
|
-
try {
|
|
2525
|
-
new Cstr(hostRef);
|
|
2526
|
-
} catch (e) {
|
|
2527
|
-
consoleError(e, elm);
|
|
2528
|
-
}
|
|
2529
|
-
{
|
|
2530
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
2531
|
-
}
|
|
2532
|
-
{
|
|
2533
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2534
|
-
}
|
|
2535
|
-
endNewInstance();
|
|
2536
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2537
|
-
} else {
|
|
2538
|
-
Cstr = elm.constructor;
|
|
2539
|
-
const cmpTag = elm.localName;
|
|
2540
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
2541
|
-
}
|
|
2542
|
-
if (Cstr && Cstr.style) {
|
|
2543
|
-
let style;
|
|
2544
|
-
if (typeof Cstr.style === "string") {
|
|
2545
|
-
style = Cstr.style;
|
|
2546
|
-
}
|
|
2547
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
2548
|
-
if (!styles.has(scopeId2)) {
|
|
2549
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2550
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
2551
|
-
endRegisterStyles();
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
|
-
}
|
|
2555
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2556
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
2557
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
2558
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
2559
|
-
} else {
|
|
2560
|
-
schedule();
|
|
2561
|
-
}
|
|
2562
|
-
};
|
|
2563
|
-
var fireConnectedCallback = (instance, elm) => {
|
|
2564
|
-
{
|
|
2565
|
-
safeCall(instance, "connectedCallback", void 0, elm);
|
|
2566
|
-
}
|
|
2567
|
-
};
|
|
2568
|
-
|
|
2569
|
-
// src/runtime/connected-callback.ts
|
|
2570
|
-
var connectedCallback = (elm) => {
|
|
2571
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2572
|
-
const hostRef = getHostRef(elm);
|
|
2573
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
2574
|
-
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
2575
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
2576
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
2577
|
-
{
|
|
2578
|
-
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
2579
|
-
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
2580
|
-
setContentReference(elm);
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
{
|
|
2584
|
-
let ancestorComponent = elm;
|
|
2585
|
-
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
2586
|
-
if (ancestorComponent["s-p"]) {
|
|
2587
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
2588
|
-
break;
|
|
2589
|
-
}
|
|
2590
|
-
}
|
|
2591
|
-
}
|
|
2592
|
-
if (cmpMeta.$members$) {
|
|
2593
|
-
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
2594
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
2595
|
-
const value = elm[memberName];
|
|
2596
|
-
delete elm[memberName];
|
|
2597
|
-
elm[memberName] = value;
|
|
2598
|
-
}
|
|
2599
|
-
});
|
|
2600
|
-
}
|
|
2601
|
-
{
|
|
2602
|
-
nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
2603
|
-
}
|
|
2604
|
-
} else {
|
|
2605
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
2606
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2607
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2608
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2609
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
2610
|
-
}
|
|
2611
|
-
}
|
|
2612
|
-
endConnected();
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
|
-
var setContentReference = (elm) => {
|
|
2616
|
-
if (!win.document) {
|
|
2617
|
-
return;
|
|
2618
|
-
}
|
|
2619
|
-
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
2620
|
-
""
|
|
2621
|
-
);
|
|
2622
|
-
contentRefElm["s-cn"] = true;
|
|
2623
|
-
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
2624
|
-
};
|
|
2625
|
-
var disconnectInstance = (instance, elm) => {
|
|
2626
|
-
{
|
|
2627
|
-
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
2628
|
-
}
|
|
2629
|
-
};
|
|
2630
|
-
var disconnectedCallback = async (elm) => {
|
|
2631
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
2632
|
-
const hostRef = getHostRef(elm);
|
|
2633
|
-
{
|
|
2634
|
-
if (hostRef.$rmListeners$) {
|
|
2635
|
-
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
2636
|
-
hostRef.$rmListeners$ = void 0;
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2640
|
-
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
2641
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2642
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
if (rootAppliedStyles.has(elm)) {
|
|
2646
|
-
rootAppliedStyles.delete(elm);
|
|
2647
|
-
}
|
|
2648
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
2649
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
2650
|
-
}
|
|
2651
|
-
};
|
|
2652
|
-
|
|
2653
|
-
// src/runtime/bootstrap-lazy.ts
|
|
2654
|
-
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
2655
|
-
var _a;
|
|
2656
|
-
if (!win.document) {
|
|
2657
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
2658
|
-
return;
|
|
2659
|
-
}
|
|
2660
|
-
const endBootstrap = createTime();
|
|
2661
|
-
const cmpTags = [];
|
|
2662
|
-
const exclude = options.exclude || [];
|
|
2663
|
-
const customElements2 = win.customElements;
|
|
2664
|
-
const head = win.document.head;
|
|
2665
|
-
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
2666
|
-
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
2667
|
-
const deferredConnectedCallbacks = [];
|
|
2668
|
-
let appLoadFallback;
|
|
2669
|
-
let isBootstrapping = true;
|
|
2670
|
-
Object.assign(plt, options);
|
|
2671
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
2672
|
-
let hasSlotRelocation = false;
|
|
2673
|
-
lazyBundles.map((lazyBundle) => {
|
|
2674
|
-
lazyBundle[1].map((compactMeta) => {
|
|
2675
|
-
var _a2;
|
|
2676
|
-
const cmpMeta = {
|
|
2677
|
-
$flags$: compactMeta[0],
|
|
2678
|
-
$tagName$: compactMeta[1],
|
|
2679
|
-
$members$: compactMeta[2],
|
|
2680
|
-
$listeners$: compactMeta[3]
|
|
2681
|
-
};
|
|
2682
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2683
|
-
hasSlotRelocation = true;
|
|
2684
|
-
}
|
|
2685
|
-
{
|
|
2686
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
2687
|
-
}
|
|
2688
|
-
{
|
|
2689
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
2690
|
-
}
|
|
2691
|
-
{
|
|
2692
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
2693
|
-
}
|
|
2694
|
-
{
|
|
2695
|
-
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
2696
|
-
}
|
|
2697
|
-
const tagName = cmpMeta.$tagName$;
|
|
2698
|
-
const HostElement = class extends HTMLElement {
|
|
2699
|
-
// StencilLazyHost
|
|
2700
|
-
constructor(self) {
|
|
2701
|
-
super(self);
|
|
2702
|
-
this.hasRegisteredEventListeners = false;
|
|
2703
|
-
self = this;
|
|
2704
|
-
registerHost(self, cmpMeta);
|
|
2705
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
2706
|
-
{
|
|
2707
|
-
if (!self.shadowRoot) {
|
|
2708
|
-
createShadowRoot.call(self, cmpMeta);
|
|
2709
|
-
} else {
|
|
2710
|
-
if (self.shadowRoot.mode !== "open") {
|
|
2711
|
-
throw new Error(
|
|
2712
|
-
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
2713
|
-
);
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
}
|
|
2719
|
-
connectedCallback() {
|
|
2720
|
-
const hostRef = getHostRef(this);
|
|
2721
|
-
if (!this.hasRegisteredEventListeners) {
|
|
2722
|
-
this.hasRegisteredEventListeners = true;
|
|
2723
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
2724
|
-
}
|
|
2725
|
-
if (appLoadFallback) {
|
|
2726
|
-
clearTimeout(appLoadFallback);
|
|
2727
|
-
appLoadFallback = null;
|
|
2728
|
-
}
|
|
2729
|
-
if (isBootstrapping) {
|
|
2730
|
-
deferredConnectedCallbacks.push(this);
|
|
2731
|
-
} else {
|
|
2732
|
-
plt.jmp(() => connectedCallback(this));
|
|
2733
|
-
}
|
|
2734
|
-
}
|
|
2735
|
-
disconnectedCallback() {
|
|
2736
|
-
plt.jmp(() => disconnectedCallback(this));
|
|
2737
|
-
plt.raf(() => {
|
|
2738
|
-
var _a3;
|
|
2739
|
-
const hostRef = getHostRef(this);
|
|
2740
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
2741
|
-
if (i2 > -1) {
|
|
2742
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
2743
|
-
}
|
|
2744
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
2745
|
-
delete hostRef.$vnode$.$elm$;
|
|
2746
|
-
}
|
|
2747
|
-
});
|
|
2748
|
-
}
|
|
2749
|
-
componentOnReady() {
|
|
2750
|
-
return getHostRef(this).$onReadyPromise$;
|
|
2751
|
-
}
|
|
2752
|
-
};
|
|
2753
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
2754
|
-
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
2755
|
-
cmpTags.push(tagName);
|
|
2756
|
-
customElements2.define(
|
|
2757
|
-
tagName,
|
|
2758
|
-
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
|
2759
|
-
);
|
|
2760
|
-
}
|
|
2761
|
-
});
|
|
2762
|
-
});
|
|
2763
|
-
if (cmpTags.length > 0) {
|
|
2764
|
-
if (hasSlotRelocation) {
|
|
2765
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
2766
|
-
}
|
|
2767
|
-
{
|
|
2768
|
-
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
2769
|
-
}
|
|
2770
|
-
if (dataStyles.innerHTML.length) {
|
|
2771
|
-
dataStyles.setAttribute("data-styles", "");
|
|
2772
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2773
|
-
if (nonce != null) {
|
|
2774
|
-
dataStyles.setAttribute("nonce", nonce);
|
|
2775
|
-
}
|
|
2776
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
2777
|
-
}
|
|
2778
|
-
}
|
|
2779
|
-
isBootstrapping = false;
|
|
2780
|
-
if (deferredConnectedCallbacks.length) {
|
|
2781
|
-
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
2782
|
-
} else {
|
|
2783
|
-
{
|
|
2784
|
-
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
endBootstrap();
|
|
2788
|
-
};
|
|
2789
|
-
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
2790
|
-
if (listeners && win.document) {
|
|
2791
|
-
listeners.map(([flags, name, method]) => {
|
|
2792
|
-
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
2793
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
2794
|
-
const opts = hostListenerOpts(flags);
|
|
2795
|
-
plt.ael(target, name, handler, opts);
|
|
2796
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
2797
|
-
});
|
|
2798
|
-
}
|
|
2799
|
-
};
|
|
2800
|
-
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
2801
|
-
var _a;
|
|
2802
|
-
try {
|
|
2803
|
-
{
|
|
2804
|
-
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
2805
|
-
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
2806
|
-
} else {
|
|
2807
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
} catch (e) {
|
|
2811
|
-
consoleError(e, hostRef.$hostElement$);
|
|
2812
|
-
}
|
|
2813
|
-
};
|
|
2814
|
-
var getHostListenerTarget = (doc, elm, flags) => {
|
|
2815
|
-
if (flags & 4 /* TargetDocument */) {
|
|
2816
|
-
return doc;
|
|
2817
|
-
}
|
|
2818
|
-
if (flags & 8 /* TargetWindow */) {
|
|
2819
|
-
return win;
|
|
2820
|
-
}
|
|
2821
|
-
return elm;
|
|
2822
|
-
};
|
|
2823
|
-
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
2824
|
-
passive: (flags & 1 /* Passive */) !== 0,
|
|
2825
|
-
capture: (flags & 2 /* Capture */) !== 0
|
|
2826
|
-
} : (flags & 2 /* Capture */) !== 0;
|
|
2827
|
-
|
|
2828
|
-
// src/runtime/nonce.ts
|
|
2829
|
-
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
2830
|
-
|
|
2831
|
-
exports.BalSnackbarController = BalSnackbarController;
|
|
2832
|
-
exports.BalToastController = BalToastController;
|
|
2833
|
-
exports.Host = Host;
|
|
2834
|
-
exports.Logger = Logger;
|
|
2835
|
-
exports.addEventListener = addEventListener;
|
|
2836
|
-
exports.attachComponentToConfig = attachComponentToConfig;
|
|
2837
|
-
exports.attachToConfig = attachToConfig;
|
|
2838
|
-
exports.balBrowser = balBrowser;
|
|
2839
|
-
exports.balSnackbarController = balSnackbarController;
|
|
2840
|
-
exports.balToastController = balToastController;
|
|
2841
|
-
exports.bootstrapLazy = bootstrapLazy;
|
|
2842
|
-
exports.componentOnReady = componentOnReady;
|
|
2843
|
-
exports.createEvent = createEvent;
|
|
2844
|
-
exports.debounce = debounce;
|
|
2845
|
-
exports.debounceEvent = debounceEvent;
|
|
2846
|
-
exports.deepReady = deepReady;
|
|
2847
|
-
exports.defaultConfig = defaultConfig;
|
|
2848
|
-
exports.defaultLocale = defaultLocale;
|
|
2849
|
-
exports.detachComponentFromConfig = detachComponentFromConfig;
|
|
2850
|
-
exports.detachFromConfig = detachFromConfig;
|
|
2851
|
-
exports.getAppRoot = getAppRoot;
|
|
2852
|
-
exports.getElement = getElement;
|
|
2853
|
-
exports.globalScript = globalScript;
|
|
2854
|
-
exports.globalScripts = globalScripts;
|
|
2855
|
-
exports.h = h;
|
|
2856
|
-
exports.hasParent = hasParent;
|
|
2857
|
-
exports.hasTagName = hasTagName;
|
|
2858
|
-
exports.initializeBaloiseDesignSystem = initializeBaloiseDesignSystem;
|
|
2859
|
-
exports.isChildOfEventTarget = isChildOfEventTarget;
|
|
2860
|
-
exports.isDescendant = isDescendant;
|
|
2861
|
-
exports.onBalConfigChange = onBalConfigChange;
|
|
2862
|
-
exports.promiseResolve = promiseResolve;
|
|
2863
|
-
exports.rIC = rIC;
|
|
2864
|
-
exports.rOnLoad = rOnLoad;
|
|
2865
|
-
exports.raf = raf;
|
|
2866
|
-
exports.registerInstance = registerInstance;
|
|
2867
|
-
exports.removeEventListener = removeEventListener;
|
|
2868
|
-
exports.setNonce = setNonce;
|
|
2869
|
-
exports.setupConfig = setupConfig;
|
|
2870
|
-
exports.shallowReady = shallowReady;
|
|
2871
|
-
exports.transitionEndAsync = transitionEndAsync;
|
|
2872
|
-
exports.updateBalAllowedLanguages = updateBalAllowedLanguages;
|
|
2873
|
-
exports.updateBalAnimated = updateBalAnimated;
|
|
2874
|
-
exports.updateBalIcons = updateBalIcons;
|
|
2875
|
-
exports.updateBalLanguage = updateBalLanguage;
|
|
2876
|
-
exports.updateBalRegion = updateBalRegion;
|
|
2877
|
-
exports.useBalConfig = useBalConfig;
|
|
2878
|
-
exports.wait = wait;
|
|
2879
|
-
exports.waitAfterFramePaint = waitAfterFramePaint;
|
|
2880
|
-
exports.waitAfterIdleCallback = waitAfterIdleCallback;
|
|
2881
|
-
exports.waitAfterLargestContentfulPaintCallback = waitAfterLargestContentfulPaintCallback;
|
|
2882
|
-
exports.waitForComponent = waitForComponent;
|
|
2883
|
-
exports.waitForDesignSystem = waitForDesignSystem;
|
|
2884
|
-
exports.waitOnLoadEventCallback = waitOnLoadEventCallback;
|
|
2885
|
-
exports.writeTask = writeTask;
|