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