@paperless/core 3.5.1 → 3.6.1
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/dist/{paperless/p-6412710a.entry.js → build/p-0da11431.entry.js} +1 -1
- package/dist/build/p-0f206cdb.entry.js +1 -0
- package/dist/build/p-1e9233ac.entry.js +1 -0
- package/dist/build/p-2388a075.entry.js +1 -0
- package/dist/build/p-4536b546.entry.js +1 -0
- package/dist/build/{p-26f5fca4.js → p-5087d82a.js} +1 -1
- package/dist/build/p-5b87fab2.entry.js +1 -0
- package/dist/build/{p-4cd9344a.entry.js → p-9ec433b0.entry.js} +1 -1
- package/dist/build/{p-f547d901.entry.js → p-9f1beebc.entry.js} +1 -1
- package/dist/build/p-c004664b.entry.js +1 -0
- package/dist/build/p-c3cab1ca.entry.js +1 -0
- package/dist/build/{p-413e2751.entry.js → p-d58fe6e4.entry.js} +1 -1
- package/dist/build/p-db387f26.entry.js +1 -0
- package/dist/build/p-edc7c624.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +3 -3
- package/dist/cjs/p-button_3.cjs.entry.js +2 -2
- package/dist/cjs/p-checkbox_3.cjs.entry.js +4 -10
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +4 -9
- package/dist/cjs/p-empty-state_8.cjs.entry.js +2 -2
- package/dist/cjs/p-layout.cjs.entry.js +1 -4
- package/dist/cjs/p-modal-body_4.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-pagination_3.cjs.entry.js +10 -11
- package/dist/cjs/p-radio.cjs.entry.js +4 -4
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +3 -3
- package/dist/collection/components/atoms/avatar/avatar/avatar.stories.js +17 -0
- package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.stories.js +19 -0
- package/dist/collection/components/atoms/backdrop/backdrop.stories.js +29 -0
- package/dist/collection/components/atoms/badge/badge.stories.js +17 -0
- package/dist/collection/components/atoms/card/body/card-body.stories.js +21 -0
- package/dist/collection/components/atoms/card/container/card-container.stories.js +27 -0
- package/dist/collection/components/atoms/card/header/card-header.stories.js +18 -0
- package/dist/collection/components/atoms/checkbox/checkbox.stories.js +31 -0
- package/dist/collection/components/atoms/divider/divider.stories.js +26 -0
- package/dist/collection/components/atoms/drawer/body/drawer-body.stories.js +19 -0
- package/dist/collection/components/atoms/drawer/container/drawer-container.stories.js +21 -0
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.css +1 -1
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/drawer/header/drawer-header.stories.js +25 -0
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +4 -10
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.stories.js +31 -0
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +4 -9
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.stories.js +31 -0
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.stories.js +29 -0
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.stories.js +29 -0
- package/dist/collection/components/atoms/helper/helper.stories.js +24 -0
- package/dist/collection/components/atoms/iban-icon/iban-icon.stories.js +14 -0
- package/dist/collection/components/atoms/icon/icon.component.js +2 -2
- package/dist/collection/components/atoms/icon/icon.stories.js +20 -0
- package/dist/collection/components/atoms/illustration/illustration.stories.js +12 -0
- package/dist/collection/components/atoms/info-panel/info-panel.stories.js +43 -0
- package/dist/collection/components/atoms/layout/layout.component.js +1 -4
- package/dist/collection/components/atoms/layout/layout.stories.js +9 -0
- package/dist/collection/components/atoms/listing/item/listing-item.stories.js +17 -0
- package/dist/collection/components/atoms/listing/line/listing-line.stories.js +9 -0
- package/dist/collection/components/atoms/loader/loader.stories.js +27 -0
- package/dist/collection/components/atoms/modal/body/modal-body.stories.js +26 -0
- package/dist/collection/components/atoms/modal/container/modal-container.stories.js +24 -0
- package/dist/collection/components/atoms/modal/footer/modal-footer.stories.js +17 -0
- package/dist/collection/components/atoms/modal/header/modal-header.component.css +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.stories.js +26 -0
- package/dist/collection/components/atoms/navigation-title/navigation-title.stories.js +17 -0
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.stories.js +26 -0
- package/dist/collection/components/atoms/radio/radio.component.js +4 -4
- package/dist/collection/components/atoms/radio/radio.stories.js +30 -0
- package/dist/collection/components/atoms/segment/container/segment-container.stories.js +47 -0
- package/dist/collection/components/atoms/segment/item/segment-item.stories.js +42 -0
- package/dist/collection/components/atoms/smile/smile.stories.js +9 -0
- package/dist/collection/components/atoms/stepper/item/stepper-item.stories.js +26 -0
- package/dist/collection/components/atoms/stepper/line/stepper-line.stories.js +14 -0
- package/dist/collection/components/atoms/tab/container/tab-container.stories.js +20 -0
- package/dist/collection/components/atoms/tab/item/tab-item.stories.js +20 -0
- package/dist/collection/components/atoms/table/actions-container/table-container.stories.js +21 -0
- package/dist/collection/components/atoms/table/container/table-row-actions-container.stories.js +21 -0
- package/dist/collection/components/atoms/toast-container/toast-container.stories.js +21 -0
- package/dist/collection/components/atoms/toggle/toggle.stories.js +31 -0
- package/dist/collection/components/atoms/tooltip/tooltip.stories.js +24 -0
- package/dist/collection/components/helpers/table/column/table-column.stories.js +23 -0
- package/dist/collection/components/helpers/table/extra-header/table-extra-header.stories.js +18 -0
- package/dist/collection/components/helpers/table/row-action/table-row-action.stories.js +22 -0
- package/dist/collection/components/molecules/accordion/accordion.stories.js +30 -0
- package/dist/collection/components/molecules/attachment/attachment.stories.js +30 -0
- package/dist/collection/components/molecules/button/button.stories.js +40 -0
- package/dist/collection/components/molecules/button-group/button-group.stories.js +15 -0
- package/dist/collection/components/molecules/calendar/calendar.stories.js +32 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/content-slider/content-slider.stories.js +41 -0
- package/dist/collection/components/molecules/cropper/cropper.stories.js +21 -0
- package/dist/collection/components/molecules/datepicker/datepicker.stories.js +57 -0
- package/dist/collection/components/molecules/dropdown/dropdown.stories.js +49 -0
- package/dist/collection/components/molecules/empty-state/empty-state.stories.js +29 -0
- package/dist/collection/components/molecules/field/container/field-container.stories.js +36 -0
- package/dist/collection/components/molecules/field/field/field.stories.js +112 -0
- package/dist/collection/components/molecules/label/label.stories.js +28 -0
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.stories.js +33 -0
- package/dist/collection/components/molecules/navigation/section/navigation-section.stories.js +21 -0
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +2 -2
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.stories.js +32 -0
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -4
- package/dist/collection/components/molecules/pagination/pagination/pagination.stories.js +34 -0
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +5 -5
- package/dist/collection/components/molecules/pagination/size/pagination-size.stories.js +18 -0
- package/dist/collection/components/molecules/profile/profile.stories.js +61 -0
- package/dist/collection/components/molecules/range/range.component.css +1 -1
- package/dist/collection/components/molecules/range/range.component.js +2 -2
- package/dist/collection/components/molecules/range/range.stories.js +18 -0
- package/dist/collection/components/molecules/select/select.stories.js +116 -0
- package/dist/collection/components/molecules/table/cell/table-cell.component.css +1 -1
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/cell/table-cell.stories.js +31 -0
- package/dist/collection/components/molecules/table/footer/table-footer.stories.js +29 -0
- package/dist/collection/components/molecules/table/header/table-header.component.js +1 -1
- package/dist/collection/components/molecules/table/header/table-header.stories.js +33 -0
- package/dist/collection/components/molecules/table/row/table-row.stories.js +24 -0
- package/dist/collection/components/molecules/toast/toast.stories.js +26 -0
- package/dist/collection/components/organisms/drawer/drawer.stories.js +43 -0
- package/dist/collection/components/organisms/listing/listing.stories.js +38 -0
- package/dist/collection/components/organisms/modal/modal.stories.js +59 -0
- package/dist/collection/components/organisms/navbar/navbar.stories.js +76 -0
- package/dist/collection/components/organisms/stepper/stepper.stories.js +64 -0
- package/dist/collection/components/organisms/table/table.stories.js +226 -0
- package/dist/components/{p-I5W6Sf7I.js → p-1zHupCi5.js} +1 -1
- package/dist/components/{p-CtE3SyKQ.js → p-A2evcUTz.js} +1 -1
- package/dist/components/{p-B2Yim3N0.js → p-B6Eg4keN.js} +1 -1
- package/dist/components/p-ByXfZHh6.js +1 -0
- package/dist/components/p-C-9NHqrE.js +1 -0
- package/dist/components/{p-lpz2-mRO.js → p-CK97bsy0.js} +1 -1
- package/dist/components/{p-DwSX4Qpi.js → p-CQ1UlIQc.js} +1 -1
- package/dist/components/{p-W3-gOmie.js → p-CfkmcUeC.js} +1 -1
- package/dist/components/p-CjpOvI_N.js +1 -0
- package/dist/components/p-CnyIhzd5.js +1 -0
- package/dist/components/p-CsygZkEa.js +1 -0
- package/dist/components/{p-N5WuUoFr.js → p-D8P3EVdc.js} +1 -1
- package/dist/components/{p-BmjTa27s.js → p-DE8raUA8.js} +1 -1
- package/dist/components/{p-DO9DPOD_.js → p-DI_ECJzt.js} +1 -1
- package/dist/components/p-DYV_GnPW.js +1 -0
- package/dist/components/p-DeNA7G5s.js +1 -0
- package/dist/components/{p-lIq7FGvR.js → p-DqcTEpCu.js} +1 -1
- package/dist/components/p-DwJAKJDy.js +1 -0
- package/dist/components/p-ELoJvZtk.js +1 -0
- package/dist/components/{p-BPWI9w_d.js → p-N99o7eIO.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/{p-CVLa68yr.js → p-jjbT-vs8.js} +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-o6ed-VvL.js +1 -0
- package/dist/components/p-oS1-cdrr.js +1 -0
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/{p-BP8UVm8K.js → p-swGA7EFj.js} +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/p-avatar.entry.js +3 -3
- package/dist/esm/p-button_3.entry.js +2 -2
- package/dist/esm/p-checkbox_3.entry.js +4 -10
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-drawer-body_3.entry.js +2 -2
- package/dist/esm/p-dropdown-menu-item_2.entry.js +4 -9
- package/dist/esm/p-empty-state_8.entry.js +2 -2
- package/dist/esm/p-layout.entry.js +1 -4
- package/dist/esm/p-modal-body_4.entry.js +2 -2
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-pagination_3.entry.js +10 -11
- package/dist/esm/p-radio.entry.js +4 -4
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/index.html +1 -1
- package/dist/{build/p-6412710a.entry.js → paperless/p-0da11431.entry.js} +1 -1
- package/dist/paperless/p-0f206cdb.entry.js +1 -0
- package/dist/paperless/p-1e9233ac.entry.js +1 -0
- package/dist/paperless/p-2388a075.entry.js +1 -0
- package/dist/paperless/p-4536b546.entry.js +1 -0
- package/dist/paperless/p-5b87fab2.entry.js +1 -0
- package/dist/paperless/{p-4cd9344a.entry.js → p-9ec433b0.entry.js} +1 -1
- package/dist/paperless/{p-f547d901.entry.js → p-9f1beebc.entry.js} +1 -1
- package/dist/paperless/p-c004664b.entry.js +1 -0
- package/dist/paperless/p-c3cab1ca.entry.js +1 -0
- package/dist/paperless/{p-413e2751.entry.js → p-d58fe6e4.entry.js} +1 -1
- package/dist/paperless/p-db387f26.entry.js +1 -0
- package/dist/paperless/p-edc7c624.entry.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/avatar/avatar/avatar.stories.d.ts +14 -0
- package/dist/types/components/atoms/avatar/avatar-group/avatar-group.stories.d.ts +19 -0
- package/dist/types/components/atoms/backdrop/backdrop.stories.d.ts +23 -0
- package/dist/types/components/atoms/badge/badge.stories.d.ts +18 -0
- package/dist/types/components/atoms/card/body/card-body.stories.d.ts +19 -0
- package/dist/types/components/atoms/card/container/card-container.stories.d.ts +23 -0
- package/dist/types/components/atoms/card/header/card-header.stories.d.ts +15 -0
- package/dist/types/components/atoms/checkbox/checkbox.stories.d.ts +24 -0
- package/dist/types/components/atoms/divider/divider.stories.d.ts +20 -0
- package/dist/types/components/atoms/drawer/body/drawer-body.stories.d.ts +19 -0
- package/dist/types/components/atoms/drawer/container/drawer-container.stories.d.ts +19 -0
- package/dist/types/components/atoms/drawer/header/drawer-header.stories.d.ts +19 -0
- package/dist/types/components/atoms/dropdown-menu/container/dropdown-menu-container.stories.d.ts +15 -0
- package/dist/types/components/atoms/dropdown-menu/item/dropdown-menu-item.stories.d.ts +27 -0
- package/dist/types/components/atoms/floating-menu/container/floating-menu-container.stories.d.ts +23 -0
- package/dist/types/components/atoms/floating-menu/item/floating-menu-item.stories.d.ts +25 -0
- package/dist/types/components/atoms/helper/helper.stories.d.ts +20 -0
- package/dist/types/components/atoms/iban-icon/iban-icon.stories.d.ts +11 -0
- package/dist/types/components/atoms/icon/icon.stories.d.ts +17 -0
- package/dist/types/components/atoms/illustration/illustration.stories.d.ts +13 -0
- package/dist/types/components/atoms/info-panel/info-panel.stories.d.ts +27 -0
- package/dist/types/components/atoms/layout/layout.stories.d.ts +10 -0
- package/dist/types/components/atoms/listing/item/listing-item.stories.d.ts +19 -0
- package/dist/types/components/atoms/listing/line/listing-line.stories.d.ts +8 -0
- package/dist/types/components/atoms/loader/loader.stories.d.ts +23 -0
- package/dist/types/components/atoms/modal/body/modal-body.stories.d.ts +22 -0
- package/dist/types/components/atoms/modal/container/modal-container.stories.d.ts +20 -0
- package/dist/types/components/atoms/modal/footer/modal-footer.stories.d.ts +18 -0
- package/dist/types/components/atoms/modal/header/modal-header.stories.d.ts +20 -0
- package/dist/types/components/atoms/navigation-title/navigation-title.stories.d.ts +18 -0
- package/dist/types/components/atoms/pagination/pages-item/pagination-pages-item.stories.d.ts +22 -0
- package/dist/types/components/atoms/radio/radio.stories.d.ts +24 -0
- package/dist/types/components/atoms/segment/container/segment-container.stories.d.ts +14 -0
- package/dist/types/components/atoms/segment/item/segment-item.stories.d.ts +34 -0
- package/dist/types/components/atoms/smile/smile.stories.d.ts +10 -0
- package/dist/types/components/atoms/stepper/item/stepper-item.stories.d.ts +23 -0
- package/dist/types/components/atoms/stepper/line/stepper-line.stories.d.ts +11 -0
- package/dist/types/components/atoms/tab/container/tab-container.stories.d.ts +11 -0
- package/dist/types/components/atoms/tab/item/tab-item.stories.d.ts +22 -0
- package/dist/types/components/atoms/table/actions-container/table-container.stories.d.ts +19 -0
- package/dist/types/components/atoms/table/container/table-row-actions-container.stories.d.ts +19 -0
- package/dist/types/components/atoms/toast-container/toast-container.stories.d.ts +19 -0
- package/dist/types/components/atoms/toggle/toggle.stories.d.ts +24 -0
- package/dist/types/components/atoms/tooltip/tooltip.stories.d.ts +17 -0
- package/dist/types/components/helpers/table/column/table-column.stories.d.ts +18 -0
- package/dist/types/components/helpers/table/extra-header/table-extra-header.stories.d.ts +13 -0
- package/dist/types/components/helpers/table/row-action/table-row-action.stories.d.ts +19 -0
- package/dist/types/components/molecules/accordion/accordion.stories.d.ts +24 -0
- package/dist/types/components/molecules/attachment/attachment.stories.d.ts +22 -0
- package/dist/types/components/molecules/button/button.stories.d.ts +34 -0
- package/dist/types/components/molecules/button-group/button-group.stories.d.ts +10 -0
- package/dist/types/components/molecules/calendar/calendar.stories.d.ts +27 -0
- package/dist/types/components/molecules/content-slider/content-slider.stories.d.ts +13 -0
- package/dist/types/components/molecules/cropper/cropper.stories.d.ts +16 -0
- package/dist/types/components/molecules/datepicker/datepicker.stories.d.ts +52 -0
- package/dist/types/components/molecules/dropdown/dropdown.stories.d.ts +32 -0
- package/dist/types/components/molecules/empty-state/empty-state.stories.d.ts +24 -0
- package/dist/types/components/molecules/field/container/field-container.stories.d.ts +30 -0
- package/dist/types/components/molecules/field/field/field.stories.d.ts +75 -0
- package/dist/types/components/molecules/label/label.stories.d.ts +24 -0
- package/dist/types/components/molecules/navigation/item/navigation-item.stories.d.ts +29 -0
- package/dist/types/components/molecules/navigation/section/navigation-section.stories.d.ts +19 -0
- package/dist/types/components/molecules/pagination/pages/pagination-pages.stories.d.ts +25 -0
- package/dist/types/components/molecules/pagination/pagination/pagination.stories.d.ts +28 -0
- package/dist/types/components/molecules/pagination/size/pagination-size.stories.d.ts +13 -0
- package/dist/types/components/molecules/profile/profile.stories.d.ts +43 -0
- package/dist/types/components/molecules/range/range.stories.d.ts +13 -0
- package/dist/types/components/molecules/select/select.stories.d.ts +63 -0
- package/dist/types/components/molecules/table/cell/table-cell.stories.d.ts +27 -0
- package/dist/types/components/molecules/table/footer/table-footer.stories.d.ts +21 -0
- package/dist/types/components/molecules/table/header/table-header.stories.d.ts +25 -0
- package/dist/types/components/molecules/table/row/table-row.stories.d.ts +20 -0
- package/dist/types/components/molecules/toast/toast.stories.d.ts +21 -0
- package/dist/types/components/organisms/drawer/drawer.stories.d.ts +29 -0
- package/dist/types/components/organisms/listing/listing.stories.d.ts +16 -0
- package/dist/types/components/organisms/modal/modal.stories.d.ts +39 -0
- package/dist/types/components/organisms/navbar/navbar.stories.d.ts +8 -0
- package/dist/types/components/organisms/stepper/stepper.stories.d.ts +32 -0
- package/dist/types/components/organisms/table/table.stories.d.ts +67 -0
- package/hydrate/index.js +42 -57
- package/hydrate/index.mjs +42 -57
- package/package.json +1 -1
- package/dist/build/p-099fed2a.entry.js +0 -1
- package/dist/build/p-102da1de.entry.js +0 -1
- package/dist/build/p-1b85b4f5.entry.js +0 -1
- package/dist/build/p-1be02ecd.entry.js +0 -1
- package/dist/build/p-2a9e2f97.entry.js +0 -1
- package/dist/build/p-31869c91.entry.js +0 -1
- package/dist/build/p-33c965ed.entry.js +0 -1
- package/dist/build/p-63ef1d8d.entry.js +0 -1
- package/dist/build/p-f13f7779.entry.js +0 -1
- package/dist/components/p-4hSImsoh.js +0 -1
- package/dist/components/p-B9s4_6Vm.js +0 -1
- package/dist/components/p-BtH8h7p9.js +0 -1
- package/dist/components/p-Bxk-f0zV.js +0 -1
- package/dist/components/p-Ci4QOmx5.js +0 -1
- package/dist/components/p-DEO_PtTi.js +0 -1
- package/dist/components/p-DIB8_iWS.js +0 -1
- package/dist/components/p-DlT01gcI.js +0 -1
- package/dist/components/p-DsMVZr-6.js +0 -1
- package/dist/components/p-ZcWq_nUH.js +0 -1
- package/dist/components/p-iLGr9rDU.js +0 -1
- package/dist/paperless/p-099fed2a.entry.js +0 -1
- package/dist/paperless/p-102da1de.entry.js +0 -1
- package/dist/paperless/p-1b85b4f5.entry.js +0 -1
- package/dist/paperless/p-1be02ecd.entry.js +0 -1
- package/dist/paperless/p-2a9e2f97.entry.js +0 -1
- package/dist/paperless/p-31869c91.entry.js +0 -1
- package/dist/paperless/p-33c965ed.entry.js +0 -1
- package/dist/paperless/p-63ef1d8d.entry.js +0 -1
- package/dist/paperless/p-f13f7779.entry.js +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Helpers/Table/Column',
|
|
5
|
+
component: 'p-table-column',
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
render: ({ path, type, name, 'use-slot': useSlot, 'has-checkbox': hasCheckbox, align, 'is-last': isLast, 'parsed-sizes': parsedSizes, sizes, }) => html `
|
|
10
|
+
<p-table-column
|
|
11
|
+
path=${path ?? nothing}
|
|
12
|
+
type=${type ?? nothing}
|
|
13
|
+
name=${name ?? nothing}
|
|
14
|
+
use-slot=${useSlot ?? nothing}
|
|
15
|
+
has-checkbox=${hasCheckbox ?? nothing}
|
|
16
|
+
align=${align ?? nothing}
|
|
17
|
+
is-last=${isLast ?? nothing}
|
|
18
|
+
parsed-sizes=${parsedSizes ?? nothing}
|
|
19
|
+
sizes=${sizes ?? nothing}
|
|
20
|
+
@tableDefinitionChanged=${action('tableDefinitionChanged')}
|
|
21
|
+
/>
|
|
22
|
+
`,
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Helpers/Table/Extra Header',
|
|
5
|
+
component: 'p-table-extra-header',
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
render: ({ name, align, 'parsed-sizes': parsedSizes, sizes }) => html `
|
|
10
|
+
<p-table-column
|
|
11
|
+
name=${name ?? nothing}
|
|
12
|
+
align=${align ?? nothing}
|
|
13
|
+
parsed-sizes=${parsedSizes ?? nothing}
|
|
14
|
+
sizes=${sizes ?? nothing}
|
|
15
|
+
@tableDefinitionChanged=${action('tableDefinitionChanged')}
|
|
16
|
+
/>
|
|
17
|
+
`,
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Design System/Helpers/Table/Row action',
|
|
4
|
+
component: 'p-table-row-action',
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: ({ type, icon, 'icon-only': iconOnly, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, label, action, disabled, loading, 'show-function': showFunction, }) => html `
|
|
9
|
+
<p-table-row-action
|
|
10
|
+
type=${type ?? nothing}
|
|
11
|
+
icon=${icon ?? nothing}
|
|
12
|
+
icon-only=${iconOnly ?? nothing}
|
|
13
|
+
icon-flip=${iconFlip ?? nothing}
|
|
14
|
+
icon-rotate=${iconRotate ?? nothing}
|
|
15
|
+
label=${label ?? nothing}
|
|
16
|
+
action=${action ?? nothing}
|
|
17
|
+
disabled=${disabled ?? nothing}
|
|
18
|
+
loading=${loading ?? nothing}
|
|
19
|
+
show-function=${showFunction ?? nothing}
|
|
20
|
+
/>
|
|
21
|
+
`,
|
|
22
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Accordion',
|
|
5
|
+
component: 'p-accordion',
|
|
6
|
+
args: {
|
|
7
|
+
header: 'Accordion header',
|
|
8
|
+
content: 'Accordion content!',
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
content: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
export const Default = {
|
|
18
|
+
render: ({ content, variant, header, open, closeable, openable }) => html `
|
|
19
|
+
<p-accordion
|
|
20
|
+
header=${header ?? nothing}
|
|
21
|
+
variant=${variant ?? nothing}
|
|
22
|
+
open=${open ?? nothing}
|
|
23
|
+
closeable=${closeable ?? nothing}
|
|
24
|
+
openable=${openable ?? nothing}
|
|
25
|
+
@isOpen=${action('isOpen')}
|
|
26
|
+
>
|
|
27
|
+
${content}
|
|
28
|
+
</p-accordion>
|
|
29
|
+
`,
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Attachment',
|
|
5
|
+
component: 'p-attachment',
|
|
6
|
+
args: {
|
|
7
|
+
mode: 'write',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
render: ({ value, mode, label, helper, required, error, loading, accept, 'enable-camera-on-mobile': enableCameraOnMobile, 'file-id': fileId, }) => html `
|
|
13
|
+
<p-attachment
|
|
14
|
+
mode=${mode ?? nothing}
|
|
15
|
+
error=${error ?? nothing}
|
|
16
|
+
value=${value ?? nothing}
|
|
17
|
+
label=${label ?? nothing}
|
|
18
|
+
helper=${helper ?? nothing}
|
|
19
|
+
required=${required ?? nothing}
|
|
20
|
+
file-id=${fileId ?? nothing}
|
|
21
|
+
enable-camera-on-mobile=${enableCameraOnMobile ?? nothing}
|
|
22
|
+
accept=${accept ?? nothing}
|
|
23
|
+
loading=${loading ?? nothing}
|
|
24
|
+
@download=${action('download')}
|
|
25
|
+
@delete=${action('delete')}
|
|
26
|
+
@upload=${action('upload')}
|
|
27
|
+
>
|
|
28
|
+
</p-attachment>
|
|
29
|
+
`,
|
|
30
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Button',
|
|
5
|
+
component: 'p-button',
|
|
6
|
+
args: {
|
|
7
|
+
label: 'Button',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
render: ({ label, as, variant, active, underline, href, target, size, type, loading, chevron, 'chevron-position': chevronPosition, disabled, icon, 'icon-only': iconOnly, 'icon-position': iconPosition, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, 'inherit-text': inheritText, 'button-group-position': buttonGroupPosition, class: className, error, }) => html `
|
|
13
|
+
<p-button
|
|
14
|
+
label=${label ?? nothing}
|
|
15
|
+
as=${as ?? nothing}
|
|
16
|
+
variant=${variant ?? nothing}
|
|
17
|
+
active=${active ?? nothing}
|
|
18
|
+
underline=${underline ?? nothing}
|
|
19
|
+
href=${href ?? nothing}
|
|
20
|
+
target=${target ?? nothing}
|
|
21
|
+
size=${size ?? nothing}
|
|
22
|
+
type=${type ?? nothing}
|
|
23
|
+
loading=${loading ?? nothing}
|
|
24
|
+
chevron=${chevron ?? nothing}
|
|
25
|
+
chevron-position=${chevronPosition ?? nothing}
|
|
26
|
+
disabled=${disabled ?? nothing}
|
|
27
|
+
icon=${icon ?? nothing}
|
|
28
|
+
icon-only=${iconOnly ?? nothing}
|
|
29
|
+
icon-position=${iconPosition ?? nothing}
|
|
30
|
+
icon-flip=${iconFlip ?? nothing}
|
|
31
|
+
icon-rotate=${iconRotate ?? nothing}
|
|
32
|
+
inherit-text=${inheritText ?? nothing}
|
|
33
|
+
button-group-position=${buttonGroupPosition ?? nothing}
|
|
34
|
+
class=${className ?? nothing}
|
|
35
|
+
error=${error ?? nothing}
|
|
36
|
+
@onClick=${action('onClick')}
|
|
37
|
+
>
|
|
38
|
+
</p-button>
|
|
39
|
+
`,
|
|
40
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Design System/Molecules/Button group',
|
|
4
|
+
component: 'p-button-group',
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: ({ size }) => html `
|
|
9
|
+
<p-button-group size=${size ?? nothing}>
|
|
10
|
+
<p-button>One</p-button>
|
|
11
|
+
<p-button>Two</p-button>
|
|
12
|
+
<p-button>Three</p-button>
|
|
13
|
+
</p-button-group>
|
|
14
|
+
`,
|
|
15
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Calendar',
|
|
5
|
+
component: 'p-calendar',
|
|
6
|
+
argTypes: {
|
|
7
|
+
'min-date': {
|
|
8
|
+
type: 'date',
|
|
9
|
+
},
|
|
10
|
+
'max-date': {
|
|
11
|
+
type: 'date',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {
|
|
17
|
+
render: ({ variant, value, 'preselect-today': preselectToday, 'disabled-dates': disabledDates, 'min-date': minDate, 'max-date': maxDate, 'disable-weekends': disableWeekends, 'enable-today': enableToday, 'today-text': todayText, mode, }) => html `
|
|
18
|
+
<p-calendar
|
|
19
|
+
variant=${variant ?? nothing}
|
|
20
|
+
value=${value ?? nothing}
|
|
21
|
+
preselect-today=${preselectToday ?? nothing}
|
|
22
|
+
disabled-dates=${disabledDates ?? nothing}
|
|
23
|
+
min-date=${minDate ?? nothing}
|
|
24
|
+
max-date=${maxDate ?? nothing}
|
|
25
|
+
disable-weekends=${disableWeekends ?? nothing}
|
|
26
|
+
enable-today=${enableToday ?? nothing}
|
|
27
|
+
today-text=${todayText ?? nothing}
|
|
28
|
+
mode=${mode ?? nothing}
|
|
29
|
+
@valueChange=${action('valueChange')}
|
|
30
|
+
/>
|
|
31
|
+
`,
|
|
32
|
+
};
|
|
@@ -47,13 +47,13 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'bf8924e96712792ca4cc1e41962dca8cc86f1a5e' }, h("div", { key: '7ab2192a27ea1a65f74462a1975880a2d32a7314', class: `
|
|
51
51
|
slider
|
|
52
52
|
${!this.disableDrag && 'draggable'}
|
|
53
53
|
${this._dragging && 'dragging'}
|
|
54
54
|
`, ref: el => (this._sliderRef = el), style: {
|
|
55
55
|
height: `${this._outerHeight}px`,
|
|
56
|
-
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: '
|
|
56
|
+
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: 'aa95fdb7ddcaf647947584ae4282822251be5136', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'cffb458194bbdf342e3840aa174469809e282be5', onSlotchange: () => this._slotChange() }))), h("div", { key: '51e08fcb4c2ae6296c1e5042445e40ad28610e84', class: `
|
|
57
57
|
indicator
|
|
58
58
|
${this.hideMobileIndicator && 'hidden'}
|
|
59
59
|
` }, this._filteredItems.map((_, i) => (h("div", { class: `
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Design System/Molecules/Content slider',
|
|
4
|
+
component: 'p-content-slider',
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: ({ 'hide-mobile-indicator': hideMobileIndicator, 'disable-drag': disableDrag, 'disable-auto-center': disableAutoCenter, 'disable-indicator-click': disableIndicatorClick, }) => html `
|
|
9
|
+
<p-content-slider
|
|
10
|
+
hide-mobile-indicator=${hideMobileIndicator ?? nothing}
|
|
11
|
+
disable-drag=${disableDrag ?? nothing}
|
|
12
|
+
disable-auto-center=${disableAutoCenter ?? nothing}
|
|
13
|
+
disable-indicator-click=${disableIndicatorClick ?? nothing}
|
|
14
|
+
>
|
|
15
|
+
<p-card-container class="w-full">
|
|
16
|
+
<p-card-header header="card"></p-card-header>
|
|
17
|
+
<p-card-body>
|
|
18
|
+
Some text in the<br />
|
|
19
|
+
card body <br />
|
|
20
|
+
to give it some height
|
|
21
|
+
</p-card-body>
|
|
22
|
+
</p-card-container>
|
|
23
|
+
<p-card-container class="w-full">
|
|
24
|
+
<p-card-header header="card"></p-card-header>
|
|
25
|
+
<p-card-body>
|
|
26
|
+
Some text in the<br />
|
|
27
|
+
card body <br />
|
|
28
|
+
to give it some height
|
|
29
|
+
</p-card-body>
|
|
30
|
+
</p-card-container>
|
|
31
|
+
<p-card-container class="hidden w-full desktop-xs:block">
|
|
32
|
+
<p-card-header header="card"></p-card-header>
|
|
33
|
+
<p-card-body>
|
|
34
|
+
Some text in the<br />
|
|
35
|
+
card body <br />
|
|
36
|
+
to give it some height
|
|
37
|
+
</p-card-body>
|
|
38
|
+
</p-card-container>
|
|
39
|
+
</p-content-slider>
|
|
40
|
+
`,
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Cropper',
|
|
5
|
+
component: 'p-cropper',
|
|
6
|
+
args: {
|
|
7
|
+
value: 'https://images.unsplash.com/photo-1576014662151-46d23666bc28?auto=format&fit=crop&crop=faces&w=300&h=150&q=80',
|
|
8
|
+
'return-type': 'base64',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
render: ({ variant, value, 'return-type': returnType }) => html `
|
|
14
|
+
<p-cropper
|
|
15
|
+
variant=${variant ?? nothing}
|
|
16
|
+
value=${value ?? nothing}
|
|
17
|
+
return-type=${returnType ?? nothing}
|
|
18
|
+
@valueChange=${action('valueChange')}
|
|
19
|
+
/>
|
|
20
|
+
`,
|
|
21
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Datepicker',
|
|
5
|
+
component: 'p-datepicker',
|
|
6
|
+
args: {
|
|
7
|
+
label: 'Label',
|
|
8
|
+
},
|
|
9
|
+
argTypes: {
|
|
10
|
+
'min-date': {
|
|
11
|
+
type: 'date',
|
|
12
|
+
},
|
|
13
|
+
'max-date': {
|
|
14
|
+
type: 'date',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
parameters: {
|
|
18
|
+
docs: {
|
|
19
|
+
iframeHeight: 600,
|
|
20
|
+
story: {
|
|
21
|
+
height: '700px',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
export const Default = {
|
|
28
|
+
render: ({ placeholder, value, 'preselect-today': preselectToday, 'enable-native-picker': enableNativePicker, 'disabled-dates': disabledDates, 'min-date': minDate, 'max-date': maxDate, 'disable-weekends': disableWeekends, 'enable-today': enableToday, 'today-text': todayText, mode, format, 'hide-icon-when-filled': hideIconWhenFilled, size, prefix, label, loading, helper, required, 'show-optional': showOptional, error, disabled, strategy, placement, }) => html `
|
|
29
|
+
<p-datepicker
|
|
30
|
+
placeholder=${placeholder ?? nothing}
|
|
31
|
+
value=${value ?? nothing}
|
|
32
|
+
preselect-today=${preselectToday ?? nothing}
|
|
33
|
+
enable-native-picker=${enableNativePicker ?? nothing}
|
|
34
|
+
disabled-dates=${disabledDates ?? nothing}
|
|
35
|
+
min-date=${minDate ?? nothing}
|
|
36
|
+
max-date=${maxDate ?? nothing}
|
|
37
|
+
disable-weekends=${disableWeekends ?? nothing}
|
|
38
|
+
enable-today=${enableToday ?? nothing}
|
|
39
|
+
today-text=${todayText ?? nothing}
|
|
40
|
+
mode=${mode ?? nothing}
|
|
41
|
+
format=${format ?? nothing}
|
|
42
|
+
hide-icon-when-filled=${hideIconWhenFilled ?? nothing}
|
|
43
|
+
size=${size ?? nothing}
|
|
44
|
+
prefix=${prefix ?? nothing}
|
|
45
|
+
label=${label ?? nothing}
|
|
46
|
+
loading=${loading ?? nothing}
|
|
47
|
+
helper=${helper ?? nothing}
|
|
48
|
+
required=${required ?? nothing}
|
|
49
|
+
show-optional=${showOptional ?? nothing}
|
|
50
|
+
error=${error ?? nothing}
|
|
51
|
+
disabled=${disabled ?? nothing}
|
|
52
|
+
strategy=${strategy ?? nothing}
|
|
53
|
+
placement=${placement ?? nothing}
|
|
54
|
+
@valueChange=${action('valueChange')}
|
|
55
|
+
></p-datepicker>
|
|
56
|
+
`,
|
|
57
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Dropdown',
|
|
5
|
+
component: 'p-dropdown',
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
iframeHeight: 100,
|
|
9
|
+
story: {
|
|
10
|
+
height: '100px',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {
|
|
17
|
+
render: ({ variant, placement, offset, strategy, show, 'calculate-width': calculateWidth, 'apply-max-width': applyMaxWidth, 'apply-full-width': applyFullWidth, 'allow-overflow': allowOverflow, scrollable, 'inside-click': insideClick, 'disable-trigger-click': disableTriggerClick, 'apply-chevron': applyChevron, 'chevron-position': chevronPosition, 'chevron-direction': chevronDirection, }) => html `
|
|
18
|
+
<p-dropdown
|
|
19
|
+
variant=${variant ?? nothing}
|
|
20
|
+
placement=${placement ?? nothing}
|
|
21
|
+
offset=${offset ?? nothing}
|
|
22
|
+
strategy=${strategy ?? nothing}
|
|
23
|
+
show=${show ?? nothing}
|
|
24
|
+
calculate-width=${calculateWidth ?? nothing}
|
|
25
|
+
apply-max-width=${applyMaxWidth ?? nothing}
|
|
26
|
+
apply-full-width=${applyFullWidth ?? nothing}
|
|
27
|
+
allow-overflow=${allowOverflow ?? nothing}
|
|
28
|
+
scrollable=${scrollable ?? nothing}
|
|
29
|
+
inside-click=${insideClick ?? nothing}
|
|
30
|
+
disable-trigger-click=${disableTriggerClick ?? nothing}
|
|
31
|
+
apply-chevron=${applyChevron ?? nothing}
|
|
32
|
+
chevron-position=${chevronPosition ?? nothing}
|
|
33
|
+
chevron-direction=${chevronDirection ?? nothing}
|
|
34
|
+
@isOpen=${action('isOpen')}
|
|
35
|
+
>
|
|
36
|
+
<p-button
|
|
37
|
+
slot="trigger"
|
|
38
|
+
variant="secondary"
|
|
39
|
+
>
|
|
40
|
+
Dropdown
|
|
41
|
+
</p-button>
|
|
42
|
+
<slot slot="items">
|
|
43
|
+
<p-dropdown-menu-item>Item 1</p-dropdown-menu-item>
|
|
44
|
+
<p-dropdown-menu-item>Item 2</p-dropdown-menu-item>
|
|
45
|
+
<p-dropdown-menu-item>Item 3</p-dropdown-menu-item>
|
|
46
|
+
</slot>
|
|
47
|
+
</p-dropdown>
|
|
48
|
+
`,
|
|
49
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Empty state',
|
|
5
|
+
component: 'p-empty-state',
|
|
6
|
+
args: {
|
|
7
|
+
illustration: 'table',
|
|
8
|
+
header: 'Nog niks ingediend',
|
|
9
|
+
content: 'Er kan geen overzicht worden getoond tot er iets wordt ingediend. Begin met indienen.',
|
|
10
|
+
'enable-action': true,
|
|
11
|
+
'action-icon': 'plus',
|
|
12
|
+
'action-text': 'Nieuw',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {
|
|
17
|
+
render: ({ illustration, header, content, 'enable-action': enableAction, 'action-text': actionText, 'action-icon': actionIcon, 'action-loading': actionLoading, }) => html `
|
|
18
|
+
<p-empty-state
|
|
19
|
+
illustration=${illustration ?? nothing}
|
|
20
|
+
header=${header ?? nothing}
|
|
21
|
+
content=${content ?? nothing}
|
|
22
|
+
enable-action=${enableAction ?? nothing}
|
|
23
|
+
action-text=${actionText ?? nothing}
|
|
24
|
+
action-icon=${actionIcon ?? nothing}
|
|
25
|
+
action-loading=${actionLoading ?? nothing}
|
|
26
|
+
@action=${action('action')}
|
|
27
|
+
/>
|
|
28
|
+
`,
|
|
29
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Field/Container',
|
|
5
|
+
component: 'p-field-container',
|
|
6
|
+
args: {
|
|
7
|
+
label: 'Label',
|
|
8
|
+
content: 'Content',
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
content: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
export const Default = {
|
|
18
|
+
render: ({ label, loading, variant, helper, required, 'show-optional': showOptional, error, content, align, 'error-placement': errorPlacement, 'force-show-tooltip': forceShowTooltip, 'optional-template': optionalTemplate, }) => html `
|
|
19
|
+
<p-field-container
|
|
20
|
+
label=${label ?? nothing}
|
|
21
|
+
loading=${loading ?? nothing}
|
|
22
|
+
variant=${variant ?? nothing}
|
|
23
|
+
helper=${helper ?? nothing}
|
|
24
|
+
required=${required ?? nothing}
|
|
25
|
+
error=${error ?? nothing}
|
|
26
|
+
show-optional=${showOptional ?? nothing}
|
|
27
|
+
align=${align ?? nothing}
|
|
28
|
+
error-placement=${errorPlacement ?? nothing}
|
|
29
|
+
force-show-tooltip=${forceShowTooltip ?? nothing}
|
|
30
|
+
optional-template=${optionalTemplate ?? nothing}
|
|
31
|
+
@focus=${action('focus')}
|
|
32
|
+
>
|
|
33
|
+
<div slot="content">${content ?? nothing}</div>
|
|
34
|
+
</p-field-container>
|
|
35
|
+
`,
|
|
36
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Field/Field',
|
|
5
|
+
component: 'p-field',
|
|
6
|
+
args: {
|
|
7
|
+
label: 'Label',
|
|
8
|
+
},
|
|
9
|
+
argTypes: {
|
|
10
|
+
value: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {
|
|
17
|
+
render: ({ variant, size, type, properties, prefix, suffix, icon, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, 'icon-position': iconPosition, value, label, loading, placeholder, helper, required, 'show-optional': showOptional, autofocus, error, 'error-placement': errorPlacement, disabled, focused, 'force-show-tooltip': forceShowTooltip, 'select-all-on-focus': selectAllOnFocus, 'focus-method': focusMethod, 'optional-template': optionalTemplate, 'show-add-on-empty': showAddOnEmpty, 'add-text': addText, }) => html `
|
|
18
|
+
<p-field
|
|
19
|
+
variant=${variant ?? nothing}
|
|
20
|
+
size=${size ?? nothing}
|
|
21
|
+
type=${type ?? nothing}
|
|
22
|
+
properties=${properties ?? nothing}
|
|
23
|
+
prefix=${prefix ?? nothing}
|
|
24
|
+
suffix=${suffix ?? nothing}
|
|
25
|
+
icon=${icon ?? nothing}
|
|
26
|
+
icon-flip=${iconFlip ?? nothing}
|
|
27
|
+
icon-rotate=${iconRotate ?? nothing}
|
|
28
|
+
icon-position=${iconPosition ?? nothing}
|
|
29
|
+
value=${value ?? nothing}
|
|
30
|
+
label=${label ?? nothing}
|
|
31
|
+
loading=${loading ?? nothing}
|
|
32
|
+
placeholder=${placeholder ?? nothing}
|
|
33
|
+
helper=${helper ?? nothing}
|
|
34
|
+
required=${required ?? nothing}
|
|
35
|
+
show-optional=${showOptional ?? nothing}
|
|
36
|
+
autofocus=${autofocus ?? nothing}
|
|
37
|
+
error=${error ?? nothing}
|
|
38
|
+
error-placement=${errorPlacement ?? nothing}
|
|
39
|
+
disabled=${disabled ?? nothing}
|
|
40
|
+
focused=${focused ?? nothing}
|
|
41
|
+
force-show-tooltip=${forceShowTooltip ?? nothing}
|
|
42
|
+
select-all-on-focus=${selectAllOnFocus ?? nothing}
|
|
43
|
+
focus-method=${focusMethod ?? nothing}
|
|
44
|
+
optional-template=${optionalTemplate ?? nothing}
|
|
45
|
+
show-add-on-empty=${showAddOnEmpty ?? nothing}
|
|
46
|
+
add-text=${addText ?? nothing}
|
|
47
|
+
@valueChange=${action('valueChange')}
|
|
48
|
+
@inputRefChange=${action('inputRefChange')}
|
|
49
|
+
@add=${action('add clicked')}
|
|
50
|
+
/>
|
|
51
|
+
`,
|
|
52
|
+
};
|
|
53
|
+
export const OverflowReadOnly = {
|
|
54
|
+
render: ({ size, type, properties, prefix, suffix, icon, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, 'icon-position': iconPosition, label, loading, placeholder, helper, required, autofocus, error, 'error-placement': errorPlacement, disabled, focused, 'force-show-tooltip': forceShowTooltip, 'select-all-on-focus': selectAllOnFocus, 'focus-method': focusMethod, 'optional-template': optionalTemplate, }) => html `
|
|
55
|
+
<p-field
|
|
56
|
+
variant="read"
|
|
57
|
+
size=${size ?? nothing}
|
|
58
|
+
type=${type ?? nothing}
|
|
59
|
+
properties=${properties ?? nothing}
|
|
60
|
+
prefix=${prefix ?? nothing}
|
|
61
|
+
suffix=${suffix ?? nothing}
|
|
62
|
+
icon=${icon ?? nothing}
|
|
63
|
+
icon-flip=${iconFlip ?? nothing}
|
|
64
|
+
icon-rotate=${iconRotate ?? nothing}
|
|
65
|
+
icon-position=${iconPosition ?? nothing}
|
|
66
|
+
label=${label ?? nothing}
|
|
67
|
+
loading=${loading ?? nothing}
|
|
68
|
+
placeholder=${placeholder ?? nothing}
|
|
69
|
+
helper=${helper ?? nothing}
|
|
70
|
+
required=${required ?? nothing}
|
|
71
|
+
autofocus=${autofocus ?? nothing}
|
|
72
|
+
error=${error ?? nothing}
|
|
73
|
+
error-placement=${errorPlacement ?? nothing}
|
|
74
|
+
disabled=${disabled ?? nothing}
|
|
75
|
+
focused=${focused ?? nothing}
|
|
76
|
+
force-show-tooltip=${forceShowTooltip ?? nothing}
|
|
77
|
+
select-all-on-focus=${selectAllOnFocus ?? nothing}
|
|
78
|
+
focus-method=${focusMethod ?? nothing}
|
|
79
|
+
optional-template=${optionalTemplate ?? nothing}
|
|
80
|
+
@valueChange=${action('valueChange')}
|
|
81
|
+
@inputRefChange=${action('inputRefChange')}
|
|
82
|
+
>
|
|
83
|
+
<a
|
|
84
|
+
slot="value"
|
|
85
|
+
class="hover:text-inidgo-700 block w-full overflow-hidden text-ellipsis whitespace-nowrap text-indigo-600 hover:underline"
|
|
86
|
+
href="https://google.com"
|
|
87
|
+
>
|
|
88
|
+
This is a very very very very very very long text This is a very very
|
|
89
|
+
very very very very long text This is a very very very very very very
|
|
90
|
+
long text This is a very very very very very very long text This is a
|
|
91
|
+
very very very very very very long text This is a very very very very
|
|
92
|
+
very very long text This is a very very very very very very long t;ext
|
|
93
|
+
</a>
|
|
94
|
+
</p-field>
|
|
95
|
+
`,
|
|
96
|
+
};
|
|
97
|
+
const withPreventDefault = handler => e => {
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
handler(e);
|
|
100
|
+
};
|
|
101
|
+
export const InsideForm = {
|
|
102
|
+
render: () => html `
|
|
103
|
+
<form @submit=${withPreventDefault(action('submit'))}>
|
|
104
|
+
<p-field
|
|
105
|
+
value="Test"
|
|
106
|
+
@input=${action('valuechange')}
|
|
107
|
+
>
|
|
108
|
+
</p-field>
|
|
109
|
+
<p-button type="submit">Submitt</p-button>
|
|
110
|
+
</form>
|
|
111
|
+
`,
|
|
112
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Design System/Molecules/Label',
|
|
4
|
+
component: 'p-label',
|
|
5
|
+
args: {
|
|
6
|
+
content: 'Label',
|
|
7
|
+
},
|
|
8
|
+
argTypes: {
|
|
9
|
+
content: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export const Default = {
|
|
16
|
+
render: ({ content, variant, 'icon-only': iconOnly, icon, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, 'keep-mobile-content': keepMobileContent, }) => html `
|
|
17
|
+
<p-label
|
|
18
|
+
variant=${variant ?? nothing}
|
|
19
|
+
icon-only=${iconOnly ?? nothing}
|
|
20
|
+
icon=${icon ?? nothing}
|
|
21
|
+
icon-flip=${iconFlip ?? nothing}
|
|
22
|
+
icon-rotate=${iconRotate ?? nothing}
|
|
23
|
+
keep-mobile-content=${keepMobileContent ?? nothing}
|
|
24
|
+
>
|
|
25
|
+
${content}
|
|
26
|
+
</p-label>
|
|
27
|
+
`,
|
|
28
|
+
};
|
|
@@ -88,13 +88,13 @@ export class NavigationItem {
|
|
|
88
88
|
render() {
|
|
89
89
|
const TagType = this.as;
|
|
90
90
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
91
|
-
return (h(ThemedHost, { key: '
|
|
91
|
+
return (h(ThemedHost, { key: '4ae6c89f2d7534c698b816955488c73bd358d70e', class: cn('inline-block', this.class) }, h(TagType, { key: '911611a89bf9c250328e5b5397d65b5c65970a74', class: navigationItem({
|
|
92
92
|
icon: !!this.icon,
|
|
93
93
|
active,
|
|
94
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
94
|
+
}), href: this.href, target: this.target }, h("div", { key: 'bfdc1882c4bedcd1ee2672b7112737eacbb4ad26', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'be619184b36c520b9e0b7b60963bffdec115b773', variant: this.icon })), h("span", { key: 'db23af321af6eebca65534c183451920932756d3', class: cn({
|
|
95
95
|
'has-counter': !!this.counter,
|
|
96
96
|
'w-full': this.applyFullWidth,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, h("slot", { key: 'a555a9e414129555e1375b97f7f8e222fd412fe5' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'a6014594a3c7969cd44705420e285ea81478ac42' }, this.counter)), !!this.loading && h("p-loader", { key: '1755e9547e0fe49a6c9c7f254350ed21f74bca25', class: 'ml-auto' }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "p-navigation-item"; }
|
|
100
100
|
static get encapsulation() { return "scoped"; }
|