@paperless/core 0.1.0-alpha.5 → 0.1.0-alpha.50
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 +441 -0
- package/README.md +18 -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/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/helper/helper-hover.svg +15 -0
- package/dist/assets/images/helper/helper.svg +15 -0
- package/dist/build/p-0100c1a2.js +2 -0
- package/dist/build/p-0fc4e043.entry.js +1 -0
- package/dist/build/p-11d24001.entry.js +1 -0
- package/dist/build/p-19254809.entry.js +1 -0
- package/dist/build/p-2120a0b7.entry.js +1 -0
- package/dist/build/p-27914eed.entry.js +1 -0
- package/dist/build/p-2c23d197.entry.js +1 -0
- package/dist/build/p-2c7eebe0.entry.js +1 -0
- package/dist/build/p-3b491ca2.entry.js +1 -0
- package/dist/build/p-3f6d3736.entry.js +1 -0
- package/dist/build/p-4a85b858.entry.js +1 -0
- package/dist/build/p-5101f35f.entry.js +1 -0
- package/dist/build/p-5438d70e.entry.js +1 -0
- package/dist/build/p-67079a0b.entry.js +1 -0
- package/dist/build/p-67fc89a6.entry.js +1 -0
- package/dist/build/p-6e60b92a.entry.js +1 -0
- package/dist/build/p-7784ee14.entry.js +1 -0
- package/dist/build/p-7cf04cb4.entry.js +1 -0
- package/dist/build/p-864ac423.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-b68368f3.entry.js +1 -0
- package/dist/build/p-c64e2313.entry.js +1 -0
- package/dist/build/p-ccbddcbb.entry.js +1 -0
- package/dist/build/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
- package/dist/build/p-f50c6e5b.entry.js +1 -0
- package/dist/build/p-fb1e33eb.entry.js +1 -0
- package/dist/build/p-ffeed7c6.entry.js +1 -0
- package/dist/build/paperless.css +29 -18
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-a2da05ae.js → index-f9c302b6.js} +201 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
- package/dist/cjs/p-avatar.cjs.entry.js +35 -0
- package/dist/cjs/p-button_3.cjs.entry.js +162 -17
- package/dist/cjs/p-card-body.cjs.entry.js +23 -0
- package/dist/cjs/p-card-container.cjs.entry.js +23 -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 +19 -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 +19 -0
- package/dist/cjs/p-illustration.cjs.entry.js +9 -12
- package/dist/cjs/p-info-panel.cjs.entry.js +31 -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-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-line_2.cjs.entry.js +56 -0
- package/dist/cjs/p-stepper.cjs.entry.js +72 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +75 -1811
- 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/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
- package/dist/collection/assets/images/helper/helper.svg +15 -0
- package/dist/collection/collection-manifest.json +28 -1
- package/dist/collection/components/atoms/avatar/avatar.component.css +24 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +107 -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 +23 -1
- package/dist/collection/components/atoms/button/button.component.js +86 -10
- 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 +13 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +41 -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 +60 -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 +3 -0
- package/dist/collection/components/atoms/divider/divider.component.js +14 -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 +7 -0
- package/dist/collection/components/atoms/helper/helper.component.js +18 -0
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +63 -20
- package/dist/collection/components/atoms/illustration/illustration.component.js +2 -9
- 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/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/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-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/stepper-step/stepper-step.component.css +59 -0
- package/dist/collection/components/atoms/stepper-step/stepper-step.component.js +109 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +133 -35
- 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/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 +107 -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/grid.js +24 -4
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/z-index.js +3 -0
- package/dist/collection/tailwind.config.js +21 -13
- package/dist/collection/utils/child-of.js +5 -0
- package/dist/collection/utils/icons.js +10 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/components/counter.component.js +30 -0
- package/dist/components/divider.component.js +30 -0
- package/dist/components/dropdown-menu-container.component.js +29 -0
- package/dist/components/icon.component.js +137 -9
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +27 -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-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 +54 -0
- package/dist/components/p-button.js +23 -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 +39 -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.d.ts +11 -0
- package/dist/components/p-helper.js +39 -0
- package/dist/components/p-illustration.js +0 -4
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +56 -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-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-line.d.ts +11 -0
- package/dist/components/p-stepper-line.js +6 -0
- package/dist/components/p-stepper-step.d.ts +11 -0
- package/dist/components/p-stepper-step.js +6 -0
- package/dist/components/p-stepper.d.ts +11 -0
- package/dist/components/p-stepper.js +107 -0
- package/dist/components/p-tooltip.js +1 -1886
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/popper.js +1788 -0
- package/dist/components/stepper-line.component.js +41 -0
- package/dist/components/stepper-step.component.js +57 -0
- package/dist/components/tooltip.component.js +154 -0
- package/dist/esm/{index-d08bfe75.js → index-fff70567.js} +201 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar.entry.js +31 -0
- package/dist/esm/p-button_3.entry.js +162 -17
- package/dist/esm/p-card-body.entry.js +19 -0
- package/dist/esm/p-card-container.entry.js +19 -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 +15 -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 +15 -0
- package/dist/esm/p-illustration.entry.js +9 -12
- package/dist/esm/p-info-panel.entry.js +27 -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-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-line_2.entry.js +51 -0
- package/dist/esm/p-stepper.entry.js +68 -0
- package/dist/esm/p-tooltip.entry.js +75 -1811
- 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-0fc4e043.entry.js +1 -0
- package/dist/paperless/p-11d24001.entry.js +1 -0
- package/dist/paperless/p-19254809.entry.js +1 -0
- package/dist/paperless/p-2120a0b7.entry.js +1 -0
- package/dist/paperless/p-27914eed.entry.js +1 -0
- package/dist/paperless/p-2c23d197.entry.js +1 -0
- package/dist/paperless/p-2c7eebe0.entry.js +1 -0
- package/dist/paperless/p-3b491ca2.entry.js +1 -0
- package/dist/paperless/p-3f6d3736.entry.js +1 -0
- package/dist/paperless/p-4a85b858.entry.js +1 -0
- package/dist/paperless/p-5101f35f.entry.js +1 -0
- package/dist/paperless/p-5438d70e.entry.js +1 -0
- package/dist/paperless/p-67079a0b.entry.js +1 -0
- package/dist/paperless/p-67fc89a6.entry.js +1 -0
- package/dist/paperless/p-6e60b92a.entry.js +1 -0
- package/dist/paperless/p-7784ee14.entry.js +1 -0
- package/dist/paperless/p-7cf04cb4.entry.js +1 -0
- package/dist/paperless/p-864ac423.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-b68368f3.entry.js +1 -0
- package/dist/paperless/p-c64e2313.entry.js +1 -0
- package/dist/paperless/p-ccbddcbb.entry.js +1 -0
- package/dist/paperless/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
- package/dist/paperless/p-f50c6e5b.entry.js +1 -0
- package/dist/paperless/p-fb1e33eb.entry.js +1 -0
- package/dist/paperless/p-ffeed7c6.entry.js +1 -0
- package/dist/paperless/paperless.css +82 -26376
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +2 -260
- 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/grid.js +26 -0
- package/dist/tailwind/rotate.js +8 -0
- package/dist/tailwind/scale.js +3 -0
- package/dist/tailwind/shadows.js +7 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/z-index.js +3 -0
- package/dist/tailwind.config.js +21 -13
- 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 +14 -1
- package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
- package/dist/types/components/atoms/card-container/card-container.component.d.ts +7 -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 +3 -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 +3 -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/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/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-line/stepper-line.component.d.ts +11 -0
- package/dist/types/components/atoms/stepper-step/stepper-step.component.d.ts +19 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +20 -8
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +42 -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 +817 -20
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +5 -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-4144f8a0.entry.js +0 -1
- package/dist/build/p-c04e9d44.entry.js +0 -1
- package/dist/build/p-f33e1285.js +0 -2
- package/dist/paperless/p-4144f8a0.entry.js +0 -1
- package/dist/paperless/p-c04e9d44.entry.js +0 -1
- package/dist/paperless/p-f33e1285.js +0 -2
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { createPopper } from '@popperjs/core';
|
|
2
|
+
import { Component, Element, Event, h, Host, Listen, Prop, } from '@stencil/core';
|
|
3
|
+
import { childOf } from '../../../utils/child-of';
|
|
4
|
+
export class Dropdown {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* The content of the dropdown menu
|
|
8
|
+
*/
|
|
9
|
+
this.placement = 'bottom';
|
|
10
|
+
/**
|
|
11
|
+
* Wether to show the dropdown menu
|
|
12
|
+
*/
|
|
13
|
+
this.show = false;
|
|
14
|
+
/**
|
|
15
|
+
* Wether to automatically close the dropdown menu after clicking inside
|
|
16
|
+
*/
|
|
17
|
+
this.insideClick = false;
|
|
18
|
+
/**
|
|
19
|
+
* Wether to automatically close the dropdown menu after clicking inside
|
|
20
|
+
*/
|
|
21
|
+
this.disableTriggerClick = false;
|
|
22
|
+
this._loaded = false;
|
|
23
|
+
}
|
|
24
|
+
componentShouldUpdate() {
|
|
25
|
+
this._setOptions();
|
|
26
|
+
if (this._loaded && this.show) {
|
|
27
|
+
this._show();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h(Host, { class: "p-dropdown" },
|
|
32
|
+
h("div", { class: "trigger", onClick: () => this._triggerClickHandler() },
|
|
33
|
+
h("slot", { onSlotchange: (ev) => this._checkButton(ev), name: "trigger" })),
|
|
34
|
+
h("p-dropdown-menu-container", { role: "popover", ref: (el) => this._load(el), onClick: () => this._containerClickHandler() },
|
|
35
|
+
h("slot", { name: "items" }))));
|
|
36
|
+
}
|
|
37
|
+
_checkButton({ target }) {
|
|
38
|
+
const slot = target;
|
|
39
|
+
const children = slot.assignedElements();
|
|
40
|
+
for (let child of children) {
|
|
41
|
+
if (child.nodeName === 'P-BUTTON') {
|
|
42
|
+
child.chevron =
|
|
43
|
+
this.placement === 'top' ? 'up' : 'down';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
_containerClickHandler() {
|
|
48
|
+
if (this.insideClick) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (this._menu.hasAttribute('data-show')) {
|
|
52
|
+
this._hide();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
_triggerClickHandler() {
|
|
56
|
+
if (this.disableTriggerClick) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (this._menu.hasAttribute('data-show')) {
|
|
60
|
+
this._hide();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this._show();
|
|
64
|
+
}
|
|
65
|
+
documentClickHandler({ target }) {
|
|
66
|
+
if (!this._menu.hasAttribute('data-show') ||
|
|
67
|
+
childOf(target, this._el)) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
this._hide();
|
|
71
|
+
}
|
|
72
|
+
_load(popover) {
|
|
73
|
+
this._menu = popover;
|
|
74
|
+
if (popover) {
|
|
75
|
+
this._popper = createPopper(this._el, popover);
|
|
76
|
+
this._setOptions();
|
|
77
|
+
this._loaded = true;
|
|
78
|
+
if (this.show) {
|
|
79
|
+
setTimeout(() => this._show(), 100);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
_setOptions() {
|
|
84
|
+
if (!this._popper) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this._popper.setOptions({
|
|
88
|
+
placement: `${this.placement}-start`,
|
|
89
|
+
modifiers: [
|
|
90
|
+
{
|
|
91
|
+
name: 'offset',
|
|
92
|
+
options: {
|
|
93
|
+
offset: [0, 8],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
_show() {
|
|
100
|
+
if (!this._loaded) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
// Make the popover visible
|
|
104
|
+
this._menu.setAttribute('data-show', '');
|
|
105
|
+
this.isOpen.emit(true);
|
|
106
|
+
// Enable the event listeners
|
|
107
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
108
|
+
...options.modifiers,
|
|
109
|
+
{ name: 'eventListeners', enabled: true },
|
|
110
|
+
] })));
|
|
111
|
+
// Update its position
|
|
112
|
+
this._popper.update();
|
|
113
|
+
}
|
|
114
|
+
_hide() {
|
|
115
|
+
if (!this._loaded || this.show) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
// Hide the popover
|
|
119
|
+
this._menu.removeAttribute('data-show');
|
|
120
|
+
this.isOpen.emit(false);
|
|
121
|
+
// Disable the event listeners
|
|
122
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
123
|
+
...options.modifiers,
|
|
124
|
+
{ name: 'eventListeners', enabled: false },
|
|
125
|
+
] })));
|
|
126
|
+
}
|
|
127
|
+
static get is() { return "p-dropdown"; }
|
|
128
|
+
static get encapsulation() { return "shadow"; }
|
|
129
|
+
static get originalStyleUrls() { return {
|
|
130
|
+
"$": ["dropdown.component.scss"]
|
|
131
|
+
}; }
|
|
132
|
+
static get styleUrls() { return {
|
|
133
|
+
"$": ["dropdown.component.css"]
|
|
134
|
+
}; }
|
|
135
|
+
static get properties() { return {
|
|
136
|
+
"placement": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "'bottom' | 'top'",
|
|
141
|
+
"resolved": "\"bottom\" | \"top\"",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "The content of the dropdown menu"
|
|
149
|
+
},
|
|
150
|
+
"attribute": "placement",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "'bottom'"
|
|
153
|
+
},
|
|
154
|
+
"show": {
|
|
155
|
+
"type": "boolean",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "boolean",
|
|
159
|
+
"resolved": "boolean",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Wether to show the dropdown menu"
|
|
167
|
+
},
|
|
168
|
+
"attribute": "show",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "false"
|
|
171
|
+
},
|
|
172
|
+
"insideClick": {
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "boolean",
|
|
177
|
+
"resolved": "boolean",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": "Wether to automatically close the dropdown menu after clicking inside"
|
|
185
|
+
},
|
|
186
|
+
"attribute": "inside-click",
|
|
187
|
+
"reflect": false,
|
|
188
|
+
"defaultValue": "false"
|
|
189
|
+
},
|
|
190
|
+
"disableTriggerClick": {
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "boolean",
|
|
195
|
+
"resolved": "boolean",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": "Wether to automatically close the dropdown menu after clicking inside"
|
|
203
|
+
},
|
|
204
|
+
"attribute": "disable-trigger-click",
|
|
205
|
+
"reflect": false,
|
|
206
|
+
"defaultValue": "false"
|
|
207
|
+
}
|
|
208
|
+
}; }
|
|
209
|
+
static get events() { return [{
|
|
210
|
+
"method": "isOpen",
|
|
211
|
+
"name": "isOpen",
|
|
212
|
+
"bubbles": true,
|
|
213
|
+
"cancelable": true,
|
|
214
|
+
"composed": true,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "Open change event"
|
|
218
|
+
},
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "boolean",
|
|
221
|
+
"resolved": "boolean",
|
|
222
|
+
"references": {}
|
|
223
|
+
}
|
|
224
|
+
}]; }
|
|
225
|
+
static get elementRef() { return "_el"; }
|
|
226
|
+
static get listeners() { return [{
|
|
227
|
+
"name": "click",
|
|
228
|
+
"method": "documentClickHandler",
|
|
229
|
+
"target": "document",
|
|
230
|
+
"capture": true,
|
|
231
|
+
"passive": false
|
|
232
|
+
}]; }
|
|
233
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply w-full inline-block mb-1;
|
|
3
|
+
}
|
|
4
|
+
:host > a {
|
|
5
|
+
@apply w-full h-8 px-2 cursor-pointer rounded-large;
|
|
6
|
+
@apply flex items-center;
|
|
7
|
+
@apply text-storm-medium font-medium;
|
|
8
|
+
@apply hover:bg-indigo-light hover:text-storm-dark;
|
|
9
|
+
}
|
|
10
|
+
:host > a > p-icon {
|
|
11
|
+
@apply text-mystic-dark mr-3;
|
|
12
|
+
}
|
|
13
|
+
:host > a > p-counter {
|
|
14
|
+
@apply ml-auto;
|
|
15
|
+
}
|
|
16
|
+
:host > a > span.has-counter {
|
|
17
|
+
@apply mr-3;
|
|
18
|
+
}
|
|
19
|
+
:host > a:hover > p-icon {
|
|
20
|
+
@apply text-storm-vague;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host(.active) > a {
|
|
24
|
+
@apply text-indigo bg-indigo-light;
|
|
25
|
+
}
|
|
26
|
+
:host(.active) > a > p-icon {
|
|
27
|
+
@apply text-indigo;
|
|
28
|
+
} .static{position:static!important}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
export class NavigationItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Wether the navigation item is active
|
|
6
|
+
*/
|
|
7
|
+
this.active = false;
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { class: `p-navigation-item ${this.active && 'active'}` },
|
|
11
|
+
h("a", { href: this.href, target: this.target },
|
|
12
|
+
this.icon && h("p-icon", { variant: this.icon }),
|
|
13
|
+
h("span", { class: this.counter && 'has-counter' },
|
|
14
|
+
h("slot", null)),
|
|
15
|
+
this.counter && h("p-counter", null, this.counter))));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "p-navigation-item"; }
|
|
18
|
+
static get encapsulation() { return "shadow"; }
|
|
19
|
+
static get originalStyleUrls() { return {
|
|
20
|
+
"$": ["navigation-item.component.scss"]
|
|
21
|
+
}; }
|
|
22
|
+
static get styleUrls() { return {
|
|
23
|
+
"$": ["navigation-item.component.css"]
|
|
24
|
+
}; }
|
|
25
|
+
static get properties() { return {
|
|
26
|
+
"active": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"mutable": false,
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "boolean",
|
|
31
|
+
"resolved": "boolean",
|
|
32
|
+
"references": {}
|
|
33
|
+
},
|
|
34
|
+
"required": false,
|
|
35
|
+
"optional": false,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": "Wether the navigation item is active"
|
|
39
|
+
},
|
|
40
|
+
"attribute": "active",
|
|
41
|
+
"reflect": false,
|
|
42
|
+
"defaultValue": "false"
|
|
43
|
+
},
|
|
44
|
+
"icon": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "IconVariant",
|
|
49
|
+
"resolved": "\"arrow\" | \"attachment\" | \"bread\" | \"calendar\" | \"car\" | \"checklist\" | \"checkmark\" | \"chevron\" | \"clock\" | \"cogs\" | \"comment\" | \"document\" | \"download\" | \"envelope\" | \"explanation\" | \"eye\" | \"filter\" | \"folder\" | \"grid\" | \"headset\" | \"integration\" | \"list\" | \"location\" | \"megaphone\" | \"minus\" | \"negative\" | \"pagination\" | \"payment\" | \"pencil\" | \"person\" | \"plus\" | \"question\" | \"receipt\" | \"report\" | \"search\" | \"settings\" | \"sick\" | \"tachometer\" | \"task\" | \"template\" | \"tool\" | \"trash\" | \"turn\" | \"upload\" | \"warning\"",
|
|
50
|
+
"references": {
|
|
51
|
+
"IconVariant": {
|
|
52
|
+
"location": "import",
|
|
53
|
+
"path": "../../atoms/icon/icon.component"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": "Icon of the navigation item"
|
|
62
|
+
},
|
|
63
|
+
"attribute": "icon",
|
|
64
|
+
"reflect": false
|
|
65
|
+
},
|
|
66
|
+
"counter": {
|
|
67
|
+
"type": "any",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "number | string",
|
|
71
|
+
"resolved": "number | string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "Icon of the navigation item"
|
|
79
|
+
},
|
|
80
|
+
"attribute": "counter",
|
|
81
|
+
"reflect": false
|
|
82
|
+
},
|
|
83
|
+
"href": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "string",
|
|
88
|
+
"resolved": "string",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "The href of the navigation item"
|
|
96
|
+
},
|
|
97
|
+
"attribute": "href",
|
|
98
|
+
"reflect": false
|
|
99
|
+
},
|
|
100
|
+
"target": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "The target of the navigation item"
|
|
113
|
+
},
|
|
114
|
+
"attribute": "target",
|
|
115
|
+
"reflect": false
|
|
116
|
+
}
|
|
117
|
+
}; }
|
|
118
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { Component, Event, h, Host, Prop, Watch, } from '@stencil/core';
|
|
2
|
+
export class Pagination {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The current page
|
|
6
|
+
*/
|
|
7
|
+
this.page = 1;
|
|
8
|
+
/**
|
|
9
|
+
* The amount of items per page
|
|
10
|
+
*/
|
|
11
|
+
this.pageSize = 12;
|
|
12
|
+
this._pages = [];
|
|
13
|
+
this._set = [];
|
|
14
|
+
this._nextClick = () => {
|
|
15
|
+
const nextPage = this.page + 1;
|
|
16
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this._changePage(nextPage);
|
|
20
|
+
};
|
|
21
|
+
this._pageClick = (p) => this._changePage(p);
|
|
22
|
+
this._generateSet = (range = 1, enableBoundaries = true) => {
|
|
23
|
+
const totalPages = this._pages.length;
|
|
24
|
+
if (!totalPages) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
let start = this.page - range;
|
|
28
|
+
let end = this.page + range;
|
|
29
|
+
if (end > totalPages) {
|
|
30
|
+
end = totalPages;
|
|
31
|
+
start = totalPages - range * 2;
|
|
32
|
+
start = start < 1 ? 1 : start;
|
|
33
|
+
}
|
|
34
|
+
if (start <= 1) {
|
|
35
|
+
start = 1;
|
|
36
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
37
|
+
}
|
|
38
|
+
const set = [];
|
|
39
|
+
const previous = {
|
|
40
|
+
type: 'previous',
|
|
41
|
+
value: h("p-icon", { variant: "chevron", rotate: 90 }),
|
|
42
|
+
};
|
|
43
|
+
const next = {
|
|
44
|
+
type: 'next',
|
|
45
|
+
value: h("p-icon", { variant: "chevron", rotate: -90 }),
|
|
46
|
+
};
|
|
47
|
+
// Disable page range, display all the pages
|
|
48
|
+
if (range === null) {
|
|
49
|
+
const p = this._pages.map((p) => ({
|
|
50
|
+
type: 'page',
|
|
51
|
+
value: p,
|
|
52
|
+
}));
|
|
53
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
54
|
+
}
|
|
55
|
+
if (enableBoundaries) {
|
|
56
|
+
set.push(previous);
|
|
57
|
+
}
|
|
58
|
+
if (start <= 3) {
|
|
59
|
+
for (let i = 1; i < start; i++) {
|
|
60
|
+
set.push({
|
|
61
|
+
type: 'page',
|
|
62
|
+
value: this._pages[i - 1],
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
set.push({
|
|
68
|
+
type: 'page',
|
|
69
|
+
value: 1,
|
|
70
|
+
});
|
|
71
|
+
set.push({
|
|
72
|
+
type: 'ellipsis',
|
|
73
|
+
value: 'ellipsis',
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
for (let i = start; i <= end; i++) {
|
|
77
|
+
set.push({
|
|
78
|
+
type: 'page',
|
|
79
|
+
value: this._pages[i - 1],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (end >= totalPages - 2) {
|
|
83
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
84
|
+
set.push({
|
|
85
|
+
type: 'page',
|
|
86
|
+
value: this._pages[i - 1],
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
set.push({
|
|
92
|
+
type: 'ellipsis',
|
|
93
|
+
});
|
|
94
|
+
set.push({
|
|
95
|
+
type: 'page',
|
|
96
|
+
value: this._pages[this._pages.length - 1],
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (enableBoundaries) {
|
|
100
|
+
set.push(next);
|
|
101
|
+
}
|
|
102
|
+
return set;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
componentWillRender() {
|
|
106
|
+
this._generate();
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
var _a;
|
|
110
|
+
return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
|
|
111
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
112
|
+
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
113
|
+
? this._previousClick()
|
|
114
|
+
: this._nextClick() }, p.value));
|
|
115
|
+
}
|
|
116
|
+
if (p.type === 'ellipsis') {
|
|
117
|
+
return h("p-pagination-item", null, "...");
|
|
118
|
+
}
|
|
119
|
+
return (h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
120
|
+
})));
|
|
121
|
+
}
|
|
122
|
+
pageChangeHandler() {
|
|
123
|
+
this._generate();
|
|
124
|
+
}
|
|
125
|
+
_generate() {
|
|
126
|
+
var _a;
|
|
127
|
+
this._pages = this._generatePages();
|
|
128
|
+
this._set = this._generateSet();
|
|
129
|
+
if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
130
|
+
this._changePage(this._pages.length);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
_changePage(p) {
|
|
134
|
+
if (!p) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
this.page = p;
|
|
138
|
+
this.pageChange.emit(this.page);
|
|
139
|
+
}
|
|
140
|
+
_previousClick() {
|
|
141
|
+
const previousPage = this.page - 1;
|
|
142
|
+
if (previousPage < this._pages[0]) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
this._changePage(previousPage);
|
|
146
|
+
}
|
|
147
|
+
_generatePages() {
|
|
148
|
+
if (!this.total || !this.pageSize) {
|
|
149
|
+
return [];
|
|
150
|
+
}
|
|
151
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
152
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
153
|
+
}
|
|
154
|
+
static get is() { return "p-pagination"; }
|
|
155
|
+
static get originalStyleUrls() { return {
|
|
156
|
+
"$": ["pagination.component.scss"]
|
|
157
|
+
}; }
|
|
158
|
+
static get styleUrls() { return {
|
|
159
|
+
"$": ["pagination.component.css"]
|
|
160
|
+
}; }
|
|
161
|
+
static get properties() { return {
|
|
162
|
+
"page": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"mutable": true,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "number",
|
|
167
|
+
"resolved": "number",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "The current page"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "page",
|
|
177
|
+
"reflect": true,
|
|
178
|
+
"defaultValue": "1"
|
|
179
|
+
},
|
|
180
|
+
"pageSize": {
|
|
181
|
+
"type": "number",
|
|
182
|
+
"mutable": false,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "number",
|
|
185
|
+
"resolved": "number",
|
|
186
|
+
"references": {}
|
|
187
|
+
},
|
|
188
|
+
"required": false,
|
|
189
|
+
"optional": false,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": "The amount of items per page"
|
|
193
|
+
},
|
|
194
|
+
"attribute": "page-size",
|
|
195
|
+
"reflect": false,
|
|
196
|
+
"defaultValue": "12"
|
|
197
|
+
},
|
|
198
|
+
"total": {
|
|
199
|
+
"type": "number",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "number",
|
|
203
|
+
"resolved": "number",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": true,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "The total amount of items"
|
|
211
|
+
},
|
|
212
|
+
"attribute": "total",
|
|
213
|
+
"reflect": false
|
|
214
|
+
}
|
|
215
|
+
}; }
|
|
216
|
+
static get events() { return [{
|
|
217
|
+
"method": "pageChange",
|
|
218
|
+
"name": "pageChange",
|
|
219
|
+
"bubbles": true,
|
|
220
|
+
"cancelable": true,
|
|
221
|
+
"composed": true,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": ""
|
|
225
|
+
},
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "number",
|
|
228
|
+
"resolved": "number",
|
|
229
|
+
"references": {}
|
|
230
|
+
}
|
|
231
|
+
}]; }
|
|
232
|
+
static get watchers() { return [{
|
|
233
|
+
"propName": "page",
|
|
234
|
+
"methodName": "pageChangeHandler"
|
|
235
|
+
}, {
|
|
236
|
+
"propName": "pageSize",
|
|
237
|
+
"methodName": "pageChangeHandler"
|
|
238
|
+
}, {
|
|
239
|
+
"propName": "total",
|
|
240
|
+
"methodName": "pageChangeHandler"
|
|
241
|
+
}]; }
|
|
242
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host([direction=horizontal]) {
|
|
6
|
+
@apply h-auto items-end;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([direction=vertical]) {
|
|
10
|
+
@apply flex-col flex-wrap items-start;
|
|
11
|
+
@apply w-full min-h-full;
|
|
12
|
+
} .static{position:static!important}.mb-3{margin-bottom:.75rem!important}.ml-2{margin-left:.5rem!important}.flex-auto{flex:1 1 auto!important}.-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}.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}.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}.static{position:static!important}.static{position:static!important}
|