@paperless/core 0.1.0-alpha.8 → 0.1.0-alpha.82
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 +745 -0
- package/README.md +1 -1
- 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/task.svg +17 -0
- package/dist/assets/icons/template.svg +17 -0
- package/dist/assets/illustrations/e-mail.svg +1 -0
- package/dist/assets/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/{helper-hover.svg → helper/helper-hover.svg} +0 -0
- package/dist/assets/images/{helper.svg → helper/helper.svg} +0 -0
- package/dist/build/p-0100c1a2.js +2 -0
- package/dist/build/p-0f931c83.entry.js +1 -0
- package/dist/build/p-0fe2b204.entry.js +1 -0
- package/dist/build/p-115c5de5.entry.js +1 -0
- package/dist/{paperless/p-f04c4de0.entry.js → build/p-1413a437.entry.js} +1 -1
- package/dist/build/p-17febf9c.entry.js +1 -0
- package/dist/build/p-19254809.entry.js +1 -0
- package/dist/build/p-27b956f9.entry.js +1 -0
- package/dist/build/p-2d23433e.entry.js +1 -0
- package/dist/build/p-2ef1ceb2.entry.js +1 -0
- package/dist/build/p-3222904d.entry.js +1 -0
- package/dist/build/p-38e37679.entry.js +1 -0
- package/dist/build/p-46a2fa14.entry.js +1 -0
- package/dist/build/p-4a0adfc2.entry.js +1 -0
- package/dist/build/p-540149ea.entry.js +1 -0
- package/dist/build/p-57d1e41b.entry.js +1 -0
- package/dist/build/p-5e959430.entry.js +1 -0
- package/dist/build/p-66dc37d4.entry.js +1 -0
- package/dist/build/p-8268fd06.entry.js +1 -0
- package/dist/build/p-a65fea4b.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-bce3c8ba.entry.js +1 -0
- package/dist/build/p-bf9c21cb.entry.js +1 -0
- package/dist/build/p-c0591445.entry.js +1 -0
- package/dist/build/p-c272f950.entry.js +1 -0
- package/dist/build/p-c525ea4b.entry.js +1 -0
- package/dist/build/p-cfa78aa0.entry.js +1 -0
- package/dist/build/p-d5a61e5e.entry.js +1 -0
- package/dist/build/p-d8e5ce34.entry.js +1 -0
- package/dist/build/p-db270856.entry.js +1 -0
- package/dist/build/p-db6b16e3.entry.js +1 -0
- package/dist/build/p-ebefedee.entry.js +1 -0
- package/dist/build/p-f8a3eb30.entry.js +1 -0
- package/dist/build/p-fa41110f.entry.js +1 -0
- package/dist/build/paperless.css +190 -18
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-a2da05ae.js → index-f9c302b6.js} +229 -3
- package/dist/cjs/loader.cjs.js +2 -2
- 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 +38 -0
- package/dist/cjs/p-button_3.cjs.entry.js +167 -17
- 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-counter.cjs.entry.js +19 -0
- package/dist/cjs/p-divider.cjs.entry.js +22 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +19 -0
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +23 -0
- package/dist/cjs/p-dropdown.cjs.entry.js +141 -0
- package/dist/cjs/p-helper.cjs.entry.js +7 -3
- package/dist/cjs/p-illustration.cjs.entry.js +12 -12
- package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
- package/dist/cjs/p-input-group.cjs.entry.js +41 -0
- package/dist/cjs/p-layout.cjs.entry.js +23 -0
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +92 -0
- package/dist/cjs/p-modal.cjs.entry.js +39 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
- package/dist/cjs/p-pagination.cjs.entry.js +171 -0
- package/dist/cjs/p-profile.cjs.entry.js +26 -0
- package/dist/cjs/p-segment-container.cjs.entry.js +19 -0
- package/dist/cjs/p-segment-item.cjs.entry.js +29 -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 +71 -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-tag.cjs.entry.js +27 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +78 -1812
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/cjs/popper-e0c4ed4c.js +1790 -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/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/assets/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/{helper-hover.svg → helper/helper-hover.svg} +0 -0
- package/dist/collection/assets/images/{helper.svg → helper/helper.svg} +0 -0
- package/dist/collection/collection-manifest.json +34 -1
- package/dist/collection/components/atoms/avatar/avatar.component.css +24 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +110 -0
- 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 +28 -2
- package/dist/collection/components/atoms/button/button.component.js +109 -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 +5 -0
- package/dist/collection/components/atoms/counter/counter.component.js +15 -0
- package/dist/collection/components/atoms/divider/divider.component.css +10 -0
- package/dist/collection/components/atoms/divider/divider.component.js +20 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +5 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +41 -0
- package/dist/collection/components/atoms/helper/helper.component.css +3 -3
- package/dist/collection/components/atoms/helper/helper.component.js +34 -3
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +64 -20
- package/dist/collection/components/atoms/illustration/illustration.component.js +3 -10
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
- package/dist/collection/components/atoms/layout/layout.component.css +66 -0
- package/dist/collection/components/atoms/layout/layout.component.js +47 -0
- package/dist/collection/components/atoms/loader/loader.component.css +2 -2
- package/dist/collection/components/atoms/loader/loader.component.js +4 -3
- 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 +4 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +16 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +6 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +15 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
- package/dist/collection/components/atoms/profile/profile.component.css +13 -0
- package/dist/collection/components/atoms/profile/profile.component.js +25 -0
- 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/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/tag/tag.component.css +51 -0
- package/dist/collection/components/atoms/tag/tag.component.js +64 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +22 -13
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +137 -36
- 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/dropdown/dropdown.component.css +9 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +233 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +204 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +237 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +28 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +242 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +106 -0
- package/dist/collection/components/organisms/modal/modal.component.js +111 -0
- 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 -6
- package/dist/collection/tailwind/screens.js +8 -0
- 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 +3 -0
- package/dist/collection/tailwind.config.js +26 -14
- package/dist/collection/utils/child-of.js +5 -0
- package/dist/collection/utils/icons.js +10 -0
- package/dist/collection/utils/illustrations.js +2 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/components/avatar.component.js +54 -0
- package/dist/components/counter.component.js +30 -0
- package/dist/components/divider.component.js +33 -0
- package/dist/components/dropdown-menu-container.component.js +29 -0
- package/dist/components/helper.component.js +42 -0
- package/dist/components/icon.component.js +138 -9
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +33 -0
- package/dist/components/loader.component.js +5 -4
- 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 +36 -0
- package/dist/components/modal-header.component.js +30 -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.d.ts +11 -0
- package/dist/components/p-avatar.js +6 -0
- package/dist/components/p-button.js +28 -4
- 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-counter.d.ts +11 -0
- package/dist/components/p-counter.js +6 -0
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +6 -0
- 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 +39 -0
- package/dist/components/p-dropdown.d.ts +11 -0
- package/dist/components/p-dropdown.js +166 -0
- package/dist/components/p-helper.js +1 -34
- package/dist/components/p-illustration.js +3 -4
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +56 -0
- package/dist/components/p-input-group.d.ts +11 -0
- package/dist/components/p-input-group.js +84 -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 +94 -0
- package/dist/components/p-navigation-item.d.ts +11 -0
- package/dist/components/p-navigation-item.js +55 -0
- package/dist/components/p-pagination-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +6 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +200 -0
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +46 -0
- package/dist/components/p-segment-container.d.ts +11 -0
- package/dist/components/p-segment-container.js +32 -0
- package/dist/components/p-segment-item.d.ts +11 -0
- package/dist/components/p-segment-item.js +54 -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 +106 -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-tag.d.ts +11 -0
- package/dist/components/p-tag.js +44 -0
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/popper.js +1788 -0
- package/dist/components/stepper-item.component.js +57 -0
- package/dist/components/stepper-line.component.js +41 -0
- package/dist/components/tooltip.component.js +84 -1816
- package/dist/esm/{index-d08bfe75.js → index-fff70567.js} +229 -3
- package/dist/esm/loader.js +2 -2
- 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 +34 -0
- package/dist/esm/p-button_3.entry.js +167 -17
- 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-counter.entry.js +15 -0
- package/dist/esm/p-divider.entry.js +18 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +15 -0
- package/dist/esm/p-dropdown-menu-item.entry.js +19 -0
- package/dist/esm/p-dropdown.entry.js +137 -0
- package/dist/esm/p-helper.entry.js +7 -3
- package/dist/esm/p-illustration.entry.js +12 -12
- package/dist/esm/p-info-panel.entry.js +27 -0
- package/dist/esm/p-input-group.entry.js +37 -0
- package/dist/esm/p-layout.entry.js +19 -0
- package/dist/esm/p-modal-backdrop_5.entry.js +84 -0
- package/dist/esm/p-modal.entry.js +35 -0
- package/dist/esm/p-navigation-item.entry.js +19 -0
- package/dist/esm/p-pagination-item.entry.js +19 -0
- package/dist/esm/p-pagination.entry.js +167 -0
- package/dist/esm/p-profile.entry.js +22 -0
- package/dist/esm/p-segment-container.entry.js +15 -0
- package/dist/esm/p-segment-item.entry.js +25 -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 +67 -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-tag.entry.js +23 -0
- package/dist/esm/p-tooltip.entry.js +78 -1812
- package/dist/esm/paperless.js +2 -2
- 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/p-0100c1a2.js +2 -0
- package/dist/paperless/p-0f931c83.entry.js +1 -0
- package/dist/paperless/p-0fe2b204.entry.js +1 -0
- package/dist/paperless/p-115c5de5.entry.js +1 -0
- package/dist/{build/p-f04c4de0.entry.js → paperless/p-1413a437.entry.js} +1 -1
- package/dist/paperless/p-17febf9c.entry.js +1 -0
- package/dist/paperless/p-19254809.entry.js +1 -0
- package/dist/paperless/p-27b956f9.entry.js +1 -0
- package/dist/paperless/p-2d23433e.entry.js +1 -0
- package/dist/paperless/p-2ef1ceb2.entry.js +1 -0
- package/dist/paperless/p-3222904d.entry.js +1 -0
- package/dist/paperless/p-38e37679.entry.js +1 -0
- package/dist/paperless/p-46a2fa14.entry.js +1 -0
- package/dist/paperless/p-4a0adfc2.entry.js +1 -0
- package/dist/paperless/p-540149ea.entry.js +1 -0
- package/dist/paperless/p-57d1e41b.entry.js +1 -0
- package/dist/paperless/p-5e959430.entry.js +1 -0
- package/dist/paperless/p-66dc37d4.entry.js +1 -0
- package/dist/paperless/p-8268fd06.entry.js +1 -0
- package/dist/paperless/p-a65fea4b.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-bce3c8ba.entry.js +1 -0
- package/dist/paperless/p-bf9c21cb.entry.js +1 -0
- package/dist/paperless/p-c0591445.entry.js +1 -0
- package/dist/paperless/p-c272f950.entry.js +1 -0
- package/dist/paperless/p-c525ea4b.entry.js +1 -0
- package/dist/paperless/p-cfa78aa0.entry.js +1 -0
- package/dist/paperless/p-d5a61e5e.entry.js +1 -0
- package/dist/paperless/p-d8e5ce34.entry.js +1 -0
- package/dist/paperless/p-db270856.entry.js +1 -0
- package/dist/paperless/p-db6b16e3.entry.js +1 -0
- package/dist/paperless/p-ebefedee.entry.js +1 -0
- package/dist/paperless/p-f8a3eb30.entry.js +1 -0
- package/dist/paperless/p-fa41110f.entry.js +1 -0
- package/dist/paperless/paperless.css +288 -26411
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +2 -290
- 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/rotate.js +8 -0
- package/dist/tailwind/scale.js +3 -0
- package/dist/tailwind/screens.js +8 -0
- package/dist/tailwind/shadows.js +7 -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 +3 -0
- package/dist/tailwind.config.js +26 -14
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/button/button.component.d.ts +18 -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 +3 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +7 -0
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +7 -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/info-panel/info-panel.component.d.ts +24 -0
- package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
- 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 +3 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +3 -0
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
- package/dist/types/components/atoms/profile/profile.component.d.ts +8 -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/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/tag/tag.component.d.ts +11 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +20 -8
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +42 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +49 -0
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +28 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +25 -0
- package/dist/types/components.d.ts +1078 -21
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +5 -0
- package/dist/types/utils/illustrations.d.ts +1 -0
- package/dist/types/utils/types.d.ts +2 -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-003bc169.entry.js +0 -1
- package/dist/build/p-f33e1285.js +0 -2
- package/dist/build/p-f64e0b3a.entry.js +0 -1
- package/dist/build/p-fdbec0d3.entry.js +0 -1
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/paperless/p-003bc169.entry.js +0 -1
- package/dist/paperless/p-f33e1285.js +0 -2
- package/dist/paperless/p-f64e0b3a.entry.js +0 -1
- package/dist/paperless/p-fdbec0d3.entry.js +0 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './icon.component.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './pagination-item.component.js';
|
|
4
|
+
|
|
5
|
+
const paginationComponentCss = ".static{position:static!important}.flex{display:flex!important}*{box-sizing:border-box}p-pagination{display:flex}";
|
|
6
|
+
|
|
7
|
+
const Pagination = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.pageChange = createEvent(this, "pageChange", 7);
|
|
12
|
+
/**
|
|
13
|
+
* The current page
|
|
14
|
+
*/
|
|
15
|
+
this.page = 1;
|
|
16
|
+
/**
|
|
17
|
+
* The amount of items per page
|
|
18
|
+
*/
|
|
19
|
+
this.pageSize = 12;
|
|
20
|
+
this._pages = [];
|
|
21
|
+
this._set = [];
|
|
22
|
+
this._nextClick = () => {
|
|
23
|
+
const nextPage = this.page + 1;
|
|
24
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this._changePage(nextPage);
|
|
28
|
+
};
|
|
29
|
+
this._pageClick = (p) => this._changePage(p);
|
|
30
|
+
this._generateSet = (range = 1, enableBoundaries = true) => {
|
|
31
|
+
const totalPages = this._pages.length;
|
|
32
|
+
if (!totalPages) {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
let start = this.page - range;
|
|
36
|
+
let end = this.page + range;
|
|
37
|
+
if (end > totalPages) {
|
|
38
|
+
end = totalPages;
|
|
39
|
+
start = totalPages - range * 2;
|
|
40
|
+
start = start < 1 ? 1 : start;
|
|
41
|
+
}
|
|
42
|
+
if (start <= 1) {
|
|
43
|
+
start = 1;
|
|
44
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
45
|
+
}
|
|
46
|
+
const set = [];
|
|
47
|
+
const previous = {
|
|
48
|
+
type: 'previous',
|
|
49
|
+
value: h("p-icon", { variant: "chevron", rotate: 90 }),
|
|
50
|
+
};
|
|
51
|
+
const next = {
|
|
52
|
+
type: 'next',
|
|
53
|
+
value: h("p-icon", { variant: "chevron", rotate: -90 }),
|
|
54
|
+
};
|
|
55
|
+
// Disable page range, display all the pages
|
|
56
|
+
if (range === null) {
|
|
57
|
+
const p = this._pages.map((p) => ({
|
|
58
|
+
type: 'page',
|
|
59
|
+
value: p,
|
|
60
|
+
}));
|
|
61
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
62
|
+
}
|
|
63
|
+
if (enableBoundaries) {
|
|
64
|
+
set.push(previous);
|
|
65
|
+
}
|
|
66
|
+
if (start <= 3) {
|
|
67
|
+
for (let i = 1; i < start; i++) {
|
|
68
|
+
set.push({
|
|
69
|
+
type: 'page',
|
|
70
|
+
value: this._pages[i - 1],
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
set.push({
|
|
76
|
+
type: 'page',
|
|
77
|
+
value: 1,
|
|
78
|
+
});
|
|
79
|
+
set.push({
|
|
80
|
+
type: 'ellipsis',
|
|
81
|
+
value: 'ellipsis',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
for (let i = start; i <= end; i++) {
|
|
85
|
+
set.push({
|
|
86
|
+
type: 'page',
|
|
87
|
+
value: this._pages[i - 1],
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if (end >= totalPages - 2) {
|
|
91
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
92
|
+
set.push({
|
|
93
|
+
type: 'page',
|
|
94
|
+
value: this._pages[i - 1],
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
set.push({
|
|
100
|
+
type: 'ellipsis',
|
|
101
|
+
});
|
|
102
|
+
set.push({
|
|
103
|
+
type: 'page',
|
|
104
|
+
value: this._pages[this._pages.length - 1],
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (enableBoundaries) {
|
|
108
|
+
set.push(next);
|
|
109
|
+
}
|
|
110
|
+
return set;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
componentWillRender() {
|
|
114
|
+
this._generate();
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
var _a;
|
|
118
|
+
return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
|
|
119
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
120
|
+
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
121
|
+
? this._previousClick()
|
|
122
|
+
: this._nextClick() }, p.value));
|
|
123
|
+
}
|
|
124
|
+
if (p.type === 'ellipsis') {
|
|
125
|
+
return h("p-pagination-item", null, "...");
|
|
126
|
+
}
|
|
127
|
+
return (h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
128
|
+
})));
|
|
129
|
+
}
|
|
130
|
+
pageChangeHandler() {
|
|
131
|
+
this._generate();
|
|
132
|
+
}
|
|
133
|
+
_generate() {
|
|
134
|
+
var _a;
|
|
135
|
+
this._pages = this._generatePages();
|
|
136
|
+
this._set = this._generateSet();
|
|
137
|
+
if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
138
|
+
this._changePage(this._pages.length);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
_changePage(p) {
|
|
142
|
+
if (!p) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
this.page = p;
|
|
146
|
+
this.pageChange.emit(this.page);
|
|
147
|
+
}
|
|
148
|
+
_previousClick() {
|
|
149
|
+
const previousPage = this.page - 1;
|
|
150
|
+
if (previousPage < this._pages[0]) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
this._changePage(previousPage);
|
|
154
|
+
}
|
|
155
|
+
_generatePages() {
|
|
156
|
+
if (!this.total || !this.pageSize) {
|
|
157
|
+
return [];
|
|
158
|
+
}
|
|
159
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
160
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
161
|
+
}
|
|
162
|
+
static get watchers() { return {
|
|
163
|
+
"page": ["pageChangeHandler"],
|
|
164
|
+
"pageSize": ["pageChangeHandler"],
|
|
165
|
+
"total": ["pageChangeHandler"]
|
|
166
|
+
}; }
|
|
167
|
+
static get style() { return paginationComponentCss; }
|
|
168
|
+
}, [0, "p-pagination", {
|
|
169
|
+
"page": [1538],
|
|
170
|
+
"pageSize": [2, "page-size"],
|
|
171
|
+
"total": [2]
|
|
172
|
+
}]);
|
|
173
|
+
function defineCustomElement$1() {
|
|
174
|
+
if (typeof customElements === "undefined") {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const components = ["p-pagination", "p-icon", "p-pagination-item"];
|
|
178
|
+
components.forEach(tagName => { switch (tagName) {
|
|
179
|
+
case "p-pagination":
|
|
180
|
+
if (!customElements.get(tagName)) {
|
|
181
|
+
customElements.define(tagName, Pagination);
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
case "p-icon":
|
|
185
|
+
if (!customElements.get(tagName)) {
|
|
186
|
+
defineCustomElement$3();
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
case "p-pagination-item":
|
|
190
|
+
if (!customElements.get(tagName)) {
|
|
191
|
+
defineCustomElement$2();
|
|
192
|
+
}
|
|
193
|
+
break;
|
|
194
|
+
} });
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
const PPagination = Pagination;
|
|
198
|
+
const defineCustomElement = defineCustomElement$1;
|
|
199
|
+
|
|
200
|
+
export { PPagination, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PProfile extends Components.PProfile, HTMLElement {}
|
|
4
|
+
export const PProfile: {
|
|
5
|
+
prototype: PProfile;
|
|
6
|
+
new (): PProfile;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './avatar.component.js';
|
|
3
|
+
|
|
4
|
+
const profileComponentCss = ".static{position:static!important}.flex{display:flex!important}.flex-col{flex-direction:column!important}.gap-4{gap:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}*{box-sizing:border-box}:host{align-items:center;display:flex;gap:1rem}:host .name{display:flex;flex-direction:column;justify-content:center}:host .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 .name>:nth-child(2){--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem}";
|
|
5
|
+
|
|
6
|
+
const Profile = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
const avatar = this._generateAvatar();
|
|
14
|
+
return (h(Host, { class: "p-profile" }, avatar, h("div", { class: "name" }, h("slot", { name: "title" }), h("slot", { name: "subtitle" }))));
|
|
15
|
+
}
|
|
16
|
+
_generateAvatar() {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
const avatar = this._el.querySelector('p-avatar[slot="avatar"]');
|
|
19
|
+
return (h("p-avatar", { class: "flex", src: (_a = avatar.src) !== null && _a !== void 0 ? _a : null, "default-image": (_b = avatar.defaultImage) !== null && _b !== void 0 ? _b : null, variant: avatar.variant, size: "small" }));
|
|
20
|
+
}
|
|
21
|
+
get _el() { return this; }
|
|
22
|
+
static get style() { return profileComponentCss; }
|
|
23
|
+
}, [1, "p-profile"]);
|
|
24
|
+
function defineCustomElement$1() {
|
|
25
|
+
if (typeof customElements === "undefined") {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const components = ["p-profile", "p-avatar"];
|
|
29
|
+
components.forEach(tagName => { switch (tagName) {
|
|
30
|
+
case "p-profile":
|
|
31
|
+
if (!customElements.get(tagName)) {
|
|
32
|
+
customElements.define(tagName, Profile);
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
case "p-avatar":
|
|
36
|
+
if (!customElements.get(tagName)) {
|
|
37
|
+
defineCustomElement$2();
|
|
38
|
+
}
|
|
39
|
+
break;
|
|
40
|
+
} });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const PProfile = Profile;
|
|
44
|
+
const defineCustomElement = defineCustomElement$1;
|
|
45
|
+
|
|
46
|
+
export { PProfile, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PSegmentContainer extends Components.PSegmentContainer, HTMLElement {}
|
|
4
|
+
export const PSegmentContainer: {
|
|
5
|
+
prototype: PSegmentContainer;
|
|
6
|
+
new (): PSegmentContainer;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const segmentContainerComponentCss = ".static{position:static!important}.flex{display:flex!important}.h-8{height:2rem!important}.rounded{border-radius:.25rem!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!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}*{box-sizing:border-box}p-segment-container{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;display:flex;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);height:2rem;padding:.25rem}";
|
|
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$1() {
|
|
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
|
+
const PSegmentContainer = SegmentContainer;
|
|
30
|
+
const defineCustomElement = defineCustomElement$1;
|
|
31
|
+
|
|
32
|
+
export { PSegmentContainer, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PSegmentItem extends Components.PSegmentItem, HTMLElement {}
|
|
4
|
+
export const PSegmentItem: {
|
|
5
|
+
prototype: PSegmentItem;
|
|
6
|
+
new (): PSegmentItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
3
|
+
|
|
4
|
+
const segmentItemComponentCss = ".static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.font-medium{font-weight:500!important}.text-storm-light{--tw-text-opacity:1!important;color:rgb(176 178 203/var(--tw-text-opacity))!important}.text-indigo{--tw-text-opacity:1!important;color:rgb(82 138 250/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;align-items:center;border-radius:.25rem;color:rgb(176 178 203/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;font-weight:500;height:1.5rem;line-height:1.25rem;margin-right:.25rem;padding-left:.5rem;padding-right:.5rem}:host(.variant-icon){justify-content:center;padding-left:0;padding-right:0;width:1.5rem}:host(:hover){--tw-text-opacity:1;color:rgb(128 130 158/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))}:host(:last-child){margin-right:0}";
|
|
5
|
+
|
|
6
|
+
const SegmentItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
/**
|
|
12
|
+
* Wether the segment item is active
|
|
13
|
+
*/
|
|
14
|
+
this.active = false;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, { class: `p-segment-item variant-${this.icon ? 'icon' : 'default'} ${this.active && 'active'}` }, this.icon ? this._getIcon() : h("slot", null)));
|
|
18
|
+
}
|
|
19
|
+
_getIcon() {
|
|
20
|
+
if (!this.icon) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
return (h("p-icon", { class: "flex", variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
24
|
+
}
|
|
25
|
+
static get style() { return segmentItemComponentCss; }
|
|
26
|
+
}, [1, "p-segment-item", {
|
|
27
|
+
"active": [4],
|
|
28
|
+
"icon": [1],
|
|
29
|
+
"iconFlip": [1, "icon-flip"],
|
|
30
|
+
"iconRotate": [2, "icon-rotate"]
|
|
31
|
+
}]);
|
|
32
|
+
function defineCustomElement$1() {
|
|
33
|
+
if (typeof customElements === "undefined") {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const components = ["p-segment-item", "p-icon"];
|
|
37
|
+
components.forEach(tagName => { switch (tagName) {
|
|
38
|
+
case "p-segment-item":
|
|
39
|
+
if (!customElements.get(tagName)) {
|
|
40
|
+
customElements.define(tagName, SegmentItem);
|
|
41
|
+
}
|
|
42
|
+
break;
|
|
43
|
+
case "p-icon":
|
|
44
|
+
if (!customElements.get(tagName)) {
|
|
45
|
+
defineCustomElement$2();
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
} });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const PSegmentItem = SegmentItem;
|
|
52
|
+
const defineCustomElement = defineCustomElement$1;
|
|
53
|
+
|
|
54
|
+
export { PSegmentItem, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PStatus extends Components.PStatus, HTMLElement {}
|
|
4
|
+
export const PStatus: {
|
|
5
|
+
prototype: PStatus;
|
|
6
|
+
new (): PStatus;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
3
|
+
|
|
4
|
+
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))}";
|
|
5
|
+
|
|
6
|
+
const Status = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
/**
|
|
11
|
+
* The variant of the status
|
|
12
|
+
*/
|
|
13
|
+
this.variant = 'default';
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { class: `p-status variant-${this.variant}
|
|
17
|
+
}` }, this._getIcon(), h("slot", null)));
|
|
18
|
+
}
|
|
19
|
+
_getIcon() {
|
|
20
|
+
const icon = this.icon || this._getVariantIcon();
|
|
21
|
+
if (!icon) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
return (h("p-icon", { variant: icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
25
|
+
}
|
|
26
|
+
_getVariantIcon() {
|
|
27
|
+
let icon = null;
|
|
28
|
+
switch (this.variant) {
|
|
29
|
+
case 'positive':
|
|
30
|
+
icon = 'checkmark';
|
|
31
|
+
break;
|
|
32
|
+
case 'negative':
|
|
33
|
+
icon = 'negative';
|
|
34
|
+
break;
|
|
35
|
+
case 'unbiased':
|
|
36
|
+
icon = 'clock';
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
icon = null;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
return icon;
|
|
43
|
+
}
|
|
44
|
+
static get style() { return statusComponentCss; }
|
|
45
|
+
}, [4, "p-status", {
|
|
46
|
+
"variant": [1],
|
|
47
|
+
"icon": [1],
|
|
48
|
+
"iconFlip": [1, "icon-flip"],
|
|
49
|
+
"iconRotate": [2, "icon-rotate"]
|
|
50
|
+
}]);
|
|
51
|
+
function defineCustomElement$1() {
|
|
52
|
+
if (typeof customElements === "undefined") {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const components = ["p-status", "p-icon"];
|
|
56
|
+
components.forEach(tagName => { switch (tagName) {
|
|
57
|
+
case "p-status":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
customElements.define(tagName, Status);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
case "p-icon":
|
|
63
|
+
if (!customElements.get(tagName)) {
|
|
64
|
+
defineCustomElement$2();
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
} });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const PStatus = Status;
|
|
71
|
+
const defineCustomElement = defineCustomElement$1;
|
|
72
|
+
|
|
73
|
+
export { PStatus, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PStepperItem extends Components.PStepperItem, HTMLElement {}
|
|
4
|
+
export const PStepperItem: {
|
|
5
|
+
prototype: PStepperItem;
|
|
6
|
+
new (): PStepperItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PStepperLine extends Components.PStepperLine, HTMLElement {}
|
|
4
|
+
export const PStepperLine: {
|
|
5
|
+
prototype: PStepperLine;
|
|
6
|
+
new (): PStepperLine;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PStepper extends Components.PStepper, HTMLElement {}
|
|
4
|
+
export const PStepper: {
|
|
5
|
+
prototype: PStepper;
|
|
6
|
+
new (): PStepper;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$4 } from './icon.component.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './stepper-item.component.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './stepper-line.component.js';
|
|
5
|
+
|
|
6
|
+
const stepperComponentCss = ".static{position:static!important}.mb-3{margin-bottom:.75rem!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-auto{height:auto!important}.w-full{width:100%!important}.flex-auto{flex:1 1 auto!important}.-translate-y-1{--tw-translate-y:-0.25rem!important}.-translate-x-1,.-translate-y-1{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}.-translate-x-1{--tw-translate-x:-0.25rem!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}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.border-t-2{border-top-width:2px!important}.border-r-2{border-right-width:2px!important}.border-indigo{border-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-indigo,.border-mystic-dark{--tw-border-opacity:1!important}.border-mystic-dark{border-color:rgb(218 230 240/var(--tw-border-opacity))!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}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!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%}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{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}.-translate-x-1\\/2{--tw-translate-x:-50%!important}";
|
|
7
|
+
|
|
8
|
+
const Stepper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
/**
|
|
14
|
+
* The currently active step
|
|
15
|
+
*/
|
|
16
|
+
this.activeStep = 1;
|
|
17
|
+
/**
|
|
18
|
+
* The direction of the stepper
|
|
19
|
+
*/
|
|
20
|
+
this.direction = 'horizontal';
|
|
21
|
+
}
|
|
22
|
+
componentWillRender() {
|
|
23
|
+
const activeStep = this.activeStep - 1;
|
|
24
|
+
this._steps = this._generateSteps(activeStep);
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return h(Host, { class: "p-stepper" }, this._steps);
|
|
28
|
+
}
|
|
29
|
+
_generateSteps(activeStep) {
|
|
30
|
+
const elements = [];
|
|
31
|
+
const items = this._el.querySelectorAll('p-stepper-item');
|
|
32
|
+
for (let i = 0; i < (items === null || items === void 0 ? void 0 : items.length); i++) {
|
|
33
|
+
const item = items.item(i);
|
|
34
|
+
if (i > 0) {
|
|
35
|
+
elements.push(h("p-stepper-line", { direction: this.direction, active: i <= activeStep }));
|
|
36
|
+
}
|
|
37
|
+
const newItem = (h("p-stepper-item", { active: i === activeStep, finished: i < activeStep, direction: this.direction, align: i === 0
|
|
38
|
+
? 'start'
|
|
39
|
+
: i === (items === null || items === void 0 ? void 0 : items.length) - 1
|
|
40
|
+
? 'end'
|
|
41
|
+
: 'center' }, item.innerHTML));
|
|
42
|
+
elements.push(newItem);
|
|
43
|
+
}
|
|
44
|
+
return elements;
|
|
45
|
+
// return this._el
|
|
46
|
+
// .querySelectorAll('p-stepper-step')
|
|
47
|
+
// .map((child: any, index) => {
|
|
48
|
+
// return (
|
|
49
|
+
// <>
|
|
50
|
+
// {index > 0 && (
|
|
51
|
+
// <div
|
|
52
|
+
// className={`flex-auto transform ${
|
|
53
|
+
// direction === 'horizontal'
|
|
54
|
+
// ? 'border-t-2 mb-3 -translate-y-1/2'
|
|
55
|
+
// : 'border-r-2 ml-2 -translate-x-1/2'
|
|
56
|
+
// } transition duration-500 ease-in-out ${
|
|
57
|
+
// index <= activeStep
|
|
58
|
+
// ? 'border-indigo'
|
|
59
|
+
// : 'border-mystic-dark'
|
|
60
|
+
// }`}
|
|
61
|
+
// ></div>
|
|
62
|
+
// )}
|
|
63
|
+
// {child}
|
|
64
|
+
// </>
|
|
65
|
+
// );
|
|
66
|
+
// });
|
|
67
|
+
}
|
|
68
|
+
get _el() { return this; }
|
|
69
|
+
static get style() { return stepperComponentCss; }
|
|
70
|
+
}, [1, "p-stepper", {
|
|
71
|
+
"activeStep": [2, "active-step"],
|
|
72
|
+
"direction": [513]
|
|
73
|
+
}]);
|
|
74
|
+
function defineCustomElement$1() {
|
|
75
|
+
if (typeof customElements === "undefined") {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const components = ["p-stepper", "p-icon", "p-stepper-item", "p-stepper-line"];
|
|
79
|
+
components.forEach(tagName => { switch (tagName) {
|
|
80
|
+
case "p-stepper":
|
|
81
|
+
if (!customElements.get(tagName)) {
|
|
82
|
+
customElements.define(tagName, Stepper);
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
case "p-icon":
|
|
86
|
+
if (!customElements.get(tagName)) {
|
|
87
|
+
defineCustomElement$4();
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
case "p-stepper-item":
|
|
91
|
+
if (!customElements.get(tagName)) {
|
|
92
|
+
defineCustomElement$3();
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
case "p-stepper-line":
|
|
96
|
+
if (!customElements.get(tagName)) {
|
|
97
|
+
defineCustomElement$2();
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
} });
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const PStepper = Stepper;
|
|
104
|
+
const defineCustomElement = defineCustomElement$1;
|
|
105
|
+
|
|
106
|
+
export { PStepper, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PTabGroup extends Components.PTabGroup, HTMLElement {}
|
|
4
|
+
export const PTabGroup: {
|
|
5
|
+
prototype: PTabGroup;
|
|
6
|
+
new (): PTabGroup;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './divider.component.js';
|
|
3
|
+
|
|
4
|
+
const tabGroupComponentCss = ".static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.gap-5{gap:1.25rem!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;position:relative;width:100%}:host .content{display:flex;gap:1.25rem;width:100%;z-index:10}:host p-divider{bottom:0;left:0;margin:0;position:absolute;width:100%}";
|
|
5
|
+
|
|
6
|
+
const TabGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { class: "p-tab-group" }, h("div", { class: "content" }, h("slot", null)), h("p-divider", null)));
|
|
14
|
+
}
|
|
15
|
+
static get style() { return tabGroupComponentCss; }
|
|
16
|
+
}, [1, "p-tab-group"]);
|
|
17
|
+
function defineCustomElement$1() {
|
|
18
|
+
if (typeof customElements === "undefined") {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const components = ["p-tab-group", "p-divider"];
|
|
22
|
+
components.forEach(tagName => { switch (tagName) {
|
|
23
|
+
case "p-tab-group":
|
|
24
|
+
if (!customElements.get(tagName)) {
|
|
25
|
+
customElements.define(tagName, TabGroup);
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
28
|
+
case "p-divider":
|
|
29
|
+
if (!customElements.get(tagName)) {
|
|
30
|
+
defineCustomElement$2();
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
} });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const PTabGroup = TabGroup;
|
|
37
|
+
const defineCustomElement = defineCustomElement$1;
|
|
38
|
+
|
|
39
|
+
export { PTabGroup, defineCustomElement };
|