@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
package/components/bal-select.js
CHANGED
|
@@ -1,4 +1,850 @@
|
|
|
1
|
-
import {
|
|
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 { p as rIC, d as waitAfterIdleCallback, h as deepReady, j as isDescendant, k 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 { d as defineCustomElement$7 } from './bal-checkbox2.js';
|
|
12
|
+
import { d as defineCustomElement$6 } from './bal-close2.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './bal-icon2.js';
|
|
14
|
+
import { d as defineCustomElement$4 } from './bal-popover2.js';
|
|
15
|
+
import { d as defineCustomElement$3 } from './bal-popover-content2.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './bal-tag2.js';
|
|
17
|
+
import { a as isSpaceKey, c as isArrowDownKey, d as isArrowUpKey, i as isEnterKey, e as isEscapeKey, k as isBackspaceKey } from './keyboard.helpers.js';
|
|
18
|
+
|
|
19
|
+
const watchForOptions = (containerEl, tagName, onChange) => {
|
|
20
|
+
/* tslint:disable-next-line */
|
|
21
|
+
if (typeof MutationObserver === 'undefined') {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const mutation = new MutationObserver(mutationList => {
|
|
25
|
+
mutationList = mutationList.filter(record => record.target.nodeName === tagName.toUpperCase() || record.target.nodeName === 'bal-select'.toUpperCase());
|
|
26
|
+
if (mutationList.length > 0) {
|
|
27
|
+
onChange(undefined);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
mutation.observe(containerEl, {
|
|
31
|
+
childList: true,
|
|
32
|
+
subtree: true,
|
|
33
|
+
attributes: true,
|
|
34
|
+
characterData: true,
|
|
35
|
+
});
|
|
36
|
+
return mutation;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
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}";
|
|
40
|
+
const BalSelectStyle0 = balSelectCss;
|
|
41
|
+
|
|
42
|
+
const isHuman = true;
|
|
43
|
+
const isNotHuman = false;
|
|
44
|
+
const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement {
|
|
45
|
+
constructor() {
|
|
46
|
+
super();
|
|
47
|
+
this.__registerHost();
|
|
48
|
+
this.balChange = createEvent(this, "balChange", 7);
|
|
49
|
+
this.balInputClick = createEvent(this, "balInputClick", 7);
|
|
50
|
+
this.balInput = createEvent(this, "balInput", 7);
|
|
51
|
+
this.balBlur = createEvent(this, "balBlur", 7);
|
|
52
|
+
this.balFocus = createEvent(this, "balFocus", 7);
|
|
53
|
+
this.balCancel = createEvent(this, "balCancel", 7);
|
|
54
|
+
this.balKeyPress = createEvent(this, "balKeyPress", 7);
|
|
55
|
+
this.didInit = false;
|
|
56
|
+
this.inputId = `bal-select-${selectIds++}`;
|
|
57
|
+
this.initialValue = [];
|
|
58
|
+
this.removeValue = (value) => {
|
|
59
|
+
if (!this.disabled) {
|
|
60
|
+
this.updateRawValue(removeValue(this.rawValue, value), isHuman);
|
|
61
|
+
if (this.multiple && this.typeahead) {
|
|
62
|
+
this.setFocus();
|
|
63
|
+
}
|
|
64
|
+
this.fireBlur();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* EVENT BINDING
|
|
69
|
+
* ------------------------------------------------------
|
|
70
|
+
*/
|
|
71
|
+
this.fireBlur = (ev = new CustomEvent('blur')) => {
|
|
72
|
+
if (!this.isPopoverOpen && !this.hasFocus) {
|
|
73
|
+
rIC(() => this.balBlur.emit(ev));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
this.handleClick = (ev) => {
|
|
77
|
+
if (this.disabled || this.readonly) {
|
|
78
|
+
preventDefault(ev);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
this.handlePopoverChange = (ev) => {
|
|
82
|
+
ev.stopPropagation();
|
|
83
|
+
if (this.isPopoverOpen !== ev.detail) {
|
|
84
|
+
this.isPopoverOpen = ev.detail;
|
|
85
|
+
if (this.isPopoverOpen) {
|
|
86
|
+
this.updateFocus();
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
this.focusIndex = -1;
|
|
90
|
+
if (this.multiple && this.typeahead) {
|
|
91
|
+
this.updateInputValue('');
|
|
92
|
+
}
|
|
93
|
+
this.fireBlur(ev);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.handleInputBlur = (ev) => {
|
|
98
|
+
preventDefault(ev);
|
|
99
|
+
const target = ev.relatedTarget;
|
|
100
|
+
if (target === null ||
|
|
101
|
+
(target &&
|
|
102
|
+
target.nodeName &&
|
|
103
|
+
(target.nodeName === 'BAL-MODAL' || target.nodeName === 'INPUT' || target.nodeName === 'BUTTON'))) {
|
|
104
|
+
this.validateAfterBlur(isHuman);
|
|
105
|
+
}
|
|
106
|
+
this.hasFocus = false;
|
|
107
|
+
this.fireBlur(ev);
|
|
108
|
+
};
|
|
109
|
+
this.handleInputFocus = (ev) => {
|
|
110
|
+
this.balFocus.emit(ev);
|
|
111
|
+
this.hasFocus = true;
|
|
112
|
+
};
|
|
113
|
+
this.handleInputClick = async (ev, isIconClick = false) => {
|
|
114
|
+
var _a, _b, _c, _d;
|
|
115
|
+
stopEventBubbling(ev);
|
|
116
|
+
if (this.isChipClicked(ev)) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (this.disabled || this.readonly) {
|
|
120
|
+
preventDefault(ev);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
this.focusIndex = -1;
|
|
124
|
+
this.balInputClick.emit(ev);
|
|
125
|
+
if (this.typeahead) {
|
|
126
|
+
if (this.isPopoverOpen && isIconClick) {
|
|
127
|
+
await ((_a = this.popoverElement) === null || _a === void 0 ? void 0 : _a.dismiss());
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
await ((_b = this.popoverElement) === null || _b === void 0 ? void 0 : _b.present());
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
if (this.isPopoverOpen) {
|
|
135
|
+
await ((_c = this.popoverElement) === null || _c === void 0 ? void 0 : _c.dismiss());
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
await ((_d = this.popoverElement) === null || _d === void 0 ? void 0 : _d.present());
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
this.handleKeyPress = async (ev) => {
|
|
144
|
+
if (!this.isPopoverOpen && isSpaceKey(ev)) {
|
|
145
|
+
preventDefault(ev);
|
|
146
|
+
await this.open();
|
|
147
|
+
}
|
|
148
|
+
this.balKeyPress.emit(ev);
|
|
149
|
+
};
|
|
150
|
+
this.handleInputChange = (ev) => {
|
|
151
|
+
if (!this.disabled && !this.readonly) {
|
|
152
|
+
this.inputValue = ev.target.value;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
this.handleInput = async (ev) => {
|
|
156
|
+
if (!this.disabled && !this.readonly) {
|
|
157
|
+
this.inputValue = ev.target.value;
|
|
158
|
+
if (!this.isPopoverOpen) {
|
|
159
|
+
this.popoverElement.present();
|
|
160
|
+
}
|
|
161
|
+
this.focusIndex = -1;
|
|
162
|
+
this.updateFocus();
|
|
163
|
+
preventDefault(ev);
|
|
164
|
+
this.balInput.emit(this.inputValue);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
this.handleOptionMouseEnter = (index) => {
|
|
168
|
+
this.focusIndex = index;
|
|
169
|
+
};
|
|
170
|
+
this.hasFocus = false;
|
|
171
|
+
this.inputValue = '';
|
|
172
|
+
this.focusIndex = -1;
|
|
173
|
+
this.isPopoverOpen = false;
|
|
174
|
+
this.options = new Map();
|
|
175
|
+
this.labelToScrollTo = '';
|
|
176
|
+
this.labelToSelectTo = '';
|
|
177
|
+
this.ariaForm = defaultBalAriaForm;
|
|
178
|
+
this.name = this.inputId;
|
|
179
|
+
this.invalid = false;
|
|
180
|
+
this.filter = 'includes';
|
|
181
|
+
this.balTabindex = 0;
|
|
182
|
+
this.freeSolo = false;
|
|
183
|
+
this.multiple = false;
|
|
184
|
+
this.maxLength = undefined;
|
|
185
|
+
this.noDataLabel = undefined;
|
|
186
|
+
this.autocomplete = 'off';
|
|
187
|
+
this.typeahead = false;
|
|
188
|
+
this.selectionOptional = false;
|
|
189
|
+
this.disabled = false;
|
|
190
|
+
this.readonly = false;
|
|
191
|
+
this.required = false;
|
|
192
|
+
this.inverted = false;
|
|
193
|
+
this.placeholder = undefined;
|
|
194
|
+
this.scrollable = 250;
|
|
195
|
+
this.loading = false;
|
|
196
|
+
this.remote = false;
|
|
197
|
+
this.autoInvalidOff = false;
|
|
198
|
+
this.value = [];
|
|
199
|
+
this.rawValue = [];
|
|
200
|
+
}
|
|
201
|
+
createLogger(log) {
|
|
202
|
+
this.log = log;
|
|
203
|
+
}
|
|
204
|
+
valueWatcher() {
|
|
205
|
+
this.syncRawValue(false);
|
|
206
|
+
}
|
|
207
|
+
updateRawValue(newValue, isHuman = true) {
|
|
208
|
+
if (!areArraysEqual(newValue, this.rawValue || [])) {
|
|
209
|
+
this.rawValue = [...newValue];
|
|
210
|
+
this.syncNativeInput();
|
|
211
|
+
if (this.didInit && isHuman === true) {
|
|
212
|
+
if (this.multiple) {
|
|
213
|
+
if (lodash_isnil(this.rawValue)) {
|
|
214
|
+
this.emitChangeEvent([]);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
this.emitChangeEvent([...this.rawValue]);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
if (lodash_isnil(this.rawValue) || length(this.rawValue) === 0) {
|
|
222
|
+
this.emitChangeEvent(undefined);
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
this.emitChangeEvent(this.rawValue[0]);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
emitChangeEvent(detail) {
|
|
232
|
+
this.balChange.emit(detail);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* LIFECYCLE
|
|
236
|
+
* ------------------------------------------------------
|
|
237
|
+
*/
|
|
238
|
+
connectedCallback() {
|
|
239
|
+
const debounceUpdateOptions = debounce(() => this.updateOptions(), 0);
|
|
240
|
+
this.initialValue = this.value;
|
|
241
|
+
debounceUpdateOptions();
|
|
242
|
+
this.mutationO = watchForOptions(this.el, 'bal-select-option', () => {
|
|
243
|
+
debounceUpdateOptions();
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
componentWillLoad() {
|
|
247
|
+
this.waitForOptionsAndThenUpdateRawValues();
|
|
248
|
+
this.isInsideOfFooter();
|
|
249
|
+
if (!lodash_isnil(this.rawValue) && this.options.size > 0 && length(this.rawValue) === 1) {
|
|
250
|
+
const firstOption = this.options.get(this.rawValue[0]);
|
|
251
|
+
if (!lodash_isnil(firstOption)) {
|
|
252
|
+
this.inputValue = firstOption.label;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
componentDidLoad() {
|
|
257
|
+
this.syncRawValue(false);
|
|
258
|
+
if (!this.multiple) {
|
|
259
|
+
this.inputElement.value = this.inputValue;
|
|
260
|
+
}
|
|
261
|
+
this.didInit = true;
|
|
262
|
+
}
|
|
263
|
+
disconnectedCallback() {
|
|
264
|
+
if (this.mutationO) {
|
|
265
|
+
this.mutationO.disconnect();
|
|
266
|
+
this.mutationO = undefined;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* LISTENERS
|
|
271
|
+
* ------------------------------------------------------
|
|
272
|
+
*/
|
|
273
|
+
listenOnClick(ev) {
|
|
274
|
+
if (this.disabled && ev.target && ev.target === this.el) {
|
|
275
|
+
preventDefault(ev);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
resetHandler(ev) {
|
|
279
|
+
const formElement = ev.target;
|
|
280
|
+
if (formElement === null || formElement === void 0 ? void 0 : formElement.contains(this.el)) {
|
|
281
|
+
if (this.resetHandlerTimer) {
|
|
282
|
+
clearTimeout(this.resetHandlerTimer);
|
|
283
|
+
}
|
|
284
|
+
this.resetHandlerTimer = setTimeout(() => {
|
|
285
|
+
this.value = this.initialValue;
|
|
286
|
+
this.syncRawValue(false);
|
|
287
|
+
this.syncNativeInput();
|
|
288
|
+
if (this.nativeSelectEl) {
|
|
289
|
+
const options = Array.from(this.nativeSelectEl.options);
|
|
290
|
+
options.forEach(o => (o.selected = true));
|
|
291
|
+
}
|
|
292
|
+
}, 0);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
async handleKeyDown(ev) {
|
|
296
|
+
if (this.isPopoverOpen) {
|
|
297
|
+
if (isArrowDownKey(ev) || isArrowUpKey(ev)) {
|
|
298
|
+
preventDefault(ev);
|
|
299
|
+
this.navigateWithArrowKey(ev);
|
|
300
|
+
this.updateFocus();
|
|
301
|
+
}
|
|
302
|
+
if (isEnterKey(ev)) {
|
|
303
|
+
preventDefault(ev);
|
|
304
|
+
this.selectedFocusedOption();
|
|
305
|
+
}
|
|
306
|
+
if (isEscapeKey(ev)) {
|
|
307
|
+
this.cancel();
|
|
308
|
+
}
|
|
309
|
+
if (isBackspaceKey(ev) && this.typeahead && this.multiple) {
|
|
310
|
+
if (this.inputElement.value === '' && length(this.rawValue) > 0) {
|
|
311
|
+
const valuesArray = getValues(this.rawValue);
|
|
312
|
+
this.removeValue(valuesArray[length(this.rawValue) - 1]);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if (!this.typeahead && ev.key.length === 1) {
|
|
316
|
+
this.focusOptionByLabel(ev.key);
|
|
317
|
+
}
|
|
318
|
+
if (isSpaceKey(ev) && !this.typeahead) {
|
|
319
|
+
preventDefault(ev);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
if (this.hasFocus) {
|
|
324
|
+
if (isArrowDownKey(ev) || isArrowUpKey(ev)) {
|
|
325
|
+
preventDefault(ev);
|
|
326
|
+
await this.open();
|
|
327
|
+
}
|
|
328
|
+
if (!this.typeahead && ev.key.length === 1) {
|
|
329
|
+
this.selectOptionByLabel(ev.key);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* PUBLIC METHODS
|
|
336
|
+
* ------------------------------------------------------
|
|
337
|
+
*/
|
|
338
|
+
/**
|
|
339
|
+
* Sets the focus on the input element
|
|
340
|
+
*/
|
|
341
|
+
async setFocus() {
|
|
342
|
+
if (this.inputElement && !this.disabled) {
|
|
343
|
+
await waitAfterIdleCallback();
|
|
344
|
+
this.inputElement.focus();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Returns the value of the component
|
|
349
|
+
*/
|
|
350
|
+
async getValue() {
|
|
351
|
+
return this.rawValue;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Sets the value to `[]`, the input value to ´''´ and the focus index to ´0´.
|
|
355
|
+
*/
|
|
356
|
+
async clear() {
|
|
357
|
+
this.focusIndex = -1;
|
|
358
|
+
if (this.inputElement) {
|
|
359
|
+
this.updateInputValue('');
|
|
360
|
+
this.updateRawValue([], isHuman);
|
|
361
|
+
this.value = this.multiple ? [] : '';
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Opens the popover
|
|
366
|
+
*/
|
|
367
|
+
async open() {
|
|
368
|
+
if (!this.disabled && !this.readonly && !lodash_isnil(this.popoverElement)) {
|
|
369
|
+
await this.popoverElement.present();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Closes the popover
|
|
374
|
+
*/
|
|
375
|
+
async close() {
|
|
376
|
+
if (!this.disabled && !this.readonly && !lodash_isnil(this.popoverElement)) {
|
|
377
|
+
this.blurSelect();
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Cancel the popover
|
|
382
|
+
*/
|
|
383
|
+
async cancel() {
|
|
384
|
+
this.labelToScrollTo = '';
|
|
385
|
+
this.close();
|
|
386
|
+
this.scrollTo(0);
|
|
387
|
+
this.balCancel.emit();
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Select option by passed value
|
|
391
|
+
*/
|
|
392
|
+
async select(value) {
|
|
393
|
+
const option = this.options.get(value);
|
|
394
|
+
if (!lodash_isnil(option)) {
|
|
395
|
+
this.optionSelected(option);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* @internal
|
|
400
|
+
*/
|
|
401
|
+
async setAriaForm(ariaForm) {
|
|
402
|
+
this.ariaForm = Object.assign({}, ariaForm);
|
|
403
|
+
}
|
|
404
|
+
async waitForOptionsAndThenUpdateRawValues() {
|
|
405
|
+
clearTimeout(this.waitForOptionsAndThenUpdateRawValuesTimer);
|
|
406
|
+
await deepReady(this.el);
|
|
407
|
+
const hasOptions = this.options.size > 0;
|
|
408
|
+
if (hasOptions) {
|
|
409
|
+
if (!this.remote) {
|
|
410
|
+
this.syncRawValue(isNotHuman);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
this.waitForOptionsAndThenUpdateRawValuesTimer = setTimeout(() => this.waitForOptionsAndThenUpdateRawValues(), 10);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
async updateOptions() {
|
|
418
|
+
const optionElements = this.getChildOpts();
|
|
419
|
+
const options = new Map();
|
|
420
|
+
for (let index = 0; index < optionElements.length; index++) {
|
|
421
|
+
const element = optionElements[index];
|
|
422
|
+
options.set(element.value, {
|
|
423
|
+
value: element.value,
|
|
424
|
+
label: element.label,
|
|
425
|
+
disabled: element.disabled,
|
|
426
|
+
id: element.for,
|
|
427
|
+
textContent: element.textContent,
|
|
428
|
+
innerHTML: element.innerHTML,
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
if (!this.selectionOptional && Array.isArray(this.rawValue)) {
|
|
432
|
+
for (let index = 0; index < this.rawValue.length; index++) {
|
|
433
|
+
const val = this.rawValue[index];
|
|
434
|
+
if (!options.has(val)) {
|
|
435
|
+
const newRawValue = removeValue(this.rawValue, val);
|
|
436
|
+
this.updateRawValue(newRawValue, isNotHuman);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
this.options = new Map(options);
|
|
441
|
+
if (!this.typeahead) {
|
|
442
|
+
await this.syncNativeInput();
|
|
443
|
+
}
|
|
444
|
+
if (this.didInit && !this.remote) {
|
|
445
|
+
this.validateAfterBlur();
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* GETTERS
|
|
450
|
+
* ------------------------------------------------------
|
|
451
|
+
*/
|
|
452
|
+
get optionArray() {
|
|
453
|
+
const options = Array.from(this.options, ([_, value]) => value);
|
|
454
|
+
if (!this.typeahead || this.remote) {
|
|
455
|
+
return options;
|
|
456
|
+
}
|
|
457
|
+
return options.filter(option => this.filter === 'includes'
|
|
458
|
+
? includes(option.textContent, this.inputValue)
|
|
459
|
+
: startsWith(option.textContent, this.inputValue));
|
|
460
|
+
}
|
|
461
|
+
hasOptions() {
|
|
462
|
+
return this.optionArray.length > 0;
|
|
463
|
+
}
|
|
464
|
+
get inputPlaceholder() {
|
|
465
|
+
if (this.multiple) {
|
|
466
|
+
if (length(this.rawValue) < 1) {
|
|
467
|
+
return this.placeholder;
|
|
468
|
+
}
|
|
469
|
+
return undefined;
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
if (!lodash_isnil(this.rawValue) && length(this.rawValue) > 0) {
|
|
473
|
+
return undefined;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return this.placeholder;
|
|
477
|
+
}
|
|
478
|
+
getChildOpts() {
|
|
479
|
+
return Array.from(this.el.querySelectorAll('bal-select-option'));
|
|
480
|
+
}
|
|
481
|
+
getPopoverContent() {
|
|
482
|
+
return this.popoverElement.querySelector('.bal-popover__content__inner');
|
|
483
|
+
}
|
|
484
|
+
updateFocus() {
|
|
485
|
+
if (this.focusIndex < -1) {
|
|
486
|
+
this.focusIndex = -1;
|
|
487
|
+
}
|
|
488
|
+
const visibleOptions = this.optionArray;
|
|
489
|
+
if (visibleOptions.length > 0) {
|
|
490
|
+
if (visibleOptions.length <= this.focusIndex) {
|
|
491
|
+
this.focusIndex = visibleOptions.length - 1;
|
|
492
|
+
}
|
|
493
|
+
const option = visibleOptions[this.focusIndex];
|
|
494
|
+
if (option && option.id) {
|
|
495
|
+
const focusedElement = this.el.querySelector(`button#${option.id}`);
|
|
496
|
+
if (focusedElement) {
|
|
497
|
+
clearTimeout(this.updateFocusTimer);
|
|
498
|
+
this.updateFocusTimer = setTimeout(() => {
|
|
499
|
+
this.scrollToFocusedOption(focusedElement);
|
|
500
|
+
}, 0);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
this.focusIndex = -1;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
scrollToFocusedOption(focusedElement) {
|
|
509
|
+
if (focusedElement && this.popoverElement) {
|
|
510
|
+
const popoverContentElement = this.getPopoverContent();
|
|
511
|
+
if (popoverContentElement) {
|
|
512
|
+
// up
|
|
513
|
+
const topOfOption = focusedElement.offsetTop;
|
|
514
|
+
const topOfPopoverContent = popoverContentElement.scrollTop;
|
|
515
|
+
if (topOfOption < topOfPopoverContent) {
|
|
516
|
+
popoverContentElement.scrollTop = topOfOption;
|
|
517
|
+
}
|
|
518
|
+
// down
|
|
519
|
+
const bottomOfOption = focusedElement.offsetTop + focusedElement.clientHeight;
|
|
520
|
+
const bottomOfPopoverContent = popoverContentElement.scrollTop + popoverContentElement.clientHeight;
|
|
521
|
+
if (bottomOfOption > bottomOfPopoverContent) {
|
|
522
|
+
popoverContentElement.scrollTop = popoverContentElement.scrollTop + focusedElement.clientHeight;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
scrollTo(scrollTop) {
|
|
528
|
+
const popoverContentElement = this.getPopoverContent();
|
|
529
|
+
if (popoverContentElement) {
|
|
530
|
+
popoverContentElement.scrollTop = scrollTop;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
selectedFocusedOption() {
|
|
534
|
+
const visibleOptions = this.optionArray;
|
|
535
|
+
if (visibleOptions.length > this.focusIndex) {
|
|
536
|
+
const focusedOption = visibleOptions[this.focusIndex];
|
|
537
|
+
if (focusedOption) {
|
|
538
|
+
this.optionSelected(focusedOption);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
navigateWithArrowKey(ev) {
|
|
543
|
+
if (isArrowDownKey(ev)) {
|
|
544
|
+
this.focusIndex = this.focusIndex + 1;
|
|
545
|
+
}
|
|
546
|
+
else {
|
|
547
|
+
if (isArrowUpKey(ev)) {
|
|
548
|
+
this.focusIndex = this.focusIndex - 1;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
focusOptionByLabel(key) {
|
|
553
|
+
this.labelToScrollTo = this.labelToScrollTo + key;
|
|
554
|
+
clearTimeout(this.clearScrollToValue);
|
|
555
|
+
this.clearScrollToValue = setTimeout(() => {
|
|
556
|
+
this.scrollToLabel(this.labelToScrollTo);
|
|
557
|
+
}, 600);
|
|
558
|
+
}
|
|
559
|
+
selectOptionByLabel(key) {
|
|
560
|
+
this.labelToSelectTo = this.labelToSelectTo + key;
|
|
561
|
+
clearTimeout(this.clearSelectValue);
|
|
562
|
+
this.clearSelectValue = setTimeout(() => {
|
|
563
|
+
this.selectLabel(this.labelToSelectTo);
|
|
564
|
+
this.labelToSelectTo = '';
|
|
565
|
+
}, 600);
|
|
566
|
+
}
|
|
567
|
+
async selectLabel(label) {
|
|
568
|
+
if (label !== ' ') {
|
|
569
|
+
const option = this.optionArray.find(o => startsWith(o.label || '', label));
|
|
570
|
+
if (!lodash_isnil(option) && option.id) {
|
|
571
|
+
const optionElement = this.el.querySelector(`button#${option.id}`);
|
|
572
|
+
if (!lodash_isnil(optionElement)) {
|
|
573
|
+
const index = this.optionArray.indexOf(option);
|
|
574
|
+
this.focusIndex = index;
|
|
575
|
+
this.select(option.value);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
this.labelToScrollTo = '';
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
async scrollToLabel(label) {
|
|
582
|
+
if (label !== ' ') {
|
|
583
|
+
const option = this.optionArray.find(o => startsWith(o.label || '', label));
|
|
584
|
+
if (!lodash_isnil(option) && option.id) {
|
|
585
|
+
const optionElement = this.el.querySelector(`button#${option.id}`);
|
|
586
|
+
if (!lodash_isnil(optionElement)) {
|
|
587
|
+
const index = this.optionArray.indexOf(option);
|
|
588
|
+
this.focusIndex = index;
|
|
589
|
+
this.scrollTo(optionElement.offsetTop);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
this.labelToScrollTo = '';
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
/********************************************************
|
|
596
|
+
* VALUE & FILTER & SELECTION
|
|
597
|
+
********************************************************/
|
|
598
|
+
syncRawValue(isHuman = true) {
|
|
599
|
+
let newValue = [];
|
|
600
|
+
if (!lodash_isnil(this.value) && this.value !== '') {
|
|
601
|
+
if (Array.isArray(this.value)) {
|
|
602
|
+
newValue = [...this.value.filter(v => !lodash_isnil(v))];
|
|
603
|
+
}
|
|
604
|
+
else {
|
|
605
|
+
if (this.value.split('').includes(',')) {
|
|
606
|
+
newValue = [
|
|
607
|
+
...this.value
|
|
608
|
+
.split(',')
|
|
609
|
+
.filter(v => v)
|
|
610
|
+
.map(v => v.trim()),
|
|
611
|
+
];
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
newValue = [this.value];
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
// trigger the raw value change
|
|
619
|
+
this.updateRawValue(newValue, isHuman);
|
|
620
|
+
}
|
|
621
|
+
blurSelect() {
|
|
622
|
+
this.popoverElement.dismiss();
|
|
623
|
+
}
|
|
624
|
+
optionSelected(selectedOption) {
|
|
625
|
+
const valuesArray = getValues(this.rawValue);
|
|
626
|
+
const isAlreadySelected = valuesArray.some(v => v === selectedOption.value);
|
|
627
|
+
this.updateValue(selectedOption.value, !isAlreadySelected);
|
|
628
|
+
if (!this.multiple) {
|
|
629
|
+
this.blurSelect();
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
if (this.typeahead) {
|
|
633
|
+
this.setFocus();
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
updateValue(newValue, isSelected = true) {
|
|
638
|
+
if (this.multiple) {
|
|
639
|
+
if (isSelected) {
|
|
640
|
+
this.updateRawValue(addValue(this.rawValue, newValue, this.multiple), isHuman);
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
this.updateRawValue(removeValue(this.rawValue, newValue), isHuman);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
this.updateRawValue(addValue(this.rawValue, newValue, this.multiple), isHuman);
|
|
648
|
+
if (this.rawValue && this.rawValue.length > 0) {
|
|
649
|
+
this.updateInputValue(findLabelByValue(this.options, this.rawValue[0]));
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
validateAfterBlur(isHuman = isNotHuman) {
|
|
654
|
+
let newRawValue = this.rawValue;
|
|
655
|
+
if (this.didInit && !this.multiple) {
|
|
656
|
+
if (this.typeahead && (this.selectionOptional || this.remote)) {
|
|
657
|
+
const typedOption = findOptionByLabel(this.options, this.inputElement.value);
|
|
658
|
+
if (typedOption) {
|
|
659
|
+
newRawValue = [typedOption.value];
|
|
660
|
+
}
|
|
661
|
+
else {
|
|
662
|
+
newRawValue = [this.inputElement.value];
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
newRawValue = validateAfterBlur(this.rawValue, this.options, this.inputElement.value);
|
|
667
|
+
}
|
|
668
|
+
this.updateRawValue(newRawValue, isHuman);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
syncNativeInput() {
|
|
672
|
+
if (!this.multiple) {
|
|
673
|
+
if (length(this.rawValue) > 0) {
|
|
674
|
+
const valuesArray = getValues(this.rawValue);
|
|
675
|
+
let label = findLabelByValue(this.options, valuesArray[0]);
|
|
676
|
+
if (!this.multiple && this.typeahead && this.selectionOptional && label === '') {
|
|
677
|
+
label = valuesArray.join(', ');
|
|
678
|
+
}
|
|
679
|
+
return this.updateInputValue(label);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
return Promise.resolve();
|
|
683
|
+
}
|
|
684
|
+
updateInputValue(value) {
|
|
685
|
+
return new Promise(resolve => {
|
|
686
|
+
if (this.updateInputValueTimer) {
|
|
687
|
+
clearTimeout(this.updateInputValueTimer);
|
|
688
|
+
}
|
|
689
|
+
this.updateInputValueTimer = setTimeout(() => {
|
|
690
|
+
if (!lodash_isnil(this.inputElement)) {
|
|
691
|
+
this.inputElement.value = value;
|
|
692
|
+
this.inputValue = value;
|
|
693
|
+
resolve();
|
|
694
|
+
}
|
|
695
|
+
}, 0);
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
isChipClicked(ev) {
|
|
699
|
+
let isChipClicked = false;
|
|
700
|
+
if (this.multiple) {
|
|
701
|
+
const chips = this.selectionEl.querySelectorAll('bal-tag');
|
|
702
|
+
const target = ev.target;
|
|
703
|
+
chips.forEach(chip => {
|
|
704
|
+
const isChip = isDescendant(chip, target) || chip === target;
|
|
705
|
+
if (isChip) {
|
|
706
|
+
isChipClicked = isChip;
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
return isChipClicked;
|
|
711
|
+
}
|
|
712
|
+
isInsideOfFooter() {
|
|
713
|
+
this.inverted = this.el.closest('bal-footer') !== null;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* RENDER
|
|
717
|
+
* ------------------------------------------------------
|
|
718
|
+
*/
|
|
719
|
+
render() {
|
|
720
|
+
var _a;
|
|
721
|
+
const Chip = (props) => (h("bal-tag", { key: '79401261d2710c20cf092eb9fbb7fb9df4a8b58c', 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));
|
|
722
|
+
const valuesArray = getValues(this.rawValue);
|
|
723
|
+
const block = BEM.block('select');
|
|
724
|
+
const nativeEl = block.element('native');
|
|
725
|
+
const controlEl = block.element('control');
|
|
726
|
+
const controlIconEl = controlEl.element('icon');
|
|
727
|
+
const controlSelectionsEl = controlEl.element('selections');
|
|
728
|
+
const controlInputEl = controlEl.element('input');
|
|
729
|
+
const popoverContentEl = block.element('popover');
|
|
730
|
+
const popoverContentEmptyEl = popoverContentEl.element('empty');
|
|
731
|
+
const optionEl = block.element('option');
|
|
732
|
+
const optionContentEl = optionEl.element('content');
|
|
733
|
+
const optionContentCheckboxEl = optionContentEl.element('checkbox');
|
|
734
|
+
const optionContentLabelEl = optionContentEl.element('label');
|
|
735
|
+
return (h(Host, { key: '6f73b54fd82f27f6aec3afde83fa9b6df2b2783b', 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: 'acac08e4b77913e59024df94a888d06a9f839084', 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: '0bb66730c86b7730411c2ccee9fa1a1903b51df5', onBalChange: this.handlePopoverChange, ref: el => (this.popoverElement = el) }, h("div", { key: '65ad688a0ea4c704e25eedf57cdde2f0b7042839', "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: '5c92ecce5f080f9219838cefa496b8f86e6a5e1e', class: Object.assign(Object.assign({}, controlSelectionsEl.class()), controlSelectionsEl
|
|
736
|
+
.modifier('clickable')
|
|
737
|
+
.class(!this.isPopoverOpen && !this.disabled && !this.readonly)), onClick: this.handleInputClick, ref: el => (this.selectionEl = el) }, valuesArray
|
|
738
|
+
.filter(_ => this.multiple)
|
|
739
|
+
.map((value) => (h(Chip, { value: value }))), h("input", { key: 'f3fdeee4cd978843101e662b9654ff48c379a706', 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
|
|
740
|
+
? 'grey-light'
|
|
741
|
+
: this.inverted
|
|
742
|
+
? 'white'
|
|
743
|
+
: this.invalid
|
|
744
|
+
? 'danger'
|
|
745
|
+
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: '858a34fd9deb5e3f681f44587d4b1092f0107386', 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
|
|
746
|
+
.modifier('selected')
|
|
747
|
+
.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: '5df467dccba15602535dfacaae0ea7b410cf3d6d', class: Object.assign(Object.assign({}, popoverContentEmptyEl.class()), popoverContentEmptyEl
|
|
748
|
+
.modifier('hidden')
|
|
749
|
+
.class(this.noDataLabel === undefined || this.hasOptions() || !this.typeahead || this.selectionOptional)) }, this.noDataLabel)))));
|
|
750
|
+
}
|
|
751
|
+
get el() { return this; }
|
|
752
|
+
static get watchers() { return {
|
|
753
|
+
"value": ["valueWatcher"]
|
|
754
|
+
}; }
|
|
755
|
+
static get style() { return BalSelectStyle0; }
|
|
756
|
+
}, [0, "bal-select", {
|
|
757
|
+
"name": [1],
|
|
758
|
+
"invalid": [4],
|
|
759
|
+
"filter": [1],
|
|
760
|
+
"balTabindex": [2, "bal-tabindex"],
|
|
761
|
+
"freeSolo": [4, "free-solo"],
|
|
762
|
+
"multiple": [4],
|
|
763
|
+
"maxLength": [2, "max-length"],
|
|
764
|
+
"noDataLabel": [1, "no-data-label"],
|
|
765
|
+
"autocomplete": [1],
|
|
766
|
+
"typeahead": [4],
|
|
767
|
+
"selectionOptional": [4, "selection-optional"],
|
|
768
|
+
"disabled": [4],
|
|
769
|
+
"readonly": [4],
|
|
770
|
+
"required": [4],
|
|
771
|
+
"inverted": [4],
|
|
772
|
+
"placeholder": [1],
|
|
773
|
+
"scrollable": [2],
|
|
774
|
+
"loading": [4],
|
|
775
|
+
"remote": [4],
|
|
776
|
+
"autoInvalidOff": [516, "auto-invalid-off"],
|
|
777
|
+
"value": [1025],
|
|
778
|
+
"hasFocus": [32],
|
|
779
|
+
"inputValue": [32],
|
|
780
|
+
"focusIndex": [32],
|
|
781
|
+
"isPopoverOpen": [32],
|
|
782
|
+
"options": [32],
|
|
783
|
+
"labelToScrollTo": [32],
|
|
784
|
+
"labelToSelectTo": [32],
|
|
785
|
+
"ariaForm": [32],
|
|
786
|
+
"rawValue": [32],
|
|
787
|
+
"setFocus": [64],
|
|
788
|
+
"getValue": [64],
|
|
789
|
+
"clear": [64],
|
|
790
|
+
"open": [64],
|
|
791
|
+
"close": [64],
|
|
792
|
+
"cancel": [64],
|
|
793
|
+
"select": [64],
|
|
794
|
+
"setAriaForm": [64]
|
|
795
|
+
}, [[6, "click", "listenOnClick"], [6, "reset", "resetHandler"], [8, "keydown", "handleKeyDown"]], {
|
|
796
|
+
"value": ["valueWatcher"]
|
|
797
|
+
}]);
|
|
798
|
+
__decorate([
|
|
799
|
+
Logger('bal-select'),
|
|
800
|
+
__metadata("design:type", Function),
|
|
801
|
+
__metadata("design:paramtypes", [Function]),
|
|
802
|
+
__metadata("design:returntype", void 0)
|
|
803
|
+
], Select.prototype, "createLogger", null);
|
|
804
|
+
let selectIds = 0;
|
|
805
|
+
function defineCustomElement$1() {
|
|
806
|
+
if (typeof customElements === "undefined") {
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
809
|
+
const components = ["bal-select", "bal-checkbox", "bal-close", "bal-icon", "bal-popover", "bal-popover-content", "bal-tag"];
|
|
810
|
+
components.forEach(tagName => { switch (tagName) {
|
|
811
|
+
case "bal-select":
|
|
812
|
+
if (!customElements.get(tagName)) {
|
|
813
|
+
customElements.define(tagName, Select);
|
|
814
|
+
}
|
|
815
|
+
break;
|
|
816
|
+
case "bal-checkbox":
|
|
817
|
+
if (!customElements.get(tagName)) {
|
|
818
|
+
defineCustomElement$7();
|
|
819
|
+
}
|
|
820
|
+
break;
|
|
821
|
+
case "bal-close":
|
|
822
|
+
if (!customElements.get(tagName)) {
|
|
823
|
+
defineCustomElement$6();
|
|
824
|
+
}
|
|
825
|
+
break;
|
|
826
|
+
case "bal-icon":
|
|
827
|
+
if (!customElements.get(tagName)) {
|
|
828
|
+
defineCustomElement$5();
|
|
829
|
+
}
|
|
830
|
+
break;
|
|
831
|
+
case "bal-popover":
|
|
832
|
+
if (!customElements.get(tagName)) {
|
|
833
|
+
defineCustomElement$4();
|
|
834
|
+
}
|
|
835
|
+
break;
|
|
836
|
+
case "bal-popover-content":
|
|
837
|
+
if (!customElements.get(tagName)) {
|
|
838
|
+
defineCustomElement$3();
|
|
839
|
+
}
|
|
840
|
+
break;
|
|
841
|
+
case "bal-tag":
|
|
842
|
+
if (!customElements.get(tagName)) {
|
|
843
|
+
defineCustomElement$2();
|
|
844
|
+
}
|
|
845
|
+
break;
|
|
846
|
+
} });
|
|
847
|
+
}
|
|
2
848
|
|
|
3
849
|
const BalSelect = Select;
|
|
4
850
|
const defineCustomElement = defineCustomElement$1;
|