@baloise/ds-core 17.2.1 → 17.2.2-nightly.20250109
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/bal-accordion.js +1 -1
- package/components/bal-app.js +1 -93
- package/components/bal-app2.js +95 -0
- package/components/bal-button2.js +3 -11
- package/components/bal-carousel-item.js +117 -1
- package/components/bal-carousel.js +261 -1
- package/components/bal-checkbox-button.js +1 -1
- package/components/bal-checkbox-group.js +2 -27
- package/components/bal-checkbox2.js +3 -16
- package/components/bal-date.js +3 -28
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-dropdown2.js +2 -2
- package/components/bal-field.js +1 -1
- package/components/bal-file-upload.js +5 -12
- package/components/bal-footer.js +1 -1
- package/components/bal-icon2.js +1 -13
- package/components/bal-input-date2.js +4 -17
- package/components/bal-input-group2.js +1 -1
- package/components/bal-input-slider.js +5 -19
- package/components/bal-input-stepper.js +5 -18
- package/components/bal-input.js +3 -16
- package/components/bal-label2.js +1 -1
- package/components/bal-list-item-accordion-body2.js +4 -4
- package/components/bal-list-item-accordion-head2.js +2 -2
- package/components/bal-list-item-content2.js +2 -2
- package/components/bal-list-item-icon2.js +2 -2
- package/components/bal-list-item-subtitle2.js +1 -1
- package/components/bal-list-item-title2.js +1 -1
- package/components/bal-list-item2.js +1 -1
- package/components/bal-list2.js +1 -1
- package/components/bal-logo2.js +2 -2
- package/components/bal-modal-body.js +1 -1
- package/components/bal-modal-header.js +1 -1
- package/components/bal-modal.js +7 -33
- package/components/bal-nav-link-grid-col2.js +1 -1
- package/components/bal-nav-link-grid2.js +1 -1
- package/components/bal-nav-link-group.js +1 -1
- package/components/bal-nav-link2.js +2 -2
- package/components/bal-nav-menu-bar2.js +1 -1
- package/components/bal-nav-menu-flyout2.js +1 -1
- package/components/bal-nav-meta-bar2.js +2 -9
- package/components/bal-nav.js +52 -125
- package/components/bal-navbar-brand.js +5 -1
- package/components/bal-navbar-menu-end.js +1 -1
- package/components/bal-navbar-menu-start.js +1 -1
- package/components/bal-navbar-menu.js +2 -2
- package/components/bal-navbar.js +1 -1
- package/components/bal-notices.js +2 -2
- package/components/bal-notification.js +1 -1
- package/components/bal-number-input.js +3 -16
- package/components/bal-option-list.js +3 -16
- package/components/bal-option2.js +2 -9
- package/components/bal-pagination.js +311 -1
- package/components/bal-popover-content2.js +1 -1
- package/components/bal-popover2.js +4 -29
- package/components/bal-popup.js +4 -35
- package/components/bal-progress-bar.js +2 -2
- package/components/bal-radio-button.js +2 -2
- package/components/bal-radio-group.js +2 -33
- package/components/bal-radio2.js +3 -10
- package/components/bal-segment-item.js +2 -2
- package/components/bal-segment.js +4 -23
- package/components/bal-select-option.js +45 -1
- package/components/bal-select.js +847 -1
- package/components/bal-shape2.js +4 -4
- package/components/bal-sheet.js +1 -1
- package/components/bal-snackbar.js +1 -1
- package/components/bal-spinner2.js +3 -3
- package/components/bal-stack2.js +1 -1
- package/components/bal-stage-back-link.js +2 -2
- package/components/bal-stage-body.js +1 -1
- package/components/bal-stage-foot.js +1 -1
- package/components/bal-stage-head.js +1 -1
- package/components/bal-stage-image.js +3 -3
- package/components/bal-stage.js +1 -1
- package/components/bal-step-item.js +2 -2
- package/components/bal-steps.js +12 -56
- package/components/bal-tab-item.js +2 -2
- package/components/bal-table.js +1 -1
- package/components/bal-tabs2.js +179 -230
- package/components/bal-tag-group.js +1 -1
- package/components/bal-tag2.js +1 -1
- package/components/bal-text2.js +2 -2
- package/components/bal-textarea.js +3 -17
- package/components/bal-time-input.js +3 -16
- package/components/bal-toast.js +1 -1
- package/components/bal-tooltip.js +1 -1
- package/components/breakpoints.subject.js +1 -1
- package/components/element-states.decorator.js +1 -1
- package/components/floating-ui.js +2 -2
- package/components/focus.decorator.js +1 -1
- package/components/helpers.js +33 -3
- package/components/index.js +6 -305
- package/components/initialize.js +303 -0
- package/components/keyboard.helpers.js +7 -1
- package/components/mutation.decorator.js +17 -14
- package/components/overlays.js +1 -1
- package/components/resize.decorator.js +21 -5
- package/components/string.js +12 -0
- package/components/swipe.subject.js +2 -2
- package/components/swiper.util.js +434 -0
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/p-0346712795.entry.js +1 -0
- package/dist/baloise-design-system/{p-af747e55e6.entry.js → p-05986dc964.entry.js} +1 -1
- package/dist/baloise-design-system/p-079850e6.system.js +1 -0
- package/dist/baloise-design-system/{p-9d3f19c6af.system.entry.js → p-0933f23da2.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-09c77507f1.entry.js +1 -0
- package/dist/baloise-design-system/{p-1cb1fb71d4.system.entry.js → p-0a22b25b5b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-0b8169c8.js +1 -0
- package/dist/baloise-design-system/{p-65b542bd.system.js → p-0e323fe0.system.js} +1 -1
- package/dist/baloise-design-system/p-0f87b93ca2.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1050501432.entry.js +1 -0
- package/dist/baloise-design-system/p-10ebc871f4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1334e37be0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-16baa62182.system.entry.js +1 -0
- package/dist/baloise-design-system/p-18267b1371.system.entry.js +1 -0
- package/dist/baloise-design-system/p-19162db1a6.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1e344a8c28.system.entry.js → p-1ae4dca673.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-1c191e7d.js +1 -0
- package/dist/baloise-design-system/{p-17c73b8f48.system.entry.js → p-1e726ce985.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e2ba4d18bc.system.entry.js → p-1f762ec5aa.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9e2730c56b.system.entry.js → p-1f9d38cf0a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-61b87619ac.system.entry.js → p-212b2ed471.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-21f87590.js +1 -0
- package/dist/baloise-design-system/p-24e594cd49.entry.js +1 -0
- package/dist/baloise-design-system/p-27a8f7d1e4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-28d415e4.js +1 -0
- package/dist/baloise-design-system/p-296c7825b7.entry.js +1 -0
- package/dist/baloise-design-system/p-2a8e0e7149.entry.js +1 -0
- package/dist/baloise-design-system/p-2ccbe55a.js +2 -0
- package/dist/baloise-design-system/{p-dfcca29bc9.system.entry.js → p-2d4ebe6538.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-54c8a63b7c.system.entry.js → p-2db0f14a2d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a898208e.system.js → p-2e830170.system.js} +1 -1
- package/dist/baloise-design-system/{p-b136739bec.entry.js → p-2f23758d56.entry.js} +1 -1
- package/dist/baloise-design-system/{p-353ce7cb84.system.entry.js → p-31b6055d92.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-345ec2f4.system.js +1 -0
- package/dist/baloise-design-system/{p-802c6111.js → p-3541dd16.js} +1 -1
- package/dist/baloise-design-system/p-356f75fd58.system.entry.js +1 -0
- package/dist/baloise-design-system/p-38bbf5f58f.entry.js +1 -0
- package/dist/baloise-design-system/{p-c486a8a8ed.entry.js → p-3928dcab54.entry.js} +1 -1
- package/dist/baloise-design-system/p-39d3eeef8e.entry.js +1 -0
- package/dist/baloise-design-system/p-3a3ee1eb.js +1 -0
- package/dist/baloise-design-system/{p-7d63b70a40.system.entry.js → p-3a93f5710e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1c09c9b0.js → p-3df52a1f.js} +1 -1
- package/dist/baloise-design-system/p-42f532a0a8.entry.js +1 -0
- package/dist/baloise-design-system/p-4427a9954a.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-d8420ad3d5.system.entry.js → p-465c1ecafb.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4b6481e692.entry.js → p-4a746f645b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bf139fe5.system.js → p-4a80e2c1.system.js} +1 -1
- package/dist/baloise-design-system/{p-39ad885d73.entry.js → p-4ba2983131.entry.js} +1 -1
- package/dist/baloise-design-system/p-4d67c12e48.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4e642b63.system.js +1 -0
- package/dist/baloise-design-system/{p-35120ab6.system.js → p-4eb199b5.system.js} +1 -1
- package/dist/baloise-design-system/p-524edfe610.system.entry.js +1 -0
- package/dist/baloise-design-system/p-52cad6cf9f.entry.js +1 -0
- package/dist/baloise-design-system/{p-7eaff7954d.entry.js → p-54b7eb9ee0.entry.js} +1 -1
- package/dist/baloise-design-system/p-54d9711a77.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-d1ec4d6e.system.js → p-56cf1ab1.system.js} +1 -1
- package/dist/baloise-design-system/{p-8096d040b2.system.entry.js → p-56d4310416.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-58a0e8df48.entry.js +1 -0
- package/dist/baloise-design-system/p-58d2a0b5.system.js +1 -0
- package/dist/baloise-design-system/{p-30f41bab1a.system.entry.js → p-5b6ee3b824.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-374ce10b98.system.entry.js → p-5b85dec39b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c589d05bc6.system.entry.js → p-5d0768fd46.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-5de6427ec7.entry.js +1 -0
- package/dist/baloise-design-system/{p-9e103abfe5.entry.js → p-60f5e5faa6.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7684efd8.js → p-63215f4c.js} +1 -1
- package/dist/baloise-design-system/p-66d49670b0.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6fb26bd060.system.entry.js → p-66f6b46fd4.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-67d61a81.js +1 -0
- package/dist/baloise-design-system/p-68e05bd5.js +1 -0
- package/dist/baloise-design-system/{p-63793834ec.entry.js → p-6933b37a08.entry.js} +1 -1
- package/dist/baloise-design-system/{p-06d357bd.js → p-6b79e568.js} +1 -1
- package/dist/baloise-design-system/{p-85b6c500d8.entry.js → p-6c85b9106b.entry.js} +1 -1
- package/dist/baloise-design-system/p-6cdd068206.system.entry.js +1 -0
- package/dist/baloise-design-system/p-6e23b41e95.system.entry.js +1 -0
- package/dist/baloise-design-system/p-6f28d506.system.js +1 -0
- package/dist/baloise-design-system/{p-f8d828383b.system.entry.js → p-713640e3ac.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-063f4fc96f.system.entry.js → p-72312d33a3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7256aa5d97.entry.js +1 -0
- package/dist/baloise-design-system/p-72570f9637.entry.js +1 -0
- package/dist/baloise-design-system/p-75f78ed4fd.entry.js +1 -0
- package/dist/baloise-design-system/p-761cb0e801.system.entry.js +1 -0
- package/dist/baloise-design-system/p-770f4365f6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7961e095.system.js +2 -0
- package/dist/baloise-design-system/{p-b8658ffb85.system.entry.js → p-79f753d617.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-80befc3988.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-63b52c0f.js → p-81894fe8.js} +1 -1
- package/dist/baloise-design-system/p-81a3bee001.entry.js +1 -0
- package/dist/baloise-design-system/p-8227e41299.entry.js +1 -0
- package/dist/baloise-design-system/p-82bf42f789.entry.js +1 -0
- package/dist/baloise-design-system/p-8360204072.entry.js +1 -0
- package/dist/baloise-design-system/{p-8b8d19171d.entry.js → p-86244838e4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3508444fc8.entry.js → p-878cb7914d.entry.js} +1 -1
- package/dist/baloise-design-system/p-8c24fdcf6c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6c3a60ddf6.entry.js → p-8f1c2e77b6.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b0fd473a.system.js → p-8f217b03.system.js} +1 -1
- package/dist/baloise-design-system/{p-682a1550e1.system.entry.js → p-900a22d5c3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-90a51218.js +1 -0
- package/dist/baloise-design-system/{p-8ac5772a60.system.entry.js → p-90a9f56d71.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-29273a2be9.entry.js → p-92e27ad87b.entry.js} +1 -1
- package/dist/baloise-design-system/p-932a19ea57.entry.js +1 -0
- package/dist/baloise-design-system/{p-c72bd76c.system.js → p-936070bf.system.js} +1 -1
- package/dist/baloise-design-system/{p-16ff8c81bf.entry.js → p-95bf3ca0ae.entry.js} +1 -1
- package/dist/baloise-design-system/p-9618956a56.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c472c7cf16.system.entry.js → p-97cd0b900d.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-97f3a682.system.js +1 -0
- package/dist/baloise-design-system/{p-51fa7a76.js → p-9db35d91.js} +1 -1
- package/dist/baloise-design-system/{p-dafb9ede.system.js → p-a06fe6d4.system.js} +1 -1
- package/dist/baloise-design-system/p-a2090a9d.system.js +1 -0
- package/dist/baloise-design-system/{p-6d27c4949f.system.entry.js → p-a33f51bca5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a5ea24121d.entry.js +1 -0
- package/dist/baloise-design-system/{p-296b12e3a9.entry.js → p-a6447b4840.entry.js} +1 -1
- package/dist/baloise-design-system/{p-98267a7765.entry.js → p-a679bf1c24.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9b8ca7ead8.entry.js → p-a71cc6d652.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5b78557886.entry.js → p-a7bbafcf3c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-98a58cff41.system.entry.js → p-aa101747b4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-678ebde2de.entry.js → p-aeca345ebb.entry.js} +1 -1
- package/dist/baloise-design-system/p-b1d0256f19.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c2157cabd4.entry.js → p-b2198343bf.entry.js} +1 -1
- package/dist/baloise-design-system/p-b57110dfe6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b77d63ca25.entry.js +1 -0
- package/dist/baloise-design-system/{p-a4b4b9c642.system.entry.js → p-b7f9f79521.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-579855c6.system.js → p-b96fd49d.system.js} +1 -1
- package/dist/baloise-design-system/p-bb0a588d09.system.entry.js +1 -0
- package/dist/baloise-design-system/p-bb7183cd00.entry.js +1 -0
- package/dist/baloise-design-system/p-bfc1c220e9.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-486eb96d.system.js → p-c1db8468.system.js} +1 -1
- package/dist/baloise-design-system/p-c1fcce934b.entry.js +1 -0
- package/dist/baloise-design-system/p-c353a1861c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c642582c09.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c9b8e360.system.js +1 -0
- package/dist/baloise-design-system/{p-7607c59d.js → p-cad154ad.js} +1 -1
- package/dist/baloise-design-system/p-ccba7183e2.entry.js +1 -0
- package/dist/baloise-design-system/p-ccd2ef1106.entry.js +1 -0
- package/dist/baloise-design-system/{p-ac2b4a256d.entry.js → p-cd31234898.entry.js} +1 -1
- package/dist/baloise-design-system/p-cd9be615a4.entry.js +1 -0
- package/dist/baloise-design-system/{p-cd5cbb0462.system.entry.js → p-cf550b5f9c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d5268a76fb.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-e0e123ffec.system.entry.js → p-d56a7e63df.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-70ff6660e5.system.entry.js → p-d67d2979ad.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-dc98854c.js +1 -0
- package/dist/baloise-design-system/p-e0377a6d84.entry.js +1 -0
- package/dist/baloise-design-system/{p-2af8b73858.entry.js → p-e099fd9574.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c7e93ad3c1.entry.js → p-e21ccd9856.entry.js} +1 -1
- package/dist/baloise-design-system/p-e430294632.entry.js +1 -0
- package/dist/baloise-design-system/p-e470e06a36.entry.js +1 -0
- package/dist/baloise-design-system/{p-4e75ee3c87.system.entry.js → p-e4c30a31a7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e3167218.js → p-e53217f8.js} +1 -1
- package/dist/baloise-design-system/p-e6bf225a89.entry.js +1 -0
- package/dist/baloise-design-system/{p-f1c41da029.entry.js → p-e8382bd4a9.entry.js} +1 -1
- package/dist/baloise-design-system/p-e9445f4362.entry.js +1 -0
- package/dist/baloise-design-system/{p-af3fb420b3.system.entry.js → p-ea27183b2a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-533956b7.system.js → p-ed32b0b9.system.js} +1 -1
- package/dist/baloise-design-system/p-f2c398a3.system.js +1 -0
- package/dist/baloise-design-system/{p-4d84f90534.entry.js → p-f39958528f.entry.js} +1 -1
- package/dist/baloise-design-system/p-fabb559661.entry.js +1 -0
- package/dist/baloise-design-system/{p-c416afcd52.entry.js → p-fd357a0c70.entry.js} +1 -1
- package/dist/baloise-design-system/p-ff46a92a47.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ff7903eb.js +1 -0
- package/dist/cjs/app-globals-25e25924.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/bal-app.cjs.entry.js +5 -5
- package/dist/cjs/bal-badge.cjs.entry.js +1 -1
- package/dist/cjs/bal-button_2.cjs.entry.js +3 -11
- package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +88 -307
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +4 -4
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +7 -44
- package/dist/cjs/bal-close.cjs.entry.js +1 -1
- package/dist/cjs/bal-content.cjs.entry.js +1 -1
- package/dist/cjs/bal-data_4.cjs.entry.js +1 -1
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +3 -3
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +7 -20
- package/dist/cjs/bal-date.cjs.entry.js +6 -31
- package/dist/cjs/bal-divider.cjs.entry.js +1 -1
- package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-file-upload.cjs.entry.js +7 -14
- package/dist/cjs/bal-footer.cjs.entry.js +3 -3
- package/dist/cjs/bal-form-col_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-form.cjs.entry.js +2 -2
- package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +8 -33
- package/dist/cjs/bal-icon.cjs.entry.js +3 -14
- package/dist/cjs/bal-input-group.cjs.entry.js +2 -2
- package/dist/cjs/bal-input-slider.cjs.entry.js +6 -20
- package/dist/cjs/bal-input-stepper.cjs.entry.js +6 -19
- package/dist/cjs/bal-input.cjs.entry.js +4 -17
- package/dist/cjs/bal-label.cjs.entry.js +2 -2
- package/dist/cjs/bal-list_8.cjs.entry.js +19 -19
- package/dist/cjs/bal-logo.cjs.entry.js +6 -6
- package/dist/cjs/bal-modal_3.cjs.entry.js +10 -36
- package/dist/cjs/bal-nav_8.cjs.entry.js +18 -37
- package/dist/cjs/bal-navbar_5.cjs.entry.js +13 -10
- package/dist/cjs/bal-notices_3.cjs.entry.js +5 -5
- package/dist/cjs/bal-notification.cjs.entry.js +2 -2
- package/dist/cjs/bal-number-input.cjs.entry.js +4 -17
- package/dist/cjs/bal-option_2.cjs.entry.js +6 -25
- package/dist/cjs/bal-pagination.cjs.entry.js +9 -9
- package/dist/cjs/bal-popup.cjs.entry.js +6 -37
- package/dist/cjs/bal-progress-bar.cjs.entry.js +7 -7
- package/dist/cjs/bal-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/bal-radio_2.cjs.entry.js +7 -44
- package/dist/cjs/bal-segment_2.cjs.entry.js +11 -30
- package/dist/cjs/bal-select_2.cjs.entry.js +10 -29
- package/dist/cjs/bal-shape.cjs.entry.js +6 -6
- package/dist/cjs/bal-sheet.cjs.entry.js +2 -2
- package/dist/cjs/bal-spinner.cjs.entry.js +4 -4
- package/dist/cjs/bal-stack.cjs.entry.js +2 -2
- package/dist/cjs/bal-stage_6.cjs.entry.js +10 -10
- package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
- package/dist/cjs/bal-steps.cjs.entry.js +15 -11
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +172 -162
- package/dist/cjs/bal-table.cjs.entry.js +2 -2
- package/dist/cjs/bal-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-textarea.cjs.entry.js +4 -18
- package/dist/cjs/bal-time-input.cjs.entry.js +4 -17
- package/dist/cjs/bal-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/baloise-design-system.cjs.js +6 -5
- package/dist/cjs/{breakpoints.decorator-2c97bb36.js → breakpoints.decorator-3d4613cc.js} +1 -1
- package/dist/cjs/{breakpoints.subject-f3104eb9.js → breakpoints.subject-45f33be0.js} +2 -2
- package/dist/cjs/{element-states.decorator-5aa9bf46.js → element-states.decorator-e2bc15ed.js} +1 -1
- package/dist/cjs/{floating-ui-9f03e1cf.js → floating-ui-24577c09.js} +2 -2
- package/dist/cjs/{focus.decorator-ec3a858c.js → focus.decorator-b93456af.js} +1 -1
- package/dist/cjs/{form-input-35653e8f.js → form-input-e4fdf58e.js} +1 -1
- package/dist/cjs/global-85ebe098.js +9 -0
- package/dist/cjs/{helpers-393c2183.js → helpers-94660ab2.js} +34 -3
- package/dist/cjs/{index-96c178a6.js → index-84f42282.js} +284 -163
- package/dist/cjs/index.cjs.js +8 -7
- package/dist/cjs/{initialize-6421e1c1.js → initialize-367b85e5.js} +2 -2
- package/dist/cjs/{keyboard.helpers-3c105b0c.js → keyboard.helpers-2093e793.js} +7 -0
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{mutation.decorator-5ac1e198.js → mutation.decorator-a000b7ef.js} +17 -14
- package/dist/cjs/{overlays-e6d14274.js → overlays-4c465543.js} +1 -1
- package/dist/cjs/{resize.decorator-981b6817.js → resize.decorator-62d31afa.js} +21 -5
- package/dist/cjs/{swipe.decorator-391a0941.js → swipe.decorator-447ae00e.js} +1 -1
- package/dist/cjs/{swipe.subject-48bf62a1.js → swipe.subject-6deb82da.js} +2 -2
- package/dist/cjs/swiper.util-2c1a9dd3.js +450 -0
- package/dist/cjs/{tokens.esm-dbef942e.js → tokens.esm-ef47f2db.js} +1 -1
- package/dist/cjs/{window-resize.decorator-69ff6e4c.js → window-resize.decorator-b13d8403.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +6 -0
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +6 -0
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +20 -0
- package/dist/collection/components/bal-accordion/bal-accordion.js +16 -0
- package/dist/collection/components/bal-app/bal-app.js +8 -4
- package/dist/collection/components/bal-badge/bal-badge.js +8 -0
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +6 -0
- package/dist/collection/components/bal-button/bal-button.js +60 -11
- package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +2 -0
- package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +14 -0
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +6 -0
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +2 -0
- package/dist/collection/components/bal-card/bal-card.js +18 -0
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +47 -39
- package/dist/collection/components/bal-carousel/bal-carousel.css +1 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +132 -228
- package/dist/collection/components/bal-carousel/controls/tab-control.js +8 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +14 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +58 -26
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +50 -14
- package/dist/collection/components/bal-close/bal-close.js +4 -0
- package/dist/collection/components/bal-content/bal-content.js +10 -0
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +4 -0
- package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +2 -0
- package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +6 -0
- package/dist/collection/components/bal-data/bal-data.js +4 -0
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +14 -0
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +16 -0
- package/dist/collection/components/bal-date/bal-date.js +68 -26
- package/dist/collection/components/bal-divider/bal-divider.js +8 -0
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +40 -0
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +8 -0
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +6 -0
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +16 -0
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +10 -0
- package/dist/collection/components/bal-field/bal-field.js +14 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +46 -12
- package/dist/collection/components/bal-footer/bal-footer.js +8 -0
- package/dist/collection/components/bal-form/bal-form.js +6 -0
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +2 -0
- package/dist/collection/components/bal-heading/bal-heading.js +18 -0
- package/dist/collection/components/bal-hint/bal-hint.js +4 -0
- package/dist/collection/components/bal-icon/bal-icon.js +26 -14
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +45 -15
- package/dist/collection/components/bal-input/bal-input.js +74 -14
- package/dist/collection/components/bal-input-group/bal-input-group.js +7 -1
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +44 -17
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +38 -16
- package/dist/collection/components/bal-label/bal-label.js +27 -1
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +16 -0
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +9 -3
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +6 -2
- package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +4 -2
- package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +4 -2
- package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +1 -1
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +5 -1
- package/dist/collection/components/bal-list/bal-list.js +11 -1
- package/dist/collection/components/bal-logo/bal-logo.js +8 -2
- package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal.js +58 -33
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +12 -2
- package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +3 -1
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +3 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +5 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +3 -1
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +18 -8
- package/dist/collection/components/bal-nav/bal-nav.css +1 -1
- package/dist/collection/components/bal-nav/bal-nav.js +24 -16
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +19 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +3 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +3 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +3 -1
- package/dist/collection/components/bal-navbar/bal-navbar.js +7 -1
- package/dist/collection/components/bal-notices/bal-notices.js +4 -2
- package/dist/collection/components/bal-notification/bal-notification.js +3 -1
- package/dist/collection/components/bal-number-input/bal-number-input.js +46 -14
- package/dist/collection/components/bal-option/bal-option.js +26 -8
- package/dist/collection/components/bal-option-list/bal-option-list.js +30 -14
- package/dist/collection/components/bal-pagination/bal-pagination.js +22 -4
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +19 -1
- package/dist/collection/components/bal-popover/bal-popover.js +53 -27
- package/dist/collection/components/bal-popup/bal-popup.js +58 -32
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +7 -1
- package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +15 -1
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +64 -32
- package/dist/collection/components/bal-radio/bal-radio.js +38 -8
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +13 -1
- package/dist/collection/components/bal-segment/bal-segment.js +34 -20
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +9 -1
- package/dist/collection/components/bal-select/bal-select.js +68 -24
- package/dist/collection/components/bal-shape/bal-shape.js +10 -4
- package/dist/collection/components/bal-sheet/bal-sheet.js +3 -1
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +21 -1
- package/dist/collection/components/bal-spinner/bal-spinner.js +13 -3
- package/dist/collection/components/bal-stack/bal-stack.js +23 -1
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +8 -2
- package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +7 -3
- package/dist/collection/components/bal-stage/bal-stage.js +13 -1
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +22 -2
- package/dist/collection/components/bal-steps/bal-steps.css +1 -1
- package/dist/collection/components/bal-steps/bal-steps.js +19 -5
- package/dist/collection/components/bal-table/bal-table.js +3 -1
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +30 -2
- package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +206 -125
- package/dist/collection/components/bal-tabs/components/tab-button.js +2 -2
- package/dist/collection/components/bal-tabs/components/tab-label.js +2 -2
- package/dist/collection/components/bal-tabs/components/tab-nav.js +7 -4
- package/dist/collection/components/bal-tabs/components/tab-select.js +2 -2
- package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +1 -1
- package/dist/collection/components/bal-tag/bal-tag.js +17 -1
- package/dist/collection/components/bal-text/bal-text.js +28 -2
- package/dist/collection/components/bal-textarea/bal-textarea.js +54 -15
- package/dist/collection/components/bal-time-input/bal-time-input.js +32 -14
- package/dist/collection/components/bal-toast/bal-toast.js +9 -1
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +11 -1
- 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/index.js +1 -1
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/floating-ui.js +2 -2
- package/dist/collection/utils/helpers.js +32 -2
- package/dist/collection/utils/keyboard/keyboard.helpers.js +6 -0
- package/dist/collection/utils/mutation/mutation.listener.js +16 -13
- package/dist/collection/utils/resize/resize.listener.js +19 -3
- package/dist/collection/utils/resize/resize.subject.js +2 -2
- package/dist/collection/utils/style.js +16 -3
- package/dist/collection/utils/swipe/swipe.listener.js +2 -2
- package/dist/collection/{components/bal-carousel → utils/swiper}/controls/dot-control.js +1 -1
- package/dist/collection/utils/swiper/controls/index.js +3 -0
- package/dist/collection/{components/bal-carousel → utils/swiper}/controls/large-control.js +2 -2
- package/dist/collection/{components/bal-carousel → utils/swiper}/controls/small-control.js +2 -2
- package/dist/collection/utils/swiper/index.js +1 -0
- package/dist/collection/{components/bal-carousel/bal-carousel.i18n.js → utils/swiper/swiper.i18n.js} +1 -1
- package/dist/collection/utils/swiper/swiper.util.js +322 -0
- package/dist/esm/app-globals-83570026.js +5 -0
- package/dist/esm/bal-accordion_4.entry.js +4 -4
- package/dist/esm/bal-app.entry.js +5 -5
- package/dist/esm/bal-badge.entry.js +1 -1
- package/dist/esm/bal-button_2.entry.js +3 -11
- package/dist/esm/bal-card_6.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +88 -307
- package/dist/esm/bal-checkbox-button.entry.js +4 -4
- package/dist/esm/bal-checkbox_2.entry.js +7 -44
- package/dist/esm/bal-close.entry.js +1 -1
- package/dist/esm/bal-content.entry.js +1 -1
- package/dist/esm/bal-data_4.entry.js +1 -1
- package/dist/esm/bal-date-calendar-cell.entry.js +3 -3
- package/dist/esm/bal-date-calendar_2.entry.js +7 -20
- package/dist/esm/bal-date.entry.js +6 -31
- package/dist/esm/bal-divider.entry.js +1 -1
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-dropdown.entry.js +5 -5
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-file-upload.entry.js +7 -14
- package/dist/esm/bal-footer.entry.js +3 -3
- package/dist/esm/bal-form-col_2.entry.js +1 -1
- package/dist/esm/bal-form.entry.js +2 -2
- package/dist/esm/bal-heading_2.entry.js +3 -3
- package/dist/esm/bal-hint_5.entry.js +8 -33
- package/dist/esm/bal-icon.entry.js +3 -14
- package/dist/esm/bal-input-group.entry.js +2 -2
- package/dist/esm/bal-input-slider.entry.js +6 -20
- package/dist/esm/bal-input-stepper.entry.js +6 -19
- package/dist/esm/bal-input.entry.js +4 -17
- package/dist/esm/bal-label.entry.js +2 -2
- package/dist/esm/bal-list_8.entry.js +19 -19
- package/dist/esm/bal-logo.entry.js +6 -6
- package/dist/esm/bal-modal_3.entry.js +10 -36
- package/dist/esm/bal-nav_8.entry.js +18 -37
- package/dist/esm/bal-navbar_5.entry.js +13 -10
- package/dist/esm/bal-notices_3.entry.js +5 -5
- package/dist/esm/bal-notification.entry.js +2 -2
- package/dist/esm/bal-number-input.entry.js +4 -17
- package/dist/esm/bal-option_2.entry.js +6 -25
- package/dist/esm/bal-pagination.entry.js +9 -9
- package/dist/esm/bal-popup.entry.js +6 -37
- package/dist/esm/bal-progress-bar.entry.js +7 -7
- package/dist/esm/bal-radio-button.entry.js +5 -5
- package/dist/esm/bal-radio_2.entry.js +7 -44
- package/dist/esm/bal-segment_2.entry.js +11 -30
- package/dist/esm/bal-select_2.entry.js +10 -29
- package/dist/esm/bal-shape.entry.js +6 -6
- package/dist/esm/bal-sheet.entry.js +2 -2
- package/dist/esm/bal-spinner.entry.js +4 -4
- package/dist/esm/bal-stack.entry.js +2 -2
- package/dist/esm/bal-stage_6.entry.js +10 -10
- package/dist/esm/bal-step-item.entry.js +3 -3
- package/dist/esm/bal-steps.entry.js +15 -11
- package/dist/esm/bal-tab-item_2.entry.js +170 -160
- package/dist/esm/bal-table.entry.js +2 -2
- package/dist/esm/bal-tag_2.entry.js +3 -3
- package/dist/esm/bal-textarea.entry.js +4 -18
- package/dist/esm/bal-time-input.entry.js +4 -17
- package/dist/esm/bal-tooltip.entry.js +4 -4
- package/dist/esm/baloise-design-system.js +7 -6
- package/dist/esm/{breakpoints.decorator-a8efc52b.js → breakpoints.decorator-d489f428.js} +1 -1
- package/dist/esm/{breakpoints.subject-0764e6ff.js → breakpoints.subject-d0b34510.js} +2 -2
- package/dist/esm/{element-states.decorator-0f2107d8.js → element-states.decorator-4cf6af31.js} +1 -1
- package/dist/esm/{floating-ui-82413f23.js → floating-ui-922202fe.js} +2 -2
- package/dist/esm/{focus.decorator-dc333802.js → focus.decorator-c2c05d01.js} +1 -1
- package/dist/esm/{form-input-264ad739.js → form-input-1f3d8337.js} +1 -1
- package/dist/esm/global-88c7b04e.js +7 -0
- package/dist/esm/{helpers-72ae7307.js → helpers-32d9e1cc.js} +33 -3
- package/dist/esm/{index-5b1faf93.js → index-8d2a7ce7.js} +284 -163
- package/dist/esm/index.js +9 -9
- package/dist/esm/{initialize-b9912138.js → initialize-22c1bebc.js} +2 -2
- package/dist/esm/{keyboard.helpers-b2dd6393.js → keyboard.helpers-159e517d.js} +7 -1
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{mutation.decorator-74831883.js → mutation.decorator-0c202bed.js} +17 -14
- package/dist/esm/{overlays-73dcc4a8.js → overlays-fa0ccf81.js} +1 -1
- package/dist/esm/{resize.decorator-f2d8461d.js → resize.decorator-bd416c47.js} +21 -5
- package/dist/esm/{swipe.decorator-56b6d574.js → swipe.decorator-20f4a0cb.js} +1 -1
- package/dist/esm/{swipe.subject-683f7c7b.js → swipe.subject-e3db5994.js} +2 -2
- package/dist/esm/swiper.util-3e090584.js +445 -0
- package/dist/esm/{tokens.esm-69df759d.js → tokens.esm-28388bbc.js} +1 -1
- package/dist/esm/{window-resize.decorator-53d6279e.js → window-resize.decorator-ab7c4574.js} +1 -1
- 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-badge.entry.js +1 -1
- package/dist/esm-es5/bal-button_2.entry.js +1 -1
- package/dist/esm-es5/bal-card_6.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-content.entry.js +1 -1
- package/dist/esm-es5/bal-data_4.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-divider.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-dropdown.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
- package/dist/esm-es5/bal-form.entry.js +1 -1
- package/dist/esm-es5/bal-heading_2.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-group.entry.js +1 -1
- package/dist/esm-es5/bal-input-slider.entry.js +1 -1
- package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
- package/dist/esm-es5/bal-input.entry.js +1 -1
- package/dist/esm-es5/bal-label.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-modal_3.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-notices_3.entry.js +1 -1
- package/dist/esm-es5/bal-notification.entry.js +1 -1
- package/dist/esm-es5/bal-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-option_2.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-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-sheet.entry.js +1 -1
- package/dist/esm-es5/bal-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stack.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-step-item.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/bal-table.entry.js +1 -1
- package/dist/esm-es5/bal-tag_2.entry.js +1 -1
- package/dist/esm-es5/bal-textarea.entry.js +1 -1
- package/dist/esm-es5/bal-time-input.entry.js +1 -1
- package/dist/esm-es5/bal-tooltip.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/breakpoints.decorator-d489f428.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-0764e6ff.js → breakpoints.subject-d0b34510.js} +1 -1
- package/dist/esm-es5/{element-states.decorator-0f2107d8.js → element-states.decorator-4cf6af31.js} +1 -1
- package/dist/esm-es5/floating-ui-922202fe.js +1 -0
- package/dist/esm-es5/{focus.decorator-dc333802.js → focus.decorator-c2c05d01.js} +1 -1
- package/dist/esm-es5/{form-input-264ad739.js → form-input-1f3d8337.js} +1 -1
- package/dist/esm-es5/global-88c7b04e.js +1 -0
- package/dist/esm-es5/helpers-32d9e1cc.js +1 -0
- package/dist/esm-es5/index-8d2a7ce7.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{initialize-b9912138.js → initialize-22c1bebc.js} +1 -1
- package/dist/esm-es5/keyboard.helpers-159e517d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mutation.decorator-0c202bed.js +1 -0
- package/dist/esm-es5/{overlays-73dcc4a8.js → overlays-fa0ccf81.js} +1 -1
- package/dist/esm-es5/resize.decorator-bd416c47.js +1 -0
- package/dist/esm-es5/{swipe.decorator-56b6d574.js → swipe.decorator-20f4a0cb.js} +1 -1
- package/dist/esm-es5/swipe.subject-e3db5994.js +1 -0
- package/dist/esm-es5/swiper.util-3e090584.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-53d6279e.js → window-resize.decorator-ab7c4574.js} +1 -1
- package/dist/html.html-data.json +2 -2
- package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +3 -2
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +20 -33
- package/dist/types/components/bal-icon/bal-icon.d.ts +0 -6
- package/dist/types/components/bal-steps/bal-steps.d.ts +2 -1
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +30 -13
- package/dist/types/components/bal-tabs/components/tab-button.d.ts +1 -1
- package/dist/types/components/bal-tabs/components/tab-label.d.ts +1 -0
- package/dist/types/components/bal-tabs/components/tab-nav.d.ts +4 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +44 -9
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/keyboard/keyboard.helpers.d.ts +4 -0
- package/dist/types/utils/resize/resize.interfaces.d.ts +4 -1
- package/dist/types/utils/resize/resize.listener.d.ts +2 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/swiper/controls/index.d.ts +3 -0
- package/dist/types/utils/swiper/index.d.ts +2 -0
- package/dist/types/utils/swiper/swiper.i18n.d.ts +7 -0
- package/dist/types/utils/swiper/swiper.type.d.ts +31 -0
- package/dist/types/utils/swiper/swiper.util.d.ts +92 -0
- package/package.json +8 -8
- package/components/bal-carousel-item2.js +0 -115
- package/components/bal-carousel2.js +0 -530
- package/components/bal-pagination2.js +0 -313
- package/components/bal-select-option2.js +0 -47
- package/components/bal-select2.js +0 -868
- package/components/listen.js +0 -58
- package/dist/baloise-design-system/p-00281d6b.js +0 -1
- package/dist/baloise-design-system/p-04979ee232.entry.js +0 -1
- package/dist/baloise-design-system/p-075bcd8c56.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0935940ea0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0aa1d6a4.system.js +0 -1
- package/dist/baloise-design-system/p-0c51c999.js +0 -1
- package/dist/baloise-design-system/p-0e361394.js +0 -1
- package/dist/baloise-design-system/p-0fd1b4ed34.entry.js +0 -1
- package/dist/baloise-design-system/p-116b65a6.system.js +0 -1
- package/dist/baloise-design-system/p-12701030b2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1400a7e9cc.entry.js +0 -1
- package/dist/baloise-design-system/p-18fbeec32d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-19abec97c4.entry.js +0 -1
- package/dist/baloise-design-system/p-1c118a88.system.js +0 -1
- package/dist/baloise-design-system/p-20d7a74311.system.entry.js +0 -1
- package/dist/baloise-design-system/p-218f416b89.entry.js +0 -1
- package/dist/baloise-design-system/p-2539ba43.js +0 -2
- package/dist/baloise-design-system/p-25e640839d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2767b62167.system.entry.js +0 -1
- package/dist/baloise-design-system/p-27d3f5d35a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2ad664ad93.entry.js +0 -1
- package/dist/baloise-design-system/p-33101c54.js +0 -1
- package/dist/baloise-design-system/p-3814316946.entry.js +0 -1
- package/dist/baloise-design-system/p-3a0a84fbcc.system.entry.js +0 -1
- package/dist/baloise-design-system/p-3d1747bc.system.js +0 -1
- package/dist/baloise-design-system/p-47ae469120.entry.js +0 -1
- package/dist/baloise-design-system/p-4d807f18.system.js +0 -1
- package/dist/baloise-design-system/p-50927d70.js +0 -1
- package/dist/baloise-design-system/p-51380295.system.js +0 -1
- package/dist/baloise-design-system/p-53b859d3c4.entry.js +0 -1
- package/dist/baloise-design-system/p-562c360455.entry.js +0 -1
- package/dist/baloise-design-system/p-58f7826179.entry.js +0 -1
- package/dist/baloise-design-system/p-5bbc6e33c0.entry.js +0 -1
- package/dist/baloise-design-system/p-62936f4a8b.entry.js +0 -1
- package/dist/baloise-design-system/p-68392bc0e8.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6d6a2f64f2.entry.js +0 -1
- package/dist/baloise-design-system/p-6e79b03ef3.entry.js +0 -1
- package/dist/baloise-design-system/p-77a1d547e2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7a883fd6ed.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7e50273c21.entry.js +0 -1
- package/dist/baloise-design-system/p-85d9ea863b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8669493951.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8a1bb350f1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9311066eb2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-95a4f1be.js +0 -1
- package/dist/baloise-design-system/p-9d29364f13.entry.js +0 -1
- package/dist/baloise-design-system/p-9d3f7645.system.js +0 -1
- package/dist/baloise-design-system/p-9eb4e04e90.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9f54cfc70b.entry.js +0 -1
- package/dist/baloise-design-system/p-a33ee4ca30.entry.js +0 -1
- package/dist/baloise-design-system/p-a5a8da4e09.entry.js +0 -1
- package/dist/baloise-design-system/p-a6556b9bd0.entry.js +0 -1
- package/dist/baloise-design-system/p-a76969fe16.entry.js +0 -1
- package/dist/baloise-design-system/p-aa08fe2376.entry.js +0 -1
- package/dist/baloise-design-system/p-ab64213bd1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ad58876e8c.entry.js +0 -1
- package/dist/baloise-design-system/p-ae2292f251.system.entry.js +0 -1
- package/dist/baloise-design-system/p-af4c6af2.js +0 -1
- package/dist/baloise-design-system/p-b0120babb2.entry.js +0 -1
- package/dist/baloise-design-system/p-b5c538994b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ba9c735428.entry.js +0 -1
- package/dist/baloise-design-system/p-be61baa681.entry.js +0 -1
- package/dist/baloise-design-system/p-c6ee7ff820.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c9dce0f3ea.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ca0e100fe8.entry.js +0 -1
- package/dist/baloise-design-system/p-ce3173af38.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ce674dca.js +0 -1
- package/dist/baloise-design-system/p-d21e99c2da.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d532d41212.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d67f7321.system.js +0 -2
- package/dist/baloise-design-system/p-d88acac29e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d97dc6a8.system.js +0 -1
- package/dist/baloise-design-system/p-dc032a0d49.entry.js +0 -1
- package/dist/baloise-design-system/p-e563e447.js +0 -1
- package/dist/baloise-design-system/p-e5724f1013.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ec4cf5cec6.entry.js +0 -1
- package/dist/baloise-design-system/p-edbd880ce1.entry.js +0 -1
- package/dist/baloise-design-system/p-ee3c7a38.system.js +0 -1
- package/dist/baloise-design-system/p-fc915218bf.entry.js +0 -1
- package/dist/baloise-design-system/p-fe30593a.js +0 -1
- package/dist/cjs/app-globals-661b320a.js +0 -11
- package/dist/cjs/listen-b42a4134.js +0 -60
- package/dist/cjs/style-799e9253.js +0 -27
- package/dist/collection/utils/listen.js +0 -55
- package/dist/esm/app-globals-665b5c71.js +0 -9
- package/dist/esm/listen-d1712e70.js +0 -58
- package/dist/esm/style-ca1bd202.js +0 -24
- package/dist/esm-es5/app-globals-665b5c71.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-a8efc52b.js +0 -1
- package/dist/esm-es5/floating-ui-82413f23.js +0 -1
- package/dist/esm-es5/helpers-72ae7307.js +0 -1
- package/dist/esm-es5/index-5b1faf93.js +0 -2
- package/dist/esm-es5/keyboard.helpers-b2dd6393.js +0 -1
- package/dist/esm-es5/listen-d1712e70.js +0 -1
- package/dist/esm-es5/mutation.decorator-74831883.js +0 -1
- package/dist/esm-es5/resize.decorator-f2d8461d.js +0 -1
- package/dist/esm-es5/style-ca1bd202.js +0 -1
- package/dist/esm-es5/swipe.subject-683f7c7b.js +0 -1
- package/dist/types/components/bal-carousel/bal-carousel.i18n.d.ts +0 -7
- package/dist/types/components/bal-carousel/bal-carousel.type.d.ts +0 -18
- package/dist/types/utils/listen.d.ts +0 -12
- /package/dist/baloise-design-system/{p-0521dc23.js → p-37aeaf8b.js} +0 -0
- /package/dist/baloise-design-system/{p-342d34ac.system.js → p-88489cf7.system.js} +0 -0
- /package/dist/collection/{components/bal-carousel/bal-carousel.type.js → utils/swiper/swiper.type.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-69df759d.js → tokens.esm-28388bbc.js} +0 -0
- /package/dist/types/{components/bal-carousel → utils/swiper}/controls/dot-control.d.ts +0 -0
- /package/dist/types/{components/bal-carousel → utils/swiper}/controls/large-control.d.ts +0 -0
- /package/dist/types/{components/bal-carousel → utils/swiper}/controls/small-control.d.ts +0 -0
|
@@ -1,868 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
-
import { l as lodash_isnil } from './index3.js';
|
|
4
|
-
import { o as rIC, d as waitAfterIdleCallback, f as deepReady, i as isDescendant, j as debounce } from './helpers.js';
|
|
5
|
-
import { a as areArraysEqual } from './array.js';
|
|
6
|
-
import { r as removeValue, p as preventDefault, l as length, g as getValues, i as includes, s as startsWith, a as addValue, f as findLabelByValue, b as findOptionByLabel, v as validateAfterBlur } from './utils.js';
|
|
7
|
-
import { s as stopEventBubbling } from './form-input.js';
|
|
8
|
-
import { B as BEM } from './bem.js';
|
|
9
|
-
import { L as Logger } from './log.js';
|
|
10
|
-
import { d as defaultBalAriaForm } from './form.js';
|
|
11
|
-
import { L as ListenTo } from './listen.js';
|
|
12
|
-
import { d as defineCustomElement$6 } from './bal-checkbox2.js';
|
|
13
|
-
import { d as defineCustomElement$5 } from './bal-close2.js';
|
|
14
|
-
import { d as defineCustomElement$4 } from './bal-icon2.js';
|
|
15
|
-
import { d as defineCustomElement$3 } from './bal-popover2.js';
|
|
16
|
-
import { d as defineCustomElement$2 } from './bal-popover-content2.js';
|
|
17
|
-
import { d as defineCustomElement$1 } from './bal-tag2.js';
|
|
18
|
-
import { a as isSpaceKey, b as isArrowDownKey, c as isArrowUpKey, i as isEnterKey, d as isEscapeKey, e as isBackspaceKey } from './keyboard.helpers.js';
|
|
19
|
-
|
|
20
|
-
const watchForOptions = (containerEl, tagName, onChange) => {
|
|
21
|
-
/* tslint:disable-next-line */
|
|
22
|
-
if (typeof MutationObserver === 'undefined') {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const mutation = new MutationObserver(mutationList => {
|
|
26
|
-
mutationList = mutationList.filter(record => record.target.nodeName === tagName.toUpperCase() || record.target.nodeName === 'bal-select'.toUpperCase());
|
|
27
|
-
if (mutationList.length > 0) {
|
|
28
|
-
onChange(undefined);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
mutation.observe(containerEl, {
|
|
32
|
-
childList: true,
|
|
33
|
-
subtree: true,
|
|
34
|
-
attributes: true,
|
|
35
|
-
characterData: true,
|
|
36
|
-
});
|
|
37
|
-
return mutation;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const balSelectCss = ":root{--bal-select-control-background:var(--bal-color-white);--bal-select-control-background-hover:var(--bal-form-field-control-background-hover);--bal-select-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-select-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-select-control-input-background:var(--bal-color-grey-1);--bal-select-control-native-input-background:transparent;--bal-select-control-native-input-background-hover:transparent;--bal-select-control-input-inverted-footer-background:transparent;--bal-select-control-input-inverted-footer-background-hover:transparent;--bal-select-control-input-multiple-background:transparent;--bal-select-control-input-multiple-background-read-only-selection:transparent;--bal-select-control-input-option-background:transparent;--bal-select-control-input-option-background-selected:var(--bal-color-primary-1);--bal-select-control-input-option-background-focused:var(--bal-color-grey-2);--bal-select-control-input-option-background-hover:var(--bal-color-grey-2);--bal-select-control-border-radius:var(--bal-form-field-control-radius);--bal-select-popover-border-color:var(--bal-color-grey-2);--bal-select-control-border-color:var(--bal-form-field-control-border-color);--bal-select-control-border-color-focused:var(--bal-color-primary);--bal-select-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-select-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-select-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-select-control-border-color-focus-within:var(--bal-color-primary);--bal-select-option-border-top-color:var(--bal-color-grey-2);--bal-select-popover-empty-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color-focused:var(--bal-color-primary);--bal-select-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-select-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-select-option-content-label-text-color:var(--bal-form-field-control-color)}bal-select-option{display:none !important}.bal-select{display:block;position:relative;width:100%;-ms-flex:1;flex:1;font-family:var(--bal-font-family-text)}.bal-select__popover{border:.125rem solid var(--bal-select-popover-border-color)}.bal-select__popover__empty{padding:.5rem 1rem;font-family:var(--bal-font-family-text);color:var(--bal-select-popover-empty-text-color)}.bal-select__popover__empty--hidden{display:none}.bal-select__native{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-select__control{display:-ms-flexbox;display:flex;border-width:.125rem;border-style:solid;border-color:var(--bal-select-control-border-color);border-radius:var(--bal-select-control-border-radius);background:var(--bal-select-control-background);font-size:var(--bal-font-weight-regular);font-family:var(--bal-font-family-text);color:var(--bal-select-control-text-color);outline:none;-webkit-box-shadow:none;box-shadow:none;padding-right:1rem;min-height:3rem}.bal-select__control--focused{border-color:var(--bal-select-control-border-color-focused)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover{border-color:var(--bal-select-control-border-color-hover);background-color:var(--bal-select-control-background-hover)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover .bal-select__control__input{background-color:var(--bal-select-control-input-background)}.bal-select__control--invalid:not(.bal-select__control--disabled){border-color:var(--bal-select-control-border-color-invalid) !important;background:var(--bal-select-control-background-invalid) !important}.bal-select__control:focus-within{border-color:var(--bal-select-control-border-color-focus-within) !important}.bal-select__control--disabled{background-color:var(--bal-select-control-background-disabled) !important;border-color:var(--bal-select-control-border-color-disabled) !important}.bal-select__control--disabled,.bal-select__control--disabled input{cursor:default !important;-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;pointer-events:none !important;color:var(--bal-select-input-text-color-disabled)}.bal-select__control--inverted-footer{border:none;background-color:var(--bal-select-control-input-inverted-footer-background) !important;padding-right:0}.bal-select__control--inverted-footer:hover{background-color:var(--bal-select-control-input-inverted-footer-background-hover) !important}.bal-select__control--inverted-footer .input{color:var(--bal-select-control-inverted-footer-native-input-text-color);background-color:var(--bal-select-control-native-input-background) !important}.bal-select__control--inverted-footer .input:hover{background-color:var(--bal-select-control-native-input-background-hover) !important}.bal-select__control__icon{min-height:100% !important;max-height:100% !important}.bal-select__control__icon--loading{display:none}.bal-select__control__icon--clickable{cursor:pointer}.bal-select__control__selections{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1 1;flex:1 1;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:1.125rem;max-width:100%;min-width:0;gap:0;padding-left:.375rem}.bal-select__control__selections .bal-tag{margin-left:.25rem;margin-top:.375rem;margin-bottom:.375rem}.bal-select__control__selections .bal-tag+.input{padding-left:.625rem}.bal-select__control__input{border:none !important;outline:none !important;outline-width:0 !important;height:2.75rem !important;-webkit-box-shadow:none !important;box-shadow:none !important;background:var(--bal-select-control-input-multiple-background);-ms-flex:1;flex:1;min-height:2.75rem !important;padding-left:.25rem !important;padding-right:.625rem !important;text-overflow:ellipsis}.bal-select__control__input:-moz-read-only{-moz-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only{-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__option{visibility:visible;font-family:var(--bal-font-family-text);background:var(--bal-select-control-input-option-background);border:none;cursor:pointer;outline:none;min-height:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0;margin:0;border-top:.125rem solid var(--bal-select-option-border-top-color);text-align:inherit;white-space:nowrap;width:100%}.bal-select__option:first-child{border-top:none}.bal-select__option::-moz-focus-inner{border:none}.bal-select__option--selected{background:var(--bal-select-control-input-option-background-selected)}.bal-select__option--selected .bal-select__option__content__label{font-weight:var(--bal-font-weight-bold)}.bal-select__option--focused{background:var(--bal-select-control-input-option-background-focused)}.bal-select__option:hover{background:var(--bal-select-control-input-option-background-hover)}.bal-select__option__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;min-height:3rem;padding:.75rem 1rem;gap:.75rem}.bal-select__option__content__checkbox{margin:0;padding:0}.bal-select__option__content__label{margin:0;padding:0;font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-select-option-content-label-text-color);line-height:1.125rem;word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}";
|
|
41
|
-
const BalSelectStyle0 = balSelectCss;
|
|
42
|
-
|
|
43
|
-
const isHuman = true;
|
|
44
|
-
const isNotHuman = false;
|
|
45
|
-
const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement {
|
|
46
|
-
constructor() {
|
|
47
|
-
super();
|
|
48
|
-
this.__registerHost();
|
|
49
|
-
this.balChange = createEvent(this, "balChange", 7);
|
|
50
|
-
this.balInputClick = createEvent(this, "balInputClick", 7);
|
|
51
|
-
this.balInput = createEvent(this, "balInput", 7);
|
|
52
|
-
this.balBlur = createEvent(this, "balBlur", 7);
|
|
53
|
-
this.balFocus = createEvent(this, "balFocus", 7);
|
|
54
|
-
this.balCancel = createEvent(this, "balCancel", 7);
|
|
55
|
-
this.balKeyPress = createEvent(this, "balKeyPress", 7);
|
|
56
|
-
this.didInit = false;
|
|
57
|
-
this.inputId = `bal-select-${selectIds++}`;
|
|
58
|
-
this.initialValue = [];
|
|
59
|
-
this.removeValue = (value) => {
|
|
60
|
-
if (!this.disabled) {
|
|
61
|
-
this.updateRawValue(removeValue(this.rawValue, value), isHuman);
|
|
62
|
-
if (this.multiple && this.typeahead) {
|
|
63
|
-
this.setFocus();
|
|
64
|
-
}
|
|
65
|
-
this.fireBlur();
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* EVENT BINDING
|
|
70
|
-
* ------------------------------------------------------
|
|
71
|
-
*/
|
|
72
|
-
this.fireBlur = (ev = new CustomEvent('blur')) => {
|
|
73
|
-
if (!this.isPopoverOpen && !this.hasFocus) {
|
|
74
|
-
rIC(() => this.balBlur.emit(ev));
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
this.handleClick = (ev) => {
|
|
78
|
-
if (this.disabled || this.readonly) {
|
|
79
|
-
preventDefault(ev);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
this.handlePopoverChange = (ev) => {
|
|
83
|
-
ev.stopPropagation();
|
|
84
|
-
if (this.isPopoverOpen !== ev.detail) {
|
|
85
|
-
this.isPopoverOpen = ev.detail;
|
|
86
|
-
if (this.isPopoverOpen) {
|
|
87
|
-
this.updateFocus();
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
this.focusIndex = -1;
|
|
91
|
-
if (this.multiple && this.typeahead) {
|
|
92
|
-
this.updateInputValue('');
|
|
93
|
-
}
|
|
94
|
-
this.fireBlur(ev);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
this.handleInputBlur = (ev) => {
|
|
99
|
-
preventDefault(ev);
|
|
100
|
-
const target = ev.relatedTarget;
|
|
101
|
-
if (target === null ||
|
|
102
|
-
(target &&
|
|
103
|
-
target.nodeName &&
|
|
104
|
-
(target.nodeName === 'BAL-MODAL' || target.nodeName === 'INPUT' || target.nodeName === 'BUTTON'))) {
|
|
105
|
-
this.validateAfterBlur(isHuman);
|
|
106
|
-
}
|
|
107
|
-
this.hasFocus = false;
|
|
108
|
-
this.fireBlur(ev);
|
|
109
|
-
};
|
|
110
|
-
this.handleInputFocus = (ev) => {
|
|
111
|
-
this.balFocus.emit(ev);
|
|
112
|
-
this.hasFocus = true;
|
|
113
|
-
};
|
|
114
|
-
this.handleInputClick = async (ev, isIconClick = false) => {
|
|
115
|
-
var _a, _b, _c, _d;
|
|
116
|
-
stopEventBubbling(ev);
|
|
117
|
-
if (this.isChipClicked(ev)) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
if (this.disabled || this.readonly) {
|
|
121
|
-
preventDefault(ev);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
this.focusIndex = -1;
|
|
125
|
-
this.balInputClick.emit(ev);
|
|
126
|
-
if (this.typeahead) {
|
|
127
|
-
if (this.isPopoverOpen && isIconClick) {
|
|
128
|
-
await ((_a = this.popoverElement) === null || _a === void 0 ? void 0 : _a.dismiss());
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
await ((_b = this.popoverElement) === null || _b === void 0 ? void 0 : _b.present());
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
if (this.isPopoverOpen) {
|
|
136
|
-
await ((_c = this.popoverElement) === null || _c === void 0 ? void 0 : _c.dismiss());
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
await ((_d = this.popoverElement) === null || _d === void 0 ? void 0 : _d.present());
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
this.handleKeyPress = async (ev) => {
|
|
145
|
-
if (!this.isPopoverOpen && isSpaceKey(ev)) {
|
|
146
|
-
preventDefault(ev);
|
|
147
|
-
await this.open();
|
|
148
|
-
}
|
|
149
|
-
this.balKeyPress.emit(ev);
|
|
150
|
-
};
|
|
151
|
-
this.handleInputChange = (ev) => {
|
|
152
|
-
if (!this.disabled && !this.readonly) {
|
|
153
|
-
this.inputValue = ev.target.value;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
this.handleInput = async (ev) => {
|
|
157
|
-
if (!this.disabled && !this.readonly) {
|
|
158
|
-
this.inputValue = ev.target.value;
|
|
159
|
-
if (!this.isPopoverOpen) {
|
|
160
|
-
this.popoverElement.present();
|
|
161
|
-
}
|
|
162
|
-
this.focusIndex = -1;
|
|
163
|
-
this.updateFocus();
|
|
164
|
-
preventDefault(ev);
|
|
165
|
-
this.balInput.emit(this.inputValue);
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
this.handleOptionMouseEnter = (index) => {
|
|
169
|
-
this.focusIndex = index;
|
|
170
|
-
};
|
|
171
|
-
this.hasFocus = false;
|
|
172
|
-
this.inputValue = '';
|
|
173
|
-
this.focusIndex = -1;
|
|
174
|
-
this.isPopoverOpen = false;
|
|
175
|
-
this.options = new Map();
|
|
176
|
-
this.labelToScrollTo = '';
|
|
177
|
-
this.labelToSelectTo = '';
|
|
178
|
-
this.ariaForm = defaultBalAriaForm;
|
|
179
|
-
this.name = this.inputId;
|
|
180
|
-
this.invalid = false;
|
|
181
|
-
this.filter = 'includes';
|
|
182
|
-
this.balTabindex = 0;
|
|
183
|
-
this.freeSolo = false;
|
|
184
|
-
this.multiple = false;
|
|
185
|
-
this.maxLength = undefined;
|
|
186
|
-
this.noDataLabel = undefined;
|
|
187
|
-
this.autocomplete = 'off';
|
|
188
|
-
this.typeahead = false;
|
|
189
|
-
this.selectionOptional = false;
|
|
190
|
-
this.disabled = false;
|
|
191
|
-
this.readonly = false;
|
|
192
|
-
this.required = false;
|
|
193
|
-
this.inverted = false;
|
|
194
|
-
this.placeholder = undefined;
|
|
195
|
-
this.scrollable = 250;
|
|
196
|
-
this.loading = false;
|
|
197
|
-
this.remote = false;
|
|
198
|
-
this.autoInvalidOff = false;
|
|
199
|
-
this.value = [];
|
|
200
|
-
this.rawValue = [];
|
|
201
|
-
}
|
|
202
|
-
createLogger(log) {
|
|
203
|
-
this.log = log;
|
|
204
|
-
}
|
|
205
|
-
valueWatcher() {
|
|
206
|
-
this.syncRawValue(false);
|
|
207
|
-
}
|
|
208
|
-
updateRawValue(newValue, isHuman = true) {
|
|
209
|
-
if (!areArraysEqual(newValue, this.rawValue || [])) {
|
|
210
|
-
this.rawValue = [...newValue];
|
|
211
|
-
this.syncNativeInput();
|
|
212
|
-
if (this.didInit && isHuman === true) {
|
|
213
|
-
if (this.multiple) {
|
|
214
|
-
if (lodash_isnil(this.rawValue)) {
|
|
215
|
-
this.emitChangeEvent([]);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
this.emitChangeEvent([...this.rawValue]);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
if (lodash_isnil(this.rawValue) || length(this.rawValue) === 0) {
|
|
223
|
-
this.emitChangeEvent(undefined);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
this.emitChangeEvent(this.rawValue[0]);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
emitChangeEvent(detail) {
|
|
233
|
-
this.balChange.emit(detail);
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* LIFECYCLE
|
|
237
|
-
* ------------------------------------------------------
|
|
238
|
-
*/
|
|
239
|
-
connectedCallback() {
|
|
240
|
-
const debounceUpdateOptions = debounce(() => this.updateOptions(), 0);
|
|
241
|
-
this.initialValue = this.value;
|
|
242
|
-
debounceUpdateOptions();
|
|
243
|
-
this.mutationO = watchForOptions(this.el, 'bal-select-option', () => {
|
|
244
|
-
debounceUpdateOptions();
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
componentWillLoad() {
|
|
248
|
-
this.waitForOptionsAndThenUpdateRawValues();
|
|
249
|
-
this.isInsideOfFooter();
|
|
250
|
-
if (!lodash_isnil(this.rawValue) && this.options.size > 0 && length(this.rawValue) === 1) {
|
|
251
|
-
const firstOption = this.options.get(this.rawValue[0]);
|
|
252
|
-
if (!lodash_isnil(firstOption)) {
|
|
253
|
-
this.inputValue = firstOption.label;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
componentDidLoad() {
|
|
258
|
-
this.syncRawValue(false);
|
|
259
|
-
if (!this.multiple) {
|
|
260
|
-
this.inputElement.value = this.inputValue;
|
|
261
|
-
}
|
|
262
|
-
this.didInit = true;
|
|
263
|
-
}
|
|
264
|
-
disconnectedCallback() {
|
|
265
|
-
if (this.mutationO) {
|
|
266
|
-
this.mutationO.disconnect();
|
|
267
|
-
this.mutationO = undefined;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* LISTENERS
|
|
272
|
-
* ------------------------------------------------------
|
|
273
|
-
*/
|
|
274
|
-
listenOnClick(ev) {
|
|
275
|
-
if (this.disabled && ev.target && ev.target === this.el) {
|
|
276
|
-
preventDefault(ev);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
resetHandler(ev) {
|
|
280
|
-
const formElement = ev.target;
|
|
281
|
-
if (formElement === null || formElement === void 0 ? void 0 : formElement.contains(this.el)) {
|
|
282
|
-
if (this.resetHandlerTimer) {
|
|
283
|
-
clearTimeout(this.resetHandlerTimer);
|
|
284
|
-
}
|
|
285
|
-
this.resetHandlerTimer = setTimeout(() => {
|
|
286
|
-
this.value = this.initialValue;
|
|
287
|
-
this.syncRawValue(false);
|
|
288
|
-
this.syncNativeInput();
|
|
289
|
-
if (this.nativeSelectEl) {
|
|
290
|
-
const options = Array.from(this.nativeSelectEl.options);
|
|
291
|
-
options.forEach(o => (o.selected = true));
|
|
292
|
-
}
|
|
293
|
-
}, 0);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
async handleKeyDown(ev) {
|
|
297
|
-
if (this.isPopoverOpen) {
|
|
298
|
-
if (isArrowDownKey(ev) || isArrowUpKey(ev)) {
|
|
299
|
-
preventDefault(ev);
|
|
300
|
-
this.navigateWithArrowKey(ev);
|
|
301
|
-
this.updateFocus();
|
|
302
|
-
}
|
|
303
|
-
if (isEnterKey(ev)) {
|
|
304
|
-
preventDefault(ev);
|
|
305
|
-
this.selectedFocusedOption();
|
|
306
|
-
}
|
|
307
|
-
if (isEscapeKey(ev)) {
|
|
308
|
-
this.cancel();
|
|
309
|
-
}
|
|
310
|
-
if (isBackspaceKey(ev) && this.typeahead && this.multiple) {
|
|
311
|
-
if (this.inputElement.value === '' && length(this.rawValue) > 0) {
|
|
312
|
-
const valuesArray = getValues(this.rawValue);
|
|
313
|
-
this.removeValue(valuesArray[length(this.rawValue) - 1]);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
if (!this.typeahead && ev.key.length === 1) {
|
|
317
|
-
this.focusOptionByLabel(ev.key);
|
|
318
|
-
}
|
|
319
|
-
if (isSpaceKey(ev) && !this.typeahead) {
|
|
320
|
-
preventDefault(ev);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
if (this.hasFocus) {
|
|
325
|
-
if (isArrowDownKey(ev) || isArrowUpKey(ev)) {
|
|
326
|
-
preventDefault(ev);
|
|
327
|
-
await this.open();
|
|
328
|
-
}
|
|
329
|
-
if (!this.typeahead && ev.key.length === 1) {
|
|
330
|
-
this.selectOptionByLabel(ev.key);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* PUBLIC METHODS
|
|
337
|
-
* ------------------------------------------------------
|
|
338
|
-
*/
|
|
339
|
-
/**
|
|
340
|
-
* Sets the focus on the input element
|
|
341
|
-
*/
|
|
342
|
-
async setFocus() {
|
|
343
|
-
if (this.inputElement && !this.disabled) {
|
|
344
|
-
await waitAfterIdleCallback();
|
|
345
|
-
this.inputElement.focus();
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Returns the value of the component
|
|
350
|
-
*/
|
|
351
|
-
async getValue() {
|
|
352
|
-
return this.rawValue;
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* Sets the value to `[]`, the input value to ´''´ and the focus index to ´0´.
|
|
356
|
-
*/
|
|
357
|
-
async clear() {
|
|
358
|
-
this.focusIndex = -1;
|
|
359
|
-
if (this.inputElement) {
|
|
360
|
-
this.updateInputValue('');
|
|
361
|
-
this.updateRawValue([], isHuman);
|
|
362
|
-
this.value = this.multiple ? [] : '';
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* Opens the popover
|
|
367
|
-
*/
|
|
368
|
-
async open() {
|
|
369
|
-
if (!this.disabled && !this.readonly && !lodash_isnil(this.popoverElement)) {
|
|
370
|
-
await this.popoverElement.present();
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Closes the popover
|
|
375
|
-
*/
|
|
376
|
-
async close() {
|
|
377
|
-
if (!this.disabled && !this.readonly && !lodash_isnil(this.popoverElement)) {
|
|
378
|
-
this.blurSelect();
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Cancel the popover
|
|
383
|
-
*/
|
|
384
|
-
async cancel() {
|
|
385
|
-
this.labelToScrollTo = '';
|
|
386
|
-
this.close();
|
|
387
|
-
this.scrollTo(0);
|
|
388
|
-
this.balCancel.emit();
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* Select option by passed value
|
|
392
|
-
*/
|
|
393
|
-
async select(value) {
|
|
394
|
-
const option = this.options.get(value);
|
|
395
|
-
if (!lodash_isnil(option)) {
|
|
396
|
-
this.optionSelected(option);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* @internal
|
|
401
|
-
*/
|
|
402
|
-
async setAriaForm(ariaForm) {
|
|
403
|
-
this.ariaForm = Object.assign({}, ariaForm);
|
|
404
|
-
}
|
|
405
|
-
async waitForOptionsAndThenUpdateRawValues() {
|
|
406
|
-
clearTimeout(this.waitForOptionsAndThenUpdateRawValuesTimer);
|
|
407
|
-
await deepReady(this.el);
|
|
408
|
-
const hasOptions = this.options.size > 0;
|
|
409
|
-
if (hasOptions) {
|
|
410
|
-
if (!this.remote) {
|
|
411
|
-
this.syncRawValue(isNotHuman);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
this.waitForOptionsAndThenUpdateRawValuesTimer = setTimeout(() => this.waitForOptionsAndThenUpdateRawValues(), 10);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
async updateOptions() {
|
|
419
|
-
const optionElements = this.getChildOpts();
|
|
420
|
-
const options = new Map();
|
|
421
|
-
for (let index = 0; index < optionElements.length; index++) {
|
|
422
|
-
const element = optionElements[index];
|
|
423
|
-
options.set(element.value, {
|
|
424
|
-
value: element.value,
|
|
425
|
-
label: element.label,
|
|
426
|
-
disabled: element.disabled,
|
|
427
|
-
id: element.for,
|
|
428
|
-
textContent: element.textContent,
|
|
429
|
-
innerHTML: element.innerHTML,
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
if (!this.selectionOptional && Array.isArray(this.rawValue)) {
|
|
433
|
-
for (let index = 0; index < this.rawValue.length; index++) {
|
|
434
|
-
const val = this.rawValue[index];
|
|
435
|
-
if (!options.has(val)) {
|
|
436
|
-
const newRawValue = removeValue(this.rawValue, val);
|
|
437
|
-
this.updateRawValue(newRawValue, isNotHuman);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
this.options = new Map(options);
|
|
442
|
-
if (!this.typeahead) {
|
|
443
|
-
await this.syncNativeInput();
|
|
444
|
-
}
|
|
445
|
-
if (this.didInit && !this.remote) {
|
|
446
|
-
this.validateAfterBlur();
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* GETTERS
|
|
451
|
-
* ------------------------------------------------------
|
|
452
|
-
*/
|
|
453
|
-
get optionArray() {
|
|
454
|
-
const options = Array.from(this.options, ([_, value]) => value);
|
|
455
|
-
if (!this.typeahead || this.remote) {
|
|
456
|
-
return options;
|
|
457
|
-
}
|
|
458
|
-
return options.filter(option => this.filter === 'includes'
|
|
459
|
-
? includes(option.textContent, this.inputValue)
|
|
460
|
-
: startsWith(option.textContent, this.inputValue));
|
|
461
|
-
}
|
|
462
|
-
hasOptions() {
|
|
463
|
-
return this.optionArray.length > 0;
|
|
464
|
-
}
|
|
465
|
-
get inputPlaceholder() {
|
|
466
|
-
if (this.multiple) {
|
|
467
|
-
if (length(this.rawValue) < 1) {
|
|
468
|
-
return this.placeholder;
|
|
469
|
-
}
|
|
470
|
-
return undefined;
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
if (!lodash_isnil(this.rawValue) && length(this.rawValue) > 0) {
|
|
474
|
-
return undefined;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
return this.placeholder;
|
|
478
|
-
}
|
|
479
|
-
getChildOpts() {
|
|
480
|
-
return Array.from(this.el.querySelectorAll('bal-select-option'));
|
|
481
|
-
}
|
|
482
|
-
getPopoverContent() {
|
|
483
|
-
return this.popoverElement.querySelector('.bal-popover__content__inner');
|
|
484
|
-
}
|
|
485
|
-
updateFocus() {
|
|
486
|
-
if (this.focusIndex < -1) {
|
|
487
|
-
this.focusIndex = -1;
|
|
488
|
-
}
|
|
489
|
-
const visibleOptions = this.optionArray;
|
|
490
|
-
if (visibleOptions.length > 0) {
|
|
491
|
-
if (visibleOptions.length <= this.focusIndex) {
|
|
492
|
-
this.focusIndex = visibleOptions.length - 1;
|
|
493
|
-
}
|
|
494
|
-
const option = visibleOptions[this.focusIndex];
|
|
495
|
-
if (option && option.id) {
|
|
496
|
-
const focusedElement = this.el.querySelector(`button#${option.id}`);
|
|
497
|
-
if (focusedElement) {
|
|
498
|
-
clearTimeout(this.updateFocusTimer);
|
|
499
|
-
this.updateFocusTimer = setTimeout(() => {
|
|
500
|
-
this.scrollToFocusedOption(focusedElement);
|
|
501
|
-
}, 0);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
else {
|
|
506
|
-
this.focusIndex = -1;
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
scrollToFocusedOption(focusedElement) {
|
|
510
|
-
if (focusedElement && this.popoverElement) {
|
|
511
|
-
const popoverContentElement = this.getPopoverContent();
|
|
512
|
-
if (popoverContentElement) {
|
|
513
|
-
// up
|
|
514
|
-
const topOfOption = focusedElement.offsetTop;
|
|
515
|
-
const topOfPopoverContent = popoverContentElement.scrollTop;
|
|
516
|
-
if (topOfOption < topOfPopoverContent) {
|
|
517
|
-
popoverContentElement.scrollTop = topOfOption;
|
|
518
|
-
}
|
|
519
|
-
// down
|
|
520
|
-
const bottomOfOption = focusedElement.offsetTop + focusedElement.clientHeight;
|
|
521
|
-
const bottomOfPopoverContent = popoverContentElement.scrollTop + popoverContentElement.clientHeight;
|
|
522
|
-
if (bottomOfOption > bottomOfPopoverContent) {
|
|
523
|
-
popoverContentElement.scrollTop = popoverContentElement.scrollTop + focusedElement.clientHeight;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
scrollTo(scrollTop) {
|
|
529
|
-
const popoverContentElement = this.getPopoverContent();
|
|
530
|
-
if (popoverContentElement) {
|
|
531
|
-
popoverContentElement.scrollTop = scrollTop;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
selectedFocusedOption() {
|
|
535
|
-
const visibleOptions = this.optionArray;
|
|
536
|
-
if (visibleOptions.length > this.focusIndex) {
|
|
537
|
-
const focusedOption = visibleOptions[this.focusIndex];
|
|
538
|
-
if (focusedOption) {
|
|
539
|
-
this.optionSelected(focusedOption);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
navigateWithArrowKey(ev) {
|
|
544
|
-
if (isArrowDownKey(ev)) {
|
|
545
|
-
this.focusIndex = this.focusIndex + 1;
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
if (isArrowUpKey(ev)) {
|
|
549
|
-
this.focusIndex = this.focusIndex - 1;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
focusOptionByLabel(key) {
|
|
554
|
-
this.labelToScrollTo = this.labelToScrollTo + key;
|
|
555
|
-
clearTimeout(this.clearScrollToValue);
|
|
556
|
-
this.clearScrollToValue = setTimeout(() => {
|
|
557
|
-
this.scrollToLabel(this.labelToScrollTo);
|
|
558
|
-
}, 600);
|
|
559
|
-
}
|
|
560
|
-
selectOptionByLabel(key) {
|
|
561
|
-
this.labelToSelectTo = this.labelToSelectTo + key;
|
|
562
|
-
clearTimeout(this.clearSelectValue);
|
|
563
|
-
this.clearSelectValue = setTimeout(() => {
|
|
564
|
-
this.selectLabel(this.labelToSelectTo);
|
|
565
|
-
this.labelToSelectTo = '';
|
|
566
|
-
}, 600);
|
|
567
|
-
}
|
|
568
|
-
async selectLabel(label) {
|
|
569
|
-
if (label !== ' ') {
|
|
570
|
-
const option = this.optionArray.find(o => startsWith(o.label || '', label));
|
|
571
|
-
if (!lodash_isnil(option) && option.id) {
|
|
572
|
-
const optionElement = this.el.querySelector(`button#${option.id}`);
|
|
573
|
-
if (!lodash_isnil(optionElement)) {
|
|
574
|
-
const index = this.optionArray.indexOf(option);
|
|
575
|
-
this.focusIndex = index;
|
|
576
|
-
this.select(option.value);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
this.labelToScrollTo = '';
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
async scrollToLabel(label) {
|
|
583
|
-
if (label !== ' ') {
|
|
584
|
-
const option = this.optionArray.find(o => startsWith(o.label || '', label));
|
|
585
|
-
if (!lodash_isnil(option) && option.id) {
|
|
586
|
-
const optionElement = this.el.querySelector(`button#${option.id}`);
|
|
587
|
-
if (!lodash_isnil(optionElement)) {
|
|
588
|
-
const index = this.optionArray.indexOf(option);
|
|
589
|
-
this.focusIndex = index;
|
|
590
|
-
this.scrollTo(optionElement.offsetTop);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
this.labelToScrollTo = '';
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
/********************************************************
|
|
597
|
-
* VALUE & FILTER & SELECTION
|
|
598
|
-
********************************************************/
|
|
599
|
-
syncRawValue(isHuman = true) {
|
|
600
|
-
let newValue = [];
|
|
601
|
-
if (!lodash_isnil(this.value) && this.value !== '') {
|
|
602
|
-
if (Array.isArray(this.value)) {
|
|
603
|
-
newValue = [...this.value.filter(v => !lodash_isnil(v))];
|
|
604
|
-
}
|
|
605
|
-
else {
|
|
606
|
-
if (this.value.split('').includes(',')) {
|
|
607
|
-
newValue = [
|
|
608
|
-
...this.value
|
|
609
|
-
.split(',')
|
|
610
|
-
.filter(v => v)
|
|
611
|
-
.map(v => v.trim()),
|
|
612
|
-
];
|
|
613
|
-
}
|
|
614
|
-
else {
|
|
615
|
-
newValue = [this.value];
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
// trigger the raw value change
|
|
620
|
-
this.updateRawValue(newValue, isHuman);
|
|
621
|
-
}
|
|
622
|
-
blurSelect() {
|
|
623
|
-
this.popoverElement.dismiss();
|
|
624
|
-
}
|
|
625
|
-
optionSelected(selectedOption) {
|
|
626
|
-
const valuesArray = getValues(this.rawValue);
|
|
627
|
-
const isAlreadySelected = valuesArray.some(v => v === selectedOption.value);
|
|
628
|
-
this.updateValue(selectedOption.value, !isAlreadySelected);
|
|
629
|
-
if (!this.multiple) {
|
|
630
|
-
this.blurSelect();
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
if (this.typeahead) {
|
|
634
|
-
this.setFocus();
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
updateValue(newValue, isSelected = true) {
|
|
639
|
-
if (this.multiple) {
|
|
640
|
-
if (isSelected) {
|
|
641
|
-
this.updateRawValue(addValue(this.rawValue, newValue, this.multiple), isHuman);
|
|
642
|
-
}
|
|
643
|
-
else {
|
|
644
|
-
this.updateRawValue(removeValue(this.rawValue, newValue), isHuman);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
else {
|
|
648
|
-
this.updateRawValue(addValue(this.rawValue, newValue, this.multiple), isHuman);
|
|
649
|
-
if (this.rawValue && this.rawValue.length > 0) {
|
|
650
|
-
this.updateInputValue(findLabelByValue(this.options, this.rawValue[0]));
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
validateAfterBlur(isHuman = isNotHuman) {
|
|
655
|
-
let newRawValue = this.rawValue;
|
|
656
|
-
if (this.didInit && !this.multiple) {
|
|
657
|
-
if (this.typeahead && (this.selectionOptional || this.remote)) {
|
|
658
|
-
const typedOption = findOptionByLabel(this.options, this.inputElement.value);
|
|
659
|
-
if (typedOption) {
|
|
660
|
-
newRawValue = [typedOption.value];
|
|
661
|
-
}
|
|
662
|
-
else {
|
|
663
|
-
newRawValue = [this.inputElement.value];
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
newRawValue = validateAfterBlur(this.rawValue, this.options, this.inputElement.value);
|
|
668
|
-
}
|
|
669
|
-
this.updateRawValue(newRawValue, isHuman);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
syncNativeInput() {
|
|
673
|
-
if (!this.multiple) {
|
|
674
|
-
if (length(this.rawValue) > 0) {
|
|
675
|
-
const valuesArray = getValues(this.rawValue);
|
|
676
|
-
let label = findLabelByValue(this.options, valuesArray[0]);
|
|
677
|
-
if (!this.multiple && this.typeahead && this.selectionOptional && label === '') {
|
|
678
|
-
label = valuesArray.join(', ');
|
|
679
|
-
}
|
|
680
|
-
return this.updateInputValue(label);
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
return Promise.resolve();
|
|
684
|
-
}
|
|
685
|
-
updateInputValue(value) {
|
|
686
|
-
return new Promise(resolve => {
|
|
687
|
-
if (this.updateInputValueTimer) {
|
|
688
|
-
clearTimeout(this.updateInputValueTimer);
|
|
689
|
-
}
|
|
690
|
-
this.updateInputValueTimer = setTimeout(() => {
|
|
691
|
-
if (!lodash_isnil(this.inputElement)) {
|
|
692
|
-
this.inputElement.value = value;
|
|
693
|
-
this.inputValue = value;
|
|
694
|
-
resolve();
|
|
695
|
-
}
|
|
696
|
-
}, 0);
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
isChipClicked(ev) {
|
|
700
|
-
let isChipClicked = false;
|
|
701
|
-
if (this.multiple) {
|
|
702
|
-
const chips = this.selectionEl.querySelectorAll('bal-tag');
|
|
703
|
-
const target = ev.target;
|
|
704
|
-
chips.forEach(chip => {
|
|
705
|
-
const isChip = isDescendant(chip, target) || chip === target;
|
|
706
|
-
if (isChip) {
|
|
707
|
-
isChipClicked = isChip;
|
|
708
|
-
}
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
return isChipClicked;
|
|
712
|
-
}
|
|
713
|
-
isInsideOfFooter() {
|
|
714
|
-
this.inverted = this.el.closest('bal-footer') !== null;
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* RENDER
|
|
718
|
-
* ------------------------------------------------------
|
|
719
|
-
*/
|
|
720
|
-
render() {
|
|
721
|
-
var _a;
|
|
722
|
-
const Chip = (props) => (h("bal-tag", { key: '4b1cc586f9d9b2a7b08a01b35e60a1b1a9f595cd', size: "", closable: !this.disabled, disabled: this.disabled, invalid: this.invalid, tabindex: -1, onBalCloseClick: _ => this.removeValue(props.value), "data-testid": "bal-select-chip" }, findLabelByValue(this.options, props.value) || props.value));
|
|
723
|
-
const valuesArray = getValues(this.rawValue);
|
|
724
|
-
const block = BEM.block('select');
|
|
725
|
-
const nativeEl = block.element('native');
|
|
726
|
-
const controlEl = block.element('control');
|
|
727
|
-
const controlIconEl = controlEl.element('icon');
|
|
728
|
-
const controlSelectionsEl = controlEl.element('selections');
|
|
729
|
-
const controlInputEl = controlEl.element('input');
|
|
730
|
-
const popoverContentEl = block.element('popover');
|
|
731
|
-
const popoverContentEmptyEl = popoverContentEl.element('empty');
|
|
732
|
-
const optionEl = block.element('option');
|
|
733
|
-
const optionContentEl = optionEl.element('content');
|
|
734
|
-
const optionContentCheckboxEl = optionContentEl.element('checkbox');
|
|
735
|
-
const optionContentLabelEl = optionContentEl.element('label');
|
|
736
|
-
return (h(Host, { key: '0a96668b7026a0727bb790bd8a832586fac60198', role: "listbox", onClick: this.handleClick, "aria-disabled": this.disabled ? 'true' : null, "data-value": (_a = this.rawValue) === null || _a === void 0 ? void 0 : _a.map(v => findLabelByValue(this.options, v)).join(','), class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('disabled').class(this.disabled || this.readonly)), block.modifier('inverted').class(this.inverted)), block.modifier('inverted-footer').class(this.inverted)) }, h("select", { key: '171e653ec3b49ef15466a0f6c337a61573ddc86b', class: Object.assign({}, nativeEl.class()), name: this.name, multiple: this.multiple, required: this.required, tabindex: -1, ref: el => (this.nativeSelectEl = el) }, valuesArray.map((value) => (h("option", { key: value, value: value, selected: true }, value)))), h("bal-popover", { key: '570c0f670158386819df181079f49d0d534da6c7', onBalChange: this.handlePopoverChange, ref: el => (this.popoverElement = el) }, h("div", { key: '121bf963a166d7523954b199bb776accaa84ae7a', "bal-popover-trigger": true, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, controlEl.class()), controlEl.modifier('invalid').class(this.invalid)), controlEl.modifier('disabled').class(this.disabled || this.readonly)), controlEl.modifier('focused').class(this.isPopoverOpen)), controlEl.modifier('inverted-footer').class(this.inverted)) }, h("div", { key: '0bf2ba2f0ef23aaa222b547df175c5dfc4b3d6c6', class: Object.assign(Object.assign({}, controlSelectionsEl.class()), controlSelectionsEl
|
|
737
|
-
.modifier('clickable')
|
|
738
|
-
.class(!this.isPopoverOpen && !this.disabled && !this.readonly)), onClick: this.handleInputClick, ref: el => (this.selectionEl = el) }, valuesArray
|
|
739
|
-
.filter(_ => this.multiple)
|
|
740
|
-
.map((value) => (h(Chip, { value: value }))), h("input", { key: '45872c26a2889e0dd79851bc8ea6854d9f9fe33e', type: "text", class: Object.assign(Object.assign({}, controlInputEl.class()), { 'input': true, 'is-inverted': this.inverted, 'is-danger': this.invalid, 'is-disabled': this.disabled || this.readonly, 'is-clickable': !this.isPopoverOpen && !this.disabled && !this.readonly, 'data-test-select-input': true }), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, "data-testid": "bal-select-input", autocomplete: this.autocomplete, "aria-autocomplete": this.autocomplete === 'off' ? 'none' : null, placeholder: this.inputPlaceholder, readonly: !this.typeahead || this.disabled || this.readonly, contentEditable: this.typeahead, disabled: this.disabled, maxLength: this.maxLength, tabindex: this.balTabindex, onInput: this.handleInput, onClick: this.handleInputClick, onChange: this.handleInputChange, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onKeyPress: this.handleKeyPress, ref: el => (this.inputElement = el) })), !this.freeSolo && !this.loading ? (h("bal-icon", { class: Object.assign(Object.assign(Object.assign({}, controlIconEl.class()), controlIconEl.modifier('loading').class(this.loading)), controlIconEl.modifier('clickable').class(!this.disabled && !this.readonly)), name: !this.inverted ? 'caret-down' : 'caret-up', color: this.disabled || this.readonly
|
|
741
|
-
? 'grey-light'
|
|
742
|
-
: this.inverted
|
|
743
|
-
? 'white'
|
|
744
|
-
: this.invalid
|
|
745
|
-
? 'danger'
|
|
746
|
-
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: 'dd84e4a49c36226341c8a064988c8cf4c9b5e828', class: Object.assign({}, popoverContentEl.class()), scrollable: this.scrollable, spaceless: true, expanded: true }, this.optionArray.map((option, index) => (h("button", { key: option.value, type: "button", role: "option", id: option.id, "data-value": option.value, "data-label": option.label, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, optionEl.class()), optionEl
|
|
747
|
-
.modifier('selected')
|
|
748
|
-
.class(valuesArray.includes(option.value) && !(this.typeahead && !this.multiple))), optionEl.modifier('focused').class(this.focusIndex === index)), optionEl.modifier('checkbox').class(this.multiple)), optionEl.modifier('disabled').class(option.disabled === true)), "data-testid": "bal-select-option", disabled: option.disabled, tabIndex: -1, onMouseEnter: () => this.handleOptionMouseEnter(index), onClick: () => this.optionSelected(option) }, h("div", { class: Object.assign({}, optionContentEl.class()) }, h("span", { class: Object.assign({}, optionContentCheckboxEl.class()), style: { display: this.multiple ? 'flex' : 'none' } }, h("bal-checkbox", { checked: valuesArray.includes(option.value), tabindex: -1, nonSubmit: true, flat: true, onBalChange: preventDefault })), h("span", { class: Object.assign({}, optionContentLabelEl.class()), innerHTML: option.innerHTML }))))), h("div", { key: '824accbd7d97809ed3b91403a959528efaf448ce', class: Object.assign(Object.assign({}, popoverContentEmptyEl.class()), popoverContentEmptyEl
|
|
749
|
-
.modifier('hidden')
|
|
750
|
-
.class(this.noDataLabel === undefined || this.hasOptions() || !this.typeahead || this.selectionOptional)) }, this.noDataLabel)))));
|
|
751
|
-
}
|
|
752
|
-
get el() { return this; }
|
|
753
|
-
static get watchers() { return {
|
|
754
|
-
"value": ["valueWatcher"]
|
|
755
|
-
}; }
|
|
756
|
-
static get style() { return BalSelectStyle0; }
|
|
757
|
-
}, [0, "bal-select", {
|
|
758
|
-
"name": [1],
|
|
759
|
-
"invalid": [4],
|
|
760
|
-
"filter": [1],
|
|
761
|
-
"balTabindex": [2, "bal-tabindex"],
|
|
762
|
-
"freeSolo": [4, "free-solo"],
|
|
763
|
-
"multiple": [4],
|
|
764
|
-
"maxLength": [2, "max-length"],
|
|
765
|
-
"noDataLabel": [1, "no-data-label"],
|
|
766
|
-
"autocomplete": [1],
|
|
767
|
-
"typeahead": [4],
|
|
768
|
-
"selectionOptional": [4, "selection-optional"],
|
|
769
|
-
"disabled": [4],
|
|
770
|
-
"readonly": [4],
|
|
771
|
-
"required": [4],
|
|
772
|
-
"inverted": [4],
|
|
773
|
-
"placeholder": [1],
|
|
774
|
-
"scrollable": [2],
|
|
775
|
-
"loading": [4],
|
|
776
|
-
"remote": [4],
|
|
777
|
-
"autoInvalidOff": [516, "auto-invalid-off"],
|
|
778
|
-
"value": [1025],
|
|
779
|
-
"hasFocus": [32],
|
|
780
|
-
"inputValue": [32],
|
|
781
|
-
"focusIndex": [32],
|
|
782
|
-
"isPopoverOpen": [32],
|
|
783
|
-
"options": [32],
|
|
784
|
-
"labelToScrollTo": [32],
|
|
785
|
-
"labelToSelectTo": [32],
|
|
786
|
-
"ariaForm": [32],
|
|
787
|
-
"rawValue": [32],
|
|
788
|
-
"setFocus": [64],
|
|
789
|
-
"getValue": [64],
|
|
790
|
-
"clear": [64],
|
|
791
|
-
"open": [64],
|
|
792
|
-
"close": [64],
|
|
793
|
-
"cancel": [64],
|
|
794
|
-
"select": [64],
|
|
795
|
-
"setAriaForm": [64]
|
|
796
|
-
}, undefined, {
|
|
797
|
-
"value": ["valueWatcher"]
|
|
798
|
-
}]);
|
|
799
|
-
__decorate([
|
|
800
|
-
Logger('bal-select'),
|
|
801
|
-
__metadata("design:type", Function),
|
|
802
|
-
__metadata("design:paramtypes", [Function]),
|
|
803
|
-
__metadata("design:returntype", void 0)
|
|
804
|
-
], Select.prototype, "createLogger", null);
|
|
805
|
-
__decorate([
|
|
806
|
-
ListenTo('click', { capture: true, target: 'document' }),
|
|
807
|
-
__metadata("design:type", Function),
|
|
808
|
-
__metadata("design:paramtypes", [UIEvent]),
|
|
809
|
-
__metadata("design:returntype", void 0)
|
|
810
|
-
], Select.prototype, "listenOnClick", null);
|
|
811
|
-
__decorate([
|
|
812
|
-
ListenTo('reset', { capture: true, target: 'document' }),
|
|
813
|
-
__metadata("design:type", Function),
|
|
814
|
-
__metadata("design:paramtypes", [UIEvent]),
|
|
815
|
-
__metadata("design:returntype", void 0)
|
|
816
|
-
], Select.prototype, "resetHandler", null);
|
|
817
|
-
__decorate([
|
|
818
|
-
ListenTo('keydown', { target: 'window' }),
|
|
819
|
-
__metadata("design:type", Function),
|
|
820
|
-
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
821
|
-
__metadata("design:returntype", Promise)
|
|
822
|
-
], Select.prototype, "handleKeyDown", null);
|
|
823
|
-
let selectIds = 0;
|
|
824
|
-
function defineCustomElement() {
|
|
825
|
-
if (typeof customElements === "undefined") {
|
|
826
|
-
return;
|
|
827
|
-
}
|
|
828
|
-
const components = ["bal-select", "bal-checkbox", "bal-close", "bal-icon", "bal-popover", "bal-popover-content", "bal-tag"];
|
|
829
|
-
components.forEach(tagName => { switch (tagName) {
|
|
830
|
-
case "bal-select":
|
|
831
|
-
if (!customElements.get(tagName)) {
|
|
832
|
-
customElements.define(tagName, Select);
|
|
833
|
-
}
|
|
834
|
-
break;
|
|
835
|
-
case "bal-checkbox":
|
|
836
|
-
if (!customElements.get(tagName)) {
|
|
837
|
-
defineCustomElement$6();
|
|
838
|
-
}
|
|
839
|
-
break;
|
|
840
|
-
case "bal-close":
|
|
841
|
-
if (!customElements.get(tagName)) {
|
|
842
|
-
defineCustomElement$5();
|
|
843
|
-
}
|
|
844
|
-
break;
|
|
845
|
-
case "bal-icon":
|
|
846
|
-
if (!customElements.get(tagName)) {
|
|
847
|
-
defineCustomElement$4();
|
|
848
|
-
}
|
|
849
|
-
break;
|
|
850
|
-
case "bal-popover":
|
|
851
|
-
if (!customElements.get(tagName)) {
|
|
852
|
-
defineCustomElement$3();
|
|
853
|
-
}
|
|
854
|
-
break;
|
|
855
|
-
case "bal-popover-content":
|
|
856
|
-
if (!customElements.get(tagName)) {
|
|
857
|
-
defineCustomElement$2();
|
|
858
|
-
}
|
|
859
|
-
break;
|
|
860
|
-
case "bal-tag":
|
|
861
|
-
if (!customElements.get(tagName)) {
|
|
862
|
-
defineCustomElement$1();
|
|
863
|
-
}
|
|
864
|
-
break;
|
|
865
|
-
} });
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
export { Select as S, defineCustomElement as d };
|