@baloise/ds-core 19.8.2 → 19.8.3
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/bal-accordion-details.js +6 -4
- package/components/bal-accordion-summary.js +7 -5
- package/components/bal-accordion-trigger.js +7 -5
- package/components/bal-accordion.js +9 -7
- package/components/bal-app.js +12 -8
- package/components/bal-badge2.js +6 -4
- package/components/bal-button-group2.js +5 -3
- package/components/bal-button2.js +5 -3
- package/components/bal-card-actions.js +5 -3
- package/components/bal-card-button.js +5 -3
- package/components/bal-card-content2.js +5 -3
- package/components/bal-card-subtitle.js +5 -3
- package/components/bal-card-title.js +5 -3
- package/components/bal-card2.js +5 -3
- package/components/bal-carousel-item.js +6 -4
- package/components/bal-carousel.js +21 -22
- package/components/bal-check2.js +5 -3
- package/components/bal-checkbox-group.js +7 -5
- package/components/bal-checkbox2.js +7 -5
- package/components/bal-close2.js +8 -6
- package/components/bal-content2.js +5 -3
- package/components/bal-data-item.js +5 -3
- package/components/bal-data-label.js +5 -3
- package/components/bal-data-value.js +7 -5
- package/components/bal-data.js +5 -3
- package/components/bal-date-calendar-cell2.js +5 -3
- package/components/bal-date-calendar2.js +21 -34
- package/components/bal-date.js +12 -10
- package/components/bal-divider.js +5 -3
- package/components/bal-dropdown.js +21 -24
- package/components/bal-field-control.js +5 -3
- package/components/bal-field-hint.js +7 -9
- package/components/bal-field-label.js +5 -3
- package/components/bal-field-message.js +5 -3
- package/components/bal-field.js +9 -7
- package/components/bal-file-upload.js +15 -22
- package/components/bal-footer.js +9 -7
- package/components/bal-form-col.js +7 -5
- package/components/bal-form-grid.js +5 -3
- package/components/bal-form.js +7 -5
- package/components/bal-heading2.js +6 -4
- package/components/bal-hint-text2.js +5 -3
- package/components/bal-hint-title2.js +5 -3
- package/components/bal-hint2.js +10 -8
- package/components/bal-icon2.js +6 -4
- package/components/bal-input-date2.js +10 -8
- package/components/bal-input-group2.js +6 -4
- package/components/bal-input-slider.js +11 -9
- package/components/bal-input-stepper.js +1027 -1056
- package/components/bal-input.js +6 -4
- package/components/bal-label2.js +9 -7
- package/components/bal-list-item-accordion-body2.js +10 -9
- package/components/bal-list-item-accordion-head2.js +10 -8
- package/components/bal-list-item-content2.js +5 -3
- package/components/bal-list-item-icon2.js +5 -3
- package/components/bal-list-item-subtitle2.js +5 -3
- package/components/bal-list-item-title2.js +5 -3
- package/components/bal-list-item2.js +6 -4
- package/components/bal-list2.js +6 -4
- package/components/bal-logo2.js +6 -4
- package/components/bal-modal-body.js +5 -3
- package/components/bal-modal-header.js +6 -4
- package/components/bal-modal.js +29 -27
- package/components/bal-nav-link-grid-col2.js +5 -3
- package/components/bal-nav-link-grid2.js +5 -3
- package/components/bal-nav-link-group.js +5 -3
- package/components/bal-nav-link2.js +5 -3
- package/components/bal-nav-menu-bar2.js +6 -4
- package/components/bal-nav-menu-flyout2.js +7 -6
- package/components/bal-nav-meta-bar2.js +7 -5
- package/components/bal-nav.js +31 -53
- package/components/bal-navbar-brand.js +9 -7
- package/components/bal-navbar-menu-end.js +5 -3
- package/components/bal-navbar-menu-start.js +5 -3
- package/components/bal-navbar-menu.js +5 -3
- package/components/bal-navbar.js +5 -3
- package/components/bal-notices.js +6 -4
- package/components/bal-notification.js +5 -3
- package/components/bal-number-input.js +8 -6
- package/components/bal-option-list.js +9 -7
- package/components/bal-option.js +7 -5
- package/components/bal-pagination.js +7 -5
- package/components/bal-popover-content2.js +7 -5
- package/components/bal-popover2.js +7 -5
- package/components/bal-popup2.js +8 -6
- package/components/bal-progress-bar.js +8 -7
- package/components/bal-radio-group.js +7 -5
- package/components/bal-radio-icon2.js +5 -3
- package/components/bal-radio2.js +6 -4
- package/components/bal-segment-item.js +6 -4
- package/components/bal-segment.js +11 -11
- package/components/bal-select-option2.js +5 -3
- package/components/bal-select2.js +13 -11
- package/components/bal-shape2.js +9 -7
- package/components/bal-sheet.js +5 -3
- package/components/bal-snackbar.js +7 -5
- package/components/bal-spinner2.js +7 -5
- package/components/bal-stack2.js +5 -3
- package/components/bal-stage-back-link.js +7 -5
- package/components/bal-stage-body.js +6 -4
- package/components/bal-stage-foot.js +6 -4
- package/components/bal-stage-head.js +6 -4
- package/components/bal-stage-image.js +8 -6
- package/components/bal-stage.js +5 -3
- package/components/bal-step-item.js +7 -5
- package/components/bal-steps.js +13 -17
- package/components/bal-switch.js +5 -3
- package/components/bal-tab-item.js +7 -5
- package/components/bal-table.js +6 -4
- package/components/bal-tabs2.js +29 -42
- package/components/bal-tag-group.js +5 -3
- package/components/bal-tag2.js +7 -5
- package/components/bal-text.js +5 -3
- package/components/bal-textarea.js +6 -4
- package/components/bal-time-input.js +8 -6
- package/components/bal-toast.js +6 -4
- package/components/bal-tooltip.js +7 -5
- package/components/breakpoints.subject.js +79 -5
- package/components/config.default.js +1 -1
- package/components/config.utils.js +1 -1
- package/components/focus.decorator.js +1 -1
- package/components/form-input.js +1 -1
- package/components/helpers.js +2 -2
- package/components/index.js +135 -16
- package/components/mutation.decorator.js +1 -1
- package/components/swiper.util.js +3 -8
- package/components/tokens.esm.js +2 -2
- package/components/visibility.decorator.js +1 -1
- package/components/window-resize.decorator.js +24 -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-01c556671d.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-34251be01a.entry.js → p-022a899d9f.entry.js} +1 -1
- package/dist/baloise-design-system/p-06ae31c81e.entry.js +1 -0
- package/dist/baloise-design-system/p-06d6d65df7.entry.js +1 -0
- package/dist/baloise-design-system/p-07cd3d2e40.entry.js +1 -0
- package/dist/baloise-design-system/p-08644e325b.entry.js +1 -0
- package/dist/baloise-design-system/p-09f86c863d.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0b800b55bc.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0c10bf8c73.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0d487a482f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0ec86b3f93.system.entry.js +1 -0
- package/dist/baloise-design-system/p-15c5f87ce0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-167806fc44.entry.js +1 -0
- package/dist/baloise-design-system/p-17fb47d0d4.entry.js +1 -0
- package/dist/baloise-design-system/p-196ff3a00e.entry.js +1 -0
- package/dist/baloise-design-system/p-1b1fdadab3.entry.js +1 -0
- package/dist/baloise-design-system/p-1b2d849d3f.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-aa6b291c05.entry.js → p-1f011724dd.entry.js} +1 -1
- package/dist/baloise-design-system/p-2264ba1f28.entry.js +1 -0
- package/dist/baloise-design-system/{p-6bb94607cc.entry.js → p-23537928fa.entry.js} +1 -1
- package/dist/baloise-design-system/p-2360c337dc.entry.js +1 -0
- package/dist/baloise-design-system/p-24d0c0ddcf.entry.js +1 -0
- package/dist/baloise-design-system/p-261f0c83c1.entry.js +1 -0
- package/dist/baloise-design-system/p-26764b092e.entry.js +1 -0
- package/dist/baloise-design-system/p-2c066243bc.entry.js +1 -0
- package/dist/baloise-design-system/p-2d57df519d.entry.js +1 -0
- package/dist/baloise-design-system/p-2d8dd4be3a.entry.js +1 -0
- package/dist/baloise-design-system/{p-5233b94b59.system.entry.js → p-2dbbdfb785.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3717f4438f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-3790f8edcd.entry.js +1 -0
- package/dist/baloise-design-system/p-393a3d5fb7.entry.js +1 -0
- package/dist/baloise-design-system/p-42801b7e0c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-43878b51c9.system.entry.js +1 -0
- package/dist/baloise-design-system/p-440fb2470e.entry.js +1 -0
- package/dist/baloise-design-system/{p-6f8769f0fd.entry.js → p-469503b436.entry.js} +1 -1
- package/dist/baloise-design-system/p-4Y53iwfN.system.js +1 -0
- package/dist/baloise-design-system/p-4a34919910.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4c12fc1e8f.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5439c93408.entry.js +1 -0
- package/dist/baloise-design-system/p-56535b513e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-5c583159db.entry.js +1 -0
- package/dist/baloise-design-system/{p-85453d4b0a.system.entry.js → p-5d95c50514.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-5e4a2342f3.entry.js +1 -0
- package/dist/baloise-design-system/p-5f8ae628c4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-63a829988a.system.entry.js +1 -0
- package/dist/baloise-design-system/p-63cf9eadee.entry.js +1 -0
- package/dist/baloise-design-system/p-6814029ea2.entry.js +1 -0
- package/dist/baloise-design-system/p-6d93b1d5cc.entry.js +1 -0
- package/dist/baloise-design-system/p-6da83fc08c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-6fa6bfd775.entry.js +1 -0
- package/dist/baloise-design-system/p-7027eb9c58.entry.js +1 -0
- package/dist/baloise-design-system/p-70bdd60500.system.entry.js +1 -0
- package/dist/baloise-design-system/p-71ab949cfb.system.entry.js +1 -0
- package/dist/baloise-design-system/p-743a8ea6e8.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7571dcc8ec.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-5437056c7e.system.entry.js → p-76fdd28025.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-77045369a5.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7e55f97a9b.entry.js +1 -0
- package/dist/baloise-design-system/p-7e6c509606.entry.js +1 -0
- package/dist/baloise-design-system/p-80cae9282e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-84d321b4f8.entry.js +1 -0
- package/dist/baloise-design-system/p-84de20be7c.entry.js +1 -0
- package/dist/baloise-design-system/p-85428cc869.entry.js +1 -0
- package/dist/baloise-design-system/p-8670cb3845.entry.js +1 -0
- package/dist/baloise-design-system/p-8cff569252.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-85f99546f7.system.entry.js → p-8da6979637.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8ebe2676cf.entry.js +1 -0
- package/dist/baloise-design-system/p-90d225c57c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-93311a064b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-93bba463b3.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-60249e3303.system.entry.js → p-967ff349ed.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-96bf290c11.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-a968e7d20a.entry.js → p-996075a13e.entry.js} +1 -1
- package/dist/baloise-design-system/p-B-L34nz8.js +1 -0
- package/dist/baloise-design-system/p-B1u-Mq75.js +1 -0
- package/dist/baloise-design-system/p-B9BMZmYk.js +1 -0
- package/dist/baloise-design-system/p-BCtb7Ny9.system.js +1 -0
- package/dist/baloise-design-system/{p-D1VPLQ5z.js → p-BERg8BNc.js} +1 -1
- package/dist/baloise-design-system/p-BM_oHMik.system.js +1 -0
- package/dist/baloise-design-system/p-BNWt5z9B.system.js +1 -0
- package/dist/baloise-design-system/p-B_C7V4Sa.js +1 -0
- package/dist/baloise-design-system/p-Ba5qjFjW.js +1 -0
- package/dist/baloise-design-system/p-BblIE2Vz.system.js +1 -0
- package/dist/baloise-design-system/p-Bc9nHL5Q.system.js +1 -0
- package/dist/baloise-design-system/p-BdVwMG9u.js +2 -0
- package/dist/baloise-design-system/p-BpMXwP_q.system.js +1 -0
- package/dist/baloise-design-system/p-BsL4egMT.js +1 -0
- package/dist/baloise-design-system/p-BtgFoKGn.js +1 -0
- package/dist/baloise-design-system/p-BwTzTXZG.js +1 -0
- package/dist/baloise-design-system/{p-Zfrf1YrK.js → p-C20cwFWy.js} +1 -1
- package/dist/baloise-design-system/{p-C8rDagP9.system.js → p-C6x8G3mu.system.js} +1 -1
- package/dist/baloise-design-system/p-CBUCh83e.js +1 -0
- package/dist/baloise-design-system/{p-DXtc2jog.system.js → p-CCoeJzzY.system.js} +1 -1
- package/dist/baloise-design-system/p-CDeyBUqm.system.js +1 -0
- package/dist/baloise-design-system/{p-hMjQnp7y.js → p-CFUQlsvN.js} +1 -1
- package/dist/baloise-design-system/{p-CzMY8q3l.js → p-CI2FR64u.js} +1 -1
- package/dist/baloise-design-system/p-CLDmOIBx.system.js +1 -0
- package/dist/baloise-design-system/p-CTuoH3RE.system.js +1 -0
- package/dist/baloise-design-system/p-CXAw6SMX.system.js +1 -0
- package/dist/baloise-design-system/p-C_0MGoKB.js +1 -0
- package/dist/baloise-design-system/{p-lN4h2Pow.js → p-CeIZ5hSt.js} +1 -1
- package/dist/baloise-design-system/p-CeRECGC7.js +1 -0
- package/dist/baloise-design-system/{p-CzSV5e8r.js → p-CpDHeXfo.js} +1 -1
- package/dist/baloise-design-system/{p-4RggM_kM.js → p-Crri2rlL.js} +1 -1
- package/dist/baloise-design-system/{p-m9_QZ3Uf.system.js → p-CvHtWfhm.system.js} +1 -1
- package/dist/baloise-design-system/p-CwWHLbPB.system.js +1 -0
- package/dist/baloise-design-system/p-D1opIX9W.system.js +1 -0
- package/dist/baloise-design-system/p-D7M-7v58.js +1 -0
- package/dist/baloise-design-system/p-D7_eHNTI.system.js +1 -0
- package/dist/baloise-design-system/p-D7ovid3w.js +1 -0
- package/dist/baloise-design-system/p-D9FHe08C.system.js +1 -0
- package/dist/baloise-design-system/{p-D4gL5qCn.system.js → p-DDPYMMGG.system.js} +1 -1
- package/dist/baloise-design-system/{p-CInq3uzG.system.js → p-DI-sUHVD.system.js} +1 -1
- package/dist/baloise-design-system/p-DL7tjDqO.system.js +1 -0
- package/dist/baloise-design-system/p-DNy7adIE.system.js +1 -0
- package/dist/baloise-design-system/{p-CpCwptFO.js → p-DOUIg6bI.js} +1 -1
- package/dist/baloise-design-system/p-DST0VloN.system.js +1 -0
- package/dist/baloise-design-system/p-DV-2u4Pm.system.js +1 -0
- package/dist/baloise-design-system/p-DWgCJRpS.system.js +1 -1
- package/dist/baloise-design-system/p-DZ_vvO92.js +1 -0
- package/dist/baloise-design-system/{p-C9hJ2TuZ.system.js → p-DdX8FaaK.system.js} +1 -1
- package/dist/baloise-design-system/p-Dhp6-MTS.system.js +1 -0
- package/dist/baloise-design-system/p-DowF7e07.system.js +1 -0
- package/dist/baloise-design-system/{p-B5KM7rHn.js → p-Dp4edqFK.js} +1 -1
- package/dist/baloise-design-system/p-DsxGYykr.js +1 -0
- package/dist/baloise-design-system/{p-SdtgSPca.system.js → p-DtlqgdI2.system.js} +1 -1
- package/dist/baloise-design-system/{p-9kAhgg3Z.js → p-Dvgek0Sb.js} +1 -1
- package/dist/baloise-design-system/p-Dz-E2PRm.system.js +1 -1
- package/dist/baloise-design-system/p-IZFfLjcz.js +1 -0
- package/dist/baloise-design-system/{p-cH5PDB1i.js → p-MBsgW7uz.js} +1 -1
- package/dist/baloise-design-system/p-PNu_g_s6.system.js +2 -0
- package/dist/baloise-design-system/p-TqRS9XF1.system.js +1 -0
- package/dist/baloise-design-system/{p-DXVk9Ina.js → p-ZalPEZLa.js} +1 -1
- package/dist/baloise-design-system/p-a17017ddc0.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-48180ac5f9.system.entry.js → p-a2abd2bae3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-27c4c637c1.system.entry.js → p-a494f5de47.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a97c5309f7.entry.js +1 -0
- package/dist/baloise-design-system/p-abfdce3ea8.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ae2946a498.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b03de8e7ba.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b0b5fa7a40.entry.js +1 -0
- package/dist/baloise-design-system/p-b38b2e9484.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-0d618c466b.system.entry.js → p-b4e66c496c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b603676988.entry.js +1 -0
- package/dist/baloise-design-system/{p-b06c400104.entry.js → p-b66021b38c.entry.js} +1 -1
- package/dist/baloise-design-system/p-b81b635342.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b9be7f4ef6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ba0974ae21.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-46048d30b3.system.entry.js → p-bd80a9b297.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-bf4f338b08.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c291d986ba.entry.js +1 -0
- package/dist/baloise-design-system/p-c3af6cc44a.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c45c863624.entry.js +1 -0
- package/dist/baloise-design-system/p-c78c0dd43a.entry.js +1 -0
- package/dist/baloise-design-system/p-c983f0df44.entry.js +1 -0
- package/dist/baloise-design-system/p-cbc17a1f06.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ccf29475c6.entry.js +1 -0
- package/dist/baloise-design-system/p-cf749f385e.entry.js +1 -0
- package/dist/baloise-design-system/p-cfae4fef4d.entry.js +1 -0
- package/dist/baloise-design-system/{p-09bcea6590.entry.js → p-d04073fca3.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f5da815d40.system.entry.js → p-d680dc3dd0.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-d846f14080.system.entry.js +1 -0
- package/dist/baloise-design-system/p-dbb9b3b5e2.system.entry.js +1 -0
- package/dist/baloise-design-system/p-df0264e119.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e03203e89d.entry.js +1 -0
- package/dist/baloise-design-system/p-e2296eb10b.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e4154bb891.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ea29fa4382.entry.js +1 -0
- package/dist/baloise-design-system/p-eb726f11fd.system.entry.js +1 -0
- package/dist/baloise-design-system/p-eb9d8029c6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ef841ce7eb.system.entry.js +1 -0
- package/dist/baloise-design-system/p-f12905324e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-f2232ea09f.entry.js +1 -0
- package/dist/baloise-design-system/p-f348ec6012.entry.js +1 -0
- package/dist/baloise-design-system/p-f51b5f779a.entry.js +1 -0
- package/dist/baloise-design-system/{p-845bb5b65f.entry.js → p-f7b16f08ab.entry.js} +1 -1
- package/dist/baloise-design-system/{p-09dea19d2d.entry.js → p-fdb00a8fdc.entry.js} +1 -1
- package/dist/baloise-design-system/p-hcWLO6Gg.js +1 -0
- package/dist/baloise-design-system/{p-BUT7svFW.js → p-j851_ZaC.js} +1 -1
- package/dist/baloise-design-system/p-jQQqRgMt.system.js +1 -0
- package/dist/baloise-design-system/p-wAfnccKA.system.js +1 -0
- package/dist/baloise-design-system/{p-D4O83t4p.system.js → p-xlS5vO33.system.js} +1 -1
- package/dist/cjs/{animation.decorator-DvBKgd0w.js → animation.decorator-B4NJvcMF.js} +9 -9
- package/dist/cjs/app-globals-C_KNnTwa.js +11 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +24 -19
- package/dist/cjs/bal-app.cjs.entry.js +20 -14
- package/dist/cjs/bal-badge.cjs.entry.js +2 -2
- package/dist/cjs/bal-button_2.cjs.entry.js +5 -2
- package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +31 -29
- package/dist/cjs/bal-check.cjs.entry.js +1 -1
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +16 -12
- package/dist/cjs/bal-close.cjs.entry.js +9 -5
- package/dist/cjs/bal-content.cjs.entry.js +4 -2
- package/dist/cjs/bal-data_4.cjs.entry.js +6 -3
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +5 -2
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +33 -44
- package/dist/cjs/bal-date.cjs.entry.js +29 -25
- package/dist/cjs/bal-divider.cjs.entry.js +4 -2
- package/dist/cjs/{bal-dropdown.cjs.entry.js → bal-dropdown_3.cjs.entry.js} +634 -40
- package/dist/cjs/bal-field_5.cjs.entry.js +14 -14
- package/dist/cjs/bal-file-upload.cjs.entry.js +16 -21
- package/dist/cjs/bal-footer.cjs.entry.js +14 -9
- package/dist/cjs/bal-form-col_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-form.cjs.entry.js +7 -4
- package/dist/cjs/bal-heading_2.cjs.entry.js +4 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +22 -18
- package/dist/cjs/bal-icon.cjs.entry.js +7 -3
- package/dist/cjs/bal-input-group.cjs.entry.js +2 -2
- package/dist/cjs/bal-input-slider.cjs.entry.js +10 -7
- package/dist/cjs/bal-input-stepper.cjs.entry.js +1035 -1061
- package/dist/cjs/bal-input.cjs.entry.js +9 -5
- package/dist/cjs/bal-label.cjs.entry.js +11 -7
- package/dist/cjs/bal-list_8.cjs.entry.js +33 -29
- package/dist/cjs/bal-logo.cjs.entry.js +13 -9
- package/dist/cjs/bal-modal_3.cjs.entry.js +33 -30
- package/dist/cjs/bal-nav_8.cjs.entry.js +62 -82
- package/dist/cjs/bal-navbar_5.cjs.entry.js +19 -14
- package/dist/cjs/bal-notices_3.cjs.entry.js +2 -2
- package/dist/cjs/bal-notification.cjs.entry.js +1 -1
- package/dist/cjs/bal-number-input.cjs.entry.js +14 -9
- package/dist/cjs/bal-pagination.cjs.entry.js +13 -8
- package/dist/cjs/bal-popup.cjs.entry.js +17 -13
- package/dist/cjs/bal-progress-bar.cjs.entry.js +12 -10
- package/dist/cjs/bal-radio-icon.cjs.entry.js +1 -1
- package/dist/cjs/bal-radio_2.cjs.entry.js +16 -12
- package/dist/cjs/bal-segment_2.cjs.entry.js +24 -21
- package/dist/cjs/bal-select_2.cjs.entry.js +20 -16
- package/dist/cjs/bal-shape.cjs.entry.js +6 -6
- package/dist/cjs/bal-sheet.cjs.entry.js +1 -1
- package/dist/cjs/bal-spinner.cjs.entry.js +12 -7
- package/dist/cjs/bal-stack.cjs.entry.js +4 -2
- package/dist/cjs/bal-stage_6.cjs.entry.js +11 -8
- package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
- package/dist/cjs/bal-steps.cjs.entry.js +18 -20
- package/dist/cjs/bal-switch.cjs.entry.js +1 -1
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +55 -65
- 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 +7 -4
- package/dist/cjs/bal-time-input.cjs.entry.js +13 -8
- package/dist/cjs/bal-tooltip.cjs.entry.js +11 -7
- package/dist/cjs/baloise-design-system.cjs.js +11 -4
- package/dist/cjs/{breakpoints.decorator-Bcx5bHdk.js → breakpoints.decorator-DyuVBCe8.js} +1 -1
- package/dist/cjs/{breakpoints.subject-DyM7928g.js → breakpoints.subject-dnWvx514.js} +17 -16
- package/dist/cjs/browser-BwmkTmm8.js +64 -0
- package/dist/cjs/{config.decorator-D_YTqpYj.js → config.decorator-CUe4yCTd.js} +3 -3
- package/dist/cjs/config.default-Bkso4_bY.js +50 -0
- package/dist/cjs/config.utils-Civnz2jT.js +142 -0
- package/dist/cjs/{date-CA-bG6cD.js → date-BPyuc34s.js} +69 -5
- package/dist/cjs/{device-CrnZOym8.js → device-CoogBamh.js} +5 -5
- package/dist/cjs/{element-states.decorator-0udYH_TL.js → element-states.decorator-BG2oNUsO.js} +13 -12
- package/dist/cjs/{floating-ui-T_yqQ0TC.js → floating-ui-DyN44UhF.js} +2 -2
- package/dist/cjs/{focus.decorator-Bu4qsoNG.js → focus.decorator-BL2kLsNv.js} +10 -9
- package/dist/cjs/{form-input-DBZuEpuy.js → form-input-BwFB4Rej.js} +2 -2
- package/dist/cjs/helpers-HuaiWXrB.js +331 -0
- package/dist/{esm/index-BgWhYta3.js → cjs/index-feA4skrY.js} +215 -1152
- package/dist/cjs/index.cjs.js +60 -56
- package/dist/cjs/initialize-CWGvp-PN.js +448 -0
- package/dist/cjs/{listener-h1eTpBYL.js → listener-DspXpqzY.js} +2 -2
- package/dist/cjs/loader.cjs.js +10 -3
- package/dist/cjs/log-CXDMiw7o.js +80 -0
- package/dist/cjs/{mutation.decorator-C3JICFwA.js → mutation.decorator-BolUYaKD.js} +5 -5
- package/dist/cjs/{number-B6kudt4D.js → number-COdZG-wK.js} +4 -3
- package/dist/cjs/{overlays-CkF6MI3c.js → overlays-DQGlu5jj.js} +5 -4
- package/dist/cjs/{resize.decorator-Cxv0R8v_.js → resize.decorator-ChuFQ8x3.js} +6 -5
- package/dist/cjs/{scroll-DU1EZHWg.js → scroll-B_kvfDui.js} +5 -5
- package/dist/cjs/{swiper.util-B4hvYgKv.js → string-CKS6CsMi.js} +28 -32
- package/dist/cjs/{swipe.decorator-B69SZ4Jn.js → swipe.decorator-BZYUlkYt.js} +1 -1
- package/dist/cjs/{swipe.subject-BbLTKDyB.js → swipe.subject-BaKNugDQ.js} +4 -4
- package/dist/cjs/{tokens.esm-yrgVVjY8.js → tokens.esm-CNpvwEnI.js} +1 -1
- package/dist/cjs/{visibility.decorator-CC35M6Un.js → visibility.decorator-DTARY-5M.js} +5 -5
- package/dist/cjs/window-resize.decorator-Ck1Zfh6H.js +48 -0
- package/dist/collection/collection-manifest.json +3 -7
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +5 -5
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +7 -7
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +12 -12
- package/dist/collection/components/bal-accordion/bal-accordion.js +13 -14
- package/dist/collection/components/bal-app/bal-app.js +26 -7
- package/dist/collection/components/bal-badge/bal-badge.js +6 -6
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +3 -3
- package/dist/collection/components/bal-button/bal-button.js +31 -31
- package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +1 -1
- package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +10 -10
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +3 -3
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +1 -1
- package/dist/collection/components/bal-card/bal-card.js +9 -9
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +17 -17
- package/dist/collection/components/bal-carousel/bal-carousel.js +20 -20
- package/dist/collection/components/bal-checkbox/bal-check/bal-check.js +6 -6
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +13 -15
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +20 -20
- package/dist/collection/components/bal-checkbox/bal-switch/bal-switch.js +5 -5
- package/dist/collection/components/bal-close/bal-close.js +4 -4
- package/dist/collection/components/bal-content/bal-content.js +5 -5
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +2 -2
- package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +1 -1
- package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +6 -6
- package/dist/collection/components/bal-data/bal-data.js +2 -2
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +13 -14
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +13 -13
- package/dist/collection/components/bal-date/bal-date.js +26 -27
- package/dist/collection/components/bal-divider/bal-divider.js +4 -4
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +21 -22
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +4 -4
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +4 -4
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +8 -8
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +6 -6
- package/dist/collection/components/bal-field/bal-field.js +11 -11
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +25 -27
- package/dist/collection/components/bal-footer/bal-footer.js +5 -6
- package/dist/collection/components/bal-form/bal-form.js +4 -4
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +3 -3
- package/dist/collection/components/bal-heading/bal-heading.js +14 -14
- package/dist/collection/components/bal-hint/bal-hint.css +1 -1
- package/dist/collection/components/bal-hint/bal-hint.js +3 -3
- package/dist/collection/components/bal-icon/bal-icon.js +16 -16
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +19 -19
- package/dist/collection/components/bal-input/bal-input.js +41 -41
- package/dist/collection/components/bal-input-group/bal-input-group.js +4 -4
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +19 -19
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +11 -11
- package/dist/collection/components/bal-label/bal-label.js +15 -15
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +11 -11
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +7 -7
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +4 -4
- package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +2 -2
- package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +1 -1
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +3 -3
- package/dist/collection/components/bal-list/bal-list.js +7 -7
- package/dist/collection/components/bal-logo/bal-logo.js +6 -6
- package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal.js +24 -26
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +8 -8
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +4 -4
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +8 -8
- package/dist/collection/components/bal-nav/bal-nav.js +2 -5
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +14 -14
- package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +1 -1
- package/dist/collection/components/bal-navbar/bal-navbar.js +3 -3
- package/dist/collection/components/bal-notices/bal-notices.css +1 -1
- package/dist/collection/components/bal-notices/bal-notices.js +3 -3
- package/dist/collection/components/bal-notification/bal-notification.js +3 -3
- package/dist/collection/components/bal-number-input/bal-number-input.js +22 -22
- package/dist/collection/components/bal-option/bal-option.js +9 -9
- package/dist/collection/components/bal-option-list/bal-option-list.js +11 -11
- package/dist/collection/components/bal-pagination/bal-pagination.js +9 -9
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +11 -11
- package/dist/collection/components/bal-popover/bal-popover.js +16 -16
- package/dist/collection/components/bal-popup/bal-popup.js +15 -15
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +6 -6
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +15 -16
- package/dist/collection/components/bal-radio/bal-radio-icon/bal-radio-icon.js +6 -6
- package/dist/collection/components/bal-radio/bal-radio.js +19 -19
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +7 -7
- package/dist/collection/components/bal-segment/bal-segment.js +9 -9
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +6 -6
- package/dist/collection/components/bal-select/bal-select.js +30 -30
- package/dist/collection/components/bal-shape/bal-shape.js +7 -7
- package/dist/collection/components/bal-sheet/bal-sheet.js +1 -1
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +9 -11
- package/dist/collection/components/bal-spinner/bal-spinner.js +9 -10
- package/dist/collection/components/bal-stack/bal-stack.js +13 -13
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +8 -8
- 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 -7
- package/dist/collection/components/bal-stage/bal-stage.js +8 -8
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +14 -14
- package/dist/collection/components/bal-steps/bal-steps.js +10 -11
- package/dist/collection/components/bal-table/bal-table.js +2 -2
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +19 -19
- package/dist/collection/components/bal-tabs/bal-tabs.js +22 -23
- package/dist/collection/components/bal-tag/bal-tag.js +10 -10
- package/dist/collection/components/bal-tag/test/bal-tag.a11y.play.js +20 -0
- package/dist/collection/components/bal-tag/test/bal-tag.component.play.js +19 -0
- package/dist/collection/components/bal-tag/test/bal-tag.visual.play.js +20 -0
- package/dist/collection/components/bal-text/bal-text.js +13 -13
- package/dist/collection/components/bal-textarea/bal-textarea.js +27 -27
- package/dist/collection/components/bal-time-input/bal-time-input.js +9 -9
- package/dist/collection/components/bal-toast/bal-toast.js +4 -5
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +10 -10
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/focus/focus.listener.js +1 -1
- package/dist/collection/utils/helpers.js +1 -1
- package/dist/collection/utils/swipe/swipe.listener.js +1 -1
- package/dist/esm/{animation.decorator-CNK3bJ6X.js → animation.decorator-zbSqKhw6.js} +2 -2
- package/dist/esm/app-globals-BRqdW0lU.js +9 -0
- package/dist/esm/bal-accordion_4.entry.js +12 -7
- package/dist/esm/bal-app.entry.js +10 -4
- package/dist/esm/bal-badge.entry.js +2 -2
- package/dist/esm/bal-button_2.entry.js +4 -1
- package/dist/esm/bal-card_6.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +27 -25
- package/dist/esm/bal-check.entry.js +1 -1
- package/dist/esm/bal-checkbox_2.entry.js +11 -7
- package/dist/esm/bal-close.entry.js +7 -3
- package/dist/esm/bal-content.entry.js +3 -1
- package/dist/esm/bal-data_4.entry.js +6 -3
- package/dist/esm/bal-date-calendar-cell.entry.js +5 -2
- package/dist/esm/bal-date-calendar_2.entry.js +25 -36
- package/dist/esm/bal-date.entry.js +12 -8
- package/dist/esm/bal-divider.entry.js +3 -1
- package/dist/esm/{bal-dropdown.entry.js → bal-dropdown_3.entry.js} +612 -20
- package/dist/esm/bal-field_5.entry.js +12 -12
- package/dist/esm/bal-file-upload.entry.js +15 -20
- package/dist/esm/bal-footer.entry.js +7 -2
- package/dist/esm/bal-form-col_2.entry.js +3 -3
- package/dist/esm/bal-form.entry.js +5 -2
- package/dist/esm/bal-heading_2.entry.js +3 -2
- package/dist/esm/bal-hint_5.entry.js +17 -13
- package/dist/esm/bal-icon.entry.js +6 -2
- package/dist/esm/bal-input-group.entry.js +2 -2
- package/dist/esm/bal-input-slider.entry.js +9 -6
- package/dist/esm/bal-input-stepper.entry.js +1029 -1055
- package/dist/esm/bal-input.entry.js +7 -3
- package/dist/esm/bal-label.entry.js +8 -4
- package/dist/esm/bal-list_8.entry.js +21 -17
- package/dist/esm/bal-logo.entry.js +11 -7
- package/dist/esm/bal-modal_3.entry.js +28 -25
- package/dist/esm/bal-nav_8.entry.js +40 -60
- package/dist/esm/bal-navbar_5.entry.js +14 -9
- package/dist/esm/bal-notices_3.entry.js +2 -2
- package/dist/esm/bal-notification.entry.js +1 -1
- package/dist/esm/bal-number-input.entry.js +10 -5
- package/dist/esm/bal-pagination.entry.js +12 -7
- package/dist/esm/bal-popup.entry.js +9 -5
- package/dist/esm/bal-progress-bar.entry.js +11 -9
- package/dist/esm/bal-radio-icon.entry.js +1 -1
- package/dist/esm/bal-radio_2.entry.js +10 -6
- package/dist/esm/bal-segment_2.entry.js +18 -15
- package/dist/esm/bal-select_2.entry.js +13 -9
- package/dist/esm/bal-shape.entry.js +6 -6
- package/dist/esm/bal-sheet.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +8 -3
- package/dist/esm/bal-stack.entry.js +3 -1
- package/dist/esm/bal-stage_6.entry.js +10 -7
- package/dist/esm/bal-step-item.entry.js +3 -3
- package/dist/esm/bal-steps.entry.js +16 -18
- package/dist/esm/bal-switch.entry.js +1 -1
- package/dist/esm/bal-tab-item_2.entry.js +37 -47
- 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 +6 -3
- package/dist/esm/bal-time-input.entry.js +9 -4
- package/dist/esm/bal-tooltip.entry.js +8 -4
- package/dist/esm/baloise-design-system.js +11 -4
- package/dist/esm/{breakpoints.decorator-CB70vvLx.js → breakpoints.decorator-B1jmHb1D.js} +1 -1
- package/dist/esm/{breakpoints.subject-Dpu4Jjc3.js → breakpoints.subject-CLkQ75F0.js} +5 -4
- package/dist/esm/browser-B1u-Mq75.js +62 -0
- package/dist/esm/{config.decorator-FwS7csea.js → config.decorator-3bfyZ-0Y.js} +1 -1
- package/dist/esm/config.default-I6QXKbhg.js +47 -0
- package/dist/esm/config.utils-B7jugjyM.js +102 -0
- package/dist/esm/{date-wScrQINJ.js → date-W0XtD641.js} +65 -2
- package/dist/esm/{device-CWdcsnSc.js → device-TtMibDFL.js} +1 -1
- package/dist/esm/{element-states.decorator-BPErBZif.js → element-states.decorator-B68ANq1p.js} +3 -2
- package/dist/esm/{floating-ui-CNYJCYYO.js → floating-ui-Bx04QSXP.js} +1 -1
- package/dist/esm/{focus.decorator-BBUVspZX.js → focus.decorator-C1s3OoqI.js} +3 -2
- package/dist/esm/{form-input-Dv0N9pEu.js → form-input-DYvzaBlM.js} +1 -1
- package/dist/esm/helpers-BNj87EbG.js +307 -0
- package/dist/{cjs/index-TwNDE7ev.js → esm/index-BdVwMG9u.js} +204 -1207
- package/dist/esm/index.js +18 -14
- package/dist/esm/initialize-pdWsVO-c.js +441 -0
- package/dist/esm/{keyboard.helpers-D1VPLQ5z.js → keyboard.helpers-BERg8BNc.js} +1 -1
- package/dist/esm/{listener-BCxt7kj7.js → listener-CClDIhvK.js} +1 -1
- package/dist/esm/loader.js +10 -3
- package/dist/esm/log-CwssmmaV.js +77 -0
- package/dist/esm/{mutation.decorator-DVnSOGDK.js → mutation.decorator-DhVeNnnY.js} +2 -2
- package/dist/esm/{number-oUZz7C1l.js → number-Bwx2aNR0.js} +2 -1
- package/dist/esm/{overlays-B9nzshwp.js → overlays-DuvWMrlA.js} +2 -1
- package/dist/esm/{resize.decorator-xO0LVkHO.js → resize.decorator-ZKPOJfw5.js} +3 -2
- package/dist/esm/{scroll-Dhp_eUkh.js → scroll-X92R_eyZ.js} +1 -1
- package/dist/esm/{swiper.util-vb9wIkyd.js → string-Dk4PnSfl.js} +18 -22
- package/dist/esm/{swipe.decorator-Bk0DXvq0.js → swipe.decorator-B_Ghrp1o.js} +1 -1
- package/dist/esm/{swipe.subject-CCKruupP.js → swipe.subject-T0VStuOK.js} +3 -3
- package/dist/esm/{tokens.esm-4RggM_kM.js → tokens.esm-Crri2rlL.js} +2 -2
- package/dist/esm/{visibility.decorator-C5quU420.js → visibility.decorator-zTjPC2du.js} +2 -2
- package/dist/esm/{window-resize.decorator-tooGxqQM.js → window-resize.decorator-Dm6C96Ro.js} +24 -1
- package/dist/esm-es5/animation.decorator-zbSqKhw6.js +1 -0
- package/dist/esm-es5/app-globals-BRqdW0lU.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-check.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-content.entry.js +1 -1
- package/dist/esm-es5/bal-data_4.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-divider.entry.js +1 -1
- package/dist/esm-es5/bal-dropdown_3.entry.js +1 -0
- 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-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-icon.entry.js +1 -1
- package/dist/esm-es5/bal-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-select_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-sheet.entry.js +1 -1
- package/dist/esm-es5/bal-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stack.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-step-item.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-switch.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/bal-table.entry.js +1 -1
- package/dist/esm-es5/bal-tag_2.entry.js +1 -1
- package/dist/esm-es5/bal-textarea.entry.js +1 -1
- package/dist/esm-es5/bal-time-input.entry.js +1 -1
- package/dist/esm-es5/bal-tooltip.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-CB70vvLx.js → breakpoints.decorator-B1jmHb1D.js} +1 -1
- package/dist/esm-es5/breakpoints.subject-CLkQ75F0.js +1 -0
- package/dist/esm-es5/browser-B1u-Mq75.js +1 -0
- package/dist/esm-es5/config.decorator-3bfyZ-0Y.js +1 -0
- package/dist/esm-es5/config.default-I6QXKbhg.js +1 -0
- package/dist/esm-es5/config.utils-B7jugjyM.js +1 -0
- package/dist/esm-es5/{date-wScrQINJ.js → date-W0XtD641.js} +1 -1
- package/dist/esm-es5/device-TtMibDFL.js +1 -0
- package/dist/esm-es5/element-states.decorator-B68ANq1p.js +1 -0
- package/dist/esm-es5/floating-ui-Bx04QSXP.js +1 -0
- package/dist/esm-es5/focus.decorator-C1s3OoqI.js +1 -0
- package/dist/esm-es5/form-input-DYvzaBlM.js +1 -0
- package/dist/esm-es5/helpers-BNj87EbG.js +1 -0
- package/dist/esm-es5/index-BdVwMG9u.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-pdWsVO-c.js +1 -0
- package/dist/esm-es5/{keyboard.helpers-D1VPLQ5z.js → keyboard.helpers-BERg8BNc.js} +1 -1
- package/dist/esm-es5/listener-CClDIhvK.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/log-CwssmmaV.js +1 -0
- package/dist/esm-es5/mutation.decorator-DhVeNnnY.js +1 -0
- package/dist/esm-es5/number-Bwx2aNR0.js +1 -0
- package/dist/esm-es5/overlays-DuvWMrlA.js +1 -0
- package/dist/esm-es5/resize.decorator-ZKPOJfw5.js +1 -0
- package/dist/esm-es5/scroll-X92R_eyZ.js +1 -0
- package/dist/esm-es5/string-Dk4PnSfl.js +1 -0
- package/dist/esm-es5/{swipe.decorator-Bk0DXvq0.js → swipe.decorator-B_Ghrp1o.js} +1 -1
- package/dist/esm-es5/swipe.subject-T0VStuOK.js +1 -0
- package/dist/esm-es5/{tokens.esm-4RggM_kM.js → tokens.esm-Crri2rlL.js} +1 -1
- package/dist/esm-es5/visibility.decorator-zTjPC2du.js +1 -0
- package/dist/esm-es5/window-resize.decorator-Dm6C96Ro.js +1 -0
- package/dist/html.html-data.json +1 -62
- package/dist/types/components/bal-accordion/bal-accordion-details/bal-accordion-details.d.ts +3 -2
- package/dist/types/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.d.ts +3 -2
- package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +4 -3
- package/dist/types/components/bal-accordion/bal-accordion.d.ts +4 -3
- package/dist/types/components/bal-app/bal-app.d.ts +7 -1
- package/dist/types/components/bal-badge/bal-badge.d.ts +2 -1
- package/dist/types/components/bal-button/bal-button.d.ts +2 -1
- package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +2 -1
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +4 -3
- package/dist/types/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.d.ts +2 -1
- package/dist/types/components/bal-close/bal-close.d.ts +2 -1
- package/dist/types/components/bal-data/bal-data-value/bal-data-value.d.ts +2 -1
- package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +2 -1
- package/dist/types/components/bal-date/bal-date.d.ts +2 -1
- package/dist/types/components/bal-dropdown/bal-dropdown.d.ts +2 -1
- package/dist/types/components/bal-field/bal-field.d.ts +3 -3
- package/dist/types/components/bal-file-upload/bal-file-upload.d.ts +3 -2
- package/dist/types/components/bal-form/bal-form.d.ts +2 -1
- package/dist/types/components/bal-form-grid/bal-form-col/bal-form-col.d.ts +2 -1
- package/dist/types/components/bal-heading/bal-heading.d.ts +2 -1
- package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +2 -1
- package/dist/types/components/bal-input/bal-input.d.ts +2 -1
- package/dist/types/components/bal-input-group/bal-input-group.d.ts +2 -1
- package/dist/types/components/bal-input-slider/bal-input-slider.d.ts +2 -1
- package/dist/types/components/bal-input-stepper/bal-input-stepper.d.ts +2 -1
- package/dist/types/components/bal-label/bal-label.d.ts +4 -3
- package/dist/types/components/bal-list/bal-list-item/bal-list-item.d.ts +2 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +2 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +2 -1
- package/dist/types/components/bal-list/bal-list.d.ts +2 -1
- package/dist/types/components/bal-logo/bal-logo.d.ts +3 -2
- package/dist/types/components/bal-modal/bal-modal-header/bal-modal-header.d.ts +2 -1
- package/dist/types/components/bal-modal/bal-modal.d.ts +2 -1
- package/dist/types/components/bal-modal/bal-modal.type.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav-focus.util.d.ts +3 -2
- package/dist/types/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.d.ts +2 -1
- package/dist/types/components/bal-nav/bal-nav.d.ts +2 -1
- package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +2 -1
- package/dist/types/components/bal-number-input/bal-number-input.d.ts +2 -1
- package/dist/types/components/bal-option/bal-option.d.ts +2 -1
- package/dist/types/components/bal-option-list/bal-option-list.d.ts +4 -3
- package/dist/types/components/bal-popover/bal-popover-content/bal-popover-content.d.ts +2 -1
- package/dist/types/components/bal-popover/bal-popover.d.ts +4 -3
- package/dist/types/components/bal-popup/bal-popup.d.ts +2 -1
- package/dist/types/components/bal-popup/variants/variant.interfaces.d.ts +2 -1
- package/dist/types/components/bal-progress-bar/bal-progress-bar.d.ts +2 -1
- package/dist/types/components/bal-radio/bal-radio-group/bal-radio-group.d.ts +2 -1
- package/dist/types/components/bal-segment/bal-segment-item/bal-segment-item.d.ts +2 -1
- package/dist/types/components/bal-segment/bal-segment.d.ts +2 -1
- package/dist/types/components/bal-select/bal-select.d.ts +2 -1
- package/dist/types/components/bal-select/utils/watch-options.d.ts +2 -1
- package/dist/types/components/bal-shape/bal-shape.d.ts +2 -1
- package/dist/types/components/bal-spinner/bal-spinner.d.ts +3 -2
- package/dist/types/components/bal-stage/bal-stage-back-link/bal-stage-back-link.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-body/bal-stage-body.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-foot/bal-stage-foot.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-head/bal-stage-head.d.ts +2 -1
- package/dist/types/components/bal-stage/bal-stage-image/bal-stage-image.d.ts +2 -1
- package/dist/types/components/bal-steps/bal-step-item/bal-step-item.d.ts +2 -1
- package/dist/types/components/bal-steps/bal-steps.d.ts +5 -4
- package/dist/types/components/bal-table/bal-table.d.ts +2 -1
- package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +2 -1
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +2 -1
- package/dist/types/components/bal-tag/bal-tag.d.ts +2 -1
- package/dist/types/components/bal-tag/test/bal-tag.a11y.play.d.ts +1 -0
- package/dist/types/components/bal-tag/test/bal-tag.component.play.d.ts +1 -0
- package/dist/types/components/bal-tag/test/bal-tag.visual.play.d.ts +1 -0
- package/dist/types/components/bal-textarea/bal-textarea.d.ts +2 -1
- package/dist/types/components/bal-time-input/bal-time-input.d.ts +2 -1
- package/dist/types/components/bal-tooltip/bal-tooltip.d.ts +2 -1
- package/dist/types/components.d.ts +20 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/index.d.ts +8 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/bal-tag.po.d.ts +8 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +1 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/page-object.d.ts +7 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/extend.d.ts +9 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/functions/a11y.d.ts +2 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/index.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-first-received-event-detail.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-nth-received-event-detail.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-received-event-detail.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-received-event-times.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/matchers/to-have-received-event.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/event-spy.d.ts +44 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/goto.d.ts +8 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/index.d.ts +5 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/locator.d.ts +21 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/mount.d.ts +3 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/spy-on-event.d.ts +3 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/wait-for-changes.d.ts +2 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/screenshot.d.ts +1 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/test-expect.d.ts +22 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/types.d.ts +38 -0
- package/dist/types/stencil-public-runtime.d.ts +62 -8
- package/dist/types/utils/animation/animation.interfaces.d.ts +3 -2
- package/dist/types/utils/animation/animation.listener.d.ts +2 -1
- package/dist/types/utils/attributes.d.ts +3 -2
- package/dist/types/utils/bem.d.ts +2 -2
- package/dist/types/utils/dropdown/component.d.ts +2 -1
- package/dist/types/utils/dropdown/popup.d.ts +2 -1
- package/dist/types/utils/element-states/element-states.interfaces.d.ts +2 -1
- package/dist/types/utils/element-states/element-states.listener.d.ts +2 -1
- package/dist/types/utils/focus/focus.interfaces.d.ts +2 -1
- package/dist/types/utils/focus/focus.listener.d.ts +2 -1
- package/dist/types/utils/form-input.d.ts +2 -1
- package/dist/types/utils/form.d.ts +2 -1
- package/dist/types/utils/helpers.d.ts +6 -5
- package/dist/types/utils/mask/component/mask-component-interfaces.d.ts +2 -1
- package/dist/types/utils/mutation/mutation.interfaces.d.ts +2 -1
- package/dist/types/utils/mutation/mutation.listener.d.ts +2 -1
- package/dist/types/utils/overlays/overlays.d.ts +2 -2
- package/dist/types/utils/resize/resize.interfaces.d.ts +2 -1
- package/dist/types/utils/resize/resize.listener.d.ts +2 -1
- package/dist/types/utils/resize/window-resize.interfaces.d.ts +2 -1
- package/dist/types/utils/style.d.ts +2 -1
- package/dist/types/utils/swipe/swipe.interfaces.d.ts +2 -1
- package/dist/types/utils/swipe/swipe.listener.d.ts +2 -1
- package/dist/types/utils/swiper/swiper.type.d.ts +3 -2
- package/dist/types/utils/types/listener.d.ts +3 -2
- package/dist/types/utils/visibility/visibility.interfaces.d.ts +2 -1
- package/dist/types/utils/visibility/visibility.listener.d.ts +2 -1
- package/package.json +10 -7
- package/components/bal-toast.controller.js +0 -127
- package/components/window-resize.listener.js +0 -80
- package/components/window-resize.subject.js +0 -26
- package/dist/baloise-design-system/p-0907fd261f.entry.js +0 -1
- package/dist/baloise-design-system/p-09348ab262.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0986fe6bd0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0fad8a1e31.entry.js +0 -1
- package/dist/baloise-design-system/p-0fe98f59a4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-10d754691a.entry.js +0 -1
- package/dist/baloise-design-system/p-113691a62f.entry.js +0 -1
- package/dist/baloise-design-system/p-1516c91d4e.entry.js +0 -1
- package/dist/baloise-design-system/p-1638d00f2d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1744fb223c.entry.js +0 -1
- package/dist/baloise-design-system/p-1a1b714236.entry.js +0 -1
- package/dist/baloise-design-system/p-1a48f63b91.entry.js +0 -1
- package/dist/baloise-design-system/p-1d177e7449.entry.js +0 -1
- package/dist/baloise-design-system/p-1d3f76cacc.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1edf81b274.entry.js +0 -1
- package/dist/baloise-design-system/p-261a40555d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-26f33fb309.system.entry.js +0 -1
- package/dist/baloise-design-system/p-28f315ce54.system.entry.js +0 -1
- package/dist/baloise-design-system/p-29be3c5644.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2ad2cd8a77.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2bb50edb03.entry.js +0 -1
- package/dist/baloise-design-system/p-2d88aa248e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-32ed11b23d.entry.js +0 -1
- package/dist/baloise-design-system/p-33e4fc1641.entry.js +0 -1
- package/dist/baloise-design-system/p-37022683b7.entry.js +0 -1
- package/dist/baloise-design-system/p-380c5803d9.entry.js +0 -1
- package/dist/baloise-design-system/p-3eb7056b78.entry.js +0 -1
- package/dist/baloise-design-system/p-4173b195f5.entry.js +0 -1
- package/dist/baloise-design-system/p-429b6209eb.entry.js +0 -1
- package/dist/baloise-design-system/p-446235d66d.entry.js +0 -1
- package/dist/baloise-design-system/p-4592890c87.system.entry.js +0 -1
- package/dist/baloise-design-system/p-46aaffaa70.entry.js +0 -1
- package/dist/baloise-design-system/p-4861d5c268.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4ab1baaeb2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4cbacb2728.entry.js +0 -1
- package/dist/baloise-design-system/p-54252e93ae.system.entry.js +0 -1
- package/dist/baloise-design-system/p-57303f4cf0.entry.js +0 -1
- package/dist/baloise-design-system/p-577c4fbffa.entry.js +0 -1
- package/dist/baloise-design-system/p-61d6ce6346.entry.js +0 -1
- package/dist/baloise-design-system/p-63d9b0dc71.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6845434665.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6JPfxkH9.system.js +0 -2
- package/dist/baloise-design-system/p-6a2d541345.entry.js +0 -1
- package/dist/baloise-design-system/p-6af4878ee1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6b7cef6b56.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6c89fe7777.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6d016ad721.entry.js +0 -1
- package/dist/baloise-design-system/p-7255ac5e19.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7567bed290.system.entry.js +0 -1
- package/dist/baloise-design-system/p-77ed6cef4e.entry.js +0 -1
- package/dist/baloise-design-system/p-78d48f3d1a.entry.js +0 -1
- package/dist/baloise-design-system/p-7f39c04ab4.entry.js +0 -1
- package/dist/baloise-design-system/p-85ef72f929.entry.js +0 -1
- package/dist/baloise-design-system/p-87e06064a3.entry.js +0 -1
- package/dist/baloise-design-system/p-8d7d5197d6.entry.js +0 -1
- package/dist/baloise-design-system/p-97dca06bad.system.entry.js +0 -1
- package/dist/baloise-design-system/p-98d8c0b274.system.entry.js +0 -1
- package/dist/baloise-design-system/p-98fedb26af.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9a7614a6da.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9ccc9420aa.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9ed893d2f1.entry.js +0 -1
- package/dist/baloise-design-system/p-9f46f38337.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9faad04082.entry.js +0 -1
- package/dist/baloise-design-system/p-B97IGjGv.js +0 -1
- package/dist/baloise-design-system/p-BDsO8HVR.system.js +0 -1
- package/dist/baloise-design-system/p-BdMT8-qh.system.js +0 -1
- package/dist/baloise-design-system/p-BgWhYta3.js +0 -2
- package/dist/baloise-design-system/p-BiQW-kmH.js +0 -1
- package/dist/baloise-design-system/p-Brj9SizC.js +0 -1
- package/dist/baloise-design-system/p-BsGRcohK.js +0 -1
- package/dist/baloise-design-system/p-BuwrUtcI.js +0 -1
- package/dist/baloise-design-system/p-C89aCsha.system.js +0 -1
- package/dist/baloise-design-system/p-C9gtg7pC.js +0 -1
- package/dist/baloise-design-system/p-CLs4UZCO.js +0 -1
- package/dist/baloise-design-system/p-CPvYKxnJ.system.js +0 -1
- package/dist/baloise-design-system/p-CdRteRAi.system.js +0 -1
- package/dist/baloise-design-system/p-Clusr4_J.system.js +0 -1
- package/dist/baloise-design-system/p-Csghe1wj.system.js +0 -1
- package/dist/baloise-design-system/p-CvJZJ5PO.system.js +0 -1
- package/dist/baloise-design-system/p-DA9xpxCC.system.js +0 -1
- package/dist/baloise-design-system/p-DMPBkH8m.js +0 -1
- package/dist/baloise-design-system/p-DVQeGKBt.system.js +0 -1
- package/dist/baloise-design-system/p-DYGnSrkp.system.js +0 -1
- package/dist/baloise-design-system/p-DblLSfCr.js +0 -1
- package/dist/baloise-design-system/p-DcxdJ7xo.system.js +0 -1
- package/dist/baloise-design-system/p-DkkPrFJ4.js +0 -1
- package/dist/baloise-design-system/p-DrYtyUx4.js +0 -1
- package/dist/baloise-design-system/p-Dv-qApwY.system.js +0 -1
- package/dist/baloise-design-system/p-PJBCHUTX.system.js +0 -1
- package/dist/baloise-design-system/p-YxrA2V8G.system.js +0 -1
- package/dist/baloise-design-system/p-Z2WXCS2z.system.js +0 -1
- package/dist/baloise-design-system/p-ZO510gkN.system.js +0 -1
- package/dist/baloise-design-system/p-a24b0f04ac.entry.js +0 -1
- package/dist/baloise-design-system/p-a49cbc975f.entry.js +0 -1
- package/dist/baloise-design-system/p-ab4f18d946.system.entry.js +0 -1
- package/dist/baloise-design-system/p-adf9dc4b6c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-af0438175b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-af25440706.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b2d3c28f7e.entry.js +0 -1
- package/dist/baloise-design-system/p-b465562e59.entry.js +0 -1
- package/dist/baloise-design-system/p-b6348cd01c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-b8e45544f8.system.entry.js +0 -1
- package/dist/baloise-design-system/p-bb3c1187e2.entry.js +0 -1
- package/dist/baloise-design-system/p-bdeea100d1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c0ec248967.entry.js +0 -1
- package/dist/baloise-design-system/p-c46abb4720.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c7b4bbf341.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c88b2139c4.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ce3e28b217.entry.js +0 -1
- package/dist/baloise-design-system/p-cec255ddb5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-cfbff4d0c5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d292509747.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d40c3b818d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d56db02feb.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d9f1657d3a.entry.js +0 -1
- package/dist/baloise-design-system/p-dcd16c9edf.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e2ff5ec460.entry.js +0 -1
- package/dist/baloise-design-system/p-e5e10f7330.entry.js +0 -1
- package/dist/baloise-design-system/p-eb318eae31.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ef2aa99689.entry.js +0 -1
- package/dist/baloise-design-system/p-f09b1d15cb.entry.js +0 -1
- package/dist/baloise-design-system/p-f701f3341f.entry.js +0 -1
- package/dist/baloise-design-system/p-f931d7af5f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fa6414dc04.entry.js +0 -1
- package/dist/baloise-design-system/p-fb932a0e2d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fbedfc8307.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fc05075fc7.entry.js +0 -1
- package/dist/baloise-design-system/p-fe41123fad.entry.js +0 -1
- package/dist/baloise-design-system/p-ffdfc86824.system.entry.js +0 -1
- package/dist/baloise-design-system/p-irA_rSP3.system.js +0 -1
- package/dist/baloise-design-system/p-otQuEMP7.js +0 -1
- package/dist/baloise-design-system/p-t17chohV.system.js +0 -1
- package/dist/cjs/bal-date.i18n-DJlY99as.js +0 -66
- package/dist/cjs/bal-option_2.cjs.entry.js +0 -606
- package/dist/cjs/window-resize.decorator-DZPJwKe1.js +0 -25
- package/dist/cjs/window-resize.subject-AALAxaW0.js +0 -28
- package/dist/esm/bal-date.i18n-CLs4UZCO.js +0 -64
- package/dist/esm/bal-option_2.entry.js +0 -603
- package/dist/esm/window-resize.subject-BfRcRWok.js +0 -26
- package/dist/esm-es5/animation.decorator-CNK3bJ6X.js +0 -1
- package/dist/esm-es5/bal-date.i18n-CLs4UZCO.js +0 -1
- package/dist/esm-es5/bal-dropdown.entry.js +0 -1
- package/dist/esm-es5/bal-option_2.entry.js +0 -1
- package/dist/esm-es5/breakpoints.subject-Dpu4Jjc3.js +0 -1
- package/dist/esm-es5/config.decorator-FwS7csea.js +0 -1
- package/dist/esm-es5/device-CWdcsnSc.js +0 -1
- package/dist/esm-es5/element-states.decorator-BPErBZif.js +0 -1
- package/dist/esm-es5/floating-ui-CNYJCYYO.js +0 -1
- package/dist/esm-es5/focus.decorator-BBUVspZX.js +0 -1
- package/dist/esm-es5/form-input-Dv0N9pEu.js +0 -1
- package/dist/esm-es5/index-BgWhYta3.js +0 -2
- package/dist/esm-es5/listener-BCxt7kj7.js +0 -1
- package/dist/esm-es5/mutation.decorator-DVnSOGDK.js +0 -1
- package/dist/esm-es5/number-oUZz7C1l.js +0 -1
- package/dist/esm-es5/overlays-B9nzshwp.js +0 -1
- package/dist/esm-es5/resize.decorator-xO0LVkHO.js +0 -1
- package/dist/esm-es5/scroll-Dhp_eUkh.js +0 -1
- package/dist/esm-es5/swipe.subject-CCKruupP.js +0 -1
- package/dist/esm-es5/swiper.util-vb9wIkyd.js +0 -1
- package/dist/esm-es5/visibility.decorator-C5quU420.js +0 -1
- package/dist/esm-es5/window-resize.decorator-tooGxqQM.js +0 -1
- package/dist/esm-es5/window-resize.subject-BfRcRWok.js +0 -1
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-feA4skrY.js');
|
|
4
4
|
var tslib_es6 = require('./tslib.es6-DrfCPgT9.js');
|
|
5
5
|
var attributes = require('./attributes-Cp0kpySW.js');
|
|
6
6
|
var bem = require('./bem-p0PWVN8n.js');
|
|
7
|
-
var
|
|
7
|
+
var browser = require('./browser-BwmkTmm8.js');
|
|
8
|
+
var form = require('./form-BSlIiqcR.js');
|
|
9
|
+
var formInput = require('./form-input-BwFB4Rej.js');
|
|
10
|
+
var helpers = require('./helpers-HuaiWXrB.js');
|
|
11
|
+
var log = require('./log-CXDMiw7o.js');
|
|
8
12
|
var array = require('./array-Db63Hhl1.js');
|
|
9
|
-
var
|
|
13
|
+
var index$1 = require('./index-BZ67Dcnb.js');
|
|
10
14
|
var focusVisible = require('./focus-visible-DFZa8IIA.js');
|
|
15
|
+
var floatingUi = require('./floating-ui-DyN44UhF.js');
|
|
11
16
|
var option = require('./option-kGk4eTdA.js');
|
|
12
|
-
var floatingUi = require('./floating-ui-T_yqQ0TC.js');
|
|
13
|
-
var index$1 = require('./index-BZ67Dcnb.js');
|
|
14
17
|
var aria = require('./aria-BzkqcV7W.js');
|
|
15
|
-
var
|
|
18
|
+
var config_default = require('./config.default-Bkso4_bY.js');
|
|
16
19
|
var keyboard_helpers = require('./keyboard.helpers-BkZpVT-9.js');
|
|
20
|
+
var config_decorator = require('./config.decorator-CUe4yCTd.js');
|
|
21
|
+
var elementStates_decorator = require('./element-states.decorator-BG2oNUsO.js');
|
|
22
|
+
var utils = require('./utils-Bl0u6rg1.js');
|
|
23
|
+
require('./config.utils-Civnz2jT.js');
|
|
17
24
|
require('./index-BobQkZjn.js');
|
|
18
25
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
26
|
+
require('./listener-DspXpqzY.js');
|
|
19
27
|
|
|
20
28
|
class DropdownAutoFillUtil {
|
|
21
29
|
constructor() {
|
|
@@ -126,7 +134,7 @@ class DropdownEventsUtil {
|
|
|
126
134
|
handleBlur(ev) {
|
|
127
135
|
if (!this.component.isExpanded) {
|
|
128
136
|
this.component.hasFocus = false;
|
|
129
|
-
|
|
137
|
+
helpers.rIC(() => this.component.balBlur.emit(ev));
|
|
130
138
|
}
|
|
131
139
|
}
|
|
132
140
|
handleClick(ev) {
|
|
@@ -156,7 +164,7 @@ class DropdownEventsUtil {
|
|
|
156
164
|
this.component.isExpanded = false;
|
|
157
165
|
(_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.resetFocus();
|
|
158
166
|
this.component.hasFocus = false;
|
|
159
|
-
|
|
167
|
+
helpers.rIC(() => this.component.balBlur.emit(ev));
|
|
160
168
|
}
|
|
161
169
|
}
|
|
162
170
|
}
|
|
@@ -225,8 +233,7 @@ const DropdownIcon = ({ size, theme, icon, language, loading, clearable, invalid
|
|
|
225
233
|
return (index.h("button", { title: i18nBalDropdown[language].clearable, type: 'button', tabIndex: -1, class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('rear').class()), block.element('clear').class()), block.element('clear').modifier('invalid').class(invalid)), block
|
|
226
234
|
.element('clear')
|
|
227
235
|
.modifier('theme-purple')
|
|
228
|
-
.class(theme === 'purple')) },
|
|
229
|
-
index.h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: theme === 'purple' ? 'close' : 'close-circle', size: size, color: theme === 'purple' ? 'primary' : 'grey' })));
|
|
236
|
+
.class(theme === 'purple')) }, index.h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: theme === 'purple' ? 'close' : 'close-circle', size: size, color: theme === 'purple' ? 'primary' : 'grey' })));
|
|
230
237
|
}
|
|
231
238
|
else {
|
|
232
239
|
return (index.h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: icon, size: size, turn: expanded, color: disabled ? 'grey' : invalid ? 'danger' : 'primary' }));
|
|
@@ -235,12 +242,9 @@ const DropdownIcon = ({ size, theme, icon, language, loading, clearable, invalid
|
|
|
235
242
|
|
|
236
243
|
const DropdownOptionList = ({ inputId, isExpanded, rawOptions, isDisabled, hasPropOptions, required, filter, multiple, contentHeight, refPanelEl, refListEl, }) => {
|
|
237
244
|
const block = bem.BEM.block('dropdown');
|
|
238
|
-
return (index.h("div", { id: `${inputId}-menu`, class: Object.assign(Object.assign({}, block.element('list').class()), block.element('list').modifier('expanded').class(isExpanded)), ref: refPanelEl },
|
|
239
|
-
index.h("bal-option
|
|
240
|
-
|
|
241
|
-
hasPropOptions
|
|
242
|
-
? rawOptions.map(option => (index.h("bal-option", { key: option.value, value: option.value, label: option.label, disabled: option.disabled, multiline: option.multiline, invalid: option.invalid, hidden: option.hidden, selected: option.selected, focused: option.focused }, option.label)))
|
|
243
|
-
: '')));
|
|
245
|
+
return (index.h("div", { id: `${inputId}-menu`, class: Object.assign(Object.assign({}, block.element('list').class()), block.element('list').modifier('expanded').class(isExpanded)), ref: refPanelEl }, index.h("bal-option-list", { multiple: multiple, disabled: isDisabled, filter: filter, required: required, contentHeight: contentHeight, ref: refListEl }, index.h("slot", null), hasPropOptions
|
|
246
|
+
? rawOptions.map(option => (index.h("bal-option", { key: option.value, value: option.value, label: option.label, disabled: option.disabled, multiline: option.multiline, invalid: option.invalid, hidden: option.hidden, selected: option.selected, focused: option.focused }, option.label)))
|
|
247
|
+
: '')));
|
|
244
248
|
};
|
|
245
249
|
|
|
246
250
|
class DropdownPopupUtil {
|
|
@@ -365,7 +369,7 @@ class DropdownValueUtil {
|
|
|
365
369
|
this.updateRawValueBySelection(newRawValue);
|
|
366
370
|
}
|
|
367
371
|
async updateInputContent() {
|
|
368
|
-
await
|
|
372
|
+
await helpers.waitAfterFramePaint();
|
|
369
373
|
if (this.component.listEl) {
|
|
370
374
|
this.component.choices = await this.component.listEl.getSelectedOptions(this.component.rawValue);
|
|
371
375
|
this.component.inputLabel = this.component.choices
|
|
@@ -396,8 +400,7 @@ const DropdownInput = ({ inputId, httpFormSubmit, ariaForm, rawValue, autocomple
|
|
|
396
400
|
if (httpFormSubmit) {
|
|
397
401
|
return index.h(Input, null);
|
|
398
402
|
}
|
|
399
|
-
return (index.h("form", { novalidate: true },
|
|
400
|
-
index.h(Input, null)));
|
|
403
|
+
return (index.h("form", { novalidate: true }, index.h(Input, null)));
|
|
401
404
|
};
|
|
402
405
|
|
|
403
406
|
const balDropdownCss = ":root{--bal-dropdown-control-background:var(--bal-color-white);--bal-dropdown-control-background-hover:var(--bal-form-field-control-background-hover);--bal-dropdown-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-dropdown-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-dropdown-control-input-background:var(--bal-color-grey-1);--bal-dropdown-control-native-input-background:transparent;--bal-dropdown-control-native-input-background-hover:transparent;--bal-dropdown-control-input-inverted-footer-background:transparent;--bal-dropdown-control-input-inverted-footer-background-hover:transparent;--bal-dropdown-control-input-multiple-background:transparent;--bal-dropdown-control-input-multiple-background-read-only-selection:transparent;--bal-dropdown-control-input-option-background:transparent;--bal-dropdown-control-input-option-background-selected:var(--bal-color-primary-1);--bal-dropdown-control-input-option-background-focused:var(--bal-color-grey-3);--bal-dropdown-control-input-option-background-hover:var(--bal-color-grey-3);--bal-dropdown-control-border-radius:var(--bal-form-field-control-radius);--bal-dropdown-popover-border-color:var(--bal-color-grey-2);--bal-dropdown-control-border-color:var(--bal-form-field-control-border-color);--bal-dropdown-control-border-color-focused:var(--bal-color-primary);--bal-dropdown-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-dropdown-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-dropdown-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-dropdown-control-border-color-focus-within:var(--bal-color-primary);--bal-dropdown-option-border-top-color:var(--bal-color-grey-2);--bal-dropdown-popover-empty-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color-focused:var(--bal-color-primary);--bal-dropdown-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-dropdown-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-dropdown-option-content-label-text-color:var(--bal-form-field-control-color)}.bal-dropdown{display:block;position:relative;-ms-flex:1;flex:1;width:100%}.bal-dropdown__root{border-width:.125rem;border-style:solid;border-color:var(--bal-dropdown-control-border-color);border-radius:var(--bal-dropdown-control-border-radius);background:var(--bal-dropdown-control-background);font-weight:var(--bal-font-weight-regular);font-size:var(--bal-text-size-normal);font-family:var(--bal-font-family-text);color:var(--bal-dropdown-control-text-color);outline:none;-webkit-box-shadow:var(--bal-shadow-none);box-shadow:var(--bal-shadow-none);padding-right:1rem;height:auto;min-height:3rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-ms-flexbox;display:flex;width:100%;text-align:left;gap:1rem;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-dropdown__root--autofill{background:#faffbd !important;background:light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important}.bal-dropdown__root>span{-ms-flex:1;flex:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bal-dropdown__root--focused{border-color:var(--bal-dropdown-control-border-color-focused)}.bal-dropdown__root--invalid{border-color:var(--bal-dropdown-control-border-color-invalid);background:var(--bal-dropdown-control-background-invalid)}.bal-dropdown__root--disabled{border-color:var(--bal-dropdown-control-border-color-disabled);background:var(--bal-dropdown-control-background-disabled)}.bal-dropdown__root__content--placeholder{color:var(--bal-form-field-control-placeholder-color)}.bal-dropdown__root__content--disabled{color:var(--bal-dropdown-input-text-color-disabled)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root:not(.bal-dropdown__root--disabled):not(.bal-dropdown__root--invalid):not(.bal-dropdown__root--theme-purple):not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-dropdown-control-background-hover)}}.bal-dropdown__root__content__chips{--bal-tag-size-small-font-size:var(--bal-text-size-normal);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-xx-small);padding-top:var(--bal-space-x-small);padding-bottom:var(--bal-space-x-small)}.bal-dropdown__root__content__chips>bal-tag{z-index:1}.bal-dropdown__root__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:rgba(0,0,0,0);position:absolute;right:var(--bal-border-width-normal);left:var(--bal-border-width-normal);top:var(--bal-border-width-normal);bottom:var(--bal-border-width-normal);opacity:0;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));cursor:pointer}.bal-dropdown__root__input:disabled{cursor:default}.bal-dropdown__root__input:-webkit-autofill{opacity:1}.bal-dropdown__root__input:autofill{opacity:1}.bal-dropdown__root__input:-internal-autofill-selected{opacity:0}.bal-dropdown__root__select{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-dropdown__root--autofill .bal-dropdown__root__input{opacity:0}.bal-dropdown__list{display:none;visibility:hidden;opacity:0;width:100vw;position:absolute;top:0;left:0;will-change:left,top,opacity;background:var(--bal-color-white);border-radius:var(--bal-radius-normal);-webkit-box-shadow:var(--bal-shadow-normal);box-shadow:var(--bal-shadow-normal);z-index:var(--bal-z-index-popup)}@media screen and (min-width: 769px),print{.bal-dropdown__list{max-width:100vw;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:100%}}.bal-dropdown__list--expanded{display:block;visibility:visible;opacity:1}.bal-dropdown__native{bottom:0;left:0;position:absolute;opacity:0;pointer-events:none;width:100%}.bal-dropdown__clear{background:rgba(0,0,0,0);border:none;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer}.bal-dropdown__clear--theme-purple{height:2rem;width:2rem;border-top-right-radius:2px;border-bottom-right-radius:2px;margin-right:-10px}.bal-dropdown__clear--theme-purple::before{content:\"\";position:absolute;right:32px;background:var(--bal-color-white);width:2px;height:100%}.bal-dropdown__rear{z-index:1}.bal-dropdown__root--size-small{min-height:2rem}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--disabled) .bal-dropdown__root__content--placeholder{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded){border:none;background:var(--bal-color-background-grey-light)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover{background:var(--bal-color-purple-1)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner circle{fill:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active{background:var(--bal-color-purple-2)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner g,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner path,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded){border:none;background:var(--bal-color-purple-2)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover{background:var(--bal-color-purple-3)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-dropdown__root__content{color:var(--bal-color-text-primary-pressed)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):hover .bal-icon__inner circle{fill:var(--bal-color-text-primary-pressed)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active{background:var(--bal-color-purple-3)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner g,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner path,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):not(.bal-dropdown__root--disabled):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}}.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled),.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active{border:none;background:var(--bal-color-purple-2)}.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled) .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled) .bal-dropdown__root__content,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover .bal-dropdown__root__content,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled) .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled) .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled) .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled) .bal-icon__inner circle,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):hover .bal-icon__inner circle,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:not(.bal-dropdown__root--disabled):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}.bal-dropdown__root--focused.bal-dropdown__root--theme-purple:before{content:\"\";border-width:var(--bal-border-width-normal);border-style:solid;border-color:var(--bal-focus-shadow-end-color);position:absolute;background:rgba(0,0,0,0);border-radius:var(--bal-radius-normal);top:-0.25rem;bottom:-0.25rem;left:-0.25rem;right:-0.25rem}.bal-dropdown__root__content--size-small{font-size:var(--bal-text-size-small);font-weight:var(--bal-font-weight-bold)}.bal-dropdown__clear--theme-purple{height:2rem;width:2rem;border-top-right-radius:2px;border-bottom-right-radius:2px;margin-right:-10px}.bal-dropdown__clear--theme-purple::before{content:\"\";position:absolute;right:32px;background:var(--bal-color-white);width:2px;height:100%}";
|
|
@@ -421,9 +424,9 @@ const Dropdown = class {
|
|
|
421
424
|
this.isKeyboardMode = false;
|
|
422
425
|
this.inputLabel = '';
|
|
423
426
|
this.ariaForm = form.defaultBalAriaForm;
|
|
424
|
-
this.language =
|
|
425
|
-
this.region =
|
|
426
|
-
this.httpFormSubmit =
|
|
427
|
+
this.language = config_default.defaultConfig.language;
|
|
428
|
+
this.region = config_default.defaultConfig.region;
|
|
429
|
+
this.httpFormSubmit = config_default.defaultConfig.httpFormSubmit;
|
|
427
430
|
this.labelToFocus = '';
|
|
428
431
|
this.valueUtil = new DropdownValueUtil();
|
|
429
432
|
this.eventsUtil = new DropdownEventsUtil();
|
|
@@ -634,26 +637,26 @@ const Dropdown = class {
|
|
|
634
637
|
this.focusUtil.connectedCallback(this);
|
|
635
638
|
this.autoFillUtil.connectedCallback(this);
|
|
636
639
|
}
|
|
637
|
-
|
|
638
|
-
if (
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
640
|
+
helpers.addEventListener(this.el, 'balOptionChange', this.listenToOptionChange);
|
|
641
|
+
if (browser.balBrowser.hasDocument) {
|
|
642
|
+
helpers.addEventListener(document, 'keydown', this.eventsUtil.handleKeydown);
|
|
643
|
+
helpers.addEventListener(document, 'touchstart', this.eventsUtil.handlePointerDown);
|
|
644
|
+
helpers.addEventListener(document, 'mousedown', this.eventsUtil.handlePointerDown);
|
|
645
|
+
helpers.addEventListener(document, 'click', this.listenOnClickOutside);
|
|
646
|
+
helpers.addEventListener(document, 'reset', this.resetHandler, {
|
|
644
647
|
capture: true,
|
|
645
648
|
});
|
|
646
649
|
}
|
|
647
650
|
this.hasConnected = true;
|
|
648
651
|
}
|
|
649
652
|
disconnectedCallback() {
|
|
650
|
-
|
|
651
|
-
if (
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
653
|
+
helpers.removeEventListener(this.el, 'balOptionChange', this.listenToOptionChange);
|
|
654
|
+
if (browser.balBrowser.hasDocument) {
|
|
655
|
+
helpers.removeEventListener(document, 'keydown', this.eventsUtil.handleKeydown);
|
|
656
|
+
helpers.removeEventListener(document, 'touchstart', this.eventsUtil.handlePointerDown);
|
|
657
|
+
helpers.removeEventListener(document, 'mousedown', this.eventsUtil.handlePointerDown);
|
|
658
|
+
helpers.removeEventListener(document, 'click', this.listenOnClickOutside);
|
|
659
|
+
helpers.removeEventListener(document, 'reset', this.resetHandler, {
|
|
657
660
|
capture: true,
|
|
658
661
|
});
|
|
659
662
|
}
|
|
@@ -689,7 +692,7 @@ const Dropdown = class {
|
|
|
689
692
|
*/
|
|
690
693
|
async setFocus() {
|
|
691
694
|
if (this.nativeEl && !this.valueUtil.isDisabled()) {
|
|
692
|
-
await
|
|
695
|
+
await helpers.waitAfterIdleCallback();
|
|
693
696
|
this.nativeEl.focus();
|
|
694
697
|
}
|
|
695
698
|
}
|
|
@@ -746,13 +749,13 @@ const Dropdown = class {
|
|
|
746
749
|
const hasTheme = this.theme !== '';
|
|
747
750
|
const theme = `theme-${this.theme}`;
|
|
748
751
|
const focused = this.theme === 'purple' ? this.hasFocus && this.isKeyboardMode : this.hasFocus;
|
|
749
|
-
return (index.h(index.Host, { key: '
|
|
752
|
+
return (index.h(index.Host, { key: 'bbe24bccd7ec89cadd6928abbe42bc80a4838242', class: Object.assign({}, block.class()), tabindex: "-1", id: `${this.inputId}` }, index.h("div", { key: 'c4affbe59c4d38b281b28edef4510bf7f3432485', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('root').class()), block.element('root').modifier('focused').class(focused)), block.element('root').modifier('invalid').class(this.invalid)), block.element('root').modifier('disabled').class(this.valueUtil.isDisabled())), block.element('root').modifier('autofill').class(this.isAutoFilled)), block.element('root').modifier(size).class(hasSize)), block.element('root').modifier(theme).class(hasTheme)), block
|
|
750
753
|
.element('root')
|
|
751
754
|
.modifier(theme + '-filled')
|
|
752
755
|
.class(isFilled && hasTheme)), block
|
|
753
756
|
.element('root')
|
|
754
757
|
.modifier(theme + '-expanded')
|
|
755
|
-
.class(this.isExpanded && hasTheme)), "data-test": "bal-dropdown-trigger", onClick: ev => this.eventsUtil.handleClick(ev) }, index.h("span", { key: '
|
|
758
|
+
.class(this.isExpanded && hasTheme)), "data-test": "bal-dropdown-trigger", onClick: ev => this.eventsUtil.handleClick(ev) }, index.h("span", { key: 'f99ffede973516ae00abca3596a2a60ed50d0cbe', class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('root').element('content').class()), block.element('root').element('content').modifier('disabled').class(this.valueUtil.isDisabled())), block.element('root').element('content').modifier('placeholder').class(!this.valueUtil.isFilled())), block.element('root').element('content').modifier(size).class(hasSize)) }, index.h(DropdownValue, { key: '50dd5893ff6cf84616d662c04d4a247c5ea4b5c2', filled: this.valueUtil.isFilled(), inlineLabel: this.inlineLabel, chips: this.chips, placeholder: this.placeholder, choices: this.choices, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, onRemoveChip: option => this.valueUtil.removeOption(option) })), index.h(DropdownInput, { key: 'ea346543eb9cea2bb66d6a9c7005bbf53b722aaf', inputId: this.inputId, httpFormSubmit: this.httpFormSubmit, ariaForm: this.ariaForm, rawValue: this.rawValue, autocomplete: this.autocomplete, required: this.required, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, expanded: this.isExpanded, invalid: this.invalid, language: this.language, inputLabel: this.inputLabel, inheritedAttributes: this.inheritedAttributes, refInputEl: el => (this.nativeEl = el), onChange: ev => this.handleAutoFill(ev), onFocus: ev => this.eventsUtil.handleFocus(ev), onBlur: ev => this.eventsUtil.handleBlur(ev), onKeyDown: ev => this.handleKeyDown(ev) }), index.h(DropdownNativeSelect, { key: 'b97890097df0ee23ba9b87fff0da40fc2ebdf7c6', name: this.name, httpFormSubmit: this.httpFormSubmit, multiple: this.multiple, required: this.required, disabled: this.valueUtil.isDisabled(), rawValue: this.rawValue, refSelectEl: el => (this.selectEl = el) }), index.h(DropdownIcon, { key: 'ef7da17a95ef45376fd43f8d5208fecf2b2c4e4f', icon: this.icon, size: this.size, theme: this.theme, language: this.language, loading: this.loading, clearable: this.clearable, invalid: this.invalid, expanded: this.isExpanded, filled: isFilled, disabled: this.valueUtil.isDisabled() })), index.h(DropdownOptionList, { key: '9d7912639575048cecd19745c6d5a463499544ca', inputId: this.inputId, block: this.inputId, filter: this.filter, required: this.required, isExpanded: this.isExpanded, isDisabled: this.valueUtil.isDisabled(), hasPropOptions: this.optionUtil.hasPropOptions(), multiple: this.multiple, contentHeight: this.contentHeight, rawOptions: this.rawOptions, refPanelEl: el => (this.panelEl = el), refListEl: el => (this.listEl = el) }, index.h("slot", { key: '32b6a77941ec1b9eae24bd761244ecb726194aa5' }))));
|
|
756
759
|
}
|
|
757
760
|
get el() { return index.getElement(this); }
|
|
758
761
|
static get watchers() { return {
|
|
@@ -761,7 +764,7 @@ const Dropdown = class {
|
|
|
761
764
|
}; }
|
|
762
765
|
};
|
|
763
766
|
tslib_es6.__decorate([
|
|
764
|
-
|
|
767
|
+
log.Logger('bal-dropdown'),
|
|
765
768
|
tslib_es6.__metadata("design:type", Function),
|
|
766
769
|
tslib_es6.__metadata("design:paramtypes", [Function]),
|
|
767
770
|
tslib_es6.__metadata("design:returntype", void 0)
|
|
@@ -775,4 +778,595 @@ tslib_es6.__decorate([
|
|
|
775
778
|
let balDropdownIds = 0;
|
|
776
779
|
Dropdown.style = balDropdownCss;
|
|
777
780
|
|
|
781
|
+
const balOptionCss = ":root{--bal-option-padding-x:var(--bal-space-small);--bal-option-min-height:1.5rem;--bal-option-background:var(--bal-color-white);--bal-option-background-hovered:var(--bal-color-grey-3);--bal-option-background-selected:var(--bal-color-primary-1);--bal-option-background-selected-hovered:#dddfeb;--bal-option-background-invalid:var(--bal-color-danger-1);--bal-option-background-invalid-hovered:#fbe0de;--bal-option-border-width:var(--bal-border-width-normal);--bal-option-border-color:var(--bal-color-grey-2);--bal-option-font-family:var(--bal-font-family-text);--bal-option-font-weight:var(--bal-font-weight-regular);--bal-option-line-height:1.125rem;--bal-option-text-hovered:var(--bal-color-text-primary-hovered);--bal-option-text-pressed:var(--bal-color-text-primary-pressed);--bal-option-text-disabled:var(--bal-color-text-grey-light)}.bal-option{font-size:16px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:block;list-style:none;cursor:pointer;border-bottom-width:var(--bal-option-border-width);border-bottom-color:var(--bal-option-border-color);border-bottom-style:solid;background:var(--bal-option-background);padding-left:var(--bal-option-padding-x);padding-right:var(--bal-option-padding-x);min-height:var(--bal-option-min-height)}.bal-option>bal-stack{min-height:var(--bal-option-min-height)}.bal-option:last-child{border-bottom:none}.bal-option::-moz-focus-inner{border:none}.bal-option--hidden{display:none;visibility:hidden}.bal-option__inner{font-family:var(--bal-option-font-family);font-weight:var(--bal-option-font-weight);line-height:var(--bal-option-line-height);word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-ms-flex:1;flex:1}.bal-option__inner--multiline{white-space:normal}.bal-option--focused{background:var(--bal-option-background-hovered)}@media (hover: hover)and (pointer: fine){.bal-option:hover{background:var(--bal-option-background-hovered);color:var(--bal-option-text-hovered)}}.bal-option:active{background:var(--bal-option-background-hovered);color:var(--bal-option-text-pressed)}.bal-option--selected{background:var(--bal-option-background-selected)}@media (hover: hover)and (pointer: fine){.bal-option--selected:hover{background:var(--bal-option-background-selected-hovered)}}.bal-option--selected:active{background:var(--bal-option-background-selected-hovered)}.bal-option--selected .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--selected.bal-option--focused{background:var(--bal-option-background-selected-hovered)}.bal-option--selected.bal-option--focused .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--invalid{background:var(--bal-option-background-invalid)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover{background:var(--bal-option-background-invalid-hovered)}}.bal-option--invalid:active{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid.bal-option--focused{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid .bal-option__inner{color:var(--bal-color-text-danger-hovered)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover .bal-option__inner{color:var(--bal-color-text-danger-hovered)}}.bal-option--invalid:active .bal-option__inner{color:var(--bal-color-text-danger-pressed)}.bal-option--disabled,.bal-option--disabled.bal-option--focused{background:var(--bal-option-background) !important;color:var(--bal-option-text-disabled) !important;cursor:default !important}.bal-option--disabled:hover,.bal-option--disabled.bal-option--focused:hover{background:var(--bal-option-background) !important}.bal-option{--bal-check-size:1.25rem}";
|
|
782
|
+
|
|
783
|
+
const Option = class {
|
|
784
|
+
constructor(hostRef) {
|
|
785
|
+
index.registerInstance(this, hostRef);
|
|
786
|
+
this.balOptionChange = index.createEvent(this, "balOptionChange");
|
|
787
|
+
this.balOptionFocus = index.createEvent(this, "balOptionFocus");
|
|
788
|
+
this.inputId = `bal-option-${balOptionIds++}`;
|
|
789
|
+
this.checkbox = false;
|
|
790
|
+
this.interactionState = elementStates_decorator.BalElementStateListener.DefaultState;
|
|
791
|
+
/**
|
|
792
|
+
* PUBLIC PROPERTY API
|
|
793
|
+
* ------------------------------------------------------
|
|
794
|
+
*/
|
|
795
|
+
/**
|
|
796
|
+
* Label will be shown in the input element when it got selected
|
|
797
|
+
*/
|
|
798
|
+
this.label = '';
|
|
799
|
+
/**
|
|
800
|
+
* The value of the select option. This value will be returned by the parent `<bal-select>` element.
|
|
801
|
+
*/
|
|
802
|
+
this.value = '';
|
|
803
|
+
/**
|
|
804
|
+
* If `true`, the user cannot interact with the option.
|
|
805
|
+
*/
|
|
806
|
+
this.disabled = false;
|
|
807
|
+
/**
|
|
808
|
+
* If `true`, the option can present in more than one line.
|
|
809
|
+
*/
|
|
810
|
+
this.multiline = false;
|
|
811
|
+
/**
|
|
812
|
+
* If `true`, the option is shown in red.
|
|
813
|
+
*/
|
|
814
|
+
this.invalid = false;
|
|
815
|
+
/**
|
|
816
|
+
* If `true`, the option is selected.
|
|
817
|
+
*/
|
|
818
|
+
this.selected = false;
|
|
819
|
+
/**
|
|
820
|
+
* If `true`, the option is focused.
|
|
821
|
+
*/
|
|
822
|
+
this.focused = false;
|
|
823
|
+
/**
|
|
824
|
+
* If `true`, the option is hidden.
|
|
825
|
+
*/
|
|
826
|
+
this.hidden = false;
|
|
827
|
+
/**
|
|
828
|
+
* EVENT BINDING
|
|
829
|
+
* ------------------------------------------------------
|
|
830
|
+
*/
|
|
831
|
+
this.onClick = (ev) => {
|
|
832
|
+
const listEl = this.el.closest('bal-option-list');
|
|
833
|
+
if (this.disabled || (listEl && listEl.disabled)) {
|
|
834
|
+
formInput.stopEventBubbling(ev);
|
|
835
|
+
}
|
|
836
|
+
else {
|
|
837
|
+
if (listEl && listEl.required && !listEl.multiple) {
|
|
838
|
+
if (!this.selected) {
|
|
839
|
+
this.select(true);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
else {
|
|
843
|
+
this.select(!this.selected);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
createLogger(log) {
|
|
849
|
+
this.log = log;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* LIFECYCLE
|
|
853
|
+
* ------------------------------------------------------
|
|
854
|
+
*/
|
|
855
|
+
componentWillRender() {
|
|
856
|
+
if (this.el) {
|
|
857
|
+
const optionListEl = this.el.closest('bal-option-list');
|
|
858
|
+
if (optionListEl) {
|
|
859
|
+
this.checkbox = !!optionListEl.multiple;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* LISTENERS
|
|
865
|
+
* ------------------------------------------------------
|
|
866
|
+
*/
|
|
867
|
+
listenToMouseEnter() {
|
|
868
|
+
const { label, value, selected, disabled, hidden } = this;
|
|
869
|
+
if (!hidden && !disabled) {
|
|
870
|
+
this.balOptionFocus.emit({ label, value, selected });
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
elementStateListener(info) {
|
|
874
|
+
this.interactionChildElements.forEach(element => {
|
|
875
|
+
element.hovered = info.hovered;
|
|
876
|
+
element.pressed = info.pressed;
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* PUBLIC METHODS
|
|
881
|
+
* ------------------------------------------------------
|
|
882
|
+
*/
|
|
883
|
+
/**
|
|
884
|
+
* Selects or deselects the option and informs other components
|
|
885
|
+
*/
|
|
886
|
+
async select(selected = true) {
|
|
887
|
+
this.selected = selected;
|
|
888
|
+
const { label, value } = this;
|
|
889
|
+
this.balOptionChange.emit({ label, value, selected });
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* PRIVATE METHODS
|
|
893
|
+
* ------------------------------------------------------
|
|
894
|
+
*/
|
|
895
|
+
get interactionChildElements() {
|
|
896
|
+
return Array.from(this.el.querySelectorAll('bal-check'));
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* RENDER
|
|
900
|
+
* ------------------------------------------------------
|
|
901
|
+
*/
|
|
902
|
+
render() {
|
|
903
|
+
const block = bem.BEM.block('option');
|
|
904
|
+
return (index.h(index.Host, { key: '23668a24757ff9d58d8bb3f657bbe500e1a8de4a', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('checkbox').class(this.checkbox)), block.modifier('focused').class(this.focused)), block.modifier('invalid').class(this.invalid)), block.modifier('selected').class(this.selected)), block.modifier('disabled').class(this.disabled)), block.modifier('hidden').class(this.hidden)), role: "option", id: this.inputId, "data-value": this.value, "data-label": this.label, "aria-label": this.label, "aria-hidden": aria.ariaBooleanToString(this.hidden), "aria-selected": aria.ariaBooleanToString(this.selected), "aria-checked": aria.ariaBooleanToString(this.selected), "aria-disabled": aria.ariaBooleanToString(this.disabled), "aria-invalid": aria.ariaBooleanToString(this.invalid), tabIndex: -1, onClick: this.onClick }, index.h("bal-stack", { key: 'e82b712abed142e6a38b859b35593f54697693a6', py: "small", space: "x-small" }, this.checkbox ? (index.h("bal-check", { checked: this.selected, disabled: this.disabled, invalid: this.invalid, hovered: this.interactionState.hovered, pressed: this.interactionState.pressed, tabindex: -1 })) : (''), index.h("div", { key: '6c853f9670f7238a6b05c7ea9999a7d759c410f3', class: Object.assign(Object.assign({}, block.element('inner').class()), block.element('inner').modifier('multiline').class(this.multiline)) }, index.h("slot", { key: '537b908ffc4b406ae6a60bf34003c8a67e194984' })), this.selected && !this.checkbox ? (index.h("bal-icon", { name: "check", size: "small", color: this.disabled ? 'grey' : this.invalid ? 'danger' : 'primary' })) : (''))));
|
|
905
|
+
}
|
|
906
|
+
get el() { return index.getElement(this); }
|
|
907
|
+
};
|
|
908
|
+
tslib_es6.__decorate([
|
|
909
|
+
log.Logger('bal-option'),
|
|
910
|
+
tslib_es6.__metadata("design:type", Function),
|
|
911
|
+
tslib_es6.__metadata("design:paramtypes", [Function]),
|
|
912
|
+
tslib_es6.__metadata("design:returntype", void 0)
|
|
913
|
+
], Option.prototype, "createLogger", null);
|
|
914
|
+
tslib_es6.__decorate([
|
|
915
|
+
elementStates_decorator.ListenToElementStates(),
|
|
916
|
+
tslib_es6.__metadata("design:type", Function),
|
|
917
|
+
tslib_es6.__metadata("design:paramtypes", [Object]),
|
|
918
|
+
tslib_es6.__metadata("design:returntype", void 0)
|
|
919
|
+
], Option.prototype, "elementStateListener", null);
|
|
920
|
+
let balOptionIds = 0;
|
|
921
|
+
Option.style = balOptionCss;
|
|
922
|
+
|
|
923
|
+
const balOptionListCss = ".bal-option-list{display:block;position:relative;width:100%;list-style:none;margin:0;outline:0;max-height:var(--bal-option-list-max-height);border-radius:var(--bal-radius-normal);overflow:hidden auto}";
|
|
924
|
+
|
|
925
|
+
const OptionList = class {
|
|
926
|
+
constructor(hostRef) {
|
|
927
|
+
index.registerInstance(this, hostRef);
|
|
928
|
+
this.inputId = `bal-option-list-${balOptionListIds++}`;
|
|
929
|
+
this.inheritAttributes = {};
|
|
930
|
+
this.ariaForm = form.defaultBalAriaForm;
|
|
931
|
+
/**
|
|
932
|
+
* PUBLIC PROPERTY API
|
|
933
|
+
* ------------------------------------------------------
|
|
934
|
+
*/
|
|
935
|
+
/**
|
|
936
|
+
* If `true` the list supports multiple selections
|
|
937
|
+
*/
|
|
938
|
+
this.multiple = false;
|
|
939
|
+
/**
|
|
940
|
+
* If `true`, the user cannot interact with the option.
|
|
941
|
+
*/
|
|
942
|
+
this.disabled = false;
|
|
943
|
+
/**
|
|
944
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
945
|
+
*/
|
|
946
|
+
this.required = false;
|
|
947
|
+
/**
|
|
948
|
+
* Defines the focused option with his index value
|
|
949
|
+
*/
|
|
950
|
+
this.focusIndex = -1;
|
|
951
|
+
/**
|
|
952
|
+
* Defines the filter logic of the list
|
|
953
|
+
*/
|
|
954
|
+
this.filter = 'includes';
|
|
955
|
+
/**
|
|
956
|
+
* Defines the max height of the list element
|
|
957
|
+
*/
|
|
958
|
+
this.contentHeight = 262;
|
|
959
|
+
}
|
|
960
|
+
createLogger(log) {
|
|
961
|
+
this.log = log;
|
|
962
|
+
}
|
|
963
|
+
contentHeightChanged(value) {
|
|
964
|
+
if (value === undefined) {
|
|
965
|
+
this.el.style.removeProperty('--bal-option-list-max-height');
|
|
966
|
+
}
|
|
967
|
+
else {
|
|
968
|
+
this.el.style.setProperty('--bal-option-list-max-height', `${value}px`);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* LIFECYCLE
|
|
973
|
+
* ------------------------------------------------------
|
|
974
|
+
*/
|
|
975
|
+
componentDidLoad() {
|
|
976
|
+
this.contentHeightChanged(this.contentHeight);
|
|
977
|
+
}
|
|
978
|
+
componentWillRender() {
|
|
979
|
+
this.inheritAttributes = attributes.inheritAttributes(this.el, ['aria-multiselectable', 'aria-labelledby']);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* LISTENERS
|
|
983
|
+
* ------------------------------------------------------
|
|
984
|
+
*/
|
|
985
|
+
listenToMouseEnter(ev) {
|
|
986
|
+
const options = this.options;
|
|
987
|
+
const indexToFocus = this.getOptionIndex(options, ev.detail.value);
|
|
988
|
+
if (indexToFocus !== undefined) {
|
|
989
|
+
this.updateFocus(options, indexToFocus);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
listenToOptionChange({ detail }) {
|
|
993
|
+
if (!this.multiple) {
|
|
994
|
+
this.options.filter(option => option.value !== detail.value).forEach(option => (option.selected = false));
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* PUBLIC METHODS
|
|
999
|
+
* ------------------------------------------------------
|
|
1000
|
+
*/
|
|
1001
|
+
/**
|
|
1002
|
+
* Focus the selected visible option in the list, if no option is selected it selects the first one
|
|
1003
|
+
*/
|
|
1004
|
+
async focusSelected() {
|
|
1005
|
+
const options = this.options;
|
|
1006
|
+
const indexToFocus = this.getSelectedOptionIndex(options);
|
|
1007
|
+
if (indexToFocus > 0) {
|
|
1008
|
+
this.updateFocus(options, indexToFocus);
|
|
1009
|
+
await helpers.waitAfterFramePaint();
|
|
1010
|
+
return indexToFocus;
|
|
1011
|
+
}
|
|
1012
|
+
else {
|
|
1013
|
+
return await this.focusFirst();
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Focus the first visible option in the list
|
|
1018
|
+
* @returns focusIndex
|
|
1019
|
+
*/
|
|
1020
|
+
async focusFirst() {
|
|
1021
|
+
const options = this.options;
|
|
1022
|
+
const indexToFocus = this.getFirstOptionIndex(options);
|
|
1023
|
+
this.updateFocus(options, indexToFocus);
|
|
1024
|
+
const option = options[indexToFocus];
|
|
1025
|
+
this.updateScrollTopPosition(option);
|
|
1026
|
+
await helpers.waitAfterFramePaint();
|
|
1027
|
+
return indexToFocus;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Focus the last visible option in the list
|
|
1031
|
+
* @returns focusIndex
|
|
1032
|
+
*/
|
|
1033
|
+
async focusLast() {
|
|
1034
|
+
const options = this.options;
|
|
1035
|
+
const indexToFocus = this.getLastOptionIndex(options);
|
|
1036
|
+
this.updateFocus(options, indexToFocus);
|
|
1037
|
+
const option = options[indexToFocus];
|
|
1038
|
+
this.updateScrollBottomPosition(option);
|
|
1039
|
+
await helpers.waitAfterFramePaint();
|
|
1040
|
+
return indexToFocus;
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Focus the next visible option in the list
|
|
1044
|
+
* @returns focusIndex
|
|
1045
|
+
*/
|
|
1046
|
+
async focusNext() {
|
|
1047
|
+
const options = this.options;
|
|
1048
|
+
const indexToFocus = this.getNextOptionIndex(options);
|
|
1049
|
+
this.updateFocus(options, indexToFocus);
|
|
1050
|
+
const option = options[indexToFocus];
|
|
1051
|
+
this.updateScrollBottomPosition(option);
|
|
1052
|
+
await helpers.waitAfterFramePaint();
|
|
1053
|
+
return indexToFocus;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Focus the previous visible option in the list
|
|
1057
|
+
* @returns focusIndex
|
|
1058
|
+
*/
|
|
1059
|
+
async focusPrevious() {
|
|
1060
|
+
const options = this.options;
|
|
1061
|
+
const indexToFocus = this.getPreviousOptionIndex(options);
|
|
1062
|
+
this.updateFocus(options, indexToFocus);
|
|
1063
|
+
const option = options[indexToFocus];
|
|
1064
|
+
this.updateScrollTopPosition(option);
|
|
1065
|
+
await helpers.waitAfterFramePaint();
|
|
1066
|
+
return indexToFocus;
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Focus the option with the label that starts with the search property
|
|
1070
|
+
* @returns focusIndex
|
|
1071
|
+
*/
|
|
1072
|
+
async focusByLabel(search, config) {
|
|
1073
|
+
const options = this.options;
|
|
1074
|
+
const indexToFocus = this.getOptionIndexByLabel(options, search);
|
|
1075
|
+
this.updateFocus(options, indexToFocus);
|
|
1076
|
+
const option = options[indexToFocus];
|
|
1077
|
+
this.updateScrollTopPosition(option);
|
|
1078
|
+
await helpers.waitAfterFramePaint();
|
|
1079
|
+
if (config.select) {
|
|
1080
|
+
await option.select();
|
|
1081
|
+
}
|
|
1082
|
+
return indexToFocus;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Filter the options by the given filter property and hides options
|
|
1086
|
+
* @returns focusIndex
|
|
1087
|
+
*/
|
|
1088
|
+
async filterByContent(search) {
|
|
1089
|
+
const options = this.allOptions;
|
|
1090
|
+
this.filterOptions(options, search);
|
|
1091
|
+
await helpers.waitAfterFramePaint();
|
|
1092
|
+
return this.focusFirst();
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Shows or hides all options
|
|
1096
|
+
*/
|
|
1097
|
+
async resetHidden(hidden = false) {
|
|
1098
|
+
this.options.forEach(option => (option.hidden = hidden));
|
|
1099
|
+
await helpers.waitAfterFramePaint();
|
|
1100
|
+
this.resetFocus();
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Selects or deselects all options
|
|
1104
|
+
*/
|
|
1105
|
+
async resetSelected(selected = false) {
|
|
1106
|
+
this.options.forEach(option => (option.selected = selected));
|
|
1107
|
+
await helpers.waitAfterFramePaint();
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Updates options
|
|
1111
|
+
*/
|
|
1112
|
+
async updateSelected(values) {
|
|
1113
|
+
this.options.forEach(option => (option.selected = values.includes(option.value)));
|
|
1114
|
+
await helpers.waitAfterFramePaint();
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Resets the focus index to pristine and scrolls to the top of the list
|
|
1118
|
+
*/
|
|
1119
|
+
async resetFocus() {
|
|
1120
|
+
const options = this.options;
|
|
1121
|
+
const indexToFocus = -1;
|
|
1122
|
+
this.updateFocus(options, indexToFocus);
|
|
1123
|
+
this.scrollTo(0);
|
|
1124
|
+
await helpers.waitAfterFramePaint();
|
|
1125
|
+
return indexToFocus;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Returns a list of option values
|
|
1129
|
+
*/
|
|
1130
|
+
async getSelectedValues() {
|
|
1131
|
+
const options = this.options;
|
|
1132
|
+
return options.filter(option => option.selected).map(option => option.value);
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Returns a list of option labels
|
|
1136
|
+
*/
|
|
1137
|
+
async getSelectedOptions(values) {
|
|
1138
|
+
const options = this.options;
|
|
1139
|
+
if (values && values.length > 0) {
|
|
1140
|
+
return options.filter(option => values.includes(option.value)).map(option => option);
|
|
1141
|
+
}
|
|
1142
|
+
return options.filter(option => option.selected).map(option => option);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Returns a list of options
|
|
1146
|
+
*/
|
|
1147
|
+
async getValues() {
|
|
1148
|
+
return this.options.map(option => option.value);
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* Returns a list of options
|
|
1152
|
+
*/
|
|
1153
|
+
async getLabels() {
|
|
1154
|
+
return this.options.map(option => option.label);
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Returns a list of accessible options
|
|
1158
|
+
*/
|
|
1159
|
+
async getOptions() {
|
|
1160
|
+
return this.options.filter(o => !o.disabled || !o.hidden);
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Selects the option with the current focus
|
|
1164
|
+
*/
|
|
1165
|
+
async selectByFocus() {
|
|
1166
|
+
const options = this.options;
|
|
1167
|
+
const option = options[this.focusIndex];
|
|
1168
|
+
if (option) {
|
|
1169
|
+
if (this.multiple) {
|
|
1170
|
+
option.select(!option.selected);
|
|
1171
|
+
}
|
|
1172
|
+
else {
|
|
1173
|
+
option.select(true);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* @internal
|
|
1179
|
+
*/
|
|
1180
|
+
async setAriaForm(ariaForm) {
|
|
1181
|
+
this.ariaForm = Object.assign({}, ariaForm);
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* GETTERS
|
|
1185
|
+
* ------------------------------------------------------
|
|
1186
|
+
*/
|
|
1187
|
+
get options() {
|
|
1188
|
+
return Array.from(this.el.querySelectorAll('bal-option')).filter(o => !o.hidden);
|
|
1189
|
+
}
|
|
1190
|
+
get allOptions() {
|
|
1191
|
+
return Array.from(this.el.querySelectorAll('bal-option'));
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* PRIVATE METHODS
|
|
1195
|
+
* ------------------------------------------------------
|
|
1196
|
+
*/
|
|
1197
|
+
filterOptions(options, search) {
|
|
1198
|
+
const filteredOptions = [];
|
|
1199
|
+
const filter = this.filter === 'includes' ? utils.includes : utils.startsWith;
|
|
1200
|
+
for (let index = 0; index < options.length; index++) {
|
|
1201
|
+
const option = options[index];
|
|
1202
|
+
const content = option.textContent || '';
|
|
1203
|
+
if (filter(content, search)) {
|
|
1204
|
+
filteredOptions.push(option);
|
|
1205
|
+
option.hidden = false;
|
|
1206
|
+
}
|
|
1207
|
+
else {
|
|
1208
|
+
option.hidden = true;
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
return filteredOptions;
|
|
1212
|
+
}
|
|
1213
|
+
isOptionVisible(option) {
|
|
1214
|
+
const visibleHeight = this.el.clientHeight;
|
|
1215
|
+
const topPosition = this.el.scrollTop;
|
|
1216
|
+
const bottomPosition = topPosition + visibleHeight;
|
|
1217
|
+
const isVisible = topPosition <= option.offsetTop && option.offsetTop + option.clientHeight <= bottomPosition;
|
|
1218
|
+
return isVisible;
|
|
1219
|
+
}
|
|
1220
|
+
updateScrollTopPosition(option) {
|
|
1221
|
+
if (option) {
|
|
1222
|
+
const isVisible = this.isOptionVisible(option);
|
|
1223
|
+
if (!isVisible) {
|
|
1224
|
+
this.scrollTo(this.getScrollTopForTopPosition(option));
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
updateScrollBottomPosition(option) {
|
|
1229
|
+
if (option) {
|
|
1230
|
+
const isVisible = this.isOptionVisible(option);
|
|
1231
|
+
if (!isVisible) {
|
|
1232
|
+
this.scrollTo(this.getScrollTopForBottomPosition(option));
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
getScrollTopForTopPosition(option) {
|
|
1237
|
+
const topPosition = option.offsetTop;
|
|
1238
|
+
const scrollTop = topPosition;
|
|
1239
|
+
if (scrollTop < 0) {
|
|
1240
|
+
return 0;
|
|
1241
|
+
}
|
|
1242
|
+
return scrollTop;
|
|
1243
|
+
}
|
|
1244
|
+
getScrollTopForBottomPosition(option) {
|
|
1245
|
+
const visibleHeight = this.el.clientHeight;
|
|
1246
|
+
const bottomPosition = option.offsetTop + option.clientHeight;
|
|
1247
|
+
const scrollTop = bottomPosition - visibleHeight;
|
|
1248
|
+
if (scrollTop < 0) {
|
|
1249
|
+
return 0;
|
|
1250
|
+
}
|
|
1251
|
+
return scrollTop;
|
|
1252
|
+
}
|
|
1253
|
+
async scrollTo(scrollTop) {
|
|
1254
|
+
if (scrollTop !== undefined && scrollTop !== null) {
|
|
1255
|
+
if (this.focusRaf !== undefined) {
|
|
1256
|
+
cancelAnimationFrame(this.focusRaf);
|
|
1257
|
+
}
|
|
1258
|
+
this.focusRaf = helpers.raf(async () => {
|
|
1259
|
+
this.el.scrollTop = scrollTop;
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
updateFocus(options, indexToFocus) {
|
|
1264
|
+
this.focusIndex = indexToFocus;
|
|
1265
|
+
for (let index = 0; index < options.length; index++) {
|
|
1266
|
+
const option = options[index];
|
|
1267
|
+
option.focused = index === indexToFocus;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
getOptionIndex(options, value) {
|
|
1271
|
+
for (let index = 0; index < options.length; index++) {
|
|
1272
|
+
const option = options[index];
|
|
1273
|
+
if (option.value === value) {
|
|
1274
|
+
return index;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
return undefined;
|
|
1278
|
+
}
|
|
1279
|
+
getSelectedOptionIndex(options) {
|
|
1280
|
+
for (let index = 0; index < options.length; index++) {
|
|
1281
|
+
const option = options[index];
|
|
1282
|
+
if (option.selected && !option.hidden) {
|
|
1283
|
+
return index;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
return this.focusIndex;
|
|
1287
|
+
}
|
|
1288
|
+
getFirstOptionIndex(options) {
|
|
1289
|
+
for (let index = 0; index < options.length; index++) {
|
|
1290
|
+
const option = options[index];
|
|
1291
|
+
if (!option.disabled && !option.hidden) {
|
|
1292
|
+
return index;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
return this.focusIndex;
|
|
1296
|
+
}
|
|
1297
|
+
getNextOptionIndex(options, index = this.focusIndex) {
|
|
1298
|
+
if (index < 0) {
|
|
1299
|
+
return this.getFirstOptionIndex(options);
|
|
1300
|
+
}
|
|
1301
|
+
const lastIndex = this.getLength(options);
|
|
1302
|
+
let newIndex = index;
|
|
1303
|
+
if (index < lastIndex) {
|
|
1304
|
+
newIndex = index + 1;
|
|
1305
|
+
if (options[newIndex].disabled) {
|
|
1306
|
+
return this.getNextOptionIndex(options, newIndex);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
return newIndex;
|
|
1310
|
+
}
|
|
1311
|
+
getPreviousOptionIndex(options, index = this.focusIndex) {
|
|
1312
|
+
const firstIndex = this.getFirstOptionIndex(options);
|
|
1313
|
+
if (index <= firstIndex) {
|
|
1314
|
+
return firstIndex;
|
|
1315
|
+
}
|
|
1316
|
+
let newIndex = index;
|
|
1317
|
+
newIndex = index - 1;
|
|
1318
|
+
if (options[newIndex].disabled) {
|
|
1319
|
+
return this.getPreviousOptionIndex(options, newIndex);
|
|
1320
|
+
}
|
|
1321
|
+
return newIndex;
|
|
1322
|
+
}
|
|
1323
|
+
getLastOptionIndex(options) {
|
|
1324
|
+
for (let index = options.length - 1; index >= 0; index--) {
|
|
1325
|
+
const option = options[index];
|
|
1326
|
+
if (!option.disabled) {
|
|
1327
|
+
return index;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
return this.focusIndex;
|
|
1331
|
+
}
|
|
1332
|
+
getOptionIndexByLabel(options, label) {
|
|
1333
|
+
if (label === undefined || label === '') {
|
|
1334
|
+
return this.focusIndex;
|
|
1335
|
+
}
|
|
1336
|
+
const option = options.find(o => utils.startsWith(o.label || '', label));
|
|
1337
|
+
if (!index$1.isNil(option) && option.id) {
|
|
1338
|
+
return options.indexOf(option);
|
|
1339
|
+
}
|
|
1340
|
+
return this.focusIndex;
|
|
1341
|
+
}
|
|
1342
|
+
getLength(options) {
|
|
1343
|
+
const indexes = options.map((option, index) => (option.disabled ? 0 : index));
|
|
1344
|
+
const length = Math.max(...indexes);
|
|
1345
|
+
return length;
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* RENDER
|
|
1349
|
+
* ------------------------------------------------------
|
|
1350
|
+
*/
|
|
1351
|
+
render() {
|
|
1352
|
+
const block = bem.BEM.block('option-list');
|
|
1353
|
+
const labelledby = this.labelledby || this.ariaForm.labelId;
|
|
1354
|
+
return (index.h(index.Host, { key: '5b3158027e628a55ea8555e5eb6593cc9d81c7e2', class: Object.assign({}, block.class()), id: this.inputId }, index.h("div", Object.assign({ key: '679ffd4a00889cc9f7a2f886695f547a0c5f9fd7', role: "listbox", "aria-labelledby": labelledby, "aria-disabled": aria.ariaBooleanToString(this.disabled), class: Object.assign({}, block.element('container').class()) }, this.inheritAttributes), index.h("slot", { key: '514c3009d4e75d62e69ffb60f832bbf70644a19d' }))));
|
|
1355
|
+
}
|
|
1356
|
+
get el() { return index.getElement(this); }
|
|
1357
|
+
static get watchers() { return {
|
|
1358
|
+
"contentHeight": ["contentHeightChanged"]
|
|
1359
|
+
}; }
|
|
1360
|
+
};
|
|
1361
|
+
tslib_es6.__decorate([
|
|
1362
|
+
log.Logger('bal-option-list'),
|
|
1363
|
+
tslib_es6.__metadata("design:type", Function),
|
|
1364
|
+
tslib_es6.__metadata("design:paramtypes", [Function]),
|
|
1365
|
+
tslib_es6.__metadata("design:returntype", void 0)
|
|
1366
|
+
], OptionList.prototype, "createLogger", null);
|
|
1367
|
+
let balOptionListIds = 0;
|
|
1368
|
+
OptionList.style = balOptionListCss;
|
|
1369
|
+
|
|
778
1370
|
exports.bal_dropdown = Dropdown;
|
|
1371
|
+
exports.bal_option = Option;
|
|
1372
|
+
exports.bal_option_list = OptionList;
|