@paperless/core 2.2.15 → 2.2.17
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/CHANGELOG.md +26 -0
- package/dist/build/p-0b3af128.entry.js +2 -0
- package/dist/build/p-0b3af128.entry.js.map +1 -0
- package/dist/{paperless/p-b334b27d.entry.js → build/p-0ea3c0be.entry.js} +2 -2
- package/dist/{paperless/p-e74def55.entry.js → build/p-0fd02345.entry.js} +2 -2
- package/dist/build/p-13746ec7.entry.js +2 -0
- package/dist/build/{p-bf3a11a3.entry.js → p-1a551082.entry.js} +2 -2
- package/dist/{paperless/p-f866e7de.entry.js → build/p-1c9b0700.entry.js} +2 -2
- package/dist/{paperless/p-e3250b88.entry.js → build/p-1f45e45a.entry.js} +2 -2
- package/dist/build/p-20f5071b.entry.js +2 -0
- package/dist/{paperless/p-6527b461.entry.js → build/p-230365ba.entry.js} +2 -2
- package/dist/build/{p-586ca05c.entry.js → p-2366e61d.entry.js} +2 -2
- package/dist/build/{p-9686ab8f.entry.js → p-3e2d2587.entry.js} +2 -2
- package/dist/build/{p-9bb90aaf.entry.js → p-419077c3.entry.js} +2 -2
- package/dist/build/{p-ab9ad2c2.entry.js → p-4e7c1803.entry.js} +2 -2
- package/dist/build/p-50b3268f.entry.js +2 -0
- package/dist/{paperless/p-2b203c64.entry.js → build/p-542a718b.entry.js} +2 -2
- package/dist/build/{p-f98d44ff.js → p-5a37143b.js} +1 -1
- package/dist/build/{p-a8d11806.entry.js → p-6581ce9c.entry.js} +2 -2
- package/dist/build/{p-5ac2fea4.entry.js → p-78403aa3.entry.js} +2 -2
- package/dist/build/{p-60fc666c.entry.js → p-7f1f62c2.entry.js} +2 -2
- package/dist/build/{p-e7e7bc25.entry.js → p-805bad94.entry.js} +2 -2
- package/dist/build/{p-d4f556ea.entry.js → p-8325525f.entry.js} +2 -2
- package/dist/build/p-84979460.entry.js +2 -0
- package/dist/{paperless/p-ce7c429d.entry.js → build/p-8817fc5d.entry.js} +2 -2
- package/dist/build/p-8a116c31.entry.js +2 -0
- package/dist/build/p-8a116c31.entry.js.map +1 -0
- package/dist/build/p-93520e8e.entry.js +2 -0
- package/dist/build/p-93520e8e.entry.js.map +1 -0
- package/dist/build/{p-60d4f5b8.entry.js → p-982c05d5.entry.js} +2 -2
- package/dist/{paperless/p-80c3e999.entry.js → build/p-9ab2cb8d.entry.js} +2 -2
- package/dist/build/{p-05e44db5.entry.js → p-a3273e15.entry.js} +2 -2
- package/dist/build/p-a7bc0cf9.entry.js +2 -0
- package/dist/build/{p-78ecefd7.entry.js.map → p-a7bc0cf9.entry.js.map} +1 -1
- package/dist/build/p-a9ba2e62.entry.js +2 -0
- package/dist/{paperless/p-90981f81.entry.js.map → build/p-a9ba2e62.entry.js.map} +1 -1
- package/dist/build/{p-396a5eb9.entry.js → p-b176abc5.entry.js} +2 -2
- package/dist/build/{p-6e791181.entry.js → p-b8b570c4.entry.js} +2 -2
- package/dist/build/{p-4ab7f5c2.entry.js → p-b96f8d26.entry.js} +2 -2
- package/dist/build/{p-1032c052.entry.js → p-bea5329b.entry.js} +2 -2
- package/dist/build/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/build/p-card-container.entry.esm.js.map +1 -1
- package/dist/build/{p-1671db20.entry.js → p-cbd7870f.entry.js} +2 -2
- package/dist/build/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/build/p-d8c60f3c.entry.js +2 -0
- package/dist/{paperless/p-85402959.entry.js → build/p-ec9a178a.entry.js} +2 -2
- package/dist/build/p-edffb5d1.entry.js +2 -0
- package/dist/build/p-edffb5d1.entry.js.map +1 -0
- package/dist/{paperless/p-f0851d2d.entry.js → build/p-f13b147d.entry.js} +2 -2
- package/dist/{paperless/p-d4152f66.entry.js → build/p-fa78c45a.entry.js} +2 -2
- package/dist/build/p-fdb85aef.entry.js +2 -0
- package/dist/{paperless/p-991d0b21.entry.js.map → build/p-fdb85aef.entry.js.map} +1 -1
- package/dist/build/p-radio.entry.esm.js.map +1 -1
- package/dist/build/p-toggle.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +6 -6
- package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button.p-icon.p-loader.entry.cjs.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +6 -6
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +4 -4
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/p-checkbox_4.cjs.entry.js +14 -14
- package/dist/cjs/p-checkbox_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +3 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +4 -4
- package/dist/cjs/p-empty-state_8.cjs.entry.js +10 -10
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/p-helper_2.cjs.entry.js +3 -3
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination-pages-item.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination_3.cjs.entry.js +4 -4
- package/dist/cjs/p-radio.cjs.entry.js +5 -5
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/p-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/p-range.cjs.entry.js +2 -2
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +5 -5
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +4 -4
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toggle.entry.cjs.js.map +1 -1
- package/dist/collection/components/atoms/card/container/card-container.component.css +1 -1
- package/dist/collection/components/atoms/card/container/card-container.component.js +3 -3
- package/dist/collection/components/atoms/card/container/card-container.component.js.map +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +3 -3
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +3 -3
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +4 -4
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
- package/dist/collection/components/atoms/radio/radio.component.css +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +4 -4
- package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +6 -6
- package/dist/collection/components/molecules/button/button.component.css +1 -1
- package/dist/collection/components/molecules/button/button.component.js +5 -5
- package/dist/collection/components/molecules/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/range/range.component.js +2 -2
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-BhTjLQdF.js → p-ARBBg7l1.js} +8 -8
- package/dist/components/{p-BhTjLQdF.js.map → p-ARBBg7l1.js.map} +1 -1
- package/dist/components/{p-BWBwhUzi.js → p-B4inyr87.js} +6 -6
- package/dist/components/{p-BWBwhUzi.js.map → p-B4inyr87.js.map} +1 -1
- package/dist/components/{p-DMriM32U.js → p-B8Ai2EJn.js} +5 -5
- package/dist/components/{p-DMriM32U.js.map → p-B8Ai2EJn.js.map} +1 -1
- package/dist/components/{p-B4CTQ-9e.js → p-Bh008RYx.js} +4 -4
- package/dist/components/{p-B4CTQ-9e.js.map → p-Bh008RYx.js.map} +1 -1
- package/dist/components/{p-B28rxSbn.js → p-Blu0TY1E.js} +9 -9
- package/dist/components/{p-B28rxSbn.js.map → p-Blu0TY1E.js.map} +1 -1
- package/dist/components/{p-BBho7Zjn.js → p-BlwTel9F.js} +4 -4
- package/dist/components/{p-BBho7Zjn.js.map → p-BlwTel9F.js.map} +1 -1
- package/dist/components/{p-CoLZHANv.js → p-Bn6Arg73.js} +4 -4
- package/dist/components/{p-CoLZHANv.js.map → p-Bn6Arg73.js.map} +1 -1
- package/dist/components/{p-CP2h1oCK.js → p-Bs_mDdx4.js} +4 -4
- package/dist/components/{p-CP2h1oCK.js.map → p-Bs_mDdx4.js.map} +1 -1
- package/dist/components/{p-BFghMvAR.js → p-C3sIHSTA.js} +3 -3
- package/dist/components/{p-BFghMvAR.js.map → p-C3sIHSTA.js.map} +1 -1
- package/dist/components/{p-CK9srR2x.js → p-C4WDKcUV.js} +3 -3
- package/dist/components/{p-CK9srR2x.js.map → p-C4WDKcUV.js.map} +1 -1
- package/dist/components/{p-ByonmKJV.js → p-CCJc8g8_.js} +4 -4
- package/dist/components/{p-ByonmKJV.js.map → p-CCJc8g8_.js.map} +1 -1
- package/dist/components/{p-Dk8TzngH.js → p-CH64wrKS.js} +4 -4
- package/dist/components/{p-Dk8TzngH.js.map → p-CH64wrKS.js.map} +1 -1
- package/dist/components/{p-hwn7HhkK.js → p-CH8aHCfo.js} +13 -13
- package/dist/components/{p-hwn7HhkK.js.map → p-CH8aHCfo.js.map} +1 -1
- package/dist/components/{p-CrCyoKEh.js → p-CIlf0SJ-.js} +10 -10
- package/dist/components/{p-CrCyoKEh.js.map → p-CIlf0SJ-.js.map} +1 -1
- package/dist/components/{p-05D7qOIg.js → p-CK0zv8Hv.js} +4 -4
- package/dist/components/{p-05D7qOIg.js.map → p-CK0zv8Hv.js.map} +1 -1
- package/dist/components/{p-DTd14qQm.js → p-CSIFLNsS.js} +3 -3
- package/dist/components/{p-DTd14qQm.js.map → p-CSIFLNsS.js.map} +1 -1
- package/dist/components/{p-BcKK57hn.js → p-CSjAUB6T.js} +13 -13
- package/dist/components/{p-BcKK57hn.js.map → p-CSjAUB6T.js.map} +1 -1
- package/dist/components/{p-DQWXRiS6.js → p-CYnAmhHh.js} +4 -4
- package/dist/components/{p-DQWXRiS6.js.map → p-CYnAmhHh.js.map} +1 -1
- package/dist/components/{p-B40DmfaL.js → p-Cb7zGv2a.js} +4 -4
- package/dist/components/{p-B40DmfaL.js.map → p-Cb7zGv2a.js.map} +1 -1
- package/dist/components/p-CdPwzRXe.js +166 -0
- package/dist/components/p-CdPwzRXe.js.map +1 -0
- package/dist/components/{p-CQ1Po2qn.js → p-D30EqV3s.js} +3 -3
- package/dist/components/{p-CQ1Po2qn.js.map → p-D30EqV3s.js.map} +1 -1
- package/dist/components/{p-DDViK5Zv.js → p-D3_BwnG6.js} +4 -4
- package/dist/components/{p-DDViK5Zv.js.map → p-D3_BwnG6.js.map} +1 -1
- package/dist/components/{p-B4p3pMj1.js → p-D4vqPHEP.js} +3 -3
- package/dist/components/{p-B4p3pMj1.js.map → p-D4vqPHEP.js.map} +1 -1
- package/dist/components/{p-CymX517i.js → p-DCTZIgFT.js} +5 -5
- package/dist/components/{p-CymX517i.js.map → p-DCTZIgFT.js.map} +1 -1
- package/dist/components/{p-D9xXC35J.js → p-DD3i504O.js} +4 -4
- package/dist/components/{p-D9xXC35J.js.map → p-DD3i504O.js.map} +1 -1
- package/dist/components/{p-C3H31pam.js → p-DI407tdD.js} +4 -4
- package/dist/components/{p-C3H31pam.js.map → p-DI407tdD.js.map} +1 -1
- package/dist/components/{p-B45E7xnR.js → p-DIAX9-r9.js} +8 -8
- package/dist/components/{p-B45E7xnR.js.map → p-DIAX9-r9.js.map} +1 -1
- package/dist/components/{p-D9t79La9.js → p-DIUA732y.js} +6 -6
- package/dist/components/{p-D9t79La9.js.map → p-DIUA732y.js.map} +1 -1
- package/dist/components/{p-sl5N8aUX.js → p-DTmjAeM2.js} +6 -6
- package/dist/components/{p-sl5N8aUX.js.map → p-DTmjAeM2.js.map} +1 -1
- package/dist/components/{p-Dc8e00Zd.js → p-DUJkO2n3.js} +5 -5
- package/dist/components/{p-Dc8e00Zd.js.map → p-DUJkO2n3.js.map} +1 -1
- package/dist/components/{p-Divq0BdF.js → p-D_goLzIz.js} +3 -3
- package/dist/components/{p-Divq0BdF.js.map → p-D_goLzIz.js.map} +1 -1
- package/dist/components/{p-D8Mf5M6D.js → p-DcB4vo69.js} +3 -3
- package/dist/components/{p-D8Mf5M6D.js.map → p-DcB4vo69.js.map} +1 -1
- package/dist/components/{p-D3bGda3N.js → p-Ds64b3s1.js} +4 -4
- package/dist/components/{p-D3bGda3N.js.map → p-Ds64b3s1.js.map} +1 -1
- package/dist/components/{p-Dl2d_IWC.js → p-Fa6eP7ZQ.js} +5 -5
- package/dist/components/{p-Dl2d_IWC.js.map → p-Fa6eP7ZQ.js.map} +1 -1
- package/dist/components/{p-XuPLq1zd.js → p-PqgdU5A2.js} +5 -5
- package/dist/components/{p-XuPLq1zd.js.map → p-PqgdU5A2.js.map} +1 -1
- package/dist/components/{p-C_Uug2bi.js → p-TDGXG5Qi.js} +5 -5
- package/dist/components/{p-C_Uug2bi.js.map → p-TDGXG5Qi.js.map} +1 -1
- package/dist/components/p-accordion.js +3 -3
- package/dist/components/p-attachment.js +10 -10
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-container.js +4 -4
- package/dist/components/p-card-container.js.map +1 -1
- package/dist/components/p-card-header.js +2 -2
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +9 -9
- package/dist/components/p-divider.js +1 -1
- package/dist/components/p-drawer-body.js +1 -1
- package/dist/components/p-drawer-container.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +5 -5
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +3 -3
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +7 -7
- package/dist/components/p-navbar.js +2 -2
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +2 -2
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +3 -3
- package/dist/components/p-radio.js +5 -5
- package/dist/components/p-radio.js.map +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +10 -10
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +2 -2
- package/dist/components/{p-8qhZghDQ.js → p-t49-Fgzo.js} +5 -5
- package/dist/components/{p-8qhZghDQ.js.map → p-t49-Fgzo.js.map} +1 -1
- package/dist/components/p-tab-container.js +2 -2
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +25 -25
- package/dist/components/p-toast-container.js +2 -2
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +4 -4
- package/dist/components/p-toggle.js.map +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-DvfnrKnT.js → p-v_qRLJr8.js} +3 -3
- package/dist/components/{p-DvfnrKnT.js.map → p-v_qRLJr8.js.map} +1 -1
- package/dist/components/{p-BI9KWwWc.js → p-wXp3GFHo.js} +3 -3
- package/dist/components/{p-BI9KWwWc.js.map → p-wXp3GFHo.js.map} +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +6 -6
- package/dist/esm/p-badge_3.entry.js +3 -3
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button.p-icon.p-loader.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +6 -6
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +4 -4
- package/dist/esm/p-card-container.entry.js.map +1 -1
- package/dist/esm/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm/p-checkbox_4.entry.js +14 -14
- package/dist/esm/p-checkbox_4.entry.js.map +1 -1
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +1 -1
- package/dist/esm/p-divider.entry.js +3 -3
- package/dist/esm/p-drawer-body_3.entry.js +4 -4
- package/dist/esm/p-empty-state_8.entry.js +10 -10
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-floating-menu-item.entry.js +2 -2
- package/dist/esm/p-helper_2.entry.js +3 -3
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-listing-item.entry.js +1 -1
- package/dist/esm/p-listing-line.entry.js +1 -1
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body_4.entry.js +6 -6
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination-pages-item.entry.js +2 -2
- package/dist/esm/p-pagination_3.entry.js +4 -4
- package/dist/esm/p-radio.entry.js +5 -5
- package/dist/esm/p-radio.entry.js.map +1 -1
- package/dist/esm/p-range.entry.js +2 -2
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +5 -5
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +4 -4
- package/dist/esm/p-toggle.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-0b3af128.entry.js +2 -0
- package/dist/paperless/p-0b3af128.entry.js.map +1 -0
- package/dist/{build/p-b334b27d.entry.js → paperless/p-0ea3c0be.entry.js} +2 -2
- package/dist/{build/p-e74def55.entry.js → paperless/p-0fd02345.entry.js} +2 -2
- package/dist/paperless/p-13746ec7.entry.js +2 -0
- package/dist/paperless/{p-bf3a11a3.entry.js → p-1a551082.entry.js} +2 -2
- package/dist/{build/p-f866e7de.entry.js → paperless/p-1c9b0700.entry.js} +2 -2
- package/dist/{build/p-e3250b88.entry.js → paperless/p-1f45e45a.entry.js} +2 -2
- package/dist/paperless/p-20f5071b.entry.js +2 -0
- package/dist/{build/p-6527b461.entry.js → paperless/p-230365ba.entry.js} +2 -2
- package/dist/paperless/{p-586ca05c.entry.js → p-2366e61d.entry.js} +2 -2
- package/dist/paperless/{p-9686ab8f.entry.js → p-3e2d2587.entry.js} +2 -2
- package/dist/paperless/{p-9bb90aaf.entry.js → p-419077c3.entry.js} +2 -2
- package/dist/paperless/{p-ab9ad2c2.entry.js → p-4e7c1803.entry.js} +2 -2
- package/dist/paperless/p-50b3268f.entry.js +2 -0
- package/dist/{build/p-2b203c64.entry.js → paperless/p-542a718b.entry.js} +2 -2
- package/dist/paperless/{p-a8d11806.entry.js → p-6581ce9c.entry.js} +2 -2
- package/dist/paperless/{p-5ac2fea4.entry.js → p-78403aa3.entry.js} +2 -2
- package/dist/paperless/{p-60fc666c.entry.js → p-7f1f62c2.entry.js} +2 -2
- package/dist/paperless/{p-e7e7bc25.entry.js → p-805bad94.entry.js} +2 -2
- package/dist/paperless/{p-d4f556ea.entry.js → p-8325525f.entry.js} +2 -2
- package/dist/paperless/p-84979460.entry.js +2 -0
- package/dist/{build/p-ce7c429d.entry.js → paperless/p-8817fc5d.entry.js} +2 -2
- package/dist/paperless/p-8a116c31.entry.js +2 -0
- package/dist/paperless/p-8a116c31.entry.js.map +1 -0
- package/dist/paperless/p-93520e8e.entry.js +2 -0
- package/dist/paperless/p-93520e8e.entry.js.map +1 -0
- package/dist/paperless/{p-60d4f5b8.entry.js → p-982c05d5.entry.js} +2 -2
- package/dist/{build/p-80c3e999.entry.js → paperless/p-9ab2cb8d.entry.js} +2 -2
- package/dist/paperless/{p-05e44db5.entry.js → p-a3273e15.entry.js} +2 -2
- package/dist/paperless/p-a7bc0cf9.entry.js +2 -0
- package/dist/paperless/{p-78ecefd7.entry.js.map → p-a7bc0cf9.entry.js.map} +1 -1
- package/dist/paperless/p-a9ba2e62.entry.js +2 -0
- package/dist/{build/p-90981f81.entry.js.map → paperless/p-a9ba2e62.entry.js.map} +1 -1
- package/dist/paperless/{p-396a5eb9.entry.js → p-b176abc5.entry.js} +2 -2
- package/dist/paperless/{p-6e791181.entry.js → p-b8b570c4.entry.js} +2 -2
- package/dist/paperless/{p-4ab7f5c2.entry.js → p-b96f8d26.entry.js} +2 -2
- package/dist/paperless/{p-1032c052.entry.js → p-bea5329b.entry.js} +2 -2
- package/dist/paperless/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/paperless/p-card-container.entry.esm.js.map +1 -1
- package/dist/paperless/{p-1671db20.entry.js → p-cbd7870f.entry.js} +2 -2
- package/dist/paperless/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/paperless/p-d8c60f3c.entry.js +2 -0
- package/dist/{build/p-85402959.entry.js → paperless/p-ec9a178a.entry.js} +2 -2
- package/dist/paperless/p-edffb5d1.entry.js +2 -0
- package/dist/paperless/p-edffb5d1.entry.js.map +1 -0
- package/dist/{build/p-f0851d2d.entry.js → paperless/p-f13b147d.entry.js} +2 -2
- package/dist/{build/p-d4152f66.entry.js → paperless/p-fa78c45a.entry.js} +2 -2
- package/dist/paperless/p-fdb85aef.entry.js +2 -0
- package/dist/{build/p-991d0b21.entry.js.map → paperless/p-fdb85aef.entry.js.map} +1 -1
- package/dist/paperless/p-radio.entry.esm.js.map +1 -1
- package/dist/paperless/p-toggle.entry.esm.js.map +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/package.json +1 -1
- package/dist/build/p-0d80f713.entry.js +0 -2
- package/dist/build/p-0d80f713.entry.js.map +0 -1
- package/dist/build/p-30b71d45.entry.js +0 -2
- package/dist/build/p-4a420a81.entry.js +0 -2
- package/dist/build/p-78ecefd7.entry.js +0 -2
- package/dist/build/p-90981f81.entry.js +0 -2
- package/dist/build/p-955d3465.entry.js +0 -2
- package/dist/build/p-991d0b21.entry.js +0 -2
- package/dist/build/p-acdfcf17.entry.js +0 -2
- package/dist/build/p-d35b820d.entry.js +0 -2
- package/dist/build/p-d35b820d.entry.js.map +0 -1
- package/dist/build/p-da9bcf65.entry.js +0 -2
- package/dist/build/p-dc8b0ad9.entry.js +0 -2
- package/dist/build/p-dc8b0ad9.entry.js.map +0 -1
- package/dist/build/p-fcb0901e.entry.js +0 -2
- package/dist/build/p-fcb0901e.entry.js.map +0 -1
- package/dist/components/p-BppwDNy5.js +0 -166
- package/dist/components/p-BppwDNy5.js.map +0 -1
- package/dist/paperless/p-0d80f713.entry.js +0 -2
- package/dist/paperless/p-0d80f713.entry.js.map +0 -1
- package/dist/paperless/p-30b71d45.entry.js +0 -2
- package/dist/paperless/p-4a420a81.entry.js +0 -2
- package/dist/paperless/p-78ecefd7.entry.js +0 -2
- package/dist/paperless/p-90981f81.entry.js +0 -2
- package/dist/paperless/p-955d3465.entry.js +0 -2
- package/dist/paperless/p-991d0b21.entry.js +0 -2
- package/dist/paperless/p-acdfcf17.entry.js +0 -2
- package/dist/paperless/p-d35b820d.entry.js +0 -2
- package/dist/paperless/p-d35b820d.entry.js.map +0 -1
- package/dist/paperless/p-da9bcf65.entry.js +0 -2
- package/dist/paperless/p-dc8b0ad9.entry.js +0 -2
- package/dist/paperless/p-dc8b0ad9.entry.js.map +0 -1
- package/dist/paperless/p-fcb0901e.entry.js +0 -2
- package/dist/paperless/p-fcb0901e.entry.js.map +0 -1
- /package/dist/build/{p-b334b27d.entry.js.map → p-0ea3c0be.entry.js.map} +0 -0
- /package/dist/build/{p-e74def55.entry.js.map → p-0fd02345.entry.js.map} +0 -0
- /package/dist/build/{p-da9bcf65.entry.js.map → p-13746ec7.entry.js.map} +0 -0
- /package/dist/build/{p-bf3a11a3.entry.js.map → p-1a551082.entry.js.map} +0 -0
- /package/dist/build/{p-f866e7de.entry.js.map → p-1c9b0700.entry.js.map} +0 -0
- /package/dist/build/{p-e3250b88.entry.js.map → p-1f45e45a.entry.js.map} +0 -0
- /package/dist/build/{p-4a420a81.entry.js.map → p-20f5071b.entry.js.map} +0 -0
- /package/dist/build/{p-6527b461.entry.js.map → p-230365ba.entry.js.map} +0 -0
- /package/dist/build/{p-586ca05c.entry.js.map → p-2366e61d.entry.js.map} +0 -0
- /package/dist/build/{p-9686ab8f.entry.js.map → p-3e2d2587.entry.js.map} +0 -0
- /package/dist/build/{p-9bb90aaf.entry.js.map → p-419077c3.entry.js.map} +0 -0
- /package/dist/build/{p-ab9ad2c2.entry.js.map → p-4e7c1803.entry.js.map} +0 -0
- /package/dist/build/{p-955d3465.entry.js.map → p-50b3268f.entry.js.map} +0 -0
- /package/dist/build/{p-2b203c64.entry.js.map → p-542a718b.entry.js.map} +0 -0
- /package/dist/build/{p-a8d11806.entry.js.map → p-6581ce9c.entry.js.map} +0 -0
- /package/dist/build/{p-5ac2fea4.entry.js.map → p-78403aa3.entry.js.map} +0 -0
- /package/dist/build/{p-60fc666c.entry.js.map → p-7f1f62c2.entry.js.map} +0 -0
- /package/dist/build/{p-e7e7bc25.entry.js.map → p-805bad94.entry.js.map} +0 -0
- /package/dist/build/{p-d4f556ea.entry.js.map → p-8325525f.entry.js.map} +0 -0
- /package/dist/build/{p-acdfcf17.entry.js.map → p-84979460.entry.js.map} +0 -0
- /package/dist/build/{p-ce7c429d.entry.js.map → p-8817fc5d.entry.js.map} +0 -0
- /package/dist/build/{p-60d4f5b8.entry.js.map → p-982c05d5.entry.js.map} +0 -0
- /package/dist/build/{p-80c3e999.entry.js.map → p-9ab2cb8d.entry.js.map} +0 -0
- /package/dist/build/{p-05e44db5.entry.js.map → p-a3273e15.entry.js.map} +0 -0
- /package/dist/build/{p-396a5eb9.entry.js.map → p-b176abc5.entry.js.map} +0 -0
- /package/dist/build/{p-6e791181.entry.js.map → p-b8b570c4.entry.js.map} +0 -0
- /package/dist/build/{p-4ab7f5c2.entry.js.map → p-b96f8d26.entry.js.map} +0 -0
- /package/dist/build/{p-1032c052.entry.js.map → p-bea5329b.entry.js.map} +0 -0
- /package/dist/build/{p-1671db20.entry.js.map → p-cbd7870f.entry.js.map} +0 -0
- /package/dist/build/{p-30b71d45.entry.js.map → p-d8c60f3c.entry.js.map} +0 -0
- /package/dist/build/{p-85402959.entry.js.map → p-ec9a178a.entry.js.map} +0 -0
- /package/dist/build/{p-f0851d2d.entry.js.map → p-f13b147d.entry.js.map} +0 -0
- /package/dist/build/{p-d4152f66.entry.js.map → p-fa78c45a.entry.js.map} +0 -0
- /package/dist/paperless/{p-b334b27d.entry.js.map → p-0ea3c0be.entry.js.map} +0 -0
- /package/dist/paperless/{p-e74def55.entry.js.map → p-0fd02345.entry.js.map} +0 -0
- /package/dist/paperless/{p-da9bcf65.entry.js.map → p-13746ec7.entry.js.map} +0 -0
- /package/dist/paperless/{p-bf3a11a3.entry.js.map → p-1a551082.entry.js.map} +0 -0
- /package/dist/paperless/{p-f866e7de.entry.js.map → p-1c9b0700.entry.js.map} +0 -0
- /package/dist/paperless/{p-e3250b88.entry.js.map → p-1f45e45a.entry.js.map} +0 -0
- /package/dist/paperless/{p-4a420a81.entry.js.map → p-20f5071b.entry.js.map} +0 -0
- /package/dist/paperless/{p-6527b461.entry.js.map → p-230365ba.entry.js.map} +0 -0
- /package/dist/paperless/{p-586ca05c.entry.js.map → p-2366e61d.entry.js.map} +0 -0
- /package/dist/paperless/{p-9686ab8f.entry.js.map → p-3e2d2587.entry.js.map} +0 -0
- /package/dist/paperless/{p-9bb90aaf.entry.js.map → p-419077c3.entry.js.map} +0 -0
- /package/dist/paperless/{p-ab9ad2c2.entry.js.map → p-4e7c1803.entry.js.map} +0 -0
- /package/dist/paperless/{p-955d3465.entry.js.map → p-50b3268f.entry.js.map} +0 -0
- /package/dist/paperless/{p-2b203c64.entry.js.map → p-542a718b.entry.js.map} +0 -0
- /package/dist/paperless/{p-a8d11806.entry.js.map → p-6581ce9c.entry.js.map} +0 -0
- /package/dist/paperless/{p-5ac2fea4.entry.js.map → p-78403aa3.entry.js.map} +0 -0
- /package/dist/paperless/{p-60fc666c.entry.js.map → p-7f1f62c2.entry.js.map} +0 -0
- /package/dist/paperless/{p-e7e7bc25.entry.js.map → p-805bad94.entry.js.map} +0 -0
- /package/dist/paperless/{p-d4f556ea.entry.js.map → p-8325525f.entry.js.map} +0 -0
- /package/dist/paperless/{p-acdfcf17.entry.js.map → p-84979460.entry.js.map} +0 -0
- /package/dist/paperless/{p-ce7c429d.entry.js.map → p-8817fc5d.entry.js.map} +0 -0
- /package/dist/paperless/{p-60d4f5b8.entry.js.map → p-982c05d5.entry.js.map} +0 -0
- /package/dist/paperless/{p-80c3e999.entry.js.map → p-9ab2cb8d.entry.js.map} +0 -0
- /package/dist/paperless/{p-05e44db5.entry.js.map → p-a3273e15.entry.js.map} +0 -0
- /package/dist/paperless/{p-396a5eb9.entry.js.map → p-b176abc5.entry.js.map} +0 -0
- /package/dist/paperless/{p-6e791181.entry.js.map → p-b8b570c4.entry.js.map} +0 -0
- /package/dist/paperless/{p-4ab7f5c2.entry.js.map → p-b96f8d26.entry.js.map} +0 -0
- /package/dist/paperless/{p-1032c052.entry.js.map → p-bea5329b.entry.js.map} +0 -0
- /package/dist/paperless/{p-1671db20.entry.js.map → p-cbd7870f.entry.js.map} +0 -0
- /package/dist/paperless/{p-30b71d45.entry.js.map → p-d8c60f3c.entry.js.map} +0 -0
- /package/dist/paperless/{p-85402959.entry.js.map → p-ec9a178a.entry.js.map} +0 -0
- /package/dist/paperless/{p-f0851d2d.entry.js.map → p-f13b147d.entry.js.map} +0 -0
- /package/dist/paperless/{p-d4152f66.entry.js.map → p-fa78c45a.entry.js.map} +0 -0
|
@@ -93,21 +93,21 @@ export class Attachment {
|
|
|
93
93
|
_fileRef;
|
|
94
94
|
_cameraFileRef;
|
|
95
95
|
render() {
|
|
96
|
-
let prefix = (h("p-icon", { key: '
|
|
96
|
+
let prefix = (h("p-icon", { key: 'ef9f92c1b9421cdaee48b464685814be3d0991b1', class: 'text-storm-300', variant: 'attachment' }));
|
|
97
97
|
if (this.error) {
|
|
98
|
-
prefix = (h("p-icon", { key: '
|
|
98
|
+
prefix = (h("p-icon", { key: 'bb274a448f58d535b0bc6219e642b8cfadc40990', variant: 'warning', class: 'text-negative-red-500' }));
|
|
99
99
|
}
|
|
100
100
|
// const isMobileDevice = isMobile();
|
|
101
101
|
const isMobileDevice = isTablet();
|
|
102
102
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
103
|
-
return (h(Fragment, { key: '
|
|
103
|
+
return (h(Fragment, { key: '0dae99f1c48de12fdfba2968983799af9e0b754c' }, h("p-field-container", { key: '3e99a6b8a9866f3c60a116d2d642ee43af8335e3', variant: 'write', label: this.label, helper: this.helper, error: this.error, required: this.required, forceShowTooltip: !!this.error?.length }, h("div", { key: 'c61ae992d03dbf6d6daee456f98f0f6bfc9890f8', slot: 'content', class: 'flex w-full items-start gap-2' }, h("div", { key: '52cdb4acf0017bced4b438fffe3027a1087fb314', class: attachment({
|
|
104
104
|
click: this.mode === 'write' && !this.value?.length,
|
|
105
105
|
error: !!this.error?.length,
|
|
106
|
-
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '
|
|
106
|
+
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '4f1319740bb48888869a3f38b18d03a1eebfea2c', class: cn(baseText, 'peer empty:hidden') }, this.value), h("span", { key: '5bcf5788dfae682a5453e80c3f8a9d74815072cb', class: cn(baseText, 'hidden peer-empty:block') }, this.placeholder)), h("p-tooltip", { key: 'dc7f63beebb5972335d07daf641b0ce7f930986f', class: 'w-8', content: this.mode === 'read'
|
|
107
107
|
? this.downloadTooltip
|
|
108
108
|
: this.value?.length
|
|
109
109
|
? this.deleteTooltip
|
|
110
|
-
: this.uploadTooltip }, h("p-button", { key: '
|
|
110
|
+
: this.uploadTooltip }, h("p-button", { key: '5587300b92305a2d1e2f98da0d18cef2a8263b1f', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: this.mode === 'read'
|
|
111
111
|
? 'download'
|
|
112
112
|
: this.value?.length
|
|
113
113
|
? 'trash'
|
|
@@ -118,7 +118,7 @@ export class Attachment {
|
|
|
118
118
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
119
119
|
this.mode === 'write' &&
|
|
120
120
|
isMobileDevice &&
|
|
121
|
-
!this.value?.length && (h("p-tooltip", { key: '
|
|
121
|
+
!this.value?.length && (h("p-tooltip", { key: '1e3e3839c88e13e200d05a780e1d26acc6619025', content: this.cameraTooltip, class: 'w-8 desktop-xs:hidden' }, h("p-button", { key: '61e030a7e9e8168bf24dd1da25be13d34185c6f5', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: 'camera', onOnClick: () => this._cameraClick() }))))), h("input", { key: '3f6b962fc1c31ff37fdf7c73e632499c06a5b59a', class: 'hidden', type: 'file', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, ref: el => (this._fileRef = el), onChange: ev => this._onFileChange(ev) }), h("input", { key: '96d7b8fa5c9f50d071291a6fa3d8185c85574dae', class: 'hidden', type: 'file', accept: 'image/*', capture: 'true', ref: el => (this._cameraFileRef = el), onChange: ev => this._onFileChange(ev) })));
|
|
122
122
|
}
|
|
123
123
|
_uploadClick() {
|
|
124
124
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.static{position:static!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.w-8{width:2rem!important}.w-inherit{width:inherit!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.rounded-e-lg{border-end-end-radius:.5rem!important;border-start-end-radius:.5rem!important}.rounded-s-lg{border-end-start-radius:.5rem!important;border-start-start-radius:.5rem!important}.border{border-width:1px!important}.border-indigo-600{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity,1))!important}.border-storm-500\/20{border-color:rgba(24,30,41,.2)!important}.border-transparent{border-color:transparent!important}.bg-indigo-200{--tw-bg-opacity:1!important;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))!important}.bg-indigo-600{--tw-bg-opacity:1!important;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.leading-4{line-height:1rem!important}.text-indigo-300{--tw-text-opacity:1!important;color:rgb(187 209 253/var(--tw-text-opacity,1))!important}.text-indigo-500{--tw-text-opacity:1!important;color:rgb(142 179 251/var(--tw-text-opacity,1))!important}.text-indigo-700{--tw-text-opacity:1!important;color:rgb(47 111 240/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.text-storm-100{--tw-text-opacity:1!important;color:rgb(209 210 212/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.text-storm-500{--tw-text-opacity:1!important;color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.text-storm-500\/60{color:rgba(24,30,41,.6)!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.text-white\/60{color:hsla(0,0%,100%,.6)!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring-indigo-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.drop-shadow-1,.drop-shadow-primary-button{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-primary-button{--tw-drop-shadow:drop-shadow(0px 1px 1px 0px rgba(24,30 41,0.08))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@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}}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1!important;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))!important}.hover\:bg-white-600:hover{--tw-bg-opacity:1!important;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.hover\:text-indigo-800:hover{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.hover\:drop-shadow-1:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.hover\:drop-shadow-1:hover,.hover\:drop-shadow-2:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.hover\:drop-shadow-2:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))!important}.active\:border-indigo-600:active{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity,1))!important}.active\:border-storm-500\/10:active{border-color:rgba(24,30,41,.1)!important}.active\:text-indigo-800:active{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.active\:text-negative-red-800:active{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.active\:text-storm-500\/60:active{color:rgba(24,30,41,.6)!important}.active\:text-white\/60:active{color:hsla(0,0%,100%,.6)!important}.active\:ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\:ring-2:active,.active\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.active\:ring-2:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\:ring-indigo-100:active{--tw-ring-opacity:1!important;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))!important}.group:hover .group-hover\:text-indigo-700{--tw-text-opacity:1!important;color:rgb(47 111 240/var(--tw-text-opacity,1))!important}.group:hover .group-hover\:text-storm-500{--tw-text-opacity:1!important;color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.group:hover .group-hover\:text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.group:active .group-active\:text-indigo-800{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.group:active .group-active\:text-storm-500\/60{color:rgba(24,30,41,.6)!important}.group:active .group-active\:text-white\/60{color:hsla(0,0%,100%,.6)!important}
|
|
1
|
+
*{box-sizing:border-box}.static{position:static!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.w-8{width:2rem!important}.w-inherit{width:inherit!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.rounded-e-lg{border-end-end-radius:.5rem!important;border-start-end-radius:.5rem!important}.rounded-s-lg{border-end-start-radius:.5rem!important;border-start-start-radius:.5rem!important}.border{border-width:1px!important}.border-indigo-600{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity,1))!important}.border-negative-red-500{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-storm-500\/20{border-color:rgba(24,30,41,.2)!important}.border-transparent{border-color:transparent!important}.bg-indigo-200{--tw-bg-opacity:1!important;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))!important}.bg-indigo-600{--tw-bg-opacity:1!important;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.leading-4{line-height:1rem!important}.text-indigo-300{--tw-text-opacity:1!important;color:rgb(187 209 253/var(--tw-text-opacity,1))!important}.text-indigo-500{--tw-text-opacity:1!important;color:rgb(142 179 251/var(--tw-text-opacity,1))!important}.text-indigo-700{--tw-text-opacity:1!important;color:rgb(47 111 240/var(--tw-text-opacity,1))!important}.text-negative-red-500{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.text-storm-100{--tw-text-opacity:1!important;color:rgb(209 210 212/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.text-storm-500{--tw-text-opacity:1!important;color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.text-storm-500\/60{color:rgba(24,30,41,.6)!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.text-white\/60{color:hsla(0,0%,100%,.6)!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring-indigo-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.drop-shadow-1,.drop-shadow-primary-button{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-primary-button{--tw-drop-shadow:drop-shadow(0px 1px 1px 0px rgba(24,30 41,0.08))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@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}}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1!important;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))!important}.hover\:bg-white-600:hover{--tw-bg-opacity:1!important;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.hover\:text-indigo-800:hover{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.hover\:drop-shadow-1:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.hover\:drop-shadow-1:hover,.hover\:drop-shadow-2:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.hover\:drop-shadow-2:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))!important}.active\:border-indigo-600:active{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity,1))!important}.active\:border-storm-500\/10:active{border-color:rgba(24,30,41,.1)!important}.active\:text-indigo-800:active{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.active\:text-negative-red-800:active{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.active\:text-storm-500\/60:active{color:rgba(24,30,41,.6)!important}.active\:text-white\/60:active{color:hsla(0,0%,100%,.6)!important}.active\:ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\:ring-2:active,.active\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.active\:ring-2:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\:ring-indigo-100:active{--tw-ring-opacity:1!important;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))!important}.group:hover .group-hover\:text-indigo-700{--tw-text-opacity:1!important;color:rgb(47 111 240/var(--tw-text-opacity,1))!important}.group:hover .group-hover\:text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.group:hover .group-hover\:text-storm-500{--tw-text-opacity:1!important;color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.group:hover .group-hover\:text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.group:active .group-active\:text-indigo-800{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.group:active .group-active\:text-storm-500\/60{color:rgba(24,30,41,.6)!important}.group:active .group-active\:text-white\/60{color:hsla(0,0%,100%,.6)!important}
|
|
@@ -153,7 +153,7 @@ const button = cva([
|
|
|
153
153
|
{
|
|
154
154
|
variant: ['secondary', 'dropdown'],
|
|
155
155
|
error: true,
|
|
156
|
-
class: 'border border-negative-red-
|
|
156
|
+
class: 'border border-negative-red-500 text-negative-red-800 ring ring-2 ring-negative-red-50 active:text-negative-red-800',
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
variant: ['text', 'transparent'],
|
|
@@ -275,7 +275,7 @@ const icon = cva([], {
|
|
|
275
275
|
variant: ['secondary', 'dropdown'],
|
|
276
276
|
active: false,
|
|
277
277
|
error: true,
|
|
278
|
-
class: 'text-negative-red-
|
|
278
|
+
class: 'text-negative-red-500 group-hover:text-negative-red-800',
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
variant: ['secondary', 'dropdown'],
|
|
@@ -391,7 +391,7 @@ export class Button {
|
|
|
391
391
|
: 'button';
|
|
392
392
|
const hostClass = cn('p-button inline-block', this.class);
|
|
393
393
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
394
|
-
return (h(Host, { key: '
|
|
394
|
+
return (h(Host, { key: '2c93e8cdffee26715bd8960ebd62d3aa2a449145', class: hostClass }, h(VariableTag, { key: 'de3431ad362c507e5c8bfdd14fea0a6da965ab5b', disabled: asBoolean(this.disabled), href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
395
395
|
variant: this.variant,
|
|
396
396
|
size: this.size,
|
|
397
397
|
loading: asBoolean(this.loading),
|
|
@@ -400,14 +400,14 @@ export class Button {
|
|
|
400
400
|
iconOnly: asBoolean(this.iconOnly),
|
|
401
401
|
active,
|
|
402
402
|
error: asBoolean(this.error),
|
|
403
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '
|
|
403
|
+
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '369844e17d906be99864f4c5c75597606cd885e3', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
404
404
|
this.iconPosition === 'start' &&
|
|
405
405
|
!(this.iconOnly && this.loading) &&
|
|
406
406
|
this._getIcon(), this.label ? this.label : h("slot", null), this.icon &&
|
|
407
407
|
this.iconPosition === 'end' &&
|
|
408
408
|
!this.loading &&
|
|
409
409
|
!this.chevron &&
|
|
410
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '
|
|
410
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'eac0ca9ed5fad8cc19f9ef0f33bbde937808dfef', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '2a9c181dcd798a1f89556817b103c475bb5d1497', color: loaderColor }))));
|
|
411
411
|
}
|
|
412
412
|
handleClick(ev) {
|
|
413
413
|
if (this.loading || this.disabled) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/button/button.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,GACJ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,OAAO;IACP,yBAAyB;IACzB,kCAAkC;IAClC,gBAAgB;CAChB,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;YAC9C,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACX;QACD,KAAK,EAAE;YACN,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACX;QACD,OAAO,EAAE;YACR,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,IAAI;SACX;QACD,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,mBAAmB,CAAC;YACzB,IAAI,EAAE,CAAC,mBAAmB,CAAC;YAC3B,EAAE,EAAE,CAAC,sBAAsB,CAAC;SAC5B;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAA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AAI,CAAC;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;gBAClC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC9B,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;aAC5B,CAAC,EACF,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,CACF,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { asBoolean } from '../../../utils/as-boolean';\nimport { cn } from '../../../utils/cn';\n\nconst button = cva(\n\t[\n\t\t'group',\n\t\t'font-semibold leading-4',\n\t\t'flex items-center justify-center',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['border-storm-500/20', 'text-white'],\n\t\t\t\tsecondary: null,\n\t\t\t\ttext: null,\n\t\t\t\ttransparent: 'bg-transparent border-transparent',\n\t\t\t\tdropdown: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tloading: {\n\t\t\t\ttrue: 'cursor-wait',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tsm: ['text-xs h-6 gap-1'],\n\t\t\t\tbase: ['text-sm h-8 gap-2'],\n\t\t\t\tlg: ['text-base h-10 gap-2'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tbuttonGroupPosition: {\n\t\t\t\tnone: null,\n\t\t\t\tstart: null,\n\t\t\t\tcenter: null,\n\t\t\t\tend: null,\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\ttrue: 'justify-center',\n\t\t\t\tfalse: 'w-inherit py-1',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t// variants\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tclass: 'bg-white',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'none',\n\t\t\t\tclass: 'rounded-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'start',\n\t\t\t\tclass: 'rounded-s-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'end',\n\t\t\t\tclass: 'rounded-e-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-storm-500',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'bg-indigo-200',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-indigo-600',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'active:border-storm-500/10 active:ring active:ring-2 active:text-white/60',\n\t\t\t\t\t'drop-shadow-primary-button hover:drop-shadow-2 hover:bg-indigo-700 active:ring-indigo-100',\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring-indigo-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border bg-white-600 text-storm-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-storm-500',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass:\n\t\t\t\t\t'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:ring-indigo-100 active:text-storm-500/60',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'active:border-indigo-600 active:ring active:ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-indigo-600 ring ring-2 ring-indigo-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\terror: false,\n\t\t\t\tactive: false,\n\t\t\t\tclass: ['border-storm-500/20'],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\terror: true,\n\t\t\t\tclass:\n\t\t\t\t\t'border border-negative-red-500text-negative-red-800 ring ring-2 ring-negative-red-50 active:text-negative-red-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-indigo-700 hover:text-indigo-800',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-indigo-300',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:text-indigo-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: ['base', 'sm'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-3',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dropdown',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'text'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'py-1',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tsize: 'sm',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-6',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'base',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-8',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-10',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst icon = cva([], {\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: 'text-xs',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-base',\n\t\t},\n\t\tvariant: {\n\t\t\tprimary: null,\n\t\t\tsecondary: null,\n\t\t\ttext: null,\n\t\t\ttransparent: null,\n\t\t\tdropdown: null,\n\t\t},\n\t\tdisabled: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\terror: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'primary',\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'text-indigo-300 group-hover:text-white group-active:text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: 'primary',\n\t\t\tdisabled: false,\n\t\t\tactive: true,\n\t\t\tclass: 'text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'text-storm-300 group-hover:text-storm-500 group-active:text-storm-500/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: true,\n\t\t\terror: false,\n\t\t\tclass: 'text-storm-500/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['transparent', 'text'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\tclass:\n\t\t\t\t'text-indigo-500 group-hover:text-indigo-700 group-active:text-indigo-800',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tactive: false,\n\t\t\terror: true,\n\t\t\tclass: 'text-negative-red-500group-hover:text-negative-red-800',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tactive: true,\n\t\t\terror: true,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\nexport type ButtonVariant =\n\t| 'primary'\n\t| 'secondary'\n\t| 'transparent'\n\t| 'text'\n\t| 'dropdown';\n\n@Component({\n\ttag: 'p-button',\n\tstyleUrl: 'button.component.css',\n})\nexport class Button {\n\t/**\n\t * The label of the button (Can use slot)\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() as?: 'a' | 'button' = 'button';\n\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant?: ButtonVariant = 'primary';\n\n\t/**\n\t * Wether to force an active state\n\t */\n\t@Prop() active?: boolean = false;\n\n\t/**\n\t * Wether to show a error state\n\t */\n\t@Prop() error?: boolean = false;\n\n\t/**\n\t * Href in case of \"text\" version\n\t */\n\t@Prop() href?: string;\n\n\t/**\n\t * Target in case of \"text\" version\n\t */\n\t@Prop() target?: string;\n\n\t/**\n\t * The size of the button\n\t */\n\t@Prop() size?: 'sm' | 'base' | 'lg' = 'base';\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() type?: 'button' | 'submit' = 'button';\n\n\t/**\n\t * Wether to show a loader or not\n\t */\n\t@Prop() loading?: boolean = false;\n\n\t/**\n\t * Wether to show a chevron or not\n\t */\n\t@Prop() chevron?: boolean | 'up' | 'down' = false;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition?: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the button is disabled\n\t */\n\t@Prop() disabled?: boolean = false;\n\n\t/**\n\t * Icon to show on the button\n\t */\n\t@Prop() icon?: IconVariant;\n\n\t/**\n\t * Wether the button is icon only\n\t */\n\t@Prop() iconOnly?: boolean = false;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition?: 'start' | 'end' = 'start';\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip?: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate?: RotateOptions;\n\n\t/**\n\t * Wether the button should inherit text styles\n\t */\n\t@Prop() inheritText?: boolean = false;\n\n\t/**\n\t * Position of the button in the button group, mostly un-used if not in a group\n\t */\n\t@Prop() buttonGroupPosition?: 'start' | 'center' | 'end' | 'none' = 'none';\n\n\t/**\n\t * The class of the container passed by parent\n\t */\n\t@Prop() class?: string;\n\n\t/**\n\t * Button click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tonClick: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\tlet loaderColor: 'white' | 'off-white' | 'indigo' | 'storm' = 'white';\n\t\tswitch (this.variant) {\n\t\t\tcase 'secondary':\n\t\t\tcase 'dropdown':\n\t\t\tcase 'transparent':\n\t\t\t\tloaderColor = 'off-white';\n\t\t\t\tbreak;\n\t\t\tcase 'text':\n\t\t\t\tloaderColor = 'storm';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst VariableTag =\n\t\t\tthis.variant === 'text' || this.href?.length || this.as === 'a'\n\t\t\t\t? 'a'\n\t\t\t\t: 'button';\n\n\t\tconst hostClass = cn('p-button inline-block', this.class);\n\t\tconst active = asBoolean(this.active) || hostClass?.includes('active');\n\n\t\treturn (\n\t\t\t<Host class={hostClass}>\n\t\t\t\t<VariableTag\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttype={this.variant !== 'text' ? this.type : undefined}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tclass={button({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\tloading: asBoolean(this.loading),\n\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\tbuttonGroupPosition: this.buttonGroupPosition,\n\t\t\t\t\t\ticonOnly: asBoolean(this.iconOnly),\n\t\t\t\t\t\tactive,\n\t\t\t\t\t\terror: asBoolean(this.error),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.chevron && this.chevronPosition === 'start' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'start' &&\n\t\t\t\t\t\t!(this.iconOnly && this.loading) &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.label ? this.label : <slot />}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'end' &&\n\t\t\t\t\t\t!this.loading &&\n\t\t\t\t\t\t!this.chevron &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.chevron && !this.loading && this.chevronPosition === 'end' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.loading && <p-loader color={loaderColor} />}\n\t\t\t\t</VariableTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\thandleClick(ev: MouseEvent) {\n\t\tif (this.loading || this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.onClick.emit(ev);\n\t}\n\n\tprivate _getIcon() {\n\t\tif (!this.icon) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass={icon({\n\t\t\t\t\tsize: this.size,\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\terror: asBoolean(this.error),\n\t\t\t\t})}\n\t\t\t\tvariant={this.icon}\n\t\t\t\tflip={this.iconFlip}\n\t\t\t\trotate={this.iconRotate}\n\t\t\t/>\n\t\t);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/button/button.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,GACJ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,OAAO;IACP,yBAAyB;IACzB,kCAAkC;IAClC,gBAAgB;CAChB,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;YAC9C,SA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { asBoolean } from '../../../utils/as-boolean';\nimport { cn } from '../../../utils/cn';\n\nconst button = cva(\n\t[\n\t\t'group',\n\t\t'font-semibold leading-4',\n\t\t'flex items-center justify-center',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['border-storm-500/20', 'text-white'],\n\t\t\t\tsecondary: null,\n\t\t\t\ttext: null,\n\t\t\t\ttransparent: 'bg-transparent border-transparent',\n\t\t\t\tdropdown: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tloading: {\n\t\t\t\ttrue: 'cursor-wait',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tsm: ['text-xs h-6 gap-1'],\n\t\t\t\tbase: ['text-sm h-8 gap-2'],\n\t\t\t\tlg: ['text-base h-10 gap-2'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tbuttonGroupPosition: {\n\t\t\t\tnone: null,\n\t\t\t\tstart: null,\n\t\t\t\tcenter: null,\n\t\t\t\tend: null,\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\ttrue: 'justify-center',\n\t\t\t\tfalse: 'w-inherit py-1',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t// variants\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tclass: 'bg-white',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'none',\n\t\t\t\tclass: 'rounded-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'start',\n\t\t\t\tclass: 'rounded-s-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'end',\n\t\t\t\tclass: 'rounded-e-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-storm-500',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'bg-indigo-200',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-indigo-600',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'active:border-storm-500/10 active:ring active:ring-2 active:text-white/60',\n\t\t\t\t\t'drop-shadow-primary-button hover:drop-shadow-2 hover:bg-indigo-700 active:ring-indigo-100',\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring-indigo-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border bg-white-600 text-storm-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-storm-500',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass:\n\t\t\t\t\t'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:ring-indigo-100 active:text-storm-500/60',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'active:border-indigo-600 active:ring active:ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-indigo-600 ring ring-2 ring-indigo-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\terror: false,\n\t\t\t\tactive: false,\n\t\t\t\tclass: ['border-storm-500/20'],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\terror: true,\n\t\t\t\tclass:\n\t\t\t\t\t'border border-negative-red-500 text-negative-red-800 ring ring-2 ring-negative-red-50 active:text-negative-red-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-indigo-700 hover:text-indigo-800',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-indigo-300',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:text-indigo-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: ['base', 'sm'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-3',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dropdown',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'text'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'py-1',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tsize: 'sm',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-6',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'base',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-8',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-10',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst icon = cva([], {\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: 'text-xs',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-base',\n\t\t},\n\t\tvariant: {\n\t\t\tprimary: null,\n\t\t\tsecondary: null,\n\t\t\ttext: null,\n\t\t\ttransparent: null,\n\t\t\tdropdown: null,\n\t\t},\n\t\tdisabled: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\terror: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'primary',\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'text-indigo-300 group-hover:text-white group-active:text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: 'primary',\n\t\t\tdisabled: false,\n\t\t\tactive: true,\n\t\t\tclass: 'text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'text-storm-300 group-hover:text-storm-500 group-active:text-storm-500/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: true,\n\t\t\terror: false,\n\t\t\tclass: 'text-storm-500/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['transparent', 'text'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\tclass:\n\t\t\t\t'text-indigo-500 group-hover:text-indigo-700 group-active:text-indigo-800',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tactive: false,\n\t\t\terror: true,\n\t\t\tclass: 'text-negative-red-500 group-hover:text-negative-red-800',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tactive: true,\n\t\t\terror: true,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\nexport type ButtonVariant =\n\t| 'primary'\n\t| 'secondary'\n\t| 'transparent'\n\t| 'text'\n\t| 'dropdown';\n\n@Component({\n\ttag: 'p-button',\n\tstyleUrl: 'button.component.css',\n})\nexport class Button {\n\t/**\n\t * The label of the button (Can use slot)\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() as?: 'a' | 'button' = 'button';\n\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant?: ButtonVariant = 'primary';\n\n\t/**\n\t * Wether to force an active state\n\t */\n\t@Prop() active?: boolean = false;\n\n\t/**\n\t * Wether to show a error state\n\t */\n\t@Prop() error?: boolean = false;\n\n\t/**\n\t * Href in case of \"text\" version\n\t */\n\t@Prop() href?: string;\n\n\t/**\n\t * Target in case of \"text\" version\n\t */\n\t@Prop() target?: string;\n\n\t/**\n\t * The size of the button\n\t */\n\t@Prop() size?: 'sm' | 'base' | 'lg' = 'base';\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() type?: 'button' | 'submit' = 'button';\n\n\t/**\n\t * Wether to show a loader or not\n\t */\n\t@Prop() loading?: boolean = false;\n\n\t/**\n\t * Wether to show a chevron or not\n\t */\n\t@Prop() chevron?: boolean | 'up' | 'down' = false;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition?: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the button is disabled\n\t */\n\t@Prop() disabled?: boolean = false;\n\n\t/**\n\t * Icon to show on the button\n\t */\n\t@Prop() icon?: IconVariant;\n\n\t/**\n\t * Wether the button is icon only\n\t */\n\t@Prop() iconOnly?: boolean = false;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition?: 'start' | 'end' = 'start';\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip?: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate?: RotateOptions;\n\n\t/**\n\t * Wether the button should inherit text styles\n\t */\n\t@Prop() inheritText?: boolean = false;\n\n\t/**\n\t * Position of the button in the button group, mostly un-used if not in a group\n\t */\n\t@Prop() buttonGroupPosition?: 'start' | 'center' | 'end' | 'none' = 'none';\n\n\t/**\n\t * The class of the container passed by parent\n\t */\n\t@Prop() class?: string;\n\n\t/**\n\t * Button click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tonClick: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\tlet loaderColor: 'white' | 'off-white' | 'indigo' | 'storm' = 'white';\n\t\tswitch (this.variant) {\n\t\t\tcase 'secondary':\n\t\t\tcase 'dropdown':\n\t\t\tcase 'transparent':\n\t\t\t\tloaderColor = 'off-white';\n\t\t\t\tbreak;\n\t\t\tcase 'text':\n\t\t\t\tloaderColor = 'storm';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst VariableTag =\n\t\t\tthis.variant === 'text' || this.href?.length || this.as === 'a'\n\t\t\t\t? 'a'\n\t\t\t\t: 'button';\n\n\t\tconst hostClass = cn('p-button inline-block', this.class);\n\t\tconst active = asBoolean(this.active) || hostClass?.includes('active');\n\n\t\treturn (\n\t\t\t<Host class={hostClass}>\n\t\t\t\t<VariableTag\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttype={this.variant !== 'text' ? this.type : undefined}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tclass={button({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\tloading: asBoolean(this.loading),\n\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\tbuttonGroupPosition: this.buttonGroupPosition,\n\t\t\t\t\t\ticonOnly: asBoolean(this.iconOnly),\n\t\t\t\t\t\tactive,\n\t\t\t\t\t\terror: asBoolean(this.error),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.chevron && this.chevronPosition === 'start' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'start' &&\n\t\t\t\t\t\t!(this.iconOnly && this.loading) &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.label ? this.label : <slot />}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'end' &&\n\t\t\t\t\t\t!this.loading &&\n\t\t\t\t\t\t!this.chevron &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.chevron && !this.loading && this.chevronPosition === 'end' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.loading && <p-loader color={loaderColor} />}\n\t\t\t\t</VariableTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\thandleClick(ev: MouseEvent) {\n\t\tif (this.loading || this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.onClick.emit(ev);\n\t}\n\n\tprivate _getIcon() {\n\t\tif (!this.icon) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass={icon({\n\t\t\t\t\tsize: this.size,\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\terror: asBoolean(this.error),\n\t\t\t\t})}\n\t\t\t\tvariant={this.icon}\n\t\t\t\tflip={this.iconFlip}\n\t\t\t\trotate={this.iconRotate}\n\t\t\t/>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -12,7 +12,7 @@ export class ButtonGroup {
|
|
|
12
12
|
this._checkButtons();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '6849011685d17748cd4bf89366951a9849f64522', class: 'flex items-center' }, h("slot", { key: '8c2125dbcd5acdcfc50219ea973adb7ba34fc413' })));
|
|
16
16
|
}
|
|
17
17
|
slotchange() {
|
|
18
18
|
this._checkButtons();
|
|
@@ -175,7 +175,7 @@ export class Calendar {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
render() {
|
|
178
|
-
return (h("div", { key: '
|
|
178
|
+
return (h("div", { key: '12ce0e7112f58b941d4ac2a07bab2b789a9937a9', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
179
179
|
}
|
|
180
180
|
_checkTodayButton() {
|
|
181
181
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -47,9 +47,9 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'b9e349c61110dedeaa3e94a8c1683808b071c8ae', class: 'p-content-slider' }, h("div", { key: '77818e653b59c0167c062479eb17f4aa1b45f23c', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
51
51
|
height: `${this._outerHeight}px`,
|
|
52
|
-
}, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: '
|
|
52
|
+
}, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: 'a8fa7d20d93d3bbec00e630549d942b5bc8fbd36', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '67599e1078d4f63e31271a27feb31895cc34c441', onSlotchange: () => this._slotChange() }))), h("div", { key: '4d0d9c52dbcc4bc5139e447b7f625ac204b4fba8', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("div", { class: cn('block h-2 w-2 rounded-full', {
|
|
53
53
|
'bg-indigo-600': i === this._visibleIndex,
|
|
54
54
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
55
55
|
}) })))))));
|
|
@@ -36,7 +36,7 @@ export class Cropper {
|
|
|
36
36
|
}, 200);
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '73891600139dada5b090e2ce5ec0cd58a6304313', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: '9145012f667644418f424ce5b26fac90b811ce12', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: 'c34f7487ec31ef8d687cc533b332ddb900ccd277', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: 'c7a376a8b8d39735dd2fb1bf9253d442f9c25cd2', class: 'aspect-branding rounded-full', "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '0425f0a5bffc8c154a2e73891ca990b3835f7217', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '53c33637e98e98c05cceb4b1c796b5bcfacba2ad', action: 'move', plain: true }))), h("p-range", { key: '35bbdec7f1b54c49691c086cec05a0c6608365f5', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
40
40
|
}
|
|
41
41
|
_setImageRef(ref) {
|
|
42
42
|
if (this._imageRef) {
|
|
@@ -202,7 +202,7 @@ export class Datepicker {
|
|
|
202
202
|
this.parseValue(this.value);
|
|
203
203
|
}
|
|
204
204
|
render() {
|
|
205
|
-
return (h("p-dropdown", { key: '
|
|
205
|
+
return (h("p-dropdown", { key: '54a35d8bda73faf87404ee0b87f83300b5f305d8', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '021f621ef81f909333c98f267547fa71a2e87454', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: 'e7ee09df2d76b1d9655976d5d1aa263a2196f2e9', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '337118c7bacf3ecf92e52c312d607be2a4d83886', slot: 'items' }, h("p-calendar", { key: 'a6bbf68d3527d303eebfd71145310c7009cceb8f', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, enableToday: this.enableToday, todayText: this.todayText, mode: this.mode }))));
|
|
206
206
|
}
|
|
207
207
|
documentClickHandler({ target }) {
|
|
208
208
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -115,11 +115,11 @@ export class Dropdown {
|
|
|
115
115
|
this._checkItems();
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: '6da309650d75bc405bf08bff879ae2a99bc49118', class: 'relative' }, h("div", { key: 'dbc9d10a612d8af79516006c404d32a1d950ebea', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '2185a9119d34299ec4766126f97b12744c4cefda', name: 'trigger' })), h("div", { key: '90a256c8b8432d2154e0bdb818b0740a4fb0a641', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: 'de4317aca95820d31801c29694e1c39510385439', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: dropdownContainerClass({
|
|
119
119
|
strategy: this.strategy,
|
|
120
120
|
maxWidth: this.applyMaxWidth,
|
|
121
121
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
122
|
-
}), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: '
|
|
122
|
+
}), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: 'e210733f18c7794bbe012996a4402a24b5fd1735', name: 'items' })))));
|
|
123
123
|
}
|
|
124
124
|
_checkButtons(active = false) {
|
|
125
125
|
if (!this.applyChevron) {
|
|
@@ -58,11 +58,11 @@ export class EmptyState {
|
|
|
58
58
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
59
59
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
60
60
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
61
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: 'e253ccbae25a9827540b7a507226f6457fc392a0', class: emptyState({
|
|
62
62
|
enableAction: asBoolean(this.enableAction, true),
|
|
63
63
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
64
64
|
? this.action.emit(ev)
|
|
65
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
65
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '1719b632c75c7f33f0b9818691a2d45c9fd8de39', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-storm-500' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300' }, this.content))), this.enableAction &&
|
|
66
66
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "p-empty-state"; }
|
|
@@ -316,7 +316,7 @@ export class Field {
|
|
|
316
316
|
}
|
|
317
317
|
render() {
|
|
318
318
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
319
|
-
return (h("p-field-container", { key: '
|
|
319
|
+
return (h("p-field-container", { key: 'edf29e9fd23f168988fceb00accec076f90a3166', forceShowTooltip: this.forceShowTooltip || this._focused || !!this.error?.length, id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '952ba2a1dfd9bb57e65f3b992e54a521bb634048', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '345e234c0a3b8a08ecfb8ec968495fe573ce0ea4', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '3edf0e8d7a6f2a5d6fa23bea4779f7791eb394f6', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'f57448223003723d34f31834992d7e57ea1fa651', name: 'error', slot: 'error' })), h("div", { key: 'a83f383b6d9d3785899fad499399fc6517fc7fb5', class: field({
|
|
320
320
|
error: !!this.error?.length,
|
|
321
321
|
disabled: asBoolean(this.disabled),
|
|
322
322
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -327,7 +327,7 @@ export class Field {
|
|
|
327
327
|
? `${this.value}`
|
|
328
328
|
: undefined, slot: 'content' }, (this.error?.length ||
|
|
329
329
|
prefix ||
|
|
330
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
330
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '4162ebc0e667a4a4995ae8171cda44a268c67b18', class: prefixAndSuffix({
|
|
331
331
|
variant: this.variant,
|
|
332
332
|
error: !!this.error?.length,
|
|
333
333
|
disabled: asBoolean(this.disabled),
|
|
@@ -337,7 +337,7 @@ export class Field {
|
|
|
337
337
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
338
338
|
this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
339
339
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
340
|
-
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
340
|
+
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '8e74b26866c95479e7aefa2cf19a15166514e335', class: prefixAndSuffix({
|
|
341
341
|
variant: this.variant,
|
|
342
342
|
error: !!this.error?.length,
|
|
343
343
|
disabled: asBoolean(this.disabled),
|
|
@@ -53,14 +53,14 @@ export class Label {
|
|
|
53
53
|
*/
|
|
54
54
|
keepMobileContent = false;
|
|
55
55
|
render() {
|
|
56
|
-
return (h("div", { key: '
|
|
56
|
+
return (h("div", { key: 'd2e807018525657070d427e0abcd37fecadca6d1', class: label({
|
|
57
57
|
variant: this.variant,
|
|
58
58
|
iconOnly: this.iconOnly,
|
|
59
59
|
keepMobileContent: this.keepMobileContent,
|
|
60
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
60
|
+
}) }, this.icon && (h("p-icon", { key: '1f4fae69fcf5af6ee6e1b43b7dae6a2d75018744', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: '1afaf699ff7a08cc3373fd6fa7edcb62f5522cff', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
|
|
61
61
|
hidden: !this.keepMobileContent,
|
|
62
62
|
'desktop-xs:block': !this.keepMobileContent,
|
|
63
|
-
}) }, h("slot", { key: '
|
|
63
|
+
}) }, h("slot", { key: 'a07a3e60802525a6bd2ff80b769a7156f51990f1' })))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "p-label"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,10 +66,10 @@ export class NavigationItem {
|
|
|
66
66
|
render() {
|
|
67
67
|
const TagType = this.as;
|
|
68
68
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: 'eb6b10ba66dba8fac446fe04d32508364e88f48f', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: 'e3bddc31268778ff0047606b0d5a041344eacfcf', class: navigationItem({
|
|
70
70
|
icon: !!this.icon,
|
|
71
71
|
active,
|
|
72
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
72
|
+
}), href: this.href, target: this.target }, h("div", { key: '7a4847681f1b1891caa3516a7300bb67f86573f8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'd15ad1cdffa02057a0f54ffa294bcd464ff9ce59', variant: this.icon })), h("span", { key: '3f85e45d6a1de30cd9eb2a9d78ef07a55735e437', class: this.counter && 'has-counter' }, h("slot", { key: 'fd5979b6f1a79e972b26b59bd2cb09ff325a4bfa' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '942167259e3775c65702bf3caf3540632e6366d6' }, this.counter)), !!this.loading && h("p-loader", { key: '34e5a62bef8b27bd9796096749b63836f5fb802a', class: 'ml-auto' }))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "p-navigation-item"; }
|
|
75
75
|
static get originalStyleUrls() {
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -5,7 +5,7 @@ export class NavigationSection {
|
|
|
5
5
|
*/
|
|
6
6
|
header;
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b5fd5eb8c323213f8f4e8a35356e3f02dc5274bb', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '8ef7d0eae599dcedc193888175226be9776cf5f6' }, this.header)), h("div", { key: '08fcb13e77b81da664133a11fa92833095e2c4ff', class: 'flex flex-col' }, h("slot", { key: 'f23a88ffd3b1a9c7c9811433f211b3f74c98baa2' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-navigation-section"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -39,7 +39,7 @@ export class PaginationPages {
|
|
|
39
39
|
this._generate();
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: 'd57a07032260d58bac44e4107a29d9e1935925c8', class: pagination({
|
|
43
43
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
44
44
|
}) }, this._set?.map(p => {
|
|
45
45
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -59,12 +59,12 @@ export class Pagination {
|
|
|
59
59
|
_hasPaginationPages = true;
|
|
60
60
|
render() {
|
|
61
61
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: '1d6fa4eee108d6fb429fbd222880278e504fe5bd', class: pagination({
|
|
63
63
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
64
64
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
65
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
65
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '6e6bcd8f70f0ab34b8373c4b7664061bd6b04e59' }, h("p-pagination-size", { key: '5c56ec9b539bde62cdaac2524713f2c7c1eb1254', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
66
66
|
this.hideOnSinglePage &&
|
|
67
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
67
|
+
this._hasPaginationPages && (h("p-divider", { key: '5d088202768ee9b0c14cedd97c75d06aa75b9f60', variant: 'vertical', class: 'mx-0 h-4 text-off-white-700' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '6c6a67c1f6e46d1cd2c56efad2ba6e5cab36cefd', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
68
68
|
this._hasPaginationPages = detail > 1;
|
|
69
69
|
this.pagesChange.emit(detail);
|
|
70
70
|
} }))));
|
|
@@ -22,9 +22,9 @@ export class Range {
|
|
|
22
22
|
valueChange;
|
|
23
23
|
render() {
|
|
24
24
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'd752a36ccbbd0f58e037efd7930f1383e990fdf1', class: 'flex w-inherit items-center gap-2 text-storm-300' }, h("p-icon", { key: '073a9283d49be1186521f2523ef34951d661e639', variant: 'minus' }), h("div", { key: 'ad06185fd986cbd65e12158ffba7be707a5f1dcb', class: 'relative h-6 flex-1' }, h("input", { key: '4077fb3587f98508dea3d0447d2ac965c7bcdcf8', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => this.valueChange.emit(ev.target.value) }), h("div", { key: '6c7e786746ba2feec543d2aa53bdc67afd2cfc6e', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-indigo-600', style: {
|
|
26
26
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
27
|
-
} })), h("p-icon", { key: '
|
|
27
|
+
} })), h("p-icon", { key: '74abe8e6c7bd8c75fa6813d0b02df8a589b3f0e3', variant: 'plus' })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "p-range"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -305,7 +305,7 @@ export class Select {
|
|
|
305
305
|
if (this.error?.length) {
|
|
306
306
|
buttonIcon = 'warning';
|
|
307
307
|
}
|
|
308
|
-
return (h("p-field-container", { key: '
|
|
308
|
+
return (h("p-field-container", { key: 'ade8bf1d8ba4064793820482327dff8906a35eb3', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, showOptional: this.showOptional, error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown }, h("p-dropdown", { key: '015b145c15f659b318af58f193ffea092f4557ce', applyFullWidth: true, applyMaxWidth: false, slot: 'content', insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), strategy: this.strategy }, h("p-button", { key: 'c07fe8d349a7bbbc8b33dcdd14b2231b5d4595d9', slot: 'trigger', class: 'w-full', variant: 'secondary', size: this.size, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, disabled: this.disabled, active: this._showDropdown, error: !!this.error?.length, icon: buttonIcon, onClick: ev => this._onClick(ev) }, h("div", { key: '83f16d864b540b3ae9cf59c17b2159a3d965b777', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
|
|
309
309
|
}
|
|
310
310
|
documentClickHandler(event) {
|
|
311
311
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -107,7 +107,7 @@ export class TableCell {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '437ab7bb8fcf49589162f78716e35b8cc4e9db7c', class: this._getColumnClasses() }, this.checkbox, this._getContent()));
|
|
111
111
|
}
|
|
112
112
|
_getContent() {
|
|
113
113
|
if (this.variant === 'loading') {
|
|
@@ -91,11 +91,11 @@ export class TableFooter {
|
|
|
91
91
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 100);
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: 'fb6580374d0dcdc950a169e0ceba8273e831cbe5', class: footer({
|
|
95
95
|
pinned: this._isPinned,
|
|
96
96
|
hidden: this._hidden,
|
|
97
97
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
98
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
98
|
+
this.total > 0 && (h("p-pagination", { key: '4f03e1e1a784bc6e20cf26c9403331ea28f80583', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total, onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) }))));
|
|
99
99
|
}
|
|
100
100
|
_changePageSize(s) {
|
|
101
101
|
if (!s) {
|
|
@@ -76,13 +76,13 @@ export class TableRow {
|
|
|
76
76
|
*/
|
|
77
77
|
isLast = false;
|
|
78
78
|
render() {
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '75fbf56b747248064a8e26c033519e1d69262bb9', class: 'flex flex-col' }, h("div", { key: '75570ddee613e585cb01e0c2c1b4038a54bbc6a7', class: row({
|
|
80
80
|
variant: this.variant,
|
|
81
81
|
enableHover: this.enableHover,
|
|
82
82
|
checked: this.checked,
|
|
83
|
-
}) }, h("div", { key: '
|
|
83
|
+
}) }, h("div", { key: '8c91b99838270bda5e51b646a78c40617715507a', class: content({
|
|
84
84
|
variant: this.variant,
|
|
85
|
-
}) }, h("slot", { key: '
|
|
85
|
+
}) }, h("slot", { key: '9c0cbe5be28dd17f95e39aad48ab98fc3439bd87' }), h("div", { key: '28f1a34812f4aa406a317f7fc24b8e52219fceb4', class: actions() }, h("slot", { key: 'd8dc24127cca3f4684294648c628bf33b1405821', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: 'b916221d7a8f65b8fb940051f8ee206dda562919' }))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "p-table-row"; }
|
|
88
88
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class Toast {
|
|
|
48
48
|
*/
|
|
49
49
|
action;
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: '85632e290cceb8e44c1d846a542b4be4ae710b52', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2', onClick: () => this._onClick() }, h("div", { key: '976492254a92d129114b39cc715a7ba4d284fb90', class: indicator({ variant: this.variant }) }), h("div", { key: '9eb4d859239ea6adead3ab1afdec23653643211c', class: content() }, h("div", { key: 'baae5161ccc1bd0f455b23dbf1388787cc32e4b0', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '3dc2c0e3c03ab3c037031dae236cdbeaa754eb6b', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '8f54e9d6f8c8cc59278e943676cc2396e3ea79ca', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: '27583758fc5639866d3195d9d2b1eacaa7111401', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500' }, h("p-icon", { key: '0916610b404ea9ce90d61ec203bcbbff43e01761', variant: this.actionIcon, flip: this.actionIconFlip, rotate: this.actionIconRotate }))))));
|
|
52
52
|
}
|
|
53
53
|
_onClick() {
|
|
54
54
|
if (this.enableAction) {
|
|
@@ -18,10 +18,10 @@ export class Listing {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '756a9669e83dcea5fd61cbfa8cead90e6c13d030', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
22
22
|
'opacity-100': this._generatedOnce,
|
|
23
23
|
'opacity-0': !this._generatedOnce,
|
|
24
|
-
}) }, h("slot", { key: '
|
|
24
|
+
}) }, h("slot", { key: '24ebcbc78316d665ee8b93d66eed96c810cc2e82', onSlotchange: () => this._generateLinesOnce() })));
|
|
25
25
|
}
|
|
26
26
|
_generateLinesOnce() {
|
|
27
27
|
if (this._generateTimeout) {
|