@baloise/ds-core 19.2.0-snapshot.1741-c382bb5d2 → 19.2.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-accordion.js +1 -1
- package/components/bal-app.js +93 -1
- package/components/bal-carousel-item.js +1 -1
- package/components/bal-checkbox-group.js +3 -3
- package/components/bal-checkbox2.js +1 -1
- package/components/bal-date-calendar2.js +1 -1
- package/components/bal-date.js +1 -1
- package/components/bal-dropdown.js +1 -1
- package/components/bal-field.js +1 -1
- package/components/bal-form.js +1 -1
- package/components/bal-modal.js +1 -1
- package/components/bal-nav-menu-flyout2.js +3 -10
- package/components/bal-nav-meta-bar2.js +2 -4
- package/components/bal-nav.js +33 -155
- package/components/bal-navbar-brand.js +1 -1
- package/components/bal-navbar-menu.js +1 -1
- package/components/bal-option-list.js +1 -1
- package/components/bal-radio-group.js +3 -3
- package/components/bal-radio2.js +1 -1
- package/components/bal-segment.js +3 -3
- package/components/bal-select2.js +1 -1
- package/components/bal-tab-item.js +2 -4
- package/components/bal-tabs2.js +2 -5
- package/components/focus.decorator.js +1 -1
- package/components/form-input.js +1 -1
- package/components/helpers.js +1 -1
- package/components/index.js +320 -13
- package/components/mutation.decorator.js +1 -1
- package/components/swiper.util.js +1 -1
- package/components/tokens.esm.js +1 -1
- package/components/visibility.decorator.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-002d7bb9.js +1 -0
- package/dist/baloise-design-system/p-00c2788841.entry.js +1 -0
- package/dist/baloise-design-system/{p-b0ad167225.system.entry.js → p-00e36bd710.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dac493c4.system.js → p-01f07b49.system.js} +1 -1
- package/dist/baloise-design-system/{p-12b975fee6.system.entry.js → p-06d14aacfc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-694808374d.system.entry.js → p-088aef322b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2af73f096f.entry.js → p-0c40a0d86b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9fe6f3f427.system.entry.js → p-0d3584a65f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2527be5bac.system.entry.js → p-1345eac467.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1cfbf3093b.entry.js → p-191cb463ef.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d41dcdebec.entry.js → p-19821082de.entry.js} +1 -1
- package/dist/baloise-design-system/p-1a3fd0b20d.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-8b46496d71.system.entry.js → p-1bd08e1e63.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-02509f2aa1.system.entry.js → p-1d4ea7e42b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5d94ecd9.system.js → p-1d7c3cf2.system.js} +1 -1
- package/dist/baloise-design-system/p-1f91745ab3.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-fd273f8f1e.entry.js → p-20bc89d933.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aae6003e.js → p-20eba37f.js} +1 -1
- package/dist/baloise-design-system/{p-350a85a9.js → p-211a37e8.js} +1 -1
- package/dist/baloise-design-system/{p-0c34ba75.system.js → p-237de03b.system.js} +1 -1
- package/dist/baloise-design-system/{p-4af5f1f9.js → p-24fe64c5.js} +1 -1
- package/dist/baloise-design-system/{p-2a3e45fdfc.entry.js → p-279dbfbe05.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4191bdf0.js → p-2a27350c.js} +1 -1
- package/dist/baloise-design-system/{p-576fea8fe0.system.entry.js → p-2c5c5716e7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4e8633942b.entry.js → p-2c909ec2ed.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d96b1ee9.js → p-301a6b23.js} +1 -1
- package/dist/baloise-design-system/{p-6461e0dc8c.entry.js → p-3032d4ad66.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e53cf246d6.system.entry.js → p-31baba8382.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-68f3a1d5de.entry.js → p-32db85222c.entry.js} +1 -1
- package/dist/baloise-design-system/p-345aa92d.system.js +1 -0
- package/dist/baloise-design-system/{p-e442bfd948.entry.js → p-34b6d66663.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c1564c78.js → p-38aa6fee.js} +1 -1
- package/dist/baloise-design-system/{p-c3f74518ef.system.entry.js → p-38bca05d45.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4ca4dff6.js → p-3913c6ae.js} +1 -1
- package/dist/baloise-design-system/{p-924b576e.system.js → p-3c15fb83.system.js} +1 -1
- package/dist/baloise-design-system/{p-24e83f3b0e.system.entry.js → p-3c39fe4b16.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fb29992c.js → p-3ccf4ae8.js} +1 -1
- package/dist/baloise-design-system/{p-a7f480e29e.entry.js → p-3e0254a61f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-584601ed8d.entry.js → p-41f36f7375.entry.js} +1 -1
- package/dist/baloise-design-system/p-456114b8.system.js +1 -0
- package/dist/baloise-design-system/{p-835cf9d5.system.js → p-47825fdf.system.js} +1 -1
- package/dist/baloise-design-system/p-48bee822ce.entry.js +1 -0
- package/dist/baloise-design-system/{p-0c336d76f5.entry.js → p-4b3b969747.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7ace6bb2b2.system.entry.js → p-4f49822899.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-5298de0e.system.js +1 -0
- package/dist/baloise-design-system/{p-0b2b3dbe1b.entry.js → p-5638fe223b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fe2ef334.system.js → p-565f9976.system.js} +1 -1
- package/dist/baloise-design-system/{p-bdf651c552.system.entry.js → p-57b41c6504.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-11230944ba.system.entry.js → p-5b20afcac4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8f0ace18a8.entry.js → p-5bb661c59b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-70a29a3cf9.system.entry.js → p-5ce42985d4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3131f323.system.js → p-5f32b4f3.system.js} +1 -1
- package/dist/baloise-design-system/{p-0783dc98dd.system.entry.js → p-5fcfbec540.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3f6fcc1a25.system.entry.js → p-6149950bb1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c75b737789.system.entry.js → p-61b67b07b2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5d54264e11.entry.js → p-654bc5873c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c942d04f.system.js → p-659ecadc.system.js} +1 -1
- package/dist/baloise-design-system/{p-4936cce309.entry.js → p-6700e35d71.entry.js} +1 -1
- package/dist/baloise-design-system/{p-eec38fbd.system.js → p-6b690346.system.js} +1 -1
- package/dist/baloise-design-system/{p-0aa6f3518b.system.entry.js → p-6bb4e22ace.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-00d74c5578.entry.js → p-6c1136af87.entry.js} +1 -1
- package/dist/baloise-design-system/{p-548ca0b3.js → p-6e85cd1a.js} +1 -1
- package/dist/baloise-design-system/{p-3fcfe14a45.system.entry.js → p-72414b93ef.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-599fe1aecd.system.entry.js → p-72c837904a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-14df54b760.entry.js → p-748e3f7c7d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ddfc39d563.system.entry.js → p-7625d0abde.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ea96959c66.system.entry.js → p-78b209fdb3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f19930db.js → p-79f6f58b.js} +1 -1
- package/dist/baloise-design-system/{p-27b9d8e173.entry.js → p-7cbb14c480.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bb3d79e0.js → p-83ac9b11.js} +1 -1
- package/dist/baloise-design-system/{p-a6f19c8102.entry.js → p-848aa73224.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01cd830b.system.js → p-863f4e4e.system.js} +1 -1
- package/dist/baloise-design-system/{p-4d5477db.js → p-875de117.js} +1 -1
- package/dist/baloise-design-system/{p-04515987c7.system.entry.js → p-8ebf048b7b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4a0012fa.js → p-8fc7e9ca.js} +1 -1
- package/dist/baloise-design-system/p-92964b4937.entry.js +1 -0
- package/dist/baloise-design-system/p-92b665e7.system.js +1 -0
- package/dist/baloise-design-system/{p-554346365a.entry.js → p-9577a33b58.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dc1f26ed82.entry.js → p-97bb957512.entry.js} +1 -1
- package/dist/baloise-design-system/{p-efa88f9a.system.js → p-9a5b77d8.system.js} +1 -1
- package/dist/baloise-design-system/p-9c3f458e6c.entry.js +1 -0
- package/dist/baloise-design-system/{p-7267570ee4.system.entry.js → p-9c8bb7777c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6df2900b29.system.entry.js → p-9df176a81a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a82d082286.system.entry.js → p-9df40521e4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b0cf4731.js → p-a255c9b3.js} +1 -1
- package/dist/baloise-design-system/{p-5e506fea89.entry.js → p-a35a951800.entry.js} +1 -1
- package/dist/baloise-design-system/p-a397da94.system.js +1 -0
- package/dist/baloise-design-system/{p-5c391c5415.system.entry.js → p-a64c7a3b82.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-16f5c678f5.entry.js → p-a7963df92a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3d3aa421.js → p-a7be57b6.js} +1 -1
- package/dist/baloise-design-system/{p-371f93bd95.system.entry.js → p-a7de0bf339.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4f1232cf16.system.entry.js → p-a86c09c64f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ae0d2039.system.js → p-a8955719.system.js} +1 -1
- package/dist/baloise-design-system/{p-659270e6.system.js → p-abd6896e.system.js} +1 -1
- package/dist/baloise-design-system/{p-5b163efa.js → p-ad14e9f9.js} +1 -1
- package/dist/baloise-design-system/{p-2d3770e7.system.js → p-ade9437f.system.js} +1 -1
- package/dist/baloise-design-system/{p-71fc84d0c0.system.entry.js → p-ae3df5bebc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e1f817daeb.system.entry.js → p-aee1b9619a.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-af0585f6.js +1 -0
- package/dist/baloise-design-system/{p-16e0580134.entry.js → p-af1086f717.entry.js} +1 -1
- package/dist/baloise-design-system/{p-77c7a0b0.js → p-afd41db0.js} +1 -1
- package/dist/baloise-design-system/{p-1ef6d4ebd5.entry.js → p-b147ff1ced.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e1daa037f5.entry.js → p-b3a9499f8e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6c080ebc.system.js → p-b50f4c4e.system.js} +1 -1
- package/dist/baloise-design-system/{p-ce0bb62f88.system.entry.js → p-b5b4c144a0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1272e3f9c5.system.entry.js → p-b794110da2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e004afb272.entry.js → p-b80f4f2be5.entry.js} +1 -1
- package/dist/baloise-design-system/{p-df9b8ff8.system.js → p-bdec7c17.system.js} +1 -1
- package/dist/baloise-design-system/{p-55ebd30d.js → p-c0173fff.js} +1 -1
- package/dist/baloise-design-system/{p-ba04f59382.entry.js → p-c1181d7258.entry.js} +1 -1
- package/dist/baloise-design-system/{p-faa524532a.entry.js → p-c24c3e208f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0ae449ae.system.js → p-c43a56b7.system.js} +1 -1
- package/dist/baloise-design-system/p-c5fc0e842c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-a7894ace.js → p-cb0ff37f.js} +1 -1
- package/dist/baloise-design-system/{p-de214c5ded.entry.js → p-d2b585ae74.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d09490838c.system.entry.js → p-da804f45a6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cb9a61cf9f.entry.js → p-da86fecd46.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2add7b3634.system.entry.js → p-dba2c7bb14.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ad848b32cc.entry.js → p-de44e8a65c.entry.js} +1 -1
- package/dist/baloise-design-system/p-df94de7fb8.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-4ad57bd1ee.entry.js → p-e2c982954d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-42d1374d6f.system.entry.js → p-e3fb1f185f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f8db562aa1.entry.js → p-e87f91527f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5fbe1e715b.entry.js → p-eaed1f800c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ec1863d2.js → p-ec375851.js} +1 -1
- package/dist/baloise-design-system/{p-15f86fd2.js → p-f1052416.js} +1 -1
- package/dist/baloise-design-system/{p-2908a4b8.system.js → p-f52a27c1.system.js} +1 -1
- package/dist/baloise-design-system/{p-c1df952485.entry.js → p-f817eedc81.entry.js} +1 -1
- package/dist/baloise-design-system/{p-da6b6e18.system.js → p-fa4494e0.system.js} +1 -1
- package/dist/baloise-design-system/{p-b0471793.system.js → p-fa5198a0.system.js} +1 -1
- package/dist/cjs/{global-2a76769b.js → app-globals-0d8db19e.js} +4 -2
- package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +38 -167
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-segment_2.cjs.entry.js +7 -7
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +3 -3
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +6 -11
- package/dist/cjs/baloise-design-system.cjs.js +2 -3
- package/dist/cjs/{breakpoints.decorator-93750fa2.js → breakpoints.decorator-e93836f7.js} +1 -1
- package/dist/cjs/{breakpoints.subject-814a8c58.js → breakpoints.subject-46e29594.js} +1 -1
- package/dist/cjs/index.cjs.js +18 -18
- package/dist/cjs/initialize-2e8978a4.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/{tokens.esm-f1e99983.js → tokens.esm-b4bf229a.js} +1 -1
- package/dist/cjs/{window-resize.decorator-620a819b.js → window-resize.decorator-6954c7a2.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +2 -2
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +2 -40
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.css +1 -1
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +1 -22
- package/dist/collection/components/bal-nav/bal-nav.css +1 -1
- package/dist/collection/components/bal-nav/bal-nav.js +8 -43
- package/dist/collection/components/bal-nav/models/bal-nav-menu-link-item.js +5 -6
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +2 -2
- package/dist/collection/components/bal-segment/bal-segment.js +3 -3
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +2 -23
- package/dist/collection/components/bal-tabs/components/tab-button.js +3 -6
- package/dist/collection/index.js +21 -27
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/esm/{animation.decorator-7fca988f.js → animation.decorator-49923a4a.js} +1 -1
- package/dist/esm/app-globals-5dd5fe6b.js +9 -0
- package/dist/esm/bal-accordion_4.entry.js +5 -5
- package/dist/esm/bal-app.entry.js +2 -2
- package/dist/esm/bal-button_2.entry.js +2 -2
- package/dist/esm/bal-carousel_2.entry.js +14 -14
- package/dist/esm/bal-checkbox_2.entry.js +8 -8
- package/dist/esm/bal-close.entry.js +3 -3
- package/dist/esm/bal-date-calendar-cell.entry.js +3 -3
- package/dist/esm/bal-date-calendar_2.entry.js +8 -8
- package/dist/esm/bal-date.entry.js +7 -7
- package/dist/esm/bal-dropdown.entry.js +6 -6
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-file-upload.entry.js +3 -3
- package/dist/esm/bal-footer.entry.js +4 -4
- package/dist/esm/bal-form.entry.js +2 -2
- package/dist/esm/bal-hint_5.entry.js +6 -6
- package/dist/esm/bal-icon.entry.js +3 -3
- package/dist/esm/bal-input-slider.entry.js +3 -3
- package/dist/esm/bal-input-stepper.entry.js +6 -6
- package/dist/esm/bal-input.entry.js +3 -3
- package/dist/esm/bal-label.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +9 -9
- package/dist/esm/bal-logo.entry.js +6 -6
- package/dist/esm/bal-modal_3.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +44 -173
- package/dist/esm/bal-navbar_5.entry.js +7 -7
- package/dist/esm/bal-number-input.entry.js +6 -6
- package/dist/esm/bal-option_2.entry.js +4 -4
- package/dist/esm/bal-pagination.entry.js +7 -7
- package/dist/esm/bal-popup.entry.js +4 -4
- package/dist/esm/bal-progress-bar.entry.js +6 -6
- package/dist/esm/bal-radio_2.entry.js +8 -8
- package/dist/esm/bal-segment_2.entry.js +13 -13
- package/dist/esm/bal-select_2.entry.js +3 -3
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-spinner.entry.js +4 -4
- package/dist/esm/bal-stage_6.entry.js +2 -2
- package/dist/esm/bal-steps.entry.js +7 -7
- package/dist/esm/bal-tab-item_2.entry.js +18 -23
- package/dist/esm/bal-textarea.entry.js +3 -3
- package/dist/esm/bal-time-input.entry.js +5 -5
- package/dist/esm/bal-tooltip.entry.js +3 -3
- package/dist/esm/baloise-design-system.js +6 -7
- package/dist/esm/{breakpoints.decorator-8f62709d.js → breakpoints.decorator-133a72bf.js} +1 -1
- package/dist/esm/{breakpoints.subject-3a03b167.js → breakpoints.subject-76dd4b56.js} +2 -2
- package/dist/esm/{config.decorator-6795d1fe.js → config.decorator-42dba864.js} +1 -1
- package/dist/esm/{config.default-53a04699.js → config.default-8e11a860.js} +1 -1
- package/dist/esm/{config.utils-f3793464.js → config.utils-cd529084.js} +1 -1
- package/dist/esm/{date-87bdb1d1.js → date-a9304ff8.js} +1 -1
- package/dist/esm/{element-states.decorator-d99dc83c.js → element-states.decorator-0688a178.js} +1 -1
- package/dist/esm/{floating-ui-8ffbc979.js → floating-ui-775ee3d1.js} +1 -1
- package/dist/esm/{focus.decorator-988245d7.js → focus.decorator-5575312f.js} +1 -1
- package/dist/esm/{form-input-1ebdb905.js → form-input-263e6f5b.js} +1 -1
- package/dist/esm/{helpers-51d51cc5.js → helpers-94c3fbac.js} +2 -2
- package/dist/esm/index.js +15 -15
- package/dist/esm/{initialize-c00194b2.js → initialize-be160cc4.js} +4 -4
- package/dist/esm/loader.js +6 -7
- package/dist/esm/{mutation.decorator-6a69cedb.js → mutation.decorator-e915d053.js} +1 -1
- package/dist/esm/{number-ccf3fbd0.js → number-d75635a2.js} +2 -2
- package/dist/esm/{overlays-cee3838b.js → overlays-3f81f45d.js} +1 -1
- package/dist/esm/{resize.decorator-3c8e5ee2.js → resize.decorator-08f6286b.js} +1 -1
- package/dist/esm/{swipe.decorator-3d3585e7.js → swipe.decorator-902c4936.js} +1 -1
- package/dist/esm/{swipe.subject-26a9e5a5.js → swipe.subject-fbdb665a.js} +1 -1
- package/dist/esm/{swiper.util-8e17b8c4.js → swiper.util-5f92ac1c.js} +2 -2
- package/dist/esm/{tokens.esm-03cdda91.js → tokens.esm-dc280d50.js} +1 -1
- package/dist/esm/{visibility.decorator-5db91610.js → visibility.decorator-ee4b6682.js} +1 -1
- package/dist/esm/{window-resize.decorator-3eaade78.js → window-resize.decorator-aa625d55.js} +1 -1
- package/dist/esm-es5/{animation.decorator-7fca988f.js → animation.decorator-49923a4a.js} +1 -1
- package/dist/esm-es5/app-globals-5dd5fe6b.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-button_2.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.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-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-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.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-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-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_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-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.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-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-8f62709d.js → breakpoints.decorator-133a72bf.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-3a03b167.js → breakpoints.subject-76dd4b56.js} +1 -1
- package/dist/esm-es5/config.decorator-42dba864.js +1 -0
- package/dist/esm-es5/{config.default-53a04699.js → config.default-8e11a860.js} +1 -1
- package/dist/esm-es5/{config.utils-f3793464.js → config.utils-cd529084.js} +1 -1
- package/dist/esm-es5/{date-87bdb1d1.js → date-a9304ff8.js} +1 -1
- package/dist/esm-es5/{element-states.decorator-d99dc83c.js → element-states.decorator-0688a178.js} +1 -1
- package/dist/esm-es5/{floating-ui-8ffbc979.js → floating-ui-775ee3d1.js} +1 -1
- package/dist/esm-es5/{focus.decorator-988245d7.js → focus.decorator-5575312f.js} +1 -1
- package/dist/esm-es5/{form-input-1ebdb905.js → form-input-263e6f5b.js} +1 -1
- package/dist/esm-es5/{helpers-51d51cc5.js → helpers-94c3fbac.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{initialize-c00194b2.js → initialize-be160cc4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{mutation.decorator-6a69cedb.js → mutation.decorator-e915d053.js} +1 -1
- package/dist/esm-es5/number-d75635a2.js +1 -0
- package/dist/esm-es5/{overlays-cee3838b.js → overlays-3f81f45d.js} +1 -1
- package/dist/esm-es5/{resize.decorator-3c8e5ee2.js → resize.decorator-08f6286b.js} +1 -1
- package/dist/esm-es5/{swipe.decorator-3d3585e7.js → swipe.decorator-902c4936.js} +1 -1
- package/dist/esm-es5/{swipe.subject-26a9e5a5.js → swipe.subject-fbdb665a.js} +1 -1
- package/dist/esm-es5/{swiper.util-8e17b8c4.js → swiper.util-5f92ac1c.js} +1 -1
- package/dist/esm-es5/{visibility.decorator-5db91610.js → visibility.decorator-ee4b6682.js} +1 -1
- package/dist/esm-es5/{window-resize.decorator-3eaade78.js → window-resize.decorator-aa625d55.js} +1 -1
- package/dist/html.html-data.json +0 -4
- package/dist/types/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.d.ts +2 -2
- package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.d.ts +1 -6
- package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.d.ts +0 -4
- package/dist/types/components/bal-nav/bal-nav.interfaces.d.ts +1 -7
- package/dist/types/components/bal-nav/models/bal-nav-menu-link-item.d.ts +0 -1
- package/dist/types/components/bal-radio/bal-radio-group/bal-radio-group.d.ts +2 -2
- package/dist/types/components/bal-segment/bal-segment.d.ts +2 -2
- package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +0 -5
- package/dist/types/components/bal-tabs/bal-tab.type.d.ts +0 -1
- package/dist/types/components/bal-tabs/bal-tabs.interfaces.d.ts +0 -2
- package/dist/types/components.d.ts +0 -69
- package/dist/types/index.d.ts +23 -25
- package/package.json +6 -6
- package/components/bal-app2.js +0 -95
- package/components/bal-doc-app.d.ts +0 -11
- package/components/bal-doc-app.js +0 -262
- package/components/initialize.js +0 -312
- package/dist/baloise-design-system/p-0c352526.system.js +0 -1
- package/dist/baloise-design-system/p-13d44256.system.js +0 -1
- package/dist/baloise-design-system/p-216c816074.system.entry.js +0 -1
- package/dist/baloise-design-system/p-241cd947.system.js +0 -1
- package/dist/baloise-design-system/p-36c605b7ed.entry.js +0 -1
- package/dist/baloise-design-system/p-39e0a066.js +0 -1
- package/dist/baloise-design-system/p-4fea94e0.js +0 -1
- package/dist/baloise-design-system/p-5420740f.system.js +0 -1
- package/dist/baloise-design-system/p-62817e8ac6.entry.js +0 -1
- package/dist/baloise-design-system/p-714e67e02b.entry.js +0 -1
- package/dist/baloise-design-system/p-73bf956385.system.entry.js +0 -1
- package/dist/baloise-design-system/p-81fba1c691.entry.js +0 -1
- package/dist/baloise-design-system/p-86621bd1a3.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8b791b36.js +0 -1
- package/dist/baloise-design-system/p-ab6510f1.system.js +0 -1
- package/dist/baloise-design-system/p-d41bc90ec9.entry.js +0 -1
- package/dist/baloise-design-system/p-d786f04bee.system.entry.js +0 -1
- package/dist/baloise-design-system/p-eb70745672.system.entry.js +0 -1
- package/dist/baloise-design-system/p-fbce8119.system.js +0 -1
- package/dist/cjs/app-globals-f63c33e7.js +0 -7
- package/dist/cjs/bal-doc-app.cjs.entry.js +0 -233
- package/dist/collection/components/bal-nav/bal-nav-focus.util.js +0 -87
- 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 -247
- package/dist/esm/app-globals-47f73608.js +0 -5
- package/dist/esm/bal-doc-app.entry.js +0 -229
- package/dist/esm/global-85ac0fa5.js +0 -7
- package/dist/esm-es5/app-globals-47f73608.js +0 -1
- package/dist/esm-es5/bal-doc-app.entry.js +0 -1
- package/dist/esm-es5/config.decorator-6795d1fe.js +0 -1
- package/dist/esm-es5/global-85ac0fa5.js +0 -1
- package/dist/esm-es5/number-ccf3fbd0.js +0 -1
- package/dist/types/components/bal-nav/bal-nav-focus.util.d.ts +0 -33
- 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-22ac062f.js → p-f35655f3.js} +0 -0
- /package/dist/baloise-design-system/{p-195e2346.system.js → p-fd6073b5.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-03cdda91.js → tokens.esm-dc280d50.js} +0 -0
package/dist/baloise-design-system/{p-6df2900b29.system.entry.js → p-9df176a81a.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,c,o,a){function b(e){return e instanceof o?e:new o((function(c){c(e)}))}return new(o||(o=Promise))((function(o,l){function t(e){try{i(a.next(e))}catch(e){l(e)}}function r(e){try{i(a["throw"](e))}catch(e){l(e)}}function i(e){e.done?o(e.value):b(e.value).then(t,r)}i((a=a.apply(e,c||[])).next())}))};var __generator=this&&this.__generator||function(e,c){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,b,l,t;return t={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(t[Symbol.iterator]=function(){return this}),t;function r(e){return function(c){return i([e,c])}}function i(r){if(a)throw new TypeError("Generator is already executing.");while(t&&(t=0,r[0]&&(o=0)),o)try{if(a=1,b&&(l=r[0]&2?b["return"]:r[0]?b["throw"]||((l=b["return"])&&l.call(b),0):b.next)&&!(l=l.call(b,r[1])).done)return l;if(b=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:o.label++;return{value:r[1],done:false};case 5:o.label++;b=r[1];r=[0];continue;case 7:r=o.ops.pop();o.trys.pop();continue;default:if(!(l=o.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){o=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){o.label=r[1];break}if(r[0]===6&&o.label<l[1]){o.label=l[1];l=r;break}if(l&&o.label<l[2]){o.label=l[2];o.ops.push(r);break}if(l[2])o.ops.pop();o.trys.pop();continue}r=c.call(e,o)}catch(e){r=[6,e];b=0}finally{a=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,c,o){if(o||arguments.length===2)for(var a=0,b=c.length,l;a<b;a++){if(l||!(a in c)){if(!l)l=Array.prototype.slice.call(c,0,a);l[a]=c[a]}}return e.concat(l||Array.prototype.slice.call(c))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-2da669b4.system.js","./p-7720b262.system.js","./p-db0895e2.system.js","./p-16395ece.system.js","./p-907368ff.system.js","./p-0ae449ae.system.js","./p-01cd830b.system.js","./p-23bdd8dc.system.js","./p-659270e6.system.js","./p-4e642b63.system.js","./p-1c41de53.system.js","./p-0c34ba75.system.js","./p-fbce8119.system.js","./p-a1f6e944.system.js","./p-2d3770e7.system.js","./p-eecefb0a.system.js","./p-6913b916.system.js","./p-df907af8.system.js","./p-2880433e.system.js"],(function(e){"use strict";var c,o,a,b,l,t,r,i,n,h,d,s,x,k,u,v,f,p,g,m,_,y,w;return{setters:[function(e){c=e.r;o=e.c;a=e.h;b=e.H;l=e.g},function(e){t=e._;r=e.a},function(e){i=e.a},function(e){n=e.i},function(e){h=e.B},function(e){d=e.F},function(e){s=e.d},function(e){x=e.s;k=e.c;u=e.d},function(e){v=e.i;f=e.v},function(e){p=e.L},function(e){g=e.L},function(e){m=e.d},function(e){_=e.a},function(e){y=e.L},function(e){w=e.L},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j="@media (hover: hover)and (pointer: fine){.bal-checkbox.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-checkbox-symbol-size:1.5rem;--bal-checkbox-symbol-border-width:2px;--bal-checkbox-symbol-background:transparent;--bal-checkbox-label-min-height:1.5rem;--bal-checkbox-button-background-hover:var(--bal-color-grey-2);--bal-checkbox-button-background-active:var(--bal-color-grey-2);--bal-checkbox-button-background-checked:var(--bal-color-primary);--bal-checkbox-button-background-checked-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-background-checked-active:var(--bal-color-primary-6);--bal-checkbox-button-background-invalid:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-background-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-background-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-background-disabled-hover-active:var(--bal-color-grey-2);--bal-checkbox-button-background-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-background:transparent;--bal-checkbox-button-background-checked-green:var(--bal-color-green-1);--bal-checkbox-button-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-button-background-checked-red:var(--bal-color-red-1);--bal-checkbox-button-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-button-background-disabled:var(--bal-color-grey-1);--bal-checkbox-button-background-hover:var(--bal-color-grey-1);--bal-checkbox-button-border-color:var(--bal-color-primary);--bal-checkbox-button-border-color-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-border-color-active:var(--bal-color-primary-6);--bal-checkbox-button-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-disabled-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-border-color-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-tile-background:transparent;--bal-checkbox-tile-background-hover:var(--bal-color-grey-1);--bal-checkbox-tile-background-disabled:var(--bal-color-grey-1);--bal-checkbox-tile-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-tile-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-tile-background-checked-green:var(--bal-color-green-1);--bal-checkbox-tile-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-tile-background-checked-red:var(--bal-color-red-1);--bal-checkbox-tile-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-tile-border-style:var(--bal-form-field-control-border-style);--bal-checkbox-tile-border-radius:var(--bal-form-field-control-radius);--bal-checkbox-tile-border-width:var(--bal-form-field-control-border-width);--bal-checkbox-tile-padding:var(--bal-text-size-medium);--bal-checkbox-tile-border-color:var(--bal-color-border);--bal-checkbox-tile-border-color-hover:var(--bal-color-border-primary-hovered);--bal-checkbox-tile-border-color-active:var(--bal-color-border-primary-pressed);--bal-checkbox-tile-border-color-invalid-hover:var(--bal-color-border-danger-hovered);--bal-checkbox-tile-border-color-invalid-active:var(--bal-color-border-danger-pressed);--bal-checkbox-tile-border-color-checked:var(--bal-color-border-primary);--bal-checkbox-tile-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-tile-border-color-disabled:var(--bal-color-border-grey-dark)}.bal-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;outline:none;min-width:var(--bal-checkbox-symbol-size);border-radius:var(--bal-radius-normal);cursor:pointer}.bal-checkbox .bal-checkbox__label{cursor:pointer}.bal-checkbox--invisible{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-checkbox.bal-checkbox--flat{min-height:var(--bal-checkbox-symbol-size)}.bal-checkbox:not(.bal-checkbox--flat){min-height:3rem}.bal-checkbox--invalid{color:var(--bal-form-field-label-danger-color)}.bal-checkbox--disabled,.bal-checkbox--disabled .bal-checkbox__label{color:var(--bal-form-field-label-disabled-color);cursor:default}.bal-checkbox__input{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden;width:100%;height:100%}.bal-checkbox__label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-direction:row;flex-direction:row}.bal-checkbox__label__text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:left;contain:layout style;font-family:var(--bal-font-family-text);padding-top:.25rem;padding-bottom:.25rem;width:100%}.bal-checkbox__label__text--hidden{display:none}.bal-checkbox__label__icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}@media (hover: hover)and (pointer: fine){.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__icon{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__icon{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__icon{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__icon{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-x-small);-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;padding-left:.75rem;padding-right:.75rem;min-width:3rem;border-width:2px;border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-color:var(--bal-checkbox-button-border-color)}.bal-checkbox--button.bal-checkbox--checked{background:var(--bal-checkbox-button-background-checked);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--invalid{border-color:var(--bal-color-border-danger);color:var(--bal-color-text-danger-hovered);background:var(--bal-color-danger-1)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked{color:var(--bal-color-white);background:var(--bal-color-border-danger)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled{border-color:var(--bal-color-grey-4);background:var(--bal-color-grey-2)}.bal-checkbox--button.bal-checkbox--disabled .bal-checkbox__label__text{color:var(--bal-color-text-grey)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked{background:var(--bal-color-grey-4);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-border-primary-hovered);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-border-primary-pressed);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover{background:var(--bal-color-border-danger-hovered);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active{background:var(--bal-color-border-danger-pressed);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-white)}.bal-checkbox--tile{display:block;-ms-flex:0 0 100%;flex:0 0 100%;background:var(--bal-checkbox-tile-background);border-style:var(--bal-checkbox-tile-border-style);border-radius:var(--bal-checkbox-tile-border-radius);border-width:var(--bal-checkbox-tile-border-width);border-color:var(--bal-checkbox-tile-border-color);padding:var(--bal-checkbox-tile-padding)}.bal-checkbox--tile .bal-checkbox__label{height:100%;-ms-flex-align:stretch;align-items:stretch}.bal-checkbox--tile.bal-checkbox--checked{border-color:var(--bal-checkbox-tile-border-color-checked)}.bal-checkbox--tile.bal-checkbox--invalid{border-color:var(--bal-checkbox-tile-border-color-invalid)}.bal-checkbox--tile.bal-checkbox--disabled{background:var(--bal-checkbox-tile-background-disabled);border-color:var(--bal-checkbox-tile-border-color-disabled);cursor:default}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-hover)}}.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-active)}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-checkbox-tile-background-invalid-hover);border-color:var(--bal-checkbox-tile-border-color-invalid-hover)}}.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-checkbox-tile-background-invalid-active);border-color:var(--bal-checkbox-tile-border-color-invalid-active)}.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-green)}.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-red)}.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-purple)}.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-yellow)}@media screen and (min-width: 769px),print{.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (max-width: 768px){.bal-checkbox--column-mobile-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-mobile-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-mobile-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 769px),print{.bal-checkbox--column-tablet-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-tablet-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-tablet-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 1024px){.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}";var O=j;var C=e("bal_checkbox",function(){function e(e){var a=this;c(this,e);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.balChange=o(this,"balChange",7);this.inputId="bal-cb-".concat(F++);this.inheritedAttributes={};this.keyboardMode=true;this.outerElementState={hovered:false,pressed:false};this.innerElementState={hovered:false,pressed:false};this.initialValue=false;this.setChecked=function(e){a.checked=e;a.balChange.emit(a.checked)};this.toggleChecked=function(e){e.preventDefault();a.setFocus();a.setChecked(!a.checked)};this.onClick=function(e){if(a.disabled){return}var c=e.target;if(c&&c.href){return}if(a.wasFocused){a.focused=true}a.toggleChecked(e)};this.onFocus=function(e){if(a.disabled||a.readonly){a.focused=false;return x(e)}a.balFocus.emit(e);if(a.keyboardMode){a.focused=true;a.wasFocused=true}};this.onBlur=function(e){if(a.disabled||a.readonly){return x(e)}a.balBlur.emit(e);a.focused=false};this.onPointerDown=function(){return a.keyboardMode=false};this.onKeydown=function(e){if(!m(e)){a.wasFocused=false}a.keyboardMode=d.includes(e.key)};this.hasLabel=true;this.focused=false;this.buttonTabindex=undefined;this.ariaForm=s;this.wasFocused=false;this.mergedElementState={hovered:false,pressed:false};this.name=this.inputId;this.label="";this.labelHidden=false;this.flat=false;this.interface="checkbox";this.value="on";this.checked=false;this.disabled=false;this.readonly=false;this.required=false;this.autoInvalidOff=false;this.nonSubmit=false;this.invalid=false;this.hovered=false;this.pressed=false;this.color=undefined;this.colSize=1;this.colSizeTablet=1;this.colSizeMobile=1}e.prototype.createLogger=function(e){this.log=e};e.prototype.hoveredChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.pressedChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.connectedCallback=function(){var e=this;this.hoveredChanged();if(this.group){this.updateState();this.group.addEventListener("balChange",(function(){return e.updateState()}))}this.initialValue=this.checked;this.el.addEventListener("keydown",this.onKeydown);this.el.addEventListener("touchstart",this.onPointerDown);this.el.addEventListener("mousedown",this.onPointerDown)};e.prototype.componentWillLoad=function(){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"])};e.prototype.componentWillRender=function(){var e=this;this.interactionChildElements.forEach((function(c){c.disabled=e.disabled||e.readonly;c.invalid=e.invalid;c.checked=e.checked}))};e.prototype.disconnectedCallback=function(){var e=this;if(this.group){this.group.removeEventListener("balChange",(function(){return e.updateState()}))}this.el.removeEventListener("keydown",this.onKeydown);this.el.removeEventListener("touchstart",this.onPointerDown);this.el.removeEventListener("mousedown",this.onPointerDown)};e.prototype.listenOnClick=function(e){if((this.disabled||this.readonly)&&e.target&&(e.target===this.el||v(this.el,e.target))){x(e)}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){this.checked=this.initialValue}};e.prototype.elementStateListener=function(e){this.outerElementState=e;this.mergeElementState()};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){k(this);return[2]}))}))};e.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){u(this);return[2]}))}))};e.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};e.prototype.getOption=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.option]}))}))};e.prototype.updateState=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(c){if(this.group&&this.group.control&&Array.isArray(this.group.value)){e=this.group.value.includes(this.value);if(e!==this.checked){this.checked=e}}return[2]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};Object.defineProperty(e.prototype,"group",{get:function(){return this.el.closest("bal-checkbox-group")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"interactionChildElements",{get:function(){return Array.from(this.el.querySelectorAll("bal-check, bal-switch, bal-icon"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"option",{get:function(){return{name:this.name,value:this.value,checked:this.checked,label:this.label,labelHidden:this.labelHidden,flat:this.flat,interface:this.interface,disabled:this.disabled,readonly:this.readonly,required:this.required,nonSubmit:this.nonSubmit,invalid:this.invalid}},enumerable:false,configurable:true});e.prototype.mergeElementState=function(){var e=this;this.mergedElementState={hovered:this.outerElementState.hovered||this.innerElementState.hovered,pressed:this.outerElementState.pressed||this.innerElementState.pressed};this.interactionChildElements.forEach((function(c){c.hovered=e.mergedElementState.hovered;c.pressed=e.mergedElementState.pressed}))};e.prototype.render=function(){var e=this;var c=h.block("checkbox");var o=c.element("input");var l=c.element("label");var t=l.element("text");var r=l.element("icon");var n=this.focused&&this.buttonTabindex!==-1;var d=this.inheritedAttributes;if(this.buttonTabindex!==undefined){d.tabIndex=this.buttonTabindex}var s=!this.nonSubmit;var x=this.ariaForm.controlId||this.inputId;var k=this.ariaForm.labelId||null;var u=s?"label":"span";var v=this.interface==="switch"?"bal-switch":"bal-check";return a(b,{key:"eaa9cf2ba9de2a203b98515939ff117c89dc16cf","aria-checked":"".concat(this.checked),"aria-disabled":i(this.disabled),"aria-invalid":this.invalid===true?"true":"false","aria-hidden":i(this.disabled||this.nonSubmit),"aria-focused":n?"true":null,"aria-labelledby":k,"aria-describedby":this.ariaForm.messageId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"bal-focused":n},c.class()),c.modifier("checkbox").class()),c.modifier("button").class(this.interface==="button")),c.modifier("switch").class(this.interface==="switch")),c.modifier("tile").class(this.interface==="tile")),c.modifier("tile-color-".concat(this.color)).class(this.interface==="tile"&&!!this.color)),c.modifier("focused").class(this.focused)),c.modifier("invalid").class(this.invalid)),c.modifier("checked").class(this.checked)),c.modifier("flat").class(this.flat)),c.modifier("disabled").class(this.disabled||this.readonly)),c.modifier("hovered").class(this.mergedElementState.hovered)),c.modifier("pressed").class(this.mergedElementState.pressed)),c.modifier("column-".concat(this.colSize)).class(this.interface==="tile"&&this.colSize>1)),c.modifier("column-tablet-".concat(this.colSizeTablet)).class(this.interface==="tile"&&this.colSizeTablet>1)),c.modifier("column-mobile-".concat(this.colSizeMobile)).class(this.interface==="tile"&&this.colSizeMobile>1)),onClick:this.onClick},a(u,{key:"6fd849f4768bc7155eb5db297713bc82aeab6dfe",class:Object.assign({},l.class()),"data-testid":"bal-checkbox-label"},s?a("input",Object.assign({id:x,type:"checkbox","data-testid":"bal-checkbox-input",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled||this.nonSubmit,readonly:this.readonly,class:Object.assign({},o.class()),"aria-hidden":i(this.nonSubmit),"aria-invalid":this.invalid===true?"true":"false","aria-describedby":this.ariaForm.messageId,onChange:function(c){return e.toggleChecked(c)},onFocus:function(c){return e.onFocus(c)},onBlur:function(c){return e.onBlur(c)},ref:function(c){return e.nativeInput=c}},d)):"",this.interface!=="tile"?a("div",{class:Object.assign({},r.class())},a(v,{checked:this.checked,disabled:this.disabled||this.readonly,invalid:this.invalid,inverted:this.interface==="button"&&this.checked,hovered:this.mergedElementState.hovered,pressed:this.mergedElementState.pressed})):"",a("div",{key:"ca1ec209d9211082db1d0905e599eea5e6803244",class:Object.assign(Object.assign({},t.class()),t.modifier("hidden").class(this.labelHidden))},a("slot",{key:"a2a3c8124d7d47bf300b229fe01e62fa198961c0"}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{hovered:["hoveredChanged"],pressed:["pressedChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],C.prototype,"createLogger",null);t([g(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],C.prototype,"elementStateListener",null);var F=0;C.style=O;var A=".bal-checkbox-group{display:inline-block;position:relative;width:100%}.bal-checkbox-group__inner{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-normal)}.bal-checkbox-group__inner--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex:1;flex:1;gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--button{-ms-flex-direction:row;flex-direction:row}}.bal-checkbox-group__inner--expanded{-ms-flex-align:stretch;align-items:stretch}.bal-checkbox-group__inner--expanded .bal-checkbox{-ms-flex:1;flex:1}@media screen and (max-width: 768px){.bal-checkbox-group__inner--expanded .bal-checkbox{width:100%}}.bal-checkbox-group__inner--button.bal-checkbox-group__inner--vertical{gap:var(--bal-space-x-small)}.bal-checkbox-group__inner--vertical{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--vertical{-ms-flex-align:start;align-items:flex-start}}@media screen and (max-width: 768px){.bal-checkbox-group__inner--vertical-mobile{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}}";var L=A;var z=e("bal_checkbox_group",function(){function e(e){var a=this;c(this,e);this.balChange=o(this,"balChange",7);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.inputId="bal-cg-".concat(S++);this.inheritedAttributes={};this.hasFocus=false;this.mutationObserverActive=true;this.onClick=function(e){if(!a.control){return}var c=e.target;if(c.href){return}var o=e.target&&e.target.closest("bal-checkbox");if(o){if(o.disabled||o.readonly){return e.stopPropagation()}}a.updateValues()};this.onOptionChange=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){this.sync();return[2]}))}))};this.ariaForm=s;this.options=undefined;this.interface=undefined;this.control=false;this.name=this.inputId;this.vertical=false;this.verticalOnMobile=false;this.expanded=false;this.invalid=undefined;this.disabled=undefined;this.readonly=undefined;this.value=[];this.columns=1;this.columnsTablet=1;this.columnsMobile=1;this.autoInvalidOff=false}e.prototype.createLogger=function(e){this.log=e};e.prototype.optionChanged=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.control){this.onOptionChange();this.mutationObserverActive=this.options===undefined}return[2]}))}))};e.prototype.invalidChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.invalid=e}))}}};e.prototype.disabledChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.disabled=e}))}}};e.prototype.readonlyChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.readonly=e}))}}};e.prototype.valueChanged=function(e,c){if(this.control){if(!_(this.value,c)){this.onOptionChange()}}else{this.onOptionChange()}};e.prototype.columnsChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSize=e}))};e.prototype.columnsTabletChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeTablet=e}))};e.prototype.columnsMobileChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeMobile=e}))};e.prototype.connectedCallback=function(){if(this.control){this.mutationObserverActive=this.options===undefined;this.valueChanged(this.value,[])}};e.prototype.componentWillLoad=function(){if(this.control){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"]);this.disabledChanged(this.disabled);this.invalidChanged(this.invalid);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.focusInListener=function(e){this.balFocus.emit(e)};e.prototype.focusOutListener=function(e){this.balBlur.emit(e)};e.prototype.mutationListener=function(){if(this.control){this.disabledChanged(this.disabled);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.listenOnCheckboxChange=function(e){if(this.control){if(v(this.el,e.target)){x(e);this.updateValues()}}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){if(this.control){this.value=[]}this.onOptionChange()}};e.prototype.checkboxFocusListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.checkboxBlurListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){if(this.control){this.value=e}return[2]}))}))};e.prototype.getOptionByValue=function(e){return __awaiter(this,void 0,void 0,(function(){var c;return __generator(this,(function(o){c=this.options;if(c){return[2,c.find((function(c){return c.value===e}))]}return[2,undefined]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};e.prototype.sync=function(){var e=this;if(this.control){var c=function(c){for(var o=0;o<e.value.length;o++){var a=e.value[o];if(a!==undefined&&a.toString()===c.value.toString()){return true}}return false};this.getCheckboxes().forEach((function(e){e.checked=c(e)}))}this.getCheckboxes().forEach((function(c){if(e.interface){c.interface=e.interface}}))};e.prototype.getCheckboxes=function(){return Array.from(this.el.querySelectorAll("bal-checkbox"))};e.prototype.updateValues=function(){var e=[];this.getCheckboxes().forEach((function(c){if(c.checked){e.push(c.value)}}));if(!_(this.value,e)){this.value=__spreadArray([],e,true);this.balChange.emit(this.value)}};e.prototype.render=function(){var e=h.block("checkbox-group");var c=e.element("inner");var o=this.options||[];var l=o.map((function(e){if(typeof e.html==="function"){return Object.assign(Object.assign({},e),{html:e.html()})}return e}));return a(b,Object.assign({class:Object.assign({},e.class()),role:"group","aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-disabled":i(this.disabled),"aria-invalid":i(this.invalid),onClick:this.onClick},this.inheritedAttributes),a("div",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("vertical-mobile").class(this.verticalOnMobile)),c.modifier("vertical").class(this.vertical)),c.modifier("expanded").class(this.expanded)),c.modifier("button").class(this.interface==="button"))},a("slot",null),l.map((function(e){return a("bal-checkbox",{key:e.value,name:e.name,value:e.value,labelHidden:e.labelHidden,flat:e.flat,interface:e.interface,disabled:e.disabled,readonly:e.readonly,required:e.required,nonSubmit:!!e.nonSubmit,invalid:e.invalid,innerHTML:e.html})}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{options:["optionChanged"],invalid:["invalidChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"],value:["valueChanged"],columns:["columnsChanged"],columnsTablet:["columnsTabletChanged"],columnsMobile:["columnsMobileChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox-group"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],z.prototype,"createLogger",null);t([y(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],z.prototype,"focusInListener",null);t([y(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],z.prototype,"focusOutListener",null);t([w({tags:["bal-checkbox-group","bal-checkbox"],attributes:false,characterData:false}),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],z.prototype,"mutationListener",null);var S=0;z.style=L}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,c,o,a){function b(e){return e instanceof o?e:new o((function(c){c(e)}))}return new(o||(o=Promise))((function(o,l){function t(e){try{i(a.next(e))}catch(e){l(e)}}function r(e){try{i(a["throw"](e))}catch(e){l(e)}}function i(e){e.done?o(e.value):b(e.value).then(t,r)}i((a=a.apply(e,c||[])).next())}))};var __generator=this&&this.__generator||function(e,c){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,b,l,t;return t={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(t[Symbol.iterator]=function(){return this}),t;function r(e){return function(c){return i([e,c])}}function i(r){if(a)throw new TypeError("Generator is already executing.");while(t&&(t=0,r[0]&&(o=0)),o)try{if(a=1,b&&(l=r[0]&2?b["return"]:r[0]?b["throw"]||((l=b["return"])&&l.call(b),0):b.next)&&!(l=l.call(b,r[1])).done)return l;if(b=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:o.label++;return{value:r[1],done:false};case 5:o.label++;b=r[1];r=[0];continue;case 7:r=o.ops.pop();o.trys.pop();continue;default:if(!(l=o.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){o=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){o.label=r[1];break}if(r[0]===6&&o.label<l[1]){o.label=l[1];l=r;break}if(l&&o.label<l[2]){o.label=l[2];o.ops.push(r);break}if(l[2])o.ops.pop();o.trys.pop();continue}r=c.call(e,o)}catch(e){r=[6,e];b=0}finally{a=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,c,o){if(o||arguments.length===2)for(var a=0,b=c.length,l;a<b;a++){if(l||!(a in c)){if(!l)l=Array.prototype.slice.call(c,0,a);l[a]=c[a]}}return e.concat(l||Array.prototype.slice.call(c))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-2da669b4.system.js","./p-7720b262.system.js","./p-db0895e2.system.js","./p-16395ece.system.js","./p-907368ff.system.js","./p-c43a56b7.system.js","./p-863f4e4e.system.js","./p-23bdd8dc.system.js","./p-abd6896e.system.js","./p-4e642b63.system.js","./p-1c41de53.system.js","./p-237de03b.system.js","./p-5298de0e.system.js","./p-a1f6e944.system.js","./p-ade9437f.system.js","./p-eecefb0a.system.js","./p-6913b916.system.js","./p-df907af8.system.js","./p-2880433e.system.js"],(function(e){"use strict";var c,o,a,b,l,t,r,i,n,h,d,s,x,k,u,v,f,p,g,m,_,y,w;return{setters:[function(e){c=e.r;o=e.c;a=e.h;b=e.H;l=e.g},function(e){t=e._;r=e.a},function(e){i=e.a},function(e){n=e.i},function(e){h=e.B},function(e){d=e.F},function(e){s=e.d},function(e){x=e.s;k=e.c;u=e.d},function(e){v=e.j;f=e.v},function(e){p=e.L},function(e){g=e.L},function(e){m=e.d},function(e){_=e.a},function(e){y=e.L},function(e){w=e.L},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j="@media (hover: hover)and (pointer: fine){.bal-checkbox.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-checkbox-symbol-size:1.5rem;--bal-checkbox-symbol-border-width:2px;--bal-checkbox-symbol-background:transparent;--bal-checkbox-label-min-height:1.5rem;--bal-checkbox-button-background-hover:var(--bal-color-grey-2);--bal-checkbox-button-background-active:var(--bal-color-grey-2);--bal-checkbox-button-background-checked:var(--bal-color-primary);--bal-checkbox-button-background-checked-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-background-checked-active:var(--bal-color-primary-6);--bal-checkbox-button-background-invalid:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-background-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-background-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-background-disabled-hover-active:var(--bal-color-grey-2);--bal-checkbox-button-background-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-background:transparent;--bal-checkbox-button-background-checked-green:var(--bal-color-green-1);--bal-checkbox-button-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-button-background-checked-red:var(--bal-color-red-1);--bal-checkbox-button-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-button-background-disabled:var(--bal-color-grey-1);--bal-checkbox-button-background-hover:var(--bal-color-grey-1);--bal-checkbox-button-border-color:var(--bal-color-primary);--bal-checkbox-button-border-color-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-border-color-active:var(--bal-color-primary-6);--bal-checkbox-button-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-disabled-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-border-color-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-tile-background:transparent;--bal-checkbox-tile-background-hover:var(--bal-color-grey-1);--bal-checkbox-tile-background-disabled:var(--bal-color-grey-1);--bal-checkbox-tile-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-tile-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-tile-background-checked-green:var(--bal-color-green-1);--bal-checkbox-tile-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-tile-background-checked-red:var(--bal-color-red-1);--bal-checkbox-tile-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-tile-border-style:var(--bal-form-field-control-border-style);--bal-checkbox-tile-border-radius:var(--bal-form-field-control-radius);--bal-checkbox-tile-border-width:var(--bal-form-field-control-border-width);--bal-checkbox-tile-padding:var(--bal-text-size-medium);--bal-checkbox-tile-border-color:var(--bal-color-border);--bal-checkbox-tile-border-color-hover:var(--bal-color-border-primary-hovered);--bal-checkbox-tile-border-color-active:var(--bal-color-border-primary-pressed);--bal-checkbox-tile-border-color-invalid-hover:var(--bal-color-border-danger-hovered);--bal-checkbox-tile-border-color-invalid-active:var(--bal-color-border-danger-pressed);--bal-checkbox-tile-border-color-checked:var(--bal-color-border-primary);--bal-checkbox-tile-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-tile-border-color-disabled:var(--bal-color-border-grey-dark)}.bal-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;outline:none;min-width:var(--bal-checkbox-symbol-size);border-radius:var(--bal-radius-normal);cursor:pointer}.bal-checkbox .bal-checkbox__label{cursor:pointer}.bal-checkbox--invisible{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-checkbox.bal-checkbox--flat{min-height:var(--bal-checkbox-symbol-size)}.bal-checkbox:not(.bal-checkbox--flat){min-height:3rem}.bal-checkbox--invalid{color:var(--bal-form-field-label-danger-color)}.bal-checkbox--disabled,.bal-checkbox--disabled .bal-checkbox__label{color:var(--bal-form-field-label-disabled-color);cursor:default}.bal-checkbox__input{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden;width:100%;height:100%}.bal-checkbox__label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-direction:row;flex-direction:row}.bal-checkbox__label__text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:left;contain:layout style;font-family:var(--bal-font-family-text);padding-top:.25rem;padding-bottom:.25rem;width:100%}.bal-checkbox__label__text--hidden{display:none}.bal-checkbox__label__icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}@media (hover: hover)and (pointer: fine){.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__icon{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__icon{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__icon{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__icon{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-x-small);-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;padding-left:.75rem;padding-right:.75rem;min-width:3rem;border-width:2px;border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-color:var(--bal-checkbox-button-border-color)}.bal-checkbox--button.bal-checkbox--checked{background:var(--bal-checkbox-button-background-checked);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--invalid{border-color:var(--bal-color-border-danger);color:var(--bal-color-text-danger-hovered);background:var(--bal-color-danger-1)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked{color:var(--bal-color-white);background:var(--bal-color-border-danger)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled{border-color:var(--bal-color-grey-4);background:var(--bal-color-grey-2)}.bal-checkbox--button.bal-checkbox--disabled .bal-checkbox__label__text{color:var(--bal-color-text-grey)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked{background:var(--bal-color-grey-4);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-border-primary-hovered);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-border-primary-pressed);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover{background:var(--bal-color-border-danger-hovered);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active{background:var(--bal-color-border-danger-pressed);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-white)}.bal-checkbox--tile{display:block;-ms-flex:0 0 100%;flex:0 0 100%;background:var(--bal-checkbox-tile-background);border-style:var(--bal-checkbox-tile-border-style);border-radius:var(--bal-checkbox-tile-border-radius);border-width:var(--bal-checkbox-tile-border-width);border-color:var(--bal-checkbox-tile-border-color);padding:var(--bal-checkbox-tile-padding)}.bal-checkbox--tile .bal-checkbox__label{height:100%;-ms-flex-align:stretch;align-items:stretch}.bal-checkbox--tile.bal-checkbox--checked{border-color:var(--bal-checkbox-tile-border-color-checked)}.bal-checkbox--tile.bal-checkbox--invalid{border-color:var(--bal-checkbox-tile-border-color-invalid)}.bal-checkbox--tile.bal-checkbox--disabled{background:var(--bal-checkbox-tile-background-disabled);border-color:var(--bal-checkbox-tile-border-color-disabled);cursor:default}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-hover)}}.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-active)}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-checkbox-tile-background-invalid-hover);border-color:var(--bal-checkbox-tile-border-color-invalid-hover)}}.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-checkbox-tile-background-invalid-active);border-color:var(--bal-checkbox-tile-border-color-invalid-active)}.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-green)}.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-red)}.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-purple)}.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-yellow)}@media screen and (min-width: 769px),print{.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (max-width: 768px){.bal-checkbox--column-mobile-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-mobile-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-mobile-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 769px),print{.bal-checkbox--column-tablet-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-tablet-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-tablet-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 1024px){.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}";var O=j;var C=e("bal_checkbox",function(){function e(e){var a=this;c(this,e);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.balChange=o(this,"balChange",7);this.inputId="bal-cb-".concat(F++);this.inheritedAttributes={};this.keyboardMode=true;this.outerElementState={hovered:false,pressed:false};this.innerElementState={hovered:false,pressed:false};this.initialValue=false;this.setChecked=function(e){a.checked=e;a.balChange.emit(a.checked)};this.toggleChecked=function(e){e.preventDefault();a.setFocus();a.setChecked(!a.checked)};this.onClick=function(e){if(a.disabled){return}var c=e.target;if(c&&c.href){return}if(a.wasFocused){a.focused=true}a.toggleChecked(e)};this.onFocus=function(e){if(a.disabled||a.readonly){a.focused=false;return x(e)}a.balFocus.emit(e);if(a.keyboardMode){a.focused=true;a.wasFocused=true}};this.onBlur=function(e){if(a.disabled||a.readonly){return x(e)}a.balBlur.emit(e);a.focused=false};this.onPointerDown=function(){return a.keyboardMode=false};this.onKeydown=function(e){if(!m(e)){a.wasFocused=false}a.keyboardMode=d.includes(e.key)};this.hasLabel=true;this.focused=false;this.buttonTabindex=undefined;this.ariaForm=s;this.wasFocused=false;this.mergedElementState={hovered:false,pressed:false};this.name=this.inputId;this.label="";this.labelHidden=false;this.flat=false;this.interface="checkbox";this.value="on";this.checked=false;this.disabled=false;this.readonly=false;this.required=false;this.autoInvalidOff=false;this.nonSubmit=false;this.invalid=false;this.hovered=false;this.pressed=false;this.color=undefined;this.colSize=1;this.colSizeTablet=1;this.colSizeMobile=1}e.prototype.createLogger=function(e){this.log=e};e.prototype.hoveredChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.pressedChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.connectedCallback=function(){var e=this;this.hoveredChanged();if(this.group){this.updateState();this.group.addEventListener("balChange",(function(){return e.updateState()}))}this.initialValue=this.checked;this.el.addEventListener("keydown",this.onKeydown);this.el.addEventListener("touchstart",this.onPointerDown);this.el.addEventListener("mousedown",this.onPointerDown)};e.prototype.componentWillLoad=function(){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"])};e.prototype.componentWillRender=function(){var e=this;this.interactionChildElements.forEach((function(c){c.disabled=e.disabled||e.readonly;c.invalid=e.invalid;c.checked=e.checked}))};e.prototype.disconnectedCallback=function(){var e=this;if(this.group){this.group.removeEventListener("balChange",(function(){return e.updateState()}))}this.el.removeEventListener("keydown",this.onKeydown);this.el.removeEventListener("touchstart",this.onPointerDown);this.el.removeEventListener("mousedown",this.onPointerDown)};e.prototype.listenOnClick=function(e){if((this.disabled||this.readonly)&&e.target&&(e.target===this.el||v(this.el,e.target))){x(e)}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){this.checked=this.initialValue}};e.prototype.elementStateListener=function(e){this.outerElementState=e;this.mergeElementState()};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){k(this);return[2]}))}))};e.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){u(this);return[2]}))}))};e.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};e.prototype.getOption=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.option]}))}))};e.prototype.updateState=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(c){if(this.group&&this.group.control&&Array.isArray(this.group.value)){e=this.group.value.includes(this.value);if(e!==this.checked){this.checked=e}}return[2]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};Object.defineProperty(e.prototype,"group",{get:function(){return this.el.closest("bal-checkbox-group")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"interactionChildElements",{get:function(){return Array.from(this.el.querySelectorAll("bal-check, bal-switch, bal-icon"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"option",{get:function(){return{name:this.name,value:this.value,checked:this.checked,label:this.label,labelHidden:this.labelHidden,flat:this.flat,interface:this.interface,disabled:this.disabled,readonly:this.readonly,required:this.required,nonSubmit:this.nonSubmit,invalid:this.invalid}},enumerable:false,configurable:true});e.prototype.mergeElementState=function(){var e=this;this.mergedElementState={hovered:this.outerElementState.hovered||this.innerElementState.hovered,pressed:this.outerElementState.pressed||this.innerElementState.pressed};this.interactionChildElements.forEach((function(c){c.hovered=e.mergedElementState.hovered;c.pressed=e.mergedElementState.pressed}))};e.prototype.render=function(){var e=this;var c=h.block("checkbox");var o=c.element("input");var l=c.element("label");var t=l.element("text");var r=l.element("icon");var n=this.focused&&this.buttonTabindex!==-1;var d=this.inheritedAttributes;if(this.buttonTabindex!==undefined){d.tabIndex=this.buttonTabindex}var s=!this.nonSubmit;var x=this.ariaForm.controlId||this.inputId;var k=this.ariaForm.labelId||null;var u=s?"label":"span";var v=this.interface==="switch"?"bal-switch":"bal-check";return a(b,{key:"eaa9cf2ba9de2a203b98515939ff117c89dc16cf","aria-checked":"".concat(this.checked),"aria-disabled":i(this.disabled),"aria-invalid":this.invalid===true?"true":"false","aria-hidden":i(this.disabled||this.nonSubmit),"aria-focused":n?"true":null,"aria-labelledby":k,"aria-describedby":this.ariaForm.messageId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"bal-focused":n},c.class()),c.modifier("checkbox").class()),c.modifier("button").class(this.interface==="button")),c.modifier("switch").class(this.interface==="switch")),c.modifier("tile").class(this.interface==="tile")),c.modifier("tile-color-".concat(this.color)).class(this.interface==="tile"&&!!this.color)),c.modifier("focused").class(this.focused)),c.modifier("invalid").class(this.invalid)),c.modifier("checked").class(this.checked)),c.modifier("flat").class(this.flat)),c.modifier("disabled").class(this.disabled||this.readonly)),c.modifier("hovered").class(this.mergedElementState.hovered)),c.modifier("pressed").class(this.mergedElementState.pressed)),c.modifier("column-".concat(this.colSize)).class(this.interface==="tile"&&this.colSize>1)),c.modifier("column-tablet-".concat(this.colSizeTablet)).class(this.interface==="tile"&&this.colSizeTablet>1)),c.modifier("column-mobile-".concat(this.colSizeMobile)).class(this.interface==="tile"&&this.colSizeMobile>1)),onClick:this.onClick},a(u,{key:"6fd849f4768bc7155eb5db297713bc82aeab6dfe",class:Object.assign({},l.class()),"data-testid":"bal-checkbox-label"},s?a("input",Object.assign({id:x,type:"checkbox","data-testid":"bal-checkbox-input",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled||this.nonSubmit,readonly:this.readonly,class:Object.assign({},o.class()),"aria-hidden":i(this.nonSubmit),"aria-invalid":this.invalid===true?"true":"false","aria-describedby":this.ariaForm.messageId,onChange:function(c){return e.toggleChecked(c)},onFocus:function(c){return e.onFocus(c)},onBlur:function(c){return e.onBlur(c)},ref:function(c){return e.nativeInput=c}},d)):"",this.interface!=="tile"?a("div",{class:Object.assign({},r.class())},a(v,{checked:this.checked,disabled:this.disabled||this.readonly,invalid:this.invalid,inverted:this.interface==="button"&&this.checked,hovered:this.mergedElementState.hovered,pressed:this.mergedElementState.pressed})):"",a("div",{key:"ca1ec209d9211082db1d0905e599eea5e6803244",class:Object.assign(Object.assign({},t.class()),t.modifier("hidden").class(this.labelHidden))},a("slot",{key:"a2a3c8124d7d47bf300b229fe01e62fa198961c0"}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{hovered:["hoveredChanged"],pressed:["pressedChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],C.prototype,"createLogger",null);t([g(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],C.prototype,"elementStateListener",null);var F=0;C.style=O;var A=".bal-checkbox-group{display:inline-block;position:relative;width:100%}.bal-checkbox-group__inner{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-normal)}.bal-checkbox-group__inner--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex:1;flex:1;gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--button{-ms-flex-direction:row;flex-direction:row}}.bal-checkbox-group__inner--expanded{-ms-flex-align:stretch;align-items:stretch}.bal-checkbox-group__inner--expanded .bal-checkbox{-ms-flex:1;flex:1}@media screen and (max-width: 768px){.bal-checkbox-group__inner--expanded .bal-checkbox{width:100%}}.bal-checkbox-group__inner--button.bal-checkbox-group__inner--vertical{gap:var(--bal-space-x-small)}.bal-checkbox-group__inner--vertical{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--vertical{-ms-flex-align:start;align-items:flex-start}}@media screen and (max-width: 768px){.bal-checkbox-group__inner--vertical-mobile{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}}";var L=A;var z=e("bal_checkbox_group",function(){function e(e){var a=this;c(this,e);this.balChange=o(this,"balChange",7);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.inputId="bal-cg-".concat(S++);this.inheritedAttributes={};this.hasFocus=false;this.mutationObserverActive=true;this.onClick=function(e){if(!a.control){return}var c=e.target;if(c.href){return}var o=e.target&&e.target.closest("bal-checkbox");if(o){if(o.disabled||o.readonly){return e.stopPropagation()}}a.updateValues()};this.onOptionChange=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){this.sync();return[2]}))}))};this.ariaForm=s;this.options=undefined;this.interface=undefined;this.control=false;this.name=this.inputId;this.vertical=false;this.verticalOnMobile=false;this.expanded=false;this.invalid=undefined;this.disabled=undefined;this.readonly=undefined;this.value=[];this.columns=1;this.columnsTablet=1;this.columnsMobile=1;this.autoInvalidOff=false}e.prototype.createLogger=function(e){this.log=e};e.prototype.optionChanged=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.control){this.onOptionChange();this.mutationObserverActive=this.options===undefined}return[2]}))}))};e.prototype.invalidChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.invalid=e}))}}};e.prototype.disabledChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.disabled=e}))}}};e.prototype.readonlyChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.readonly=e}))}}};e.prototype.valueChanged=function(e,c){if(this.control){if(!_(this.value,c)){this.onOptionChange()}}else{this.onOptionChange()}};e.prototype.columnsChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSize=e}))};e.prototype.columnsTabletChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeTablet=e}))};e.prototype.columnsMobileChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeMobile=e}))};e.prototype.connectedCallback=function(){if(this.control){this.mutationObserverActive=this.options===undefined;this.valueChanged(this.value,[])}};e.prototype.componentWillLoad=function(){if(this.control){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"]);this.disabledChanged(this.disabled);this.invalidChanged(this.invalid);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.focusInListener=function(e){this.balFocus.emit(e)};e.prototype.focusOutListener=function(e){this.balBlur.emit(e)};e.prototype.mutationListener=function(){if(this.control){this.disabledChanged(this.disabled);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.listenOnCheckboxChange=function(e){if(this.control){if(v(this.el,e.target)){x(e);this.updateValues()}}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){if(this.control){this.value=[]}this.onOptionChange()}};e.prototype.checkboxFocusListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.checkboxBlurListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){if(this.control){this.value=e}return[2]}))}))};e.prototype.getOptionByValue=function(e){return __awaiter(this,void 0,void 0,(function(){var c;return __generator(this,(function(o){c=this.options;if(c){return[2,c.find((function(c){return c.value===e}))]}return[2,undefined]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};e.prototype.sync=function(){var e=this;if(this.control){var c=function(c){for(var o=0;o<e.value.length;o++){var a=e.value[o];if(a!==undefined&&a.toString()===c.value.toString()){return true}}return false};this.getCheckboxes().forEach((function(e){e.checked=c(e)}))}this.getCheckboxes().forEach((function(c){if(e.interface){c.interface=e.interface}}))};e.prototype.getCheckboxes=function(){return Array.from(this.el.querySelectorAll("bal-checkbox"))};e.prototype.updateValues=function(){var e=[];this.getCheckboxes().forEach((function(c){if(c.checked){e.push(c.value)}}));if(!_(this.value,e)){this.value=__spreadArray([],e,true);this.balChange.emit(this.value)}};e.prototype.render=function(){var e=h.block("checkbox-group");var c=e.element("inner");var o=this.options||[];var l=o.map((function(e){if(typeof e.html==="function"){return Object.assign(Object.assign({},e),{html:e.html()})}return e}));return a(b,Object.assign({class:Object.assign({},e.class()),role:"group","aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-disabled":i(this.disabled),"aria-invalid":i(this.invalid),onClick:this.onClick},this.inheritedAttributes),a("div",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("vertical-mobile").class(this.verticalOnMobile)),c.modifier("vertical").class(this.vertical)),c.modifier("expanded").class(this.expanded)),c.modifier("button").class(this.interface==="button"))},a("slot",null),l.map((function(e){return a("bal-checkbox",{key:e.value,name:e.name,value:e.value,labelHidden:e.labelHidden,flat:e.flat,interface:e.interface,disabled:e.disabled,readonly:e.readonly,required:e.required,nonSubmit:!!e.nonSubmit,invalid:e.invalid,innerHTML:e.html})}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{options:["optionChanged"],invalid:["invalidChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"],value:["valueChanged"],columns:["columnsChanged"],columnsTablet:["columnsTabletChanged"],columnsMobile:["columnsMobileChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox-group"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],z.prototype,"createLogger",null);t([y(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],z.prototype,"focusInListener",null);t([y(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],z.prototype,"focusOutListener",null);t([w({tags:["bal-checkbox-group","bal-checkbox"],attributes:false,characterData:false}),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],z.prototype,"mutationListener",null);var S=0;z.style=L}}}));
|
package/dist/baloise-design-system/{p-a82d082286.system.entry.js → p-9df40521e4.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n["throw"](t))}catch(t){o(t)}}function l(t){t.done?e(t.value):r(t.value).then(a,s)}l((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return l([t,i])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(e=0)),e)try{if(n=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;r=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){e.label=s[1];break}if(s[0]===6&&e.label<o[1]){e.label=o[1];o=s;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(s);break}if(o[2])e.ops.pop();e.trys.pop();continue}s=i.call(t,e)}catch(t){s=[6,t];r=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-23bdd8dc.system.js","./p-db0895e2.system.js","./p-a1f6e944.system.js","./p-ec9a7cf5.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n["throw"](t))}catch(t){o(t)}}function l(t){t.done?e(t.value):r(t.value).then(a,s)}l((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return l([t,i])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(e=0)),e)try{if(n=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;r=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){e.label=s[1];break}if(s[0]===6&&e.label<o[1]){e.label=o[1];o=s;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(s);break}if(o[2])e.ops.pop();e.trys.pop();continue}s=i.call(t,e)}catch(t){s=[6,t];r=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-23bdd8dc.system.js","./p-db0895e2.system.js","./p-a1f6e944.system.js","./p-ec9a7cf5.system.js","./p-92b665e7.system.js","./p-863f4e4e.system.js","./p-ade9437f.system.js"],(function(t){"use strict";var i,e,n,r,o,a,s,l,u,c,f,h;return{setters:[function(t){i=t.r;e=t.c;n=t.h;r=t.H;o=t.g},function(t){a=t._;s=t.a},function(t){l=t.L},function(t){u=t.B},function(t){c=t.b},function(t){f=t.b},function(t){h=t.b},function(){},function(){}],execute:function(){var d=function(t){if(t){m(t)}};var b=function(t){if(t){y(t)}};var p=function(t){if(t){m(t)}};var v=function(t){if(t){Object.assign(t.style,{left:"",top:"",display:"none",visibility:"hidden"})}};var m=function(t){if(t){t.style.setProperty("display","block");t.style.setProperty("visibility","visible")}};var y=function(t){if(t){t.style.removeProperty("display");t.style.removeProperty("visibility")}};var g=":host{--bal-tooltip-container-background:var(--bal-color-primary-6);--bal-tooltip-max-width:auto;--bal-tooltip-radius:var(--bal-radius-normal);--bal-tooltip-shadow:var(--bal-shadow-normal);--bal-tooltip-arrow-background:var(--bal-color-primary-6);--bal-tooltip-font-family:var(--bal-font-family-text);--bal-tooltip-font-size:var(--bal-text-size-small)}:host{position:static;display:inline;z-index:var(--bal-z-index-tooltip)}.bal-tooltip__container{background-color:var(--bal-tooltip-container-background);display:none;visibility:hidden;color:#fff;padding:var(--bal-space-x-small);border-radius:var(--bal-tooltip-radius);-webkit-box-shadow:var(--bal-tooltip-shadow);box-shadow:var(--bal-tooltip-shadow);width:var(--bal-tooltip-max-width);position:absolute;top:0;left:0}.bal-tooltip__inner{overflow-y:auto;max-height:calc(var(--bal-app-height, 100%) - 8rem)}.bal-tooltip__inner__content{width:100%;font-family:var(--bal-tooltip-font-family);font-size:var(--bal-tooltip-font-size)}.bal-tooltip__arrow{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;width:.5rem;height:.5rem;background:var(--bal-tooltip-arrow-background);-webkit-transform:rotate(45deg);transform:rotate(45deg);display:none;visibility:hidden}.bal-tooltip-variant-popover-trigger,.bal-tooltip-permanent-trigger{z-index:calc(var(--bal-z-index-tooltip) + 1) !important;position:relative !important}";var w=g;var _=t("bal_tooltip",function(){function t(t){i(this,t);this.balWillAnimate=e(this,"balWillAnimate",7);this.balDidAnimate=e(this,"balDidAnimate",7);this.tooltipId="bal-to-".concat(x++);this.reference="";this.placement="bottom";this.offset=0;this.demo=false;this.presented=false;this.contentWidth=undefined}t.prototype.createLogger=function(t){this.log=t};t.prototype.contentWidthChanged=function(t,i){if(t!==i){if(t===undefined){this.el.style.removeProperty("--bal-tooltip-max-width")}else{this.el.style.setProperty("--bal-tooltip-max-width","".concat(this.contentWidth,"px"))}}};t.prototype.componentDidLoad=function(){var t=this;this.contentWidthChanged(this.contentWidth,0);if(!f.hasTouchScreen){var i=[];var e=[];i=["mouseenter","focus"];e=["mouseleave","blur"];i.forEach((function(i){if(t.triggerElement){t.triggerElement.addEventListener(i,(function(){return t.present()}))}}));e.forEach((function(i){if(t.triggerElement){t.triggerElement.addEventListener(i,(function(){return t.dismiss()}))}}))}if(this.demo){this.present()}};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:if(!this.trigger&&c.hasDocument){t=Array.from(document.querySelectorAll('[id="'.concat(this.reference,'"]')))[0];this.trigger=t}if(!(this.trigger&&this.containerEl&&this.arrowEl))return[3,2];this.balWillAnimate.emit();i=this.trigger.attributes.getNamedItem("bal-tooltip-placement");if(i){this.placement=i.value}else{this.placement=this.placement}d(this.containerEl);p(this.arrowEl);this.trigger.classList.add("bal-tooltip-trigger");this.presented=true;return[4,h.load()];case 1:e=r.sent();this.cleanup=e.autoUpdate(this.trigger,this.containerEl,(function(){n.update()}),{ancestorScroll:true,ancestorResize:true,elementResize:false,layoutShift:true,animationFrame:true});this.balDidAnimate.emit();return[2,true];case 2:return[2,false]}}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.containerEl&&this.arrowEl&&this.trigger){this.balWillAnimate.emit();if(this.cleanup){this.cleanup()}this.trigger.classList.remove("bal-tooltip-trigger");b(this.containerEl);v(this.arrowEl);this.presented=false;this.balDidAnimate.emit();return[2,true]}return[2,false]}))}))};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;var e=this;return __generator(this,(function(n){switch(n.label){case 0:if(!(this.trigger&&this.containerEl&&this.arrowEl))return[3,2];this.balWillAnimate.emit();t=false;if(c.hasWindow){t=!!window.frameElement}return[4,h.load()];case 1:i=n.sent();i.computePosition(this.trigger,this.containerEl,{placement:this.placement,middleware:[t?undefined:i.shift(),i.flip(),i.offset(8),i.arrow({element:this.arrowEl,padding:4})]}).then((function(t){var i;var n=t.x,r=t.y,o=t.middlewareData,a=t.placement;var s=a.split("-")[0];var l={top:"bottom",right:"left",bottom:"top",left:"right"}[s];if(e.containerEl){Object.assign(e.containerEl.style,{left:"".concat(n,"px"),top:"".concat(r,"px")})}if(o.arrow&&e.arrowEl){var u=o.arrow;Object.assign(e.arrowEl.style,(i={left:n!=null&&u.x!=null?"".concat(u.x,"px"):"",top:r!=null&&u.y!=null?"".concat(u.y,"px"):"",right:"",bottom:""},i[l]="".concat(-4,"px"),i))}}));this.balDidAnimate.emit();return[2,true];case 2:return[2,false]}}))}))};Object.defineProperty(t.prototype,"triggerElement",{get:function(){return document.querySelector('[id="'.concat(this.reference,'"]'))},enumerable:false,configurable:true});t.prototype.render=function(){var t=this;var i=u.block("tooltip");var e=i.element("container");var o=i.element("arrow");var a=i.element("inner");var s=a.element("content");return n(r,{key:"0d4c212b2fc53455951d404533f2edee8032a022",class:Object.assign({},i.class()),role:"dialog","aria-hidden":"".concat(this.presented!==true),"aria-modal":"".concat(this.presented===true),"aria-presented":"".concat(this.presented===true)},n("div",{key:"33331b2e7e10c448fd3ee2031d15ac6e328237d8",class:Object.assign({},e.class()),ref:function(i){return t.containerEl=i}},n("div",{key:"e85f45f6f548350d35c11ad4bbf287022daba636",class:Object.assign({},o.class()),ref:function(i){return t.arrowEl=i}}),n("bal-stack",{key:"33445925363c46f16f06c160a90ea811f2abdc60",layout:"vertical",class:Object.assign({},a.class())},n("div",{key:"71a9d997a4fdcd5081bd69a3922918c109278377",class:Object.assign({},s.class()),ref:function(i){return t.contentEl=i},"data-test":"bal-tooltip-content"},n("slot",{key:"df311a2293e02dfe52234ee77815f6e996647736"})))))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{contentWidth:["contentWidthChanged"]}},enumerable:false,configurable:true});return t}());a([l("bal-tooltip"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],_.prototype,"createLogger",null);var x=0;_.style=w}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"./p-a65354df.js";import{b as e,a as n,c as t,d as s,e as o,f as i,g as r,h as l,i as c,j as u,k as m,l as f,m as b,n as w,o as d,p as I,q as p,r as T,s as P,u as v}from"./p-
|
|
1
|
+
import{b as a}from"./p-a65354df.js";import{b as e,a as n,c as t,d as s,e as o,f as i,g as r,h as l,i as c,j as u,k as m,l as f,m as b,n as w,o as d,p as I,q as p,r as T,s as P,u as v}from"./p-a7be57b6.js";const y=(e,n=32)=>{let t=!1;const s=()=>{t||(t=!0,e())};if(a.hasWindow){const a=setTimeout(s,n);window.addEventListener("load",(()=>{clearTimeout(a),s()}))}else setTimeout(s,32)},_=(e,n=5e3)=>{a.hasWindow&&"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:n}):setTimeout(e,32)},A=(a=0)=>new Promise((e=>{setTimeout((()=>e()),a)})),C=(a,e)=>{const n=a._original||a;return{_original:a,emit:g(n.emit.bind(n),e)}},g=(a,e=0)=>{let n;return(...t)=>{clearTimeout(n),n=setTimeout(a,e,...t)}},h=(a,e)=>a&&a.tagName&&a.tagName===e.toUpperCase(),q=(a,e)=>{let n=e.parentNode;for(;null!=n;){if(n==a)return!0;n=n.parentNode}return!1},k=(a,e)=>{let n=e.parentNode;for(;null!=n;){if(n.tagName===a.toUpperCase())return!0;n=n.parentNode}return!1},N=a=>a.querySelector("bal-app")||a.body,j=(a,e)=>{null!=a.componentOnReady?a.componentOnReady().then((a=>e(a))):D((()=>e(a)))},D=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a),B=(a,e=0)=>new Promise((n=>{F(a,e,n)})),F=(a,e=0,n)=>{let t,s;const o={passive:!0},i=()=>{t&&t()},r=e=>{void 0!==e&&a!==e.target||(i(),n(e))};return a&&(a.addEventListener("webkitTransitionEnd",r,o),a.addEventListener("transitionend",r,o),s=setTimeout(r,e+500),t=()=>{s&&(clearTimeout(s),s=void 0),a.removeEventListener("webkitTransitionEnd",r,o),a.removeEventListener("transitionend",r,o)}),i},G=(e,n,t,s)=>{if(a.hasWindow){const a=v();if(a){const o=a._ael;if(o)return o(e,n,t,s);if(a._ael)return a._ael(e,n,t,s)}}return e.addEventListener(n,t,s)},R=(e,n,t,s)=>{if(a.hasWindow){const a=v();if(a){const o=a._rel;if(o)return o(e,n,t,s);if(a._rel)return a._rel(e,n,t,s)}}return e.removeEventListener(n,t,s)},E=a=>a?new Promise((e=>j(a,e))):Promise.resolve(),L=async(a,e=!1)=>{const n=a;if(n){if(null!=n.componentOnReady){const a=await n.componentOnReady();if(!e&&null!=a)return}await Promise.all(Array.from(n.children).map((a=>L(a,e))))}},M=async a=>{await L(a,!0),await z(),await x()},O=async(a,e,n)=>{if(a&&a.target&&e&&e!==a.target){let t=a.target;"BAL-NAVBAR-BRAND"===a.target.nodeName&&(t=t.closest("bal-navbar")),t&&q(t,e)&&n(t)}},U=async(a,v)=>{const y=Object.assign({animated:!1,icons:{balIconClose:e,balIconInfoCircle:n,balIconPlus:t,balIconMinus:s,balIconEdit:o,balIconTrash:i,balIconNavGoLeft:r,balIconNavGoRight:l,balIconNavGoDown:c,balIconNavGoUp:u,balIconCaretUp:m,balIconCaretDown:f,balIconCaretLeft:b,balIconCaretRight:w,balIconCheck:d,balIconDate:I,balIconDocument:p,balIconUpload:T,balIconMenuBars:P}},v),_=a;if(null!=_){await L(_,!0);const a=Array.prototype.slice.call(_.querySelectorAll("*")).filter((a=>a.tagName.match(/^bal/i)));await Promise.all(a.map((a=>{if(null!=a.configChanged)return a.configChanged(y)})))}await Promise.all([z(),V(),x()])},z=()=>new Promise((a=>D((()=>J(a))))),x=()=>new Promise((a=>_((()=>J(a))))),V=()=>new Promise((e=>((e,n=3e3)=>{let t=!1;if(a.isSafari||!a.hasWindow||!("PerformanceObserver"in window))return setTimeout(e,32);{const a=new PerformanceObserver((n=>{const s=n.getEntries();s[s.length-1]&&(a.disconnect(),t=!0,_((()=>e())))}));a.observe({type:"largest-contentful-paint",buffered:!0}),setTimeout((()=>{t||(a.disconnect(),e())}),n)}})((()=>J(e))))),H=()=>new Promise((a=>y((()=>J(a))))),J=e=>{if(a.hasWindow&&"MessageChannel"in window){const a=new window.MessageChannel;a.port1.onmessage=e,a.port2.postMessage(void 0)}else setTimeout(e,32)};export{U as a,z as b,j as c,x as d,V as e,H as f,N as g,L as h,A as i,q as j,g as k,G as l,y as m,_ as n,D as o,C as p,O as q,R as r,E as s,B as t,k as u,h as v,M as w}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as a,g as e}from"./p-2ccbe55a.js";import{_ as o,a as n}from"./p-43c9f5e9.js";import{B as p}from"./p-ae86d0a0.js";import{b as r}from"./p-a65354df.js";import{s as h}from"./p-f19930db.js";import{k as l}from"./p-b0cf4731.js";import{L as d}from"./p-b77e3348.js";import{b as c}from"./p-d96b1ee9.js";import{c as b}from"./p-dc98854c.js";import"./p-3d3aa421.js";class u{showContainerElement(t){t.containerEl&&this.showElement(t.containerEl)}hideContainerElement(t){t.containerEl&&this.hideElement(t.containerEl)}showArrowElement(t,i=t.arrow){i&&t.arrowEl&&this.showElement(t.arrowEl)}hideArrowElement(t){t.arrowEl&&Object.assign(t.arrowEl.style,{left:"",top:"",display:"none",visibility:"hidden"})}showBackdropElement(t,i=t.backdrop){i&&t.backdropEl&&this.showElement(t.backdropEl)}hideBackdropElement(t){t.backdropEl&&this.hideElement(t.backdropEl)}showElement(t){t&&(t.style.setProperty("display","block"),t.style.setProperty("visibility","visible"))}hideElement(t){t&&(t.style.removeProperty("display"),t.style.removeProperty("visibility"))}}class v extends u{constructor(){super(...arguments),this.backdrop=!1,this.offset=0}async present(t){return!!(t.containerEl&&t.trigger&&t.backdropEl)&&(this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop),this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset),t.containerEl.style.setProperty("inset","auto 0px 0px 0px"),t.containerEl.style.setProperty("bottom",`${this.offset}px`),t.backdropEl.style.setProperty("bottom",`${this.offset}px`),this.showBackdropElement(t,this.backdrop),this.showContainerElement(t),!0)}async update(t){return!1}async dismiss(t){return!(!t.containerEl||!t.backdropEl||(t.balWillAnimate.emit(),this.hideBackdropElement(t),this.hideContainerElement(t),t.containerEl.style.removeProperty("inset"),t.containerEl.style.removeProperty("bottom"),t.backdropEl.style.removeProperty("bottom"),0))}}class m extends u{constructor(){super(...arguments),this.offset=0}async present(t){return!(!t.containerEl||!t.trigger||(this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset),t.containerEl.style.setProperty("inset",`${this.offset}px auto auto 0px`),this.offset>0&&t.containerEl.style.setProperty("box-shadow","inset var(--bal-nav-meta-bar-variant-white-shadow)"),this.showBackdropElement(t),this.showContainerElement(t),this.hideArrowElement(t),0))}async update(t){return!1}async dismiss(t){return!!t.containerEl&&(this.hideBackdropElement(t),this.hideContainerElement(t),this.hideArrowElement(t),t.containerEl.style.removeProperty("box-shadow"),t.containerEl.style.removeProperty("inset"),!0)}}class w extends u{constructor(){super(...arguments),this.placement="bottom",this.offset=0,this.arrow=!1,this.backdrop=!1,this.reference=void 0,this.triggerEl=null}async present(t){const i=await c.load();if(!t.trigger&&r.hasDocument){const i=Array.from(document.querySelectorAll(`[bal-popup="${t.el.id}"]`))[0];t.trigger=i}if(t.trigger&&t.containerEl&&t.arrowEl){if(this.placement=t.getValue(t.trigger,"bal-popup-placement",t.placement),this.arrow=t.getBooleanValue(t.trigger,"bal-popup-arrow",t.arrow),this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop),this.reference=t.getValue(t.trigger,"bal-popup-reference",t.reference),this.offset=t.getNumberValue(t.trigger,"bal-popup-offset",t.offset),this.triggerEl=t.trigger,this.reference&&r.hasDocument){const i=document.getElementById(this.reference);this.triggerEl=i||t.trigger}if(this.triggerEl)return this.showContainerElement(t),this.showBackdropElement(t,this.backdrop),this.showArrowElement(t,this.arrow),this.triggerEl.classList.add("bal-popup-variant-popover-trigger"),"bottom-end"===this.placement&&this.triggerEl!==t.trigger&&t.setMinWidth(this.triggerEl.clientWidth),this.cleanup=i.autoUpdate(this.triggerEl,t.containerEl,(()=>{this.update(t)}),{ancestorScroll:!0,ancestorResize:!0,elementResize:!1,layoutShift:!0,animationFrame:!0}),!0}return!1}async update(t){var i,s;if(this.triggerEl&&t.trigger&&t.containerEl&&t.arrowEl){const a=await c.load(),e="bottom-end"===this.placement&&this.triggerEl!==t.trigger,o=null===(i=this.triggerEl)||void 0===i?void 0:i.getBoundingClientRect(),n=null===(s=t.trigger)||void 0===s?void 0:s.getBoundingClientRect();let p=!1;return r.hasWindow&&(p=!!window.frameElement),a.computePosition(this.triggerEl,t.containerEl,{placement:this.placement,middleware:[p?void 0:a.shift(),a.flip(),a.offset(this.arrow?16:this.offset),a.arrow({element:t.arrowEl,padding:4})]}).then((({x:i,y:s,middlewareData:a,placement:p})=>{if(t.containerEl){Object.assign(t.containerEl.style,{left:`${i}px`,top:`${s}px`});const r={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]];if(a.arrow&&t.arrowEl){const p=a.arrow;Object.assign(t.arrowEl.style,e?{right:o.right-n.right-4+n.width/2+"px",left:"",top:null!=s&&null!=p.y?`${p.y}px`:"",bottom:"",[r]:"-4px"}:{left:null!=i&&null!=p.x?`${p.x}px`:"",top:null!=s&&null!=p.y?`${p.y}px`:"",right:"",bottom:"",[r]:"-4px"})}}})),!0}return!1}async dismiss(t){return!!(t.containerEl&&t.arrowEl&&this.triggerEl)&&(this.cleanup&&this.cleanup(),this.triggerEl.classList.remove("bal-popup-variant-popover-trigger"),this.hideBackdropElement(t),this.hideContainerElement(t),this.hideArrowElement(t),!0)}}class g{constructor(t){this.renderer=t}async present(t){t.balWillAnimate.emit();const i=await this.renderer.present(t);return i&&(t.presented=!0,t.balDidAnimate.emit()),i}async update(t){t.balWillAnimate.emit();const i=await this.renderer.update(t);return i&&t.balDidAnimate.emit(),i}async dismiss(t){t.balWillAnimate.emit();const i=await this.renderer.dismiss(t);return i&&(t.presented=!1,t.balDidAnimate.emit()),i}}const f=class{constructor(s){t(this,s),this.balChange=i(this,"balChange",7),this.balWillAnimate=i(this,"balWillAnimate",7),this.balDidAnimate=i(this,"balDidAnimate",7),this.popupId="bal-pu-"+y++,this.isClickedOutsideOnMouseDown=!1,this.isClickedOutsideOnMouseUp=!1,this.popoverVariantRenderer=new g(new w),this.fullscreenVariantRenderer=new g(new m),this.drawerVariantRenderer=new g(new v),this.lastVariant="popover",this.initialActive=this.active,this.debouncedGlobalClick=l((t=>this.notifyGlobalClick(t)),10),this.onBackdropClick=t=>!!(this.activeBackdropDismiss&&this.presented&&t&&t.target)&&t.target.classList.contains("bal-popup__backdrop"),this.onCloseClick=()=>{this.activeClosable&&this.dismiss()},this.activeClosable=!1,this.activeBackdropDismiss=!1,this.activeVariant="popover",this.trigger=void 0,this.lastTrigger=void 0,this.minContainerWidth="16.25rem",this.label="",this.reference=void 0,this.variant="popover",this.placement="bottom",this.arrow=!1,this.backdrop=!1,this.offset=0,this.closable=!1,this.backdropDismiss=!1,this.active=!1,this.presented=!1,this.contentWidth=void 0,this.demo=!1}createLogger(t){this.log=t}async variantChanged(t,i){t!==i&&(await this.getVariantRenderer(i).dismiss(this),this.activeVariant!==t&&(this.lastVariant=this.activeVariant,this.activeVariant=t,await this.getVariantRenderer(this.lastVariant).dismiss(this)),this.presented&&await this.getVariantRenderer(t).present(this))}async activeChanged(t,i){t!==i&&t!==this.presented&&(t?this.present():this.dismiss())}contentWidthChanged(t,i){t!==i&&(void 0===t?this.el.style.removeProperty("--bal-popup-variant-popover-max-width"):this.el.style.setProperty("--bal-popup-variant-popover-max-width",`${this.contentWidth}px`))}componentDidLoad(){this.contentWidthChanged(this.contentWidth,0),!0===this.initialActive&&!0!==this.presented&&this.present(),this.demo&&this.present()}async listenOnGlobalClick(t){var i;const s=t.target.closest("[bal-popup]");if(s&&r.hasWindow){const t=(null===(i=s.attributes.getNamedItem("bal-popup"))||void 0===i?void 0:i.nodeValue)||"";this.el.id===t&&this.debouncedGlobalClick(s)}}async listenOnKeyDown(t){this.activeClosable&&this.presented&&b(t)&&(h(t),this.dismiss())}async listenOnMouseDown(t){this.isClickedOutsideOnMouseDown=this.onBackdropClick(t)}async listenOnMouseUp(t){this.isClickedOutsideOnMouseUp=this.onBackdropClick(t)}async listenOnComponentClick(){this.presented&&this.activeBackdropDismiss&&this.isClickedOutsideOnMouseUp&&this.isClickedOutsideOnMouseDown&&await this.dismiss()}async present(){await this.resetAllVariants(),await this._present()&&(this.lastTrigger=this.trigger,this.balChange.emit(this.presented))}async dismiss(){await this.resetAllVariants(),await this._dismiss()&&(this.lastTrigger=this.trigger,this.balChange.emit(this.presented))}async toggle(){return this.presented?this.dismiss():this.present()}async setMinWidth(t){this.containerEl&&(this.containerEl.style.minWidth=`${t}px`,this.minContainerWidth=`${t}px`)}async _emitChange(){this.balChange.emit(this.presented)}async _present(){r.hasDocument&&(this.lastFocus=document.activeElement||void 0),this.lastVariantRenderer&&(await this.lastVariantRenderer.dismiss(this),this.presented=!0),this.lastVariantRenderer=this.getVariantRenderer();const t=await this.lastVariantRenderer.present(this);return this.focusFirstDescendant(),t}async _dismiss(){var t;const i=await this.getVariantRenderer().dismiss(this);return this.lastVariantRenderer=void 0,this.lastFocus&&this.lastFocus.focus&&(null===(t=this.lastFocus)||void 0===t||t.focus({preventScroll:!0})),i}getVariantRenderer(t=this.activeVariant){switch(t){case"fullscreen":return this.fullscreenVariantRenderer;case"drawer":return this.drawerVariantRenderer;default:return this.popoverVariantRenderer}}getValue(t,i,s){const a=t.attributes.getNamedItem(i);return a?a.value:s}getNumberValue(t,i,s){const a=t.attributes.getNamedItem(i);return a&&parseInt(a.value,10)||s}getBooleanValue(t,i,s){const a=t.attributes.getNamedItem(i);return a&&a?""===a.value||"true"===a.value:s}notifyGlobalClick(t){this.trigger=t,this.lastTrigger=void 0===this.lastTrigger?this.trigger:this.lastTrigger,this.activeVariant=this.getValue(t,"bal-popup-variant",this.variant),this.activeClosable=this.getBooleanValue(t,"bal-popup-closable",this.closable),this.activeBackdropDismiss=this.getBooleanValue(t,"bal-popup-backdrop-dismiss",this.backdropDismiss),this.presented&&this.lastTrigger!==this.trigger?(this._present(),this.lastTrigger=this.trigger):this.toggle()}async resetAllVariants(){if(await this.dismissAllOtherPopups(),this.lastVariant!==this.activeVariant){const t=this.getVariantRenderer(this.lastVariant);await t.dismiss(this)}this.lastVariant=this.activeVariant}async dismissAllOtherPopups(){if(r.hasDocument){const t=Array.from(document.getElementsByTagName("bal-popup")).filter((t=>t.id!==this.el.id&&"true"!==t.ariaHidden));for(let i=0;i<t.length;i++){const s=t[i];await s._dismiss(),await s._emitChange()}}}focusFirstDescendant(){const t=this.contentEl;t&&t.focus({preventScroll:!0})}render(){const t=p.block("popup"),i=t.element("container"),e=t.element("arrow"),o=t.element("backdrop"),n=t.element("inner"),r=n.element("head"),h=n.element("content");return s(a,{key:"4ad1ef7a26405280b668dc964e36e45b12523830",class:Object.assign({},t.class()),role:"dialog","aria-hidden":`${!0!==this.presented}`,"aria-modal":`${!0===this.presented}`,"aria-presented":`${!0===this.presented}`,"aria-labelledby":`${this.popupId}-heading`},s("div",{key:"d9c7aa58b64ba58bdd73195b4c988698ddac0141",class:Object.assign({},o.class()),ref:t=>this.backdropEl=t}),s("div",{key:"e1aa90db041a2960e23aae4b4d49c89ebfaa777b",class:Object.assign(Object.assign({},i.class()),i.modifier(`variant-${this.activeVariant}`).class()),ref:t=>this.containerEl=t,style:{minWidth:this.minContainerWidth}},s("div",{key:"b2bccd97aad258a0a3246293a8250be6207f0368",class:Object.assign({},e.class()),ref:t=>this.arrowEl=t}),s("bal-stack",{key:"f44ec75a2d463fd81f46c0c1d2175907747c4346",layout:"vertical",px:"popover"===this.activeVariant?"medium":"none",py:"medium",class:Object.assign({},n.class())},this.label?s("bal-stack",{space:"auto",class:Object.assign({},r.class())},s("bal-heading",{"data-test":"bal-popup-label",level:"span","visual-level":"large",id:`${this.popupId}-heading`},this.label),this.activeClosable?s("bal-close",{"data-test":"bal-popup-close",tabindex:-1,onClick:()=>this.onCloseClick()}):""):"",s("div",{key:"bebd41411dcc4960ee1e0ab9e08a6494ede835bd",class:Object.assign({},h.class()),ref:t=>this.contentEl=t,"data-test":"bal-popup-content",tabindex:"-1"},s("slot",{key:"3f06f9d1303b4a785c358954fe79744f4daa019c"})))))}get el(){return e(this)}static get watchers(){return{variant:["variantChanged"],active:["activeChanged"],contentWidth:["contentWidthChanged"]}}};o([d("bal-popup"),n("design:type",Function),n("design:paramtypes",[Function]),n("design:returntype",void 0)],f.prototype,"createLogger",null);let y=0;f.style=":root{--bal-popup-backdrop-background:rgba(0,7,57,.8);--bal-popup-container-padding-top:0;--bal-popup-container-padding-bottom:0;--bal-popup-container-background:var(--bal-color-white);--bal-popup-variant-popover-max-width:auto;--bal-popup-variant-popover-radius:var(--bal-radius-large);--bal-popup-variant-popover-shadow:var(--bal-shadow-normal);--bal-popup-variant-drawer-radius:var(--bal-radius-large);--bal-popup-arrow-background:var(--bal-color-white)}.bal-popup{position:static;display:inline;z-index:var(--bal-z-index-popup)}.bal-popup__container{background:var(--bal-popup-container-background);display:none;visibility:hidden;padding-top:var(--bal-popup-container-padding-top);padding-bottom:var(--bal-popup-container-padding-bottom);-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto}.bal-popup__container--variant-popover{border-radius:var(--bal-popup-variant-popover-radius);-webkit-box-shadow:var(--bal-popup-variant-popover-shadow);box-shadow:var(--bal-popup-variant-popover-shadow);width:var(--bal-popup-variant-popover-max-width);position:absolute;top:0;left:0}.bal-popup__container--variant-fullscreen{position:fixed;margin:0;width:100%;min-width:100%;max-width:100% !important;min-height:var(--bal-app-height, 100%)}.bal-popup__container--variant-fullscreen .bal-popup__inner{padding-left:var(--bal-container-space);padding-right:var(--bal-container-space)}.bal-popup__container--variant-drawer{position:fixed;border-top-left-radius:var(--bal-popup-variant-drawer-radius);border-top-right-radius:var(--bal-popup-variant-drawer-radius);padding-left:var(--bal-container-space);padding-right:var(--bal-container-space);width:100%}.bal-popup__inner{overflow-y:auto;max-height:calc(var(--bal-app-height, 100%) - 4rem)}.bal-popup__inner__head{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-popup__inner__content{width:100%}.bal-popup__arrow{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;width:8px;height:8px;background:var(--bal-popup-arrow-background);-webkit-transform:rotate(45deg);transform:rotate(45deg);display:none;visibility:hidden}.bal-popup__backdrop{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:fixed;bottom:0;left:0;right:0;top:0;background-color:var(--bal-popup-backdrop-background);width:100vw;height:100vh;display:none;visibility:hidden}.bal-popup-variant-popover-trigger,.bal-popup-permanent-trigger{z-index:calc(var(--bal-z-index-popup) + 1) !important;position:relative !important}";export{f as bal_popup}
|
|
1
|
+
import{r as t,c as i,h as s,H as a,g as e}from"./p-2ccbe55a.js";import{_ as o,a as n}from"./p-43c9f5e9.js";import{B as p}from"./p-ae86d0a0.js";import{b as r}from"./p-a65354df.js";import{s as h}from"./p-79f6f58b.js";import{k as l}from"./p-a255c9b3.js";import{L as c}from"./p-b77e3348.js";import{b as d}from"./p-301a6b23.js";import{c as b}from"./p-dc98854c.js";import"./p-a7be57b6.js";class u{showContainerElement(t){t.containerEl&&this.showElement(t.containerEl)}hideContainerElement(t){t.containerEl&&this.hideElement(t.containerEl)}showArrowElement(t,i=t.arrow){i&&t.arrowEl&&this.showElement(t.arrowEl)}hideArrowElement(t){t.arrowEl&&Object.assign(t.arrowEl.style,{left:"",top:"",display:"none",visibility:"hidden"})}showBackdropElement(t,i=t.backdrop){i&&t.backdropEl&&this.showElement(t.backdropEl)}hideBackdropElement(t){t.backdropEl&&this.hideElement(t.backdropEl)}showElement(t){t&&(t.style.setProperty("display","block"),t.style.setProperty("visibility","visible"))}hideElement(t){t&&(t.style.removeProperty("display"),t.style.removeProperty("visibility"))}}class v extends u{constructor(){super(...arguments),this.backdrop=!1,this.offset=0}async present(t){return!!(t.containerEl&&t.trigger&&t.backdropEl)&&(this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop),this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset),t.containerEl.style.setProperty("inset","auto 0px 0px 0px"),t.containerEl.style.setProperty("bottom",`${this.offset}px`),t.backdropEl.style.setProperty("bottom",`${this.offset}px`),this.showBackdropElement(t,this.backdrop),this.showContainerElement(t),!0)}async update(t){return!1}async dismiss(t){return!(!t.containerEl||!t.backdropEl||(t.balWillAnimate.emit(),this.hideBackdropElement(t),this.hideContainerElement(t),t.containerEl.style.removeProperty("inset"),t.containerEl.style.removeProperty("bottom"),t.backdropEl.style.removeProperty("bottom"),0))}}class m extends u{constructor(){super(...arguments),this.offset=0}async present(t){return!(!t.containerEl||!t.trigger||(this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset),t.containerEl.style.setProperty("inset",`${this.offset}px auto auto 0px`),this.offset>0&&t.containerEl.style.setProperty("box-shadow","inset var(--bal-nav-meta-bar-variant-white-shadow)"),this.showBackdropElement(t),this.showContainerElement(t),this.hideArrowElement(t),0))}async update(t){return!1}async dismiss(t){return!!t.containerEl&&(this.hideBackdropElement(t),this.hideContainerElement(t),this.hideArrowElement(t),t.containerEl.style.removeProperty("box-shadow"),t.containerEl.style.removeProperty("inset"),!0)}}class w extends u{constructor(){super(...arguments),this.placement="bottom",this.offset=0,this.arrow=!1,this.backdrop=!1,this.reference=void 0,this.triggerEl=null}async present(t){const i=await d.load();if(!t.trigger&&r.hasDocument){const i=Array.from(document.querySelectorAll(`[bal-popup="${t.el.id}"]`))[0];t.trigger=i}if(t.trigger&&t.containerEl&&t.arrowEl){if(this.placement=t.getValue(t.trigger,"bal-popup-placement",t.placement),this.arrow=t.getBooleanValue(t.trigger,"bal-popup-arrow",t.arrow),this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop),this.reference=t.getValue(t.trigger,"bal-popup-reference",t.reference),this.offset=t.getNumberValue(t.trigger,"bal-popup-offset",t.offset),this.triggerEl=t.trigger,this.reference&&r.hasDocument){const i=document.getElementById(this.reference);this.triggerEl=i||t.trigger}if(this.triggerEl)return this.showContainerElement(t),this.showBackdropElement(t,this.backdrop),this.showArrowElement(t,this.arrow),this.triggerEl.classList.add("bal-popup-variant-popover-trigger"),"bottom-end"===this.placement&&this.triggerEl!==t.trigger&&t.setMinWidth(this.triggerEl.clientWidth),this.cleanup=i.autoUpdate(this.triggerEl,t.containerEl,(()=>{this.update(t)}),{ancestorScroll:!0,ancestorResize:!0,elementResize:!1,layoutShift:!0,animationFrame:!0}),!0}return!1}async update(t){var i,s;if(this.triggerEl&&t.trigger&&t.containerEl&&t.arrowEl){const a=await d.load(),e="bottom-end"===this.placement&&this.triggerEl!==t.trigger,o=null===(i=this.triggerEl)||void 0===i?void 0:i.getBoundingClientRect(),n=null===(s=t.trigger)||void 0===s?void 0:s.getBoundingClientRect();let p=!1;return r.hasWindow&&(p=!!window.frameElement),a.computePosition(this.triggerEl,t.containerEl,{placement:this.placement,middleware:[p?void 0:a.shift(),a.flip(),a.offset(this.arrow?16:this.offset),a.arrow({element:t.arrowEl,padding:4})]}).then((({x:i,y:s,middlewareData:a,placement:p})=>{if(t.containerEl){Object.assign(t.containerEl.style,{left:`${i}px`,top:`${s}px`});const r={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]];if(a.arrow&&t.arrowEl){const p=a.arrow;Object.assign(t.arrowEl.style,e?{right:o.right-n.right-4+n.width/2+"px",left:"",top:null!=s&&null!=p.y?`${p.y}px`:"",bottom:"",[r]:"-4px"}:{left:null!=i&&null!=p.x?`${p.x}px`:"",top:null!=s&&null!=p.y?`${p.y}px`:"",right:"",bottom:"",[r]:"-4px"})}}})),!0}return!1}async dismiss(t){return!!(t.containerEl&&t.arrowEl&&this.triggerEl)&&(this.cleanup&&this.cleanup(),this.triggerEl.classList.remove("bal-popup-variant-popover-trigger"),this.hideBackdropElement(t),this.hideContainerElement(t),this.hideArrowElement(t),!0)}}class g{constructor(t){this.renderer=t}async present(t){t.balWillAnimate.emit();const i=await this.renderer.present(t);return i&&(t.presented=!0,t.balDidAnimate.emit()),i}async update(t){t.balWillAnimate.emit();const i=await this.renderer.update(t);return i&&t.balDidAnimate.emit(),i}async dismiss(t){t.balWillAnimate.emit();const i=await this.renderer.dismiss(t);return i&&(t.presented=!1,t.balDidAnimate.emit()),i}}const f=class{constructor(s){t(this,s),this.balChange=i(this,"balChange",7),this.balWillAnimate=i(this,"balWillAnimate",7),this.balDidAnimate=i(this,"balDidAnimate",7),this.popupId="bal-pu-"+y++,this.isClickedOutsideOnMouseDown=!1,this.isClickedOutsideOnMouseUp=!1,this.popoverVariantRenderer=new g(new w),this.fullscreenVariantRenderer=new g(new m),this.drawerVariantRenderer=new g(new v),this.lastVariant="popover",this.initialActive=this.active,this.debouncedGlobalClick=l((t=>this.notifyGlobalClick(t)),10),this.onBackdropClick=t=>!!(this.activeBackdropDismiss&&this.presented&&t&&t.target)&&t.target.classList.contains("bal-popup__backdrop"),this.onCloseClick=()=>{this.activeClosable&&this.dismiss()},this.activeClosable=!1,this.activeBackdropDismiss=!1,this.activeVariant="popover",this.trigger=void 0,this.lastTrigger=void 0,this.minContainerWidth="16.25rem",this.label="",this.reference=void 0,this.variant="popover",this.placement="bottom",this.arrow=!1,this.backdrop=!1,this.offset=0,this.closable=!1,this.backdropDismiss=!1,this.active=!1,this.presented=!1,this.contentWidth=void 0,this.demo=!1}createLogger(t){this.log=t}async variantChanged(t,i){t!==i&&(await this.getVariantRenderer(i).dismiss(this),this.activeVariant!==t&&(this.lastVariant=this.activeVariant,this.activeVariant=t,await this.getVariantRenderer(this.lastVariant).dismiss(this)),this.presented&&await this.getVariantRenderer(t).present(this))}async activeChanged(t,i){t!==i&&t!==this.presented&&(t?this.present():this.dismiss())}contentWidthChanged(t,i){t!==i&&(void 0===t?this.el.style.removeProperty("--bal-popup-variant-popover-max-width"):this.el.style.setProperty("--bal-popup-variant-popover-max-width",`${this.contentWidth}px`))}componentDidLoad(){this.contentWidthChanged(this.contentWidth,0),!0===this.initialActive&&!0!==this.presented&&this.present(),this.demo&&this.present()}async listenOnGlobalClick(t){var i;const s=t.target.closest("[bal-popup]");if(s&&r.hasWindow){const t=(null===(i=s.attributes.getNamedItem("bal-popup"))||void 0===i?void 0:i.nodeValue)||"";this.el.id===t&&this.debouncedGlobalClick(s)}}async listenOnKeyDown(t){this.activeClosable&&this.presented&&b(t)&&(h(t),this.dismiss())}async listenOnMouseDown(t){this.isClickedOutsideOnMouseDown=this.onBackdropClick(t)}async listenOnMouseUp(t){this.isClickedOutsideOnMouseUp=this.onBackdropClick(t)}async listenOnComponentClick(){this.presented&&this.activeBackdropDismiss&&this.isClickedOutsideOnMouseUp&&this.isClickedOutsideOnMouseDown&&await this.dismiss()}async present(){await this.resetAllVariants(),await this._present()&&(this.lastTrigger=this.trigger,this.balChange.emit(this.presented))}async dismiss(){await this.resetAllVariants(),await this._dismiss()&&(this.lastTrigger=this.trigger,this.balChange.emit(this.presented))}async toggle(){return this.presented?this.dismiss():this.present()}async setMinWidth(t){this.containerEl&&(this.containerEl.style.minWidth=`${t}px`,this.minContainerWidth=`${t}px`)}async _emitChange(){this.balChange.emit(this.presented)}async _present(){r.hasDocument&&(this.lastFocus=document.activeElement||void 0),this.lastVariantRenderer&&(await this.lastVariantRenderer.dismiss(this),this.presented=!0),this.lastVariantRenderer=this.getVariantRenderer();const t=await this.lastVariantRenderer.present(this);return this.focusFirstDescendant(),t}async _dismiss(){var t;const i=await this.getVariantRenderer().dismiss(this);return this.lastVariantRenderer=void 0,this.lastFocus&&this.lastFocus.focus&&(null===(t=this.lastFocus)||void 0===t||t.focus({preventScroll:!0})),i}getVariantRenderer(t=this.activeVariant){switch(t){case"fullscreen":return this.fullscreenVariantRenderer;case"drawer":return this.drawerVariantRenderer;default:return this.popoverVariantRenderer}}getValue(t,i,s){const a=t.attributes.getNamedItem(i);return a?a.value:s}getNumberValue(t,i,s){const a=t.attributes.getNamedItem(i);return a&&parseInt(a.value,10)||s}getBooleanValue(t,i,s){const a=t.attributes.getNamedItem(i);return a&&a?""===a.value||"true"===a.value:s}notifyGlobalClick(t){this.trigger=t,this.lastTrigger=void 0===this.lastTrigger?this.trigger:this.lastTrigger,this.activeVariant=this.getValue(t,"bal-popup-variant",this.variant),this.activeClosable=this.getBooleanValue(t,"bal-popup-closable",this.closable),this.activeBackdropDismiss=this.getBooleanValue(t,"bal-popup-backdrop-dismiss",this.backdropDismiss),this.presented&&this.lastTrigger!==this.trigger?(this._present(),this.lastTrigger=this.trigger):this.toggle()}async resetAllVariants(){if(await this.dismissAllOtherPopups(),this.lastVariant!==this.activeVariant){const t=this.getVariantRenderer(this.lastVariant);await t.dismiss(this)}this.lastVariant=this.activeVariant}async dismissAllOtherPopups(){if(r.hasDocument){const t=Array.from(document.getElementsByTagName("bal-popup")).filter((t=>t.id!==this.el.id&&"true"!==t.ariaHidden));for(let i=0;i<t.length;i++){const s=t[i];await s._dismiss(),await s._emitChange()}}}focusFirstDescendant(){const t=this.contentEl;t&&t.focus({preventScroll:!0})}render(){const t=p.block("popup"),i=t.element("container"),e=t.element("arrow"),o=t.element("backdrop"),n=t.element("inner"),r=n.element("head"),h=n.element("content");return s(a,{key:"4ad1ef7a26405280b668dc964e36e45b12523830",class:Object.assign({},t.class()),role:"dialog","aria-hidden":`${!0!==this.presented}`,"aria-modal":`${!0===this.presented}`,"aria-presented":`${!0===this.presented}`,"aria-labelledby":`${this.popupId}-heading`},s("div",{key:"d9c7aa58b64ba58bdd73195b4c988698ddac0141",class:Object.assign({},o.class()),ref:t=>this.backdropEl=t}),s("div",{key:"e1aa90db041a2960e23aae4b4d49c89ebfaa777b",class:Object.assign(Object.assign({},i.class()),i.modifier(`variant-${this.activeVariant}`).class()),ref:t=>this.containerEl=t,style:{minWidth:this.minContainerWidth}},s("div",{key:"b2bccd97aad258a0a3246293a8250be6207f0368",class:Object.assign({},e.class()),ref:t=>this.arrowEl=t}),s("bal-stack",{key:"f44ec75a2d463fd81f46c0c1d2175907747c4346",layout:"vertical",px:"popover"===this.activeVariant?"medium":"none",py:"medium",class:Object.assign({},n.class())},this.label?s("bal-stack",{space:"auto",class:Object.assign({},r.class())},s("bal-heading",{"data-test":"bal-popup-label",level:"span","visual-level":"large",id:`${this.popupId}-heading`},this.label),this.activeClosable?s("bal-close",{"data-test":"bal-popup-close",tabindex:-1,onClick:()=>this.onCloseClick()}):""):"",s("div",{key:"bebd41411dcc4960ee1e0ab9e08a6494ede835bd",class:Object.assign({},h.class()),ref:t=>this.contentEl=t,"data-test":"bal-popup-content",tabindex:"-1"},s("slot",{key:"3f06f9d1303b4a785c358954fe79744f4daa019c"})))))}get el(){return e(this)}static get watchers(){return{variant:["variantChanged"],active:["activeChanged"],contentWidth:["contentWidthChanged"]}}};o([c("bal-popup"),n("design:type",Function),n("design:paramtypes",[Function]),n("design:returntype",void 0)],f.prototype,"createLogger",null);let y=0;f.style=":root{--bal-popup-backdrop-background:rgba(0,7,57,.8);--bal-popup-container-padding-top:0;--bal-popup-container-padding-bottom:0;--bal-popup-container-background:var(--bal-color-white);--bal-popup-variant-popover-max-width:auto;--bal-popup-variant-popover-radius:var(--bal-radius-large);--bal-popup-variant-popover-shadow:var(--bal-shadow-normal);--bal-popup-variant-drawer-radius:var(--bal-radius-large);--bal-popup-arrow-background:var(--bal-color-white)}.bal-popup{position:static;display:inline;z-index:var(--bal-z-index-popup)}.bal-popup__container{background:var(--bal-popup-container-background);display:none;visibility:hidden;padding-top:var(--bal-popup-container-padding-top);padding-bottom:var(--bal-popup-container-padding-bottom);-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto}.bal-popup__container--variant-popover{border-radius:var(--bal-popup-variant-popover-radius);-webkit-box-shadow:var(--bal-popup-variant-popover-shadow);box-shadow:var(--bal-popup-variant-popover-shadow);width:var(--bal-popup-variant-popover-max-width);position:absolute;top:0;left:0}.bal-popup__container--variant-fullscreen{position:fixed;margin:0;width:100%;min-width:100%;max-width:100% !important;min-height:var(--bal-app-height, 100%)}.bal-popup__container--variant-fullscreen .bal-popup__inner{padding-left:var(--bal-container-space);padding-right:var(--bal-container-space)}.bal-popup__container--variant-drawer{position:fixed;border-top-left-radius:var(--bal-popup-variant-drawer-radius);border-top-right-radius:var(--bal-popup-variant-drawer-radius);padding-left:var(--bal-container-space);padding-right:var(--bal-container-space);width:100%}.bal-popup__inner{overflow-y:auto;max-height:calc(var(--bal-app-height, 100%) - 4rem)}.bal-popup__inner__head{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-popup__inner__content{width:100%}.bal-popup__arrow{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;width:8px;height:8px;background:var(--bal-popup-arrow-background);-webkit-transform:rotate(45deg);transform:rotate(45deg);display:none;visibility:hidden}.bal-popup__backdrop{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:fixed;bottom:0;left:0;right:0;top:0;background-color:var(--bal-popup-backdrop-background);width:100vw;height:100vh;display:none;visibility:hidden}.bal-popup-variant-popover-trigger,.bal-popup-permanent-trigger{z-index:calc(var(--bal-z-index-popup) + 1) !important;position:relative !important}";export{f as bal_popup}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,a){function o(n){try{f(r.next(n))}catch(n){a(n)}}function u(n){try{f(r["throw"](n))}catch(n){a(n)}}function f(n){n.done?t(n.value):i(n.value).then(o,u)}f((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(n){return function(e){return f([n,e])}}function f(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(r=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=e.call(n,t)}catch(n){u=[6,n];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-a1f6e944.system.js","./p-863f4e4e.system.js"],(function(n){"use strict";var e,t,r;return{setters:[function(n){e=n.b},function(n){t=n.l;r=n.r}],execute:function(){var i=this;var a='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .bal-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .bal-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])';var o=function(n,e){var t=n.querySelector(a);f(t,e!==null&&e!==void 0?e:n)};var u=function(n,e){var t=Array.from(n.querySelectorAll(a));var r=t.length>0?t[t.length-1]:null;f(r,e!==null&&e!==void 0?e:n)};var f=function(n,e){var t=n;var r=n===null||n===void 0?void 0:n.shadowRoot;if(r){t=r.querySelector(a)||n}if(t){c(t)}else{e.focus({preventScroll:true})}};var c=function(n){n.focus({preventScroll:true});if(n.classList.contains("bal-focusable")){var e=n.closest("bal-app");if(e){e.setFocus([n])}}};var d=0;var l="backdrop";var s=n("p",(function(n){if(e.hasDocument){h(document)}var t=d++;n.overlayIndex=t;if(!n.el.hasAttribute("id")){n.el.id="bal-overlay-".concat(t)}}));var v=n("g",(function(n,e){if(e===undefined){e="bal-modal,bal-snackbar,bal-toast"}return Array.from(n.querySelectorAll(e)).filter((function(n){return n.overlayIndex>0}))}));var b=n("a",(function(n,e,t){var r=v(n,e);return t===undefined?r[r.length-1]:r.find((function(n){return n.id===t}))}));var h=function(n){if(d===0){d=1;n.addEventListener("focus",(function(e){m(e,n)}),true);n.addEventListener("keyup",(function(e){if(e.key==="Escape"){var t=b(n);if(t){t.dismiss(undefined,l)}}}))}};var y=function(n,e,t){var r=p(n,e);return t===undefined?r[r.length-1]:r.find((function(n){return n.id===t}))};var p=function(n,e){return v(n,e).filter((function(n){return!w(n)}))};var w=function(n){return n.classList.contains("is-hidden")};var m=function(n,e){var t=y(e,"bal-modal");var r=n.target;if(!t||!r){return}var i=function(){if(t===r){t.lastFocus=undefined}else{var n=t;var i=n.querySelector(".bal-modal__container");if(!i){return}if(i.contains(r)||r===n.querySelector("bal-modal__background")){t.lastFocus=r}else{var a=t.lastFocus;o(i,t);if(a===e.activeElement){u(i,t)}t.lastFocus=e.activeElement}}};var a=function(){if(t.contains(r)){t.lastFocus=r}else if(r.tagName==="BAL-TOAST"){S(t.lastFocus,t)}else{var n=t.lastFocus;o(t);if(n===e.activeElement){u(t)}t.lastFocus=e.activeElement}};if(t.shadowRoot){a()}else{i()}};var x=n("d",(function(n,e,t,r){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:if(!n.presented){return[2,false]}a.label=1;case 1:a.trys.push([1,3,,4]);n.el.style.setProperty("pointer-events","none");n.willDismiss.emit({data:e,role:t});return[4,r()];case 2:a.sent();n.presented=false;n.didDismiss.emit({data:e,role:t});return[3,4];case 3:i=a.sent();n.presented=false;console.error(i);return[3,4];case 4:n.el.remove();return[2,true]}}))}))}));var _=n("e",(function(n,e){var t;var r=new Promise((function(n){return t=n}));k(n,e,(function(n){t(n.detail)}));return r}));var k=function(n,e,i){var a=function(t){r(n,e,a);i(t)};t(n,e,a)};var S=function(n,e){var t=n;var r=n===null||n===void 0?void 0:n.shadowRoot;if(r){t=r.querySelector(a)||n}if(t){c(t)}else{e.focus()}};var g=n("F","bal-disable-focus-trap")}}}));
|
package/dist/baloise-design-system/{p-5c391c5415.system.entry.js → p-a64c7a3b82.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,s){function u(t){try{f(e.next(t))}catch(t){s(t)}}function a(t){try{f(e["throw"](t))}catch(t){s(t)}}function f(t){t.done?n(t.value):r(t.value).then(u,a)}f((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,r,s,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(i){return f([t,i])}}function f(a){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(e=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=i.call(t,n)}catch(t){a=[6,t];r=0}finally{e=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var e=0,r=i.length,s;e<r;e++){if(s||!(e in i)){if(!s)s=Array.prototype.slice.call(i,0,e);s[e]=i[e]}}return t.concat(s||Array.prototype.slice.call(i))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-0ae449ae.system.js","./p-01cd830b.system.js","./p-7720b262.system.js","./p-3131f323.system.js","./p-db0895e2.system.js","./p-907368ff.system.js","./p-23bdd8dc.system.js","./p-6913b916.system.js","./p-ba579059.system.js","./p-056b22a7.system.js","./p-2da669b4.system.js","./p-eec38fbd.system.js","./p-b0471793.system.js","./p-a1f6e944.system.js","./p-2d3770e7.system.js","./p-2880433e.system.js"],(function(t){"use strict";var i,n,e,r,s,u,a,f,o,h,c,l,d,b,v,p,y,m,_,g,j,w,k,x,F,O,A,C,I,K,P,S,T,V,B;return{setters:[function(t){i=t.r;n=t.c;e=t.h;r=t.H;s=t.g},function(t){u=t._;a=t.a},function(t){f=t.f;o=t.i;h=t.a;c=t.b;l=t.e;d=t.k;b=t.l;v=t.s;p=t.h;y=t.j;m=t.c;_=t.d},function(t){g=t.p},function(t){j=t.i},function(t){w=t.g;k=t.a;x=t.b;F=t.f},function(t){O=t.B},function(t){A=t.d},function(t){C=t.L},function(t){I=t.l},function(t){K=t.N;P=t.A},function(t){S=t.i},function(t){T=t.a},function(t){V=t.d},function(t){B=t.L},function(){},function(){},function(){}],execute:function(){var E="[object Number]";var G=Object.prototype;var q=G.toString;function z(t){return!!t&&typeof t=="object"}function D(t){return L(t)&&t!=+t}function L(t){return typeof t=="number"||z(t)&&q.call(t)==E}var N=D;function H(t){return typeof t==="string"&&x()!=="."}function J(t){var i=parseFloat(t);return typeof i==="number"&&!N(i)}function M(t){return!J(t)&&t!==""&&t!==w()&&t!==k()}function Q(t,i){if(i===void 0){i=0}var n=t;if(n===""||n===undefined||n===null||N(n)||n===w()||n===k()||!J(n)){return undefined}if(H(n)){n=n.split(x()).join("").split("`").join("").split("'").join("")}if(typeof n==="string"){n=n.replace(k(),".")}return i===0?parseInt(n,10):parseFloat(n)}function R(t,i){if(i===void 0){i=0}var n=t;if(I(n)){return""}if(H(n)){n=n.split(x()).join("").split("`").join("").split("'").join("")}if(n.charAt(0)===k()){n="0".concat(n)}var e=i===0?parseInt(n,10):parseFloat(n.replace(k(),"."));return N(e)?"":e.toFixed(i)}function U(t){return t.replace(".",k())}function W(t,i,n){if(i===void 0){i=0}if(n===void 0){n=""}if(I(t)){return""}if(t.charAt(0)===k()){t="0".concat(t)}var e=i===0?parseInt(t,10):parseFloat(t);var r=n!==""?" ".concat(n.trim()):"";return N(e)?"":F(e,i)+r}var X=function(t){return(t.split(k())||[]).length-1||0};function Y(t){var i=t.key,n=t.ctrlKey,e=t.metaKey,r=t.selectionStart,s=t.selectionEnd,u=t.newValue,a=t.decimal;if(["a","c","v"].includes(i)&&(n||e)){return true}if(i===w()&&r&&r>0&&s&&s>0){return false}if(i===k()){if(a===0){return false}else if(X(u)>1){return false}}if(!__spreadArray(__spreadArray(__spreadArray([],K,true),P,true),[k(),w()],false).includes(i)){return false}if(a!==0&&u.includes(k())&&__spreadArray([],K,true).includes(i)){var f=u.split(k());var o=f[f.length-1];if(o.length>a){return false}}return true}var Z=".bal-number-input{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0;font-family:var(--bal-font-family-text)}";var $=Z;var tt=t("bal_number_input",function(){function t(t){var e=this;i(this,t);this.balInput=n(this,"balInput",7);this.balChange=n(this,"balChange",7);this.balBlur=n(this,"balBlur",7);this.balFocus=n(this,"balFocus",7);this.balKeyPress=n(this,"balKeyPress",7);this.inputId="bal-number-input-".concat(it++);this.inheritedAttributes={};this.lastValue="";this.inputValue=this.value;this.initialValue=undefined;this.onClick=function(t){return f(e,t)};this.handleClick=function(t){return o(e,t)};this.onInput=function(t){var i;if(e.nativeInput){if(M(e.nativeInput.value)){e.nativeInputValue=e.lastValue||"";return}}e.lastValue=((i=e.nativeInput)===null||i===void 0?void 0:i.value)||"";e.balInput.emit(Q(e.lastValue,e.decimal))};this.onFocus=function(t){h(e,t);if(e.nativeInput){e.nativeInputValue=U(e.lastValue||"");clearTimeout(e.selectTimeout);e.selectTimeout=setTimeout((function(){return e.nativeInput.select()}))}};this.onBlur=function(t){c(e,t);if(e.nativeInput){e.lastValue=R(e.lastValueGetter,e.decimal);e.nativeInputValue=W(e.lastValueGetter,e.decimal,e.suffix);e.nativeInput.value=e.nativeInputValue}e.inputValue=Q(e.lastValueGetter,e.decimal);l(e)};this.onKeydown=function(t){var i=d(e);var n=b(e,t);var r=t===null||t===void 0?void 0:t.target;if(r&&!Y({key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,decimal:e.decimal,newValue:n,oldValue:i,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})){return v(t)}};this.focused=false;this.language=V.language;this.region=V.region;this.ariaForm=A;this.nativeInputValue="";this.inputPattern=this.createPattern();this.name=this.inputId;this.invalid=false;this.decimal=0;this.suffix=undefined;this.pattern=undefined;this.placeholder=undefined;this.required=false;this.disabled=false;this.readonly=false;this.exactNumber=false;this.max=undefined;this.min=undefined;this.debounce=0;this.value=undefined;this.autoInvalidOff=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=g(this.balChange,this.debounce)};t.prototype.valueChanged=function(t,i){var n=Q(t,this.decimal);if(n!==i){var e=n===""||I(n)||N(n);var r=this.exactNumber?"0":"";var s=e?r:n.toString();this.inputValue=Q(R(s,this.decimal),this.decimal);this.lastValue=R(s,this.decimal);if(this.focused){this.nativeInputValue=U(this.lastValue)}else{this.nativeInputValue=W(this.lastValue,this.decimal,this.suffix)}}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value||0;if(this.value!==undefined){this.valueChanged(this.value,undefined)}};t.prototype.componentDidLoad=function(){this.inputValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=j(this.el,["aria-label","tabindex","title"])};t.prototype.listenOnClick=function(t){p(this,t)};t.prototype.resetHandler=function(t){var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){y(this,this.initialValue,this.resetHandlerTimer)}};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.language=t.language;this.region=t.region;this.inputPattern=this.createPattern();if(this.nativeInput){if(this.focused){this.nativeInputValue=U(this.lastValue)}else{this.nativeInputValue=W(this.lastValue,this.decimal,this.suffix)}}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){m(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){_(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.createPattern=function(){if(this.pattern){return this.pattern}var t=this.suffix||"";if(t!==""){t=" ".concat(t)}var i=x();var n=k();if(n===","){n="\\,"}return"-?\\d{1,3}(?:".concat(i,"\\d{3})*(?:\\").concat(n,"\\d{1,2})?(?:").concat(t,")?")};Object.defineProperty(t.prototype,"lastValueGetter",{get:function(){if(this.exactNumber&&(I(this.lastValue)||S(this.lastValue))){return"0"}return this.lastValue},enumerable:false,configurable:true});t.prototype.render=function(){var t=this;var i=O.block("number-input");return e(r,{key:"b8eed12bfcd82452d4764d316294744faff1f797",onClick:this.handleClick,"aria-disabled":T(this.disabled),class:Object.assign({},i.class())},e("input",Object.assign({key:"0f04129ed1bd55b8660e7add8f673e154bf4107b",class:{input:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid},"data-testid":"bal-number-input",ref:function(i){return t.nativeInput=i},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":T(this.disabled),name:this.name,disabled:this.disabled,placeholder:this.placeholder||"",readonly:this.readonly,required:this.required,pattern:this.inputPattern,min:this.min,max:this.max,value:this.nativeInputValue,onInput:function(i){return t.onInput(i)},onFocus:function(i){return t.onFocus(i)},onBlur:function(i){return t.onBlur(i)},onClick:this.onClick,onKeyDown:function(i){return t.onKeydown(i)},onKeyPress:function(i){return t.balKeyPress.emit(i)}},this.inheritedAttributes)))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());u([C("bal-number-input"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],tt.prototype,"createLogger",null);u([B(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],tt.prototype,"configChanged",null);var it=0;tt.style=$}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,s){function u(t){try{f(e.next(t))}catch(t){s(t)}}function a(t){try{f(e["throw"](t))}catch(t){s(t)}}function f(t){t.done?n(t.value):r(t.value).then(u,a)}f((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,r,s,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(i){return f([t,i])}}function f(a){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(e=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=i.call(t,n)}catch(t){a=[6,t];r=0}finally{e=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var e=0,r=i.length,s;e<r;e++){if(s||!(e in i)){if(!s)s=Array.prototype.slice.call(i,0,e);s[e]=i[e]}}return t.concat(s||Array.prototype.slice.call(i))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-c43a56b7.system.js","./p-863f4e4e.system.js","./p-7720b262.system.js","./p-5f32b4f3.system.js","./p-db0895e2.system.js","./p-907368ff.system.js","./p-23bdd8dc.system.js","./p-6913b916.system.js","./p-ba579059.system.js","./p-056b22a7.system.js","./p-2da669b4.system.js","./p-6b690346.system.js","./p-fa5198a0.system.js","./p-a1f6e944.system.js","./p-ade9437f.system.js","./p-2880433e.system.js"],(function(t){"use strict";var i,n,e,r,s,u,a,f,o,h,c,l,d,b,v,p,y,m,_,g,j,w,k,x,F,O,A,C,I,K,P,S,T,V,B;return{setters:[function(t){i=t.r;n=t.c;e=t.h;r=t.H;s=t.g},function(t){u=t._;a=t.a},function(t){f=t.f;o=t.i;h=t.a;c=t.b;l=t.e;d=t.k;b=t.l;v=t.s;p=t.h;y=t.j;m=t.c;_=t.d},function(t){g=t.p},function(t){j=t.i},function(t){w=t.g;k=t.a;x=t.b;F=t.f},function(t){O=t.B},function(t){A=t.d},function(t){C=t.L},function(t){I=t.l},function(t){K=t.N;P=t.A},function(t){S=t.i},function(t){T=t.a},function(t){V=t.d},function(t){B=t.L},function(){},function(){},function(){}],execute:function(){var E="[object Number]";var G=Object.prototype;var q=G.toString;function z(t){return!!t&&typeof t=="object"}function D(t){return L(t)&&t!=+t}function L(t){return typeof t=="number"||z(t)&&q.call(t)==E}var N=D;function H(t){return typeof t==="string"&&x()!=="."}function J(t){var i=parseFloat(t);return typeof i==="number"&&!N(i)}function M(t){return!J(t)&&t!==""&&t!==w()&&t!==k()}function Q(t,i){if(i===void 0){i=0}var n=t;if(n===""||n===undefined||n===null||N(n)||n===w()||n===k()||!J(n)){return undefined}if(H(n)){n=n.split(x()).join("").split("`").join("").split("'").join("")}if(typeof n==="string"){n=n.replace(k(),".")}return i===0?parseInt(n,10):parseFloat(n)}function R(t,i){if(i===void 0){i=0}var n=t;if(I(n)){return""}if(H(n)){n=n.split(x()).join("").split("`").join("").split("'").join("")}if(n.charAt(0)===k()){n="0".concat(n)}var e=i===0?parseInt(n,10):parseFloat(n.replace(k(),"."));return N(e)?"":e.toFixed(i)}function U(t){return t.replace(".",k())}function W(t,i,n){if(i===void 0){i=0}if(n===void 0){n=""}if(I(t)){return""}if(t.charAt(0)===k()){t="0".concat(t)}var e=i===0?parseInt(t,10):parseFloat(t);var r=n!==""?" ".concat(n.trim()):"";return N(e)?"":F(e,i)+r}var X=function(t){return(t.split(k())||[]).length-1||0};function Y(t){var i=t.key,n=t.ctrlKey,e=t.metaKey,r=t.selectionStart,s=t.selectionEnd,u=t.newValue,a=t.decimal;if(["a","c","v"].includes(i)&&(n||e)){return true}if(i===w()&&r&&r>0&&s&&s>0){return false}if(i===k()){if(a===0){return false}else if(X(u)>1){return false}}if(!__spreadArray(__spreadArray(__spreadArray([],K,true),P,true),[k(),w()],false).includes(i)){return false}if(a!==0&&u.includes(k())&&__spreadArray([],K,true).includes(i)){var f=u.split(k());var o=f[f.length-1];if(o.length>a){return false}}return true}var Z=".bal-number-input{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0;font-family:var(--bal-font-family-text)}";var $=Z;var tt=t("bal_number_input",function(){function t(t){var e=this;i(this,t);this.balInput=n(this,"balInput",7);this.balChange=n(this,"balChange",7);this.balBlur=n(this,"balBlur",7);this.balFocus=n(this,"balFocus",7);this.balKeyPress=n(this,"balKeyPress",7);this.inputId="bal-number-input-".concat(it++);this.inheritedAttributes={};this.lastValue="";this.inputValue=this.value;this.initialValue=undefined;this.onClick=function(t){return f(e,t)};this.handleClick=function(t){return o(e,t)};this.onInput=function(t){var i;if(e.nativeInput){if(M(e.nativeInput.value)){e.nativeInputValue=e.lastValue||"";return}}e.lastValue=((i=e.nativeInput)===null||i===void 0?void 0:i.value)||"";e.balInput.emit(Q(e.lastValue,e.decimal))};this.onFocus=function(t){h(e,t);if(e.nativeInput){e.nativeInputValue=U(e.lastValue||"");clearTimeout(e.selectTimeout);e.selectTimeout=setTimeout((function(){return e.nativeInput.select()}))}};this.onBlur=function(t){c(e,t);if(e.nativeInput){e.lastValue=R(e.lastValueGetter,e.decimal);e.nativeInputValue=W(e.lastValueGetter,e.decimal,e.suffix);e.nativeInput.value=e.nativeInputValue}e.inputValue=Q(e.lastValueGetter,e.decimal);l(e)};this.onKeydown=function(t){var i=d(e);var n=b(e,t);var r=t===null||t===void 0?void 0:t.target;if(r&&!Y({key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,decimal:e.decimal,newValue:n,oldValue:i,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})){return v(t)}};this.focused=false;this.language=V.language;this.region=V.region;this.ariaForm=A;this.nativeInputValue="";this.inputPattern=this.createPattern();this.name=this.inputId;this.invalid=false;this.decimal=0;this.suffix=undefined;this.pattern=undefined;this.placeholder=undefined;this.required=false;this.disabled=false;this.readonly=false;this.exactNumber=false;this.max=undefined;this.min=undefined;this.debounce=0;this.value=undefined;this.autoInvalidOff=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=g(this.balChange,this.debounce)};t.prototype.valueChanged=function(t,i){var n=Q(t,this.decimal);if(n!==i){var e=n===""||I(n)||N(n);var r=this.exactNumber?"0":"";var s=e?r:n.toString();this.inputValue=Q(R(s,this.decimal),this.decimal);this.lastValue=R(s,this.decimal);if(this.focused){this.nativeInputValue=U(this.lastValue)}else{this.nativeInputValue=W(this.lastValue,this.decimal,this.suffix)}}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value||0;if(this.value!==undefined){this.valueChanged(this.value,undefined)}};t.prototype.componentDidLoad=function(){this.inputValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=j(this.el,["aria-label","tabindex","title"])};t.prototype.listenOnClick=function(t){p(this,t)};t.prototype.resetHandler=function(t){var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){y(this,this.initialValue,this.resetHandlerTimer)}};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.language=t.language;this.region=t.region;this.inputPattern=this.createPattern();if(this.nativeInput){if(this.focused){this.nativeInputValue=U(this.lastValue)}else{this.nativeInputValue=W(this.lastValue,this.decimal,this.suffix)}}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){m(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){_(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.createPattern=function(){if(this.pattern){return this.pattern}var t=this.suffix||"";if(t!==""){t=" ".concat(t)}var i=x();var n=k();if(n===","){n="\\,"}return"-?\\d{1,3}(?:".concat(i,"\\d{3})*(?:\\").concat(n,"\\d{1,2})?(?:").concat(t,")?")};Object.defineProperty(t.prototype,"lastValueGetter",{get:function(){if(this.exactNumber&&(I(this.lastValue)||S(this.lastValue))){return"0"}return this.lastValue},enumerable:false,configurable:true});t.prototype.render=function(){var t=this;var i=O.block("number-input");return e(r,{key:"b8eed12bfcd82452d4764d316294744faff1f797",onClick:this.handleClick,"aria-disabled":T(this.disabled),class:Object.assign({},i.class())},e("input",Object.assign({key:"0f04129ed1bd55b8660e7add8f673e154bf4107b",class:{input:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid},"data-testid":"bal-number-input",ref:function(i){return t.nativeInput=i},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":T(this.disabled),name:this.name,disabled:this.disabled,placeholder:this.placeholder||"",readonly:this.readonly,required:this.required,pattern:this.inputPattern,min:this.min,max:this.max,value:this.nativeInputValue,onInput:function(i){return t.onInput(i)},onFocus:function(i){return t.onFocus(i)},onBlur:function(i){return t.onBlur(i)},onClick:this.onClick,onKeyDown:function(i){return t.onKeydown(i)},onKeyPress:function(i){return t.balKeyPress.emit(i)}},this.inheritedAttributes)))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());u([C("bal-number-input"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],tt.prototype,"createLogger",null);u([B(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],tt.prototype,"configChanged",null);var it=0;tt.style=$}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as h}from"./p-2ccbe55a.js";import{_ as n,a as r}from"./p-43c9f5e9.js";import{f as a,i as o,a as l,b as u,e as c,k as d,l as p,s as f,h as m,j as b,c as y,d as g}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as h}from"./p-2ccbe55a.js";import{_ as n,a as r}from"./p-43c9f5e9.js";import{f as a,i as o,a as l,b as u,e as c,k as d,l as p,s as f,h as m,j as b,c as y,d as g}from"./p-79f6f58b.js";import{p as j}from"./p-a255c9b3.js";import{i as v}from"./p-063808d7.js";import{g as k,a as C,b as F,f as w}from"./p-211a37e8.js";import{B as x}from"./p-ae86d0a0.js";import{d as K}from"./p-5eb3fbb9.js";import{L as $}from"./p-b77e3348.js";import{l as I}from"./p-9a3d9e17.js";import{N as L,A as O}from"./p-ec1efe3d.js";import{i as P}from"./p-e581de20.js";import{a as B}from"./p-8f2e9a7f.js";import{d as V}from"./p-ec375851.js";import{L as E}from"./p-20eba37f.js";import"./p-a65354df.js";import"./p-a7be57b6.js";import"./p-4573c419.js";var _=Object.prototype.toString,A=function(t){return function(t){return"number"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Number]"==_.call(t)}(t)&&t!=+t};function D(t){return"string"==typeof t&&"."!==F()}function H(t){const s=parseFloat(t);return"number"==typeof s&&!A(s)}function N(t,s=0){let i=t;if(""!==i&&null!=i&&!A(i)&&i!==k()&&i!==C()&&H(i))return D(i)&&(i=i.split(F()).join("").split("`").join("").split("'").join("")),"string"==typeof i&&(i=i.replace(C(),".")),0===s?parseInt(i,10):parseFloat(i)}function S(t,s=0){let i=t;if(I(i))return"";D(i)&&(i=i.split(F()).join("").split("`").join("").split("'").join("")),i.charAt(0)===C()&&(i=`0${i}`);const e=0===s?parseInt(i,10):parseFloat(i.replace(C(),"."));return A(e)?"":e.toFixed(s)}function T(t){return t.replace(".",C())}function q(t,s=0,i=""){if(I(t))return"";t.charAt(0)===C()&&(t=`0${t}`);const e=0===s?parseInt(t,10):parseFloat(t),h=""!==i?` ${i.trim()}`:"";return A(e)?"":w(e,s)+h}const z=class{constructor(i){t(this,i),this.balInput=s(this,"balInput",7),this.balChange=s(this,"balChange",7),this.balBlur=s(this,"balBlur",7),this.balFocus=s(this,"balFocus",7),this.balKeyPress=s(this,"balKeyPress",7),this.inputId="bal-number-input-"+G++,this.inheritedAttributes={},this.lastValue="",this.inputValue=this.value,this.initialValue=void 0,this.onClick=t=>a(this,t),this.handleClick=t=>o(this,t),this.onInput=()=>{var t,s;!this.nativeInput||H(s=this.nativeInput.value)||""===s||s===k()||s===C()?(this.lastValue=(null===(t=this.nativeInput)||void 0===t?void 0:t.value)||"",this.balInput.emit(N(this.lastValue,this.decimal))):this.nativeInputValue=this.lastValue||""},this.onFocus=t=>{l(this,t),this.nativeInput&&(this.nativeInputValue=T(this.lastValue||""),clearTimeout(this.selectTimeout),this.selectTimeout=setTimeout((()=>this.nativeInput.select())))},this.onBlur=t=>{u(this,t),this.nativeInput&&(this.lastValue=S(this.lastValueGetter,this.decimal),this.nativeInputValue=q(this.lastValueGetter,this.decimal,this.suffix),this.nativeInput.value=this.nativeInputValue),this.inputValue=N(this.lastValueGetter,this.decimal),c(this)},this.onKeydown=t=>{const s=d(this),i=p(this,t),e=null==t?void 0:t.target;if(e&&!function({key:t,ctrlKey:s,metaKey:i,selectionStart:e,selectionEnd:h,newValue:n,decimal:r}){if(["a","c","v"].includes(t)&&(s||i))return!0;if(t===k()&&e&&e>0&&h&&h>0)return!1;if(t===C()){if(0===r)return!1;if(((n.split(C())||[]).length-1||0)>1)return!1}if(![...L,...O,C(),k()].includes(t))return!1;if(0!==r&&n.includes(C())&&[...L].includes(t)){const t=n.split(C());if(t[t.length-1].length>r)return!1}return!0}({key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,decimal:this.decimal,newValue:i,oldValue:s,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}))return f(t)},this.focused=!1,this.language=V.language,this.region=V.region,this.ariaForm=K,this.nativeInputValue="",this.inputPattern=this.createPattern(),this.name=this.inputId,this.invalid=!1,this.decimal=0,this.suffix=void 0,this.pattern=void 0,this.placeholder=void 0,this.required=!1,this.disabled=!1,this.readonly=!1,this.exactNumber=!1,this.max=void 0,this.min=void 0,this.debounce=0,this.value=void 0,this.autoInvalidOff=!1}createLogger(t){this.log=t}debounceChanged(){this.balChange=j(this.balChange,this.debounce)}valueChanged(t,s){const i=N(t,this.decimal);if(i!==s){const t=""===i||I(i)||A(i)?this.exactNumber?"0":"":i.toString();this.inputValue=N(S(t,this.decimal),this.decimal),this.lastValue=S(t,this.decimal),this.nativeInputValue=this.focused?T(this.lastValue):q(this.lastValue,this.decimal,this.suffix)}}connectedCallback(){this.debounceChanged(),this.initialValue=this.value||0,void 0!==this.value&&this.valueChanged(this.value,void 0)}componentDidLoad(){this.inputValue=this.value}componentWillLoad(){this.inheritedAttributes=v(this.el,["aria-label","tabindex","title"])}listenOnClick(t){m(this,t)}resetHandler(t){const s=t.target;(null==s?void 0:s.contains(this.el))&&b(this,this.initialValue,this.resetHandlerTimer)}async configChanged(t){this.language=t.language,this.region=t.region,this.inputPattern=this.createPattern(),this.nativeInput&&(this.nativeInputValue=this.focused?T(this.lastValue):q(this.lastValue,this.decimal,this.suffix))}async setFocus(){y(this)}async setBlur(){g(this)}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}createPattern(){if(this.pattern)return this.pattern;let t=this.suffix||"";""!==t&&(t=` ${t}`);const s=F();let i=C();return","===i&&(i="\\,"),`-?\\d{1,3}(?:${s}\\d{3})*(?:\\${i}\\d{1,2})?(?:${t})?`}get lastValueGetter(){return this.exactNumber&&(I(this.lastValue)||P(this.lastValue))?"0":this.lastValue}render(){const t=x.block("number-input");return i(e,{key:"b8eed12bfcd82452d4764d316294744faff1f797",onClick:this.handleClick,"aria-disabled":B(this.disabled),class:Object.assign({},t.class())},i("input",Object.assign({key:"0f04129ed1bd55b8660e7add8f673e154bf4107b",class:{input:!0,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid},"data-testid":"bal-number-input",ref:t=>this.nativeInput=t,id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":!0===this.invalid?"true":"false","aria-disabled":B(this.disabled),name:this.name,disabled:this.disabled,placeholder:this.placeholder||"",readonly:this.readonly,required:this.required,pattern:this.inputPattern,min:this.min,max:this.max,value:this.nativeInputValue,onInput:t=>this.onInput(t),onFocus:t=>this.onFocus(t),onBlur:t=>this.onBlur(t),onClick:this.onClick,onKeyDown:t=>this.onKeydown(t),onKeyPress:t=>this.balKeyPress.emit(t)},this.inheritedAttributes)))}get el(){return h(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};n([$("bal-number-input"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],z.prototype,"createLogger",null),n([E(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",Promise)],z.prototype,"configChanged",null);let G=0;z.style=".bal-number-input{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0;font-family:var(--bal-font-family-text)}";export{z as bal_number_input}
|