@beeq/core 1.12.1 → 1.12.2-beta.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/dist/beeq/beeq.esm.js +44 -1
- package/dist/beeq/beeq.esm.js.map +1 -1
- package/dist/beeq/index.esm.js +69 -1
- package/dist/{components/p-Bi6ozE0v.js → beeq/p-1011ae42.entry.js} +89 -2
- package/dist/beeq/{p-e394c440.entry.js.map → p-1011ae42.entry.js.map} +1 -1
- package/dist/beeq/p-110c262d.entry.js +173 -0
- package/dist/beeq/{p-b4a612db.entry.js.map → p-110c262d.entry.js.map} +1 -1
- package/dist/beeq/p-11671252.entry.js +128 -0
- package/dist/beeq/{p-a7a74198.entry.js.map → p-11671252.entry.js.map} +1 -1
- package/dist/beeq/p-11fcb99b.entry.js +281 -0
- package/dist/beeq/{p-5e186220.entry.js.map → p-11fcb99b.entry.js.map} +1 -1
- package/dist/beeq/p-1aba3eec.entry.js +150 -0
- package/dist/beeq/{p-3c491238.entry.js.map → p-1aba3eec.entry.js.map} +1 -1
- package/dist/beeq/p-20162842.entry.js +151 -0
- package/dist/beeq/{p-8cd20d85.entry.js.map → p-20162842.entry.js.map} +1 -1
- package/dist/beeq/p-3a4c4de9.entry.js +188 -0
- package/dist/beeq/{p-28c6cdbc.entry.js.map → p-3a4c4de9.entry.js.map} +1 -1
- package/dist/beeq/p-426fd908.entry.js +215 -0
- package/dist/beeq/{p-8fd716b1.entry.js.map → p-426fd908.entry.js.map} +1 -1
- package/dist/beeq/p-47571092.entry.js +289 -0
- package/dist/beeq/{p-e39e3d9c.entry.js.map → p-47571092.entry.js.map} +1 -1
- package/dist/beeq/p-49e90223.entry.js +86 -0
- package/dist/beeq/{p-63f1dcd2.entry.js.map → p-49e90223.entry.js.map} +1 -1
- package/dist/beeq/p-4b00a155.entry.js +747 -0
- package/dist/beeq/{p-f477b7ac.entry.js.map → p-4b00a155.entry.js.map} +1 -1
- package/dist/beeq/p-54ddd09f.entry.js +392 -0
- package/dist/beeq/{p-59cb331c.entry.js.map → p-54ddd09f.entry.js.map} +1 -1
- package/dist/{components/p-OA6hhXnT.js → beeq/p-6b68123f.entry.js} +246 -2
- package/dist/beeq/{p-fa3d23bf.entry.js.map → p-6b68123f.entry.js.map} +1 -1
- package/dist/beeq/p-6d708caf.entry.js +339 -0
- package/dist/beeq/{p-ce124fba.entry.js.map → p-6d708caf.entry.js.map} +1 -1
- package/dist/beeq/p-70607940.entry.js +174 -0
- package/dist/beeq/{p-552d3e73.entry.js.map → p-70607940.entry.js.map} +1 -1
- package/dist/beeq/p-72c376a9.entry.js +165 -0
- package/dist/beeq/{p-6cac6da2.entry.js.map → p-72c376a9.entry.js.map} +1 -1
- package/dist/beeq/p-78bbd845.entry.js +109 -0
- package/dist/beeq/{p-be1b3e87.entry.js.map → p-78bbd845.entry.js.map} +1 -1
- package/dist/beeq/p-8012f01d.entry.js +556 -0
- package/dist/beeq/{p-ecef6efa.entry.js.map → p-8012f01d.entry.js.map} +1 -1
- package/dist/beeq/p-8b5934a3.entry.js +158 -0
- package/dist/beeq/{p-c414e7c0.entry.js.map → p-8b5934a3.entry.js.map} +1 -1
- package/dist/beeq/p-94c2081a.entry.js +681 -0
- package/dist/beeq/{p-bb23c2d0.entry.js.map → p-94c2081a.entry.js.map} +1 -1
- package/dist/beeq/p-95979cb0.entry.js +289 -0
- package/dist/beeq/{p-76d65605.entry.js.map → p-95979cb0.entry.js.map} +1 -1
- package/dist/beeq/p-978b2249.entry.js +196 -0
- package/dist/beeq/{p-22e2de76.entry.js.map → p-978b2249.entry.js.map} +1 -1
- package/dist/beeq/p-9a78587d.entry.js +138 -0
- package/dist/beeq/{p-258e890f.entry.js.map → p-9a78587d.entry.js.map} +1 -1
- package/dist/beeq/p-B4sM1t6Z.js +8 -1
- package/dist/beeq/p-BNvWMggA.js +23 -1
- package/dist/beeq/p-BRMw_HGf.js +8 -1
- package/dist/beeq/p-BRbYDZoo.js +10 -1
- package/dist/beeq/p-BcPwGxIn.js +9 -1
- package/dist/beeq/p-BsSDkLU5.js +26 -1
- package/dist/beeq/p-BtYhUEAn.js +9 -0
- package/dist/beeq/p-BtYhUEAn.js.map +1 -0
- package/dist/beeq/p-C33fRBEf.js +151 -1
- package/dist/beeq/p-CCNjsDdb.js +88 -1
- package/dist/beeq/p-CVw85-WU.js +64 -1
- package/dist/beeq/p-Cau9SvT4.js +12 -1
- package/dist/beeq/p-CmKvDWiL.js +1782 -1
- package/dist/beeq/p-CpKQ7XUL.js +284 -1
- package/dist/beeq/p-D0hQxkOP.js +2816 -0
- package/dist/beeq/p-D0hQxkOP.js.map +1 -0
- package/dist/beeq/p-D1A0LpG_.js +10 -1
- package/dist/beeq/p-DdvbF5yL.js +119 -1
- package/dist/beeq/p-DnkZCdMA.js +8 -1
- package/dist/beeq/p-Ds7rcaFH.js +65 -1
- package/dist/beeq/p-Dx-CEPSQ.js +13 -1
- package/dist/beeq/p-_RvVpeh2.js +29 -1
- package/dist/beeq/p-ac7cd72b.entry.js +322 -0
- package/dist/beeq/{p-8a5e127b.entry.js.map → p-ac7cd72b.entry.js.map} +1 -1
- package/dist/beeq/p-ae85a23a.entry.js +408 -0
- package/dist/beeq/{p-a9cc76af.entry.js.map → p-ae85a23a.entry.js.map} +1 -1
- package/dist/beeq/p-b0f9a0cb.entry.js +296 -0
- package/dist/beeq/{p-043a472a.entry.js.map → p-b0f9a0cb.entry.js.map} +1 -1
- package/dist/beeq/p-b194e120.entry.js +293 -0
- package/dist/beeq/{p-5b3cd481.entry.js.map → p-b194e120.entry.js.map} +1 -1
- package/dist/beeq/p-b2858324.entry.js +210 -0
- package/dist/beeq/{p-dfd80d40.entry.js.map → p-b2858324.entry.js.map} +1 -1
- package/dist/beeq/p-c34fc2c7.entry.js +351 -0
- package/dist/beeq/{p-039f7907.entry.js.map → p-c34fc2c7.entry.js.map} +1 -1
- package/dist/beeq/p-c630a8b8.entry.js +442 -0
- package/dist/beeq/{p-d4ffd9f1.entry.js.map → p-c630a8b8.entry.js.map} +1 -1
- package/dist/beeq/p-cb9b1edc.entry.js +232 -0
- package/dist/beeq/{p-20de0359.entry.js.map → p-cb9b1edc.entry.js.map} +1 -1
- package/dist/beeq/p-cc6b349e.entry.js +172 -0
- package/dist/beeq/{p-904e521c.entry.js.map → p-cc6b349e.entry.js.map} +1 -1
- package/dist/beeq/p-d0edfaa5.entry.js +388 -0
- package/dist/beeq/{p-90b0fef1.entry.js.map → p-d0edfaa5.entry.js.map} +1 -1
- package/dist/beeq/{p-be1b3e87.entry.js → p-db09cc1e.entry.js} +83 -2
- package/dist/beeq/{p-1b988f57.entry.js.map → p-db09cc1e.entry.js.map} +1 -1
- package/dist/beeq/p-f6d82c39.entry.js +206 -0
- package/dist/beeq/{p-52334e53.entry.js.map → p-f6d82c39.entry.js.map} +1 -1
- package/dist/beeq/p-f83010e9.entry.js +118 -0
- package/dist/beeq/{p-8e9d8445.entry.js.map → p-f83010e9.entry.js.map} +1 -1
- package/dist/beeq/p-f97c679f.entry.js +233 -0
- package/dist/beeq/{p-55b686b4.entry.js.map → p-f97c679f.entry.js.map} +1 -1
- package/dist/beeq/{p-63f1dcd2.entry.js → p-ff327b98.entry.js} +116 -2
- package/dist/beeq/{p-47404d61.entry.js.map → p-ff327b98.entry.js.map} +1 -1
- package/dist/beeq/p-ff73f344.entry.js +396 -0
- package/dist/beeq/{p-50cbee50.entry.js.map → p-ff73f344.entry.js.map} +1 -1
- package/dist/beeq/p-lysmVw2n.js +12 -1
- package/dist/beeq/p-uqkxeAeG.js +88 -1
- package/dist/beeq/p-zh4P02Kn.js +21 -1
- package/dist/beeq.html-custom-data.json +80 -80
- package/dist/cjs/app-globals-BY_z0SzA.js +12 -0
- package/dist/cjs/app-globals-BY_z0SzA.js.map +1 -0
- package/dist/cjs/beeq.cjs.js +3 -2
- package/dist/cjs/beeq.cjs.js.map +1 -1
- package/dist/cjs/bq-accordion-group.cjs.entry.js +2 -2
- package/dist/cjs/bq-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +2 -2
- package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-avatar.cjs.entry.js +2 -2
- package/dist/cjs/bq-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-badge.cjs.entry.js +1 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +2 -2
- package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-card.cjs.entry.js +2 -2
- package/dist/cjs/bq-card.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dialog.cjs.entry.js +2 -2
- package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-divider.cjs.entry.js +1 -1
- package/dist/cjs/bq-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-input.cjs.entry.js +2 -2
- package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-notification.cjs.entry.js +2 -2
- package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-group.cjs.entry.js +2 -2
- package/dist/cjs/bq-option-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js +3 -3
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option.cjs.entry.js +1 -1
- package/dist/cjs/bq-page-title.cjs.entry.js +2 -2
- package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-progress.cjs.entry.js +2 -2
- package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-radio.cjs.entry.js +1 -1
- package/dist/cjs/bq-select.cjs.entry.js +2 -2
- package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu.cjs.entry.js +1 -1
- package/dist/cjs/bq-slider.cjs.entry.js +1 -1
- package/dist/cjs/bq-spinner.cjs.entry.js +2 -2
- package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-status.cjs.entry.js +2 -2
- package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-step-item.cjs.entry.js +2 -2
- package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-steps.cjs.entry.js +1 -1
- package/dist/cjs/bq-switch.cjs.entry.js +2 -2
- package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/bq-tab.cjs.entry.js +2 -2
- package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-textarea.cjs.entry.js +2 -2
- package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-toast.cjs.entry.js +2 -2
- package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{index-Cnm84YLJ.js → index-BwvwUnfB.js} +21 -15
- package/dist/cjs/index-BwvwUnfB.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
- package/dist/collection/components/select/bq-select.js +2 -2
- package/dist/collection/components/select/scss/bq-select.css +1 -1
- package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
- package/dist/collection/components/tag/scss/bq-tag.css +1 -1
- package/dist/components/bq-accordion-group.js +157 -1
- package/dist/components/bq-accordion-group.js.map +1 -1
- package/dist/components/bq-accordion.js +444 -1
- package/dist/components/bq-accordion.js.map +1 -1
- package/dist/components/bq-alert.js +354 -1
- package/dist/components/bq-alert.js.map +1 -1
- package/dist/components/bq-avatar.js +206 -1
- package/dist/components/bq-avatar.js.map +1 -1
- package/dist/components/bq-badge.js +8 -1
- package/dist/components/bq-breadcrumb-item.js +129 -1
- package/dist/components/bq-breadcrumb-item.js.map +1 -1
- package/dist/components/bq-breadcrumb.js +138 -1
- package/dist/components/bq-breadcrumb.js.map +1 -1
- package/dist/components/bq-button.js +8 -1
- package/dist/components/bq-card.js +118 -1
- package/dist/components/bq-card.js.map +1 -1
- package/dist/components/bq-checkbox.js +314 -1
- package/dist/components/bq-checkbox.js.map +1 -1
- package/dist/components/bq-date-picker.js +1113 -1
- package/dist/components/bq-date-picker.js.map +1 -1
- package/dist/components/bq-dialog.js +347 -1
- package/dist/components/bq-dialog.js.map +1 -1
- package/dist/components/bq-divider.js +8 -1
- package/dist/components/bq-drawer.js +356 -1
- package/dist/components/bq-drawer.js.map +1 -1
- package/dist/components/bq-dropdown.js +8 -1
- package/dist/components/bq-empty-state.js +192 -1
- package/dist/components/bq-empty-state.js.map +1 -1
- package/dist/components/bq-icon.js +8 -1
- package/dist/components/bq-input.js +502 -1
- package/dist/components/bq-input.js.map +1 -1
- package/dist/components/bq-notification.js +381 -1
- package/dist/components/bq-notification.js.map +1 -1
- package/dist/components/bq-option-group.js +104 -1
- package/dist/components/bq-option-group.js.map +1 -1
- package/dist/components/bq-option-list.js +8 -1
- package/dist/components/bq-option.js +200 -1
- package/dist/components/bq-option.js.map +1 -1
- package/dist/components/bq-page-title.js +150 -1
- package/dist/components/bq-page-title.js.map +1 -1
- package/dist/components/bq-panel.js +8 -1
- package/dist/components/bq-progress.js +220 -1
- package/dist/components/bq-progress.js.map +1 -1
- package/dist/components/bq-radio-group.js +457 -1
- package/dist/components/bq-radio-group.js.map +1 -1
- package/dist/components/bq-radio.js +219 -1
- package/dist/components/bq-radio.js.map +1 -1
- package/dist/components/bq-select.js +794 -1
- package/dist/components/bq-select.js.map +1 -1
- package/dist/components/bq-side-menu-item.js +181 -1
- package/dist/components/bq-side-menu-item.js.map +1 -1
- package/dist/components/bq-side-menu.js +200 -1
- package/dist/components/bq-side-menu.js.map +1 -1
- package/dist/components/bq-slider.js +443 -1
- package/dist/components/bq-slider.js.map +1 -1
- package/dist/components/bq-spinner.js +248 -1
- package/dist/components/bq-spinner.js.map +1 -1
- package/dist/components/bq-status.js +119 -1
- package/dist/components/bq-status.js.map +1 -1
- package/dist/components/bq-step-item.js +236 -1
- package/dist/components/bq-step-item.js.map +1 -1
- package/dist/components/bq-steps.js +175 -1
- package/dist/components/bq-steps.js.map +1 -1
- package/dist/components/bq-switch.js +330 -1
- package/dist/components/bq-switch.js.map +1 -1
- package/dist/components/bq-tab-group.js +273 -1
- package/dist/components/bq-tab-group.js.map +1 -1
- package/dist/components/bq-tab.js +248 -1
- package/dist/components/bq-tab.js.map +1 -1
- package/dist/components/bq-tag.js +8 -1
- package/dist/components/bq-textarea.js +393 -1
- package/dist/components/bq-textarea.js.map +1 -1
- package/dist/components/bq-toast.js +281 -1
- package/dist/components/bq-toast.js.map +1 -1
- package/dist/components/bq-tooltip.js +8 -1
- package/dist/components/index.js +149 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-B4sM1t6Z.js +8 -1
- package/dist/components/p-B4sM1t6Z.js.map +1 -1
- package/dist/components/p-BRMw_HGf.js +8 -1
- package/dist/components/p-BRMw_HGf.js.map +1 -1
- package/dist/components/p-BRbYDZoo.js +10 -1
- package/dist/components/p-BRbYDZoo.js.map +1 -1
- package/dist/components/p-BcPwGxIn.js +9 -1
- package/dist/components/p-BcPwGxIn.js.map +1 -1
- package/dist/components/p-BsSDkLU5.js +26 -1
- package/dist/components/p-BsSDkLU5.js.map +1 -1
- package/dist/{beeq/p-8cd20d85.entry.js → components/p-C8_OKNHL.js} +221 -2
- package/dist/components/{p-CAtQYujR.js.map → p-C8_OKNHL.js.map} +1 -1
- package/dist/components/p-C97BzPa8.js +177 -0
- package/dist/components/{p-DhVt1fuD.js.map → p-C97BzPa8.js.map} +1 -1
- package/dist/components/p-CMejKLsB.js +248 -0
- package/dist/components/{p-SKH1pCPg.js.map → p-CMejKLsB.js.map} +1 -1
- package/dist/components/p-CVw85-WU.js +64 -1
- package/dist/components/p-CVw85-WU.js.map +1 -1
- package/dist/{beeq/p-55b686b4.entry.js → components/p-CXLw0i9p.js} +291 -2
- package/dist/components/{p-OA6hhXnT.js.map → p-CXLw0i9p.js.map} +1 -1
- package/dist/components/p-CmKvDWiL.js +1782 -1
- package/dist/components/p-CmKvDWiL.js.map +1 -1
- package/dist/components/p-D1A0LpG_.js +10 -1
- package/dist/components/p-D1A0LpG_.js.map +1 -1
- package/dist/{beeq/p-ecef6efa.entry.js → components/p-DBPU_cIr.js} +334 -2
- package/dist/components/{p-yO5LAmkd.js.map → p-DBPU_cIr.js.map} +1 -1
- package/dist/components/p-DDCN9O42.js +2669 -0
- package/dist/components/p-DDCN9O42.js.map +1 -0
- package/dist/components/p-DHhUeR-_.js +377 -0
- package/dist/components/{p-qVvRSuP7.js.map → p-DHhUeR-_.js.map} +1 -1
- package/dist/components/p-DSqLegVR.js +100 -0
- package/dist/components/{p-C6pBQ61U.js.map → p-DSqLegVR.js.map} +1 -1
- package/dist/components/p-DdvbF5yL.js +119 -1
- package/dist/components/p-DdvbF5yL.js.map +1 -1
- package/dist/components/p-DnkZCdMA.js +8 -1
- package/dist/components/p-DnkZCdMA.js.map +1 -1
- package/dist/components/p-Dx-CEPSQ.js +13 -1
- package/dist/components/p-Dx-CEPSQ.js.map +1 -1
- package/dist/{beeq/p-fa3d23bf.entry.js → components/p-YyF6_fWE.js} +381 -2
- package/dist/components/{p-Bi6ozE0v.js.map → p-YyF6_fWE.js.map} +1 -1
- package/dist/components/p-_RvVpeh2.js +29 -1
- package/dist/components/p-_RvVpeh2.js.map +1 -1
- package/dist/components/p-lysmVw2n.js +12 -1
- package/dist/components/p-lysmVw2n.js.map +1 -1
- package/dist/components/p-qOL6hl5s.js +298 -0
- package/dist/components/{p-GGFtAwfJ.js.map → p-qOL6hl5s.js.map} +1 -1
- package/dist/components/p-uqkxeAeG.js +88 -1
- package/dist/components/p-uqkxeAeG.js.map +1 -1
- package/dist/components/p-zh4P02Kn.js +21 -1
- package/dist/components/p-zh4P02Kn.js.map +1 -1
- package/dist/custom-elements.json +1514 -1514
- package/dist/esm/app-globals-BtYhUEAn.js +10 -0
- package/dist/esm/app-globals-BtYhUEAn.js.map +1 -0
- package/dist/esm/beeq.js +3 -2
- package/dist/esm/beeq.js.map +1 -1
- package/dist/esm/bq-accordion-group.entry.js +2 -2
- package/dist/esm/bq-accordion-group.entry.js.map +1 -1
- package/dist/esm/bq-accordion.entry.js +1 -1
- package/dist/esm/bq-alert.entry.js +2 -2
- package/dist/esm/bq-alert.entry.js.map +1 -1
- package/dist/esm/bq-avatar.entry.js +2 -2
- package/dist/esm/bq-avatar.entry.js.map +1 -1
- package/dist/esm/bq-badge.entry.js +1 -1
- package/dist/esm/bq-breadcrumb-item.entry.js +2 -2
- package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb.entry.js +2 -2
- package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
- package/dist/esm/bq-button_2.entry.js +2 -2
- package/dist/esm/bq-button_2.entry.js.map +1 -1
- package/dist/esm/bq-card.entry.js +2 -2
- package/dist/esm/bq-card.entry.js.map +1 -1
- package/dist/esm/bq-checkbox.entry.js +2 -2
- package/dist/esm/bq-checkbox.entry.js.map +1 -1
- package/dist/esm/bq-date-picker.entry.js +2 -2
- package/dist/esm/bq-date-picker.entry.js.map +1 -1
- package/dist/esm/bq-dialog.entry.js +2 -2
- package/dist/esm/bq-dialog.entry.js.map +1 -1
- package/dist/esm/bq-divider.entry.js +1 -1
- package/dist/esm/bq-drawer.entry.js +2 -2
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/bq-dropdown_2.entry.js +3 -3
- package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
- package/dist/esm/bq-empty-state.entry.js +2 -2
- package/dist/esm/bq-empty-state.entry.js.map +1 -1
- package/dist/esm/bq-input.entry.js +2 -2
- package/dist/esm/bq-input.entry.js.map +1 -1
- package/dist/esm/bq-notification.entry.js +2 -2
- package/dist/esm/bq-notification.entry.js.map +1 -1
- package/dist/esm/bq-option-group.entry.js +2 -2
- package/dist/esm/bq-option-group.entry.js.map +1 -1
- package/dist/esm/bq-option-list_2.entry.js +3 -3
- package/dist/esm/bq-option-list_2.entry.js.map +1 -1
- package/dist/esm/bq-option.entry.js +1 -1
- package/dist/esm/bq-page-title.entry.js +2 -2
- package/dist/esm/bq-page-title.entry.js.map +1 -1
- package/dist/esm/bq-progress.entry.js +2 -2
- package/dist/esm/bq-progress.entry.js.map +1 -1
- package/dist/esm/bq-radio-group.entry.js +1 -1
- package/dist/esm/bq-radio.entry.js +1 -1
- package/dist/esm/bq-select.entry.js +2 -2
- package/dist/esm/bq-select.entry.js.map +1 -1
- package/dist/esm/bq-side-menu-item.entry.js +2 -2
- package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
- package/dist/esm/bq-side-menu.entry.js +1 -1
- package/dist/esm/bq-slider.entry.js +1 -1
- package/dist/esm/bq-spinner.entry.js +2 -2
- package/dist/esm/bq-spinner.entry.js.map +1 -1
- package/dist/esm/bq-status.entry.js +2 -2
- package/dist/esm/bq-status.entry.js.map +1 -1
- package/dist/esm/bq-step-item.entry.js +2 -2
- package/dist/esm/bq-step-item.entry.js.map +1 -1
- package/dist/esm/bq-steps.entry.js +1 -1
- package/dist/esm/bq-switch.entry.js +2 -2
- package/dist/esm/bq-switch.entry.js.map +1 -1
- package/dist/esm/bq-tab-group.entry.js +1 -1
- package/dist/esm/bq-tab.entry.js +2 -2
- package/dist/esm/bq-tab.entry.js.map +1 -1
- package/dist/esm/bq-textarea.entry.js +2 -2
- package/dist/esm/bq-textarea.entry.js.map +1 -1
- package/dist/esm/bq-toast.entry.js +2 -2
- package/dist/esm/bq-toast.entry.js.map +1 -1
- package/dist/esm/bq-tooltip.entry.js +1 -1
- package/dist/esm/{index-BIw6Ac7W.js → index-D0hQxkOP.js} +22 -15
- package/dist/esm/index-D0hQxkOP.js.map +1 -0
- package/dist/esm/loader.js +3 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/hydrate/index.js +4 -10
- package/dist/hydrate/index.mjs +4 -10
- package/dist/stencil.config.js +1 -0
- package/dist/stencil.config.js.map +1 -1
- package/package.json +1 -1
- package/dist/beeq/p-039f7907.entry.js +0 -6
- package/dist/beeq/p-043a472a.entry.js +0 -6
- package/dist/beeq/p-1b988f57.entry.js +0 -6
- package/dist/beeq/p-20de0359.entry.js +0 -6
- package/dist/beeq/p-22e2de76.entry.js +0 -6
- package/dist/beeq/p-258e890f.entry.js +0 -6
- package/dist/beeq/p-28c6cdbc.entry.js +0 -6
- package/dist/beeq/p-3c491238.entry.js +0 -6
- package/dist/beeq/p-47404d61.entry.js +0 -6
- package/dist/beeq/p-50cbee50.entry.js +0 -6
- package/dist/beeq/p-52334e53.entry.js +0 -6
- package/dist/beeq/p-552d3e73.entry.js +0 -6
- package/dist/beeq/p-59cb331c.entry.js +0 -6
- package/dist/beeq/p-5b3cd481.entry.js +0 -6
- package/dist/beeq/p-5e186220.entry.js +0 -6
- package/dist/beeq/p-6cac6da2.entry.js +0 -6
- package/dist/beeq/p-76d65605.entry.js +0 -6
- package/dist/beeq/p-8a5e127b.entry.js +0 -6
- package/dist/beeq/p-8e9d8445.entry.js +0 -6
- package/dist/beeq/p-8fd716b1.entry.js +0 -6
- package/dist/beeq/p-904e521c.entry.js +0 -6
- package/dist/beeq/p-90b0fef1.entry.js +0 -6
- package/dist/beeq/p-BIw6Ac7W.js +0 -7
- package/dist/beeq/p-BIw6Ac7W.js.map +0 -1
- package/dist/beeq/p-a7a74198.entry.js +0 -6
- package/dist/beeq/p-a9cc76af.entry.js +0 -6
- package/dist/beeq/p-b4a612db.entry.js +0 -6
- package/dist/beeq/p-bb23c2d0.entry.js +0 -6
- package/dist/beeq/p-c414e7c0.entry.js +0 -6
- package/dist/beeq/p-ce124fba.entry.js +0 -6
- package/dist/beeq/p-d4ffd9f1.entry.js +0 -6
- package/dist/beeq/p-dfd80d40.entry.js +0 -6
- package/dist/beeq/p-e394c440.entry.js +0 -6
- package/dist/beeq/p-e39e3d9c.entry.js +0 -6
- package/dist/beeq/p-f477b7ac.entry.js +0 -6
- package/dist/cjs/index-Cnm84YLJ.js.map +0 -1
- package/dist/components/p-C6pBQ61U.js +0 -6
- package/dist/components/p-CAtQYujR.js +0 -6
- package/dist/components/p-CCQ_5HvV.js +0 -6
- package/dist/components/p-CCQ_5HvV.js.map +0 -1
- package/dist/components/p-DhVt1fuD.js +0 -6
- package/dist/components/p-GGFtAwfJ.js +0 -6
- package/dist/components/p-SKH1pCPg.js +0 -6
- package/dist/components/p-qVvRSuP7.js +0 -6
- package/dist/components/p-yO5LAmkd.js +0 -6
- package/dist/esm/index-BIw6Ac7W.js.map +0 -1
- /package/dist/types/{home/runner/work/BEEQ/BEEQ → Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System}/.stencil/packages/beeq/jest.config.d.ts +0 -0
- /package/dist/types/{home/runner/work/BEEQ/BEEQ → Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System}/.stencil/packages/beeq/stencil.config.d.ts +0 -0
- /package/dist/types/{home/runner/work/BEEQ/BEEQ → Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System}/.stencil/tailwind.config.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DIVIDER_ORIENTATION","DIVIDER_ORIENTATION_ENUM","HORIZONTAL","VERTICAL","DIVIDER_TITLE_ALIGNMENT","DIVIDER_STROKE_LINECAP","bqDividerCss","BqDivider","__stencil_proxyCustomElement","HTMLElement","titleElem","hasTitle","dashed","orientation","strokeColor","titleAlignment","strokeDashWidth","strokeDashGap","strokeThickness","strokeBasis","strokeLinecap","checkPropValues","validatePropValue","this","el","connectedCallback","componentWillLoad","componentDidLoad","handleSlotChange","hasSlotContent","getTextContent","querySelector","strokeAttributes","strokeDrawPositions","strokeDasharray","drawOffset","x1","x2","y1","y2","orientationMap","Map","Object","entries","get","render","styles","getColorCSSVariable","isNil","_jsx","Host","style","children","_jsxs","class","part","ref","div","onSlotchange"],"sources":["../../packages/beeq/src/components/divider/bq-divider.types.ts","../../packages/beeq/src/components/divider/scss/bq-divider.scss?tag=bq-divider&encapsulation=shadow","../../packages/beeq/src/components/divider/bq-divider.tsx"],"sourcesContent":["export const DIVIDER_ORIENTATION = ['horizontal', 'vertical'] as const;\nexport type TDividerOrientation = (typeof DIVIDER_ORIENTATION)[number];\n\nexport const DIVIDER_ORIENTATION_ENUM = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n} as const;\n\nexport const DIVIDER_TITLE_ALIGNMENT = ['start', 'middle', 'end'] as const;\nexport type TDividerTitleAlignment = (typeof DIVIDER_TITLE_ALIGNMENT)[number];\n\nexport const DIVIDER_STROKE_LINECAP = ['square', 'round', 'butt'] as const;\nexport type TDividerStrokeLinecap = (typeof DIVIDER_STROKE_LINECAP)[number];\n","/* -------------------------------------------------------------------------- */\n/* Button styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-divider.variables';\n\n:host {\n @apply inline-flex;\n}\n\n:host([orientation='horizontal']) {\n @apply is-full;\n}\n\n:host([orientation='vertical']) {\n @apply flex bs-full;\n}\n\n.bq-divider {\n @apply flex items-center gap-[--bq-divider--title-marginX];\n}\n\n.bq-divider--stroke {\n @apply flex-grow stroke-[color:--bq-divider--stroke-color] bs-[--bq-divider--stroke-thickness] is-full;\n\n &.end {\n @apply rotate-180;\n }\n}\n\n.bq-divider--title__start .bq-divider--stroke.start,\n.bq-divider--title__end .bq-divider--stroke.end {\n @apply flex-grow-0 basis-[--bq-divider--stroke-basis];\n}\n\n.bq-divider--horizontal {\n @apply flex-grow;\n}\n\n.bq-divider--vertical {\n @apply bs-full flex-col items-center gap-[--bq-divider--title-marginX];\n\n .bq-divider--stroke {\n @apply is-[--bq-divider--stroke-thickness];\n }\n}\n","import { Component, Element, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { getColorCSSVariable, getTextContent, hasSlotContent, isNil, validatePropValue } from '../../shared/utils';\nimport type { TDividerOrientation, TDividerStrokeLinecap, TDividerTitleAlignment } from './bq-divider.types';\nimport {\n DIVIDER_ORIENTATION,\n DIVIDER_ORIENTATION_ENUM,\n DIVIDER_STROKE_LINECAP,\n DIVIDER_TITLE_ALIGNMENT,\n} from './bq-divider.types';\n\n/**\n * The Divider component is used to visually separate content in a layout.\n *\n * @example How to use it\n * ```html\n * <bq-divider orientation=\"horizontal\" stroke-color=\"stroke--primary\" title-alignment=\"middle\">\n * <span slot=\"title\">Divider Title</span>\n * </bq-divider>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/53dfe6-divider\n * @status stable\n *\n * @attr {boolean} dashed - If true, the divider has a dashed pattern.\n * @attr {\"horizontal\" | \"vertical\"} orientation - The default orientation of the divider.\n * @attr {string} stroke-color - Set the stroke color of the divider. The value should be a valid value of the palette color.\n * @attr {\"start\" | \"middle\" | \"end\"} title-alignment - Set the alignment of the title on the main axis of the divider (horizontal / vertical).\n * @attr {number} stroke-dash-width - Set the width of each dash of the divider's stroke. This is applicable when the stroke is dashed.\n * @attr {number} stroke-dash-gap - Set the gap of the divider's stroke. This is applicable when the stroke is dashed.\n * @attr {number} stroke-thickness - Set the thickness of the divider's stroke. Value expressed in px.\n * @attr {number} stroke-basis - Set the min width of the divider's stroke when text is not centered. Value expressed in px.\n * @attr {\"square\" | \"round\" | \"butt\"} stroke-linecap - Set the line of the divider's stroke. This is applicable when the stroke is dashed.\n *\n * @slot - The title content of the divider.\n *\n * @part base - The component's internal wrapper.\n * @part dash-start - The component's internal svg wrapper for the start line of the divider's stroke.\n * @part dash-end - The component's internal svg wrapper for the end line of the divider's stroke.\n * @part dash-start-line - The component's internal line component of the divider's stroke.\n * @part dash-end-line - The component's internal line component of the divider's stroke.\n *\n * @cssprop --bq-divider--color - Divider color\n * @cssprop --bq-divider--title-marginX - Divider space between title and delimiters\n */\n@Component({\n tag: 'bq-divider',\n styleUrl: './scss/bq-divider.scss',\n shadow: true,\n})\nexport class BqDivider {\n // Own Properties\n // ====================\n\n private titleElem: HTMLDivElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqDividerElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasTitle: boolean;\n\n // Public Property API\n // ========================\n\n /** If true, the divider has a dashed pattern */\n @Prop() dashed = false;\n\n /** The default orientation of the divider */\n @Prop({ reflect: true }) orientation: TDividerOrientation = 'horizontal';\n\n /** Set the stroke color of the divider. The value should be a valid value of the palette color */\n @Prop({ reflect: true }) strokeColor?: string = 'stroke--primary';\n\n /** Set the alignment of the title on the main axis of the divider (horizontal / vertical) */\n @Prop({ reflect: true }) titleAlignment?: TDividerTitleAlignment = 'middle';\n\n /** Set the width of each dash of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeDashWidth?: number = 12;\n\n /** Set the gap of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeDashGap?: number = 7;\n\n /** Set the thickness of the divider's stroke. Value expressed in px*/\n @Prop({ reflect: true }) strokeThickness?: number = 1;\n\n /** Set the min width of the divider's stroke when text is not centered. Value expressed in px */\n @Prop({ reflect: true }) strokeBasis?: number = 0;\n\n /** Set the line of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeLinecap?: TDividerStrokeLinecap = 'butt';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('orientation')\n @Watch('titleAlignment')\n @Watch('strokeLinecap')\n checkPropValues() {\n validatePropValue(DIVIDER_ORIENTATION, 'horizontal', this.el, 'orientation');\n validatePropValue(DIVIDER_TITLE_ALIGNMENT, 'middle', this.el, 'titleAlignment');\n validatePropValue(DIVIDER_STROKE_LINECAP, 'butt', this.el, 'strokeLinecap');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.checkPropValues();\n }\n\n componentWillLoad() {\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.handleSlotChange();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleSlotChange = () => {\n this.hasTitle = hasSlotContent(this.titleElem) || !!getTextContent(this.titleElem.querySelector('slot'));\n };\n\n private get strokeAttributes() {\n return {\n ...this.strokeDrawPositions,\n ...(this.dashed && { 'stroke-dasharray': this.strokeDasharray }),\n 'stroke-linecap': this.strokeLinecap,\n 'stroke-width': this.strokeThickness,\n };\n }\n\n private get strokeDrawPositions() {\n const drawOffset = this.strokeThickness / 2;\n const strokeDrawPositions = {\n [DIVIDER_ORIENTATION_ENUM.HORIZONTAL]: { x1: drawOffset, x2: '100%', y1: drawOffset, y2: drawOffset },\n [DIVIDER_ORIENTATION_ENUM.VERTICAL]: { x1: drawOffset, x2: drawOffset, y1: drawOffset, y2: '100%' },\n };\n const orientationMap = new Map(Object.entries(strokeDrawPositions));\n\n return orientationMap.get(this.orientation);\n }\n\n private get strokeDasharray() {\n return `${this.strokeDashWidth}, ${this.strokeDashGap}`;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const styles = {\n ...(this.strokeColor && { '--bq-divider--stroke-color': getColorCSSVariable(this.strokeColor) }),\n ...(this.strokeThickness && { '--bq-divider--stroke-thickness': `${this.strokeThickness}px` }),\n ...(!isNil(this.strokeBasis) && { '--bq-divider--stroke-basis': `${this.strokeBasis}px` }),\n };\n\n return (\n <Host style={styles}>\n <div\n class={{\n 'bq-divider': true,\n [`bq-divider--${this.orientation}`]: true,\n [`bq-divider--title__${this.titleAlignment}`]: true,\n 'gap-0': !this.hasTitle,\n }}\n part=\"base\"\n ref={(div) => {\n this.titleElem = div;\n }}\n >\n <svg\n aria-hidden=\"true\"\n class={{\n 'bq-divider--stroke start': true,\n '!hidden': this.strokeBasis === 0 && this.titleAlignment === 'start',\n }}\n part=\"dash-start\"\n >\n <line {...this.strokeAttributes} part=\"dash-start-line\" />\n </svg>\n <slot onSlotchange={this.handleSlotChange} />\n <svg\n aria-hidden=\"true\"\n class={{\n 'bq-divider--stroke end': true,\n '!hidden': !this.hasTitle || (this.strokeBasis === 0 && this.titleAlignment === 'end'),\n }}\n part=\"dash-end\"\n >\n <line {...this.strokeAttributes} part=\"dash-end-line\" />\n </svg>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":";;;;yNAAO,MAAMA,EAAsB,CAAC,aAAc,YAG3C,MAAMC,EAA2B,CACtCC,WAAY,aACZC,SAAU,YAGL,MAAMC,EAA0B,CAAC,QAAS,SAAU,OAGpD,MAAMC,EAAyB,CAAC,SAAU,QAAS,QCX1D,MAAMC,EAAe,IAAM,+mpB,MCkDdC,EAASC,EAAA,MAAAD,UAAAE,E,iFAIZC,U,qBAWSC,SAMTC,OAAS,MAGQC,YAAmC,aAGnCC,YAAuB,kBAGvBC,eAA0C,SAG1CC,gBAA2B,GAG3BC,cAAyB,EAGzBC,gBAA2B,EAG3BC,YAAuB,EAGvBC,cAAwC,OAQjE,eAAAC,GACEC,EAAkBtB,EAAqB,aAAcuB,KAAKC,GAAI,eAC9DF,EAAkBlB,EAAyB,SAAUmB,KAAKC,GAAI,kBAC9DF,EAAkBjB,EAAwB,OAAQkB,KAAKC,GAAI,gB,CAW7D,iBAAAC,GACEF,KAAKF,iB,CAGP,iBAAAK,GACEH,KAAKF,iB,CAGP,gBAAAM,GACEJ,KAAKK,kB,CAkBCA,iBAAmB,KACzBL,KAAKZ,SAAWkB,EAAeN,KAAKb,cAAgBoB,EAAeP,KAAKb,UAAUqB,cAAc,QAAQ,EAG1G,oBAAYC,GACV,MAAO,IACFT,KAAKU,uBACJV,KAAKX,QAAU,CAAE,mBAAoBW,KAAKW,iBAC9C,iBAAkBX,KAAKH,cACvB,eAAgBG,KAAKL,gB,CAIzB,uBAAYe,GACV,MAAME,EAAaZ,KAAKL,gBAAkB,EAC1C,MAAMe,EAAsB,CAC1B,CAAChC,EAAyBC,YAAa,CAAEkC,GAAID,EAAYE,GAAI,OAAQC,GAAIH,EAAYI,GAAIJ,GACzF,CAAClC,EAAyBE,UAAW,CAAEiC,GAAID,EAAYE,GAAIF,EAAYG,GAAIH,EAAYI,GAAI,SAE7F,MAAMC,EAAiB,IAAIC,IAAIC,OAAOC,QAAQV,IAE9C,OAAOO,EAAeI,IAAIrB,KAAKV,Y,CAGjC,mBAAYqB,GACV,MAAO,GAAGX,KAAKP,oBAAoBO,KAAKN,e,CAO1C,MAAA4B,GACE,MAAMC,EAAS,IACTvB,KAAKT,aAAe,CAAE,6BAA8BiC,EAAoBxB,KAAKT,iBAC7ES,KAAKL,iBAAmB,CAAE,iCAAkC,GAAGK,KAAKL,yBACnE8B,EAAMzB,KAAKJ,cAAgB,CAAE,6BAA8B,GAAGI,KAAKJ,kBAG1E,OACE8B,EAACC,EAAK,CAAAC,MAAOL,EAAMM,SACjBC,EACE,OAAAC,MAAO,CACL,aAAc,KACd,CAAC,eAAe/B,KAAKV,eAAgB,KACrC,CAAC,sBAAsBU,KAAKR,kBAAmB,KAC/C,SAAUQ,KAAKZ,UAEjB4C,KAAK,OACLC,IAAMC,IACJlC,KAAKb,UAAY+C,CAAG,EAGtBL,SAAA,CAAAH,EAAA,qBACc,OACZK,MAAO,CACL,2BAA4B,KAC5B,UAAW/B,KAAKJ,cAAgB,GAAKI,KAAKR,iBAAmB,SAE/DwC,KAAK,aAELH,SAAAH,EAAA,WAAU1B,KAAKS,iBAAkBuB,KAAK,mBAAiB,6CACnD,4CACNN,EAAM,QAAAS,aAAcnC,KAAKK,kBAAoB,4CAC7CqB,EACc,4BACZK,MAAO,CACL,yBAA0B,KAC1B,WAAY/B,KAAKZ,UAAaY,KAAKJ,cAAgB,GAAKI,KAAKR,iBAAmB,OAElFwC,KAAK,WAELH,SAAAH,EAAA,WAAU1B,KAAKS,iBAAkBuB,KAAK,iBAAe,6CAAG,8CAEtD,wF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["DIVIDER_ORIENTATION","DIVIDER_ORIENTATION_ENUM","HORIZONTAL","VERTICAL","DIVIDER_TITLE_ALIGNMENT","DIVIDER_STROKE_LINECAP","bqDividerCss","BqDivider","__stencil_proxyCustomElement","HTMLElement","titleElem","hasTitle","dashed","orientation","strokeColor","titleAlignment","strokeDashWidth","strokeDashGap","strokeThickness","strokeBasis","strokeLinecap","checkPropValues","validatePropValue","this","el","connectedCallback","componentWillLoad","componentDidLoad","handleSlotChange","hasSlotContent","getTextContent","querySelector","strokeAttributes","strokeDrawPositions","strokeDasharray","drawOffset","x1","x2","y1","y2","orientationMap","Map","Object","entries","get","render","styles","getColorCSSVariable","isNil","_jsx","Host","style","children","_jsxs","class","part","ref","div","onSlotchange"],"sources":["../../packages/beeq/src/components/divider/bq-divider.types.ts","../../packages/beeq/src/components/divider/scss/bq-divider.scss?tag=bq-divider&encapsulation=shadow","../../packages/beeq/src/components/divider/bq-divider.tsx"],"sourcesContent":["export const DIVIDER_ORIENTATION = ['horizontal', 'vertical'] as const;\nexport type TDividerOrientation = (typeof DIVIDER_ORIENTATION)[number];\n\nexport const DIVIDER_ORIENTATION_ENUM = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n} as const;\n\nexport const DIVIDER_TITLE_ALIGNMENT = ['start', 'middle', 'end'] as const;\nexport type TDividerTitleAlignment = (typeof DIVIDER_TITLE_ALIGNMENT)[number];\n\nexport const DIVIDER_STROKE_LINECAP = ['square', 'round', 'butt'] as const;\nexport type TDividerStrokeLinecap = (typeof DIVIDER_STROKE_LINECAP)[number];\n","/* -------------------------------------------------------------------------- */\n/* Button styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-divider.variables';\n\n:host {\n @apply inline-flex;\n}\n\n:host([orientation='horizontal']) {\n @apply is-full;\n}\n\n:host([orientation='vertical']) {\n @apply flex bs-full;\n}\n\n.bq-divider {\n @apply flex items-center gap-[--bq-divider--title-marginX];\n}\n\n.bq-divider--stroke {\n @apply flex-grow stroke-[color:--bq-divider--stroke-color] bs-[--bq-divider--stroke-thickness] is-full;\n\n &.end {\n @apply rotate-180;\n }\n}\n\n.bq-divider--title__start .bq-divider--stroke.start,\n.bq-divider--title__end .bq-divider--stroke.end {\n @apply flex-grow-0 basis-[--bq-divider--stroke-basis];\n}\n\n.bq-divider--horizontal {\n @apply flex-grow;\n}\n\n.bq-divider--vertical {\n @apply bs-full flex-col items-center gap-[--bq-divider--title-marginX];\n\n .bq-divider--stroke {\n @apply is-[--bq-divider--stroke-thickness];\n }\n}\n","import { Component, Element, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { getColorCSSVariable, getTextContent, hasSlotContent, isNil, validatePropValue } from '../../shared/utils';\nimport type { TDividerOrientation, TDividerStrokeLinecap, TDividerTitleAlignment } from './bq-divider.types';\nimport {\n DIVIDER_ORIENTATION,\n DIVIDER_ORIENTATION_ENUM,\n DIVIDER_STROKE_LINECAP,\n DIVIDER_TITLE_ALIGNMENT,\n} from './bq-divider.types';\n\n/**\n * The Divider component is used to visually separate content in a layout.\n *\n * @example How to use it\n * ```html\n * <bq-divider orientation=\"horizontal\" stroke-color=\"stroke--primary\" title-alignment=\"middle\">\n * <span slot=\"title\">Divider Title</span>\n * </bq-divider>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/53dfe6-divider\n * @status stable\n *\n * @attr {boolean} dashed - If true, the divider has a dashed pattern.\n * @attr {\"horizontal\" | \"vertical\"} orientation - The default orientation of the divider.\n * @attr {string} stroke-color - Set the stroke color of the divider. The value should be a valid value of the palette color.\n * @attr {\"start\" | \"middle\" | \"end\"} title-alignment - Set the alignment of the title on the main axis of the divider (horizontal / vertical).\n * @attr {number} stroke-dash-width - Set the width of each dash of the divider's stroke. This is applicable when the stroke is dashed.\n * @attr {number} stroke-dash-gap - Set the gap of the divider's stroke. This is applicable when the stroke is dashed.\n * @attr {number} stroke-thickness - Set the thickness of the divider's stroke. Value expressed in px.\n * @attr {number} stroke-basis - Set the min width of the divider's stroke when text is not centered. Value expressed in px.\n * @attr {\"square\" | \"round\" | \"butt\"} stroke-linecap - Set the line of the divider's stroke. This is applicable when the stroke is dashed.\n *\n * @slot - The title content of the divider.\n *\n * @part base - The component's internal wrapper.\n * @part dash-start - The component's internal svg wrapper for the start line of the divider's stroke.\n * @part dash-end - The component's internal svg wrapper for the end line of the divider's stroke.\n * @part dash-start-line - The component's internal line component of the divider's stroke.\n * @part dash-end-line - The component's internal line component of the divider's stroke.\n *\n * @cssprop --bq-divider--color - Divider color\n * @cssprop --bq-divider--title-marginX - Divider space between title and delimiters\n */\n@Component({\n tag: 'bq-divider',\n styleUrl: './scss/bq-divider.scss',\n shadow: true,\n})\nexport class BqDivider {\n // Own Properties\n // ====================\n\n private titleElem: HTMLDivElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqDividerElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasTitle: boolean;\n\n // Public Property API\n // ========================\n\n /** If true, the divider has a dashed pattern */\n @Prop() dashed = false;\n\n /** The default orientation of the divider */\n @Prop({ reflect: true }) orientation: TDividerOrientation = 'horizontal';\n\n /** Set the stroke color of the divider. The value should be a valid value of the palette color */\n @Prop({ reflect: true }) strokeColor?: string = 'stroke--primary';\n\n /** Set the alignment of the title on the main axis of the divider (horizontal / vertical) */\n @Prop({ reflect: true }) titleAlignment?: TDividerTitleAlignment = 'middle';\n\n /** Set the width of each dash of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeDashWidth?: number = 12;\n\n /** Set the gap of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeDashGap?: number = 7;\n\n /** Set the thickness of the divider's stroke. Value expressed in px*/\n @Prop({ reflect: true }) strokeThickness?: number = 1;\n\n /** Set the min width of the divider's stroke when text is not centered. Value expressed in px */\n @Prop({ reflect: true }) strokeBasis?: number = 0;\n\n /** Set the line of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeLinecap?: TDividerStrokeLinecap = 'butt';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('orientation')\n @Watch('titleAlignment')\n @Watch('strokeLinecap')\n checkPropValues() {\n validatePropValue(DIVIDER_ORIENTATION, 'horizontal', this.el, 'orientation');\n validatePropValue(DIVIDER_TITLE_ALIGNMENT, 'middle', this.el, 'titleAlignment');\n validatePropValue(DIVIDER_STROKE_LINECAP, 'butt', this.el, 'strokeLinecap');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.checkPropValues();\n }\n\n componentWillLoad() {\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.handleSlotChange();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleSlotChange = () => {\n this.hasTitle = hasSlotContent(this.titleElem) || !!getTextContent(this.titleElem.querySelector('slot'));\n };\n\n private get strokeAttributes() {\n return {\n ...this.strokeDrawPositions,\n ...(this.dashed && { 'stroke-dasharray': this.strokeDasharray }),\n 'stroke-linecap': this.strokeLinecap,\n 'stroke-width': this.strokeThickness,\n };\n }\n\n private get strokeDrawPositions() {\n const drawOffset = this.strokeThickness / 2;\n const strokeDrawPositions = {\n [DIVIDER_ORIENTATION_ENUM.HORIZONTAL]: { x1: drawOffset, x2: '100%', y1: drawOffset, y2: drawOffset },\n [DIVIDER_ORIENTATION_ENUM.VERTICAL]: { x1: drawOffset, x2: drawOffset, y1: drawOffset, y2: '100%' },\n };\n const orientationMap = new Map(Object.entries(strokeDrawPositions));\n\n return orientationMap.get(this.orientation);\n }\n\n private get strokeDasharray() {\n return `${this.strokeDashWidth}, ${this.strokeDashGap}`;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const styles = {\n ...(this.strokeColor && { '--bq-divider--stroke-color': getColorCSSVariable(this.strokeColor) }),\n ...(this.strokeThickness && { '--bq-divider--stroke-thickness': `${this.strokeThickness}px` }),\n ...(!isNil(this.strokeBasis) && { '--bq-divider--stroke-basis': `${this.strokeBasis}px` }),\n };\n\n return (\n <Host style={styles}>\n <div\n class={{\n 'bq-divider': true,\n [`bq-divider--${this.orientation}`]: true,\n [`bq-divider--title__${this.titleAlignment}`]: true,\n 'gap-0': !this.hasTitle,\n }}\n part=\"base\"\n ref={(div) => {\n this.titleElem = div;\n }}\n >\n <svg\n aria-hidden=\"true\"\n class={{\n 'bq-divider--stroke start': true,\n '!hidden': this.strokeBasis === 0 && this.titleAlignment === 'start',\n }}\n part=\"dash-start\"\n >\n <line {...this.strokeAttributes} part=\"dash-start-line\" />\n </svg>\n <slot onSlotchange={this.handleSlotChange} />\n <svg\n aria-hidden=\"true\"\n class={{\n 'bq-divider--stroke end': true,\n '!hidden': !this.hasTitle || (this.strokeBasis === 0 && this.titleAlignment === 'end'),\n }}\n part=\"dash-end\"\n >\n <line {...this.strokeAttributes} part=\"dash-end-line\" />\n </svg>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,IAAsB,EAAC,cAAc;;AAG3C,MAAMC,IAA2B;EACtCC,YAAY;EACZC,UAAU;;;AAGL,MAAMC,IAA0B,EAAC,SAAS,UAAU;;AAGpD,MAAMC,IAAyB,EAAC,UAAU,SAAS;;ACX1D,MAAMC,eAAe,MAAM;;MCkDdC,KAASC,EAAA,MAAAD,UAAAE;;;;;;;;;;EAIZC;;;;;;;EAWSC;;;;EAMTC,OAAS;;EAGQC,YAAmC;;EAGnCC,YAAuB;;EAGvBC,eAA0C;;EAG1CC,gBAA2B;;EAG3BC,cAAyB;;EAGzBC,gBAA2B;;EAG3BC,YAAuB;;EAGvBC,cAAwC;;;EAQjE,eAAAC;IACEC,EAAkBtB,GAAqB,cAAcuB,KAAKC,IAAI;IAC9DF,EAAkBlB,GAAyB,UAAUmB,KAAKC,IAAI;IAC9DF,EAAkBjB,GAAwB,QAAQkB,KAAKC,IAAI;;;;;;;;EAW7D,iBAAAC;IACEF,KAAKF;;EAGP,iBAAAK;IACEH,KAAKF;;EAGP,gBAAAM;IACEJ,KAAKK;;;;;;;;;;;;;;EAkBCA,iBAAmB;IACzBL,KAAKZ,WAAWkB,EAAeN,KAAKb,gBAAgBoB,EAAeP,KAAKb,UAAUqB,cAAc;AAAQ;EAG1G,oBAAYC;IACV,OAAO;SACFT,KAAKU;SACJV,KAAKX,UAAU;QAAE,oBAAoBW,KAAKW;;MAC9C,kBAAkBX,KAAKH;MACvB,gBAAgBG,KAAKL;;;EAIzB,uBAAYe;IACV,MAAME,IAAaZ,KAAKL,kBAAkB;IAC1C,MAAMe,IAAsB;MAC1B,CAAChC,EAAyBC,aAAa;QAAEkC,IAAID;QAAYE,IAAI;QAAQC,IAAIH;QAAYI,IAAIJ;;MACzF,CAAClC,EAAyBE,WAAW;QAAEiC,IAAID;QAAYE,IAAIF;QAAYG,IAAIH;QAAYI,IAAI;;;IAE7F,MAAMC,IAAiB,IAAIC,IAAIC,OAAOC,QAAQV;IAE9C,OAAOO,EAAeI,IAAIrB,KAAKV;;EAGjC,mBAAYqB;IACV,OAAO,GAAGX,KAAKP,oBAAoBO,KAAKN;;;;;EAO1C,MAAA4B;IACE,MAAMC,IAAS;SACTvB,KAAKT,eAAe;QAAE,8BAA8BiC,EAAoBxB,KAAKT;;SAC7ES,KAAKL,mBAAmB;QAAE,kCAAkC,GAAGK,KAAKL;;UACnE8B,EAAMzB,KAAKJ,gBAAgB;QAAE,8BAA8B,GAAGI,KAAKJ;;;IAG1E,OACE8B,EAACC,GAAK;MAAAC,OAAOL;MAAMM,UACjBC,EACE;QAAAC,OAAO;UACL,cAAc;UACd,CAAC,eAAe/B,KAAKV,gBAAgB;UACrC,CAAC,sBAAsBU,KAAKR,mBAAmB;UAC/C,UAAUQ,KAAKZ;;QAEjB4C,MAAK;QACLC,KAAMC;UACJlC,KAAKb,YAAY+C;AAAG;QAGtBL,UAAA,EAAAH,EAAA;UAAA,eACc;UACZK,OAAO;YACL,4BAA4B;YAC5B,WAAW/B,KAAKJ,gBAAgB,KAAKI,KAAKR,mBAAmB;;UAE/DwC,MAAK;UAELH,UAAAH,EAAA;eAAU1B,KAAKS;YAAkBuB,MAAK;aAAiB;WACnD,6CACNN,EAAM;UAAAS,cAAcnC,KAAKK;WAAoB,6CAC7CqB,EACc;UAAA;UACZK,OAAO;YACL,0BAA0B;YAC1B,YAAY/B,KAAKZ,YAAaY,KAAKJ,gBAAgB,KAAKI,KAAKR,mBAAmB;;UAElFwC,MAAK;UAELH,UAAAH,EAAA;eAAU1B,KAAKS;YAAkBuB,MAAK;aAAe;WAAG;SAEtD;OAAA","ignoreList":[]}
|
|
@@ -2,5 +2,68 @@
|
|
|
2
2
|
* Built by Endavans
|
|
3
3
|
* © https://beeq.design - Apache 2 License.
|
|
4
4
|
*/
|
|
5
|
-
import{i as
|
|
5
|
+
import { i as e } from "./p-BcPwGxIn.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Implements setTimeout using requestAnimationFrame. Uses setTimeout if wait is 0.
|
|
9
|
+
*
|
|
10
|
+
* @param {Function} func - The function to timeout.
|
|
11
|
+
* @param {Number} wait - The number of milliseconds to delay.
|
|
12
|
+
* @param {Any[]} args - The arguments of func.
|
|
13
|
+
* @returns {void}
|
|
14
|
+
*/ const setRafTimeout = (e, n, ...t) => {
|
|
15
|
+
const invokeFunc = () => e(...t);
|
|
16
|
+
if (n === 0) {
|
|
17
|
+
const e = setTimeout(invokeFunc, n);
|
|
18
|
+
return () => clearTimeout(e);
|
|
19
|
+
} else {
|
|
20
|
+
let e;
|
|
21
|
+
const t = performance.now();
|
|
22
|
+
const cancel = () => cancelAnimationFrame(e);
|
|
23
|
+
const handleRequestAnimationFrame = o => {
|
|
24
|
+
const c = o - t;
|
|
25
|
+
cancel();
|
|
26
|
+
if (c < n) {
|
|
27
|
+
e = requestAnimationFrame(handleRequestAnimationFrame);
|
|
28
|
+
} else {
|
|
29
|
+
invokeFunc();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
e = requestAnimationFrame(handleRequestAnimationFrame);
|
|
33
|
+
return cancel;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Creates a debounced function that delays invoking func until after wait milliseconds have elapsed
|
|
39
|
+
* since the last time the debounced function was invoked.
|
|
40
|
+
*
|
|
41
|
+
* @param {Function} func - The function to debounce.
|
|
42
|
+
* @param {Number} wait - The number of milliseconds to delay.
|
|
43
|
+
* @param {Boolean} immediate - If `true`, the function triggers immediately and then waits for the interval before being called again.
|
|
44
|
+
* @return {Function} The new debounced function.
|
|
45
|
+
*/ const debounce = (n, t = 0, o = false) => {
|
|
46
|
+
let c;
|
|
47
|
+
function debounceHandler(...r) {
|
|
48
|
+
c?.();
|
|
49
|
+
// We're doing this on purpose to capture and preserve the `this` context
|
|
50
|
+
// biome-ignore lint/complexity/noUselessThisAlias: <see above>
|
|
51
|
+
const s = this;
|
|
52
|
+
function timeoutHandler(e, n, ...t) {
|
|
53
|
+
e.apply(n, t);
|
|
54
|
+
}
|
|
55
|
+
if (o && e(c)) {
|
|
56
|
+
n.apply(s, r);
|
|
57
|
+
}
|
|
58
|
+
c = setRafTimeout(timeoutHandler, t, n, s, ...r);
|
|
59
|
+
}
|
|
60
|
+
return Object.assign(debounceHandler, {
|
|
61
|
+
cancel: () => {
|
|
62
|
+
c?.();
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { debounce as d, setRafTimeout as s };
|
|
68
|
+
//# sourceMappingURL=p-CVw85-WU.js.map
|
|
6
69
|
//# sourceMappingURL=p-CVw85-WU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["setRafTimeout","func","wait","args","invokeFunc","timeoutId","setTimeout","clearTimeout","rafId","currentTime","performance","now","cancel","cancelAnimationFrame","handleRequestAnimationFrame","time","delta","requestAnimationFrame","debounce","immediate","debounceHandler","context","this","timeoutHandler","fn","apply","isNil","Object","assign"],"sources":["../../packages/beeq/src/shared/utils/setRafTimeout.ts","../../packages/beeq/src/shared/utils/debounce.ts"],"sourcesContent":["/**\n * Implements setTimeout using requestAnimationFrame. Uses setTimeout if wait is 0.\n *\n * @param {Function} func - The function to timeout.\n * @param {Number} wait - The number of milliseconds to delay.\n * @param {Any[]} args - The arguments of func.\n * @returns {void}\n */\nexport const setRafTimeout = <TFunc extends (...args: unknown[]) => void>(\n func: TFunc,\n wait: number,\n ...args: Parameters<TFunc>\n): (() => void) => {\n const invokeFunc = () => func(...args);\n\n if (wait === 0) {\n const timeoutId = setTimeout(invokeFunc, wait);\n return () => clearTimeout(timeoutId);\n } else {\n let rafId: number;\n const currentTime = performance.now();\n\n const cancel = () => cancelAnimationFrame(rafId);\n\n const handleRequestAnimationFrame: FrameRequestCallback = (time) => {\n const delta = time - currentTime;\n\n cancel();\n\n if (delta < wait) {\n rafId = requestAnimationFrame(handleRequestAnimationFrame);\n } else {\n invokeFunc();\n }\n };\n\n rafId = requestAnimationFrame(handleRequestAnimationFrame);\n\n return cancel;\n }\n};\n","import { isNil } from './isNil';\nimport { setRafTimeout } from './setRafTimeout';\n\nexport type TFunction = (...args: unknown[]) => unknown;\n\ntype TDebounceFnReturn<T> = T extends unknown[] ? (...params: T) => void : (param: T) => void;\nexport type TDebounce<T> = TDebounceFnReturn<T> & { cancel: () => void } extends infer U ? U : never;\n\n/**\n * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\n * since the last time the debounced function was invoked.\n *\n * @param {Function} func - The function to debounce.\n * @param {Number} wait - The number of milliseconds to delay.\n * @param {Boolean} immediate - If `true`, the function triggers immediately and then waits for the interval before being called again.\n * @return {Function} The new debounced function.\n */\nexport const debounce = <TFunc extends TFunction>(func: TFunc, wait = 0, immediate = false) => {\n let cancel: (() => void) | undefined;\n\n function debounceHandler(...args: Parameters<typeof func>) {\n cancel?.();\n\n // We're doing this on purpose to capture and preserve the `this` context\n // biome-ignore lint/complexity/noUselessThisAlias: <see above>\n const context = this;\n\n function timeoutHandler(fn: TFunc, context: unknown, ...args: Parameters<typeof fn>) {\n fn.apply(context, args);\n }\n\n if (immediate && isNil(cancel)) {\n func.apply(context, args);\n }\n\n cancel = setRafTimeout(timeoutHandler, wait, func, context, ...args);\n }\n\n return Object.assign(debounceHandler, {\n cancel: () => {\n cancel?.();\n },\n });\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["setRafTimeout","func","wait","args","invokeFunc","timeoutId","setTimeout","clearTimeout","rafId","currentTime","performance","now","cancel","cancelAnimationFrame","handleRequestAnimationFrame","time","delta","requestAnimationFrame","debounce","immediate","debounceHandler","context","this","timeoutHandler","fn","apply","isNil","Object","assign"],"sources":["../../packages/beeq/src/shared/utils/setRafTimeout.ts","../../packages/beeq/src/shared/utils/debounce.ts"],"sourcesContent":["/**\n * Implements setTimeout using requestAnimationFrame. Uses setTimeout if wait is 0.\n *\n * @param {Function} func - The function to timeout.\n * @param {Number} wait - The number of milliseconds to delay.\n * @param {Any[]} args - The arguments of func.\n * @returns {void}\n */\nexport const setRafTimeout = <TFunc extends (...args: unknown[]) => void>(\n func: TFunc,\n wait: number,\n ...args: Parameters<TFunc>\n): (() => void) => {\n const invokeFunc = () => func(...args);\n\n if (wait === 0) {\n const timeoutId = setTimeout(invokeFunc, wait);\n return () => clearTimeout(timeoutId);\n } else {\n let rafId: number;\n const currentTime = performance.now();\n\n const cancel = () => cancelAnimationFrame(rafId);\n\n const handleRequestAnimationFrame: FrameRequestCallback = (time) => {\n const delta = time - currentTime;\n\n cancel();\n\n if (delta < wait) {\n rafId = requestAnimationFrame(handleRequestAnimationFrame);\n } else {\n invokeFunc();\n }\n };\n\n rafId = requestAnimationFrame(handleRequestAnimationFrame);\n\n return cancel;\n }\n};\n","import { isNil } from './isNil';\nimport { setRafTimeout } from './setRafTimeout';\n\nexport type TFunction = (...args: unknown[]) => unknown;\n\ntype TDebounceFnReturn<T> = T extends unknown[] ? (...params: T) => void : (param: T) => void;\nexport type TDebounce<T> = TDebounceFnReturn<T> & { cancel: () => void } extends infer U ? U : never;\n\n/**\n * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\n * since the last time the debounced function was invoked.\n *\n * @param {Function} func - The function to debounce.\n * @param {Number} wait - The number of milliseconds to delay.\n * @param {Boolean} immediate - If `true`, the function triggers immediately and then waits for the interval before being called again.\n * @return {Function} The new debounced function.\n */\nexport const debounce = <TFunc extends TFunction>(func: TFunc, wait = 0, immediate = false) => {\n let cancel: (() => void) | undefined;\n\n function debounceHandler(...args: Parameters<typeof func>) {\n cancel?.();\n\n // We're doing this on purpose to capture and preserve the `this` context\n // biome-ignore lint/complexity/noUselessThisAlias: <see above>\n const context = this;\n\n function timeoutHandler(fn: TFunc, context: unknown, ...args: Parameters<typeof fn>) {\n fn.apply(context, args);\n }\n\n if (immediate && isNil(cancel)) {\n func.apply(context, args);\n }\n\n cancel = setRafTimeout(timeoutHandler, wait, func, context, ...args);\n }\n\n return Object.assign(debounceHandler, {\n cancel: () => {\n cancel?.();\n },\n });\n};\n"],"mappings":";;;;;;;;;;;;;GAQO,OAAMA,gBAAgB,CAC3BC,GACAC,MACGC;EAEH,MAAMC,aAAa,MAAMH,KAAQE;EAEjC,IAAID,MAAS,GAAG;IACd,MAAMG,IAAYC,WAAWF,YAAYF;IACzC,OAAO,MAAMK,aAAaF;SACrB;IACL,IAAIG;IACJ,MAAMC,IAAcC,YAAYC;IAEhC,MAAMC,SAAS,MAAMC,qBAAqBL;IAE1C,MAAMM,8BAAqDC;MACzD,MAAMC,IAAQD,IAAON;MAErBG;MAEA,IAAII,IAAQd,GAAM;QAChBM,IAAQS,sBAAsBH;aACzB;QACLV;;;IAIJI,IAAQS,sBAAsBH;IAE9B,OAAOF;;;;;;;;;;;;GCrBJ,OAAMM,WAAW,CAA0BjB,GAAaC,IAAO,GAAGiB,IAAY;EACnF,IAAIP;EAEJ,SAASQ,mBAAmBjB;IAC1BS;;;QAIA,MAAMS,IAAUC;IAEhB,SAASC,eAAeC,GAAWH,MAAqBlB;MACtDqB,EAAGC,MAAMJ,GAASlB;;IAGpB,IAAIgB,KAAaO,EAAMd,IAAS;MAC9BX,EAAKwB,MAAMJ,GAASlB;;IAGtBS,IAASZ,cAAcuB,gBAAgBrB,GAAMD,GAAMoB,MAAYlB;;EAGjE,OAAOwB,OAAOC,OAAOR,iBAAiB;IACpCR,QAAQ;MACNA;AAAU;;AAEZ","ignoreList":[]}
|
|
@@ -2,5 +2,294 @@
|
|
|
2
2
|
* Built by Endavans
|
|
3
3
|
* © https://beeq.design - Apache 2 License.
|
|
4
4
|
*/
|
|
5
|
-
import{r as a,c as r,a as b,d as e}from"./p-BIw6Ac7W.js";import{a as t,j as n}from"./p-C33fRBEf.js";import{i as q}from"./p-B4sM1t6Z.js";import{d as o}from"./p-CVw85-WU.js";import{v as i}from"./p-zh4P02Kn.js";import"./p-BcPwGxIn.js";const s=["info","success","alert","error","loading","custom"];const d=["top-center","top-right","bottom-right","bottom-center","bottom-left","top-left"];const c=()=>`.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.bq-toast,.shadow-\\[shadow\\:--bq-toast--box-shadow\\]{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop,:root{--bq-blue-100:#e7f0fd;--bq-blue-200:#d0e2fb;--bq-blue-300:#a1c5f7;--bq-blue-400:#73a8f3;--bq-blue-500:#448bef;--bq-blue-600:#156eeb;--bq-blue-700:#1158bc;--bq-blue-800:#0d428d;--bq-blue-900:#082c5e;--bq-blue-1000:#04162f;--bq-corai-100:#fff2f2;--bq-corai-200:#ffe6e6;--bq-corai-300:#ffccce;--bq-corai-400:#ffb3b5;--bq-corai-500:#ff999d;--bq-corai-600:#ff8084;--bq-corai-700:#cc666a;--bq-corai-800:#994d4f;--bq-corai-900:#663335;--bq-corai-1000:#331a1a;--bq-cyan-100:#e8f7fb;--bq-cyan-200:#d2f0f8;--bq-cyan-300:#a5e1f1;--bq-cyan-400:#78d1e9;--bq-cyan-500:#4bc2e2;--bq-cyan-600:#1eb3db;--bq-cyan-700:#188faf;--bq-cyan-800:#126b83;--bq-cyan-900:#0c4858;--bq-cyan-1000:#06242c;--bq-gold-100:#fbf4ec;--bq-gold-200:#f7e9da;--bq-gold-300:#f0d3b6;--bq-gold-400:#e8bc91;--bq-gold-500:#e1a66d;--bq-gold-600:#d99048;--bq-gold-700:#ae733a;--bq-gold-800:#82562b;--bq-gold-900:#573a1d;--bq-gold-1000:#2b1d0e;--bq-green-100:#e8f8ef;--bq-green-200:#d2f1e0;--bq-green-300:#a5e3c1;--bq-green-400:#78d5a1;--bq-green-500:#4bc782;--bq-green-600:#1eb963;--bq-green-700:#18944f;--bq-green-800:#126f3b;--bq-green-900:#0c4a28;--bq-green-1000:#062514;--bq-grey-100:#f1f2f4;--bq-grey-200:#e7e8eb;--bq-grey-300:#caccd2;--bq-grey-400:#a6aab3;--bq-grey-50:#f6f6f8;--bq-grey-500:#898e99;--bq-grey-600:#646a77;--bq-grey-700:#3f4350;--bq-grey-800:#2a2c35;--bq-grey-900:#1c1d23;--bq-grey-950:#15161a;--bq-grey-1000:#0d0e11;--bq-indigo-100:#edecfc;--bq-indigo-200:#dcdafa;--bq-indigo-300:#b9b5f5;--bq-indigo-400:#9590ef;--bq-indigo-500:#726bea;--bq-indigo-600:#4f46e5;--bq-indigo-700:#3f38b7;--bq-indigo-800:#2f2a89;--bq-indigo-900:#201c5c;--bq-indigo-1000:#100e2e;--bq-iris-100:#e9f0ff;--bq-iris-200:#d6e0ff;--bq-iris-300:#b2c0fe;--bq-iris-400:#8691f8;--bq-iris-500:#6061ee;--bq-iris-600:#4f46e5;--bq-iris-700:#413abd;--bq-iris-800:#332e95;--bq-iris-900:#26216d;--bq-iris-1000:#181545;--bq-lime-100:#f5fae8;--bq-lime-200:#ecf6d2;--bq-lime-300:#d9eda5;--bq-lime-400:#c5e379;--bq-lime-500:#b2da4c;--bq-lime-600:#9fd11f;--bq-lime-700:#7fa719;--bq-lime-800:#5f7d13;--bq-lime-900:#40540c;--bq-lime-1000:#202a06;--bq-magenta-100:#fce7f4;--bq-magenta-200:#f9cfea;--bq-magenta-300:#f39fd6;--bq-magenta-400:#ee6fbf;--bq-magenta-500:#e83fab;--bq-magenta-600:#de1395;--bq-magenta-700:#b20f77;--bq-magenta-800:#850c59;--bq-magenta-900:#58083c;--bq-magenta-1000:#2c041e;--bq-neutral-white:#fbfbfc;--bq-neutral-black:#060708;--bq-orange-100:#fbf0e9;--bq-orange-200:#f8e1d4;--bq-orange-300:#f1c2a8;--bq-orange-400:#eaa47d;--bq-orange-500:#e38551;--bq-orange-600:#dc6726;--bq-orange-700:#b0521e;--bq-orange-800:#843e17;--bq-orange-900:#58290f;--bq-orange-1000:#2c1508;--bq-purple-100:#efebf8;--bq-purple-200:#e0d7f2;--bq-purple-300:#c1afe5;--bq-purple-400:#a388d8;--bq-purple-500:#8460cb;--bq-purple-600:#6538be;--bq-purple-700:#512d98;--bq-purple-800:#3d2272;--bq-purple-900:#28164c;--bq-purple-1000:#140b26;--bq-red-100:#fce7ea;--bq-red-200:#f9d1d5;--bq-red-300:#f3a2ac;--bq-red-400:#ed7482;--bq-red-500:#e74559;--bq-red-600:#e1172f;--bq-red-700:#b41226;--bq-red-800:#870e1c;--bq-red-900:#5a0913;--bq-red-1000:#2d0509;--bq-sky-100:#eff4fb;--bq-sky-200:#dfeaf8;--bq-sky-300:#bfd5f1;--bq-sky-400:#9ec1e9;--bq-sky-500:#7eace2;--bq-sky-600:#5e97db;--bq-sky-700:#4b79af;--bq-sky-800:#385b83;--bq-sky-900:#263c58;--bq-sky-1000:#131e2c;--bq-teal-100:#e5f7f5;--bq-teal-200:#ccf0eb;--bq-teal-300:#99e1d8;--bq-teal-400:#66d2c4;--bq-teal-500:#33c3b1;--bq-teal-600:#00b49d;--bq-teal-700:#00907e;--bq-teal-800:#006c5e;--bq-teal-900:#00483f;--bq-teal-1000:#00241f;--bq-volcano-100:#feede7;--bq-volcano-200:#fddbd1;--bq-volcano-300:#fbb8a3;--bq-volcano-400:#fa9474;--bq-volcano-500:#f87146;--bq-volcano-600:#f64d18;--bq-volcano-700:#c53e13;--bq-volcano-800:#942e0e;--bq-volcano-900:#621f0a;--bq-volcano-1000:#310f05;--bq-yellow-100:#fefbe7;--bq-yellow-200:#fcf6d0;--bq-yellow-300:#faeea0;--bq-yellow-400:#f7e571;--bq-yellow-500:#f5dd41;--bq-yellow-600:#f2d412;--bq-yellow-700:#c2aa0e;--bq-yellow-800:#917f0b;--bq-yellow-900:#615507;--bq-yellow-1000:#302a04;--bq-endava-grey-50:#f7f7f8;--bq-endava-grey-100:#e4e6e7;--bq-endava-grey-200:#b5babe;--bq-endava-grey-300:#949ca1;--bq-endava-grey-400:#737d84;--bq-endava-grey-500:#525f67;--bq-endava-grey-600:#30404b;--bq-endava-grey-700:#2b3942;--bq-endava-grey-800:#263139;--bq-endava-grey-900:#192b37;--bq-endava-grey-950:#151b1e;--bq-endava-grey-1000:#0f1316;--bq-endava-neutral-white:#fafbfb;--bq-endava-neutral-black:#060708;--bq-endava-orange-100:#fef3f1;--bq-endava-orange-200:#fbd6d1;--bq-endava-orange-300:#fab7af;--bq-endava-orange-400:#fa988b;--bq-endava-orange-500:#fc7866;--bq-endava-orange-600:#ff5640;--bq-endava-orange-700:#ce4a39;--bq-endava-orange-800:#a03d30;--bq-endava-orange-900:#722e25;--bq-endava-orange-1000:#471e19}*,:after,:before{box-sizing:border-box}*{font:inherit;margin:0}ol[role=list],ul[role=list]{list-style-type:none}html{text-size-adjust:none;font-family:var(--bq-font-family);font-size:var(--bq-font-size--m)}html:focus-within{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bq-background--primary);color:var(--bq-text--primary);line-height:var(--bq-font-line-height--regular);min-height:100vb;text-rendering:optimizeSpeed}a:not([class]){text-decoration-skip-ink:auto}canvas,img,picture,svg,video{display:block;max-width:100%}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto;transition-duration:.01ms!important}}:where(:root){--bq-white:#fff;--bq-black:#060708;--bq-neutral-50:var(--bq-grey-50);--bq-neutral-100:var(--bq-grey-100);--bq-neutral-200:var(--bq-grey-200);--bq-neutral-300:var(--bq-grey-300);--bq-neutral-400:var(--bq-grey-400);--bq-neutral-500:var(--bq-grey-500);--bq-neutral-600:var(--bq-grey-600);--bq-neutral-700:var(--bq-grey-700);--bq-neutral-800:var(--bq-grey-800);--bq-neutral-900:var(--bq-grey-900);--bq-neutral-950:var(--bq-grey-950);--bq-neutral-1000:var(--bq-grey-1000);--bq-brand-light:var(--bq-iris-100);--bq-brand:var(--bq-iris-600);--bq-brand-dark:var(--bq-iris-1000);--bq-accent-light:var(--bq-purple-100);--bq-accent:var(--bq-purple-600);--bq-accent-dark:var(--bq-purple-1000);--bq-success-light:var(--bq-teal-100);--bq-success:var(--bq-teal-600);--bq-success-dark:var(--bq-teal-1000);--bq-danger-light:var(--bq-red-100);--bq-danger:var(--bq-red-600);--bq-danger-dark:var(--bq-red-1000);--bq-warning-light:var(--bq-gold-100);--bq-warning:var(--bq-gold-600);--bq-warning-dark:var(--bq-gold-1000);--bq-info-light:var(--bq-iris-100);--bq-info:var(--bq-iris-600);--bq-info-dark:var(--bq-iris-1000);--bq-focus:var(--bq-iris-600);--bq-data-01:var(--bq-brand);--bq-data-02:var(--bq-purple-600);--bq-data-03:var(--bq-magenta-600);--bq-data-04:var(--bq-cyan-600);--bq-data-05:var(--bq-teal-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-yellow-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-blue-600);--bq-data-10:var(--bq-grey-600);--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white);--bq-radius--none:0;--bq-radius--xs2:0.125rem;--bq-radius--xs:0.25rem;--bq-radius--s:0.5rem;--bq-radius--m:0.75rem;--bq-radius--l:1.5rem;--bq-radius--full:9999px;--bq-box-shadow--xs:0 2px 0 rgba(0,0,0,.016);--bq-box-shadow--s:0 8px 24px rgba(0,0,0,.04);--bq-box-shadow--m:0 10px 48px -16px rgba(0,0,0,.12);--bq-box-shadow--l:0 20px 58px -16px rgba(0,0,0,.16);--bq-font-family:"Outfit",sans-serif;--bq-font-size--xs:0.75rem;--bq-font-size--s:0.875rem;--bq-font-size--m:1rem;--bq-font-size--l:1.125rem;--bq-font-size--xl:1.5rem;--bq-font-size--xxl:2rem;--bq-font-size--xxl2:2.5rem;--bq-font-size--xxl3:3rem;--bq-font-size--xxl4:3.5rem;--bq-font-size--xxl5:4rem;--bq-font-weight--thin:100;--bq-font-weight--light:300;--bq-font-weight--regular:400;--bq-font-weight--medium:500;--bq-font-weight--semibold:600;--bq-font-weight--bold:700;--bq-font-line-height--small:1.2;--bq-font-line-height--regular:1.5;--bq-font-line-height--large:1.5;--bq-spacing-xs3:0.125rem;--bq-spacing-xs2:0.25rem;--bq-spacing-xs:0.5rem;--bq-spacing-s:0.75rem;--bq-spacing-m:1rem;--bq-spacing-l:1.5rem;--bq-spacing-xl:2rem;--bq-spacing-xxl:2.5rem;--bq-spacing-xxl2:3.5rem;--bq-spacing-xxl3:4rem;--bq-spacing-xxl4:4.5rem;--bq-stroke-s:1px;--bq-stroke-m:2px;--bq-stroke-l:3px}.beeq:not([bq-mode]),.light,:root:not([bq-theme]):not([bq-mode]),:root[bq-theme=beeq]:not([bq-mode]),[bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--alt:var(--bq-white);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-light);--bq-hover:#bcbfc5;--bq-active:#444546}.dark,[bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-950);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-dark);--bq-hover:#444546;--bq-active:#1f2026}:where(.endava),:where([bq-theme=endava]){--bq-font-family:"Poppins",sans-serif;--bq-white:#fafbfb;--bq-black:#030406;--bq-neutral-50:var(--bq-endava-grey-50);--bq-neutral-100:var(--bq-endava-grey-100);--bq-neutral-200:var(--bq-endava-grey-200);--bq-neutral-300:var(--bq-endava-grey-300);--bq-neutral-400:var(--bq-endava-grey-400);--bq-neutral-500:var(--bq-endava-grey-500);--bq-neutral-600:var(--bq-endava-grey-600);--bq-neutral-700:var(--bq-endava-grey-700);--bq-neutral-800:var(--bq-endava-grey-800);--bq-neutral-900:var(--bq-endava-grey-900);--bq-neutral-950:var(--bq-endava-grey-950);--bq-neutral-1000:var(--bq-endava-grey-1000);--bq-brand-light:var(--bq-endava-orange-100);--bq-brand:var(--bq-endava-orange-600);--bq-brand-dark:var(--bq-endava-orange-1000);--bq-accent-light:var(--bq-endava-orange-100);--bq-accent:var(--bq-endava-orange-600);--bq-accent-dark:var(--bq-endava-orange-1000);--bq-success-light:var(--bq-green-100);--bq-success:var(--bq-green-600);--bq-success-dark:var(--bq-green-1000);--bq-danger-light:var(--bq-corai-100);--bq-danger:var(--bq-corai-600);--bq-danger-dark:var(--bq-corai-1000);--bq-warning-light:var(--bq-yellow-100);--bq-warning:var(--bq-yellow-600);--bq-warning-dark:var(--bq-yellow-1000);--bq-info-light:var(--bq-blue-100);--bq-info:var(--bq-blue-600);--bq-info-dark:var(--bq-blue-1000);--bq-focus:var(--bq-endava-orange-600);--bq-data-01:var(--bq-brand);--bq-data-02:#af0cd8;--bq-data-03:#0ca8d8;--bq-data-04:var(--bq-teal-600);--bq-data-05:var(--bq-yellow-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-blue-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-purple-600);--bq-data-10:#394b56;--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white)}.endava.light,.endava:not([bq-mode]),[bq-theme=endava]:not([bq-mode]),[bq-theme=endava][bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--brand-alt:var(--bq-brand-light);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--brand:var(--bq-brand);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-light);--bq-hover:#444546;--bq-active:#1f2026}.endava.dark,[bq-theme=endava][bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-900);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--brand-alt:var(--bq-brand-dark);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-neutral-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-dark);--bq-hover:#444546;--bq-active:#1f2026}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.items-center{align-items:center}.gap-\\[--bq-toast--gap\\]{gap:var(--bq-toast--gap)}.rounded-\\[--bq-toast--border-radius\\]{border-radius:var(--bq-toast--border-radius)}.border-\\[length\\:--bq-toast--border-width\\]{border-width:var(--bq-toast--border-width)}.border-\\[color\\:--bq-toast--border-color\\]{border-color:var(--bq-toast--border-color)}.bg-\\[--bq-toast--background\\]{background-color:var(--bq-toast--background)}.text-\\[--bq-toast--icon-color-alert\\]{color:var(--bq-toast--icon-color-alert)}.text-\\[--bq-toast--icon-color-custom\\]{color:var(--bq-toast--icon-color-custom)}.text-\\[--bq-toast--icon-color-error\\]{color:var(--bq-toast--icon-color-error)}.text-\\[--bq-toast--icon-color-info\\]{color:var(--bq-toast--icon-color-info)}.text-\\[--bq-toast--icon-color-loading\\]{color:var(--bq-toast--icon-color-loading)}.text-\\[--bq-toast--icon-color-success\\]{color:var(--bq-toast--icon-color-success)}.shadow-\\[shadow\\:--bq-toast--box-shadow\\]{--tw-shadow:var(--bq-toast--box-shadow);--tw-shadow-colored:var(--bq-toast--box-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.p-b-\\[--bq-toast--padding-y\\]{padding-block:var(--bq-toast--padding-y)}.p-i-\\[--bq-toast--padding-x\\]{padding-inline:var(--bq-toast--padding-x)}@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}:host{--bq-toast--background:var(--bq-ui--primary);--bq-toast--box-shadow:var(--bq-box-shadow--l);--bq-toast--padding-y:var(--bq-spacing-s);--bq-toast--padding-x:var(--bq-spacing-m);--bq-toast--gap:var(--bq-spacing-xs);--bq-toast--border-radius:var(--bq-radius--s);--bq-toast--border-width:unset;--bq-toast--border-style:none;--bq-toast--border-color:transparent;--bq-toast--icon-color-info:var(--bq-icon--brand);--bq-toast--icon-color-success:var(--bq-icon--success);--bq-toast--icon-color-alert:var(--bq-icon--warning);--bq-toast--icon-color-error:var(--bq-icon--danger);--bq-toast--icon-color-loading:var(--bq-icon--brand);--bq-toast--icon-color-custom:var(--bq-icon--primary);display:inline-block}:host(.is-hidden){display:none}.bq-toast{--tw-shadow:var(--bq-toast--box-shadow);--tw-shadow-colored:var(--bq-toast--box-shadow);align-items:center;-webkit-animation:fade-in .3s ease 0s,slide-in .3s ease 0s;animation:fade-in .3s ease 0s,slide-in .3s ease 0s;background-color:var(--bq-toast--background);border-color:var(--bq-toast--border-color);border-radius:var(--bq-toast--border-radius);border-style:var(--bq-toast--border-style);border-width:var(--bq-toast--border-width);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);gap:var(--bq-toast--gap);padding-block:var(--bq-toast--padding-y);padding-inline:var(--bq-toast--padding-x)}.bq-toast,.bq-toast--icon{display:flex}.bq-toast--icon.info{color:var(--bq-toast--icon-color-info)}.bq-toast--icon.success{color:var(--bq-toast--icon-color-success)}.bq-toast--icon.alert{color:var(--bq-toast--icon-color-alert)}.bq-toast--icon.error{color:var(--bq-toast--icon-color-error)}.bq-toast--icon.loading{-webkit-animation:spin 1s linear 0s infinite;animation:spin 1s linear 0s infinite;color:var(--bq-toast--icon-color-loading)}.bq-toast--icon.custom{color:var(--bq-toast--icon-color-custom)}.static{position:static}.\\!hidden{display:none!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.text-\\[--bq-icon--color\\]{color:var(--bq-icon--color)}.bs-\\[--bq-icon--size\\]{block-size:var(--bq-icon--size)}.is-\\[--bq-icon--size\\]{inline-size:var(--bq-icon--size)}`;const l="bq-toast-portal";const v=class{constructor(b){a(this,b);this.bqHide=r(this,"bqHide");this.bqShow=r(this,"bqShow")}autoDismissDebounce;get el(){return b(this)}toastPortal=q()?document.querySelector(`.${l}`):null;border="s";type="info";placement="bottom-center";hideIcon=false;open;time=3e3;checkPropValues(){i(s,"default",this.el,"type");i(d,"bottom-center",this.el,"placement");const{toastPortal:a}=this;a?.classList.remove(...d);a?.classList.add(this.placement)}handleTimeChange(){this.autoDismissDebounce?.cancel();this.time=Math.max(0,this.time);this.autoDismissDebounce=o((()=>{this.hide()}),this.time)}handleOpenChange(){this.autoDismissDebounce?.cancel();if(this.open){this.autoDismissDebounce?.()}}bqHide;bqShow;connectedCallback(){if(!q())return;if(this.toastPortal){this.toastPortal=Object.assign(document.createElement("div"),{className:l})}}componentWillLoad(){this.checkPropValues();this.handleTimeChange();this.handleOpenChange()}disconnectedCallback(){this.autoDismissDebounce?.cancel()}onNotificationHide(){try{const{toastPortal:a}=this;a?.removeChild(this.el);if(a?.querySelector(this.el.tagName.toLowerCase())===null){a?.remove()}}catch(a){if(a instanceof DOMException)return;throw a}}async show(){this.handleShow()}async hide(){this.handleHide()}async toast(){if(!q())return;const{toastPortal:a}=this;if(a?.parentElement===null){document.body.append(a)}a?.appendChild(this.el);requestAnimationFrame((()=>{this.show()}))}handleShow=()=>{const a=this.bqShow.emit(this.el);if(!a.defaultPrevented){this.open=true}};handleHide=()=>{const a=this.bqHide.emit(this.el);if(!a.defaultPrevented){this.open=false}};get iconName(){const a={success:"check-circle-bold",error:"x-circle-bold",loading:"spinner-gap-bold",alert:"warning-bold",info:"info-bold"};return a[this.type]||"info-bold"}render(){const a={...this.border&&{"--bq-toast--border-radius":`var(--bq-radius--${this.border})`}};return t(e,{"aria-hidden":!this.open?"true":"false",class:{"is-hidden":!this.open},hidden:!this.open?"true":"false",role:"status",style:a,children:n("output",{class:"bq-toast",part:"wrapper",children:[t("div",{class:{[`bq-toast--icon ${this.type}`]:true,"!hidden":this.hideIcon},part:"icon",children:t("slot",{name:"icon",children:t("bq-icon",{exportparts:"base,svg",name:this.iconName,size:"24",slot:"icon"},"eaef82cdd6ca86fd451ddf11210af0a66d3d24ec")},"a7d298c92d2a7f27fcb92f15deecf57f6aca67b7")},"31ddbd2d68294f701d730f8a11b92d11becc13d6"),t("slot",{},"fe5efc9cebfbc2cd431b8f4dde24560387f9eed1")]},"e9a0f131fa8ece43fce2711cfcac60aeeb7d32e9")},"f35a997399e8310322c4389463e630bb9a9d1ab5")}static get watchers(){return{type:[{checkPropValues:0}],placement:[{checkPropValues:0}],time:[{handleTimeChange:0}],open:[{handleOpenChange:0}]}}};v.style=c();export{v as bq_toast};
|
|
6
|
-
|
|
5
|
+
import { p as a, H as r, c as e, j as b, d as t, t as n } from "./p-DDCN9O42.js";
|
|
6
|
+
|
|
7
|
+
import { F as i } from "./p-CmKvDWiL.js";
|
|
8
|
+
|
|
9
|
+
import { i as q } from "./p-Dx-CEPSQ.js";
|
|
10
|
+
|
|
11
|
+
const bqTooltipCss = () => `.bq-tooltip--arrow:before,.rotate-45,.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}.bq-tooltip--panel,.shadow-\\[shadow\\:--bq-tooltip--box-shadow\\]{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop,:root{--bq-blue-100:#e7f0fd;--bq-blue-200:#d0e2fb;--bq-blue-300:#a1c5f7;--bq-blue-400:#73a8f3;--bq-blue-500:#448bef;--bq-blue-600:#156eeb;--bq-blue-700:#1158bc;--bq-blue-800:#0d428d;--bq-blue-900:#082c5e;--bq-blue-1000:#04162f;--bq-corai-100:#fff2f2;--bq-corai-200:#ffe6e6;--bq-corai-300:#ffccce;--bq-corai-400:#ffb3b5;--bq-corai-500:#ff999d;--bq-corai-600:#ff8084;--bq-corai-700:#cc666a;--bq-corai-800:#994d4f;--bq-corai-900:#663335;--bq-corai-1000:#331a1a;--bq-cyan-100:#e8f7fb;--bq-cyan-200:#d2f0f8;--bq-cyan-300:#a5e1f1;--bq-cyan-400:#78d1e9;--bq-cyan-500:#4bc2e2;--bq-cyan-600:#1eb3db;--bq-cyan-700:#188faf;--bq-cyan-800:#126b83;--bq-cyan-900:#0c4858;--bq-cyan-1000:#06242c;--bq-gold-100:#fbf4ec;--bq-gold-200:#f7e9da;--bq-gold-300:#f0d3b6;--bq-gold-400:#e8bc91;--bq-gold-500:#e1a66d;--bq-gold-600:#d99048;--bq-gold-700:#ae733a;--bq-gold-800:#82562b;--bq-gold-900:#573a1d;--bq-gold-1000:#2b1d0e;--bq-green-100:#e8f8ef;--bq-green-200:#d2f1e0;--bq-green-300:#a5e3c1;--bq-green-400:#78d5a1;--bq-green-500:#4bc782;--bq-green-600:#1eb963;--bq-green-700:#18944f;--bq-green-800:#126f3b;--bq-green-900:#0c4a28;--bq-green-1000:#062514;--bq-grey-100:#f1f2f4;--bq-grey-200:#e7e8eb;--bq-grey-300:#caccd2;--bq-grey-400:#a6aab3;--bq-grey-50:#f6f6f8;--bq-grey-500:#898e99;--bq-grey-600:#646a77;--bq-grey-700:#3f4350;--bq-grey-800:#2a2c35;--bq-grey-900:#1c1d23;--bq-grey-950:#15161a;--bq-grey-1000:#0d0e11;--bq-indigo-100:#edecfc;--bq-indigo-200:#dcdafa;--bq-indigo-300:#b9b5f5;--bq-indigo-400:#9590ef;--bq-indigo-500:#726bea;--bq-indigo-600:#4f46e5;--bq-indigo-700:#3f38b7;--bq-indigo-800:#2f2a89;--bq-indigo-900:#201c5c;--bq-indigo-1000:#100e2e;--bq-iris-100:#e9f0ff;--bq-iris-200:#d6e0ff;--bq-iris-300:#b2c0fe;--bq-iris-400:#8691f8;--bq-iris-500:#6061ee;--bq-iris-600:#4f46e5;--bq-iris-700:#413abd;--bq-iris-800:#332e95;--bq-iris-900:#26216d;--bq-iris-1000:#181545;--bq-lime-100:#f5fae8;--bq-lime-200:#ecf6d2;--bq-lime-300:#d9eda5;--bq-lime-400:#c5e379;--bq-lime-500:#b2da4c;--bq-lime-600:#9fd11f;--bq-lime-700:#7fa719;--bq-lime-800:#5f7d13;--bq-lime-900:#40540c;--bq-lime-1000:#202a06;--bq-magenta-100:#fce7f4;--bq-magenta-200:#f9cfea;--bq-magenta-300:#f39fd6;--bq-magenta-400:#ee6fbf;--bq-magenta-500:#e83fab;--bq-magenta-600:#de1395;--bq-magenta-700:#b20f77;--bq-magenta-800:#850c59;--bq-magenta-900:#58083c;--bq-magenta-1000:#2c041e;--bq-neutral-white:#fbfbfc;--bq-neutral-black:#060708;--bq-orange-100:#fbf0e9;--bq-orange-200:#f8e1d4;--bq-orange-300:#f1c2a8;--bq-orange-400:#eaa47d;--bq-orange-500:#e38551;--bq-orange-600:#dc6726;--bq-orange-700:#b0521e;--bq-orange-800:#843e17;--bq-orange-900:#58290f;--bq-orange-1000:#2c1508;--bq-purple-100:#efebf8;--bq-purple-200:#e0d7f2;--bq-purple-300:#c1afe5;--bq-purple-400:#a388d8;--bq-purple-500:#8460cb;--bq-purple-600:#6538be;--bq-purple-700:#512d98;--bq-purple-800:#3d2272;--bq-purple-900:#28164c;--bq-purple-1000:#140b26;--bq-red-100:#fce7ea;--bq-red-200:#f9d1d5;--bq-red-300:#f3a2ac;--bq-red-400:#ed7482;--bq-red-500:#e74559;--bq-red-600:#e1172f;--bq-red-700:#b41226;--bq-red-800:#870e1c;--bq-red-900:#5a0913;--bq-red-1000:#2d0509;--bq-sky-100:#eff4fb;--bq-sky-200:#dfeaf8;--bq-sky-300:#bfd5f1;--bq-sky-400:#9ec1e9;--bq-sky-500:#7eace2;--bq-sky-600:#5e97db;--bq-sky-700:#4b79af;--bq-sky-800:#385b83;--bq-sky-900:#263c58;--bq-sky-1000:#131e2c;--bq-teal-100:#e5f7f5;--bq-teal-200:#ccf0eb;--bq-teal-300:#99e1d8;--bq-teal-400:#66d2c4;--bq-teal-500:#33c3b1;--bq-teal-600:#00b49d;--bq-teal-700:#00907e;--bq-teal-800:#006c5e;--bq-teal-900:#00483f;--bq-teal-1000:#00241f;--bq-volcano-100:#feede7;--bq-volcano-200:#fddbd1;--bq-volcano-300:#fbb8a3;--bq-volcano-400:#fa9474;--bq-volcano-500:#f87146;--bq-volcano-600:#f64d18;--bq-volcano-700:#c53e13;--bq-volcano-800:#942e0e;--bq-volcano-900:#621f0a;--bq-volcano-1000:#310f05;--bq-yellow-100:#fefbe7;--bq-yellow-200:#fcf6d0;--bq-yellow-300:#faeea0;--bq-yellow-400:#f7e571;--bq-yellow-500:#f5dd41;--bq-yellow-600:#f2d412;--bq-yellow-700:#c2aa0e;--bq-yellow-800:#917f0b;--bq-yellow-900:#615507;--bq-yellow-1000:#302a04;--bq-endava-grey-50:#f7f7f8;--bq-endava-grey-100:#e4e6e7;--bq-endava-grey-200:#b5babe;--bq-endava-grey-300:#949ca1;--bq-endava-grey-400:#737d84;--bq-endava-grey-500:#525f67;--bq-endava-grey-600:#30404b;--bq-endava-grey-700:#2b3942;--bq-endava-grey-800:#263139;--bq-endava-grey-900:#192b37;--bq-endava-grey-950:#151b1e;--bq-endava-grey-1000:#0f1316;--bq-endava-neutral-white:#fafbfb;--bq-endava-neutral-black:#060708;--bq-endava-orange-100:#fef3f1;--bq-endava-orange-200:#fbd6d1;--bq-endava-orange-300:#fab7af;--bq-endava-orange-400:#fa988b;--bq-endava-orange-500:#fc7866;--bq-endava-orange-600:#ff5640;--bq-endava-orange-700:#ce4a39;--bq-endava-orange-800:#a03d30;--bq-endava-orange-900:#722e25;--bq-endava-orange-1000:#471e19}*,:after,:before{box-sizing:border-box}*{font:inherit;margin:0}ol[role=list],ul[role=list]{list-style-type:none}html{text-size-adjust:none;font-family:var(--bq-font-family);font-size:var(--bq-font-size--m)}html:focus-within{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bq-background--primary);color:var(--bq-text--primary);line-height:var(--bq-font-line-height--regular);min-height:100vb;text-rendering:optimizeSpeed}a:not([class]){text-decoration-skip-ink:auto}canvas,img,picture,svg,video{display:block;max-width:100%}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto;transition-duration:.01ms!important}}:where(:root){--bq-white:#fff;--bq-black:#060708;--bq-neutral-50:var(--bq-grey-50);--bq-neutral-100:var(--bq-grey-100);--bq-neutral-200:var(--bq-grey-200);--bq-neutral-300:var(--bq-grey-300);--bq-neutral-400:var(--bq-grey-400);--bq-neutral-500:var(--bq-grey-500);--bq-neutral-600:var(--bq-grey-600);--bq-neutral-700:var(--bq-grey-700);--bq-neutral-800:var(--bq-grey-800);--bq-neutral-900:var(--bq-grey-900);--bq-neutral-950:var(--bq-grey-950);--bq-neutral-1000:var(--bq-grey-1000);--bq-brand-light:var(--bq-iris-100);--bq-brand:var(--bq-iris-600);--bq-brand-dark:var(--bq-iris-1000);--bq-accent-light:var(--bq-purple-100);--bq-accent:var(--bq-purple-600);--bq-accent-dark:var(--bq-purple-1000);--bq-success-light:var(--bq-teal-100);--bq-success:var(--bq-teal-600);--bq-success-dark:var(--bq-teal-1000);--bq-danger-light:var(--bq-red-100);--bq-danger:var(--bq-red-600);--bq-danger-dark:var(--bq-red-1000);--bq-warning-light:var(--bq-gold-100);--bq-warning:var(--bq-gold-600);--bq-warning-dark:var(--bq-gold-1000);--bq-info-light:var(--bq-iris-100);--bq-info:var(--bq-iris-600);--bq-info-dark:var(--bq-iris-1000);--bq-focus:var(--bq-iris-600);--bq-data-01:var(--bq-brand);--bq-data-02:var(--bq-purple-600);--bq-data-03:var(--bq-magenta-600);--bq-data-04:var(--bq-cyan-600);--bq-data-05:var(--bq-teal-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-yellow-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-blue-600);--bq-data-10:var(--bq-grey-600);--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white);--bq-radius--none:0;--bq-radius--xs2:0.125rem;--bq-radius--xs:0.25rem;--bq-radius--s:0.5rem;--bq-radius--m:0.75rem;--bq-radius--l:1.5rem;--bq-radius--full:9999px;--bq-box-shadow--xs:0 2px 0 rgba(0,0,0,.016);--bq-box-shadow--s:0 8px 24px rgba(0,0,0,.04);--bq-box-shadow--m:0 10px 48px -16px rgba(0,0,0,.12);--bq-box-shadow--l:0 20px 58px -16px rgba(0,0,0,.16);--bq-font-family:"Outfit",sans-serif;--bq-font-size--xs:0.75rem;--bq-font-size--s:0.875rem;--bq-font-size--m:1rem;--bq-font-size--l:1.125rem;--bq-font-size--xl:1.5rem;--bq-font-size--xxl:2rem;--bq-font-size--xxl2:2.5rem;--bq-font-size--xxl3:3rem;--bq-font-size--xxl4:3.5rem;--bq-font-size--xxl5:4rem;--bq-font-weight--thin:100;--bq-font-weight--light:300;--bq-font-weight--regular:400;--bq-font-weight--medium:500;--bq-font-weight--semibold:600;--bq-font-weight--bold:700;--bq-font-line-height--small:1.2;--bq-font-line-height--regular:1.5;--bq-font-line-height--large:1.5;--bq-spacing-xs3:0.125rem;--bq-spacing-xs2:0.25rem;--bq-spacing-xs:0.5rem;--bq-spacing-s:0.75rem;--bq-spacing-m:1rem;--bq-spacing-l:1.5rem;--bq-spacing-xl:2rem;--bq-spacing-xxl:2.5rem;--bq-spacing-xxl2:3.5rem;--bq-spacing-xxl3:4rem;--bq-spacing-xxl4:4.5rem;--bq-stroke-s:1px;--bq-stroke-m:2px;--bq-stroke-l:3px}.beeq:not([bq-mode]),.light,:root:not([bq-theme]):not([bq-mode]),:root[bq-theme=beeq]:not([bq-mode]),[bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--alt:var(--bq-white);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-light);--bq-hover:#bcbfc5;--bq-active:#444546}.dark,[bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-950);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-dark);--bq-hover:#444546;--bq-active:#1f2026}:where(.endava),:where([bq-theme=endava]){--bq-font-family:"Poppins",sans-serif;--bq-white:#fafbfb;--bq-black:#030406;--bq-neutral-50:var(--bq-endava-grey-50);--bq-neutral-100:var(--bq-endava-grey-100);--bq-neutral-200:var(--bq-endava-grey-200);--bq-neutral-300:var(--bq-endava-grey-300);--bq-neutral-400:var(--bq-endava-grey-400);--bq-neutral-500:var(--bq-endava-grey-500);--bq-neutral-600:var(--bq-endava-grey-600);--bq-neutral-700:var(--bq-endava-grey-700);--bq-neutral-800:var(--bq-endava-grey-800);--bq-neutral-900:var(--bq-endava-grey-900);--bq-neutral-950:var(--bq-endava-grey-950);--bq-neutral-1000:var(--bq-endava-grey-1000);--bq-brand-light:var(--bq-endava-orange-100);--bq-brand:var(--bq-endava-orange-600);--bq-brand-dark:var(--bq-endava-orange-1000);--bq-accent-light:var(--bq-endava-orange-100);--bq-accent:var(--bq-endava-orange-600);--bq-accent-dark:var(--bq-endava-orange-1000);--bq-success-light:var(--bq-green-100);--bq-success:var(--bq-green-600);--bq-success-dark:var(--bq-green-1000);--bq-danger-light:var(--bq-corai-100);--bq-danger:var(--bq-corai-600);--bq-danger-dark:var(--bq-corai-1000);--bq-warning-light:var(--bq-yellow-100);--bq-warning:var(--bq-yellow-600);--bq-warning-dark:var(--bq-yellow-1000);--bq-info-light:var(--bq-blue-100);--bq-info:var(--bq-blue-600);--bq-info-dark:var(--bq-blue-1000);--bq-focus:var(--bq-endava-orange-600);--bq-data-01:var(--bq-brand);--bq-data-02:#af0cd8;--bq-data-03:#0ca8d8;--bq-data-04:var(--bq-teal-600);--bq-data-05:var(--bq-yellow-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-blue-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-purple-600);--bq-data-10:#394b56;--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white)}.endava.light,.endava:not([bq-mode]),[bq-theme=endava]:not([bq-mode]),[bq-theme=endava][bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--brand-alt:var(--bq-brand-light);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--brand:var(--bq-brand);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-light);--bq-hover:#444546;--bq-active:#1f2026}.endava.dark,[bq-theme=endava][bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-900);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--brand-alt:var(--bq-brand-dark);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-neutral-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-dark);--bq-hover:#444546;--bq-active:#1f2026}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.start-0{inset-inline-start:0}.-z-\\[1\\]{z-index:-1}.z-\\[--bq-tooltip--z-index\\]{z-index:var(--bq-tooltip--z-index)}.box-border{box-sizing:border-box}.rotate-45{--tw-rotate:45deg}.rotate-45,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rounded-\\[--bq-tooltip--border-radius\\]{border-radius:var(--bq-tooltip--border-radius)}.border-\\[length\\:--bq-tooltip--border-width\\]{border-width:var(--bq-tooltip--border-width)}.border-\\[color\\:--bq-tooltip--border-color\\]{border-color:var(--bq-tooltip--border-color)}.bg-\\[--bq-tooltip--background-color\\]{background-color:var(--bq-tooltip--background-color)}.text-\\[length\\:--bq-tooltip--font-size\\]{font-size:var(--bq-tooltip--font-size)}.leading-\\[--bq-tooltip--line-height\\]{line-height:var(--bq-tooltip--line-height)}.text-\\[color\\:--bq-tooltip--text-color\\]{color:var(--bq-tooltip--text-color)}.shadow-\\[shadow\\:--bq-tooltip--box-shadow\\]{--tw-shadow:var(--bq-tooltip--box-shadow);--tw-shadow-colored:var(--bq-tooltip--box-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.content-empty{--tw-content:"";content:var(--tw-content)}.bs-2{block-size:.5rem}.is-2{inline-size:.5rem}.is-\\[--bq-tooltip--width\\]{inline-size:var(--bq-tooltip--width)}.max-is-\\[--bq-tooltip--max-width\\]{max-inline-size:var(--bq-tooltip--max-width)}.p-b-\\[--bq-tooltip--paddingY\\]{padding-block:var(--bq-tooltip--paddingY)}.p-i-\\[--bq-tooltip--paddingX\\]{padding-inline:var(--bq-tooltip--paddingX)}.inset-bs-0{inset-block-start:0}@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}:host{--bq-tooltip--background-color:var(--bq-ui--inverse);--bq-tooltip--box-shadow:var(--bq-box-shadow--m);--bq-tooltip--font-size:var(--bq-font-size--m);--bq-tooltip--line-height:var(--bq-font-line-height--regular);--bq-tooltip--text-color:var(--bq-text--inverse);--bq-tooltip--paddingX:var(--bq-spacing-xs);--bq-tooltip--paddingY:var(--bq-spacing-xs2);--bq-tooltip--border-color:transparent;--bq-tooltip--border-radius:var(--bq-radius--s);--bq-tooltip--border-style:none;--bq-tooltip--border-width:unset;--bq-tooltip--max-width:320px;--bq-tooltip--width:max-content;--bq-tooltip--z-index:10}.bq-tooltip--panel{--tw-shadow:var(--bq-tooltip--box-shadow);--tw-shadow-colored:var(--bq-tooltip--box-shadow);-webkit-animation:fade-in .3s ease 0s;animation:fade-in .3s ease 0s;background-color:var(--bq-tooltip--background-color);border-color:var(--bq-tooltip--border-color);border-radius:var(--bq-tooltip--border-radius);border-width:var(--bq-tooltip--border-width);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-sizing:border-box;color:var(--bq-tooltip--text-color);font-size:var(--bq-tooltip--font-size);inline-size:var(--bq-tooltip--width);line-height:var(--bq-tooltip--line-height);max-inline-size:var(--bq-tooltip--max-width);padding-block:var(--bq-tooltip--paddingY);padding-inline:var(--bq-tooltip--paddingX);pointer-events:none;position:fixed;z-index:var(--bq-tooltip--z-index)}.bq-tooltip--arrow,.bq-tooltip--arrow:before{block-size:.5rem;inline-size:.5rem;position:absolute;z-index:-1}.bq-tooltip--arrow:before{--tw-rotate:45deg;--tw-content:"";background-color:var(--bq-tooltip--background-color);content:var(--tw-content);inset-block-start:0;inset-inline-start:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.visible{visibility:visible}.static{position:static}.relative{position:relative}.hidden{display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}`;
|
|
12
|
+
|
|
13
|
+
const o = a(class a extends r {
|
|
14
|
+
constructor(a) {
|
|
15
|
+
super();
|
|
16
|
+
if (a !== false) {
|
|
17
|
+
this.__registerHost();
|
|
18
|
+
}
|
|
19
|
+
this.__attachShadow();
|
|
20
|
+
this.bqClick = e(this, "bqClick");
|
|
21
|
+
this.bqFocusIn = e(this, "bqFocusIn");
|
|
22
|
+
this.bqFocusOut = e(this, "bqFocusOut");
|
|
23
|
+
this.bqHoverIn = e(this, "bqHoverIn");
|
|
24
|
+
this.bqHoverOut = e(this, "bqHoverOut");
|
|
25
|
+
}
|
|
26
|
+
// Own Properties
|
|
27
|
+
// ====================
|
|
28
|
+
trigger;
|
|
29
|
+
panel;
|
|
30
|
+
arrow;
|
|
31
|
+
floatingUI;
|
|
32
|
+
get el() {
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
// State() variables
|
|
36
|
+
// Inlined decorator, alphabetical order
|
|
37
|
+
// =======================================
|
|
38
|
+
// Public Property API
|
|
39
|
+
// ========================
|
|
40
|
+
/** If true, the tooltip will always be visible */
|
|
41
|
+
alwaysVisible=false;
|
|
42
|
+
/** Distance between trigger element and tooltip */
|
|
43
|
+
distance=10;
|
|
44
|
+
/** If true, the arrow on the tooltip content won't be shown */
|
|
45
|
+
hideArrow=false;
|
|
46
|
+
/* Defines the position of the tooltip */
|
|
47
|
+
placement="top";
|
|
48
|
+
/** Whether the tooltip should have the same width as the trigger element
|
|
49
|
+
* (applicable only for content shorter than the trigger element) */
|
|
50
|
+
sameWidth=false;
|
|
51
|
+
/** Set the action when the tooltip should be displayed, on hover (default) or click */
|
|
52
|
+
displayOn="hover";
|
|
53
|
+
/**
|
|
54
|
+
* Indicates whether or not the tooltip is visible when the component is first rendered,
|
|
55
|
+
* and when interacting with the trigger
|
|
56
|
+
*/
|
|
57
|
+
visible=false;
|
|
58
|
+
// Prop lifecycle events
|
|
59
|
+
// =======================
|
|
60
|
+
async handleVisibleChange() {
|
|
61
|
+
if (!this.visible && !this.alwaysVisible) {
|
|
62
|
+
return await this.hide();
|
|
63
|
+
}
|
|
64
|
+
await this.show();
|
|
65
|
+
}
|
|
66
|
+
handleFloatingUIOptionsChange() {
|
|
67
|
+
this.floatingUI.init({
|
|
68
|
+
placement: this.placement,
|
|
69
|
+
distance: this.distance,
|
|
70
|
+
sameWidth: this.sameWidth,
|
|
71
|
+
strategy: "fixed"
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
// Events section
|
|
75
|
+
// Requires JSDocs for public API documentation
|
|
76
|
+
// ==============================================
|
|
77
|
+
/** Emitted when the tooltip trigger is clicked */
|
|
78
|
+
bqClick;
|
|
79
|
+
/** Emitted when the tooltip trigger is focused in */
|
|
80
|
+
bqFocusIn;
|
|
81
|
+
/** Emitted when the tooltip trigger is focused out */
|
|
82
|
+
bqFocusOut;
|
|
83
|
+
/** Emitted when the tooltip trigger is hovered in */
|
|
84
|
+
bqHoverIn;
|
|
85
|
+
/** Emitted when the tooltip trigger is hovered out */
|
|
86
|
+
bqHoverOut;
|
|
87
|
+
// Component lifecycle events
|
|
88
|
+
// Ordered by their natural call order
|
|
89
|
+
// =====================================
|
|
90
|
+
componentDidLoad() {
|
|
91
|
+
this.floatingUI = new i(this.trigger, this.panel, {
|
|
92
|
+
...!this.hideArrow && {
|
|
93
|
+
arrow: this.arrow
|
|
94
|
+
},
|
|
95
|
+
placement: this.placement,
|
|
96
|
+
distance: this.distance,
|
|
97
|
+
sameWidth: this.sameWidth,
|
|
98
|
+
strategy: "fixed",
|
|
99
|
+
skidding: 0
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
disconnectedCallback() {
|
|
103
|
+
this.floatingUI?.destroy();
|
|
104
|
+
}
|
|
105
|
+
// Listeners
|
|
106
|
+
// ==============
|
|
107
|
+
handleDocumentKeyDown(a) {
|
|
108
|
+
// Early returns for performance optimization
|
|
109
|
+
if (this.alwaysVisible || !this.visible || this.displayOn !== "click") return;
|
|
110
|
+
// Hide tooltip when the user presses the escape key, but only if the displayOn is click and the tooltip is visible
|
|
111
|
+
if (a.key !== "Escape") return;
|
|
112
|
+
this.hide();
|
|
113
|
+
}
|
|
114
|
+
handleDocumentMouseDown(a) {
|
|
115
|
+
// Early returns for performance optimization
|
|
116
|
+
if (this.alwaysVisible || !this.visible) return;
|
|
117
|
+
// Hide tooltip when the user clicks outside of the tooltip, but only if the displayOn is click and the tooltip is visible
|
|
118
|
+
if (q(a, this.el)) return;
|
|
119
|
+
this.hide();
|
|
120
|
+
}
|
|
121
|
+
handleDocumentScroll() {
|
|
122
|
+
// Early returns for performance optimization
|
|
123
|
+
if (this.alwaysVisible || !this.visible) return;
|
|
124
|
+
// Hide tooltip when the user scrolls, but only if the the tooltip is visible
|
|
125
|
+
this.hide();
|
|
126
|
+
}
|
|
127
|
+
// Public methods API
|
|
128
|
+
// These methods are exposed on the host element.
|
|
129
|
+
// Always use two lines.
|
|
130
|
+
// Public Methods must be async.
|
|
131
|
+
// Requires JSDocs for public API documentation.
|
|
132
|
+
// ===============================================
|
|
133
|
+
/** Shows the tooltip */
|
|
134
|
+
async show() {
|
|
135
|
+
this.visible = true;
|
|
136
|
+
this.showTooltip();
|
|
137
|
+
}
|
|
138
|
+
/** Hides the tooltip */ async hide() {
|
|
139
|
+
if (this.alwaysVisible) return;
|
|
140
|
+
this.visible = false;
|
|
141
|
+
this.hideTooltip();
|
|
142
|
+
}
|
|
143
|
+
// Local methods
|
|
144
|
+
// Internal business logic.
|
|
145
|
+
// These methods cannot be called from the host element.
|
|
146
|
+
// =======================================================
|
|
147
|
+
handleTriggerMouseOver=async () => {
|
|
148
|
+
if (this.displayOn !== "hover") return;
|
|
149
|
+
const a = this.bqHoverIn.emit(this.el);
|
|
150
|
+
if (a.defaultPrevented) return;
|
|
151
|
+
await this.show();
|
|
152
|
+
};
|
|
153
|
+
handleTriggerMouseLeave=async () => {
|
|
154
|
+
if (this.displayOn !== "hover") return;
|
|
155
|
+
const a = this.bqHoverOut.emit(this.el);
|
|
156
|
+
if (a.defaultPrevented) return;
|
|
157
|
+
await this.hide();
|
|
158
|
+
};
|
|
159
|
+
handleTriggerOnClick=async () => {
|
|
160
|
+
if (this.displayOn !== "click") return;
|
|
161
|
+
const a = this.bqClick.emit(this.el);
|
|
162
|
+
if (a.defaultPrevented) return;
|
|
163
|
+
await (this.visible ? this.hide() : this.show());
|
|
164
|
+
};
|
|
165
|
+
handleTriggerFocusin=async () => {
|
|
166
|
+
if (this.visible || this.displayOn === "click") return;
|
|
167
|
+
const a = this.bqFocusIn.emit(this.el);
|
|
168
|
+
if (a.defaultPrevented) return;
|
|
169
|
+
await this.show();
|
|
170
|
+
};
|
|
171
|
+
handleTriggerFocusout=async () => {
|
|
172
|
+
if (!this.visible || this.displayOn === "click") return;
|
|
173
|
+
const a = this.bqFocusOut.emit(this.el);
|
|
174
|
+
if (a.defaultPrevented) return;
|
|
175
|
+
await this.hide();
|
|
176
|
+
};
|
|
177
|
+
showTooltip=() => {
|
|
178
|
+
if (!this.panel) return;
|
|
179
|
+
this.floatingUI?.update();
|
|
180
|
+
};
|
|
181
|
+
hideTooltip=() => {
|
|
182
|
+
if (!this.panel) return;
|
|
183
|
+
this.visible = false;
|
|
184
|
+
};
|
|
185
|
+
get isHidden() {
|
|
186
|
+
return !this.visible && !this.alwaysVisible;
|
|
187
|
+
}
|
|
188
|
+
// render() function
|
|
189
|
+
// Always the last one in the class.
|
|
190
|
+
// ===================================
|
|
191
|
+
render() {
|
|
192
|
+
return b("div", {
|
|
193
|
+
class: "bq-tooltip relative",
|
|
194
|
+
part: "base",
|
|
195
|
+
children: [ t("div", {
|
|
196
|
+
class: "bq-tooltip--trigger",
|
|
197
|
+
onClick: this.handleTriggerOnClick,
|
|
198
|
+
onFocusin: this.handleTriggerFocusin,
|
|
199
|
+
onFocusout: this.handleTriggerFocusout,
|
|
200
|
+
onMouseEnter: this.handleTriggerMouseOver,
|
|
201
|
+
onMouseLeave: this.handleTriggerMouseLeave,
|
|
202
|
+
part: "trigger",
|
|
203
|
+
ref: a => {
|
|
204
|
+
this.trigger = a;
|
|
205
|
+
},
|
|
206
|
+
children: t("slot", {
|
|
207
|
+
name: "trigger"
|
|
208
|
+
}, "c9a9cf0cf2e213ad54d8f3f31d822da7d1237243")
|
|
209
|
+
}, "f28dfbb8e3d47cd7c0c1caf77e430149086627ec"), b("div", {
|
|
210
|
+
"aria-hidden": this.isHidden,
|
|
211
|
+
class: "bq-tooltip--panel",
|
|
212
|
+
hidden: this.isHidden,
|
|
213
|
+
part: "panel",
|
|
214
|
+
ref: a => {
|
|
215
|
+
this.panel = a;
|
|
216
|
+
},
|
|
217
|
+
role: "tooltip",
|
|
218
|
+
children: [ !this.hideArrow && t("div", {
|
|
219
|
+
class: "bq-tooltip--arrow",
|
|
220
|
+
ref: a => {
|
|
221
|
+
this.arrow = a;
|
|
222
|
+
}
|
|
223
|
+
}, "1a348cfe871c576d7afced85932caa014905a290"), t("slot", {}, "5c9250fe380d655c77d78f979aee23f296eb16c5") ]
|
|
224
|
+
}, "b1f104f8b5e09d9ab93f7ae4a59e892fbe7c3159") ]
|
|
225
|
+
}, "acfe401f89cb3c9ba12cd827a6207197404be534");
|
|
226
|
+
}
|
|
227
|
+
static get watchers() {
|
|
228
|
+
return {
|
|
229
|
+
visible: [ {
|
|
230
|
+
handleVisibleChange: 0
|
|
231
|
+
} ],
|
|
232
|
+
distance: [ {
|
|
233
|
+
handleFloatingUIOptionsChange: 0
|
|
234
|
+
} ],
|
|
235
|
+
hideArrow: [ {
|
|
236
|
+
handleFloatingUIOptionsChange: 0
|
|
237
|
+
} ],
|
|
238
|
+
placement: [ {
|
|
239
|
+
handleFloatingUIOptionsChange: 0
|
|
240
|
+
} ],
|
|
241
|
+
sameWidth: [ {
|
|
242
|
+
handleFloatingUIOptionsChange: 0
|
|
243
|
+
} ]
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
static get style() {
|
|
247
|
+
return bqTooltipCss();
|
|
248
|
+
}
|
|
249
|
+
}, [ 769, "bq-tooltip", {
|
|
250
|
+
alwaysVisible: [ 4, "always-visible" ],
|
|
251
|
+
distance: [ 514 ],
|
|
252
|
+
hideArrow: [ 516, "hide-arrow" ],
|
|
253
|
+
placement: [ 513 ],
|
|
254
|
+
sameWidth: [ 516, "same-width" ],
|
|
255
|
+
displayOn: [ 513, "display-on" ],
|
|
256
|
+
visible: [ 1540 ],
|
|
257
|
+
show: [ 64 ],
|
|
258
|
+
hide: [ 64 ]
|
|
259
|
+
}, [ [ 4, "keydown", "handleDocumentKeyDown" ], [ 5, "mousedown", "handleDocumentMouseDown" ], [ 5, "scroll", "handleDocumentScroll" ] ], {
|
|
260
|
+
visible: [ {
|
|
261
|
+
handleVisibleChange: 0
|
|
262
|
+
} ],
|
|
263
|
+
distance: [ {
|
|
264
|
+
handleFloatingUIOptionsChange: 0
|
|
265
|
+
} ],
|
|
266
|
+
hideArrow: [ {
|
|
267
|
+
handleFloatingUIOptionsChange: 0
|
|
268
|
+
} ],
|
|
269
|
+
placement: [ {
|
|
270
|
+
handleFloatingUIOptionsChange: 0
|
|
271
|
+
} ],
|
|
272
|
+
sameWidth: [ {
|
|
273
|
+
handleFloatingUIOptionsChange: 0
|
|
274
|
+
} ]
|
|
275
|
+
} ]);
|
|
276
|
+
|
|
277
|
+
function defineCustomElement() {
|
|
278
|
+
if (typeof customElements === "undefined") {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
const a = [ "bq-tooltip" ];
|
|
282
|
+
a.forEach((a => {
|
|
283
|
+
switch (a) {
|
|
284
|
+
case "bq-tooltip":
|
|
285
|
+
if (!customElements.get(n(a))) {
|
|
286
|
+
customElements.define(n(a), o);
|
|
287
|
+
}
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export { o as B, defineCustomElement as d };
|
|
294
|
+
//# sourceMappingURL=p-CXLw0i9p.js.map
|
|
295
|
+
//# sourceMappingURL=p-CXLw0i9p.js.map
|