@baloise/ds-core 16.8.0-nightly.20241128 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/all.d.ts +0 -2
- package/components/all.js +0 -3
- package/components/bal-app.js +91 -1
- package/components/bal-button2.js +9 -1
- package/components/bal-carousel2.js +15 -2
- package/components/bal-checkbox-group.js +26 -1
- package/components/bal-checkbox2.js +15 -2
- package/components/bal-date.js +37 -8
- package/components/bal-dropdown2.js +41 -21
- package/components/bal-file-upload.js +12 -5
- package/components/bal-input-date2.js +16 -3
- package/components/bal-input-slider.js +18 -4
- package/components/bal-input-stepper.js +17 -4
- package/components/bal-input.js +15 -2
- package/components/bal-modal.js +32 -6
- package/components/bal-nav-meta-bar2.js +9 -2
- package/components/bal-nav.js +16 -3
- package/components/bal-number-input.js +15 -2
- package/components/bal-option-list.js +15 -2
- package/components/bal-option2.js +9 -2
- package/components/bal-popover2.js +38 -13
- package/components/bal-popup.js +45 -10
- package/components/bal-radio-group.js +32 -1
- package/components/bal-radio2.js +9 -2
- package/components/bal-segment.js +15 -2
- package/components/bal-select2.js +25 -6
- package/components/bal-tabs2.js +22 -3
- package/components/bal-textarea.js +16 -2
- package/components/bal-time-input.js +15 -2
- package/components/bal-tooltip.js +13 -9
- package/components/floating-ui.dom.esm.js +493 -1
- package/components/floating-ui.js +26 -0
- package/components/index.js +289 -5
- package/components/listen.js +58 -0
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-c4ca01309d.entry.js → p-01cdb12b31.entry.js} +1 -1
- package/dist/baloise-design-system/p-0215ccdca9.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-a56e373833.system.entry.js → p-063f4fc96f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-075bcd8c56.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0935940ea0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-0c51c999.js +1 -0
- package/dist/baloise-design-system/{p-da2562dec4.entry.js → p-0dc26bfe1f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5528bb7c78.entry.js → p-0ede0fa9b2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0c18fb22f4.entry.js → p-10151a65a4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2e8c85c8.system.js → p-10985d5e.system.js} +1 -1
- package/dist/baloise-design-system/{p-58ce3f44f5.system.entry.js → p-12701030b2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a0777dfaaa.entry.js → p-1400a7e9cc.entry.js} +1 -1
- package/dist/baloise-design-system/{p-63ad3fe86c.system.entry.js → p-14eef425da.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2119dc974a.entry.js → p-16ff8c81bf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9f5ab1c77f.system.entry.js → p-17c73b8f48.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-91555f7c0f.system.entry.js → p-1e344a8c28.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c58043b9.system.js → p-1e688639.system.js} +1 -1
- package/dist/baloise-design-system/p-218f416b89.entry.js +1 -0
- package/dist/baloise-design-system/p-2539ba43.js +2 -0
- package/dist/baloise-design-system/p-2767b62167.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-24cb7ada61.entry.js → p-29273a2be9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-222473290c.entry.js → p-2af8b73858.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3780688271.entry.js → p-2f6c32ca97.entry.js} +1 -1
- package/dist/baloise-design-system/p-30679d51bd.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-60d1100c61.system.entry.js → p-30f41bab1a.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3114a84410.entry.js +1 -0
- package/dist/baloise-design-system/{p-3e81eb1b73.entry.js → p-3149162e9e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2bdeb49e04.entry.js → p-3508444fc8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bcbde419.system.js → p-365fc134.system.js} +1 -1
- package/dist/baloise-design-system/{p-382b654245.entry.js → p-3814316946.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a89836cf90.system.entry.js → p-3c504ddf38.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9e1f6b77fd.entry.js → p-4b6481e692.entry.js} +1 -1
- package/dist/baloise-design-system/p-4bbe4ba6ba.entry.js +1 -0
- package/dist/baloise-design-system/{p-9895f4bc7f.entry.js → p-4d84f90534.entry.js} +1 -1
- package/dist/baloise-design-system/p-4e4fe533.js +1 -0
- package/dist/baloise-design-system/{p-30440adeaf.system.entry.js → p-4e75ee3c87.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7be6d0d5.js → p-50b2a9c6.js} +1 -1
- package/dist/baloise-design-system/p-51e22c0c.js +1 -0
- package/dist/baloise-design-system/{p-d5d60c9b0c.entry.js → p-5353ba1263.entry.js} +1 -1
- package/dist/baloise-design-system/p-53b859d3c4.entry.js +1 -0
- package/dist/baloise-design-system/{p-1f1d4be98c.system.entry.js → p-54c8a63b7c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-579855c6.system.js +1 -0
- package/dist/baloise-design-system/{p-5ad129ef61.entry.js → p-5b78557886.entry.js} +1 -1
- package/dist/baloise-design-system/p-6116192a.js +1 -0
- package/dist/baloise-design-system/p-61c48963c7.system.entry.js +1 -0
- package/dist/baloise-design-system/p-62936f4a8b.entry.js +1 -0
- package/dist/baloise-design-system/{p-3d1686d3b7.entry.js → p-678ebde2de.entry.js} +1 -1
- package/dist/baloise-design-system/p-68392bc0e8.system.entry.js +1 -0
- package/dist/baloise-design-system/p-69f82b9b22.entry.js +1 -0
- package/dist/baloise-design-system/{p-cde7b9624f.entry.js → p-6c3a60ddf6.entry.js} +1 -1
- package/dist/baloise-design-system/p-6cadcbe4bb.entry.js +1 -0
- package/dist/baloise-design-system/{p-aa056163df.system.entry.js → p-6d27c4949f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-6d6a2f64f2.entry.js +1 -0
- package/dist/baloise-design-system/p-6e79b03ef3.entry.js +1 -0
- package/dist/baloise-design-system/{p-368d2f5b53.system.entry.js → p-6fb26bd060.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3599e990df.system.entry.js → p-70ff6660e5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-73bd9055.system.js +1 -0
- package/dist/baloise-design-system/{p-4e943f9e82.system.entry.js → p-7752fa10ea.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-799a292492.entry.js +1 -0
- package/dist/baloise-design-system/{p-e706fa54a7.system.entry.js → p-7a883fd6ed.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-099160293f.entry.js → p-7eaff7954d.entry.js} +1 -1
- package/dist/baloise-design-system/p-7f9fe862b6.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-ca33489f33.system.entry.js → p-8096d040b2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5d61e44daf.entry.js → p-85b6c500d8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e101267145.system.entry.js → p-85d9ea863b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-85ed9bd051.entry.js +1 -0
- package/dist/baloise-design-system/p-8669493951.system.entry.js +1 -0
- package/dist/baloise-design-system/p-88be14c716.entry.js +1 -0
- package/dist/baloise-design-system/p-8a1bb350f1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-8b783731ea.system.entry.js → p-8ac5772a60.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-66a76fe561.entry.js → p-8b8d19171d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-510dacbdf8.entry.js → p-8d370d87cb.entry.js} +1 -1
- package/dist/baloise-design-system/p-9311066eb2.system.entry.js +1 -0
- package/dist/baloise-design-system/p-93e2638280.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-bad5fa4646.entry.js → p-98267a7765.entry.js} +1 -1
- package/dist/baloise-design-system/{p-07650803c8.system.entry.js → p-98a58cff41.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-98f7403c7f.entry.js +1 -0
- package/dist/baloise-design-system/{p-8f639d43b5.system.entry.js → p-992c49c23e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9774873974.entry.js → p-9b8ca7ead8.entry.js} +1 -1
- package/dist/baloise-design-system/p-9d29364f13.entry.js +1 -0
- package/dist/baloise-design-system/p-9d3f19c6af.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-993e98c44c.entry.js → p-9f54cfc70b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-52369031e6.entry.js → p-9f83acd71d.entry.js} +1 -1
- package/dist/baloise-design-system/p-a7d15ec66b.entry.js +1 -0
- package/dist/baloise-design-system/p-ad58876e8c.entry.js +1 -0
- package/dist/baloise-design-system/p-ae2292f251.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-4721b7f303.system.entry.js → p-aebb3198c4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-60824c3a6c.system.entry.js → p-af3fb420b3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-af4c6af2.js +1 -0
- package/dist/baloise-design-system/p-af5e974f4c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b0120babb2.entry.js +1 -0
- package/dist/baloise-design-system/{p-aa4c7e3e90.entry.js → p-b136739bec.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7caf3c7067.system.entry.js → p-b4ecd87960.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b57c473d.system.js +1 -0
- package/dist/baloise-design-system/{p-015c102ad9.system.entry.js → p-b8658ffb85.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b86876e144.entry.js +1 -0
- package/dist/baloise-design-system/p-ba9c735428.entry.js +1 -0
- package/dist/baloise-design-system/p-be61baa681.entry.js +1 -0
- package/dist/baloise-design-system/{p-d07cefc6cd.entry.js → p-be6d3bde8f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5f152e8366.system.entry.js → p-bf1b5db620.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-c045d5a57c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-ad8f67e768.entry.js → p-c2157cabd4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-84a902769c.entry.js → p-c416afcd52.entry.js} +1 -1
- package/dist/baloise-design-system/{p-42e9543ae1.system.entry.js → p-c589d05bc6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ceb61531.js → p-c61080a6.js} +1 -1
- package/dist/baloise-design-system/{p-fb9f3fe04c.entry.js → p-c7e93ad3c1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8c541cdc98.entry.js → p-c7efc6d470.entry.js} +1 -1
- package/dist/baloise-design-system/{p-848de6d6.js → p-c8caa835.js} +1 -1
- package/dist/baloise-design-system/p-c9dce0f3ea.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-da33e9ae0d.system.entry.js → p-cfd4370f6b.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-cfe42ac458.system.entry.js +1 -0
- package/dist/baloise-design-system/p-d0d162c677.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-3f55ea8e.system.js → p-d2f9ed2b.system.js} +1 -1
- package/dist/baloise-design-system/p-d404537f.system.js +1 -0
- package/dist/baloise-design-system/p-d532d41212.system.entry.js +1 -0
- package/dist/baloise-design-system/p-d67f7321.system.js +2 -0
- package/dist/baloise-design-system/p-d88acac29e.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-a73767fb2b.system.entry.js → p-d9bb74c913.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-dbc0b7c370.entry.js +1 -0
- package/dist/baloise-design-system/{p-fc61d25546.system.entry.js → p-dfcca29bc9.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-246ddd7346.system.entry.js → p-e0e123ffec.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-481ee3bb.system.js → p-e1b2f86b.system.js} +1 -1
- package/dist/baloise-design-system/{p-532653d3fc.system.entry.js → p-e2ba4d18bc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-be204d7cab.system.entry.js → p-e3a563de25.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aff57cb8f7.system.entry.js → p-e8f93d80ca.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0481129a2f.entry.js → p-ec286609dd.entry.js} +1 -1
- package/dist/baloise-design-system/p-ec4cf5cec6.entry.js +1 -0
- package/dist/baloise-design-system/p-edbd880ce1.entry.js +1 -0
- package/dist/baloise-design-system/p-ee3c7a38.system.js +1 -0
- package/dist/baloise-design-system/{p-6ef3fdbb8e.entry.js → p-f1c41da029.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c08fccadbf.entry.js → p-f3ef269852.entry.js} +1 -1
- package/dist/baloise-design-system/{p-90c9a623bc.system.entry.js → p-f8d828383b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bd407541e0.system.entry.js → p-fa363ba3f9.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-faaf77375f.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-45db444d22.system.entry.js → p-faf5c89145.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-fd118a1752.system.entry.js +1 -0
- package/dist/cjs/app-globals-f5a609c1.js +11 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/bal-app.cjs.entry.js +1 -1
- package/dist/cjs/bal-badge.cjs.entry.js +1 -1
- package/dist/cjs/bal-button_2.cjs.entry.js +9 -1
- package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +18 -5
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +1 -1
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +39 -2
- package/dist/cjs/bal-close.cjs.entry.js +1 -1
- package/dist/cjs/bal-content.cjs.entry.js +1 -1
- package/dist/cjs/bal-data_4.cjs.entry.js +1 -1
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +1 -1
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +16 -3
- package/dist/cjs/bal-date.cjs.entry.js +37 -8
- package/dist/cjs/bal-divider.cjs.entry.js +1 -1
- package/dist/cjs/bal-dropdown.cjs.entry.js +40 -21
- package/dist/cjs/bal-field_5.cjs.entry.js +1 -1
- package/dist/cjs/bal-file-upload.cjs.entry.js +12 -5
- package/dist/cjs/bal-footer.cjs.entry.js +1 -1
- package/dist/cjs/bal-form-col_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-form.cjs.entry.js +1 -1
- package/dist/cjs/bal-heading_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +41 -16
- package/dist/cjs/bal-icon.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-group.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-slider.cjs.entry.js +18 -4
- package/dist/cjs/bal-input-stepper.cjs.entry.js +17 -4
- package/dist/cjs/bal-input.cjs.entry.js +15 -2
- package/dist/cjs/bal-label.cjs.entry.js +1 -1
- package/dist/cjs/bal-list_8.cjs.entry.js +4 -4
- package/dist/cjs/bal-logo.cjs.entry.js +4 -4
- package/dist/cjs/bal-modal_3.cjs.entry.js +32 -6
- package/dist/cjs/bal-nav_8.cjs.entry.js +26 -7
- package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
- package/dist/cjs/bal-notices_3.cjs.entry.js +1 -1
- package/dist/cjs/bal-notification.cjs.entry.js +1 -1
- package/dist/cjs/bal-number-input.cjs.entry.js +15 -2
- package/dist/cjs/bal-option_2.cjs.entry.js +22 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +4 -4
- package/dist/cjs/bal-popup.cjs.entry.js +45 -10
- package/dist/cjs/bal-progress-bar.cjs.entry.js +5 -5
- package/dist/cjs/bal-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/bal-radio_2.cjs.entry.js +39 -2
- package/dist/cjs/bal-segment_2.cjs.entry.js +19 -6
- package/dist/cjs/bal-select_2.cjs.entry.js +25 -6
- package/dist/cjs/bal-shape.cjs.entry.js +2 -2
- package/dist/cjs/bal-sheet.cjs.entry.js +1 -1
- package/dist/cjs/bal-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bal-stack.cjs.entry.js +1 -1
- package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-step-item.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +4 -4
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +25 -6
- package/dist/cjs/bal-table.cjs.entry.js +1 -1
- package/dist/cjs/bal-tag_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-textarea.cjs.entry.js +16 -2
- package/dist/cjs/bal-time-input.cjs.entry.js +15 -2
- package/dist/cjs/bal-tooltip.cjs.entry.js +17 -10
- package/dist/cjs/baloise-design-system.cjs.js +5 -6
- package/dist/cjs/{breakpoints.decorator-cf3eca02.js → breakpoints.decorator-967c2fd2.js} +1 -1
- package/dist/cjs/{breakpoints.subject-ef2650af.js → breakpoints.subject-679bdc55.js} +1 -1
- package/dist/cjs/floating-ui-9f03e1cf.js +28 -0
- package/dist/{esm/floating-ui.dom.esm-f1cf1077.js → cjs/floating-ui.dom.esm-2ece9686.js} +508 -1
- package/dist/cjs/{index-a5d5074f.js → index-96c178a6.js} +4 -73
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{initialize-d21873c4.js → initialize-e7570bc6.js} +2 -2
- package/dist/cjs/listen-b42a4134.js +60 -0
- package/dist/cjs/loader.cjs.js +4 -5
- package/dist/cjs/{tokens.esm-b363e28a.js → tokens.esm-e4edac35.js} +1 -1
- package/dist/cjs/{window-resize.decorator-b06d2bb0.js → window-resize.decorator-bb2ea6d8.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/bal-button/bal-button.js +9 -10
- package/dist/collection/components/bal-carousel/bal-carousel.js +14 -16
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +25 -27
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +14 -16
- package/dist/collection/components/bal-date/bal-date.js +36 -34
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +31 -35
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +11 -13
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +15 -17
- package/dist/collection/components/bal-input/bal-input.js +14 -16
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +17 -18
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +16 -18
- package/dist/collection/components/bal-modal/bal-modal.js +31 -32
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +8 -10
- package/dist/collection/components/bal-nav/bal-nav.js +15 -17
- package/dist/collection/components/bal-number-input/bal-number-input.js +14 -16
- package/dist/collection/components/bal-option/bal-option.js +8 -10
- package/dist/collection/components/bal-option-list/bal-option-list.js +14 -16
- package/dist/collection/components/bal-popover/bal-popover.js +37 -39
- package/dist/collection/components/bal-popup/bal-popup.js +32 -34
- package/dist/collection/components/bal-popup/variants/popover-variant.renderer.js +12 -8
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +31 -33
- package/dist/collection/components/bal-radio/bal-radio.js +8 -10
- package/dist/collection/components/bal-segment/bal-segment.js +14 -16
- package/dist/collection/components/bal-select/bal-select.js +24 -26
- package/dist/collection/components/bal-tabs/bal-tabs.js +21 -23
- package/dist/collection/components/bal-textarea/bal-textarea.js +15 -16
- package/dist/collection/components/bal-time-input/bal-time-input.js +14 -16
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +13 -9
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/dropdown/popup.js +9 -6
- package/dist/collection/utils/floating-ui.js +23 -0
- package/dist/collection/utils/listen.js +55 -0
- package/dist/esm/app-globals-4d0448ee.js +9 -0
- package/dist/esm/bal-accordion_4.entry.js +1 -1
- package/dist/esm/bal-app.entry.js +1 -1
- package/dist/esm/bal-badge.entry.js +1 -1
- package/dist/esm/bal-button_2.entry.js +9 -1
- package/dist/esm/bal-card_6.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +18 -5
- package/dist/esm/bal-checkbox-button.entry.js +1 -1
- package/dist/esm/bal-checkbox_2.entry.js +39 -2
- package/dist/esm/bal-close.entry.js +1 -1
- package/dist/esm/bal-content.entry.js +1 -1
- package/dist/esm/bal-data_4.entry.js +1 -1
- package/dist/esm/bal-date-calendar-cell.entry.js +1 -1
- package/dist/esm/bal-date-calendar_2.entry.js +16 -3
- package/dist/esm/bal-date.entry.js +37 -8
- package/dist/esm/bal-divider.entry.js +1 -1
- package/dist/esm/bal-dropdown.entry.js +41 -22
- package/dist/esm/bal-field_5.entry.js +1 -1
- package/dist/esm/bal-file-upload.entry.js +12 -5
- package/dist/esm/bal-footer.entry.js +1 -1
- package/dist/esm/bal-form-col_2.entry.js +1 -1
- package/dist/esm/bal-form.entry.js +1 -1
- package/dist/esm/bal-heading_2.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +41 -16
- package/dist/esm/bal-icon.entry.js +1 -1
- package/dist/esm/bal-input-group.entry.js +1 -1
- package/dist/esm/bal-input-slider.entry.js +18 -4
- package/dist/esm/bal-input-stepper.entry.js +17 -4
- package/dist/esm/bal-input.entry.js +15 -2
- package/dist/esm/bal-label.entry.js +1 -1
- package/dist/esm/bal-list_8.entry.js +4 -4
- package/dist/esm/bal-logo.entry.js +4 -4
- package/dist/esm/bal-modal_3.entry.js +32 -6
- package/dist/esm/bal-nav_8.entry.js +26 -7
- package/dist/esm/bal-navbar_5.entry.js +4 -4
- package/dist/esm/bal-notices_3.entry.js +1 -1
- package/dist/esm/bal-notification.entry.js +1 -1
- package/dist/esm/bal-number-input.entry.js +15 -2
- package/dist/esm/bal-option_2.entry.js +22 -3
- package/dist/esm/bal-pagination.entry.js +4 -4
- package/dist/esm/bal-popup.entry.js +45 -10
- package/dist/esm/bal-progress-bar.entry.js +5 -5
- package/dist/esm/bal-radio-button.entry.js +1 -1
- package/dist/esm/bal-radio_2.entry.js +39 -2
- package/dist/esm/bal-segment_2.entry.js +19 -6
- package/dist/esm/bal-select_2.entry.js +25 -6
- package/dist/esm/bal-shape.entry.js +2 -2
- package/dist/esm/bal-sheet.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +1 -1
- package/dist/esm/bal-stack.entry.js +1 -1
- package/dist/esm/bal-stage_6.entry.js +1 -1
- package/dist/esm/bal-step-item.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +4 -4
- package/dist/esm/bal-tab-item_2.entry.js +25 -6
- package/dist/esm/bal-table.entry.js +1 -1
- package/dist/esm/bal-tag_2.entry.js +1 -1
- package/dist/esm/bal-textarea.entry.js +16 -2
- package/dist/esm/bal-time-input.entry.js +15 -2
- package/dist/esm/bal-tooltip.entry.js +17 -10
- package/dist/esm/baloise-design-system.js +6 -7
- package/dist/esm/{breakpoints.decorator-f94354b6.js → breakpoints.decorator-9981606e.js} +1 -1
- package/dist/esm/{breakpoints.subject-9d4798ac.js → breakpoints.subject-ae98d0fa.js} +1 -1
- package/dist/esm/floating-ui-82413f23.js +26 -0
- package/dist/{cjs/floating-ui.dom.esm-5dbdcff9.js → esm/floating-ui.dom.esm-8dcdb8d6.js} +493 -8
- package/dist/esm/{index-3ab19881.js → index-5b1faf93.js} +4 -73
- package/dist/esm/index.js +5 -5
- package/dist/esm/{initialize-5a257a0d.js → initialize-f93872c4.js} +2 -2
- package/dist/esm/listen-d1712e70.js +58 -0
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{tokens.esm-c10e9c85.js → tokens.esm-ed9fb455.js} +1 -1
- package/dist/esm/{window-resize.decorator-d57a9812.js → window-resize.decorator-a88002f7.js} +1 -1
- package/dist/esm-es5/app-globals-4d0448ee.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- package/dist/esm-es5/bal-app.entry.js +1 -1
- package/dist/esm-es5/bal-badge.entry.js +1 -1
- package/dist/esm-es5/bal-button_2.entry.js +1 -1
- package/dist/esm-es5/bal-card_6.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-content.entry.js +1 -1
- package/dist/esm-es5/bal-data_4.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-divider.entry.js +1 -1
- package/dist/esm-es5/bal-dropdown.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
- package/dist/esm-es5/bal-form.entry.js +1 -1
- package/dist/esm-es5/bal-heading_2.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-group.entry.js +1 -1
- package/dist/esm-es5/bal-input-slider.entry.js +1 -1
- package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
- package/dist/esm-es5/bal-input.entry.js +1 -1
- package/dist/esm-es5/bal-label.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-modal_3.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-notices_3.entry.js +1 -1
- package/dist/esm-es5/bal-notification.entry.js +1 -1
- package/dist/esm-es5/bal-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-option_2.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-button.entry.js +1 -1
- package/dist/esm-es5/bal-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-select_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-sheet.entry.js +1 -1
- package/dist/esm-es5/bal-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stack.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-step-item.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/bal-table.entry.js +1 -1
- package/dist/esm-es5/bal-tag_2.entry.js +1 -1
- package/dist/esm-es5/bal-textarea.entry.js +1 -1
- package/dist/esm-es5/bal-time-input.entry.js +1 -1
- package/dist/esm-es5/bal-tooltip.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/breakpoints.decorator-9981606e.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-9d4798ac.js → breakpoints.subject-ae98d0fa.js} +1 -1
- package/dist/esm-es5/floating-ui-82413f23.js +1 -0
- package/dist/esm-es5/floating-ui.dom.esm-8dcdb8d6.js +1 -0
- package/dist/esm-es5/index-5b1faf93.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{initialize-5a257a0d.js → initialize-f93872c4.js} +1 -1
- package/dist/esm-es5/listen-d1712e70.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{window-resize.decorator-d57a9812.js → window-resize.decorator-a88002f7.js} +1 -1
- package/dist/types/components/bal-dropdown/bal-dropdown.d.ts +5 -4
- package/dist/types/components/bal-popover/bal-popover.d.ts +1 -1
- package/dist/types/components/bal-select/bal-select.d.ts +1 -1
- package/dist/types/components.d.ts +0 -37
- package/dist/types/utils/dropdown/popup.d.ts +2 -1
- package/dist/types/utils/floating-ui.d.ts +15 -0
- package/dist/types/utils/listen.d.ts +12 -0
- package/package.json +8 -8
- package/components/bal-app2.js +0 -93
- package/components/bal-doc-app.d.ts +0 -11
- package/components/bal-doc-app.js +0 -262
- package/components/initialize.js +0 -288
- package/dist/baloise-design-system/p-003f6da692.entry.js +0 -1
- package/dist/baloise-design-system/p-02386e08ff.entry.js +0 -1
- package/dist/baloise-design-system/p-0246c9bc54.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0393304e1a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0c407262b1.entry.js +0 -1
- package/dist/baloise-design-system/p-0cee05a046.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1943321f.js +0 -2
- package/dist/baloise-design-system/p-1b8135875a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1c41aa0529.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1ed2313b.system.js +0 -1
- package/dist/baloise-design-system/p-202e0c450b.entry.js +0 -1
- package/dist/baloise-design-system/p-21f879a309.entry.js +0 -1
- package/dist/baloise-design-system/p-23ba23e7a8.entry.js +0 -1
- package/dist/baloise-design-system/p-2457d0ceb3.entry.js +0 -1
- package/dist/baloise-design-system/p-24d9967525.entry.js +0 -1
- package/dist/baloise-design-system/p-2608ceffd1.entry.js +0 -1
- package/dist/baloise-design-system/p-32b969a0da.system.entry.js +0 -1
- package/dist/baloise-design-system/p-3c9e26059c.entry.js +0 -1
- package/dist/baloise-design-system/p-4366e05d9c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-4c45a9af76.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5272405e3e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-59ae70e074.entry.js +0 -1
- package/dist/baloise-design-system/p-5c96b1dd74.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5fea9d7d.js +0 -1
- package/dist/baloise-design-system/p-60f814e4.system.js +0 -2
- package/dist/baloise-design-system/p-62a7573de4.entry.js +0 -1
- package/dist/baloise-design-system/p-6457001cc1.entry.js +0 -1
- package/dist/baloise-design-system/p-7057ff2e7d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-77339423fa.system.entry.js +0 -1
- package/dist/baloise-design-system/p-774f9049af.system.entry.js +0 -1
- package/dist/baloise-design-system/p-782eb33b57.entry.js +0 -1
- package/dist/baloise-design-system/p-79af87fd32.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7a6288bcd1.entry.js +0 -1
- package/dist/baloise-design-system/p-81bf0a2b8b.entry.js +0 -1
- package/dist/baloise-design-system/p-8292681250.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8855dc8f1f.system.entry.js +0 -1
- package/dist/baloise-design-system/p-886c18cfa8.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8fa843a042.system.entry.js +0 -1
- package/dist/baloise-design-system/p-977eb5ca6a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9ce328a855.entry.js +0 -1
- package/dist/baloise-design-system/p-9d3bd74b2b.entry.js +0 -1
- package/dist/baloise-design-system/p-9efc54a088.entry.js +0 -1
- package/dist/baloise-design-system/p-a261e182.system.js +0 -1
- package/dist/baloise-design-system/p-a316e24bc9.entry.js +0 -1
- package/dist/baloise-design-system/p-a3fa6e7d.js +0 -1
- package/dist/baloise-design-system/p-a418091b54.entry.js +0 -1
- package/dist/baloise-design-system/p-a62cd7edc4.entry.js +0 -1
- package/dist/baloise-design-system/p-afb3d4fe.js +0 -1
- package/dist/baloise-design-system/p-b80d9e4d.js +0 -1
- package/dist/baloise-design-system/p-bea3236be3.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ce3e07bdb5.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d26b9f1cb0.entry.js +0 -1
- package/dist/baloise-design-system/p-d8d8722634.system.entry.js +0 -1
- package/dist/baloise-design-system/p-dd490e5c41.system.entry.js +0 -1
- package/dist/baloise-design-system/p-dff3cb4e23.entry.js +0 -1
- package/dist/baloise-design-system/p-f8c5e9e7.system.js +0 -1
- package/dist/baloise-design-system/p-fccda5a8.system.js +0 -1
- package/dist/baloise-design-system/p-fd9827e80b.system.entry.js +0 -1
- package/dist/cjs/app-globals-da4c9bf6.js +0 -7
- package/dist/cjs/bal-doc-app.cjs.entry.js +0 -233
- package/dist/cjs/global-7a7dcc4f.js +0 -9
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -229
- package/dist/esm/app-globals-4970103c.js +0 -5
- package/dist/esm/bal-doc-app.entry.js +0 -229
- package/dist/esm/global-5bf9977a.js +0 -7
- package/dist/esm-es5/app-globals-4970103c.js +0 -1
- package/dist/esm-es5/bal-doc-app.entry.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-f94354b6.js +0 -1
- package/dist/esm-es5/floating-ui.dom.esm-f1cf1077.js +0 -1
- package/dist/esm-es5/global-5bf9977a.js +0 -1
- package/dist/esm-es5/index-3ab19881.js +0 -2
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -82
- /package/dist/baloise-design-system/{p-7e0b6920.system.js → p-923b2e35.system.js} +0 -0
- /package/dist/baloise-design-system/{p-8ab7a3bd.js → p-fc542e26.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-c10e9c85.js → tokens.esm-ed9fb455.js} +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { balFloatingUi } from "../floating-ui";
|
|
2
2
|
export class DropdownPopupUtil {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.updatePanelPosition = (referenceEl, floatingEl) => () => {
|
|
5
|
-
|
|
4
|
+
this.updatePanelPosition = (lib, referenceEl, floatingEl) => () => {
|
|
5
|
+
lib
|
|
6
|
+
.computePosition(referenceEl, floatingEl, {
|
|
6
7
|
placement: 'bottom-start',
|
|
7
|
-
middleware: [flip(), shift()],
|
|
8
|
-
})
|
|
8
|
+
middleware: [lib.flip(), lib.shift()],
|
|
9
|
+
})
|
|
10
|
+
.then(({ x, y }) => {
|
|
9
11
|
Object.assign(floatingEl.style, {
|
|
10
12
|
left: `${x}px`,
|
|
11
13
|
top: `${y}px`,
|
|
@@ -29,7 +31,8 @@ export class DropdownPopupUtil {
|
|
|
29
31
|
async expandList() {
|
|
30
32
|
var _a;
|
|
31
33
|
if (this.component.panelEl) {
|
|
32
|
-
|
|
34
|
+
const lib = await balFloatingUi.load();
|
|
35
|
+
this.component.panelCleanup = lib.autoUpdate(this.component.el, this.component.panelEl, this.updatePanelPosition(lib, this.component.el, this.component.panelEl));
|
|
33
36
|
}
|
|
34
37
|
this.component.isExpanded = true;
|
|
35
38
|
await ((_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusSelected());
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { rLCP } from "./helpers";
|
|
2
|
+
class BalFloatingUiInternal {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.load = async () => {
|
|
5
|
+
return new Promise((resolve, reject) => {
|
|
6
|
+
if (this.lib) {
|
|
7
|
+
return resolve(this.lib);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
rLCP(async () => {
|
|
11
|
+
import(/* @vite-ignore */ '@floating-ui/dom')
|
|
12
|
+
.then(module => {
|
|
13
|
+
this.lib = module;
|
|
14
|
+
resolve(this.lib);
|
|
15
|
+
})
|
|
16
|
+
.catch(reject);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export const balFloatingUi = new BalFloatingUiInternal();
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { addEventListener, removeEventListener } from "./helpers";
|
|
2
|
+
import { balBrowser } from "./browser";
|
|
3
|
+
/**
|
|
4
|
+
* This decorator replaces the @Listen from stencil since
|
|
5
|
+
* they have issue with connecting and disconnecting web-components.
|
|
6
|
+
*/
|
|
7
|
+
export function ListenTo(eventName, opts = {}) {
|
|
8
|
+
return function (target, propertyKey, _descriptor) {
|
|
9
|
+
const { connectedCallback, disconnectedCallback } = target;
|
|
10
|
+
const { capture, passive } = opts;
|
|
11
|
+
const options = { capture, passive };
|
|
12
|
+
const callback = target[propertyKey];
|
|
13
|
+
/**
|
|
14
|
+
* Define const keys for binding the target
|
|
15
|
+
* and callback to the web component
|
|
16
|
+
*/
|
|
17
|
+
const boundPropertyKey = `__${propertyKey}Bound`;
|
|
18
|
+
const boundEL = `__elBound`;
|
|
19
|
+
target.connectedCallback = function () {
|
|
20
|
+
connectedCallback && connectedCallback.call(this);
|
|
21
|
+
if (this.el) {
|
|
22
|
+
/**
|
|
23
|
+
* Bind target element to the web component so we can
|
|
24
|
+
* add and remove the event listener
|
|
25
|
+
*/
|
|
26
|
+
if (opts.target === 'document' && balBrowser.hasDocument) {
|
|
27
|
+
this[boundEL] = document;
|
|
28
|
+
}
|
|
29
|
+
else if (opts.target === 'window' && balBrowser.hasWindow) {
|
|
30
|
+
this[boundEL] = window;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this[boundEL] = this.el;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Bind event listener callback function to the web component
|
|
37
|
+
* so we can add and remove the event listener
|
|
38
|
+
*/
|
|
39
|
+
this[boundPropertyKey] = callback.bind(this);
|
|
40
|
+
/**
|
|
41
|
+
* Add event listener
|
|
42
|
+
*/
|
|
43
|
+
if (this[boundEL] && callback) {
|
|
44
|
+
addEventListener(this[boundEL], eventName, this[boundPropertyKey], options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
target.disconnectedCallback = function () {
|
|
49
|
+
disconnectedCallback && disconnectedCallback.call(this);
|
|
50
|
+
if (this[boundEL] && callback) {
|
|
51
|
+
removeEventListener(this[boundEL], eventName, this[boundPropertyKey], options);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { n as raf, t as transitionEndAsync, o as debounceEvent, w as waitForComponent } from './helpers-72ae7307.js';
|
|
4
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { b as balBrowser } from './browser-a8073d92.js';
|
|
4
4
|
import { b as balDevice } from './device-8c6d2881.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
3
3
|
|
|
4
4
|
const balBadgeCss = ":root{--bal-badge-background:var(--bal-color-red-3);--bal-badge-background-grey:var(--bal-color-grey-3);--bal-badge-background-red:var(--bal-color-red-3);--bal-badge-background-yellow:var(--bal-color-yellow-3);--bal-badge-background-green:var(--bal-color-green-3);--bal-badge-background-purple:var(--bal-color-purple-3);--bal-badge-radius:var(--bal-radius-rounded);--bal-badge-text-color:var(--bal-color-text-primary);--bal-badge-color-grey:var(--bal-color-text-grey-dark);--bal-badge-color-red:var(--bal-color-text-primary);--bal-badge-color-yellow:var(--bal-color-text-primary);--bal-badge-color-green:var(--bal-color-text-primary);--bal-badge-color-purple:var(--bal-color-text-primary)}.bal-badge{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-width:1.5rem;height:1.5rem;border-radius:var(--bal-badge-radius);background:var(--bal-badge-background);padding:.25rem}.bal-badge--size-small{width:.75rem;max-width:.75rem;min-width:.75rem;height:.75rem}.bal-badge--size-large{width:2rem;height:2rem}.bal-badge--background-red,.bal-badge--background-danger{background:var(--bal-badge-background-red)}.bal-badge--background-yellow,.bal-badge--background-warning{background:var(--bal-badge-background-yellow)}.bal-badge--background-green,.bal-badge--background-success{background:var(--bal-badge-background-green)}.bal-badge--background-purple{background:var(--bal-badge-background-purple)}.bal-badge--background-grey{background:var(--bal-badge-background-grey)}.bal-badge--position-card,.bal-badge--position-button{position:absolute;right:-0.5rem;top:-0.5rem}.bal-badge--position-tabs{margin-top:-0.25rem;position:absolute;right:-1.625rem}.bal-badge--position-tabs.bal-badge--size-small{right:-1rem}span.bal-badge__label{font-weight:var(--bal-font-weight-bold) !important;font-family:var(--bal-font-family-text) !important;font-size:var(--bal-text-size-small) !important;color:var(--bal-badge-text-color);line-height:1.5rem !important;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}span.bal-badge__label--hidden{display:none !important}span.bal-badge__label--color-red,span.bal-badge__label--color-danger{color:var(--bal-badge-color-red)}span.bal-badge__label--color-yellow,span.bal-badge__label--color-warning{color:var(--bal-badge-color-yellow)}span.bal-badge__label--color-green,span.bal-badge__label--color-success{color:var(--bal-badge-color-green)}span.bal-badge__label--color-grey{color:var(--bal-badge-color-grey)}span.bal-badge__label--color-purple{color:var(--bal-badge-color-purple)}.bal-badge__icon--hidden{display:none !important}";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
2
3
|
import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
3
4
|
import { l as rLCP } from './helpers-72ae7307.js';
|
|
5
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
4
6
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
5
7
|
import './browser-a8073d92.js';
|
|
6
8
|
import './icons.constant-a7885631.js';
|
|
@@ -171,6 +173,12 @@ const Button = class {
|
|
|
171
173
|
}
|
|
172
174
|
get el() { return getElement(this); }
|
|
173
175
|
};
|
|
176
|
+
__decorate([
|
|
177
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
178
|
+
__metadata("design:type", Function),
|
|
179
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
180
|
+
__metadata("design:returntype", void 0)
|
|
181
|
+
], Button.prototype, "listenOnClick", null);
|
|
174
182
|
Button.style = BalButtonStyle0;
|
|
175
183
|
|
|
176
184
|
const ButtonGroup = class {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { j as debounce, l as rLCP, n as raf, b as waitAfterFramePaint } from './helpers-72ae7307.js';
|
|
4
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
5
5
|
import { s as stopEventBubbling } from './form-input-264ad739.js';
|
|
6
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
6
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-9981606e.js';
|
|
7
7
|
import { g as getComputedWidth } from './style-ca1bd202.js';
|
|
8
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
8
9
|
import { L as ListenToMutation } from './mutation.decorator-985cc0a1.js';
|
|
9
10
|
import { L as ListenToSwipe } from './swipe.decorator-56b6d574.js';
|
|
10
11
|
import { L as ListenToResize } from './resize.decorator-f2d8461d.js';
|
|
11
|
-
import { b as balBreakpoints } from './breakpoints.subject-
|
|
12
|
+
import { b as balBreakpoints } from './breakpoints.subject-ae98d0fa.js';
|
|
12
13
|
import { d as defaultConfig } from './config.default-7efdc82d.js';
|
|
13
14
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
14
15
|
import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
@@ -18,7 +19,7 @@ import './config.utils-6ac6c9bd.js';
|
|
|
18
19
|
import './listener-04842ae9.js';
|
|
19
20
|
import './swipe.subject-683f7c7b.js';
|
|
20
21
|
import './device-8c6d2881.js';
|
|
21
|
-
import './tokens.esm-
|
|
22
|
+
import './tokens.esm-ed9fb455.js';
|
|
22
23
|
import './log-dfd1c19f.js';
|
|
23
24
|
|
|
24
25
|
const TabControl = ({ value, items, containerId, onControlChange }) => {
|
|
@@ -387,10 +388,16 @@ const Carousel = class {
|
|
|
387
388
|
const leftControlTitle = i18nControlLabel[this.language].left;
|
|
388
389
|
const rightControlTitle = i18nControlLabel[this.language].right;
|
|
389
390
|
const controlItems = this.getAllControlItems();
|
|
390
|
-
return (h(Host, { key: '
|
|
391
|
+
return (h(Host, { key: '8f136f31e2fe4fb99703fdd2a5974697cea659b7', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-${this.controls}`).class()) }, this.isLargestContentfulPaintDone && this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), h("div", { key: '76e644a3db07b7aeae2a599b560903a24312cb6b', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inner.class()), inner.modifier(`items-per-view-${this.itemsPerView}`).class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), inner.modifier(`shadow-left`).class(this.hasShadowLeft())), inner.modifier(`shadow-right`).class(this.hasShadowRight())), ref: el => (this.innerEl = el) }, h("div", { key: '8040a1b67deccfa135bda7c1b3cef5b05492ad19', role: this.htmlRole, "aria-live": this.htmlRole !== '' ? 'polite' : undefined, id: this.carouselContainerId, class: Object.assign(Object.assign(Object.assign({}, container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.containerEl = el) }, h("slot", { key: '855f44ac6e8b1cfdfd31cc39f9fd2d9749a2f326' }), this.border ? (h("div", { id: `${this.carouselId}-border`, "aria-hidden": "true", class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.borderEl = el) })) : (''))), this.isLargestContentfulPaintDone && this.controls === 'dots' ? (h(DotControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), this.isLargestContentfulPaintDone && this.controls === 'large' ? (h(LargeControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, areControlsHidden: !this.isMobile, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : (''), this.isLargestContentfulPaintDone && this.controls === 'small' ? (h(SmallControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : ('')));
|
|
391
392
|
}
|
|
392
393
|
get el() { return getElement(this); }
|
|
393
394
|
};
|
|
395
|
+
__decorate([
|
|
396
|
+
ListenTo('touchmove', { target: 'window', passive: false }),
|
|
397
|
+
__metadata("design:type", Function),
|
|
398
|
+
__metadata("design:paramtypes", [Object]),
|
|
399
|
+
__metadata("design:returntype", Promise)
|
|
400
|
+
], Carousel.prototype, "blockVerticalScrolling", null);
|
|
394
401
|
__decorate([
|
|
395
402
|
ListenToMutation({ tags: ['bal-carousel-item'], characterData: false }),
|
|
396
403
|
__metadata("design:type", Function),
|
|
@@ -415,6 +422,12 @@ __decorate([
|
|
|
415
422
|
__metadata("design:paramtypes", []),
|
|
416
423
|
__metadata("design:returntype", void 0)
|
|
417
424
|
], Carousel.prototype, "resizeListener", null);
|
|
425
|
+
__decorate([
|
|
426
|
+
ListenTo('keydown'),
|
|
427
|
+
__metadata("design:type", Function),
|
|
428
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
429
|
+
__metadata("design:returntype", void 0)
|
|
430
|
+
], Carousel.prototype, "listenToKeyDown", null);
|
|
418
431
|
__decorate([
|
|
419
432
|
ListenToConfig(),
|
|
420
433
|
__metadata("design:type", Function),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { s as stopEventBubbling } from './form-input-264ad739.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { s as stopEventBubbling, c as inputSetFocus, d as inputSetBlur } from './form-input-264ad739.js';
|
|
4
4
|
import { i as isDescendant, u as hasTagName } from './helpers-72ae7307.js';
|
|
@@ -8,6 +8,7 @@ import { L as Logger } from './log-dfd1c19f.js';
|
|
|
8
8
|
import { F as FOCUS_KEYS } from './focus-visible-f0cdd043.js';
|
|
9
9
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
10
10
|
import { a as ariaBooleanToString } from './aria-d5877698.js';
|
|
11
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
11
12
|
import { d as isSpaceKey } from './keyboard.helpers-b2dd6393.js';
|
|
12
13
|
import { a as areArraysEqual } from './array-4c09dfe3.js';
|
|
13
14
|
import { L as ListenToFocus } from './focus.decorator-dc333802.js';
|
|
@@ -285,7 +286,7 @@ const Checkbox = class {
|
|
|
285
286
|
labelAttributes.id = `${id}-lbl`;
|
|
286
287
|
labelAttributes.htmlFor = id;
|
|
287
288
|
}
|
|
288
|
-
return (h(Host, { key: '
|
|
289
|
+
return (h(Host, { key: 'ecce7f9cb60f37a738f18f72a2735c853ae02985', "aria-checked": `${this.checked}`, "aria-disabled": ariaBooleanToString(this.disabled), "aria-hidden": ariaBooleanToString(this.disabled || this.nonSubmit), "aria-focused": focused ? 'true' : null, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ 'bal-focused': focused }, block.class()), block.modifier('checkbox').class()), block.modifier('select-button').class(this.interface === 'select-button')), block.modifier('switch').class(this.interface === 'switch')), block.modifier('focused').class(this.focused)), block.modifier('invalid').class(this.invalid)), block.modifier('checked').class(this.checked)), block.modifier('invisible').class(this.invisible)), block.modifier('flat').class(this.flat)), block.modifier('disabled').class(this.disabled || this.readonly)), block.modifier('hovered').class(this.hovered)), block.modifier('pressed').class(this.pressed)), block.modifier('inline').class(this.inline)), onKeypress: this.onKeypress, onClick: this.onClick }, h("input", Object.assign({ key: '7a7fe32e829fb5fb68de8a2bb7705db0465792ae', class: Object.assign(Object.assign({}, inputEl.class()), inputEl.modifier('select-button').class(this.interface === 'select-button')), "data-testid": "bal-checkbox-input", type: "checkbox", id: id, "aria-labelledby": labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": ariaBooleanToString(this.disabled), "aria-checked": `${this.checked}`, "aria-hidden": ariaBooleanToString(this.nonSubmit), name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.nonSubmit, readonly: this.readonly, required: this.required, onFocus: this.onFocus, onBlur: this.onBlur, ref: inputEl => (this.nativeInput = inputEl) }, inputAttributes)), !this.invisible ? (h(LabelTag, Object.assign({ class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, labelEl.class()), labelEl.modifier('checkbox').class()), labelEl.modifier('checked').class(this.checked)), labelEl.modifier('hidden').class(this.labelHidden)), labelEl.modifier('flat').class(this.flat)), labelEl.modifier('switch').class(this.interface === 'switch')) }, labelAttributes, { "data-testid": "bal-checkbox-label" }), this.interface === 'switch' ? (h("bal-icon", { class: Object.assign({}, iconEl.class()), name: "check", color: "white", size: "x-small", "aria-hidden": "true" })) : (''), h("span", { class: Object.assign(Object.assign(Object.assign({}, labelTextEl.class()), labelTextEl.modifier('hidden').class(this.labelHidden)), labelTextEl.modifier('flat').class(this.flat)), "data-testid": "bal-checkbox-text" }, this.label, h("slot", null)))) : ('')));
|
|
289
290
|
}
|
|
290
291
|
get el() { return getElement(this); }
|
|
291
292
|
};
|
|
@@ -295,6 +296,18 @@ __decorate([
|
|
|
295
296
|
__metadata("design:paramtypes", [Function]),
|
|
296
297
|
__metadata("design:returntype", void 0)
|
|
297
298
|
], Checkbox.prototype, "createLogger", null);
|
|
299
|
+
__decorate([
|
|
300
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
301
|
+
__metadata("design:type", Function),
|
|
302
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
303
|
+
__metadata("design:returntype", void 0)
|
|
304
|
+
], Checkbox.prototype, "listenOnClick", null);
|
|
305
|
+
__decorate([
|
|
306
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
307
|
+
__metadata("design:type", Function),
|
|
308
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
309
|
+
__metadata("design:returntype", void 0)
|
|
310
|
+
], Checkbox.prototype, "resetHandler", null);
|
|
298
311
|
let checkboxIds = 0;
|
|
299
312
|
Checkbox.style = BalCheckboxStyle0;
|
|
300
313
|
|
|
@@ -604,6 +617,30 @@ __decorate([
|
|
|
604
617
|
__metadata("design:paramtypes", []),
|
|
605
618
|
__metadata("design:returntype", void 0)
|
|
606
619
|
], CheckboxGroup.prototype, "mutationListener", null);
|
|
620
|
+
__decorate([
|
|
621
|
+
ListenTo('balChange', { capture: true, target: 'document' }),
|
|
622
|
+
__metadata("design:type", Function),
|
|
623
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
624
|
+
__metadata("design:returntype", void 0)
|
|
625
|
+
], CheckboxGroup.prototype, "listenOnClick", null);
|
|
626
|
+
__decorate([
|
|
627
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
628
|
+
__metadata("design:type", Function),
|
|
629
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
630
|
+
__metadata("design:returntype", void 0)
|
|
631
|
+
], CheckboxGroup.prototype, "resetHandler", null);
|
|
632
|
+
__decorate([
|
|
633
|
+
ListenTo('balFocus', { capture: true, target: 'document' }),
|
|
634
|
+
__metadata("design:type", Function),
|
|
635
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
636
|
+
__metadata("design:returntype", void 0)
|
|
637
|
+
], CheckboxGroup.prototype, "checkboxFocusListener", null);
|
|
638
|
+
__decorate([
|
|
639
|
+
ListenTo('balBlur', { capture: true, target: 'document' }),
|
|
640
|
+
__metadata("design:type", Function),
|
|
641
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
642
|
+
__metadata("design:returntype", void 0)
|
|
643
|
+
], CheckboxGroup.prototype, "checkboxBlurListener", null);
|
|
607
644
|
let checkboxGroupIds = 0;
|
|
608
645
|
|
|
609
646
|
export { Checkbox as bal_checkbox, CheckboxGroup as bal_checkbox_group };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { i as i18nBalClose } from './bal-close.i18n-f2daa707.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-5b1faf93.js';
|
|
2
2
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
3
3
|
import { l as lodash_isnil } from './index-82aff103.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5b1faf93.js';
|
|
2
2
|
import { s as stopEventBubbling } from './form-input-264ad739.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import './helpers-72ae7307.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { l as lodash_padstart } from './index-bba06972.js';
|
|
4
4
|
import { l as lodash_isnil } from './index-82aff103.js';
|
|
@@ -12,6 +12,7 @@ import { L as ListenToSwipe } from './swipe.decorator-56b6d574.js';
|
|
|
12
12
|
import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
13
13
|
import { m as hasValueChanged, c as inputSetFocus, d as inputSetBlur } from './form-input-264ad739.js';
|
|
14
14
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
15
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
15
16
|
import { N as NUMBER_KEYS } from './keys.constant-0eb059e0.js';
|
|
16
17
|
import { I as INVALID_VALUE } from './mask-util-71edc2b8.js';
|
|
17
18
|
import './_commonjsHelpers-1c8beb5f.js';
|
|
@@ -1451,14 +1452,14 @@ const InputDate = class {
|
|
|
1451
1452
|
render() {
|
|
1452
1453
|
const block = BEM.block('input-date');
|
|
1453
1454
|
const native = block.element('native');
|
|
1454
|
-
return (h(Host, { key: '
|
|
1455
|
+
return (h(Host, { key: 'c19d0b61364480bbcb5067bf0c5d68b83dab6fa7', onClick: (event) => this.maskAdapter.bindHostClick(event), class: Object.assign({}, block.class()) }, h("input", Object.assign({ key: 'e8cbf0a3372a06823953459eeb754f2c22fc0b22', class: {
|
|
1455
1456
|
'input': true,
|
|
1456
1457
|
'is-disabled': this.disabled || this.readonly,
|
|
1457
1458
|
'is-danger': this.invalid,
|
|
1458
1459
|
'is-clickable': this.clickable && !(this.disabled || this.readonly),
|
|
1459
1460
|
'bal-focusable': !this.disabled,
|
|
1460
1461
|
'has-icon-right': this.hasIconRight,
|
|
1461
|
-
}, "data-testid": "bal-date-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, required: this.required, disabled: this.disabled, readonly: this.readonly, autoComplete: this.autocomplete }, this.maskAdapter.attributes, this.inheritedAttributes, { placeholder: this.placeholder, value: this.inputValue, onKeyDown: event => this.maskAdapter.bindKeyDown(event), onClick: event => this.maskAdapter.bindClick(event), onFocus: event => this.maskAdapter.bindFocus(event), onBlur: event => this.maskAdapter.bindBlur(event), onPaste: event => this.maskAdapter.bindPaste(event) })), h("input", { key: '
|
|
1462
|
+
}, "data-testid": "bal-date-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, required: this.required, disabled: this.disabled, readonly: this.readonly, autoComplete: this.autocomplete }, this.maskAdapter.attributes, this.inheritedAttributes, { placeholder: this.placeholder, value: this.inputValue, onKeyDown: event => this.maskAdapter.bindKeyDown(event), onClick: event => this.maskAdapter.bindClick(event), onFocus: event => this.maskAdapter.bindFocus(event), onBlur: event => this.maskAdapter.bindBlur(event), onPaste: event => this.maskAdapter.bindPaste(event) })), h("input", { key: 'b6acc3e893caf68b4823addac74e4cea27fdc98b', type: "date", class: Object.assign({}, native.class()), name: this.name, min: this.min, max: this.max, value: this.value, tabindex: -1, "aria-hidden": "true" })));
|
|
1462
1463
|
}
|
|
1463
1464
|
get el() { return getElement(this); }
|
|
1464
1465
|
static get watchers() { return {
|
|
@@ -1477,6 +1478,18 @@ __decorate([
|
|
|
1477
1478
|
__metadata("design:paramtypes", [Object]),
|
|
1478
1479
|
__metadata("design:returntype", Promise)
|
|
1479
1480
|
], InputDate.prototype, "configChanged", null);
|
|
1481
|
+
__decorate([
|
|
1482
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
1483
|
+
__metadata("design:type", Function),
|
|
1484
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1485
|
+
__metadata("design:returntype", void 0)
|
|
1486
|
+
], InputDate.prototype, "resetHandler", null);
|
|
1487
|
+
__decorate([
|
|
1488
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
1489
|
+
__metadata("design:type", Function),
|
|
1490
|
+
__metadata("design:paramtypes", [MouseEvent]),
|
|
1491
|
+
__metadata("design:returntype", void 0)
|
|
1492
|
+
], InputDate.prototype, "listenOnClick", null);
|
|
1480
1493
|
let inputDateIds = 0;
|
|
1481
1494
|
InputDate.style = BalInputDateStyle0;
|
|
1482
1495
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
|
-
import { a as autoUpdate, c as computePosition, o as offset, f as flip } from './floating-ui.dom.esm-f1cf1077.js';
|
|
4
3
|
import { B as BalDate, i as i18nBalDate } from './date-3b88d03c.js';
|
|
5
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
6
5
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
@@ -8,6 +7,8 @@ import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
|
8
7
|
import { s as stopEventBubbling } from './form-input-264ad739.js';
|
|
9
8
|
import { o as debounceEvent } from './helpers-72ae7307.js';
|
|
10
9
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
10
|
+
import { b as balFloatingUi } from './floating-ui-82413f23.js';
|
|
11
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
11
12
|
import { d as isSpaceKey } from './keyboard.helpers-b2dd6393.js';
|
|
12
13
|
import { d as defaultConfig } from './config.default-7efdc82d.js';
|
|
13
14
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
@@ -242,10 +243,11 @@ const Date = class {
|
|
|
242
243
|
*/
|
|
243
244
|
async expand() {
|
|
244
245
|
if (this.referenceEl && this.floatingEl) {
|
|
246
|
+
const lib = await balFloatingUi.load();
|
|
245
247
|
this.balPopoverPrepare.emit(this.inputId);
|
|
246
248
|
this.balWillAnimate.emit();
|
|
247
249
|
this.isExpanded = true;
|
|
248
|
-
this.popupCleanup = autoUpdate(this.referenceEl, this.floatingEl, () => {
|
|
250
|
+
this.popupCleanup = lib.autoUpdate(this.referenceEl, this.floatingEl, () => {
|
|
249
251
|
this.updatePosition(this.referenceEl, this.floatingEl);
|
|
250
252
|
});
|
|
251
253
|
}
|
|
@@ -262,11 +264,14 @@ const Date = class {
|
|
|
262
264
|
}
|
|
263
265
|
return this.isExpanded;
|
|
264
266
|
}
|
|
265
|
-
updatePosition(referenceEl, floatingEl) {
|
|
266
|
-
|
|
267
|
+
async updatePosition(referenceEl, floatingEl) {
|
|
268
|
+
const lib = await balFloatingUi.load();
|
|
269
|
+
lib
|
|
270
|
+
.computePosition(referenceEl, floatingEl, {
|
|
267
271
|
placement: 'bottom-start',
|
|
268
|
-
middleware: [offset(4), flip({ crossAxis: false })],
|
|
269
|
-
})
|
|
272
|
+
middleware: [lib.offset(4), lib.flip({ crossAxis: false })],
|
|
273
|
+
})
|
|
274
|
+
.then(({ x, y }) => {
|
|
270
275
|
Object.assign(floatingEl.style, {
|
|
271
276
|
left: `${x}px`,
|
|
272
277
|
top: `${y}px`,
|
|
@@ -282,7 +287,7 @@ const Date = class {
|
|
|
282
287
|
const block = BEM.block('date');
|
|
283
288
|
const blockIcon = block.element('icon');
|
|
284
289
|
const blockPopup = block.element('popup');
|
|
285
|
-
return (h(Host, { key: '
|
|
290
|
+
return (h(Host, { key: '0e4243022c01b88366ad8f8b750da6de3b9ecfc3', id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { key: '86132e01d44f18bbd89efa002117b20bbf754837', invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ key: '07737ec9049d123c3966bc00e6ccb918cca23236', name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, allowInvalidValue: this.allowInvalidValue, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { key: 'c2102abdd6b594154520b4df8cb8419c81dfd6f1', role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { key: 'be87d5e2a31943b1661aea0d6012db8dcd7002b2', value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
|
|
286
291
|
}
|
|
287
292
|
get el() { return getElement(this); }
|
|
288
293
|
static get watchers() { return {
|
|
@@ -296,6 +301,30 @@ __decorate([
|
|
|
296
301
|
__metadata("design:paramtypes", [Function]),
|
|
297
302
|
__metadata("design:returntype", void 0)
|
|
298
303
|
], Date.prototype, "createLogger", null);
|
|
304
|
+
__decorate([
|
|
305
|
+
ListenTo('keydown', { target: 'window' }),
|
|
306
|
+
__metadata("design:type", Function),
|
|
307
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
308
|
+
__metadata("design:returntype", Promise)
|
|
309
|
+
], Date.prototype, "listenToKeydown", null);
|
|
310
|
+
__decorate([
|
|
311
|
+
ListenTo('keyup', { target: 'window' }),
|
|
312
|
+
__metadata("design:type", Function),
|
|
313
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
314
|
+
__metadata("design:returntype", Promise)
|
|
315
|
+
], Date.prototype, "listenOnKeyup", null);
|
|
316
|
+
__decorate([
|
|
317
|
+
ListenTo('click', { target: 'document' }),
|
|
318
|
+
__metadata("design:type", Function),
|
|
319
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
320
|
+
__metadata("design:returntype", Promise)
|
|
321
|
+
], Date.prototype, "listenOnclick", null);
|
|
322
|
+
__decorate([
|
|
323
|
+
ListenTo('balPopoverPrepare', { target: 'document' }),
|
|
324
|
+
__metadata("design:type", Function),
|
|
325
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
326
|
+
__metadata("design:returntype", Promise)
|
|
327
|
+
], Date.prototype, "listenOnPopoverPrepare", null);
|
|
299
328
|
__decorate([
|
|
300
329
|
ListenToConfig(),
|
|
301
330
|
__metadata("design:type", Function),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { L as Logger } from './log-dfd1c19f.js';
|