@paperless/core 3.0.2 → 3.1.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/build/index.esm.js +1 -1
- package/dist/build/p-047da5c9.entry.js +1 -0
- package/dist/build/p-099fed2a.entry.js +1 -0
- package/dist/build/p-0b4b4cf7.entry.js +1 -0
- package/dist/build/p-16c98151.entry.js +1 -0
- package/dist/build/p-18245eb9.entry.js +1 -0
- package/dist/build/p-1ac00601.entry.js +1 -0
- package/dist/build/p-1be02ecd.entry.js +1 -0
- package/dist/build/p-1c6555d0.entry.js +1 -0
- package/dist/build/p-1fa99d63.entry.js +1 -0
- package/dist/build/p-2a9e2f97.entry.js +1 -0
- package/dist/build/p-2eb0963d.entry.js +1 -0
- package/dist/build/p-33c965ed.entry.js +1 -0
- package/dist/build/p-33fc3203.entry.js +1 -0
- package/dist/build/p-34448061.entry.js +1 -0
- package/dist/build/{p-57abbf5d.js → p-3a5ebbd7.js} +1 -1
- package/dist/build/p-459f7a0b.entry.js +1 -0
- package/dist/build/p-4baa94c0.entry.js +1 -0
- package/dist/build/p-5f2b2731.entry.js +1 -0
- package/dist/build/p-6412710a.entry.js +1 -0
- package/dist/build/p-673c243e.entry.js +1 -0
- package/dist/build/p-6ac04b16.entry.js +1 -0
- package/dist/build/p-7158dacd.entry.js +1 -0
- package/dist/build/p-7be1c70d.entry.js +1 -0
- package/dist/build/p-7c4f3d89.entry.js +1 -0
- package/dist/{paperless/p-2ab9ae7b.entry.js → build/p-8a2690df.entry.js} +1 -1
- package/dist/{paperless/p-9d7732b8.entry.js → build/p-8a8adc4d.entry.js} +1 -1
- package/dist/build/p-9889be94.entry.js +1 -0
- package/dist/build/p-99522e10.entry.js +1 -0
- package/dist/build/p-9e1977a6.entry.js +1 -0
- package/dist/build/{p-CHZgJJeM.js → p-DeWIZIsV.js} +1 -1
- package/dist/build/p-aca48431.entry.js +1 -0
- package/dist/build/p-afa4d38a.entry.js +1 -0
- package/dist/build/p-b70ee063.entry.js +1 -0
- package/dist/build/p-b745b141.entry.js +1 -0
- package/dist/build/p-bcfbb856.entry.js +1 -0
- package/dist/build/p-cdcc28c2.entry.js +1 -0
- package/dist/build/p-dbac42ad.entry.js +1 -0
- package/dist/build/p-e00be7e7.entry.js +1 -0
- package/dist/build/p-e2219fa7.entry.js +1 -0
- package/dist/build/p-e30ef289.entry.js +1 -0
- package/dist/build/p-ecc80c01.entry.js +1 -0
- package/dist/build/p-fbd4c0ed.entry.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +22 -9
- package/dist/cjs/p-avatar.cjs.entry.js +5 -2
- package/dist/cjs/p-backdrop.cjs.entry.js +19 -7
- package/dist/cjs/p-badge_3.cjs.entry.js +29 -11
- package/dist/cjs/p-button_3.cjs.entry.js +103 -31
- package/dist/cjs/p-calendar.cjs.entry.js +14 -7
- package/dist/cjs/p-card-container.cjs.entry.js +16 -6
- package/dist/cjs/p-card-header.cjs.entry.js +6 -3
- package/dist/cjs/p-checkbox_3.cjs.entry.js +63 -29
- package/dist/cjs/p-content-slider.cjs.entry.js +12 -2
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +29 -7
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +23 -10
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +105 -33
- package/dist/cjs/p-empty-state_8.cjs.entry.js +74 -34
- package/dist/cjs/p-field_3.cjs.entry.js +65 -26
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +17 -7
- package/dist/cjs/p-info-panel.cjs.entry.js +52 -16
- package/dist/cjs/p-label.cjs.entry.js +16 -7
- package/dist/cjs/p-layout.cjs.entry.js +4 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +42 -18
- package/dist/cjs/p-navbar.cjs.entry.js +25 -8
- package/dist/cjs/p-navigation-item.cjs.entry.js +21 -9
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +20 -14
- package/dist/cjs/p-profile.cjs.entry.js +2 -2
- package/dist/cjs/p-radio.cjs.entry.js +47 -20
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +19 -9
- package/dist/cjs/p-smile.cjs.entry.js +5 -2
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +27 -15
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +22 -6
- package/dist/cjs/p-table.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +10 -5
- package/dist/cjs/p-toast.cjs.entry.js +19 -7
- package/dist/cjs/p-toggle.cjs.entry.js +67 -23
- package/dist/cjs/p-tooltip.cjs.entry.js +11 -5
- package/dist/cjs/{table-helpers-D7cRsAPO.js → table-helpers-CskH_8AL.js} +2 -2
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +5 -2
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +19 -7
- package/dist/collection/components/atoms/badge/badge.component.js +9 -3
- package/dist/collection/components/atoms/card/container/card-container.component.js +16 -6
- package/dist/collection/components/atoms/card/header/card-header.component.js +6 -3
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +57 -23
- package/dist/collection/components/atoms/divider/divider.component.js +29 -7
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +12 -5
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +11 -5
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +6 -6
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +78 -21
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +17 -7
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +52 -16
- package/dist/collection/components/atoms/layout/layout.component.js +4 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/loader/loader.component.js +8 -2
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +14 -5
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +16 -7
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +11 -5
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +27 -12
- package/dist/collection/components/atoms/radio/radio.component.js +47 -20
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +19 -7
- package/dist/collection/components/atoms/smile/smile.component.js +5 -2
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +27 -15
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +22 -6
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +6 -3
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +10 -5
- package/dist/collection/components/atoms/toggle/toggle.component.js +67 -23
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +11 -5
- package/dist/collection/components/molecules/attachment/attachment.component.js +22 -9
- package/dist/collection/components/molecules/button/button.component.js +95 -29
- package/dist/collection/components/molecules/calendar/calendar.component.js +14 -7
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +12 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/container/field-container.component.js +9 -6
- package/dist/collection/components/molecules/field/field/field.component.js +55 -19
- package/dist/collection/components/molecules/label/label.component.js +16 -7
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +21 -9
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +16 -10
- package/dist/collection/components/molecules/profile/profile.component.js +2 -2
- package/dist/collection/components/molecules/range/range.component.js +3 -3
- package/dist/collection/components/molecules/select/select.component.js +19 -9
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +14 -7
- package/dist/collection/components/molecules/table/header/table-header.component.js +31 -11
- package/dist/collection/components/molecules/table/row/table-row.component.js +18 -8
- package/dist/collection/components/molecules/toast/toast.component.js +19 -7
- package/dist/collection/components/organisms/navbar/navbar.component.js +25 -8
- package/dist/collection/utils/table-helpers.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/p--52gTdZ4.js +1 -0
- package/dist/components/p-0EHH7Dl0.js +1 -0
- package/dist/components/p-2yaxaWU2.js +1 -0
- package/dist/components/p-4DN7zVtS.js +1 -0
- package/dist/components/p-B0rHem3C.js +1 -0
- package/dist/components/p-BBAR0LE7.js +1 -0
- package/dist/components/{p-Duu0fwUk.js → p-BBwQm_OH.js} +1 -1
- package/dist/components/{p-CsM6uU5j.js → p-BCZqknrJ.js} +1 -1
- package/dist/components/p-BCddfleq.js +1 -0
- package/dist/components/p-BKXDGrK7.js +1 -0
- package/dist/components/{p-DMxy9lYo.js → p-BSsW37JK.js} +1 -1
- package/dist/components/p-B_7CTN-Q.js +1 -0
- package/dist/components/p-BaiRAcrb.js +1 -0
- package/dist/components/p-BfH-C6uv.js +1 -0
- package/dist/components/p-BrLLMmZa.js +1 -0
- package/dist/components/p-Bru1muWj.js +1 -0
- package/dist/components/{p-Bl7NThUo.js → p-BtH8h7p9.js} +1 -1
- package/dist/components/p-BtI7diO6.js +1 -0
- package/dist/components/{p-CFSNSi-H.js → p-BtliZ0U_.js} +1 -1
- package/dist/components/p-C1HzSmDf.js +1 -0
- package/dist/components/p-C4dZ9NAe.js +1 -0
- package/dist/components/p-CHER4MCx.js +1 -0
- package/dist/components/{p-CGKUYLex.js → p-CTQuFuDk.js} +1 -1
- package/dist/components/p-CoBFv4r3.js +1 -0
- package/dist/components/p-Crasy6LB.js +1 -0
- package/dist/components/{p-BcD4BpWF.js → p-CtAGaRd5.js} +1 -1
- package/dist/components/p-D5t-6wkl.js +1 -0
- package/dist/components/p-D6iTsl8U.js +1 -0
- package/dist/components/p-D8faiybE.js +1 -0
- package/dist/components/p-DDV-lx3_.js +1 -0
- package/dist/components/p-DP6H82uQ.js +1 -0
- package/dist/components/{p-Bv-ByGSf.js → p-DSv8ajJ4.js} +1 -1
- package/dist/components/p-DXsoAHFt.js +1 -0
- package/dist/components/p-DmzyuekN.js +1 -0
- package/dist/components/p-DncIsq-f.js +1 -0
- package/dist/components/p-G57Mci8u.js +1 -0
- package/dist/components/p-MeQ48Q-1.js +1 -0
- package/dist/components/p-QJoR_dmN.js +1 -0
- package/dist/components/{p-3RT3BYex.js → p-WEZng7dj.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-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-container.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-divider.js +1 -1
- package/dist/components/p-drawer-container.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-iLGr9rDU.js +1 -0
- package/dist/components/p-info-panel.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-loader.js +1 -1
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.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-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- 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-qeQ4j6y4.js +1 -0
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.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-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/p-attachment.entry.js +22 -9
- package/dist/esm/p-avatar.entry.js +5 -2
- package/dist/esm/p-backdrop.entry.js +19 -7
- package/dist/esm/p-badge_3.entry.js +29 -11
- package/dist/esm/p-button_3.entry.js +103 -31
- package/dist/esm/p-calendar.entry.js +14 -7
- package/dist/esm/p-card-container.entry.js +16 -6
- package/dist/esm/p-card-header.entry.js +6 -3
- package/dist/esm/p-checkbox_3.entry.js +63 -29
- package/dist/esm/p-content-slider.entry.js +12 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +29 -7
- package/dist/esm/p-drawer-body_3.entry.js +23 -10
- package/dist/esm/p-dropdown-menu-item_2.entry.js +105 -33
- package/dist/esm/p-empty-state_8.entry.js +74 -34
- package/dist/esm/p-field_3.entry.js +65 -26
- package/dist/esm/p-floating-menu-item.entry.js +17 -7
- package/dist/esm/p-info-panel.entry.js +52 -16
- package/dist/esm/p-label.entry.js +16 -7
- package/dist/esm/p-layout.entry.js +4 -1
- package/dist/esm/p-listing-item.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +42 -18
- package/dist/esm/p-navbar.entry.js +25 -8
- package/dist/esm/p-navigation-item.entry.js +21 -9
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +20 -14
- package/dist/esm/p-profile.entry.js +2 -2
- package/dist/esm/p-radio.entry.js +47 -20
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +19 -9
- package/dist/esm/p-smile.entry.js +5 -2
- package/dist/esm/p-stepper-item_2.entry.js +27 -15
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +22 -6
- package/dist/esm/p-table.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +10 -5
- package/dist/esm/p-toast.entry.js +19 -7
- package/dist/esm/p-toggle.entry.js +67 -23
- package/dist/esm/p-tooltip.entry.js +11 -5
- package/dist/esm/{table-helpers-DA1PfY6l.js → table-helpers-Bvtfm-ta.js} +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/p-047da5c9.entry.js +1 -0
- package/dist/paperless/p-099fed2a.entry.js +1 -0
- package/dist/paperless/p-0b4b4cf7.entry.js +1 -0
- package/dist/paperless/p-16c98151.entry.js +1 -0
- package/dist/paperless/p-18245eb9.entry.js +1 -0
- package/dist/paperless/p-1ac00601.entry.js +1 -0
- package/dist/paperless/p-1be02ecd.entry.js +1 -0
- package/dist/paperless/p-1c6555d0.entry.js +1 -0
- package/dist/paperless/p-1fa99d63.entry.js +1 -0
- package/dist/paperless/p-2a9e2f97.entry.js +1 -0
- package/dist/paperless/p-2eb0963d.entry.js +1 -0
- package/dist/paperless/p-33c965ed.entry.js +1 -0
- package/dist/paperless/p-33fc3203.entry.js +1 -0
- package/dist/paperless/p-34448061.entry.js +1 -0
- package/dist/paperless/p-459f7a0b.entry.js +1 -0
- package/dist/paperless/p-4baa94c0.entry.js +1 -0
- package/dist/paperless/p-5f2b2731.entry.js +1 -0
- package/dist/paperless/p-6412710a.entry.js +1 -0
- package/dist/paperless/p-673c243e.entry.js +1 -0
- package/dist/paperless/p-6ac04b16.entry.js +1 -0
- package/dist/paperless/p-7158dacd.entry.js +1 -0
- package/dist/paperless/p-7be1c70d.entry.js +1 -0
- package/dist/paperless/p-7c4f3d89.entry.js +1 -0
- package/dist/{build/p-2ab9ae7b.entry.js → paperless/p-8a2690df.entry.js} +1 -1
- package/dist/{build/p-9d7732b8.entry.js → paperless/p-8a8adc4d.entry.js} +1 -1
- package/dist/paperless/p-9889be94.entry.js +1 -0
- package/dist/paperless/p-99522e10.entry.js +1 -0
- package/dist/paperless/p-9e1977a6.entry.js +1 -0
- package/dist/paperless/{p-CHZgJJeM.js → p-DeWIZIsV.js} +1 -1
- package/dist/paperless/p-aca48431.entry.js +1 -0
- package/dist/paperless/p-afa4d38a.entry.js +1 -0
- package/dist/paperless/p-b70ee063.entry.js +1 -0
- package/dist/paperless/p-b745b141.entry.js +1 -0
- package/dist/paperless/p-bcfbb856.entry.js +1 -0
- package/dist/paperless/p-cdcc28c2.entry.js +1 -0
- package/dist/paperless/p-dbac42ad.entry.js +1 -0
- package/dist/paperless/p-e00be7e7.entry.js +1 -0
- package/dist/paperless/p-e2219fa7.entry.js +1 -0
- package/dist/paperless/p-e30ef289.entry.js +1 -0
- package/dist/paperless/p-ecc80c01.entry.js +1 -0
- package/dist/paperless/p-fbd4c0ed.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/hydrate/index.js +1021 -401
- package/hydrate/index.mjs +1021 -401
- package/package.json +1 -1
- package/dist/build/p-03121981.entry.js +0 -1
- package/dist/build/p-073cbaa7.entry.js +0 -1
- package/dist/build/p-1537db63.entry.js +0 -1
- package/dist/build/p-196bfb8a.entry.js +0 -1
- package/dist/build/p-19acdd22.entry.js +0 -1
- package/dist/build/p-1c1eddff.entry.js +0 -1
- package/dist/build/p-1d99809d.entry.js +0 -1
- package/dist/build/p-2937ea4e.entry.js +0 -1
- package/dist/build/p-34b384b9.entry.js +0 -1
- package/dist/build/p-44c1c053.entry.js +0 -1
- package/dist/build/p-45cf64a3.entry.js +0 -1
- package/dist/build/p-46616392.entry.js +0 -1
- package/dist/build/p-53db6756.entry.js +0 -1
- package/dist/build/p-5619c169.entry.js +0 -1
- package/dist/build/p-5e0796a9.entry.js +0 -1
- package/dist/build/p-5f64a97e.entry.js +0 -1
- package/dist/build/p-601999d8.entry.js +0 -1
- package/dist/build/p-63d43818.entry.js +0 -1
- package/dist/build/p-69658698.entry.js +0 -1
- package/dist/build/p-785b43a9.entry.js +0 -1
- package/dist/build/p-811807fb.entry.js +0 -1
- package/dist/build/p-81670b3a.entry.js +0 -1
- package/dist/build/p-86a3cc52.entry.js +0 -1
- package/dist/build/p-87b38346.entry.js +0 -1
- package/dist/build/p-91486f55.entry.js +0 -1
- package/dist/build/p-92cbcd5c.entry.js +0 -1
- package/dist/build/p-94640ec1.entry.js +0 -1
- package/dist/build/p-a6156cbc.entry.js +0 -1
- package/dist/build/p-a74f30c8.entry.js +0 -1
- package/dist/build/p-abf997fa.entry.js +0 -1
- package/dist/build/p-bad88af1.entry.js +0 -1
- package/dist/build/p-bdc3f1b8.entry.js +0 -1
- package/dist/build/p-c076dfe7.entry.js +0 -1
- package/dist/build/p-c410fdca.entry.js +0 -1
- package/dist/build/p-e10ac105.entry.js +0 -1
- package/dist/build/p-f043914d.entry.js +0 -1
- package/dist/build/p-f43b03da.entry.js +0 -1
- package/dist/build/p-fa1774a4.entry.js +0 -1
- package/dist/components/p--y4GWpzd.js +0 -1
- package/dist/components/p-B1rVjCs6.js +0 -1
- package/dist/components/p-B4ldecyo.js +0 -1
- package/dist/components/p-B5p7dHkY.js +0 -1
- package/dist/components/p-BDDbB69D.js +0 -1
- package/dist/components/p-BKMmVFyv.js +0 -1
- package/dist/components/p-BSZKPMsM.js +0 -1
- package/dist/components/p-BWLjNSWO.js +0 -1
- package/dist/components/p-B_-9JoqJ.js +0 -1
- package/dist/components/p-Bqj-EqkF.js +0 -1
- package/dist/components/p-Br5JzRPb.js +0 -1
- package/dist/components/p-ByjIFdR7.js +0 -1
- package/dist/components/p-CKY-2A7w.js +0 -1
- package/dist/components/p-CXxGdOem.js +0 -1
- package/dist/components/p-Ch0_FdYv.js +0 -1
- package/dist/components/p-Cpwq0YdW.js +0 -1
- package/dist/components/p-D46WCsOs.js +0 -1
- package/dist/components/p-DEW7r6Qi.js +0 -1
- package/dist/components/p-DSA1b84Z.js +0 -1
- package/dist/components/p-Ddm-XKZe.js +0 -1
- package/dist/components/p-DexJ62g_.js +0 -1
- package/dist/components/p-DgL1D6Aj.js +0 -1
- package/dist/components/p-Dq0MN0E1.js +0 -1
- package/dist/components/p-Pg_XF2ti.js +0 -1
- package/dist/components/p-QG8NWGU3.js +0 -1
- package/dist/components/p-S831PmxS.js +0 -1
- package/dist/components/p-XWWy0siW.js +0 -1
- package/dist/components/p-a6F6aMNs.js +0 -1
- package/dist/components/p-eLkNCIS4.js +0 -1
- package/dist/components/p-g9hO5RJl.js +0 -1
- package/dist/components/p-hg2iAXCC.js +0 -1
- package/dist/components/p-yYBe3oal.js +0 -1
- package/dist/paperless/p-03121981.entry.js +0 -1
- package/dist/paperless/p-073cbaa7.entry.js +0 -1
- package/dist/paperless/p-1537db63.entry.js +0 -1
- package/dist/paperless/p-196bfb8a.entry.js +0 -1
- package/dist/paperless/p-19acdd22.entry.js +0 -1
- package/dist/paperless/p-1c1eddff.entry.js +0 -1
- package/dist/paperless/p-1d99809d.entry.js +0 -1
- package/dist/paperless/p-2937ea4e.entry.js +0 -1
- package/dist/paperless/p-34b384b9.entry.js +0 -1
- package/dist/paperless/p-44c1c053.entry.js +0 -1
- package/dist/paperless/p-45cf64a3.entry.js +0 -1
- package/dist/paperless/p-46616392.entry.js +0 -1
- package/dist/paperless/p-53db6756.entry.js +0 -1
- package/dist/paperless/p-5619c169.entry.js +0 -1
- package/dist/paperless/p-5e0796a9.entry.js +0 -1
- package/dist/paperless/p-5f64a97e.entry.js +0 -1
- package/dist/paperless/p-601999d8.entry.js +0 -1
- package/dist/paperless/p-63d43818.entry.js +0 -1
- package/dist/paperless/p-69658698.entry.js +0 -1
- package/dist/paperless/p-785b43a9.entry.js +0 -1
- package/dist/paperless/p-811807fb.entry.js +0 -1
- package/dist/paperless/p-81670b3a.entry.js +0 -1
- package/dist/paperless/p-86a3cc52.entry.js +0 -1
- package/dist/paperless/p-87b38346.entry.js +0 -1
- package/dist/paperless/p-91486f55.entry.js +0 -1
- package/dist/paperless/p-92cbcd5c.entry.js +0 -1
- package/dist/paperless/p-94640ec1.entry.js +0 -1
- package/dist/paperless/p-a6156cbc.entry.js +0 -1
- package/dist/paperless/p-a74f30c8.entry.js +0 -1
- package/dist/paperless/p-abf997fa.entry.js +0 -1
- package/dist/paperless/p-bad88af1.entry.js +0 -1
- package/dist/paperless/p-bdc3f1b8.entry.js +0 -1
- package/dist/paperless/p-c076dfe7.entry.js +0 -1
- package/dist/paperless/p-c410fdca.entry.js +0 -1
- package/dist/paperless/p-e10ac105.entry.js +0 -1
- package/dist/paperless/p-f043914d.entry.js +0 -1
- package/dist/paperless/p-f43b03da.entry.js +0 -1
- package/dist/paperless/p-fa1774a4.entry.js +0 -1
|
@@ -12,9 +12,12 @@ const popover = cva([
|
|
|
12
12
|
], {
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
|
-
hover:
|
|
15
|
+
hover: `
|
|
16
|
+
max-w-[14.5rem] bg-storm-500 py-1 text-white
|
|
17
|
+
dark:bg-white dark:text-storm-300
|
|
18
|
+
`,
|
|
16
19
|
click: 'max-w-[18rem]',
|
|
17
|
-
error: '
|
|
20
|
+
error: 'w-full max-w-full',
|
|
18
21
|
},
|
|
19
22
|
strategy: {
|
|
20
23
|
fixed: 'fixed',
|
|
@@ -28,7 +31,10 @@ const popover = cva([
|
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
variant: ['click', 'error'],
|
|
31
|
-
class:
|
|
34
|
+
class: `
|
|
35
|
+
bg-white py-2 text-storm-300
|
|
36
|
+
dark:bg-hurricane-800 dark:text-hurricane-200
|
|
37
|
+
`,
|
|
32
38
|
},
|
|
33
39
|
],
|
|
34
40
|
});
|
|
@@ -91,10 +97,10 @@ export class Tooltip {
|
|
|
91
97
|
this._cleanup = null;
|
|
92
98
|
}
|
|
93
99
|
render() {
|
|
94
|
-
return (h(ThemedHost, { key: '
|
|
100
|
+
return (h(ThemedHost, { key: 'd6eed2d0ae314f5bc0c956df0360c7c3affe5349', "data-filled": this.content?.length > 0 || this._hasContentSlot }, h("slot", { key: '68a50b13f23fbb9ff40b83d6a1f1cbad56a12add', name: 'trigger' }), h("div", { key: '6d4726e4663fe88a8758485c55ee003fca9e9c59', class: popover({
|
|
95
101
|
variant: this.variant,
|
|
96
102
|
strategy: this.strategy,
|
|
97
|
-
}), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, h("div", { key: '
|
|
103
|
+
}), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, h("div", { key: '9ded5ee86411c2d35b3ef4b75894740b5a9db814', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: 'fe330950d9662c415e99d1594581c096b5210cd7', class: '\n w-[2px] bg-negative-red-500\n dark:bg-negative-red-alternative\n ' })), this.content ?? h("slot", { key: '9ec941819d62d3fcca4edf9262d704644fb0f294', name: 'content' })))));
|
|
98
104
|
}
|
|
99
105
|
clickHandler() {
|
|
100
106
|
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { cn, isMobile, isTablet } from "../../../utils";
|
|
4
4
|
const attachment = cva([
|
|
5
5
|
'flex flex-1 items-center justify-start gap-2',
|
|
6
|
-
'h-8 min-w-0 px-2
|
|
6
|
+
'h-8 min-w-0 rounded-lg px-2',
|
|
7
7
|
'border border-solid',
|
|
8
8
|
'bg-white-600 text-storm-200',
|
|
9
9
|
'dark:bg-white/15 dark:text-hurricane-200',
|
|
@@ -14,8 +14,14 @@ const attachment = cva([
|
|
|
14
14
|
true: 'cursor-pointer',
|
|
15
15
|
},
|
|
16
16
|
error: {
|
|
17
|
-
false:
|
|
18
|
-
|
|
17
|
+
false: `
|
|
18
|
+
border-storm-100
|
|
19
|
+
dark:border-white/15
|
|
20
|
+
`,
|
|
21
|
+
true: `
|
|
22
|
+
border-negative-red-500
|
|
23
|
+
dark:border-negative-red-alternative
|
|
24
|
+
`,
|
|
19
25
|
},
|
|
20
26
|
},
|
|
21
27
|
});
|
|
@@ -95,21 +101,28 @@ export class Attachment {
|
|
|
95
101
|
_fileRef;
|
|
96
102
|
_cameraFileRef;
|
|
97
103
|
render() {
|
|
98
|
-
let prefix = (h("p-icon", { key: '
|
|
104
|
+
let prefix = (h("p-icon", { key: '38bee5bc396126d20cc43e7278e4b5da7fb7a695', class: 'text-storm-300', variant: 'attachment' }));
|
|
99
105
|
if (this.error) {
|
|
100
|
-
prefix = (h("p-icon", { key: '
|
|
106
|
+
prefix = (h("p-icon", { key: '66dfe096ee491c8c3f97170eb8ae3417d1d95de4', class: 'text-negative-red-500', variant: 'warning' }));
|
|
101
107
|
}
|
|
102
108
|
// const isMobileDevice = isMobile();
|
|
103
109
|
const isMobileDevice = isTablet();
|
|
104
110
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
105
|
-
return (h(Fragment, { key: '
|
|
111
|
+
return (h(Fragment, { key: '8b2d38564597724ee40f9916d45b053d946b35de' }, h("p-field-container", { key: '33a74e375c9fb319a20abd1962723572adaf11c6', error: this.error, forceShowTooltip: !!this.error?.length, helper: this.helper, label: this.label, required: this.required, variant: 'write' }, h("div", { key: '92d7a778625a40c171f58a722f34d7bdb6b978da', class: 'flex w-full items-start gap-2', slot: 'content' }, h("div", { key: 'aaf92c3e3d2017456492ac31f11bda522bafb62e', class: attachment({
|
|
106
112
|
click: this.mode === 'write' && !this.value?.length,
|
|
107
113
|
error: !!this.error?.length,
|
|
108
|
-
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '
|
|
114
|
+
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '13cfd3cb6c405275f36c3bdc4b5f0b43010dcacd', class: cn(baseText, `
|
|
115
|
+
peer
|
|
116
|
+
empty:hidden
|
|
117
|
+
dark:text-white
|
|
118
|
+
`) }, this.value), h("span", { key: '251d050ffb58678f6da944fd4775833f24874ed0', class: cn(baseText, `
|
|
119
|
+
hidden
|
|
120
|
+
peer-empty:block
|
|
121
|
+
`) }, this.placeholder)), h("p-tooltip", { key: 'c55bd274b3a21ea4ed12b8201d8acb8ba37e39c0', class: 'w-8', content: this.mode === 'read'
|
|
109
122
|
? this.downloadTooltip
|
|
110
123
|
: this.value?.length
|
|
111
124
|
? this.deleteTooltip
|
|
112
|
-
: this.uploadTooltip }, h("p-button", { key: '
|
|
125
|
+
: this.uploadTooltip }, h("p-button", { key: '2e47e228cdcfe7d19224a1e3884cc39cbb5c83c6', disabled: this.loading, icon: this.mode === 'read'
|
|
113
126
|
? 'download'
|
|
114
127
|
: this.value?.length
|
|
115
128
|
? 'trash'
|
|
@@ -120,7 +133,7 @@ export class Attachment {
|
|
|
120
133
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
121
134
|
this.mode === 'write' &&
|
|
122
135
|
isMobileDevice &&
|
|
123
|
-
!this.value?.length && (h("p-tooltip", { key: '
|
|
136
|
+
!this.value?.length && (h("p-tooltip", { key: 'b70b24f761917d9581abea3176f7baad59a8c643', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, h("p-button", { key: 'e9cd1e9c59547671c77f1f0f78bb5ecc45b6d94a', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), h("input", { key: '129ff3a7706fd2ce0c85e9867c1a5b35cd6b2021', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), h("input", { key: 'a214ffd826b76810792348b03662f6e8674658d5', accept: 'image/*', capture: 'true', class: 'hidden', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
124
137
|
}
|
|
125
138
|
_uploadClick() {
|
|
126
139
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -80,7 +80,7 @@ const button = cva([
|
|
|
80
80
|
primary: ['border-storm-500/20', 'text-white'],
|
|
81
81
|
secondary: null,
|
|
82
82
|
text: 'border-0',
|
|
83
|
-
transparent: '
|
|
83
|
+
transparent: 'border-transparent bg-transparent',
|
|
84
84
|
dropdown: null,
|
|
85
85
|
},
|
|
86
86
|
active: {
|
|
@@ -96,9 +96,9 @@ const button = cva([
|
|
|
96
96
|
false: null,
|
|
97
97
|
},
|
|
98
98
|
size: {
|
|
99
|
-
sm: ['
|
|
100
|
-
base: ['
|
|
101
|
-
lg: ['
|
|
99
|
+
sm: ['h-6 gap-1 text-xs'],
|
|
100
|
+
base: ['h-8 gap-2 text-sm'],
|
|
101
|
+
lg: ['h-10 gap-2 text-base'],
|
|
102
102
|
},
|
|
103
103
|
disabled: {
|
|
104
104
|
true: 'cursor-not-allowed border-transparent',
|
|
@@ -123,7 +123,7 @@ const button = cva([
|
|
|
123
123
|
// variants
|
|
124
124
|
{
|
|
125
125
|
variant: ['secondary', 'dropdown'],
|
|
126
|
-
class: 'bg-white dark:bg-white/15',
|
|
126
|
+
class: ['bg-white', 'dark:bg-white/15'],
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
variant: ['primary', 'secondary', 'dropdown'],
|
|
@@ -149,16 +149,25 @@ const button = cva([
|
|
|
149
149
|
variant: ['secondary', 'dropdown'],
|
|
150
150
|
disabled: false,
|
|
151
151
|
error: false,
|
|
152
|
-
class:
|
|
152
|
+
class: `
|
|
153
|
+
text-storm-500
|
|
154
|
+
dark:text-white
|
|
155
|
+
`,
|
|
153
156
|
},
|
|
154
157
|
{
|
|
155
158
|
variant: 'primary',
|
|
156
|
-
class:
|
|
159
|
+
class: `
|
|
160
|
+
dark:border-0
|
|
161
|
+
dark:active:border-0
|
|
162
|
+
`,
|
|
157
163
|
},
|
|
158
164
|
{
|
|
159
165
|
variant: 'primary',
|
|
160
166
|
disabled: true,
|
|
161
|
-
class:
|
|
167
|
+
class: `
|
|
168
|
+
bg-indigo-200
|
|
169
|
+
dark:bg-indigo-600/30 dark:text-white/30
|
|
170
|
+
`,
|
|
162
171
|
},
|
|
163
172
|
{
|
|
164
173
|
variant: 'primary',
|
|
@@ -170,8 +179,15 @@ const button = cva([
|
|
|
170
179
|
disabled: false,
|
|
171
180
|
loading: false,
|
|
172
181
|
class: [
|
|
173
|
-
|
|
174
|
-
|
|
182
|
+
`
|
|
183
|
+
active:border-storm-500/10 active:text-white/60 active:ring-2
|
|
184
|
+
dark:active:ring-0
|
|
185
|
+
`,
|
|
186
|
+
`
|
|
187
|
+
drop-shadow-primary-button
|
|
188
|
+
hover:bg-indigo-700 hover:drop-shadow-2
|
|
189
|
+
active:ring-indigo-100
|
|
190
|
+
`,
|
|
175
191
|
],
|
|
176
192
|
},
|
|
177
193
|
{
|
|
@@ -179,7 +195,7 @@ const button = cva([
|
|
|
179
195
|
disabled: false,
|
|
180
196
|
loading: false,
|
|
181
197
|
active: true,
|
|
182
|
-
class: 'ring
|
|
198
|
+
class: 'ring-2',
|
|
183
199
|
},
|
|
184
200
|
{
|
|
185
201
|
variant: 'primary',
|
|
@@ -191,20 +207,33 @@ const button = cva([
|
|
|
191
207
|
{
|
|
192
208
|
variant: ['secondary', 'dropdown'],
|
|
193
209
|
disabled: true,
|
|
194
|
-
class:
|
|
210
|
+
class: `
|
|
211
|
+
border bg-white-600 text-storm-100
|
|
212
|
+
dark:border-white/5 dark:bg-white/5 dark:text-hurricane-400
|
|
213
|
+
`,
|
|
195
214
|
},
|
|
196
215
|
{
|
|
197
216
|
variant: ['secondary', 'dropdown'],
|
|
198
217
|
disabled: false,
|
|
199
|
-
class:
|
|
218
|
+
class: `
|
|
219
|
+
text-storm-500
|
|
220
|
+
dark:text-white
|
|
221
|
+
`,
|
|
200
222
|
},
|
|
201
223
|
{
|
|
202
224
|
variant: ['secondary', 'dropdown'],
|
|
203
225
|
disabled: false,
|
|
204
226
|
loading: false,
|
|
205
227
|
class: [
|
|
206
|
-
|
|
207
|
-
|
|
228
|
+
`
|
|
229
|
+
drop-shadow-1
|
|
230
|
+
hover:bg-white-600 hover:drop-shadow-1
|
|
231
|
+
active:text-storm-500/60 active:ring-indigo-100
|
|
232
|
+
`,
|
|
233
|
+
`
|
|
234
|
+
dark:hover:bg-white/25
|
|
235
|
+
dark:active:bg-white/25 dark:active:text-white/60 dark:active:ring-0
|
|
236
|
+
`,
|
|
208
237
|
],
|
|
209
238
|
},
|
|
210
239
|
{
|
|
@@ -229,20 +258,35 @@ const button = cva([
|
|
|
229
258
|
variant: ['secondary', 'dropdown'],
|
|
230
259
|
error: false,
|
|
231
260
|
active: false,
|
|
232
|
-
class: [
|
|
261
|
+
class: [
|
|
262
|
+
`
|
|
263
|
+
border-storm-500/20
|
|
264
|
+
dark:border-transparent
|
|
265
|
+
`,
|
|
266
|
+
],
|
|
233
267
|
},
|
|
234
268
|
{
|
|
235
269
|
variant: ['secondary', 'dropdown'],
|
|
236
270
|
error: true,
|
|
237
271
|
class: [
|
|
238
|
-
|
|
239
|
-
|
|
272
|
+
`
|
|
273
|
+
border border-negative-red-500 text-negative-red-800 ring ring-2
|
|
274
|
+
ring-negative-red-50
|
|
275
|
+
active:text-negative-red-800
|
|
276
|
+
`,
|
|
277
|
+
`
|
|
278
|
+
dark:border-negative-red-700 dark:text-negative-red-alternative
|
|
279
|
+
dark:ring-0
|
|
280
|
+
`,
|
|
240
281
|
],
|
|
241
282
|
},
|
|
242
283
|
{
|
|
243
284
|
variant: ['text', 'transparent'],
|
|
244
285
|
disabled: false,
|
|
245
|
-
class:
|
|
286
|
+
class: `
|
|
287
|
+
text-indigo-700
|
|
288
|
+
hover:text-indigo-800
|
|
289
|
+
`,
|
|
246
290
|
},
|
|
247
291
|
{
|
|
248
292
|
variant: ['text', 'transparent'],
|
|
@@ -331,7 +375,11 @@ const icon = cva([], {
|
|
|
331
375
|
disabled: false,
|
|
332
376
|
active: false,
|
|
333
377
|
error: false,
|
|
334
|
-
class:
|
|
378
|
+
class: `
|
|
379
|
+
text-indigo-300
|
|
380
|
+
group-hover/button:text-white
|
|
381
|
+
group-active/button:text-white/60
|
|
382
|
+
`,
|
|
335
383
|
},
|
|
336
384
|
{
|
|
337
385
|
variant: 'primary',
|
|
@@ -345,8 +393,15 @@ const icon = cva([], {
|
|
|
345
393
|
active: false,
|
|
346
394
|
error: false,
|
|
347
395
|
class: [
|
|
348
|
-
|
|
349
|
-
|
|
396
|
+
`
|
|
397
|
+
text-storm-300
|
|
398
|
+
group-hover/button:text-storm-500
|
|
399
|
+
group-active/button:text-storm-500/60
|
|
400
|
+
`,
|
|
401
|
+
`
|
|
402
|
+
dark:group-hover/button:text-white
|
|
403
|
+
dark:group-active/button:text-white/60
|
|
404
|
+
`,
|
|
350
405
|
],
|
|
351
406
|
},
|
|
352
407
|
{
|
|
@@ -370,19 +425,30 @@ const icon = cva([], {
|
|
|
370
425
|
disabled: false,
|
|
371
426
|
active: true,
|
|
372
427
|
error: false,
|
|
373
|
-
class:
|
|
428
|
+
class: `
|
|
429
|
+
text-storm-500/60
|
|
430
|
+
dark:text-white/60
|
|
431
|
+
`,
|
|
374
432
|
},
|
|
375
433
|
{
|
|
376
434
|
variant: ['transparent', 'text'],
|
|
377
435
|
disabled: false,
|
|
378
436
|
active: false,
|
|
379
|
-
class:
|
|
437
|
+
class: `
|
|
438
|
+
text-indigo-500
|
|
439
|
+
group-hover/button:text-indigo-700
|
|
440
|
+
group-active/button:text-indigo-800
|
|
441
|
+
`,
|
|
380
442
|
},
|
|
381
443
|
{
|
|
382
444
|
variant: ['secondary', 'dropdown'],
|
|
383
445
|
active: false,
|
|
384
446
|
error: true,
|
|
385
|
-
class:
|
|
447
|
+
class: `
|
|
448
|
+
text-negative-red-500
|
|
449
|
+
group-hover/button:text-negative-red-800
|
|
450
|
+
dark:text-negative-red-alternative
|
|
451
|
+
`,
|
|
386
452
|
},
|
|
387
453
|
{
|
|
388
454
|
variant: ['secondary', 'dropdown'],
|
|
@@ -513,7 +579,7 @@ export class Button {
|
|
|
513
579
|
: 'button';
|
|
514
580
|
const hostClass = cn('p-button inline-block', this.class);
|
|
515
581
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
516
|
-
return (h(ThemedHost, { key: '
|
|
582
|
+
return (h(ThemedHost, { key: '96d79703fdd577fadf843e31db00fc39c7a0f60b', class: hostClass }, h(VariableTag, { key: 'b61672659ecbd461e3ee99ac8288f90fddc9f2e1', class: button({
|
|
517
583
|
variant: this.variant,
|
|
518
584
|
size: this.size,
|
|
519
585
|
loading: asBoolean(this.loading),
|
|
@@ -523,14 +589,14 @@ export class Button {
|
|
|
523
589
|
active,
|
|
524
590
|
error: asBoolean(this.error),
|
|
525
591
|
underline: asBoolean(this.underline) && VariableTag === 'a',
|
|
526
|
-
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '
|
|
592
|
+
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '53ad0547df945a2055d9d9a8e9a4e32f8b4474d6', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.icon &&
|
|
527
593
|
this.iconPosition === 'start' &&
|
|
528
594
|
!(this.iconOnly && this.loading) &&
|
|
529
|
-
this._getIcon(), this.label ?? h("slot", { key: '
|
|
595
|
+
this._getIcon(), this.label ?? h("slot", { key: '59dc0d14a430e8e47fa46752025d76c0848bcbc4' }), this.icon &&
|
|
530
596
|
this.iconPosition === 'end' &&
|
|
531
597
|
!this.loading &&
|
|
532
598
|
!this.chevron &&
|
|
533
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '
|
|
599
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '5e1c8d2f5781900af5ff53b565f7904a42df2c23', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.loading && h("p-loader", { key: 'a760f9a6c098b0857225acd689bda1824021455a', color: loaderColor }))));
|
|
534
600
|
}
|
|
535
601
|
handleClick(ev) {
|
|
536
602
|
if (this.loading || this.disabled) {
|
|
@@ -5,18 +5,21 @@ import { enUS, nl } from "date-fns/locale";
|
|
|
5
5
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
6
6
|
import { state } from "../../../state";
|
|
7
7
|
import { cn } from "../../../utils/cn";
|
|
8
|
-
const calendar = cva(['w-[17.5rem] flex
|
|
8
|
+
const calendar = cva(['flex w-[17.5rem] flex-col gap-4'], {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
default: ['p-2
|
|
11
|
+
default: ['rounded-lg p-2 drop-shadow-2', 'border border-storm-100'],
|
|
12
12
|
embedded: 'p-1',
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
const header = cva([
|
|
17
17
|
'flex items-center gap-2',
|
|
18
|
-
'w-full p-2
|
|
19
|
-
|
|
18
|
+
'w-full rounded-lg p-2',
|
|
19
|
+
`
|
|
20
|
+
bg-off-white-300
|
|
21
|
+
dark:bg-white/15
|
|
22
|
+
`,
|
|
20
23
|
], {
|
|
21
24
|
variants: {
|
|
22
25
|
type: {
|
|
@@ -186,7 +189,7 @@ export class Calendar {
|
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
render() {
|
|
189
|
-
return (h(ThemedHost, { key: '
|
|
192
|
+
return (h(ThemedHost, { key: 'f15ea9c031af444ef0d1679b88baf45d554fea8b' }, h("div", { key: 'ffd0b34ea60681b58a5ca1e75ae81bd4209a442f', class: calendar({ variant: this.variant }) }, this._getView())));
|
|
190
193
|
}
|
|
191
194
|
_checkTodayButton() {
|
|
192
195
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -219,10 +222,14 @@ export class Calendar {
|
|
|
219
222
|
const daysInMonth = this._generateDaysInMonth();
|
|
220
223
|
return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, format(addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
|
|
221
224
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
222
|
-
})))), daysInMonth.map(day => day.active ? (h("p-button", { class: cn('w-8', `
|
|
225
|
+
})))), daysInMonth.map(day => day.active ? (h("p-button", { class: cn('w-8', `
|
|
226
|
+
col-start-${day.offset}
|
|
227
|
+
`), tabIndex: -1, variant: 'primary', onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
|
|
223
228
|
'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
|
|
224
229
|
'dark:text-hurricane-200': day.disabled,
|
|
225
|
-
}, `
|
|
230
|
+
}, `
|
|
231
|
+
col-start-${day.offset}
|
|
232
|
+
`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
226
233
|
'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white': !day.disabled && isSameDay(day.date, new Date()),
|
|
227
234
|
}), onClick: () => this._setValue(day.date) }, day.day))))));
|
|
228
235
|
}
|
|
@@ -47,9 +47,19 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, h("div", { key: '
|
|
50
|
+
return (h(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, h("div", { key: 'c06c9b5385f6fe2d69b17415ed46fc78fc8be5ae', class: `
|
|
51
|
+
slider
|
|
52
|
+
${!this.disableDrag && 'draggable'}
|
|
53
|
+
${this._dragging && 'dragging'}
|
|
54
|
+
`, ref: el => (this._sliderRef = el), style: {
|
|
51
55
|
height: `${this._outerHeight}px`,
|
|
52
|
-
}, 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: '5dfdd1adee4730a98789496e923c5ec6e3a8eb9c', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'd1557d4fa4336b8f01d7039a3b6e1fb9c65716f9', onSlotchange: () => this._slotChange() }))), h("div", { key: '1bf3e7c46755f0f85fc6fa573bd04ee43bd0752d', class: `
|
|
57
|
+
indicator
|
|
58
|
+
${this.hideMobileIndicator && 'hidden'}
|
|
59
|
+
` }, this._filteredItems.map((_, i) => (h("div", { class: `
|
|
60
|
+
item
|
|
61
|
+
${!this.disableIndicatorClick && 'cursor-pointer'}
|
|
62
|
+
`, onClick: () => this._scrollTo(i, true) }, h("div", { class: cn('block h-2 w-2 rounded-full', {
|
|
53
63
|
'bg-indigo-600': i === this._visibleIndex,
|
|
54
64
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
55
65
|
}) })))))));
|
|
@@ -42,7 +42,7 @@ export class Cropper {
|
|
|
42
42
|
const themeColor = state.theme === 'dark'
|
|
43
43
|
? 'rgba(70, 75, 84, 0.5)'
|
|
44
44
|
: 'rgba(255, 255, 255, 0.5)';
|
|
45
|
-
return (h(ThemedHost, { key: 'dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7' }, this._loaded && (h("cropper-canvas", { key: '
|
|
45
|
+
return (h(ThemedHost, { key: 'dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7' }, this._loaded && (h("cropper-canvas", { key: '69757749ad6d01c41e7aca2e8f21c693666e98fe', class: '\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ', onAction: () => this._onAction() }, h("cropper-image", { key: '07b78454e15277f87160a6832c4fed1bbbfb08c1', alt: 'Picture', crossorigin: 'anonymous', ref: ref => this._setImageRef(ref), src: this.value, scalable: true, translatable: true }), h("cropper-shade", { key: 'e1784c618c68dac7a8311f8d7e93666c5d3b3611', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: '2348efb74b1bf52ee4fab7157d32bb1dfe523430', "aspect-ratio": '1', "initial-coverage": '0.7', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '45f943c9eefaf4312bd20ca8f4d089a5a0ece738', action: 'move', plain: true }))), h("p-range", { key: 'c96960f209547ddef6cd66a4ee9981d96901d0f0', class: '\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
46
46
|
}
|
|
47
47
|
_setImageRef(ref) {
|
|
48
48
|
if (this._imageRef || !ref) {
|
|
@@ -208,7 +208,7 @@ export class Datepicker {
|
|
|
208
208
|
this.parseValue(this.value);
|
|
209
209
|
}
|
|
210
210
|
render() {
|
|
211
|
-
return (h("p-dropdown", { key: 'c65daeff45afabeefa654b8d033a40d9fda5b4e2', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: '09aaa8a320e9a1852171aa59054a9b269667addb', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '
|
|
211
|
+
return (h("p-dropdown", { key: 'c65daeff45afabeefa654b8d033a40d9fda5b4e2', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: '09aaa8a320e9a1852171aa59054a9b269667addb', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '5d3bc6559f556f4965bfbdf5789691e1aebac89b', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
212
212
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
213
213
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
214
214
|
}), min: this._minDate &&
|
|
@@ -217,7 +217,7 @@ export class Datepicker {
|
|
|
217
217
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
218
218
|
format(this._value, 'yyyy-MM-dd', {
|
|
219
219
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
220
|
-
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '
|
|
220
|
+
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '360edd69e71e6f308aea157491d3612bb3ea095f', slot: 'items', tabIndex: -1 }, h("p-calendar", { key: '0f1545e528dbf99bf47e3dc48d866d56522caae3', disableWeekends: this.disableWeekends, disabledDates: this.disabledDates, enableToday: this.enableToday, maxDate: this.maxDate, minDate: this.minDate, mode: this.mode, preselectToday: this.preselectToday, todayText: this.todayText, value: this._value, variant: 'embedded', onValueChange: ({ detail }) => (this.value = detail) }))));
|
|
221
221
|
}
|
|
222
222
|
documentClickHandler({ target }) {
|
|
223
223
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -2,7 +2,7 @@ import { h, } from "@stencil/core";
|
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
4
|
import { asBoolean } from "../../../utils/as-boolean";
|
|
5
|
-
const emptyState = cva(['flex
|
|
5
|
+
const emptyState = cva(['flex w-full max-w-[20rem] flex-col items-center justify-start'], {
|
|
6
6
|
variants: {
|
|
7
7
|
enableAction: {
|
|
8
8
|
true: 'cursor-pointer',
|
|
@@ -63,7 +63,7 @@ export class EmptyState {
|
|
|
63
63
|
enableAction: asBoolean(this.enableAction, true),
|
|
64
64
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
65
65
|
? this.action.emit(ev)
|
|
66
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '3434e243bb9a41e7f56982fff2450cc92013b25f', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-storm-500
|
|
66
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '3434e243bb9a41e7f56982fff2450cc92013b25f', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: '\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n ' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: '\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n ' }, this.content))), this.enableAction &&
|
|
67
67
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "p-empty-state"; }
|
|
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
4
4
|
import { cn, formatTranslation, getLocaleComponentStrings, } from "../../../../utils";
|
|
5
5
|
import { asBoolean } from "../../../../utils/as-boolean";
|
|
6
|
-
const loader = cva(['rounded-lg
|
|
6
|
+
const loader = cva(['w-full rounded-lg'], {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
9
|
read: null,
|
|
@@ -111,18 +111,21 @@ export class FieldContainer {
|
|
|
111
111
|
}
|
|
112
112
|
return (h(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, h("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1', class: cn('flex w-inherit flex-col gap-1', {
|
|
113
113
|
'cursor-auto': this.variant === 'read',
|
|
114
|
-
}), htmlFor: this.id }, h("div", { key: '
|
|
114
|
+
}), htmlFor: this.id }, h("div", { key: '512c7c3162d9a40483f5d43d7fbea5635c40b45d', class: cn(`
|
|
115
|
+
flex items-end justify-between gap-1
|
|
116
|
+
empty:hidden
|
|
117
|
+
`, {
|
|
115
118
|
'flex-row-reverse': this.align === 'end',
|
|
116
|
-
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '
|
|
117
|
-
hasHeaderSlot) && (h("div", { key: '
|
|
119
|
+
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '77b5887681e6537714b0352a02873a56ab22e304', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: '786e241b3537a05c4bf12f58333d5c10065879c3', class: '\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n ' }, label), helper && (h("p-helper", { key: 'd14700f7a78349ffb1de0a39bcb92ca9833e7f3b', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
120
|
+
hasHeaderSlot) && (h("div", { key: 'a3f63057ac68b62a68cf4d0b31b09039817ea87f', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
118
121
|
asBoolean(this.showOptional) &&
|
|
119
|
-
this.variant === 'write' && (h("span", { key: '
|
|
122
|
+
this.variant === 'write' && (h("span", { key: '6e98ac54bcabfe7b4481b1745b7c25fbc0c1e717', class: '\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n ' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: 'e4b5a07a66a036c619d0a788c959a3d80af2f58c', name: 'header' })))), h("p-tooltip", { key: 'd482091d838534d3f3e3f177c9f5ccd605e8e519', class: cn({
|
|
120
123
|
'w-full': this.variant === 'write' || this.loading,
|
|
121
124
|
'ml-auto': this.align === 'end',
|
|
122
125
|
'font-normal': this.variant === 'read',
|
|
123
126
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
124
127
|
}), content: this.error, enableUserInput: false, placement: this.errorPlacement, show: errorAndErrorIsNotBoolean &&
|
|
125
|
-
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: '
|
|
128
|
+
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: '45fc720b8771ffca3ce381fcc98c162947aa1e71', name: 'error', slot: 'content' })), contentSlot))));
|
|
126
129
|
}
|
|
127
130
|
async _setLocales() {
|
|
128
131
|
this._locales = await getLocaleComponentStrings(this._el);
|