@baloise/ds-core 17.2.4 → 17.2.5-nightly.20250115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/animation.decorator.js +75 -0
- package/components/bal-app.js +1 -93
- package/components/bal-app2.js +95 -0
- package/components/bal-carousel.js +12 -5
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-dropdown.js +771 -1
- package/components/bal-hint2.js +1 -1
- package/components/bal-nav.js +72 -48
- package/components/bal-option.js +166 -1
- package/components/bal-segment.js +27 -10
- package/components/bal-select-option.js +1 -45
- package/components/bal-select-option2.js +47 -0
- package/components/bal-select.js +1 -847
- package/components/bal-select2.js +849 -0
- package/components/bal-tabs2.js +67 -35
- package/components/helpers.js +1 -1
- package/components/index.js +5 -304
- package/components/initialize.js +303 -0
- package/components/keyboard.helpers.js +1 -1
- package/components/resize.decorator.js +5 -5
- package/components/swiper.util.js +1 -18
- package/components/tokens.esm.js +1 -1
- package/components/visibility.decorator.js +88 -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-10ebc871f4.system.entry.js → p-0640709738.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-079850e6.system.js +1 -0
- package/dist/baloise-design-system/p-0b8169c8.js +1 -0
- package/dist/baloise-design-system/p-0bcf20ca69.entry.js +1 -0
- package/dist/baloise-design-system/{p-24e594cd49.entry.js → p-0c3b2d6c8e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6b79e568.js → p-0d7b7182.js} +1 -1
- package/dist/baloise-design-system/{p-46b7cb48d1.entry.js → p-0dd411c03e.entry.js} +1 -1
- package/dist/baloise-design-system/p-0e323fe0.system.js +1 -1
- package/dist/baloise-design-system/{p-c13b1376.system.js → p-0f397293.system.js} +1 -1
- package/dist/baloise-design-system/{p-ff7903eb.js → p-12edf09f.js} +1 -1
- package/dist/baloise-design-system/{p-770f4365f6.system.entry.js → p-14c3418170.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ba4c1ed8a8.entry.js → p-1b11517535.entry.js} +1 -1
- package/dist/baloise-design-system/p-1c191e7d.js +1 -0
- package/dist/baloise-design-system/{p-56cf1ab1.system.js → p-1d22490c.system.js} +1 -1
- package/dist/baloise-design-system/{p-97cd0b900d.system.entry.js → p-1df848f9fc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e099fd9574.entry.js → p-28f96ad58b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e0377a6d84.entry.js → p-32faec4f65.entry.js} +1 -1
- package/dist/baloise-design-system/{p-52cad6cf9f.entry.js → p-36db598b9c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a71cc6d652.entry.js → p-36fe1faedd.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5b85dec39b.system.entry.js → p-38ca9dfde3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-54ce8c3c.js → p-3980a0a4.js} +1 -1
- package/dist/baloise-design-system/{p-47d7e166.system.js → p-3a1bf825.system.js} +1 -1
- package/dist/baloise-design-system/{p-ccd2ef1106.entry.js → p-3bd47497b5.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0c28f0a46f.system.entry.js → p-3d5dc774f4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-878cb7914d.entry.js → p-41931a0925.entry.js} +1 -1
- package/dist/baloise-design-system/{p-16baa62182.system.entry.js → p-440f0ed2a6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-37f892f6dc.entry.js → p-448f3dcc96.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2abbd888.js → p-45b89d22.js} +1 -1
- package/dist/baloise-design-system/p-45e4eac2d1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-498c20ac2a.system.entry.js → p-4b7fd117bc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0933f23da2.system.entry.js → p-4c030e87cf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cad154ad.js → p-4e9084dc.js} +1 -1
- package/dist/baloise-design-system/{p-0400a0cd.system.js → p-55269db4.system.js} +1 -1
- package/dist/baloise-design-system/{p-b77d63ca25.entry.js → p-5591d69c49.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4a80e2c1.system.js → p-56c370cb.system.js} +1 -1
- package/dist/baloise-design-system/p-58d2a0b5.system.js +1 -0
- package/dist/baloise-design-system/{p-27a8f7d1e4.system.entry.js → p-5b93e0df0c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9618956a56.system.entry.js → p-5d2479f2ea.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1334e37be0.system.entry.js → p-5f234e78f6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8360204072.entry.js → p-62251008b0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c642582c09.system.entry.js → p-66df17135c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-6724721b32.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1ae4dca673.system.entry.js → p-6e6f2f3713.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f7cbcbdbfa.system.entry.js → p-6f7ae58c42.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-932a19ea57.entry.js → p-7449aea98b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3df52a1f.js → p-744daf78.js} +1 -1
- package/dist/baloise-design-system/{p-6cdd068206.system.entry.js → p-769dd49917.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-761cb0e801.system.entry.js → p-79554c4acd.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9db35d91.js → p-7a6a128f.js} +1 -1
- package/dist/baloise-design-system/{p-85479ae3cf.system.entry.js → p-826df305a1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-953cc30ae9.system.entry.js → p-8387007c23.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9ad648deea.system.entry.js → p-85e3b067cf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-524edfe610.system.entry.js → p-87458c9059.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8782ba61.system.js +1 -0
- package/dist/baloise-design-system/{p-b1d0256f19.system.entry.js → p-899bc0be9d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f2c398a3.system.js → p-89aaadaf.system.js} +1 -1
- package/dist/baloise-design-system/{p-2a8e0e7149.entry.js → p-8a47461794.entry.js} +1 -1
- package/dist/baloise-design-system/{p-60f5e5faa6.entry.js → p-8b386e9117.entry.js} +1 -1
- package/dist/baloise-design-system/{p-af0f549439.entry.js → p-8baa40b8d9.entry.js} +1 -1
- package/dist/baloise-design-system/p-8c24fdcf6c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-dc6d33fc89.entry.js → p-8d52145b77.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e21ccd9856.entry.js → p-921b0836e1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fabb559661.entry.js → p-96780bdefd.entry.js} +1 -1
- package/dist/baloise-design-system/p-98ef262c8c.entry.js +1 -0
- package/dist/baloise-design-system/{p-7256aa5d97.entry.js → p-9b2657ef04.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2db0f14a2d.system.entry.js → p-a1952399c3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8227e41299.entry.js → p-a6ff014e4c.entry.js} +1 -1
- package/dist/baloise-design-system/p-ac8a545a5d.entry.js +1 -0
- package/dist/baloise-design-system/p-ad5039de.system.js +1 -0
- package/dist/baloise-design-system/{p-b0a4d40a.js → p-af05a53e.js} +1 -1
- package/dist/baloise-design-system/p-b11c8e09e1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-bcbc8278e2.system.entry.js → p-b1c33848fa.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cd9be615a4.entry.js → p-b4576f5814.entry.js} +1 -1
- package/dist/baloise-design-system/{p-18267b1371.system.entry.js → p-b55c42a4a9.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c0e04c2072.system.entry.js → p-bfa5f3ae60.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-c0397a3faa.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c3877f26cd.entry.js → p-c26fb79884.entry.js} +1 -1
- package/dist/baloise-design-system/p-c4088d90.js +1 -0
- package/dist/baloise-design-system/{p-e430294632.entry.js → p-c487d3770e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-97f3a682.system.js → p-c6a673f7.system.js} +1 -1
- package/dist/baloise-design-system/{p-ed32b0b9.system.js → p-c6dfe80e.system.js} +1 -1
- package/dist/baloise-design-system/{p-39d3eeef8e.entry.js → p-c844e6fbc9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-96122c3e5b.entry.js → p-c8bd61c717.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bb7183cd00.entry.js → p-c8db6fb15f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-455872a1.system.js → p-c9b8e360.system.js} +1 -1
- package/dist/baloise-design-system/{p-936070bf.system.js → p-cb045ca0.system.js} +1 -1
- package/dist/baloise-design-system/{p-713640e3ac.system.entry.js → p-cb3920cc26.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-73bec757.js → p-cc35663d.js} +1 -1
- package/dist/baloise-design-system/{p-81894fe8.js → p-cc8cfbf3.js} +1 -1
- package/dist/baloise-design-system/{p-81a3bee001.entry.js → p-d0066a5950.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8f217b03.system.js → p-d1b12bcd.system.js} +1 -1
- package/dist/baloise-design-system/{p-6933b37a08.entry.js → p-d306ec28cf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-67d61a81.js → p-d516d3b1.js} +1 -1
- package/dist/baloise-design-system/{p-42f532a0a8.entry.js → p-d568852b4c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-58a0e8df48.entry.js → p-d60b2e3878.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a2090a9d.system.js → p-d9b32333.system.js} +1 -1
- package/dist/baloise-design-system/{p-90a9f56d71.system.entry.js → p-ddcc5387b5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7cb2ead5.system.js → p-df35ddb8.system.js} +1 -1
- package/dist/baloise-design-system/{p-f7f06d0340.entry.js → p-e283e1cf22.entry.js} +1 -1
- package/dist/baloise-design-system/{p-356f75fd58.system.entry.js → p-e2c3dde206.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-31b6055d92.system.entry.js → p-e3b0312116.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-e3b84ed330.entry.js +1 -0
- package/dist/baloise-design-system/{p-90a51218.js → p-e3c1d653.js} +1 -1
- package/dist/baloise-design-system/p-e53217f8.js +1 -1
- package/dist/baloise-design-system/p-e573491b.system.js +1 -0
- package/dist/baloise-design-system/{p-2e830170.system.js → p-e7150a50.system.js} +1 -1
- package/dist/baloise-design-system/{p-b96fd49d.system.js → p-e7d20c82.system.js} +1 -1
- package/dist/baloise-design-system/p-e9445f4362.entry.js +1 -0
- package/dist/baloise-design-system/{p-3541dd16.js → p-ebf5cc68.js} +1 -1
- package/dist/baloise-design-system/p-ee379377.js +1 -0
- package/dist/baloise-design-system/{p-657a3eb3ee.system.entry.js → p-ee53e7c9f6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dbc7c601d3.entry.js → p-f0200d8f09.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ff46a92a47.system.entry.js → p-f089f4c8c8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-66d49670b0.system.entry.js → p-f35275e46a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-19162db1a6.system.entry.js → p-f47bafc866.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-47de946676.system.entry.js → p-f5d884a6fa.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-296c7825b7.entry.js → p-f5e11c86e5.entry.js} +1 -1
- package/dist/baloise-design-system/{p-21f87590.js → p-f64319f1.js} +1 -1
- package/dist/baloise-design-system/{p-d0e23ec9f1.entry.js → p-f6f3d8cad0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-18ce5177f9.entry.js → p-f8ca0ec73a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-87b8b65bf6.system.entry.js → p-fba0f8c711.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bb0a588d09.system.entry.js → p-fff8faa67f.system.entry.js} +1 -1
- package/dist/cjs/animation.decorator-d160ba91.js +77 -0
- package/dist/cjs/app-globals-25e25924.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +2 -2
- package/dist/cjs/bal-app.cjs.entry.js +1 -1
- package/dist/cjs/bal-button_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +22 -15
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +3 -3
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -2
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-date.cjs.entry.js +3 -3
- package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/bal-field_5.cjs.entry.js +2 -2
- package/dist/cjs/bal-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/bal-footer.cjs.entry.js +1 -1
- package/dist/cjs/bal-form.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +5 -5
- package/dist/cjs/bal-input-slider.cjs.entry.js +2 -2
- package/dist/cjs/bal-input-stepper.cjs.entry.js +2 -2
- package/dist/cjs/bal-input.cjs.entry.js +2 -2
- package/dist/cjs/bal-list_8.cjs.entry.js +5 -5
- package/dist/cjs/bal-logo.cjs.entry.js +4 -4
- package/dist/cjs/bal-modal_3.cjs.entry.js +2 -2
- package/dist/cjs/bal-nav_8.cjs.entry.js +6 -6
- package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
- package/dist/cjs/bal-number-input.cjs.entry.js +2 -2
- package/dist/cjs/bal-option_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +4 -4
- package/dist/cjs/bal-popup.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +5 -5
- package/dist/cjs/bal-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/bal-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-segment_2.cjs.entry.js +31 -14
- package/dist/cjs/bal-select_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +6 -6
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +45 -31
- package/dist/cjs/bal-textarea.cjs.entry.js +2 -2
- package/dist/cjs/bal-time-input.cjs.entry.js +2 -2
- package/dist/cjs/bal-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-e22cc15e.js → breakpoints.decorator-cfbd4db9.js} +1 -1
- package/dist/cjs/{breakpoints.subject-5f803b3c.js → breakpoints.subject-7caa8c48.js} +2 -2
- package/dist/cjs/{element-states.decorator-e2bc15ed.js → element-states.decorator-f79681aa.js} +1 -1
- package/dist/cjs/{floating-ui-24577c09.js → floating-ui-5cc3a363.js} +1 -1
- package/dist/cjs/{focus.decorator-b93456af.js → focus.decorator-e6050e24.js} +1 -1
- package/dist/cjs/{form-input-e4fdf58e.js → form-input-be32df30.js} +1 -1
- package/dist/cjs/{app-globals-a3f2765f.js → global-85ebe098.js} +2 -4
- package/dist/cjs/{helpers-94660ab2.js → helpers-240da822.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/initialize-367b85e5.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{mutation.decorator-a000b7ef.js → mutation.decorator-249a9606.js} +1 -1
- package/dist/cjs/{overlays-4c465543.js → overlays-e408bbaf.js} +1 -1
- package/dist/cjs/{resize.decorator-62d31afa.js → resize.decorator-ebed89a1.js} +5 -5
- package/dist/cjs/{swipe.decorator-447ae00e.js → swipe.decorator-8ff8dd2c.js} +1 -1
- package/dist/cjs/{swipe.subject-6deb82da.js → swipe.subject-00bf8c8f.js} +1 -1
- package/dist/cjs/{swiper.util-abdf50f1.js → swiper.util-ef01dd7a.js} +3 -20
- package/dist/cjs/{tokens.esm-e91514ff.js → tokens.esm-53682e74.js} +1 -1
- package/dist/cjs/visibility.decorator-dc8cec8a.js +90 -0
- package/dist/cjs/{window-resize.decorator-17c9b489.js → window-resize.decorator-b5708580.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-carousel/bal-carousel.css +1 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +11 -4
- package/dist/collection/components/bal-hint/bal-hint.css +1 -1
- package/dist/collection/components/bal-segment/bal-segment.js +25 -14
- package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +33 -31
- package/dist/collection/components/bal-tabs/components/tab-select.js +2 -2
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
- package/dist/collection/utils/animation/animation.decorator.js +23 -0
- package/dist/collection/utils/animation/animation.interfaces.js +1 -0
- package/dist/collection/utils/animation/animation.listener.js +30 -0
- package/dist/collection/utils/animation/animation.subject.js +20 -0
- package/dist/collection/utils/animation/index.js +2 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/helpers.js +1 -1
- package/dist/collection/utils/resize/resize.listener.js +4 -4
- package/dist/collection/utils/resize/resize.subject.js +2 -1
- package/dist/collection/utils/swiper/controls/dot-control.js +1 -1
- package/dist/collection/utils/swiper/swiper.util.js +0 -17
- package/dist/collection/utils/visibility/index.js +2 -0
- package/dist/collection/utils/visibility/visibility.decorator.js +23 -0
- package/dist/collection/utils/visibility/visibility.interfaces.js +1 -0
- package/dist/collection/utils/visibility/visibility.listener.js +41 -0
- package/dist/collection/utils/visibility/visibility.subject.js +23 -0
- package/dist/esm/animation.decorator-903bd4d2.js +75 -0
- package/dist/esm/app-globals-83570026.js +5 -0
- package/dist/esm/bal-accordion_4.entry.js +2 -2
- package/dist/esm/bal-app.entry.js +1 -1
- package/dist/esm/bal-button_2.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +22 -15
- package/dist/esm/bal-checkbox-button.entry.js +3 -3
- package/dist/esm/bal-checkbox_2.entry.js +4 -4
- package/dist/esm/bal-date-calendar-cell.entry.js +2 -2
- package/dist/esm/bal-date-calendar_2.entry.js +4 -4
- package/dist/esm/bal-date.entry.js +3 -3
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-dropdown.entry.js +3 -3
- package/dist/esm/bal-field_5.entry.js +2 -2
- package/dist/esm/bal-file-upload.entry.js +2 -2
- package/dist/esm/bal-footer.entry.js +1 -1
- package/dist/esm/bal-form.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +5 -5
- package/dist/esm/bal-input-slider.entry.js +2 -2
- package/dist/esm/bal-input-stepper.entry.js +2 -2
- package/dist/esm/bal-input.entry.js +2 -2
- package/dist/esm/bal-list_8.entry.js +5 -5
- package/dist/esm/bal-logo.entry.js +4 -4
- package/dist/esm/bal-modal_3.entry.js +2 -2
- package/dist/esm/bal-nav_8.entry.js +6 -6
- package/dist/esm/bal-navbar_5.entry.js +4 -4
- package/dist/esm/bal-number-input.entry.js +2 -2
- package/dist/esm/bal-option_2.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +4 -4
- package/dist/esm/bal-popup.entry.js +3 -3
- package/dist/esm/bal-progress-bar.entry.js +5 -5
- package/dist/esm/bal-radio-button.entry.js +3 -3
- package/dist/esm/bal-radio_2.entry.js +4 -4
- package/dist/esm/bal-segment_2.entry.js +31 -14
- package/dist/esm/bal-select_2.entry.js +2 -2
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +1 -1
- package/dist/esm/bal-stage_6.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +6 -6
- package/dist/esm/bal-tab-item_2.entry.js +45 -31
- package/dist/esm/bal-textarea.entry.js +2 -2
- package/dist/esm/bal-time-input.entry.js +2 -2
- package/dist/esm/bal-tooltip.entry.js +2 -2
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-01f6809e.js → breakpoints.decorator-246ea7b5.js} +1 -1
- package/dist/esm/{breakpoints.subject-cc740608.js → breakpoints.subject-35e43013.js} +2 -2
- package/dist/esm/{element-states.decorator-4cf6af31.js → element-states.decorator-200c85c8.js} +1 -1
- package/dist/esm/{floating-ui-922202fe.js → floating-ui-f930810d.js} +1 -1
- package/dist/esm/{focus.decorator-c2c05d01.js → focus.decorator-a6de858a.js} +1 -1
- package/dist/esm/{form-input-1f3d8337.js → form-input-a5a2b129.js} +1 -1
- package/dist/esm/{app-globals-92fef8fd.js → global-88c7b04e.js} +2 -4
- package/dist/esm/{helpers-32d9e1cc.js → helpers-21ff73ef.js} +2 -2
- package/dist/esm/index.js +7 -7
- package/dist/esm/initialize-22c1bebc.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{mutation.decorator-0c202bed.js → mutation.decorator-07d5ba75.js} +1 -1
- package/dist/esm/{overlays-fa0ccf81.js → overlays-b7ba3a20.js} +1 -1
- package/dist/esm/{resize.decorator-bd416c47.js → resize.decorator-28179d27.js} +5 -5
- package/dist/esm/{swipe.decorator-20f4a0cb.js → swipe.decorator-b46cda4b.js} +1 -1
- package/dist/esm/{swipe.subject-e3db5994.js → swipe.subject-1d0412f1.js} +1 -1
- package/dist/esm/{swiper.util-0589b550.js → swiper.util-21981c17.js} +3 -20
- package/dist/esm/{tokens.esm-ddf14bd4.js → tokens.esm-66f8b8c3.js} +1 -1
- package/dist/esm/visibility.decorator-d0cac6a6.js +88 -0
- package/dist/esm/{window-resize.decorator-b9d3c86c.js → window-resize.decorator-a19d2974.js} +1 -1
- package/dist/esm-es5/animation.decorator-903bd4d2.js +1 -0
- package/dist/esm-es5/app-globals-83570026.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- package/dist/esm-es5/bal-app.entry.js +1 -1
- package/dist/esm-es5/bal-button_2.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-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-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-dropdown.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-form.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.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-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-modal_3.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-option_2.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-button.entry.js +1 -1
- package/dist/esm-es5/bal-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-select_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/bal-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-246ea7b5.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-cc740608.js → breakpoints.subject-35e43013.js} +1 -1
- package/dist/esm-es5/{element-states.decorator-4cf6af31.js → element-states.decorator-200c85c8.js} +1 -1
- package/dist/esm-es5/{floating-ui-922202fe.js → floating-ui-f930810d.js} +1 -1
- package/dist/esm-es5/{focus.decorator-c2c05d01.js → focus.decorator-a6de858a.js} +1 -1
- package/dist/esm-es5/{form-input-1f3d8337.js → form-input-a5a2b129.js} +1 -1
- package/dist/esm-es5/global-88c7b04e.js +1 -0
- package/dist/esm-es5/{helpers-32d9e1cc.js → helpers-21ff73ef.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-22c1bebc.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{mutation.decorator-0c202bed.js → mutation.decorator-07d5ba75.js} +1 -1
- package/dist/esm-es5/{overlays-fa0ccf81.js → overlays-b7ba3a20.js} +1 -1
- package/dist/esm-es5/{resize.decorator-bd416c47.js → resize.decorator-28179d27.js} +1 -1
- package/dist/esm-es5/{swipe.decorator-20f4a0cb.js → swipe.decorator-b46cda4b.js} +1 -1
- package/dist/esm-es5/{swipe.subject-e3db5994.js → swipe.subject-1d0412f1.js} +1 -1
- package/dist/esm-es5/swiper.util-21981c17.js +1 -0
- package/dist/esm-es5/visibility.decorator-d0cac6a6.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-b9d3c86c.js → window-resize.decorator-a19d2974.js} +1 -1
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +3 -2
- package/dist/types/components/bal-segment/bal-segment.d.ts +5 -2
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +5 -3
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +37 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/utils/animation/animation.decorator.d.ts +3 -0
- package/dist/types/utils/animation/animation.interfaces.d.ts +7 -0
- package/dist/types/utils/animation/animation.listener.d.ts +9 -0
- package/dist/types/utils/animation/animation.subject.d.ts +9 -0
- package/dist/types/utils/animation/index.d.ts +2 -0
- package/dist/types/utils/helpers.d.ts +1 -1
- package/dist/types/utils/swiper/swiper.util.d.ts +0 -1
- package/dist/types/utils/visibility/index.d.ts +2 -0
- package/dist/types/utils/visibility/visibility.decorator.d.ts +3 -0
- package/dist/types/utils/visibility/visibility.interfaces.d.ts +4 -0
- package/dist/types/utils/visibility/visibility.listener.d.ts +9 -0
- package/dist/types/utils/visibility/visibility.subject.d.ts +9 -0
- package/package.json +7 -7
- package/components/bal-dropdown2.js +0 -773
- package/components/bal-option2.js +0 -168
- package/dist/baloise-design-system/p-12ff7815.js +0 -1
- package/dist/baloise-design-system/p-288461e687.system.entry.js +0 -1
- package/dist/baloise-design-system/p-349d1c26c6.entry.js +0 -1
- package/dist/baloise-design-system/p-39dba60e75.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5622c208.system.js +0 -1
- package/dist/baloise-design-system/p-70f7b546.system.js +0 -1
- package/dist/baloise-design-system/p-78ba217818.entry.js +0 -1
- package/dist/baloise-design-system/p-7b6c84c359.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b3e4339305.entry.js +0 -1
- package/dist/baloise-design-system/p-ef436fd645.system.entry.js +0 -1
- package/dist/baloise-design-system/p-f67047f5ce.entry.js +0 -1
- package/dist/esm-es5/app-globals-92fef8fd.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-01f6809e.js +0 -1
- package/dist/esm-es5/swiper.util-0589b550.js +0 -1
- /package/dist/baloise-design-system/{p-c9bb496a.system.js → p-6f8e0ebc.system.js} +0 -0
- /package/dist/baloise-design-system/{p-1837eab3.js → p-a2ec67f5.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-ddf14bd4.js → tokens.esm-66f8b8c3.js} +0 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import * as balIcons from "../../../../../../icons/src/index";
|
|
3
|
+
import { updateBalIcons } from "../../../utils/config";
|
|
4
|
+
import { balBrowser } from "../../../utils/browser";
|
|
5
|
+
import globalScript from "../../../global";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export class DocApp {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.logComponents = '';
|
|
12
|
+
this.logLifecycle = true;
|
|
13
|
+
this.logEvents = true;
|
|
14
|
+
this.logRender = true;
|
|
15
|
+
this.logCustom = true;
|
|
16
|
+
this.stickyFooter = false;
|
|
17
|
+
this.region = undefined;
|
|
18
|
+
this.language = undefined;
|
|
19
|
+
this.animated = true;
|
|
20
|
+
}
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
globalScript();
|
|
23
|
+
updateBalIcons(balIcons);
|
|
24
|
+
}
|
|
25
|
+
componentDidRender() {
|
|
26
|
+
const logConfig = {
|
|
27
|
+
components: this.logComponents
|
|
28
|
+
.split(',')
|
|
29
|
+
.map(c => c.trim())
|
|
30
|
+
.filter(c => c !== ''),
|
|
31
|
+
lifecycle: this.logLifecycle,
|
|
32
|
+
event: this.logEvents,
|
|
33
|
+
render: this.logRender,
|
|
34
|
+
custom: this.logCustom,
|
|
35
|
+
};
|
|
36
|
+
if (balBrowser.hasWindow) {
|
|
37
|
+
if (this.logComponents) {
|
|
38
|
+
;
|
|
39
|
+
window.BaloiseDesignSystem.config.logger = logConfig;
|
|
40
|
+
}
|
|
41
|
+
if (this.region) {
|
|
42
|
+
;
|
|
43
|
+
window.BaloiseDesignSystem.config.region = this.region;
|
|
44
|
+
}
|
|
45
|
+
if (this.language) {
|
|
46
|
+
;
|
|
47
|
+
window.BaloiseDesignSystem.config.language = this.language;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return (h(Host, { key: 'c86b106e773e7f16451b7cc0767907b48746919b' }, h("bal-app", { key: '1f8de4c0b71fe89f6e3704010271ee499ef5e05c', animated: this.animated }, h("div", { key: 'a58a3eefd8969e481a4950d6dd53a33cfb79c59b', class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", { key: 'c80c4b5bdfeb9f002831ad44911ade2a2b3fb021' })))));
|
|
53
|
+
}
|
|
54
|
+
static get is() { return "bal-doc-app"; }
|
|
55
|
+
static get originalStyleUrls() {
|
|
56
|
+
return {
|
|
57
|
+
"$": ["bal-doc-app.sass"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
static get styleUrls() {
|
|
61
|
+
return {
|
|
62
|
+
"$": ["bal-doc-app.css"]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static get properties() {
|
|
66
|
+
return {
|
|
67
|
+
"logComponents": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false,
|
|
83
|
+
"attribute": "log-components",
|
|
84
|
+
"reflect": false,
|
|
85
|
+
"defaultValue": "''"
|
|
86
|
+
},
|
|
87
|
+
"logLifecycle": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "boolean",
|
|
92
|
+
"resolved": "boolean",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
},
|
|
101
|
+
"getter": false,
|
|
102
|
+
"setter": false,
|
|
103
|
+
"attribute": "log-lifecycle",
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"defaultValue": "true"
|
|
106
|
+
},
|
|
107
|
+
"logEvents": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"getter": false,
|
|
122
|
+
"setter": false,
|
|
123
|
+
"attribute": "log-events",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "true"
|
|
126
|
+
},
|
|
127
|
+
"logRender": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "boolean",
|
|
132
|
+
"resolved": "boolean",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"getter": false,
|
|
142
|
+
"setter": false,
|
|
143
|
+
"attribute": "log-render",
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"defaultValue": "true"
|
|
146
|
+
},
|
|
147
|
+
"logCustom": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "boolean",
|
|
152
|
+
"resolved": "boolean",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"attribute": "log-custom",
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "true"
|
|
166
|
+
},
|
|
167
|
+
"stickyFooter": {
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "boolean",
|
|
172
|
+
"resolved": "boolean",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": ""
|
|
180
|
+
},
|
|
181
|
+
"getter": false,
|
|
182
|
+
"setter": false,
|
|
183
|
+
"attribute": "sticky-footer",
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"defaultValue": "false"
|
|
186
|
+
},
|
|
187
|
+
"region": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": ""
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"attribute": "region",
|
|
204
|
+
"reflect": false
|
|
205
|
+
},
|
|
206
|
+
"language": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "string",
|
|
211
|
+
"resolved": "string",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": true,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": ""
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"attribute": "language",
|
|
223
|
+
"reflect": false
|
|
224
|
+
},
|
|
225
|
+
"animated": {
|
|
226
|
+
"type": "boolean",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "boolean",
|
|
230
|
+
"resolved": "boolean",
|
|
231
|
+
"references": {}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": false,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
|
|
238
|
+
},
|
|
239
|
+
"getter": false,
|
|
240
|
+
"setter": false,
|
|
241
|
+
"attribute": "animated",
|
|
242
|
+
"reflect": true,
|
|
243
|
+
"defaultValue": "true"
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BalAnimationSubject } from "./animation.subject";
|
|
2
|
+
export function ListenToAnimation() {
|
|
3
|
+
return function (target, _propertyKey, _descriptor) {
|
|
4
|
+
const { connectedCallback, componentDidLoad, disconnectedCallback } = target;
|
|
5
|
+
target.connectedCallback = function () {
|
|
6
|
+
if (!this._balAnimationSubject) {
|
|
7
|
+
this._balAnimationSubject = new BalAnimationSubject();
|
|
8
|
+
}
|
|
9
|
+
return connectedCallback && connectedCallback.call(this);
|
|
10
|
+
};
|
|
11
|
+
target.componentDidLoad = function () {
|
|
12
|
+
this._balAnimationSubject.attach(this);
|
|
13
|
+
return componentDidLoad && componentDidLoad.call(this);
|
|
14
|
+
};
|
|
15
|
+
target.disconnectedCallback = function () {
|
|
16
|
+
if (this._balAnimationSubject) {
|
|
17
|
+
this._balAnimationSubject.detach();
|
|
18
|
+
this._balAnimationSubject = undefined;
|
|
19
|
+
}
|
|
20
|
+
return disconnectedCallback && disconnectedCallback.call(this);
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { addEventListener, removeEventListener, debounce, isChildOfEventTarget } from "../helpers";
|
|
2
|
+
import { ListenerAbstract } from "../types/listener";
|
|
3
|
+
export class BalAnimationListener extends ListenerAbstract {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.debouncedNotify = debounce(target => this.notify({ target }), 42);
|
|
7
|
+
this.callbackWillAnimate = (ev) => {
|
|
8
|
+
isChildOfEventTarget(ev, this.el, target => this.debouncedNotify(target));
|
|
9
|
+
};
|
|
10
|
+
this.callbackDidAnimate = (ev) => {
|
|
11
|
+
isChildOfEventTarget(ev, this.el, target => this.debouncedNotify(target));
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
connect(el) {
|
|
15
|
+
super.connect(el);
|
|
16
|
+
const win = window;
|
|
17
|
+
if (win) {
|
|
18
|
+
addEventListener(win, 'balWillAnimate', this.callbackWillAnimate, { passive: true });
|
|
19
|
+
addEventListener(win, 'balDidAnimate', this.callbackDidAnimate, { passive: true });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
disconnect() {
|
|
23
|
+
super.disconnect();
|
|
24
|
+
const win = window;
|
|
25
|
+
if (win) {
|
|
26
|
+
removeEventListener(win, 'balWillAnimate', this.callbackWillAnimate);
|
|
27
|
+
removeEventListener(win, 'balDidAnimate', this.callbackDidAnimate);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BalAnimationListener } from "./animation.listener";
|
|
2
|
+
import { SingleSubject } from "../types/signal";
|
|
3
|
+
export class BalAnimationSubject extends SingleSubject {
|
|
4
|
+
constructor() {
|
|
5
|
+
super((observer, data) => {
|
|
6
|
+
observer.animationListener(data);
|
|
7
|
+
});
|
|
8
|
+
this.listener = new BalAnimationListener();
|
|
9
|
+
}
|
|
10
|
+
attach(observer) {
|
|
11
|
+
super.attach(observer);
|
|
12
|
+
this.listener.connect(observer.el);
|
|
13
|
+
this.listener.add(info => super.notify(info));
|
|
14
|
+
}
|
|
15
|
+
detach() {
|
|
16
|
+
super.detach();
|
|
17
|
+
this.listener.disconnect();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export const balAnimationSubject = new BalAnimationSubject();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by .build/version.js
|
|
2
|
-
export const VERSION = '17.2.
|
|
2
|
+
export const VERSION = '17.2.5-nightly.20250115';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { balBrowser } from "../browser";
|
|
2
|
-
import { debounce
|
|
2
|
+
import { debounce } from "../helpers";
|
|
3
3
|
import { ListenerAbstract } from "../types/listener";
|
|
4
4
|
export class BalResizeListener extends ListenerAbstract {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
7
|
-
this.debouncedNotify = debounce((info) => this.notify(info),
|
|
7
|
+
this.debouncedNotify = debounce((info) => this.notify(info), 42);
|
|
8
8
|
}
|
|
9
9
|
connect(el) {
|
|
10
10
|
var _a;
|
|
@@ -31,10 +31,10 @@ export class BalResizeListener extends ListenerAbstract {
|
|
|
31
31
|
const widthChanged = this.lastWidth !== entry.contentRect.width;
|
|
32
32
|
const heightChanged = this.lastHeight !== entry.contentRect.height;
|
|
33
33
|
if (widthChanged || heightChanged) {
|
|
34
|
-
|
|
34
|
+
this.debouncedNotify({
|
|
35
35
|
width: widthChanged,
|
|
36
36
|
height: heightChanged,
|
|
37
|
-
})
|
|
37
|
+
});
|
|
38
38
|
this.lastWidth = entry.contentRect.width;
|
|
39
39
|
this.lastHeight = entry.contentRect.height;
|
|
40
40
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { rIC } from "../helpers";
|
|
1
2
|
import { SingleSubject } from "../types/signal";
|
|
2
3
|
import { BalResizeListener } from "./resize.listener";
|
|
3
4
|
export class BalResizeSubject extends SingleSubject {
|
|
4
5
|
constructor() {
|
|
5
6
|
super((observer, data) => {
|
|
6
|
-
observer.resizeListener(data);
|
|
7
|
+
rIC(() => observer.resizeListener(data));
|
|
7
8
|
});
|
|
8
9
|
this.listener = new BalResizeListener();
|
|
9
10
|
}
|
|
@@ -13,5 +13,5 @@ export const DotControl = ({ value, items, containerId, onControlChange }) => {
|
|
|
13
13
|
}
|
|
14
14
|
onControlChange(items[selectedValue]);
|
|
15
15
|
};
|
|
16
|
-
return (h("div", { class: Object.assign(Object.assign({}, controls.class()), controls.modifier('
|
|
16
|
+
return (h("div", { class: Object.assign(Object.assign({}, controls.class()), controls.modifier('dots').class()) }, h("bal-pagination", { "aria-controls": containerId, interface: "small", value: value + 1, totalPages: items.length, onBalChange: onChange })));
|
|
17
17
|
};
|
|
@@ -114,23 +114,6 @@ export class SwiperUtil {
|
|
|
114
114
|
addEventListener(window, 'touchstart', this.pointerDown);
|
|
115
115
|
addEventListener(window, 'mousedown', this.pointerDown);
|
|
116
116
|
}
|
|
117
|
-
componentDidLoad() {
|
|
118
|
-
const observer = new IntersectionObserver(entries => {
|
|
119
|
-
entries.forEach(entry => {
|
|
120
|
-
if (entry.isIntersecting) {
|
|
121
|
-
this.notifyChange();
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}, {
|
|
125
|
-
root: null, // Use the viewport as the container
|
|
126
|
-
threshold: 0.5, // Trigger when 50% of the element is visible
|
|
127
|
-
});
|
|
128
|
-
// Target the element you want to observe
|
|
129
|
-
const targetElement = this.component.el;
|
|
130
|
-
if (targetElement) {
|
|
131
|
-
observer.observe(targetElement);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
117
|
disconnectedCallback() {
|
|
135
118
|
removeEventListener(window, 'keydown', this.listenToKeyDown);
|
|
136
119
|
removeEventListener(this.component.el, 'focusin', this.updateFocus);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BalVisibilitySubject } from "./visibility.subject";
|
|
2
|
+
export function ListenToVisibility() {
|
|
3
|
+
return function (target, _propertyKey, _descriptor) {
|
|
4
|
+
const { connectedCallback, componentDidLoad, disconnectedCallback } = target;
|
|
5
|
+
target.connectedCallback = function () {
|
|
6
|
+
if (!this._balVisibilitySubject) {
|
|
7
|
+
this._balVisibilitySubject = new BalVisibilitySubject();
|
|
8
|
+
}
|
|
9
|
+
return connectedCallback && connectedCallback.call(this);
|
|
10
|
+
};
|
|
11
|
+
target.componentDidLoad = function () {
|
|
12
|
+
this._balVisibilitySubject.attach(this);
|
|
13
|
+
return componentDidLoad && componentDidLoad.call(this);
|
|
14
|
+
};
|
|
15
|
+
target.disconnectedCallback = function () {
|
|
16
|
+
if (this._balVisibilitySubject) {
|
|
17
|
+
this._balVisibilitySubject.detach();
|
|
18
|
+
this._balVisibilitySubject = undefined;
|
|
19
|
+
}
|
|
20
|
+
return disconnectedCallback && disconnectedCallback.call(this);
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { deepReady, waitAfterFramePaint } from "../helpers";
|
|
2
|
+
import { ListenerAbstract } from "../types/listener";
|
|
3
|
+
export class BalVisibilityListener extends ListenerAbstract {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.waitAfterFramePrint = false;
|
|
7
|
+
this.intersectionObserver = undefined;
|
|
8
|
+
this.intersectionCallback = (records) => {
|
|
9
|
+
const isIntersecting = records.some(record => record.isIntersecting);
|
|
10
|
+
if (isIntersecting) {
|
|
11
|
+
this.notify();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
async connect(el) {
|
|
16
|
+
super.connect(el);
|
|
17
|
+
if (typeof IntersectionObserver === 'undefined') {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (this.waitAfterFramePrint) {
|
|
21
|
+
await deepReady(el);
|
|
22
|
+
await waitAfterFramePaint();
|
|
23
|
+
}
|
|
24
|
+
this.destroyMutationObserver();
|
|
25
|
+
this.intersectionObserver = new IntersectionObserver(this.intersectionCallback, {
|
|
26
|
+
root: null, // Use the viewport as the container
|
|
27
|
+
threshold: 0.5, // Trigger when 50% of the element is visible
|
|
28
|
+
});
|
|
29
|
+
this.intersectionObserver.observe(el);
|
|
30
|
+
}
|
|
31
|
+
disconnect() {
|
|
32
|
+
super.disconnect();
|
|
33
|
+
this.destroyMutationObserver();
|
|
34
|
+
}
|
|
35
|
+
destroyMutationObserver() {
|
|
36
|
+
if (this.intersectionObserver !== undefined) {
|
|
37
|
+
this.intersectionObserver.disconnect();
|
|
38
|
+
this.intersectionObserver = undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { debounce } from "../helpers";
|
|
2
|
+
import { SingleSubject } from "../types/signal";
|
|
3
|
+
import { BalVisibilityListener } from "./visibility.listener";
|
|
4
|
+
export class BalVisibilitySubject extends SingleSubject {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(observer => {
|
|
7
|
+
observer.visibilityListener();
|
|
8
|
+
});
|
|
9
|
+
this.debouncedNotify = debounce(() => this.notify(), 50);
|
|
10
|
+
this.listener = new BalVisibilityListener();
|
|
11
|
+
}
|
|
12
|
+
attach(observer) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
super.attach(observer);
|
|
15
|
+
(_a = this.listener) === null || _a === void 0 ? void 0 : _a.connect(observer.el);
|
|
16
|
+
(_b = this.listener) === null || _b === void 0 ? void 0 : _b.add(() => this.debouncedNotify());
|
|
17
|
+
}
|
|
18
|
+
detach() {
|
|
19
|
+
var _a;
|
|
20
|
+
super.detach();
|
|
21
|
+
(_a = this.listener) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { k as debounce, q as isChildOfEventTarget, l as addEventListener, r as removeEventListener } from './helpers-21ff73ef.js';
|
|
2
|
+
import { L as ListenerAbstract, a as SingleSubject } from './listener-04842ae9.js';
|
|
3
|
+
|
|
4
|
+
class BalAnimationListener extends ListenerAbstract {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.debouncedNotify = debounce(target => this.notify({ target }), 42);
|
|
8
|
+
this.callbackWillAnimate = (ev) => {
|
|
9
|
+
isChildOfEventTarget(ev, this.el, target => this.debouncedNotify(target));
|
|
10
|
+
};
|
|
11
|
+
this.callbackDidAnimate = (ev) => {
|
|
12
|
+
isChildOfEventTarget(ev, this.el, target => this.debouncedNotify(target));
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
connect(el) {
|
|
16
|
+
super.connect(el);
|
|
17
|
+
const win = window;
|
|
18
|
+
if (win) {
|
|
19
|
+
addEventListener(win, 'balWillAnimate', this.callbackWillAnimate, { passive: true });
|
|
20
|
+
addEventListener(win, 'balDidAnimate', this.callbackDidAnimate, { passive: true });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
disconnect() {
|
|
24
|
+
super.disconnect();
|
|
25
|
+
const win = window;
|
|
26
|
+
if (win) {
|
|
27
|
+
removeEventListener(win, 'balWillAnimate', this.callbackWillAnimate);
|
|
28
|
+
removeEventListener(win, 'balDidAnimate', this.callbackDidAnimate);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class BalAnimationSubject extends SingleSubject {
|
|
34
|
+
constructor() {
|
|
35
|
+
super((observer, data) => {
|
|
36
|
+
observer.animationListener(data);
|
|
37
|
+
});
|
|
38
|
+
this.listener = new BalAnimationListener();
|
|
39
|
+
}
|
|
40
|
+
attach(observer) {
|
|
41
|
+
super.attach(observer);
|
|
42
|
+
this.listener.connect(observer.el);
|
|
43
|
+
this.listener.add(info => super.notify(info));
|
|
44
|
+
}
|
|
45
|
+
detach() {
|
|
46
|
+
super.detach();
|
|
47
|
+
this.listener.disconnect();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
new BalAnimationSubject();
|
|
51
|
+
|
|
52
|
+
function ListenToAnimation() {
|
|
53
|
+
return function (target, _propertyKey, _descriptor) {
|
|
54
|
+
const { connectedCallback, componentDidLoad, disconnectedCallback } = target;
|
|
55
|
+
target.connectedCallback = function () {
|
|
56
|
+
if (!this._balAnimationSubject) {
|
|
57
|
+
this._balAnimationSubject = new BalAnimationSubject();
|
|
58
|
+
}
|
|
59
|
+
return connectedCallback && connectedCallback.call(this);
|
|
60
|
+
};
|
|
61
|
+
target.componentDidLoad = function () {
|
|
62
|
+
this._balAnimationSubject.attach(this);
|
|
63
|
+
return componentDidLoad && componentDidLoad.call(this);
|
|
64
|
+
};
|
|
65
|
+
target.disconnectedCallback = function () {
|
|
66
|
+
if (this._balAnimationSubject) {
|
|
67
|
+
this._balAnimationSubject.detach();
|
|
68
|
+
this._balAnimationSubject = undefined;
|
|
69
|
+
}
|
|
70
|
+
return disconnectedCallback && disconnectedCallback.call(this);
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { ListenToAnimation as L };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8d2a7ce7.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
|
-
import { o as raf, t as transitionEndAsync, p as debounceEvent, w as waitForComponent } from './helpers-
|
|
3
|
+
import { o as raf, t as transitionEndAsync, p as debounceEvent, w as waitForComponent } from './helpers-21ff73ef.js';
|
|
4
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
5
5
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
6
6
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
7
|
-
import { s as stopEventBubbling } from './form-input-
|
|
7
|
+
import { s as stopEventBubbling } from './form-input-a5a2b129.js';
|
|
8
8
|
import { b as isEnterKey, d as isSpaceKey } from './keyboard.helpers-159e517d.js';
|
|
9
9
|
import './browser-a8073d92.js';
|
|
10
10
|
import './icons.constant-a7885631.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-8d
|
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { b as balBrowser } from './browser-a8073d92.js';
|
|
4
4
|
import { b as balDevice } from './device-8c6d2881.js';
|
|
5
|
-
import { k as debounce, n as rIC, m as rOnLoad } from './helpers-
|
|
5
|
+
import { k as debounce, n as rIC, m as rOnLoad } from './helpers-21ff73ef.js';
|
|
6
6
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
7
7
|
import { s as startFocusVisible } from './focus-visible-f0cdd043.js';
|
|
8
8
|
import { b as updateBalAnimated } from './config.utils-6ac6c9bd.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8d2a7ce7.js';
|
|
2
2
|
import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
3
|
-
import { m as rOnLoad } from './helpers-
|
|
3
|
+
import { m as rOnLoad } from './helpers-21ff73ef.js';
|
|
4
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
5
5
|
import './browser-a8073d92.js';
|
|
6
6
|
import './icons.constant-a7885631.js';
|