@paperless/core 0.1.0-alpha.33 → 0.1.0-alpha.331
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 +3112 -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/camera.svg +10 -0
- package/dist/assets/icons/filter.svg +6 -13
- package/dist/assets/icons/menu.svg +25 -0
- package/dist/assets/icons/more.svg +18 -0
- package/dist/assets/icons/notification.svg +10 -0
- package/dist/assets/icons/reload.svg +10 -0
- package/dist/assets/icons/signout.svg +23 -0
- package/dist/assets/icons/switch.svg +20 -0
- package/dist/assets/illustrations/e-mail.svg +1 -0
- package/dist/assets/illustrations/empty-state-overview.svg +65 -0
- package/dist/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/build/index.esm.js +1 -0
- package/dist/build/p-05f73516.entry.js +1 -0
- package/dist/build/p-0688d548.entry.js +1 -0
- package/dist/build/p-07f28695.entry.js +1 -0
- package/dist/build/p-09ea2a1a.js +1 -0
- package/dist/build/p-12f5c483.entry.js +1 -0
- package/dist/build/p-1ba7cadc.entry.js +1 -0
- package/dist/build/p-2e47afc7.entry.js +1 -0
- package/dist/build/p-37fa2c13.entry.js +1 -0
- package/dist/build/p-3946e0a3.entry.js +1 -0
- package/dist/build/p-3a98b145.entry.js +1 -0
- package/dist/build/p-43d1544e.entry.js +1 -0
- package/dist/build/p-4e650fe4.js +1 -0
- package/dist/build/p-4fcd08ce.entry.js +1 -0
- package/dist/build/p-529ccaf7.entry.js +1 -0
- package/dist/build/p-5b7c22ee.entry.js +1 -0
- package/dist/build/p-62d49606.entry.js +1 -0
- package/dist/build/p-63de1c3d.entry.js +1 -0
- package/dist/build/p-681ed79b.entry.js +1 -0
- package/dist/build/p-6c60fd3d.js +1 -0
- package/dist/build/p-7df6230f.entry.js +1 -0
- package/dist/build/p-8a6728d5.js +1 -0
- package/dist/build/p-8c67da86.entry.js +1 -0
- package/dist/build/p-91d032b2.entry.js +1 -0
- package/dist/build/p-9315c1e2.entry.js +1 -0
- package/dist/build/p-98e3dcd7.entry.js +1 -0
- package/dist/build/p-ac5a17c4.entry.js +1 -0
- package/dist/build/p-b273ac6d.js +1 -0
- package/dist/build/p-b4af4b21.entry.js +1 -0
- package/dist/build/p-b72559e4.entry.js +1 -0
- package/dist/build/p-b8dd503c.entry.js +1 -0
- package/dist/build/p-c296a33d.entry.js +1 -0
- package/dist/build/p-c80933ab.entry.js +1 -0
- package/dist/build/p-c9f2fa8f.js +2 -0
- package/dist/build/p-d1022d64.entry.js +1 -0
- package/dist/build/p-d2cf5ab2.entry.js +1 -0
- package/dist/build/p-d5885f2b.entry.js +1 -0
- package/dist/build/p-dbb409ab.entry.js +1 -0
- package/dist/build/p-ddd3372b.entry.js +1 -0
- package/dist/build/p-e3e3c4d1.entry.js +1 -0
- package/dist/build/p-e4bd4022.entry.js +1 -0
- package/dist/build/p-e9ed032e.entry.js +1 -0
- package/dist/build/p-f1867cb5.entry.js +1 -0
- package/dist/build/p-f499f696.entry.js +1 -0
- package/dist/build/p-f86fcdf4.js +1 -0
- package/dist/build/p-fa3216a5.entry.js +1 -0
- package/dist/build/p-fd1e32c1.entry.js +1 -0
- package/dist/build/paperless.css +1 -81
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/child-of-e472f812.js +9 -0
- package/dist/cjs/constants-a4459ec9.js +7 -0
- package/dist/cjs/index-040ec3f9.js +2481 -0
- package/dist/cjs/{index-a46a39a5.js → index-195002a8.js} +662 -261
- package/dist/cjs/index.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/localization-9e2ac7f3.js +60 -0
- package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
- package/dist/cjs/p-accordion.cjs.entry.js +34 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +20 -0
- package/dist/cjs/p-avatar.cjs.entry.js +22 -11
- package/dist/cjs/p-backdrop.cjs.entry.js +41 -0
- package/dist/cjs/p-button_3.cjs.entry.js +246 -104
- package/dist/cjs/p-calendar.cjs.entry.js +709 -0
- package/dist/cjs/p-card-body.cjs.entry.js +20 -0
- package/dist/cjs/p-card-container.cjs.entry.js +21 -0
- package/dist/cjs/p-card-header.cjs.entry.js +22 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +210 -0
- package/dist/cjs/p-counter.cjs.entry.js +5 -3
- package/dist/cjs/p-datepicker.cjs.entry.js +4082 -0
- package/dist/cjs/p-divider.cjs.entry.js +6 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +49 -0
- package/dist/cjs/p-drawer.cjs.entry.js +63 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +5 -3
- package/dist/cjs/p-dropdown_2.cjs.entry.js +165 -0
- package/dist/cjs/p-helper_3.cjs.entry.js +204 -0
- package/dist/cjs/p-illustration_6.cjs.entry.js +2725 -0
- package/dist/cjs/p-info-panel.cjs.entry.js +4 -8
- package/dist/cjs/p-label_3.cjs.entry.js +63 -0
- package/dist/cjs/p-layout.cjs.entry.js +20 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js +77 -0
- package/dist/cjs/p-modal.cjs.entry.js +59 -0
- package/dist/cjs/p-navbar.cjs.entry.js +28 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +7 -6
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +222 -0
- package/dist/cjs/p-profile.cjs.entry.js +43 -0
- package/dist/cjs/p-select.cjs.entry.js +183 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +20 -0
- package/dist/cjs/p-status.cjs.entry.js +5 -5
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +38 -0
- package/dist/cjs/p-stepper.cjs.entry.js +43 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +20 -0
- package/dist/cjs/p-table-column.cjs.entry.js +26 -0
- package/dist/cjs/p-table.cjs.entry.js +341 -0
- package/dist/cjs/p-toast-container.cjs.entry.js +20 -0
- package/dist/cjs/p-toast.cjs.entry.js +33 -0
- package/dist/cjs/paperless.cjs.js +3 -3
- package/dist/cjs/{popper-e0c4ed4c.js → popper-d7a0f999.js} +60 -49
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/filter.svg +6 -13
- package/dist/collection/assets/icons/menu.svg +25 -0
- package/dist/collection/assets/icons/more.svg +18 -0
- package/dist/collection/assets/icons/notification.svg +10 -0
- package/dist/collection/assets/icons/reload.svg +10 -0
- package/dist/collection/assets/icons/signout.svg +23 -0
- package/dist/collection/assets/icons/switch.svg +20 -0
- package/dist/collection/assets/illustrations/e-mail.svg +1 -0
- package/dist/collection/assets/illustrations/empty-state-overview.svg +65 -0
- package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/collection/collection-manifest.json +43 -3
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -31
- package/dist/collection/components/atoms/avatar/avatar.component.js +110 -90
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +41 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +148 -0
- package/dist/collection/components/atoms/button/button.component.css +1 -79
- package/dist/collection/components/atoms/button/button.component.js +305 -251
- package/dist/collection/components/atoms/card-body/card-body.component.css +1 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js +42 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +1 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +62 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +1 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
- package/dist/collection/components/atoms/counter/counter.component.css +1 -5
- package/dist/collection/components/atoms/counter/counter.component.js +56 -9
- package/dist/collection/components/atoms/divider/divider.component.css +1 -3
- package/dist/collection/components/atoms/divider/divider.component.js +15 -8
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +43 -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 +47 -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 +65 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -5
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +56 -9
- 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 -30
- package/dist/collection/components/atoms/helper/helper.component.css +1 -7
- package/dist/collection/components/atoms/helper/helper.component.js +42 -12
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +138 -91
- package/dist/collection/components/atoms/illustration/illustration.component.js +28 -23
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +85 -89
- package/dist/collection/components/atoms/label/label.component.css +1 -0
- package/dist/collection/components/atoms/label/label.component.js +170 -0
- package/dist/collection/components/atoms/layout/layout.component.css +1 -0
- package/dist/collection/components/atoms/layout/layout.component.js +43 -0
- package/dist/collection/components/atoms/loader/loader.component.css +1 -26
- package/dist/collection/components/atoms/loader/loader.component.js +112 -114
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +62 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +74 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +18 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +65 -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 +34 -32
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +12 -9
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +98 -87
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +43 -0
- package/dist/collection/components/atoms/status/status.component.css +1 -16
- package/dist/collection/components/atoms/status/status.component.js +98 -89
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +100 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.css +1 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +18 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +43 -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 +18 -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 +43 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -40
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +196 -164
- package/dist/collection/components/helpers/table-column/table-column.component.js +150 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js +127 -0
- package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js +503 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +316 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +507 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -9
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +266 -127
- package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +337 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -28
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +106 -104
- package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +204 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
- package/dist/collection/components/molecules/pagination/pagination.component.js +118 -94
- package/dist/collection/components/molecules/profile/profile.component.css +1 -0
- package/dist/collection/components/molecules/profile/profile.component.js +89 -0
- package/dist/collection/components/molecules/select/select.component.css +1 -0
- package/dist/collection/components/molecules/select/select.component.js +570 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +84 -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 +262 -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 +275 -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 +380 -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 +64 -0
- package/dist/collection/components/molecules/toast/toast.component.css +1 -0
- package/dist/collection/components/molecules/toast/toast.component.js +196 -0
- package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js +233 -0
- package/dist/collection/components/organisms/modal/modal.component.js +258 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +89 -0
- package/dist/collection/components/organisms/table/table.component.css +1 -0
- package/dist/collection/components/organisms/table/table.component.js +1164 -0
- package/dist/collection/index.js +2 -1
- package/dist/collection/tailwind/animation.js +87 -0
- package/dist/collection/tailwind/backdrop-blur.js +3 -0
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/height.js +5 -0
- package/dist/collection/tailwind/screens.js +8 -0
- package/dist/collection/tailwind/shadows.js +11 -5
- package/dist/collection/tailwind/spacing.js +10 -0
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/width.js +23 -0
- package/dist/collection/tailwind/z-index.js +17 -0
- package/dist/collection/tailwind.config.js +29 -14
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/types/table.js +1 -0
- package/dist/collection/types/tailwind.js +1 -0
- package/dist/collection/utils/icons.js +14 -0
- package/dist/collection/utils/illustrations.js +6 -0
- package/dist/collection/utils/index.js +6 -0
- package/dist/collection/utils/localization.js +55 -0
- package/dist/collection/utils/object-get-by-path.js +8 -0
- package/dist/collection/utils/transformers.js +4 -0
- package/dist/components/backdrop.component.js +57 -0
- package/dist/components/button.component.js +98 -0
- package/dist/components/calendar.component.js +3197 -0
- package/dist/components/counter.component.js +8 -3
- package/dist/components/divider.component.js +33 -0
- package/dist/components/drawer-body.component.js +33 -0
- package/dist/components/drawer-container.component.js +32 -0
- package/dist/components/drawer-header.component.js +52 -0
- package/dist/components/dropdown-menu-container.component.js +8 -3
- package/dist/components/dropdown-menu-item.component.js +43 -0
- package/dist/components/dropdown.component.js +182 -0
- package/dist/components/helper.component.js +39 -0
- package/dist/components/icon.component.js +182 -27
- package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +188 -16
- package/dist/components/index.d.ts +59 -19
- package/dist/components/index.js +50 -0
- package/dist/components/input-group.component.js +116 -0
- package/dist/components/label.component.js +52 -0
- package/dist/components/loader.component.js +9 -13
- package/dist/components/localization.js +57 -0
- package/dist/components/modal-body.component.js +35 -0
- package/dist/components/modal-container.component.js +47 -0
- package/dist/components/modal-footer.component.js +36 -0
- package/dist/components/modal-header.component.js +52 -0
- package/dist/components/p-accordion.d.ts +11 -0
- package/dist/components/p-accordion.js +65 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +35 -0
- package/dist/components/p-avatar.js +24 -14
- package/dist/components/p-backdrop.d.ts +11 -0
- package/dist/components/p-backdrop.js +6 -0
- package/dist/components/p-button.js +1 -102
- package/dist/components/p-calendar.d.ts +11 -0
- package/dist/components/p-calendar.js +6 -0
- package/dist/components/p-card-body.d.ts +11 -0
- package/dist/components/p-card-body.js +35 -0
- package/dist/components/p-card-container.d.ts +11 -0
- package/dist/components/p-card-container.js +38 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +44 -0
- package/dist/components/p-content-slider.d.ts +11 -0
- package/dist/components/p-content-slider.js +239 -0
- package/dist/components/p-datepicker.d.ts +11 -0
- package/dist/components/p-datepicker.js +4156 -0
- package/dist/components/p-divider.js +1 -28
- package/dist/components/p-drawer-body.d.ts +11 -0
- package/dist/components/p-drawer-body.js +6 -0
- package/dist/components/p-drawer-container.d.ts +11 -0
- package/dist/components/p-drawer-container.js +6 -0
- package/dist/components/p-drawer-header.d.ts +11 -0
- package/dist/components/p-drawer-header.js +6 -0
- package/dist/components/p-drawer.d.ts +11 -0
- package/dist/components/p-drawer.js +128 -0
- package/dist/components/p-dropdown-menu-item.js +1 -34
- package/dist/components/p-dropdown.js +1 -161
- package/dist/components/p-helper.js +1 -34
- package/dist/components/p-illustration.js +1 -1432
- package/dist/components/p-info-panel.js +3 -7
- package/dist/components/p-input-group.d.ts +11 -0
- package/dist/components/p-input-group.js +6 -0
- package/dist/components/p-label.d.ts +11 -0
- package/dist/components/p-label.js +6 -0
- package/dist/components/p-layout.d.ts +11 -0
- package/dist/components/p-layout.js +36 -0
- package/dist/components/p-modal-body.d.ts +11 -0
- package/dist/components/p-modal-body.js +6 -0
- package/dist/components/p-modal-container.d.ts +11 -0
- package/dist/components/p-modal-container.js +6 -0
- package/dist/components/p-modal-footer.d.ts +11 -0
- package/dist/components/p-modal-footer.js +6 -0
- package/dist/components/p-modal-header.d.ts +11 -0
- package/dist/components/p-modal-header.js +6 -0
- package/dist/components/p-modal.d.ts +11 -0
- package/dist/components/p-modal.js +138 -0
- package/dist/components/p-navbar.d.ts +11 -0
- package/dist/components/p-navbar.js +70 -0
- package/dist/components/p-navigation-item.js +6 -5
- package/dist/components/p-page-size-select.d.ts +11 -0
- package/dist/components/p-page-size-select.js +6 -0
- package/dist/components/p-pagination.js +1 -195
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +79 -0
- package/dist/components/p-segment-container.js +1 -27
- package/dist/components/p-segment-item.js +1 -49
- package/dist/components/p-select.d.ts +11 -0
- package/dist/components/p-select.js +265 -0
- package/dist/components/p-slider-indicator.d.ts +11 -0
- package/dist/components/p-slider-indicator.js +6 -0
- package/dist/components/p-status.js +4 -4
- package/dist/components/p-stepper-item.d.ts +11 -0
- package/dist/components/p-stepper-item.js +6 -0
- package/dist/components/p-stepper-line.d.ts +11 -0
- package/dist/components/p-stepper-line.js +6 -0
- package/dist/components/p-stepper.d.ts +11 -0
- package/dist/components/p-stepper.js +78 -0
- package/dist/components/p-tab-group.d.ts +11 -0
- package/dist/components/p-tab-group.js +39 -0
- package/dist/components/p-tab-item.d.ts +11 -0
- package/dist/components/p-tab-item.js +36 -0
- package/dist/components/p-table-cell.d.ts +11 -0
- package/dist/components/p-table-cell.js +6 -0
- package/dist/components/p-table-column.d.ts +11 -0
- package/dist/components/p-table-column.js +46 -0
- package/dist/components/p-table-container.d.ts +11 -0
- package/dist/components/p-table-container.js +6 -0
- package/dist/components/p-table-footer.d.ts +11 -0
- package/dist/components/p-table-footer.js +6 -0
- package/dist/components/p-table-header.d.ts +11 -0
- package/dist/components/p-table-header.js +6 -0
- package/dist/components/p-table-row.d.ts +11 -0
- package/dist/components/p-table-row.js +6 -0
- package/dist/components/p-table.d.ts +11 -0
- package/dist/components/p-table.js +521 -0
- package/dist/components/p-toast-container.d.ts +11 -0
- package/dist/components/p-toast-container.js +36 -0
- package/dist/components/p-toast.d.ts +11 -0
- package/dist/components/p-toast.js +73 -0
- package/dist/components/page-size-select.component.js +105 -0
- package/dist/components/pagination-item.component.js +1 -4
- package/dist/components/pagination.component.js +194 -0
- package/dist/components/popper.js +60 -49
- package/dist/components/segment-container.component.js +29 -0
- package/dist/components/segment-item.component.js +51 -0
- package/dist/components/slider-indicator.component.js +33 -0
- package/dist/components/stepper-item.component.js +45 -0
- package/dist/components/stepper-line.component.js +35 -0
- package/dist/components/table-cell.component.js +143 -0
- package/dist/components/table-container.component.js +30 -0
- package/dist/components/table-footer.component.js +127 -0
- package/dist/components/table-header.component.js +1048 -0
- package/dist/components/table-row.component.js +43 -0
- package/dist/components/tooltip.component.js +16 -27
- package/dist/esm/child-of-90a8c4b5.js +7 -0
- package/dist/esm/constants-826f9460.js +4 -0
- package/dist/esm/index-340e085c.js +2458 -0
- package/dist/esm/{index-a68e547b.js → index-8170b4fb.js} +662 -261
- package/dist/esm/index.js +9 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/localization-901dc2d3.js +57 -0
- package/dist/esm/object-get-by-path-d6427a61.js +10 -0
- package/dist/esm/p-accordion.entry.js +30 -0
- package/dist/esm/p-avatar-group.entry.js +16 -0
- package/dist/esm/p-avatar.entry.js +22 -11
- package/dist/esm/p-backdrop.entry.js +37 -0
- package/dist/esm/p-button_3.entry.js +246 -104
- package/dist/esm/p-calendar.entry.js +705 -0
- package/dist/esm/p-card-body.entry.js +16 -0
- package/dist/esm/p-card-container.entry.js +17 -0
- package/dist/esm/p-card-header.entry.js +18 -0
- package/dist/esm/p-content-slider.entry.js +206 -0
- package/dist/esm/p-counter.entry.js +5 -3
- package/dist/esm/p-datepicker.entry.js +4078 -0
- package/dist/esm/p-divider.entry.js +6 -3
- package/dist/esm/p-drawer-body_3.entry.js +43 -0
- package/dist/esm/p-drawer.entry.js +59 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +5 -3
- package/dist/esm/p-dropdown_2.entry.js +160 -0
- package/dist/esm/p-helper_3.entry.js +198 -0
- package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1305 -8
- package/dist/esm/p-info-panel.entry.js +4 -8
- package/dist/esm/p-label_3.entry.js +57 -0
- package/dist/esm/p-layout.entry.js +16 -0
- package/dist/esm/p-modal-body_4.entry.js +70 -0
- package/dist/esm/p-modal.entry.js +55 -0
- package/dist/esm/p-navbar.entry.js +24 -0
- package/dist/esm/p-navigation-item.entry.js +7 -6
- package/dist/esm/p-page-size-select_3.entry.js +216 -0
- package/dist/esm/p-profile.entry.js +39 -0
- package/dist/esm/p-select.entry.js +179 -0
- package/dist/esm/p-slider-indicator.entry.js +16 -0
- package/dist/esm/p-status.entry.js +5 -5
- package/dist/esm/p-stepper-item_2.entry.js +33 -0
- package/dist/esm/p-stepper.entry.js +39 -0
- package/dist/esm/p-tab-group.entry.js +15 -0
- package/dist/esm/p-tab-item.entry.js +16 -0
- package/dist/esm/p-table-column.entry.js +22 -0
- package/dist/esm/p-table.entry.js +337 -0
- package/dist/esm/p-toast-container.entry.js +16 -0
- package/dist/esm/p-toast.entry.js +29 -0
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{popper-41c6f9cd.js → popper-42db9fbd.js} +60 -49
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -0
- package/dist/paperless/p-05f73516.entry.js +1 -0
- package/dist/paperless/p-0688d548.entry.js +1 -0
- package/dist/paperless/p-07f28695.entry.js +1 -0
- package/dist/paperless/p-09ea2a1a.js +1 -0
- package/dist/paperless/p-12f5c483.entry.js +1 -0
- package/dist/paperless/p-1ba7cadc.entry.js +1 -0
- package/dist/paperless/p-2e47afc7.entry.js +1 -0
- package/dist/paperless/p-37fa2c13.entry.js +1 -0
- package/dist/paperless/p-3946e0a3.entry.js +1 -0
- package/dist/paperless/p-3a98b145.entry.js +1 -0
- package/dist/paperless/p-43d1544e.entry.js +1 -0
- package/dist/paperless/p-4e650fe4.js +1 -0
- package/dist/paperless/p-4fcd08ce.entry.js +1 -0
- package/dist/paperless/p-529ccaf7.entry.js +1 -0
- package/dist/paperless/p-5b7c22ee.entry.js +1 -0
- package/dist/paperless/p-62d49606.entry.js +1 -0
- package/dist/paperless/p-63de1c3d.entry.js +1 -0
- package/dist/paperless/p-681ed79b.entry.js +1 -0
- package/dist/paperless/p-6c60fd3d.js +1 -0
- package/dist/paperless/p-7df6230f.entry.js +1 -0
- package/dist/paperless/p-8a6728d5.js +1 -0
- package/dist/paperless/p-8c67da86.entry.js +1 -0
- package/dist/paperless/p-91d032b2.entry.js +1 -0
- package/dist/paperless/p-9315c1e2.entry.js +1 -0
- package/dist/paperless/p-98e3dcd7.entry.js +1 -0
- package/dist/paperless/p-ac5a17c4.entry.js +1 -0
- package/dist/paperless/p-b273ac6d.js +1 -0
- package/dist/paperless/p-b4af4b21.entry.js +1 -0
- package/dist/paperless/p-b72559e4.entry.js +1 -0
- package/dist/paperless/p-b8dd503c.entry.js +1 -0
- package/dist/paperless/p-c296a33d.entry.js +1 -0
- package/dist/paperless/p-c80933ab.entry.js +1 -0
- package/dist/paperless/p-c9f2fa8f.js +2 -0
- package/dist/paperless/p-d1022d64.entry.js +1 -0
- package/dist/paperless/p-d2cf5ab2.entry.js +1 -0
- package/dist/paperless/p-d5885f2b.entry.js +1 -0
- package/dist/paperless/p-dbb409ab.entry.js +1 -0
- package/dist/paperless/p-ddd3372b.entry.js +1 -0
- package/dist/paperless/p-e3e3c4d1.entry.js +1 -0
- package/dist/paperless/p-e4bd4022.entry.js +1 -0
- package/dist/paperless/p-e9ed032e.entry.js +1 -0
- package/dist/paperless/p-f1867cb5.entry.js +1 -0
- package/dist/paperless/p-f499f696.entry.js +1 -0
- package/dist/paperless/p-f86fcdf4.js +1 -0
- package/dist/paperless/p-fa3216a5.entry.js +1 -0
- package/dist/paperless/p-fd1e32c1.entry.js +1 -0
- package/dist/paperless/paperless.css +673 -26741
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/style/_fonts.scss +70 -0
- package/dist/style/_helpers.scss +5 -0
- package/dist/style/_reset.scss +31 -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 +22 -0
- package/dist/style/form/_mixins.scss +107 -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/paperless.scss +12 -0
- package/dist/sw.js +2 -644
- package/dist/sw.js.map +1 -0
- package/dist/tailwind/animation.js +87 -0
- package/dist/tailwind/backdrop-blur.js +3 -0
- package/dist/tailwind/border-radius.js +11 -0
- package/dist/tailwind/colors.js +52 -0
- package/dist/tailwind/height.js +5 -0
- package/dist/tailwind/rotate.js +8 -0
- package/dist/tailwind/scale.js +3 -0
- package/dist/tailwind/screens.js +8 -0
- package/dist/tailwind/shadows.js +13 -0
- package/dist/tailwind/spacing.js +10 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/width.js +23 -0
- package/dist/tailwind/z-index.js +17 -0
- package/dist/tailwind.config.js +29 -14
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
- package/dist/types/components/atoms/button/button.component.d.ts +14 -1
- package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
- package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
- package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
- package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
- 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 +9 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
- package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
- package/dist/types/components/atoms/label/label.component.d.ts +33 -0
- package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
- package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +11 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +11 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +3 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +2 -1
- package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
- package/dist/types/components/atoms/status/status.component.d.ts +2 -1
- package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +19 -0
- package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
- package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
- package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -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 +11 -2
- package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -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 +53 -0
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +93 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +30 -3
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +67 -0
- 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 +20 -0
- package/dist/types/components/molecules/select/select.component.d.ts +115 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
- 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 +87 -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 +58 -0
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
- package/dist/types/components/organisms/table/table.component.d.ts +214 -0
- package/dist/types/components.d.ts +2829 -327
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +27 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/icons.d.ts +7 -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-5b279812.js +2 -0
- package/dist/workbox-5b279812.js.map +1 -0
- package/loader/package.json +1 -0
- package/package.json +65 -61
- package/dist/build/p-17c11169.entry.js +0 -1
- package/dist/build/p-41e5458b.entry.js +0 -1
- package/dist/build/p-42dab9d4.entry.js +0 -1
- package/dist/build/p-47b52f92.entry.js +0 -1
- package/dist/build/p-5ec6ea71.entry.js +0 -1
- package/dist/build/p-75f909ab.entry.js +0 -1
- package/dist/build/p-76464e0b.js +0 -2
- package/dist/build/p-8501ba07.entry.js +0 -1
- package/dist/build/p-87356769.entry.js +0 -1
- package/dist/build/p-9513868f.entry.js +0 -1
- package/dist/build/p-a669807e.entry.js +0 -1
- package/dist/build/p-a7086ffa.js +0 -1
- package/dist/build/p-aa28fef8.entry.js +0 -1
- package/dist/build/p-aae3d4f0.entry.js +0 -1
- package/dist/build/p-adcb0b93.entry.js +0 -1
- package/dist/build/p-bbec0e86.entry.js +0 -1
- package/dist/build/p-e7019eab.entry.js +0 -1
- package/dist/build/p-f689996b.entry.js +0 -1
- package/dist/build/p-faa4ee42.entry.js +0 -1
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
- package/dist/cjs/p-dropdown.cjs.entry.js +0 -141
- package/dist/cjs/p-helper.cjs.entry.js +0 -19
- 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-tooltip.cjs.entry.js +0 -137
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/collection/utils/utils.js +0 -3
- package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
- package/dist/esm/p-dropdown.entry.js +0 -137
- package/dist/esm/p-helper.entry.js +0 -15
- 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-tooltip.entry.js +0 -133
- package/dist/paperless/p-17c11169.entry.js +0 -1
- package/dist/paperless/p-41e5458b.entry.js +0 -1
- package/dist/paperless/p-42dab9d4.entry.js +0 -1
- package/dist/paperless/p-47b52f92.entry.js +0 -1
- package/dist/paperless/p-5ec6ea71.entry.js +0 -1
- package/dist/paperless/p-75f909ab.entry.js +0 -1
- package/dist/paperless/p-76464e0b.js +0 -2
- package/dist/paperless/p-8501ba07.entry.js +0 -1
- package/dist/paperless/p-87356769.entry.js +0 -1
- package/dist/paperless/p-9513868f.entry.js +0 -1
- package/dist/paperless/p-a669807e.entry.js +0 -1
- package/dist/paperless/p-a7086ffa.js +0 -1
- package/dist/paperless/p-aa28fef8.entry.js +0 -1
- package/dist/paperless/p-aae3d4f0.entry.js +0 -1
- package/dist/paperless/p-adcb0b93.entry.js +0 -1
- package/dist/paperless/p-bbec0e86.entry.js +0 -1
- package/dist/paperless/p-e7019eab.entry.js +0 -1
- package/dist/paperless/p-f689996b.entry.js +0 -1
- package/dist/paperless/p-faa4ee42.entry.js +0 -1
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$4 } from './button.component.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './icon.component.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './loader.component.js';
|
|
5
|
+
|
|
6
|
+
const toastComponentCss = ".static{position:static!important}.flex{display:flex!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-shrink-0{flex-shrink:0!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded{border-radius:.25rem!important}.border-l-4{border-left-width:4px!important}.border-solid{border-style:solid!important}.border-l-positive{border-left-color:rgb(40 209 124/var(--tw-border-opacity))!important}.border-l-positive,.border-l-unbiased{--tw-border-opacity:1!important}.border-l-unbiased{border-left-color:rgb(255 199 45/var(--tw-border-opacity))!important}.border-l-negative{--tw-border-opacity:1!important;border-left-color:rgb(185 30 40/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm{color:rgb(81 83 107/var(--tw-text-opacity))!important}.text-storm,.text-storm-medium{--tw-text-opacity:1!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-left-width:4px!important;border-radius:.25rem;border-style:solid!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;box-sizing:border-box;display:flex;gap:.5rem;justify-content:space-between;padding:1rem 1rem 1rem 1.25rem;width:100%}:host p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.variant-positive){--tw-border-opacity:1!important;border-left-color:rgb(40 209 124/var(--tw-border-opacity))!important}:host(.variant-unbiased){--tw-border-opacity:1!important;border-left-color:rgb(255 199 45/var(--tw-border-opacity))!important}:host(.variant-negative){--tw-border-opacity:1!important;border-left-color:rgb(185 30 40/var(--tw-border-opacity))!important}";
|
|
7
|
+
|
|
8
|
+
const Toast = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.action = createEvent(this, "action", 7);
|
|
14
|
+
this.variant = 'positive';
|
|
15
|
+
this.header = undefined;
|
|
16
|
+
this.content = undefined;
|
|
17
|
+
this.enableAction = true;
|
|
18
|
+
this.actionIcon = 'negative';
|
|
19
|
+
this.actionIconFlip = undefined;
|
|
20
|
+
this.actionIconRotate = undefined;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
return (h(Host, { class: `p-toast variant-${this.variant}`, onClick: () => this._onClick() }, h("div", { class: "flex flex-col w-full min-w-0" }, h("p", { class: "font-semibold text-storm" }, ((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) ? (this.header) : (h("slot", { name: "header" }))), h("p", { class: "text-sm text-storm-medium w-full" }, ((_b = this.content) === null || _b === void 0 ? void 0 : _b.length) ? (this.content) : (h("slot", { name: "content" })))), this.enableAction && (h("p-button", { variant: "secondary", iconOnly: true, size: "small", icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: "flex-shrink-0" }))));
|
|
25
|
+
}
|
|
26
|
+
_onClick() {
|
|
27
|
+
if (this.enableAction) {
|
|
28
|
+
this.action.emit();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
static get style() { return toastComponentCss; }
|
|
32
|
+
}, [1, "p-toast", {
|
|
33
|
+
"variant": [1],
|
|
34
|
+
"header": [1],
|
|
35
|
+
"content": [1],
|
|
36
|
+
"enableAction": [4, "enable-action"],
|
|
37
|
+
"actionIcon": [1, "action-icon"],
|
|
38
|
+
"actionIconFlip": [1, "action-icon-flip"],
|
|
39
|
+
"actionIconRotate": [2, "action-icon-rotate"]
|
|
40
|
+
}]);
|
|
41
|
+
function defineCustomElement$1() {
|
|
42
|
+
if (typeof customElements === "undefined") {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const components = ["p-toast", "p-button", "p-icon", "p-loader"];
|
|
46
|
+
components.forEach(tagName => { switch (tagName) {
|
|
47
|
+
case "p-toast":
|
|
48
|
+
if (!customElements.get(tagName)) {
|
|
49
|
+
customElements.define(tagName, Toast);
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
case "p-button":
|
|
53
|
+
if (!customElements.get(tagName)) {
|
|
54
|
+
defineCustomElement$4();
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case "p-icon":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
defineCustomElement$3();
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
case "p-loader":
|
|
63
|
+
if (!customElements.get(tagName)) {
|
|
64
|
+
defineCustomElement$2();
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
} });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const PToast = Toast;
|
|
71
|
+
const defineCustomElement = defineCustomElement$1;
|
|
72
|
+
|
|
73
|
+
export { PToast, defineCustomElement };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization.js';
|
|
3
|
+
import { d as defineCustomElement$6 } from './button.component.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './dropdown.component.js';
|
|
5
|
+
import { d as defineCustomElement$4 } from './dropdown-menu-container.component.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './dropdown-menu-item.component.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './loader.component.js';
|
|
9
|
+
|
|
10
|
+
const defaultSize = 12;
|
|
11
|
+
const defaultSizeOptions = [12, 24, 68, 136];
|
|
12
|
+
|
|
13
|
+
const PageSizeSelect = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.__attachShadow();
|
|
18
|
+
this.sizeChange = createEvent(this, "sizeChange", 7);
|
|
19
|
+
this._defaultButtonTemplate = (size) => formatTranslation(this._locales.item, { size });
|
|
20
|
+
this._defaultItemTemplate = (size) => formatTranslation(this._locales.item, { size });
|
|
21
|
+
this.size = defaultSize;
|
|
22
|
+
this.sizeOptions = defaultSizeOptions;
|
|
23
|
+
this.chevronPosition = 'start';
|
|
24
|
+
this.buttonSize = 'small';
|
|
25
|
+
this.buttonTemplate = this._defaultButtonTemplate;
|
|
26
|
+
this.itemTemplate = this._defaultItemTemplate;
|
|
27
|
+
this.hidden = false;
|
|
28
|
+
this._locales = {};
|
|
29
|
+
}
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
this._setLocales();
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return (h(Host, { class: `p-page-size-select ${this.hidden && 'hidden'}` }, h("p-dropdown", { placement: "top-start", chevronPosition: this.chevronPosition, chevronDirection: "down" }, h("p-button", { variant: "secondary", slot: "trigger", size: this.buttonSize }, this.buttonTemplate
|
|
35
|
+
? this.buttonTemplate(this.size)
|
|
36
|
+
: this._defaultButtonTemplate(this.size)), h("slot", { slot: "items" }, this.sizeOptions.map((option) => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
37
|
+
? this.itemTemplate(this.size)
|
|
38
|
+
: this._defaultItemTemplate(option))))))));
|
|
39
|
+
}
|
|
40
|
+
async _setLocales() {
|
|
41
|
+
this._locales = await getLocaleComponentStrings(this._el);
|
|
42
|
+
}
|
|
43
|
+
_changeSize(s) {
|
|
44
|
+
if (!s) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.size = s;
|
|
48
|
+
this.sizeChange.emit(this.size);
|
|
49
|
+
}
|
|
50
|
+
get _el() { return this; }
|
|
51
|
+
}, [1, "p-page-size-select", {
|
|
52
|
+
"size": [1538],
|
|
53
|
+
"sizeOptions": [16],
|
|
54
|
+
"chevronPosition": [1, "chevron-position"],
|
|
55
|
+
"buttonSize": [1, "button-size"],
|
|
56
|
+
"buttonTemplate": [16],
|
|
57
|
+
"itemTemplate": [16],
|
|
58
|
+
"hidden": [4],
|
|
59
|
+
"_locales": [32]
|
|
60
|
+
}, [[16, "localeChanged", "_setLocales"]]]);
|
|
61
|
+
function defineCustomElement() {
|
|
62
|
+
if (typeof customElements === "undefined") {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const components = ["p-page-size-select", "p-button", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon", "p-loader"];
|
|
66
|
+
components.forEach(tagName => { switch (tagName) {
|
|
67
|
+
case "p-page-size-select":
|
|
68
|
+
if (!customElements.get(tagName)) {
|
|
69
|
+
customElements.define(tagName, PageSizeSelect);
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "p-button":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
defineCustomElement$6();
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "p-dropdown":
|
|
78
|
+
if (!customElements.get(tagName)) {
|
|
79
|
+
defineCustomElement$5();
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
case "p-dropdown-menu-container":
|
|
83
|
+
if (!customElements.get(tagName)) {
|
|
84
|
+
defineCustomElement$4();
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
case "p-dropdown-menu-item":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
defineCustomElement$3();
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "p-icon":
|
|
93
|
+
if (!customElements.get(tagName)) {
|
|
94
|
+
defineCustomElement$2();
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case "p-loader":
|
|
98
|
+
if (!customElements.get(tagName)) {
|
|
99
|
+
defineCustomElement$1();
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
} });
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { PageSizeSelect as P, defaultSize as a, defaultSizeOptions as b, defineCustomElement as d };
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const paginationItemComponentCss = "
|
|
3
|
+
const paginationItemComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-8{height:2rem!important}.h-6{height:1.5rem!important}.w-3{width:.75rem!important}.w-6{width:1.5rem!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-indigo,.text-storm-medium{--tw-text-opacity:1!important}.text-indigo{color:rgb(82 138 250/var(--tw-text-opacity))!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}*{box-sizing:border-box}:host{--tw-text-opacity:1;align-items:center;border-radius:.25rem;color:rgb(128 130 158/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;font-weight:600;height:2rem;justify-content:center;line-height:1.25rem;width:2rem}:host(:focus),:host(:hover){--tw-text-opacity:1;color:rgb(81 83 107/var(--tw-text-opacity))}:host(.active){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(82 138 250/var(--tw-text-opacity))}.max-w-\\[20rem\\]{max-width:20rem!important}.w-3\\/4{width:75%!important}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!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}";
|
|
4
4
|
|
|
5
5
|
const PaginationItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|
|
9
9
|
this.__attachShadow();
|
|
10
|
-
/**
|
|
11
|
-
* Wether the pagination item is active
|
|
12
|
-
*/
|
|
13
10
|
this.active = false;
|
|
14
11
|
}
|
|
15
12
|
render() {
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './pagination-item.component.js';
|
|
4
|
+
|
|
5
|
+
const paginationComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-3{width:.75rem!important}.w-6{width:1.5rem!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-end{justify-content:flex-end!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!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}*{box-sizing:border-box}p-pagination{display:flex}.max-w-\\[20rem\\]{max-width:20rem!important}.w-3\\/4{width:75%!important}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!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}";
|
|
6
|
+
|
|
7
|
+
const Pagination = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.pageChange = createEvent(this, "pageChange", 7);
|
|
12
|
+
this._pages = [];
|
|
13
|
+
this._set = [];
|
|
14
|
+
this._nextClick = () => {
|
|
15
|
+
const nextPage = this.page + 1;
|
|
16
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this._changePage(nextPage);
|
|
20
|
+
};
|
|
21
|
+
this._pageClick = (p) => this._changePage(p);
|
|
22
|
+
this._generateSet = (range = 1, enableBoundaries = true) => {
|
|
23
|
+
const totalPages = this._pages.length;
|
|
24
|
+
if (!totalPages) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
let start = this.page - range;
|
|
28
|
+
let end = this.page + range;
|
|
29
|
+
if (end > totalPages) {
|
|
30
|
+
end = totalPages;
|
|
31
|
+
start = totalPages - range * 2;
|
|
32
|
+
start = start < 1 ? 1 : start;
|
|
33
|
+
}
|
|
34
|
+
if (start <= 1) {
|
|
35
|
+
start = 1;
|
|
36
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
37
|
+
}
|
|
38
|
+
const set = [];
|
|
39
|
+
const previous = {
|
|
40
|
+
type: 'previous',
|
|
41
|
+
value: h("p-icon", { variant: "chevron", rotate: 90 }),
|
|
42
|
+
};
|
|
43
|
+
const next = {
|
|
44
|
+
type: 'next',
|
|
45
|
+
value: h("p-icon", { variant: "chevron", rotate: -90 }),
|
|
46
|
+
};
|
|
47
|
+
// Disable page range, display all the pages
|
|
48
|
+
if (range === null) {
|
|
49
|
+
const p = this._pages.map((p) => ({
|
|
50
|
+
type: 'page',
|
|
51
|
+
value: p,
|
|
52
|
+
}));
|
|
53
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
54
|
+
}
|
|
55
|
+
if (enableBoundaries) {
|
|
56
|
+
set.push(previous);
|
|
57
|
+
}
|
|
58
|
+
if (start <= 3) {
|
|
59
|
+
for (let i = 1; i < start; i++) {
|
|
60
|
+
set.push({
|
|
61
|
+
type: 'page',
|
|
62
|
+
value: this._pages[i - 1],
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
set.push({
|
|
68
|
+
type: 'page',
|
|
69
|
+
value: 1,
|
|
70
|
+
});
|
|
71
|
+
set.push({
|
|
72
|
+
type: 'ellipsis',
|
|
73
|
+
value: 'ellipsis',
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
for (let i = start; i <= end; i++) {
|
|
77
|
+
set.push({
|
|
78
|
+
type: 'page',
|
|
79
|
+
value: this._pages[i - 1],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (end >= totalPages - 2) {
|
|
83
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
84
|
+
set.push({
|
|
85
|
+
type: 'page',
|
|
86
|
+
value: this._pages[i - 1],
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
set.push({
|
|
92
|
+
type: 'ellipsis',
|
|
93
|
+
});
|
|
94
|
+
set.push({
|
|
95
|
+
type: 'page',
|
|
96
|
+
value: this._pages[this._pages.length - 1],
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (enableBoundaries) {
|
|
100
|
+
set.push(next);
|
|
101
|
+
}
|
|
102
|
+
return set;
|
|
103
|
+
};
|
|
104
|
+
this.page = 1;
|
|
105
|
+
this.pageSize = 12;
|
|
106
|
+
this.hideOnSinglePage = false;
|
|
107
|
+
this.total = undefined;
|
|
108
|
+
}
|
|
109
|
+
componentWillRender() {
|
|
110
|
+
this._generate();
|
|
111
|
+
}
|
|
112
|
+
render() {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
return (h(Host, { class: `p-pagination ${this.hideOnSinglePage && ((_a = this._set) === null || _a === void 0 ? void 0 : _a.length) === 3 && 'hidden'}` }, (_b = this._set) === null || _b === void 0 ? void 0 : _b.map((p) => {
|
|
115
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
116
|
+
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
117
|
+
? this._previousClick()
|
|
118
|
+
: this._nextClick() }, p.value));
|
|
119
|
+
}
|
|
120
|
+
if (p.type === 'ellipsis') {
|
|
121
|
+
return h("p-pagination-item", null, "...");
|
|
122
|
+
}
|
|
123
|
+
return (h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
124
|
+
})));
|
|
125
|
+
}
|
|
126
|
+
pageChangeHandler() {
|
|
127
|
+
this._generate();
|
|
128
|
+
}
|
|
129
|
+
_generate() {
|
|
130
|
+
var _a;
|
|
131
|
+
this._pages = this._generatePages();
|
|
132
|
+
this._set = this._generateSet();
|
|
133
|
+
if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
134
|
+
this._changePage(this._pages.length);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
_changePage(p) {
|
|
138
|
+
if (!p) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
this.page = p;
|
|
142
|
+
this.pageChange.emit(this.page);
|
|
143
|
+
}
|
|
144
|
+
_previousClick() {
|
|
145
|
+
const previousPage = this.page - 1;
|
|
146
|
+
if (previousPage < this._pages[0]) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this._changePage(previousPage);
|
|
150
|
+
}
|
|
151
|
+
_generatePages() {
|
|
152
|
+
if (!this.total || !this.pageSize) {
|
|
153
|
+
return [];
|
|
154
|
+
}
|
|
155
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
156
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
157
|
+
}
|
|
158
|
+
static get watchers() { return {
|
|
159
|
+
"page": ["pageChangeHandler"],
|
|
160
|
+
"pageSize": ["pageChangeHandler"],
|
|
161
|
+
"total": ["pageChangeHandler"]
|
|
162
|
+
}; }
|
|
163
|
+
static get style() { return paginationComponentCss; }
|
|
164
|
+
}, [0, "p-pagination", {
|
|
165
|
+
"page": [1538],
|
|
166
|
+
"pageSize": [2, "page-size"],
|
|
167
|
+
"hideOnSinglePage": [4, "hide-on-single-page"],
|
|
168
|
+
"total": [2]
|
|
169
|
+
}]);
|
|
170
|
+
function defineCustomElement() {
|
|
171
|
+
if (typeof customElements === "undefined") {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
const components = ["p-pagination", "p-icon", "p-pagination-item"];
|
|
175
|
+
components.forEach(tagName => { switch (tagName) {
|
|
176
|
+
case "p-pagination":
|
|
177
|
+
if (!customElements.get(tagName)) {
|
|
178
|
+
customElements.define(tagName, Pagination);
|
|
179
|
+
}
|
|
180
|
+
break;
|
|
181
|
+
case "p-icon":
|
|
182
|
+
if (!customElements.get(tagName)) {
|
|
183
|
+
defineCustomElement$2();
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
case "p-pagination-item":
|
|
187
|
+
if (!customElements.get(tagName)) {
|
|
188
|
+
defineCustomElement$1();
|
|
189
|
+
}
|
|
190
|
+
break;
|
|
191
|
+
} });
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export { Pagination as P, defineCustomElement as d };
|
|
@@ -158,38 +158,57 @@ var max = Math.max;
|
|
|
158
158
|
var min = Math.min;
|
|
159
159
|
var round = Math.round;
|
|
160
160
|
|
|
161
|
-
function
|
|
161
|
+
function getUAString() {
|
|
162
|
+
var uaData = navigator.userAgentData;
|
|
163
|
+
|
|
164
|
+
if (uaData != null && uaData.brands) {
|
|
165
|
+
return uaData.brands.map(function (item) {
|
|
166
|
+
return item.brand + "/" + item.version;
|
|
167
|
+
}).join(' ');
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return navigator.userAgent;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function isLayoutViewport() {
|
|
174
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
162
178
|
if (includeScale === void 0) {
|
|
163
179
|
includeScale = false;
|
|
164
180
|
}
|
|
165
181
|
|
|
166
|
-
|
|
182
|
+
if (isFixedStrategy === void 0) {
|
|
183
|
+
isFixedStrategy = false;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
var clientRect = element.getBoundingClientRect();
|
|
167
187
|
var scaleX = 1;
|
|
168
188
|
var scaleY = 1;
|
|
169
189
|
|
|
170
|
-
if (isHTMLElement(element)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
// Fallback to 1 in case both values are `0`
|
|
174
|
-
|
|
175
|
-
if (offsetWidth > 0) {
|
|
176
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (offsetHeight > 0) {
|
|
180
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
181
|
-
}
|
|
190
|
+
if (includeScale && isHTMLElement(element)) {
|
|
191
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
192
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
182
193
|
}
|
|
183
194
|
|
|
195
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
196
|
+
visualViewport = _ref.visualViewport;
|
|
197
|
+
|
|
198
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
199
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
200
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
201
|
+
var width = clientRect.width / scaleX;
|
|
202
|
+
var height = clientRect.height / scaleY;
|
|
184
203
|
return {
|
|
185
|
-
width:
|
|
186
|
-
height:
|
|
187
|
-
top:
|
|
188
|
-
right:
|
|
189
|
-
bottom:
|
|
190
|
-
left:
|
|
191
|
-
x:
|
|
192
|
-
y:
|
|
204
|
+
width: width,
|
|
205
|
+
height: height,
|
|
206
|
+
top: y,
|
|
207
|
+
right: x + width,
|
|
208
|
+
bottom: y + height,
|
|
209
|
+
left: x,
|
|
210
|
+
x: x,
|
|
211
|
+
y: y
|
|
193
212
|
};
|
|
194
213
|
}
|
|
195
214
|
|
|
@@ -284,8 +303,8 @@ function getTrueOffsetParent(element) {
|
|
|
284
303
|
|
|
285
304
|
|
|
286
305
|
function getContainingBlock(element) {
|
|
287
|
-
var isFirefox =
|
|
288
|
-
var isIE =
|
|
306
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
307
|
+
var isIE = /Trident/i.test(getUAString());
|
|
289
308
|
|
|
290
309
|
if (isIE && isHTMLElement(element)) {
|
|
291
310
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
@@ -706,31 +725,21 @@ function getWindowScrollBarX(element) {
|
|
|
706
725
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
707
726
|
}
|
|
708
727
|
|
|
709
|
-
function getViewportRect(element) {
|
|
728
|
+
function getViewportRect(element, strategy) {
|
|
710
729
|
var win = getWindow(element);
|
|
711
730
|
var html = getDocumentElement(element);
|
|
712
731
|
var visualViewport = win.visualViewport;
|
|
713
732
|
var width = html.clientWidth;
|
|
714
733
|
var height = html.clientHeight;
|
|
715
734
|
var x = 0;
|
|
716
|
-
var y = 0;
|
|
717
|
-
// can be obscured underneath it.
|
|
718
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
719
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
720
|
-
// to overflow the bottom of the screen too early.
|
|
735
|
+
var y = 0;
|
|
721
736
|
|
|
722
737
|
if (visualViewport) {
|
|
723
738
|
width = visualViewport.width;
|
|
724
|
-
height = visualViewport.height;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
729
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
730
|
-
// 0.001
|
|
731
|
-
// Fallback here: "Not Safari" userAgent
|
|
732
|
-
|
|
733
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
739
|
+
height = visualViewport.height;
|
|
740
|
+
var layoutViewport = isLayoutViewport();
|
|
741
|
+
|
|
742
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
734
743
|
x = visualViewport.offsetLeft;
|
|
735
744
|
y = visualViewport.offsetTop;
|
|
736
745
|
}
|
|
@@ -824,8 +833,8 @@ function rectToClientRect(rect) {
|
|
|
824
833
|
});
|
|
825
834
|
}
|
|
826
835
|
|
|
827
|
-
function getInnerBoundingClientRect(element) {
|
|
828
|
-
var rect = getBoundingClientRect(element);
|
|
836
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
837
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
829
838
|
rect.top = rect.top + element.clientTop;
|
|
830
839
|
rect.left = rect.left + element.clientLeft;
|
|
831
840
|
rect.bottom = rect.top + element.clientHeight;
|
|
@@ -837,8 +846,8 @@ function getInnerBoundingClientRect(element) {
|
|
|
837
846
|
return rect;
|
|
838
847
|
}
|
|
839
848
|
|
|
840
|
-
function getClientRectFromMixedType(element, clippingParent) {
|
|
841
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
849
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
850
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
842
851
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
843
852
|
// clipping (or hiding) overflowing elements with a position different from
|
|
844
853
|
// `initial`
|
|
@@ -861,18 +870,18 @@ function getClippingParents(element) {
|
|
|
861
870
|
// clipping parents
|
|
862
871
|
|
|
863
872
|
|
|
864
|
-
function getClippingRect(element, boundary, rootBoundary) {
|
|
873
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
865
874
|
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
866
875
|
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
867
876
|
var firstClippingParent = clippingParents[0];
|
|
868
877
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
869
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
878
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
870
879
|
accRect.top = max(rect.top, accRect.top);
|
|
871
880
|
accRect.right = min(rect.right, accRect.right);
|
|
872
881
|
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
873
882
|
accRect.left = max(rect.left, accRect.left);
|
|
874
883
|
return accRect;
|
|
875
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
884
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
876
885
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
877
886
|
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
878
887
|
clippingRect.x = clippingRect.left;
|
|
@@ -953,6 +962,8 @@ function detectOverflow(state, options) {
|
|
|
953
962
|
var _options = options,
|
|
954
963
|
_options$placement = _options.placement,
|
|
955
964
|
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
965
|
+
_options$strategy = _options.strategy,
|
|
966
|
+
strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
|
|
956
967
|
_options$boundary = _options.boundary,
|
|
957
968
|
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
958
969
|
_options$rootBoundary = _options.rootBoundary,
|
|
@@ -967,7 +978,7 @@ function detectOverflow(state, options) {
|
|
|
967
978
|
var altContext = elementContext === popper ? reference : popper;
|
|
968
979
|
var popperRect = state.rects.popper;
|
|
969
980
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
970
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
981
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
|
|
971
982
|
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
972
983
|
var popperOffsets = computeOffsets({
|
|
973
984
|
reference: referenceClientRect,
|
|
@@ -1481,7 +1492,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1481
1492
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1482
1493
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1483
1494
|
var documentElement = getDocumentElement(offsetParent);
|
|
1484
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
1495
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
1485
1496
|
var scroll = {
|
|
1486
1497
|
scrollLeft: 0,
|
|
1487
1498
|
scrollTop: 0
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const segmentContainerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-8{height:2rem!important}.h-6{height:1.5rem!important}.w-3{width:.75rem!important}.w-6{width:1.5rem!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-end{justify-content:flex-end!important}.gap-4{gap:1rem!important}.self-center{align-self:center!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!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}*{box-sizing:border-box}p-segment-container{--tw-bg-opacity:1;--tw-border-opacity:1;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(218 230 240/var(--tw-border-opacity));border-radius:.375rem;border-style:solid;border-width:1px;display:flex;gap:.25rem;height:2rem;padding:.25rem}.max-w-\\[20rem\\]{max-width:20rem!important}.w-3\\/4{width:75%!important}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!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}";
|
|
4
|
+
|
|
5
|
+
const SegmentContainer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, { class: "p-segment-container" }, h("slot", null)));
|
|
12
|
+
}
|
|
13
|
+
static get style() { return segmentContainerComponentCss; }
|
|
14
|
+
}, [4, "p-segment-container"]);
|
|
15
|
+
function defineCustomElement() {
|
|
16
|
+
if (typeof customElements === "undefined") {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const components = ["p-segment-container"];
|
|
20
|
+
components.forEach(tagName => { switch (tagName) {
|
|
21
|
+
case "p-segment-container":
|
|
22
|
+
if (!customElements.get(tagName)) {
|
|
23
|
+
customElements.define(tagName, SegmentContainer);
|
|
24
|
+
}
|
|
25
|
+
break;
|
|
26
|
+
} });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { SegmentContainer as S, defineCustomElement as d };
|