@baloise/ds-core 16.3.0 → 16.4.0-nightly.20240917
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/README.md +1 -1
- package/components/all.d.ts +6 -0
- package/components/all.js +9 -0
- package/components/bal-accordion-summary.js +12 -2
- package/components/bal-accordion-trigger.js +15 -2
- package/components/bal-app.js +1 -85
- package/components/bal-app2.js +87 -0
- package/components/bal-carousel-item2.js +13 -3
- package/components/bal-carousel2.js +50 -20
- package/components/bal-checkbox-group.js +9 -3
- package/components/bal-checkbox2.js +23 -5
- package/components/bal-close2.js +1 -6
- package/components/bal-content.js +1 -69
- package/{dist/esm/bal-content.entry.js → components/bal-content2.js} +31 -12
- package/components/bal-date.js +1 -1
- package/components/bal-datepicker.js +1 -1
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +260 -0
- package/components/bal-dropdown.js +3 -3
- package/components/bal-file-upload.js +1 -1
- package/components/bal-icon2.js +1 -1
- package/components/bal-label2.js +3 -2
- package/components/bal-list-item-accordion-head2.js +7 -1
- package/components/bal-nav-menu-bar2.js +1 -1
- package/components/bal-nav-menu-flyout2.js +3 -6
- package/components/bal-nav.js +11 -8
- package/components/bal-option-list.js +27 -2
- package/components/bal-pagination2.js +3 -3
- package/components/bal-progress-bar.js +27 -12
- package/components/bal-radio2.js +2 -2
- package/components/bal-segment-item.d.ts +11 -0
- package/components/bal-segment-item.js +203 -0
- package/components/bal-segment.d.ts +11 -0
- package/components/bal-segment.js +337 -0
- package/components/bal-select2.js +1 -1
- package/components/bal-stack2.js +1 -1
- package/components/bal-steps.js +8 -6
- package/components/bal-tab-item.js +10 -2
- package/components/bal-tabs2.js +149 -31
- package/components/breakpoints.subject.js +3 -3
- package/components/index.esm.js +25 -1
- package/components/index.js +5 -289
- package/components/initialize.js +288 -0
- package/components/option.js +4 -1
- package/components/tokens.esm.js +1 -1
- package/components/window-resize.decorator.js +46 -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-03c0e702.js +1 -0
- package/dist/baloise-design-system/{p-1de6b20b1c.system.entry.js → p-06e93c033b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ae28b86fe5.entry.js → p-0ab43941ba.entry.js} +1 -1
- package/dist/baloise-design-system/p-120f1513.js +1 -0
- package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
- package/dist/baloise-design-system/p-17660ffea0.entry.js +1 -0
- package/dist/baloise-design-system/{p-f02ea04390.entry.js → p-17f2b2e25a.entry.js} +1 -1
- package/dist/baloise-design-system/p-18af339b1e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-19d582fb4a.entry.js +1 -0
- package/dist/baloise-design-system/p-1e31a7e4d2.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-b7035c24.system.js → p-261968b2.system.js} +1 -1
- package/dist/baloise-design-system/p-265f9d51c9.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-51c0348938.entry.js → p-2905abdfb8.entry.js} +1 -1
- package/dist/baloise-design-system/p-29ba4f9afe.system.entry.js +1 -0
- package/dist/baloise-design-system/p-2a700c21ae.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-f6599f64b7.entry.js → p-2db4ff4c5b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-39bc49bc3d.entry.js → p-33028eda8b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-692536f9ff.system.entry.js → p-3558e7a64b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-360068a4.system.js +1 -0
- package/dist/baloise-design-system/{p-330b875d9d.system.entry.js → p-3818fa189f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-381fe5557d.entry.js +1 -0
- package/dist/baloise-design-system/{p-f9db454e37.entry.js → p-396898cf27.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1be257c9cd.system.entry.js → p-3bc2f95cf3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-47b18581c7.system.entry.js → p-40628589e1.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-40b5ad07c5.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-4afba8511a.system.entry.js → p-47a8ad4d7a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-976ed5bcf1.entry.js → p-488c4a8ce1.entry.js} +1 -1
- package/dist/baloise-design-system/p-4cdec4da61.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4e8fff8409.entry.js +1 -0
- package/dist/baloise-design-system/p-4f1afa9be1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-d319b257.system.js → p-509b566d.system.js} +1 -1
- package/dist/baloise-design-system/{p-b779742f50.entry.js → p-53c92c2d21.entry.js} +1 -1
- package/dist/baloise-design-system/p-53e98a0f71.entry.js +1 -0
- package/dist/baloise-design-system/{p-cef24f8c62.entry.js → p-547aae9610.entry.js} +1 -1
- package/dist/baloise-design-system/p-54f81c32.js +1 -1
- package/dist/baloise-design-system/{p-6f4a362824.system.entry.js → p-5db0544e97.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d0d06aa690.entry.js → p-6c038bb4ff.entry.js} +1 -1
- package/dist/baloise-design-system/{p-22b041a511.entry.js → p-6c2bf02eb3.entry.js} +1 -1
- package/dist/baloise-design-system/p-6d1b6215.js +1 -0
- package/dist/baloise-design-system/p-6e3a79cce0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-6e88e337.system.js +1 -0
- package/dist/baloise-design-system/p-71588db3.system.js +1 -0
- package/dist/baloise-design-system/p-7291766c.system.js +1 -0
- package/dist/baloise-design-system/{p-ba14aa7026.system.entry.js → p-8080a1192c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-80c011874c.entry.js +1 -0
- package/dist/baloise-design-system/{p-6ceac3e144.system.entry.js → p-8a2f9c316c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8b998a54aa.entry.js +1 -0
- package/dist/baloise-design-system/{p-60f45a7b48.entry.js → p-8c2be8bc00.entry.js} +1 -1
- package/dist/baloise-design-system/p-8de1a12660.entry.js +1 -0
- package/dist/baloise-design-system/{p-8870e1f3e0.system.entry.js → p-8e17b76e7c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-12bcc7da.js → p-9b4da619.js} +1 -1
- package/dist/baloise-design-system/{p-b97d9336a7.system.entry.js → p-9bb8778cdc.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9d051b6527.entry.js +1 -0
- package/dist/baloise-design-system/p-a507ff25cb.system.entry.js +1 -0
- package/dist/baloise-design-system/p-a53f45fab6.entry.js +1 -0
- package/dist/baloise-design-system/{p-ad00d94e7f.entry.js → p-a5ee486a2b.entry.js} +1 -1
- package/dist/baloise-design-system/p-a78d1ca569.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ac800c3208.entry.js +1 -0
- package/dist/baloise-design-system/{p-cf0c50d42a.system.entry.js → p-b0bb64b2b8.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b51665840d.entry.js +1 -0
- package/dist/baloise-design-system/{p-c572e259f4.system.entry.js → p-b570b77884.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-982fa892e8.system.entry.js → p-b8251b8f68.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b87c29c80b.entry.js +1 -0
- package/dist/baloise-design-system/{p-80b45dd4d6.system.entry.js → p-bcb892a723.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-301e753d6f.system.entry.js → p-be0a0f5f7e.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-bee13e834e.entry.js +1 -0
- package/dist/baloise-design-system/p-c240ee50bb.entry.js +1 -0
- package/dist/baloise-design-system/p-c2de2596d1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-3f1c49d0.js → p-caec1f9e.js} +1 -1
- package/dist/baloise-design-system/{p-45e0c0783b.entry.js → p-cafe624e35.entry.js} +1 -1
- package/dist/baloise-design-system/p-cd66014bd1.entry.js +1 -0
- package/dist/baloise-design-system/p-cda868a6a5.entry.js +1 -0
- package/dist/baloise-design-system/{p-a52564d27f.system.entry.js → p-d059465399.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e60c936359.system.entry.js → p-d1c43680a0.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d539c1cf.js +1 -0
- package/dist/baloise-design-system/p-d908780376.system.entry.js +1 -0
- package/dist/baloise-design-system/p-dae1f687.system.js +1 -0
- package/dist/baloise-design-system/{p-3bad0907.system.js → p-de36076c.system.js} +1 -1
- package/dist/baloise-design-system/p-e137e273b7.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-55faac1d.system.js → p-e187b9de.system.js} +1 -1
- package/dist/baloise-design-system/{p-7292c6e1a1.entry.js → p-e542aaeb27.entry.js} +1 -1
- package/dist/baloise-design-system/p-e8ffddeb.js +1 -0
- package/dist/baloise-design-system/{p-9e167705ca.entry.js → p-ecab0d67d5.entry.js} +1 -1
- package/dist/baloise-design-system/{p-94efe2aa.js → p-f5940253.js} +1 -1
- package/dist/baloise-design-system/p-f66ea0e663.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-013b4c72.system.js → p-f959646a.system.js} +1 -1
- package/dist/cjs/app-globals-5fd73c0c.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +29 -4
- package/dist/cjs/bal-carousel_2.cjs.entry.js +60 -24
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +15 -4
- package/dist/cjs/bal-close.cjs.entry.js +1 -6
- package/dist/cjs/{bal-label.cjs.entry.js → bal-content_2.cjs.entry.js} +48 -2
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-date.cjs.entry.js +2 -2
- package/dist/cjs/bal-datepicker.cjs.entry.js +4 -4
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bal-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/bal-footer.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_3.cjs.entry.js +3 -3
- package/dist/cjs/bal-icon.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bal-list_8.cjs.entry.js +12 -4
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +17 -18
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-number-input.cjs.entry.js +1 -1
- package/dist/cjs/bal-option_2.cjs.entry.js +26 -2
- package/dist/cjs/bal-pagination.cjs.entry.js +6 -6
- package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-popup.cjs.entry.js +1 -1
- package/dist/cjs/bal-progress-bar.cjs.entry.js +30 -17
- package/dist/cjs/bal-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-segment-item.cjs.entry.js +156 -0
- package/dist/cjs/bal-segment.cjs.entry.js +319 -0
- package/dist/cjs/bal-select_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-stack.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +10 -9
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +158 -34
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-47fd06b2.js → breakpoints.decorator-77a3b464.js} +1 -1
- package/dist/cjs/{breakpoints.subject-06716a68.js → breakpoints.subject-ae73ae55.js} +4 -4
- package/dist/cjs/{date-3e33b208.js → date-20be7524.js} +1 -1
- package/dist/cjs/{app-globals-ae3a8623.js → global-2562a984.js} +2 -4
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{index.esm-4587dbf0.js → index.esm-54a3d84e.js} +28 -0
- package/dist/cjs/initialize-2a19d091.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{option-c33cf2b8.js → option-4034ca7d.js} +4 -1
- package/dist/cjs/{tokens.esm-dc93a5d7.js → tokens.esm-15025c39.js} +1 -1
- package/dist/cjs/window-resize.decorator-5b9c08d1.js +48 -0
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.css +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +11 -1
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.css +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +14 -1
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +45 -2
- package/dist/collection/components/bal-carousel/bal-carousel.js +76 -13
- package/dist/collection/components/bal-carousel/controls/dot-control.js +2 -2
- package/dist/collection/components/bal-carousel/controls/large-control.js +2 -2
- package/dist/collection/components/bal-carousel/controls/small-control.js +2 -2
- package/dist/collection/components/bal-carousel/controls/tab-control.js +2 -2
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +15 -3
- package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
- package/dist/collection/components/bal-close/bal-close.js +1 -6
- package/dist/collection/components/bal-content/bal-content.css +1 -1
- package/dist/collection/components/bal-content/bal-content.js +1 -1
- package/dist/collection/components/bal-icon/bal-icon.css +1 -1
- package/dist/collection/components/bal-label/bal-label.js +20 -2
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +7 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.css +1 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +24 -6
- package/dist/collection/components/bal-nav/bal-nav.css +1 -1
- package/dist/collection/components/bal-nav/bal-nav.js +5 -2
- 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-link-item.js +3 -3
- package/dist/collection/components/bal-option-list/bal-option-list.js +43 -2
- package/dist/collection/components/bal-pagination/bal-pagination.js +3 -3
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.css +1 -1
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +49 -12
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.css +1 -0
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +332 -0
- package/dist/collection/components/bal-segment/bal-segment.css +1 -0
- package/dist/collection/components/bal-segment/bal-segment.interfaces.js +4 -0
- package/dist/collection/components/bal-segment/bal-segment.js +537 -0
- package/dist/collection/components/bal-segment/bal-segment.types.js +1 -0
- package/dist/collection/components/bal-stack/bal-stack.css +1 -1
- package/dist/collection/components/bal-steps/bal-steps.css +1 -1
- package/dist/collection/components/bal-steps/bal-steps.js +26 -2
- package/dist/collection/components/bal-steps/components/step-button.js +2 -2
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +47 -2
- package/dist/collection/components/bal-tabs/bal-tabs.js +124 -21
- package/dist/collection/components/bal-tabs/components/tab-button.js +18 -6
- package/dist/collection/components/bal-tabs/components/tab-nav.js +3 -3
- 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 +229 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/date/date.spec.js +0 -1
- package/dist/collection/utils/dropdown/option.js +4 -1
- package/dist/collection/utils/dropdown/popup.js +2 -2
- package/dist/collection/utils/resize/index.js +4 -1
- package/dist/collection/utils/resize/window-resize.decorator.js +20 -0
- package/dist/collection/utils/resize/window-resize.interfaces.js +1 -0
- package/dist/collection/utils/resize/window-resize.listener.js +3 -3
- package/dist/collection/utils/resize/window-resize.subject.js +23 -0
- package/dist/collection/utils/string.js +10 -0
- package/dist/collection/utils/string.spec.js +24 -0
- package/dist/esm/app-globals-970bab17.js +5 -0
- package/dist/esm/bal-accordion_4.entry.js +29 -4
- package/dist/esm/bal-carousel_2.entry.js +61 -25
- package/dist/esm/bal-checkbox_2.entry.js +15 -4
- package/dist/esm/bal-close.entry.js +1 -6
- package/dist/esm/{bal-label.entry.js → bal-content_2.entry.js} +48 -3
- package/dist/esm/bal-date-calendar_2.entry.js +2 -2
- package/dist/esm/bal-date.entry.js +2 -2
- package/dist/esm/bal-datepicker.entry.js +4 -4
- package/dist/esm/bal-doc-app.entry.js +227 -0
- package/dist/esm/bal-dropdown.entry.js +4 -4
- package/dist/esm/bal-file-upload.entry.js +1 -1
- package/dist/esm/bal-footer.entry.js +1 -1
- package/dist/esm/bal-hint_3.entry.js +3 -3
- package/dist/esm/bal-icon.entry.js +1 -1
- package/dist/esm/bal-input-stepper.entry.js +1 -1
- package/dist/esm/bal-list_8.entry.js +12 -4
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +17 -18
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-number-input.entry.js +1 -1
- package/dist/esm/bal-option_2.entry.js +26 -2
- package/dist/esm/bal-pagination.entry.js +6 -6
- package/dist/esm/bal-popover_2.entry.js +3 -3
- package/dist/esm/bal-popup.entry.js +1 -1
- package/dist/esm/bal-progress-bar.entry.js +30 -17
- package/dist/esm/bal-radio_2.entry.js +2 -2
- package/dist/esm/bal-segment-item.entry.js +152 -0
- package/dist/esm/bal-segment.entry.js +315 -0
- package/dist/esm/bal-select_2.entry.js +1 -1
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-stack.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +10 -9
- package/dist/esm/bal-tab-item_2.entry.js +159 -35
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-f979fe5c.js → breakpoints.decorator-d55790da.js} +1 -1
- package/dist/esm/{breakpoints.subject-9ea7074e.js → breakpoints.subject-ee89b4ec.js} +4 -4
- package/dist/esm/{date-38a0b208.js → date-aba2d404.js} +1 -1
- package/dist/esm/{app-globals-b0dd0fc4.js → global-63f4bcec.js} +2 -4
- package/dist/esm/{index.esm-83b1f9c4.js → index.esm-76abd8e3.js} +25 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/initialize-e216cfe4.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{option-37cb0282.js → option-01553dab.js} +4 -1
- package/dist/esm/{tokens.esm-7d2734e1.js → tokens.esm-769d0c71.js} +1 -1
- package/dist/esm/window-resize.decorator-dec8dd72.js +46 -0
- package/dist/esm-es5/app-globals-970bab17.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.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_2.entry.js +1 -0
- 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-datepicker.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-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-hint_3.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-stepper.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-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-popover_2.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_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment-item.entry.js +1 -0
- package/dist/esm-es5/bal-segment.entry.js +1 -0
- 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-stack.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/baloise-design-system.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-f979fe5c.js → breakpoints.decorator-d55790da.js} +1 -1
- package/dist/esm-es5/breakpoints.subject-ee89b4ec.js +1 -0
- package/dist/esm-es5/{date-38a0b208.js → date-aba2d404.js} +1 -1
- package/dist/esm-es5/global-63f4bcec.js +1 -0
- package/dist/esm-es5/{index.esm-83b1f9c4.js → index.esm-76abd8e3.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-e216cfe4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/option-01553dab.js +1 -0
- package/dist/esm-es5/window-resize.decorator-dec8dd72.js +1 -0
- package/dist/html.html-data.json +161 -3
- package/dist/types/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.d.ts +1 -0
- package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +1 -0
- package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +6 -0
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +11 -2
- package/dist/types/components/bal-carousel/controls/dot-control.d.ts +1 -0
- package/dist/types/components/bal-carousel/controls/large-control.d.ts +1 -0
- package/dist/types/components/bal-carousel/controls/small-control.d.ts +1 -0
- package/dist/types/components/bal-carousel/controls/tab-control.d.ts +1 -0
- package/dist/types/components/bal-checkbox/bal-checkbox.d.ts +5 -0
- package/dist/types/components/bal-close/bal-close.d.ts +0 -2
- package/dist/types/components/bal-content/bal-content.interfaces.d.ts +1 -1
- package/dist/types/components/bal-icon/bal-icon.interfaces.d.ts +1 -1
- package/dist/types/components/bal-label/bal-label.d.ts +4 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +1 -0
- package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.d.ts +4 -1
- package/dist/types/components/bal-nav/models/bal-nav-link-item.d.ts +1 -0
- package/dist/types/components/bal-nav/models/bal-nav-menu-link-item.d.ts +1 -0
- package/dist/types/components/bal-nav/models/bal-nav-meta-link-item.d.ts +3 -1
- package/dist/types/components/bal-option-list/bal-option-list.d.ts +5 -0
- package/dist/types/components/bal-progress-bar/bal-progress-bar.d.ts +8 -2
- package/dist/types/components/bal-progress-bar/bal-progress-bar.interfaces.d.ts +1 -0
- package/dist/types/components/bal-segment/bal-segment-item/bal-segment-item.d.ts +62 -0
- package/dist/types/components/bal-segment/bal-segment.d.ts +111 -0
- package/dist/types/components/bal-segment/bal-segment.interfaces.d.ts +20 -0
- package/dist/types/components/bal-segment/bal-segment.types.d.ts +1 -0
- package/dist/types/components/bal-steps/bal-steps.d.ts +4 -0
- package/dist/types/components/bal-steps/bal-steps.interfaces.d.ts +3 -1
- package/dist/types/components/bal-steps/components/step-button.d.ts +1 -0
- package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +10 -0
- package/dist/types/components/bal-tabs/bal-tab.type.d.ts +5 -3
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +15 -3
- package/dist/types/components/bal-tabs/bal-tabs.interfaces.d.ts +3 -0
- package/dist/types/components/bal-tabs/components/tab-button.d.ts +1 -0
- package/dist/types/components/bal-tabs/components/tab-nav.d.ts +1 -0
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +272 -10
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
- package/dist/types/interfaces.d.ts +1 -0
- package/dist/types/utils/dropdown/option.d.ts +1 -1
- package/dist/types/utils/dropdown/popup.d.ts +1 -1
- package/dist/types/utils/resize/index.d.ts +4 -1
- package/dist/types/utils/resize/window-resize.decorator.d.ts +3 -0
- package/dist/types/utils/resize/window-resize.interfaces.d.ts +5 -0
- package/dist/types/utils/resize/window-resize.listener.d.ts +1 -1
- package/dist/types/utils/resize/window-resize.subject.d.ts +9 -0
- package/dist/types/utils/string.d.ts +1 -0
- package/package.json +9 -9
- package/dist/baloise-design-system/p-0ab7aa0e.js +0 -1
- package/dist/baloise-design-system/p-126c79c9e9.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1502fa2526.entry.js +0 -1
- package/dist/baloise-design-system/p-1e100fd83b.entry.js +0 -1
- package/dist/baloise-design-system/p-254b130be5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2d82b78410.entry.js +0 -1
- package/dist/baloise-design-system/p-2d8bd11634.entry.js +0 -1
- package/dist/baloise-design-system/p-2e2ed7a07f.entry.js +0 -1
- package/dist/baloise-design-system/p-2ebc8f9d0c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-30fc270ec1.entry.js +0 -1
- package/dist/baloise-design-system/p-35aa7ecb24.entry.js +0 -1
- package/dist/baloise-design-system/p-4f3776ea4e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-55f280cf33.system.entry.js +0 -1
- package/dist/baloise-design-system/p-63dfa27862.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6cf5e22bb4.entry.js +0 -1
- package/dist/baloise-design-system/p-7047afd8.system.js +0 -1
- package/dist/baloise-design-system/p-7d498fc5.js +0 -1
- package/dist/baloise-design-system/p-87d9c24d45.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8a87b9a8.system.js +0 -1
- package/dist/baloise-design-system/p-96c55b4f58.entry.js +0 -1
- package/dist/baloise-design-system/p-b22fa7966b.entry.js +0 -1
- package/dist/baloise-design-system/p-bcca1ed3.system.js +0 -1
- package/dist/baloise-design-system/p-c304d5fa9c.entry.js +0 -1
- package/dist/baloise-design-system/p-cee7a0dd73.system.entry.js +0 -1
- package/dist/baloise-design-system/p-cf47f1f53c.entry.js +0 -1
- package/dist/baloise-design-system/p-d585a3ad56.system.entry.js +0 -1
- package/dist/baloise-design-system/p-dbc2d22240.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e71a27141c.entry.js +0 -1
- package/dist/baloise-design-system/p-e78a6409.js +0 -1
- package/dist/baloise-design-system/p-e7a4d97c51.entry.js +0 -1
- package/dist/baloise-design-system/p-e93d9571f5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ecd39e3bec.entry.js +0 -1
- package/dist/baloise-design-system/p-f076d1ed4f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-f0ee1b670b.system.entry.js +0 -1
- package/dist/cjs/bal-content.cjs.entry.js +0 -56
- package/dist/esm-es5/app-globals-b0dd0fc4.js +0 -1
- package/dist/esm-es5/bal-content.entry.js +0 -1
- package/dist/esm-es5/bal-label.entry.js +0 -1
- package/dist/esm-es5/breakpoints.subject-9ea7074e.js +0 -1
- package/dist/esm-es5/option-37cb0282.js +0 -1
- /package/dist/baloise-design-system/{p-fc80aa3e.system.js → p-1a742a5b.system.js} +0 -0
- /package/dist/baloise-design-system/{p-6b5343bd.js → p-3f4bb3a8.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-7d2734e1.js → tokens.esm-769d0c71.js} +0 -0
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
Documentation
|
|
31
31
|
</a>
|
|
32
32
|
<span> · </span>
|
|
33
|
-
<a href="https://design.baloise.dev/?path=/docs/contributing--documentation">Contribute</a>
|
|
33
|
+
<a href="https://design.baloise.dev/?path=/docs/contributing-overview--documentation">Contribute</a>
|
|
34
34
|
<span> · </span>
|
|
35
35
|
<a href="https://github.com/baloise/design-system/blob/main/CHANGELOG.md">Changelog</a>
|
|
36
36
|
</h3>
|
package/components/all.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from '.
|
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDatepicker, defineCustomElement as defineBalDatepicker } from './bal-datepicker'
|
|
30
30
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
31
|
+
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
32
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
33
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
34
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -88,6 +89,8 @@ import { BalProgressBar, defineCustomElement as defineBalProgressBar } from './b
|
|
|
88
89
|
import { BalRadio, defineCustomElement as defineBalRadio } from './bal-radio'
|
|
89
90
|
import { BalRadioButton, defineCustomElement as defineBalRadioButton } from './bal-radio-button'
|
|
90
91
|
import { BalRadioGroup, defineCustomElement as defineBalRadioGroup } from './bal-radio-group'
|
|
92
|
+
import { BalSegment, defineCustomElement as defineBalSegment } from './bal-segment'
|
|
93
|
+
import { BalSegmentItem, defineCustomElement as defineBalSegmentItem } from './bal-segment-item'
|
|
91
94
|
import { BalSelect, defineCustomElement as defineBalSelect } from './bal-select'
|
|
92
95
|
import { BalSelectOption, defineCustomElement as defineBalSelectOption } from './bal-select-option'
|
|
93
96
|
import { BalShape, defineCustomElement as defineBalShape } from './bal-shape'
|
|
@@ -144,6 +147,7 @@ export { BalDateCalendar, defineBalDateCalendar }
|
|
|
144
147
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
145
148
|
export { BalDatepicker, defineBalDatepicker }
|
|
146
149
|
export { BalDivider, defineBalDivider }
|
|
150
|
+
export { BalDocApp, defineBalDocApp }
|
|
147
151
|
export { BalDropdown, defineBalDropdown }
|
|
148
152
|
export { BalField, defineBalField }
|
|
149
153
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -204,6 +208,8 @@ export { BalProgressBar, defineBalProgressBar }
|
|
|
204
208
|
export { BalRadio, defineBalRadio }
|
|
205
209
|
export { BalRadioButton, defineBalRadioButton }
|
|
206
210
|
export { BalRadioGroup, defineBalRadioGroup }
|
|
211
|
+
export { BalSegment, defineBalSegment }
|
|
212
|
+
export { BalSegmentItem, defineBalSegmentItem }
|
|
207
213
|
export { BalSelect, defineBalSelect }
|
|
208
214
|
export { BalSelectOption, defineBalSelectOption }
|
|
209
215
|
export { BalShape, defineBalShape }
|
package/components/all.js
CHANGED
|
@@ -28,6 +28,7 @@ import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from '.
|
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDatepicker, defineCustomElement as defineBalDatepicker } from './bal-datepicker'
|
|
30
30
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
31
|
+
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
32
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
33
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
34
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -88,6 +89,8 @@ import { BalProgressBar, defineCustomElement as defineBalProgressBar } from './b
|
|
|
88
89
|
import { BalRadio, defineCustomElement as defineBalRadio } from './bal-radio'
|
|
89
90
|
import { BalRadioButton, defineCustomElement as defineBalRadioButton } from './bal-radio-button'
|
|
90
91
|
import { BalRadioGroup, defineCustomElement as defineBalRadioGroup } from './bal-radio-group'
|
|
92
|
+
import { BalSegment, defineCustomElement as defineBalSegment } from './bal-segment'
|
|
93
|
+
import { BalSegmentItem, defineCustomElement as defineBalSegmentItem } from './bal-segment-item'
|
|
91
94
|
import { BalSelect, defineCustomElement as defineBalSelect } from './bal-select'
|
|
92
95
|
import { BalSelectOption, defineCustomElement as defineBalSelectOption } from './bal-select-option'
|
|
93
96
|
import { BalShape, defineCustomElement as defineBalShape } from './bal-shape'
|
|
@@ -144,6 +147,7 @@ export { BalDateCalendar, defineBalDateCalendar }
|
|
|
144
147
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
145
148
|
export { BalDatepicker, defineBalDatepicker }
|
|
146
149
|
export { BalDivider, defineBalDivider }
|
|
150
|
+
export { BalDocApp, defineBalDocApp }
|
|
147
151
|
export { BalDropdown, defineBalDropdown }
|
|
148
152
|
export { BalField, defineBalField }
|
|
149
153
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -204,6 +208,8 @@ export { BalProgressBar, defineBalProgressBar }
|
|
|
204
208
|
export { BalRadio, defineBalRadio }
|
|
205
209
|
export { BalRadioButton, defineBalRadioButton }
|
|
206
210
|
export { BalRadioGroup, defineBalRadioGroup }
|
|
211
|
+
export { BalSegment, defineBalSegment }
|
|
212
|
+
export { BalSegmentItem, defineBalSegmentItem }
|
|
207
213
|
export { BalSelect, defineBalSelect }
|
|
208
214
|
export { BalSelectOption, defineBalSelectOption }
|
|
209
215
|
export { BalShape, defineBalShape }
|
|
@@ -261,6 +267,7 @@ export const defineAllComponents = () => {
|
|
|
261
267
|
defineBalDateCalendarCell()
|
|
262
268
|
defineBalDatepicker()
|
|
263
269
|
defineBalDivider()
|
|
270
|
+
defineBalDocApp()
|
|
264
271
|
defineBalDropdown()
|
|
265
272
|
defineBalField()
|
|
266
273
|
defineBalFieldControl()
|
|
@@ -321,6 +328,8 @@ export const defineAllComponents = () => {
|
|
|
321
328
|
defineBalRadio()
|
|
322
329
|
defineBalRadioButton()
|
|
323
330
|
defineBalRadioGroup()
|
|
331
|
+
defineBalSegment()
|
|
332
|
+
defineBalSegmentItem()
|
|
324
333
|
defineBalSelect()
|
|
325
334
|
defineBalSelectOption()
|
|
326
335
|
defineBalShape()
|
|
@@ -3,8 +3,9 @@ import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
4
|
import { L as Logger } from './log.js';
|
|
5
5
|
import { s as stopEventBubbling } from './form-input.js';
|
|
6
|
+
import { i as isEnterKey, a as isSpaceKey } from './index.esm.js';
|
|
6
7
|
|
|
7
|
-
const balAccordionSummaryCss = ".bal-accordion__summary{position:static}.bal-accordion__summary--trigger{cursor:pointer}";
|
|
8
|
+
const balAccordionSummaryCss = "@media (hover: hover)and (pointer: fine){.bal-accordion__summary--trigger:focus-visible{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}.bal-accordion__summary{position:static;display:block}.bal-accordion__summary--trigger{cursor:pointer}";
|
|
8
9
|
const BalAccordionSummaryStyle0 = balAccordionSummaryCss;
|
|
9
10
|
|
|
10
11
|
const AccordionSummary = /*@__PURE__*/ proxyCustomElement(class AccordionSummary extends HTMLElement {
|
|
@@ -26,6 +27,13 @@ const AccordionSummary = /*@__PURE__*/ proxyCustomElement(class AccordionSummary
|
|
|
26
27
|
stopEventBubbling(ev);
|
|
27
28
|
(_a = this.parentAccordionElement) === null || _a === void 0 ? void 0 : _a.humanToggle();
|
|
28
29
|
};
|
|
30
|
+
this.onKeyDown = (ev) => {
|
|
31
|
+
var _a;
|
|
32
|
+
if (isEnterKey(ev) || isSpaceKey(ev)) {
|
|
33
|
+
stopEventBubbling(ev);
|
|
34
|
+
(_a = this.parentAccordionElement) === null || _a === void 0 ? void 0 : _a.humanToggle();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
29
37
|
this.parentAccordionId = undefined;
|
|
30
38
|
this.trigger = false;
|
|
31
39
|
this.active = false;
|
|
@@ -74,12 +82,14 @@ const AccordionSummary = /*@__PURE__*/ proxyCustomElement(class AccordionSummary
|
|
|
74
82
|
attributes = {
|
|
75
83
|
'aria-controls': `${this.parentAccordionId}-details-content`,
|
|
76
84
|
'role': 'button',
|
|
85
|
+
'tabindex': 0,
|
|
77
86
|
'part': buttonPart,
|
|
78
87
|
'data-testid': 'bal-accordion-button',
|
|
79
88
|
'onClick': this.onClick,
|
|
89
|
+
'onKeyDown': this.onKeyDown,
|
|
80
90
|
};
|
|
81
91
|
}
|
|
82
|
-
return (h(Host, Object.assign({ id: id, class: Object.assign(Object.assign({}, block.class()), block.modifier('trigger').class(this.trigger)) }, attributes, { "data-testid": "bal-accordion-summary" })));
|
|
92
|
+
return (h(Host, Object.assign({ id: id, class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('trigger').class(this.trigger)), block.modifier('inner-trigger').class(!this.trigger)), { 'bal-focused': this.trigger }) }, attributes, { "data-testid": "bal-accordion-summary" })));
|
|
83
93
|
}
|
|
84
94
|
get el() { return this; }
|
|
85
95
|
static get style() { return BalAccordionSummaryStyle0; }
|
|
@@ -7,7 +7,7 @@ import { d as defineCustomElement$4 } from './bal-button2.js';
|
|
|
7
7
|
import { d as defineCustomElement$3 } from './bal-icon2.js';
|
|
8
8
|
import { d as defineCustomElement$2 } from './bal-spinner2.js';
|
|
9
9
|
|
|
10
|
-
const balAccordionTriggerCss = ".bal-accordion__trigger{position:static}.bal-accordion__trigger__button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,0);border:none;height:3rem;width:3rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}";
|
|
10
|
+
const balAccordionTriggerCss = "@media (hover: hover)and (pointer: fine){.bal-accordion__trigger__button.bal-focused:focus-visible{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}.bal-accordion__trigger{position:static;display:block}.bal-accordion__trigger__button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,0);border:none;height:3rem;width:3rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}";
|
|
11
11
|
const BalAccordionTriggerStyle0 = balAccordionTriggerCss;
|
|
12
12
|
|
|
13
13
|
const AccordionTrigger = /*@__PURE__*/ proxyCustomElement(class AccordionTrigger extends HTMLElement {
|
|
@@ -61,6 +61,10 @@ const AccordionTrigger = /*@__PURE__*/ proxyCustomElement(class AccordionTrigger
|
|
|
61
61
|
var _a;
|
|
62
62
|
return ((_a = this.el) === null || _a === void 0 ? void 0 : _a.closest('bal-accordion')) || null;
|
|
63
63
|
}
|
|
64
|
+
get parentAccordionSummaryElement() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this.el) === null || _a === void 0 ? void 0 : _a.closest('bal-accordion-summary')) || null;
|
|
67
|
+
}
|
|
64
68
|
/**
|
|
65
69
|
* RENDER
|
|
66
70
|
* ------------------------------------------------------
|
|
@@ -77,7 +81,16 @@ const AccordionTrigger = /*@__PURE__*/ proxyCustomElement(class AccordionTrigger
|
|
|
77
81
|
}
|
|
78
82
|
const expanded = this.state === 4 /* AccordionState.Expanded */ || this.state === 8 /* AccordionState.Expanding */;
|
|
79
83
|
const buttonPart = expanded ? 'button expanded' : 'button';
|
|
80
|
-
|
|
84
|
+
const parentSummaryEl = this.parentAccordionSummaryElement;
|
|
85
|
+
let triggerAttributes = {
|
|
86
|
+
tabindex: -1,
|
|
87
|
+
};
|
|
88
|
+
if (parentSummaryEl && !parentSummaryEl.trigger) {
|
|
89
|
+
triggerAttributes = {
|
|
90
|
+
tabindex: 0,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return (h(Host, { id: id, class: Object.assign({}, block.class()) }, this.button ? (h("bal-button", { id: `${id}-button`, "aria-controls": `${this.parentAccordionId}-details-content`, part: buttonPart, "data-testid": "bal-accordion-trigger", expanded: true, icon: icon, iconTurn: turn, color: this.color, size: this.size, onClick: this.onClick }, label)) : (h("button", Object.assign({ class: Object.assign(Object.assign({}, block.element('button').class()), { 'bal-focused': parentSummaryEl && !parentSummaryEl.trigger }), id: `${id}-button`, "aria-controls": `${this.parentAccordionId}-details-content`, "aria-label": "accordion trigger", part: buttonPart, "data-testid": "bal-accordion-trigger", onClick: this.onClick }, triggerAttributes), h("bal-icon", { turn: turn, name: icon })))));
|
|
81
94
|
}
|
|
82
95
|
get el() { return this; }
|
|
83
96
|
static get style() { return BalAccordionTriggerStyle0; }
|
package/components/bal-app.js
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
-
import { b as balBrowser } from './browser.js';
|
|
4
|
-
import { b as balDevice } from './device.js';
|
|
5
|
-
import { h as debounce, k as rIC } from './helpers.js';
|
|
6
|
-
import { L as Logger } from './log.js';
|
|
7
|
-
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
-
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
-
|
|
10
|
-
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
|
|
11
|
-
const BalAppStyle0 = balAppCss;
|
|
12
|
-
|
|
13
|
-
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
-
this.notifyResize = async () => {
|
|
19
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
-
const doc = document.documentElement;
|
|
21
|
-
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.animated = true;
|
|
25
|
-
this.ready = false;
|
|
26
|
-
}
|
|
27
|
-
createLogger(log) {
|
|
28
|
-
this.log = log;
|
|
29
|
-
}
|
|
30
|
-
connectedCallback() {
|
|
31
|
-
updateBalAnimated(this.animated);
|
|
32
|
-
if (balBrowser.hasWindow) {
|
|
33
|
-
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
-
this.debouncedNotify();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
componentDidLoad() {
|
|
38
|
-
rIC(async () => {
|
|
39
|
-
this.ready = true;
|
|
40
|
-
startFocusVisible();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
if (balBrowser.hasWindow) {
|
|
45
|
-
window.removeEventListener('resize', this.debouncedNotify);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
async setFocus(elements) {
|
|
49
|
-
if (this.focusVisible) {
|
|
50
|
-
this.focusVisible.setFocus(elements);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return (h(Host, { class: {
|
|
55
|
-
'bal-app': true,
|
|
56
|
-
'bal-app--safari': balBrowser.isSafari,
|
|
57
|
-
'bal-app--touch': balDevice.hasTouchScreen,
|
|
58
|
-
} }, h("slot", null)));
|
|
59
|
-
}
|
|
60
|
-
get el() { return this; }
|
|
61
|
-
static get style() { return BalAppStyle0; }
|
|
62
|
-
}, [4, "bal-app", {
|
|
63
|
-
"animated": [516],
|
|
64
|
-
"ready": [1540],
|
|
65
|
-
"setFocus": [64]
|
|
66
|
-
}]);
|
|
67
|
-
__decorate([
|
|
68
|
-
Logger('bal-app'),
|
|
69
|
-
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [Function]),
|
|
71
|
-
__metadata("design:returntype", void 0)
|
|
72
|
-
], App.prototype, "createLogger", null);
|
|
73
|
-
function defineCustomElement$1() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["bal-app"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "bal-app":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, App);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
} });
|
|
85
|
-
}
|
|
1
|
+
import { A as App, d as defineCustomElement$1 } from './bal-app2.js';
|
|
86
2
|
|
|
87
3
|
const BalApp = App;
|
|
88
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
+
import { b as balBrowser } from './browser.js';
|
|
4
|
+
import { b as balDevice } from './device.js';
|
|
5
|
+
import { h as debounce, k as rIC } from './helpers.js';
|
|
6
|
+
import { L as Logger } from './log.js';
|
|
7
|
+
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
+
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
+
|
|
10
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
|
|
11
|
+
const BalAppStyle0 = balAppCss;
|
|
12
|
+
|
|
13
|
+
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
+
this.notifyResize = async () => {
|
|
19
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
+
const doc = document.documentElement;
|
|
21
|
+
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.animated = true;
|
|
25
|
+
this.ready = false;
|
|
26
|
+
}
|
|
27
|
+
createLogger(log) {
|
|
28
|
+
this.log = log;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
updateBalAnimated(this.animated);
|
|
32
|
+
if (balBrowser.hasWindow) {
|
|
33
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
+
this.debouncedNotify();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
rIC(async () => {
|
|
39
|
+
this.ready = true;
|
|
40
|
+
startFocusVisible();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
if (balBrowser.hasWindow) {
|
|
45
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async setFocus(elements) {
|
|
49
|
+
if (this.focusVisible) {
|
|
50
|
+
this.focusVisible.setFocus(elements);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h(Host, { class: {
|
|
55
|
+
'bal-app': true,
|
|
56
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
57
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
58
|
+
} }, h("slot", null)));
|
|
59
|
+
}
|
|
60
|
+
get el() { return this; }
|
|
61
|
+
static get style() { return BalAppStyle0; }
|
|
62
|
+
}, [4, "bal-app", {
|
|
63
|
+
"animated": [516],
|
|
64
|
+
"ready": [1540],
|
|
65
|
+
"setFocus": [64]
|
|
66
|
+
}]);
|
|
67
|
+
__decorate([
|
|
68
|
+
Logger('bal-app'),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", [Function]),
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
72
|
+
], App.prototype, "createLogger", null);
|
|
73
|
+
function defineCustomElement() {
|
|
74
|
+
if (typeof customElements === "undefined") {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const components = ["bal-app"];
|
|
78
|
+
components.forEach(tagName => { switch (tagName) {
|
|
79
|
+
case "bal-app":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
customElements.define(tagName, App);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
} });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { App as A, defineCustomElement as d };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { B as BEM } from './bem.js';
|
|
3
|
+
import { b as waitAfterFramePaint } from './helpers.js';
|
|
3
4
|
import { i as inheritAttributes } from './attributes.js';
|
|
4
5
|
|
|
5
6
|
const CarouselItem = /*@__PURE__*/ proxyCustomElement(class CarouselItem extends HTMLElement {
|
|
@@ -23,6 +24,7 @@ const CarouselItem = /*@__PURE__*/ proxyCustomElement(class CarouselItem extends
|
|
|
23
24
|
};
|
|
24
25
|
this.src = undefined;
|
|
25
26
|
this.label = '';
|
|
27
|
+
this.htmlRole = 'listitem';
|
|
26
28
|
this.elementType = 'button';
|
|
27
29
|
this.name = '';
|
|
28
30
|
this.value = '';
|
|
@@ -41,12 +43,18 @@ const CarouselItem = /*@__PURE__*/ proxyCustomElement(class CarouselItem extends
|
|
|
41
43
|
label: this.label,
|
|
42
44
|
};
|
|
43
45
|
}
|
|
46
|
+
async setFocus() {
|
|
47
|
+
await waitAfterFramePaint();
|
|
48
|
+
if (this.buttonEl) {
|
|
49
|
+
this.buttonEl.focus();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
44
52
|
render() {
|
|
45
53
|
const block = BEM.block('carousel');
|
|
46
54
|
const itemEl = block.element('item');
|
|
47
55
|
const isProduct = !!this.color && !!this.label;
|
|
48
56
|
if (!isProduct) {
|
|
49
|
-
return (h(Host, { class: Object.assign({}, itemEl.class()) }, this.src !== undefined ? (h("img", Object.assign({ draggable: false, onDragStart: () => false, src: this.src }, this.imageInheritAttributes))) : (''), h("slot", null)));
|
|
57
|
+
return (h(Host, { role: this.htmlRole, class: Object.assign({}, itemEl.class()) }, this.src !== undefined ? (h("img", Object.assign({ draggable: false, onDragStart: () => false, src: this.src }, this.imageInheritAttributes))) : (''), h("slot", null)));
|
|
50
58
|
}
|
|
51
59
|
const button = itemEl.element('button');
|
|
52
60
|
const image = button.element('image');
|
|
@@ -61,12 +69,13 @@ const CarouselItem = /*@__PURE__*/ proxyCustomElement(class CarouselItem extends
|
|
|
61
69
|
rel,
|
|
62
70
|
target,
|
|
63
71
|
};
|
|
64
|
-
return (h(Host, { class: Object.assign({}, itemEl.class()) }, h(TagType, Object.assign({}, attrs, { class: Object.assign(Object.assign({}, button.class()), button.modifier(`color-${this.color}`).class()), part: "native", onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }), this.src !== undefined ? (h("img", Object.assign({ class: Object.assign({}, image.class()), loading: "lazy", draggable: false, onDragStart: () => false, src: this.src }, this.imageInheritAttributes))) : (''), this.label !== undefined ? h("span", { class: Object.assign({}, label.class()) }, this.label) : '', h("slot", null))));
|
|
72
|
+
return (h(Host, { role: this.htmlRole, class: Object.assign({}, itemEl.class()) }, h(TagType, Object.assign({}, attrs, { class: Object.assign(Object.assign({}, button.class()), button.modifier(`color-${this.color}`).class()), part: "native", onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, ref: el => (this.buttonEl = el) }), this.src !== undefined ? (h("img", Object.assign({ class: Object.assign({}, image.class()), loading: "lazy", draggable: false, onDragStart: () => false, "aria-hidden": "true", src: this.src }, this.imageInheritAttributes))) : (''), this.label !== undefined ? h("span", { class: Object.assign({}, label.class()) }, this.label) : '', h("slot", null))));
|
|
65
73
|
}
|
|
66
74
|
get el() { return this; }
|
|
67
75
|
}, [4, "bal-carousel-item", {
|
|
68
76
|
"src": [513],
|
|
69
77
|
"label": [513],
|
|
78
|
+
"htmlRole": [1, "html-role"],
|
|
70
79
|
"elementType": [1, "element-type"],
|
|
71
80
|
"name": [513],
|
|
72
81
|
"value": [520],
|
|
@@ -75,7 +84,8 @@ const CarouselItem = /*@__PURE__*/ proxyCustomElement(class CarouselItem extends
|
|
|
75
84
|
"rel": [1],
|
|
76
85
|
"download": [1],
|
|
77
86
|
"color": [1],
|
|
78
|
-
"getData": [64]
|
|
87
|
+
"getData": [64],
|
|
88
|
+
"setFocus": [64]
|
|
79
89
|
}]);
|
|
80
90
|
function defineCustomElement() {
|
|
81
91
|
if (typeof customElements === "undefined") {
|
|
@@ -18,15 +18,15 @@ import { b as balBreakpoints } from './breakpoints.subject.js';
|
|
|
18
18
|
import { d as defaultConfig } from './config.default.js';
|
|
19
19
|
import { L as ListenToConfig } from './config.decorator.js';
|
|
20
20
|
|
|
21
|
-
const TabControl = ({ value, items, onControlChange }) => {
|
|
21
|
+
const TabControl = ({ value, items, containerId, onControlChange }) => {
|
|
22
22
|
const block = BEM.block('carousel');
|
|
23
23
|
const controls = block.element('controls');
|
|
24
24
|
return (h("div", { class: Object.assign(Object.assign({}, controls.class()), controls.modifier('tabs').class()) },
|
|
25
25
|
h("bal-card", null,
|
|
26
|
-
h("bal-card-content", null, items.map(item => (h("bal-button", { key: item.value, expanded: true, color: value === item.value ? 'primary' : 'light', onClick: () => onControlChange(item) }, item.label)))))));
|
|
26
|
+
h("bal-card-content", null, items.map(item => (h("bal-button", { "aria-controls": containerId, key: item.value, expanded: true, color: value === item.value ? 'primary' : 'light', onClick: () => onControlChange(item) }, item.label)))))));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
const DotControl = ({ value, items, onControlChange }) => {
|
|
29
|
+
const DotControl = ({ value, items, containerId, onControlChange }) => {
|
|
30
30
|
const block = BEM.block('carousel');
|
|
31
31
|
const controls = block.element('controls');
|
|
32
32
|
const onChange = (ev) => {
|
|
@@ -40,25 +40,25 @@ const DotControl = ({ value, items, onControlChange }) => {
|
|
|
40
40
|
onControlChange(items[selectedValue]);
|
|
41
41
|
};
|
|
42
42
|
return (h("div", { class: Object.assign(Object.assign({}, controls.class()), controls.modifier('tabs').class()) },
|
|
43
|
-
h("bal-pagination", { interface: "small", value: value + 1, totalPages: items.length, onBalChange: onChange })));
|
|
43
|
+
h("bal-pagination", { "aria-controls": containerId, interface: "small", value: value + 1, totalPages: items.length, onBalChange: onChange })));
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const LargeControl = ({ isFirst, isLast, inverted, areControlsHidden, onNextClick, onPreviousClick, leftControlTitle, rightControlTitle, }) => {
|
|
46
|
+
const LargeControl = ({ isFirst, isLast, inverted, areControlsHidden, onNextClick, onPreviousClick, containerId, leftControlTitle, rightControlTitle, }) => {
|
|
47
47
|
const block = BEM.block('carousel');
|
|
48
48
|
const controls = block.element('controls');
|
|
49
49
|
const button = controls.element('button');
|
|
50
50
|
return (h("div", { "data-mutation": "false", class: Object.assign(Object.assign({}, controls.class()), controls.modifier('large').class()) },
|
|
51
|
-
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('left').class()), button.modifier('hidden').class(isFirst && areControlsHidden)), square: true, icon: "nav-go-left", rounded: true, inverted: inverted, onClick: () => onPreviousClick(), disabled: isFirst, "aria-hidden": isFirst && areControlsHidden ? 'true' : null, "data-testid": "bal-carousel-control-left", title: leftControlTitle }),
|
|
52
|
-
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('right').class()), button.modifier('hidden').class(isLast && areControlsHidden)), square: true, icon: "nav-go-right", rounded: true, inverted: inverted, onClick: () => onNextClick(), disabled: isLast, "aria-hidden": isLast && areControlsHidden ? 'true' : null, "data-testid": "bal-carousel-control-right", title: rightControlTitle })));
|
|
51
|
+
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('left').class()), button.modifier('hidden').class(isFirst && areControlsHidden)), "aria-controls": containerId, square: true, icon: "nav-go-left", rounded: true, inverted: inverted, onClick: () => onPreviousClick(), disabled: isFirst, "aria-hidden": isFirst && areControlsHidden ? 'true' : null, "data-testid": "bal-carousel-control-left", title: leftControlTitle }),
|
|
52
|
+
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('right').class()), button.modifier('hidden').class(isLast && areControlsHidden)), "aria-controls": containerId, square: true, icon: "nav-go-right", rounded: true, inverted: inverted, onClick: () => onNextClick(), disabled: isLast, "aria-hidden": isLast && areControlsHidden ? 'true' : null, "data-testid": "bal-carousel-control-right", title: rightControlTitle })));
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
const SmallControl = ({ isFirst, isLast, inverted, leftControlTitle, rightControlTitle, onNextClick, onPreviousClick, }) => {
|
|
55
|
+
const SmallControl = ({ isFirst, isLast, inverted, leftControlTitle, rightControlTitle, containerId, onNextClick, onPreviousClick, }) => {
|
|
56
56
|
const block = BEM.block('carousel');
|
|
57
57
|
const controls = block.element('controls');
|
|
58
58
|
const button = controls.element('button');
|
|
59
59
|
return (h("div", { class: Object.assign(Object.assign({}, controls.class()), controls.modifier('small').class()) },
|
|
60
|
-
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('left').class()), button.modifier('hidden').class(isFirst)), square: true, size: "small", icon: "nav-go-left", rounded: true, inverted: inverted, onClick: () => onPreviousClick(), disabled: isFirst, "aria-hidden": isFirst ? 'true' : null, tabindex: "-1", "data-testid": "bal-carousel-control-left", title: leftControlTitle }),
|
|
61
|
-
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('right').class()), button.modifier('hidden').class(isLast)), square: true, size: "small", icon: "nav-go-right", rounded: true, inverted: inverted, onClick: () => onNextClick(), disabled: isLast, "aria-hidden": isLast ? 'true' : null, tabindex: "-1", "data-testid": "bal-carousel-control-right", title: rightControlTitle })));
|
|
60
|
+
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('left').class()), button.modifier('hidden').class(isFirst)), "aria-controls": containerId, square: true, size: "small", icon: "nav-go-left", rounded: true, inverted: inverted, onClick: () => onPreviousClick(), disabled: isFirst, "aria-hidden": isFirst ? 'true' : null, tabindex: "-1", "data-testid": "bal-carousel-control-left", title: leftControlTitle }),
|
|
61
|
+
h("bal-button", { class: Object.assign(Object.assign(Object.assign({}, button.class()), button.modifier('right').class()), button.modifier('hidden').class(isLast)), "aria-controls": containerId, square: true, size: "small", icon: "nav-go-right", rounded: true, inverted: inverted, onClick: () => onNextClick(), disabled: isLast, "aria-hidden": isLast ? 'true' : null, tabindex: "-1", "data-testid": "bal-carousel-control-right", title: rightControlTitle })));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
const convert = (value) => parseInt(value.slice(0, -2), 10);
|
|
@@ -137,6 +137,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
137
137
|
this.balChange = createEvent(this, "balChange", 7);
|
|
138
138
|
this.previousTransformValue = 0;
|
|
139
139
|
this.carouselId = `bal-carousel-${CarouselIds++}`;
|
|
140
|
+
this.carouselContainerId = `bal-carousel-${CarouselIds++}-container`;
|
|
140
141
|
this.mutationObserverActive = true;
|
|
141
142
|
/**
|
|
142
143
|
* EVENT BINDING
|
|
@@ -162,6 +163,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
162
163
|
this.steps = 1;
|
|
163
164
|
this.itemsPerView = 1;
|
|
164
165
|
this.controls = 'none';
|
|
166
|
+
this.htmlRole = 'list';
|
|
165
167
|
this.controlsOverflow = false;
|
|
166
168
|
this.inverted = false;
|
|
167
169
|
this.fullHeight = false;
|
|
@@ -203,6 +205,18 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
203
205
|
resizeListener() {
|
|
204
206
|
this.itemsChanged();
|
|
205
207
|
}
|
|
208
|
+
listenToKeyDown(ev) {
|
|
209
|
+
if (this.htmlRole !== 'tablist') {
|
|
210
|
+
if (ev.code === 'Tab') {
|
|
211
|
+
if (ev.shiftKey) {
|
|
212
|
+
this.focusPreviousItem(ev);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
this.focusNextItem(ev);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
206
220
|
/**
|
|
207
221
|
* @internal define config for the component
|
|
208
222
|
*/
|
|
@@ -221,16 +235,12 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
221
235
|
const activeSlide = await this.buildSlide(previousValue);
|
|
222
236
|
if (activeSlide) {
|
|
223
237
|
const didAnimate = await this.animate(activeSlide.transformActive, true);
|
|
224
|
-
if (this.value
|
|
238
|
+
if (didAnimate || this.value !== previousValue) {
|
|
225
239
|
this.value = previousValue;
|
|
226
|
-
|
|
227
|
-
this.previous();
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
this.balChange.emit(this.value);
|
|
231
|
-
}
|
|
240
|
+
this.balChange.emit(this.value);
|
|
232
241
|
}
|
|
233
242
|
}
|
|
243
|
+
return activeSlide;
|
|
234
244
|
}
|
|
235
245
|
async next(steps = this.steps) {
|
|
236
246
|
const items = this.getAllItemElements();
|
|
@@ -242,11 +252,12 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
242
252
|
const activeSlide = await this.buildSlide(nextValue);
|
|
243
253
|
if (activeSlide) {
|
|
244
254
|
const didAnimate = await this.animate(activeSlide.transformActive, true);
|
|
245
|
-
if (didAnimate) {
|
|
255
|
+
if (didAnimate || this.value !== nextValue) {
|
|
246
256
|
this.value = nextValue;
|
|
247
257
|
this.balChange.emit(this.value);
|
|
248
258
|
}
|
|
249
259
|
}
|
|
260
|
+
return activeSlide;
|
|
250
261
|
}
|
|
251
262
|
/**
|
|
252
263
|
* PRIVATE METHODS
|
|
@@ -329,6 +340,24 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
329
340
|
this.animate(activeSlide.transformActive, false);
|
|
330
341
|
}
|
|
331
342
|
}
|
|
343
|
+
async focusNextItem(ev) {
|
|
344
|
+
if (!this.isLast) {
|
|
345
|
+
const slide = await this.next(1);
|
|
346
|
+
if (slide && slide.el) {
|
|
347
|
+
stopEventBubbling(ev);
|
|
348
|
+
await slide.el.setFocus();
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
async focusPreviousItem(ev) {
|
|
353
|
+
if (!this.isFirst) {
|
|
354
|
+
const slide = await this.previous(1);
|
|
355
|
+
if (slide && slide.el) {
|
|
356
|
+
stopEventBubbling(ev);
|
|
357
|
+
await slide.el.setFocus();
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
332
361
|
/**
|
|
333
362
|
* GETTERS
|
|
334
363
|
* ------------------------------------------------------
|
|
@@ -370,7 +399,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
370
399
|
const leftControlTitle = i18nControlLabel[this.language].left;
|
|
371
400
|
const rightControlTitle = i18nControlLabel[this.language].right;
|
|
372
401
|
const controlItems = this.getAllControlItems();
|
|
373
|
-
return (h(Host, { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-${this.controls}`).class()) }, this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: controlItems, onControlChange: item => this.onControlChange(item.value) })) : (''), h("div", { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inner.class()), inner.modifier(`items-per-view-${this.itemsPerView}`).class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), inner.modifier(`shadow-left`).class(this.hasShadowLeft())), inner.modifier(`shadow-right`).class(this.hasShadowRight())), ref: el => (this.innerEl = el) }, h("div", { class: Object.assign(Object.assign(Object.assign({}, container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.containerEl = el) }, h("slot", null), this.border ? (h("div", { id: `${this.carouselId}-border`, class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.borderEl = el) })) : (''))), this.controls === 'dots' ? (h(DotControl, { value: this.value, items: controlItems, onControlChange: item => this.onControlChange(item.value) })) : (''), this.controls === 'large' ? (h(LargeControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, areControlsHidden: !this.isMobile, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : (''), this.controls === 'small' ? (h(SmallControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : ('')));
|
|
402
|
+
return (h(Host, { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-${this.controls}`).class()) }, this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), h("div", { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inner.class()), inner.modifier(`items-per-view-${this.itemsPerView}`).class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), inner.modifier(`shadow-left`).class(this.hasShadowLeft())), inner.modifier(`shadow-right`).class(this.hasShadowRight())), ref: el => (this.innerEl = el) }, h("div", { role: this.htmlRole, "aria-live": this.htmlRole !== '' ? 'polite' : undefined, id: this.carouselContainerId, class: Object.assign(Object.assign(Object.assign({}, container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.containerEl = el) }, h("slot", null), this.border ? (h("div", { id: `${this.carouselId}-border`, "aria-hidden": "true", class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.borderEl = el) })) : (''))), this.controls === 'dots' ? (h(DotControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), this.controls === 'large' ? (h(LargeControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, areControlsHidden: !this.isMobile, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : (''), this.controls === 'small' ? (h(SmallControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : ('')));
|
|
374
403
|
}
|
|
375
404
|
get el() { return this; }
|
|
376
405
|
static get style() { return BalCarouselStyle0; }
|
|
@@ -379,6 +408,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
379
408
|
"steps": [2],
|
|
380
409
|
"itemsPerView": [8, "items-per-view"],
|
|
381
410
|
"controls": [1],
|
|
411
|
+
"htmlRole": [1, "html-role"],
|
|
382
412
|
"controlsOverflow": [4, "controls-overflow"],
|
|
383
413
|
"inverted": [4],
|
|
384
414
|
"fullHeight": [4, "full-height"],
|
|
@@ -393,7 +423,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
393
423
|
"configChanged": [64],
|
|
394
424
|
"previous": [64],
|
|
395
425
|
"next": [64]
|
|
396
|
-
}, [[8, "touchmove", "blockVerticalScrolling"]]]);
|
|
426
|
+
}, [[8, "touchmove", "blockVerticalScrolling"], [0, "keydown", "listenToKeyDown"]]]);
|
|
397
427
|
__decorate([
|
|
398
428
|
ListenToMutation({ tags: ['bal-carousel-item'], characterData: false }),
|
|
399
429
|
__metadata("design:type", Function),
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
-
import {
|
|
3
|
+
import { b as areArraysEqual } from './index.esm.js';
|
|
4
4
|
import { s as stopEventBubbling } from './form-input.js';
|
|
5
5
|
import { i as isDescendant, n as hasTagName } from './helpers.js';
|
|
6
6
|
import { i as inheritAttributes } from './attributes.js';
|
|
7
7
|
import { B as BEM } from './bem.js';
|
|
8
8
|
import { L as Logger } from './log.js';
|
|
9
9
|
import { d as defaultBalAriaForm } from './form.js';
|
|
10
|
-
import { d as defineCustomElement$
|
|
10
|
+
import { d as defineCustomElement$3 } from './bal-checkbox2.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './bal-icon2.js';
|
|
11
12
|
import { L as ListenToFocus } from './focus.decorator.js';
|
|
12
13
|
import { L as ListenToMutation } from './mutation.decorator.js';
|
|
13
14
|
|
|
@@ -352,7 +353,7 @@ function defineCustomElement$1() {
|
|
|
352
353
|
if (typeof customElements === "undefined") {
|
|
353
354
|
return;
|
|
354
355
|
}
|
|
355
|
-
const components = ["bal-checkbox-group", "bal-checkbox"];
|
|
356
|
+
const components = ["bal-checkbox-group", "bal-checkbox", "bal-icon"];
|
|
356
357
|
components.forEach(tagName => { switch (tagName) {
|
|
357
358
|
case "bal-checkbox-group":
|
|
358
359
|
if (!customElements.get(tagName)) {
|
|
@@ -360,6 +361,11 @@ function defineCustomElement$1() {
|
|
|
360
361
|
}
|
|
361
362
|
break;
|
|
362
363
|
case "bal-checkbox":
|
|
364
|
+
if (!customElements.get(tagName)) {
|
|
365
|
+
defineCustomElement$3();
|
|
366
|
+
}
|
|
367
|
+
break;
|
|
368
|
+
case "bal-icon":
|
|
363
369
|
if (!customElements.get(tagName)) {
|
|
364
370
|
defineCustomElement$2();
|
|
365
371
|
}
|