@paperless/core 2.6.3 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-d8c60f3c.entry.js → p-02a5ba4c.entry.js} +2 -2
- package/dist/build/{p-1f45e45a.entry.js → p-0720742f.entry.js} +2 -2
- package/dist/{paperless/p-993afcc3.entry.js → build/p-07e3e30d.entry.js} +2 -2
- package/dist/build/{p-84979460.entry.js → p-0e9d3d2f.entry.js} +2 -2
- package/dist/build/{p-542a718b.entry.js → p-0f438d6f.entry.js} +2 -2
- package/dist/{paperless/p-53b913b4.entry.js → build/p-112f1a9a.entry.js} +2 -2
- package/dist/build/{p-419077c3.entry.js → p-12c0b2c1.entry.js} +2 -2
- package/dist/build/{p-6581ce9c.entry.js → p-13317dea.entry.js} +2 -2
- package/dist/build/{p-21bb6e96.entry.js → p-146cdc9a.entry.js} +2 -2
- package/dist/build/{p-59ab69e0.entry.js → p-1687f809.entry.js} +2 -2
- package/dist/build/p-1e3a00fe.entry.js +2 -0
- package/dist/build/{p-9a5d6efb.entry.js → p-1f97d5ba.entry.js} +2 -2
- package/dist/build/{p-78403aa3.entry.js → p-2770aacd.entry.js} +2 -2
- package/dist/build/{p-00e39694.entry.js → p-318e4b82.entry.js} +2 -2
- package/dist/{paperless/p-4e7c1803.entry.js → build/p-34bd3730.entry.js} +2 -2
- package/dist/build/{p-a9ba2e62.entry.js → p-35338296.entry.js} +2 -2
- package/dist/{paperless/p-9ab2cb8d.entry.js → build/p-364d8401.entry.js} +2 -2
- package/dist/{paperless/p-fbd40be8.entry.js → build/p-3edcd351.entry.js} +2 -2
- package/dist/build/{p-0fe51ad0.entry.js → p-41567df7.entry.js} +2 -2
- package/dist/{paperless/p-fa78c45a.entry.js → build/p-4891bb38.entry.js} +2 -2
- package/dist/build/{p-1a551082.entry.js → p-491389e5.entry.js} +2 -2
- package/dist/build/{p-805bad94.entry.js → p-4a8ff191.entry.js} +2 -2
- package/dist/build/{p-37bdbb19.entry.js → p-4fcc39f7.entry.js} +2 -2
- package/dist/build/p-50010f40.entry.js +2 -0
- package/dist/build/p-50010f40.entry.js.map +1 -0
- package/dist/build/{p-20f5071b.entry.js → p-5268f0bc.entry.js} +2 -2
- package/dist/build/p-6b5f80a0.entry.js +2 -0
- package/dist/build/p-6b5f80a0.entry.js.map +1 -0
- package/dist/build/p-6c02bbb0.entry.js +2 -0
- package/dist/build/p-6c02bbb0.entry.js.map +1 -0
- package/dist/build/{p-3e2d2587.entry.js → p-718ba1f3.entry.js} +3 -3
- package/dist/build/{p-f1f4ba5c.js → p-73bdbb8b.js} +1 -1
- package/dist/build/{p-827b1bd0.entry.js → p-775d1f94.entry.js} +2 -2
- package/dist/{paperless/p-925d7ffc.entry.js → build/p-7e13aa00.entry.js} +2 -2
- package/dist/build/{p-2366e61d.entry.js → p-80609f67.entry.js} +2 -2
- package/dist/{paperless/p-b176abc5.entry.js → build/p-8332b7f6.entry.js} +2 -2
- package/dist/build/{p-27b62457.entry.js → p-835abd94.entry.js} +2 -2
- package/dist/{paperless/p-6fdd90eb.entry.js → build/p-8c96207e.entry.js} +2 -2
- package/dist/build/{p-2acef846.entry.js → p-8cc2dc9f.entry.js} +2 -2
- package/dist/build/{p-81d7ca4b.entry.js → p-8ee8d5e6.entry.js} +2 -2
- package/dist/{paperless/p-918229ab.entry.js → build/p-95cacdf1.entry.js} +2 -2
- package/dist/{paperless/p-97570c84.entry.js → build/p-9ea16d5d.entry.js} +2 -2
- package/dist/{paperless/p-7f1f62c2.entry.js → build/p-9ecab5af.entry.js} +2 -2
- package/dist/{paperless/p-DhGo7hbh.js → build/p-CNnSbQbk.js} +2 -2
- package/dist/{paperless/p-DhGo7hbh.js.map → build/p-CNnSbQbk.js.map} +1 -1
- package/dist/build/p-Cw3Hhv5N.js +2 -0
- package/dist/build/p-Cw3Hhv5N.js.map +1 -0
- package/dist/build/p-EKSDxqjG.js +2 -0
- package/dist/build/p-EKSDxqjG.js.map +1 -0
- package/dist/build/p-X28EVNq0.js +2 -0
- package/dist/build/p-X28EVNq0.js.map +1 -0
- package/dist/build/{p-cbd7870f.entry.js → p-a106f17c.entry.js} +2 -2
- package/dist/build/p-ae7b0672.entry.js +2 -0
- package/dist/build/{p-dc21ccd3.entry.js → p-b3dfeaaa.entry.js} +2 -2
- package/dist/build/p-b54d5ecf.css +1 -0
- package/dist/{paperless/p-c1d4c641.entry.js → build/p-bb77ae46.entry.js} +2 -2
- package/dist/build/{p-9c277029.entry.js → p-bcbcbffe.entry.js} +2 -2
- package/dist/{paperless/p-9c653182.entry.js → build/p-c5867976.entry.js} +2 -2
- package/dist/{paperless/p-54428a6a.entry.js → build/p-c9870068.entry.js} +2 -2
- package/dist/build/p-calendar.entry.esm.js.map +1 -1
- package/dist/build/p-card-container.entry.esm.js.map +1 -1
- package/dist/{paperless/p-d9a3295f.entry.js → build/p-cdeae6b0.entry.js} +2 -2
- package/dist/{paperless/p-eb66dfac.entry.js → build/p-d09bba4f.entry.js} +2 -2
- package/dist/{paperless/p-a3273e15.entry.js → build/p-d3fba507.entry.js} +2 -2
- package/dist/build/p-d7f0d02f.entry.js +2 -0
- package/dist/build/p-d7f0d02f.entry.js.map +1 -0
- package/dist/build/p-datepicker.entry.esm.js.map +1 -1
- package/dist/{paperless/p-6cb78d87.entry.js → build/p-e0c437fe.entry.js} +2 -2
- package/dist/build/{p-8325525f.entry.js → p-e20184ea.entry.js} +2 -2
- package/dist/{paperless/p-0b3af128.entry.js → build/p-e2cc514b.entry.js} +2 -2
- package/dist/build/{p-317e4698.entry.js → p-fbbe58f8.entry.js} +2 -2
- package/dist/build/{p-b8b570c4.entry.js → p-ff624855.entry.js} +2 -2
- package/dist/build/p-navbar.entry.esm.js.map +1 -1
- package/dist/build/paperless.css +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-BDuPp9vl.js → index-BJGYQ0sK.js} +18 -2
- package/dist/cjs/{index-BDuPp9vl.js.map → index-BJGYQ0sK.js.map} +1 -1
- package/dist/cjs/{index-FAqASDWS.js → index-Dt9qqH1T.js} +405 -71
- package/dist/cjs/index-Dt9qqH1T.js.map +1 -0
- package/dist/cjs/index.cjs.js +26 -18
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +3 -3
- package/dist/cjs/p-attachment.cjs.entry.js +7 -7
- 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 +1 -1
- package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
- package/dist/cjs/p-button-group.cjs.entry.js +2 -2
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +13 -6
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.entry.cjs.js.map +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +15 -5
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +4 -4
- package/dist/cjs/p-checkbox_4.cjs.entry.js +13 -13
- package/dist/cjs/p-content-slider.cjs.entry.js +3 -3
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +23 -6
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +4 -4
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +5 -5
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +11 -11
- package/dist/cjs/p-field_2.cjs.entry.js +5 -5
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/p-helper_2.cjs.entry.js +4 -4
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
- package/dist/cjs/p-label.cjs.entry.js +4 -4
- package/dist/cjs/p-layout.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/p-modal-body_4.cjs.entry.js +7 -7
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +8 -5
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navbar.entry.cjs.js.map +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- 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-pages-item.cjs.entry.js +3 -3
- package/dist/cjs/p-pagination_3.cjs.entry.js +5 -5
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +4 -4
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +2 -2
- package/dist/cjs/p-smile.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +6 -6
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-container.cjs.entry.js +2 -2
- package/dist/cjs/p-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/p-table-column.cjs.entry.js +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/p-toast.cjs.entry.js +2 -2
- package/dist/cjs/p-toggle.cjs.entry.js +4 -4
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/state-9Y65F5kb.js +253 -0
- package/dist/cjs/state-9Y65F5kb.js.map +1 -0
- package/dist/cjs/themed-host.component-DFEbe48h.js +13 -0
- package/dist/cjs/themed-host.component-DFEbe48h.js.map +1 -0
- package/dist/collection/components/atoms/card/container/card-container.component.css +1 -1
- package/dist/collection/components/atoms/card/container/card-container.component.js +12 -3
- package/dist/collection/components/atoms/card/container/card-container.component.js.map +1 -1
- package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +4 -4
- package/dist/collection/components/atoms/divider/divider.component.js +3 -3
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
- package/dist/collection/components/atoms/radio/radio.component.js +3 -3
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +6 -6
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +12 -4
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +22 -4
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +4 -4
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/range/range.component.js +2 -2
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +6 -4
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/internal/themed-host.component.js +6 -0
- package/dist/collection/internal/themed-host.component.js.map +1 -0
- package/dist/collection/state.js +36 -0
- package/dist/collection/state.js.map +1 -0
- package/dist/collection/tailwind/theme/colors.js +1 -0
- package/dist/collection/tailwind/theme/colors.js.map +1 -1
- package/dist/collection/tailwind.config.js +1 -0
- package/dist/collection/tailwind.config.js.map +1 -1
- package/dist/components/index.js +12 -10
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-DWsW_D0V.js → p-4sqhIpUp.js} +3 -3
- package/dist/components/{p-DWsW_D0V.js.map → p-4sqhIpUp.js.map} +1 -1
- package/dist/components/{p-CDF0u5fl.js → p-6cqiSGZO.js} +14 -14
- package/dist/components/{p-CDF0u5fl.js.map → p-6cqiSGZO.js.map} +1 -1
- package/dist/components/{p-C-RgoZv4.js → p-B0skInOM.js} +5 -5
- package/dist/components/{p-C-RgoZv4.js.map → p-B0skInOM.js.map} +1 -1
- package/dist/components/{p-BRnY1zdf.js → p-B9bfyk_o.js} +5 -5
- package/dist/components/{p-BRnY1zdf.js.map → p-B9bfyk_o.js.map} +1 -1
- package/dist/components/{p-RuhxHrdY.js → p-BA2VuVYJ.js} +8 -8
- package/dist/components/{p-RuhxHrdY.js.map → p-BA2VuVYJ.js.map} +1 -1
- package/dist/components/p-BSL5cktm.js +11 -0
- package/dist/components/p-BSL5cktm.js.map +1 -0
- package/dist/components/{p-3Uu9SRMg.js → p-Bfmp3OPx.js} +8 -8
- package/dist/components/{p-3Uu9SRMg.js.map → p-Bfmp3OPx.js.map} +1 -1
- package/dist/components/{p-C6RWkimA.js → p-BiWMxBAJ.js} +6 -6
- package/dist/components/{p-C6RWkimA.js.map → p-BiWMxBAJ.js.map} +1 -1
- package/dist/components/{p-BUp9ElaY.js → p-BjzvlPmK.js} +13 -13
- package/dist/components/{p-BUp9ElaY.js.map → p-BjzvlPmK.js.map} +1 -1
- package/dist/components/{p-Da0Vk5zI.js → p-BxaMa-zX.js} +5 -5
- package/dist/components/{p-Da0Vk5zI.js.map → p-BxaMa-zX.js.map} +1 -1
- package/dist/components/{p-CR36e-YR.js → p-C2Em7CPU.js} +3 -3
- package/dist/components/{p-CR36e-YR.js.map → p-C2Em7CPU.js.map} +1 -1
- package/dist/components/{p-D30EqV3s.js → p-C3NM3TpX.js} +4 -4
- package/dist/components/{p-D30EqV3s.js.map → p-C3NM3TpX.js.map} +1 -1
- package/dist/components/{p-BJg6oRaH.js → p-C5ARltpo.js} +420 -80
- package/dist/components/p-C5ARltpo.js.map +1 -0
- package/dist/components/{p-Bn6Arg73.js → p-C6GU5tE5.js} +5 -5
- package/dist/components/{p-Bn6Arg73.js.map → p-C6GU5tE5.js.map} +1 -1
- package/dist/components/{p-DKYj0xlY.js → p-C6zgmyle.js} +8 -8
- package/dist/components/{p-DKYj0xlY.js.map → p-C6zgmyle.js.map} +1 -1
- package/dist/components/{p-CvfOjT_y.js → p-CEFg09mj.js} +3 -3
- package/dist/components/{p-CvfOjT_y.js.map → p-CEFg09mj.js.map} +1 -1
- package/dist/components/p-CNxD99na.js +247 -0
- package/dist/components/p-CNxD99na.js.map +1 -0
- package/dist/components/{p-DwtD7Wpi.js → p-CQD0GsAo.js} +7 -7
- package/dist/components/{p-DwtD7Wpi.js.map → p-CQD0GsAo.js.map} +1 -1
- package/dist/components/{p-tdjn65Lz.js → p-CRSKFTLB.js} +17 -3
- package/dist/components/p-CRSKFTLB.js.map +1 -0
- package/dist/components/{p-rlO7JrUU.js → p-CUIjth2u.js} +7 -7
- package/dist/components/{p-rlO7JrUU.js.map → p-CUIjth2u.js.map} +1 -1
- package/dist/components/{p-BBDZj5F5.js → p-C_G1K6W7.js} +5 -5
- package/dist/components/{p-BBDZj5F5.js.map → p-C_G1K6W7.js.map} +1 -1
- package/dist/components/{p-CSIFLNsS.js → p-Cd8bEp0e.js} +4 -4
- package/dist/components/{p-CSIFLNsS.js.map → p-Cd8bEp0e.js.map} +1 -1
- package/dist/components/{p-v8ShN4Lu.js → p-CeV3e9Ed.js} +15 -15
- package/dist/components/{p-v8ShN4Lu.js.map → p-CeV3e9Ed.js.map} +1 -1
- package/dist/components/{p-5F7i7JYI.js → p-CkEQyy75.js} +6 -6
- package/dist/components/{p-5F7i7JYI.js.map → p-CkEQyy75.js.map} +1 -1
- package/dist/components/{p-CI2j2oC1.js → p-CqCcGAN-.js} +8 -8
- package/dist/components/{p-CI2j2oC1.js.map → p-CqCcGAN-.js.map} +1 -1
- package/dist/components/{p-DUJkO2n3.js → p-CwI9SpGk.js} +6 -6
- package/dist/components/{p-DUJkO2n3.js.map → p-CwI9SpGk.js.map} +1 -1
- package/dist/components/{p-9uqRVS0-.js → p-CzlGgwa6.js} +6 -6
- package/dist/components/{p-9uqRVS0-.js.map → p-CzlGgwa6.js.map} +1 -1
- package/dist/components/{p-C3sIHSTA.js → p-DAPYNh1W.js} +4 -4
- package/dist/components/{p-C3sIHSTA.js.map → p-DAPYNh1W.js.map} +1 -1
- package/dist/components/{p-D_goLzIz.js → p-DCncXHn8.js} +4 -4
- package/dist/components/{p-D_goLzIz.js.map → p-DCncXHn8.js.map} +1 -1
- package/dist/components/{p-wXp3GFHo.js → p-DD9o0VSs.js} +4 -4
- package/dist/components/{p-wXp3GFHo.js.map → p-DD9o0VSs.js.map} +1 -1
- package/dist/components/{p-BBZqWGjs.js → p-DHpGjClN.js} +15 -15
- package/dist/components/{p-BBZqWGjs.js.map → p-DHpGjClN.js.map} +1 -1
- package/dist/components/{p-CK0zv8Hv.js → p-DKyqEQOI.js} +5 -5
- package/dist/components/{p-CK0zv8Hv.js.map → p-DKyqEQOI.js.map} +1 -1
- package/dist/components/{p-3V3jLJ40.js → p-DQTEQ5vY.js} +7 -7
- package/dist/components/{p-3V3jLJ40.js.map → p-DQTEQ5vY.js.map} +1 -1
- package/dist/components/{p-DxmvFiF3.js → p-DVuwVg4C.js} +3 -3
- package/dist/components/{p-DxmvFiF3.js.map → p-DVuwVg4C.js.map} +1 -1
- package/dist/components/{p-DRnTySb-.js → p-DbR2eHRM.js} +3 -3
- package/dist/components/{p-DRnTySb-.js.map → p-DbR2eHRM.js.map} +1 -1
- package/dist/components/{p-Fa6eP7ZQ.js → p-DeobaUTR.js} +6 -6
- package/dist/components/{p-Fa6eP7ZQ.js.map → p-DeobaUTR.js.map} +1 -1
- package/dist/components/{p-DC4qozte.js → p-DkDvtuHb.js} +9 -9
- package/dist/components/{p-DC4qozte.js.map → p-DkDvtuHb.js.map} +1 -1
- package/dist/components/{p-DI407tdD.js → p-DktGBJJX.js} +5 -5
- package/dist/components/{p-DI407tdD.js.map → p-DktGBJJX.js.map} +1 -1
- package/dist/components/{p-CVgaeLBB.js → p-DsH8IdGu.js} +6 -6
- package/dist/components/{p-CVgaeLBB.js.map → p-DsH8IdGu.js.map} +1 -1
- package/dist/components/{p-Cb7zGv2a.js → p-Dzc909RW.js} +5 -5
- package/dist/components/{p-Cb7zGv2a.js.map → p-Dzc909RW.js.map} +1 -1
- package/dist/components/{p-B8Ai2EJn.js → p-I8WvUr7g.js} +6 -6
- package/dist/components/{p-B8Ai2EJn.js.map → p-I8WvUr7g.js.map} +1 -1
- package/dist/components/{p-DcB4vo69.js → p-Kd4E5xHS.js} +4 -4
- package/dist/components/{p-DcB4vo69.js.map → p-Kd4E5xHS.js.map} +1 -1
- package/dist/components/{p-C4WDKcUV.js → p-QuG6bo9L.js} +4 -4
- package/dist/components/{p-C4WDKcUV.js.map → p-QuG6bo9L.js.map} +1 -1
- package/dist/components/{p-BfzApjOK.js → p-UHgjv8T6.js} +7 -7
- package/dist/components/{p-BfzApjOK.js.map → p-UHgjv8T6.js.map} +1 -1
- package/dist/components/p-accordion.js +5 -5
- package/dist/components/p-attachment.js +13 -13
- 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 +2 -2
- 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 +14 -5
- package/dist/components/p-card-container.js.map +1 -1
- package/dist/components/p-card-header.js +7 -7
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +3 -3
- package/dist/components/p-cropper.js +4 -4
- package/dist/components/p-datepicker.js +32 -15
- package/dist/components/p-datepicker.js.map +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 +9 -9
- 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-BjsPeqGD.js → p-e-mjdgYn.js} +3 -3
- package/dist/components/{p-BjsPeqGD.js.map → p-e-mjdgYn.js.map} +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-illustration-deprecated.js +1 -1
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +3 -3
- package/dist/components/p-label.js +5 -5
- package/dist/components/p-layout.js +2 -2
- package/dist/components/p-listing-item.js +3 -3
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +4 -4
- 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 +11 -11
- package/dist/components/p-navbar.js +11 -9
- package/dist/components/p-navbar.js.map +1 -1
- package/dist/components/p-navigation-item.js +6 -6
- package/dist/components/p-navigation-section.js +3 -3
- 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 +6 -6
- package/dist/components/p-radio.js +4 -4
- package/dist/components/p-range.js +1 -1
- package/dist/components/{p-D3EM8Uiq.js → p-rlGdjFMT.js} +7 -7
- package/dist/components/{p-D3EM8Uiq.js.map → p-rlGdjFMT.js.map} +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 +14 -14
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +3 -3
- package/dist/components/p-tab-container.js +3 -3
- package/dist/components/p-tab-item.js +2 -2
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-column.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-action.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 +30 -30
- package/dist/components/p-toast-container.js +3 -3
- package/dist/components/p-toast.js +3 -3
- package/dist/components/p-toggle.js +4 -4
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-D6gMJJ_3.js → p-u3j0oh8O.js} +8 -8
- package/dist/components/{p-D6gMJJ_3.js.map → p-u3j0oh8O.js.map} +1 -1
- package/dist/components/{p-v_qRLJr8.js → p-u7w6ZHr0.js} +4 -4
- package/dist/components/{p-v_qRLJr8.js.map → p-u7w6ZHr0.js.map} +1 -1
- package/dist/esm/{index-DhGo7hbh.js → index-CNnSbQbk.js} +17 -3
- package/dist/esm/{index-DhGo7hbh.js.map → index-CNnSbQbk.js.map} +1 -1
- package/dist/esm/{index-K1xa0GD1.js → index-EKSDxqjG.js} +404 -71
- package/dist/esm/index-EKSDxqjG.js.map +1 -0
- package/dist/esm/index.js +12 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-accordion.entry.js +3 -3
- package/dist/esm/p-attachment.entry.js +7 -7
- 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 +1 -1
- package/dist/esm/p-badge_3.entry.js +4 -4
- package/dist/esm/p-button-group.entry.js +2 -2
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +13 -6
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +15 -5
- package/dist/esm/p-card-container.entry.js.map +1 -1
- package/dist/esm/p-card-header.entry.js +4 -4
- package/dist/esm/p-checkbox_4.entry.js +13 -13
- package/dist/esm/p-content-slider.entry.js +3 -3
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +23 -6
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-divider.entry.js +4 -4
- package/dist/esm/p-drawer-body_3.entry.js +5 -5
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-empty-state_8.entry.js +11 -11
- package/dist/esm/p-field_2.entry.js +5 -5
- package/dist/esm/p-floating-menu-item.entry.js +3 -3
- package/dist/esm/p-helper_2.entry.js +4 -4
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-illustration-deprecated.entry.js +1 -1
- package/dist/esm/p-illustration.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-label.entry.js +4 -4
- package/dist/esm/p-layout.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/p-modal-body_4.entry.js +7 -7
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +8 -5
- package/dist/esm/p-navbar.entry.js.map +1 -1
- package/dist/esm/p-navigation-item.entry.js +3 -3
- 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-pages-item.entry.js +3 -3
- package/dist/esm/p-pagination_3.entry.js +5 -5
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +4 -4
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +2 -2
- package/dist/esm/p-smile.entry.js +2 -2
- package/dist/esm/p-stepper-item_2.entry.js +6 -6
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-container.entry.js +2 -2
- package/dist/esm/p-tab-item.entry.js +2 -2
- package/dist/esm/p-table-column.entry.js +1 -1
- package/dist/esm/p-table-row-action.entry.js +1 -1
- package/dist/esm/p-table.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +3 -3
- package/dist/esm/p-toast.entry.js +2 -2
- package/dist/esm/p-toggle.entry.js +4 -4
- package/dist/esm/paperless.js +2 -2
- package/dist/esm/state-BsTOa3w8.js +247 -0
- package/dist/esm/state-BsTOa3w8.js.map +1 -0
- package/dist/esm/themed-host.component-UpbDmgQR.js +11 -0
- package/dist/esm/themed-host.component-UpbDmgQR.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-d8c60f3c.entry.js → p-02a5ba4c.entry.js} +2 -2
- package/dist/paperless/{p-1f45e45a.entry.js → p-0720742f.entry.js} +2 -2
- package/dist/{build/p-993afcc3.entry.js → paperless/p-07e3e30d.entry.js} +2 -2
- package/dist/paperless/{p-84979460.entry.js → p-0e9d3d2f.entry.js} +2 -2
- package/dist/paperless/{p-542a718b.entry.js → p-0f438d6f.entry.js} +2 -2
- package/dist/{build/p-53b913b4.entry.js → paperless/p-112f1a9a.entry.js} +2 -2
- package/dist/paperless/{p-419077c3.entry.js → p-12c0b2c1.entry.js} +2 -2
- package/dist/paperless/{p-6581ce9c.entry.js → p-13317dea.entry.js} +2 -2
- package/dist/paperless/{p-21bb6e96.entry.js → p-146cdc9a.entry.js} +2 -2
- package/dist/paperless/{p-59ab69e0.entry.js → p-1687f809.entry.js} +2 -2
- package/dist/paperless/p-1e3a00fe.entry.js +2 -0
- package/dist/paperless/{p-9a5d6efb.entry.js → p-1f97d5ba.entry.js} +2 -2
- package/dist/paperless/{p-78403aa3.entry.js → p-2770aacd.entry.js} +2 -2
- package/dist/paperless/{p-00e39694.entry.js → p-318e4b82.entry.js} +2 -2
- package/dist/{build/p-4e7c1803.entry.js → paperless/p-34bd3730.entry.js} +2 -2
- package/dist/paperless/{p-a9ba2e62.entry.js → p-35338296.entry.js} +2 -2
- package/dist/{build/p-9ab2cb8d.entry.js → paperless/p-364d8401.entry.js} +2 -2
- package/dist/{build/p-fbd40be8.entry.js → paperless/p-3edcd351.entry.js} +2 -2
- package/dist/paperless/{p-0fe51ad0.entry.js → p-41567df7.entry.js} +2 -2
- package/dist/{build/p-fa78c45a.entry.js → paperless/p-4891bb38.entry.js} +2 -2
- package/dist/paperless/{p-1a551082.entry.js → p-491389e5.entry.js} +2 -2
- package/dist/paperless/{p-805bad94.entry.js → p-4a8ff191.entry.js} +2 -2
- package/dist/paperless/{p-37bdbb19.entry.js → p-4fcc39f7.entry.js} +2 -2
- package/dist/paperless/p-50010f40.entry.js +2 -0
- package/dist/paperless/p-50010f40.entry.js.map +1 -0
- package/dist/paperless/{p-20f5071b.entry.js → p-5268f0bc.entry.js} +2 -2
- package/dist/paperless/p-6b5f80a0.entry.js +2 -0
- package/dist/paperless/p-6b5f80a0.entry.js.map +1 -0
- package/dist/paperless/p-6c02bbb0.entry.js +2 -0
- package/dist/paperless/p-6c02bbb0.entry.js.map +1 -0
- package/dist/paperless/{p-3e2d2587.entry.js → p-718ba1f3.entry.js} +3 -3
- package/dist/paperless/{p-827b1bd0.entry.js → p-775d1f94.entry.js} +2 -2
- package/dist/{build/p-925d7ffc.entry.js → paperless/p-7e13aa00.entry.js} +2 -2
- package/dist/paperless/{p-2366e61d.entry.js → p-80609f67.entry.js} +2 -2
- package/dist/{build/p-b176abc5.entry.js → paperless/p-8332b7f6.entry.js} +2 -2
- package/dist/paperless/{p-27b62457.entry.js → p-835abd94.entry.js} +2 -2
- package/dist/{build/p-6fdd90eb.entry.js → paperless/p-8c96207e.entry.js} +2 -2
- package/dist/paperless/{p-2acef846.entry.js → p-8cc2dc9f.entry.js} +2 -2
- package/dist/paperless/{p-81d7ca4b.entry.js → p-8ee8d5e6.entry.js} +2 -2
- package/dist/{build/p-918229ab.entry.js → paperless/p-95cacdf1.entry.js} +2 -2
- package/dist/{build/p-97570c84.entry.js → paperless/p-9ea16d5d.entry.js} +2 -2
- package/dist/{build/p-7f1f62c2.entry.js → paperless/p-9ecab5af.entry.js} +2 -2
- package/dist/{build/p-DhGo7hbh.js → paperless/p-CNnSbQbk.js} +2 -2
- package/dist/{build/p-DhGo7hbh.js.map → paperless/p-CNnSbQbk.js.map} +1 -1
- package/dist/paperless/p-Cw3Hhv5N.js +2 -0
- package/dist/paperless/p-Cw3Hhv5N.js.map +1 -0
- package/dist/paperless/p-EKSDxqjG.js +2 -0
- package/dist/paperless/p-EKSDxqjG.js.map +1 -0
- package/dist/paperless/p-X28EVNq0.js +2 -0
- package/dist/paperless/p-X28EVNq0.js.map +1 -0
- package/dist/paperless/{p-cbd7870f.entry.js → p-a106f17c.entry.js} +2 -2
- package/dist/paperless/p-ae7b0672.entry.js +2 -0
- package/dist/paperless/{p-dc21ccd3.entry.js → p-b3dfeaaa.entry.js} +2 -2
- package/dist/{build/p-c1d4c641.entry.js → paperless/p-bb77ae46.entry.js} +2 -2
- package/dist/paperless/{p-9c277029.entry.js → p-bcbcbffe.entry.js} +2 -2
- package/dist/{build/p-9c653182.entry.js → paperless/p-c5867976.entry.js} +2 -2
- package/dist/{build/p-54428a6a.entry.js → paperless/p-c9870068.entry.js} +2 -2
- package/dist/paperless/p-calendar.entry.esm.js.map +1 -1
- package/dist/paperless/p-card-container.entry.esm.js.map +1 -1
- package/dist/{build/p-d9a3295f.entry.js → paperless/p-cdeae6b0.entry.js} +2 -2
- package/dist/{build/p-eb66dfac.entry.js → paperless/p-d09bba4f.entry.js} +2 -2
- package/dist/{build/p-a3273e15.entry.js → paperless/p-d3fba507.entry.js} +2 -2
- package/dist/paperless/p-d7f0d02f.entry.js +2 -0
- package/dist/paperless/p-d7f0d02f.entry.js.map +1 -0
- package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
- package/dist/{build/p-6cb78d87.entry.js → paperless/p-e0c437fe.entry.js} +2 -2
- package/dist/paperless/{p-8325525f.entry.js → p-e20184ea.entry.js} +2 -2
- package/dist/{build/p-0b3af128.entry.js → paperless/p-e2cc514b.entry.js} +2 -2
- package/dist/paperless/{p-317e4698.entry.js → p-fbbe58f8.entry.js} +2 -2
- package/dist/paperless/{p-b8b570c4.entry.js → p-ff624855.entry.js} +2 -2
- package/dist/paperless/p-navbar.entry.esm.js.map +1 -1
- package/dist/paperless/paperless.css +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/style/_reset.scss +9 -2
- package/dist/style/_typograhpy.scss +26 -2
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/theme/colors.ts +1 -0
- package/dist/tailwind.config.ts +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/internal/themed-host.component.d.ts +2 -0
- package/dist/types/state.d.ts +11 -0
- package/dist/types/tailwind/theme/colors.d.ts +1 -0
- package/dist/types/tailwind.config.d.ts +1 -0
- package/package.json +2 -1
- package/dist/build/p-13746ec7.entry.js +0 -2
- package/dist/build/p-50b3268f.entry.js +0 -2
- package/dist/build/p-8817fc5d.entry.js +0 -2
- package/dist/build/p-8817fc5d.entry.js.map +0 -1
- package/dist/build/p-8a116c31.entry.js +0 -2
- package/dist/build/p-8a116c31.entry.js.map +0 -1
- package/dist/build/p-K1xa0GD1.js +0 -2
- package/dist/build/p-K1xa0GD1.js.map +0 -1
- package/dist/build/p-b96f8d26.entry.js +0 -2
- package/dist/build/p-b96f8d26.entry.js.map +0 -1
- package/dist/build/p-ba9ecfd6.entry.js +0 -2
- package/dist/build/p-ba9ecfd6.entry.js.map +0 -1
- package/dist/build/p-d2118b3c.css +0 -1
- package/dist/cjs/index-FAqASDWS.js.map +0 -1
- package/dist/components/p-BJg6oRaH.js.map +0 -1
- package/dist/components/p-tdjn65Lz.js.map +0 -1
- package/dist/esm/index-K1xa0GD1.js.map +0 -1
- package/dist/paperless/p-13746ec7.entry.js +0 -2
- package/dist/paperless/p-50b3268f.entry.js +0 -2
- package/dist/paperless/p-8817fc5d.entry.js +0 -2
- package/dist/paperless/p-8817fc5d.entry.js.map +0 -1
- package/dist/paperless/p-8a116c31.entry.js +0 -2
- package/dist/paperless/p-8a116c31.entry.js.map +0 -1
- package/dist/paperless/p-K1xa0GD1.js +0 -2
- package/dist/paperless/p-K1xa0GD1.js.map +0 -1
- package/dist/paperless/p-b96f8d26.entry.js +0 -2
- package/dist/paperless/p-b96f8d26.entry.js.map +0 -1
- package/dist/paperless/p-ba9ecfd6.entry.js +0 -2
- package/dist/paperless/p-ba9ecfd6.entry.js.map +0 -1
- /package/dist/build/{p-d8c60f3c.entry.js.map → p-02a5ba4c.entry.js.map} +0 -0
- /package/dist/build/{p-1f45e45a.entry.js.map → p-0720742f.entry.js.map} +0 -0
- /package/dist/build/{p-993afcc3.entry.js.map → p-07e3e30d.entry.js.map} +0 -0
- /package/dist/build/{p-84979460.entry.js.map → p-0e9d3d2f.entry.js.map} +0 -0
- /package/dist/build/{p-542a718b.entry.js.map → p-0f438d6f.entry.js.map} +0 -0
- /package/dist/build/{p-53b913b4.entry.js.map → p-112f1a9a.entry.js.map} +0 -0
- /package/dist/build/{p-419077c3.entry.js.map → p-12c0b2c1.entry.js.map} +0 -0
- /package/dist/build/{p-6581ce9c.entry.js.map → p-13317dea.entry.js.map} +0 -0
- /package/dist/build/{p-21bb6e96.entry.js.map → p-146cdc9a.entry.js.map} +0 -0
- /package/dist/build/{p-59ab69e0.entry.js.map → p-1687f809.entry.js.map} +0 -0
- /package/dist/build/{p-13746ec7.entry.js.map → p-1e3a00fe.entry.js.map} +0 -0
- /package/dist/build/{p-9a5d6efb.entry.js.map → p-1f97d5ba.entry.js.map} +0 -0
- /package/dist/build/{p-78403aa3.entry.js.map → p-2770aacd.entry.js.map} +0 -0
- /package/dist/build/{p-00e39694.entry.js.map → p-318e4b82.entry.js.map} +0 -0
- /package/dist/build/{p-4e7c1803.entry.js.map → p-34bd3730.entry.js.map} +0 -0
- /package/dist/build/{p-a9ba2e62.entry.js.map → p-35338296.entry.js.map} +0 -0
- /package/dist/build/{p-9ab2cb8d.entry.js.map → p-364d8401.entry.js.map} +0 -0
- /package/dist/build/{p-fbd40be8.entry.js.map → p-3edcd351.entry.js.map} +0 -0
- /package/dist/build/{p-0fe51ad0.entry.js.map → p-41567df7.entry.js.map} +0 -0
- /package/dist/build/{p-fa78c45a.entry.js.map → p-4891bb38.entry.js.map} +0 -0
- /package/dist/build/{p-1a551082.entry.js.map → p-491389e5.entry.js.map} +0 -0
- /package/dist/build/{p-805bad94.entry.js.map → p-4a8ff191.entry.js.map} +0 -0
- /package/dist/build/{p-37bdbb19.entry.js.map → p-4fcc39f7.entry.js.map} +0 -0
- /package/dist/build/{p-20f5071b.entry.js.map → p-5268f0bc.entry.js.map} +0 -0
- /package/dist/build/{p-3e2d2587.entry.js.map → p-718ba1f3.entry.js.map} +0 -0
- /package/dist/build/{p-827b1bd0.entry.js.map → p-775d1f94.entry.js.map} +0 -0
- /package/dist/build/{p-925d7ffc.entry.js.map → p-7e13aa00.entry.js.map} +0 -0
- /package/dist/build/{p-2366e61d.entry.js.map → p-80609f67.entry.js.map} +0 -0
- /package/dist/build/{p-b176abc5.entry.js.map → p-8332b7f6.entry.js.map} +0 -0
- /package/dist/build/{p-27b62457.entry.js.map → p-835abd94.entry.js.map} +0 -0
- /package/dist/build/{p-6fdd90eb.entry.js.map → p-8c96207e.entry.js.map} +0 -0
- /package/dist/build/{p-2acef846.entry.js.map → p-8cc2dc9f.entry.js.map} +0 -0
- /package/dist/build/{p-81d7ca4b.entry.js.map → p-8ee8d5e6.entry.js.map} +0 -0
- /package/dist/build/{p-918229ab.entry.js.map → p-95cacdf1.entry.js.map} +0 -0
- /package/dist/build/{p-97570c84.entry.js.map → p-9ea16d5d.entry.js.map} +0 -0
- /package/dist/build/{p-7f1f62c2.entry.js.map → p-9ecab5af.entry.js.map} +0 -0
- /package/dist/build/{p-cbd7870f.entry.js.map → p-a106f17c.entry.js.map} +0 -0
- /package/dist/build/{p-50b3268f.entry.js.map → p-ae7b0672.entry.js.map} +0 -0
- /package/dist/build/{p-dc21ccd3.entry.js.map → p-b3dfeaaa.entry.js.map} +0 -0
- /package/dist/build/{p-c1d4c641.entry.js.map → p-bb77ae46.entry.js.map} +0 -0
- /package/dist/build/{p-9c277029.entry.js.map → p-bcbcbffe.entry.js.map} +0 -0
- /package/dist/build/{p-9c653182.entry.js.map → p-c5867976.entry.js.map} +0 -0
- /package/dist/build/{p-54428a6a.entry.js.map → p-c9870068.entry.js.map} +0 -0
- /package/dist/build/{p-d9a3295f.entry.js.map → p-cdeae6b0.entry.js.map} +0 -0
- /package/dist/build/{p-eb66dfac.entry.js.map → p-d09bba4f.entry.js.map} +0 -0
- /package/dist/build/{p-a3273e15.entry.js.map → p-d3fba507.entry.js.map} +0 -0
- /package/dist/build/{p-6cb78d87.entry.js.map → p-e0c437fe.entry.js.map} +0 -0
- /package/dist/build/{p-8325525f.entry.js.map → p-e20184ea.entry.js.map} +0 -0
- /package/dist/build/{p-0b3af128.entry.js.map → p-e2cc514b.entry.js.map} +0 -0
- /package/dist/build/{p-317e4698.entry.js.map → p-fbbe58f8.entry.js.map} +0 -0
- /package/dist/build/{p-b8b570c4.entry.js.map → p-ff624855.entry.js.map} +0 -0
- /package/dist/paperless/{p-d8c60f3c.entry.js.map → p-02a5ba4c.entry.js.map} +0 -0
- /package/dist/paperless/{p-1f45e45a.entry.js.map → p-0720742f.entry.js.map} +0 -0
- /package/dist/paperless/{p-993afcc3.entry.js.map → p-07e3e30d.entry.js.map} +0 -0
- /package/dist/paperless/{p-84979460.entry.js.map → p-0e9d3d2f.entry.js.map} +0 -0
- /package/dist/paperless/{p-542a718b.entry.js.map → p-0f438d6f.entry.js.map} +0 -0
- /package/dist/paperless/{p-53b913b4.entry.js.map → p-112f1a9a.entry.js.map} +0 -0
- /package/dist/paperless/{p-419077c3.entry.js.map → p-12c0b2c1.entry.js.map} +0 -0
- /package/dist/paperless/{p-6581ce9c.entry.js.map → p-13317dea.entry.js.map} +0 -0
- /package/dist/paperless/{p-21bb6e96.entry.js.map → p-146cdc9a.entry.js.map} +0 -0
- /package/dist/paperless/{p-59ab69e0.entry.js.map → p-1687f809.entry.js.map} +0 -0
- /package/dist/paperless/{p-13746ec7.entry.js.map → p-1e3a00fe.entry.js.map} +0 -0
- /package/dist/paperless/{p-9a5d6efb.entry.js.map → p-1f97d5ba.entry.js.map} +0 -0
- /package/dist/paperless/{p-78403aa3.entry.js.map → p-2770aacd.entry.js.map} +0 -0
- /package/dist/paperless/{p-00e39694.entry.js.map → p-318e4b82.entry.js.map} +0 -0
- /package/dist/paperless/{p-4e7c1803.entry.js.map → p-34bd3730.entry.js.map} +0 -0
- /package/dist/paperless/{p-a9ba2e62.entry.js.map → p-35338296.entry.js.map} +0 -0
- /package/dist/paperless/{p-9ab2cb8d.entry.js.map → p-364d8401.entry.js.map} +0 -0
- /package/dist/paperless/{p-fbd40be8.entry.js.map → p-3edcd351.entry.js.map} +0 -0
- /package/dist/paperless/{p-0fe51ad0.entry.js.map → p-41567df7.entry.js.map} +0 -0
- /package/dist/paperless/{p-fa78c45a.entry.js.map → p-4891bb38.entry.js.map} +0 -0
- /package/dist/paperless/{p-1a551082.entry.js.map → p-491389e5.entry.js.map} +0 -0
- /package/dist/paperless/{p-805bad94.entry.js.map → p-4a8ff191.entry.js.map} +0 -0
- /package/dist/paperless/{p-37bdbb19.entry.js.map → p-4fcc39f7.entry.js.map} +0 -0
- /package/dist/paperless/{p-20f5071b.entry.js.map → p-5268f0bc.entry.js.map} +0 -0
- /package/dist/paperless/{p-3e2d2587.entry.js.map → p-718ba1f3.entry.js.map} +0 -0
- /package/dist/paperless/{p-827b1bd0.entry.js.map → p-775d1f94.entry.js.map} +0 -0
- /package/dist/paperless/{p-925d7ffc.entry.js.map → p-7e13aa00.entry.js.map} +0 -0
- /package/dist/paperless/{p-2366e61d.entry.js.map → p-80609f67.entry.js.map} +0 -0
- /package/dist/paperless/{p-b176abc5.entry.js.map → p-8332b7f6.entry.js.map} +0 -0
- /package/dist/paperless/{p-27b62457.entry.js.map → p-835abd94.entry.js.map} +0 -0
- /package/dist/paperless/{p-6fdd90eb.entry.js.map → p-8c96207e.entry.js.map} +0 -0
- /package/dist/paperless/{p-2acef846.entry.js.map → p-8cc2dc9f.entry.js.map} +0 -0
- /package/dist/paperless/{p-81d7ca4b.entry.js.map → p-8ee8d5e6.entry.js.map} +0 -0
- /package/dist/paperless/{p-918229ab.entry.js.map → p-95cacdf1.entry.js.map} +0 -0
- /package/dist/paperless/{p-97570c84.entry.js.map → p-9ea16d5d.entry.js.map} +0 -0
- /package/dist/paperless/{p-7f1f62c2.entry.js.map → p-9ecab5af.entry.js.map} +0 -0
- /package/dist/paperless/{p-cbd7870f.entry.js.map → p-a106f17c.entry.js.map} +0 -0
- /package/dist/paperless/{p-50b3268f.entry.js.map → p-ae7b0672.entry.js.map} +0 -0
- /package/dist/paperless/{p-dc21ccd3.entry.js.map → p-b3dfeaaa.entry.js.map} +0 -0
- /package/dist/paperless/{p-c1d4c641.entry.js.map → p-bb77ae46.entry.js.map} +0 -0
- /package/dist/paperless/{p-9c277029.entry.js.map → p-bcbcbffe.entry.js.map} +0 -0
- /package/dist/paperless/{p-9c653182.entry.js.map → p-c5867976.entry.js.map} +0 -0
- /package/dist/paperless/{p-54428a6a.entry.js.map → p-c9870068.entry.js.map} +0 -0
- /package/dist/paperless/{p-d9a3295f.entry.js.map → p-cdeae6b0.entry.js.map} +0 -0
- /package/dist/paperless/{p-eb66dfac.entry.js.map → p-d09bba4f.entry.js.map} +0 -0
- /package/dist/paperless/{p-a3273e15.entry.js.map → p-d3fba507.entry.js.map} +0 -0
- /package/dist/paperless/{p-6cb78d87.entry.js.map → p-e0c437fe.entry.js.map} +0 -0
- /package/dist/paperless/{p-8325525f.entry.js.map → p-e20184ea.entry.js.map} +0 -0
- /package/dist/paperless/{p-0b3af128.entry.js.map → p-e2cc514b.entry.js.map} +0 -0
- /package/dist/paperless/{p-317e4698.entry.js.map → p-fbbe58f8.entry.js.map} +0 -0
- /package/dist/paperless/{p-b8b570c4.entry.js.map → p-ff624855.entry.js.map} +0 -0
|
@@ -9,7 +9,7 @@ export class Layout {
|
|
|
9
9
|
*/
|
|
10
10
|
scroll;
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'e776d154aea44be2b22cadc37318628a56d03c58', class: `p-layout variant-${this.variant}` }, h("div", { key: '138cc330f7d38905a49e4b07eb248c4a6402a2a6', class: 'content', onScroll: ev => this.scroll.emit(ev) }, h("div", { key: 'ca9163cac0da5950b647595dd590baecd5195e7f', class: 'inner-content' }, h("slot", { key: 'b6236b72b80299fc49257a302be068ded881ecd3', name: 'content' }))), h("div", { key: 'bd9fff5fda8a1d2379c2ee7e64c058b7e7b721d9', class: 'sidebar' }, h("slot", { key: '7399981faa64202f7711ee9669a4f38f9d0bd3af', name: 'sidebar' })), h("div", { key: '72bad41175706ea6fd825ce3e21519ea8faf1b12', class: 'topbar' }, h("slot", { key: 'b80b314a7cbdba70652dd0b5feb8787cfeb6bc74', name: 'topbar' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "p-layout"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class ListingItem {
|
|
|
5
5
|
*/
|
|
6
6
|
icon = 'placeholder';
|
|
7
7
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: '6d58ce7c63903c23da568d7d2fe4fd0508da7a25', class: 'flex items-center gap-2 text-storm-500' }, h("p-icon", { key: '7bdd63df17aec1c5d6b6df3d4c9a4d666e4d88e3', variant: this.icon }), h("div", { key: '096b0acc0b3a4447dd2df2cd574e2a12d8d0ff55', class: 'flex min-w-0 flex-1 flex-col text-sm font-medium' }, h("slot", { key: '8ddd7a5cac68deef7eb00b1e0c5aa0c23122e113' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-listing-item"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class ListingLine {
|
|
3
3
|
render() {
|
|
4
|
-
return h(Host, { key: '
|
|
4
|
+
return h(Host, { key: 'ab979cfc1931b669d5ad6c76ba1a3127a2e0c914' });
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-listing-line"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,10 +22,10 @@ export class ModalBody {
|
|
|
22
22
|
*/
|
|
23
23
|
roundedTop = false;
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'c0eca972b2d8e5c6659512bd5feed96b1df75937', class: body({
|
|
26
26
|
roundedBottom: this.roundedBottom,
|
|
27
27
|
roundedTop: this.roundedTop,
|
|
28
|
-
}) }, h("slot", { key: '
|
|
28
|
+
}) }, h("slot", { key: '744910c334625e7a0fd89a8f3d6265490799345a' })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "p-modal-body"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,10 +32,10 @@ export class ModalContainer {
|
|
|
32
32
|
*/
|
|
33
33
|
closing = false;
|
|
34
34
|
render() {
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'ea9f1e0dfe253c9cd543c34dee70249e6eab93cf', class: container({
|
|
36
36
|
size: this.size,
|
|
37
37
|
closing: asBoolean(this.closing),
|
|
38
|
-
}) }, h("slot", { key: '
|
|
38
|
+
}) }, h("slot", { key: '83e3010594067903592be6a141ef101ef39dfea3' })));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "p-modal-container"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ModalFooter {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: 'cd32a8e873f9bb1c149c28a2cde7e3b8c2eb3183', class: 'flex flex-col rounded-b-none bg-white pb-[calc(env(safe-area-inset-bottom)+1rem)] desktop-xs:rounded-b-2xl' }, h("p-divider", { key: '497cb4e886d38a3db973633d211d6c1bf79e1157', class: 'mb-4 hidden desktop-xs:inline-block' }), h("div", { key: 'fd196a6c17a9940e1ce54f4705adea99f71745ae', class: 'flex flex-col gap-4 px-4 tablet:flex-row' }, h("slot", { key: '6dc71fa2c1e5b70ed9dff1fa66cb9571a4506194' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-modal-footer"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class ModalHeader {
|
|
|
21
21
|
*/
|
|
22
22
|
close;
|
|
23
23
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
24
|
+
return (h("div", { key: 'dc80776bb512a7c74e7cbab6e36afc497d042b4e', class: header() }, h("div", { key: '0707618adb9a5f7db0dff24896661eac44fce68c', class: content() }, h("div", { key: '791d83e099e87515cea846a994eabfcb59b189c3', class: title() }, h("slot", { key: '055b1fd75b7fc214ca8f8d17ec54f3513a1da9e1' })), this.showClose && (h("p-button", { key: 'f66338a85716c984a75e235a2cf0363fc4212977', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev) }))), h("p-smile", { key: '229df0fa1d5560d72cdbe4183218d94e7e9ec40b' })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "p-modal-header"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class NavigationTitle {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'a82bd89ef4884668be20b555459687f354854010', class: 'text-xs font-medium text-storm-300' }, h("slot", { key: '15da59a602acc19bc346d371235dde04bd348e56' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-navigation-title"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js
CHANGED
|
@@ -78,12 +78,12 @@ export class PaginationPagesItem {
|
|
|
78
78
|
*/
|
|
79
79
|
disabled = false;
|
|
80
80
|
render() {
|
|
81
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: '50dd701b99f0e0a0775b308bfdfefe3e5251655d', class: item({
|
|
82
82
|
variant: this.variant ?? 'default',
|
|
83
83
|
active: asBoolean(this.active),
|
|
84
84
|
hover: asBoolean(this.hover, true),
|
|
85
85
|
disabled: asBoolean(this.disabled),
|
|
86
|
-
}) }, h("slot", { key: '
|
|
86
|
+
}) }, h("slot", { key: 'c948c211b8ed225e929e17786bb2400fa5259139' })));
|
|
87
87
|
}
|
|
88
88
|
static get is() { return "p-pagination-pages-item"; }
|
|
89
89
|
static get encapsulation() { return "shadow"; }
|
|
@@ -90,11 +90,11 @@ export class Radio {
|
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
92
|
const id = this.id?.length ? this.id : this._nonce;
|
|
93
|
-
return (h("label", { key: '
|
|
93
|
+
return (h("label", { key: '3384f184e596553f14d32b74bf3f9e57e4978055', htmlFor: id, class: 'flex items-center justify-start gap-2' }, h("div", { key: '7d213de88cb6eb8549e7da794911963c750a1a63', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: '732d51875576344733c2b3173067775cc19fff77', class: radio({
|
|
94
94
|
disabled: asBoolean(this.disabled),
|
|
95
|
-
}), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
95
|
+
}), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '354eb0843f4cda4dcdd13c5ac66fe31dc4b84716', class: circle({
|
|
96
96
|
disabled: asBoolean(this.disabled),
|
|
97
|
-
}) })), h("div", { key: '
|
|
97
|
+
}) })), h("div", { key: 'e435f4d57032cbad20d5210a12690c638f2df461', class: 'flex-1 overflow-hidden text-ellipsis' }, h("slot", { key: 'ff6fd4f143611791a3a26907b2df2a6e330d006a' }))));
|
|
98
98
|
}
|
|
99
99
|
_onChange(ev) {
|
|
100
100
|
if (asBoolean(this.disabled)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SegmentContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: '5cbf0c9dd244159036629c771e5845f23f7b70e7', class: 'flex rounded-2xl border border-solid border-off-white-700 bg-off-white-300 p-1' }, h("slot", { key: '36caa6142143eb079dc6df367715d878e14377ce' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-segment-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,11 +45,11 @@ export class SegmentItem {
|
|
|
45
45
|
iconRotate;
|
|
46
46
|
render() {
|
|
47
47
|
const descriptionSlot = this.variant === 'block' ? h("slot", { name: 'description' }) : null;
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '1f988154b893ac84d110521595170702f3b4f8ef', class: segmentItem({
|
|
49
49
|
variant: this.variant,
|
|
50
50
|
active: asBoolean(this.active),
|
|
51
51
|
iconOnly: asBoolean(this.iconOnly),
|
|
52
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
52
|
+
}) }, this.icon && (h("p-icon", { key: '44c10c0f83ebfc23c6d6dfba08f86f0b861aa85a', class: cn('mb-1', {
|
|
53
53
|
'text-storm-300': !asBoolean(this.active),
|
|
54
54
|
'text-indigo-200': asBoolean(this.active),
|
|
55
55
|
}), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), this.variant === 'default' ? (h("slot", null)) : (h("div", { class: 'flex flex-col items-center' }, h("p", { class: cn('my-0 font-medium empty:hidden', {}) }, h("slot", { name: 'title' })), descriptionSlot && (h("p", { class: cn('my-0 text-xs font-medium', {
|
|
@@ -37,7 +37,7 @@ export class Smile {
|
|
|
37
37
|
*/
|
|
38
38
|
variant = 'modal';
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'f5d61ae57fa1b0475956e545fb54ce00fc515036', class: smile({ variant: this.variant }) }, h("div", { key: '958b9c59b35b1e77504629345e854f17cec745d4', class: svg({ variant: this.variant }), innerHTML: smileSvg })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "p-smile"; }
|
|
43
43
|
static get originalStyleUrls() {
|
|
@@ -131,19 +131,19 @@ export class StepperItem {
|
|
|
131
131
|
*/
|
|
132
132
|
active = false;
|
|
133
133
|
render() {
|
|
134
|
-
return (h("div", { key: '
|
|
134
|
+
return (h("div", { key: 'f6ac872b095a497c5fff985b577b07c98f9126bd', class: item({
|
|
135
135
|
align: this.align,
|
|
136
136
|
contentPosition: this.contentPosition,
|
|
137
|
-
}) }, h("div", { key: '
|
|
137
|
+
}) }, h("div", { key: '2fc3da5b0f86a48204c187355a557638b09d3bd2', class: circle({
|
|
138
138
|
align: this.align,
|
|
139
139
|
direction: this.direction,
|
|
140
140
|
active: asBoolean(this.active),
|
|
141
141
|
finished: asBoolean(this.finished),
|
|
142
|
-
}) }, this.number), h("div", { key: '
|
|
142
|
+
}) }, this.number), h("div", { key: '51122ecc39617e7af53176606ac9d4a1bb7b472e', class: content({
|
|
143
143
|
active: asBoolean(this.active),
|
|
144
144
|
finished: asBoolean(this.finished),
|
|
145
145
|
direction: this.direction,
|
|
146
|
-
}) }, h("slot", { key: '
|
|
146
|
+
}) }, h("slot", { key: 'da7bf0c5824c7c5e1f1ccb73902dd4dc3dded387' }))));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "p-stepper-item"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class StepperLine {
|
|
|
9
9
|
*/
|
|
10
10
|
direction = 'horizontal';
|
|
11
11
|
render() {
|
|
12
|
-
return h(Host, { key: '
|
|
12
|
+
return h(Host, { key: '2ff2b8f59be4e7aa674ead8b4e9171f0e2f33161' });
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "p-stepper-line"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class TabContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: '7ff69bd454f2c47aa823070d4171cc9771155fb4', class: 'relative flex h-8 w-full flex-col' }, h("div", { key: 'c85e5d0f655b7ded068e07a4fec48b8f33b8744e', class: 'z-10 flex w-full gap-5 overflow-x-auto scrollbar-hide' }, h("slot", { key: 'e76ce0add2053f2acc79d62e70022ba35f508fe5' })), h("p-divider", { key: '80f5ec5215e88c494b1ea2ad202a0d339cca985e', class: 'absolute bottom-0 left-0 m-0 w-full' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-tab-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class TabItem {
|
|
|
18
18
|
*/
|
|
19
19
|
active = false;
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '9091b890f6d4d8b51a7c65331def69da05af7764', class: item({ active: this.active }) }, h("slot", { key: '84f5a9002b302b28d0dbf9ed6ef29b3e67b214ee' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "p-tab-item"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/atoms/table/actions-container/table-container.component.js
CHANGED
|
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
const container = cva('flex flex-col relative');
|
|
4
4
|
export class TableContainer {
|
|
5
5
|
render() {
|
|
6
|
-
return (h(Host, { key: '
|
|
6
|
+
return (h(Host, { key: '6a4311c41967d2e2022023eeae9727fbcb31e3c2', class: container() }, h("slot", { key: '19b47c738b3c274bb5800716e040c20b214edd87' })));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "p-table-container"; }
|
|
9
9
|
static get originalStyleUrls() {
|
package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class TableRowActionsContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: '4db883763add62e5976ac10a54dfc669ce917fca', class: 'flex before:w-4 before:bg-gradient-to-l before:from-off-white-200' }, h("div", { key: 'a4bf7c60e8e71765f96d6dd3b341b9b8c8f046a8', class: 'flex h-full items-center gap-2 rounded-r-lg bg-off-white-200 pr-3' }, h("slot", { key: 'd8d76063cc14bd9437863cd42fc557e1f0b9d8cd' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-table-row-actions-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,9 +34,9 @@ export class ToastContainer {
|
|
|
34
34
|
*/
|
|
35
35
|
placement = 'top-end';
|
|
36
36
|
render() {
|
|
37
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: '57788afe45fc4c35f122fcb70f7e6016809ebe37', class: container({
|
|
38
38
|
placement: this.placement,
|
|
39
|
-
}) }, h("slot", { key: '
|
|
39
|
+
}) }, h("slot", { key: '8d95ad6ed95e3931d4c4ca1c0360d57bceeda53d' })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "p-toast-container"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -87,11 +87,11 @@ export class Toggle {
|
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
89
|
const id = this.id?.length ? this.id : this._nonce;
|
|
90
|
-
return (h("label", { key: '
|
|
90
|
+
return (h("label", { key: '178e6f85f4ca2f2af365a4c1cfe357d52db4c17b', htmlFor: id, class: 'flex items-center justify-start gap-2' }, h("div", { key: '5d4c1bb1e04c8daa95430849ae4af0834cbdb833', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, h("input", { key: '7da07dc9b55bf8992c56525648df8b6752935eb0', class: toggle({
|
|
91
91
|
disabled: asBoolean(this.disabled),
|
|
92
|
-
}), type: 'checkbox', id: id, name: this.name, required: this.required, checked: !!this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
92
|
+
}), type: 'checkbox', id: id, name: this.name, required: this.required, checked: !!this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '947fdd06b15b93883c65c6f16fb10cb12a03b2a0', class: circle({
|
|
93
93
|
disabled: asBoolean(this.disabled),
|
|
94
|
-
}) })), h("div", { key: '
|
|
94
|
+
}) })), h("div", { key: 'f493992f0fbd649f0785b2a59c0716ab94476878', class: 'flex-1 overflow-hidden text-ellipsis' }, h("slot", { key: 'f1b901e08965f13d195e5b90aba5d251352ce310' }))));
|
|
95
95
|
}
|
|
96
96
|
_onChange(ev) {
|
|
97
97
|
if (asBoolean(this.disabled)) {
|
|
@@ -89,10 +89,10 @@ export class Tooltip {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: 'ba77fa6c67cbfed3ca278ba4fbbd45872249a2ae' }, h("slot", { key: '9b64e29812983e5f39b4b28785ceba799e19f0e3', name: 'trigger' }), h("div", { key: '72bffe0d9a0948fc179534f1cd231d980b276029', class: popover({
|
|
93
93
|
variant: this.variant,
|
|
94
94
|
strategy: this.strategy,
|
|
95
|
-
}), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, h("div", { key: '
|
|
95
|
+
}), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, h("div", { key: '14025280030b32cd1f7095c9a1082e08898a7aa3', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: '6721dd8c7c77feb4c9f58968d907fa2de08a838f', class: 'w-[2px] bg-negative-red-500' })), this.content ? this.content : h("slot", { name: 'content' })))));
|
|
96
96
|
}
|
|
97
97
|
clickHandler() {
|
|
98
98
|
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
@@ -26,10 +26,10 @@ export class Accordion {
|
|
|
26
26
|
*/
|
|
27
27
|
isOpen;
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'd878d8588ae8bf8197311f9dd1e545ce76319939' }, h("div", { key: 'd27ce2d9bc6d69979108313c3ab0b3f9162674b4', class: cn('flex cursor-pointer items-center gap-2', {
|
|
30
30
|
'text-storm-500': this.variant === 'primary',
|
|
31
31
|
'text-storm-300': this.variant === 'secondary',
|
|
32
|
-
}), onClick: () => this._onClick() }, h("p-icon", { key: '
|
|
32
|
+
}), onClick: () => this._onClick() }, h("p-icon", { key: 'fbffa3675230b0f2f1fd2152850a271af31fd5cd', class: 'flex shrink-0', variant: 'caret', rotate: this.open ? 0 : -90 }), h("p", { key: '51c522ac9305d21f72433a57118110bfcb5e93ce', class: 'my-0 shrink-0 whitespace-nowrap text-base font-medium' }, this.header), h("p-divider", { key: 'eced883ff102f4085128241f4b1416f9d4cdcb78', class: 'flex-1' })), this.open && (h("div", { key: '52a0118c8ef4edcac60930b6d773670de9d57742', class: 'mt-4' }, h("slot", { key: 'f24056015077d270a8a95adb31d0eabcac394d51' })))));
|
|
33
33
|
}
|
|
34
34
|
_onClick() {
|
|
35
35
|
if (!this.closeable && this.open) {
|
|
@@ -93,21 +93,21 @@ export class Attachment {
|
|
|
93
93
|
_fileRef;
|
|
94
94
|
_cameraFileRef;
|
|
95
95
|
render() {
|
|
96
|
-
let prefix = (h("p-icon", { key: '
|
|
96
|
+
let prefix = (h("p-icon", { key: '234651c741b3e1b546d71e83681419b9a1c8185a', class: 'text-storm-300', variant: 'attachment' }));
|
|
97
97
|
if (this.error) {
|
|
98
|
-
prefix = (h("p-icon", { key: '
|
|
98
|
+
prefix = (h("p-icon", { key: '90514556ee007ca87a80b1e32040cb5a5773dd2a', variant: 'warning', class: 'text-negative-red-500' }));
|
|
99
99
|
}
|
|
100
100
|
// const isMobileDevice = isMobile();
|
|
101
101
|
const isMobileDevice = isTablet();
|
|
102
102
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
103
|
-
return (h(Fragment, { key: '
|
|
103
|
+
return (h(Fragment, { key: 'e2e969537c37a0f7e15d2f5832e7f9a986c96775' }, h("p-field-container", { key: '9d5396026dd011f50b3a5ec0f369d686a5f0d965', variant: 'write', label: this.label, helper: this.helper, error: this.error, required: this.required, forceShowTooltip: !!this.error?.length }, h("div", { key: 'a6771c6b627ed1780c11fb537495c13d7591cdc2', slot: 'content', class: 'flex w-full items-start gap-2' }, h("div", { key: 'bd87379a80f84ae4fcc2c614a536585206804948', class: attachment({
|
|
104
104
|
click: this.mode === 'write' && !this.value?.length,
|
|
105
105
|
error: !!this.error?.length,
|
|
106
|
-
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '
|
|
106
|
+
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: 'de48a159ef1a2bc1bc590f7194c9ff8bca8f3719', class: cn(baseText, 'peer empty:hidden') }, this.value), h("span", { key: 'f4dc00eb80b2bd8d79c9c52f2f85751c48b264c6', class: cn(baseText, 'hidden peer-empty:block') }, this.placeholder)), h("p-tooltip", { key: '53a6f129a7e381fe4aceab62aed14eeb00d3d1a2', class: 'w-8', content: this.mode === 'read'
|
|
107
107
|
? this.downloadTooltip
|
|
108
108
|
: this.value?.length
|
|
109
109
|
? this.deleteTooltip
|
|
110
|
-
: this.uploadTooltip }, h("p-button", { key: '
|
|
110
|
+
: this.uploadTooltip }, h("p-button", { key: 'acd7efb91794d2b4b552a0fa46520da35eae7513', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: this.mode === 'read'
|
|
111
111
|
? 'download'
|
|
112
112
|
: this.value?.length
|
|
113
113
|
? 'trash'
|
|
@@ -118,7 +118,7 @@ export class Attachment {
|
|
|
118
118
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
119
119
|
this.mode === 'write' &&
|
|
120
120
|
isMobileDevice &&
|
|
121
|
-
!this.value?.length && (h("p-tooltip", { key: '
|
|
121
|
+
!this.value?.length && (h("p-tooltip", { key: '6abf44816804214877cd275d954fb6f9c4a0d4ab', content: this.cameraTooltip, class: 'w-8 desktop-xs:hidden' }, h("p-button", { key: '36bfae40db5da7ec9d992435c76f5c0b4a4d832a', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: 'camera', onOnClick: () => this._cameraClick() }))))), h("input", { key: 'bdb3e6ef52c435b5e9a6da5fa6b9a5cd29681edd', class: 'hidden', type: 'file', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, ref: el => (this._fileRef = el), onChange: ev => this._onFileChange(ev) }), h("input", { key: 'c3ddf48be88bdea1af7d155ffe92b4e2272b8031', class: 'hidden', type: 'file', accept: 'image/*', capture: 'true', ref: el => (this._cameraFileRef = el), onChange: ev => this._onFileChange(ev) })));
|
|
122
122
|
}
|
|
123
123
|
_uploadClick() {
|
|
124
124
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -12,7 +12,7 @@ export class ButtonGroup {
|
|
|
12
12
|
this._checkButtons();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'cb9800c536f27cfd2b04c3b7f584eea9865bfc08', class: 'flex items-center' }, h("slot", { key: 'b8426128bfc5577d5fb321483af485a8ee9c3569' })));
|
|
16
16
|
}
|
|
17
17
|
slotchange() {
|
|
18
18
|
this._checkButtons();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
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 { nl, enUS } from "date-fns/locale";
|
|
4
5
|
import { cn } from "../../../utils/cn";
|
|
6
|
+
import { state } from "../../../state";
|
|
5
7
|
const calendar = cva(['bg-white w-[17.5rem] flex flex-col gap-4'], {
|
|
6
8
|
variants: {
|
|
7
9
|
variant: {
|
|
@@ -175,7 +177,7 @@ export class Calendar {
|
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
179
|
render() {
|
|
178
|
-
return (h("div", { key: '
|
|
180
|
+
return (h("div", { key: '302d97740d1e447a1cb078d335bc2c5cba977835', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
179
181
|
}
|
|
180
182
|
_checkTodayButton() {
|
|
181
183
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -206,7 +208,9 @@ export class Calendar {
|
|
|
206
208
|
*/
|
|
207
209
|
_getDayView() {
|
|
208
210
|
const daysInMonth = this._generateDaysInMonth();
|
|
209
|
-
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), 'eee'
|
|
211
|
+
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', {
|
|
212
|
+
locale: state.locale === 'nl' ? nl : enUS,
|
|
213
|
+
})))), daysInMonth.map(day => {
|
|
210
214
|
return day.active ? (h("p-button", { variant: 'primary', 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', {
|
|
211
215
|
'cursor-pointer hover:bg-white-600 hover:text-storm-500': !day.disabled,
|
|
212
216
|
}, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
@@ -216,7 +220,9 @@ export class Calendar {
|
|
|
216
220
|
}
|
|
217
221
|
_getMonthView() {
|
|
218
222
|
const months = this._generateMonths();
|
|
219
|
-
return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary', disabled: month.disabled, onClick: () => this._setMonth(month.month) }, format(setMonth(new Date(), month.month), 'MMMM'
|
|
223
|
+
return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary', disabled: month.disabled, onClick: () => this._setMonth(month.month) }, format(setMonth(new Date(), month.month), 'MMMM', {
|
|
224
|
+
locale: state.locale === 'nl' ? nl : enUS,
|
|
225
|
+
})))))));
|
|
220
226
|
}
|
|
221
227
|
_getYearView() {
|
|
222
228
|
const years = this._generateYears();
|
|
@@ -231,7 +237,9 @@ export class Calendar {
|
|
|
231
237
|
}
|
|
232
238
|
return (h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: 90, size: 'sm', onClick: () => nextFn(-1), disabled: !this._canSetAmount(nextType, -1) || this._view === 'year' })), h("div", { class: cn('flex gap-2', {
|
|
233
239
|
'flex-1': this._enableToday,
|
|
234
|
-
}) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', size: 'sm', onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, format(this._viewDate, 'MMMM'
|
|
240
|
+
}) }, this.mode !== 'year' && (h("p-button", { variant: 'secondary', size: 'sm', onClick: () => this._changeView('month'), disabled: !this._canChangeView('month'), active: this._view === 'month' && this.mode !== 'month' }, format(this._viewDate, 'MMMM', {
|
|
241
|
+
locale: state.locale === 'nl' ? nl : enUS,
|
|
242
|
+
}))), h("p-button", { variant: 'secondary', size: 'sm', onClick: () => this._changeView('year'), disabled: !this._canChangeView('year'), active: this._view === 'year' && this.mode !== 'year' }, getYear(this._viewDate)), this._enableToday && (h("p-tooltip", { class: 'ml-auto', content: this.todayText }, h("p-button", { variant: 'secondary', size: 'sm', icon: 'calendar', slot: 'trigger', iconOnly: true, onClick: () => this._setToday() })))), this.mode !== 'year' && (h("p-button", { variant: 'secondary', iconOnly: true, icon: 'caret', iconRotate: -90, size: 'sm', onClick: () => nextFn(1), disabled: !this._canSetAmount(nextType, 1) || this._view == 'year' }))));
|
|
235
243
|
}
|
|
236
244
|
_setYear(year) {
|
|
237
245
|
const date = setYear(this._viewDate, year);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/calendar/calendar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,KAAK,EACL,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,MAAM,EACN,cAAc,EACd,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,QAAQ,EACR,OAAO,EACP,UAAU,EACV,YAAY,GACZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,0CAA0C,CAAC,EAAE;IAClE,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,8BAA8B,EAAE,yBAAyB,CAAC;YACpE,QAAQ,EAAE,KAAK;SACf;KACD;CACD,CAAC,CAAC;AAEH,MAAM,MA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AI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACpE,OAAO,KAAK,CAAC;YACd,CAAC;QACF,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,gBAAgB;QACvB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAEtC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QAEjC,OAAO,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\taddDays,\n\taddMonths,\n\taddYears,\n\tendOfMonth,\n\tformat,\n\tgetDay,\n\tgetDaysInMonth,\n\tgetYear,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisSameMonth,\n\tisSameYear,\n\tisValid,\n\tisWeekend,\n\tsetDate,\n\tsetMonth,\n\tsetYear,\n\tstartOfDay,\n\tstartOfMonth,\n} from 'date-fns';\nimport { cn } from '../../../utils/cn';\n\nconst calendar = cva(['bg-white w-[17.5rem] flex flex-col gap-4'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: ['p-2 rounded-lg drop-shadow-2', 'border border-storm-100'],\n\t\t\tembedded: 'p-1',\n\t\t},\n\t},\n});\n\nconst header = cva(\n\t['flex items-center gap-2', 'w-full p-2', 'bg-off-white-300 rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\ttype: {\n\t\t\t\tday: 'justify-between',\n\t\t\t\tmonth: 'justify-between',\n\t\t\t\tyear: 'justify-center',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst view = cva(['flex flex-col gap-2', 'w-full'], {\n\tvariants: {\n\t\tview: {\n\t\t\tday: 'h-auto min-h-[12rem]',\n\t\t\tmonth: 'min-h-[15rem]',\n\t\t\tyear: 'max-h-[15rem]',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-calendar',\n\tstyleUrl: 'calendar.component.css',\n\tshadow: true,\n})\nexport class Calendar {\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant: 'default' | 'embedded' = 'default';\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value?: Date | string;\n\n\t/**\n\t * Wether to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate: Date | string = new Date(1970, 0, 1);\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate: Date | string = this._getAutomaticMax();\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * Wether to enable the today button\n\t */\n\t@Prop() enableToday: boolean = true;\n\n\t/**\n\t * The text to display on the today tooltip\n\t */\n\t@Prop() todayText: string = 'today';\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\tprivate _today = new Date();\n\t@State() private _view: 'year' | 'month' | 'day' = this.mode;\n\t@State() private _viewDate = this._today;\n\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\n\t@State() private _enableToday = true;\n\n\tprivate _weekDays = Array.from(Array(7).keys());\n\tprivate _yearItemsRef: HTMLDivElement;\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis._parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis._parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis._parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tthis._parseValue(this.value);\n\n\t\tif (this._value) {\n\t\t\tthis._viewDate = this._value;\n\t\t}\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\n\t\tthis._modeChange(this.mode);\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._enableToday = this.enableToday && this._checkTodayButton();\n\t}\n\n\tcomponentDidRender() {\n\t\tif (this._view === 'year') {\n\t\t\tthis._scrollYearIntoView();\n\t\t}\n\t}\n\n\t@Watch('value')\n\tprivate _parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tif (isValid(value) && !isSameDay(value, this._viewDate)) {\n\t\t\tthis._viewDate = value;\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprivate _parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprivate _parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprivate _parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\t}\n\n\t@Watch('mode')\n\t_modeChange(mode: 'year' | 'month' | 'day') {\n\t\tif (mode === 'year' && this._view !== 'year') {\n\t\t\tthis._view = 'year';\n\t\t}\n\n\t\tif (mode === 'month' && this._view === 'day') {\n\t\t\tthis._view = 'month';\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={calendar({ variant: this.variant })}>{this._getView()}</div>\n\t\t);\n\t}\n\n\tprivate _checkTodayButton() {\n\t\tif (this._maxDate && isAfter(this._today, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this._minDate && isBefore(this._today, this._minDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.disableWeekends && isWeekend(this._today)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.mode !== 'day') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getView() {\n\t\tif (this._view === 'year') {\n\t\t\treturn this._getYearView();\n\t\t}\n\n\t\tif (this._view === 'month') {\n\t\t\treturn this._getMonthView();\n\t\t}\n\n\t\treturn this._getDayView();\n\t}\n\n\t/* With this, we shall hack the system in ways no one would ever have thought.\n <div class=\"col-start-1 col-start-2 col-start-3 col-start-4 col-start-5 col-start-6 col-start-7\"></div>\n */\n\tprivate _getDayView() {\n\t\tconst daysInMonth = this._generateDaysInMonth();\n\t\treturn (\n\t\t\t<div class={view({ view: 'day' })}>\n\t\t\t\t{this._getHeader('day')}\n\n\t\t\t\t<div class='grid grid-cols-7 justify-between gap-1'>\n\t\t\t\t\t{this._weekDays.map(weekday => (\n\t\t\t\t\t\t<span class='w-8 text-center text-xs text-storm-200'>\n\t\t\t\t\t\t\t{format(addDays(new Date(2022, 7, 1), weekday), 'eee')}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t))}\n\t\t\t\t\t{daysInMonth.map(day => {\n\t\t\t\t\t\treturn day.active ? (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='primary'\n\t\t\t\t\t\t\t\tclass={cn('w-8', `col-start-${day.offset}`)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<time\n\t\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t\t'normal flex items-center justify-center rounded-lg',\n\t\t\t\t\t\t\t\t\t'h-8 w-8 text-sm font-semibold text-storm-300',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'cursor-pointer hover:bg-white-600 hover:text-storm-500':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t`col-start-${day.offset}`,\n\t\t\t\t\t\t\t\t\t{ 'cursor-not-allowed opacity-60': day.disabled },\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'border border-solid border-off-white-700 bg-off-white-300 text-storm-500':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled && isSameDay(day.date, new Date()),\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</time>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getMonthView() {\n\t\tconst months = this._generateMonths();\n\t\treturn (\n\t\t\t<div class={view({ view: 'month' })}>\n\t\t\t\t{this._getHeader('month')}\n\n\t\t\t\t<div class='flex flex-wrap items-start gap-2'>\n\t\t\t\t\t{months.map(month => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant={month.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tdisabled={month.disabled}\n\t\t\t\t\t\t\tonClick={() => this._setMonth(month.month)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(setMonth(new Date(), month.month), 'MMMM')}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getYearView() {\n\t\tconst years = this._generateYears();\n\t\treturn (\n\t\t\t<div class={view({ view: 'year' })}>\n\t\t\t\t{this._getHeader('year')}\n\t\t\t\t<div\n\t\t\t\t\tclass='grid h-full grid-cols-4 gap-2 overflow-scroll'\n\t\t\t\t\tref={ref => (this._yearItemsRef = ref)}\n\t\t\t\t>\n\t\t\t\t\t{years.map(year => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\t\tvariant={year.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tonClick={() => this._setYear(year.year)}\n\t\t\t\t\t\t\tdata-active={year.active}\n\t\t\t\t\t\t\tdata-current={year.current}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{year.year}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getHeader(type: 'day' | 'month' | 'year' = 'day') {\n\t\tlet nextFn = num => this._changeMonth(num);\n\t\tlet nextType: 'month' | 'year' = 'month';\n\n\t\tif (type === 'month' || type === 'year') {\n\t\t\tnextFn = num => this._changeYear(num);\n\t\t\tnextType = 'year';\n\t\t}\n\n\t\treturn (\n\t\t\t<div class={header({ type: this.mode })}>\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(-1)}\n\t\t\t\t\t\tdisabled={\n\t\t\t\t\t\t\t!this._canSetAmount(nextType, -1) || this._view === 'year'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex gap-2', {\n\t\t\t\t\t\t'flex-1': this._enableToday,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tonClick={() => this._changeView('month')}\n\t\t\t\t\t\t\tdisabled={!this._canChangeView('month')}\n\t\t\t\t\t\t\tactive={this._view === 'month' && this.mode !== 'month'}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(this._viewDate, 'MMMM')}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => this._changeView('year')}\n\t\t\t\t\t\tdisabled={!this._canChangeView('year')}\n\t\t\t\t\t\tactive={this._view === 'year' && this.mode !== 'year'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getYear(this._viewDate)}\n\t\t\t\t\t</p-button>\n\n\t\t\t\t\t{this._enableToday && (\n\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\tclass='ml-auto'\n\t\t\t\t\t\t\tcontent={this.todayText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\t\ticon='calendar'\n\t\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\tonClick={() => this._setToday()}\n\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={-90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(1)}\n\t\t\t\t\t\tdisabled={!this._canSetAmount(nextType, 1) || this._view == 'year'}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _setYear(year: number) {\n\t\tconst date = setYear(this._viewDate, year);\n\t\tif (this.mode !== 'year') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'month';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setMonth(setDate(date, 1), 0));\n\t}\n\n\tprivate _setMonth(month: number) {\n\t\tconst date = setMonth(this._viewDate, month);\n\t\tif (this.mode === 'day') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'day';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setDate(date, 1));\n\t}\n\n\tprivate _setToday() {\n\t\tthis._viewDate = this._today;\n\t\tthis._setValue(this._today);\n\t\tthis._view = 'day';\n\t}\n\n\tprivate _changeMonth(amount = 1) {\n\t\tconst allowed = this._canSetAmount('month', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _changeYear(amount = 1) {\n\t\tconst allowed = this._canSetAmount('year', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet newDate = addYears(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _setValue(value: Date) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvalue = startOfDay(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _generateDaysInMonth() {\n\t\tconst days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());\n\n\t\treturn days.map(day => {\n\t\t\tday = day + 1;\n\t\t\tconst date = setDate(this._viewDate, day);\n\n\t\t\tconst dayOfWeek = getDay(date);\n\t\t\treturn {\n\t\t\t\tday,\n\t\t\t\tdate,\n\t\t\t\toffset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,\n\t\t\t\tcurrent: isSameDay(date, this._today),\n\t\t\t\tactive: isSameDay(date, this._value),\n\t\t\t\tdisabled: this._isDisabledDay(date),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _generateMonths() {\n\t\tconst year = getYear(this._viewDate);\n\t\tconst months = Array.from(Array(12).keys());\n\n\t\treturn months.map(month => {\n\t\t\tconst date = new Date(year, month, 1);\n\t\t\treturn {\n\t\t\t\tmonth,\n\t\t\t\tcurrent: isSameMonth(this._today, date),\n\t\t\t\tactive: isSameMonth(this._value, date),\n\t\t\t\tdisabled:\n\t\t\t\t\tisAfter(date, this._maxDate) ||\n\t\t\t\t\tisBefore(endOfMonth(date), this._minDate),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _generateYears() {\n\t\tconst maxYear = getYear(this._maxDate) + 1;\n\t\tconst minYear = getYear(this._minDate);\n\n\t\treturn Array.from(Array(maxYear - minYear).keys()).map(index => {\n\t\t\tconst year = minYear + index;\n\t\t\treturn {\n\t\t\t\tyear,\n\t\t\t\tcurrent: getYear(this._today) === year,\n\t\t\t\tactive: getYear(this._value) === year,\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _scrollYearIntoView() {\n\t\tconst items = this._yearItemsRef;\n\t\tif (!items) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst active = items.querySelector('p-button[data-active]') as HTMLElement;\n\t\tif (active) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: active.offsetTop - 100,\n\t\t\t});\n\t\t}\n\n\t\tconst current = items.querySelector(\n\t\t\t'p-button[data-current]'\n\t\t) as HTMLElement;\n\t\tif (current) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: current.offsetTop - 100,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate _changeView(view: 'year' | 'month') {\n\t\tif (!this._canChangeView(view)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._view = view;\n\t}\n\n\tprivate _canChangeView(view: 'year' | 'month') {\n\t\tif (view === 'year') {\n\t\t\tif (isSameYear(this._minDate, this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isSameMonth(this._minDate, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _canSetAmount(type: 'month' | 'year', amount = 1) {\n\t\tif (type === 'month') {\n\t\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\t\tconst startNewDate = startOfMonth(newDate);\n\t\t\tif (\n\t\t\t\t(isBefore(startNewDate, startOfMonth(this._minDate)) &&\n\t\t\t\t\t!isSameDay(startNewDate, this._minDate)) ||\n\t\t\t\tisAfter(startNewDate, endOfMonth(this._maxDate))\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (type === 'year') {\n\t\t\tlet newDate = addYears(this._viewDate, amount);\n\t\t\tconst year = getYear(newDate);\n\t\t\tif (year < getYear(this._minDate) || year > getYear(this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getAutomaticMax() {\n\t\tconst date = addYears(new Date(), 50);\n\n\t\tlet year = getYear(date);\n\t\tyear = Math.ceil(year / 10) * 10;\n\n\t\treturn setYear(date, year);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"calendar.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/calendar/calendar.component.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AC,OAAO,CAAC,CAAC;YAC9B,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACpE,OAAO,KAAK,CAAC;YACd,CAAC;QACF,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,gBAAgB;QACvB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAEtC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QAEjC,OAAO,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\taddDays,\n\taddMonths,\n\taddYears,\n\tendOfMonth,\n\tformat,\n\tgetDay,\n\tgetDaysInMonth,\n\tgetYear,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisSameMonth,\n\tisSameYear,\n\tisValid,\n\tisWeekend,\n\tsetDate,\n\tsetMonth,\n\tsetYear,\n\tstartOfDay,\n\tstartOfMonth,\n} from 'date-fns';\nimport { nl, enUS } from 'date-fns/locale';\nimport { cn } from '../../../utils/cn';\nimport { state } from '../../../state';\n\nconst calendar = cva(['bg-white w-[17.5rem] flex flex-col gap-4'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: ['p-2 rounded-lg drop-shadow-2', 'border border-storm-100'],\n\t\t\tembedded: 'p-1',\n\t\t},\n\t},\n});\n\nconst header = cva(\n\t['flex items-center gap-2', 'w-full p-2', 'bg-off-white-300 rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\ttype: {\n\t\t\t\tday: 'justify-between',\n\t\t\t\tmonth: 'justify-between',\n\t\t\t\tyear: 'justify-center',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst view = cva(['flex flex-col gap-2', 'w-full'], {\n\tvariants: {\n\t\tview: {\n\t\t\tday: 'h-auto min-h-[12rem]',\n\t\t\tmonth: 'min-h-[15rem]',\n\t\t\tyear: 'max-h-[15rem]',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-calendar',\n\tstyleUrl: 'calendar.component.css',\n\tshadow: true,\n})\nexport class Calendar {\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant: 'default' | 'embedded' = 'default';\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value?: Date | string;\n\n\t/**\n\t * Wether to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate: Date | string = new Date(1970, 0, 1);\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate: Date | string = this._getAutomaticMax();\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * Wether to enable the today button\n\t */\n\t@Prop() enableToday: boolean = true;\n\n\t/**\n\t * The text to display on the today tooltip\n\t */\n\t@Prop() todayText: string = 'today';\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\tprivate _today = new Date();\n\t@State() private _view: 'year' | 'month' | 'day' = this.mode;\n\t@State() private _viewDate = this._today;\n\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\n\t@State() private _enableToday = true;\n\n\tprivate _weekDays = Array.from(Array(7).keys());\n\tprivate _yearItemsRef: HTMLDivElement;\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis._parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis._parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis._parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tthis._parseValue(this.value);\n\n\t\tif (this._value) {\n\t\t\tthis._viewDate = this._value;\n\t\t}\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\n\t\tthis._modeChange(this.mode);\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._enableToday = this.enableToday && this._checkTodayButton();\n\t}\n\n\tcomponentDidRender() {\n\t\tif (this._view === 'year') {\n\t\t\tthis._scrollYearIntoView();\n\t\t}\n\t}\n\n\t@Watch('value')\n\tprivate _parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tif (isValid(value) && !isSameDay(value, this._viewDate)) {\n\t\t\tthis._viewDate = value;\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprivate _parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprivate _parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprivate _parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\t}\n\n\t@Watch('mode')\n\t_modeChange(mode: 'year' | 'month' | 'day') {\n\t\tif (mode === 'year' && this._view !== 'year') {\n\t\t\tthis._view = 'year';\n\t\t}\n\n\t\tif (mode === 'month' && this._view === 'day') {\n\t\t\tthis._view = 'month';\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={calendar({ variant: this.variant })}>{this._getView()}</div>\n\t\t);\n\t}\n\n\tprivate _checkTodayButton() {\n\t\tif (this._maxDate && isAfter(this._today, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this._minDate && isBefore(this._today, this._minDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.disableWeekends && isWeekend(this._today)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.mode !== 'day') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getView() {\n\t\tif (this._view === 'year') {\n\t\t\treturn this._getYearView();\n\t\t}\n\n\t\tif (this._view === 'month') {\n\t\t\treturn this._getMonthView();\n\t\t}\n\n\t\treturn this._getDayView();\n\t}\n\n\t/* With this, we shall hack the system in ways no one would ever have thought.\n <div class=\"col-start-1 col-start-2 col-start-3 col-start-4 col-start-5 col-start-6 col-start-7\"></div>\n */\n\tprivate _getDayView() {\n\t\tconst daysInMonth = this._generateDaysInMonth();\n\t\treturn (\n\t\t\t<div class={view({ view: 'day' })}>\n\t\t\t\t{this._getHeader('day')}\n\n\t\t\t\t<div class='grid grid-cols-7 justify-between gap-1'>\n\t\t\t\t\t{this._weekDays.map(weekday => (\n\t\t\t\t\t\t<span class='w-8 text-center text-xs text-storm-200'>\n\t\t\t\t\t\t\t{format(\n\t\t\t\t\t\t\t\taddDays(new Date(2022, 7, 1), weekday),\n\t\t\t\t\t\t\t\tstate.locale === 'nl' ? 'EEEEEE' : 'eee',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t))}\n\t\t\t\t\t{daysInMonth.map(day => {\n\t\t\t\t\t\treturn day.active ? (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='primary'\n\t\t\t\t\t\t\t\tclass={cn('w-8', `col-start-${day.offset}`)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<time\n\t\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t\t'normal flex items-center justify-center rounded-lg',\n\t\t\t\t\t\t\t\t\t'h-8 w-8 text-sm font-semibold text-storm-300',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'cursor-pointer hover:bg-white-600 hover:text-storm-500':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t`col-start-${day.offset}`,\n\t\t\t\t\t\t\t\t\t{ 'cursor-not-allowed opacity-60': day.disabled },\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'border border-solid border-off-white-700 bg-off-white-300 text-storm-500':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled && isSameDay(day.date, new Date()),\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</time>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getMonthView() {\n\t\tconst months = this._generateMonths();\n\t\treturn (\n\t\t\t<div class={view({ view: 'month' })}>\n\t\t\t\t{this._getHeader('month')}\n\n\t\t\t\t<div class='flex flex-wrap items-start gap-2'>\n\t\t\t\t\t{months.map(month => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant={month.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tdisabled={month.disabled}\n\t\t\t\t\t\t\tonClick={() => this._setMonth(month.month)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(setMonth(new Date(), month.month), 'MMMM', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getYearView() {\n\t\tconst years = this._generateYears();\n\t\treturn (\n\t\t\t<div class={view({ view: 'year' })}>\n\t\t\t\t{this._getHeader('year')}\n\t\t\t\t<div\n\t\t\t\t\tclass='grid h-full grid-cols-4 gap-2 overflow-scroll'\n\t\t\t\t\tref={ref => (this._yearItemsRef = ref)}\n\t\t\t\t>\n\t\t\t\t\t{years.map(year => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\t\tvariant={year.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tonClick={() => this._setYear(year.year)}\n\t\t\t\t\t\t\tdata-active={year.active}\n\t\t\t\t\t\t\tdata-current={year.current}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{year.year}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getHeader(type: 'day' | 'month' | 'year' = 'day') {\n\t\tlet nextFn = num => this._changeMonth(num);\n\t\tlet nextType: 'month' | 'year' = 'month';\n\n\t\tif (type === 'month' || type === 'year') {\n\t\t\tnextFn = num => this._changeYear(num);\n\t\t\tnextType = 'year';\n\t\t}\n\n\t\treturn (\n\t\t\t<div class={header({ type: this.mode })}>\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(-1)}\n\t\t\t\t\t\tdisabled={\n\t\t\t\t\t\t\t!this._canSetAmount(nextType, -1) || this._view === 'year'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex gap-2', {\n\t\t\t\t\t\t'flex-1': this._enableToday,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tonClick={() => this._changeView('month')}\n\t\t\t\t\t\t\tdisabled={!this._canChangeView('month')}\n\t\t\t\t\t\t\tactive={this._view === 'month' && this.mode !== 'month'}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(this._viewDate, 'MMMM', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => this._changeView('year')}\n\t\t\t\t\t\tdisabled={!this._canChangeView('year')}\n\t\t\t\t\t\tactive={this._view === 'year' && this.mode !== 'year'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getYear(this._viewDate)}\n\t\t\t\t\t</p-button>\n\n\t\t\t\t\t{this._enableToday && (\n\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\tclass='ml-auto'\n\t\t\t\t\t\t\tcontent={this.todayText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\t\ticon='calendar'\n\t\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\tonClick={() => this._setToday()}\n\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={-90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(1)}\n\t\t\t\t\t\tdisabled={!this._canSetAmount(nextType, 1) || this._view == 'year'}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _setYear(year: number) {\n\t\tconst date = setYear(this._viewDate, year);\n\t\tif (this.mode !== 'year') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'month';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setMonth(setDate(date, 1), 0));\n\t}\n\n\tprivate _setMonth(month: number) {\n\t\tconst date = setMonth(this._viewDate, month);\n\t\tif (this.mode === 'day') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'day';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setDate(date, 1));\n\t}\n\n\tprivate _setToday() {\n\t\tthis._viewDate = this._today;\n\t\tthis._setValue(this._today);\n\t\tthis._view = 'day';\n\t}\n\n\tprivate _changeMonth(amount = 1) {\n\t\tconst allowed = this._canSetAmount('month', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _changeYear(amount = 1) {\n\t\tconst allowed = this._canSetAmount('year', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet newDate = addYears(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _setValue(value: Date) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvalue = startOfDay(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _generateDaysInMonth() {\n\t\tconst days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());\n\n\t\treturn days.map(day => {\n\t\t\tday = day + 1;\n\t\t\tconst date = setDate(this._viewDate, day);\n\n\t\t\tconst dayOfWeek = getDay(date);\n\t\t\treturn {\n\t\t\t\tday,\n\t\t\t\tdate,\n\t\t\t\toffset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,\n\t\t\t\tcurrent: isSameDay(date, this._today),\n\t\t\t\tactive: isSameDay(date, this._value),\n\t\t\t\tdisabled: this._isDisabledDay(date),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _generateMonths() {\n\t\tconst year = getYear(this._viewDate);\n\t\tconst months = Array.from(Array(12).keys());\n\n\t\treturn months.map(month => {\n\t\t\tconst date = new Date(year, month, 1);\n\t\t\treturn {\n\t\t\t\tmonth,\n\t\t\t\tcurrent: isSameMonth(this._today, date),\n\t\t\t\tactive: isSameMonth(this._value, date),\n\t\t\t\tdisabled:\n\t\t\t\t\tisAfter(date, this._maxDate) ||\n\t\t\t\t\tisBefore(endOfMonth(date), this._minDate),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _generateYears() {\n\t\tconst maxYear = getYear(this._maxDate) + 1;\n\t\tconst minYear = getYear(this._minDate);\n\n\t\treturn Array.from(Array(maxYear - minYear).keys()).map(index => {\n\t\t\tconst year = minYear + index;\n\t\t\treturn {\n\t\t\t\tyear,\n\t\t\t\tcurrent: getYear(this._today) === year,\n\t\t\t\tactive: getYear(this._value) === year,\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _scrollYearIntoView() {\n\t\tconst items = this._yearItemsRef;\n\t\tif (!items) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst active = items.querySelector('p-button[data-active]') as HTMLElement;\n\t\tif (active) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: active.offsetTop - 100,\n\t\t\t});\n\t\t}\n\n\t\tconst current = items.querySelector(\n\t\t\t'p-button[data-current]'\n\t\t) as HTMLElement;\n\t\tif (current) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: current.offsetTop - 100,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate _changeView(view: 'year' | 'month') {\n\t\tif (!this._canChangeView(view)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._view = view;\n\t}\n\n\tprivate _canChangeView(view: 'year' | 'month') {\n\t\tif (view === 'year') {\n\t\t\tif (isSameYear(this._minDate, this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isSameMonth(this._minDate, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _canSetAmount(type: 'month' | 'year', amount = 1) {\n\t\tif (type === 'month') {\n\t\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\t\tconst startNewDate = startOfMonth(newDate);\n\t\t\tif (\n\t\t\t\t(isBefore(startNewDate, startOfMonth(this._minDate)) &&\n\t\t\t\t\t!isSameDay(startNewDate, this._minDate)) ||\n\t\t\t\tisAfter(startNewDate, endOfMonth(this._maxDate))\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (type === 'year') {\n\t\t\tlet newDate = addYears(this._viewDate, amount);\n\t\t\tconst year = getYear(newDate);\n\t\t\tif (year < getYear(this._minDate) || year > getYear(this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getAutomaticMax() {\n\t\tconst date = addYears(new Date(), 50);\n\n\t\tlet year = getYear(date);\n\t\tyear = Math.ceil(year / 10) * 10;\n\n\t\treturn setYear(date, year);\n\t}\n}\n"]}
|