@paperless/core 0.1.0-alpha.21 → 0.1.0-alpha.210
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 +1935 -0
- 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/icons/camera.svg +10 -0
- package/dist/assets/icons/checklist.svg +17 -0
- package/dist/assets/icons/folder.svg +19 -0
- package/dist/assets/icons/integration.svg +17 -0
- package/dist/assets/icons/menu.svg +25 -0
- package/dist/assets/icons/more.svg +18 -0
- package/dist/assets/icons/signout.svg +23 -0
- package/dist/assets/icons/switch.svg +20 -0
- package/dist/assets/icons/task.svg +17 -0
- package/dist/assets/icons/template.svg +17 -0
- package/dist/assets/illustrations/e-mail.svg +1 -0
- package/dist/build/index.esm.js +1 -0
- package/dist/build/p-06899ffb.entry.js +1 -0
- package/dist/build/p-09ea2a1a.js +1 -0
- package/dist/build/p-150aadaf.entry.js +1 -0
- package/dist/build/p-15d13147.entry.js +1 -0
- package/dist/build/p-1f6a0296.entry.js +1 -0
- package/dist/build/p-2bf44a1d.entry.js +1 -0
- package/dist/build/p-3180c96e.entry.js +1 -0
- package/dist/build/p-3b243f16.entry.js +1 -0
- package/dist/build/p-3ef5e549.js +1 -0
- package/dist/build/p-41588819.entry.js +1 -0
- package/dist/build/p-44d46765.entry.js +1 -0
- package/dist/build/p-4588a510.entry.js +1 -0
- package/dist/build/p-48c3b71e.entry.js +1 -0
- package/dist/build/p-52ab1f62.entry.js +1 -0
- package/dist/build/p-58dd41be.entry.js +1 -0
- package/dist/build/p-5a71d6ae.entry.js +1 -0
- package/dist/build/p-600a2f21.entry.js +1 -0
- package/dist/build/p-61975c9a.entry.js +1 -0
- package/dist/build/p-6c60fd3d.js +1 -0
- package/dist/{paperless/p-23980fbb.entry.js → build/p-78db3d3c.entry.js} +1 -1
- package/dist/build/p-7a77a930.entry.js +1 -0
- package/dist/build/p-7e9a866e.entry.js +1 -0
- package/dist/build/p-8262fe7e.entry.js +1 -0
- package/dist/build/p-8614bd10.entry.js +1 -0
- package/dist/build/p-86a6c56a.entry.js +1 -0
- package/dist/build/p-8a6728d5.js +1 -0
- package/dist/build/p-8f179b0d.entry.js +1 -0
- package/dist/build/p-98332f25.entry.js +1 -0
- package/dist/build/p-9fba2393.entry.js +1 -0
- package/dist/build/p-a0e3e68d.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-aae4caab.entry.js +1 -0
- package/dist/build/p-ad147b1b.entry.js +1 -0
- package/dist/build/p-b797b0ce.entry.js +1 -0
- package/dist/build/p-c11282d2.entry.js +1 -0
- package/dist/build/p-c4110c09.entry.js +1 -0
- package/dist/build/p-d0a9b97b.entry.js +1 -0
- package/dist/build/p-d17b038f.entry.js +1 -0
- package/dist/build/p-d9c1fe13.js +2 -0
- package/dist/build/p-f45b75ae.entry.js +1 -0
- package/dist/build/paperless.css +331 -20
- 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-6b6e08cc.js → index-cf92051a.js} +211 -5
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/localization-9c989018.js +60 -0
- package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
- package/dist/cjs/p-accordion.cjs.entry.js +42 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
- package/dist/cjs/p-avatar.cjs.entry.js +19 -5
- package/dist/cjs/p-button_3.cjs.entry.js +337 -65
- package/dist/cjs/p-card-body.cjs.entry.js +23 -0
- package/dist/cjs/p-card-container.cjs.entry.js +27 -0
- package/dist/cjs/p-card-header.cjs.entry.js +24 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +221 -0
- package/dist/cjs/p-counter.cjs.entry.js +11 -3
- package/dist/cjs/p-divider.cjs.entry.js +6 -3
- package/dist/cjs/p-dropdown_3.cjs.entry.js +205 -0
- package/dist/cjs/p-helper_2.cjs.entry.js +160 -0
- package/dist/cjs/p-illustration.cjs.entry.js +5 -2
- package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
- package/dist/cjs/p-input-group_4.cjs.entry.js +144 -0
- package/dist/cjs/p-layout.cjs.entry.js +23 -0
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +101 -0
- package/dist/cjs/p-modal.cjs.entry.js +53 -0
- package/dist/cjs/p-navbar.cjs.entry.js +34 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +251 -0
- package/dist/cjs/p-profile.cjs.entry.js +49 -0
- package/dist/cjs/p-select.cjs.entry.js +179 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +23 -0
- package/dist/cjs/p-status.cjs.entry.js +49 -0
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
- package/dist/cjs/p-stepper.cjs.entry.js +49 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
- package/dist/cjs/p-table-cell_5.cjs.entry.js +1179 -0
- package/dist/cjs/p-table-column.cjs.entry.js +36 -0
- package/dist/cjs/p-table.cjs.entry.js +354 -0
- package/dist/cjs/p-toast-container.cjs.entry.js +30 -0
- package/dist/cjs/p-toast.cjs.entry.js +33 -0
- package/dist/cjs/paperless.cjs.js +3 -3
- package/dist/{esm/p-tooltip.entry.js → cjs/popper-e0c4ed4c.js} +2 -123
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/checklist.svg +17 -0
- package/dist/collection/assets/icons/folder.svg +19 -0
- package/dist/collection/assets/icons/integration.svg +17 -0
- package/dist/collection/assets/icons/menu.svg +25 -0
- package/dist/collection/assets/icons/more.svg +18 -0
- package/dist/collection/assets/icons/signout.svg +23 -0
- package/dist/collection/assets/icons/switch.svg +20 -0
- package/dist/collection/assets/icons/task.svg +17 -0
- package/dist/collection/assets/icons/template.svg +17 -0
- package/dist/collection/assets/illustrations/e-mail.svg +1 -0
- package/dist/collection/collection-manifest.json +42 -2
- package/dist/collection/components/atoms/avatar/avatar.component.css +16 -20
- package/dist/collection/components/atoms/avatar/avatar.component.js +23 -9
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
- package/dist/collection/components/atoms/button/button.component.css +60 -23
- package/dist/collection/components/atoms/button/button.component.js +133 -11
- package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
- package/dist/collection/components/atoms/counter/counter.component.css +26 -1
- package/dist/collection/components/atoms/counter/counter.component.js +50 -2
- package/dist/collection/components/atoms/divider/divider.component.css +9 -2
- package/dist/collection/components/atoms/divider/divider.component.js +8 -2
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +8 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +40 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +16 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +87 -0
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +33 -2
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +62 -13
- package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -1
- package/dist/collection/components/atoms/label/label.component.css +88 -0
- package/dist/collection/components/atoms/label/label.component.js +203 -0
- package/dist/collection/components/atoms/layout/layout.component.css +73 -0
- package/dist/collection/components/atoms/layout/layout.component.js +47 -0
- package/dist/collection/components/atoms/loader/loader.component.css +30 -9
- package/dist/collection/components/atoms/loader/loader.component.js +9 -5
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +8 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +42 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +7 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +63 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +7 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +40 -0
- package/dist/collection/components/atoms/status/status.component.css +16 -0
- package/dist/collection/components/atoms/status/status.component.js +133 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -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 +9 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
- package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.css +5 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +48 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +77 -24
- package/dist/collection/components/helpers/table-column/table-column.component.js +157 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +44 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +322 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +12 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +346 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +324 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +320 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +6 -12
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
- 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 +217 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +43 -17
- package/dist/collection/components/molecules/profile/profile.component.css +60 -0
- package/dist/collection/components/molecules/profile/profile.component.js +95 -0
- package/dist/collection/components/molecules/select/select.component.css +6 -0
- package/dist/collection/components/molecules/select/select.component.js +554 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +84 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +3 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +258 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +268 -0
- package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js +369 -0
- package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
- package/dist/collection/components/molecules/toast/toast.component.css +23 -0
- package/dist/collection/components/molecules/toast/toast.component.js +192 -0
- package/dist/collection/components/organisms/modal/modal.component.js +180 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +59 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +99 -0
- package/dist/collection/components/organisms/table/table.component.css +3 -0
- package/dist/collection/components/organisms/table/table.component.js +1010 -0
- package/dist/collection/index.js +2 -1
- package/dist/collection/tailwind/animation.js +17 -0
- package/dist/collection/tailwind/backdrop-blur.js +3 -0
- package/dist/collection/tailwind/border-radius.js +8 -7
- package/dist/collection/tailwind/height.js +3 -0
- package/dist/collection/tailwind/screens.js +8 -0
- package/dist/collection/tailwind/shadows.js +9 -5
- package/dist/collection/tailwind/spacing.js +10 -0
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/width.js +18 -0
- package/dist/collection/tailwind/z-index.js +10 -0
- package/dist/collection/tailwind.config.js +28 -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/child-of.js +5 -0
- package/dist/collection/utils/icons.js +20 -0
- package/dist/collection/utils/illustrations.js +2 -0
- package/dist/collection/utils/index.js +5 -0
- package/dist/collection/utils/localization.js +55 -0
- package/dist/collection/utils/object-get-by-path.js +8 -0
- package/dist/components/button.component.js +125 -0
- package/dist/components/counter.component.js +14 -3
- package/dist/components/divider.component.js +33 -0
- package/dist/components/dropdown-menu-container.component.js +35 -0
- package/dist/components/dropdown-menu-item.component.js +48 -0
- package/dist/components/dropdown.component.js +198 -0
- package/dist/components/helper.component.js +42 -0
- package/dist/components/icon.component.js +248 -5
- package/dist/components/index.d.ts +53 -13
- package/dist/components/index.js +43 -0
- package/dist/components/input-group.component.js +115 -0
- package/dist/components/label.component.js +69 -0
- package/dist/components/loader.component.js +8 -4
- package/dist/components/localization.js +57 -0
- package/dist/components/modal-backdrop.component.js +30 -0
- package/dist/components/modal-body.component.js +36 -0
- package/dist/components/modal-container.component.js +48 -0
- package/dist/components/modal-footer.component.js +42 -0
- package/dist/components/modal-header.component.js +55 -0
- package/dist/components/p-accordion.d.ts +11 -0
- package/dist/components/p-accordion.js +73 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +34 -0
- package/dist/components/p-avatar.js +21 -8
- package/dist/components/p-button.js +1 -93
- package/dist/components/p-card-body.d.ts +11 -0
- package/dist/components/p-card-body.js +38 -0
- package/dist/components/p-card-container.d.ts +11 -0
- package/dist/components/p-card-container.js +44 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +46 -0
- package/dist/components/p-content-slider.d.ts +11 -0
- package/dist/components/p-content-slider.js +250 -0
- package/dist/components/p-divider.js +1 -28
- package/dist/components/p-dropdown-menu-container.d.ts +11 -0
- package/dist/components/p-dropdown-menu-container.js +6 -0
- package/dist/components/p-dropdown-menu-item.d.ts +11 -0
- package/dist/components/p-dropdown-menu-item.js +6 -0
- package/dist/components/p-dropdown.d.ts +11 -0
- package/dist/components/p-dropdown.js +6 -0
- package/dist/components/p-helper.js +1 -34
- package/dist/components/p-illustration.js +3 -0
- package/dist/components/p-info-panel.js +1 -1
- 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 +39 -0
- package/dist/components/p-modal-backdrop.d.ts +11 -0
- package/dist/components/p-modal-backdrop.js +6 -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 +128 -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 +2 -2
- 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 -191
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +85 -0
- package/dist/components/p-segment-container.d.ts +11 -0
- package/dist/components/p-segment-container.js +6 -0
- package/dist/components/p-segment-item.d.ts +11 -0
- package/dist/components/p-segment-item.js +6 -0
- package/dist/components/p-select.d.ts +11 -0
- package/dist/components/p-select.js +261 -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.d.ts +11 -0
- package/dist/components/p-status.js +73 -0
- 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 +84 -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 +39 -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 +56 -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 +520 -0
- package/dist/components/p-toast-container.d.ts +11 -0
- package/dist/components/p-toast-container.js +46 -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 +123 -0
- package/dist/components/pagination-item.component.js +1 -1
- package/dist/components/pagination.component.js +202 -0
- package/dist/{cjs/p-tooltip.cjs.entry.js → components/popper.js} +1 -128
- 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 +36 -0
- package/dist/components/stepper-item.component.js +57 -0
- package/dist/components/stepper-line.component.js +41 -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 +146 -0
- package/dist/components/table-header.component.js +1052 -0
- package/dist/components/table-row.component.js +49 -0
- package/dist/components/tooltip.component.js +37 -1808
- package/dist/esm/child-of-90a8c4b5.js +7 -0
- package/dist/esm/constants-826f9460.js +4 -0
- package/dist/esm/{index-5c917d13.js → index-7c99f044.js} +211 -5
- package/dist/esm/index.js +3 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/localization-abb97f67.js +57 -0
- package/dist/esm/object-get-by-path-d6427a61.js +10 -0
- package/dist/esm/p-accordion.entry.js +38 -0
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar.entry.js +19 -5
- package/dist/esm/p-button_3.entry.js +337 -65
- package/dist/esm/p-card-body.entry.js +19 -0
- package/dist/esm/p-card-container.entry.js +23 -0
- package/dist/esm/p-card-header.entry.js +20 -0
- package/dist/esm/p-content-slider.entry.js +217 -0
- package/dist/esm/p-counter.entry.js +11 -3
- package/dist/esm/p-divider.entry.js +6 -3
- package/dist/esm/p-dropdown_3.entry.js +199 -0
- package/dist/esm/p-helper_2.entry.js +155 -0
- package/dist/esm/p-illustration.entry.js +5 -2
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-input-group_4.entry.js +137 -0
- package/dist/esm/p-layout.entry.js +19 -0
- package/dist/esm/p-modal-backdrop_5.entry.js +93 -0
- package/dist/esm/p-modal.entry.js +49 -0
- package/dist/esm/p-navbar.entry.js +30 -0
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-page-size-select_3.entry.js +245 -0
- package/dist/esm/p-profile.entry.js +45 -0
- package/dist/esm/p-select.entry.js +175 -0
- package/dist/esm/p-slider-indicator.entry.js +19 -0
- package/dist/esm/p-status.entry.js +45 -0
- package/dist/esm/p-stepper-item_2.entry.js +51 -0
- package/dist/esm/p-stepper.entry.js +45 -0
- package/dist/esm/p-tab-group.entry.js +15 -0
- package/dist/esm/p-tab-item.entry.js +19 -0
- package/dist/esm/p-table-cell_5.entry.js +1171 -0
- package/dist/esm/p-table-column.entry.js +32 -0
- package/dist/esm/p-table.entry.js +350 -0
- package/dist/esm/p-toast-container.entry.js +26 -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/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 +1788 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -0
- package/dist/paperless/p-06899ffb.entry.js +1 -0
- package/dist/paperless/p-09ea2a1a.js +1 -0
- package/dist/paperless/p-150aadaf.entry.js +1 -0
- package/dist/paperless/p-15d13147.entry.js +1 -0
- package/dist/paperless/p-1f6a0296.entry.js +1 -0
- package/dist/paperless/p-2bf44a1d.entry.js +1 -0
- package/dist/paperless/p-3180c96e.entry.js +1 -0
- package/dist/paperless/p-3b243f16.entry.js +1 -0
- package/dist/paperless/p-3ef5e549.js +1 -0
- package/dist/paperless/p-41588819.entry.js +1 -0
- package/dist/paperless/p-44d46765.entry.js +1 -0
- package/dist/paperless/p-4588a510.entry.js +1 -0
- package/dist/paperless/p-48c3b71e.entry.js +1 -0
- package/dist/paperless/p-52ab1f62.entry.js +1 -0
- package/dist/paperless/p-58dd41be.entry.js +1 -0
- package/dist/paperless/p-5a71d6ae.entry.js +1 -0
- package/dist/paperless/p-600a2f21.entry.js +1 -0
- package/dist/paperless/p-61975c9a.entry.js +1 -0
- package/dist/paperless/p-6c60fd3d.js +1 -0
- package/dist/{build/p-23980fbb.entry.js → paperless/p-78db3d3c.entry.js} +1 -1
- package/dist/paperless/p-7a77a930.entry.js +1 -0
- package/dist/paperless/p-7e9a866e.entry.js +1 -0
- package/dist/paperless/p-8262fe7e.entry.js +1 -0
- package/dist/paperless/p-8614bd10.entry.js +1 -0
- package/dist/paperless/p-86a6c56a.entry.js +1 -0
- package/dist/paperless/p-8a6728d5.js +1 -0
- package/dist/paperless/p-8f179b0d.entry.js +1 -0
- package/dist/paperless/p-98332f25.entry.js +1 -0
- package/dist/paperless/p-9fba2393.entry.js +1 -0
- package/dist/paperless/p-a0e3e68d.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-aae4caab.entry.js +1 -0
- package/dist/paperless/p-ad147b1b.entry.js +1 -0
- package/dist/paperless/p-b797b0ce.entry.js +1 -0
- package/dist/paperless/p-c11282d2.entry.js +1 -0
- package/dist/paperless/p-c4110c09.entry.js +1 -0
- package/dist/paperless/p-d0a9b97b.entry.js +1 -0
- package/dist/paperless/p-d17b038f.entry.js +1 -0
- package/dist/paperless/p-d9c1fe13.js +2 -0
- package/dist/paperless/p-f45b75ae.entry.js +1 -0
- package/dist/paperless/paperless.css +472 -26447
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/style/_fonts.scss +70 -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 +62 -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 +10 -0
- package/dist/sw.js +2 -479
- package/dist/sw.js.map +1 -0
- package/dist/tailwind/animation.js +17 -0
- package/dist/tailwind/backdrop-blur.js +3 -0
- package/dist/tailwind/border-radius.js +10 -0
- package/dist/tailwind/colors.js +52 -0
- package/dist/tailwind/height.js +3 -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 +11 -0
- package/dist/tailwind/spacing.js +10 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/width.js +18 -0
- package/dist/tailwind/z-index.js +10 -0
- package/dist/tailwind.config.js +28 -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/button/button.component.d.ts +26 -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/dropdown-menu-container/dropdown-menu-container.component.d.ts +7 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +16 -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 +37 -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-backdrop/modal-backdrop.component.d.ts +3 -0
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
- package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
- package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
- package/dist/types/components/atoms/status/status.component.d.ts +23 -0
- 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 +12 -3
- 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/content-slider/content-slider.component.d.ts +53 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +61 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +63 -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 +48 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +9 -2
- package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
- package/dist/types/components/molecules/select/select.component.d.ts +112 -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 +59 -0
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +80 -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 +38 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +39 -0
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
- package/dist/types/components/organisms/table/table.component.d.ts +190 -0
- package/dist/types/components.d.ts +2372 -200
- package/dist/types/index.d.ts +2 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +26 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +10 -0
- package/dist/types/utils/illustrations.d.ts +1 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/localization.d.ts +2 -0
- package/dist/types/utils/object-get-by-path.d.ts +1 -0
- package/dist/workbox-5fe694da.js +2 -0
- package/dist/workbox-5fe694da.js.map +1 -0
- package/package.json +61 -61
- package/dist/build/p-06a38756.entry.js +0 -1
- package/dist/build/p-19afe191.entry.js +0 -1
- package/dist/build/p-229f113b.js +0 -2
- package/dist/build/p-31f80006.entry.js +0 -1
- package/dist/build/p-5f0ec763.entry.js +0 -1
- package/dist/build/p-6c6c1137.entry.js +0 -1
- package/dist/build/p-6cd89223.entry.js +0 -1
- package/dist/build/p-80bf9d06.entry.js +0 -1
- package/dist/build/p-c24c42de.entry.js +0 -1
- package/dist/build/p-e80637b9.entry.js +0 -1
- package/dist/build/p-ec52095f.entry.js +0 -1
- 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 -167
- package/dist/collection/components/molecules/pagination/pagination.value-accessor.js +0 -6
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/collection/utils/utils.js +0 -3
- package/dist/collection/value-accessors.config.js +0 -5
- 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 -163
- package/dist/paperless/p-06a38756.entry.js +0 -1
- package/dist/paperless/p-19afe191.entry.js +0 -1
- package/dist/paperless/p-229f113b.js +0 -2
- package/dist/paperless/p-31f80006.entry.js +0 -1
- package/dist/paperless/p-5f0ec763.entry.js +0 -1
- package/dist/paperless/p-6c6c1137.entry.js +0 -1
- package/dist/paperless/p-6cd89223.entry.js +0 -1
- package/dist/paperless/p-80bf9d06.entry.js +0 -1
- package/dist/paperless/p-c24c42de.entry.js +0 -1
- package/dist/paperless/p-e80637b9.entry.js +0 -1
- package/dist/paperless/p-ec52095f.entry.js +0 -1
- package/dist/types/components/molecules/pagination/pagination.value-accessor.d.ts +0 -2
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/types/value-accessors.config.d.ts +0 -2
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7c99f044.js';
|
|
2
|
+
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-abb97f67.js';
|
|
3
|
+
import { d as defaultSize, a as defaultSizeOptions } from './constants-826f9460.js';
|
|
4
|
+
|
|
5
|
+
const PageSizeSelect = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.sizeChange = createEvent(this, "sizeChange", 7);
|
|
9
|
+
/**
|
|
10
|
+
* The current page
|
|
11
|
+
*/
|
|
12
|
+
this.size = defaultSize;
|
|
13
|
+
/**
|
|
14
|
+
* The available sizes
|
|
15
|
+
*/
|
|
16
|
+
this.sizeOptions = defaultSizeOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Chevron position
|
|
19
|
+
*/
|
|
20
|
+
this.chevronPosition = 'start';
|
|
21
|
+
/**
|
|
22
|
+
* The size of the button
|
|
23
|
+
*/
|
|
24
|
+
this.buttonSize = 'small';
|
|
25
|
+
/**
|
|
26
|
+
* The template for the data view
|
|
27
|
+
*/
|
|
28
|
+
this.buttonTemplate = (size) => formatTranslation(this._locales.button, { size });
|
|
29
|
+
/**
|
|
30
|
+
* The template for the data view
|
|
31
|
+
*/
|
|
32
|
+
this.itemTemplate = (size) => formatTranslation(this._locales.item, { size });
|
|
33
|
+
/**
|
|
34
|
+
* Wether to hide when there is only 1 page available
|
|
35
|
+
*/
|
|
36
|
+
this.hidden = false;
|
|
37
|
+
/**
|
|
38
|
+
* Locales used for this component
|
|
39
|
+
*/
|
|
40
|
+
this._locales = {};
|
|
41
|
+
}
|
|
42
|
+
componentWillLoad() {
|
|
43
|
+
this._setLocales();
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
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(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(option))))))));
|
|
47
|
+
}
|
|
48
|
+
async _setLocales() {
|
|
49
|
+
this._locales = await getLocaleComponentStrings(this._el);
|
|
50
|
+
}
|
|
51
|
+
_changeSize(s) {
|
|
52
|
+
if (!s) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.size = s;
|
|
56
|
+
this.sizeChange.emit(this.size);
|
|
57
|
+
}
|
|
58
|
+
get _el() { return getElement(this); }
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const paginationComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!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}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!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}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/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}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!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}";
|
|
62
|
+
|
|
63
|
+
const Pagination = class {
|
|
64
|
+
constructor(hostRef) {
|
|
65
|
+
registerInstance(this, hostRef);
|
|
66
|
+
this.pageChange = createEvent(this, "pageChange", 7);
|
|
67
|
+
/**
|
|
68
|
+
* The current page
|
|
69
|
+
*/
|
|
70
|
+
this.page = 1;
|
|
71
|
+
/**
|
|
72
|
+
* The amount of items per page
|
|
73
|
+
*/
|
|
74
|
+
this.pageSize = 12;
|
|
75
|
+
/**
|
|
76
|
+
* Wether to hide when there is only 1 page available
|
|
77
|
+
*/
|
|
78
|
+
this.hideOnSinglePage = false;
|
|
79
|
+
this._pages = [];
|
|
80
|
+
this._set = [];
|
|
81
|
+
this._nextClick = () => {
|
|
82
|
+
const nextPage = this.page + 1;
|
|
83
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this._changePage(nextPage);
|
|
87
|
+
};
|
|
88
|
+
this._pageClick = (p) => this._changePage(p);
|
|
89
|
+
this._generateSet = (range = 1, enableBoundaries = true) => {
|
|
90
|
+
const totalPages = this._pages.length;
|
|
91
|
+
if (!totalPages) {
|
|
92
|
+
return [];
|
|
93
|
+
}
|
|
94
|
+
let start = this.page - range;
|
|
95
|
+
let end = this.page + range;
|
|
96
|
+
if (end > totalPages) {
|
|
97
|
+
end = totalPages;
|
|
98
|
+
start = totalPages - range * 2;
|
|
99
|
+
start = start < 1 ? 1 : start;
|
|
100
|
+
}
|
|
101
|
+
if (start <= 1) {
|
|
102
|
+
start = 1;
|
|
103
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
104
|
+
}
|
|
105
|
+
const set = [];
|
|
106
|
+
const previous = {
|
|
107
|
+
type: 'previous',
|
|
108
|
+
value: h("p-icon", { variant: "chevron", rotate: 90 }),
|
|
109
|
+
};
|
|
110
|
+
const next = {
|
|
111
|
+
type: 'next',
|
|
112
|
+
value: h("p-icon", { variant: "chevron", rotate: -90 }),
|
|
113
|
+
};
|
|
114
|
+
// Disable page range, display all the pages
|
|
115
|
+
if (range === null) {
|
|
116
|
+
const p = this._pages.map((p) => ({
|
|
117
|
+
type: 'page',
|
|
118
|
+
value: p,
|
|
119
|
+
}));
|
|
120
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
121
|
+
}
|
|
122
|
+
if (enableBoundaries) {
|
|
123
|
+
set.push(previous);
|
|
124
|
+
}
|
|
125
|
+
if (start <= 3) {
|
|
126
|
+
for (let i = 1; i < start; i++) {
|
|
127
|
+
set.push({
|
|
128
|
+
type: 'page',
|
|
129
|
+
value: this._pages[i - 1],
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
set.push({
|
|
135
|
+
type: 'page',
|
|
136
|
+
value: 1,
|
|
137
|
+
});
|
|
138
|
+
set.push({
|
|
139
|
+
type: 'ellipsis',
|
|
140
|
+
value: 'ellipsis',
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
for (let i = start; i <= end; i++) {
|
|
144
|
+
set.push({
|
|
145
|
+
type: 'page',
|
|
146
|
+
value: this._pages[i - 1],
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
if (end >= totalPages - 2) {
|
|
150
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
151
|
+
set.push({
|
|
152
|
+
type: 'page',
|
|
153
|
+
value: this._pages[i - 1],
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
set.push({
|
|
159
|
+
type: 'ellipsis',
|
|
160
|
+
});
|
|
161
|
+
set.push({
|
|
162
|
+
type: 'page',
|
|
163
|
+
value: this._pages[this._pages.length - 1],
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
if (enableBoundaries) {
|
|
167
|
+
set.push(next);
|
|
168
|
+
}
|
|
169
|
+
return set;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
componentWillRender() {
|
|
173
|
+
this._generate();
|
|
174
|
+
}
|
|
175
|
+
render() {
|
|
176
|
+
var _a, _b;
|
|
177
|
+
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) => {
|
|
178
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
179
|
+
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
180
|
+
? this._previousClick()
|
|
181
|
+
: this._nextClick() }, p.value));
|
|
182
|
+
}
|
|
183
|
+
if (p.type === 'ellipsis') {
|
|
184
|
+
return h("p-pagination-item", null, "...");
|
|
185
|
+
}
|
|
186
|
+
return (h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
187
|
+
})));
|
|
188
|
+
}
|
|
189
|
+
pageChangeHandler() {
|
|
190
|
+
this._generate();
|
|
191
|
+
}
|
|
192
|
+
_generate() {
|
|
193
|
+
var _a;
|
|
194
|
+
this._pages = this._generatePages();
|
|
195
|
+
this._set = this._generateSet();
|
|
196
|
+
if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
197
|
+
this._changePage(this._pages.length);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
_changePage(p) {
|
|
201
|
+
if (!p) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
this.page = p;
|
|
205
|
+
this.pageChange.emit(this.page);
|
|
206
|
+
}
|
|
207
|
+
_previousClick() {
|
|
208
|
+
const previousPage = this.page - 1;
|
|
209
|
+
if (previousPage < this._pages[0]) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
this._changePage(previousPage);
|
|
213
|
+
}
|
|
214
|
+
_generatePages() {
|
|
215
|
+
if (!this.total || !this.pageSize) {
|
|
216
|
+
return [];
|
|
217
|
+
}
|
|
218
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
219
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
220
|
+
}
|
|
221
|
+
static get watchers() { return {
|
|
222
|
+
"page": ["pageChangeHandler"],
|
|
223
|
+
"pageSize": ["pageChangeHandler"],
|
|
224
|
+
"total": ["pageChangeHandler"]
|
|
225
|
+
}; }
|
|
226
|
+
};
|
|
227
|
+
Pagination.style = paginationComponentCss;
|
|
228
|
+
|
|
229
|
+
const paginationItemComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!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-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.flex-col{flex-direction:column!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!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}.font-semibold{font-weight:600!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-indigo{color:rgb(82 138 250/var(--tw-text-opacity))!important}.text-indigo,.text-storm-dark{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/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))}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!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}";
|
|
230
|
+
|
|
231
|
+
const PaginationItem = class {
|
|
232
|
+
constructor(hostRef) {
|
|
233
|
+
registerInstance(this, hostRef);
|
|
234
|
+
/**
|
|
235
|
+
* Wether the pagination item is active
|
|
236
|
+
*/
|
|
237
|
+
this.active = false;
|
|
238
|
+
}
|
|
239
|
+
render() {
|
|
240
|
+
return (h(Host, { class: `p-pagination-item ${this.active && 'active'}` }, h("slot", null)));
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
PaginationItem.style = paginationItemComponentCss;
|
|
244
|
+
|
|
245
|
+
export { PageSizeSelect as p_page_size_select, Pagination as p_pagination, PaginationItem as p_pagination_item };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-7c99f044.js';
|
|
2
|
+
|
|
3
|
+
const profileComponentCss = ".static{position:static!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.h-\\[3\\.125rem\\]{height:3.125rem!important}.h-\\[4\\.125rem\\]{height:4.125rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-3{gap:.75rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.p-2{padding:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}:host{display:flex}:host .content{align-items:center;display:flex;gap:.75rem;width:100%}:host .content .name{display:flex;flex-direction:column;justify-content:center;overflow:hidden}:host .content .name>:first-child{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem}:host .content .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}:host .content .name ::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([size=small]){height:2rem}:host([size=medium]){height:3.125rem}:host([size=large]){height:4rem}:host(.has-dropdown){cursor:pointer}:host(.has-dropdown) .content{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-radius:.25rem;border-style:solid!important;border-width:1px!important;padding:.5rem}:host(.has-dropdown[size=small]){height:3rem}:host(.has-dropdown[size=medium]){height:4.125rem}:host(.has-dropdown[size=large]){height:5rem}:host(.active) .content,:host(.has-dropdown:hover) .content{--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);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:host(.active) .content p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}";
|
|
4
|
+
|
|
5
|
+
const Profile = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The variant of the profile
|
|
10
|
+
*/
|
|
11
|
+
this.variant = 'user';
|
|
12
|
+
/**
|
|
13
|
+
* The size of the profile avatar
|
|
14
|
+
*/
|
|
15
|
+
this.size = 'small';
|
|
16
|
+
this._dropdownOpen = false;
|
|
17
|
+
}
|
|
18
|
+
componentWillRender() {
|
|
19
|
+
this._updateAvatar();
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const hasDropdownSlot = !!this._el.querySelector(':scope > [slot="dropdown"]');
|
|
23
|
+
const content = this._getContent(hasDropdownSlot);
|
|
24
|
+
return (h(Host, { class: `p-profile ${hasDropdownSlot && 'has-dropdown'} ${this._dropdownOpen && 'active'}` }, hasDropdownSlot ? (h("p-dropdown", { class: "w-full min-w-0", strategy: "absolute", placement: this.variant === 'user' ? 'top-end' : 'bottom-end', onIsOpen: (ev) => (this._dropdownOpen = ev.detail) }, content, h("div", { slot: "items" }, h("slot", { name: "dropdown" })))) : (content)));
|
|
25
|
+
}
|
|
26
|
+
_getContent(hasDropdownSlot) {
|
|
27
|
+
return (h("div", { class: "content", slot: "trigger" }, h("slot", { name: "avatar" }), h("div", { class: "name" }, h("slot", { name: "title" }), h("slot", { name: "subtitle" })), hasDropdownSlot && this._getIcon()));
|
|
28
|
+
}
|
|
29
|
+
_updateAvatar() {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
const avatar = this._el.querySelector('p-avatar[slot="avatar"]');
|
|
32
|
+
if (!avatar) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
avatar.variant = (_a = this.variant) !== null && _a !== void 0 ? _a : avatar.variant;
|
|
36
|
+
avatar.size = (_b = this.size) !== null && _b !== void 0 ? _b : avatar === null || avatar === void 0 ? void 0 : avatar.size;
|
|
37
|
+
}
|
|
38
|
+
_getIcon() {
|
|
39
|
+
return (h("p-icon", { class: "ml-auto", variant: this.variant === 'company' ? 'chevron' : 'more' }));
|
|
40
|
+
}
|
|
41
|
+
get _el() { return getElement(this); }
|
|
42
|
+
};
|
|
43
|
+
Profile.style = profileComponentCss;
|
|
44
|
+
|
|
45
|
+
export { Profile as p_profile };
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7c99f044.js';
|
|
2
|
+
import { c as childOf } from './child-of-90a8c4b5.js';
|
|
3
|
+
|
|
4
|
+
const selectComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.rounded{border-radius:.25rem!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{display:flex;flex-direction:column}:host input.read-only{text-overflow:ellipsis}";
|
|
5
|
+
|
|
6
|
+
const Select = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.queryChange = createEvent(this, "queryChange", 7);
|
|
10
|
+
this.valueChange = createEvent(this, "valueChange", 7);
|
|
11
|
+
/**
|
|
12
|
+
* The key of the object to display
|
|
13
|
+
*/
|
|
14
|
+
this.displayKey = 'text';
|
|
15
|
+
/**
|
|
16
|
+
* The key of the object to return
|
|
17
|
+
*/
|
|
18
|
+
this.valueKey = 'value';
|
|
19
|
+
/**
|
|
20
|
+
* Wether to automatically select the first item
|
|
21
|
+
*/
|
|
22
|
+
this.autoSelectFirst = true;
|
|
23
|
+
/**
|
|
24
|
+
* The maximum amount of items to display
|
|
25
|
+
*/
|
|
26
|
+
this.maxDisplayedItems = 10;
|
|
27
|
+
/**
|
|
28
|
+
* Wether to enable autocomplete
|
|
29
|
+
*/
|
|
30
|
+
this.enableAutocomplete = true;
|
|
31
|
+
/**
|
|
32
|
+
* Wether the input uses async filtering
|
|
33
|
+
*/
|
|
34
|
+
this.asyncFilter = false;
|
|
35
|
+
/**
|
|
36
|
+
* Wether to show loading items
|
|
37
|
+
*/
|
|
38
|
+
this.loading = false;
|
|
39
|
+
/**
|
|
40
|
+
* The size of the input group used by the select
|
|
41
|
+
*/
|
|
42
|
+
this.size = 'medium';
|
|
43
|
+
/**
|
|
44
|
+
* Wether the input group is disabled used by the select
|
|
45
|
+
*/
|
|
46
|
+
this.disabled = false;
|
|
47
|
+
this._showDropdown = false;
|
|
48
|
+
this._selectedItem = null;
|
|
49
|
+
this._isAutoCompleting = false;
|
|
50
|
+
}
|
|
51
|
+
get _items() {
|
|
52
|
+
var _a;
|
|
53
|
+
if (!this.items || this.loading) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
let items = typeof this.items === 'string'
|
|
57
|
+
? JSON.parse(this.items)
|
|
58
|
+
: this.items;
|
|
59
|
+
if (typeof (items === null || items === void 0 ? void 0 : items[0]) === 'string') {
|
|
60
|
+
this.displayKey = 'text';
|
|
61
|
+
this.valueKey = 'value';
|
|
62
|
+
items = items.map((str) => ({
|
|
63
|
+
value: str,
|
|
64
|
+
text: str,
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
if (this._isAutoCompleting && ((_a = this.query) === null || _a === void 0 ? void 0 : _a.length) && !this.asyncFilter) {
|
|
68
|
+
items = items.filter((item) => {
|
|
69
|
+
if (this.queryKey) {
|
|
70
|
+
return this._checkvalue(this.queryKey, item);
|
|
71
|
+
}
|
|
72
|
+
return (this._checkvalue(this.valueKey, item) ||
|
|
73
|
+
this._checkvalue(this.displayKey, item));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return items === null || items === void 0 ? void 0 : items.slice(0, this.maxDisplayedItems);
|
|
77
|
+
}
|
|
78
|
+
get _displayValue() {
|
|
79
|
+
var _a;
|
|
80
|
+
if (this._isAutoCompleting) {
|
|
81
|
+
return this.query;
|
|
82
|
+
}
|
|
83
|
+
return (_a = this._selectedItem) === null || _a === void 0 ? void 0 : _a[this.displayKey];
|
|
84
|
+
}
|
|
85
|
+
get _placeholder() {
|
|
86
|
+
var _a;
|
|
87
|
+
return this._isAutoCompleting && ((_a = this.autocompletePlaceholder) === null || _a === void 0 ? void 0 : _a.length)
|
|
88
|
+
? this.autocompletePlaceholder
|
|
89
|
+
: this.placeholder;
|
|
90
|
+
}
|
|
91
|
+
componentDidLoad() {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
if (this.value) {
|
|
94
|
+
const value = typeof ((_b = (_a = this._items) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b[this.valueKey]) === 'number' &&
|
|
95
|
+
!isNaN(this.value)
|
|
96
|
+
? parseInt(this.value, 10)
|
|
97
|
+
: this.value;
|
|
98
|
+
this._selectedItem = this._items.find((i) => (i === null || i === void 0 ? void 0 : i[this.valueKey]) === value);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (this.autoSelectFirst) {
|
|
102
|
+
this._selectedItem = (_c = this._items) === null || _c === void 0 ? void 0 : _c[0];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
return (h(Host, { class: "p-select" }, h("p-dropdown", { disableTriggerClick: true, calculateWidth: true, insideClick: true, show: this._showDropdown }, h("p-input-group", { slot: "trigger", icon: "chevron", iconPosition: "end", size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, error: this.error, disabled: this.disabled, focused: this._showDropdown }, h("input", { slot: "input", type: "text", placeholder: this._placeholder, value: this._displayValue, class: `p-input cursor-pointer ${!this._isAutoCompleting && 'read-only'}`, onFocus: () => this._onFocus(), onMouseDown: (ev) => this._onMouseDown(ev), onClick: () => this._onClick(), onInput: (ev) => this._onChange(ev), ref: (ref) => (this._inputRef = ref) })), h("div", { slot: "items" }, this.loading
|
|
107
|
+
? this._getLoadingItems()
|
|
108
|
+
: this._getItems()))));
|
|
109
|
+
}
|
|
110
|
+
documentClickHandler({ target }) {
|
|
111
|
+
if (!this._showDropdown || childOf(target, this._el)) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
this._showDropdown = false;
|
|
115
|
+
this._isAutoCompleting = false;
|
|
116
|
+
}
|
|
117
|
+
_selectValue(item) {
|
|
118
|
+
this._selectedItem = item;
|
|
119
|
+
const value = item[this.valueKey];
|
|
120
|
+
this.value = value;
|
|
121
|
+
this.valueChange.emit(this.value);
|
|
122
|
+
this._onBlur(true);
|
|
123
|
+
}
|
|
124
|
+
_onFocus() {
|
|
125
|
+
if (!this.enableAutocomplete) {
|
|
126
|
+
this._inputRef.blur();
|
|
127
|
+
if (!this._showDropdown) {
|
|
128
|
+
this._showDropdown = true;
|
|
129
|
+
}
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
this._isAutoCompleting = true;
|
|
133
|
+
this._showDropdown = true;
|
|
134
|
+
}
|
|
135
|
+
_onMouseDown(ev) {
|
|
136
|
+
if (this.enableAutocomplete) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
ev.preventDefault();
|
|
140
|
+
}
|
|
141
|
+
_onClick() {
|
|
142
|
+
if (this.enableAutocomplete) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
this._showDropdown = true;
|
|
146
|
+
}
|
|
147
|
+
_onBlur(force = false) {
|
|
148
|
+
if (!this.enableAutocomplete && !force) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
this._isAutoCompleting = false;
|
|
152
|
+
this._showDropdown = false;
|
|
153
|
+
}
|
|
154
|
+
_onChange(ev) {
|
|
155
|
+
if (!this._isAutoCompleting) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
this.query = ev.target.value;
|
|
159
|
+
this.queryChange.emit(this.query);
|
|
160
|
+
}
|
|
161
|
+
_checkvalue(key, item) {
|
|
162
|
+
var _a, _b;
|
|
163
|
+
return ((_b = (_a = item === null || item === void 0 ? void 0 : item[key]) === null || _a === void 0 ? void 0 : _a.toString()) === null || _b === void 0 ? void 0 : _b.indexOf(this.query)) >= 0;
|
|
164
|
+
}
|
|
165
|
+
_getItems() {
|
|
166
|
+
return this._items.map((item) => (h("p-dropdown-menu-item", { onClick: () => this._selectValue(item) }, item[this.displayKey])));
|
|
167
|
+
}
|
|
168
|
+
_getLoadingItems() {
|
|
169
|
+
return [0, 0, 0].map(() => (h("p-dropdown-menu-item", { enableHover: false }, h("p-loader", { variant: "ghost", class: "w-full h-6 rounded" }))));
|
|
170
|
+
}
|
|
171
|
+
get _el() { return getElement(this); }
|
|
172
|
+
};
|
|
173
|
+
Select.style = selectComponentCss;
|
|
174
|
+
|
|
175
|
+
export { Select as p_select };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-7c99f044.js';
|
|
2
|
+
|
|
3
|
+
const sliderIndicatorComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.block{display:block!important}.hidden{display:none!important}.h-2{height:.5rem!important}.w-2{width:.5rem!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.bg-mystic-dark{--tw-bg-opacity:1!important;background-color:rgb(218 230 240/var(--tw-bg-opacity))!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));border-radius:100%;display:block;height:.5rem;width:.5rem}:host(.active){--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}";
|
|
4
|
+
|
|
5
|
+
const SliderIndicator = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Wether the slider indicator is active
|
|
10
|
+
*/
|
|
11
|
+
this.active = false;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { class: `p-slider-indicator ${this.active && 'active'}` }));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
SliderIndicator.style = sliderIndicatorComponentCss;
|
|
18
|
+
|
|
19
|
+
export { SliderIndicator as p_slider_indicator };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-7c99f044.js';
|
|
2
|
+
|
|
3
|
+
const statusComponentCss = ".static{position:static!important}.mr-2{margin-right:.5rem!important}.flex{display:flex!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}*{box-sizing:border-box}p-status{--tw-text-opacity:1;align-items:center;color:rgb(152 154 183/var(--tw-text-opacity));display:flex;font-size:.875rem;font-weight:500;line-height:1.25rem}p-status p-icon{font-size:1rem;line-height:1.5rem;margin-right:.5rem}p-status.variant-positive{--tw-text-opacity:1;color:rgb(40 209 124/var(--tw-text-opacity))}p-status.variant-unbiased{--tw-text-opacity:1;color:rgb(255 199 45/var(--tw-text-opacity))}p-status.variant-negative{--tw-text-opacity:1;color:rgb(185 30 40/var(--tw-text-opacity))}";
|
|
4
|
+
|
|
5
|
+
const Status = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The variant of the status
|
|
10
|
+
*/
|
|
11
|
+
this.variant = 'default';
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { class: `p-status variant-${this.variant}
|
|
15
|
+
}` }, this._getIcon(), h("slot", null)));
|
|
16
|
+
}
|
|
17
|
+
_getIcon() {
|
|
18
|
+
const icon = this.icon || this._getVariantIcon();
|
|
19
|
+
if (!icon) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
return (h("p-icon", { variant: icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
23
|
+
}
|
|
24
|
+
_getVariantIcon() {
|
|
25
|
+
let icon = null;
|
|
26
|
+
switch (this.variant) {
|
|
27
|
+
case 'positive':
|
|
28
|
+
icon = 'checkmark';
|
|
29
|
+
break;
|
|
30
|
+
case 'negative':
|
|
31
|
+
icon = 'negative';
|
|
32
|
+
break;
|
|
33
|
+
case 'unbiased':
|
|
34
|
+
icon = 'clock';
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
icon = null;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
return icon;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
Status.style = statusComponentCss;
|
|
44
|
+
|
|
45
|
+
export { Status as p_status };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-7c99f044.js';
|
|
2
|
+
|
|
3
|
+
const stepperItemComponentCss = ".static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.ml-4{margin-left:1rem!important}.flex{display:flex!important}.h-4{height:1rem!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}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.rounded-round{border-radius:100%!important}.bg-mystic-dark{--tw-bg-opacity:1!important;background-color:rgb(218 230 240/var(--tw-bg-opacity))!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{align-items:flex-end;display:flex;justify-content:center;position:relative}:host .content{--tw-text-opacity:1;color:rgb(176 178 203/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem;white-space:nowrap}:host .circle{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(218 230 240/var(--tw-bg-opacity));border-radius:100%;color:rgb(255 255 255/var(--tw-text-opacity));display:flex;height:1rem;justify-content:center;transition-duration:.5s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1rem}:host .circle p-icon{display:flex!important;font-size:.625rem}:host([direction=horizontal]){height:2.5rem}:host([direction=horizontal]) .content{order:1;position:absolute;top:0}:host([direction=horizontal]) .circle{order:2}:host([direction=vertical]){height:1rem}:host([direction=vertical]) .content{margin-left:1rem;order:2}:host([direction=vertical]) .circle{order:1}:host([active]) .content,:host([finished]) .content{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}:host([active]) .circle,:host([finished]) .circle{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}:host([direction=horizontal][align=start]) .content{left:0}:host([direction=horizontal][align=end]) .content{right:0}:host([direction=horizontal][align=center]) .content{--tw-translate-x:-50%;left:50%;text-align:center;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))}";
|
|
4
|
+
|
|
5
|
+
const StepperItem = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The alignment of the step content
|
|
10
|
+
*/
|
|
11
|
+
this.align = 'center';
|
|
12
|
+
/**
|
|
13
|
+
* The direction of the stepper step
|
|
14
|
+
*/
|
|
15
|
+
this.direction = 'horizontal';
|
|
16
|
+
/**
|
|
17
|
+
* Wether the step is finished
|
|
18
|
+
*/
|
|
19
|
+
this.finished = false;
|
|
20
|
+
/**
|
|
21
|
+
* Wether the step is active
|
|
22
|
+
*/
|
|
23
|
+
this.active = false;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (h(Host, { class: "p-stepper-item" }, h("div", { class: "content" }, h("slot", null)), h("div", { class: "circle" }, this.finished && h("p-icon", { variant: "checkmark" }))));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
StepperItem.style = stepperItemComponentCss;
|
|
30
|
+
|
|
31
|
+
const stepperLineComponentCss = ".static{position:static!important}.mb-\\[calc\\(\\.5rem-1px\\)\\]{margin-bottom:calc(.5rem - 1px)!important}.ml-\\[calc\\(\\.5rem-1px\\)\\]{margin-left:calc(.5rem - 1px)!important}.block{display:block!important}.h-\\[2px\\]{height:2px!important}.w-\\[2px\\]{width:2px!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));display:block;flex:1 1 auto;transition-duration:.5s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([direction=horizontal]){height:2px;margin-bottom:calc(.5rem - 1px)}:host([direction=vertical]){margin-left:calc(.5rem - 1px);width:2px}:host([active]){--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}";
|
|
32
|
+
|
|
33
|
+
const StepperLine = class {
|
|
34
|
+
constructor(hostRef) {
|
|
35
|
+
registerInstance(this, hostRef);
|
|
36
|
+
/**
|
|
37
|
+
* Wether the line is active
|
|
38
|
+
*/
|
|
39
|
+
this.active = false;
|
|
40
|
+
/**
|
|
41
|
+
* The direction of the stepper line
|
|
42
|
+
*/
|
|
43
|
+
this.direction = 'horizontal';
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return h(Host, { class: "p-stepper-line" });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
StepperLine.style = stepperLineComponentCss;
|
|
50
|
+
|
|
51
|
+
export { StepperItem as p_stepper_item, StepperLine as p_stepper_line };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-7c99f044.js';
|
|
2
|
+
|
|
3
|
+
const stepperComponentCss = ".static{position:static!important}.flex{display:flex!important}.h-auto{height:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}*{box-sizing:border-box}:host{display:flex}:host([direction=horizontal]){align-items:flex-end;height:auto}:host([direction=vertical]){align-items:flex-start;flex-direction:column;flex-wrap:wrap;min-height:100%;width:100%}";
|
|
4
|
+
|
|
5
|
+
const Stepper = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The currently active step
|
|
10
|
+
*/
|
|
11
|
+
this.activeStep = 1;
|
|
12
|
+
/**
|
|
13
|
+
* The direction of the stepper
|
|
14
|
+
*/
|
|
15
|
+
this.direction = 'horizontal';
|
|
16
|
+
}
|
|
17
|
+
componentWillRender() {
|
|
18
|
+
const activeStep = this.activeStep - 1;
|
|
19
|
+
this._steps = this._generateSteps(activeStep);
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return h(Host, { class: "p-stepper" }, this._steps);
|
|
23
|
+
}
|
|
24
|
+
_generateSteps(activeStep) {
|
|
25
|
+
const elements = [];
|
|
26
|
+
const items = this._el.querySelectorAll('p-stepper-item');
|
|
27
|
+
for (let i = 0; i < (items === null || items === void 0 ? void 0 : items.length); i++) {
|
|
28
|
+
const item = items.item(i);
|
|
29
|
+
if (i > 0) {
|
|
30
|
+
elements.push(h("p-stepper-line", { direction: this.direction, active: i <= activeStep }));
|
|
31
|
+
}
|
|
32
|
+
const newItem = (h("p-stepper-item", { active: i === activeStep, finished: i < activeStep, direction: this.direction, align: i === 0
|
|
33
|
+
? 'start'
|
|
34
|
+
: i === (items === null || items === void 0 ? void 0 : items.length) - 1
|
|
35
|
+
? 'end'
|
|
36
|
+
: 'center' }, item.innerHTML));
|
|
37
|
+
elements.push(newItem);
|
|
38
|
+
}
|
|
39
|
+
return elements;
|
|
40
|
+
}
|
|
41
|
+
get _el() { return getElement(this); }
|
|
42
|
+
};
|
|
43
|
+
Stepper.style = stepperComponentCss;
|
|
44
|
+
|
|
45
|
+
export { Stepper as p_stepper };
|