@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
|
@@ -49,11 +49,9 @@ export class Drawer {
|
|
|
49
49
|
if (!this.show) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
const headerContent = h("slot", { name:
|
|
53
|
-
const bodyContent = h("slot", { name:
|
|
54
|
-
return (h("p-backdrop", { variant:
|
|
55
|
-
? headerContent
|
|
56
|
-
: this.header)), h("p-drawer-body", null, bodyContent))));
|
|
52
|
+
const headerContent = h("slot", { name: 'header' });
|
|
53
|
+
const bodyContent = h("slot", { name: 'content' });
|
|
54
|
+
return (h("p-backdrop", { variant: 'drawer', applyBlur: this.applyBlur, onClicked: ev => this._backdropClick(ev.detail), closing: this._closing, scrollLock: this.scrollLock }, h("p-drawer-container", { closing: this._closing }, (this.header?.length || this._hasHeaderSlot) && (h("p-drawer-header", { "show-close": this.showClose, onClose: ev => this.close(ev.detail, 'close') }, this._hasHeaderSlot ? headerContent : this.header)), h("p-drawer-body", null, bodyContent))));
|
|
57
55
|
}
|
|
58
56
|
_backdropClick(ev) {
|
|
59
57
|
if (!this.backdropClickClose) {
|
|
@@ -82,7 +80,7 @@ export class Drawer {
|
|
|
82
80
|
this.closeClicked.emit({
|
|
83
81
|
event: ev,
|
|
84
82
|
canClose: this.canClose,
|
|
85
|
-
source
|
|
83
|
+
source,
|
|
86
84
|
});
|
|
87
85
|
if (!this.canClose) {
|
|
88
86
|
return;
|
|
@@ -273,7 +271,7 @@ export class Drawer {
|
|
|
273
271
|
"text": "Close click event"
|
|
274
272
|
},
|
|
275
273
|
"complexType": {
|
|
276
|
-
"original": "{\n\t\tevent: MouseEvent;\n\t\tcanClose: boolean;\n
|
|
274
|
+
"original": "{\n\t\tevent: MouseEvent;\n\t\tcanClose: boolean;\n\t\tsource: 'unknown' | 'backdrop' | 'close' | 'event';\n\t}",
|
|
277
275
|
"resolved": "{ event: MouseEvent; canClose: boolean; source: \"close\" | \"backdrop\" | \"unknown\" | \"event\"; }",
|
|
278
276
|
"references": {
|
|
279
277
|
"MouseEvent": {
|
|
@@ -18,10 +18,10 @@ export class Listing {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '527b21db5684bcc5d89084b59d070982062305fa', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
22
22
|
'opacity-100': this._generatedOnce,
|
|
23
23
|
'opacity-0': !this._generatedOnce,
|
|
24
|
-
}) }, h("slot", { key: '
|
|
24
|
+
}) }, h("slot", { key: '7cd97da5249253981f536cbf4e0515f08adcfd2a', onSlotchange: () => this._generateLinesOnce() })));
|
|
25
25
|
}
|
|
26
26
|
_generateLinesOnce() {
|
|
27
27
|
if (this._generateTimeout) {
|
|
@@ -44,7 +44,7 @@ const backdrop = cva(['z-navbar-backdrop layout-1280:hidden transition-opacity r
|
|
|
44
44
|
export class Navbar {
|
|
45
45
|
_show = false;
|
|
46
46
|
render() {
|
|
47
|
-
return (h(ThemedHost, { key: '
|
|
47
|
+
return (h(ThemedHost, { key: 'ee599d3472ef0a332d17353d8e7f559e36d5529b' }, h("p-backdrop", { key: 'aa5b71247881e2a23998bab23f194ff6f58a6662', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '121da670f6b7dbbfbce4a018c56b56ac1352c212', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'e789b6c904b4715c271e03324d8e8643acd5d8a8', class: 'flex w-full items-center justify-end layout-1280:hidden' }, h("p-button", { key: '9d6f49157fc731f91ff34bc7e37aebe40c5d0612', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, onClick: () => (this._show = false) })), h("div", { key: 'c88909335eed7df5a93b32a65d24b1a8ff2a3f19', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: 'e09b2eaefb99e51502f3629c377728d298b0e8d9', name: 'company' })), h("div", { key: '2ce82f037a53e8529d834958812d74f3cdd25ef2', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: 'eaf615dd6f9d5b8fb260fe5a10c43b1e0b6f52c0', name: 'content' })), h("div", { key: '9b8bedc34ab2bcbe8935426007b6fd8c2d33c177', class: 'mt-auto hidden w-full flex-shrink-0 flex-col layout-1280:flex' }, h("slot", { key: '7a4889a2554cad25f9e8be122863fb5c2783376d', name: 'user' }))), h("div", { key: 'e9d88767781757f7fc81c772fbe750a15a03fa6c', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '3517c55339958c4461f20b190c220358658a71cf', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', onClick: () => (this._show = true) }), h("slot", { key: 'b89f63dfbeba643e3f46f72e6862944ba75f1213', name: 'topbar' }))));
|
|
48
48
|
}
|
|
49
49
|
handleCloseNavbar() {
|
|
50
50
|
this._show = false;
|
|
@@ -258,7 +258,7 @@ export class Table {
|
|
|
258
258
|
this.hasRendered.emit();
|
|
259
259
|
}
|
|
260
260
|
render() {
|
|
261
|
-
return (h(Host, { key: '
|
|
261
|
+
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',
|
|
262
262
|
// quick filters
|
|
263
263
|
quickFilters: this.quickFilters, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, onQuickFilter: ({ detail }) => this.quickFilter.emit(detail),
|
|
264
264
|
// search
|
|
@@ -270,7 +270,7 @@ export class Table {
|
|
|
270
270
|
//export
|
|
271
271
|
enableExport: this.enableExport, onExport: () => this.export.emit(),
|
|
272
272
|
//loading
|
|
273
|
-
loading: this.headerLoading }, this._hasCustomFilterSlot && (h("slot", { key: '
|
|
273
|
+
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({
|
|
274
274
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
275
275
|
active: !!this.selectedRows?.length,
|
|
276
276
|
shown: this._floatingMenuShown,
|
|
@@ -280,7 +280,7 @@ export class Table {
|
|
|
280
280
|
!!a.action &&
|
|
281
281
|
a.type === 'single'
|
|
282
282
|
? a.action(this.selectedRows[0], false)
|
|
283
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: '
|
|
283
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: 'c6ad42b16c755ecfd751dde0d655d5a874437fac',
|
|
284
284
|
// overall
|
|
285
285
|
hideOnSinglePage: this.hideOnSinglePage,
|
|
286
286
|
// page size select
|
|
@@ -338,7 +338,9 @@ export class Table {
|
|
|
338
338
|
this._resizeTimeout = setTimeout(() => {
|
|
339
339
|
const mobile = isMobile();
|
|
340
340
|
// we hack this to any[] to make it work..
|
|
341
|
-
const actions =
|
|
341
|
+
const actions = [
|
|
342
|
+
...this._el.querySelectorAll(':scope > p-table-row-action'),
|
|
343
|
+
];
|
|
342
344
|
this._rowActionsRow = actions.filter(a => a.type === 'both' || a.type === 'single');
|
|
343
345
|
this._rowActionsFloatingAll = actions
|
|
344
346
|
.filter(a => (this.enableRowSelection &&
|
|
@@ -372,13 +374,13 @@ export class Table {
|
|
|
372
374
|
}
|
|
373
375
|
_generateExtraHeaders() {
|
|
374
376
|
const definitions = this._el.querySelectorAll('p-table-extra-header');
|
|
375
|
-
let definitionsArray =
|
|
377
|
+
let definitionsArray = [...definitions];
|
|
376
378
|
definitionsArray = this._parseDefinitions(definitionsArray);
|
|
377
379
|
this._extraHeaders = definitionsArray;
|
|
378
380
|
}
|
|
379
381
|
_generateColumns() {
|
|
380
382
|
const definitions = this._el.querySelectorAll('p-table-column');
|
|
381
|
-
let definitionsArray =
|
|
383
|
+
let definitionsArray = [...definitions];
|
|
382
384
|
definitionsArray = this._parseDefinitions(definitionsArray);
|
|
383
385
|
this._columns = definitionsArray;
|
|
384
386
|
}
|
|
@@ -386,9 +388,7 @@ export class Table {
|
|
|
386
388
|
if (!this._extraHeaders?.length) {
|
|
387
389
|
return null;
|
|
388
390
|
}
|
|
389
|
-
return (h("p-table-row", { variant: 'header-secondary', isLast: true }, this._extraHeaders.map((col, index) => {
|
|
390
|
-
return (h("p-table-cell", { definition: col, variant: 'header-secondary', checkboxOffset: index === 0 && this._enableRowSelection, index: index }, h("b", null, col.name)));
|
|
391
|
-
})));
|
|
391
|
+
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))))));
|
|
392
392
|
}
|
|
393
393
|
_getHeader() {
|
|
394
394
|
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
|
|
@@ -401,7 +401,7 @@ export class Table {
|
|
|
401
401
|
length: this.amountOfLoadingRows,
|
|
402
402
|
}, (_, i) => (h("p-table-row", { enableHover: this._enableRowSelection || this.enableRowClick, isLast: i === this.amountOfLoadingRows - 1 }, this._getLoadingColumns(i))));
|
|
403
403
|
}
|
|
404
|
-
if (
|
|
404
|
+
if (this._items.length === 0) {
|
|
405
405
|
return this._getEmptyState();
|
|
406
406
|
}
|
|
407
407
|
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))));
|
|
@@ -414,16 +414,12 @@ export class Table {
|
|
|
414
414
|
return null;
|
|
415
415
|
}
|
|
416
416
|
_getRowColumns(item, index) {
|
|
417
|
-
return this._columns.map((col, colIndex) => {
|
|
418
|
-
return (h("p-table-cell", { definition: col, item: item, checkbox: colIndex === 0 || col.hasCheckbox ? this._getCheckbox(index) : null, index: colIndex, rowIndex: index }));
|
|
419
|
-
});
|
|
417
|
+
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 })));
|
|
420
418
|
}
|
|
421
419
|
_getLoadingColumns(index) {
|
|
422
|
-
return this._columns.map((col, colIndex) => {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
: null, index: colIndex, rowIndex: index }));
|
|
426
|
-
});
|
|
420
|
+
return this._columns.map((col, colIndex) => (h("p-table-cell", { definition: col, variant: 'loading', checkbox: colIndex === 0 || col.hasCheckbox
|
|
421
|
+
? this._getCheckbox(index, 'loading')
|
|
422
|
+
: null, index: colIndex, rowIndex: index })));
|
|
427
423
|
}
|
|
428
424
|
_getCheckbox(rowIndex, variant = 'default') {
|
|
429
425
|
if (!this._enableRowSelection ||
|
|
@@ -535,7 +531,7 @@ export class Table {
|
|
|
535
531
|
}
|
|
536
532
|
_selectionContains(index, returnIndex = false) {
|
|
537
533
|
const returnValue = this.selectedRows.findIndex(item => item.index === index);
|
|
538
|
-
return
|
|
534
|
+
return returnIndex ? returnValue : returnValue !== -1;
|
|
539
535
|
}
|
|
540
536
|
_selectionContainsAll() {
|
|
541
537
|
let returnValue = true;
|
|
@@ -614,8 +610,7 @@ export class Table {
|
|
|
614
610
|
if (!el) {
|
|
615
611
|
return null;
|
|
616
612
|
}
|
|
617
|
-
if (el.
|
|
618
|
-
el.getAttribute('data-is-action') !== 'false') {
|
|
613
|
+
if (el.dataset.isAction !== null && el.dataset.isAction !== 'false') {
|
|
619
614
|
return el;
|
|
620
615
|
}
|
|
621
616
|
if (el?.tagName?.toLowerCase() === 'p-table-row') {
|
|
@@ -626,7 +621,7 @@ export class Table {
|
|
|
626
621
|
_showFloatingMenu() {
|
|
627
622
|
let actions = this._rowActionsFloatingAll;
|
|
628
623
|
if (this.rowSelectionLimit === 1 &&
|
|
629
|
-
actions.
|
|
624
|
+
actions.some(a => (a.type === 'single' || a.type === 'both') && a.showFunction)) {
|
|
630
625
|
actions = actions.filter(a => a.type === 'multi' ||
|
|
631
626
|
!a.showFunction ||
|
|
632
627
|
a.showFunction(this.selectedRows[0]));
|
|
@@ -1190,8 +1185,8 @@ export class Table {
|
|
|
1190
1185
|
"references": {
|
|
1191
1186
|
"IconVariant": {
|
|
1192
1187
|
"location": "import",
|
|
1193
|
-
"path": "../../../
|
|
1194
|
-
"id": "src/
|
|
1188
|
+
"path": "../../../types/icon",
|
|
1189
|
+
"id": "src/types/icon.ts::IconVariant",
|
|
1195
1190
|
"referenceLocation": "IconVariant"
|
|
1196
1191
|
}
|
|
1197
1192
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { state } from "../state";
|
|
3
|
-
export const ThemedHost = (props, children) => {
|
|
4
|
-
return (h(Host, { ...props, "data-theme": state.theme }, children));
|
|
5
|
-
};
|
|
3
|
+
export const ThemedHost = (props, children) => (h(Host, { ...props, "data-theme": state.theme }, children));
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import aspectRatioPlugin from "@tailwindcss/aspect-ratio";
|
|
2
|
+
import scrollbarHidePlugin from "tailwind-scrollbar-hide";
|
|
1
3
|
import plugin from "tailwindcss/plugin";
|
|
4
|
+
import hover from "./plugins/hover";
|
|
5
|
+
import safeArea from "./plugins/safe-area";
|
|
2
6
|
import animation from "./theme/animation";
|
|
3
7
|
import colors from "./theme/colors";
|
|
4
8
|
import height from "./theme/height";
|
|
@@ -10,10 +14,6 @@ import spacing from "./theme/spacing";
|
|
|
10
14
|
import typeograhpy from "./theme/typography";
|
|
11
15
|
import width from "./theme/width";
|
|
12
16
|
import zIndex from "./theme/z-index";
|
|
13
|
-
import hover from "./plugins/hover";
|
|
14
|
-
import safeArea from "./plugins/safe-area";
|
|
15
|
-
import aspectRatioPlugin from "@tailwindcss/aspect-ratio";
|
|
16
|
-
import scrollbarHidePlugin from "tailwind-scrollbar-hide";
|
|
17
17
|
export const paperless = plugin(pluginAPI => {
|
|
18
18
|
safeArea(pluginAPI);
|
|
19
19
|
hover(pluginAPI);
|
|
@@ -43,10 +43,5 @@ export const paperless = plugin(pluginAPI => {
|
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
-
plugins: [
|
|
47
|
-
aspectRatioPlugin,
|
|
48
|
-
scrollbarHidePlugin,
|
|
49
|
-
safeArea,
|
|
50
|
-
hover,
|
|
51
|
-
],
|
|
46
|
+
plugins: [aspectRatioPlugin, scrollbarHidePlugin, safeArea, hover],
|
|
52
47
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import caret from "../assets/icons/arrows/caret.svg";
|
|
2
|
-
import doubleCaret from "../assets/icons/arrows/double-caret.svg";
|
|
3
1
|
import arrow from "../assets/icons/arrows/arrow.svg";
|
|
2
|
+
import caret from "../assets/icons/arrows/caret.svg";
|
|
4
3
|
import doubleArrow from "../assets/icons/arrows/double-arrow.svg";
|
|
4
|
+
import doubleCaret from "../assets/icons/arrows/double-caret.svg";
|
|
5
5
|
import turn from "../assets/icons/arrows/turn.svg";
|
|
6
6
|
import bell from "../assets/icons/communication/bell.svg";
|
|
7
7
|
import chat from "../assets/icons/communication/chat.svg";
|
|
8
8
|
import checkCircle from "../assets/icons/communication/check-circle.svg";
|
|
9
9
|
import crossCircle from "../assets/icons/communication/cross-circle.svg";
|
|
10
10
|
import errorCircle from "../assets/icons/communication/error-circle.svg";
|
|
11
|
+
import headset from "../assets/icons/communication/headset.svg";
|
|
11
12
|
import infoCircle from "../assets/icons/communication/info-circle.svg";
|
|
12
13
|
import phone from "../assets/icons/communication/phone.svg";
|
|
13
14
|
import questionCircle from "../assets/icons/communication/question-circle.svg";
|
|
14
|
-
import headset from "../assets/icons/communication/headset.svg";
|
|
15
15
|
import warning from "../assets/icons/communication/warning.svg";
|
|
16
16
|
import apple from "../assets/icons/external/apple.svg";
|
|
17
17
|
import google from "../assets/icons/external/google.svg";
|
|
18
18
|
import ideal from "../assets/icons/external/ideal.svg";
|
|
19
|
+
import checkmarkThick from "../assets/icons/extra/checkmark-thick.svg";
|
|
19
20
|
import attachment from "../assets/icons/files/attachment.svg";
|
|
20
21
|
import description from "../assets/icons/files/description.svg";
|
|
21
22
|
import documentIcon from "../assets/icons/files/document.svg";
|
|
@@ -50,8 +51,8 @@ import exam from "../assets/icons/general/exam.svg";
|
|
|
50
51
|
import filter from "../assets/icons/general/filter.svg";
|
|
51
52
|
import flag from "../assets/icons/general/flag.svg";
|
|
52
53
|
import flower from "../assets/icons/general/flower.svg";
|
|
53
|
-
import globe from "../assets/icons/general/globe.svg";
|
|
54
54
|
import globeTwo from "../assets/icons/general/globe-2.svg";
|
|
55
|
+
import globe from "../assets/icons/general/globe.svg";
|
|
55
56
|
import hash from "../assets/icons/general/hash.svg";
|
|
56
57
|
import hat from "../assets/icons/general/hat.svg";
|
|
57
58
|
import home from "../assets/icons/general/home.svg";
|
|
@@ -61,8 +62,8 @@ import laptop from "../assets/icons/general/laptop.svg";
|
|
|
61
62
|
import location from "../assets/icons/general/location.svg";
|
|
62
63
|
import mail from "../assets/icons/general/mail.svg";
|
|
63
64
|
import medal from "../assets/icons/general/medal.svg";
|
|
64
|
-
import menu from "../assets/icons/general/menu.svg";
|
|
65
65
|
import menuArrow from "../assets/icons/general/menu-arrow.svg";
|
|
66
|
+
import menu from "../assets/icons/general/menu.svg";
|
|
66
67
|
import minus from "../assets/icons/general/minus.svg";
|
|
67
68
|
import moon from "../assets/icons/general/moon.svg";
|
|
68
69
|
import more from "../assets/icons/general/more.svg";
|
|
@@ -99,25 +100,24 @@ import trash from "../assets/icons/general/trash.svg";
|
|
|
99
100
|
import upload from "../assets/icons/general/upload.svg";
|
|
100
101
|
import wave from "../assets/icons/general/wave.svg";
|
|
101
102
|
import zipcode from "../assets/icons/general/zipcode.svg";
|
|
102
|
-
import eye from "../assets/icons/security/eye.svg";
|
|
103
103
|
import eyeClosed from "../assets/icons/security/eye-closed.svg";
|
|
104
|
+
import eye from "../assets/icons/security/eye.svg";
|
|
104
105
|
import key from "../assets/icons/security/key.svg";
|
|
105
106
|
import lock from "../assets/icons/security/lock.svg";
|
|
106
107
|
import unlocked from "../assets/icons/security/unlocked.svg";
|
|
107
108
|
import alarm from "../assets/icons/time/alarm.svg";
|
|
108
|
-
import calendar from "../assets/icons/time/calendar.svg";
|
|
109
|
-
import calendarMulti from "../assets/icons/time/calendar-multi.svg";
|
|
110
109
|
import calendarFree from "../assets/icons/time/calendar-free.svg";
|
|
110
|
+
import calendarMulti from "../assets/icons/time/calendar-multi.svg";
|
|
111
111
|
import calendarNotFree from "../assets/icons/time/calendar-not-free.svg";
|
|
112
|
+
import calendar from "../assets/icons/time/calendar.svg";
|
|
112
113
|
import clock from "../assets/icons/time/clock.svg";
|
|
113
114
|
import addressBook from "../assets/icons/users/address-book.svg";
|
|
114
115
|
import female from "../assets/icons/users/female.svg";
|
|
115
|
-
import id from "../assets/icons/users/id.svg";
|
|
116
116
|
import idTwo from "../assets/icons/users/id-two.svg";
|
|
117
|
+
import id from "../assets/icons/users/id.svg";
|
|
117
118
|
import male from "../assets/icons/users/male.svg";
|
|
118
119
|
import user from "../assets/icons/users/user.svg";
|
|
119
120
|
import users from "../assets/icons/users/users.svg";
|
|
120
|
-
import checkmarkThick from "../assets/icons/extra/checkmark-thick.svg";
|
|
121
121
|
export const categorized = {
|
|
122
122
|
arrows: {
|
|
123
123
|
caret,
|
|
@@ -2,9 +2,9 @@ import calculator from "../assets/illustrations/calculator.svg";
|
|
|
2
2
|
import calendar from "../assets/illustrations/calendar.svg";
|
|
3
3
|
import clock from "../assets/illustrations/clock.svg";
|
|
4
4
|
import coins from "../assets/illustrations/coins.svg";
|
|
5
|
-
import file from "../assets/illustrations/file.svg";
|
|
6
5
|
import fileInvoice from "../assets/illustrations/file-invoice.svg";
|
|
7
6
|
import fileNotes from "../assets/illustrations/file-notes.svg";
|
|
7
|
+
import file from "../assets/illustrations/file.svg";
|
|
8
8
|
import folder from "../assets/illustrations/folder.svg";
|
|
9
9
|
import payment from "../assets/illustrations/payment.svg";
|
|
10
10
|
import search from "../assets/illustrations/search.svg";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// http://detectmobilebrowsers.com/
|
|
2
2
|
const browserRegex = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;
|
|
3
|
-
const otherRegex = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s
|
|
3
|
+
const otherRegex = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[23]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i;
|
|
4
4
|
export const isMobileBrowser = () => {
|
|
5
5
|
const userAgent = navigator.userAgent || navigator.vendor || window['opera'];
|
|
6
6
|
if (browserRegex.test(userAgent)) {
|
|
7
7
|
return true;
|
|
8
8
|
}
|
|
9
|
-
if (otherRegex.test(userAgent.
|
|
9
|
+
if (otherRegex.test(userAgent.slice(0, 4))) {
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
return false;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
const getComponentClosestLanguage = (element) => {
|
|
2
3
|
const closestElement = element.closest('[lang]');
|
|
3
4
|
const htmlElement = document.documentElement;
|
|
4
|
-
return closestElement
|
|
5
|
-
? closestElement.lang
|
|
6
|
-
: htmlElement?.lang
|
|
7
|
-
? htmlElement.lang
|
|
8
|
-
: 'en';
|
|
9
|
-
};
|
|
10
|
-
const fetchLocaleStringsForComponent = (componentName, locale) => {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
fetch(`/assets/i18n/${componentName}.i18n.${locale}.json`).then((result) => {
|
|
13
|
-
if (result.ok) {
|
|
14
|
-
resolve(result.json());
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
reject();
|
|
18
|
-
}, () => reject());
|
|
19
|
-
});
|
|
5
|
+
return closestElement ? closestElement.lang : (htmlElement?.lang ?? 'en');
|
|
20
6
|
};
|
|
7
|
+
const fetchLocaleStringsForComponent = (componentName, locale) => new Promise((resolve, reject) => {
|
|
8
|
+
fetch(`/assets/i18n/${componentName}.i18n.${locale}.json`).then(result => {
|
|
9
|
+
if (result.ok) {
|
|
10
|
+
resolve(result.json());
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
reject();
|
|
14
|
+
}, () => reject());
|
|
15
|
+
});
|
|
21
16
|
const cache = {};
|
|
22
17
|
export const getLocaleComponentStrings = async (element) => {
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const componentName = element.tagName.toLowerCase().replace('p-', '');
|
|
19
|
+
const componentLanguage = getComponentClosestLanguage(element);
|
|
25
20
|
let strings;
|
|
26
21
|
if (cache[componentName]?.[componentLanguage]) {
|
|
27
22
|
return cache[componentName][componentLanguage];
|
|
@@ -29,7 +24,7 @@ export const getLocaleComponentStrings = async (element) => {
|
|
|
29
24
|
try {
|
|
30
25
|
strings = await fetchLocaleStringsForComponent(componentName, componentLanguage);
|
|
31
26
|
}
|
|
32
|
-
catch
|
|
27
|
+
catch {
|
|
33
28
|
console.warn(`no locale for ${componentName} (${componentLanguage}) loading default locale en.`);
|
|
34
29
|
strings = await fetchLocaleStringsForComponent(componentName, 'en');
|
|
35
30
|
}
|
|
@@ -48,7 +43,7 @@ export const formatTranslation = (str, data) => {
|
|
|
48
43
|
}
|
|
49
44
|
for (const key of Object.keys(data)) {
|
|
50
45
|
const regex = `{${key}}`;
|
|
51
|
-
str = str.
|
|
46
|
+
str = str.replaceAll(new RegExp(regex, 'g'), data[key]);
|
|
52
47
|
}
|
|
53
48
|
return str;
|
|
54
49
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
export const objectGetByPath = (obj, path, defaultValue) => {
|
|
3
|
+
const travel = regexp => String.prototype.split
|
|
3
4
|
.call(path, regexp)
|
|
4
5
|
.filter(Boolean)
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
// eslint-disable-next-line unicorn/no-array-reduce
|
|
7
|
+
.reduce((res, key) => (res !== null && res !== undefined ? res[key] : res), obj);
|
|
8
|
+
const result = travel(/[,[\]]+?/) || travel(/[,.[\]]+?/);
|
|
7
9
|
return result === undefined || result === obj ? defaultValue : result;
|
|
8
10
|
};
|
|
@@ -2,7 +2,7 @@ import screens from "../tailwind/theme/screens";
|
|
|
2
2
|
export const getScreenSize = (size) => screens[size];
|
|
3
3
|
export const getScreenSizeInRem = (size) => {
|
|
4
4
|
const screen = getScreenSize(size);
|
|
5
|
-
return parseInt(screen.replace('rem', ''), 10);
|
|
5
|
+
return Number.parseInt(screen.replace('rem', ''), 10);
|
|
6
6
|
};
|
|
7
7
|
export const getScreenSizeInPixels = (size) => {
|
|
8
8
|
const rem = getScreenSizeInRem(size);
|
|
@@ -16,10 +16,8 @@ export const isSmallerThanScreen = (size) => {
|
|
|
16
16
|
const pixels = getScreenSizeInPixels(size);
|
|
17
17
|
return window.innerWidth < pixels;
|
|
18
18
|
};
|
|
19
|
-
export const isBetweenScreens = (smallSize, bigSize) =>
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
export const isTouchDevice = () => !!window.matchMedia('(pointer: coarse)').matches;
|
|
19
|
+
export const isBetweenScreens = (smallSize, bigSize) => isBiggerThanScreen(smallSize) && isSmallerThanScreen(bigSize);
|
|
20
|
+
export const isTouchDevice = () => !!globalThis.matchMedia('(pointer: coarse)').matches;
|
|
23
21
|
export const isMobile = () => isTouchDevice() || isSmallerThanScreen('tablet');
|
|
24
22
|
export const isTablet = () => isBetweenScreens('tablet', 'desktop-xs');
|
|
25
23
|
export const isDesktop = () => isBiggerThanScreen('desktop-xs');
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { cva } from "class-variance-authority";
|
|
2
3
|
import { isTableColumnSizesKey, } from "../types";
|
|
3
4
|
export const getTableCellColumnClasses = (definition, variant, checkboxOffset = false) => {
|
|
4
5
|
const sizes = definition ? getTableCellSizes(definition, variant) : {};
|
|
5
6
|
const align = variant == 'header'
|
|
6
|
-
? definition?.headerAlign ?? definition?.align
|
|
7
|
+
? (definition?.headerAlign ?? definition?.align)
|
|
7
8
|
: definition?.align;
|
|
8
9
|
return {
|
|
9
10
|
'flex flex-shrink items-center gap-4 pr-4 last-of-type:pr-0': true,
|
|
@@ -39,7 +40,7 @@ export const getTableCellSizes = ({ sizes, } /* Table Definition */, variant) =>
|
|
|
39
40
|
sizes = sizes;
|
|
40
41
|
const classes = {};
|
|
41
42
|
let previousSize;
|
|
42
|
-
for (
|
|
43
|
+
for (const size in sizes) {
|
|
43
44
|
if (!isTableColumnSizesKey(sizes, size)) {
|
|
44
45
|
continue;
|
|
45
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const camelToSnakeCase = (str) => str.
|
|
1
|
+
export const camelToSnakeCase = (str) => str.replaceAll(/[A-Z]/g, letter => `_${letter.toLowerCase()}`);
|
|
2
2
|
export const snakeToCamelCase = (str) => str
|
|
3
3
|
.toLowerCase()
|
|
4
|
-
.
|
|
5
|
-
export const kebabToSpaces = str => str.
|
|
6
|
-
export const titleCase = (str) => str.
|
|
4
|
+
.replaceAll(/([_-][a-z])/g, group => group.toUpperCase().replace('-', '').replace('_', ''));
|
|
5
|
+
export const kebabToSpaces = str => str.replaceAll('-', ' ');
|
|
6
|
+
export const titleCase = (str) => str.replaceAll(/\w\S*/g, text => text.charAt(0).toUpperCase() + text.slice(1).toLowerCase());
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-DDcyZGui.js";export{i as initTheme,o as onStateChange,s as state,a as stateLocaleOptions,b as stateThemeOptions}from"./p-Dp60j03z.js";import{s as n}from"./p-B3sNjfzc.js";export{g as getScreenSize,b as getScreenSizeInPixels,a as getScreenSizeInRem,d as isBetweenScreens,i as isBiggerThanScreen,j as isDesktop,f as isMobile,c as isSmallerThanScreen,h as isTablet,e as isTouchDevice}from"./p-B3sNjfzc.js";export{f as floatingMenuContainerClass,g as getTableCellColumnClasses,a as getTableCellSizes,i as isTableColumnSizesKey,o as objectGetByPath}from"./p-BjTqIvvg.js";export{t as tableColumSizesOptions}from"./p-DdQ-S2l7.js";export{I as IBAN_ICON_VARIANTS_ARRAY}from"./p-By0EdXx2.js";export{c as childOf,a as childOfComposed}from"./p-BFSNj6hu.js";export{c as categorized,i as icons}from"./p--Uc_OJAV.js";export{f as formatTranslation,g as getLocaleComponentStrings}from"./p-DiJj8rmO.js";export{i as isMobileBrowser}from"./p-DVCJlilm.js";export{c as cn}from"./p-CT54OXR2.js";export{P as PAGINATION_DEFAULT_PAGE_SIZE,a as PAGINATION_DEFAULT_PAGE_SIZE_OPTIONS,S as SELECT_DEFAULT_MAX_DISPLAYED_ITEMS}from"./p-vyRrSf5s.js";function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,p,v,u,x={},F={};function w(){return p||(p=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const a=t((m||(m=1,function(e){function a(e,a){return{handler:e,config:a}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),a.withOptions=function(e,a=()=>({})){const t=function(t){return{__options:t,handler:e(t),config:a(t)}};return t.__isOptionsFunction=!0,t.__pluginFunction=e,t.__configFunction=a,t};const t=a}(F)),F));function t(e){return e&&e.__esModule?e:{default:e}}const s=a.default}(x)),x}function E(){if(u)return v;u=1;let e=w();return v=(e.__esModule?e:{default:e}).default}var D=l(E()),A={animation:{"fade-in":"forwards fadeIn .2s ease","fade-out":"forwards fadeOut .2s ease","slide-in-right":"forwards slideInRight .5s ease","slide-in-left":"forwards slideInLeft .5s ease","slide-in-top":"forwards slideInTop .25 ease","slide-in-bottom":"forwards slideInBottom .5s ease","slide-in-right-small":"forwards slideInRightSmall .5s ease","slide-in-left-small":"forwards slideInLeftSmall .5s ease","slide-in-top-small":"forwards slideInTopSmall .5s ease","slide-in-bottom-small":"forwards slideInBottomSmall .5s ease","slide-out-right":"forwards slideOutRight .2s ease","slide-out-left":"forwards slideOutLeft .2s ease","slide-out-top":"forwards slideOutTop .2s ease","slide-out-bottom":"forwards slideOutBottom .5s ease","slide-out-top-small":"forwards slideOutTopSmall .5s ease","slide-out-bottom-small":"forwards slideOutBottomSmall .5s ease","floating-menu-container-out":"forwards floatingMenuContainerOut .5s ease","floating-menu-container-in":"forwards floatingMenuContainerIn .5s ease",wave:"wave .5s ease-in-out -0.5s infinite alternate forwards"},keyframes:{fadeIn:{"0%":{opacity:"0"},"100%":{opacity:"100"}},fadeOut:{"0%":{opacity:"100"},"100%":{opacity:"0"}},slideInRight:{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},slideInLeft:{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},slideInTop:{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},slideInBottom:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},slideInRightSmall:{"0%":{transform:"translateX(20%)"},"100%":{transform:"translateX(0)"}},slideInLeftSmall:{"0%":{transform:"translateX(-20%)"},"100%":{transform:"translateX(0)"}},slideInTopSmall:{"0%":{transform:"translateY(-20%)"},"100%":{transform:"translateY(0)"}},slideInBottomSmall:{"0%":{transform:"translateY(20%)"},"100%":{transform:"translateY(0)"}},slideOutRight:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},slideOutLeft:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},slideOutTop:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},slideOutBottom:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},slideOutTopSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-20%)"}},slideOutBottomSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(20%)"}},floatingMenuContainerOut:{"0%":{display:"flex",transform:"translateY(0)",opacity:"100"},"99%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"none",transform:"translateY(100%)",opacity:"0"}},floatingMenuContainerIn:{"0%":{display:"none",transform:"translateY(100%)",opacity:"0"},"1%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"flex",transform:"translateY(0)",opacity:"100"}},wave:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(-15deg)"}}}};const B={};for(let e=1;e<360;e++)B[""+e]=e+"deg",B["-"+e]=`-${e}deg`;var C={1:["0 1px 1px rgba(0, 2, 2, 0.08)"],2:["0 1px 1px rgba(0, 2, 2, 0.04)","0 2px 2px rgba(0, 2, 2, 0.04)","0 4px 4px rgba(0, 2, 2, 0.04)"],3:["0 1px 1px rgba(0, 2, 2, 0.08)","0 2px 2px rgba(0, 2, 2, 0.08)","0 4px 4px rgba(0, 2, 2, 0.08)"],modal:["0 0 0 1px rgba(0, 2, 2, 0.10)","0 1px 1px 0 rgba(0, 2, 2, 0.20)","0 2px 2px 0 rgba(0, 2, 2, 0.08)","0 4px 4px 0 rgba(0, 2, 2, 0.08)","0 8px 8px 0 rgba(0, 2, 2, 0.08)"],"supportive-lilac":"0px 1px 1px rgba(189, 140, 255, 0.20)","storm-10%":"0px 1px 0px rgba(3, 42, 36, 0.1)","primary-button":"0px 1px 1px 0px rgba(24, 30 41, 0.08)","off-white-600":"0px 0px 0px 1px #ECEAE5",inherit:"inherit",transparent:"transparent"},O={fontSize:{xxs:["0.5rem","1rem"],"3xl":["2rem","2.5rem"],"4xl":["2.5rem","3rem"]},lineHeight:{xs:"1rem",sm:"1.5rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.5rem","4xl":"3rem"}};const y=({addVariant:e})=>{e("has-hover","@media (hover: hover)"),e("no-hover","@media (hover: none)"),e("hover-never","@media (hover: hover) { &:hover }"),e("group-hover-never","@media (hover: hover) { :merge(.group):hover & }"),e("peer-hover-never","@media (hover: hover) { :merge(.peer):hover & }"),e("hover-always",["@media (hover: hover) { &:hover }","@media (hover: none)"]),e("group-hover-always",["@media (hover: hover) { :merge(.group):hover & }","@media (hover: none)"]),e("peer-hover-always",["@media (hover: hover) { :merge(.peer):hover & }","@media (hover: none)"])},T=({addUtilities:e})=>{e({".m-safe":{marginTop:"env(safe-area-inset-top)",marginRight:"env(safe-area-inset-right)",marginBottom:"env(safe-area-inset-bottom)",marginLeft:"env(safe-area-inset-left)"},".mx-safe":{marginRight:"env(safe-area-inset-right)",marginLeft:"env(safe-area-inset-left)"},".my-safe":{marginTop:"env(safe-area-inset-top)",marginBottom:"env(safe-area-inset-bottom)"},".my-safe-2":{marginTop:"calc(env(safe-area-inset-top)+0.5rem)",marginBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".mt-safe":{marginTop:"env(safe-area-inset-top)"},".mr-safe":{marginRight:"env(safe-area-inset-right)"},".mb-safe":{marginBottom:"env(safe-area-inset-bottom)"},".ml-safe":{marginLeft:"env(safe-area-inset-left)"},".p-safe":{paddingTop:"env(safe-area-inset-top)",paddingRight:"env(safe-area-inset-right)",paddingBottom:"env(safe-area-inset-bottom)",paddingLeft:"env(safe-area-inset-left)"},".px-safe":{paddingRight:"env(safe-area-inset-right)",paddingLeft:"env(safe-area-inset-left)"},".py-safe":{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},".py-safe-2":{paddingTop:"calc(env(safe-area-inset-top)+0.5rem)",paddingBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".pt-safe":{paddingTop:"env(safe-area-inset-top)"},".pr-safe":{paddingRight:"env(safe-area-inset-right)"},".pb-safe":{paddingBottom:"env(safe-area-inset-bottom)"},".pl-safe":{paddingLeft:"env(safe-area-inset-left)"},".min-h-screen":{minHeight:"100vh"},".min-h-screen-safe":{minHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".max-h-screen":{maxHeight:"100vh"},".max-h-screen-safe":{maxHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".h-screen-safe":{height:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".min-w-screen":{minWidth:"100vw"},".min-w-screen-safe":{minWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".max-w-screen":{maxWidth:"100vw"},".max-w-screen-safe":{maxWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".w-screen-safe":{width:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"}})};var Y,_,R,L,X=function(){if(_)return Y;_=1;const e=E(),a={position:"relative",paddingBottom:"calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)"},t={position:"absolute",height:"100%",width:"100%",top:"0",right:"0",bottom:"0",left:"0"},s={".aspect-none":{position:"static",paddingBottom:"0"},".aspect-none > *":{position:"static",height:"auto",width:"auto",top:"auto",right:"auto",bottom:"auto",left:"auto"}},r=e((function({addComponents:e,matchComponents:r,theme:n,variants:o,e:i}){const l=n("aspectRatio");if(r)return r({"aspect-w":e=>[{...a,"--tw-aspect-w":e},{"> *":t}],"aspect-h":e=>({"--tw-aspect-h":e})},{values:l}),void e(s);const f=Object.entries(l).map((([e,a])=>"."+i("aspect-w-"+e))).join(",\n"),m=Object.entries(l).map((([e,a])=>`.${i("aspect-w-"+e)} > *`)).join(",\n");e([{[f]:a,[m]:t},s,Object.entries(l).map((([e,a])=>({["."+i("aspect-w-"+e)]:{"--tw-aspect-w":a}}))),Object.entries(l).map((([e,a])=>({["."+i("aspect-h-"+e)]:{"--tw-aspect-h":a}})))],o("aspectRatio"))}),{theme:{aspectRatio:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"}},variants:{aspectRatio:["responsive"]}});return Y=r}(),k=l(X),z=function(){if(L)return R;L=1;const e=E()((function({addUtilities:e}){e({".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},["responsive"])}));return R=e}();const N=D((e=>{T(e),y(e)}),{theme:{colors:{inherit:"inherit",transparent:"transparent",current:"currentColor",black:"#000",white:{800:"#E4E3E3",700:"#F2F2F2",600:"#FAFAFA",500:"#FFFFFF",DEFAULT:"#FFFFFF"},"negative-red":{800:"#8D1010",700:"#931010",500:"#E61E1E",100:"#FFDDDD",50:"#FDEDED",alternative:"#FF5C5C"},"positive-green":{800:"#2F6407",500:"#5CC30E",100:"#D5FBC7",50:"#EAFDE3",alternative:"#62FF5C"},amber:{800:"#944D0B",500:"#E19F23",100:"#FFF6C2",50:"#FFFAE0",alternative:"#FFE75C"},indigo:{900:"#1349B6",800:"#1B58D2",700:"#2F6FF0",600:"#528AFA",500:"#8EB3FB",400:"#A5C2FC",300:"#BBD1FD",200:"#C7D9FD",100:"#E3ECFE",50:"#F1F6FF"},storm:{800:"#020815",700:"#080F1C",600:"#0F1622",500:"#181E29",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},hurricane:{900:"#020815",800:"#181E29",700:"#232934",600:"#2E343E",500:"#363C46",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},"off-white":{800:"#D5D0C3",700:"#DEDBD5",600:"#ECEAE5",500:"#F3F1ED",400:"#F5F4F1",300:"#F8F7F4",200:"#FAF9F8",100:"#FDFCFB",50:"#FEFEFD"}},boxShadow:C,dropShadow:C,extend:{animation:A.animation,keyframes:A.keyframes,fontFamily:{geist:["Geist","serif"],ambit:["Ambit","sans-serif"]},scale:{flip:"-1"},rotate:B,fontSize:O.fontSize,lineHeight:O.lineHeight,zIndex:{"floating-menu":"190",dropdown:"200","navbar-topbar":"280","navbar-backdrop":"290",navbar:"300",tooltip:"400",datepicker:"401",backdrop:"490",drawer:"500","drawer-header":"501",modal:"600",toast:"700"},screens:n,width:{unset:"unset",inherit:"inherit","content-mobile":"100%","content-1280":"62rem","content-1440":"71rem","content-1536":"77rem","content-1680":"83rem","sidebar-desktop-login":"100%","content-desktop-login":"21rem"},height:{unset:"unset",inherit:"inherit"},spacing:{"content-mobile-x":"1rem","content-mobile-y":"1.5rem","content-desktop-x":"2rem","content-desktop-y":"2rem",18:"4.5rem"},aspectRatio:{branding:"23/24"}}},plugins:[k,l(z),T,y]}),M=e=>e.replace(/[A-Z]/g,(e=>"_"+e.toLowerCase())),G=e=>e.toLowerCase().replace(/([-_][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_",""))),U=e=>e.replace(/-/g," "),H=e=>e.replace(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()));export{M as camelToSnakeCase,U as kebabToSpaces,N as paperless,G as snakeToCamelCase,H as titleCase}
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-DDcyZGui.js";export{i as initTheme,o as onStateChange,s as state,a as stateLocaleOptions,b as stateThemeOptions}from"./p-Dp60j03z.js";import{s as n}from"./p-CWO2YJCh.js";export{g as getScreenSize,b as getScreenSizeInPixels,a as getScreenSizeInRem,d as isBetweenScreens,i as isBiggerThanScreen,j as isDesktop,f as isMobile,c as isSmallerThanScreen,h as isTablet,e as isTouchDevice}from"./p-CWO2YJCh.js";export{f as floatingMenuContainerClass,g as getTableCellColumnClasses,a as getTableCellSizes,i as isTableColumnSizesKey,o as objectGetByPath}from"./p-C8Vq1N_0.js";export{t as tableColumSizesOptions}from"./p-DdQ-S2l7.js";export{I as IBAN_ICON_VARIANTS_ARRAY}from"./p-By0EdXx2.js";export{c as childOf,a as childOfComposed}from"./p-TyZ7uPES.js";export{c as categorized,i as icons}from"./p-CXVK8SLW.js";export{f as formatTranslation,g as getLocaleComponentStrings}from"./p-CwQG70_4.js";export{i as isMobileBrowser}from"./p-DPc49L2n.js";export{c as cn}from"./p-CT54OXR2.js";export{P as PAGINATION_DEFAULT_PAGE_SIZE,a as PAGINATION_DEFAULT_PAGE_SIZE_OPTIONS,S as SELECT_DEFAULT_MAX_DISPLAYED_ITEMS}from"./p-vyRrSf5s.js";function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,p,v,u,x,F,w={},E={};function C(){return p||(p=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const a=t((m||(m=1,function(e){function a(e,a){return{handler:e,config:a}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),a.withOptions=function(e,a=()=>({})){const t=function(t){return{__options:t,handler:e(t),config:a(t)}};return t.__isOptionsFunction=!0,t.__pluginFunction=e,t.__configFunction=a,t};const t=a}(E)),E));function t(e){return e&&e.__esModule?e:{default:e}}const s=a.default}(w)),w}function D(){if(u)return v;u=1;let e=C();return v=(e.__esModule?e:{default:e}).default}var A,y,O=function(){if(F)return x;F=1;const e=D(),a={position:"relative",paddingBottom:"calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)"},t={position:"absolute",height:"100%",width:"100%",top:"0",right:"0",bottom:"0",left:"0"},s={".aspect-none":{position:"static",paddingBottom:"0"},".aspect-none > *":{position:"static",height:"auto",width:"auto",top:"auto",right:"auto",bottom:"auto",left:"auto"}},r=e((function({addComponents:e,matchComponents:r,theme:n,variants:o,e:i}){const l=n("aspectRatio");if(r)return r({"aspect-w":e=>[{...a,"--tw-aspect-w":e},{"> *":t}],"aspect-h":e=>({"--tw-aspect-h":e})},{values:l}),void e(s);const f=Object.entries(l).map((([e,a])=>"."+i("aspect-w-"+e))).join(",\n"),m=Object.entries(l).map((([e,a])=>`.${i("aspect-w-"+e)} > *`)).join(",\n");e([{[f]:a,[m]:t},s,Object.entries(l).map((([e,a])=>({["."+i("aspect-w-"+e)]:{"--tw-aspect-w":a}}))),Object.entries(l).map((([e,a])=>({["."+i("aspect-h-"+e)]:{"--tw-aspect-h":a}})))],o("aspectRatio"))}),{theme:{aspectRatio:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"}},variants:{aspectRatio:["responsive"]}});return x=r}(),T=l(O),B=l(function(){if(y)return A;y=1;const e=D()((function({addUtilities:e}){e({".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},["responsive"])}));return A=e}()),Y=l(D());const _=({addVariant:e})=>{e("has-hover","@media (hover: hover)"),e("no-hover","@media (hover: none)"),e("hover-never","@media (hover: hover) { &:hover }"),e("group-hover-never","@media (hover: hover) { :merge(.group):hover & }"),e("peer-hover-never","@media (hover: hover) { :merge(.peer):hover & }"),e("hover-always",["@media (hover: hover) { &:hover }","@media (hover: none)"]),e("group-hover-always",["@media (hover: hover) { :merge(.group):hover & }","@media (hover: none)"]),e("peer-hover-always",["@media (hover: hover) { :merge(.peer):hover & }","@media (hover: none)"])},R=({addUtilities:e})=>{e({".m-safe":{marginTop:"env(safe-area-inset-top)",marginRight:"env(safe-area-inset-right)",marginBottom:"env(safe-area-inset-bottom)",marginLeft:"env(safe-area-inset-left)"},".mx-safe":{marginRight:"env(safe-area-inset-right)",marginLeft:"env(safe-area-inset-left)"},".my-safe":{marginTop:"env(safe-area-inset-top)",marginBottom:"env(safe-area-inset-bottom)"},".my-safe-2":{marginTop:"calc(env(safe-area-inset-top)+0.5rem)",marginBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".mt-safe":{marginTop:"env(safe-area-inset-top)"},".mr-safe":{marginRight:"env(safe-area-inset-right)"},".mb-safe":{marginBottom:"env(safe-area-inset-bottom)"},".ml-safe":{marginLeft:"env(safe-area-inset-left)"},".p-safe":{paddingTop:"env(safe-area-inset-top)",paddingRight:"env(safe-area-inset-right)",paddingBottom:"env(safe-area-inset-bottom)",paddingLeft:"env(safe-area-inset-left)"},".px-safe":{paddingRight:"env(safe-area-inset-right)",paddingLeft:"env(safe-area-inset-left)"},".py-safe":{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},".py-safe-2":{paddingTop:"calc(env(safe-area-inset-top)+0.5rem)",paddingBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".pt-safe":{paddingTop:"env(safe-area-inset-top)"},".pr-safe":{paddingRight:"env(safe-area-inset-right)"},".pb-safe":{paddingBottom:"env(safe-area-inset-bottom)"},".pl-safe":{paddingLeft:"env(safe-area-inset-left)"},".min-h-screen":{minHeight:"100vh"},".min-h-screen-safe":{minHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".max-h-screen":{maxHeight:"100vh"},".max-h-screen-safe":{maxHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".h-screen-safe":{height:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".min-w-screen":{minWidth:"100vw"},".min-w-screen-safe":{minWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".max-w-screen":{maxWidth:"100vw"},".max-w-screen-safe":{maxWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".w-screen-safe":{width:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"}})};var L={animation:{"fade-in":"forwards fadeIn .2s ease","fade-out":"forwards fadeOut .2s ease","slide-in-right":"forwards slideInRight .5s ease","slide-in-left":"forwards slideInLeft .5s ease","slide-in-top":"forwards slideInTop .25 ease","slide-in-bottom":"forwards slideInBottom .5s ease","slide-in-right-small":"forwards slideInRightSmall .5s ease","slide-in-left-small":"forwards slideInLeftSmall .5s ease","slide-in-top-small":"forwards slideInTopSmall .5s ease","slide-in-bottom-small":"forwards slideInBottomSmall .5s ease","slide-out-right":"forwards slideOutRight .2s ease","slide-out-left":"forwards slideOutLeft .2s ease","slide-out-top":"forwards slideOutTop .2s ease","slide-out-bottom":"forwards slideOutBottom .5s ease","slide-out-top-small":"forwards slideOutTopSmall .5s ease","slide-out-bottom-small":"forwards slideOutBottomSmall .5s ease","floating-menu-container-out":"forwards floatingMenuContainerOut .5s ease","floating-menu-container-in":"forwards floatingMenuContainerIn .5s ease",wave:"wave .5s ease-in-out -0.5s infinite alternate forwards"},keyframes:{fadeIn:{"0%":{opacity:"0"},"100%":{opacity:"100"}},fadeOut:{"0%":{opacity:"100"},"100%":{opacity:"0"}},slideInRight:{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},slideInLeft:{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},slideInTop:{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},slideInBottom:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},slideInRightSmall:{"0%":{transform:"translateX(20%)"},"100%":{transform:"translateX(0)"}},slideInLeftSmall:{"0%":{transform:"translateX(-20%)"},"100%":{transform:"translateX(0)"}},slideInTopSmall:{"0%":{transform:"translateY(-20%)"},"100%":{transform:"translateY(0)"}},slideInBottomSmall:{"0%":{transform:"translateY(20%)"},"100%":{transform:"translateY(0)"}},slideOutRight:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},slideOutLeft:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},slideOutTop:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},slideOutBottom:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},slideOutTopSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-20%)"}},slideOutBottomSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(20%)"}},floatingMenuContainerOut:{"0%":{display:"flex",transform:"translateY(0)",opacity:"100"},"99%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"none",transform:"translateY(100%)",opacity:"0"}},floatingMenuContainerIn:{"0%":{display:"none",transform:"translateY(100%)",opacity:"0"},"1%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"flex",transform:"translateY(0)",opacity:"100"}},wave:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(-15deg)"}}}};const X={};for(let e=1;e<360;e++)X[""+e]=e+"deg",X["-"+e]=`-${e}deg`;var k={1:["0 1px 1px rgba(0, 2, 2, 0.08)"],2:["0 1px 1px rgba(0, 2, 2, 0.04)","0 2px 2px rgba(0, 2, 2, 0.04)","0 4px 4px rgba(0, 2, 2, 0.04)"],3:["0 1px 1px rgba(0, 2, 2, 0.08)","0 2px 2px rgba(0, 2, 2, 0.08)","0 4px 4px rgba(0, 2, 2, 0.08)"],modal:["0 0 0 1px rgba(0, 2, 2, 0.10)","0 1px 1px 0 rgba(0, 2, 2, 0.20)","0 2px 2px 0 rgba(0, 2, 2, 0.08)","0 4px 4px 0 rgba(0, 2, 2, 0.08)","0 8px 8px 0 rgba(0, 2, 2, 0.08)"],"supportive-lilac":"0px 1px 1px rgba(189, 140, 255, 0.20)","storm-10%":"0px 1px 0px rgba(3, 42, 36, 0.1)","primary-button":"0px 1px 1px 0px rgba(24, 30 41, 0.08)","off-white-600":"0px 0px 0px 1px #ECEAE5",inherit:"inherit",transparent:"transparent"},z={fontSize:{xxs:["0.5rem","1rem"],"3xl":["2rem","2.5rem"],"4xl":["2.5rem","3rem"]},lineHeight:{xs:"1rem",sm:"1.5rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.5rem","4xl":"3rem"}};const M=Y((e=>{R(e),_(e)}),{theme:{colors:{inherit:"inherit",transparent:"transparent",current:"currentColor",black:"#000",white:{800:"#E4E3E3",700:"#F2F2F2",600:"#FAFAFA",500:"#FFFFFF",DEFAULT:"#FFFFFF"},"negative-red":{800:"#8D1010",700:"#931010",500:"#E61E1E",100:"#FFDDDD",50:"#FDEDED",alternative:"#FF5C5C"},"positive-green":{800:"#2F6407",500:"#5CC30E",100:"#D5FBC7",50:"#EAFDE3",alternative:"#62FF5C"},amber:{800:"#944D0B",500:"#E19F23",100:"#FFF6C2",50:"#FFFAE0",alternative:"#FFE75C"},indigo:{900:"#1349B6",800:"#1B58D2",700:"#2F6FF0",600:"#528AFA",500:"#8EB3FB",400:"#A5C2FC",300:"#BBD1FD",200:"#C7D9FD",100:"#E3ECFE",50:"#F1F6FF"},storm:{800:"#020815",700:"#080F1C",600:"#0F1622",500:"#181E29",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},hurricane:{900:"#020815",800:"#181E29",700:"#232934",600:"#2E343E",500:"#363C46",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},"off-white":{800:"#D5D0C3",700:"#DEDBD5",600:"#ECEAE5",500:"#F3F1ED",400:"#F5F4F1",300:"#F8F7F4",200:"#FAF9F8",100:"#FDFCFB",50:"#FEFEFD"}},boxShadow:k,dropShadow:k,extend:{animation:L.animation,keyframes:L.keyframes,fontFamily:{geist:["Geist","serif"],ambit:["Ambit","sans-serif"]},scale:{flip:"-1"},rotate:X,fontSize:z.fontSize,lineHeight:z.lineHeight,zIndex:{"floating-menu":"190",dropdown:"200","navbar-topbar":"280","navbar-backdrop":"290",navbar:"300",tooltip:"400",datepicker:"401",backdrop:"490",drawer:"500","drawer-header":"501",modal:"600",toast:"700"},screens:n,width:{unset:"unset",inherit:"inherit","content-mobile":"100%","content-1280":"62rem","content-1440":"71rem","content-1536":"77rem","content-1680":"83rem","sidebar-desktop-login":"100%","content-desktop-login":"21rem"},height:{unset:"unset",inherit:"inherit"},spacing:{"content-mobile-x":"1rem","content-mobile-y":"1.5rem","content-desktop-x":"2rem","content-desktop-y":"2rem",18:"4.5rem"},aspectRatio:{branding:"23/24"}}},plugins:[T,B,R,_]}),N=e=>e.replaceAll(/[A-Z]/g,(e=>"_"+e.toLowerCase())),G=e=>e.toLowerCase().replaceAll(/([_-][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_",""))),W=e=>e.replaceAll("-"," "),H=e=>e.replaceAll(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()));export{N as camelToSnakeCase,W as kebabToSpaces,M as paperless,G as snakeToCamelCase,H as titleCase}
|