@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,20 +1,20 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
5
5
|
import { s as stopEventBubbling } from './form-input-264ad739.js';
|
|
6
6
|
import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
7
7
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
8
|
-
import { m as rIC, b as waitAfterFramePaint, d as waitAfterIdleCallback } from './helpers-72ae7307.js';
|
|
8
|
+
import { m as rIC, b as waitAfterFramePaint, k as addEventListener, r as removeEventListener, d as waitAfterIdleCallback } from './helpers-72ae7307.js';
|
|
9
|
+
import { b as balBrowser } from './browser-a8073d92.js';
|
|
9
10
|
import { a as areArraysEqual } from './array-4c09dfe3.js';
|
|
10
11
|
import { l as lodash_isnil } from './index-82aff103.js';
|
|
11
|
-
import {
|
|
12
|
+
import { b as balFloatingUi } from './floating-ui-82413f23.js';
|
|
12
13
|
import { D as DropdownOptionUtil } from './option-01553dab.js';
|
|
13
14
|
import { i as isArrowDownKey, a as isArrowUpKey, b as isEnterKey, c as isEscapeKey, d as isSpaceKey } from './keyboard.helpers-b2dd6393.js';
|
|
14
15
|
import { a as ariaBooleanToString } from './aria-d5877698.js';
|
|
15
16
|
import { d as defaultConfig } from './config.default-7efdc82d.js';
|
|
16
17
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
17
|
-
import './browser-a8073d92.js';
|
|
18
18
|
import './icons.constant-a7885631.js';
|
|
19
19
|
import './config.utils-6ac6c9bd.js';
|
|
20
20
|
import './index-95ee0c4b.js';
|
|
@@ -238,11 +238,13 @@ const DropdownOptionList = ({ inputId, isExpanded, rawOptions, isDisabled, hasPr
|
|
|
238
238
|
|
|
239
239
|
class DropdownPopupUtil {
|
|
240
240
|
constructor() {
|
|
241
|
-
this.updatePanelPosition = (referenceEl, floatingEl) => () => {
|
|
242
|
-
|
|
241
|
+
this.updatePanelPosition = (lib, referenceEl, floatingEl) => () => {
|
|
242
|
+
lib
|
|
243
|
+
.computePosition(referenceEl, floatingEl, {
|
|
243
244
|
placement: 'bottom-start',
|
|
244
|
-
middleware: [flip(), shift()],
|
|
245
|
-
})
|
|
245
|
+
middleware: [lib.flip(), lib.shift()],
|
|
246
|
+
})
|
|
247
|
+
.then(({ x, y }) => {
|
|
246
248
|
Object.assign(floatingEl.style, {
|
|
247
249
|
left: `${x}px`,
|
|
248
250
|
top: `${y}px`,
|
|
@@ -266,7 +268,8 @@ class DropdownPopupUtil {
|
|
|
266
268
|
async expandList() {
|
|
267
269
|
var _a;
|
|
268
270
|
if (this.component.panelEl) {
|
|
269
|
-
|
|
271
|
+
const lib = await balFloatingUi.load();
|
|
272
|
+
this.component.panelCleanup = lib.autoUpdate(this.component.el, this.component.panelEl, this.updatePanelPosition(lib, this.component.el, this.component.panelEl));
|
|
270
273
|
}
|
|
271
274
|
this.component.isExpanded = true;
|
|
272
275
|
await ((_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusSelected());
|
|
@@ -414,7 +417,16 @@ const Dropdown = class {
|
|
|
414
417
|
* LIFECYCLE
|
|
415
418
|
* ------------------------------------------------------
|
|
416
419
|
*/
|
|
417
|
-
this.
|
|
420
|
+
this.hasConnected = false;
|
|
421
|
+
this.listenToOptionChange = (ev) => {
|
|
422
|
+
this.optionUtil.listenToOptionChange(ev);
|
|
423
|
+
};
|
|
424
|
+
this.listenOnClickOutside = (ev) => {
|
|
425
|
+
this.eventsUtil.handleOutsideClick(ev);
|
|
426
|
+
};
|
|
427
|
+
this.resetHandler = (ev) => {
|
|
428
|
+
this.formSubmitUtil.handle(ev);
|
|
429
|
+
};
|
|
418
430
|
/**
|
|
419
431
|
* EVENT BINDING
|
|
420
432
|
* ------------------------------------------------------
|
|
@@ -538,7 +550,7 @@ const Dropdown = class {
|
|
|
538
550
|
this.valueUtil.valueChanged(newValue, oldValue);
|
|
539
551
|
}
|
|
540
552
|
connectedCallback() {
|
|
541
|
-
if (this.
|
|
553
|
+
if (!this.hasConnected) {
|
|
542
554
|
this.eventsUtil.connectedCallback(this);
|
|
543
555
|
this.valueUtil.connectedCallback(this);
|
|
544
556
|
this.popupUtil.connectedCallback(this);
|
|
@@ -546,7 +558,23 @@ const Dropdown = class {
|
|
|
546
558
|
this.formSubmitUtil.connectedCallback(this);
|
|
547
559
|
this.focusUtil.connectedCallback(this);
|
|
548
560
|
this.autoFillUtil.connectedCallback(this);
|
|
549
|
-
|
|
561
|
+
}
|
|
562
|
+
addEventListener(this.el, 'balOptionChange', this.listenToOptionChange);
|
|
563
|
+
if (balBrowser.hasDocument) {
|
|
564
|
+
addEventListener(document, 'click', this.listenOnClickOutside);
|
|
565
|
+
addEventListener(document, 'reset', this.resetHandler, {
|
|
566
|
+
capture: true,
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
this.hasConnected = true;
|
|
570
|
+
}
|
|
571
|
+
disconnectedCallback() {
|
|
572
|
+
removeEventListener(this.el, 'balOptionChange', this.listenToOptionChange);
|
|
573
|
+
if (balBrowser.hasDocument) {
|
|
574
|
+
removeEventListener(document, 'click', this.listenOnClickOutside);
|
|
575
|
+
removeEventListener(document, 'reset', this.resetHandler, {
|
|
576
|
+
capture: true,
|
|
577
|
+
});
|
|
550
578
|
}
|
|
551
579
|
}
|
|
552
580
|
async componentWillRender() {
|
|
@@ -571,15 +599,6 @@ const Dropdown = class {
|
|
|
571
599
|
this.region = state.region;
|
|
572
600
|
this.httpFormSubmit = state.httpFormSubmit;
|
|
573
601
|
}
|
|
574
|
-
async listenToOptionChange(ev) {
|
|
575
|
-
this.optionUtil.listenToOptionChange(ev);
|
|
576
|
-
}
|
|
577
|
-
listenOnClickOutside(ev) {
|
|
578
|
-
this.eventsUtil.handleOutsideClick(ev);
|
|
579
|
-
}
|
|
580
|
-
resetHandler(ev) {
|
|
581
|
-
this.formSubmitUtil.handle(ev);
|
|
582
|
-
}
|
|
583
602
|
/**
|
|
584
603
|
* PUBLIC METHODS
|
|
585
604
|
* ------------------------------------------------------
|
|
@@ -640,7 +659,7 @@ const Dropdown = class {
|
|
|
640
659
|
*/
|
|
641
660
|
render() {
|
|
642
661
|
const block = BEM.block('dropdown');
|
|
643
|
-
return (h(Host, { key: '
|
|
662
|
+
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' }))));
|
|
644
663
|
}
|
|
645
664
|
get el() { return getElement(this); }
|
|
646
665
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { f as deepReady, b as waitAfterFramePaint } from './helpers-72ae7307.js';
|
|
4
4
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { a as areArraysEqual } from './array-4c09dfe3.js';
|
|
4
4
|
import { s as stopEventBubbling, i as inputHandleHostClick, a as inputHandleFocus, b as inputHandleBlur, c as inputSetFocus, d as inputSetBlur } from './form-input-264ad739.js';
|
|
@@ -6,6 +6,7 @@ import { L as Logger } from './log-dfd1c19f.js';
|
|
|
6
6
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
7
7
|
import { F as FileUploadRejectionReason } from './bal-file-upload.type-2a70f4ec.js';
|
|
8
8
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
9
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
9
10
|
import './index-82aff103.js';
|
|
10
11
|
import './index-95ee0c4b.js';
|
|
11
12
|
import './_commonjsHelpers-1c8beb5f.js';
|
|
@@ -335,16 +336,16 @@ const FileUpload = class {
|
|
|
335
336
|
*/
|
|
336
337
|
render() {
|
|
337
338
|
const id = this.ariaForm.controlId || this.fileUploadId;
|
|
338
|
-
return (h(Host, { key: '
|
|
339
|
+
return (h(Host, { key: '474742770b56c2c9200dc402db53bb4266592c72', onClick: this.onHostClick, "aria-disabled": this.disabled ? 'true' : null, class: {
|
|
339
340
|
'bal-file-upload': true,
|
|
340
|
-
} }, h("div", { key: '
|
|
341
|
+
} }, h("div", { key: '8ce2bbbf975c8fb0dfa9b177d1a107401b7d0a33', class: {
|
|
341
342
|
'file': true,
|
|
342
343
|
'is-disabled': this.disabled || this.readonly || this.loading,
|
|
343
344
|
'is-danger': this.invalid,
|
|
344
|
-
} }, h("label", { key: '
|
|
345
|
+
} }, h("label", { key: 'c1e836840cf74f73702af305f1d99ebca2de52b8', htmlFor: id, ref: el => (this.labelEl = el), class: {
|
|
345
346
|
'file-label': true,
|
|
346
347
|
'is-disabled': this.disabled || this.loading || this.readonly,
|
|
347
|
-
} }, h("input", { key: '
|
|
348
|
+
} }, 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 })) : ('')));
|
|
348
349
|
}
|
|
349
350
|
get el() { return getElement(this); }
|
|
350
351
|
static get watchers() { return {
|
|
@@ -357,6 +358,12 @@ __decorate([
|
|
|
357
358
|
__metadata("design:paramtypes", [Function]),
|
|
358
359
|
__metadata("design:returntype", void 0)
|
|
359
360
|
], FileUpload.prototype, "createLogger", null);
|
|
361
|
+
__decorate([
|
|
362
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
363
|
+
__metadata("design:type", Function),
|
|
364
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
365
|
+
__metadata("design:returntype", void 0)
|
|
366
|
+
], FileUpload.prototype, "resetHandler", null);
|
|
360
367
|
let FileUploadIds = 0;
|
|
361
368
|
FileUpload.style = BalFileUploadStyle0;
|
|
362
369
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import './index-95ee0c4b.js';
|
|
4
4
|
import './index-bba06972.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { s as scrollToFirstInvalidField } from './form-fb8dd9f5.js';
|
|
3
3
|
import { d as waitAfterIdleCallback, b as waitAfterFramePaint } from './helpers-72ae7307.js';
|
|
4
4
|
import './browser-a8073d92.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
3
3
|
import { b as balBrowser } from './browser-a8073d92.js';
|
|
4
4
|
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { p as preventDefault } from './utils-9fbab1d3.js';
|
|
5
5
|
import { B as BalScrollHandler } from './scroll-f4b20848.js';
|
|
6
|
-
import { b as balBreakpoints } from './breakpoints.subject-
|
|
7
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator-
|
|
6
|
+
import { b as balBreakpoints } from './breakpoints.subject-ae98d0fa.js';
|
|
7
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator-9981606e.js';
|
|
8
8
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
9
9
|
import { b as balBrowser } from './browser-a8073d92.js';
|
|
10
10
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
11
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
11
12
|
import './index-82aff103.js';
|
|
12
13
|
import './helpers-72ae7307.js';
|
|
13
14
|
import './icons.constant-a7885631.js';
|
|
14
15
|
import './config.utils-6ac6c9bd.js';
|
|
15
16
|
import './device-8c6d2881.js';
|
|
16
17
|
import './listener-04842ae9.js';
|
|
17
|
-
import './tokens.esm-
|
|
18
|
+
import './tokens.esm-ed9fb455.js';
|
|
18
19
|
|
|
19
20
|
const balHintCss = ":root{--bal-hint-content-background:var(--bal-color-grey-2)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}@media (hover: hover)and (pointer: fine){.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle,.bal-hint__icon:focus svg,.bal-hint__icon:focus g,.bal-hint__icon:focus path,.bal-hint__icon:focus circle{fill:var(--bal-color-light-blue-5)}}.bal-hint__content{background:var(--bal-hint-content-background);display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";
|
|
20
21
|
const BalHintStyle0 = balHintCss;
|
|
@@ -2064,12 +2065,12 @@ const Popover = class {
|
|
|
2064
2065
|
clearTimeout(this.componentDidRenderTimer);
|
|
2065
2066
|
this.componentDidRenderTimer = setTimeout(() => {
|
|
2066
2067
|
var _a;
|
|
2067
|
-
const triggerWidth = (_a = this.
|
|
2068
|
+
const triggerWidth = (_a = this.el) === null || _a === void 0 ? void 0 : _a.clientWidth;
|
|
2068
2069
|
if (triggerWidth) {
|
|
2069
|
-
this.
|
|
2070
|
+
this.el.style.maxWidth = `${triggerWidth}px`;
|
|
2070
2071
|
}
|
|
2071
2072
|
else {
|
|
2072
|
-
this.
|
|
2073
|
+
this.el.style.maxWidth = `initial`;
|
|
2073
2074
|
}
|
|
2074
2075
|
});
|
|
2075
2076
|
}
|
|
@@ -2087,7 +2088,7 @@ const Popover = class {
|
|
|
2087
2088
|
async clickOnOutside(ev) {
|
|
2088
2089
|
var _a;
|
|
2089
2090
|
if (this.active) {
|
|
2090
|
-
if (!this.
|
|
2091
|
+
if (!this.el.contains(ev.target)) {
|
|
2091
2092
|
this.active = false;
|
|
2092
2093
|
}
|
|
2093
2094
|
if ((_a = this.backdropElement) === null || _a === void 0 ? void 0 : _a.isEqualNode(ev.target)) {
|
|
@@ -2102,7 +2103,7 @@ const Popover = class {
|
|
|
2102
2103
|
}
|
|
2103
2104
|
}
|
|
2104
2105
|
async tabOutside(ev) {
|
|
2105
|
-
if (ev.key === 'Tab' && !this.
|
|
2106
|
+
if (ev.key === 'Tab' && !this.el.contains(document.activeElement) && this.active) {
|
|
2106
2107
|
await this.toggle();
|
|
2107
2108
|
}
|
|
2108
2109
|
}
|
|
@@ -2167,7 +2168,7 @@ const Popover = class {
|
|
|
2167
2168
|
* ------------------------------------------------------
|
|
2168
2169
|
*/
|
|
2169
2170
|
get footMobileNav() {
|
|
2170
|
-
return this.
|
|
2171
|
+
return this.el.closest('[slot="meta-mobile-foot"]');
|
|
2171
2172
|
}
|
|
2172
2173
|
get modifierOffset() {
|
|
2173
2174
|
return {
|
|
@@ -2187,13 +2188,13 @@ const Popover = class {
|
|
|
2187
2188
|
};
|
|
2188
2189
|
}
|
|
2189
2190
|
get triggerElement() {
|
|
2190
|
-
return this.
|
|
2191
|
+
return this.el.querySelector('[bal-popover-trigger]');
|
|
2191
2192
|
}
|
|
2192
2193
|
get menuElement() {
|
|
2193
|
-
return this.
|
|
2194
|
+
return this.el.querySelector('bal-popover-content');
|
|
2194
2195
|
}
|
|
2195
2196
|
get menuInnerElement() {
|
|
2196
|
-
return this.
|
|
2197
|
+
return this.el.querySelector('.bal-popover__content__inner');
|
|
2197
2198
|
}
|
|
2198
2199
|
getBackdropHeight() {
|
|
2199
2200
|
if (balBrowser.hasWindow) {
|
|
@@ -2214,13 +2215,13 @@ const Popover = class {
|
|
|
2214
2215
|
*/
|
|
2215
2216
|
render() {
|
|
2216
2217
|
const block = BEM.block('popover');
|
|
2217
|
-
return (h(Host, { key: '
|
|
2218
|
+
return (h(Host, { key: '997e5fefb0e6fe103b1732f084f8a7963eb319e5', "aria-presented": this.active ? 'true' : null, "data-id": this.popoverId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('active').class(this.active)), block.modifier('tooltip').class(this.tooltip)), block.modifier('arrow').class(this.arrow)), block.modifier('hint').class(this.hint)), block.modifier('backdrop').class(this.backdrop)) }, !this.mobileTop && (h("div", { key: 'd5cb75c1951b9fe7cfd22ef86ee677461eecf5fc', ref: el => {
|
|
2218
2219
|
this.backdropElement = el;
|
|
2219
2220
|
}, class: Object.assign({}, block.element('backdrop').class(this.backdrop && this.active)), style: {
|
|
2220
2221
|
'--bal-popover-backdrop-height': `${this.backdropHeight}rem`,
|
|
2221
|
-
} })), h("slot", { key: '
|
|
2222
|
+
} })), h("slot", { key: '41482b0196b230235349f86cfb413cc8b35a8dad' })));
|
|
2222
2223
|
}
|
|
2223
|
-
get
|
|
2224
|
+
get el() { return getElement(this); }
|
|
2224
2225
|
static get watchers() { return {
|
|
2225
2226
|
"active": ["activeChanged"]
|
|
2226
2227
|
}; }
|
|
@@ -2231,6 +2232,30 @@ __decorate([
|
|
|
2231
2232
|
__metadata("design:paramtypes", [Function]),
|
|
2232
2233
|
__metadata("design:returntype", void 0)
|
|
2233
2234
|
], Popover.prototype, "createLogger", null);
|
|
2235
|
+
__decorate([
|
|
2236
|
+
ListenTo('balPopoverPrepare', { target: 'document' }),
|
|
2237
|
+
__metadata("design:type", Function),
|
|
2238
|
+
__metadata("design:paramtypes", [CustomEvent]),
|
|
2239
|
+
__metadata("design:returntype", void 0)
|
|
2240
|
+
], Popover.prototype, "handlePopoverPrepare", null);
|
|
2241
|
+
__decorate([
|
|
2242
|
+
ListenTo('click', { target: 'document' }),
|
|
2243
|
+
__metadata("design:type", Function),
|
|
2244
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
2245
|
+
__metadata("design:returntype", Promise)
|
|
2246
|
+
], Popover.prototype, "clickOnOutside", null);
|
|
2247
|
+
__decorate([
|
|
2248
|
+
ListenTo('keydown', { target: 'window' }),
|
|
2249
|
+
__metadata("design:type", Function),
|
|
2250
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
2251
|
+
__metadata("design:returntype", void 0)
|
|
2252
|
+
], Popover.prototype, "handleKeyUp", null);
|
|
2253
|
+
__decorate([
|
|
2254
|
+
ListenTo('keyup', { target: 'document' }),
|
|
2255
|
+
__metadata("design:type", Function),
|
|
2256
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
2257
|
+
__metadata("design:returntype", Promise)
|
|
2258
|
+
], Popover.prototype, "tabOutside", null);
|
|
2234
2259
|
__decorate([
|
|
2235
2260
|
ListenToBreakpoints(),
|
|
2236
2261
|
__metadata("design:type", Function),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { c as commonjsGlobal } from './_commonjsHelpers-1c8beb5f.js';
|
|
4
4
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
3
3
|
|
|
4
4
|
const balInputGroupCss = ".bal-input-group{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:-ms-flexbox;display:flex;width:100%;-ms-flex-align:center;align-items:center;min-height:3rem;gap:.25rem;border:var(--bal-border-width-normal) solid var(--bal-color-border);border-radius:var(--bal-radius-normal);background:var(--bal-color-white)}.bal-input-group .input{min-height:2.75rem;height:2.75rem;border:none;border-radius:0;background:none !important;padding-left:0;padding-right:0;padding-bottom:calc(.5em - .313rem);padding-top:calc(.5em - .313rem)}.bal-input-group .bal-select__control{border:none;min-height:2.75rem}.bal-input-group .bal-select__control__input{padding-left:0 !important;padding-right:0 !important}.bal-input-group .bal-icon{min-width:3rem}.bal-input-group .bal-tag .bal-icon{min-width:unset}.bal-input-group>*:first-child.bal-select .bal-select__control{padding-left:.625rem}.bal-input-group>*:first-child.bal-input .input{padding-left:.625rem}.bal-input-group>*:last-child.bal-input .input{padding-right:.625rem}.bal-input-group>*:first-child.bal-input-date .input{padding-left:.625rem}.bal-input-group>*:last-child.bal-input-date .input{padding-right:.625rem}.bal-input-group>*:first-child.input{padding-left:.625rem}.bal-input-group>*:last-child.input{padding-right:.625rem}.bal-input-group>*:last-child.bal-tag{margin-right:.625rem}.bal-input-group>*:first-child.bal-tag{margin-left:.625rem}.bal-input-group.is-hovered,.bal-input-group.is-hovered .input,.bal-input-group.is-hovered .bal-select__control,.bal-input-group:hover,.bal-input-group:hover .input,.bal-input-group:hover .bal-select__control{background:var(--bal-color-grey-1)}.bal-input-group--is-danger,.bal-input-group--is-danger .input{border-color:var(--bal-color-border-danger);background:var(--bal-color-danger-1)}.bal-input-group--is-danger svg g,.bal-input-group--is-danger svg path,.bal-input-group--is-danger svg circle{fill:var(--bal-color-border-danger)}.bal-input-group.bal-input-group--is-danger,.bal-input-group.bal-input-group--is-danger .input{border-color:var(--bal-color-border-danger);background:var(--bal-color-danger-1)}.bal-input-group.bal-input-group--is-danger svg,.bal-input-group.bal-input-group--is-danger svg g,.bal-input-group.bal-input-group--is-danger svg path,.bal-input-group.bal-input-group--is-danger svg circle{fill:var(--bal-color-border-danger)}.bal-input-group.bal-input-group--is-success,.bal-input-group.bal-input-group--is-success .input{border-color:var(--bal-color-border-success);background:var(--bal-color-success-1)}.bal-input-group.bal-input-group--is-success svg,.bal-input-group.bal-input-group--is-success svg g,.bal-input-group.bal-input-group--is-success svg path,.bal-input-group.bal-input-group--is-success svg circle{fill:var(--bal-color-border-success)}.bal-input-group.bal-input-group--is-warning,.bal-input-group.bal-input-group--is-warning .input{border-color:var(--bal-color-border-warning);background:var(--bal-color-warning-1)}.bal-input-group.bal-input-group--is-warning svg,.bal-input-group.bal-input-group--is-warning svg g,.bal-input-group.bal-input-group--is-warning svg path,.bal-input-group.bal-input-group--is-warning svg circle{fill:var(--bal-color-border-warning)}.bal-input-group.bal-input-group--is-disabled,.bal-input-group.bal-input-group--is-disabled .input{border-color:var(--bal-color-border-grey-dark);background:var(--bal-color-grey-2)}.bal-input-group.bal-input-group--is-disabled svg,.bal-input-group.bal-input-group--is-disabled svg g,.bal-input-group.bal-input-group--is-disabled svg path,.bal-input-group.bal-input-group--is-disabled svg circle{fill:var(--bal-color-border-grey-dark)}.bal-input-group--is-disabled,.bal-input-group--is-disabled .input{cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--bal-color-text-grey-dark)}.bal-input-group--is-disabled ::-webkit-input-placeholder,.bal-input-group--is-disabled .input ::-webkit-input-placeholder{color:var(--bal-color-text-grey)}.bal-input-group--is-disabled ::-moz-placeholder,.bal-input-group--is-disabled .input ::-moz-placeholder{color:var(--bal-color-text-grey)}.bal-input-group--is-disabled :-ms-input-placeholder,.bal-input-group--is-disabled .input :-ms-input-placeholder{color:var(--bal-color-text-grey)}.bal-input-group--is-disabled ::-ms-input-placeholder,.bal-input-group--is-disabled .input ::-ms-input-placeholder{color:var(--bal-color-text-grey)}.bal-input-group--is-disabled ::placeholder,.bal-input-group--is-disabled .input ::placeholder{color:var(--bal-color-text-grey)}.bal-input-group--is-disabled .tag{background-color:var(--bal-color-grey-5)}.bal-input-group--is-disabled .tag span{color:var(--bal-color-text-white)}.bal-input-group--is-disabled .tag .delete{display:none}.bal-input-group:not(.bal-input-group--is-disabled):focus-within{border-color:var(--bal-color-primary)}";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
2
3
|
import { l as lodash_isnil } from './index-82aff103.js';
|
|
3
4
|
import { o as debounceEvent } from './helpers-72ae7307.js';
|
|
4
5
|
import { s as stopEventBubbling } from './form-input-264ad739.js';
|
|
5
6
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
6
7
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
8
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
7
9
|
import './browser-a8073d92.js';
|
|
8
10
|
import './icons.constant-a7885631.js';
|
|
9
11
|
import './config.utils-6ac6c9bd.js';
|
|
@@ -158,11 +160,11 @@ const InputSlider = class {
|
|
|
158
160
|
const inputValueRightEl = inputValueEl.modifier('right');
|
|
159
161
|
const stepsEl = block.element('steps');
|
|
160
162
|
const stepsItemEl = stepsEl.element('item');
|
|
161
|
-
return (h(Host, { key: '
|
|
163
|
+
return (h(Host, { key: 'cbbd2a0e62cc67016f215b13d8d0ca0c5de127b7', class: Object.assign(Object.assign({}, block.class()), block.modifier('disabled').class(this.disabled || this.readonly)), onClick: this.handleClick, "aria-disabled": this.disabled || this.readonly ? 'true' : null }, h("div", { key: '7b31c11bf1d3423be6b2d7837a0f8ccaafe46daa', class: Object.assign(Object.assign({}, backgroundEl.class()), backgroundEl.modifier('disabled').class(this.disabled || this.readonly)) }, h("div", { key: '6a4440695d82c35bf8c8195dc79e5c8c14c91f16', class: Object.assign({}, backgroundUpperEl.class()), style: {
|
|
162
164
|
width: this.cssWidth(),
|
|
163
|
-
} }, h("div", { key: '
|
|
165
|
+
} }, h("div", { key: '5be6c525ff34e993b27424e5dcfe4d5bc4609ba7', class: Object.assign({}, backgroundUpperInnerEl.class()) })), h("div", { key: '3eb1fae3c122c23db8bc05c8f246c23984a8dbfc', class: Object.assign({}, backgroundLowerEl.class()), style: {
|
|
164
166
|
width: this.cssWidth(true),
|
|
165
|
-
} }, h("div", { key: '
|
|
167
|
+
} }, h("div", { key: '53ae6ada3c544a543180a21721b6271c36db5c47', class: Object.assign({}, backgroundLowerInnerEl.class()) }))), h("div", { key: 'f309f58ec23b5bc31799fcf0e3f5ef6c4cc25039', class: Object.assign({}, inputEl.class()) }, h("div", { key: 'c8d0fc9abf6a2384a44af08e581e3ca4f1115f60', class: Object.assign(Object.assign({}, inputValueEl.class()), inputValueLeftEl.class()) }), h("input", { key: '67a8fb701b5a6c9122abe42331384a99bd5e636f', type: "range", class: Object.assign(Object.assign({}, inputNativeEl.class()), inputNativeEl.modifier('disabled').class(this.disabled || this.readonly)), ref: inputEl => (this.nativeInput = inputEl), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-disabled": this.disabled ? 'true' : null, "aria-invalid": this.invalid === true ? 'true' : 'false', disabled: this.disabled, readonly: this.readonly, name: this.name, required: this.required, tabIndex: this.balTabindex, step: this.step, min: this.min, max: this.max, value: this.value !== '' && this.value !== undefined ? this.value : 0, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyPress: e => this.balKeyPress.emit(e), "data-testid": "bal-input-slider" }), h("div", { key: '8c93968c955d1bdb970e31308240db6e5f3a6795', class: Object.assign(Object.assign({}, inputValueEl.class()), inputValueRightEl.class()) })), h("div", { key: 'f89ab4d7d6b67d976856bbabfb018d474f0bf306', class: Object.assign({}, stepsEl.class()), style: { display: this.hasTicks ? 'flex' : 'none' } }, this.getNumberOfSteps().map(step => (h("div", { key: step, class: Object.assign(Object.assign({}, stepsItemEl.class()), stepsItemEl.modifier('disabled').class(this.disabled || this.readonly)), "data-step-id": step }))))));
|
|
166
168
|
}
|
|
167
169
|
get el() { return getElement(this); }
|
|
168
170
|
static get watchers() { return {
|
|
@@ -170,6 +172,18 @@ const InputSlider = class {
|
|
|
170
172
|
"value": ["valueChanged"]
|
|
171
173
|
}; }
|
|
172
174
|
};
|
|
175
|
+
__decorate([
|
|
176
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
177
|
+
__metadata("design:type", Function),
|
|
178
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
179
|
+
__metadata("design:returntype", void 0)
|
|
180
|
+
], InputSlider.prototype, "listenOnClick", null);
|
|
181
|
+
__decorate([
|
|
182
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
183
|
+
__metadata("design:type", Function),
|
|
184
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
185
|
+
__metadata("design:returntype", void 0)
|
|
186
|
+
], InputSlider.prototype, "resetHandler", null);
|
|
173
187
|
let inputSliderIds = 0;
|
|
174
188
|
InputSlider.style = BalInputSliderStyle0;
|
|
175
189
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { c as commonjsGlobal } from './_commonjsHelpers-1c8beb5f.js';
|
|
4
4
|
import { f as formatLocaleNumber } from './number-54693efa.js';
|
|
@@ -9,6 +9,7 @@ import { B as BEM } from './bem-8c7d2eb0.js';
|
|
|
9
9
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
10
10
|
import { i as i18nBalInputStepper } from './bal-input-stepper.i18n-aaa4a009.js';
|
|
11
11
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
12
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
12
13
|
import { d as defaultConfig } from './config.default-7efdc82d.js';
|
|
13
14
|
import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
|
|
14
15
|
import './config.utils-6ac6c9bd.js';
|
|
@@ -1190,15 +1191,15 @@ const InputStepper = class {
|
|
|
1190
1191
|
const elText = elInner.element('text');
|
|
1191
1192
|
const increaseLabel = i18nBalInputStepper[this.language].increase;
|
|
1192
1193
|
const decreaseLabel = i18nBalInputStepper[this.language].decrease;
|
|
1193
|
-
return (h(Host, { key: '
|
|
1194
|
+
return (h(Host, { key: '3c4501c097383b348798014ca2c6ebee2517d49a', "aria-disabled": this.disabled ? 'true' : null, "aria-focused": this.focused ? 'true' : null, class: Object.assign({}, block.class()) }, h("div", { key: 'b241b171bc4e1c0b9c7e4d287f00892f4cfe6435', class: Object.assign({}, elInner.class()) }, h("bal-button", { key: '214a9e4c9659e2a44c015ad532bcb56fe498f229', aria: {
|
|
1194
1195
|
title: decreaseLabel,
|
|
1195
1196
|
label: decreaseLabel,
|
|
1196
1197
|
controls: this.ariaForm.controlId || this.inputId,
|
|
1197
|
-
}, size: "small", square: true, "data-testid": "bal-input-stepper-decrease", outlined: !this.invalid, icon: "minus", color: this.invalid ? 'danger' : 'info', disabled: this.disabled || this.readonly || this.value <= this.min, onClick: _ => this.decrease(), onBalFocus: ev => this.onFocusDecrease(ev), onBalBlur: ev => this.onBlurDecrease(ev) }), h("bal-text", { key: '
|
|
1198
|
+
}, size: "small", square: true, "data-testid": "bal-input-stepper-decrease", outlined: !this.invalid, icon: "minus", color: this.invalid ? 'danger' : 'info', disabled: this.disabled || this.readonly || this.value <= this.min, onClick: _ => this.decrease(), onBalFocus: ev => this.onFocusDecrease(ev), onBalBlur: ev => this.onBlurDecrease(ev) }), h("bal-text", { key: 'ac23ae81d6bc44eb628e7767ea7014a3f96a1919', space: "none", color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : '', bold: true, class: Object.assign({}, elText.class()), "data-testid": "bal-input-stepper-text" }, formatLocaleNumber(this.value)), h("bal-button", { key: '6a2a9a3899a073564b1d09f0565967e75802a942', aria: {
|
|
1198
1199
|
title: increaseLabel,
|
|
1199
1200
|
label: increaseLabel,
|
|
1200
1201
|
controls: this.ariaForm.controlId || this.inputId,
|
|
1201
|
-
}, size: "small", "data-testid": "bal-input-stepper-increase", square: true, outlined: !this.invalid, icon: "plus", color: this.invalid ? 'danger' : 'info', disabled: this.disabled || this.readonly || this.value >= this.max, onClick: _ => this.increase(), onBalFocus: ev => this.onFocusIncrease(ev), onBalBlur: ev => this.onBlurIncrease(ev) })), h("input", Object.assign({ key: '
|
|
1202
|
+
}, size: "small", "data-testid": "bal-input-stepper-increase", square: true, outlined: !this.invalid, icon: "plus", color: this.invalid ? 'danger' : 'info', disabled: this.disabled || this.readonly || this.value >= this.max, onClick: _ => this.increase(), onBalFocus: ev => this.onFocusIncrease(ev), onBalBlur: ev => this.onBlurIncrease(ev) })), h("input", Object.assign({ key: '3e788f6e10b325e0e60871c9920a513074b51dc3', class: Object.assign({}, elInput.class()), 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-input-stepper", type: "text", value: this.value, name: this.name, tabindex: "-1", ref: inputEl => (this.nativeInput = inputEl), readonly: this.readonly, disabled: this.disabled }, this.inheritedAttributes))));
|
|
1202
1203
|
}
|
|
1203
1204
|
get el() { return getElement(this); }
|
|
1204
1205
|
static get watchers() { return {
|
|
@@ -1211,6 +1212,18 @@ __decorate([
|
|
|
1211
1212
|
__metadata("design:paramtypes", [Function]),
|
|
1212
1213
|
__metadata("design:returntype", void 0)
|
|
1213
1214
|
], InputStepper.prototype, "createLogger", null);
|
|
1215
|
+
__decorate([
|
|
1216
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
1217
|
+
__metadata("design:type", Function),
|
|
1218
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1219
|
+
__metadata("design:returntype", void 0)
|
|
1220
|
+
], InputStepper.prototype, "listenOnClick", null);
|
|
1221
|
+
__decorate([
|
|
1222
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
1223
|
+
__metadata("design:type", Function),
|
|
1224
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
1225
|
+
__metadata("design:returntype", void 0)
|
|
1226
|
+
], InputStepper.prototype, "resetHandler", null);
|
|
1214
1227
|
__decorate([
|
|
1215
1228
|
ListenToConfig(),
|
|
1216
1229
|
__metadata("design:type", Function),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { o as debounceEvent } from './helpers-72ae7307.js';
|
|
4
4
|
import { i as inheritAttributes } from './attributes-4fa7040f.js';
|
|
@@ -8,6 +8,7 @@ import { i as isCtrlOrCommandKey, A as ACTION_KEYS, N as NUMBER_KEYS } from './k
|
|
|
8
8
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
9
9
|
import { L as Logger } from './log-dfd1c19f.js';
|
|
10
10
|
import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
|
|
11
|
+
import { L as ListenTo } from './listen-d1712e70.js';
|
|
11
12
|
import './browser-a8073d92.js';
|
|
12
13
|
import './icons.constant-a7885631.js';
|
|
13
14
|
import './config.utils-6ac6c9bd.js';
|
|
@@ -442,7 +443,7 @@ const Input = class {
|
|
|
442
443
|
}
|
|
443
444
|
const block = BEM.block('input');
|
|
444
445
|
const id = this.ariaForm.controlId || this.inputId;
|
|
445
|
-
return (h(Host, { key: '
|
|
446
|
+
return (h(Host, { key: '06b94d64ecb7003f68c3402a530476419acb6298', onClick: this.handleClick, "aria-disabled": this.disabled ? 'true' : null, class: Object.assign({}, block.class()) }, h("input", Object.assign({ key: 'ae1f579c3c8bded3c7b9c9a7eeea0e3989f17bb5', class: {
|
|
446
447
|
'input': true,
|
|
447
448
|
'is-disabled': this.disabled || this.readonly,
|
|
448
449
|
'is-danger': this.invalid,
|
|
@@ -464,6 +465,18 @@ __decorate([
|
|
|
464
465
|
__metadata("design:paramtypes", [Function]),
|
|
465
466
|
__metadata("design:returntype", void 0)
|
|
466
467
|
], Input.prototype, "createLogger", null);
|
|
468
|
+
__decorate([
|
|
469
|
+
ListenTo('click', { capture: true, target: 'document' }),
|
|
470
|
+
__metadata("design:type", Function),
|
|
471
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
472
|
+
__metadata("design:returntype", void 0)
|
|
473
|
+
], Input.prototype, "listenOnClick", null);
|
|
474
|
+
__decorate([
|
|
475
|
+
ListenTo('reset', { capture: true, target: 'document' }),
|
|
476
|
+
__metadata("design:type", Function),
|
|
477
|
+
__metadata("design:paramtypes", [UIEvent]),
|
|
478
|
+
__metadata("design:returntype", void 0)
|
|
479
|
+
], Input.prototype, "resetHandler", null);
|
|
467
480
|
let InputIds = 0;
|
|
468
481
|
Input.style = BalInputStyle0;
|
|
469
482
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5b1faf93.js';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
|
|
3
3
|
import { B as BEM } from './bem-8c7d2eb0.js';
|
|
4
4
|
import { L as Logger } from './log-dfd1c19f.js';
|