@paperless/core 2.22.0-alpha.24 → 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-37b27bb1.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-1b31b10f.entry.js → p-1ce28114.entry.js} +1 -1
- package/dist/build/p-2509308d.entry.js +1 -0
- package/dist/{paperless/p-0cd95c45.entry.js → build/p-389f92f8.entry.js} +1 -1
- package/dist/{paperless/p-71991854.entry.js → build/p-400ae3ad.entry.js} +1 -1
- package/dist/{paperless/p-63846f0b.entry.js → build/p-4793863e.entry.js} +1 -1
- package/dist/build/{p-8679628b.entry.js → p-4ad6dd58.entry.js} +1 -1
- package/dist/build/p-4d456377.entry.js +1 -0
- package/dist/build/{p-6084ee30.entry.js → p-4f068009.entry.js} +1 -1
- package/dist/build/p-6115ce1e.js +1 -0
- package/dist/{paperless/p-39e82216.entry.js → build/p-62c4c7d7.entry.js} +1 -1
- package/dist/build/p-6ff8d21c.entry.js +1 -0
- package/dist/build/{p-e9b9b751.entry.js → p-7ae963de.entry.js} +1 -1
- package/dist/build/p-846f47bd.entry.js +1 -0
- package/dist/build/{p-85fa7375.entry.js → p-870a63fb.entry.js} +1 -1
- package/dist/build/p-8bd7c93a.entry.js +1 -0
- package/dist/build/{p-0ff1c650.entry.js → p-8d0c1f36.entry.js} +1 -1
- package/dist/build/{p-c0cec615.entry.js → p-8ed529ba.entry.js} +1 -1
- package/dist/build/{p-f71f2778.entry.js → p-92bbdecc.entry.js} +1 -1
- package/dist/build/{p-ffcdc88a.entry.js → p-93bbde98.entry.js} +1 -1
- package/dist/{paperless/p-a5abda38.entry.js → build/p-958c8a2c.entry.js} +1 -1
- package/dist/build/{p-90cd1752.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/{paperless/p-42d1ea4a.entry.js → build/p-a23a90d6.entry.js} +1 -1
- package/dist/build/{p-73bf8fe0.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/build/{p-27b9a71a.entry.js → p-b37d0053.entry.js} +1 -1
- package/dist/{paperless/p-50ce7b68.entry.js → build/p-bfb06294.entry.js} +1 -1
- package/dist/{paperless/p-da8d3052.entry.js → build/p-c7835f10.entry.js} +1 -1
- package/dist/build/{p-588360e0.entry.js → p-cfe81f27.entry.js} +1 -1
- package/dist/{paperless/p-4874c70c.entry.js → build/p-d0d0a314.entry.js} +1 -1
- 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-fe72512a.entry.js → p-f1f160c0.entry.js} +1 -1
- package/dist/build/{p-0302637f.entry.js → p-f3daeb8f.entry.js} +1 -1
- package/dist/build/{p-fc0df371.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 +486 -491
- 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 +3 -3
- 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 +4 -4
- package/dist/cjs/p-badge_3.cjs.entry.js +6 -6
- package/dist/cjs/p-button-group.cjs.entry.js +4 -2
- package/dist/cjs/p-button_3.cjs.entry.js +11 -9
- package/dist/cjs/p-calendar.cjs.entry.js +16 -16
- package/dist/cjs/p-card-body.cjs.entry.js +2 -2
- package/dist/cjs/p-card-container.cjs.entry.js +3 -3
- package/dist/cjs/p-card-header.cjs.entry.js +4 -4
- package/dist/cjs/p-checkbox_3.cjs.entry.js +28 -28
- package/dist/cjs/p-content-slider.cjs.entry.js +7 -7
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2801
- package/dist/cjs/p-datepicker.cjs.entry.js +7 -7
- package/dist/cjs/p-divider.cjs.entry.js +3 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +5 -5
- package/dist/cjs/p-drawer.cjs.entry.js +4 -6
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +7 -7
- package/dist/cjs/p-empty-state_8.cjs.entry.js +56 -57
- package/dist/cjs/p-field_3.cjs.entry.js +15 -15
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/p-label.cjs.entry.js +4 -4
- package/dist/cjs/p-listing-item.cjs.entry.js +2 -2
- package/dist/cjs/p-listing-line.cjs.entry.js +2 -2
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body_4.cjs.entry.js +7 -7
- package/dist/cjs/p-navbar.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/p-navigation-section.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-title.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination_3.cjs.entry.js +22 -22
- package/dist/cjs/p-profile.cjs.entry.js +2 -2
- package/dist/cjs/p-radio.cjs.entry.js +4 -4
- package/dist/cjs/p-range.cjs.entry.js +5 -5
- package/dist/cjs/p-select.cjs.entry.js +12 -12
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +6 -6
- package/dist/cjs/p-tab-item.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/p-toggle.cjs.entry.js +1 -1
- package/dist/cjs/p-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/{screens-h1MTJhCu.js → screens-AithmFZ8.js} +3 -5
- package/dist/cjs/{table-helpers-DlLLYa6C.js → table-helpers-CWMTGgj6.js} +3 -2
- package/dist/cjs/{themed-host.component-_iELkx_M.js → themed-host.component-3UWKsF6_.js} +1 -3
- 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 -5
- 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 -4
- 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/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/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-DkVPZZHO.js → p-7Qldd8fE.js} +1 -1
- package/dist/components/{p-B_IuCmIa.js → p-B1MbDi-e.js} +1 -1
- package/dist/components/{p--Ty9opX6.js → p-BB7bmhRo.js} +1 -1
- package/dist/components/{p-CXQve1d1.js → p-BDDlblTI.js} +1 -1
- package/dist/components/{p-BFhNsUf5.js → p-BQIf6SbI.js} +1 -1
- package/dist/components/{p-Dg1-sR-k.js → p-BhnSWAm_.js} +1 -1
- package/dist/components/{p-Cu1DdpL1.js → p-BnyCseIX.js} +1 -1
- package/dist/components/{p-dcQaxaLO.js → p-BpnNRSNN.js} +1 -1
- package/dist/components/{p-DimI4bGI.js → p-BtLNLU5M.js} +1 -1
- package/dist/components/{p-DxO1Iohr.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-ClEzqSGY.js → p-Bzccvp_O.js} +1 -1
- package/dist/components/p-C8Vq1N_0.js +1 -0
- package/dist/components/{p-twaFgOgz.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-CC9NuAjl.js → p-CLXB3_-L.js} +1 -1
- package/dist/components/{p-C12vK-lE.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-CQmBWqSs.js → p-CZlpdpMV.js} +1 -1
- package/dist/components/{p-YgJHDU9e.js → p-C_DONK31.js} +1 -1
- package/dist/components/{p-BM-q6wR6.js → p-CdNBlyaj.js} +1 -1
- package/dist/components/{p-Dkpzyp0v.js → p-ChrB-4co.js} +1 -1
- package/dist/components/{p-IEo0WRRo.js → p-Cop5m_ZM.js} +1 -1
- package/dist/components/p-Cq9Ck17A.js +1 -0
- package/dist/components/{p-cCrFaGl7.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-DhdQKtm3.js → p-D29Sbsl9.js} +1 -1
- package/dist/components/p-D5wfsq08.js +1 -0
- package/dist/components/{p-ogrtZyO_.js → p-DAKk3DP1.js} +1 -1
- package/dist/components/{p-DxjOeZfz.js → p-DAb-3URQ.js} +1 -1
- package/dist/components/p-DPc49L2n.js +1 -0
- package/dist/components/{p-IaMFQebP.js → p-DfnFrfyL.js} +1 -1
- package/dist/components/p-DmzXDHw8.js +1 -0
- package/dist/components/{p-t3N4bS8X.js → p-Dolot2T0.js} +1 -1
- package/dist/components/{p-Cokzwe6N.js → p-Dw6QWvDh.js} +1 -1
- package/dist/components/{p-DNqCEr-g.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-DQ6XnmSU.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-BI0xWHkS.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-CyGCrWD3.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 +487 -492
- 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 +3 -3
- 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 +4 -4
- package/dist/esm/p-badge_3.entry.js +6 -6
- package/dist/esm/p-button-group.entry.js +4 -2
- package/dist/esm/p-button_3.entry.js +11 -9
- package/dist/esm/p-calendar.entry.js +16 -16
- package/dist/esm/p-card-body.entry.js +2 -2
- package/dist/esm/p-card-container.entry.js +3 -3
- package/dist/esm/p-card-header.entry.js +4 -4
- package/dist/esm/p-checkbox_3.entry.js +28 -28
- package/dist/esm/p-content-slider.entry.js +7 -7
- package/dist/esm/p-cropper.entry.js +2 -2801
- package/dist/esm/p-datepicker.entry.js +7 -7
- package/dist/esm/p-divider.entry.js +3 -3
- package/dist/esm/p-drawer-body_3.entry.js +5 -5
- package/dist/esm/p-drawer.entry.js +4 -6
- package/dist/esm/p-dropdown-menu-item_2.entry.js +7 -7
- package/dist/esm/p-empty-state_8.entry.js +56 -57
- package/dist/esm/p-field_3.entry.js +15 -15
- package/dist/esm/p-floating-menu-item.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/p-label.entry.js +4 -4
- package/dist/esm/p-listing-item.entry.js +2 -2
- package/dist/esm/p-listing-line.entry.js +2 -2
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body_4.entry.js +7 -7
- package/dist/esm/p-navbar.entry.js +2 -2
- package/dist/esm/p-navigation-item.entry.js +4 -4
- package/dist/esm/p-navigation-section.entry.js +2 -2
- package/dist/esm/p-navigation-title.entry.js +2 -2
- package/dist/esm/p-pagination_3.entry.js +22 -22
- package/dist/esm/p-profile.entry.js +2 -2
- package/dist/esm/p-radio.entry.js +4 -4
- package/dist/esm/p-range.entry.js +5 -5
- package/dist/esm/p-select.entry.js +12 -12
- package/dist/esm/p-stepper-item_2.entry.js +6 -6
- package/dist/esm/p-tab-item.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/p-toggle.entry.js +1 -1
- package/dist/esm/p-tooltip.entry.js +10 -10
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/{screens-B3sNjfzc.js → screens-CWO2YJCh.js} +3 -5
- package/dist/esm/{table-helpers-ChunMu-S.js → table-helpers-CfQnOr9V.js} +3 -2
- package/dist/esm/{themed-host.component-CIh9URD4.js → themed-host.component-Bc5wHkoH.js} +1 -3
- 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-37b27bb1.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-1b31b10f.entry.js → p-1ce28114.entry.js} +1 -1
- package/dist/paperless/p-2509308d.entry.js +1 -0
- package/dist/{build/p-0cd95c45.entry.js → paperless/p-389f92f8.entry.js} +1 -1
- package/dist/{build/p-71991854.entry.js → paperless/p-400ae3ad.entry.js} +1 -1
- package/dist/{build/p-63846f0b.entry.js → paperless/p-4793863e.entry.js} +1 -1
- package/dist/paperless/{p-8679628b.entry.js → p-4ad6dd58.entry.js} +1 -1
- package/dist/paperless/p-4d456377.entry.js +1 -0
- package/dist/paperless/{p-6084ee30.entry.js → p-4f068009.entry.js} +1 -1
- package/dist/{build/p-39e82216.entry.js → paperless/p-62c4c7d7.entry.js} +1 -1
- package/dist/paperless/p-6ff8d21c.entry.js +1 -0
- package/dist/paperless/{p-e9b9b751.entry.js → p-7ae963de.entry.js} +1 -1
- package/dist/paperless/p-846f47bd.entry.js +1 -0
- package/dist/paperless/{p-85fa7375.entry.js → p-870a63fb.entry.js} +1 -1
- package/dist/paperless/p-8bd7c93a.entry.js +1 -0
- package/dist/paperless/{p-0ff1c650.entry.js → p-8d0c1f36.entry.js} +1 -1
- package/dist/paperless/{p-c0cec615.entry.js → p-8ed529ba.entry.js} +1 -1
- package/dist/paperless/{p-f71f2778.entry.js → p-92bbdecc.entry.js} +1 -1
- package/dist/paperless/{p-ffcdc88a.entry.js → p-93bbde98.entry.js} +1 -1
- package/dist/{build/p-a5abda38.entry.js → paperless/p-958c8a2c.entry.js} +1 -1
- package/dist/paperless/{p-90cd1752.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/{build/p-42d1ea4a.entry.js → paperless/p-a23a90d6.entry.js} +1 -1
- package/dist/paperless/{p-73bf8fe0.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/paperless/{p-27b9a71a.entry.js → p-b37d0053.entry.js} +1 -1
- package/dist/{build/p-50ce7b68.entry.js → paperless/p-bfb06294.entry.js} +1 -1
- package/dist/{build/p-da8d3052.entry.js → paperless/p-c7835f10.entry.js} +1 -1
- package/dist/paperless/{p-588360e0.entry.js → p-cfe81f27.entry.js} +1 -1
- package/dist/{build/p-4874c70c.entry.js → paperless/p-d0d0a314.entry.js} +1 -1
- 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-fe72512a.entry.js → p-f1f160c0.entry.js} +1 -1
- package/dist/paperless/{p-0302637f.entry.js → p-f3daeb8f.entry.js} +1 -1
- package/dist/paperless/{p-fc0df371.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 +401 -4857
- package/hydrate/index.mjs +401 -4857
- 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-0ace3259.entry.js +0 -1
- package/dist/build/p-1204b8ec.entry.js +0 -1
- package/dist/build/p-12f9e8fd.entry.js +0 -1
- package/dist/build/p-2af31a3d.entry.js +0 -1
- package/dist/build/p-387cdb34.entry.js +0 -1
- package/dist/build/p-47aa5fcc.js +0 -1
- package/dist/build/p-623e756e.entry.js +0 -1
- package/dist/build/p-6995f239.entry.js +0 -1
- package/dist/build/p-6e0cdef0.entry.js +0 -1
- package/dist/build/p-81ce830d.entry.js +0 -1
- package/dist/build/p-B3sNjfzc.js +0 -1
- package/dist/build/p-DVCJlilm.js +0 -1
- package/dist/build/p-DiJj8rmO.js +0 -1
- package/dist/build/p-a2e9ea67.entry.js +0 -1
- package/dist/build/p-b9c70c1e.entry.js +0 -1
- package/dist/build/p-bc2ffc30.entry.js +0 -1
- package/dist/build/p-d8d7d211.entry.js +0 -1
- package/dist/build/p-d966a625.entry.js +0 -1
- package/dist/build/p-e145d906.entry.js +0 -3
- package/dist/build/p-f06b0222.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/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-B3sNjfzc.js +0 -1
- package/dist/components/p-BEg0OIem.js +0 -1
- package/dist/components/p-BjTqIvvg.js +0 -1
- package/dist/components/p-BrUYoWaH.js +0 -1
- package/dist/components/p-C17XD-H9.js +0 -1
- package/dist/components/p-CKsghdpb.js +0 -1
- package/dist/components/p-CnrqNb4n.js +0 -1
- package/dist/components/p-DVCJlilm.js +0 -1
- package/dist/components/p-DYye99bH.js +0 -1
- package/dist/components/p-DiJj8rmO.js +0 -1
- package/dist/components/p-a5kQoWAV.js +0 -1
- package/dist/components/p-illustration-deprecated.d.ts +0 -11
- package/dist/components/p-illustration-deprecated.js +0 -1
- package/dist/components/p-qiEuZx_b.js +0 -1
- package/dist/components/p-v_LjXNk5.js +0 -1
- package/dist/components/p-zR_ED6Ps.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/paperless/p--Uc_OJAV.js +0 -1
- package/dist/paperless/p-0ace3259.entry.js +0 -1
- package/dist/paperless/p-1204b8ec.entry.js +0 -1
- package/dist/paperless/p-12f9e8fd.entry.js +0 -1
- package/dist/paperless/p-2af31a3d.entry.js +0 -1
- package/dist/paperless/p-387cdb34.entry.js +0 -1
- package/dist/paperless/p-623e756e.entry.js +0 -1
- package/dist/paperless/p-6995f239.entry.js +0 -1
- package/dist/paperless/p-6e0cdef0.entry.js +0 -1
- package/dist/paperless/p-81ce830d.entry.js +0 -1
- package/dist/paperless/p-B3sNjfzc.js +0 -1
- package/dist/paperless/p-DVCJlilm.js +0 -1
- package/dist/paperless/p-DiJj8rmO.js +0 -1
- package/dist/paperless/p-a2e9ea67.entry.js +0 -1
- package/dist/paperless/p-b9c70c1e.entry.js +0 -1
- package/dist/paperless/p-bc2ffc30.entry.js +0 -1
- package/dist/paperless/p-d8d7d211.entry.js +0 -1
- package/dist/paperless/p-d966a625.entry.js +0 -1
- package/dist/paperless/p-e145d906.entry.js +0 -3
- package/dist/paperless/p-f06b0222.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-BO6McqNQ.js → p-V194S7Dm.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-dOw_mqvY.js → p-BdmdNQNa.js} +0 -0
- 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-BO6McqNQ.js → p-V194S7Dm.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
|
@@ -61,7 +61,7 @@ export class PaginationPages {
|
|
|
61
61
|
this._generate();
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: '12b419fd882b9601dd5aa69a9a65dbeea5475493' }, h("div", { key: '119cee7ccbe4e06a3483f966530141b64fd778c7', class: pagination({
|
|
65
65
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
66
66
|
}) }, this._set?.map(p => {
|
|
67
67
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -128,7 +128,7 @@ export class PaginationPages {
|
|
|
128
128
|
_carouselDisabled = (type) => {
|
|
129
129
|
if (type === 'next') {
|
|
130
130
|
const nextPage = this.page + 1;
|
|
131
|
-
if (nextPage > this._pages
|
|
131
|
+
if (nextPage > this._pages.at(-1)) {
|
|
132
132
|
return true;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -143,9 +143,9 @@ export class PaginationPages {
|
|
|
143
143
|
_pageClick = (p) => this._changePage(p);
|
|
144
144
|
_enterPress(p) {
|
|
145
145
|
if (typeof p === 'string') {
|
|
146
|
-
p = parseInt(p);
|
|
146
|
+
p = Number.parseInt(p);
|
|
147
147
|
}
|
|
148
|
-
if (isNaN(p)) {
|
|
148
|
+
if (Number.isNaN(p)) {
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
151
|
if (p < 1) {
|
|
@@ -167,7 +167,9 @@ export class PaginationPages {
|
|
|
167
167
|
}
|
|
168
168
|
const pages = Math.ceil(this.total / this.pageSize);
|
|
169
169
|
this.pagesChange.emit(pages);
|
|
170
|
-
return
|
|
170
|
+
return Array.from({ length: pages })
|
|
171
|
+
.fill('')
|
|
172
|
+
.map((_, i) => i + 1);
|
|
171
173
|
}
|
|
172
174
|
_generateSet = (range = 1, enableBoundaries = true) => {
|
|
173
175
|
const totalPages = this._pages.length;
|
|
@@ -179,7 +181,7 @@ export class PaginationPages {
|
|
|
179
181
|
if (end > totalPages) {
|
|
180
182
|
end = totalPages;
|
|
181
183
|
start = totalPages - range * 2;
|
|
182
|
-
start = start
|
|
184
|
+
start = Math.max(start, 1);
|
|
183
185
|
}
|
|
184
186
|
if (start <= 1) {
|
|
185
187
|
start = 1;
|
|
@@ -218,8 +220,7 @@ export class PaginationPages {
|
|
|
218
220
|
set.push({
|
|
219
221
|
type: 'page',
|
|
220
222
|
value: 1,
|
|
221
|
-
}
|
|
222
|
-
set.push({
|
|
223
|
+
}, {
|
|
223
224
|
type: 'ellipsis',
|
|
224
225
|
dropdownIndex,
|
|
225
226
|
options: Array.from({ length: start - 2 }, (_, i) => i + 2),
|
|
@@ -245,12 +246,11 @@ export class PaginationPages {
|
|
|
245
246
|
type: 'ellipsis',
|
|
246
247
|
dropdownIndex,
|
|
247
248
|
options: Array.from({ length: totalPages - end - 1 }, (_, i) => i + end + 1),
|
|
248
|
-
}
|
|
249
|
-
dropdownIndex++;
|
|
250
|
-
set.push({
|
|
249
|
+
}, {
|
|
251
250
|
type: 'page',
|
|
252
|
-
value: this._pages
|
|
251
|
+
value: this._pages.at(-1),
|
|
253
252
|
});
|
|
253
|
+
dropdownIndex++;
|
|
254
254
|
}
|
|
255
255
|
if (enableBoundaries) {
|
|
256
256
|
set.push(next);
|
|
@@ -61,12 +61,12 @@ export class Pagination {
|
|
|
61
61
|
_hasPaginationPages = true;
|
|
62
62
|
render() {
|
|
63
63
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: 'bb991c6f71f5824182288a5976a1ed5d7a5d6ae1' }, h("div", { key: '80bc0a9d7440759d64b46d5545fe1e3ab2d5b339', class: pagination({
|
|
65
65
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
66
66
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
67
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
67
|
+
}) }, 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 &&
|
|
68
68
|
this.hideOnSinglePage &&
|
|
69
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
69
|
+
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 }) => {
|
|
70
70
|
this._hasPaginationPages = detail > 1;
|
|
71
71
|
this.pagesChange.emit(detail);
|
|
72
72
|
} })))));
|
|
@@ -73,18 +73,18 @@ export class PaginationSize {
|
|
|
73
73
|
this._setLocales();
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(ThemedHost, { key: '
|
|
76
|
+
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({
|
|
77
77
|
active: this.dropdownIsOpen,
|
|
78
|
-
}), slot: 'trigger' }, h("p", { key: '
|
|
78
|
+
}), slot: 'trigger' }, h("p", { key: '3477755b3365205fef5a3e3f8f465f0d1d41ddd1', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
79
79
|
? this.itemTemplate(this.size)
|
|
80
|
-
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '
|
|
80
|
+
: this._defaultItemTemplate(this.size)), h("p-icon", { key: 'f08b75643a97c86192e87893c80ad67b9cf61a9d', class: cn([
|
|
81
81
|
'flex-shrink-0',
|
|
82
82
|
'group-hover/pagination-size-trigger:text-storm-500',
|
|
83
83
|
'dark:group-hover/pagination-size-trigger:text-white',
|
|
84
84
|
], {
|
|
85
85
|
'text-storm-300 dark:text-hurricane-200': !this.dropdownIsOpen,
|
|
86
86
|
'text-storm-500 dark:text-white': !!this.dropdownIsOpen,
|
|
87
|
-
}), variant: 'double-caret', size: 'sm' })), h("slot", { key: '
|
|
87
|
+
}), 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
|
|
88
88
|
? this.itemTemplate(option)
|
|
89
89
|
: this._defaultItemTemplate(option))))))));
|
|
90
90
|
}
|
|
@@ -28,7 +28,7 @@ export class Profile {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const content = this._getContent();
|
|
31
|
-
return (h(ThemedHost, { key: '
|
|
31
|
+
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)));
|
|
32
32
|
}
|
|
33
33
|
slotchange() {
|
|
34
34
|
this._checkDropdownSlot();
|
|
@@ -23,13 +23,13 @@ export class Range {
|
|
|
23
23
|
valueChange;
|
|
24
24
|
render() {
|
|
25
25
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
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 => {
|
|
27
27
|
const value = ev.target.value;
|
|
28
|
-
this.value = parseFloat(value);
|
|
28
|
+
this.value = Number.parseFloat(value);
|
|
29
29
|
this.valueChange.emit(value);
|
|
30
|
-
} }), h("div", { key: '
|
|
30
|
+
} }), h("div", { key: 'f995f4c46fe41f30f4702636192835fa9a62141f', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-indigo-600', style: {
|
|
31
31
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
32
|
-
} })), h("p-icon", { key: '
|
|
32
|
+
} })), h("p-icon", { key: 'f10c499d92c17fa6ad450416490f42155f7b2f22', variant: 'plus' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-range"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import { childOfComposed, cn } from "../../../utils";
|
|
3
2
|
import { cva } from "class-variance-authority";
|
|
4
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
|
+
import { childOfComposed, cn } from "../../../utils";
|
|
5
5
|
import { SELECT_DEFAULT_MAX_DISPLAYED_ITEMS } from "../../../utils/constants";
|
|
6
6
|
const multiContainer = cva([
|
|
7
7
|
'flex items-center gap-2',
|
|
@@ -322,8 +322,8 @@ export class Select {
|
|
|
322
322
|
if (this.error?.length) {
|
|
323
323
|
buttonIcon = 'warning';
|
|
324
324
|
}
|
|
325
|
-
return (h(ThemedHost, { key: '
|
|
326
|
-
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, h("div", { key: '
|
|
325
|
+
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 &&
|
|
326
|
+
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()))));
|
|
327
327
|
}
|
|
328
328
|
documentClickHandler(event) {
|
|
329
329
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -362,7 +362,7 @@ export class Select {
|
|
|
362
362
|
return;
|
|
363
363
|
}
|
|
364
364
|
this.value = value;
|
|
365
|
-
if (
|
|
365
|
+
if (value.length === 0) {
|
|
366
366
|
this._selectedItem = [];
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
@@ -402,7 +402,7 @@ export class Select {
|
|
|
402
402
|
: JSON.stringify(itemIdentifier);
|
|
403
403
|
return parsedItemIdentifier === parsedValue;
|
|
404
404
|
});
|
|
405
|
-
this._selectValue(
|
|
405
|
+
this._selectValue(item ?? value, false);
|
|
406
406
|
}
|
|
407
407
|
_selectValue(item, forceBlur = true) {
|
|
408
408
|
let value = !!this.valueKey &&
|
|
@@ -477,17 +477,17 @@ export class Select {
|
|
|
477
477
|
_getItems() {
|
|
478
478
|
let items = this._items.map(item => {
|
|
479
479
|
const isSelected = this.multi && !!this._selectedItem && Array.isArray(this._selectedItem)
|
|
480
|
-
? this._selectedItem.
|
|
480
|
+
? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
|
|
481
481
|
: item[this._identifierKey] ===
|
|
482
482
|
this._selectedItem?.[this._identifierKey];
|
|
483
483
|
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)));
|
|
484
484
|
});
|
|
485
|
-
if (
|
|
485
|
+
if (this._items.length === 0) {
|
|
486
486
|
items = [
|
|
487
487
|
h("p", { class: 'w-full p-2 text-center text-sm text-storm-400 dark:text-hurricane-200', slot: 'items' }, this.emptyStateText),
|
|
488
488
|
];
|
|
489
489
|
}
|
|
490
|
-
if (this.enableSelectAll && this._items.length) {
|
|
490
|
+
if (this.enableSelectAll && this._items.length > 0) {
|
|
491
491
|
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)));
|
|
492
492
|
}
|
|
493
493
|
if (this.enableAutocomplete) {
|
|
@@ -513,7 +513,7 @@ export class Select {
|
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
515
|
const calced = this._inputRef.clientWidth - 16;
|
|
516
|
-
this._multiContainerRef.style.maxWidth = `${calced
|
|
516
|
+
this._multiContainerRef.style.maxWidth = `${Math.max(calced, 16)}px`;
|
|
517
517
|
}
|
|
518
518
|
_setCheckSelectedItemsTimeout() {
|
|
519
519
|
if (this._checkSelectedItemsTimeout) {
|
|
@@ -567,7 +567,7 @@ export class Select {
|
|
|
567
567
|
error: !!this.error?.length,
|
|
568
568
|
enableTextWrap: this.enableTextWrap && !isSelection,
|
|
569
569
|
}) }, item[isSelection
|
|
570
|
-
? this.selectionDisplayKey ?? this.displayKey
|
|
570
|
+
? (this.selectionDisplayKey ?? this.displayKey)
|
|
571
571
|
: this.displayKey]));
|
|
572
572
|
if (this.avatarKey) {
|
|
573
573
|
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({
|
|
@@ -579,7 +579,7 @@ export class Select {
|
|
|
579
579
|
if (this.iconKey && (!isSelection || this.showIconOnSelectedItem)) {
|
|
580
580
|
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) &&
|
|
581
581
|
(!isSelectedInMenu || !!this.applyClassOnSelectedItemInMenu)
|
|
582
|
-
? item?.[this.iconClassKey] ?? ''
|
|
582
|
+
? (item?.[this.iconClassKey] ?? '')
|
|
583
583
|
: ''), variant: item[this.iconKey] })), h("div", { class: textContainer({
|
|
584
584
|
variant: 'default',
|
|
585
585
|
error: !!this.error?.length,
|
|
@@ -708,8 +708,8 @@ export class Select {
|
|
|
708
708
|
"references": {
|
|
709
709
|
"IconVariant": {
|
|
710
710
|
"location": "import",
|
|
711
|
-
"path": "
|
|
712
|
-
"id": "src/
|
|
711
|
+
"path": "../../../types/icon",
|
|
712
|
+
"id": "src/types/icon.ts::IconVariant",
|
|
713
713
|
"referenceLocation": "IconVariant"
|
|
714
714
|
}
|
|
715
715
|
}
|
|
@@ -1261,8 +1261,8 @@ export class Select {
|
|
|
1261
1261
|
"references": {
|
|
1262
1262
|
"IconVariant": {
|
|
1263
1263
|
"location": "import",
|
|
1264
|
-
"path": "
|
|
1265
|
-
"id": "src/
|
|
1264
|
+
"path": "../../../types/icon",
|
|
1265
|
+
"id": "src/types/icon.ts::IconVariant",
|
|
1266
1266
|
"referenceLocation": "IconVariant"
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, h } from "@stencil/core";
|
|
2
|
-
import { getTableCellColumnClasses, objectGetByPath } from "../../../../utils";
|
|
3
2
|
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
3
|
+
import { getTableCellColumnClasses, objectGetByPath } from "../../../../utils";
|
|
4
4
|
import { cn } from "../../../../utils/cn";
|
|
5
5
|
/*
|
|
6
6
|
With this, we shall hack the system in ways no one would ever have thought.
|
|
@@ -78,7 +78,7 @@ export class TableCell {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
|
-
value: this.value ?? this.definition?.path
|
|
81
|
+
value: (this.value ?? this.definition?.path)
|
|
82
82
|
? objectGetByPath(this.item, this.definition.path)
|
|
83
83
|
: null,
|
|
84
84
|
item: this.item,
|
|
@@ -87,14 +87,14 @@ export class TableCell {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(ThemedHost, { key: '
|
|
90
|
+
return (h(ThemedHost, { key: 'f3fb25607a21580f978f979b6ed0c64c908c597e', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false && (h(Fragment, { key: '52e2728554816fd8251bf81fdd6f4cac251e5dc0' }, h("div", { key: '5c09e0c5618a47a1ca76183d33d9576f051ea8fd', class: 'pl-8' }), h("div", { key: '0573b90ef4b7cf77ebc64ca31a172e97215bfb22', class: 'text-storm-300 text-storm-400 text-storm-500 dark:text-hurricane-200 dark:text-white' }), h("div", { key: '5e127f4668aedd4fcadb1007c6552eb1d0938872', class: 'justify-start justify-end justify-center' }), h("div", { key: 'd40b45b508e3828d7d15372cb530a38cc640ba4b', class: 'font-semibold text-storm-300 text-storm-400 text-storm-500' }), h("div", { key: '400c5c5b91291dc7da77141b2677977cdd5dc1eb', class: 'w-12/12 w-1/12 w-10/12 w-11/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12' }), h("div", { key: '16f0664a095857f39abeb6265c55dc9aa40ebc60', class: 'tablet:w-12/12 tablet:w-1/12 tablet:w-10/12 tablet:w-11/12 tablet:w-2/12 tablet:w-3/12 tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12 tablet:w-9/12' }), h("div", { key: 'c46eef18f079e003831b38a75789511f4e3a8cfe', class: 'desktop-xs:w-12/12 desktop-xs:w-1/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12' }), h("div", { key: '62ea8c4c005f2d407c6ef192e8a8ea2fa5431d27', class: 'desktop-xs:w-12/12 desktop-xs:w-1/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12' }), h("div", { key: '4f3695c7f62a8c0d604d72fe1d1e2b2bc09a6a80', class: 'desktop-sm:w-12/12 desktop-sm:w-1/12 desktop-sm:w-10/12 desktop-sm:w-11/12 desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12 desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12' }), h("div", { key: '4273bbb144fe47337f4626a55bc4054f944da1fa', class: 'desktop:w-12/12 desktop:w-1/12 desktop:w-10/12 desktop:w-11/12 desktop:w-2/12 desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12 desktop:w-7/12 desktop:w-8/12 desktop:w-9/12' }), h("div", { key: '5cba23c86aab28353000e3ca6a9b06942b59a442', class: 'desktop-lg:w-12/12 desktop-lg:w-1/12 desktop-lg:w-10/12 desktop-lg:w-11/12 desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12 desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12' }), h("div", { key: '3fbb89c1d4c48d7e50050981f20cd56cf808c0d7', class: 'desktop-xl:w-12/12 desktop-xl:w-1/12 desktop-xl:w-10/12 desktop-xl:w-11/12 desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12 desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12' }), h("div", { key: '942dca4f70d2fac538014f63edf0c7b5e4e4d5a8', class: 'flex hidden group-hover:flex group-hover:hidden' }), h("div", { key: 'cfdc8c1f716c737a83693d503e4094ce09aba34c', class: 'tablet:flex tablet:hidden tablet:group-hover:flex tablet:group-hover:hidden' }), h("div", { key: '2b04268398413cf29c15238b704a8c44461fffe4', class: 'desktop-xs:flex desktop-xs:hidden desktop-xs:group-hover:flex desktop-xs:group-hover:hidden' }), h("div", { key: 'cb6c3a06945d446c99787e299ef456dd55d623aa', class: 'desktop-sm:flex desktop-sm:hidden desktop-sm:group-hover:flex desktop-sm:group-hover:hidden' }), h("div", { key: 'e11b89a93ba9f4d19007e7b0225d9fc607a8a3f8', class: 'desktop:flex desktop:hidden desktop:group-hover:flex desktop:group-hover:hidden' }), h("div", { key: '794be240ed5b1ffff17cf498d951ceee827e6f7c', class: 'desktop-lg:flex desktop-lg:hidden desktop-lg:group-hover:flex desktop-lg:group-hover:hidden' }), h("div", { key: '22e040b155aa8db113feb66960cc859894861a19', class: 'desktop-xl:flex desktop-xl:hidden desktop-xl:group-hover:flex desktop-xl:group-hover:hidden' }), h("div", { key: '1b21d951c713572b637996fcaef6f4131bc843f4', class: 'pr-0 pr-4 last-of-type:pr-0' }), h("div", { key: 'b7726e7a5acc327fc6ef90bb9c7e4df6bb48e175', class: 'tablet:pr-0 tablet:pr-4' }), h("div", { key: '0e93371c6d5ee34ff9487d1f492f24ee032d0c42', class: 'desktop-xs:pr-0 desktop-xs:pr-4' }), h("div", { key: 'f9e24890ca1b702077ad9969aa4ef398e8399421', class: 'desktop-sm:pr-0 desktop-sm:pr-4' }), h("div", { key: '5e510708d447ed5c61ea821579100acb9c452b7a', class: 'desktop:pr-0 desktop:pr-4' }), h("div", { key: '2f24285b64fcd137f5ca709490ff0943b65e10b2', class: 'desktop-lg:pr-0 desktop-lg:pr-4' }), h("div", { key: 'f2249ff1780dd38fce8919cfa4dfdae51ccce6cc', class: 'desktop-xl:pr-0 desktop-xl:pr-4' })))));
|
|
91
91
|
}
|
|
92
92
|
_getContent() {
|
|
93
93
|
if (this.variant === 'loading') {
|
|
94
94
|
return (h("p-loader", { variant: 'ghost', class: 'h-6 w-[calc(100%-1rem)] flex-1 rounded' }));
|
|
95
95
|
}
|
|
96
96
|
const align = this.variant === 'header'
|
|
97
|
-
? this.definition.headerAlign ?? this.definition.align
|
|
97
|
+
? (this.definition.headerAlign ?? this.definition.align)
|
|
98
98
|
: this.definition.align;
|
|
99
99
|
return (h("div", { class: cn('overflow-hidden text-ellipsis', {
|
|
100
100
|
flex: this.definition.flex,
|
|
@@ -100,12 +100,12 @@ export class TableFooter {
|
|
|
100
100
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 200);
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
|
-
return (h(ThemedHost, { key: '
|
|
103
|
+
return (h(ThemedHost, { key: 'b5ab268371811514f930f44fedea65da21cd6cae' }, h("div", { key: 'a98c709cc02b6b15fc7923520921f35d577ce78f', class: footer({
|
|
104
104
|
pinned: this._isPinned,
|
|
105
105
|
hidden: this._hidden,
|
|
106
106
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
107
107
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
108
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
108
|
+
this.total > 0 && (h("p-pagination", { key: '9bbe8d8de8dce310f2799829469b6826642aa295', 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) })))));
|
|
109
109
|
}
|
|
110
110
|
_changePageSize(s) {
|
|
111
111
|
if (!s) {
|
|
@@ -122,14 +122,14 @@ export class TableFooter {
|
|
|
122
122
|
const modalBody = modal.shadowRoot.querySelector('p-modal-body');
|
|
123
123
|
const innerContent = modalBody.shadowRoot.querySelector('div');
|
|
124
124
|
const innerContentComputed = getComputedStyle(innerContent);
|
|
125
|
-
const modalPaddingBottom = parseInt(innerContentComputed.paddingBottom, 10);
|
|
125
|
+
const modalPaddingBottom = Number.parseInt(innerContentComputed.paddingBottom, 10);
|
|
126
126
|
this._el.style.bottom = `-${modalPaddingBottom}px`;
|
|
127
127
|
this._el.style.marginBottom = `-${modalPaddingBottom - 1}px`;
|
|
128
128
|
}
|
|
129
129
|
if (layout && !modal) {
|
|
130
130
|
const innerContent = layout.shadowRoot.querySelector('.content');
|
|
131
131
|
const innerContentComputed = getComputedStyle(innerContent);
|
|
132
|
-
const layoutPaddingBottom = parseInt(innerContentComputed.paddingBottom, 10);
|
|
132
|
+
const layoutPaddingBottom = Number.parseInt(innerContentComputed.paddingBottom, 10);
|
|
133
133
|
this._el.style.bottom = `-${layoutPaddingBottom}px`;
|
|
134
134
|
this._el.style.marginBottom = `-${layoutPaddingBottom - 1}px`;
|
|
135
135
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { debounceTime, distinctUntilChanged, Subject } from "rxjs";
|
|
4
|
-
import { formatTranslation, getLocaleComponentStrings, } from "../../../../utils/localization";
|
|
5
4
|
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
5
|
+
import { formatTranslation, getLocaleComponentStrings, } from "../../../../utils/localization";
|
|
6
6
|
const header = cva([
|
|
7
7
|
'flex flex-col gap-2 z-[1]',
|
|
8
8
|
'w-full',
|
|
@@ -11,9 +11,8 @@ const header = cva([
|
|
|
11
11
|
]);
|
|
12
12
|
export class TableHeader {
|
|
13
13
|
_defaultFilterButtonTemplate = () => formatTranslation(this._locales.filter);
|
|
14
|
-
_defaultActionButtonTemplate = (amount) => this.actionText
|
|
15
|
-
|
|
16
|
-
: formatTranslation(amount === 0
|
|
14
|
+
_defaultActionButtonTemplate = (amount) => this.actionText ??
|
|
15
|
+
formatTranslation(amount === 0
|
|
17
16
|
? this._locales.edit
|
|
18
17
|
: amount === 1
|
|
19
18
|
? this._locales.edit_single
|
|
@@ -131,15 +130,15 @@ export class TableHeader {
|
|
|
131
130
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
132
131
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
133
132
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
134
|
-
return (h(ThemedHost, { key: '
|
|
135
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '
|
|
133
|
+
return (h(ThemedHost, { key: 'dcf65ce62e7dc90f0c45e7748fd23872f21e7fad' }, h("div", { key: '3082ccae779f57c8812afc4b2400b20c87dd22a0', class: header() }, this.loading && (h("p-loader", { key: 'cbcf94e4afb27f7ee22b4adfbcadd9d72db2a189', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
134
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '04c40b4406a49b0faf09c1e72ffe0d3b64e54548', class: 'flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '409423868e33814d87381c29d41cfede57deead0', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: '51c257a5ad8c65e84dac192b86c2cb291435884e', class: 'hidden desktop-xs:flex' }, quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
136
135
|
? item.text
|
|
137
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '
|
|
136
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '6f8295a5c359b799f2f03d82e65d4f9e4acb5109', class: 'flex flex-col justify-end gap-2 desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center' }, this.enableSearch && (h("p-field", { key: 'e52e1dbe939f318c711e0f5ae25e8c667f6fcf31', icon: 'search', class: 'desktop-xs:max-w-60', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: 'b914ffa439de0484c5528fa9c02b4a32dc853c27', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: '5ea25448415e1b54883dc86059192b065cb23093', icon: 'filter', variant: 'secondary', class: `w-full ${this.enableFilterDesktop
|
|
138
137
|
? 'desktop-xs:w-auto'
|
|
139
138
|
: 'desktop-xs:hidden'}`, onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
140
139
|
? this.filterButtonTemplate()
|
|
141
140
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
142
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '
|
|
141
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '38dc1a4aa1902f41b4b3e3cb85da7d442fc98fd0', variant: 'vertical', class: 'hidden h-4 tablet:flex dark:text-white/15' })), !this.loading && this.enableExport && (h("p-button", { key: 'f8180ecb38e763dc2cf045c3c8e33ed276d591ab', variant: 'secondary', icon: 'upload', class: 'desktop-xs:auto w-full', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '24b7bee12f89bb16e4e4d690ee03564fcd106638', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '6c3739a262107b564f6418a605ba6e16943c2c36', class: 'fixed bottom-0 left-0 z-[2] block w-full border border-solid border-transparent bg-white p-4 desktop-xs:hidden dark:border-t-hurricane-400 dark:bg-hurricane-500' }, this._buttonTemplate(true))))));
|
|
143
142
|
}
|
|
144
143
|
async _setLocales() {
|
|
145
144
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -445,8 +444,8 @@ export class TableHeader {
|
|
|
445
444
|
"references": {
|
|
446
445
|
"IconVariant": {
|
|
447
446
|
"location": "import",
|
|
448
|
-
"path": "
|
|
449
|
-
"id": "src/
|
|
447
|
+
"path": "../../../../types/icon",
|
|
448
|
+
"id": "src/types/icon.ts::IconVariant",
|
|
450
449
|
"referenceLocation": "IconVariant"
|
|
451
450
|
}
|
|
452
451
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { asBoolean } from "../../../../utils/as-boolean";
|
|
4
3
|
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
5
|
-
|
|
4
|
+
import { asBoolean } from "../../../../utils/as-boolean";
|
|
5
|
+
const row = cva(['flex min-w-[calc(100%-0.5rem)] flex-col', 'group', 'relative'], {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
|
-
default: [
|
|
8
|
+
default: ['px-3 m-1', 'text-sm text-storm-500', 'dark:text-white'],
|
|
9
9
|
header: null,
|
|
10
|
-
|
|
11
|
-
secondary: [
|
|
10
|
+
'header-secondary': 'mb-4',
|
|
11
|
+
secondary: ['px-4', 'font-ambit text-lg font-bold'],
|
|
12
12
|
},
|
|
13
13
|
enableHover: {
|
|
14
14
|
true: null,
|
|
@@ -21,69 +21,69 @@ const row = cva(["flex min-w-[calc(100%-0.5rem)] flex-col", "group", "relative"]
|
|
|
21
21
|
},
|
|
22
22
|
compoundVariants: [
|
|
23
23
|
{
|
|
24
|
-
variant:
|
|
24
|
+
variant: 'default',
|
|
25
25
|
enableHover: true,
|
|
26
|
-
class: [
|
|
26
|
+
class: ['rounded-lg transition-colors', 'hover:cursor-pointer'],
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
variant:
|
|
29
|
+
variant: 'default',
|
|
30
30
|
enableHover: true,
|
|
31
31
|
checked: false,
|
|
32
|
-
class: [
|
|
32
|
+
class: ['hover:bg-off-white-300', 'dark:hover:bg-hurricane-600'],
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
variant:
|
|
35
|
+
variant: 'default',
|
|
36
36
|
checked: true,
|
|
37
37
|
class: [
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
'rounded-lg transition-colors',
|
|
39
|
+
'bg-off-white-300 dark:bg-hurricane-400 dark:hover:bg-hurricane-400',
|
|
40
40
|
],
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
variant: [
|
|
44
|
-
class: [
|
|
43
|
+
variant: ['secondary', 'header-secondary'],
|
|
44
|
+
class: ['bg-off-white-300 rounded-lg', 'dark:bg-hurricane-400'],
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
variant: [
|
|
47
|
+
variant: ['header', 'header-secondary'],
|
|
48
48
|
class: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
'px-4',
|
|
50
|
+
'text-xs font-normal text-storm-400',
|
|
51
|
+
'dark:text-hurricane-200',
|
|
52
52
|
],
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
});
|
|
56
|
-
const content = cva(
|
|
56
|
+
const content = cva('relative flex min-w-full flex-nowrap items-stretch justify-between', {
|
|
57
57
|
variants: {
|
|
58
58
|
variant: {
|
|
59
59
|
default: null,
|
|
60
60
|
secondary: null,
|
|
61
|
-
header:
|
|
62
|
-
|
|
61
|
+
header: 'pb-4',
|
|
62
|
+
'header-secondary': 'py-2',
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
compoundVariants: [
|
|
66
66
|
{
|
|
67
|
-
variant: [
|
|
68
|
-
class:
|
|
67
|
+
variant: ['default', 'secondary'],
|
|
68
|
+
class: 'min-h-14 py-2 tablet:py-4',
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
variant: [
|
|
72
|
-
class:
|
|
71
|
+
variant: ['header', 'header-secondary'],
|
|
72
|
+
class: 'min-h-0',
|
|
73
73
|
},
|
|
74
74
|
],
|
|
75
75
|
});
|
|
76
76
|
const actions = cva([
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
'absolute -right-4 top-1 z-[2]',
|
|
78
|
+
'h-[calc(100%-0.5rem)]',
|
|
79
|
+
'opacity-0 transition-opacity group-hover:opacity-100',
|
|
80
|
+
'empty:hidden',
|
|
81
81
|
]);
|
|
82
82
|
export class TableRow {
|
|
83
83
|
/**
|
|
84
84
|
* Variant of the header
|
|
85
85
|
*/
|
|
86
|
-
variant =
|
|
86
|
+
variant = 'default';
|
|
87
87
|
/**
|
|
88
88
|
* Enable hover
|
|
89
89
|
*/
|
|
@@ -97,13 +97,13 @@ export class TableRow {
|
|
|
97
97
|
*/
|
|
98
98
|
isLast = false;
|
|
99
99
|
render() {
|
|
100
|
-
return (h(ThemedHost, { key: '
|
|
100
|
+
return (h(ThemedHost, { key: '2be589be89b6c6d1ccd5b46e73374348847ee5a1' }, h("div", { key: 'd43a94b7c9732295e0641ffc4efffdc73bb784ba', class: 'flex flex-col' }, h("div", { key: '402244a8e5b06f48b1993513ddf3c8bef695b989', class: row({
|
|
101
101
|
variant: this.variant,
|
|
102
102
|
enableHover: this.enableHover,
|
|
103
103
|
checked: this.checked,
|
|
104
|
-
}) }, h("div", { key: '
|
|
104
|
+
}) }, h("div", { key: '3941bbd80e7749cbb31249a9e742f9584d7f1540', class: content({
|
|
105
105
|
variant: this.variant,
|
|
106
|
-
}) }, h("slot", { key: '
|
|
106
|
+
}) }, h("slot", { key: 'bbcb9be829a24d7f1d527bb99564931a642ea4b4' }), h("div", { key: 'df447c6a92bbc0e7a17ee553f8c4d47841876450', class: actions() }, h("slot", { key: 'ca62989d4a7fbce5dce9ae28dc2115940eb5b182', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: '6a2a83d5c136c02219fbe3ba0007ed38bd353bde' })))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "p-table-row"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -123,7 +123,7 @@ export class TableRow {
|
|
|
123
123
|
"type": "string",
|
|
124
124
|
"mutable": false,
|
|
125
125
|
"complexType": {
|
|
126
|
-
"original": "
|
|
126
|
+
"original": "'default' | 'secondary' | 'header' | 'header-secondary'",
|
|
127
127
|
"resolved": "\"default\" | \"header\" | \"header-secondary\" | \"secondary\"",
|
|
128
128
|
"references": {}
|
|
129
129
|
},
|
|
@@ -137,7 +137,7 @@ export class TableRow {
|
|
|
137
137
|
"setter": false,
|
|
138
138
|
"reflect": false,
|
|
139
139
|
"attribute": "variant",
|
|
140
|
-
"defaultValue": "
|
|
140
|
+
"defaultValue": "'default'"
|
|
141
141
|
},
|
|
142
142
|
"enableHover": {
|
|
143
143
|
"type": "boolean",
|
|
@@ -49,7 +49,7 @@ export class Toast {
|
|
|
49
49
|
*/
|
|
50
50
|
action;
|
|
51
51
|
render() {
|
|
52
|
-
return (h(ThemedHost, { key: '
|
|
52
|
+
return (h(ThemedHost, { key: '6fd875b74af13f4a1c7dd6e924d7044ff06c944f' }, h("div", { key: 'f908fa3fc32e0818e5b7ccd64adf925678719072', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2 dark:border-hurricane-800 dark:bg-hurricane-800', onClick: () => this._onClick() }, h("div", { key: '7f2788fde508ad480ffaaf544f6815f87e520499', class: indicator({ variant: this.variant }) }), h("div", { key: '99bde4f91347f270375852e62b573cba43d570d2', class: content() }, h("div", { key: '2ea0b73745021b483607c52166204f3e00b33d38', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: 'd9cf48a043d897e211da6ce6d389ee65c59d7560', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500 dark:text-white' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: 'cbae153aafab6f54d0af33ab3a99f1c03a44cd78', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300 dark:text-hurricane-200' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: '300ae00c2e2e30c87c32f78bf05a3bb3a65e2a97', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500 hover:text-white dark:text-hurricane-200' }, h("p-icon", { key: 'a7849a36ec22b1a300c0d788c0e41ea1e8e76340', variant: this.actionIcon, flip: this.actionIconFlip, rotate: this.actionIconRotate })))))));
|
|
53
53
|
}
|
|
54
54
|
_onClick() {
|
|
55
55
|
if (this.enableAction) {
|
|
@@ -157,8 +157,8 @@ export class Toast {
|
|
|
157
157
|
"references": {
|
|
158
158
|
"IconVariant": {
|
|
159
159
|
"location": "import",
|
|
160
|
-
"path": "
|
|
161
|
-
"id": "src/
|
|
160
|
+
"path": "../../../types",
|
|
161
|
+
"id": "src/types/index.ts::IconVariant",
|
|
162
162
|
"referenceLocation": "IconVariant"
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -184,8 +184,8 @@ export class Toast {
|
|
|
184
184
|
"references": {
|
|
185
185
|
"IconFlipOptions": {
|
|
186
186
|
"location": "import",
|
|
187
|
-
"path": "
|
|
188
|
-
"id": "src/
|
|
187
|
+
"path": "../../../types",
|
|
188
|
+
"id": "src/types/index.ts::IconFlipOptions",
|
|
189
189
|
"referenceLocation": "IconFlipOptions"
|
|
190
190
|
}
|
|
191
191
|
}
|