@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
|
@@ -4,9 +4,12 @@ import { debounceTime, distinctUntilChanged, Subject } from "rxjs";
|
|
|
4
4
|
import { ThemedHost } from "../../../../internal/themed-host.component";
|
|
5
5
|
import { formatTranslation, getLocaleComponentStrings, } from "../../../../utils/localization";
|
|
6
6
|
const header = cva([
|
|
7
|
-
'flex flex-col gap-2
|
|
7
|
+
'z-[1] flex flex-col gap-2',
|
|
8
8
|
'w-full',
|
|
9
|
-
|
|
9
|
+
`
|
|
10
|
+
px-4
|
|
11
|
+
tablet:px-0
|
|
12
|
+
`,
|
|
10
13
|
'desktop-xs:flex-row',
|
|
11
14
|
]);
|
|
12
15
|
export class TableHeader {
|
|
@@ -130,28 +133,45 @@ export class TableHeader {
|
|
|
130
133
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
131
134
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
132
135
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
133
|
-
return (h(ThemedHost, { key: '
|
|
134
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '
|
|
136
|
+
return (h(ThemedHost, { key: '046a82c93f16849095adf724acfd621369af3593' }, h("div", { key: 'e46eb857f7945716243299ce4c999673ec453d5a', class: header() }, this.loading && (h("p-loader", { key: 'c8a4898ede8aa744b72c6d11afceba5079eeb32a', class: '\n hidden h-8 w-3/4 rounded\n desktop-xs:flex\n ', variant: 'ghost' })), !this.loading &&
|
|
137
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '877290a2e98724bc17e95d3d447ea37e6a005dc4', class: '\n flex flex-col justify-start gap-4 justify-self-start\n desktop-xs:flex-row\n ' }, hasCustomFilterSlot && h("slot", { key: 'c1a71c7715dfd42975529c08f7d784f7fc463309', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: 'a78f5ca023cd8106c610d1535e6e8b262dc15632', class: '\n hidden\n desktop-xs:flex\n ' }, quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
135
138
|
? item.text
|
|
136
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '
|
|
139
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '17e05645a060b6674211930c340f039e690b2b83', class: '\n flex flex-col justify-end gap-2\n desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center\n ' }, this.enableSearch && (h("p-field", { key: 'e8cc9ab173b7864f5adee53fcb7a6b124e392722', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: '593628e94f3766ad21562a8133cc76e0a8e7c612', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: '863ea9caf0d1d34e5c45a22db523f54075b861c9', class: `
|
|
140
|
+
w-full
|
|
141
|
+
${this.enableFilterDesktop
|
|
137
142
|
? 'desktop-xs:w-auto'
|
|
138
|
-
: 'desktop-xs:hidden'}
|
|
143
|
+
: 'desktop-xs:hidden'}
|
|
144
|
+
`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
139
145
|
? this.filterButtonTemplate()
|
|
140
146
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
141
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '
|
|
147
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: 'f82cc292316723b26ed2f163a8a4e5bd6b321f33', class: '\n hidden h-4\n tablet:flex\n dark:text-white/15\n ', variant: 'vertical' })), !this.loading && this.enableExport && (h("p-button", { key: '68b77661274b6e9c6e8764bbe16519539966e0f9', class: '\n desktop-xs:auto\n w-full\n ', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '5156a9e3cdcef6ce1aa15efa4909d88abed010da', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: 'a8125d245e8a194734b50c2ead689a9bfb7d686e', class: '\n fixed bottom-0 left-0 z-[2] block w-full border border-solid\n border-transparent bg-white p-4\n desktop-xs:hidden\n dark:border-t-hurricane-400 dark:bg-hurricane-500\n ' }, this._buttonTemplate(true))))));
|
|
142
148
|
}
|
|
143
149
|
async _setLocales() {
|
|
144
150
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
145
151
|
}
|
|
146
152
|
_buttonTemplate(mobile = false) {
|
|
147
|
-
return (h("p-button", { class: mobile
|
|
153
|
+
return (h("p-button", { class: mobile
|
|
154
|
+
? 'w-full'
|
|
155
|
+
: `
|
|
156
|
+
hidden
|
|
157
|
+
desktop-xs:flex
|
|
158
|
+
`, disabled: !this.canUseAction, icon: this.actionIcon, loading: this.actionLoading, onOnClick: () => this.action.emit() }, this.actionButtonTemplate
|
|
148
159
|
? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)
|
|
149
160
|
: this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
150
161
|
}
|
|
151
162
|
_getLabel(amount, variant = 'default') {
|
|
152
|
-
return (h("p-badge", { class: `
|
|
153
|
-
|
|
154
|
-
|
|
163
|
+
return (h("p-badge", { class: `
|
|
164
|
+
ml-1
|
|
165
|
+
${variant === 'default'
|
|
166
|
+
? `
|
|
167
|
+
hidden
|
|
168
|
+
desktop-xs:flex
|
|
169
|
+
`
|
|
170
|
+
: `
|
|
171
|
+
flex
|
|
172
|
+
desktop-xs:hidden
|
|
173
|
+
`}
|
|
174
|
+
` }, amount));
|
|
155
175
|
}
|
|
156
176
|
static get is() { return "p-table-header"; }
|
|
157
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ import { asBoolean } from "../../../../utils/as-boolean";
|
|
|
5
5
|
const row = cva(['flex min-w-[calc(100%-0.5rem)] flex-col', 'group', 'relative'], {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
|
-
default: ['px-3
|
|
8
|
+
default: ['m-1 px-3', 'text-sm text-storm-500', 'dark:text-white'],
|
|
9
9
|
header: null,
|
|
10
10
|
'header-secondary': 'mb-4',
|
|
11
11
|
secondary: ['px-4', 'font-ambit text-lg font-bold'],
|
|
@@ -36,12 +36,16 @@ const row = cva(['flex min-w-[calc(100%-0.5rem)] flex-col', 'group', 'relative']
|
|
|
36
36
|
checked: true,
|
|
37
37
|
class: [
|
|
38
38
|
'rounded-lg transition-colors',
|
|
39
|
-
|
|
39
|
+
`
|
|
40
|
+
bg-off-white-300
|
|
41
|
+
dark:bg-hurricane-400
|
|
42
|
+
dark:hover:bg-hurricane-400
|
|
43
|
+
`,
|
|
40
44
|
],
|
|
41
45
|
},
|
|
42
46
|
{
|
|
43
47
|
variant: ['secondary', 'header-secondary'],
|
|
44
|
-
class: ['bg-off-white-300
|
|
48
|
+
class: ['rounded-lg bg-off-white-300', 'dark:bg-hurricane-400'],
|
|
45
49
|
},
|
|
46
50
|
{
|
|
47
51
|
variant: ['header', 'header-secondary'],
|
|
@@ -65,7 +69,10 @@ const content = cva('relative flex min-w-full flex-nowrap items-stretch justify-
|
|
|
65
69
|
compoundVariants: [
|
|
66
70
|
{
|
|
67
71
|
variant: ['default', 'secondary'],
|
|
68
|
-
class:
|
|
72
|
+
class: `
|
|
73
|
+
min-h-14 py-2
|
|
74
|
+
tablet:py-4
|
|
75
|
+
`,
|
|
69
76
|
},
|
|
70
77
|
{
|
|
71
78
|
variant: ['header', 'header-secondary'],
|
|
@@ -76,7 +83,10 @@ const content = cva('relative flex min-w-full flex-nowrap items-stretch justify-
|
|
|
76
83
|
const actions = cva([
|
|
77
84
|
'absolute -right-4 top-1 z-[2]',
|
|
78
85
|
'h-[calc(100%-0.5rem)]',
|
|
79
|
-
|
|
86
|
+
`
|
|
87
|
+
opacity-0 transition-opacity
|
|
88
|
+
group-hover:opacity-100
|
|
89
|
+
`,
|
|
80
90
|
'empty:hidden',
|
|
81
91
|
]);
|
|
82
92
|
export class TableRow {
|
|
@@ -97,13 +107,13 @@ export class TableRow {
|
|
|
97
107
|
*/
|
|
98
108
|
isLast = false;
|
|
99
109
|
render() {
|
|
100
|
-
return (h(ThemedHost, { key: '
|
|
110
|
+
return (h(ThemedHost, { key: '2a879fbd1ebc7e0ba74ccee2af2cd6c1a50ca1e9' }, h("div", { key: 'c8669184f758a8a2d43e64106e61528685868aba', class: 'flex flex-col' }, h("div", { key: '7ac443b2dc90f0933685cc3f2acc3d4a35294913', class: row({
|
|
101
111
|
variant: this.variant,
|
|
102
112
|
enableHover: this.enableHover,
|
|
103
113
|
checked: this.checked,
|
|
104
|
-
}) }, h("div", { key: '
|
|
114
|
+
}) }, h("div", { key: 'f7e60bd5f786101d8a6e621c3c267d1b0d8be51f', class: content({
|
|
105
115
|
variant: this.variant,
|
|
106
|
-
}) }, h("slot", { key: '
|
|
116
|
+
}) }, h("slot", { key: '8c2c29d4fc47bf0bac08e13974cf75cca9a547d2' }), h("div", { key: '86aae5f9bfaefadb6230bd56fe8a98a0e43bca9b', class: actions() }, h("slot", { key: '18ac2963f072a01ab5489feb1f8cc29a0e070c82', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: 'a997fce0cef95cedd38154a512aff948d46cb465' })))));
|
|
107
117
|
}
|
|
108
118
|
static get is() { return "p-table-row"; }
|
|
109
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
|
-
const indicator = cva('w-[2px]
|
|
4
|
+
const indicator = cva('h-9 w-[2px] flex-shrink-0 rounded-full', {
|
|
5
5
|
variants: {
|
|
6
6
|
variant: {
|
|
7
|
-
neutral:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
neutral: `
|
|
8
|
+
bg-indigo-800
|
|
9
|
+
dark:bg-indigo-400
|
|
10
|
+
`,
|
|
11
|
+
positive: `
|
|
12
|
+
bg-positive-green-500
|
|
13
|
+
dark:bg-positive-green-alternative
|
|
14
|
+
`,
|
|
15
|
+
biased: `
|
|
16
|
+
bg-amber-500
|
|
17
|
+
dark:bg-amber-alternative
|
|
18
|
+
`,
|
|
19
|
+
negative: `
|
|
20
|
+
bg-negative-red-500
|
|
21
|
+
dark:bg-negative-red-alternative
|
|
22
|
+
`,
|
|
11
23
|
},
|
|
12
24
|
},
|
|
13
25
|
});
|
|
14
26
|
const content = cva([
|
|
15
|
-
'flex justify-between
|
|
27
|
+
'flex items-center justify-between gap-2',
|
|
16
28
|
'w-[calc(100%-2px-0.5rem)]',
|
|
17
29
|
]);
|
|
18
30
|
export class Toast {
|
|
@@ -49,7 +61,7 @@ export class Toast {
|
|
|
49
61
|
*/
|
|
50
62
|
action;
|
|
51
63
|
render() {
|
|
52
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: '691f56d7bd82c2c908b4773e39bf327174af3784' }, h("div", { key: 'd7ea2273b9ac2685b2a6583d25f7e7236061eeda', class: '\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ', onClick: () => this._onClick() }, h("div", { key: 'e7dba6bb34063d4c20df2c16bd87be7dbbe53815', class: indicator({ variant: this.variant }) }), h("div", { key: '1fc1320c89627a6da22f3010abcb7c6b7af25109', class: content() }, h("div", { key: '1122c87ff8fa6f3410d416ee223fc7532c723652', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '78ea333ecd424872e1a1e99b14e6427ec1b3a68d', class: '\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n ' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '899613703dc181f980c2e45ef54d6aeb24d7f3ab', class: '\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n ' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: '2fcede21976b5f039715905c282c0990f7b7b7cf', class: '\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '12a6725ddedad306f9af430fb0e61f6ad3d4f9ef', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
53
65
|
}
|
|
54
66
|
_onClick() {
|
|
55
67
|
if (this.enableAction) {
|
|
@@ -3,19 +3,31 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
4
|
const sidebarAndTopbar = cva([
|
|
5
5
|
'transition',
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
`
|
|
7
|
+
bg-off-white-300
|
|
8
|
+
dark:bg-hurricane-800
|
|
9
|
+
`,
|
|
10
|
+
`
|
|
11
|
+
border-0 border-solid border-off-white-700
|
|
12
|
+
dark:border-hurricane-500
|
|
13
|
+
`,
|
|
8
14
|
'p-4',
|
|
9
15
|
]);
|
|
10
16
|
const sidebar = cva([
|
|
11
17
|
'flex flex-col',
|
|
12
18
|
'fixed left-0 top-0 z-navbar h-screen w-60',
|
|
13
19
|
'w-full max-w-[16.5rem]',
|
|
14
|
-
|
|
20
|
+
`
|
|
21
|
+
layout-1280:relative layout-1280:z-0 layout-1280:h-full
|
|
22
|
+
layout-1280:max-w-none
|
|
23
|
+
`,
|
|
15
24
|
'gap-6',
|
|
16
25
|
'transition-all',
|
|
17
26
|
'will-change-transform',
|
|
18
|
-
|
|
27
|
+
`
|
|
28
|
+
-translate-x-full transform-gpu
|
|
29
|
+
layout-1280:translate-x-0
|
|
30
|
+
`,
|
|
19
31
|
'border-r',
|
|
20
32
|
'safe-sidebar',
|
|
21
33
|
], {
|
|
@@ -27,16 +39,21 @@ const sidebar = cva([
|
|
|
27
39
|
},
|
|
28
40
|
});
|
|
29
41
|
const topbar = cva([
|
|
30
|
-
'flex w-full justify-between
|
|
42
|
+
'flex w-full items-center justify-between',
|
|
31
43
|
'relative z-navbar-topbar',
|
|
32
44
|
'border-b',
|
|
33
45
|
'layout-1280:hidden',
|
|
34
46
|
'safe-topbar',
|
|
35
47
|
]);
|
|
36
|
-
const backdrop = cva([
|
|
48
|
+
const backdrop = cva([
|
|
49
|
+
`
|
|
50
|
+
relative z-navbar-backdrop transition-opacity
|
|
51
|
+
layout-1280:hidden
|
|
52
|
+
`,
|
|
53
|
+
], {
|
|
37
54
|
variants: {
|
|
38
55
|
show: {
|
|
39
|
-
false: '
|
|
56
|
+
false: 'pointer-events-none opacity-0',
|
|
40
57
|
true: 'opacity-100',
|
|
41
58
|
},
|
|
42
59
|
},
|
|
@@ -44,7 +61,7 @@ const backdrop = cva(['z-navbar-backdrop layout-1280:hidden transition-opacity r
|
|
|
44
61
|
export class Navbar {
|
|
45
62
|
_show = false;
|
|
46
63
|
render() {
|
|
47
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: 'e6140399cd45343a3e16a6418539f30a7bc06405' }, h("p-backdrop", { key: '24fc4cdca947a947105591e25fbc6f7682f64ed4', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '0b9691b00c84c4639860f40343316b1d42b53b26', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'b9fff9390b8d735b0ea792cdc289c103aa3aa350', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, h("p-button", { key: 'a13c500530dc614c56f84afa0a761d1d99abacfa', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: 'c8ee2b2c29bd01d741549a3afca9e06636c0cd3b', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: '0824da3fcf5e35ff166e54ce95c917142a4bde94', name: 'company' })), h("div", { key: '0ba905bfbf5f3a23a0f79d560790d91f34040ef7', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '27be57ecd655d89fa8c2576321fc4d10f2008717', name: 'content' })), h("div", { key: '5ed6652b93d0ca2e567a2f611a667b20c15faab6', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, h("slot", { key: 'b8152c3081703b2e88ac25b45e40c767407fd947', name: 'user' }))), h("div", { key: '51bc9f577cc3edb1d676a4740476359625efd6d3', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '22dbff73b42867f98d11a7e4f4319f98f62d37ac', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: '717fb0a04a59f535d0b53dc91457393cadf014dc', name: 'topbar' }))));
|
|
48
65
|
}
|
|
49
66
|
handleCloseNavbar() {
|
|
50
67
|
this._show = false;
|
|
@@ -92,8 +92,8 @@ export const getTableCellSizes = ({ sizes, } /* Table Definition */, variant) =>
|
|
|
92
92
|
export const floatingMenuContainerClass = cva(['sticky self-center'], {
|
|
93
93
|
variants: {
|
|
94
94
|
hasFooter: {
|
|
95
|
-
true: '
|
|
96
|
-
false: 'my-4
|
|
95
|
+
true: 'bottom-11 z-[3] -mb-5 mt-4',
|
|
96
|
+
false: 'bottom-0 my-4',
|
|
97
97
|
},
|
|
98
98
|
active: {
|
|
99
99
|
false: 'pointer-events-none animate-floating-menu-container-out',
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-CySg37XO.js";import{s as t}from"./p-CWO2YJCh.js";export{g as getScreenSize,b as getScreenSizeInPixels,a as getScreenSizeInRem,d as isBetweenScreens,i as isBiggerThanScreen,j as isDesktop,f as isMobile,c as isSmallerThanScreen,h as isTablet,e as isTouchDevice}from"./p-CWO2YJCh.js";export{i as initTheme,o as onStateChange,s as state,a as stateLocaleOptions,b as stateThemeOptions}from"./p-BBiGYjKk.js";export{c as childOf,a as childOfComposed}from"./p-TyZ7uPES.js";export{c as categorized,i as icons}from"./p-CXVK8SLW.js";export{f as formatTranslation,g as getLocaleComponentStrings}from"./p-CwQG70_4.js";export{f as floatingMenuContainerClass,g as getTableCellColumnClasses,a as getTableCellSizes,o as objectGetByPath}from"./p-3RT3BYex.js";export{i as isMobileBrowser}from"./p-DPc49L2n.js";export{c as cn}from"./p-xs4N_Y-0.js";export{P as PAGINATION_DEFAULT_PAGE_SIZE,a as PAGINATION_DEFAULT_PAGE_SIZE_OPTIONS,S as SELECT_DEFAULT_MAX_DISPLAYED_ITEMS,T as TABLE_COLUMN_SIZES}from"./p-CEaB2BT0.js";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,m,p,v,u,x,F={},w={};function E(){return m||(m=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const a=t((l||(l=1,function(e){function a(e,a){return{handler:e,config:a}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),a.withOptions=function(e,a=()=>({})){const t=function(t){return{__options:t,handler:e(t),config:a(t)}};return t.__isOptionsFunction=!0,t.__pluginFunction=e,t.__configFunction=a,t};const t=a}(w)),w));function t(e){return e&&e.__esModule?e:{default:e}}const r=a.default}(F)),F}function C(){if(v)return p;v=1;let e=E();return p=(e.__esModule?e:{default:e}).default}var B,D,O=function(){if(x)return u;x=1;const e=C(),a={position:"relative",paddingBottom:"calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)"},t={position:"absolute",height:"100%",width:"100%",top:"0",right:"0",bottom:"0",left:"0"},r={".aspect-none":{position:"static",paddingBottom:"0"},".aspect-none > *":{position:"static",height:"auto",width:"auto",top:"auto",right:"auto",bottom:"auto",left:"auto"}},s=e((function({addComponents:e,matchComponents:s,theme:n,variants:o,e:i}){const l=n("aspectRatio");if(s)return s({"aspect-w":e=>[{...a,"--tw-aspect-w":e},{"> *":t}],"aspect-h":e=>({"--tw-aspect-h":e})},{values:l}),void e(r);const f=Object.entries(l).map((([e,a])=>"."+i("aspect-w-"+e))).join(",\n"),m=Object.entries(l).map((([e,a])=>`.${i("aspect-w-"+e)} > *`)).join(",\n");e([{[f]:a,[m]:t},r,Object.entries(l).map((([e,a])=>({["."+i("aspect-w-"+e)]:{"--tw-aspect-w":a}}))),Object.entries(l).map((([e,a])=>({["."+i("aspect-h-"+e)]:{"--tw-aspect-h":a}})))],o("aspectRatio"))}),{theme:{aspectRatio:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"}},variants:{aspectRatio:["responsive"]}});return u=s}(),y=n(O),A=n(function(){if(D)return B;D=1;const e=C()((function({addUtilities:e}){e({".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},["responsive"])}));return B=e}()),I=n(C());const Y=({addVariant:e})=>{e("has-hover","@media (hover: hover)"),e("no-hover","@media (hover: none)"),e("hover-never","@media (hover: hover) { &:hover }"),e("group-hover-never","@media (hover: hover) { :merge(.group):hover & }"),e("peer-hover-never","@media (hover: hover) { :merge(.peer):hover & }"),e("hover-always",["@media (hover: hover) { &:hover }","@media (hover: none)"]),e("group-hover-always",["@media (hover: hover) { :merge(.group):hover & }","@media (hover: none)"]),e("peer-hover-always",["@media (hover: hover) { :merge(.peer):hover & }","@media (hover: none)"])},L=({addUtilities:e})=>{e({".m-safe":{marginTop:"env(safe-area-inset-top)",marginRight:"env(safe-area-inset-right)",marginBottom:"env(safe-area-inset-bottom)",marginLeft:"env(safe-area-inset-left)"},".mx-safe":{marginRight:"env(safe-area-inset-right)",marginLeft:"env(safe-area-inset-left)"},".my-safe":{marginTop:"env(safe-area-inset-top)",marginBottom:"env(safe-area-inset-bottom)"},".my-safe-2":{marginTop:"calc(env(safe-area-inset-top)+0.5rem)",marginBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".mt-safe":{marginTop:"env(safe-area-inset-top)"},".mr-safe":{marginRight:"env(safe-area-inset-right)"},".mb-safe":{marginBottom:"env(safe-area-inset-bottom)"},".ml-safe":{marginLeft:"env(safe-area-inset-left)"},".p-safe":{paddingTop:"env(safe-area-inset-top)",paddingRight:"env(safe-area-inset-right)",paddingBottom:"env(safe-area-inset-bottom)",paddingLeft:"env(safe-area-inset-left)"},".px-safe":{paddingRight:"env(safe-area-inset-right)",paddingLeft:"env(safe-area-inset-left)"},".py-safe":{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},".py-safe-2":{paddingTop:"calc(env(safe-area-inset-top)+0.5rem)",paddingBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".pt-safe":{paddingTop:"env(safe-area-inset-top)"},".pr-safe":{paddingRight:"env(safe-area-inset-right)"},".pb-safe":{paddingBottom:"env(safe-area-inset-bottom)"},".pl-safe":{paddingLeft:"env(safe-area-inset-left)"},".min-h-screen":{minHeight:"100vh"},".min-h-screen-safe":{minHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".max-h-screen":{maxHeight:"100vh"},".max-h-screen-safe":{maxHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".h-screen-safe":{height:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".min-w-screen":{minWidth:"100vw"},".min-w-screen-safe":{minWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".max-w-screen":{maxWidth:"100vw"},".max-w-screen-safe":{maxWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".w-screen-safe":{width:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"}})};var _={animation:{"fade-in":"forwards fadeIn .2s ease","fade-out":"forwards fadeOut .2s ease","slide-in-right":"forwards slideInRight .5s ease","slide-in-left":"forwards slideInLeft .5s ease","slide-in-top":"forwards slideInTop .25 ease","slide-in-bottom":"forwards slideInBottom .5s ease","slide-in-right-small":"forwards slideInRightSmall .5s ease","slide-in-left-small":"forwards slideInLeftSmall .5s ease","slide-in-top-small":"forwards slideInTopSmall .5s ease","slide-in-bottom-small":"forwards slideInBottomSmall .5s ease","slide-out-right":"forwards slideOutRight .2s ease","slide-out-left":"forwards slideOutLeft .2s ease","slide-out-top":"forwards slideOutTop .2s ease","slide-out-bottom":"forwards slideOutBottom .5s ease","slide-out-top-small":"forwards slideOutTopSmall .5s ease","slide-out-bottom-small":"forwards slideOutBottomSmall .5s ease","floating-menu-container-out":"forwards floatingMenuContainerOut .5s ease","floating-menu-container-in":"forwards floatingMenuContainerIn .5s ease",wave:"wave .5s ease-in-out -0.5s infinite alternate forwards"},keyframes:{fadeIn:{"0%":{opacity:"0"},"100%":{opacity:"100"}},fadeOut:{"0%":{opacity:"100"},"100%":{opacity:"0"}},slideInRight:{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},slideInLeft:{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},slideInTop:{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},slideInBottom:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},slideInRightSmall:{"0%":{transform:"translateX(20%)"},"100%":{transform:"translateX(0)"}},slideInLeftSmall:{"0%":{transform:"translateX(-20%)"},"100%":{transform:"translateX(0)"}},slideInTopSmall:{"0%":{transform:"translateY(-20%)"},"100%":{transform:"translateY(0)"}},slideInBottomSmall:{"0%":{transform:"translateY(20%)"},"100%":{transform:"translateY(0)"}},slideOutRight:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},slideOutLeft:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},slideOutTop:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},slideOutBottom:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},slideOutTopSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-20%)"}},slideOutBottomSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(20%)"}},floatingMenuContainerOut:{"0%":{display:"flex",transform:"translateY(0)",opacity:"100"},"99%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"none",transform:"translateY(100%)",opacity:"0"}},floatingMenuContainerIn:{"0%":{display:"none",transform:"translateY(100%)",opacity:"0"},"1%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"flex",transform:"translateY(0)",opacity:"100"}},wave:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(-15deg)"}}}};const R={};for(let e=1;e<360;e++)R[""+e]=e+"deg",R["-"+e]=`-${e}deg`;var k={1:["0 1px 1px rgba(0, 2, 2, 0.08)"],2:["0 1px 1px rgba(0, 2, 2, 0.04)","0 2px 2px rgba(0, 2, 2, 0.04)","0 4px 4px rgba(0, 2, 2, 0.04)"],3:["0 1px 1px rgba(0, 2, 2, 0.08)","0 2px 2px rgba(0, 2, 2, 0.08)","0 4px 4px rgba(0, 2, 2, 0.08)"],modal:["0 0 0 1px rgba(0, 2, 2, 0.10)","0 1px 1px 0 rgba(0, 2, 2, 0.20)","0 2px 2px 0 rgba(0, 2, 2, 0.08)","0 4px 4px 0 rgba(0, 2, 2, 0.08)","0 8px 8px 0 rgba(0, 2, 2, 0.08)"],"supportive-lilac":"0px 1px 1px rgba(189, 140, 255, 0.20)","storm-10%":"0px 1px 0px rgba(3, 42, 36, 0.1)","primary-button":"0px 1px 1px 0px rgba(24, 30 41, 0.08)","off-white-600":"0px 0px 0px 1px #ECEAE5",inherit:"inherit",transparent:"transparent"},X={fontSize:{xxs:["0.5rem","1rem"],"3xl":["2rem","2.5rem"],"4xl":["2.5rem","3rem"]},lineHeight:{xs:"1rem",sm:"1.5rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.5rem","4xl":"3rem"}};const M=I((e=>{L(e),Y(e)}),{theme:{colors:{inherit:"inherit",transparent:"transparent",current:"currentColor",black:"#000",white:{800:"#E4E3E3",700:"#F2F2F2",600:"#FAFAFA",500:"#FFFFFF",DEFAULT:"#FFFFFF"},"negative-red":{800:"#8D1010",700:"#931010",500:"#E61E1E",100:"#FFDDDD",50:"#FDEDED",alternative:"#FF5C5C"},"positive-green":{800:"#2F6407",500:"#5CC30E",100:"#D5FBC7",50:"#EAFDE3",alternative:"#62FF5C"},amber:{800:"#944D0B",500:"#E19F23",100:"#FFF6C2",50:"#FFFAE0",alternative:"#FFE75C"},indigo:{900:"#1349B6",800:"#1B58D2",700:"#2F6FF0",600:"#528AFA",500:"#8EB3FB",400:"#A5C2FC",300:"#BBD1FD",200:"#C7D9FD",100:"#E3ECFE",50:"#F1F6FF"},storm:{800:"#020815",700:"#080F1C",600:"#0F1622",500:"#181E29",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},hurricane:{900:"#020815",800:"#181E29",700:"#232934",600:"#2E343E",500:"#363C46",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},"off-white":{800:"#D5D0C3",700:"#DEDBD5",600:"#ECEAE5",500:"#F3F1ED",400:"#F5F4F1",300:"#F8F7F4",200:"#FAF9F8",100:"#FDFCFB",50:"#FEFEFD"}},boxShadow:k,dropShadow:k,extend:{animation:_.animation,keyframes:_.keyframes,fontFamily:{geist:["Geist","serif"],ambit:["Ambit","sans-serif"]},scale:{flip:"-1"},rotate:R,fontSize:X.fontSize,lineHeight:X.lineHeight,zIndex:{"floating-menu":"190",dropdown:"200","navbar-topbar":"280","navbar-backdrop":"290",navbar:"300",tooltip:"400",datepicker:"401",backdrop:"490",drawer:"500","drawer-header":"501",modal:"600",toast:"700"},screens:t,width:{unset:"unset",inherit:"inherit","content-mobile":"100%","content-1280":"62rem","content-1440":"71rem","content-1536":"77rem","content-1680":"83rem","sidebar-desktop-login":"100%","content-desktop-login":"21rem"},height:{unset:"unset",inherit:"inherit"},spacing:{"content-mobile-x":"1rem","content-mobile-y":"1.5rem","content-desktop-x":"2rem","content-desktop-y":"2rem",18:"4.5rem"},aspectRatio:{branding:"23/24"}}},plugins:[y,A,L,Y]}),z=e=>e.replaceAll(/[A-Z]/g,(e=>"_"+e.toLowerCase())),G=e=>e.toLowerCase().replaceAll(/([_-][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_",""))),N=e=>e.replaceAll("-"," "),U=e=>e.replaceAll(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()));export{z as camelToSnakeCase,N as kebabToSpaces,M as paperless,G as snakeToCamelCase,U as titleCase}
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-CySg37XO.js";import{s as t}from"./p-CWO2YJCh.js";export{g as getScreenSize,b as getScreenSizeInPixels,a as getScreenSizeInRem,d as isBetweenScreens,i as isBiggerThanScreen,j as isDesktop,f as isMobile,c as isSmallerThanScreen,h as isTablet,e as isTouchDevice}from"./p-CWO2YJCh.js";export{i as initTheme,o as onStateChange,s as state,a as stateLocaleOptions,b as stateThemeOptions}from"./p-BBiGYjKk.js";export{c as childOf,a as childOfComposed}from"./p-TyZ7uPES.js";export{c as categorized,i as icons}from"./p-CXVK8SLW.js";export{f as formatTranslation,g as getLocaleComponentStrings}from"./p-CwQG70_4.js";export{f as floatingMenuContainerClass,g as getTableCellColumnClasses,a as getTableCellSizes,o as objectGetByPath}from"./p-WEZng7dj.js";export{i as isMobileBrowser}from"./p-DPc49L2n.js";export{c as cn}from"./p-xs4N_Y-0.js";export{P as PAGINATION_DEFAULT_PAGE_SIZE,a as PAGINATION_DEFAULT_PAGE_SIZE_OPTIONS,S as SELECT_DEFAULT_MAX_DISPLAYED_ITEMS,T as TABLE_COLUMN_SIZES}from"./p-CEaB2BT0.js";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,m,p,v,u,x,F={},w={};function E(){return m||(m=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});const a=t((l||(l=1,function(e){function a(e,a){return{handler:e,config:a}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}}),a.withOptions=function(e,a=()=>({})){const t=function(t){return{__options:t,handler:e(t),config:a(t)}};return t.__isOptionsFunction=!0,t.__pluginFunction=e,t.__configFunction=a,t};const t=a}(w)),w));function t(e){return e&&e.__esModule?e:{default:e}}const r=a.default}(F)),F}function C(){if(v)return p;v=1;let e=E();return p=(e.__esModule?e:{default:e}).default}var B,D,O=function(){if(x)return u;x=1;const e=C(),a={position:"relative",paddingBottom:"calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)"},t={position:"absolute",height:"100%",width:"100%",top:"0",right:"0",bottom:"0",left:"0"},r={".aspect-none":{position:"static",paddingBottom:"0"},".aspect-none > *":{position:"static",height:"auto",width:"auto",top:"auto",right:"auto",bottom:"auto",left:"auto"}},s=e((function({addComponents:e,matchComponents:s,theme:n,variants:o,e:i}){const l=n("aspectRatio");if(s)return s({"aspect-w":e=>[{...a,"--tw-aspect-w":e},{"> *":t}],"aspect-h":e=>({"--tw-aspect-h":e})},{values:l}),void e(r);const f=Object.entries(l).map((([e,a])=>"."+i("aspect-w-"+e))).join(",\n"),m=Object.entries(l).map((([e,a])=>`.${i("aspect-w-"+e)} > *`)).join(",\n");e([{[f]:a,[m]:t},r,Object.entries(l).map((([e,a])=>({["."+i("aspect-w-"+e)]:{"--tw-aspect-w":a}}))),Object.entries(l).map((([e,a])=>({["."+i("aspect-h-"+e)]:{"--tw-aspect-h":a}})))],o("aspectRatio"))}),{theme:{aspectRatio:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"}},variants:{aspectRatio:["responsive"]}});return u=s}(),y=n(O),A=n(function(){if(D)return B;D=1;const e=C()((function({addUtilities:e}){e({".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},["responsive"])}));return B=e}()),I=n(C());const Y=({addVariant:e})=>{e("has-hover","@media (hover: hover)"),e("no-hover","@media (hover: none)"),e("hover-never","@media (hover: hover) { &:hover }"),e("group-hover-never","@media (hover: hover) { :merge(.group):hover & }"),e("peer-hover-never","@media (hover: hover) { :merge(.peer):hover & }"),e("hover-always",["@media (hover: hover) { &:hover }","@media (hover: none)"]),e("group-hover-always",["@media (hover: hover) { :merge(.group):hover & }","@media (hover: none)"]),e("peer-hover-always",["@media (hover: hover) { :merge(.peer):hover & }","@media (hover: none)"])},L=({addUtilities:e})=>{e({".m-safe":{marginTop:"env(safe-area-inset-top)",marginRight:"env(safe-area-inset-right)",marginBottom:"env(safe-area-inset-bottom)",marginLeft:"env(safe-area-inset-left)"},".mx-safe":{marginRight:"env(safe-area-inset-right)",marginLeft:"env(safe-area-inset-left)"},".my-safe":{marginTop:"env(safe-area-inset-top)",marginBottom:"env(safe-area-inset-bottom)"},".my-safe-2":{marginTop:"calc(env(safe-area-inset-top)+0.5rem)",marginBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".mt-safe":{marginTop:"env(safe-area-inset-top)"},".mr-safe":{marginRight:"env(safe-area-inset-right)"},".mb-safe":{marginBottom:"env(safe-area-inset-bottom)"},".ml-safe":{marginLeft:"env(safe-area-inset-left)"},".p-safe":{paddingTop:"env(safe-area-inset-top)",paddingRight:"env(safe-area-inset-right)",paddingBottom:"env(safe-area-inset-bottom)",paddingLeft:"env(safe-area-inset-left)"},".px-safe":{paddingRight:"env(safe-area-inset-right)",paddingLeft:"env(safe-area-inset-left)"},".py-safe":{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)"},".py-safe-2":{paddingTop:"calc(env(safe-area-inset-top)+0.5rem)",paddingBottom:"calc(env(safe-area-inset-bottom)+0.5rem)"},".pt-safe":{paddingTop:"env(safe-area-inset-top)"},".pr-safe":{paddingRight:"env(safe-area-inset-right)"},".pb-safe":{paddingBottom:"env(safe-area-inset-bottom)"},".pl-safe":{paddingLeft:"env(safe-area-inset-left)"},".min-h-screen":{minHeight:"100vh"},".min-h-screen-safe":{minHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".max-h-screen":{maxHeight:"100vh"},".max-h-screen-safe":{maxHeight:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".h-screen-safe":{height:"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))"},".min-w-screen":{minWidth:"100vw"},".min-w-screen-safe":{minWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".max-w-screen":{maxWidth:"100vw"},".max-w-screen-safe":{maxWidth:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"},".w-screen-safe":{width:"calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))"}})};var _={animation:{"fade-in":"forwards fadeIn .2s ease","fade-out":"forwards fadeOut .2s ease","slide-in-right":"forwards slideInRight .5s ease","slide-in-left":"forwards slideInLeft .5s ease","slide-in-top":"forwards slideInTop .25 ease","slide-in-bottom":"forwards slideInBottom .5s ease","slide-in-right-small":"forwards slideInRightSmall .5s ease","slide-in-left-small":"forwards slideInLeftSmall .5s ease","slide-in-top-small":"forwards slideInTopSmall .5s ease","slide-in-bottom-small":"forwards slideInBottomSmall .5s ease","slide-out-right":"forwards slideOutRight .2s ease","slide-out-left":"forwards slideOutLeft .2s ease","slide-out-top":"forwards slideOutTop .2s ease","slide-out-bottom":"forwards slideOutBottom .5s ease","slide-out-top-small":"forwards slideOutTopSmall .5s ease","slide-out-bottom-small":"forwards slideOutBottomSmall .5s ease","floating-menu-container-out":"forwards floatingMenuContainerOut .5s ease","floating-menu-container-in":"forwards floatingMenuContainerIn .5s ease",wave:"wave .5s ease-in-out -0.5s infinite alternate forwards"},keyframes:{fadeIn:{"0%":{opacity:"0"},"100%":{opacity:"100"}},fadeOut:{"0%":{opacity:"100"},"100%":{opacity:"0"}},slideInRight:{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0)"}},slideInLeft:{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0)"}},slideInTop:{"0%":{transform:"translateY(-100%)"},"100%":{transform:"translateY(0)"}},slideInBottom:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0)"}},slideInRightSmall:{"0%":{transform:"translateX(20%)"},"100%":{transform:"translateX(0)"}},slideInLeftSmall:{"0%":{transform:"translateX(-20%)"},"100%":{transform:"translateX(0)"}},slideInTopSmall:{"0%":{transform:"translateY(-20%)"},"100%":{transform:"translateY(0)"}},slideInBottomSmall:{"0%":{transform:"translateY(20%)"},"100%":{transform:"translateY(0)"}},slideOutRight:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(100%)"}},slideOutLeft:{"0%":{transform:"translateX(0)"},"100%":{transform:"translateX(-100%)"}},slideOutTop:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-100%)"}},slideOutBottom:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(100%)"}},slideOutTopSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(-20%)"}},slideOutBottomSmall:{"0%":{transform:"translateY(0)"},"100%":{transform:"translateY(20%)"}},floatingMenuContainerOut:{"0%":{display:"flex",transform:"translateY(0)",opacity:"100"},"99%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"none",transform:"translateY(100%)",opacity:"0"}},floatingMenuContainerIn:{"0%":{display:"none",transform:"translateY(100%)",opacity:"0"},"1%":{display:"flex",transform:"translateY(100%)",opacity:"0"},"100%":{display:"flex",transform:"translateY(0)",opacity:"100"}},wave:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(-15deg)"}}}};const R={};for(let e=1;e<360;e++)R[""+e]=e+"deg",R["-"+e]=`-${e}deg`;var k={1:["0 1px 1px rgba(0, 2, 2, 0.08)"],2:["0 1px 1px rgba(0, 2, 2, 0.04)","0 2px 2px rgba(0, 2, 2, 0.04)","0 4px 4px rgba(0, 2, 2, 0.04)"],3:["0 1px 1px rgba(0, 2, 2, 0.08)","0 2px 2px rgba(0, 2, 2, 0.08)","0 4px 4px rgba(0, 2, 2, 0.08)"],modal:["0 0 0 1px rgba(0, 2, 2, 0.10)","0 1px 1px 0 rgba(0, 2, 2, 0.20)","0 2px 2px 0 rgba(0, 2, 2, 0.08)","0 4px 4px 0 rgba(0, 2, 2, 0.08)","0 8px 8px 0 rgba(0, 2, 2, 0.08)"],"supportive-lilac":"0px 1px 1px rgba(189, 140, 255, 0.20)","storm-10%":"0px 1px 0px rgba(3, 42, 36, 0.1)","primary-button":"0px 1px 1px 0px rgba(24, 30 41, 0.08)","off-white-600":"0px 0px 0px 1px #ECEAE5",inherit:"inherit",transparent:"transparent"},X={fontSize:{xxs:["0.5rem","1rem"],"3xl":["2rem","2.5rem"],"4xl":["2.5rem","3rem"]},lineHeight:{xs:"1rem",sm:"1.5rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.5rem","4xl":"3rem"}};const M=I((e=>{L(e),Y(e)}),{theme:{colors:{inherit:"inherit",transparent:"transparent",current:"currentColor",black:"#000",white:{800:"#E4E3E3",700:"#F2F2F2",600:"#FAFAFA",500:"#FFFFFF",DEFAULT:"#FFFFFF"},"negative-red":{800:"#8D1010",700:"#931010",500:"#E61E1E",100:"#FFDDDD",50:"#FDEDED",alternative:"#FF5C5C"},"positive-green":{800:"#2F6407",500:"#5CC30E",100:"#D5FBC7",50:"#EAFDE3",alternative:"#62FF5C"},amber:{800:"#944D0B",500:"#E19F23",100:"#FFF6C2",50:"#FFFAE0",alternative:"#FFE75C"},indigo:{900:"#1349B6",800:"#1B58D2",700:"#2F6FF0",600:"#528AFA",500:"#8EB3FB",400:"#A5C2FC",300:"#BBD1FD",200:"#C7D9FD",100:"#E3ECFE",50:"#F1F6FF"},storm:{800:"#020815",700:"#080F1C",600:"#0F1622",500:"#181E29",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},hurricane:{900:"#020815",800:"#181E29",700:"#232934",600:"#2E343E",500:"#363C46",400:"#464B54",300:"#74787F",200:"#A3A5A9",100:"#D1D2D4",50:"#E8E8EA"},"off-white":{800:"#D5D0C3",700:"#DEDBD5",600:"#ECEAE5",500:"#F3F1ED",400:"#F5F4F1",300:"#F8F7F4",200:"#FAF9F8",100:"#FDFCFB",50:"#FEFEFD"}},boxShadow:k,dropShadow:k,extend:{animation:_.animation,keyframes:_.keyframes,fontFamily:{geist:["Geist","serif"],ambit:["Ambit","sans-serif"]},scale:{flip:"-1"},rotate:R,fontSize:X.fontSize,lineHeight:X.lineHeight,zIndex:{"floating-menu":"190",dropdown:"200","navbar-topbar":"280","navbar-backdrop":"290",navbar:"300",tooltip:"400",datepicker:"401",backdrop:"490",drawer:"500","drawer-header":"501",modal:"600",toast:"700"},screens:t,width:{unset:"unset",inherit:"inherit","content-mobile":"100%","content-1280":"62rem","content-1440":"71rem","content-1536":"77rem","content-1680":"83rem","sidebar-desktop-login":"100%","content-desktop-login":"21rem"},height:{unset:"unset",inherit:"inherit"},spacing:{"content-mobile-x":"1rem","content-mobile-y":"1.5rem","content-desktop-x":"2rem","content-desktop-y":"2rem",18:"4.5rem"},aspectRatio:{branding:"23/24"}}},plugins:[y,A,L,Y]}),z=e=>e.replaceAll(/[A-Z]/g,(e=>"_"+e.toLowerCase())),G=e=>e.toLowerCase().replaceAll(/([_-][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_",""))),N=e=>e.replaceAll("-"," "),W=e=>e.replaceAll(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()));export{z as camelToSnakeCase,N as kebabToSpaces,M as paperless,G as snakeToCamelCase,W as titleCase}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as r,h as a}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{c}from"./p-xs4N_Y-0.js";import{a as n}from"./p-C5CTp9IA.js";import{d as s}from"./p-DLBcQv2y.js";const d=o(["flex items-center justify-center","rounded-xl","cursor-pointer text-sm"],{variants:{variant:{default:"h-6 gap-2",block:"flex-col p-2 text-center"},active:{false:["cursor-pointer","\n text-storm-300\n hover:bg-storm-50 hover:text-storm-500\n ","dark:hover:bg-white/15 dark:hover:text-white"],true:"bg-indigo-600 text-white"},iconOnly:{false:"px-2",true:"w-6"}},compoundVariants:[{variant:"default",active:!1,class:"\n text-storm-500\n dark:text-hurricane-200\n "},{variant:"block",active:!1,class:"\n text-storm-500\n dark:text-white\n "}]}),h=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="default";active=!1;iconOnly=!1;icon;iconFlip;iconRotate;render(){const t="block"===this.variant?a("slot",{name:"description"}):null;return a(i,{key:"fb365ffba7e5d105956b9ffbfa4b3effdeec27b2"},a("div",{key:"54736bcb97a642dc66a9c94451e0b3b6bb18d0d3",class:d({variant:this.variant,active:n(this.active),iconOnly:n(this.iconOnly)})},this.icon&&a("p-icon",{key:"5eca3c0638d613f947e320a0ee89867c6fb468ae",class:c("mb-1",{"text-storm-300 dark:text-hurricane-200":!n(this.active),"text-indigo-200":n(this.active)}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}),"default"===this.variant?a("slot",null):a("div",{class:"flex flex-col items-center"},a("p",{class:c("\n my-0 font-medium\n empty:hidden\n ",{})},a("slot",{name:"title"})),t&&a("p",{class:c("my-0 text-xs font-medium",{"text-storm-300 dark:text-hurricane-200":!n(this.active),"text-indigo-200":n(this.active)})},t))))}static get style(){return"*{box-sizing:border-box}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-1{margin-bottom:.25rem}.block{display:block}.flex{display:flex}.h-6{height:1.5rem}.w-6{width:1.5rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-xl{border-radius:.75rem}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.hover\\:bg-storm-50:hover{--tw-bg-opacity:1;background-color:rgb(232 232 234/var(--tw-bg-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-segment-item",{variant:[1],active:[4],iconOnly:[4,"icon-only"],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"]}]);function m(){"undefined"!=typeof customElements&&["p-segment-item","p-icon"].forEach((e=>{switch(e){case"p-segment-item":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-icon":customElements.get(t(e))||s()}}))}m();export{h as S,m as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as o,c as a,h as i}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as r}from"./p-C5CTp9IA.js";import{d as c}from"./p-B_7CTN-Q.js";import{d as m}from"./p-DLBcQv2y.js";import{d as l}from"./p-CMmvAq1F.js";import{d as p}from"./p-D8faiybE.js";const d=n(["flex w-full max-w-[20rem] flex-col items-center justify-start"],{variants:{enableAction:{true:"cursor-pointer",false:null}}}),h=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.action=a(this,"action",3)}illustration;header;content;enableAction=!0;actionText;actionVariant="secondary";actionIcon;actionIconPosition="start";actionLoading=!1;action;get _el(){return this}render(){const t=!!this._el.querySelector(':scope > [slot="header"]'),e=!!this._el.querySelector(':scope > [slot="content"]'),o=!!this._el.querySelector(':scope > [slot="action"]');return i(s,{key:"580edaeaa7a1429f07840b25d2062f9e6ae9763d"},i("div",{key:"c08807d745ee8f4bebae2d7aec92bf110824269e",class:d({enableAction:r(this.enableAction,!0)}),onClick:t=>this.enableAction&&!this.actionLoading?this.action.emit(t):void 0},this.illustration&&i("p-illustration",{key:"3434e243bb9a41e7f56982fff2450cc92013b25f",class:"mb-8 text-5xl text-indigo-600",variant:this.illustration}),t?i("slot",{name:"header"}):this.header?.length&&i("p",{class:"\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n "},this.header),e?i("slot",{name:"content"}):this.content?.length&&i("p",{class:"\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n "},this.content),this.enableAction&&(o?i("slot",{name:"action"}):i("p-button",{class:"mt-4",icon:this.actionIcon,iconPosition:this.actionIconPosition,loading:this.actionLoading,variant:this.actionVariant},this.actionText))))}static get style(){return'*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mb-8{margin-bottom:2rem}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.max-w-\\[20rem\\]{max-width:20rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-5xl{font-size:3rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}'}},[769,"p-empty-state",{illustration:[1],header:[1],content:[1],enableAction:[4,"enable-action"],actionText:[1,"action-text"],actionVariant:[1,"action-variant"],actionIcon:[1,"action-icon"],actionIconPosition:[1,"action-icon-position"],actionLoading:[4,"action-loading"]}]);function x(){"undefined"!=typeof customElements&&["p-empty-state","p-button","p-icon","p-illustration","p-loader"].forEach((e=>{switch(e){case"p-empty-state":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||c();break;case"p-icon":customElements.get(t(e))||m();break;case"p-illustration":customElements.get(t(e))||l();break;case"p-loader":customElements.get(t(e))||p()}}))}x();export{h as E,x as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{a as i,c as s,o as n,f as h,s as d}from"./p-CeBIrPPx.js";import{c}from"./p-CBWjHURv.js";import{T as p}from"./p-Au2WuEGF.js";const l=c(["inline-block px-2","text-xs","opacity-0 drop-shadow-3 transition-opacity","rounded-lg","z-tooltip","pointer-events-none"],{variants:{variant:{hover:"\n max-w-[14.5rem] bg-storm-500 py-1 text-white\n dark:bg-white dark:text-storm-300\n ",click:"max-w-[18rem]",error:"w-full max-w-full"},strategy:{fixed:"fixed",absolute:"absolute"}},compoundVariants:[{variant:["hover","click"],class:"w-max"},{variant:["click","error"],class:"\n bg-white py-2 text-storm-300\n dark:bg-hurricane-800 dark:text-hurricane-200\n "}]}),b=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=r(this,"isOpen",3)}variant="hover";content;placement;offset=8;strategy="absolute";enableUserInput=!0;show=!1;canManuallyClose=!0;isOpen;get _el(){return this}_hasContentSlot=!1;_loaded=!1;_popover;_cleanup;componentWillLoad(){this._hasContentSlot=!!this._el.querySelector(':scope > [slot="content"]')}componentShouldUpdate(){this._update()}disconnectedCallback(){this._cleanup&&(this._cleanup(),this._cleanup=null)}render(){return o(p,{key:"d6eed2d0ae314f5bc0c956df0360c7c3affe5349","data-filled":this.content?.length>0||this._hasContentSlot},o("slot",{key:"68a50b13f23fbb9ff40b83d6a1f1cbad56a12add",name:"trigger"}),o("div",{key:"6d4726e4663fe88a8758485c55ee003fca9e9c59",class:l({variant:this.variant,strategy:this.strategy}),"data-placement":this.placement,ref:t=>this._load(t),role:"popover"},o("div",{key:"9ded5ee86411c2d35b3ef4b75894740b5a9db814",class:"flex gap-2 whitespace-normal"},"error"===this.variant&&o("div",{key:"fe330950d9662c415e99d1594581c096b5210cd7",class:"\n w-[2px] bg-negative-red-500\n dark:bg-negative-red-alternative\n "}),this.content??o("slot",{key:"9ec941819d62d3fcca4edf9262d704644fb0f294",name:"content"}))))}clickHandler(){"hover"!==this.variant&&this.enableUserInput&&this._popover&&(Object.hasOwn(this._popover.dataset,"show")||this._show())}documentClickHandler(){"hover"!==this.variant&&this.canManuallyClose&&!this.show&&this._popover&&Object.hasOwn(this._popover.dataset,"show")&&this._hide()}mouseEnterHandler(){"hover"===this.variant&&this.enableUserInput&&this._show()}mouseLeaveHandler(){!this.show&&"hover"===this.variant&&this.enableUserInput&&this._hide()}onShowChange(t){if(this._popover)return t&&!Object.hasOwn(this._popover.dataset,"show")?this._show():this._hide()}onContentChange(t){!t||t.length>0||this._hide()}_show(){this._loaded&&(this.content?.length||this._hasContentSlot?(this._cleanup=i(this._el,this._popover,(()=>this._update())),this._popover.dataset.show="",this._popover.classList.remove("opacity-0","pointer-events-none"),this._popover.classList.add("opacity-100","pointer-events-auto"),this.isOpen.emit(!0)):Object.hasOwn(this._popover.dataset,"show")&&this._hide())}_hide(){this._loaded&&(this._cleanup&&(this._cleanup(),this._cleanup=null),delete this._popover.dataset.show,this._popover.classList.remove("opacity-100","pointer-events-auto"),this._popover.classList.add("opacity-0","pointer-events-none"),this.isOpen.emit(!1))}_load(t){this._popover=t,t&&(this._update(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_update(){this._popover&&s(this._el,this._popover,{placement:"error"!==this.variant||this.placement?this.placement??"top":"bottom-start",strategy:this.strategy,middleware:[n(this.offset),h(),d()]}).then((({x:t,y:e,placement:a})=>{this._popover.dataset.placement=a,Object.assign(this._popover.style,{top:`${e}px`,left:`${t}px`})}))}static get watchers(){return{show:[{onShowChange:0}],content:[{onContentChange:0}]}}static get style(){return".relative{position:relative}.h-inherit{height:inherit}.w-inherit{width:inherit}*{box-sizing:border-box}:host{height:inherit;max-width:100%;position:relative;width:inherit}:host([data-filled]){cursor:pointer}:host(:not([data-filled])){cursor:auto}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.z-tooltip{z-index:400}.inline-block{display:inline-block}.flex{display:flex}.w-\\[2px\\]{width:2px}.w-full{width:100%}.w-max{width:max-content}.max-w-\\[14\\.5rem\\]{max-width:14.5rem}.max-w-\\[18rem\\]{max-width:18rem}.max-w-full{max-width:100%}.gap-2{gap:.5rem}.whitespace-normal{white-space:normal}.rounded-lg{border-radius:.5rem}.bg-negative-red-500{--tw-bg-opacity:1;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))}.bg-storm-500{--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-storm-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}"}},[769,"p-tooltip",{variant:[1],content:[1],placement:[1],offset:[2],strategy:[1],enableUserInput:[4,"enable-user-input"],show:[4],canManuallyClose:[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]],{show:[{onShowChange:0}],content:[{onContentChange:0}]}]);function w(){"undefined"!=typeof customElements&&["p-tooltip"].forEach((e=>{"p-tooltip"===e&&(customElements.get(t(e))||customElements.define(t(e),b))}))}w();export{b as T,w as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as r,c as a,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as n}from"./p-C5CTp9IA.js";import{c as d}from"./p-xs4N_Y-0.js";import{n as h}from"./p-D9kEjsvZ.js";import{d as l}from"./p-B_7CTN-Q.js";import{d as c}from"./p-G57Mci8u.js";import{d as p}from"./p-D6iTsl8U.js";import{d as w}from"./p-DLBcQv2y.js";import{d as m}from"./p-D8faiybE.js";import{d as b}from"./p-2yaxaWU2.js";const u=o(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),g=o(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),f=o(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),x=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=a(this,"valueChange",3),this.inputRefChange=a(this,"inputRefChange",7),this.add=a(this,"add",3),this.enter=a(this,"enter",3),this._internals=this.attachInternals()}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return this}_focused=!1;_nonce=h(5);_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus()}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:a,hasLabelSlot:o,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:c}=this._getSlotInfo();return i(s,{key:"d309322e4a2a9e73d7e20cb5e585eba64d3af95f"},i("p-field-container",{key:"85327bdb7a5aa7e071c4024e3d490a6b9759b184",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},o&&i("slot",{key:"4cbdc7b148e94564fc0b986a7780180bd8813d58",name:"label",slot:"label"}),a&&i("slot",{key:"61a1b3cb45df2792fbf51aa6e91d11b10e1b72e6",name:"header",slot:"header"}),h&&i("slot",{key:"d208829c7f4629f7390236d3a8c990d47d91f66b",name:"helper",slot:"helper"}),l&&i("slot",{key:"e4bd3ef86143630c0ebe9fe006aea4b7be2ca10f",name:"error",slot:"error"}),i("div",{key:"ea260caef724543db24f04bb5861ea2a138c1574",class:u({error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||c?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&i("div",{key:"d0e3d37f5fc3e7676cc3bc7f622733504169ddcf",class:f({variant:this.variant,error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?i("p-icon",{class:d("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(c,t),(r||this.icon&&"end"===this.iconPosition)&&i("div",{key:"f479afb28bbd5ba74b78deaa7b9daf1ef543fa27",class:f({variant:this.variant,error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition?i("p-icon",{class:d("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),a=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?i("slot",{name:"prefix"}):this.prefix,h=a?i("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:a,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?i("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?i("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return i("slot",{name:"input"});const r={id:e,class:g({disabled:n(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let a=this.properties??{};return"string"==typeof a&&(a=JSON.parse(this.properties)),"textarea"===this.type?i("textarea",{ref:t=>this._setInputRef(t),...r,...a}):i("input",{ref:t=>this._setInputRef(t),type:this.type,...r,...a})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}static get style(){return"*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}"}},[833,"p-field",{align:[1],variant:[1],id:[1],size:[1],type:[1],properties:[8],prefix:[1],suffix:[1],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],iconPosition:[1,"icon-position"],value:[8],label:[1],loading:[4],placeholder:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],showAddOnEmpty:[516,"show-add-on-empty"],addText:[513,"add-text"],autofocus:[516],error:[513],autoShowError:[516,"auto-show-error"],errorPlacement:[1,"error-placement"],disabled:[516],focused:[516],forceShowTooltip:[516,"force-show-tooltip"],selectAllOnFocus:[516,"select-all-on-focus"],focusMethod:[1,"focus-method"],optionalTemplate:[16],_focused:[32],_nonce:[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[2,"keyup","handleKeyup"],[2,"keydown","handleKeydown"]],{value:[{watchvalue:0}]}]);function v(){"undefined"!=typeof customElements&&["p-field","p-button","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-field":customElements.get(t(e))||customElements.define(t(e),x);break;case"p-button":customElements.get(t(e))||l();break;case"p-field-container":customElements.get(t(e))||c();break;case"p-helper":customElements.get(t(e))||p();break;case"p-icon":customElements.get(t(e))||w();break;case"p-loader":customElements.get(t(e))||m();break;case"p-tooltip":customElements.get(t(e))||b()}}))}v();export{x as F,v as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as a,H as r,h as t}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-Au2WuEGF.js";import{a as o}from"./p-C5CTp9IA.js";const m=i(["min-w-0 flex-1 my-safe-2","z-drawer flex flex-col","\n rounded-2xl bg-white\n dark:border dark:border-solid dark:border-hurricane-400\n dark:bg-hurricane-600\n ","\n w-full\n tablet:w-[22.5rem]\n ","shadow-modal"],{variants:{closing:{false:"animate-slide-in-right",true:"animate-slide-out-right"}}}),n=a(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}closing=!1;render(){return t(d,{key:"bc792e09626c80196369ca43ef43135e6e10132c"},t("div",{key:"e3b242a8cd8ba7034aebaf5bd7de73242d7c4c33",class:m({closing:o(this.closing)})},t("slot",{key:"5e0b9ca40dc6528825b212776d1c4eee7e198f73"})))}static get style(){return".flex{display:flex}.min-h-full{min-height:100%}.w-full{width:100%}.flex-col{flex-direction:column}.px-2{padding-left:.5rem;padding-right:.5rem}*{box-sizing:border-box}:host{align-items:flex-end;display:flex;flex-direction:column;min-height:100%;overflow-x:hidden;padding-left:.5rem;padding-right:.5rem;width:100%}@media (min-width:40rem){:host{margin-left:auto;width:auto}}@media (min-width:40rem){.tablet\\:ml-auto{margin-left:auto}}.static{position:static}.z-drawer{z-index:500}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}@keyframes slideInRight{0%{transform:translateX(100%)}to{transform:translateX(0)}}.animate-slide-in-right{animation:slideInRight .5s ease forwards}@keyframes slideOutRight{0%{transform:translateX(0)}to{transform:translateX(100%)}}.animate-slide-out-right{animation:slideOutRight .2s ease forwards}.rounded-2xl{border-radius:1rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.shadow-modal{--tw-shadow:0 0 0 1px rgba(0,2,2,.1),0 1px 1px 0 rgba(0,2,2,.2),0 2px 2px 0 rgba(0,2,2,.08),0 4px 4px 0 rgba(0,2,2,.08),0 8px 8px 0 rgba(0,2,2,.08);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color),0 1px 1px 0 var(--tw-shadow-color),0 2px 2px 0 var(--tw-shadow-color),0 4px 4px 0 var(--tw-shadow-color),0 8px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.my-safe-2{margin-bottom:calc(env(safe-area-inset-bottom) + .5rem);margin-top:calc(env(safe-area-inset-top) + .5rem)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}@media (min-width:40rem){.tablet\\:w-\\[22\\.5rem\\]{width:22.5rem}}.dark\\:border:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-width:1px}.dark\\:border-solid:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-style:solid}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:border:where([data-theme=dark],[data-theme=dark] *){border-width:1px}.dark\\:border-solid:where([data-theme=dark],[data-theme=dark] *){border-style:solid}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}"}},[769,"p-drawer-container",{closing:[4]}]);function h(){"undefined"!=typeof customElements&&["p-drawer-container"].forEach((a=>{"p-drawer-container"===a&&(customElements.get(e(a))||customElements.define(e(a),n))}))}h();export{n as D,h as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as r,H as e,h as a}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-Au2WuEGF.js";import{a as d}from"./p-C5CTp9IA.js";const h=o(["p-pagination-item","text-sm","h-6 w-6","flex items-center justify-center text-center"],{variants:{variant:{default:"rounded",carousel:"rounded-full border border-solid"},active:{false:null,true:null},hover:{false:null,true:null},disabled:{false:null,true:"cursor-not-allowed"}},compoundVariants:[{variant:"default",active:!1,class:"\n bg-off-white-300 text-storm-400\n dark:bg-hurricane-500 dark:text-hurricane-200\n "},{variant:"default",active:!1,hover:!0,class:"\n cursor-pointer\n hover:bg-off-white-500 hover:text-storm-500\n dark:hover:bg-white/15 dark:hover:text-hurricane-100\n "},{variant:"default",active:!0,class:"\n bg-off-white-700 font-semibold text-storm-500\n dark:bg-hurricane-300 dark:text-white\n "},{variant:"carousel",disabled:!1,class:["border-storm-100 bg-white text-storm-300","dark:border-white/15 dark:bg-white/15 dark:text-hurricane-200"]},{variant:"carousel",disabled:!1,hover:!0,class:["\n cursor-pointer\n hover:bg-white-600 hover:text-storm-500\n active:border-indigo-600 active:bg-white-600 active:ring active:ring-2\n active:ring-indigo-100\n ","dark:hover:bg-white/25 dark:hover:text-white dark:hover:ring-0"]},{variant:"carousel",disabled:!0,class:["border-storm-500/20 bg-white-600 text-storm-100","dark:border-white/5 dark:bg-hurricane-500 dark:text-hurricane-300"]}]}),c=r(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="default";active=!1;hover=!0;disabled=!1;render(){return a(i,{key:"fdbf0f1aec5ae8ab321271a9bdd4fefdeb593e82"},a("div",{key:"5423125b36ec6cc43e765cf3ae6a521173b400db",class:h({variant:this.variant??"default",active:d(this.active),hover:d(this.hover,!0),disabled:d(this.disabled)})},a("slot",{key:"eb0c56fada9cef2fa607b7225bad86afbca7f760"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-6{height:1.5rem}.w-6{width:1.5rem}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-solid{border-style:solid}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.border-storm-500\\/20{border-color:rgba(24,30,41,.2)}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.bg-off-white-700{--tw-bg-opacity:1;background-color:rgb(222 219 213/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.font-semibold{font-weight:600}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.hover\\:bg-off-white-500:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:bg-white-600:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.active\\:border-indigo-600:active{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.active\\:bg-white-600:active{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.active\\:ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.active\\:ring-2:active,.active\\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\\:ring-2:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.active\\:ring-indigo-100:active{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:border-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.05)}.dark\\:bg-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(116 120 127/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/15:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-white\\/25:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)}.dark\\:hover\\:text-hurricane-100:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:ring-0:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:border-white\\/5:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.05)}.dark\\:bg-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(116 120 127/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/15:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:hover\\:bg-white\\/25:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)}.dark\\:hover\\:text-hurricane-100:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:ring-0:hover:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}"}},[769,"p-pagination-pages-item",{variant:[1],active:[4],hover:[4],disabled:[4]}]);function w(){"undefined"!=typeof customElements&&["p-pagination-pages-item"].forEach((r=>{"p-pagination-pages-item"===r&&(customElements.get(t(r))||customElements.define(t(r),c))}))}w();export{c as P,w as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as s,c as i,h as a}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as p}from"./p-Au2WuEGF.js";import{a as n}from"./p-TyZ7uPES.js";import{P as r}from"./p-CEaB2BT0.js";import{f as l,g as h}from"./p-CwQG70_4.js";import{d as c}from"./p-
|
|
1
|
+
import{t as e,p as t,H as s,c as i,h as a}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as p}from"./p-Au2WuEGF.js";import{a as n}from"./p-TyZ7uPES.js";import{P as r}from"./p-CEaB2BT0.js";import{f as l,g as h}from"./p-CwQG70_4.js";import{d as c}from"./p-B_7CTN-Q.js";import{d as m}from"./p-DncIsq-f.js";import{d}from"./p-BtliZ0U_.js";import{d as g}from"./p-BtH8h7p9.js";import{d as u}from"./p-BrLLMmZa.js";import{d as f}from"./p-4DN7zVtS.js";import{d as b}from"./p-G57Mci8u.js";import{d as w}from"./p-D6iTsl8U.js";import{d as y}from"./p-DLBcQv2y.js";import{d as k}from"./p-D8faiybE.js";import{d as C}from"./p-BBAR0LE7.js";import{d as _}from"./p-2yaxaWU2.js";const v=o(["p-pagination","flex items-center gap-2"],{variants:{hidden:{false:"flex",true:"hidden"}}}),E=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pageChange=i(this,"pageChange",3),this.pagesChange=i(this,"pagesChange",3)}_defaultDropdownPageTemplate=e=>l(this._locales.page,{page:e});page=1;pageChange;dropdownPageTemplate=this._defaultDropdownPageTemplate;pageSize=r;hideOnSinglePage=!1;total;pagesChange;_showDropdown=[!1,!1];_dropdowns=[];_locales={};get _el(){return this}_pages=[];_set=[];componentWillLoad(){this._setLocales()}componentWillRender(){this._generate()}render(){return a(p,{key:"f907f831961866c8c54361d1cb24bfc1d6782a91"},a("div",{key:"d23cdee3d91f4fc7fccd64bc13fb0e1c71885cf1",class:v({hidden:this.hideOnSinglePage&&3===this._set?.length})},this._set?.map((e=>"previous"===e.type||"next"===e.type?a("p-pagination-pages-item",{disabled:this._carouselDisabled(e.type),variant:"carousel",onClick:()=>"previous"===e.type?this._previousClick():this._nextClick()},e.value):"ellipsis"===e.type?a("p-dropdown",{applyChevron:!1,insideClick:!0,placement:"top",ref:t=>this._dropdowns[e.dropdownIndex]=t,show:this._showDropdown[e.dropdownIndex],onIsOpen:({detail:t})=>this._onShowDropdown(t,e.dropdownIndex)},a("p-pagination-pages-item",{slot:"trigger"},"..."),e.options?.slice(0,5).map((e=>a("p-dropdown-menu-item",{autoHeight:!0,slot:"items",variant:"pagination",onClick:()=>this._pageClick(e)},this.dropdownPageTemplate?this.dropdownPageTemplate(e):this._defaultDropdownPageTemplate(e)))),e.options?.length>5&&this._showDropdown[e.dropdownIndex]&&a("p-field",{autoFocus:!0,class:"mt-2 w-28",icon:"enter-key",iconPosition:"end",properties:{min:1,max:this._pages.length,step:1},size:"sm",slot:"items",type:"number",onEnter:({detail:e})=>this._enterPress(e)})):a("p-pagination-pages-item",{active:e.value===this.page,onClick:()=>this._pageClick(e.value)},e.value)))))}pageChangeHandler(){this._generate()}async _setLocales(){this._locales=await h(this._el)}documentClickHandler(e){const t=[!1,!1];this._dropdowns[0]&&n(e,this._dropdowns[0])&&(t[0]=!0),this._dropdowns[1]&&n(e,this._dropdowns[1])&&(t[1]=!0),this._showDropdown=t}_generate(){this._pages=this._generatePages(),this._set=this._generateSet(),this.page>this._pages?.length&&this._changePage(this._pages.length)}_changePage(e){e&&(this._showDropdown=[!1,!1],this.page=e,this.pageChange.emit(this.page))}_previousClick(){this._carouselDisabled("previous")||this._changePage(this.page-1)}_nextClick=()=>{this._carouselDisabled("next")||this._changePage(this.page+1)};_carouselDisabled=e=>"next"===e&&this.page+1>this._pages.at(-1)||"previous"===e&&this.page-1<this._pages[0];_pageClick=e=>this._changePage(e);_enterPress(e){"string"==typeof e&&(e=Number.parseInt(e)),Number.isNaN(e)||(e<1&&(e=1),e>this._pages.length&&(e=this._pages.length),this._changePage(e))}_onShowDropdown(e=!1,t){const s=[...this._showDropdown];s[t]=e,this._showDropdown=s}_generatePages(){if(!this.total||!this.pageSize)return[];const e=Math.ceil(this.total/this.pageSize);return this.pagesChange.emit(e),Array.from({length:e}).fill("").map(((e,t)=>t+1))}_generateSet=(e=1,t=!0)=>{const s=this._pages.length;if(!s)return[];let i=this.page-e,o=this.page+e;o>s&&(o=s,i=s-2*e,i=Math.max(i,1)),i<=1&&(i=1,o=Math.min(2*e+1,s));const p=[],n={type:"previous",value:a("p-icon",{rotate:90,size:"sm",variant:"caret"})},r={type:"next",value:a("p-icon",{rotate:-90,size:"sm",variant:"caret"})};if(null===e){const e=this._pages.map((e=>({type:"page",value:e})));return t?[n,...e,r]:e}t&&p.push(n);let l=0;if(i<=3)for(let e=1;e<i;e++)p.push({type:"page",value:this._pages[e-1]});else p.push({type:"page",value:1},{type:"ellipsis",dropdownIndex:l,options:Array.from({length:i-2},((e,t)=>t+2))}),l++;for(let e=i;e<=o;e++)p.push({type:"page",value:this._pages[e-1]});if(o>=s-2)for(let e=o+1;e<=s;e++)p.push({type:"page",value:this._pages[e-1]});else p.push({type:"ellipsis",dropdownIndex:l,options:Array.from({length:s-o-1},((e,t)=>t+o+1))},{type:"page",value:this._pages.at(-1)}),l++;return t&&p.push(r),p};static get watchers(){return{page:[{pageChangeHandler:0}],pageSize:[{pageChangeHandler:0}],total:[{pageChangeHandler:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.w-28{width:7rem}.items-center{align-items:center}.gap-2{gap:.5rem}"}},[513,"p-pagination-pages",{page:[1538],dropdownPageTemplate:[16],pageSize:[2,"page-size"],hideOnSinglePage:[4,"hide-on-single-page"],total:[2],_showDropdown:[32],_dropdowns:[32],_locales:[32]},[[16,"localeChanged","_setLocales"],[6,"click","documentClickHandler"]],{page:[{pageChangeHandler:0}],pageSize:[{pageChangeHandler:0}],total:[{pageChangeHandler:0}]}]);function j(){"undefined"!=typeof customElements&&["p-pagination-pages","p-button","p-checkbox","p-dropdown","p-dropdown-menu-container","p-dropdown-menu-item","p-field","p-field-container","p-helper","p-icon","p-loader","p-pagination-pages-item","p-tooltip"].forEach((t=>{switch(t){case"p-pagination-pages":customElements.get(e(t))||customElements.define(e(t),E);break;case"p-button":customElements.get(e(t))||c();break;case"p-checkbox":customElements.get(e(t))||m();break;case"p-dropdown":customElements.get(e(t))||d();break;case"p-dropdown-menu-container":customElements.get(e(t))||g();break;case"p-dropdown-menu-item":customElements.get(e(t))||u();break;case"p-field":customElements.get(e(t))||f();break;case"p-field-container":customElements.get(e(t))||b();break;case"p-helper":customElements.get(e(t))||w();break;case"p-icon":customElements.get(e(t))||y();break;case"p-loader":customElements.get(e(t))||k();break;case"p-pagination-pages-item":customElements.get(e(t))||C();break;case"p-tooltip":customElements.get(e(t))||_()}}))}j();export{E as P,j as d}
|