@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
package/components/all.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
|
|
|
27
27
|
import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
30
|
-
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
30
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
31
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
32
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -145,7 +144,6 @@ export { BalDate, defineBalDate }
|
|
|
145
144
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
146
145
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
147
146
|
export { BalDivider, defineBalDivider }
|
|
148
|
-
export { BalDocApp, defineBalDocApp }
|
|
149
147
|
export { BalDropdown, defineBalDropdown }
|
|
150
148
|
export { BalField, defineBalField }
|
|
151
149
|
export { BalFieldControl, defineBalFieldControl }
|
package/components/all.js
CHANGED
|
@@ -27,7 +27,6 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
|
|
|
27
27
|
import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
30
|
-
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
30
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
31
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
32
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -145,7 +144,6 @@ export { BalDate, defineBalDate }
|
|
|
145
144
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
146
145
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
147
146
|
export { BalDivider, defineBalDivider }
|
|
148
|
-
export { BalDocApp, defineBalDocApp }
|
|
149
147
|
export { BalDropdown, defineBalDropdown }
|
|
150
148
|
export { BalField, defineBalField }
|
|
151
149
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -264,7 +262,6 @@ export const defineAllComponents = () => {
|
|
|
264
262
|
defineBalDateCalendar()
|
|
265
263
|
defineBalDateCalendarCell()
|
|
266
264
|
defineBalDivider()
|
|
267
|
-
defineBalDocApp()
|
|
268
265
|
defineBalDropdown()
|
|
269
266
|
defineBalField()
|
|
270
267
|
defineBalFieldControl()
|
package/components/bal-app.js
CHANGED
|
@@ -1,4 +1,94 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
+
import { b as balBrowser } from './browser.js';
|
|
4
|
+
import { b as balDevice } from './device.js';
|
|
5
|
+
import { j as debounce, o as rIC, l as rLCP } from './helpers.js';
|
|
6
|
+
import { L as Logger } from './log.js';
|
|
7
|
+
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
+
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
+
|
|
10
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
11
|
+
const BalAppStyle0 = balAppCss;
|
|
12
|
+
|
|
13
|
+
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
+
this.notifyResize = async () => {
|
|
19
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
+
const doc = document.documentElement;
|
|
21
|
+
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.animated = true;
|
|
25
|
+
this.ready = false;
|
|
26
|
+
}
|
|
27
|
+
createLogger(log) {
|
|
28
|
+
this.log = log;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
updateBalAnimated(this.animated);
|
|
32
|
+
if (balBrowser.hasWindow) {
|
|
33
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
+
this.debouncedNotify();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
rIC(() => {
|
|
39
|
+
this.ready = true;
|
|
40
|
+
startFocusVisible();
|
|
41
|
+
});
|
|
42
|
+
rLCP(() => {
|
|
43
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
44
|
+
const doc = document.documentElement;
|
|
45
|
+
doc.classList.add('lcp-ready');
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
disconnectedCallback() {
|
|
50
|
+
if (balBrowser.hasWindow) {
|
|
51
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async setFocus(elements) {
|
|
55
|
+
if (this.focusVisible) {
|
|
56
|
+
this.focusVisible.setFocus(elements);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
return (h(Host, { key: '7e5b5c9164dd2fc89e1a41278904b6e020b535a7', class: {
|
|
61
|
+
'bal-app': true,
|
|
62
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
63
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
64
|
+
} }, h("slot", { key: '5eac7462d067b17d8ff18ceb5d6ae8aa4e040d39' })));
|
|
65
|
+
}
|
|
66
|
+
get el() { return this; }
|
|
67
|
+
static get style() { return BalAppStyle0; }
|
|
68
|
+
}, [4, "bal-app", {
|
|
69
|
+
"animated": [516],
|
|
70
|
+
"ready": [1540],
|
|
71
|
+
"setFocus": [64]
|
|
72
|
+
}]);
|
|
73
|
+
__decorate([
|
|
74
|
+
Logger('bal-app'),
|
|
75
|
+
__metadata("design:type", Function),
|
|
76
|
+
__metadata("design:paramtypes", [Function]),
|
|
77
|
+
__metadata("design:returntype", void 0)
|
|
78
|
+
], App.prototype, "createLogger", null);
|
|
79
|
+
function defineCustomElement$1() {
|
|
80
|
+
if (typeof customElements === "undefined") {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const components = ["bal-app"];
|
|
84
|
+
components.forEach(tagName => { switch (tagName) {
|
|
85
|
+
case "bal-app":
|
|
86
|
+
if (!customElements.get(tagName)) {
|
|
87
|
+
customElements.define(tagName, App);
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
} });
|
|
91
|
+
}
|
|
2
92
|
|
|
3
93
|
const BalApp = App;
|
|
4
94
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
2
3
|
import { i as inheritAttributes } from './attributes.js';
|
|
3
4
|
import { l as rLCP } from './helpers.js';
|
|
5
|
+
import { L as ListenTo } from './listen.js';
|
|
4
6
|
import { d as defineCustomElement$2 } from './bal-icon2.js';
|
|
5
7
|
import { d as defineCustomElement$1 } from './bal-spinner2.js';
|
|
6
8
|
|
|
@@ -196,7 +198,13 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
196
198
|
"value": [8],
|
|
197
199
|
"aria": [16],
|
|
198
200
|
"isLargestContentPaintDone": [32]
|
|
199
|
-
}
|
|
201
|
+
}]);
|
|
202
|
+
__decorate([
|
|
203
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
204
|
+
__metadata("design:type", Function),
|
|
205
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
206
|
+
__metadata("design:returntype", void 0)
|
|
207
|
+
], Button.prototype, "listenOnClick", null);
|
|
200
208
|
function defineCustomElement() {
|
|
201
209
|
if (typeof customElements === "undefined") {
|
|
202
210
|
return;
|
|
@@ -4,6 +4,7 @@ import { j as debounce, l as rLCP, m as raf } from './helpers.js';
|
|
|
4
4
|
import { B as BEM } from './bem.js';
|
|
5
5
|
import { s as stopEventBubbling } from './form-input.js';
|
|
6
6
|
import { L as ListenToBreakpoints } from './breakpoints.decorator.js';
|
|
7
|
+
import { L as ListenTo } from './listen.js';
|
|
7
8
|
import { d as defineCustomElement$7 } from './bal-button2.js';
|
|
8
9
|
import { d as defineCustomElement$6 } from './bal-card2.js';
|
|
9
10
|
import { d as defineCustomElement$5 } from './bal-card-content2.js';
|
|
@@ -408,7 +409,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
408
409
|
const leftControlTitle = i18nControlLabel[this.language].left;
|
|
409
410
|
const rightControlTitle = i18nControlLabel[this.language].right;
|
|
410
411
|
const controlItems = this.getAllControlItems();
|
|
411
|
-
return (h(Host, { key: '
|
|
412
|
+
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() })) : ('')));
|
|
412
413
|
}
|
|
413
414
|
get el() { return this; }
|
|
414
415
|
static get style() { return BalCarouselStyle0; }
|
|
@@ -433,7 +434,13 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
433
434
|
"configChanged": [64],
|
|
434
435
|
"previous": [64],
|
|
435
436
|
"next": [64]
|
|
436
|
-
}
|
|
437
|
+
}]);
|
|
438
|
+
__decorate([
|
|
439
|
+
ListenTo('touchmove', { target: 'window', passive: false }),
|
|
440
|
+
__metadata("design:type", Function),
|
|
441
|
+
__metadata("design:paramtypes", [Object]),
|
|
442
|
+
__metadata("design:returntype", Promise)
|
|
443
|
+
], Carousel.prototype, "blockVerticalScrolling", null);
|
|
437
444
|
__decorate([
|
|
438
445
|
ListenToMutation({ tags: ['bal-carousel-item'], characterData: false }),
|
|
439
446
|
__metadata("design:type", Function),
|
|
@@ -458,6 +465,12 @@ __decorate([
|
|
|
458
465
|
__metadata("design:paramtypes", []),
|
|
459
466
|
__metadata("design:returntype", void 0)
|
|
460
467
|
], Carousel.prototype, "resizeListener", null);
|
|
468
|
+
__decorate([
|
|
469
|
+
ListenTo('keydown'),
|
|
470
|
+
__metadata("design:type", Function),
|
|
471
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
472
|
+
__metadata("design:returntype", void 0)
|
|
473
|
+
], Carousel.prototype, "listenToKeyDown", null);
|
|
461
474
|
__decorate([
|
|
462
475
|
ListenToConfig(),
|
|
463
476
|
__metadata("design:type", Function),
|
|
@@ -7,6 +7,7 @@ import { i as inheritAttributes } from './attributes.js';
|
|
|
7
7
|
import { B as BEM } from './bem.js';
|
|
8
8
|
import { L as Logger } from './log.js';
|
|
9
9
|
import { d as defaultBalAriaForm } from './form.js';
|
|
10
|
+
import { L as ListenTo } from './listen.js';
|
|
10
11
|
import { d as defineCustomElement$3 } from './bal-checkbox2.js';
|
|
11
12
|
import { d as defineCustomElement$2 } from './bal-icon2.js';
|
|
12
13
|
import { L as ListenToFocus } from './focus.decorator.js';
|
|
@@ -314,7 +315,7 @@ const CheckboxGroup = /*@__PURE__*/ proxyCustomElement(class CheckboxGroup exten
|
|
|
314
315
|
"setValue": [64],
|
|
315
316
|
"getOptionByValue": [64],
|
|
316
317
|
"setAriaForm": [64]
|
|
317
|
-
},
|
|
318
|
+
}, undefined, {
|
|
318
319
|
"options": ["optionChanged"],
|
|
319
320
|
"invalid": ["invalidChanged"],
|
|
320
321
|
"disabled": ["disabledChanged"],
|
|
@@ -348,6 +349,30 @@ __decorate([
|
|
|
348
349
|
__metadata("design:paramtypes", []),
|
|
349
350
|
__metadata("design:returntype", void 0)
|
|
350
351
|
], CheckboxGroup.prototype, "mutationListener", null);
|
|
352
|
+
__decorate([
|
|
353
|
+
ListenTo('balChange', { capture: true, target: 'document' }),
|
|
354
|
+
__metadata("design:type", Function),
|
|
355
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
356
|
+
__metadata("design:returntype", void 0)
|
|
357
|
+
], CheckboxGroup.prototype, "listenOnClick", null);
|
|
358
|
+
__decorate([
|
|
359
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
360
|
+
__metadata("design:type", Function),
|
|
361
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
362
|
+
__metadata("design:returntype", void 0)
|
|
363
|
+
], CheckboxGroup.prototype, "resetHandler", null);
|
|
364
|
+
__decorate([
|
|
365
|
+
ListenTo('balFocus', { capture: true, target: 'document' }),
|
|
366
|
+
__metadata("design:type", Function),
|
|
367
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
368
|
+
__metadata("design:returntype", void 0)
|
|
369
|
+
], CheckboxGroup.prototype, "checkboxFocusListener", null);
|
|
370
|
+
__decorate([
|
|
371
|
+
ListenTo('balBlur', { capture: true, target: 'document' }),
|
|
372
|
+
__metadata("design:type", Function),
|
|
373
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
374
|
+
__metadata("design:returntype", void 0)
|
|
375
|
+
], CheckboxGroup.prototype, "checkboxBlurListener", null);
|
|
351
376
|
let checkboxGroupIds = 0;
|
|
352
377
|
function defineCustomElement$1() {
|
|
353
378
|
if (typeof customElements === "undefined") {
|
|
@@ -8,6 +8,7 @@ import { L as Logger } from './log.js';
|
|
|
8
8
|
import { F as FOCUS_KEYS } from './focus-visible.js';
|
|
9
9
|
import { d as defaultBalAriaForm } from './form.js';
|
|
10
10
|
import { a as ariaBooleanToString } from './aria.js';
|
|
11
|
+
import { L as ListenTo } from './listen.js';
|
|
11
12
|
import { d as defineCustomElement$1 } from './bal-icon2.js';
|
|
12
13
|
import { a as isSpaceKey } from './keyboard.helpers.js';
|
|
13
14
|
|
|
@@ -277,7 +278,7 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
277
278
|
labelAttributes.id = `${id}-lbl`;
|
|
278
279
|
labelAttributes.htmlFor = id;
|
|
279
280
|
}
|
|
280
|
-
return (h(Host, { key: '
|
|
281
|
+
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)))) : ('')));
|
|
281
282
|
}
|
|
282
283
|
get el() { return this; }
|
|
283
284
|
static get style() { return BalCheckboxStyle0; }
|
|
@@ -311,13 +312,25 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
311
312
|
"setButtonTabindex": [64],
|
|
312
313
|
"updateState": [64],
|
|
313
314
|
"setAriaForm": [64]
|
|
314
|
-
}
|
|
315
|
+
}]);
|
|
315
316
|
__decorate([
|
|
316
317
|
Logger('bal-checkbox'),
|
|
317
318
|
__metadata("design:type", Function),
|
|
318
319
|
__metadata("design:paramtypes", [Function]),
|
|
319
320
|
__metadata("design:returntype", void 0)
|
|
320
321
|
], Checkbox.prototype, "createLogger", null);
|
|
322
|
+
__decorate([
|
|
323
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
324
|
+
__metadata("design:type", Function),
|
|
325
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
326
|
+
__metadata("design:returntype", void 0)
|
|
327
|
+
], Checkbox.prototype, "listenOnClick", null);
|
|
328
|
+
__decorate([
|
|
329
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
330
|
+
__metadata("design:type", Function),
|
|
331
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
332
|
+
__metadata("design:returntype", void 0)
|
|
333
|
+
], Checkbox.prototype, "resetHandler", null);
|
|
321
334
|
let checkboxIds = 0;
|
|
322
335
|
function defineCustomElement() {
|
|
323
336
|
if (typeof customElements === "undefined") {
|
package/components/bal-date.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
-
import { a as autoUpdate, c as computePosition, o as offset, f as flip } from './floating-ui.dom.esm.js';
|
|
4
3
|
import { i as i18nBalDate } from './bal-date.i18n.js';
|
|
5
4
|
import { B as BEM } from './bem.js';
|
|
6
5
|
import { L as Logger } from './log.js';
|
|
@@ -8,6 +7,8 @@ import { i as inheritAttributes } from './attributes.js';
|
|
|
8
7
|
import { s as stopEventBubbling } from './form-input.js';
|
|
9
8
|
import { n as debounceEvent } from './helpers.js';
|
|
10
9
|
import { d as defaultBalAriaForm } from './form.js';
|
|
10
|
+
import { b as balFloatingUi } from './floating-ui.js';
|
|
11
|
+
import { L as ListenTo } from './listen.js';
|
|
11
12
|
import { d as defineCustomElement$6 } from './bal-date-calendar2.js';
|
|
12
13
|
import { d as defineCustomElement$5 } from './bal-date-calendar-cell2.js';
|
|
13
14
|
import { d as defineCustomElement$4 } from './bal-icon2.js';
|
|
@@ -246,10 +247,11 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
246
247
|
*/
|
|
247
248
|
async expand() {
|
|
248
249
|
if (this.referenceEl && this.floatingEl) {
|
|
250
|
+
const lib = await balFloatingUi.load();
|
|
249
251
|
this.balPopoverPrepare.emit(this.inputId);
|
|
250
252
|
this.balWillAnimate.emit();
|
|
251
253
|
this.isExpanded = true;
|
|
252
|
-
this.popupCleanup = autoUpdate(this.referenceEl, this.floatingEl, () => {
|
|
254
|
+
this.popupCleanup = lib.autoUpdate(this.referenceEl, this.floatingEl, () => {
|
|
253
255
|
this.updatePosition(this.referenceEl, this.floatingEl);
|
|
254
256
|
});
|
|
255
257
|
}
|
|
@@ -266,11 +268,14 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
266
268
|
}
|
|
267
269
|
return this.isExpanded;
|
|
268
270
|
}
|
|
269
|
-
updatePosition(referenceEl, floatingEl) {
|
|
270
|
-
|
|
271
|
+
async updatePosition(referenceEl, floatingEl) {
|
|
272
|
+
const lib = await balFloatingUi.load();
|
|
273
|
+
lib
|
|
274
|
+
.computePosition(referenceEl, floatingEl, {
|
|
271
275
|
placement: 'bottom-start',
|
|
272
|
-
middleware: [offset(4), flip({ crossAxis: false })],
|
|
273
|
-
})
|
|
276
|
+
middleware: [lib.offset(4), lib.flip({ crossAxis: false })],
|
|
277
|
+
})
|
|
278
|
+
.then(({ x, y }) => {
|
|
274
279
|
Object.assign(floatingEl.style, {
|
|
275
280
|
left: `${x}px`,
|
|
276
281
|
top: `${y}px`,
|
|
@@ -286,7 +291,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
286
291
|
const block = BEM.block('date');
|
|
287
292
|
const blockIcon = block.element('icon');
|
|
288
293
|
const blockPopup = block.element('popup');
|
|
289
|
-
return (h(Host, { key: '
|
|
294
|
+
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 }))));
|
|
290
295
|
}
|
|
291
296
|
get el() { return this; }
|
|
292
297
|
static get watchers() { return {
|
|
@@ -327,7 +332,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
327
332
|
"setBlur": [64],
|
|
328
333
|
"getInputElement": [64],
|
|
329
334
|
"setAriaForm": [64]
|
|
330
|
-
},
|
|
335
|
+
}, undefined, {
|
|
331
336
|
"value": ["valueChanged"],
|
|
332
337
|
"debounce": ["debounceChanged"]
|
|
333
338
|
}]);
|
|
@@ -337,6 +342,30 @@ __decorate([
|
|
|
337
342
|
__metadata("design:paramtypes", [Function]),
|
|
338
343
|
__metadata("design:returntype", void 0)
|
|
339
344
|
], Date.prototype, "createLogger", null);
|
|
345
|
+
__decorate([
|
|
346
|
+
ListenTo('keydown', { target: 'window' }),
|
|
347
|
+
__metadata("design:type", Function),
|
|
348
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
349
|
+
__metadata("design:returntype", Promise)
|
|
350
|
+
], Date.prototype, "listenToKeydown", null);
|
|
351
|
+
__decorate([
|
|
352
|
+
ListenTo('keyup', { target: 'window' }),
|
|
353
|
+
__metadata("design:type", Function),
|
|
354
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
355
|
+
__metadata("design:returntype", Promise)
|
|
356
|
+
], Date.prototype, "listenOnKeyup", null);
|
|
357
|
+
__decorate([
|
|
358
|
+
ListenTo('click', { target: 'document' }),
|
|
359
|
+
__metadata("design:type", Function),
|
|
360
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
361
|
+
__metadata("design:returntype", Promise)
|
|
362
|
+
], Date.prototype, "listenOnclick", null);
|
|
363
|
+
__decorate([
|
|
364
|
+
ListenTo('balPopoverPrepare', { target: 'document' }),
|
|
365
|
+
__metadata("design:type", Function),
|
|
366
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
367
|
+
__metadata("design:returntype", Promise)
|
|
368
|
+
], Date.prototype, "listenOnPopoverPrepare", null);
|
|
340
369
|
__decorate([
|
|
341
370
|
ListenToConfig(),
|
|
342
371
|
__metadata("design:type", Function),
|
|
@@ -5,10 +5,11 @@ import { L as Logger } from './log.js';
|
|
|
5
5
|
import { s as stopEventBubbling } from './form-input.js';
|
|
6
6
|
import { i as inheritAttributes } from './attributes.js';
|
|
7
7
|
import { d as defaultBalAriaForm } from './form.js';
|
|
8
|
-
import { o as rIC, b as waitAfterFramePaint, d as waitAfterIdleCallback } from './helpers.js';
|
|
8
|
+
import { o as rIC, b as waitAfterFramePaint, k as addEventListener, r as removeEventListener, d as waitAfterIdleCallback } from './helpers.js';
|
|
9
|
+
import { b as balBrowser } from './browser.js';
|
|
9
10
|
import { a as areArraysEqual } from './array.js';
|
|
10
11
|
import { l as lodash_isnil } from './index3.js';
|
|
11
|
-
import {
|
|
12
|
+
import { b as balFloatingUi } from './floating-ui.js';
|
|
12
13
|
import { D as DropdownOptionUtil } from './option.js';
|
|
13
14
|
import { b as isArrowDownKey, c as isArrowUpKey, i as isEnterKey, d as isEscapeKey, a as isSpaceKey } from './keyboard.helpers.js';
|
|
14
15
|
import { a as ariaBooleanToString } from './aria.js';
|
|
@@ -233,11 +234,13 @@ const DropdownOptionList = ({ inputId, isExpanded, rawOptions, isDisabled, hasPr
|
|
|
233
234
|
|
|
234
235
|
class DropdownPopupUtil {
|
|
235
236
|
constructor() {
|
|
236
|
-
this.updatePanelPosition = (referenceEl, floatingEl) => () => {
|
|
237
|
-
|
|
237
|
+
this.updatePanelPosition = (lib, referenceEl, floatingEl) => () => {
|
|
238
|
+
lib
|
|
239
|
+
.computePosition(referenceEl, floatingEl, {
|
|
238
240
|
placement: 'bottom-start',
|
|
239
|
-
middleware: [flip(), shift()],
|
|
240
|
-
})
|
|
241
|
+
middleware: [lib.flip(), lib.shift()],
|
|
242
|
+
})
|
|
243
|
+
.then(({ x, y }) => {
|
|
241
244
|
Object.assign(floatingEl.style, {
|
|
242
245
|
left: `${x}px`,
|
|
243
246
|
top: `${y}px`,
|
|
@@ -261,7 +264,8 @@ class DropdownPopupUtil {
|
|
|
261
264
|
async expandList() {
|
|
262
265
|
var _a;
|
|
263
266
|
if (this.component.panelEl) {
|
|
264
|
-
|
|
267
|
+
const lib = await balFloatingUi.load();
|
|
268
|
+
this.component.panelCleanup = lib.autoUpdate(this.component.el, this.component.panelEl, this.updatePanelPosition(lib, this.component.el, this.component.panelEl));
|
|
265
269
|
}
|
|
266
270
|
this.component.isExpanded = true;
|
|
267
271
|
await ((_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusSelected());
|
|
@@ -410,7 +414,16 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
410
414
|
* LIFECYCLE
|
|
411
415
|
* ------------------------------------------------------
|
|
412
416
|
*/
|
|
413
|
-
this.
|
|
417
|
+
this.hasConnected = false;
|
|
418
|
+
this.listenToOptionChange = (ev) => {
|
|
419
|
+
this.optionUtil.listenToOptionChange(ev);
|
|
420
|
+
};
|
|
421
|
+
this.listenOnClickOutside = (ev) => {
|
|
422
|
+
this.eventsUtil.handleOutsideClick(ev);
|
|
423
|
+
};
|
|
424
|
+
this.resetHandler = (ev) => {
|
|
425
|
+
this.formSubmitUtil.handle(ev);
|
|
426
|
+
};
|
|
414
427
|
/**
|
|
415
428
|
* EVENT BINDING
|
|
416
429
|
* ------------------------------------------------------
|
|
@@ -534,7 +547,7 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
534
547
|
this.valueUtil.valueChanged(newValue, oldValue);
|
|
535
548
|
}
|
|
536
549
|
connectedCallback() {
|
|
537
|
-
if (this.
|
|
550
|
+
if (!this.hasConnected) {
|
|
538
551
|
this.eventsUtil.connectedCallback(this);
|
|
539
552
|
this.valueUtil.connectedCallback(this);
|
|
540
553
|
this.popupUtil.connectedCallback(this);
|
|
@@ -542,7 +555,23 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
542
555
|
this.formSubmitUtil.connectedCallback(this);
|
|
543
556
|
this.focusUtil.connectedCallback(this);
|
|
544
557
|
this.autoFillUtil.connectedCallback(this);
|
|
545
|
-
|
|
558
|
+
}
|
|
559
|
+
addEventListener(this.el, 'balOptionChange', this.listenToOptionChange);
|
|
560
|
+
if (balBrowser.hasDocument) {
|
|
561
|
+
addEventListener(document, 'click', this.listenOnClickOutside);
|
|
562
|
+
addEventListener(document, 'reset', this.resetHandler, {
|
|
563
|
+
capture: true,
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
this.hasConnected = true;
|
|
567
|
+
}
|
|
568
|
+
disconnectedCallback() {
|
|
569
|
+
removeEventListener(this.el, 'balOptionChange', this.listenToOptionChange);
|
|
570
|
+
if (balBrowser.hasDocument) {
|
|
571
|
+
removeEventListener(document, 'click', this.listenOnClickOutside);
|
|
572
|
+
removeEventListener(document, 'reset', this.resetHandler, {
|
|
573
|
+
capture: true,
|
|
574
|
+
});
|
|
546
575
|
}
|
|
547
576
|
}
|
|
548
577
|
async componentWillRender() {
|
|
@@ -567,15 +596,6 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
567
596
|
this.region = state.region;
|
|
568
597
|
this.httpFormSubmit = state.httpFormSubmit;
|
|
569
598
|
}
|
|
570
|
-
async listenToOptionChange(ev) {
|
|
571
|
-
this.optionUtil.listenToOptionChange(ev);
|
|
572
|
-
}
|
|
573
|
-
listenOnClickOutside(ev) {
|
|
574
|
-
this.eventsUtil.handleOutsideClick(ev);
|
|
575
|
-
}
|
|
576
|
-
resetHandler(ev) {
|
|
577
|
-
this.formSubmitUtil.handle(ev);
|
|
578
|
-
}
|
|
579
599
|
/**
|
|
580
600
|
* PUBLIC METHODS
|
|
581
601
|
* ------------------------------------------------------
|
|
@@ -636,7 +656,7 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
636
656
|
*/
|
|
637
657
|
render() {
|
|
638
658
|
const block = BEM.block('dropdown');
|
|
639
|
-
return (h(Host, { key: '
|
|
659
|
+
return (h(Host, { key: 'fea0abd6ec54fd7724201d2f772a93949932bd44', class: Object.assign({}, block.class()), tabindex: "-1", id: `${this.inputId}` }, h("div", { key: '259704fb0bec9453131bad395e084fba43aa03dd', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('root').class()), block.element('root').modifier('focused').class(this.hasFocus)), 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)), "data-test": "bal-dropdown-trigger", onClick: ev => this.eventsUtil.handleClick(ev) }, h("span", { key: '7fddec690d760b4c38ea29221468a7d14df18d5d', class: 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())) }, h(DropdownValue, { key: 'e73533861ddd53aac505fdc78bf051a0449cf655', filled: this.valueUtil.isFilled(), chips: this.chips, placeholder: this.placeholder, choices: this.choices, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, onRemoveChip: option => this.valueUtil.removeOption(option) })), h(DropdownInput, { key: '7299e6b670a1b2283b1383040d9a75f29c76fe84', name: this.name, 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) }), h(DropdownNativeSelect, { key: '97da430cab5eef476c4404eb27dcc65edf0b8d6e', name: this.name, httpFormSubmit: this.httpFormSubmit, multiple: this.multiple, required: this.required, disabled: this.valueUtil.isDisabled(), rawValue: this.rawValue, refSelectEl: el => (this.selectEl = el) }), h(DropdownIcon, { key: 'c2d77ffd50a1062f772123954fd95b44200b04c3', icon: this.icon, language: this.language, loading: this.loading, clearable: this.clearable, invalid: this.invalid, expanded: this.isExpanded, filled: this.valueUtil.isFilled(), disabled: this.valueUtil.isDisabled() })), h(DropdownOptionList, { key: 'd4c82b91392692aad6a1095fa6b25bad7ecefffa', 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) }, h("slot", { key: '1d9732ce6013922a304a7d52b34e79a128fb22d3' }))));
|
|
640
660
|
}
|
|
641
661
|
get el() { return this; }
|
|
642
662
|
static get watchers() { return {
|
|
@@ -682,7 +702,7 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
682
702
|
"close": [64],
|
|
683
703
|
"select": [64],
|
|
684
704
|
"setAriaForm": [64]
|
|
685
|
-
},
|
|
705
|
+
}, undefined, {
|
|
686
706
|
"options": ["optionChanged"],
|
|
687
707
|
"value": ["valueChanged"]
|
|
688
708
|
}]);
|
|
@@ -6,6 +6,7 @@ import { L as Logger } from './log.js';
|
|
|
6
6
|
import { B as BEM } from './bem.js';
|
|
7
7
|
import { F as FileUploadRejectionReason } from './bal-file-upload.type.js';
|
|
8
8
|
import { d as defaultBalAriaForm } from './form.js';
|
|
9
|
+
import { L as ListenTo } from './listen.js';
|
|
9
10
|
import { d as defineCustomElement$b } from './bal-card2.js';
|
|
10
11
|
import { d as defineCustomElement$a } from './bal-heading2.js';
|
|
11
12
|
import { d as defineCustomElement$9 } from './bal-icon2.js';
|
|
@@ -339,16 +340,16 @@ const FileUpload = /*@__PURE__*/ proxyCustomElement(class FileUpload extends HTM
|
|
|
339
340
|
*/
|
|
340
341
|
render() {
|
|
341
342
|
const id = this.ariaForm.controlId || this.fileUploadId;
|
|
342
|
-
return (h(Host, { key: '
|
|
343
|
+
return (h(Host, { key: '474742770b56c2c9200dc402db53bb4266592c72', onClick: this.onHostClick, "aria-disabled": this.disabled ? 'true' : null, class: {
|
|
343
344
|
'bal-file-upload': true,
|
|
344
|
-
} }, h("div", { key: '
|
|
345
|
+
} }, h("div", { key: '8ce2bbbf975c8fb0dfa9b177d1a107401b7d0a33', class: {
|
|
345
346
|
'file': true,
|
|
346
347
|
'is-disabled': this.disabled || this.readonly || this.loading,
|
|
347
348
|
'is-danger': this.invalid,
|
|
348
|
-
} }, h("label", { key: '
|
|
349
|
+
} }, h("label", { key: 'c1e836840cf74f73702af305f1d99ebca2de52b8', htmlFor: id, ref: el => (this.labelEl = el), class: {
|
|
349
350
|
'file-label': true,
|
|
350
351
|
'is-disabled': this.disabled || this.loading || this.readonly,
|
|
351
|
-
} }, h("input", { key: '
|
|
352
|
+
} }, h("input", { key: '3ae311e7c1c0e550b3551e9f1e70ce65c54c0c83', class: "file-input", type: "file", id: id, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, name: this.name, multiple: this.multiple, disabled: this.disabled || this.loading || this.readonly, readonly: this.readonly, required: this.required, accept: this.accept, onClick: this.onInputClick, onChange: this.onInputChange, onFocus: this.onInputFocus, onBlur: this.onInputBlur, ref: el => (this.nativeInput = el), "data-testid": "bal-file-upload-input" }), this.loading ? (h("span", { class: "file-cta" }, h("bal-spinner", null))) : (h("span", { class: "file-cta" }, h("span", { class: "file-icon" }, h("bal-icon", { name: "upload", size: "medium", color: this.disabled || this.loading || this.readonly ? 'grey-light' : this.invalid ? 'danger' : 'blue' })), h("span", { class: "file-label", "data-testid": "bal-file-upload-label" }, this.label))))), this.hasFileList && this.files.length > 0 ? (h(FileListComponent, { files: this.files, disabled: this.disabled || this.readonly || this.loading, subTitle: this.subTitle, onRemoveFile: this.onRemoveFile })) : ('')));
|
|
352
353
|
}
|
|
353
354
|
get el() { return this; }
|
|
354
355
|
static get watchers() { return {
|
|
@@ -380,7 +381,7 @@ const FileUpload = /*@__PURE__*/ proxyCustomElement(class FileUpload extends HTM
|
|
|
380
381
|
"setBlur": [64],
|
|
381
382
|
"getInputElement": [64],
|
|
382
383
|
"setAriaForm": [64]
|
|
383
|
-
},
|
|
384
|
+
}, undefined, {
|
|
384
385
|
"value": ["onValueChange"]
|
|
385
386
|
}]);
|
|
386
387
|
__decorate([
|
|
@@ -389,6 +390,12 @@ __decorate([
|
|
|
389
390
|
__metadata("design:paramtypes", [Function]),
|
|
390
391
|
__metadata("design:returntype", void 0)
|
|
391
392
|
], FileUpload.prototype, "createLogger", null);
|
|
393
|
+
__decorate([
|
|
394
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
395
|
+
__metadata("design:type", Function),
|
|
396
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
397
|
+
__metadata("design:returntype", void 0)
|
|
398
|
+
], FileUpload.prototype, "resetHandler", null);
|
|
392
399
|
let FileUploadIds = 0;
|
|
393
400
|
function defineCustomElement$1() {
|
|
394
401
|
if (typeof customElements === "undefined") {
|