@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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
/* eslint-disable import/no-duplicates */
|
|
1
2
|
import { h, } from "@stencil/core";
|
|
2
3
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { addDays, addMonths, addYears, endOfMonth, format, getDay, getDaysInMonth, getYear, isAfter, isBefore, isSameDay, isSameMonth, isSameYear, isValid, isWeekend, setDate, setMonth, setYear, startOfDay, startOfMonth, } from "date-fns";
|
|
4
|
-
import {
|
|
5
|
-
import { cn } from "../../../utils/cn";
|
|
6
|
-
import { state } from "../../../state";
|
|
4
|
+
import { addDays, addMonths, addYears, endOfMonth, format, getDay, getDaysInMonth, getYear, isAfter, isBefore, isSameDay, isSameMonth, isSameYear, isValid, isWeekend, setDate, setMonth, setYear, startOfDay, startOfMonth, subYears, } from "date-fns";
|
|
5
|
+
import { enUS, nl } from "date-fns/locale";
|
|
7
6
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
8
|
-
import {
|
|
7
|
+
import { state } from "../../../state";
|
|
8
|
+
import { cn } from "../../../utils/cn";
|
|
9
9
|
const calendar = cva(['w-[17.5rem] flex flex-col gap-4'], {
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -89,7 +89,7 @@ export class Calendar {
|
|
|
89
89
|
_maxDate;
|
|
90
90
|
_disabledDates = [];
|
|
91
91
|
_enableToday = true;
|
|
92
|
-
_weekDays = Array.from(
|
|
92
|
+
_weekDays = [...Array.from({ length: 7 }).keys()];
|
|
93
93
|
_yearItemsRef;
|
|
94
94
|
componentWillLoad() {
|
|
95
95
|
if (this.disabledDates) {
|
|
@@ -187,7 +187,7 @@ export class Calendar {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return (h(ThemedHost, { key: '
|
|
190
|
+
return (h(ThemedHost, { key: 'cb86d89f72df18561c48f1e3f6190e145b82a9f7' }, h("div", { key: '1f3db7e6503b1a3591b0be7877d0e912fe5c4ac2', class: calendar({ variant: this.variant }) }, this._getView())));
|
|
191
191
|
}
|
|
192
192
|
_checkTodayButton() {
|
|
193
193
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -220,14 +220,12 @@ export class Calendar {
|
|
|
220
220
|
const daysInMonth = this._generateDaysInMonth();
|
|
221
221
|
return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, format(addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
|
|
222
222
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
223
|
-
})))), daysInMonth.map(day => {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}), onClick: () => this._setValue(day.date) }, day.day));
|
|
230
|
-
}))));
|
|
223
|
+
})))), daysInMonth.map(day => day.active ? (h("p-button", { variant: 'primary', tabIndex: -1, class: cn('w-8', `col-start-${day.offset}`), onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
|
|
224
|
+
'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
|
|
225
|
+
'dark:text-hurricane-200': day.disabled,
|
|
226
|
+
}, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
227
|
+
'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white': !day.disabled && isSameDay(day.date, new Date()),
|
|
228
|
+
}), onClick: () => this._setValue(day.date) }, day.day))))));
|
|
231
229
|
}
|
|
232
230
|
_getMonthView() {
|
|
233
231
|
const months = this._generateMonths();
|
|
@@ -314,7 +312,8 @@ export class Calendar {
|
|
|
314
312
|
this.valueChange.emit(value);
|
|
315
313
|
}
|
|
316
314
|
_generateDaysInMonth() {
|
|
317
|
-
|
|
315
|
+
// eslint-disable-next-line unicorn/no-new-array
|
|
316
|
+
const days = [...new Array(getDaysInMonth(this._viewDate)).keys()];
|
|
318
317
|
return days.map(day => {
|
|
319
318
|
day = day + 1;
|
|
320
319
|
const date = startOfDay(setDate(this._viewDate, day));
|
|
@@ -333,11 +332,11 @@ export class Calendar {
|
|
|
333
332
|
return ((isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||
|
|
334
333
|
(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
|
|
335
334
|
((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||
|
|
336
|
-
this._disabledDates.
|
|
335
|
+
this._disabledDates.some(date => isSameDay(date, day)));
|
|
337
336
|
}
|
|
338
337
|
_generateMonths() {
|
|
339
338
|
const year = getYear(this._viewDate);
|
|
340
|
-
const months = Array.from(
|
|
339
|
+
const months = [...Array.from({ length: 12 }).keys()];
|
|
341
340
|
return months.map(month => {
|
|
342
341
|
const date = new Date(year, month, 1);
|
|
343
342
|
return {
|
|
@@ -352,7 +351,8 @@ export class Calendar {
|
|
|
352
351
|
_generateYears() {
|
|
353
352
|
const maxYear = getYear(this._maxDate) + 1;
|
|
354
353
|
const minYear = getYear(this._minDate);
|
|
355
|
-
|
|
354
|
+
// eslint-disable-next-line unicorn/no-new-array
|
|
355
|
+
return [...new Array(maxYear - minYear).keys()].map(index => {
|
|
356
356
|
const year = minYear + index;
|
|
357
357
|
return {
|
|
358
358
|
year,
|
|
@@ -47,9 +47,9 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, h("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
51
51
|
height: `${this._outerHeight}px`,
|
|
52
|
-
}, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: '
|
|
52
|
+
}, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: 'cb82eacdfc02898e9eeaff865b5e7fa7da69a2f9', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'e6e5636ba8ed11665e0d623bcffb8a53bba03908', onSlotchange: () => this._slotChange() }))), h("div", { key: '9d596407cda3aaa5cbae5c0a0a19209623627edd', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("div", { class: cn('block h-2 w-2 rounded-full', {
|
|
53
53
|
'bg-indigo-600': i === this._visibleIndex,
|
|
54
54
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
55
55
|
}) })))))));
|
|
@@ -98,7 +98,7 @@ export class ContentSlider {
|
|
|
98
98
|
}
|
|
99
99
|
_slotChange() {
|
|
100
100
|
const items = this._el.querySelectorAll(':scope > *');
|
|
101
|
-
this._items =
|
|
101
|
+
this._items = [...items];
|
|
102
102
|
setTimeout(() => {
|
|
103
103
|
this._innerSliderRef.style.setProperty('--tw-translate-x', '0px');
|
|
104
104
|
this._calculateWidth();
|
|
@@ -142,7 +142,7 @@ export class ContentSlider {
|
|
|
142
142
|
}
|
|
143
143
|
_checkBoundary() {
|
|
144
144
|
let outer = this._sliderRef.getBoundingClientRect();
|
|
145
|
-
const left = parseInt(this._innerSliderRef.style.getPropertyValue('--tw-translate-x'));
|
|
145
|
+
const left = Number.parseInt(this._innerSliderRef.style.getPropertyValue('--tw-translate-x'));
|
|
146
146
|
if (left > 0) {
|
|
147
147
|
this._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);
|
|
148
148
|
}
|
|
@@ -203,15 +203,15 @@ export class ContentSlider {
|
|
|
203
203
|
totalWidth += rect.width;
|
|
204
204
|
}
|
|
205
205
|
const sliderStyle = getComputedStyle(this._sliderRef);
|
|
206
|
-
const padding = parseInt(sliderStyle.padding) * 2;
|
|
206
|
+
const padding = Number.parseInt(sliderStyle.padding) * 2;
|
|
207
207
|
const innerSliderStyle = getComputedStyle(this._innerSliderRef);
|
|
208
|
-
const gap = parseInt(innerSliderStyle.gap) * (this._filteredItems.length - 1);
|
|
208
|
+
const gap = Number.parseInt(innerSliderStyle.gap) * (this._filteredItems.length - 1);
|
|
209
209
|
totalWidth += padding + gap;
|
|
210
210
|
this._totalWidth = totalWidth;
|
|
211
211
|
}
|
|
212
212
|
_calculateHeight() {
|
|
213
213
|
const items = this._filteredItems;
|
|
214
|
-
if (
|
|
214
|
+
if (items.length === 0) {
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
const outerHeight = this._filteredItems
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import "cropperjs";
|
|
3
2
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
3
|
import { state } from "../../../state";
|
|
5
4
|
export class Cropper {
|
|
@@ -41,7 +40,7 @@ export class Cropper {
|
|
|
41
40
|
const themeColor = state.theme === 'dark'
|
|
42
41
|
? 'rgba(70, 75, 84, 0.5)'
|
|
43
42
|
: 'rgba(255, 255, 255, 0.5)';
|
|
44
|
-
return (h(ThemedHost, { key: '
|
|
43
|
+
return (h(ThemedHost, { key: 'e400f992f259019b11e1be419a1272cc1a0dc829' }, this._loaded && (h("cropper-canvas", { key: '237161476c456cef513d709111e0571b34296ef7', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200', onAction: () => this._onAction() }, h("cropper-image", { key: '3d0693f76a4447b38025193f3f7f73f1b6286c50', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '4d1dcd3666bda9336ea96e4e1618661280298f75', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: '1029c31b3221664bfc2892e54620e28d6ed352a4', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'c886a8f4453f540988daa792e7a388464219045b', action: 'move', plain: true }))), h("p-range", { key: '2281ee5a960b9fd4f924c394a095ae8531956a23', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
45
44
|
}
|
|
46
45
|
_setImageRef(ref) {
|
|
47
46
|
if (this._imageRef) {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, } from "date-fns";
|
|
2
|
+
import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, addYears, getYear, setYear, subYears, } from "date-fns";
|
|
3
|
+
import { enUS, nl } from "date-fns/locale";
|
|
4
|
+
import { state } from "../../../state";
|
|
3
5
|
import { childOf, isMobileBrowser } from "../../../utils";
|
|
4
6
|
import { asBoolean } from "../../../utils/as-boolean";
|
|
5
|
-
import { state } from "../../../state";
|
|
6
|
-
import { enUS, nl } from "date-fns/locale";
|
|
7
|
-
import { addYears } from "date-fns";
|
|
8
|
-
import { getYear } from "date-fns";
|
|
9
|
-
import { setYear } from "date-fns";
|
|
10
|
-
import { subYears } from "date-fns";
|
|
11
7
|
export class Datepicker {
|
|
12
8
|
/**
|
|
13
9
|
* The placeholder of the input
|
|
@@ -212,7 +208,7 @@ export class Datepicker {
|
|
|
212
208
|
this.parseValue(this.value);
|
|
213
209
|
}
|
|
214
210
|
render() {
|
|
215
|
-
return (h("p-dropdown", { key: '
|
|
211
|
+
return (h("p-dropdown", { key: 'a01a3bf86a26c0b909a777941c002f8db1963210', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown, isDatepicker: true }, h("p-field", { key: '66141e393236efcc4ce8deb36ea3083eb8f1cbe8', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, autoShowError: false, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: (ev) => this._onBlur(ev), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '6c7d01a5c298b42d089ae18d06c6acb2659031cb', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value &&
|
|
216
212
|
format(this._value, 'yyyy-MM-dd', {
|
|
217
213
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
218
214
|
}), min: this._minDate &&
|
|
@@ -221,7 +217,7 @@ export class Datepicker {
|
|
|
221
217
|
}), max: this.maxDate &&
|
|
222
218
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
223
219
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
224
|
-
}) })), h("div", { key: '
|
|
220
|
+
}) })), h("div", { key: 'd5a32388cee9bb272905deb090816da8217e9a41', tabIndex: -1, slot: 'items' }, h("p-calendar", { key: 'dce8bdd282632e2c38ebf13b3b07db561b27dffb', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, enableToday: this.enableToday, todayText: this.todayText, mode: this.mode }))));
|
|
225
221
|
}
|
|
226
222
|
documentClickHandler({ target }) {
|
|
227
223
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -311,7 +307,7 @@ export class Datepicker {
|
|
|
311
307
|
return;
|
|
312
308
|
}
|
|
313
309
|
if (this._isDisabledDay(value)) {
|
|
314
|
-
if (
|
|
310
|
+
if (this._dateInputRef?.value) {
|
|
315
311
|
this._dateInputRef.value = this._value
|
|
316
312
|
? format(this._value, 'yyyy-MM-dd', {
|
|
317
313
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
@@ -340,7 +336,7 @@ export class Datepicker {
|
|
|
340
336
|
return ((this.disableWeekends && isWeekend(day)) ||
|
|
341
337
|
(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||
|
|
342
338
|
(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
|
|
343
|
-
this._disabledDates.
|
|
339
|
+
this._disabledDates.some(date => isSameDay(date, day)));
|
|
344
340
|
}
|
|
345
341
|
_getFormattedDate() {
|
|
346
342
|
if (!this._value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { autoUpdate, computePosition, flip, offset, shift, } from "@floating-ui/dom";
|
|
2
2
|
import { h, Host, } from "@stencil/core";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { childOfComposed } from "../../../utils/child-of";
|
|
5
4
|
import { cn } from "../../../utils";
|
|
5
|
+
import { childOfComposed } from "../../../utils/child-of";
|
|
6
6
|
const dropdownContainerClass = cva(['hidden'], {
|
|
7
7
|
variants: {
|
|
8
8
|
strategy: {
|
|
@@ -127,40 +127,40 @@ export class Dropdown {
|
|
|
127
127
|
this._checkItems();
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
return (h(Host, { key: '
|
|
130
|
+
return (h(Host, { key: 'a4b635c184cc8a58c74f1ba5dbb5f455df1a7b86', class: 'relative' }, h("div", { key: 'd0d1a3f05d117bb2b3a28022e8737fae2f25fcb3', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '5697825e61fb1c07139663c6c5ac400c48da998a', name: 'trigger' })), h("div", { key: '815b60a51d6b074e878eab047cac77cce5a3e337', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '60bf00e8beb6e42e7629b57283d317bfe0a2b40a', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: cn(dropdownContainerClass({
|
|
131
131
|
strategy: this.strategy,
|
|
132
132
|
maxWidth: this.applyMaxWidth,
|
|
133
133
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
134
134
|
isDatepicker: this.isDatepicker,
|
|
135
|
-
}), this.containerClass), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: '
|
|
135
|
+
}), this.containerClass), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: '34a4da54cb7e3949a494b028b6188b9655b294c2', name: 'items' })))));
|
|
136
136
|
}
|
|
137
137
|
_checkButtons(active = false) {
|
|
138
138
|
if (!this.applyChevron) {
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
const buttons = this._el.querySelectorAll('p-button[slot="trigger"]');
|
|
142
|
-
const isOpen = this._menu.
|
|
143
|
-
for (let button of
|
|
142
|
+
const isOpen = this._menu.dataset.show !== null;
|
|
143
|
+
for (let button of buttons) {
|
|
144
144
|
button.disabled = this.disableTriggerClick;
|
|
145
145
|
button.active = active;
|
|
146
146
|
if (button.iconOnly) {
|
|
147
147
|
continue;
|
|
148
148
|
}
|
|
149
149
|
button.chevronPosition = this.chevronPosition;
|
|
150
|
-
button.chevron =
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
150
|
+
button.chevron =
|
|
151
|
+
this.chevronDirection ??
|
|
152
|
+
(this.placement.includes('top')
|
|
153
|
+
? isOpen
|
|
154
|
+
? 'down'
|
|
155
|
+
: 'up'
|
|
156
|
+
: isOpen
|
|
157
|
+
? 'up'
|
|
158
|
+
: 'down');
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
_checkItems() {
|
|
162
162
|
const items = this._el.querySelectorAll('p-dropdown-menu-item');
|
|
163
|
-
for (let item of
|
|
163
|
+
for (let item of items) {
|
|
164
164
|
if (item.variant === 'pagination' || item.variant === 'negative') {
|
|
165
165
|
continue;
|
|
166
166
|
}
|
|
@@ -178,7 +178,7 @@ export class Dropdown {
|
|
|
178
178
|
this._show();
|
|
179
179
|
}
|
|
180
180
|
documentClickHandler(event) {
|
|
181
|
-
if (!this._menu.
|
|
181
|
+
if (!Object.hasOwn(this._menu.dataset, 'show') ||
|
|
182
182
|
childOfComposed(event, this._menu)) {
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
@@ -188,7 +188,7 @@ export class Dropdown {
|
|
|
188
188
|
if (this.insideClick) {
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
if (this._menu.
|
|
191
|
+
if (Object.hasOwn(this._menu.dataset, 'show')) {
|
|
192
192
|
this._hide();
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -199,7 +199,7 @@ export class Dropdown {
|
|
|
199
199
|
if (this.manual) {
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
if (this._menu.
|
|
202
|
+
if (Object.hasOwn(this._menu.dataset, 'show')) {
|
|
203
203
|
this._hide();
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
@@ -220,7 +220,7 @@ export class Dropdown {
|
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
this._cleanup = autoUpdate(this._el, this._menu, () => this._update());
|
|
223
|
-
this._menu.
|
|
223
|
+
this._menu.dataset.show = '';
|
|
224
224
|
this._menu.classList.remove('hidden');
|
|
225
225
|
this._menu.classList.add('block');
|
|
226
226
|
this.isOpen.emit(true);
|
|
@@ -235,7 +235,7 @@ export class Dropdown {
|
|
|
235
235
|
this._cleanup = null;
|
|
236
236
|
}
|
|
237
237
|
// Hide the popover
|
|
238
|
-
this._menu.
|
|
238
|
+
delete this._menu.dataset.show;
|
|
239
239
|
this._menu.classList.remove('block');
|
|
240
240
|
this._menu.classList.add('hidden');
|
|
241
241
|
this.isOpen.emit(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
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";
|
|
4
|
+
import { asBoolean } from "../../../utils/as-boolean";
|
|
5
5
|
const emptyState = cva(['flex flex-col w-full items-center justify-start max-w-[20rem]'], {
|
|
6
6
|
variants: {
|
|
7
7
|
enableAction: {
|
|
@@ -59,11 +59,11 @@ export class EmptyState {
|
|
|
59
59
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
60
60
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
61
61
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
62
|
-
return (h(ThemedHost, { key: '
|
|
62
|
+
return (h(ThemedHost, { key: '580edaeaa7a1429f07840b25d2062f9e6ae9763d' }, h("div", { key: 'c08807d745ee8f4bebae2d7aec92bf110824269e', class: emptyState({
|
|
63
63
|
enableAction: asBoolean(this.enableAction, true),
|
|
64
64
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
65
65
|
? this.action.emit(ev)
|
|
66
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
66
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '3434e243bb9a41e7f56982fff2450cc92013b25f', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-storm-500 dark:text-white' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300 dark:text-hurricane-200' }, this.content))), this.enableAction &&
|
|
67
67
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "p-empty-state"; }
|
|
@@ -81,16 +81,16 @@ export class EmptyState {
|
|
|
81
81
|
static get properties() {
|
|
82
82
|
return {
|
|
83
83
|
"illustration": {
|
|
84
|
-
"type": "
|
|
84
|
+
"type": "string",
|
|
85
85
|
"mutable": false,
|
|
86
86
|
"complexType": {
|
|
87
87
|
"original": "IllustrationVariant",
|
|
88
|
-
"resolved": "
|
|
88
|
+
"resolved": "\"calculator\" | \"calendar\" | \"clock\" | \"coins\" | \"file\" | \"file-invoice\" | \"file-notes\" | \"folder\" | \"payment\" | \"search\" | \"sick-leave\" | \"table\" | \"tag\" | \"task\" | \"user\"",
|
|
89
89
|
"references": {
|
|
90
90
|
"IllustrationVariant": {
|
|
91
91
|
"location": "import",
|
|
92
|
-
"path": "../../../
|
|
93
|
-
"id": "src/
|
|
92
|
+
"path": "../../../types/illustration",
|
|
93
|
+
"id": "src/types/illustration.ts::IllustrationVariant",
|
|
94
94
|
"referenceLocation": "IllustrationVariant"
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -219,8 +219,8 @@ export class EmptyState {
|
|
|
219
219
|
"references": {
|
|
220
220
|
"IconVariant": {
|
|
221
221
|
"location": "import",
|
|
222
|
-
"path": "../../../
|
|
223
|
-
"id": "src/
|
|
222
|
+
"path": "../../../types/icon",
|
|
223
|
+
"id": "src/types/icon.ts::IconVariant",
|
|
224
224
|
"referenceLocation": "IconVariant"
|
|
225
225
|
}
|
|
226
226
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
+
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
3
4
|
import { cn, formatTranslation, getLocaleComponentStrings, } from "../../../../utils";
|
|
4
5
|
import { asBoolean } from "../../../../utils/as-boolean";
|
|
5
|
-
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
6
6
|
const loader = cva(['rounded-lg w-full'], {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
@@ -105,24 +105,24 @@ export class FieldContainer {
|
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
107
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
108
|
-
let contentSlot = (h("slot", { key: '
|
|
108
|
+
let contentSlot = (h("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de', slot: 'trigger', name: 'content' }));
|
|
109
109
|
if (this.loading) {
|
|
110
|
-
contentSlot = (h("p-loader", { key: '
|
|
110
|
+
contentSlot = (h("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
|
|
111
111
|
}
|
|
112
|
-
return (h(ThemedHost, { key: '
|
|
112
|
+
return (h(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, h("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1', htmlFor: this.id, class: cn('flex w-inherit flex-col gap-1', {
|
|
113
113
|
'cursor-auto': this.variant === 'read',
|
|
114
|
-
}) }, h("div", { key: '
|
|
114
|
+
}) }, h("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
115
115
|
'flex-row-reverse': this.align === 'end',
|
|
116
|
-
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '
|
|
117
|
-
hasHeaderSlot) && (h("div", { key: '
|
|
116
|
+
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '97d2b33bb04145650b000dde1859015361855fa3', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: '4a2fc2b62dba4fc7d4a5f816944996333cff2ca3', class: 'min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200' }, label), helper && (h("p-helper", { key: '1638bb0c6c3683bd2bd0836b9f4fd0ca07561baf', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
117
|
+
hasHeaderSlot) && (h("div", { key: '4f9f56fc0951dab62bd75c4cc7ea724e17ec05aa', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
118
118
|
asBoolean(this.showOptional) &&
|
|
119
|
-
this.variant === 'write' && (h("span", { key: '
|
|
119
|
+
this.variant === 'write' && (h("span", { key: '5a86b8751d683868f5c6f001571c184684014741', class: 'text-xs font-medium text-storm-200 dark:text-hurricane-300' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: '2bb4125dfcf6a346259a64f5a92000413fcd13ab', name: 'header' })))), h("p-tooltip", { key: '9ddda9fc48a0d3e95ba9953c1787728692b04b27', class: cn({
|
|
120
120
|
'w-full': this.variant === 'write' || this.loading,
|
|
121
121
|
'ml-auto': this.align === 'end',
|
|
122
122
|
'font-normal': this.variant === 'read',
|
|
123
123
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
124
124
|
}), variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean &&
|
|
125
|
-
asBoolean(this.forceShowTooltip, false), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '
|
|
125
|
+
asBoolean(this.forceShowTooltip, false), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '3670780d5e0907d655e282fbea6c43dcceea7e00', name: 'error', slot: 'content' })), contentSlot))));
|
|
126
126
|
}
|
|
127
127
|
async _setLocales() {
|
|
128
128
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -329,8 +329,8 @@ export class Field {
|
|
|
329
329
|
}
|
|
330
330
|
render() {
|
|
331
331
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
332
|
-
return (h(ThemedHost, { key: '
|
|
333
|
-
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '
|
|
332
|
+
return (h(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, h("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
333
|
+
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '597e07f1227421eb34575f2c35a5f752f60a66a3', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '0ec1fd3a079f51c605b593e90d8514119ae0ffa3', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'c71b52f8f6f8fc374e9d7e0c2ed4f838c9f9cb86', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'd62e1c5f5592540dacbb2e18cf5cc560efbbc5a4', name: 'error', slot: 'error' })), h("div", { key: '7d30604708a80bd509b5d739e46d82b5fa23b464', class: field({
|
|
334
334
|
error: !!this.error?.length,
|
|
335
335
|
disabled: asBoolean(this.disabled),
|
|
336
336
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -341,7 +341,7 @@ export class Field {
|
|
|
341
341
|
? `${this.value}`
|
|
342
342
|
: undefined, slot: 'content' }, (this.error?.length ||
|
|
343
343
|
prefix ||
|
|
344
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
344
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: 'b4b203ba8f20620b2d7f368d2c6367bdadea9878', class: prefixAndSuffix({
|
|
345
345
|
variant: this.variant,
|
|
346
346
|
error: !!this.error?.length,
|
|
347
347
|
disabled: asBoolean(this.disabled),
|
|
@@ -351,7 +351,7 @@ export class Field {
|
|
|
351
351
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
352
352
|
this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
353
353
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
354
|
-
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
354
|
+
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '5fe27dcdc61d7ba5646ecd6e062ad51f808dc4dd', class: prefixAndSuffix({
|
|
355
355
|
variant: this.variant,
|
|
356
356
|
error: !!this.error?.length,
|
|
357
357
|
disabled: asBoolean(this.disabled),
|
|
@@ -686,8 +686,8 @@ export class Field {
|
|
|
686
686
|
"references": {
|
|
687
687
|
"IconVariant": {
|
|
688
688
|
"location": "import",
|
|
689
|
-
"path": "
|
|
690
|
-
"id": "src/
|
|
689
|
+
"path": "../../../../types",
|
|
690
|
+
"id": "src/types/index.ts::IconVariant",
|
|
691
691
|
"referenceLocation": "IconVariant"
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -712,8 +712,8 @@ export class Field {
|
|
|
712
712
|
"references": {
|
|
713
713
|
"IconFlipOptions": {
|
|
714
714
|
"location": "import",
|
|
715
|
-
"path": "
|
|
716
|
-
"id": "src/
|
|
715
|
+
"path": "../../../../types",
|
|
716
|
+
"id": "src/types/index.ts::IconFlipOptions",
|
|
717
717
|
"referenceLocation": "IconFlipOptions"
|
|
718
718
|
}
|
|
719
719
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "../../../utils/cn";
|
|
4
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
|
+
import { cn } from "../../../utils/cn";
|
|
5
5
|
const label = cva(['flex items-center justify-center gap-2', 'h-6 rounded-full'], {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
@@ -69,14 +69,14 @@ export class Label {
|
|
|
69
69
|
*/
|
|
70
70
|
keepMobileContent = false;
|
|
71
71
|
render() {
|
|
72
|
-
return (h(ThemedHost, { key: '
|
|
72
|
+
return (h(ThemedHost, { key: '53d97bb000a19617372b807e32bc9902758de3b2' }, h("div", { key: '4f1c2e4b9dd25972a2ab5146234a6166ee71bc27', class: label({
|
|
73
73
|
variant: this.variant,
|
|
74
74
|
iconOnly: this.iconOnly,
|
|
75
75
|
keepMobileContent: this.keepMobileContent,
|
|
76
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
76
|
+
}) }, this.icon && (h("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: 'd0b89fc24b7304a8e61e5157bcf4bdae3bdb26ca', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
|
|
77
77
|
hidden: !this.keepMobileContent,
|
|
78
78
|
'desktop-xs:block': !this.keepMobileContent,
|
|
79
|
-
}) }, h("slot", { key: '
|
|
79
|
+
}) }, h("slot", { key: 'ad87aa170cc6f7980678a1cfc25f5dbdf510127e' }))))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "p-label"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -141,8 +141,8 @@ export class Label {
|
|
|
141
141
|
"references": {
|
|
142
142
|
"IconVariant": {
|
|
143
143
|
"location": "import",
|
|
144
|
-
"path": "
|
|
145
|
-
"id": "src/
|
|
144
|
+
"path": "../../../types",
|
|
145
|
+
"id": "src/types/index.ts::IconVariant",
|
|
146
146
|
"referenceLocation": "IconVariant"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -167,8 +167,8 @@ export class Label {
|
|
|
167
167
|
"references": {
|
|
168
168
|
"IconFlipOptions": {
|
|
169
169
|
"location": "import",
|
|
170
|
-
"path": "
|
|
171
|
-
"id": "src/
|
|
170
|
+
"path": "../../../types",
|
|
171
|
+
"id": "src/types/index.ts::IconFlipOptions",
|
|
172
172
|
"referenceLocation": "IconFlipOptions"
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -76,13 +76,13 @@ export class NavigationItem {
|
|
|
76
76
|
render() {
|
|
77
77
|
const TagType = this.as;
|
|
78
78
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
79
|
-
return (h(ThemedHost, { key: '
|
|
79
|
+
return (h(ThemedHost, { key: 'bbbc6fe9a5cbb86e272b031619120aa4de22dd1d', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '0bd8377b3e5a0d0a5ad987ecc039364935093b60', class: navigationItem({
|
|
80
80
|
icon: !!this.icon,
|
|
81
81
|
active,
|
|
82
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
82
|
+
}), href: this.href, target: this.target }, h("div", { key: '4be9bc173eaa742240660646fb01f98ba9ccb063', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '011712d489f21e6f339e89319c6fda9582e50b7b', variant: this.icon })), h("span", { key: '5074414a36d7c7a6662ccdd49c1486a868952d0c', class: cn({
|
|
83
83
|
'has-counter': !!this.counter,
|
|
84
84
|
'w-full': this.applyFullWidth,
|
|
85
|
-
}) }, h("slot", { key: '
|
|
85
|
+
}) }, h("slot", { key: '32ffee98ef6e055203ab5b10f1c87fc06a0afc5d' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '5579ff2571fbabae627e34df722ee0a641b59516' }, this.counter)), !!this.loading && h("p-loader", { key: '3fbd06bbe36c9110c0707d07389e4d75d98f5b92', class: 'ml-auto' }))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "p-navigation-item"; }
|
|
88
88
|
static get encapsulation() { return "scoped"; }
|
|
@@ -107,8 +107,8 @@ export class NavigationItem {
|
|
|
107
107
|
"references": {
|
|
108
108
|
"IconVariant": {
|
|
109
109
|
"location": "import",
|
|
110
|
-
"path": "
|
|
111
|
-
"id": "src/
|
|
110
|
+
"path": "../../../../types/icon",
|
|
111
|
+
"id": "src/types/icon.ts::IconVariant",
|
|
112
112
|
"referenceLocation": "IconVariant"
|
|
113
113
|
}
|
|
114
114
|
}
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -6,7 +6,7 @@ export class NavigationSection {
|
|
|
6
6
|
*/
|
|
7
7
|
header;
|
|
8
8
|
render() {
|
|
9
|
-
return (h(ThemedHost, { key: '
|
|
9
|
+
return (h(ThemedHost, { key: '48a3739b23a5667754b5ce508a4ec8d51aa279ad', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '90d471c5dc92baf8a061e4b97704420eb7a38220' }, this.header)), h("div", { key: '2f69adac8e2c4ae37d1c5199445d577d5fcfa0e9', class: 'flex flex-col' }, h("slot", { key: '427d96574e5bdbfc4db3a0c2ff86470a6672868a' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-navigation-section"; }
|
|
12
12
|
static get originalStyleUrls() {
|