@paperless/core 0.1.0-alpha.99 → 1.3.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 +3838 -0
- package/README.md +9 -1
- package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
- package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
- package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
- package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
- package/dist/assets/i18n/table-header.i18n.en.json +6 -0
- package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
- package/dist/assets/i18n/table.i18n.en.json +13 -0
- package/dist/assets/i18n/table.i18n.nl.json +13 -0
- package/dist/assets/icons/bread.svg +5 -12
- package/dist/assets/icons/camera.svg +10 -0
- package/dist/assets/icons/car.svg +5 -12
- package/dist/assets/icons/fa/building.svg +3 -0
- package/dist/assets/icons/fa/buildings.svg +3 -0
- package/dist/assets/icons/fa/piggy.svg +3 -0
- package/dist/assets/icons/filter.svg +6 -13
- package/dist/assets/icons/notification.svg +10 -0
- package/dist/assets/icons/reload.svg +10 -0
- package/dist/assets/icons/search.svg +5 -12
- package/dist/assets/illustrations/empty-state-add.svg +65 -0
- package/dist/assets/illustrations/empty-state-overview.svg +58 -0
- package/dist/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/assets/images/helper/helper-hover.svg +6 -6
- package/dist/assets/images/helper/helper.svg +2 -2
- package/dist/build/index.esm.js +2 -0
- package/dist/build/index.esm.js.map +1 -0
- package/dist/build/p-07259c61.entry.js +2 -0
- package/dist/build/p-07259c61.entry.js.map +1 -0
- package/dist/build/p-11f5c8c7.entry.js +2 -0
- package/dist/build/p-11f5c8c7.entry.js.map +1 -0
- package/dist/build/p-12171df4.entry.js +2 -0
- package/dist/build/p-12171df4.entry.js.map +1 -0
- package/dist/build/p-1630e39b.entry.js +2 -0
- package/dist/build/p-1630e39b.entry.js.map +1 -0
- package/dist/build/p-18c0dd17.entry.js +2 -0
- package/dist/build/p-18c0dd17.entry.js.map +1 -0
- package/dist/build/p-195632a8.entry.js +2 -0
- package/dist/build/p-195632a8.entry.js.map +1 -0
- package/dist/build/p-1f55126f.entry.js +2 -0
- package/dist/build/p-1f55126f.entry.js.map +1 -0
- package/dist/build/p-26da620b.entry.js +2 -0
- package/dist/build/p-26da620b.entry.js.map +1 -0
- package/dist/build/p-2a668e75.entry.js +2 -0
- package/dist/build/p-2a668e75.entry.js.map +1 -0
- package/dist/build/p-350d452b.entry.js +2 -0
- package/dist/build/p-350d452b.entry.js.map +1 -0
- package/dist/build/p-36967a97.entry.js +2 -0
- package/dist/build/p-36967a97.entry.js.map +1 -0
- package/dist/build/p-3d8b2178.entry.js +2 -0
- package/dist/build/p-3d8b2178.entry.js.map +1 -0
- package/dist/build/p-47bcc23e.entry.js +2 -0
- package/dist/build/p-47bcc23e.entry.js.map +1 -0
- package/dist/build/p-47e461b7.entry.js +2 -0
- package/dist/build/p-47e461b7.entry.js.map +1 -0
- package/dist/build/p-4c51a801.entry.js +2 -0
- package/dist/build/p-4c51a801.entry.js.map +1 -0
- package/dist/build/p-4e650fe4.js +2 -0
- package/dist/build/p-4e650fe4.js.map +1 -0
- package/dist/build/p-51408aca.entry.js +2 -0
- package/dist/build/p-51408aca.entry.js.map +1 -0
- package/dist/build/p-594b28a7.entry.js +2 -0
- package/dist/build/p-594b28a7.entry.js.map +1 -0
- package/dist/build/p-5c7b20a3.entry.js +2 -0
- package/dist/build/p-5c7b20a3.entry.js.map +1 -0
- package/dist/build/p-6124f388.entry.js +2 -0
- package/dist/build/p-6124f388.entry.js.map +1 -0
- package/dist/build/p-6c60fd3d.js +2 -0
- package/dist/build/p-6c60fd3d.js.map +1 -0
- package/dist/build/p-6ccf5cdd.js +3 -0
- package/dist/build/p-6ccf5cdd.js.map +1 -0
- package/dist/build/p-6d5aa646.entry.js +2 -0
- package/dist/build/p-6d5aa646.entry.js.map +1 -0
- package/dist/build/p-6f1352e0.entry.js +2 -0
- package/dist/build/p-6f1352e0.entry.js.map +1 -0
- package/dist/build/p-8a6728d5.js +2 -0
- package/dist/build/p-8a6728d5.js.map +1 -0
- package/dist/build/p-910bd6bc.entry.js +2 -0
- package/dist/build/p-910bd6bc.entry.js.map +1 -0
- package/dist/build/p-91725831.entry.js +2 -0
- package/dist/build/p-91725831.entry.js.map +1 -0
- package/dist/build/p-946286e2.entry.js +2 -0
- package/dist/build/p-946286e2.entry.js.map +1 -0
- package/dist/build/p-a1c1d95b.entry.js +2 -0
- package/dist/build/p-a1c1d95b.entry.js.map +1 -0
- package/dist/build/p-a23ea8fe.entry.js +2 -0
- package/dist/build/p-a23ea8fe.entry.js.map +1 -0
- package/dist/build/p-abcd80e9.entry.js +2 -0
- package/dist/build/p-abcd80e9.entry.js.map +1 -0
- package/dist/build/p-ae248aef.js +2 -0
- package/dist/build/p-ae248aef.js.map +1 -0
- package/dist/build/p-b0398d3b.entry.js +2 -0
- package/dist/build/p-b0398d3b.entry.js.map +1 -0
- package/dist/build/p-b2bc1d2a.entry.js +2 -0
- package/dist/build/p-b2bc1d2a.entry.js.map +1 -0
- package/dist/build/p-b5ce8cd4.entry.js +2 -0
- package/dist/build/p-b5ce8cd4.entry.js.map +1 -0
- package/dist/build/p-b92dd098.entry.js +2 -0
- package/dist/build/p-b92dd098.entry.js.map +1 -0
- package/dist/build/p-b9f742e0.entry.js +2 -0
- package/dist/build/p-b9f742e0.entry.js.map +1 -0
- package/dist/build/p-bf0eca4f.entry.js +2 -0
- package/dist/build/p-bf0eca4f.entry.js.map +1 -0
- package/dist/build/p-ce1abd74.entry.js +2 -0
- package/dist/build/p-ce1abd74.entry.js.map +1 -0
- package/dist/build/p-ce443f5b.entry.js +2 -0
- package/dist/build/p-ce443f5b.entry.js.map +1 -0
- package/dist/build/p-da2426c7.js +2 -0
- package/dist/build/p-da2426c7.js.map +1 -0
- package/dist/build/p-da6e5abd.entry.js +2 -0
- package/dist/build/p-da6e5abd.entry.js.map +1 -0
- package/dist/build/p-e17560e6.entry.js +2 -0
- package/dist/build/p-e17560e6.entry.js.map +1 -0
- package/dist/build/p-e1da7376.entry.js +2 -0
- package/dist/build/p-e1da7376.entry.js.map +1 -0
- package/dist/build/p-e9a1b51e.entry.js +2 -0
- package/dist/build/p-e9a1b51e.entry.js.map +1 -0
- package/dist/build/p-ec850aca.entry.js +2 -0
- package/dist/build/p-ec850aca.entry.js.map +1 -0
- package/dist/build/p-ed6edf0a.entry.js +2 -0
- package/dist/build/p-ed6edf0a.entry.js.map +1 -0
- package/dist/build/p-f47247a6.entry.js +2 -0
- package/dist/build/p-f47247a6.entry.js.map +1 -0
- package/dist/build/p-fef32402.js +2 -0
- package/dist/build/p-fef32402.js.map +1 -0
- package/dist/build/paperless.css +1 -253
- package/dist/build/paperless.esm.js +2 -1
- package/dist/build/paperless.esm.js.map +1 -0
- package/dist/cjs/child-of-e472f812.js +11 -0
- package/dist/cjs/child-of-e472f812.js.map +1 -0
- package/dist/cjs/constants-a4459ec9.js +9 -0
- package/dist/cjs/constants-a4459ec9.js.map +1 -0
- package/dist/cjs/floating-ui.dom.esm-62336770.js +1334 -0
- package/dist/cjs/floating-ui.dom.esm-62336770.js.map +1 -0
- package/dist/cjs/index-b59a0544.js +2324 -0
- package/dist/cjs/index-b59a0544.js.map +1 -0
- package/dist/cjs/{index-9d3b51c9.js → index-dfc4dfec.js} +980 -339
- package/dist/cjs/index-dfc4dfec.js.map +1 -0
- package/dist/cjs/index.cjs.js +20 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/localization-9e2ac7f3.js +62 -0
- package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
- package/dist/cjs/object-get-by-path-ee5540a5.js +19 -0
- package/dist/cjs/object-get-by-path-ee5540a5.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +5 -11
- package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/p-attachment.cjs.entry.js +39 -0
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +5 -2
- package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
- package/dist/cjs/p-avatar.cjs.entry.js +45 -0
- package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
- package/dist/cjs/p-button_3.cjs.entry.js +142 -148
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-calendar.cjs.entry.js +703 -0
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-body.cjs.entry.js +4 -5
- package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-container.cjs.entry.js +4 -8
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-card-header.cjs.entry.js +5 -5
- package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +115 -56
- package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
- package/dist/cjs/p-counter.cjs.entry.js +4 -8
- package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
- package/dist/cjs/p-datepicker.cjs.entry.js +3043 -0
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
- package/dist/cjs/p-divider.cjs.entry.js +4 -2
- package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-drawer.cjs.entry.js +65 -0
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +7 -3
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-helper_3.cjs.entry.js +150 -0
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-illustration_6.cjs.entry.js +2840 -0
- package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
- package/dist/cjs/p-info-panel.cjs.entry.js +6 -8
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/p-label_3.cjs.entry.js +65 -0
- package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-layout.cjs.entry.js +4 -5
- package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
- package/dist/cjs/p-modal.cjs.entry.js +34 -21
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navbar.cjs.entry.js +5 -9
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +8 -5
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-profile.cjs.entry.js +14 -15
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
- package/dist/cjs/p-select.cjs.entry.js +245 -0
- package/dist/cjs/p-select.cjs.entry.js.map +1 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +4 -5
- package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/p-status.cjs.entry.js +7 -5
- package/dist/cjs/p-status.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
- package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
- package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
- package/dist/cjs/p-stepper.cjs.entry.js +53 -44
- package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +11 -10
- package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +4 -5
- package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table-column.cjs.entry.js +30 -0
- package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
- package/dist/cjs/p-table.cjs.entry.js +360 -0
- package/dist/cjs/p-table.cjs.entry.js.map +1 -0
- package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
- package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
- package/dist/cjs/p-toast.cjs.entry.js +35 -0
- package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +59 -61
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/paperless.cjs.js +12 -3
- package/dist/cjs/paperless.cjs.js.map +1 -0
- package/dist/collection/assets/icons/bread.svg +5 -12
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/car.svg +5 -12
- package/dist/collection/assets/icons/fa/building.svg +3 -0
- package/dist/collection/assets/icons/fa/buildings.svg +3 -0
- package/dist/collection/assets/icons/fa/piggy.svg +3 -0
- package/dist/collection/assets/icons/filter.svg +6 -13
- package/dist/collection/assets/icons/notification.svg +10 -0
- package/dist/collection/assets/icons/reload.svg +10 -0
- package/dist/collection/assets/icons/search.svg +5 -12
- package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
- package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
- package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +6 -6
- package/dist/collection/assets/images/helper/helper.svg +2 -2
- package/dist/collection/collection-manifest.json +23 -4
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -24
- package/dist/collection/components/atoms/avatar/avatar.component.js +105 -89
- package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -18
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +37 -31
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
- package/dist/collection/components/atoms/button/button.component.css +1 -95
- package/dist/collection/components/atoms/button/button.component.js +305 -319
- package/dist/collection/components/atoms/button/button.component.js.map +1 -0
- package/dist/collection/components/atoms/card-body/card-body.component.css +1 -9
- package/dist/collection/components/atoms/card-body/card-body.component.js +35 -32
- package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +1 -17
- package/dist/collection/components/atoms/card-container/card-container.component.js +52 -52
- package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +1 -17
- package/dist/collection/components/atoms/card-header/card-header.component.js +52 -51
- package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
- package/dist/collection/components/atoms/counter/counter.component.css +1 -30
- package/dist/collection/components/atoms/counter/counter.component.js +52 -52
- package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
- package/dist/collection/components/atoms/divider/divider.component.css +1 -10
- package/dist/collection/components/atoms/divider/divider.component.js +13 -11
- package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -6
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +57 -9
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -13
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +74 -52
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
- package/dist/collection/components/atoms/helper/helper.component.css +1 -7
- package/dist/collection/components/atoms/helper/helper.component.js +39 -39
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
- package/dist/collection/components/atoms/icon/icon.component.css +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +101 -100
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
- package/dist/collection/components/atoms/illustration/illustration.component.js +30 -23
- package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +86 -89
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
- package/dist/collection/components/atoms/label/label.component.css +1 -0
- package/dist/collection/components/atoms/label/label.component.js +171 -0
- package/dist/collection/components/atoms/label/label.component.js.map +1 -0
- package/dist/collection/components/atoms/layout/layout.component.css +1 -73
- package/dist/collection/components/atoms/layout/layout.component.js +35 -38
- package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
- package/dist/collection/components/atoms/loader/loader.component.css +1 -26
- package/dist/collection/components/atoms/loader/loader.component.js +113 -114
- package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -7
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +53 -31
- package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -6
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -31
- package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -8
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +13 -36
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -16
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +56 -54
- package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -16
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +35 -32
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +13 -9
- package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +97 -90
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -7
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +34 -30
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
- package/dist/collection/components/atoms/status/status.component.css +1 -16
- package/dist/collection/components/atoms/status/status.component.js +98 -93
- package/dist/collection/components/atoms/status/status.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -59
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +104 -93
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -18
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +51 -50
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +3 -11
- package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -10
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +35 -32
- package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -43
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +255 -235
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
- package/dist/collection/components/helpers/table-column/table-column.component.js +189 -0
- package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -3
- package/dist/collection/components/molecules/accordion/accordion.component.js +103 -108
- package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js +515 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -26
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +227 -139
- package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +527 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -12
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +289 -187
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +1 -204
- package/dist/collection/components/molecules/input-group/input-group.component.js +366 -227
- package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -22
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +107 -104
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
- package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
- package/dist/collection/components/molecules/pagination/pagination.component.js +119 -94
- package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
- package/dist/collection/components/molecules/profile/profile.component.css +1 -36
- package/dist/collection/components/molecules/profile/profile.component.js +66 -68
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
- package/dist/collection/components/molecules/select/select.component.css +1 -0
- package/dist/collection/components/molecules/select/select.component.js +739 -0
- package/dist/collection/components/molecules/select/select.component.js.map +1 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +1 -12
- package/dist/collection/components/molecules/stepper/stepper.component.js +120 -85
- package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +306 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
- package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
- package/dist/collection/components/molecules/toast/toast.component.css +1 -0
- package/dist/collection/components/molecules/toast/toast.component.js +197 -0
- package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
- package/dist/collection/components/organisms/modal/modal.component.js +228 -144
- package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -56
- package/dist/collection/components/organisms/navbar/navbar.component.js +72 -81
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
- package/dist/collection/components/organisms/table/table.component.css +1 -0
- package/dist/collection/components/organisms/table/table.component.js +1300 -0
- package/dist/collection/components/organisms/table/table.component.js.map +1 -0
- package/dist/collection/index.js +3 -1
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tailwind/animation.js +72 -2
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/height.js +5 -0
- package/dist/collection/tailwind/plugins/safe-area.js +98 -0
- package/dist/collection/tailwind/screens.js +6 -6
- package/dist/collection/tailwind/shadows.js +2 -0
- package/dist/collection/tailwind/width.js +19 -13
- package/dist/collection/tailwind/z-index.js +15 -1
- package/dist/collection/tailwind.config.js +9 -2
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/table.js +4 -0
- package/dist/collection/types/table.js.map +1 -0
- package/dist/collection/types/tailwind.js +2 -0
- package/dist/collection/types/tailwind.js.map +1 -0
- package/dist/collection/utils/child-of.js +1 -0
- package/dist/collection/utils/child-of.js.map +1 -0
- package/dist/collection/utils/icons.js +13 -0
- package/dist/collection/utils/icons.js.map +1 -0
- package/dist/collection/utils/illustrations.js +7 -0
- package/dist/collection/utils/illustrations.js.map +1 -0
- package/dist/collection/utils/index.js +7 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/localization.js +56 -0
- package/dist/collection/utils/localization.js.map +1 -0
- package/dist/collection/utils/object-get-by-path.js +9 -0
- package/dist/collection/utils/object-get-by-path.js.map +1 -0
- package/dist/collection/utils/transformers.js +5 -0
- package/dist/collection/utils/transformers.js.map +1 -0
- package/dist/components/backdrop.component.js +59 -0
- package/dist/components/backdrop.component.js.map +1 -0
- package/dist/components/button.component.js +16 -33
- package/dist/components/button.component.js.map +1 -0
- package/dist/components/calendar.component.js +3031 -0
- package/dist/components/calendar.component.js.map +1 -0
- package/dist/components/child-of.js +9 -0
- package/dist/components/child-of.js.map +1 -0
- package/dist/components/counter.component.js +4 -8
- package/dist/components/counter.component.js.map +1 -0
- package/dist/components/divider.component.js +4 -2
- package/dist/components/divider.component.js.map +1 -0
- package/dist/components/drawer-body.component.js +35 -0
- package/dist/components/drawer-body.component.js.map +1 -0
- package/dist/components/drawer-container.component.js +34 -0
- package/dist/components/drawer-container.component.js.map +1 -0
- package/dist/components/drawer-header.component.js +54 -0
- package/dist/components/drawer-header.component.js.map +1 -0
- package/dist/components/dropdown-menu-container.component.js +11 -4
- package/dist/components/dropdown-menu-container.component.js.map +1 -0
- package/dist/components/dropdown-menu-item.component.js +45 -0
- package/dist/components/dropdown-menu-item.component.js.map +1 -0
- package/dist/components/dropdown.component.js +77 -72
- package/dist/components/dropdown.component.js.map +1 -0
- package/dist/components/floating-ui.dom.esm.js +1327 -0
- package/dist/components/floating-ui.dom.esm.js.map +1 -0
- package/dist/components/helper.component.js +4 -5
- package/dist/components/helper.component.js.map +1 -0
- package/dist/components/icon.component.js +77 -60
- package/dist/components/icon.component.js.map +1 -0
- package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +247 -16
- package/dist/components/illustration.component.js.map +1 -0
- package/dist/components/index.d.ts +9 -45
- package/dist/components/index.js +13 -43
- package/dist/components/index.js.map +1 -0
- package/dist/components/input-error.component.js +50 -0
- package/dist/components/input-error.component.js.map +1 -0
- package/dist/components/input-group.component.js +172 -0
- package/dist/components/input-group.component.js.map +1 -0
- package/dist/components/label.component.js +54 -0
- package/dist/components/label.component.js.map +1 -0
- package/dist/components/loader.component.js +12 -14
- package/dist/components/loader.component.js.map +1 -0
- package/dist/components/localization.js +59 -0
- package/dist/components/localization.js.map +1 -0
- package/dist/components/modal-body.component.js +8 -7
- package/dist/components/modal-body.component.js.map +1 -0
- package/dist/components/modal-container.component.js +8 -7
- package/dist/components/modal-container.component.js.map +1 -0
- package/dist/components/modal-footer.component.js +6 -10
- package/dist/components/modal-footer.component.js.map +1 -0
- package/dist/components/modal-header.component.js +21 -10
- package/dist/components/modal-header.component.js.map +1 -0
- package/dist/components/object-get-by-path.js +16 -0
- package/dist/components/object-get-by-path.js.map +1 -0
- package/dist/components/p-accordion.js +5 -11
- package/dist/components/p-accordion.js.map +1 -0
- package/dist/components/{p-modal-backdrop.d.ts → p-attachment.d.ts} +4 -4
- package/dist/components/p-attachment.js +88 -0
- package/dist/components/p-attachment.js.map +1 -0
- package/dist/components/p-avatar-group.js +5 -2
- package/dist/components/p-avatar-group.js.map +1 -0
- package/dist/components/p-avatar.js +59 -1
- package/dist/components/p-avatar.js.map +1 -0
- package/dist/components/p-backdrop.d.ts +11 -0
- package/dist/components/p-backdrop.js +8 -0
- package/dist/components/p-backdrop.js.map +1 -0
- package/dist/components/p-button.js +2 -0
- package/dist/components/p-button.js.map +1 -0
- package/dist/components/p-calendar.d.ts +11 -0
- package/dist/components/p-calendar.js +8 -0
- package/dist/components/p-calendar.js.map +1 -0
- package/dist/components/p-card-body.js +4 -5
- package/dist/components/p-card-body.js.map +1 -0
- package/dist/components/p-card-container.js +4 -8
- package/dist/components/p-card-container.js.map +1 -0
- package/dist/components/p-card-header.js +5 -5
- package/dist/components/p-card-header.js.map +1 -0
- package/dist/components/p-content-slider.js +117 -57
- package/dist/components/p-content-slider.js.map +1 -0
- package/dist/components/p-counter.js +2 -0
- package/dist/components/p-counter.js.map +1 -0
- package/dist/components/p-datepicker.d.ts +11 -0
- package/dist/components/p-datepicker.js +3125 -0
- package/dist/components/p-datepicker.js.map +1 -0
- package/dist/components/p-divider.js +2 -0
- package/dist/components/p-divider.js.map +1 -0
- package/dist/components/p-drawer-body.d.ts +11 -0
- package/dist/components/p-drawer-body.js +8 -0
- package/dist/components/p-drawer-body.js.map +1 -0
- package/dist/components/p-drawer-container.d.ts +11 -0
- package/dist/components/p-drawer-container.js +8 -0
- package/dist/components/p-drawer-container.js.map +1 -0
- package/dist/components/p-drawer-header.d.ts +11 -0
- package/dist/components/p-drawer-header.js +8 -0
- package/dist/components/p-drawer-header.js.map +1 -0
- package/dist/components/p-drawer.d.ts +11 -0
- package/dist/components/p-drawer.js +130 -0
- package/dist/components/p-drawer.js.map +1 -0
- package/dist/components/p-dropdown-menu-container.js +2 -0
- package/dist/components/p-dropdown-menu-container.js.map +1 -0
- package/dist/components/p-dropdown-menu-item.js +3 -41
- package/dist/components/p-dropdown-menu-item.js.map +1 -0
- package/dist/components/p-dropdown.js +2 -0
- package/dist/components/p-dropdown.js.map +1 -0
- package/dist/components/p-helper.js +2 -0
- package/dist/components/p-helper.js.map +1 -0
- package/dist/components/p-icon.js +2 -0
- package/dist/components/p-icon.js.map +1 -0
- package/dist/components/p-illustration.js +3 -1435
- package/dist/components/p-illustration.js.map +1 -0
- package/dist/components/p-info-panel.js +6 -8
- package/dist/components/p-info-panel.js.map +1 -0
- package/dist/components/p-input-error.d.ts +11 -0
- package/dist/components/p-input-error.js +8 -0
- package/dist/components/p-input-error.js.map +1 -0
- package/dist/components/p-input-group.js +3 -91
- package/dist/components/p-input-group.js.map +1 -0
- package/dist/components/{p-tag.d.ts → p-label.d.ts} +4 -4
- package/dist/components/p-label.js +8 -0
- package/dist/components/p-label.js.map +1 -0
- package/dist/components/p-layout.js +4 -5
- package/dist/components/p-layout.js.map +1 -0
- package/dist/components/p-loader.js +2 -0
- package/dist/components/p-loader.js.map +1 -0
- package/dist/components/p-modal-body.js +2 -0
- package/dist/components/p-modal-body.js.map +1 -0
- package/dist/components/p-modal-container.js +2 -0
- package/dist/components/p-modal-container.js.map +1 -0
- package/dist/components/p-modal-footer.js +2 -0
- package/dist/components/p-modal-footer.js.map +1 -0
- package/dist/components/p-modal-header.js +2 -0
- package/dist/components/p-modal-header.js.map +1 -0
- package/dist/components/p-modal.js +55 -26
- package/dist/components/p-modal.js.map +1 -0
- package/dist/components/p-navbar.js +12 -10
- package/dist/components/p-navbar.js.map +1 -0
- package/dist/components/p-navigation-item.js +8 -5
- package/dist/components/p-navigation-item.js.map +1 -0
- package/dist/components/p-page-size-select.d.ts +11 -0
- package/dist/components/p-page-size-select.js +8 -0
- package/dist/components/p-page-size-select.js.map +1 -0
- package/dist/components/p-pagination-item.js +2 -0
- package/dist/components/p-pagination-item.js.map +1 -0
- package/dist/components/p-pagination.js +3 -195
- package/dist/components/p-pagination.js.map +1 -0
- package/dist/components/p-profile.js +15 -22
- package/dist/components/p-profile.js.map +1 -0
- package/dist/components/p-segment-container.js +3 -27
- package/dist/components/p-segment-container.js.map +1 -0
- package/dist/components/p-segment-item.js +3 -49
- package/dist/components/p-segment-item.js.map +1 -0
- package/dist/components/p-select.d.ts +11 -0
- package/dist/components/p-select.js +340 -0
- package/dist/components/p-select.js.map +1 -0
- package/dist/components/p-slider-indicator.js +2 -0
- package/dist/components/p-slider-indicator.js.map +1 -0
- package/dist/components/p-status.js +7 -5
- package/dist/components/p-status.js.map +1 -0
- package/dist/components/p-stepper-item.js +47 -1
- package/dist/components/p-stepper-item.js.map +1 -0
- package/dist/components/p-stepper-line.js +2 -0
- package/dist/components/p-stepper-line.js.map +1 -0
- package/dist/components/p-stepper.js +56 -58
- package/dist/components/p-stepper.js.map +1 -0
- package/dist/components/p-tab-group.js +4 -5
- package/dist/components/p-tab-group.js.map +1 -0
- package/dist/components/p-tab-item.js +4 -5
- package/dist/components/p-tab-item.js.map +1 -0
- package/dist/components/p-table-cell.d.ts +11 -0
- package/dist/components/p-table-cell.js +8 -0
- package/dist/components/p-table-cell.js.map +1 -0
- package/dist/components/p-table-column.d.ts +11 -0
- package/dist/components/p-table-column.js +52 -0
- package/dist/components/p-table-column.js.map +1 -0
- package/dist/components/p-table-container.d.ts +11 -0
- package/dist/components/p-table-container.js +8 -0
- package/dist/components/p-table-container.js.map +1 -0
- package/dist/components/p-table-footer.d.ts +11 -0
- package/dist/components/p-table-footer.js +8 -0
- package/dist/components/p-table-footer.js.map +1 -0
- package/dist/components/p-table-header.d.ts +11 -0
- package/dist/components/p-table-header.js +8 -0
- package/dist/components/p-table-header.js.map +1 -0
- package/dist/components/p-table-row.d.ts +11 -0
- package/dist/components/p-table-row.js +8 -0
- package/dist/components/p-table-row.js.map +1 -0
- package/dist/components/p-table.d.ts +11 -0
- package/dist/components/p-table.js +552 -0
- package/dist/components/p-table.js.map +1 -0
- package/dist/components/p-toast-container.d.ts +11 -0
- package/dist/components/p-toast-container.js +38 -0
- package/dist/components/p-toast-container.js.map +1 -0
- package/dist/components/p-toast.d.ts +11 -0
- package/dist/components/p-toast.js +75 -0
- package/dist/components/p-toast.js.map +1 -0
- package/dist/components/p-tooltip.js +2 -0
- package/dist/components/p-tooltip.js.map +1 -0
- package/dist/components/page-size-select.component.js +107 -0
- package/dist/components/page-size-select.component.js.map +1 -0
- package/dist/components/pagination-item.component.js +4 -5
- package/dist/components/pagination-item.component.js.map +1 -0
- package/dist/components/pagination.component.js +196 -0
- package/dist/components/pagination.component.js.map +1 -0
- package/dist/components/segment-container.component.js +31 -0
- package/dist/components/segment-container.component.js.map +1 -0
- package/dist/components/segment-item.component.js +53 -0
- package/dist/components/segment-item.component.js.map +1 -0
- package/dist/components/slider-indicator.component.js +4 -5
- package/dist/components/slider-indicator.component.js.map +1 -0
- package/dist/components/stepper-line.component.js +4 -8
- package/dist/components/stepper-line.component.js.map +1 -0
- package/dist/components/table-cell.component.js +179 -0
- package/dist/components/table-cell.component.js.map +1 -0
- package/dist/components/table-container.component.js +32 -0
- package/dist/components/table-container.component.js.map +1 -0
- package/dist/components/table-footer.component.js +129 -0
- package/dist/components/table-footer.component.js.map +1 -0
- package/dist/components/table-header.component.js +1070 -0
- package/dist/components/table-header.component.js.map +1 -0
- package/dist/components/table-row.component.js +45 -0
- package/dist/components/table-row.component.js.map +1 -0
- package/dist/components/tooltip.component.js +60 -61
- package/dist/components/tooltip.component.js.map +1 -0
- package/dist/esm/child-of-90a8c4b5.js +9 -0
- package/dist/esm/child-of-90a8c4b5.js.map +1 -0
- package/dist/esm/constants-826f9460.js +6 -0
- package/dist/esm/constants-826f9460.js.map +1 -0
- package/dist/esm/floating-ui.dom.esm-314a52b2.js +1327 -0
- package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +1 -0
- package/dist/esm/{index-9062156b.js → index-2c1bdb40.js} +980 -340
- package/dist/esm/index-2c1bdb40.js.map +1 -0
- package/dist/esm/index-934ac6da.js +2300 -0
- package/dist/esm/index-934ac6da.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/localization-901dc2d3.js +59 -0
- package/dist/esm/localization-901dc2d3.js.map +1 -0
- package/dist/esm/object-get-by-path-8f4f94b8.js +16 -0
- package/dist/esm/object-get-by-path-8f4f94b8.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +5 -11
- package/dist/esm/p-accordion.entry.js.map +1 -0
- package/dist/esm/p-attachment.entry.js +35 -0
- package/dist/esm/p-attachment.entry.js.map +1 -0
- package/dist/esm/p-avatar-group.entry.js +5 -2
- package/dist/esm/p-avatar-group.entry.js.map +1 -0
- package/dist/esm/p-avatar.entry.js +41 -0
- package/dist/esm/p-avatar.entry.js.map +1 -0
- package/dist/esm/p-backdrop.entry.js +39 -0
- package/dist/esm/p-backdrop.entry.js.map +1 -0
- package/dist/esm/p-button_3.entry.js +142 -148
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-calendar.entry.js +699 -0
- package/dist/esm/p-calendar.entry.js.map +1 -0
- package/dist/esm/p-card-body.entry.js +4 -5
- package/dist/esm/p-card-body.entry.js.map +1 -0
- package/dist/esm/p-card-container.entry.js +4 -8
- package/dist/esm/p-card-container.entry.js.map +1 -0
- package/dist/esm/p-card-header.entry.js +5 -5
- package/dist/esm/p-card-header.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +115 -56
- package/dist/esm/p-content-slider.entry.js.map +1 -0
- package/dist/esm/p-counter.entry.js +4 -8
- package/dist/esm/p-counter.entry.js.map +1 -0
- package/dist/esm/p-datepicker.entry.js +3039 -0
- package/dist/esm/p-datepicker.entry.js.map +1 -0
- package/dist/esm/p-divider.entry.js +4 -2
- package/dist/esm/p-divider.entry.js.map +1 -0
- package/dist/esm/p-drawer-body_3.entry.js +45 -0
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
- package/dist/esm/p-drawer.entry.js +61 -0
- package/dist/esm/p-drawer.entry.js.map +1 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +7 -3
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
- package/dist/esm/p-dropdown_2.entry.js +158 -0
- package/dist/esm/p-dropdown_2.entry.js.map +1 -0
- package/dist/esm/p-helper_3.entry.js +144 -0
- package/dist/esm/p-helper_3.entry.js.map +1 -0
- package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1417 -8
- package/dist/esm/p-illustration_6.entry.js.map +1 -0
- package/dist/esm/p-info-panel.entry.js +6 -8
- package/dist/esm/p-info-panel.entry.js.map +1 -0
- package/dist/esm/p-label_3.entry.js +59 -0
- package/dist/esm/p-label_3.entry.js.map +1 -0
- package/dist/esm/p-layout.entry.js +4 -5
- package/dist/esm/p-layout.entry.js.map +1 -0
- package/dist/esm/p-modal-body_4.entry.js +72 -0
- package/dist/esm/p-modal-body_4.entry.js.map +1 -0
- package/dist/esm/p-modal.entry.js +34 -21
- package/dist/esm/p-modal.entry.js.map +1 -0
- package/dist/esm/p-navbar.entry.js +5 -9
- package/dist/esm/p-navbar.entry.js.map +1 -0
- package/dist/esm/p-navigation-item.entry.js +8 -5
- package/dist/esm/p-navigation-item.entry.js.map +1 -0
- package/dist/esm/p-page-size-select_3.entry.js +218 -0
- package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
- package/dist/esm/p-profile.entry.js +14 -15
- package/dist/esm/p-profile.entry.js.map +1 -0
- package/dist/esm/p-select.entry.js +241 -0
- package/dist/esm/p-select.entry.js.map +1 -0
- package/dist/esm/p-slider-indicator.entry.js +4 -5
- package/dist/esm/p-slider-indicator.entry.js.map +1 -0
- package/dist/esm/p-status.entry.js +7 -5
- package/dist/esm/p-status.entry.js.map +1 -0
- package/dist/esm/p-stepper-item.entry.js +22 -0
- package/dist/esm/p-stepper-item.entry.js.map +1 -0
- package/dist/esm/p-stepper-line.entry.js +19 -0
- package/dist/esm/p-stepper-line.entry.js.map +1 -0
- package/dist/esm/p-stepper.entry.js +53 -44
- package/dist/esm/p-stepper.entry.js.map +1 -0
- package/dist/esm/p-tab-group.entry.js +11 -10
- package/dist/esm/p-tab-group.entry.js.map +1 -0
- package/dist/esm/p-tab-item.entry.js +4 -5
- package/dist/esm/p-tab-item.entry.js.map +1 -0
- package/dist/esm/p-table-column.entry.js +26 -0
- package/dist/esm/p-table-column.entry.js.map +1 -0
- package/dist/esm/p-table.entry.js +356 -0
- package/dist/esm/p-table.entry.js.map +1 -0
- package/dist/esm/p-toast-container.entry.js +18 -0
- package/dist/esm/p-toast-container.entry.js.map +1 -0
- package/dist/esm/p-toast.entry.js +31 -0
- package/dist/esm/p-toast.entry.js.map +1 -0
- package/dist/esm/p-tooltip.entry.js +59 -61
- package/dist/esm/p-tooltip.entry.js.map +1 -0
- package/dist/esm/paperless.js +9 -3
- package/dist/esm/paperless.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +2 -0
- package/dist/paperless/index.esm.js.map +1 -0
- package/dist/paperless/p-07259c61.entry.js +2 -0
- package/dist/paperless/p-07259c61.entry.js.map +1 -0
- package/dist/paperless/p-11f5c8c7.entry.js +2 -0
- package/dist/paperless/p-11f5c8c7.entry.js.map +1 -0
- package/dist/paperless/p-12171df4.entry.js +2 -0
- package/dist/paperless/p-12171df4.entry.js.map +1 -0
- package/dist/paperless/p-1630e39b.entry.js +2 -0
- package/dist/paperless/p-1630e39b.entry.js.map +1 -0
- package/dist/paperless/p-18c0dd17.entry.js +2 -0
- package/dist/paperless/p-18c0dd17.entry.js.map +1 -0
- package/dist/paperless/p-195632a8.entry.js +2 -0
- package/dist/paperless/p-195632a8.entry.js.map +1 -0
- package/dist/paperless/p-1f55126f.entry.js +2 -0
- package/dist/paperless/p-1f55126f.entry.js.map +1 -0
- package/dist/paperless/p-26da620b.entry.js +2 -0
- package/dist/paperless/p-26da620b.entry.js.map +1 -0
- package/dist/paperless/p-2a668e75.entry.js +2 -0
- package/dist/paperless/p-2a668e75.entry.js.map +1 -0
- package/dist/paperless/p-350d452b.entry.js +2 -0
- package/dist/paperless/p-350d452b.entry.js.map +1 -0
- package/dist/paperless/p-36967a97.entry.js +2 -0
- package/dist/paperless/p-36967a97.entry.js.map +1 -0
- package/dist/paperless/p-3d8b2178.entry.js +2 -0
- package/dist/paperless/p-3d8b2178.entry.js.map +1 -0
- package/dist/paperless/p-47bcc23e.entry.js +2 -0
- package/dist/paperless/p-47bcc23e.entry.js.map +1 -0
- package/dist/paperless/p-47e461b7.entry.js +2 -0
- package/dist/paperless/p-47e461b7.entry.js.map +1 -0
- package/dist/paperless/p-4c51a801.entry.js +2 -0
- package/dist/paperless/p-4c51a801.entry.js.map +1 -0
- package/dist/paperless/p-4e650fe4.js +2 -0
- package/dist/paperless/p-4e650fe4.js.map +1 -0
- package/dist/paperless/p-51408aca.entry.js +2 -0
- package/dist/paperless/p-51408aca.entry.js.map +1 -0
- package/dist/paperless/p-594b28a7.entry.js +2 -0
- package/dist/paperless/p-594b28a7.entry.js.map +1 -0
- package/dist/paperless/p-5c7b20a3.entry.js +2 -0
- package/dist/paperless/p-5c7b20a3.entry.js.map +1 -0
- package/dist/paperless/p-6124f388.entry.js +2 -0
- package/dist/paperless/p-6124f388.entry.js.map +1 -0
- package/dist/paperless/p-6c60fd3d.js +2 -0
- package/dist/paperless/p-6c60fd3d.js.map +1 -0
- package/dist/paperless/p-6ccf5cdd.js +3 -0
- package/dist/paperless/p-6ccf5cdd.js.map +1 -0
- package/dist/paperless/p-6d5aa646.entry.js +2 -0
- package/dist/paperless/p-6d5aa646.entry.js.map +1 -0
- package/dist/paperless/p-6f1352e0.entry.js +2 -0
- package/dist/paperless/p-6f1352e0.entry.js.map +1 -0
- package/dist/paperless/p-8a6728d5.js +2 -0
- package/dist/paperless/p-8a6728d5.js.map +1 -0
- package/dist/paperless/p-910bd6bc.entry.js +2 -0
- package/dist/paperless/p-910bd6bc.entry.js.map +1 -0
- package/dist/paperless/p-91725831.entry.js +2 -0
- package/dist/paperless/p-91725831.entry.js.map +1 -0
- package/dist/paperless/p-946286e2.entry.js +2 -0
- package/dist/paperless/p-946286e2.entry.js.map +1 -0
- package/dist/paperless/p-a1c1d95b.entry.js +2 -0
- package/dist/paperless/p-a1c1d95b.entry.js.map +1 -0
- package/dist/paperless/p-a23ea8fe.entry.js +2 -0
- package/dist/paperless/p-a23ea8fe.entry.js.map +1 -0
- package/dist/paperless/p-abcd80e9.entry.js +2 -0
- package/dist/paperless/p-abcd80e9.entry.js.map +1 -0
- package/dist/paperless/p-ae248aef.js +2 -0
- package/dist/paperless/p-ae248aef.js.map +1 -0
- package/dist/paperless/p-b0398d3b.entry.js +2 -0
- package/dist/paperless/p-b0398d3b.entry.js.map +1 -0
- package/dist/paperless/p-b2bc1d2a.entry.js +2 -0
- package/dist/paperless/p-b2bc1d2a.entry.js.map +1 -0
- package/dist/paperless/p-b5ce8cd4.entry.js +2 -0
- package/dist/paperless/p-b5ce8cd4.entry.js.map +1 -0
- package/dist/paperless/p-b92dd098.entry.js +2 -0
- package/dist/paperless/p-b92dd098.entry.js.map +1 -0
- package/dist/paperless/p-b9f742e0.entry.js +2 -0
- package/dist/paperless/p-b9f742e0.entry.js.map +1 -0
- package/dist/paperless/p-bf0eca4f.entry.js +2 -0
- package/dist/paperless/p-bf0eca4f.entry.js.map +1 -0
- package/dist/paperless/p-ce1abd74.entry.js +2 -0
- package/dist/paperless/p-ce1abd74.entry.js.map +1 -0
- package/dist/paperless/p-ce443f5b.entry.js +2 -0
- package/dist/paperless/p-ce443f5b.entry.js.map +1 -0
- package/dist/paperless/p-da2426c7.js +2 -0
- package/dist/paperless/p-da2426c7.js.map +1 -0
- package/dist/paperless/p-da6e5abd.entry.js +2 -0
- package/dist/paperless/p-da6e5abd.entry.js.map +1 -0
- package/dist/paperless/p-e17560e6.entry.js +2 -0
- package/dist/paperless/p-e17560e6.entry.js.map +1 -0
- package/dist/paperless/p-e1da7376.entry.js +2 -0
- package/dist/paperless/p-e1da7376.entry.js.map +1 -0
- package/dist/paperless/p-e9a1b51e.entry.js +2 -0
- package/dist/paperless/p-e9a1b51e.entry.js.map +1 -0
- package/dist/paperless/p-ec850aca.entry.js +2 -0
- package/dist/paperless/p-ec850aca.entry.js.map +1 -0
- package/dist/paperless/p-ed6edf0a.entry.js +2 -0
- package/dist/paperless/p-ed6edf0a.entry.js.map +1 -0
- package/dist/paperless/p-f47247a6.entry.js +2 -0
- package/dist/paperless/p-f47247a6.entry.js.map +1 -0
- package/dist/paperless/p-fef32402.js +2 -0
- package/dist/paperless/p-fef32402.js.map +1 -0
- package/dist/paperless/paperless.css +1003 -801
- package/dist/paperless/paperless.esm.js +2 -1
- package/dist/paperless/paperless.esm.js.map +1 -0
- package/dist/style/_fonts.scss +70 -0
- package/dist/style/_helpers.scss +5 -0
- package/dist/style/_mixins.scss +1 -0
- package/dist/style/_reset.scss +30 -0
- package/dist/style/_tailwind.scss +3 -0
- package/dist/style/_typograhpy.scss +29 -0
- package/dist/style/_variables.scss +2 -0
- package/dist/style/form/_checkbox.scss +111 -0
- package/dist/style/form/_input.scss +31 -0
- package/dist/style/form/_mixins.scss +114 -0
- package/dist/style/form/_radio.scss +58 -0
- package/dist/style/form/_textarea.scss +18 -0
- package/dist/style/form/index.scss +4 -0
- package/dist/style/mixins/_scrollbar.scss +32 -0
- package/dist/style/paperless.scss +12 -0
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/animation.js +72 -2
- package/dist/tailwind/border-radius.js +1 -0
- package/dist/tailwind/height.js +5 -0
- package/dist/tailwind/plugins/safe-area.js +98 -0
- package/dist/tailwind/screens.js +6 -6
- package/dist/tailwind/shadows.js +2 -0
- package/dist/tailwind/width.js +19 -13
- package/dist/tailwind/z-index.js +15 -1
- package/dist/tailwind.config.js +9 -2
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
- package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
- package/dist/types/components/atoms/button/button.component.d.ts +5 -5
- package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +8 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +4 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +1 -1
- package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
- package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
- package/dist/types/components/atoms/label/label.component.d.ts +33 -0
- package/dist/types/components/atoms/layout/layout.component.d.ts +1 -1
- package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +4 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +4 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +0 -4
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +1 -1
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
- package/dist/types/components/atoms/status/status.component.d.ts +1 -1
- package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +4 -0
- package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
- package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +10 -5
- package/dist/types/components/helpers/table-column/table-column.component.d.ts +42 -0
- package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
- package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +14 -5
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +97 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +29 -6
- package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +22 -3
- package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
- package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
- package/dist/types/components/molecules/profile/profile.component.d.ts +2 -1
- package/dist/types/components/molecules/select/select.component.d.ts +141 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +5 -2
- package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
- package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
- package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
- package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
- package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +24 -4
- package/dist/types/components/organisms/table/table.component.d.ts +240 -0
- package/dist/types/components.d.ts +2508 -535
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +92 -19
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +29 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/icons.d.ts +6 -0
- package/dist/types/utils/illustrations.d.ts +3 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/localization.d.ts +2 -0
- package/dist/types/utils/object-get-by-path.d.ts +1 -0
- package/dist/types/utils/transformers.d.ts +2 -0
- package/dist/{workbox-5fe694da.js → workbox-bc53c9ad.js} +2 -2
- package/dist/workbox-bc53c9ad.js.map +1 -0
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +21136 -0
- package/hydrate/package.json +6 -0
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +24 -18
- package/dist/build/p-113baa35.entry.js +0 -1
- package/dist/build/p-1e7d45e4.entry.js +0 -1
- package/dist/build/p-1ef22f4e.entry.js +0 -1
- package/dist/build/p-2672f14b.entry.js +0 -1
- package/dist/build/p-2beaf0e8.entry.js +0 -1
- package/dist/build/p-3f6c9d44.entry.js +0 -1
- package/dist/build/p-4336cbbc.entry.js +0 -1
- package/dist/build/p-58ce5668.entry.js +0 -1
- package/dist/build/p-6088647a.entry.js +0 -1
- package/dist/build/p-6835a9e3.entry.js +0 -1
- package/dist/build/p-6e778574.entry.js +0 -1
- package/dist/build/p-79d3258f.entry.js +0 -1
- package/dist/build/p-801d05b6.entry.js +0 -1
- package/dist/build/p-829c4101.entry.js +0 -1
- package/dist/build/p-89fda3a8.entry.js +0 -1
- package/dist/build/p-8ac8a69d.entry.js +0 -1
- package/dist/build/p-8b743795.entry.js +0 -1
- package/dist/build/p-92b6c76c.entry.js +0 -1
- package/dist/build/p-938f52ee.entry.js +0 -1
- package/dist/build/p-9d98d0d9.entry.js +0 -1
- package/dist/build/p-a5ebbd0c.entry.js +0 -1
- package/dist/build/p-a6127c75.entry.js +0 -1
- package/dist/build/p-a7086ffa.js +0 -1
- package/dist/build/p-aa14483b.entry.js +0 -1
- package/dist/build/p-bc7e8cc4.js +0 -2
- package/dist/build/p-bd50db3d.entry.js +0 -1
- package/dist/build/p-c27046e6.entry.js +0 -1
- package/dist/build/p-c59d9fc2.entry.js +0 -1
- package/dist/build/p-cc177072.entry.js +0 -1
- package/dist/build/p-d32f2578.entry.js +0 -1
- package/dist/build/p-e20a1842.entry.js +0 -1
- package/dist/build/p-e2a98d53.entry.js +0 -1
- package/dist/build/p-e934ef94.entry.js +0 -1
- package/dist/build/p-e9e20ac3.entry.js +0 -1
- package/dist/build/p-ec2a5f95.entry.js +0 -1
- package/dist/build/p-ede5e914.entry.js +0 -1
- package/dist/cjs/p-avatar_2.cjs.entry.js +0 -179
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
- package/dist/cjs/p-helper.cjs.entry.js +0 -23
- package/dist/cjs/p-input-group.cjs.entry.js +0 -51
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +0 -101
- package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
- package/dist/cjs/p-pagination.cjs.entry.js +0 -171
- package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
- package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +0 -56
- package/dist/cjs/p-tag.cjs.entry.js +0 -27
- package/dist/cjs/popper-e0c4ed4c.js +0 -1790
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +0 -7
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +0 -15
- package/dist/collection/components/atoms/tab-group/tab-group.component.css +0 -9
- package/dist/collection/components/atoms/tag/tag.component.css +0 -51
- package/dist/collection/components/atoms/tag/tag.component.js +0 -64
- package/dist/collection/utils/types.js +0 -1
- package/dist/collection/utils/utils.js +0 -3
- package/dist/components/avatar.component.js +0 -54
- package/dist/components/modal-backdrop.component.js +0 -30
- package/dist/components/p-modal-backdrop.js +0 -6
- package/dist/components/p-tag.js +0 -44
- package/dist/components/popper.js +0 -1788
- package/dist/components/stepper-item.component.js +0 -57
- package/dist/esm/p-avatar_2.entry.js +0 -174
- package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
- package/dist/esm/p-helper.entry.js +0 -19
- package/dist/esm/p-input-group.entry.js +0 -47
- package/dist/esm/p-modal-backdrop_5.entry.js +0 -93
- package/dist/esm/p-pagination-item.entry.js +0 -19
- package/dist/esm/p-pagination.entry.js +0 -167
- package/dist/esm/p-segment-container.entry.js +0 -15
- package/dist/esm/p-segment-item.entry.js +0 -25
- package/dist/esm/p-stepper-item_2.entry.js +0 -51
- package/dist/esm/p-tag.entry.js +0 -23
- package/dist/esm/popper-41c6f9cd.js +0 -1788
- package/dist/paperless/p-113baa35.entry.js +0 -1
- package/dist/paperless/p-1e7d45e4.entry.js +0 -1
- package/dist/paperless/p-1ef22f4e.entry.js +0 -1
- package/dist/paperless/p-2672f14b.entry.js +0 -1
- package/dist/paperless/p-2beaf0e8.entry.js +0 -1
- package/dist/paperless/p-3f6c9d44.entry.js +0 -1
- package/dist/paperless/p-4336cbbc.entry.js +0 -1
- package/dist/paperless/p-58ce5668.entry.js +0 -1
- package/dist/paperless/p-6088647a.entry.js +0 -1
- package/dist/paperless/p-6835a9e3.entry.js +0 -1
- package/dist/paperless/p-6e778574.entry.js +0 -1
- package/dist/paperless/p-79d3258f.entry.js +0 -1
- package/dist/paperless/p-801d05b6.entry.js +0 -1
- package/dist/paperless/p-829c4101.entry.js +0 -1
- package/dist/paperless/p-89fda3a8.entry.js +0 -1
- package/dist/paperless/p-8ac8a69d.entry.js +0 -1
- package/dist/paperless/p-8b743795.entry.js +0 -1
- package/dist/paperless/p-92b6c76c.entry.js +0 -1
- package/dist/paperless/p-938f52ee.entry.js +0 -1
- package/dist/paperless/p-9d98d0d9.entry.js +0 -1
- package/dist/paperless/p-a5ebbd0c.entry.js +0 -1
- package/dist/paperless/p-a6127c75.entry.js +0 -1
- package/dist/paperless/p-a7086ffa.js +0 -1
- package/dist/paperless/p-aa14483b.entry.js +0 -1
- package/dist/paperless/p-bc7e8cc4.js +0 -2
- package/dist/paperless/p-bd50db3d.entry.js +0 -1
- package/dist/paperless/p-c27046e6.entry.js +0 -1
- package/dist/paperless/p-c59d9fc2.entry.js +0 -1
- package/dist/paperless/p-cc177072.entry.js +0 -1
- package/dist/paperless/p-d32f2578.entry.js +0 -1
- package/dist/paperless/p-e20a1842.entry.js +0 -1
- package/dist/paperless/p-e2a98d53.entry.js +0 -1
- package/dist/paperless/p-e934ef94.entry.js +0 -1
- package/dist/paperless/p-e9e20ac3.entry.js +0 -1
- package/dist/paperless/p-ec2a5f95.entry.js +0 -1
- package/dist/paperless/p-ede5e914.entry.js +0 -1
- package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +0 -3
- package/dist/types/components/atoms/tag/tag.component.d.ts +0 -11
- package/dist/types/utils/types.d.ts +0 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/workbox-5fe694da.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.relative{position:relative!important}.block{display:block!important}.flex{display:flex!important}.grid{display:grid!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-\[12rem\]{height:12rem!important}.h-auto{height:auto!important}.h-full{height:100%!important}.min-h-\[12rem\]{min-height:12rem!important}.w-6{width:1.5rem!important}.w-\[14rem\]{width:14rem!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.self-center{align-self:center!important}.justify-self-center{justify-self:center!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-indigo-light{--tw-border-opacity:1!important;border-color:rgb(241 246 255/var(--tw-border-opacity))!important}.bg-indigo-light{background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.bg-indigo-light,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-indigo{color:rgb(82 138 250/var(--tw-text-opacity))!important}.text-indigo,.text-storm{--tw-text-opacity:1!important}.text-storm{color:rgb(81 83 107/var(--tw-text-opacity))!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}.opacity-40{opacity:.4!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));display:block;padding:.5rem;width:14rem}:host .view-day,:host .view-month,:host .view-year{display:flex;flex-direction:column;gap:.5rem;height:12rem;width:100%}:host .header{align-items:center;display:flex;font-size:1rem;gap:.25rem;justify-content:space-between;line-height:1.5rem;width:100%}:host .header span{--tw-text-opacity:1;border-radius:.25rem;color:rgb(81 83 107/var(--tw-text-opacity));cursor:pointer;height:2rem;padding-left:.5rem;padding-right:.5rem}:host .header span.disabled{cursor:default}:host .header span:hover:not(.disabled){--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity))}:host .header span.year{font-weight:600}:host .header .nav{--tw-text-opacity:1;align-items:center;border-radius:100%;color:rgb(82 138 250/var(--tw-text-opacity));cursor:pointer;display:flex;height:1.5rem;justify-content:center;position:relative;text-decoration-line:none;transition-duration:.2s;width:1.5rem}:host .header .nav:hover:not(.disabled){--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity))}:host .header .nav.disabled{opacity:0}:host .view-day{height:auto;min-height:12rem}:host .view-day .dates{display:grid;gap:.25rem;grid-template-columns:repeat(7,1fr)}:host .view-day .dates>span{--tw-text-opacity:1;align-self:center;color:rgb(128 130 158/var(--tw-text-opacity));font-size:.75rem;font-weight:600;justify-self:center;line-height:1rem;text-align:center;width:1.5rem}:host .view-day .dates>time{--tw-text-opacity:1;align-items:center;align-self:center;border:1px solid transparent;border-radius:100%;box-sizing:border-box;color:rgb(81 83 107/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;height:1.5rem;justify-content:center;justify-self:center;line-height:1.25rem;transition-duration:.2s;width:1.5rem}:host .view-day .dates>time.current{--tw-border-opacity:1;border-color:rgb(176 178 203/var(--tw-border-opacity))}:host .view-day .dates>time.active{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));border-color:rgb(241 246 255/var(--tw-border-opacity));color:rgb(82 138 250/var(--tw-text-opacity));font-weight:600}:host .view-day .dates>time.disabled,:host .view-day .dates>time.other-month{cursor:default;opacity:.4}:host .view-day .dates>time.disabled{text-decoration-line:line-through}:host .view-day .dates>time:hover:not(.disabled):not(.active):not(.other-month){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(81 83 107/var(--tw-text-opacity))}:host .view-month .items,:host .view-year .items{align-items:center;display:grid;gap:.25rem;grid-template-columns:repeat(3,1fr);height:100%;overflow-y:auto;position:relative;width:100%}:host .view-month .items>div,:host .view-year .items>div{--tw-text-opacity:1;align-items:center;border:1px solid transparent;border-radius:.25rem;color:rgb(81 83 107/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;height:2rem;justify-content:center;line-height:1.25rem;padding-left:.5rem;padding-right:.5rem}:host .view-month .items>div.current,:host .view-year .items>div.current{--tw-border-opacity:1;border-color:rgb(176 178 203/var(--tw-border-opacity))}:host .view-month .items>div.active,:host .view-year .items>div.active{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));border-color:rgb(241 246 255/var(--tw-border-opacity));color:rgb(82 138 250/var(--tw-text-opacity));font-weight:600}:host .view-month .items>div.disabled,:host .view-year .items>div.disabled{cursor:default;opacity:.4;text-decoration-line:line-through}:host .view-month .items>div:hover:not(.disabled):not(.active),:host .view-year .items>div:hover:not(.disabled):not(.active){--tw-bg-opacity:1;background-color:rgb(247 250 252/var(--tw-bg-opacity))}:host .view-month .items{grid-template-columns:repeat(2,1fr)}:host .view-year .header{justify-content:center}:host(.variant-default){--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13);--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color);border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:host(.variant-embedded){padding:0}.static{position:static!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.visible{visibility:visible!important}.absolute{position:absolute!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-0,.-rotate-135{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-315{--tw-rotate:-315deg!important}.-rotate-315,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-90,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate:0deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-270{--tw-rotate:270deg!important}.rotate-270,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-315{--tw-rotate:315deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important}.text-lg,.text-xl{line-height:1.75rem!important}.text-xl{font-size:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-xxs{font-size:.6875rem!important}.text-negative{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.text-negative-light{--tw-text-opacity:1!important;color:rgb(255 204 211/var(--tw-text-opacity))!important}.hover\:text-negative:hover{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.items-end{align-items:flex-end!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-br-none{border-bottom-right-radius:0!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tr-none{border-top-right-radius:0!important}.border-l-0{border-left-width:0!important}.border-r-0{border-right-width:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.col-start-1{grid-column-start:1!important}.col-start-2{grid-column-start:2!important}.col-start-3{grid-column-start:3!important}.col-start-4{grid-column-start:4!important}.col-start-5{grid-column-start:5!important}.col-start-6{grid-column-start:6!important}.col-start-7{grid-column-start:7!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}
|
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
import { h, Host, } from '@stencil/core';
|
|
2
|
+
import { addDays, addMonths, addYears, endOfMonth, format, getDay, getDaysInMonth, getYear, isAfter, isBefore, isSameDay, isSameMonth, isSameYear, isValid, setDate, setMonth, setYear, startOfDay, startOfMonth, } from 'date-fns';
|
|
3
|
+
export class Calendar {
|
|
4
|
+
constructor() {
|
|
5
|
+
this._today = new Date();
|
|
6
|
+
this._weekDays = Array.from(Array(7).keys());
|
|
7
|
+
this.variant = 'default';
|
|
8
|
+
this.value = undefined;
|
|
9
|
+
this.preselectToday = false;
|
|
10
|
+
this.disabledDates = undefined;
|
|
11
|
+
this.minDate = new Date(1970, 0, 1);
|
|
12
|
+
this.maxDate = this._getAutomaticMax();
|
|
13
|
+
this.disableWeekends = false;
|
|
14
|
+
this.mode = 'day';
|
|
15
|
+
this._view = this.mode;
|
|
16
|
+
this._viewDate = this._today;
|
|
17
|
+
this._value = undefined;
|
|
18
|
+
this._minDate = undefined;
|
|
19
|
+
this._maxDate = undefined;
|
|
20
|
+
this._disabledDates = [];
|
|
21
|
+
}
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
if (this.disabledDates) {
|
|
24
|
+
this._parseDisabledDates(this.disabledDates);
|
|
25
|
+
}
|
|
26
|
+
if (this.minDate) {
|
|
27
|
+
this._parseMinDate(this.minDate);
|
|
28
|
+
}
|
|
29
|
+
if (this.maxDate) {
|
|
30
|
+
this._parseMaxDate(this.maxDate);
|
|
31
|
+
}
|
|
32
|
+
this._parseValue(this.value);
|
|
33
|
+
if (this._value) {
|
|
34
|
+
this._viewDate = this._value;
|
|
35
|
+
}
|
|
36
|
+
if (isBefore(this._viewDate, this._minDate)) {
|
|
37
|
+
this._viewDate = this._minDate;
|
|
38
|
+
}
|
|
39
|
+
if (isAfter(this._viewDate, this._maxDate)) {
|
|
40
|
+
this._viewDate = this._maxDate;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
componentDidRender() {
|
|
44
|
+
if (this._view === 'year') {
|
|
45
|
+
this._scrollYearIntoView();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
_parseValue(value) {
|
|
49
|
+
if (!value && this.preselectToday) {
|
|
50
|
+
value = new Date();
|
|
51
|
+
}
|
|
52
|
+
if (typeof value === 'string') {
|
|
53
|
+
value = new Date(value);
|
|
54
|
+
}
|
|
55
|
+
this._setValue(value);
|
|
56
|
+
}
|
|
57
|
+
_parseMinDate(minDate) {
|
|
58
|
+
if (typeof minDate === 'string') {
|
|
59
|
+
minDate = new Date(minDate);
|
|
60
|
+
}
|
|
61
|
+
if (!isValid(minDate)) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this._minDate = minDate;
|
|
65
|
+
if (isBefore(this._viewDate, this._minDate)) {
|
|
66
|
+
this._viewDate = this._minDate;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
_parseMaxDate(maxDate) {
|
|
70
|
+
if (typeof maxDate === 'string') {
|
|
71
|
+
maxDate = new Date(maxDate);
|
|
72
|
+
}
|
|
73
|
+
if (!isValid(maxDate)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this._maxDate = maxDate;
|
|
77
|
+
if (isAfter(this._viewDate, this._maxDate)) {
|
|
78
|
+
this._viewDate = this._maxDate;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
_parseDisabledDates(disabledDates) {
|
|
82
|
+
if (typeof disabledDates === 'string') {
|
|
83
|
+
disabledDates = JSON.parse(disabledDates);
|
|
84
|
+
}
|
|
85
|
+
if (!disabledDates || !Array.isArray(disabledDates)) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
// normalize all to date
|
|
89
|
+
this._disabledDates = disabledDates
|
|
90
|
+
.map((date) => {
|
|
91
|
+
if (typeof date === 'string') {
|
|
92
|
+
return new Date(date);
|
|
93
|
+
}
|
|
94
|
+
return date;
|
|
95
|
+
})
|
|
96
|
+
.filter((date) => isValid(date));
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return (h(Host, { class: `p-calendar variant-${this.variant}` }, this._getView()));
|
|
100
|
+
}
|
|
101
|
+
_getView() {
|
|
102
|
+
if (this._view === 'year') {
|
|
103
|
+
return this._getYearView();
|
|
104
|
+
}
|
|
105
|
+
if (this._view === 'month') {
|
|
106
|
+
return this._getMonthView();
|
|
107
|
+
}
|
|
108
|
+
return this._getDayView();
|
|
109
|
+
}
|
|
110
|
+
/* With this, we shall hack the system in ways no one would ever have thought.
|
|
111
|
+
<div class="col-start-1 col-start-2 col-start-3 col-start-4 col-start-5 col-start-6 col-start-7"></div>
|
|
112
|
+
*/
|
|
113
|
+
_getDayView() {
|
|
114
|
+
const daysInMonth = this._generateDaysInMonth();
|
|
115
|
+
return (h("div", { class: "view-day" }, h("div", { class: "header" }, h("div", { class: `nav ${!this._canSetAmount('month', -1) && 'disabled'}`, onClick: () => this._changeMonth(-1) }, h("p-icon", { variant: "chevron", rotate: 90 })), h("div", null, h("span", { onClick: () => this._changeView('month'), class: !this._canChangeView('month') && 'disabled' }, format(this._viewDate, 'MMMM')), h("span", { onClick: () => this._changeView('year'), class: `year ${!this._canChangeView('year') && 'disabled'}` }, getYear(this._viewDate))), h("div", { class: `nav ${!this._canSetAmount('month', 1) && 'disabled'}`, onClick: () => this._changeMonth(1) }, h("p-icon", { variant: "chevron", rotate: -90 }))), h("div", { class: "dates" }, this._weekDays.map((weekday) => (h("span", null, format(addDays(new Date(2022, 7, 1), weekday), 'eee')))), daysInMonth.map((day) => {
|
|
116
|
+
return (h("time", { class: `day ${day.active && 'active'} ${day.disabled && 'disabled'} ${day.current && 'current'} ${day.offset !== false &&
|
|
117
|
+
`col-start-${day.offset}`}`, onClick: () => this._setValue(day.date) }, day.day));
|
|
118
|
+
}))));
|
|
119
|
+
}
|
|
120
|
+
_getMonthView() {
|
|
121
|
+
const months = this._generateMonths();
|
|
122
|
+
return (h("div", { class: "view-month" }, h("div", { class: "header" }, h("div", { class: `nav ${!this._canSetAmount('year', -1) && 'disabled'}`, onClick: () => this._changeYear(-1) }, h("p-icon", { variant: "chevron", rotate: 90 })), h("div", null, h("span", { onClick: () => this._changeView('year'), class: `year ${!this._canChangeView('year') && 'disabled'}` }, getYear(this._viewDate))), h("div", { class: `nav ${!this._canSetAmount('year', 1) && 'disabled'}`, onClick: () => this._changeYear(1) }, h("p-icon", { variant: "chevron", rotate: -90 }))), h("div", { class: "items" }, months.map((month) => (h("div", { onClick: () => this._setMonth(month.month), class: `month ${month.active && 'active'} ${month.disabled && 'disabled'} ${month.current && 'current'}` }, format(setMonth(new Date(), month.month), 'MMMM')))))));
|
|
123
|
+
}
|
|
124
|
+
_getYearView() {
|
|
125
|
+
const years = this._generateYears();
|
|
126
|
+
return (h("div", { class: "view-year" }, h("div", { class: "header" }, h("div", null, h("span", { class: "year disabled" }, years === null || years === void 0 ? void 0 :
|
|
127
|
+
years[0].year, " - ", years === null || years === void 0 ? void 0 :
|
|
128
|
+
years[years.length - 1].year))), h("div", { class: "items" }, years.map((year) => (h("div", { onClick: () => this._setYear(year.year), class: `year ${year.active && 'active'} ${year.current && 'current'}` }, year.year))))));
|
|
129
|
+
}
|
|
130
|
+
_setYear(year) {
|
|
131
|
+
const date = setYear(this._viewDate, year);
|
|
132
|
+
if (this.mode === 'year') {
|
|
133
|
+
return this._setValue(setMonth(setDate(date, 1), 0));
|
|
134
|
+
}
|
|
135
|
+
this._viewDate = setYear(this._viewDate, year);
|
|
136
|
+
this._view = 'month';
|
|
137
|
+
}
|
|
138
|
+
_setMonth(month) {
|
|
139
|
+
const date = setMonth(this._viewDate, month);
|
|
140
|
+
if (this.mode === 'month') {
|
|
141
|
+
return this._setValue(setDate(date, 1));
|
|
142
|
+
}
|
|
143
|
+
this._viewDate = date;
|
|
144
|
+
this._view = 'day';
|
|
145
|
+
}
|
|
146
|
+
_changeMonth(amount = 1) {
|
|
147
|
+
const allowed = this._canSetAmount('month', amount);
|
|
148
|
+
if (!allowed) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const newDate = addMonths(this._viewDate, amount);
|
|
152
|
+
this._viewDate = newDate;
|
|
153
|
+
}
|
|
154
|
+
_changeYear(amount = 1) {
|
|
155
|
+
const allowed = this._canSetAmount('year', amount);
|
|
156
|
+
if (!allowed) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
let newDate = addYears(this._viewDate, amount);
|
|
160
|
+
this._viewDate = newDate;
|
|
161
|
+
}
|
|
162
|
+
_setValue(value) {
|
|
163
|
+
if (value === null) {
|
|
164
|
+
this._value = null;
|
|
165
|
+
this.valueChange.emit(null);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (!isValid(value)) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
if (this._isDisabledDay(value)) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
value = startOfDay(value);
|
|
175
|
+
const isSameValue = isSameDay(value, this._value);
|
|
176
|
+
if (isSameValue) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
this._value = value;
|
|
180
|
+
this.valueChange.emit(value);
|
|
181
|
+
}
|
|
182
|
+
_generateDaysInMonth() {
|
|
183
|
+
const days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());
|
|
184
|
+
return days.map((day) => {
|
|
185
|
+
day = day + 1;
|
|
186
|
+
const date = setDate(this._viewDate, day);
|
|
187
|
+
const dayOfWeek = getDay(date);
|
|
188
|
+
return {
|
|
189
|
+
day,
|
|
190
|
+
date,
|
|
191
|
+
offset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,
|
|
192
|
+
current: isSameDay(date, this._today),
|
|
193
|
+
active: isSameDay(date, this._value),
|
|
194
|
+
disabled: this._isDisabledDay(date),
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
_isDisabledDay(day) {
|
|
199
|
+
return (isBefore(day, this._minDate) ||
|
|
200
|
+
(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||
|
|
201
|
+
((getDay(day) === 0 || getDay(day) === 6) &&
|
|
202
|
+
this.disableWeekends) ||
|
|
203
|
+
this._disabledDates.findIndex((date) => isSameDay(date, day)) >= 0);
|
|
204
|
+
}
|
|
205
|
+
_generateMonths() {
|
|
206
|
+
const year = getYear(this._viewDate);
|
|
207
|
+
const months = Array.from(Array(12).keys());
|
|
208
|
+
return months.map((month) => {
|
|
209
|
+
const date = new Date(year, month, 1);
|
|
210
|
+
return {
|
|
211
|
+
month,
|
|
212
|
+
current: isSameMonth(this._today, date),
|
|
213
|
+
active: isSameMonth(this._value, date),
|
|
214
|
+
disabled: isAfter(date, this._maxDate) ||
|
|
215
|
+
isBefore(endOfMonth(date), this._minDate),
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
_generateYears() {
|
|
220
|
+
const maxYear = getYear(this._maxDate) + 1;
|
|
221
|
+
const minYear = getYear(this._minDate);
|
|
222
|
+
return Array.from(Array(maxYear - minYear).keys()).map((index) => {
|
|
223
|
+
const year = minYear + index;
|
|
224
|
+
return {
|
|
225
|
+
year,
|
|
226
|
+
current: getYear(this._today) === year,
|
|
227
|
+
active: getYear(this._value) === year,
|
|
228
|
+
};
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
_scrollYearIntoView() {
|
|
232
|
+
const items = this._el.shadowRoot.querySelector('.view-year .items');
|
|
233
|
+
if (!items) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
const active = items.querySelector('.year.active');
|
|
237
|
+
if (active) {
|
|
238
|
+
return items.scrollTo({
|
|
239
|
+
top: active.offsetTop,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
const current = items.querySelector('.year.current');
|
|
243
|
+
if (current) {
|
|
244
|
+
return items.scrollTo({
|
|
245
|
+
top: current.offsetTop,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
_changeView(view) {
|
|
250
|
+
if (!this._canChangeView(view)) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
this._view = view;
|
|
254
|
+
}
|
|
255
|
+
_canChangeView(view) {
|
|
256
|
+
if (view === 'year') {
|
|
257
|
+
if (isSameYear(this._minDate, this._maxDate)) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
if (isSameMonth(this._minDate, this._maxDate)) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
_canSetAmount(type, amount = 1) {
|
|
268
|
+
if (type === 'month') {
|
|
269
|
+
const newDate = addMonths(this._viewDate, amount);
|
|
270
|
+
const startNewDate = startOfMonth(newDate);
|
|
271
|
+
if ((isBefore(startNewDate, startOfMonth(this._minDate)) &&
|
|
272
|
+
!isSameDay(startNewDate, this._minDate)) ||
|
|
273
|
+
isAfter(startNewDate, endOfMonth(this._maxDate))) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (type === 'year') {
|
|
278
|
+
let newDate = addYears(this._viewDate, amount);
|
|
279
|
+
const year = getYear(newDate);
|
|
280
|
+
if (year < getYear(this._minDate) ||
|
|
281
|
+
year > getYear(this._maxDate)) {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return true;
|
|
286
|
+
}
|
|
287
|
+
_getAutomaticMax() {
|
|
288
|
+
const date = addYears(new Date(), 50);
|
|
289
|
+
let year = getYear(date);
|
|
290
|
+
year = Math.ceil(year / 10) * 10;
|
|
291
|
+
return setYear(date, year);
|
|
292
|
+
}
|
|
293
|
+
static get is() { return "p-calendar"; }
|
|
294
|
+
static get encapsulation() { return "shadow"; }
|
|
295
|
+
static get originalStyleUrls() {
|
|
296
|
+
return {
|
|
297
|
+
"$": ["calendar.component.scss"]
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
static get styleUrls() {
|
|
301
|
+
return {
|
|
302
|
+
"$": ["calendar.component.css"]
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
static get properties() {
|
|
306
|
+
return {
|
|
307
|
+
"variant": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "'default' | 'embedded'",
|
|
312
|
+
"resolved": "\"default\" | \"embedded\"",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": "The variant of the button"
|
|
320
|
+
},
|
|
321
|
+
"attribute": "variant",
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"defaultValue": "'default'"
|
|
324
|
+
},
|
|
325
|
+
"value": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"mutable": false,
|
|
328
|
+
"complexType": {
|
|
329
|
+
"original": "Date | 'string'",
|
|
330
|
+
"resolved": "\"string\" | Date",
|
|
331
|
+
"references": {
|
|
332
|
+
"Date": {
|
|
333
|
+
"location": "global"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": false,
|
|
338
|
+
"optional": true,
|
|
339
|
+
"docs": {
|
|
340
|
+
"tags": [],
|
|
341
|
+
"text": "The current value"
|
|
342
|
+
},
|
|
343
|
+
"attribute": "value",
|
|
344
|
+
"reflect": false
|
|
345
|
+
},
|
|
346
|
+
"preselectToday": {
|
|
347
|
+
"type": "boolean",
|
|
348
|
+
"mutable": false,
|
|
349
|
+
"complexType": {
|
|
350
|
+
"original": "boolean",
|
|
351
|
+
"resolved": "boolean",
|
|
352
|
+
"references": {}
|
|
353
|
+
},
|
|
354
|
+
"required": false,
|
|
355
|
+
"optional": false,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": "Wether to automatically preselect today"
|
|
359
|
+
},
|
|
360
|
+
"attribute": "preselect-today",
|
|
361
|
+
"reflect": false,
|
|
362
|
+
"defaultValue": "false"
|
|
363
|
+
},
|
|
364
|
+
"disabledDates": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"mutable": false,
|
|
367
|
+
"complexType": {
|
|
368
|
+
"original": "Array<Date | 'string'> | string",
|
|
369
|
+
"resolved": "(\"string\" | Date)[] | string",
|
|
370
|
+
"references": {
|
|
371
|
+
"Array": {
|
|
372
|
+
"location": "global"
|
|
373
|
+
},
|
|
374
|
+
"Date": {
|
|
375
|
+
"location": "global"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": true,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Disabled dates"
|
|
384
|
+
},
|
|
385
|
+
"attribute": "disabled-dates",
|
|
386
|
+
"reflect": false
|
|
387
|
+
},
|
|
388
|
+
"minDate": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"mutable": false,
|
|
391
|
+
"complexType": {
|
|
392
|
+
"original": "Date | 'string'",
|
|
393
|
+
"resolved": "\"string\" | Date",
|
|
394
|
+
"references": {
|
|
395
|
+
"Date": {
|
|
396
|
+
"location": "global"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Min date"
|
|
405
|
+
},
|
|
406
|
+
"attribute": "min-date",
|
|
407
|
+
"reflect": false,
|
|
408
|
+
"defaultValue": "new Date(1970, 0, 1)"
|
|
409
|
+
},
|
|
410
|
+
"maxDate": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "Date | 'string'",
|
|
415
|
+
"resolved": "\"string\" | Date",
|
|
416
|
+
"references": {
|
|
417
|
+
"Date": {
|
|
418
|
+
"location": "global"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"required": false,
|
|
423
|
+
"optional": false,
|
|
424
|
+
"docs": {
|
|
425
|
+
"tags": [],
|
|
426
|
+
"text": "Max date"
|
|
427
|
+
},
|
|
428
|
+
"attribute": "max-date",
|
|
429
|
+
"reflect": false,
|
|
430
|
+
"defaultValue": "this._getAutomaticMax()"
|
|
431
|
+
},
|
|
432
|
+
"disableWeekends": {
|
|
433
|
+
"type": "boolean",
|
|
434
|
+
"mutable": false,
|
|
435
|
+
"complexType": {
|
|
436
|
+
"original": "boolean",
|
|
437
|
+
"resolved": "boolean",
|
|
438
|
+
"references": {}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": false,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": "Wether to disable the weekends"
|
|
445
|
+
},
|
|
446
|
+
"attribute": "disable-weekends",
|
|
447
|
+
"reflect": false,
|
|
448
|
+
"defaultValue": "false"
|
|
449
|
+
},
|
|
450
|
+
"mode": {
|
|
451
|
+
"type": "string",
|
|
452
|
+
"mutable": false,
|
|
453
|
+
"complexType": {
|
|
454
|
+
"original": "'year' | 'month' | 'day'",
|
|
455
|
+
"resolved": "\"day\" | \"month\" | \"year\"",
|
|
456
|
+
"references": {}
|
|
457
|
+
},
|
|
458
|
+
"required": false,
|
|
459
|
+
"optional": false,
|
|
460
|
+
"docs": {
|
|
461
|
+
"tags": [],
|
|
462
|
+
"text": "The mode of the datepicker"
|
|
463
|
+
},
|
|
464
|
+
"attribute": "mode",
|
|
465
|
+
"reflect": false,
|
|
466
|
+
"defaultValue": "'day'"
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
static get states() {
|
|
471
|
+
return {
|
|
472
|
+
"_view": {},
|
|
473
|
+
"_viewDate": {},
|
|
474
|
+
"_value": {},
|
|
475
|
+
"_minDate": {},
|
|
476
|
+
"_maxDate": {},
|
|
477
|
+
"_disabledDates": {}
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
static get events() {
|
|
481
|
+
return [{
|
|
482
|
+
"method": "valueChange",
|
|
483
|
+
"name": "valueChange",
|
|
484
|
+
"bubbles": true,
|
|
485
|
+
"cancelable": true,
|
|
486
|
+
"composed": true,
|
|
487
|
+
"docs": {
|
|
488
|
+
"tags": [],
|
|
489
|
+
"text": "Event when the value changes"
|
|
490
|
+
},
|
|
491
|
+
"complexType": {
|
|
492
|
+
"original": "any",
|
|
493
|
+
"resolved": "any",
|
|
494
|
+
"references": {}
|
|
495
|
+
}
|
|
496
|
+
}];
|
|
497
|
+
}
|
|
498
|
+
static get elementRef() { return "_el"; }
|
|
499
|
+
static get watchers() {
|
|
500
|
+
return [{
|
|
501
|
+
"propName": "value",
|
|
502
|
+
"methodName": "_parseValue"
|
|
503
|
+
}, {
|
|
504
|
+
"propName": "minDate",
|
|
505
|
+
"methodName": "_parseMinDate"
|
|
506
|
+
}, {
|
|
507
|
+
"propName": "maxDate",
|
|
508
|
+
"methodName": "_parseMaxDate"
|
|
509
|
+
}, {
|
|
510
|
+
"propName": "disabledDates",
|
|
511
|
+
"methodName": "_parseDisabledDates"
|
|
512
|
+
}];
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
//# sourceMappingURL=calendar.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/calendar/calendar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,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,OAAO,EACP,QAAQ,EACR,OAAO,EACP,UAAU,EACV,YAAY,GACf,MAAM,UAAU,CAAC;AAOlB,MAAM,OAAO,QAAQ;;IAmDT,WAAM,GAAG,IAAI,IAAI,EAAE,CAAC;IASpB,cAAS,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;mBAxDN,SAAS;;0BAUjB,KAAK;;mBAUJ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;mBAKpB,IAAI,CAAC,gBAAgB,EAAE;2BAKvB,KAAK;gBAKC,KAAK;iBAaK,IAAI,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport {\n addDays,\n addMonths,\n addYears,\n endOfMonth,\n format,\n getDay,\n getDaysInMonth,\n getYear,\n isAfter,\n isBefore,\n isSameDay,\n isSameMonth,\n isSameYear,\n isValid,\n setDate,\n setMonth,\n setYear,\n startOfDay,\n startOfMonth,\n} from 'date-fns';\n\n@Component({\n tag: 'p-calendar',\n styleUrl: 'calendar.component.scss',\n shadow: true,\n})\nexport class Calendar {\n /**\n * The variant of the button\n */\n @Prop() variant: 'default' | 'embedded' = 'default';\n\n /**\n * The current value\n */\n @Prop() value?: Date | 'string';\n\n /**\n * Wether to automatically preselect today\n */\n @Prop() preselectToday: boolean = false;\n\n /**\n * Disabled dates\n */\n @Prop() disabledDates?: Array<Date | 'string'> | string;\n\n /**\n * Min date\n */\n @Prop() minDate: Date | 'string' = new Date(1970, 0, 1);\n\n /**\n * Max date\n */\n @Prop() maxDate: Date | 'string' = this._getAutomaticMax();\n\n /**\n * Wether to disable the weekends\n */\n @Prop() disableWeekends: boolean = false;\n\n /**\n * The mode of the datepicker\n */\n @Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n /**\n * Event when the value changes\n */\n @Event() valueChange: EventEmitter<any>;\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n private _today = new Date();\n @State() private _view: 'year' | 'month' | 'day' = this.mode;\n @State() private _viewDate = this._today;\n\n @State() private _value: Date;\n @State() private _minDate: Date;\n @State() private _maxDate: Date;\n @State() private _disabledDates: Date[] = [];\n\n private _weekDays = Array.from(Array(7).keys());\n\n componentWillLoad() {\n if (this.disabledDates) {\n this._parseDisabledDates(this.disabledDates);\n }\n\n if (this.minDate) {\n this._parseMinDate(this.minDate);\n }\n\n if (this.maxDate) {\n this._parseMaxDate(this.maxDate);\n }\n\n this._parseValue(this.value);\n\n if (this._value) {\n this._viewDate = this._value;\n }\n\n if (isBefore(this._viewDate, this._minDate)) {\n this._viewDate = this._minDate;\n }\n\n if (isAfter(this._viewDate, this._maxDate)) {\n this._viewDate = this._maxDate;\n }\n }\n\n componentDidRender() {\n if (this._view === 'year') {\n this._scrollYearIntoView();\n }\n }\n\n @Watch('value')\n private _parseValue(value: string | Date) {\n if (!value && this.preselectToday) {\n value = new Date();\n }\n\n if (typeof value === 'string') {\n value = new Date(value);\n }\n\n this._setValue(value);\n }\n\n @Watch('minDate')\n private _parseMinDate(minDate: string | Date) {\n if (typeof minDate === 'string') {\n minDate = new Date(minDate);\n }\n\n if (!isValid(minDate)) {\n return;\n }\n\n this._minDate = minDate;\n\n if (isBefore(this._viewDate, this._minDate)) {\n this._viewDate = this._minDate;\n }\n }\n\n @Watch('maxDate')\n private _parseMaxDate(maxDate: string | Date) {\n if (typeof maxDate === 'string') {\n maxDate = new Date(maxDate);\n }\n\n if (!isValid(maxDate)) {\n return;\n }\n\n this._maxDate = maxDate;\n\n if (isAfter(this._viewDate, this._maxDate)) {\n this._viewDate = this._maxDate;\n }\n }\n\n @Watch('disabledDates')\n private _parseDisabledDates(disabledDates: Array<string | Date> | string) {\n if (typeof disabledDates === 'string') {\n disabledDates = JSON.parse(disabledDates);\n }\n\n if (!disabledDates || !Array.isArray(disabledDates)) {\n return;\n }\n\n // normalize all to date\n this._disabledDates = disabledDates\n .map((date) => {\n if (typeof date === 'string') {\n return new Date(date);\n }\n\n return date;\n })\n .filter((date) => isValid(date));\n }\n\n render() {\n return (\n <Host class={`p-calendar variant-${this.variant}`}>\n {this._getView()}\n </Host>\n );\n }\n\n private _getView() {\n if (this._view === 'year') {\n return this._getYearView();\n }\n\n if (this._view === 'month') {\n return this._getMonthView();\n }\n\n return this._getDayView();\n }\n\n /* 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 private _getDayView() {\n const daysInMonth = this._generateDaysInMonth();\n return (\n <div class=\"view-day\">\n <div class=\"header\">\n <div\n class={`nav ${\n !this._canSetAmount('month', -1) && 'disabled'\n }`}\n onClick={() => this._changeMonth(-1)}\n >\n <p-icon variant=\"chevron\" rotate={90} />\n </div>\n <div>\n <span\n onClick={() => this._changeView('month')}\n class={!this._canChangeView('month') && 'disabled'}\n >\n {format(this._viewDate, 'MMMM')}\n </span>\n <span\n onClick={() => this._changeView('year')}\n class={`year ${\n !this._canChangeView('year') && 'disabled'\n }`}\n >\n {getYear(this._viewDate)}\n </span>\n </div>\n <div\n class={`nav ${\n !this._canSetAmount('month', 1) && 'disabled'\n }`}\n onClick={() => this._changeMonth(1)}\n >\n <p-icon variant=\"chevron\" rotate={-90} />\n </div>\n </div>\n <div class=\"dates\">\n {this._weekDays.map((weekday) => (\n <span>\n {format(\n addDays(new Date(2022, 7, 1), weekday),\n 'eee'\n )}\n </span>\n ))}\n {daysInMonth.map((day) => {\n return (\n <time\n class={`day ${day.active && 'active'} ${\n day.disabled && 'disabled'\n } ${day.current && 'current'} ${\n day.offset !== false &&\n `col-start-${day.offset}`\n }`}\n onClick={() => this._setValue(day.date)}\n >\n {day.day}\n </time>\n );\n })}\n </div>\n </div>\n );\n }\n\n private _getMonthView() {\n const months = this._generateMonths();\n return (\n <div class=\"view-month\">\n <div class=\"header\">\n <div\n class={`nav ${\n !this._canSetAmount('year', -1) && 'disabled'\n }`}\n onClick={() => this._changeYear(-1)}\n >\n <p-icon variant=\"chevron\" rotate={90} />\n </div>\n <div>\n <span\n onClick={() => this._changeView('year')}\n class={`year ${\n !this._canChangeView('year') && 'disabled'\n }`}\n >\n {getYear(this._viewDate)}\n </span>\n </div>\n <div\n class={`nav ${\n !this._canSetAmount('year', 1) && 'disabled'\n }`}\n onClick={() => this._changeYear(1)}\n >\n <p-icon variant=\"chevron\" rotate={-90} />\n </div>\n </div>\n <div class=\"items\">\n {months.map((month) => (\n <div\n onClick={() => this._setMonth(month.month)}\n class={`month ${month.active && 'active'} ${\n month.disabled && 'disabled'\n } ${month.current && 'current'}`}\n >\n {format(setMonth(new Date(), month.month), 'MMMM')}\n </div>\n ))}\n </div>\n </div>\n );\n }\n\n private _getYearView() {\n const years = this._generateYears();\n return (\n <div class=\"view-year\">\n <div class=\"header\">\n <div>\n <span class=\"year disabled\">\n {years?.[0].year} - {years?.[years.length - 1].year}\n </span>\n </div>\n </div>\n <div class=\"items\">\n {years.map((year) => (\n <div\n onClick={() => this._setYear(year.year)}\n class={`year ${year.active && 'active'} ${\n year.current && 'current'\n }`}\n >\n {year.year}\n </div>\n ))}\n </div>\n </div>\n );\n }\n\n private _setYear(year: number) {\n const date = setYear(this._viewDate, year);\n if (this.mode === 'year') {\n return this._setValue(setMonth(setDate(date, 1), 0));\n }\n\n this._viewDate = setYear(this._viewDate, year);\n this._view = 'month';\n }\n\n private _setMonth(month: number) {\n const date = setMonth(this._viewDate, month);\n if (this.mode === 'month') {\n return this._setValue(setDate(date, 1));\n }\n\n this._viewDate = date;\n this._view = 'day';\n }\n\n private _changeMonth(amount = 1) {\n const allowed = this._canSetAmount('month', amount);\n if (!allowed) {\n return;\n }\n\n const newDate = addMonths(this._viewDate, amount);\n this._viewDate = newDate;\n }\n\n private _changeYear(amount = 1) {\n const allowed = this._canSetAmount('year', amount);\n if (!allowed) {\n return;\n }\n\n let newDate = addYears(this._viewDate, amount);\n this._viewDate = newDate;\n }\n\n private _setValue(value: Date) {\n if (value === null) {\n this._value = null;\n this.valueChange.emit(null);\n return;\n }\n\n if (!isValid(value)) {\n return;\n }\n\n if (this._isDisabledDay(value)) {\n return;\n }\n\n value = startOfDay(value);\n const isSameValue = isSameDay(value, this._value);\n\n if (isSameValue) {\n return;\n }\n\n this._value = value;\n this.valueChange.emit(value);\n }\n\n private _generateDaysInMonth() {\n const days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());\n\n return days.map((day) => {\n day = day + 1;\n const date = setDate(this._viewDate, day);\n\n const dayOfWeek = getDay(date);\n return {\n day,\n date,\n offset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,\n current: isSameDay(date, this._today),\n active: isSameDay(date, this._value),\n disabled: this._isDisabledDay(date),\n };\n });\n }\n\n private _isDisabledDay(day: Date) {\n return (\n isBefore(day, this._minDate) ||\n (isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n ((getDay(day) === 0 || getDay(day) === 6) &&\n this.disableWeekends) ||\n this._disabledDates.findIndex((date) => isSameDay(date, day)) >= 0\n );\n }\n\n private _generateMonths() {\n const year = getYear(this._viewDate);\n const months = Array.from(Array(12).keys());\n\n return months.map((month) => {\n const date = new Date(year, month, 1);\n return {\n month,\n current: isSameMonth(this._today, date),\n active: isSameMonth(this._value, date),\n disabled:\n isAfter(date, this._maxDate) ||\n isBefore(endOfMonth(date), this._minDate),\n };\n });\n }\n\n private _generateYears() {\n const maxYear = getYear(this._maxDate) + 1;\n const minYear = getYear(this._minDate);\n\n return Array.from(Array(maxYear - minYear).keys()).map((index) => {\n const year = minYear + index;\n return {\n year,\n current: getYear(this._today) === year,\n active: getYear(this._value) === year,\n };\n });\n }\n\n private _scrollYearIntoView() {\n const items = this._el.shadowRoot.querySelector('.view-year .items');\n if (!items) {\n return;\n }\n\n const active = items.querySelector('.year.active') as HTMLElement;\n if (active) {\n return items.scrollTo({\n top: active.offsetTop,\n });\n }\n\n const current = items.querySelector('.year.current') as HTMLElement;\n if (current) {\n return items.scrollTo({\n top: current.offsetTop,\n });\n }\n }\n\n private _changeView(view: 'year' | 'month') {\n if (!this._canChangeView(view)) {\n return;\n }\n\n this._view = view;\n }\n\n private _canChangeView(view: 'year' | 'month') {\n if (view === 'year') {\n if (isSameYear(this._minDate, this._maxDate)) {\n return false;\n }\n\n return true;\n }\n\n if (isSameMonth(this._minDate, this._maxDate)) {\n return false;\n }\n\n return true;\n }\n\n private _canSetAmount(type: 'month' | 'year', amount = 1) {\n if (type === 'month') {\n const newDate = addMonths(this._viewDate, amount);\n const startNewDate = startOfMonth(newDate);\n if (\n (isBefore(startNewDate, startOfMonth(this._minDate)) &&\n !isSameDay(startNewDate, this._minDate)) ||\n isAfter(startNewDate, endOfMonth(this._maxDate))\n ) {\n return false;\n }\n }\n\n if (type === 'year') {\n let newDate = addYears(this._viewDate, amount);\n const year = getYear(newDate);\n if (\n year < getYear(this._minDate) ||\n year > getYear(this._maxDate)\n ) {\n return false;\n }\n }\n\n return true;\n }\n\n private _getAutomaticMax() {\n const date = addYears(new Date(), 50);\n\n let year = getYear(date);\n year = Math.ceil(year / 10) * 10;\n\n return setYear(date, year);\n }\n}\n"]}
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
@apply flex flex-col gap-4 overflow-hidden;
|
|
3
|
-
@apply p-16 -m-16;
|
|
4
|
-
}
|
|
5
|
-
:host .slider {
|
|
6
|
-
@apply overflow-visible relative box-content;
|
|
7
|
-
}
|
|
8
|
-
:host .slider.draggable {
|
|
9
|
-
@apply cursor-grab desktop-xs:cursor-default;
|
|
10
|
-
}
|
|
11
|
-
:host .slider.draggable.dragging {
|
|
12
|
-
@apply cursor-grabbing desktop-xs:cursor-default;
|
|
13
|
-
}
|
|
14
|
-
:host .slider .inner-slider {
|
|
15
|
-
@apply absolute flex flex-nowrap items-stretch w-full gap-2;
|
|
16
|
-
@apply tablet:gap-4 desktop-xs:flex-wrap;
|
|
17
|
-
}
|
|
18
|
-
:host .slider .inner-slider > ::slotted(*) {
|
|
19
|
-
@apply w-full tablet:w-[45%] desktop-xs:w-full;
|
|
20
|
-
@apply flex-shrink-0 desktop-xs:flex-1;
|
|
21
|
-
position: relative;
|
|
22
|
-
z-index: 10;
|
|
23
|
-
}
|
|
24
|
-
:host .indicator {
|
|
25
|
-
@apply flex justify-center items-center gap-2 desktop-xs:hidden;
|
|
26
|
-
} .visible{visibility:visible!important}.static{position:static!important}.hidden{display:none!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}
|
|
1
|
+
.absolute{position:absolute!important}.relative{position:relative!important}.mt-3{margin-top:.75rem!important}.flex{display:flex!important}.w-0{width:0!important}.w-full{width:100%!important}.flex-shrink-0{flex-shrink:0!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.overflow-visible{overflow:visible!important}.p-16{padding:4rem!important}.pt-1{padding-top:.25rem!important}.will-change-transform{will-change:transform!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;margin:-4rem;overflow:hidden;padding:4rem}:host .slider{box-sizing:content-box;overflow:visible;position:relative}:host .slider.draggable{cursor:grab}@media (min-width:64rem){:host .slider.draggable{cursor:auto}}:host .slider.draggable.dragging{cursor:grabbing}@media (min-width:64rem){:host .slider.draggable.dragging{cursor:auto}}:host .slider.draggable.dragging .inner-slider{transition-property:none}:host .slider .inner-slider{--tw-translate-x:0px;align-items:stretch;display:flex;flex-wrap:nowrap;gap:.5rem;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-duration:.15s;transition-duration:.5s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%;will-change:transform}@media (min-width:64rem){:host .slider .inner-slider{flex-wrap:wrap;gap:1rem}}:host .slider .inner-slider>::slotted(*){flex-shrink:0;position:relative;width:100%;z-index:10}@media (min-width:40rem){:host .slider .inner-slider>::slotted(*){width:calc(50% - .5rem)}}@media (min-width:64rem){:host .slider .inner-slider>::slotted(*){flex:1 1 0%;width:0}}:host .indicator{align-items:center;display:flex;justify-content:center}@media (min-width:64rem){:host .indicator{display:none}}:host .indicator .item{margin-top:.75rem;padding-left:.25rem;padding-right:.25rem;padding-top:.25rem}@media (min-width:64rem){.desktop-xs\:hidden{display:none!important}.desktop-xs\:gap-4{gap:1rem!important}}.visible{visibility:visible!important}.static{position:static!important}.hidden{display:none!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}
|