@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { balFloatingUi } from "../../../utils/floating-ui";
|
|
2
2
|
import { balBrowser } from "../../../utils/browser";
|
|
3
3
|
import { AbstractVariantRenderer } from "./abstract-variant.renderer";
|
|
4
4
|
export class PopoverVariantRenderer extends AbstractVariantRenderer {
|
|
@@ -12,6 +12,7 @@ export class PopoverVariantRenderer extends AbstractVariantRenderer {
|
|
|
12
12
|
this.triggerEl = null;
|
|
13
13
|
}
|
|
14
14
|
async present(component) {
|
|
15
|
+
const lib = await balFloatingUi.load();
|
|
15
16
|
//
|
|
16
17
|
// identify trigger element or the the closest trigger available
|
|
17
18
|
if (!component.trigger && balBrowser.hasDocument) {
|
|
@@ -40,7 +41,7 @@ export class PopoverVariantRenderer extends AbstractVariantRenderer {
|
|
|
40
41
|
if (isNavMetaDesktopPopup) {
|
|
41
42
|
component.setMinWidth(this.triggerEl.clientWidth);
|
|
42
43
|
}
|
|
43
|
-
this.cleanup = autoUpdate(this.triggerEl, component.containerEl, () => {
|
|
44
|
+
this.cleanup = lib.autoUpdate(this.triggerEl, component.containerEl, () => {
|
|
44
45
|
this.update(component);
|
|
45
46
|
}, {
|
|
46
47
|
ancestorScroll: true,
|
|
@@ -57,6 +58,7 @@ export class PopoverVariantRenderer extends AbstractVariantRenderer {
|
|
|
57
58
|
async update(component) {
|
|
58
59
|
var _a, _b;
|
|
59
60
|
if (this.triggerEl && component.trigger && component.containerEl && component.arrowEl) {
|
|
61
|
+
const lib = await balFloatingUi.load();
|
|
60
62
|
const isNavMetaDesktopPopup = this.placement === 'bottom-end' && this.triggerEl !== component.trigger;
|
|
61
63
|
const referenceRect = (_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
62
64
|
const triggerRect = (_b = component.trigger) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
@@ -64,18 +66,20 @@ export class PopoverVariantRenderer extends AbstractVariantRenderer {
|
|
|
64
66
|
if (balBrowser.hasWindow) {
|
|
65
67
|
isInFrame = !!window.frameElement;
|
|
66
68
|
}
|
|
67
|
-
|
|
69
|
+
lib
|
|
70
|
+
.computePosition(this.triggerEl, component.containerEl, {
|
|
68
71
|
placement: this.placement,
|
|
69
72
|
middleware: [
|
|
70
|
-
isInFrame ? undefined : shift(),
|
|
71
|
-
flip(),
|
|
72
|
-
offset(this.arrow ? 16 : this.offset),
|
|
73
|
-
arrow({
|
|
73
|
+
isInFrame ? undefined : lib.shift(),
|
|
74
|
+
lib.flip(),
|
|
75
|
+
lib.offset(this.arrow ? 16 : this.offset),
|
|
76
|
+
lib.arrow({
|
|
74
77
|
element: component.arrowEl,
|
|
75
78
|
padding: 4,
|
|
76
79
|
}),
|
|
77
80
|
],
|
|
78
|
-
})
|
|
81
|
+
})
|
|
82
|
+
.then(({ x, y, middlewareData, placement }) => {
|
|
79
83
|
if (component.containerEl) {
|
|
80
84
|
Object.assign(component.containerEl.style, {
|
|
81
85
|
left: `${x}px`,
|
|
@@ -8,6 +8,7 @@ import { inheritAttributes } from "../../../utils/attributes";
|
|
|
8
8
|
import { ListenToMutation } from "../../../utils/mutation";
|
|
9
9
|
import { defaultBalAriaForm } from "../../../utils/form";
|
|
10
10
|
import { ListenToFocus } from "../../../utils/focus";
|
|
11
|
+
import { ListenTo } from "../../../utils/listen";
|
|
11
12
|
export class RadioGroup {
|
|
12
13
|
constructor() {
|
|
13
14
|
this.inputId = `bal-rg-${radioGroupIds++}`;
|
|
@@ -767,39 +768,6 @@ export class RadioGroup {
|
|
|
767
768
|
"methodName": "columnsMobileChanged"
|
|
768
769
|
}];
|
|
769
770
|
}
|
|
770
|
-
static get listeners() {
|
|
771
|
-
return [{
|
|
772
|
-
"name": "balChange",
|
|
773
|
-
"method": "listenOnClick",
|
|
774
|
-
"target": "document",
|
|
775
|
-
"capture": true,
|
|
776
|
-
"passive": false
|
|
777
|
-
}, {
|
|
778
|
-
"name": "balFocus",
|
|
779
|
-
"method": "radioFocusListener",
|
|
780
|
-
"target": "document",
|
|
781
|
-
"capture": true,
|
|
782
|
-
"passive": false
|
|
783
|
-
}, {
|
|
784
|
-
"name": "balBlur",
|
|
785
|
-
"method": "radioBlurListener",
|
|
786
|
-
"target": "document",
|
|
787
|
-
"capture": true,
|
|
788
|
-
"passive": false
|
|
789
|
-
}, {
|
|
790
|
-
"name": "reset",
|
|
791
|
-
"method": "resetListener",
|
|
792
|
-
"target": "document",
|
|
793
|
-
"capture": true,
|
|
794
|
-
"passive": false
|
|
795
|
-
}, {
|
|
796
|
-
"name": "keydown",
|
|
797
|
-
"method": "onKeydown",
|
|
798
|
-
"target": "document",
|
|
799
|
-
"capture": false,
|
|
800
|
-
"passive": false
|
|
801
|
-
}];
|
|
802
|
-
}
|
|
803
771
|
}
|
|
804
772
|
__decorate([
|
|
805
773
|
Logger('bal-radio-group'),
|
|
@@ -825,4 +793,34 @@ __decorate([
|
|
|
825
793
|
__metadata("design:paramtypes", []),
|
|
826
794
|
__metadata("design:returntype", void 0)
|
|
827
795
|
], RadioGroup.prototype, "mutationListener", null);
|
|
796
|
+
__decorate([
|
|
797
|
+
ListenTo('balChange', { capture: true, target: 'document' }),
|
|
798
|
+
__metadata("design:type", Function),
|
|
799
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
800
|
+
__metadata("design:returntype", void 0)
|
|
801
|
+
], RadioGroup.prototype, "listenOnClick", null);
|
|
802
|
+
__decorate([
|
|
803
|
+
ListenTo('balFocus', { capture: true, target: 'document' }),
|
|
804
|
+
__metadata("design:type", Function),
|
|
805
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
806
|
+
__metadata("design:returntype", void 0)
|
|
807
|
+
], RadioGroup.prototype, "radioFocusListener", null);
|
|
808
|
+
__decorate([
|
|
809
|
+
ListenTo('balBlur', { capture: true, target: 'document' }),
|
|
810
|
+
__metadata("design:type", Function),
|
|
811
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
812
|
+
__metadata("design:returntype", void 0)
|
|
813
|
+
], RadioGroup.prototype, "radioBlurListener", null);
|
|
814
|
+
__decorate([
|
|
815
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
816
|
+
__metadata("design:type", Function),
|
|
817
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
818
|
+
__metadata("design:returntype", void 0)
|
|
819
|
+
], RadioGroup.prototype, "resetListener", null);
|
|
820
|
+
__decorate([
|
|
821
|
+
ListenTo('keydown', { target: 'document' }),
|
|
822
|
+
__metadata("design:type", Function),
|
|
823
|
+
__metadata("design:paramtypes", [Object]),
|
|
824
|
+
__metadata("design:returntype", void 0)
|
|
825
|
+
], RadioGroup.prototype, "onKeydown", null);
|
|
828
826
|
let radioGroupIds = 0;
|
|
@@ -8,6 +8,7 @@ import { inheritAttributes } from "../../utils/attributes";
|
|
|
8
8
|
import { stopEventBubbling } from "../../utils/form-input";
|
|
9
9
|
import { isSpaceKey } from "../../utils/keyboard";
|
|
10
10
|
import { defaultBalAriaForm } from "../../utils/form";
|
|
11
|
+
import { ListenTo } from "../../utils/listen";
|
|
11
12
|
export class Radio {
|
|
12
13
|
constructor() {
|
|
13
14
|
this.inputId = `bal-rb-${radioIds++}`;
|
|
@@ -246,7 +247,7 @@ export class Radio {
|
|
|
246
247
|
labelAttributes.id = `${id}-lbl`;
|
|
247
248
|
labelAttributes.htmlFor = id;
|
|
248
249
|
}
|
|
249
|
-
return (h(Host, { key: '
|
|
250
|
+
return (h(Host, { key: 'd8027f12093f1564c38b859a1e4dab25e75eba64', "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-hidden": this.disabled ? 'true' : null, "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({ 'bal-focused': focused }, block.class()), block.modifier('radio').class()), block.modifier('select-button').class(this.interface === 'select-button')), block.modifier('invalid').class(this.invalid)), block.modifier('checked').class(this.checked)), 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('invisible').class(this.invisible)), onKeypress: this.onKeypress, onClick: this.onClick }, h("input", Object.assign({ key: '0b1a0313d4161c9f6725f7c8234f49d3678f5fa2', class: Object.assign(Object.assign({}, inputEl.class()), inputEl.modifier('select-button').class(this.interface === 'select-button')), "data-testid": "bal-radio-input", type: "radio", id: id, "aria-labelledby": labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, "aria-checked": `${this.checked}`, name: this.name, value: 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({}, labelEl.class()), labelEl.modifier('radio').class()), labelEl.modifier('checked').class(this.checked)), labelEl.modifier('hidden').class(this.labelHidden)), labelEl.modifier('flat').class(this.flat)) }, labelAttributes, { "data-testid": "bal-radio-label" }), 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-radio-text" }, this.label, h("slot", null)))) : ('')));
|
|
250
251
|
}
|
|
251
252
|
static get is() { return "bal-radio"; }
|
|
252
253
|
static get originalStyleUrls() {
|
|
@@ -741,15 +742,6 @@ export class Radio {
|
|
|
741
742
|
};
|
|
742
743
|
}
|
|
743
744
|
static get elementRef() { return "el"; }
|
|
744
|
-
static get listeners() {
|
|
745
|
-
return [{
|
|
746
|
-
"name": "click",
|
|
747
|
-
"method": "listenOnClick",
|
|
748
|
-
"target": "document",
|
|
749
|
-
"capture": true,
|
|
750
|
-
"passive": false
|
|
751
|
-
}];
|
|
752
|
-
}
|
|
753
745
|
}
|
|
754
746
|
__decorate([
|
|
755
747
|
Logger('bal-radio'),
|
|
@@ -757,4 +749,10 @@ __decorate([
|
|
|
757
749
|
__metadata("design:paramtypes", [Function]),
|
|
758
750
|
__metadata("design:returntype", void 0)
|
|
759
751
|
], Radio.prototype, "createLogger", null);
|
|
752
|
+
__decorate([
|
|
753
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
754
|
+
__metadata("design:type", Function),
|
|
755
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
756
|
+
__metadata("design:returntype", void 0)
|
|
757
|
+
], Radio.prototype, "listenOnClick", null);
|
|
760
758
|
let radioIds = 0;
|
|
@@ -10,6 +10,7 @@ import { raf } from "../../utils/helpers";
|
|
|
10
10
|
import { ListenToBreakpoints } from "../../utils/breakpoints";
|
|
11
11
|
import { ListenToFocus } from "../../utils/focus";
|
|
12
12
|
import { defaultBalAriaForm } from "../../utils/form";
|
|
13
|
+
import { ListenTo } from "../../utils/listen";
|
|
13
14
|
export class Segment {
|
|
14
15
|
constructor() {
|
|
15
16
|
/**
|
|
@@ -297,7 +298,7 @@ export class Segment {
|
|
|
297
298
|
render() {
|
|
298
299
|
const { invalid, isVertical, scrollable, keyboardMode, expanded, isMobile, disabled } = this;
|
|
299
300
|
const block = BEM.block('segment');
|
|
300
|
-
return (h(Host, { key: '
|
|
301
|
+
return (h(Host, { key: 'f5cf0a37669b14db14104214dd142b8bed5266d6', role: "radiogroup", id: this.ariaForm.controlId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('invalid').class(invalid)), block.modifier('vertical').class(isVertical)), block.modifier('scrollable').class(scrollable)), block.modifier('keyboard').class(keyboardMode)), block.modifier('disabled').class(disabled)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { key: '9952482b6bec65e4a7ed05b4cd34d58331805b4e', onSlotchange: this.onSlottedItemsChange })));
|
|
301
302
|
}
|
|
302
303
|
static get is() { return "bal-segment"; }
|
|
303
304
|
static get originalStyleUrls() {
|
|
@@ -588,21 +589,6 @@ export class Segment {
|
|
|
588
589
|
"methodName": "valueChanged"
|
|
589
590
|
}];
|
|
590
591
|
}
|
|
591
|
-
static get listeners() {
|
|
592
|
-
return [{
|
|
593
|
-
"name": "keydown",
|
|
594
|
-
"method": "listenOnKeyDownOutside",
|
|
595
|
-
"target": "document",
|
|
596
|
-
"capture": false,
|
|
597
|
-
"passive": false
|
|
598
|
-
}, {
|
|
599
|
-
"name": "keydown",
|
|
600
|
-
"method": "listenOnKeyDown",
|
|
601
|
-
"target": undefined,
|
|
602
|
-
"capture": false,
|
|
603
|
-
"passive": false
|
|
604
|
-
}];
|
|
605
|
-
}
|
|
606
592
|
}
|
|
607
593
|
__decorate([
|
|
608
594
|
Logger('bal-segment'),
|
|
@@ -634,3 +620,15 @@ __decorate([
|
|
|
634
620
|
__metadata("design:paramtypes", []),
|
|
635
621
|
__metadata("design:returntype", void 0)
|
|
636
622
|
], Segment.prototype, "windowResizeListener", null);
|
|
623
|
+
__decorate([
|
|
624
|
+
ListenTo('keydown', { target: 'document' }),
|
|
625
|
+
__metadata("design:type", Function),
|
|
626
|
+
__metadata("design:paramtypes", []),
|
|
627
|
+
__metadata("design:returntype", void 0)
|
|
628
|
+
], Segment.prototype, "listenOnKeyDownOutside", null);
|
|
629
|
+
__decorate([
|
|
630
|
+
ListenTo('keydown'),
|
|
631
|
+
__metadata("design:type", Function),
|
|
632
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
633
|
+
__metadata("design:returntype", void 0)
|
|
634
|
+
], Segment.prototype, "listenOnKeyDown", null);
|
|
@@ -10,6 +10,7 @@ import { stopEventBubbling } from "../../utils/form-input";
|
|
|
10
10
|
import { BEM } from "../../utils/bem";
|
|
11
11
|
import { Logger } from "../../utils/log";
|
|
12
12
|
import { defaultBalAriaForm } from "../../utils/form";
|
|
13
|
+
import { ListenTo } from "../../utils/listen";
|
|
13
14
|
const isHuman = true;
|
|
14
15
|
const isNotHuman = false;
|
|
15
16
|
export class Select {
|
|
@@ -680,7 +681,7 @@ export class Select {
|
|
|
680
681
|
*/
|
|
681
682
|
render() {
|
|
682
683
|
var _a;
|
|
683
|
-
const Chip = (props) => (h("bal-tag", { key: '
|
|
684
|
+
const Chip = (props) => (h("bal-tag", { key: '4b1cc586f9d9b2a7b08a01b35e60a1b1a9f595cd', size: "", closable: !this.disabled, disabled: this.disabled, invalid: this.invalid, tabindex: -1, onBalCloseClick: _ => this.removeValue(props.value), "data-testid": "bal-select-chip" }, findLabelByValue(this.options, props.value) || props.value));
|
|
684
685
|
const valuesArray = getValues(this.rawValue);
|
|
685
686
|
const block = BEM.block('select');
|
|
686
687
|
const nativeEl = block.element('native');
|
|
@@ -694,19 +695,19 @@ export class Select {
|
|
|
694
695
|
const optionContentEl = optionEl.element('content');
|
|
695
696
|
const optionContentCheckboxEl = optionContentEl.element('checkbox');
|
|
696
697
|
const optionContentLabelEl = optionContentEl.element('label');
|
|
697
|
-
return (h(Host, { key: '
|
|
698
|
+
return (h(Host, { key: '0a96668b7026a0727bb790bd8a832586fac60198', role: "listbox", onClick: this.handleClick, "aria-disabled": this.disabled ? 'true' : null, "data-value": (_a = this.rawValue) === null || _a === void 0 ? void 0 : _a.map(v => findLabelByValue(this.options, v)).join(','), class: Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('disabled').class(this.disabled || this.readonly)), block.modifier('inverted').class(this.inverted)), block.modifier('inverted-footer').class(this.inverted)) }, h("select", { key: '171e653ec3b49ef15466a0f6c337a61573ddc86b', class: Object.assign({}, nativeEl.class()), name: this.name, multiple: this.multiple, required: this.required, tabindex: -1, ref: el => (this.nativeSelectEl = el) }, valuesArray.map((value) => (h("option", { key: value, value: value, selected: true }, value)))), h("bal-popover", { key: '570c0f670158386819df181079f49d0d534da6c7', onBalChange: this.handlePopoverChange, ref: el => (this.popoverElement = el) }, h("div", { key: '121bf963a166d7523954b199bb776accaa84ae7a', "bal-popover-trigger": true, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, controlEl.class()), controlEl.modifier('invalid').class(this.invalid)), controlEl.modifier('disabled').class(this.disabled || this.readonly)), controlEl.modifier('focused').class(this.isPopoverOpen)), controlEl.modifier('inverted-footer').class(this.inverted)) }, h("div", { key: '0bf2ba2f0ef23aaa222b547df175c5dfc4b3d6c6', class: Object.assign(Object.assign({}, controlSelectionsEl.class()), controlSelectionsEl
|
|
698
699
|
.modifier('clickable')
|
|
699
700
|
.class(!this.isPopoverOpen && !this.disabled && !this.readonly)), onClick: this.handleInputClick, ref: el => (this.selectionEl = el) }, valuesArray
|
|
700
701
|
.filter(_ => this.multiple)
|
|
701
|
-
.map((value) => (h(Chip, { value: value }))), h("input", { key: '
|
|
702
|
+
.map((value) => (h(Chip, { value: value }))), h("input", { key: '45872c26a2889e0dd79851bc8ea6854d9f9fe33e', type: "text", class: Object.assign(Object.assign({}, controlInputEl.class()), { 'input': true, 'is-inverted': this.inverted, 'is-danger': this.invalid, 'is-disabled': this.disabled || this.readonly, 'is-clickable': !this.isPopoverOpen && !this.disabled && !this.readonly, 'data-test-select-input': true }), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, "data-testid": "bal-select-input", autocomplete: this.autocomplete, "aria-autocomplete": this.autocomplete === 'off' ? 'none' : null, placeholder: this.inputPlaceholder, readonly: !this.typeahead || this.disabled || this.readonly, contentEditable: this.typeahead, disabled: this.disabled, maxLength: this.maxLength, tabindex: this.balTabindex, onInput: this.handleInput, onClick: this.handleInputClick, onChange: this.handleInputChange, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onKeyPress: this.handleKeyPress, ref: el => (this.inputElement = el) })), !this.freeSolo && !this.loading ? (h("bal-icon", { class: Object.assign(Object.assign(Object.assign({}, controlIconEl.class()), controlIconEl.modifier('loading').class(this.loading)), controlIconEl.modifier('clickable').class(!this.disabled && !this.readonly)), name: !this.inverted ? 'caret-down' : 'caret-up', color: this.disabled || this.readonly
|
|
702
703
|
? 'grey-light'
|
|
703
704
|
: this.inverted
|
|
704
705
|
? 'white'
|
|
705
706
|
: this.invalid
|
|
706
707
|
? 'danger'
|
|
707
|
-
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: '
|
|
708
|
+
: 'primary', turn: this.isPopoverOpen, onClick: ev => this.handleInputClick(ev, true), size: !this.inverted ? '' : 'x-small' })) : ('')), h("bal-popover-content", { key: 'dd84e4a49c36226341c8a064988c8cf4c9b5e828', class: Object.assign({}, popoverContentEl.class()), scrollable: this.scrollable, spaceless: true, expanded: true }, this.optionArray.map((option, index) => (h("button", { key: option.value, type: "button", role: "option", id: option.id, "data-value": option.value, "data-label": option.label, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, optionEl.class()), optionEl
|
|
708
709
|
.modifier('selected')
|
|
709
|
-
.class(valuesArray.includes(option.value) && !(this.typeahead && !this.multiple))), optionEl.modifier('focused').class(this.focusIndex === index)), optionEl.modifier('checkbox').class(this.multiple)), optionEl.modifier('disabled').class(option.disabled === true)), "data-testid": "bal-select-option", disabled: option.disabled, tabIndex: -1, onMouseEnter: () => this.handleOptionMouseEnter(index), onClick: () => this.optionSelected(option) }, h("div", { class: Object.assign({}, optionContentEl.class()) }, h("span", { class: Object.assign({}, optionContentCheckboxEl.class()), style: { display: this.multiple ? 'flex' : 'none' } }, h("bal-checkbox", { checked: valuesArray.includes(option.value), tabindex: -1, nonSubmit: true, flat: true, onBalChange: preventDefault })), h("span", { class: Object.assign({}, optionContentLabelEl.class()), innerHTML: option.innerHTML }))))), h("div", { key: '
|
|
710
|
+
.class(valuesArray.includes(option.value) && !(this.typeahead && !this.multiple))), optionEl.modifier('focused').class(this.focusIndex === index)), optionEl.modifier('checkbox').class(this.multiple)), optionEl.modifier('disabled').class(option.disabled === true)), "data-testid": "bal-select-option", disabled: option.disabled, tabIndex: -1, onMouseEnter: () => this.handleOptionMouseEnter(index), onClick: () => this.optionSelected(option) }, h("div", { class: Object.assign({}, optionContentEl.class()) }, h("span", { class: Object.assign({}, optionContentCheckboxEl.class()), style: { display: this.multiple ? 'flex' : 'none' } }, h("bal-checkbox", { checked: valuesArray.includes(option.value), tabindex: -1, nonSubmit: true, flat: true, onBalChange: preventDefault })), h("span", { class: Object.assign({}, optionContentLabelEl.class()), innerHTML: option.innerHTML }))))), h("div", { key: '824accbd7d97809ed3b91403a959528efaf448ce', class: Object.assign(Object.assign({}, popoverContentEmptyEl.class()), popoverContentEmptyEl
|
|
710
711
|
.modifier('hidden')
|
|
711
712
|
.class(this.noDataLabel === undefined || this.hasOptions() || !this.typeahead || this.selectionOptional)) }, this.noDataLabel)))));
|
|
712
713
|
}
|
|
@@ -1432,27 +1433,6 @@ export class Select {
|
|
|
1432
1433
|
"methodName": "valueWatcher"
|
|
1433
1434
|
}];
|
|
1434
1435
|
}
|
|
1435
|
-
static get listeners() {
|
|
1436
|
-
return [{
|
|
1437
|
-
"name": "click",
|
|
1438
|
-
"method": "listenOnClick",
|
|
1439
|
-
"target": "document",
|
|
1440
|
-
"capture": true,
|
|
1441
|
-
"passive": false
|
|
1442
|
-
}, {
|
|
1443
|
-
"name": "reset",
|
|
1444
|
-
"method": "resetHandler",
|
|
1445
|
-
"target": "document",
|
|
1446
|
-
"capture": true,
|
|
1447
|
-
"passive": false
|
|
1448
|
-
}, {
|
|
1449
|
-
"name": "keydown",
|
|
1450
|
-
"method": "handleKeyDown",
|
|
1451
|
-
"target": "window",
|
|
1452
|
-
"capture": false,
|
|
1453
|
-
"passive": false
|
|
1454
|
-
}];
|
|
1455
|
-
}
|
|
1456
1436
|
}
|
|
1457
1437
|
__decorate([
|
|
1458
1438
|
Logger('bal-select'),
|
|
@@ -1460,4 +1440,22 @@ __decorate([
|
|
|
1460
1440
|
__metadata("design:paramtypes", [Function]),
|
|
1461
1441
|
__metadata("design:returntype", void 0)
|
|
1462
1442
|
], Select.prototype, "createLogger", null);
|
|
1443
|
+
__decorate([
|
|
1444
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
1445
|
+
__metadata("design:type", Function),
|
|
1446
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1447
|
+
__metadata("design:returntype", void 0)
|
|
1448
|
+
], Select.prototype, "listenOnClick", null);
|
|
1449
|
+
__decorate([
|
|
1450
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
1451
|
+
__metadata("design:type", Function),
|
|
1452
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1453
|
+
__metadata("design:returntype", void 0)
|
|
1454
|
+
], Select.prototype, "resetHandler", null);
|
|
1455
|
+
__decorate([
|
|
1456
|
+
ListenTo('keydown', { target: 'window' }),
|
|
1457
|
+
__metadata("design:type", Function),
|
|
1458
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1459
|
+
__metadata("design:returntype", Promise)
|
|
1460
|
+
], Select.prototype, "handleKeyDown", null);
|
|
1463
1461
|
let selectIds = 0;
|
|
@@ -14,6 +14,7 @@ import { ListenToMutation } from "../../utils/mutation";
|
|
|
14
14
|
import { ListenToResize } from "../../utils/resize";
|
|
15
15
|
import { TabNav } from "./components/tab-nav";
|
|
16
16
|
import { toKebabCase } from "../../utils/string";
|
|
17
|
+
import { ListenTo } from "../../utils/listen";
|
|
17
18
|
export class Tabs {
|
|
18
19
|
constructor() {
|
|
19
20
|
this.tabsId = `bal-tabs-${TabsIds++}`;
|
|
@@ -571,13 +572,13 @@ export class Tabs {
|
|
|
571
572
|
const contentPart = expanded ? 'content expanded' : 'content';
|
|
572
573
|
const valueExists = this.value !== undefined && !!this.store.find(o => o.value === this.value);
|
|
573
574
|
const isLinkList = !this.isTabList;
|
|
574
|
-
return (h(Host, { key: '
|
|
575
|
+
return (h(Host, { key: '5cf2cfcf105000a24aabdb6bec167155bfe64d91', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('navbar').class(this.inNavbar)), block.modifier('vertical').class(isVertical)), block.modifier('fullwidth').class(this.expanded || this.fullwidth)), block.modifier('accordion').class(this.accordion)), block.modifier('animated').class(this.animated)), block.modifier('expanding').class(this.accordionState === 8 /* AccordionState.Expanding */)), block.modifier('expanded').class(this.accordionState === 4 /* AccordionState.Expanded */)), block.modifier('collapsing').class(this.accordionState === 2 /* AccordionState.Collapsing */)), block.modifier('collapsed').class(this.accordionState === 1 /* AccordionState.Collapsed */)), "data-value": this.store
|
|
575
576
|
.filter(t => this.isTabActive(t))
|
|
576
577
|
.map(t => t.value)
|
|
577
578
|
.join(','), "data-label": this.store
|
|
578
579
|
.filter(t => this.isTabActive(t))
|
|
579
580
|
.map(t => t.label)
|
|
580
|
-
.join(',') }, isSelect ? (h(TabSelect, { value: this.value, items: tabs, onSelectTab: this.onSelectTab })) : (h(TabNav, { items: tabs, isLinkList: isLinkList, tabsId: this.tabsId, clickable: this.clickable, accordion: this.accordion, isAccordionOpen: this.isAccordionOpen, lineActive: valueExists, inverted: isInverted, animated: this.animated, context: this.context, border: this.border, spaceless: this.spaceless, expanded: this.expanded, isMobile: isMobile, isTouch: isTouch, isVertical: isVertical, inNavbar: this.inNavbar, hasCarousel: hasCarousel, iconPosition: this.iconPosition, verticalColSize: this.verticalColSize, onSelectTab: this.onSelectTab })), h("div", { key: '
|
|
581
|
+
.join(',') }, isSelect ? (h(TabSelect, { value: this.value, items: tabs, onSelectTab: this.onSelectTab })) : (h(TabNav, { items: tabs, isLinkList: isLinkList, tabsId: this.tabsId, clickable: this.clickable, accordion: this.accordion, isAccordionOpen: this.isAccordionOpen, lineActive: valueExists, inverted: isInverted, animated: this.animated, context: this.context, border: this.border, spaceless: this.spaceless, expanded: this.expanded, isMobile: isMobile, isTouch: isTouch, isVertical: isVertical, inNavbar: this.inNavbar, hasCarousel: hasCarousel, iconPosition: this.iconPosition, verticalColSize: this.verticalColSize, onSelectTab: this.onSelectTab })), h("div", { key: '9b07748ace351ce78cd552229f2694e349592d3d', part: contentPart, ref: contentEl => (this.contentEl = contentEl), class: Object.assign({}, block.element('tabs').element('content').class()) }, h("div", { key: '099b85a0205426e163c8b43320cb007c7ea1afc9', id: this.tabsId, class: Object.assign({}, block.element('tabs').element('content').element('wrapper').class()), ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: '6262221556c0f514b4c42138796b7d92097887d0' })))));
|
|
581
582
|
}
|
|
582
583
|
static get is() { return "bal-tabs"; }
|
|
583
584
|
static get originalStyleUrls() {
|
|
@@ -1164,27 +1165,6 @@ export class Tabs {
|
|
|
1164
1165
|
"methodName": "valueChanged"
|
|
1165
1166
|
}];
|
|
1166
1167
|
}
|
|
1167
|
-
static get listeners() {
|
|
1168
|
-
return [{
|
|
1169
|
-
"name": "balWillAnimate",
|
|
1170
|
-
"method": "listenToWillAnimate",
|
|
1171
|
-
"target": "window",
|
|
1172
|
-
"capture": false,
|
|
1173
|
-
"passive": false
|
|
1174
|
-
}, {
|
|
1175
|
-
"name": "balDidAnimate",
|
|
1176
|
-
"method": "listenToDidAnimate",
|
|
1177
|
-
"target": "window",
|
|
1178
|
-
"capture": false,
|
|
1179
|
-
"passive": false
|
|
1180
|
-
}, {
|
|
1181
|
-
"name": "keydown",
|
|
1182
|
-
"method": "listenToKeyDown",
|
|
1183
|
-
"target": undefined,
|
|
1184
|
-
"capture": false,
|
|
1185
|
-
"passive": false
|
|
1186
|
-
}];
|
|
1187
|
-
}
|
|
1188
1168
|
}
|
|
1189
1169
|
__decorate([
|
|
1190
1170
|
Logger('bal-tabs'),
|
|
@@ -1210,6 +1190,24 @@ __decorate([
|
|
|
1210
1190
|
__metadata("design:paramtypes", []),
|
|
1211
1191
|
__metadata("design:returntype", void 0)
|
|
1212
1192
|
], Tabs.prototype, "resizeListener", null);
|
|
1193
|
+
__decorate([
|
|
1194
|
+
ListenTo('balWillAnimate', { target: 'window' }),
|
|
1195
|
+
__metadata("design:type", Function),
|
|
1196
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1197
|
+
__metadata("design:returntype", void 0)
|
|
1198
|
+
], Tabs.prototype, "listenToWillAnimate", null);
|
|
1199
|
+
__decorate([
|
|
1200
|
+
ListenTo('balDidAnimate', { target: 'window' }),
|
|
1201
|
+
__metadata("design:type", Function),
|
|
1202
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1203
|
+
__metadata("design:returntype", void 0)
|
|
1204
|
+
], Tabs.prototype, "listenToDidAnimate", null);
|
|
1205
|
+
__decorate([
|
|
1206
|
+
ListenTo('keydown'),
|
|
1207
|
+
__metadata("design:type", Function),
|
|
1208
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1209
|
+
__metadata("design:returntype", void 0)
|
|
1210
|
+
], Tabs.prototype, "listenToKeyDown", null);
|
|
1213
1211
|
__decorate([
|
|
1214
1212
|
ListenToConfig(),
|
|
1215
1213
|
__metadata("design:type", Function),
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
1
2
|
import { h, Host, } from "@stencil/core";
|
|
2
3
|
import { getInputTarget, inputHandleBlur, inputHandleChange, inputHandleClick, inputHandleFocus, inputHandleHostClick, inputHandleReset, inputListenOnClick, inputSetBlur, inputSetFocus, } from "../../utils/form-input";
|
|
3
4
|
import { debounceEvent } from "../../utils/helpers";
|
|
4
5
|
import { inheritAttributes } from "../../utils/attributes";
|
|
5
6
|
import { BEM } from "../../utils/bem";
|
|
6
7
|
import { defaultBalAriaForm } from "../../utils/form";
|
|
8
|
+
import { ListenTo } from "../../utils/listen";
|
|
7
9
|
export class Textarea {
|
|
8
10
|
constructor() {
|
|
9
11
|
this.inputId = `bal-textarea-${TextareaIds++}`;
|
|
@@ -105,7 +107,7 @@ export class Textarea {
|
|
|
105
107
|
const value = this.getValue();
|
|
106
108
|
const block = BEM.block('textarea');
|
|
107
109
|
const elNative = block.element('native');
|
|
108
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: 'ad09331d104fcf7279b9cc2c403fa4d032b47c32', onClick: this.handleClick, "aria-disabled": this.disabled ? 'true' : null, class: Object.assign({}, block.class()) }, h("textarea", Object.assign({ key: '00278cc7b951ca19e01dd9157506185782eb8ee4', class: Object.assign(Object.assign({}, elNative.class()), { 'textarea': true, 'is-disabled': this.disabled || this.readonly, 'is-danger': this.invalid, 'clickable': this.clickable }), "data-testid": "bal-textarea-input", ref: inputEl => (this.nativeInput = inputEl), name: this.name, 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, disabled: this.disabled, readonly: this.readonly, required: this.required, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, minLength: this.minLength, maxLength: this.maxLength, placeholder: this.placeholder, inputMode: this.inputmode, value: this.value, cols: this.cols, rows: this.rows, wrap: this.wrap, onFocus: this.onFocus, onInput: ev => this.onInput(ev), onBlur: this.onBlur, onClick: this.onClick, onKeyPress: e => this.balKeyPress.emit(e) }, this.inheritedAttributes), value, h("slot", { key: '70ac340a5c61d29a355e115bdec0635eca4367dc' }))));
|
|
109
111
|
}
|
|
110
112
|
static get is() { return "bal-textarea"; }
|
|
111
113
|
static get originalStyleUrls() {
|
|
@@ -656,20 +658,17 @@ export class Textarea {
|
|
|
656
658
|
"methodName": "debounceChanged"
|
|
657
659
|
}];
|
|
658
660
|
}
|
|
659
|
-
static get listeners() {
|
|
660
|
-
return [{
|
|
661
|
-
"name": "click",
|
|
662
|
-
"method": "listenOnClick",
|
|
663
|
-
"target": "document",
|
|
664
|
-
"capture": true,
|
|
665
|
-
"passive": false
|
|
666
|
-
}, {
|
|
667
|
-
"name": "reset",
|
|
668
|
-
"method": "resetHandler",
|
|
669
|
-
"target": "document",
|
|
670
|
-
"capture": true,
|
|
671
|
-
"passive": false
|
|
672
|
-
}];
|
|
673
|
-
}
|
|
674
661
|
}
|
|
662
|
+
__decorate([
|
|
663
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
664
|
+
__metadata("design:type", Function),
|
|
665
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
666
|
+
__metadata("design:returntype", void 0)
|
|
667
|
+
], Textarea.prototype, "listenOnClick", null);
|
|
668
|
+
__decorate([
|
|
669
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
670
|
+
__metadata("design:type", Function),
|
|
671
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
672
|
+
__metadata("design:returntype", void 0)
|
|
673
|
+
], Textarea.prototype, "resetHandler", null);
|
|
675
674
|
let TextareaIds = 0;
|
|
@@ -10,6 +10,7 @@ import { BEM } from "../../utils/bem";
|
|
|
10
10
|
import { i18nBalTimeInput } from "./bal-time-input.i18n";
|
|
11
11
|
import { defaultBalAriaForm } from "../../utils/form";
|
|
12
12
|
import { Logger } from "../../utils/log";
|
|
13
|
+
import { ListenTo } from "../../utils/listen";
|
|
13
14
|
export class TimeInput {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.inputId = `bal-time-input-${timeInputIds++}`;
|
|
@@ -130,7 +131,7 @@ export class TimeInput {
|
|
|
130
131
|
const value = this.focused ? this.getRawValue() : this.getFormattedValue();
|
|
131
132
|
const block = BEM.block('time-input');
|
|
132
133
|
const native = block.element('native');
|
|
133
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '67ec2306c4cf0a9e6b5cee8af80f930e5dc4ee33', "aria-disabled": this.disabled ? 'true' : null, class: Object.assign({}, block.class()) }, h("bal-input-group", { key: '1873f5acc2647eb4b4d4f2634693caafadb98341', disabled: this.disabled || this.readonly, invalid: this.invalid }, h("input", Object.assign({ key: '846d18705dd58f61a418cb4c25fab603e3c9264d', type: "time", class: Object.assign({ 'input': true, 'is-disabled': this.disabled || this.readonly, 'is-danger': this.invalid, 'has-focus': this.focused, 'show-placeholder': !this.focused && (this.value === '' || this.value === undefined), 'has-value': this.value !== '' && this.value !== undefined }, native.class()), ref: input => (this.nativeInput = input), 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, name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, placeholder: `${i18nBalTimeInput[this.language].hours}:${i18nBalTimeInput[this.language].minutes}`, value: value, onInput: ev => this.onInput(ev), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeydown(e), onKeyPress: e => this.balKeyPress.emit(e) }, this.inheritedAttributes)), h("bal-icon", { key: 'd34d154f6bafaa5fe925a9333796e5c2b1c41dfc', "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', name: "clock" }))));
|
|
134
135
|
}
|
|
135
136
|
static get is() { return "bal-time-input"; }
|
|
136
137
|
static get originalStyleUrls() {
|
|
@@ -549,21 +550,6 @@ export class TimeInput {
|
|
|
549
550
|
"methodName": "debounceChanged"
|
|
550
551
|
}];
|
|
551
552
|
}
|
|
552
|
-
static get listeners() {
|
|
553
|
-
return [{
|
|
554
|
-
"name": "click",
|
|
555
|
-
"method": "listenOnClick",
|
|
556
|
-
"target": "document",
|
|
557
|
-
"capture": true,
|
|
558
|
-
"passive": false
|
|
559
|
-
}, {
|
|
560
|
-
"name": "reset",
|
|
561
|
-
"method": "resetHandler",
|
|
562
|
-
"target": "document",
|
|
563
|
-
"capture": true,
|
|
564
|
-
"passive": false
|
|
565
|
-
}];
|
|
566
|
-
}
|
|
567
553
|
}
|
|
568
554
|
__decorate([
|
|
569
555
|
Logger('bal-time-input'),
|
|
@@ -571,6 +557,18 @@ __decorate([
|
|
|
571
557
|
__metadata("design:paramtypes", [Function]),
|
|
572
558
|
__metadata("design:returntype", void 0)
|
|
573
559
|
], TimeInput.prototype, "createLogger", null);
|
|
560
|
+
__decorate([
|
|
561
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
562
|
+
__metadata("design:type", Function),
|
|
563
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
564
|
+
__metadata("design:returntype", void 0)
|
|
565
|
+
], TimeInput.prototype, "listenOnClick", null);
|
|
566
|
+
__decorate([
|
|
567
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
568
|
+
__metadata("design:type", Function),
|
|
569
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
570
|
+
__metadata("design:returntype", void 0)
|
|
571
|
+
], TimeInput.prototype, "resetHandler", null);
|
|
574
572
|
__decorate([
|
|
575
573
|
ListenToConfig(),
|
|
576
574
|
__metadata("design:type", Function),
|
|
@@ -5,7 +5,7 @@ import { BEM } from "../../utils/bem";
|
|
|
5
5
|
import { balBrowser } from "../../utils/browser";
|
|
6
6
|
import { balDevice } from "../../utils/device";
|
|
7
7
|
import { showContainerElement, showArrowElement, hideContainerElement, hideArrowElement } from "./bal-tooltip.util";
|
|
8
|
-
import {
|
|
8
|
+
import { balFloatingUi } from "../../utils/floating-ui";
|
|
9
9
|
export class Tooltip {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.tooltipId = `bal-to-${tooltipIds++}`;
|
|
@@ -91,7 +91,8 @@ export class Tooltip {
|
|
|
91
91
|
showArrowElement(this.arrowEl);
|
|
92
92
|
this.trigger.classList.add('bal-tooltip-trigger');
|
|
93
93
|
this.presented = true;
|
|
94
|
-
|
|
94
|
+
const lib = await balFloatingUi.load();
|
|
95
|
+
this.cleanup = lib.autoUpdate(this.trigger, this.containerEl, () => {
|
|
95
96
|
this.update();
|
|
96
97
|
}, {
|
|
97
98
|
ancestorScroll: true,
|
|
@@ -133,18 +134,21 @@ export class Tooltip {
|
|
|
133
134
|
if (balBrowser.hasWindow) {
|
|
134
135
|
isInFrame = !!window.frameElement;
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
+
const lib = await balFloatingUi.load();
|
|
138
|
+
lib
|
|
139
|
+
.computePosition(this.trigger, this.containerEl, {
|
|
137
140
|
placement: this.placement,
|
|
138
141
|
middleware: [
|
|
139
|
-
isInFrame ? undefined : shift(),
|
|
140
|
-
flip(),
|
|
141
|
-
offset(8),
|
|
142
|
-
arrow({
|
|
142
|
+
isInFrame ? undefined : lib.shift(),
|
|
143
|
+
lib.flip(),
|
|
144
|
+
lib.offset(8),
|
|
145
|
+
lib.arrow({
|
|
143
146
|
element: this.arrowEl,
|
|
144
147
|
padding: 4,
|
|
145
148
|
}),
|
|
146
149
|
],
|
|
147
|
-
})
|
|
150
|
+
})
|
|
151
|
+
.then(({ x, y, middlewareData, placement }) => {
|
|
148
152
|
const side = placement.split('-')[0];
|
|
149
153
|
const staticSide = {
|
|
150
154
|
top: 'bottom',
|
|
@@ -191,7 +195,7 @@ export class Tooltip {
|
|
|
191
195
|
const arrowBlock = block.element('arrow');
|
|
192
196
|
const innerBlock = block.element('inner');
|
|
193
197
|
const innerContentBlock = innerBlock.element('content');
|
|
194
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'be527a1b6a3bc6c4958692998c35a935ec529484', class: Object.assign({}, block.class()), role: "dialog", "aria-hidden": `${this.presented !== true}`, "aria-modal": `${this.presented === true}`, "aria-presented": `${this.presented === true}` }, h("div", { key: '1ef5d833c3796839e5f265651867d2a3d17c0251', class: Object.assign({}, containerBlock.class()), ref: containerEl => (this.containerEl = containerEl) }, h("div", { key: '0f29a68c79453bbde28ed48464e91b49caf46ada', class: Object.assign({}, arrowBlock.class()), ref: arrowEl => (this.arrowEl = arrowEl) }), h("bal-stack", { key: '71509e320a90d1e5e8fd92fc689352bd352a5557', layout: "vertical", class: Object.assign({}, innerBlock.class()) }, h("div", { key: '56628c0fce715db27e5a39385d7b698aabc070e1', class: Object.assign({}, innerContentBlock.class()), ref: contentEl => (this.contentEl = contentEl), "data-test": "bal-tooltip-content" }, h("slot", { key: 'a303a3a3b414eaddd6cba0a3ee585451a29be532' }))))));
|
|
195
199
|
}
|
|
196
200
|
static get is() { return "bal-tooltip"; }
|
|
197
201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by .build/version.js
|
|
2
|
-
export const VERSION = '
|
|
2
|
+
export const VERSION = '17.0.0';
|