@paperless/core 2.22.0-alpha.23 → 2.22.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/index.esm.js +1 -1
- package/dist/build/p-0305046c.entry.js +1 -0
- package/dist/build/{p-993bf657.entry.js → p-0898e57b.entry.js} +1 -1
- package/dist/build/p-099a4c60.entry.js +1 -0
- package/dist/build/{p-4fde72a3.entry.js → p-0c094c99.entry.js} +1 -1
- package/dist/build/{p-3cea628d.entry.js → p-0eb7a6e4.entry.js} +1 -1
- package/dist/build/p-14a2caa3.entry.js +1 -0
- package/dist/build/{p-425a3a05.entry.js → p-1ce28114.entry.js} +1 -1
- package/dist/build/p-2509308d.entry.js +1 -0
- package/dist/build/p-389f92f8.entry.js +1 -0
- package/dist/{paperless/p-79fe6a2f.entry.js → build/p-400ae3ad.entry.js} +1 -1
- package/dist/{paperless/p-6ff7e89b.entry.js → build/p-4793863e.entry.js} +1 -1
- package/dist/build/{p-d36ebc95.entry.js → p-4ad6dd58.entry.js} +1 -1
- package/dist/build/p-4d456377.entry.js +1 -0
- package/dist/build/{p-4dfa0a37.entry.js → p-4f068009.entry.js} +1 -1
- package/dist/build/p-6115ce1e.js +1 -0
- package/dist/{paperless/p-6577db68.entry.js → build/p-62c4c7d7.entry.js} +1 -1
- package/dist/build/p-6ff8d21c.entry.js +1 -0
- package/dist/build/{p-e8729580.entry.js → p-7ae963de.entry.js} +1 -1
- package/dist/build/p-846f47bd.entry.js +1 -0
- package/dist/build/{p-3430af7f.entry.js → p-870a63fb.entry.js} +1 -1
- package/dist/build/p-8bd7c93a.entry.js +1 -0
- package/dist/{paperless/p-e9582485.entry.js → build/p-8d0c1f36.entry.js} +1 -1
- package/dist/build/{p-c0cec615.entry.js → p-8ed529ba.entry.js} +1 -1
- package/dist/build/{p-530d8958.entry.js → p-92bbdecc.entry.js} +1 -1
- package/dist/build/{p-62555ccd.entry.js → p-93bbde98.entry.js} +1 -1
- package/dist/build/p-958c8a2c.entry.js +1 -0
- package/dist/build/{p-71e02082.entry.js → p-9a49375d.entry.js} +1 -1
- package/dist/build/{p-CrdJDtHg.js → p-CLLU0oUD.js} +1 -1
- package/dist/build/p-CWO2YJCh.js +1 -0
- package/dist/build/p-CXVK8SLW.js +1 -0
- package/dist/build/p-CwQG70_4.js +1 -0
- package/dist/build/{p-BTx_Jfhh.js → p-DE-sstf_.js} +1 -1
- package/dist/build/p-DPc49L2n.js +1 -0
- package/dist/build/p-DzdX_Z5B.js +1 -0
- package/dist/build/p-V194S7Dm.js +1 -0
- package/dist/{paperless/p-cd525c37.entry.js → build/p-a23a90d6.entry.js} +1 -1
- package/dist/build/{p-3c806e0f.entry.js → p-a4109895.entry.js} +1 -1
- package/dist/build/p-ad468b70.entry.js +1 -0
- package/dist/build/p-af320255.entry.js +1 -0
- package/dist/build/p-b2248597.entry.js +1 -0
- package/dist/{paperless/p-abda244c.entry.js → build/p-b37d0053.entry.js} +1 -1
- package/dist/{paperless/p-f0165e95.entry.js → build/p-bfb06294.entry.js} +1 -1
- package/dist/{paperless/p-5d60b2c6.entry.js → build/p-c7835f10.entry.js} +1 -1
- package/dist/build/{p-1c6969ee.entry.js → p-cfe81f27.entry.js} +1 -1
- package/dist/build/p-d0d0a314.entry.js +1 -0
- package/dist/build/p-d38642c4.entry.js +1 -0
- package/dist/build/p-e30abf73.entry.js +1 -0
- package/dist/build/{p-cacd9fe0.entry.js → p-e6222abf.entry.js} +1 -1
- package/dist/build/p-e9d2bdd6.entry.js +1 -0
- package/dist/build/p-f1f160c0.entry.js +1 -0
- package/dist/build/{p-1e7e0082.entry.js → p-f3daeb8f.entry.js} +1 -1
- package/dist/build/{p-4cd0eb6f.entry.js → p-f8d8d142.entry.js} +1 -1
- package/dist/build/p-f9c9004b.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{child-of-CdM-uMiH.js → child-of-CvEcBEYZ.js} +1 -3
- package/dist/cjs/index-CEv7WAQX.js +0 -4
- package/dist/cjs/index.cjs.js +487 -492
- package/dist/cjs/is-mobile-browser-CscfWENw.js +17 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-CGd_fklS.js → localization-CTvpcGDo.js} +15 -20
- package/dist/cjs/object-get-by-path-CxU4WbZu.js +14 -0
- package/dist/cjs/p-accordion.cjs.entry.js +4 -4
- package/dist/cjs/p-attachment.cjs.entry.js +8 -8
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +5 -5
- package/dist/cjs/p-badge_3.cjs.entry.js +7 -7
- package/dist/cjs/p-button-group.cjs.entry.js +4 -2
- package/dist/cjs/p-button_3.cjs.entry.js +12 -10
- package/dist/cjs/p-calendar.cjs.entry.js +16 -16
- package/dist/cjs/p-card-body.cjs.entry.js +3 -3
- package/dist/cjs/p-card-container.cjs.entry.js +4 -4
- package/dist/cjs/p-card-header.cjs.entry.js +5 -5
- package/dist/cjs/p-checkbox_3.cjs.entry.js +30 -30
- package/dist/cjs/p-content-slider.cjs.entry.js +7 -7
- package/dist/cjs/p-cropper.cjs.entry.js +3 -2802
- package/dist/cjs/p-datepicker.cjs.entry.js +7 -7
- package/dist/cjs/p-divider.cjs.entry.js +4 -4
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +6 -6
- package/dist/cjs/p-drawer.cjs.entry.js +4 -6
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +8 -8
- package/dist/cjs/p-empty-state_8.cjs.entry.js +57 -58
- package/dist/cjs/p-field_3.cjs.entry.js +16 -16
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/p-iban-icon.cjs.entry.js +16 -8
- package/dist/cjs/p-illustration.cjs.entry.js +19 -19
- package/dist/cjs/p-info-panel.cjs.entry.js +4 -4
- package/dist/cjs/p-label.cjs.entry.js +5 -5
- package/dist/cjs/p-listing-item.cjs.entry.js +3 -3
- package/dist/cjs/p-listing-line.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body_4.cjs.entry.js +8 -8
- package/dist/cjs/p-navbar.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/p-navigation-section.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-title.cjs.entry.js +3 -3
- package/dist/cjs/p-pagination_3.cjs.entry.js +23 -23
- package/dist/cjs/p-profile.cjs.entry.js +3 -3
- package/dist/cjs/p-radio.cjs.entry.js +6 -6
- package/dist/cjs/p-range.cjs.entry.js +6 -6
- package/dist/cjs/p-select.cjs.entry.js +13 -13
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +7 -7
- package/dist/cjs/p-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/p-table-extra-header.cjs.entry.js +2 -2
- package/dist/cjs/p-table.cjs.entry.js +20 -25
- package/dist/cjs/p-toast.cjs.entry.js +3 -3
- package/dist/cjs/p-toggle.cjs.entry.js +7 -7
- package/dist/cjs/p-tooltip.cjs.entry.js +11 -11
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/{screens-h1MTJhCu.js → screens-AithmFZ8.js} +3 -5
- package/dist/cjs/{state-D7r6WlSp.js → state-C0PIGTfM.js} +6 -4
- package/dist/cjs/{table-helpers-DlLLYa6C.js → table-helpers-CWMTGgj6.js} +3 -2
- package/dist/cjs/themed-host.component-3UWKsF6_.js +8 -0
- package/dist/collection/collection-manifest.json +2 -3
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +4 -4
- package/dist/collection/components/atoms/badge/badge.component.js +1 -1
- package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
- package/dist/collection/components/atoms/card/container/card-container.component.js +3 -3
- package/dist/collection/components/atoms/card/header/card-header.component.js +8 -8
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +5 -6
- package/dist/collection/components/atoms/divider/divider.component.js +2 -2
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +3 -3
- 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 +4 -4
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +7 -7
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +6 -6
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +16 -8
- package/dist/collection/components/atoms/icon/icon.component.js +9 -7
- package/dist/collection/components/atoms/illustration/illustration.component.js +7 -6
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +2 -2
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/collection/components/atoms/radio/radio.component.js +4 -5
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +8 -8
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +5 -5
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +5 -6
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +9 -9
- package/dist/collection/components/helpers/table/extra-header/table-extra-header.component.js +7 -7
- package/dist/collection/components/helpers/table/row-action/table-row-action.component.js +4 -4
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
- package/dist/collection/components/molecules/button/button.component.js +12 -10
- package/dist/collection/components/molecules/button-group/button-group.component.js +4 -2
- package/dist/collection/components/molecules/calendar/calendar.component.js +19 -19
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +7 -7
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +7 -11
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +20 -20
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +9 -9
- package/dist/collection/components/molecules/field/container/field-container.component.js +9 -9
- package/dist/collection/components/molecules/field/field/field.component.js +8 -8
- package/dist/collection/components/molecules/label/label.component.js +8 -8
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +5 -5
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +12 -12
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +4 -4
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +4 -4
- package/dist/collection/components/molecules/select/select.component.js +15 -15
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +4 -4
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +4 -4
- package/dist/collection/components/molecules/table/header/table-header.component.js +9 -10
- package/dist/collection/components/molecules/table/row/table-row.component.js +35 -35
- package/dist/collection/components/molecules/toast/toast.component.js +5 -5
- package/dist/collection/components/organisms/drawer/drawer.component.js +5 -7
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +19 -24
- package/dist/collection/internal/themed-host.component.js +1 -3
- package/dist/collection/state.js +6 -4
- package/dist/collection/tailwind/paperless.js +5 -10
- package/dist/collection/tailwind/plugins/safe-area.js +0 -1
- package/dist/collection/tailwind.config.js +3 -1
- package/dist/collection/types/icon.js +1 -0
- package/dist/collection/types/illustration.js +1 -0
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/utils/child-of.js +1 -3
- package/dist/collection/utils/icons.js +10 -10
- package/dist/collection/utils/illustrations.js +1 -1
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/is-mobile-browser.js +2 -2
- package/dist/collection/utils/localization.js +15 -20
- package/dist/collection/utils/object-get-by-path.js +6 -4
- package/dist/collection/utils/screens.js +3 -5
- package/dist/collection/utils/table-helpers.js +3 -2
- package/dist/collection/utils/transformers.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/components/{p-VB7-md3X.js → p-7Qldd8fE.js} +1 -1
- package/dist/components/{p-CGIxjWp3.js → p-B1MbDi-e.js} +1 -1
- package/dist/components/{p-CdqwGmBG.js → p-BB7bmhRo.js} +1 -1
- package/dist/components/{p-BMwwV9jr.js → p-BDDlblTI.js} +1 -1
- package/dist/components/{p-BFYtk_D9.js → p-BQIf6SbI.js} +1 -1
- package/dist/components/p-BdmdNQNa.js +1 -0
- package/dist/components/{p-C0Y1bbVV.js → p-BhnSWAm_.js} +1 -1
- package/dist/components/{p-CwBpWOfF.js → p-BnyCseIX.js} +1 -1
- package/dist/components/{p-DnnmD9wl.js → p-BpnNRSNN.js} +1 -1
- package/dist/components/{p-DcAa0Z0x.js → p-BtLNLU5M.js} +1 -1
- package/dist/components/{p-C1lLexO_.js → p-Bte1XwqA.js} +1 -1
- package/dist/components/p-BtiXtaPx.js +1 -0
- package/dist/components/{p-Ci6dVRRb.js → p-Bylx-B13.js} +1 -1
- package/dist/components/{p-pS_1w6j6.js → p-Bzccvp_O.js} +1 -1
- package/dist/components/p-C8Vq1N_0.js +1 -0
- package/dist/components/{p-zV8KNDcw.js → p-C9Qej_kA.js} +1 -1
- package/dist/components/p-CEFaN18s.js +1 -0
- package/dist/components/{p-BkR7Q669.js → p-CJKObZ8L.js} +1 -1
- package/dist/components/{p-BQuFRI__.js → p-CLXB3_-L.js} +1 -1
- package/dist/components/{p-BiHXM334.js → p-CUmhErgX.js} +1 -1
- package/dist/components/p-CUqoOemU.js +1 -0
- package/dist/components/p-CWO2YJCh.js +1 -0
- package/dist/components/{p-CXK3XHq7.js → p-CX1ewbW4.js} +1 -1
- package/dist/components/p-CXVK8SLW.js +1 -0
- package/dist/components/{p-DwDkE9Up.js → p-CZlpdpMV.js} +1 -1
- package/dist/components/{p-Cc0qt21M.js → p-C_DONK31.js} +1 -1
- package/dist/components/{p-CNQlxazX.js → p-CdNBlyaj.js} +1 -1
- package/dist/components/{p-CbJigQSa.js → p-ChrB-4co.js} +1 -1
- package/dist/components/{p-DfOFSSQu.js → p-Cop5m_ZM.js} +1 -1
- package/dist/components/p-Cq9Ck17A.js +1 -0
- package/dist/components/{p-BDfmyF39.js → p-Ctox8Lg6.js} +1 -1
- package/dist/components/p-CwQG70_4.js +1 -0
- package/dist/components/p-D25uRUSS.js +1 -0
- package/dist/components/{p-RQ8cBtrk.js → p-D29Sbsl9.js} +1 -1
- package/dist/components/p-D5wfsq08.js +1 -0
- package/dist/components/p-DAKk3DP1.js +1 -0
- package/dist/components/{p-jsBSoPbc.js → p-DAb-3URQ.js} +1 -1
- package/dist/components/p-DPc49L2n.js +1 -0
- package/dist/components/{p-CaAUGmrL.js → p-DfnFrfyL.js} +1 -1
- package/dist/components/p-DmzXDHw8.js +1 -0
- package/dist/components/{p-B9FBrSMo.js → p-Dolot2T0.js} +1 -1
- package/dist/components/p-Dp60j03z.js +1 -0
- package/dist/components/{p-Cokzwe6N.js → p-Dw6QWvDh.js} +1 -1
- package/dist/components/{p-DrTCtmBD.js → p-I0RMpdxn.js} +1 -1
- package/dist/components/p-LNjvz3Yz.js +1 -0
- package/dist/components/p-YBYXO3s0.js +1 -0
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/p-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- 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-body.js +1 -1
- package/dist/components/p-card-container.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +1 -3
- package/dist/components/p-datepicker.js +1 -1
- 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 +1 -1
- 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-_WkhyO8Y.js → p-f2XeK6vS.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-icon.js +1 -1
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/{p-D7xFC2oe.js → p-jz4pgX_D.js} +1 -1
- package/dist/components/p-label.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 +1 -1
- package/dist/components/p-loader.js +1 -1
- 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 +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- 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 +1 -1
- package/dist/components/p-radio.js +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 +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 +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.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 +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-BlbZgM1V.js → p-u1RuzYH-.js} +1 -1
- package/dist/components/p-xlO2hePk.js +1 -0
- package/dist/esm/{child-of-BFSNj6hu.js → child-of-TyZ7uPES.js} +1 -3
- package/dist/esm/index-PW1zQoNr.js +0 -4
- package/dist/esm/index.js +488 -493
- package/dist/esm/is-mobile-browser-DPc49L2n.js +15 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-DiJj8rmO.js → localization-CwQG70_4.js} +15 -20
- package/dist/esm/object-get-by-path-CLLU0oUD.js +12 -0
- package/dist/esm/p-accordion.entry.js +4 -4
- package/dist/esm/p-attachment.entry.js +8 -8
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +5 -5
- package/dist/esm/p-badge_3.entry.js +7 -7
- package/dist/esm/p-button-group.entry.js +4 -2
- package/dist/esm/p-button_3.entry.js +12 -10
- package/dist/esm/p-calendar.entry.js +16 -16
- package/dist/esm/p-card-body.entry.js +3 -3
- package/dist/esm/p-card-container.entry.js +4 -4
- package/dist/esm/p-card-header.entry.js +5 -5
- package/dist/esm/p-checkbox_3.entry.js +30 -30
- package/dist/esm/p-content-slider.entry.js +7 -7
- package/dist/esm/p-cropper.entry.js +3 -2802
- package/dist/esm/p-datepicker.entry.js +7 -7
- package/dist/esm/p-divider.entry.js +4 -4
- package/dist/esm/p-drawer-body_3.entry.js +6 -6
- package/dist/esm/p-drawer.entry.js +4 -6
- package/dist/esm/p-dropdown-menu-item_2.entry.js +8 -8
- package/dist/esm/p-empty-state_8.entry.js +57 -58
- package/dist/esm/p-field_3.entry.js +16 -16
- package/dist/esm/p-floating-menu-item.entry.js +4 -4
- package/dist/esm/p-iban-icon.entry.js +16 -8
- package/dist/esm/p-illustration.entry.js +19 -19
- package/dist/esm/p-info-panel.entry.js +4 -4
- package/dist/esm/p-label.entry.js +5 -5
- package/dist/esm/p-listing-item.entry.js +3 -3
- package/dist/esm/p-listing-line.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body_4.entry.js +8 -8
- package/dist/esm/p-navbar.entry.js +3 -3
- package/dist/esm/p-navigation-item.entry.js +5 -5
- package/dist/esm/p-navigation-section.entry.js +3 -3
- package/dist/esm/p-navigation-title.entry.js +3 -3
- package/dist/esm/p-pagination_3.entry.js +23 -23
- package/dist/esm/p-profile.entry.js +3 -3
- package/dist/esm/p-radio.entry.js +6 -6
- package/dist/esm/p-range.entry.js +6 -6
- package/dist/esm/p-select.entry.js +13 -13
- package/dist/esm/p-stepper-item_2.entry.js +7 -7
- package/dist/esm/p-tab-item.entry.js +3 -3
- package/dist/esm/p-table-extra-header.entry.js +2 -2
- package/dist/esm/p-table.entry.js +20 -25
- package/dist/esm/p-toast.entry.js +3 -3
- package/dist/esm/p-toggle.entry.js +7 -7
- package/dist/esm/p-tooltip.entry.js +11 -11
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/{screens-B3sNjfzc.js → screens-CWO2YJCh.js} +3 -5
- package/dist/esm/{state-CFpjsZN7.js → state-DAO0Ru6K.js} +6 -4
- package/dist/esm/{table-helpers-ChunMu-S.js → table-helpers-CfQnOr9V.js} +3 -2
- package/dist/esm/themed-host.component-Bc5wHkoH.js +6 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/p-0305046c.entry.js +1 -0
- package/dist/paperless/{p-993bf657.entry.js → p-0898e57b.entry.js} +1 -1
- package/dist/paperless/p-099a4c60.entry.js +1 -0
- package/dist/paperless/{p-4fde72a3.entry.js → p-0c094c99.entry.js} +1 -1
- package/dist/paperless/{p-3cea628d.entry.js → p-0eb7a6e4.entry.js} +1 -1
- package/dist/paperless/p-14a2caa3.entry.js +1 -0
- package/dist/paperless/{p-425a3a05.entry.js → p-1ce28114.entry.js} +1 -1
- package/dist/paperless/p-2509308d.entry.js +1 -0
- package/dist/paperless/p-389f92f8.entry.js +1 -0
- package/dist/{build/p-79fe6a2f.entry.js → paperless/p-400ae3ad.entry.js} +1 -1
- package/dist/{build/p-6ff7e89b.entry.js → paperless/p-4793863e.entry.js} +1 -1
- package/dist/paperless/{p-d36ebc95.entry.js → p-4ad6dd58.entry.js} +1 -1
- package/dist/paperless/p-4d456377.entry.js +1 -0
- package/dist/paperless/{p-4dfa0a37.entry.js → p-4f068009.entry.js} +1 -1
- package/dist/{build/p-6577db68.entry.js → paperless/p-62c4c7d7.entry.js} +1 -1
- package/dist/paperless/p-6ff8d21c.entry.js +1 -0
- package/dist/paperless/{p-e8729580.entry.js → p-7ae963de.entry.js} +1 -1
- package/dist/paperless/p-846f47bd.entry.js +1 -0
- package/dist/paperless/{p-3430af7f.entry.js → p-870a63fb.entry.js} +1 -1
- package/dist/paperless/p-8bd7c93a.entry.js +1 -0
- package/dist/{build/p-e9582485.entry.js → paperless/p-8d0c1f36.entry.js} +1 -1
- package/dist/paperless/{p-c0cec615.entry.js → p-8ed529ba.entry.js} +1 -1
- package/dist/paperless/{p-530d8958.entry.js → p-92bbdecc.entry.js} +1 -1
- package/dist/paperless/{p-62555ccd.entry.js → p-93bbde98.entry.js} +1 -1
- package/dist/paperless/p-958c8a2c.entry.js +1 -0
- package/dist/paperless/{p-71e02082.entry.js → p-9a49375d.entry.js} +1 -1
- package/dist/paperless/{p-CrdJDtHg.js → p-CLLU0oUD.js} +1 -1
- package/dist/paperless/p-CWO2YJCh.js +1 -0
- package/dist/paperless/p-CXVK8SLW.js +1 -0
- package/dist/paperless/p-CwQG70_4.js +1 -0
- package/dist/paperless/{p-BTx_Jfhh.js → p-DE-sstf_.js} +1 -1
- package/dist/paperless/p-DPc49L2n.js +1 -0
- package/dist/paperless/p-DzdX_Z5B.js +1 -0
- package/dist/paperless/p-V194S7Dm.js +1 -0
- package/dist/{build/p-cd525c37.entry.js → paperless/p-a23a90d6.entry.js} +1 -1
- package/dist/paperless/{p-3c806e0f.entry.js → p-a4109895.entry.js} +1 -1
- package/dist/paperless/p-ad468b70.entry.js +1 -0
- package/dist/paperless/p-af320255.entry.js +1 -0
- package/dist/paperless/p-b2248597.entry.js +1 -0
- package/dist/{build/p-abda244c.entry.js → paperless/p-b37d0053.entry.js} +1 -1
- package/dist/{build/p-f0165e95.entry.js → paperless/p-bfb06294.entry.js} +1 -1
- package/dist/{build/p-5d60b2c6.entry.js → paperless/p-c7835f10.entry.js} +1 -1
- package/dist/paperless/{p-1c6969ee.entry.js → p-cfe81f27.entry.js} +1 -1
- package/dist/paperless/p-d0d0a314.entry.js +1 -0
- package/dist/paperless/p-d38642c4.entry.js +1 -0
- package/dist/paperless/p-e30abf73.entry.js +1 -0
- package/dist/paperless/{p-cacd9fe0.entry.js → p-e6222abf.entry.js} +1 -1
- package/dist/paperless/p-e9d2bdd6.entry.js +1 -0
- package/dist/paperless/p-f1f160c0.entry.js +1 -0
- package/dist/paperless/{p-1e7e0082.entry.js → p-f3daeb8f.entry.js} +1 -1
- package/dist/paperless/{p-4cd0eb6f.entry.js → p-f8d8d142.entry.js} +1 -1
- package/dist/paperless/p-f9c9004b.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/paperless.ts +5 -12
- package/dist/tailwind/plugins/safe-area.ts +0 -1
- package/dist/tailwind.config.ts +4 -1
- package/dist/types/components/atoms/card/header/card-header.component.d.ts +1 -1
- package/dist/types/components/atoms/dropdown-menu/item/dropdown-menu-item.component.d.ts +1 -1
- package/dist/types/components/atoms/floating-menu/item/floating-menu-item.component.d.ts +1 -2
- package/dist/types/components/atoms/icon/icon.component.d.ts +1 -3
- package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -2
- package/dist/types/components/atoms/listing/item/listing-item.component.d.ts +1 -1
- package/dist/types/components/atoms/segment/item/segment-item.component.d.ts +1 -1
- package/dist/types/components/helpers/table/extra-header/table-extra-header.component.d.ts +5 -5
- package/dist/types/components/helpers/table/row-action/table-row-action.component.d.ts +2 -1
- package/dist/types/components/molecules/button/button.component.d.ts +1 -1
- package/dist/types/components/molecules/cropper/cropper.component.d.ts +0 -1
- package/dist/types/components/molecules/empty-state/empty-state.component.d.ts +3 -1
- package/dist/types/components/molecules/field/field/field.component.d.ts +1 -1
- package/dist/types/components/molecules/label/label.component.d.ts +1 -2
- package/dist/types/components/molecules/navigation/item/navigation-item.component.d.ts +1 -1
- package/dist/types/components/molecules/select/select.component.d.ts +1 -1
- package/dist/types/components/molecules/table/header/table-header.component.d.ts +1 -1
- package/dist/types/components/molecules/table/row/table-row.component.d.ts +1 -1
- package/dist/types/components/molecules/toast/toast.component.d.ts +1 -2
- package/dist/types/components/organisms/table/table.component.d.ts +1 -1
- package/dist/types/components.d.ts +58 -83
- package/dist/types/types/icon.d.ts +3 -0
- package/dist/types/types/illustration.d.ts +2 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/table-helpers.d.ts +1 -1
- package/hydrate/index.js +411 -4867
- package/hydrate/index.mjs +411 -4867
- package/package.json +3 -2
- package/dist/assets/illustrations-old/default-empty-state.svg +0 -186
- package/dist/assets/illustrations-old/departments.svg +0 -31
- package/dist/assets/illustrations-old/e-mail.svg +0 -1
- package/dist/assets/illustrations-old/empty-state-add.svg +0 -65
- package/dist/assets/illustrations-old/empty-state-overview.svg +0 -58
- package/dist/assets/illustrations-old/empty-state-search.svg +0 -88
- package/dist/assets/illustrations-old/expenses.svg +0 -397
- package/dist/assets/illustrations-old/functions.svg +0 -58
- package/dist/assets/illustrations-old/questions.svg +0 -30
- package/dist/assets/illustrations-old/sick-leave.svg +0 -353
- package/dist/assets/illustrations-old/time-off.svg +0 -271
- package/dist/assets/illustrations-old/upgrade-to-hr.svg +0 -56
- package/dist/build/p--Uc_OJAV.js +0 -1
- package/dist/build/p-03fd9f72.entry.js +0 -1
- package/dist/build/p-056a5f06.entry.js +0 -3
- package/dist/build/p-0d101f98.entry.js +0 -1
- package/dist/build/p-1204b8ec.entry.js +0 -1
- package/dist/build/p-19e4c44e.entry.js +0 -1
- package/dist/build/p-20a030ef.entry.js +0 -1
- package/dist/build/p-24856eda.entry.js +0 -1
- package/dist/build/p-24bddbaa.entry.js +0 -1
- package/dist/build/p-387cdb34.entry.js +0 -1
- package/dist/build/p-3ddaa2cd.entry.js +0 -1
- package/dist/build/p-483d393e.entry.js +0 -1
- package/dist/build/p-4d861417.entry.js +0 -1
- package/dist/build/p-61eb4488.entry.js +0 -1
- package/dist/build/p-6347bcd4.entry.js +0 -1
- package/dist/build/p-6995f239.entry.js +0 -1
- package/dist/build/p-6c89af81.entry.js +0 -1
- package/dist/build/p-7f74906f.js +0 -1
- package/dist/build/p-93e0869b.entry.js +0 -1
- package/dist/build/p-B3sNjfzc.js +0 -1
- package/dist/build/p-CZ2yMw9N.js +0 -1
- package/dist/build/p-DVCJlilm.js +0 -1
- package/dist/build/p-DiJj8rmO.js +0 -1
- package/dist/build/p-NPruj4qY.js +0 -1
- package/dist/build/p-bc2ffc30.entry.js +0 -1
- package/dist/build/p-f06b0222.entry.js +0 -1
- package/dist/build/p-f15fd725.entry.js +0 -1
- package/dist/cjs/is-mobile-browser-B0H5zume.js +0 -17
- package/dist/cjs/object-get-by-path-D9RiabwP.js +0 -12
- package/dist/cjs/p-illustration-deprecated.cjs.entry.js +0 -1648
- package/dist/cjs/themed-host.component-DWdd52wm.js +0 -10
- package/dist/collection/assets/illustrations-old/default-empty-state.svg +0 -186
- package/dist/collection/assets/illustrations-old/departments.svg +0 -31
- package/dist/collection/assets/illustrations-old/e-mail.svg +0 -1
- package/dist/collection/assets/illustrations-old/empty-state-add.svg +0 -65
- package/dist/collection/assets/illustrations-old/empty-state-overview.svg +0 -58
- package/dist/collection/assets/illustrations-old/empty-state-search.svg +0 -88
- package/dist/collection/assets/illustrations-old/expenses.svg +0 -397
- package/dist/collection/assets/illustrations-old/functions.svg +0 -58
- package/dist/collection/assets/illustrations-old/questions.svg +0 -30
- package/dist/collection/assets/illustrations-old/sick-leave.svg +0 -353
- package/dist/collection/assets/illustrations-old/time-off.svg +0 -271
- package/dist/collection/assets/illustrations-old/upgrade-to-hr.svg +0 -56
- package/dist/collection/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.js +0 -45
- package/dist/collection/utils/illustrations-deprecated.js +0 -26
- package/dist/components/p--Uc_OJAV.js +0 -1
- package/dist/components/p-2dC48qJE.js +0 -1
- package/dist/components/p-2zUJV2yE.js +0 -1
- package/dist/components/p-B0d5ICrL.js +0 -1
- package/dist/components/p-B3sNjfzc.js +0 -1
- package/dist/components/p-B4Gc--KS.js +0 -1
- package/dist/components/p-Bh667c8S.js +0 -1
- package/dist/components/p-BjTqIvvg.js +0 -1
- package/dist/components/p-BljhRK77.js +0 -1
- package/dist/components/p-CMXVofAG.js +0 -1
- package/dist/components/p-CXpy7GgN.js +0 -1
- package/dist/components/p-Cjis2n9e.js +0 -1
- package/dist/components/p-D4Meeik_.js +0 -1
- package/dist/components/p-DVCJlilm.js +0 -1
- package/dist/components/p-DVnjKUSi.js +0 -1
- package/dist/components/p-DiJj8rmO.js +0 -1
- package/dist/components/p-Dx2gSqsW.js +0 -1
- package/dist/components/p-amH7ioHZ.js +0 -1
- package/dist/components/p-illustration-deprecated.d.ts +0 -11
- package/dist/components/p-illustration-deprecated.js +0 -1
- package/dist/esm/is-mobile-browser-DVCJlilm.js +0 -15
- package/dist/esm/object-get-by-path-CrdJDtHg.js +0 -10
- package/dist/esm/p-illustration-deprecated.entry.js +0 -1646
- package/dist/esm/themed-host.component-c1iZisXm.js +0 -8
- package/dist/paperless/p--Uc_OJAV.js +0 -1
- package/dist/paperless/p-03fd9f72.entry.js +0 -1
- package/dist/paperless/p-056a5f06.entry.js +0 -3
- package/dist/paperless/p-0d101f98.entry.js +0 -1
- package/dist/paperless/p-1204b8ec.entry.js +0 -1
- package/dist/paperless/p-19e4c44e.entry.js +0 -1
- package/dist/paperless/p-20a030ef.entry.js +0 -1
- package/dist/paperless/p-24856eda.entry.js +0 -1
- package/dist/paperless/p-24bddbaa.entry.js +0 -1
- package/dist/paperless/p-387cdb34.entry.js +0 -1
- package/dist/paperless/p-3ddaa2cd.entry.js +0 -1
- package/dist/paperless/p-483d393e.entry.js +0 -1
- package/dist/paperless/p-4d861417.entry.js +0 -1
- package/dist/paperless/p-61eb4488.entry.js +0 -1
- package/dist/paperless/p-6347bcd4.entry.js +0 -1
- package/dist/paperless/p-6995f239.entry.js +0 -1
- package/dist/paperless/p-6c89af81.entry.js +0 -1
- package/dist/paperless/p-93e0869b.entry.js +0 -1
- package/dist/paperless/p-B3sNjfzc.js +0 -1
- package/dist/paperless/p-CZ2yMw9N.js +0 -1
- package/dist/paperless/p-DVCJlilm.js +0 -1
- package/dist/paperless/p-DiJj8rmO.js +0 -1
- package/dist/paperless/p-NPruj4qY.js +0 -1
- package/dist/paperless/p-bc2ffc30.entry.js +0 -1
- package/dist/paperless/p-f06b0222.entry.js +0 -1
- package/dist/paperless/p-f15fd725.entry.js +0 -1
- package/dist/types/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.d.ts +0 -10
- package/dist/types/utils/illustrations-deprecated.d.ts +0 -15
- package/dist/build/{p-BFSNj6hu.js → p-TyZ7uPES.js} +0 -0
- package/dist/build/{p-49063862.entry.js → p-a096e5b9.entry.js} +0 -0
- package/dist/build/{p-10e45aa0.entry.js → p-a91d2d7d.entry.js} +0 -0
- package/dist/build/{p-ce739b80.entry.js → p-ea4df80c.entry.js} +0 -0
- package/dist/cjs/{icons-DoJUuFS5.js → icons-C2jYPq9N.js} +58 -58
- package/dist/components/{p-BFSNj6hu.js → p-TyZ7uPES.js} +0 -0
- package/dist/esm/{icons--Uc_OJAV.js → icons-CXVK8SLW.js} +58 -58
- /package/dist/paperless/{p-BFSNj6hu.js → p-TyZ7uPES.js} +0 -0
- /package/dist/paperless/{p-49063862.entry.js → p-a096e5b9.entry.js} +0 -0
- /package/dist/paperless/{p-10e45aa0.entry.js → p-a91d2d7d.entry.js} +0 -0
- /package/dist/paperless/{p-ce739b80.entry.js → p-ea4df80c.entry.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, h, F as Fragment, d as getElement } from './index-PW1zQoNr.js';
|
|
2
2
|
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
-
import { T as ThemedHost } from './themed-host.component-
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
4
4
|
import { P as PAGINATION_DEFAULT_PAGE_SIZE, a as PAGINATION_DEFAULT_PAGE_SIZE_OPTIONS } from './constants-vyRrSf5s.js';
|
|
5
|
-
import { a as childOfComposed } from './child-of-
|
|
6
|
-
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-
|
|
5
|
+
import { a as childOfComposed } from './child-of-TyZ7uPES.js';
|
|
6
|
+
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-CwQG70_4.js';
|
|
7
7
|
import { c as cn } from './cn-BniKgfyU.js';
|
|
8
8
|
import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
|
|
9
9
|
import './clsx-ChV9xqsO.js';
|
|
10
|
-
import './state-
|
|
10
|
+
import './state-DAO0Ru6K.js';
|
|
11
11
|
|
|
12
12
|
const paginationComponentCss = () => `*{box-sizing:border-box}.static{position:static}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.hidden{display:none}.h-4{height:1rem}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}`;
|
|
13
13
|
|
|
@@ -76,12 +76,12 @@ const Pagination = class {
|
|
|
76
76
|
_hasPaginationPages = true;
|
|
77
77
|
render() {
|
|
78
78
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
79
|
-
return (h(ThemedHost, { key: '
|
|
79
|
+
return (h(ThemedHost, { key: 'bb991c6f71f5824182288a5976a1ed5d7a5d6ae1' }, h("div", { key: '80bc0a9d7440759d64b46d5545fe1e3ab2d5b339', class: pagination$1({
|
|
80
80
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
81
81
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
82
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
82
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '5812bfaaee47936e0f1d910c4da0421589e5cf9b' }, h("p-pagination-size", { key: '2fe1f8e733d96ef2843d184f17c02b2db44b3fb5', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
83
83
|
this.hideOnSinglePage &&
|
|
84
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
84
|
+
this._hasPaginationPages && (h("p-divider", { key: 'fa14cc1d718604f931f95ee9d2accd28b1bf43e7', variant: 'vertical', class: 'mx-0 h-4 text-off-white-700 dark:text-hurricane-400' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '265840dfb523c4330e5c44a00fe28d9397f7b45c', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
85
85
|
this._hasPaginationPages = detail > 1;
|
|
86
86
|
this.pagesChange.emit(detail);
|
|
87
87
|
} })))));
|
|
@@ -157,7 +157,7 @@ const PaginationPages = class {
|
|
|
157
157
|
this._generate();
|
|
158
158
|
}
|
|
159
159
|
render() {
|
|
160
|
-
return (h(ThemedHost, { key: '
|
|
160
|
+
return (h(ThemedHost, { key: '12b419fd882b9601dd5aa69a9a65dbeea5475493' }, h("div", { key: '119cee7ccbe4e06a3483f966530141b64fd778c7', class: pagination({
|
|
161
161
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
162
162
|
}) }, this._set?.map(p => {
|
|
163
163
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -224,7 +224,7 @@ const PaginationPages = class {
|
|
|
224
224
|
_carouselDisabled = (type) => {
|
|
225
225
|
if (type === 'next') {
|
|
226
226
|
const nextPage = this.page + 1;
|
|
227
|
-
if (nextPage > this._pages
|
|
227
|
+
if (nextPage > this._pages.at(-1)) {
|
|
228
228
|
return true;
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -239,9 +239,9 @@ const PaginationPages = class {
|
|
|
239
239
|
_pageClick = (p) => this._changePage(p);
|
|
240
240
|
_enterPress(p) {
|
|
241
241
|
if (typeof p === 'string') {
|
|
242
|
-
p = parseInt(p);
|
|
242
|
+
p = Number.parseInt(p);
|
|
243
243
|
}
|
|
244
|
-
if (isNaN(p)) {
|
|
244
|
+
if (Number.isNaN(p)) {
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
247
|
if (p < 1) {
|
|
@@ -263,7 +263,9 @@ const PaginationPages = class {
|
|
|
263
263
|
}
|
|
264
264
|
const pages = Math.ceil(this.total / this.pageSize);
|
|
265
265
|
this.pagesChange.emit(pages);
|
|
266
|
-
return
|
|
266
|
+
return Array.from({ length: pages })
|
|
267
|
+
.fill('')
|
|
268
|
+
.map((_, i) => i + 1);
|
|
267
269
|
}
|
|
268
270
|
_generateSet = (range = 1, enableBoundaries = true) => {
|
|
269
271
|
const totalPages = this._pages.length;
|
|
@@ -275,7 +277,7 @@ const PaginationPages = class {
|
|
|
275
277
|
if (end > totalPages) {
|
|
276
278
|
end = totalPages;
|
|
277
279
|
start = totalPages - range * 2;
|
|
278
|
-
start = start
|
|
280
|
+
start = Math.max(start, 1);
|
|
279
281
|
}
|
|
280
282
|
if (start <= 1) {
|
|
281
283
|
start = 1;
|
|
@@ -314,8 +316,7 @@ const PaginationPages = class {
|
|
|
314
316
|
set.push({
|
|
315
317
|
type: 'page',
|
|
316
318
|
value: 1,
|
|
317
|
-
}
|
|
318
|
-
set.push({
|
|
319
|
+
}, {
|
|
319
320
|
type: 'ellipsis',
|
|
320
321
|
dropdownIndex,
|
|
321
322
|
options: Array.from({ length: start - 2 }, (_, i) => i + 2),
|
|
@@ -341,12 +342,11 @@ const PaginationPages = class {
|
|
|
341
342
|
type: 'ellipsis',
|
|
342
343
|
dropdownIndex,
|
|
343
344
|
options: Array.from({ length: totalPages - end - 1 }, (_, i) => i + end + 1),
|
|
344
|
-
}
|
|
345
|
-
dropdownIndex++;
|
|
346
|
-
set.push({
|
|
345
|
+
}, {
|
|
347
346
|
type: 'page',
|
|
348
|
-
value: this._pages
|
|
347
|
+
value: this._pages.at(-1),
|
|
349
348
|
});
|
|
349
|
+
dropdownIndex++;
|
|
350
350
|
}
|
|
351
351
|
if (enableBoundaries) {
|
|
352
352
|
set.push(next);
|
|
@@ -438,18 +438,18 @@ const PaginationSize = class {
|
|
|
438
438
|
this._setLocales();
|
|
439
439
|
}
|
|
440
440
|
render() {
|
|
441
|
-
return (h(ThemedHost, { key: '
|
|
441
|
+
return (h(ThemedHost, { key: '1062e4a018038b23e5514a50f9fa658b6fae7010', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '521979380d535dcd911c26b881338ddaaf3e7344', applyFullWidth: true, applyMaxWidth: false, placement: 'top-start', chevronDirection: 'down', onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, h("div", { key: '81cdccac14a27636661d30889d5894a9fb5d7ce6', class: trigger({
|
|
442
442
|
active: this.dropdownIsOpen,
|
|
443
|
-
}), slot: 'trigger' }, h("p", { key: '
|
|
443
|
+
}), slot: 'trigger' }, h("p", { key: '3477755b3365205fef5a3e3f8f465f0d1d41ddd1', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
444
444
|
? this.itemTemplate(this.size)
|
|
445
|
-
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '
|
|
445
|
+
: this._defaultItemTemplate(this.size)), h("p-icon", { key: 'f08b75643a97c86192e87893c80ad67b9cf61a9d', class: cn([
|
|
446
446
|
'flex-shrink-0',
|
|
447
447
|
'group-hover/pagination-size-trigger:text-storm-500',
|
|
448
448
|
'dark:group-hover/pagination-size-trigger:text-white',
|
|
449
449
|
], {
|
|
450
450
|
'text-storm-300 dark:text-hurricane-200': !this.dropdownIsOpen,
|
|
451
451
|
'text-storm-500 dark:text-white': !!this.dropdownIsOpen,
|
|
452
|
-
}), variant: 'double-caret', size: 'sm' })), h("slot", { key: '
|
|
452
|
+
}), variant: 'double-caret', size: 'sm' })), h("slot", { key: '4ac113bf401a0a3019c6430a58f5cfd8a153e5c4', slot: 'items' }, this.sizeOptions.map(option => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
453
453
|
? this.itemTemplate(option)
|
|
454
454
|
: this._defaultItemTemplate(option))))))));
|
|
455
455
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, d as getElement, h } from './index-PW1zQoNr.js';
|
|
2
2
|
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
-
import { T as ThemedHost } from './themed-host.component-
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
4
4
|
import './clsx-ChV9xqsO.js';
|
|
5
|
-
import './state-
|
|
5
|
+
import './state-DAO0Ru6K.js';
|
|
6
6
|
|
|
7
7
|
const profileComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.my-0{margin-bottom:0;margin-top:0}.flex{display:flex}.h-10{height:2.5rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
8
8
|
|
|
@@ -33,7 +33,7 @@ const Profile = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const content = this._getContent();
|
|
36
|
-
return (h(ThemedHost, { key: '
|
|
36
|
+
return (h(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (h("p-dropdown", { strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
37
37
|
}
|
|
38
38
|
slotchange() {
|
|
39
39
|
this._checkDropdownSlot();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, h } from './index-PW1zQoNr.js';
|
|
2
2
|
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
3
4
|
import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
|
|
4
5
|
import { n as nonce } from './nonce-D9kEjsvZ.js';
|
|
5
|
-
import { T as ThemedHost } from './themed-host.component-c1iZisXm.js';
|
|
6
6
|
import './clsx-ChV9xqsO.js';
|
|
7
|
-
import './state-
|
|
7
|
+
import './state-DAO0Ru6K.js';
|
|
8
8
|
|
|
9
|
-
const radioComponentCss = () =>
|
|
9
|
+
const radioComponentCss = () => `*{box-sizing:border-box}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.m-0{margin:0}.block{display:block}.flex{display:flex}.h-2{height:.5rem}.h-4{height:1rem}.w-2{width:.5rem}.w-4{width:1rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.border-storm-50{--tw-border-opacity:1;border-color:rgb(232 232 234/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.checked\\:cursor-auto:checked{cursor:auto}.checked\\:border-storm-500\\/20:checked{border-color:rgba(24,30,41,.2)}.checked\\:bg-indigo-600:checked{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.checked\\:ring-indigo-100:checked{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.empty\\:hidden:empty{display:none}.hover\\:border-storm-500\\/20:hover{border-color:rgba(24,30,41,.2)}.hover\\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.checked\\:hover\\:border-storm-500\\/20:hover:checked{border-color:rgba(24,30,41,.2)}.checked\\:hover\\:bg-indigo-700:hover:checked{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.group\\/radio-label:hover .group-hover\\/radio-label\\:border-storm-500\\/20{border-color:rgba(24,30,41,.2)}.group\\/radio-label:hover .group-hover\\/radio-label\\:bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.group\\/radio-label:hover .checked\\:group-hover\\/radio-label\\:border-storm-500\\/20:checked{border-color:rgba(24,30,41,.2)}.group\\/radio-label:hover .checked\\:group-hover\\/radio-label\\:bg-indigo-700:checked{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:bg-storm-200{--tw-bg-opacity:1;background-color:rgb(163 165 169/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:checked~.peer-checked\\:ring-storm-500\\/10{--tw-ring-color:rgba(24,30,41,.1)}.dark\\:border-white\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.1)}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.1)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:checked\\:ring-0:checked:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:border-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-white\\/20:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.2)}.peer:checked~.dark\\:peer-checked\\:bg-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(116 120 127/var(--tw-bg-opacity,1))}.dark\\:border-white\\/10:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.1)}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/10:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.1)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:checked\\:ring-0:checked:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:hover\\:border-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-white\\/20:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.2)}.peer:checked~.dark\\:peer-checked\\:bg-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(116 120 127/var(--tw-bg-opacity,1))}`;
|
|
10
10
|
|
|
11
11
|
const radio = cva([
|
|
12
12
|
'peer appearance-none m-0 outline-none flex-shrink-0',
|
|
@@ -107,11 +107,11 @@ const Radio = class {
|
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
109
|
const id = this.id?.length ? this.id : this._nonce;
|
|
110
|
-
return (h(ThemedHost, { key: '
|
|
110
|
+
return (h(ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, h("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d', htmlFor: id, class: 'flex items-center justify-start gap-2' }, h("div", { key: '0db6d40c88eb7e38d49a7b00c51a9527bcb07919', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'c37a2ca4f67b57fb6fe4c5db31f047928eed1e70', class: radio({
|
|
111
111
|
disabled: asBoolean(this.disabled),
|
|
112
|
-
}), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
112
|
+
}), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: 'f062fa8dba4c876a5cce25d5777bf11ae936764a', class: circle({
|
|
113
113
|
disabled: asBoolean(this.disabled),
|
|
114
|
-
}) })), h("div", { key: '
|
|
114
|
+
}) })), h("div", { key: '90340477396fd987eabbe4cc7aeebb38a548ec68', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, h("slot", { key: 'b66d366cac0e5c99903edc18f4256c045d3a5b10' })))));
|
|
115
115
|
}
|
|
116
116
|
_onChange(ev) {
|
|
117
117
|
if (asBoolean(this.disabled)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, h } from './index-PW1zQoNr.js';
|
|
2
|
-
import { T as ThemedHost } from './themed-host.component-
|
|
3
|
-
import './state-
|
|
2
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
3
|
+
import './state-DAO0Ru6K.js';
|
|
4
4
|
|
|
5
5
|
const rangeComponentCss = () => `.m-0{margin:0}.mt-\\[calc\\(\\(0\\.5rem-1px\\)\\*-1\\)\\]{margin-top:calc(-.5rem + 1px)}.h-4{height:1rem}.h-6{height:1.5rem}.h-\\[2px\\]{height:2px}.w-4{width:1rem}.w-full{width:100%}.appearance-none{appearance:none}.rounded-full{border-radius:9999px}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}*{box-sizing:border-box}:host{input{appearance:none;background-color:transparent;height:1.5rem;margin:0;width:100%}input::-webkit-slider-runnable-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input::-moz-range-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input::-webkit-slider-thumb{--tw-bg-opacity:1;appearance:none;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;margin-top:calc(-.5rem + 1px);width:1rem}input::-webkit-slider-thumb:hover{cursor:grab}input::-webkit-slider-thumb:active,input::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-webkit-slider-thumb:active{cursor:grabbing}input::-moz-range-thumb{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;width:1rem}input::-moz-range-thumb:hover{cursor:grab}input::-moz-range-thumb:active,input::-moz-range-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-moz-range-thumb:active{cursor:grabbing}}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.active\\:cursor-grabbing:active{cursor:grabbing}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-1\\/2{top:50%}.flex{display:flex}.w-inherit{width:inherit}.flex-1{flex:1 1 0%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.gap-2{gap:.5rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}`;
|
|
6
6
|
|
|
@@ -31,13 +31,13 @@ const Range = class {
|
|
|
31
31
|
valueChange;
|
|
32
32
|
render() {
|
|
33
33
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
34
|
-
return (h(ThemedHost, { key: '
|
|
34
|
+
return (h(ThemedHost, { key: 'cb6a6b717940ba17aa7a6df5cc36577a991d3831' }, h("div", { key: '86f3c5cfa6b35bab44279382db58fc28cbfb864d', class: 'flex w-inherit items-center gap-2 text-storm-300 dark:text-hurricane-200' }, h("p-icon", { key: 'c39ee42a23403c618cf6980ee68610b0d2210f59', variant: 'minus' }), h("div", { key: 'ea69ab86a1006f763f2306cc5a644b12ebd68540', class: 'relative h-6 flex-1' }, h("input", { key: '36594b239d75623d5494a27ac44fffab83f2c51d', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => {
|
|
35
35
|
const value = ev.target.value;
|
|
36
|
-
this.value = parseFloat(value);
|
|
36
|
+
this.value = Number.parseFloat(value);
|
|
37
37
|
this.valueChange.emit(value);
|
|
38
|
-
} }), h("div", { key: '
|
|
38
|
+
} }), h("div", { key: 'f995f4c46fe41f30f4702636192835fa9a62141f', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-indigo-600', style: {
|
|
39
39
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
40
|
-
} })), h("p-icon", { key: '
|
|
40
|
+
} })), h("p-icon", { key: 'f10c499d92c17fa6ad450416490f42155f7b2f22', variant: 'plus' }))));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
Range.style = rangeComponentCss();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, d as getElement, h } from './index-PW1zQoNr.js';
|
|
2
|
-
import { a as childOfComposed } from './child-of-BFSNj6hu.js';
|
|
3
2
|
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
4
|
+
import { a as childOfComposed } from './child-of-TyZ7uPES.js';
|
|
4
5
|
import { c as cn } from './cn-BniKgfyU.js';
|
|
5
6
|
import { S as SELECT_DEFAULT_MAX_DISPLAYED_ITEMS } from './constants-vyRrSf5s.js';
|
|
6
|
-
import { T as ThemedHost } from './themed-host.component-c1iZisXm.js';
|
|
7
7
|
import './clsx-ChV9xqsO.js';
|
|
8
|
-
import './state-
|
|
8
|
+
import './state-DAO0Ru6K.js';
|
|
9
9
|
|
|
10
10
|
const selectComponentCss = () => `*{box-sizing:border-box}:host{--tw-translate-y:0px!important;--tw-translate-x:0px!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[1\\.625rem\\]{height:1.625rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-indigo-500{--tw-text-opacity:1;color:rgb(142 179 251/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-negative-red-700{--tw-text-opacity:1;color:rgb(147 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.filter{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)}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.group\\/item:hover .group-hover\\/item\\:text-indigo-800{--tw-text-opacity:1;color:rgb(27 88 210/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 92 92/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/15:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.15)}.group\\/item:hover .dark\\:group-hover\\/item\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
11
11
|
|
|
@@ -340,8 +340,8 @@ const Select = class {
|
|
|
340
340
|
if (this.error?.length) {
|
|
341
341
|
buttonIcon = 'warning';
|
|
342
342
|
}
|
|
343
|
-
return (h(ThemedHost, { key: '
|
|
344
|
-
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, h("div", { key: '
|
|
343
|
+
return (h(ThemedHost, { key: '617063ca6cf31255928f6f6856cb1902b1d225a2' }, h("p-field-container", { key: '4a6d95f7bfbc79b886044f2fe31695990b4e210d', 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: 'a505febe8197f86f5e43ffa71f99c4b72cd2d8aa', applyFullWidth: true, applyMaxWidth: false, slot: 'content', insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, "disable-trigger-click": this.disabled, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), strategy: this.strategy }, h("p-button", { key: 'fd28bc0407580787fdb73d87dc3f282c78db0cd4', slot: 'trigger', class: 'w-full', variant: 'secondary', size: this.size, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, active: this._showDropdown, error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
|
|
344
|
+
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, h("div", { key: 'bd68cd902b3b2c09c7f0810aab598fb12b06e84f', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
|
|
345
345
|
}
|
|
346
346
|
documentClickHandler(event) {
|
|
347
347
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -380,7 +380,7 @@ const Select = class {
|
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
this.value = value;
|
|
383
|
-
if (
|
|
383
|
+
if (value.length === 0) {
|
|
384
384
|
this._selectedItem = [];
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
@@ -420,7 +420,7 @@ const Select = class {
|
|
|
420
420
|
: JSON.stringify(itemIdentifier);
|
|
421
421
|
return parsedItemIdentifier === parsedValue;
|
|
422
422
|
});
|
|
423
|
-
this._selectValue(
|
|
423
|
+
this._selectValue(item ?? value, false);
|
|
424
424
|
}
|
|
425
425
|
_selectValue(item, forceBlur = true) {
|
|
426
426
|
let value = !!this.valueKey &&
|
|
@@ -495,17 +495,17 @@ const Select = class {
|
|
|
495
495
|
_getItems() {
|
|
496
496
|
let items = this._items.map(item => {
|
|
497
497
|
const isSelected = this.multi && !!this._selectedItem && Array.isArray(this._selectedItem)
|
|
498
|
-
? this._selectedItem.
|
|
498
|
+
? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
|
|
499
499
|
: item[this._identifierKey] ===
|
|
500
500
|
this._selectedItem?.[this._identifierKey];
|
|
501
501
|
return (h("p-dropdown-menu-item", { enableTextWrap: this.enableTextWrap, useContainer: false, onClick: () => this._selectValue(item), active: isSelected, checkbox: this.multi ? true : false, slot: 'items' }, this._getDisplay(item, false, isSelected)));
|
|
502
502
|
});
|
|
503
|
-
if (
|
|
503
|
+
if (this._items.length === 0) {
|
|
504
504
|
items = [
|
|
505
505
|
h("p", { class: 'w-full p-2 text-center text-sm text-storm-400 dark:text-hurricane-200', slot: 'items' }, this.emptyStateText),
|
|
506
506
|
];
|
|
507
507
|
}
|
|
508
|
-
if (this.enableSelectAll && this._items.length) {
|
|
508
|
+
if (this.enableSelectAll && this._items.length > 0) {
|
|
509
509
|
items.unshift(h("p-dropdown-menu-item", { slot: 'items', useContainer: false, checkbox: true, onClick: () => this._selectAllChange(), active: this._allSelected }, this.selectAllIcon?.length ? (h("span", { class: 'flex items-center gap-2' }, h("div", { class: 'flex w-6 justify-center text-lg' }, h("p-icon", { variant: this.selectAllIcon })), ' ', this.selectAllText)) : (this.selectAllText)));
|
|
510
510
|
}
|
|
511
511
|
if (this.enableAutocomplete) {
|
|
@@ -531,7 +531,7 @@ const Select = class {
|
|
|
531
531
|
return;
|
|
532
532
|
}
|
|
533
533
|
const calced = this._inputRef.clientWidth - 16;
|
|
534
|
-
this._multiContainerRef.style.maxWidth = `${calced
|
|
534
|
+
this._multiContainerRef.style.maxWidth = `${Math.max(calced, 16)}px`;
|
|
535
535
|
}
|
|
536
536
|
_setCheckSelectedItemsTimeout() {
|
|
537
537
|
if (this._checkSelectedItemsTimeout) {
|
|
@@ -585,7 +585,7 @@ const Select = class {
|
|
|
585
585
|
error: !!this.error?.length,
|
|
586
586
|
enableTextWrap: this.enableTextWrap && !isSelection,
|
|
587
587
|
}) }, item[isSelection
|
|
588
|
-
? this.selectionDisplayKey ?? this.displayKey
|
|
588
|
+
? (this.selectionDisplayKey ?? this.displayKey)
|
|
589
589
|
: this.displayKey]));
|
|
590
590
|
if (this.avatarKey) {
|
|
591
591
|
content = (h("span", { class: 'flex items-center gap-2' }, h("p-avatar", { size: 'sm', src: item[this.avatarKey], letters: item[this.avatarLettersKey] }), h("div", { class: textContainer({
|
|
@@ -597,7 +597,7 @@ const Select = class {
|
|
|
597
597
|
if (this.iconKey && (!isSelection || this.showIconOnSelectedItem)) {
|
|
598
598
|
content = (h("span", { class: 'flex items-center gap-2' }, item[this.iconKey] && (h("p-icon", { class: cn('text-storm-300 dark:text-hurricane-200', (!isSelection || !!this.applyClassOnSelectedItem) &&
|
|
599
599
|
(!isSelectedInMenu || !!this.applyClassOnSelectedItemInMenu)
|
|
600
|
-
? item?.[this.iconClassKey] ?? ''
|
|
600
|
+
? (item?.[this.iconClassKey] ?? '')
|
|
601
601
|
: ''), variant: item[this.iconKey] })), h("div", { class: textContainer({
|
|
602
602
|
variant: 'default',
|
|
603
603
|
error: !!this.error?.length,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-PW1zQoNr.js';
|
|
2
2
|
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
3
4
|
import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
|
|
4
|
-
import { T as ThemedHost } from './themed-host.component-c1iZisXm.js';
|
|
5
5
|
import './clsx-ChV9xqsO.js';
|
|
6
|
-
import './state-
|
|
6
|
+
import './state-DAO0Ru6K.js';
|
|
7
7
|
|
|
8
8
|
const stepperItemComponentCss = () => `*{box-sizing:border-box}.static{position:static}.mb-5{margin-bottom:1.25rem}.mt-5{margin-top:1.25rem}.mt-\\[1px\\]{margin-top:1px}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-1{flex:1 1 0%}.flex-row-reverse{flex-direction:row-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (min-width:64rem){.desktop-xs\\:inline-block{display:inline-block}}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
9
9
|
|
|
@@ -143,19 +143,19 @@ const StepperItem = class {
|
|
|
143
143
|
*/
|
|
144
144
|
active = false;
|
|
145
145
|
render() {
|
|
146
|
-
return (h(ThemedHost, { key: '
|
|
146
|
+
return (h(ThemedHost, { key: '197bcb21f1d28e35bee93f7fe3efa2c70361a4dc' }, h("div", { key: '8c0e55e1ca56a4b2c3107542c5533c5166686215', class: item({
|
|
147
147
|
align: this.align,
|
|
148
148
|
contentPosition: this.contentPosition,
|
|
149
|
-
}) }, h("div", { key: '
|
|
149
|
+
}) }, h("div", { key: '5905ce66b404e06f9c1b79818bc1167adbcdd4de', class: circle({
|
|
150
150
|
align: this.align,
|
|
151
151
|
direction: this.direction,
|
|
152
152
|
active: asBoolean(this.active),
|
|
153
153
|
finished: asBoolean(this.finished),
|
|
154
|
-
}) }, this.number), h("div", { key: '
|
|
154
|
+
}) }, this.number), h("div", { key: '829cb80e0b3873461f91cb63521ca70e8578c909', class: content({
|
|
155
155
|
active: asBoolean(this.active),
|
|
156
156
|
finished: asBoolean(this.finished),
|
|
157
157
|
direction: this.direction,
|
|
158
|
-
}) }, h("slot", { key: '
|
|
158
|
+
}) }, h("slot", { key: '38fd35eb991bdfbc3884c93cc710067e7cb4435a' })))));
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
StepperItem.style = stepperItemComponentCss();
|
|
@@ -175,7 +175,7 @@ const StepperLine = class {
|
|
|
175
175
|
*/
|
|
176
176
|
direction = 'horizontal';
|
|
177
177
|
render() {
|
|
178
|
-
return h(ThemedHost, { key: '
|
|
178
|
+
return h(ThemedHost, { key: '565c695a3d5b50dc3930eccbf76524b902cd9504' });
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
StepperLine.style = stepperLineComponentCss();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-PW1zQoNr.js';
|
|
2
2
|
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
-
import { T as ThemedHost } from './themed-host.component-
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-Bc5wHkoH.js';
|
|
4
4
|
import './clsx-ChV9xqsO.js';
|
|
5
|
-
import './state-
|
|
5
|
+
import './state-DAO0Ru6K.js';
|
|
6
6
|
|
|
7
7
|
const tabItemComponentCss = () => `*{box-sizing:border-box}:host{--tw-content:" "}.static{position:static}.flex{display:flex}.h-8{height:2rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.text-sm{font-size:.875rem;line-height:1.25rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.after\\:h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:bg-indigo-600:after{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:bg-transparent:after{background-color:transparent;content:var(--tw-content)}.hover\\:text-storm-400:hover{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.hover\\:after\\:bg-storm-400:hover:after{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}`;
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ const TabItem = class {
|
|
|
30
30
|
*/
|
|
31
31
|
active = false;
|
|
32
32
|
render() {
|
|
33
|
-
return (h(ThemedHost, { key: '
|
|
33
|
+
return (h(ThemedHost, { key: '8795ed5e38ffff0da5edb9154fd084c690e2b95d' }, h("div", { key: 'dfd1fd4d2deeebfe2eac22eae0b84985c158ed26', class: item({ active: this.active }) }, h("slot", { key: '418044c86b215e216a9df1fd9398fd008fa1c41f' }))));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
TabItem.style = tabItemComponentCss();
|
|
@@ -20,7 +20,7 @@ const TableExtraHeader = class {
|
|
|
20
20
|
/**
|
|
21
21
|
* The alignment of the column
|
|
22
22
|
*/
|
|
23
|
-
align =
|
|
23
|
+
align = 'start';
|
|
24
24
|
/**
|
|
25
25
|
* Parsed sizes based on the complete set of columns
|
|
26
26
|
*/
|
|
@@ -28,7 +28,7 @@ const TableExtraHeader = class {
|
|
|
28
28
|
/**
|
|
29
29
|
* The sizes of the column
|
|
30
30
|
*/
|
|
31
|
-
sizes =
|
|
31
|
+
sizes = 'auto';
|
|
32
32
|
/**
|
|
33
33
|
* Event to let the table know it has to re render
|
|
34
34
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, d as getElement, h, e as Host } from './index-PW1zQoNr.js';
|
|
2
2
|
import { t as tableColumSizesOptions } from './constants-DdQ-S2l7.js';
|
|
3
|
-
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-
|
|
4
|
-
import { f as floatingMenuContainerClass } from './table-helpers-
|
|
5
|
-
import { f as isMobile } from './screens-
|
|
3
|
+
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-CwQG70_4.js';
|
|
4
|
+
import { f as floatingMenuContainerClass } from './table-helpers-CfQnOr9V.js';
|
|
5
|
+
import { f as isMobile } from './screens-CWO2YJCh.js';
|
|
6
6
|
import { c as cn } from './cn-BniKgfyU.js';
|
|
7
7
|
import { P as PAGINATION_DEFAULT_PAGE_SIZE, a as PAGINATION_DEFAULT_PAGE_SIZE_OPTIONS } from './constants-vyRrSf5s.js';
|
|
8
8
|
import './index-CO0T2jO4.js';
|
|
@@ -277,7 +277,7 @@ const Table = class {
|
|
|
277
277
|
this.hasRendered.emit();
|
|
278
278
|
}
|
|
279
279
|
render() {
|
|
280
|
-
return (h(Host, { key: '
|
|
280
|
+
return (h(Host, { key: '689a52bcd23a1b1c1a91a08082ef56e654978b2d', class: 'z-0 flex flex-col' }, h("p-table-container", { key: '23eb3993e303cc1c181d5be8f842088a17fe712f' }, this.enableHeader && (h("p-table-header", { key: '31a68c058c208a94aa67590ccb91ed38d3d78500', class: 'mb-8',
|
|
281
281
|
// quick filters
|
|
282
282
|
quickFilters: this.quickFilters, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, onQuickFilter: ({ detail }) => this.quickFilter.emit(detail),
|
|
283
283
|
// search
|
|
@@ -289,7 +289,7 @@ const Table = class {
|
|
|
289
289
|
//export
|
|
290
290
|
enableExport: this.enableExport, onExport: () => this.export.emit(),
|
|
291
291
|
//loading
|
|
292
|
-
loading: this.headerLoading }, this._hasCustomFilterSlot && (h("slot", { key: '
|
|
292
|
+
loading: this.headerLoading }, this._hasCustomFilterSlot && (h("slot", { key: '7da22148f67c47daf3c7f0b8afe156abcdc6e5a7', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (h("slot", { key: 'c7bce57c706a2b59e7ce9e827a01cc60fc62e91e', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), h("div", { key: '9e56098788eee0b67cc4034d5e92773e3d355a31', class: 'flex flex-1 flex-col' }, this._getRows(), h("slot", { key: '56233e1d3a8ed29bc8a355523d59d78ec2b4da8a', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (h("p-floating-menu-container", { usedInTable: true, class: floatingMenuContainerClass({
|
|
293
293
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
294
294
|
active: !!this.selectedRows?.length,
|
|
295
295
|
shown: this._floatingMenuShown,
|
|
@@ -299,7 +299,7 @@ const Table = class {
|
|
|
299
299
|
!!a.action &&
|
|
300
300
|
a.type === 'single'
|
|
301
301
|
? a.action(this.selectedRows[0], false)
|
|
302
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: '
|
|
302
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: 'c6ad42b16c755ecfd751dde0d655d5a874437fac',
|
|
303
303
|
// overall
|
|
304
304
|
hideOnSinglePage: this.hideOnSinglePage,
|
|
305
305
|
// page size select
|
|
@@ -357,7 +357,9 @@ const Table = class {
|
|
|
357
357
|
this._resizeTimeout = setTimeout(() => {
|
|
358
358
|
const mobile = isMobile();
|
|
359
359
|
// we hack this to any[] to make it work..
|
|
360
|
-
const actions =
|
|
360
|
+
const actions = [
|
|
361
|
+
...this._el.querySelectorAll(':scope > p-table-row-action'),
|
|
362
|
+
];
|
|
361
363
|
this._rowActionsRow = actions.filter(a => a.type === 'both' || a.type === 'single');
|
|
362
364
|
this._rowActionsFloatingAll = actions
|
|
363
365
|
.filter(a => (this.enableRowSelection &&
|
|
@@ -391,13 +393,13 @@ const Table = class {
|
|
|
391
393
|
}
|
|
392
394
|
_generateExtraHeaders() {
|
|
393
395
|
const definitions = this._el.querySelectorAll('p-table-extra-header');
|
|
394
|
-
let definitionsArray =
|
|
396
|
+
let definitionsArray = [...definitions];
|
|
395
397
|
definitionsArray = this._parseDefinitions(definitionsArray);
|
|
396
398
|
this._extraHeaders = definitionsArray;
|
|
397
399
|
}
|
|
398
400
|
_generateColumns() {
|
|
399
401
|
const definitions = this._el.querySelectorAll('p-table-column');
|
|
400
|
-
let definitionsArray =
|
|
402
|
+
let definitionsArray = [...definitions];
|
|
401
403
|
definitionsArray = this._parseDefinitions(definitionsArray);
|
|
402
404
|
this._columns = definitionsArray;
|
|
403
405
|
}
|
|
@@ -405,9 +407,7 @@ const Table = class {
|
|
|
405
407
|
if (!this._extraHeaders?.length) {
|
|
406
408
|
return null;
|
|
407
409
|
}
|
|
408
|
-
return (h("p-table-row", { variant: 'header-secondary', isLast: true }, this._extraHeaders.map((col, index) => {
|
|
409
|
-
return (h("p-table-cell", { definition: col, variant: 'header-secondary', checkboxOffset: index === 0 && this._enableRowSelection, index: index }, h("b", null, col.name)));
|
|
410
|
-
})));
|
|
410
|
+
return (h("p-table-row", { variant: 'header-secondary', isLast: true }, this._extraHeaders.map((col, index) => (h("p-table-cell", { definition: col, variant: 'header-secondary', checkboxOffset: index === 0 && this._enableRowSelection, index: index }, h("b", null, col.name))))));
|
|
411
411
|
}
|
|
412
412
|
_getHeader() {
|
|
413
413
|
return (h("p-table-row", { variant: 'header' }, this._columns.map((col, index) => (h("p-table-cell", { definition: col, value: col.name, variant: 'header', checkbox: index === 0 || col.hasCheckbox
|
|
@@ -420,7 +420,7 @@ const Table = class {
|
|
|
420
420
|
length: this.amountOfLoadingRows,
|
|
421
421
|
}, (_, i) => (h("p-table-row", { enableHover: this._enableRowSelection || this.enableRowClick, isLast: i === this.amountOfLoadingRows - 1 }, this._getLoadingColumns(i))));
|
|
422
422
|
}
|
|
423
|
-
if (
|
|
423
|
+
if (this._items.length === 0) {
|
|
424
424
|
return this._getEmptyState();
|
|
425
425
|
}
|
|
426
426
|
return this._items.map((item, index) => (h("p-table-row", { enableHover: this._enableRowSelection || this.enableRowClick, checked: this._selectionContains(index), onClick: ev => this._rowClick(ev, index), isLast: index === this._items.length - 1 }, this._getRowColumns(item, index), this._getActions(item, index))));
|
|
@@ -433,16 +433,12 @@ const Table = class {
|
|
|
433
433
|
return null;
|
|
434
434
|
}
|
|
435
435
|
_getRowColumns(item, index) {
|
|
436
|
-
return this._columns.map((col, colIndex) => {
|
|
437
|
-
return (h("p-table-cell", { definition: col, item: item, checkbox: colIndex === 0 || col.hasCheckbox ? this._getCheckbox(index) : null, index: colIndex, rowIndex: index }));
|
|
438
|
-
});
|
|
436
|
+
return this._columns.map((col, colIndex) => (h("p-table-cell", { definition: col, item: item, checkbox: colIndex === 0 || col.hasCheckbox ? this._getCheckbox(index) : null, index: colIndex, rowIndex: index })));
|
|
439
437
|
}
|
|
440
438
|
_getLoadingColumns(index) {
|
|
441
|
-
return this._columns.map((col, colIndex) => {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
: null, index: colIndex, rowIndex: index }));
|
|
445
|
-
});
|
|
439
|
+
return this._columns.map((col, colIndex) => (h("p-table-cell", { definition: col, variant: 'loading', checkbox: colIndex === 0 || col.hasCheckbox
|
|
440
|
+
? this._getCheckbox(index, 'loading')
|
|
441
|
+
: null, index: colIndex, rowIndex: index })));
|
|
446
442
|
}
|
|
447
443
|
_getCheckbox(rowIndex, variant = 'default') {
|
|
448
444
|
if (!this._enableRowSelection ||
|
|
@@ -554,7 +550,7 @@ const Table = class {
|
|
|
554
550
|
}
|
|
555
551
|
_selectionContains(index, returnIndex = false) {
|
|
556
552
|
const returnValue = this.selectedRows.findIndex(item => item.index === index);
|
|
557
|
-
return
|
|
553
|
+
return returnIndex ? returnValue : returnValue !== -1;
|
|
558
554
|
}
|
|
559
555
|
_selectionContainsAll() {
|
|
560
556
|
let returnValue = true;
|
|
@@ -633,8 +629,7 @@ const Table = class {
|
|
|
633
629
|
if (!el) {
|
|
634
630
|
return null;
|
|
635
631
|
}
|
|
636
|
-
if (el.
|
|
637
|
-
el.getAttribute('data-is-action') !== 'false') {
|
|
632
|
+
if (el.dataset.isAction !== null && el.dataset.isAction !== 'false') {
|
|
638
633
|
return el;
|
|
639
634
|
}
|
|
640
635
|
if (el?.tagName?.toLowerCase() === 'p-table-row') {
|
|
@@ -645,7 +640,7 @@ const Table = class {
|
|
|
645
640
|
_showFloatingMenu() {
|
|
646
641
|
let actions = this._rowActionsFloatingAll;
|
|
647
642
|
if (this.rowSelectionLimit === 1 &&
|
|
648
|
-
actions.
|
|
643
|
+
actions.some(a => (a.type === 'single' || a.type === 'both') && a.showFunction)) {
|
|
649
644
|
actions = actions.filter(a => a.type === 'multi' ||
|
|
650
645
|
!a.showFunction ||
|
|
651
646
|
a.showFunction(this.selectedRows[0]));
|