@paperless/core 2.12.15 → 2.12.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/build/{p-844af0db.js → p-006ce9e2.js} +1 -1
- package/dist/build/{p-f176e285.entry.js → p-0762dca2.entry.js} +2 -2
- package/dist/build/{p-2c28248e.entry.js → p-13549fce.entry.js} +2 -2
- package/dist/build/{p-598fae40.entry.js → p-168e8d5c.entry.js} +2 -2
- package/dist/{paperless/p-4bf20920.entry.js → build/p-20f0202a.entry.js} +2 -2
- package/dist/build/{p-a95d48a3.entry.js → p-23121a9f.entry.js} +2 -2
- package/dist/build/{p-9fc838be.entry.js → p-250aa3a6.entry.js} +2 -2
- package/dist/build/{p-c6738a74.entry.js → p-4e64a8b0.entry.js} +2 -2
- package/dist/build/p-4f61059d.entry.js +2 -0
- package/dist/build/p-4f61059d.entry.js.map +1 -0
- package/dist/build/{p-8fb06c75.entry.js → p-54ab52ba.entry.js} +2 -2
- package/dist/build/{p-12ceb286.entry.js → p-5fd4c545.entry.js} +2 -2
- package/dist/{paperless/p-a5ee88a9.entry.js → build/p-60ce5cb1.entry.js} +2 -2
- package/dist/build/{p-52cd6c94.entry.js → p-6604ead1.entry.js} +2 -2
- package/dist/build/{p-06a613af.entry.js → p-6b1995b5.entry.js} +2 -2
- package/dist/build/{p-b95d6845.entry.js → p-6bb570c5.entry.js} +2 -2
- package/dist/{paperless/p-d4595315.entry.js → build/p-75cb9a59.entry.js} +2 -2
- package/dist/build/{p-9ccfddf3.entry.js → p-77ea8989.entry.js} +2 -2
- package/dist/build/{p-7cb05993.entry.js → p-7d4ba7b3.entry.js} +2 -2
- package/dist/build/{p-3e5feb89.entry.js → p-80f058e5.entry.js} +2 -2
- package/dist/build/{p-e350dc79.entry.js → p-8dd6fba3.entry.js} +2 -2
- package/dist/{paperless/p-eacbe5ed.entry.js → build/p-95d812ef.entry.js} +2 -2
- package/dist/build/p-b03f7821.entry.js +2 -0
- package/dist/{paperless/p-7300fdce.entry.js → build/p-b2441c2e.entry.js} +2 -2
- package/dist/{paperless/p-62bb5a15.entry.js → build/p-b6db4300.entry.js} +2 -2
- package/dist/build/{p-7625a9fe.entry.js → p-bf24b57e.entry.js} +2 -2
- package/dist/build/{p-621c658d.entry.js → p-bf91728e.entry.js} +2 -2
- package/dist/{paperless/p-6fc33855.entry.js → build/p-bfaf3040.entry.js} +2 -2
- package/dist/build/p-c5ba396d.entry.js +2 -0
- package/dist/build/{p-e044afe0.entry.js.map → p-c5ba396d.entry.js.map} +1 -1
- package/dist/build/{p-d7f2601b.entry.js → p-caf60b01.entry.js} +2 -2
- package/dist/build/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
- package/dist/build/p-e35dde73.entry.js +2 -0
- package/dist/build/p-e35dde73.entry.js.map +1 -0
- package/dist/build/{p-198d3d33.entry.js → p-e8d09f71.entry.js} +2 -2
- package/dist/{paperless/p-630b821d.entry.js → build/p-ee8f4311.entry.js} +2 -2
- package/dist/build/{p-aa03a9b1.entry.js → p-f56afec1.entry.js} +2 -2
- package/dist/{paperless/p-09fbb0bb.entry.js → build/p-ff0dee5d.entry.js} +2 -2
- package/dist/build/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +6 -6
- package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_4.cjs.entry.js +2 -2
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -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-drawer-body.p-drawer-container.p-drawer-header.entry.cjs.js.map +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +4 -4
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -12
- package/dist/cjs/p-field_2.cjs.entry.js +4 -4
- package/dist/cjs/p-helper_2.cjs.entry.js +2 -2
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.cjs.js.map +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -5
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination-pages-item.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination_3.cjs.entry.js +4 -4
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +2 -2
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +5 -5
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.css +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +3 -3
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js.map +1 -1
- package/dist/collection/components/atoms/modal/container/modal-container.component.css +1 -1
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +4 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js.map +1 -1
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- 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 +2 -2
- package/dist/collection/components/atoms/radio/radio.component.js +3 -3
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- 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 +3 -3
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +6 -6
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -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/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +4 -4
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- 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/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +3 -3
- package/dist/collection/components/molecules/select/select.component.js +2 -2
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-BWS61QL4.js → p-1TpRsovb.js} +4 -4
- package/dist/components/{p-BWS61QL4.js.map → p-1TpRsovb.js.map} +1 -1
- package/dist/components/{p-9uCNIhdB.js → p-AW2oGbqj.js} +9 -9
- package/dist/components/{p-9uCNIhdB.js.map → p-AW2oGbqj.js.map} +1 -1
- package/dist/components/{p-Bc76zCz0.js → p-B2dstzDH.js} +4 -4
- package/dist/components/{p-Bc76zCz0.js.map → p-B2dstzDH.js.map} +1 -1
- package/dist/components/{p-20bKL56S.js → p-B9vEqYTq.js} +3 -3
- package/dist/components/{p-20bKL56S.js.map → p-B9vEqYTq.js.map} +1 -1
- package/dist/components/{p-Dz0oFayF.js → p-BcACknwC.js} +3 -3
- package/dist/components/{p-Dz0oFayF.js.map → p-BcACknwC.js.map} +1 -1
- package/dist/components/{p-BUzthIe4.js → p-BgJXDL3C.js} +4 -4
- package/dist/components/{p-BUzthIe4.js.map → p-BgJXDL3C.js.map} +1 -1
- package/dist/components/{p-BLxHSHLQ.js → p-BhGgkUHX.js} +9 -9
- package/dist/components/{p-BLxHSHLQ.js.map → p-BhGgkUHX.js.map} +1 -1
- package/dist/components/{p-CWCxhtvB.js → p-Bo-Xwwck.js} +3 -3
- package/dist/components/{p-CWCxhtvB.js.map → p-Bo-Xwwck.js.map} +1 -1
- package/dist/components/{p-BjTLGpAE.js → p-CAvUntoE.js} +3 -3
- package/dist/components/{p-BjTLGpAE.js.map → p-CAvUntoE.js.map} +1 -1
- package/dist/components/{p-BmKAfzS1.js → p-CIRFeGiK.js} +4 -4
- package/dist/components/{p-BmKAfzS1.js.map → p-CIRFeGiK.js.map} +1 -1
- package/dist/components/{p-BSj-tpQq.js → p-CNltO4r4.js} +3 -3
- package/dist/components/{p-BSj-tpQq.js.map → p-CNltO4r4.js.map} +1 -1
- package/dist/components/{p-eYUo2y4S.js → p-CTnp6dis.js} +3 -3
- package/dist/components/{p-eYUo2y4S.js.map → p-CTnp6dis.js.map} +1 -1
- package/dist/components/{p-Ds7nOoc6.js → p-CxnaGgdE.js} +4 -4
- package/dist/components/{p-Ds7nOoc6.js.map → p-CxnaGgdE.js.map} +1 -1
- package/dist/components/{p-9JVCnNTP.js → p-CxqxhAvr.js} +9 -9
- package/dist/components/{p-9JVCnNTP.js.map → p-CxqxhAvr.js.map} +1 -1
- package/dist/components/{p-CZtgzkyN.js → p-D3_de0mE.js} +5 -5
- package/dist/components/{p-CZtgzkyN.js.map → p-D3_de0mE.js.map} +1 -1
- package/dist/components/{p-BGEnz8kT.js → p-DMEUWkT_.js} +4 -4
- package/dist/components/{p-BGEnz8kT.js.map → p-DMEUWkT_.js.map} +1 -1
- package/dist/components/{p-B45k5qcT.js → p-DfIVofh6.js} +8 -8
- package/dist/components/{p-B45k5qcT.js.map → p-DfIVofh6.js.map} +1 -1
- package/dist/components/{p-DdIXD8-k.js → p-DhG7TpID.js} +4 -4
- package/dist/components/{p-DdIXD8-k.js.map → p-DhG7TpID.js.map} +1 -1
- package/dist/components/{p-DkFi_kvY.js → p-Dm0-xcDY.js} +3 -3
- package/dist/components/{p-DkFi_kvY.js.map → p-Dm0-xcDY.js.map} +1 -1
- package/dist/components/{p-CiEFZmoS.js → p-DsIKgAR0.js} +5 -5
- package/dist/components/{p-CiEFZmoS.js.map → p-DsIKgAR0.js.map} +1 -1
- package/dist/components/{p-x2Yo8WX0.js → p-KJBdEv0f.js} +4 -4
- package/dist/components/{p-x2Yo8WX0.js.map → p-KJBdEv0f.js.map} +1 -1
- package/dist/components/{p-YP9DgWmd.js → p-Sm9opSEV.js} +7 -5
- package/dist/components/p-Sm9opSEV.js.map +1 -0
- package/dist/components/{p-CZNONZKe.js → p-UWDjUTiS.js} +3 -3
- package/dist/components/{p-CZNONZKe.js.map → p-UWDjUTiS.js.map} +1 -1
- package/dist/components/{p-C5FpvsF3.js → p-YCPqEpsQ.js} +5 -5
- package/dist/components/{p-C5FpvsF3.js.map → p-YCPqEpsQ.js.map} +1 -1
- package/dist/components/p-accordion.js +2 -2
- package/dist/components/p-attachment.js +9 -9
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +8 -8
- package/dist/components/{p-DK0zQotI.js → p-dkS0x_Ct.js} +3 -3
- package/dist/components/{p-DK0zQotI.js.map → p-dkS0x_Ct.js.map} +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 +3 -3
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/{p-CLNMMTTp.js → p-dw4ui28s.js} +3 -3
- package/dist/components/{p-CLNMMTTp.js.map → p-dw4ui28s.js.map} +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-CgOTs2ii.js → p-fj2a3CsK.js} +4 -4
- package/dist/components/{p-CgOTs2ii.js.map → p-fj2a3CsK.js.map} +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-listing.js +2 -2
- 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 +4 -4
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +3 -3
- package/dist/components/p-navigation-section.js +2 -2
- 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 +2 -2
- package/dist/components/p-radio.js +3 -3
- 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 +7 -7
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +2 -2
- 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 +18 -18
- package/dist/components/p-toast-container.js +2 -2
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +3 -3
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-75pOVPMC.js → p-u6Gu9isj.js} +6 -6
- package/dist/components/{p-75pOVPMC.js.map → p-u6Gu9isj.js.map} +1 -1
- package/dist/components/{p-BoYFd16u.js → p-z31Hnx0b.js} +6 -6
- package/dist/components/{p-BoYFd16u.js.map → p-z31Hnx0b.js.map} +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +6 -6
- package/dist/esm/p-badge_3.entry.js +3 -3
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_4.entry.js +2 -2
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-drawer-body.p-drawer-container.p-drawer-header.entry.js.map +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +4 -4
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
- package/dist/esm/p-empty-state_8.entry.js +12 -12
- package/dist/esm/p-field_2.entry.js +4 -4
- package/dist/esm/p-helper_2.entry.js +2 -2
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.js.map +1 -1
- package/dist/esm/p-modal-body_4.entry.js +6 -5
- package/dist/esm/p-modal-body_4.entry.js.map +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination-pages-item.entry.js +2 -2
- package/dist/esm/p-pagination_3.entry.js +4 -4
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +2 -2
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +5 -5
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/index.html +1 -1
- package/dist/paperless/{p-f176e285.entry.js → p-0762dca2.entry.js} +2 -2
- package/dist/paperless/{p-2c28248e.entry.js → p-13549fce.entry.js} +2 -2
- package/dist/paperless/{p-598fae40.entry.js → p-168e8d5c.entry.js} +2 -2
- package/dist/{build/p-4bf20920.entry.js → paperless/p-20f0202a.entry.js} +2 -2
- package/dist/paperless/{p-a95d48a3.entry.js → p-23121a9f.entry.js} +2 -2
- package/dist/paperless/{p-9fc838be.entry.js → p-250aa3a6.entry.js} +2 -2
- package/dist/paperless/{p-c6738a74.entry.js → p-4e64a8b0.entry.js} +2 -2
- package/dist/paperless/p-4f61059d.entry.js +2 -0
- package/dist/paperless/p-4f61059d.entry.js.map +1 -0
- package/dist/paperless/{p-8fb06c75.entry.js → p-54ab52ba.entry.js} +2 -2
- package/dist/paperless/{p-12ceb286.entry.js → p-5fd4c545.entry.js} +2 -2
- package/dist/{build/p-a5ee88a9.entry.js → paperless/p-60ce5cb1.entry.js} +2 -2
- package/dist/paperless/{p-52cd6c94.entry.js → p-6604ead1.entry.js} +2 -2
- package/dist/paperless/{p-06a613af.entry.js → p-6b1995b5.entry.js} +2 -2
- package/dist/paperless/{p-b95d6845.entry.js → p-6bb570c5.entry.js} +2 -2
- package/dist/{build/p-d4595315.entry.js → paperless/p-75cb9a59.entry.js} +2 -2
- package/dist/paperless/{p-9ccfddf3.entry.js → p-77ea8989.entry.js} +2 -2
- package/dist/paperless/{p-7cb05993.entry.js → p-7d4ba7b3.entry.js} +2 -2
- package/dist/paperless/{p-3e5feb89.entry.js → p-80f058e5.entry.js} +2 -2
- package/dist/paperless/{p-e350dc79.entry.js → p-8dd6fba3.entry.js} +2 -2
- package/dist/{build/p-eacbe5ed.entry.js → paperless/p-95d812ef.entry.js} +2 -2
- package/dist/paperless/p-b03f7821.entry.js +2 -0
- package/dist/{build/p-7300fdce.entry.js → paperless/p-b2441c2e.entry.js} +2 -2
- package/dist/{build/p-62bb5a15.entry.js → paperless/p-b6db4300.entry.js} +2 -2
- package/dist/paperless/{p-7625a9fe.entry.js → p-bf24b57e.entry.js} +2 -2
- package/dist/paperless/{p-621c658d.entry.js → p-bf91728e.entry.js} +2 -2
- package/dist/{build/p-6fc33855.entry.js → paperless/p-bfaf3040.entry.js} +2 -2
- package/dist/paperless/p-c5ba396d.entry.js +2 -0
- package/dist/paperless/{p-e044afe0.entry.js.map → p-c5ba396d.entry.js.map} +1 -1
- package/dist/paperless/{p-d7f2601b.entry.js → p-caf60b01.entry.js} +2 -2
- package/dist/paperless/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
- package/dist/paperless/p-e35dde73.entry.js +2 -0
- package/dist/paperless/p-e35dde73.entry.js.map +1 -0
- package/dist/paperless/{p-198d3d33.entry.js → p-e8d09f71.entry.js} +2 -2
- package/dist/{build/p-630b821d.entry.js → paperless/p-ee8f4311.entry.js} +2 -2
- package/dist/paperless/{p-aa03a9b1.entry.js → p-f56afec1.entry.js} +2 -2
- package/dist/{build/p-09fbb0bb.entry.js → paperless/p-ff0dee5d.entry.js} +2 -2
- package/dist/paperless/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/package.json +1 -1
- package/dist/build/p-54585b1b.entry.js +0 -2
- package/dist/build/p-54585b1b.entry.js.map +0 -1
- package/dist/build/p-da90df50.entry.js +0 -2
- package/dist/build/p-e044afe0.entry.js +0 -2
- package/dist/build/p-f01e56a4.entry.js +0 -2
- package/dist/build/p-f01e56a4.entry.js.map +0 -1
- package/dist/components/p-YP9DgWmd.js.map +0 -1
- package/dist/paperless/p-54585b1b.entry.js +0 -2
- package/dist/paperless/p-54585b1b.entry.js.map +0 -1
- package/dist/paperless/p-da90df50.entry.js +0 -2
- package/dist/paperless/p-e044afe0.entry.js +0 -2
- package/dist/paperless/p-f01e56a4.entry.js +0 -2
- package/dist/paperless/p-f01e56a4.entry.js.map +0 -1
- /package/dist/build/{p-f176e285.entry.js.map → p-0762dca2.entry.js.map} +0 -0
- /package/dist/build/{p-2c28248e.entry.js.map → p-13549fce.entry.js.map} +0 -0
- /package/dist/build/{p-598fae40.entry.js.map → p-168e8d5c.entry.js.map} +0 -0
- /package/dist/build/{p-4bf20920.entry.js.map → p-20f0202a.entry.js.map} +0 -0
- /package/dist/build/{p-a95d48a3.entry.js.map → p-23121a9f.entry.js.map} +0 -0
- /package/dist/build/{p-9fc838be.entry.js.map → p-250aa3a6.entry.js.map} +0 -0
- /package/dist/build/{p-c6738a74.entry.js.map → p-4e64a8b0.entry.js.map} +0 -0
- /package/dist/build/{p-8fb06c75.entry.js.map → p-54ab52ba.entry.js.map} +0 -0
- /package/dist/build/{p-12ceb286.entry.js.map → p-5fd4c545.entry.js.map} +0 -0
- /package/dist/build/{p-a5ee88a9.entry.js.map → p-60ce5cb1.entry.js.map} +0 -0
- /package/dist/build/{p-52cd6c94.entry.js.map → p-6604ead1.entry.js.map} +0 -0
- /package/dist/build/{p-06a613af.entry.js.map → p-6b1995b5.entry.js.map} +0 -0
- /package/dist/build/{p-b95d6845.entry.js.map → p-6bb570c5.entry.js.map} +0 -0
- /package/dist/build/{p-d4595315.entry.js.map → p-75cb9a59.entry.js.map} +0 -0
- /package/dist/build/{p-9ccfddf3.entry.js.map → p-77ea8989.entry.js.map} +0 -0
- /package/dist/build/{p-7cb05993.entry.js.map → p-7d4ba7b3.entry.js.map} +0 -0
- /package/dist/build/{p-3e5feb89.entry.js.map → p-80f058e5.entry.js.map} +0 -0
- /package/dist/build/{p-e350dc79.entry.js.map → p-8dd6fba3.entry.js.map} +0 -0
- /package/dist/build/{p-eacbe5ed.entry.js.map → p-95d812ef.entry.js.map} +0 -0
- /package/dist/build/{p-da90df50.entry.js.map → p-b03f7821.entry.js.map} +0 -0
- /package/dist/build/{p-7300fdce.entry.js.map → p-b2441c2e.entry.js.map} +0 -0
- /package/dist/build/{p-62bb5a15.entry.js.map → p-b6db4300.entry.js.map} +0 -0
- /package/dist/build/{p-7625a9fe.entry.js.map → p-bf24b57e.entry.js.map} +0 -0
- /package/dist/build/{p-621c658d.entry.js.map → p-bf91728e.entry.js.map} +0 -0
- /package/dist/build/{p-6fc33855.entry.js.map → p-bfaf3040.entry.js.map} +0 -0
- /package/dist/build/{p-d7f2601b.entry.js.map → p-caf60b01.entry.js.map} +0 -0
- /package/dist/build/{p-198d3d33.entry.js.map → p-e8d09f71.entry.js.map} +0 -0
- /package/dist/build/{p-630b821d.entry.js.map → p-ee8f4311.entry.js.map} +0 -0
- /package/dist/build/{p-aa03a9b1.entry.js.map → p-f56afec1.entry.js.map} +0 -0
- /package/dist/build/{p-09fbb0bb.entry.js.map → p-ff0dee5d.entry.js.map} +0 -0
- /package/dist/paperless/{p-f176e285.entry.js.map → p-0762dca2.entry.js.map} +0 -0
- /package/dist/paperless/{p-2c28248e.entry.js.map → p-13549fce.entry.js.map} +0 -0
- /package/dist/paperless/{p-598fae40.entry.js.map → p-168e8d5c.entry.js.map} +0 -0
- /package/dist/paperless/{p-4bf20920.entry.js.map → p-20f0202a.entry.js.map} +0 -0
- /package/dist/paperless/{p-a95d48a3.entry.js.map → p-23121a9f.entry.js.map} +0 -0
- /package/dist/paperless/{p-9fc838be.entry.js.map → p-250aa3a6.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6738a74.entry.js.map → p-4e64a8b0.entry.js.map} +0 -0
- /package/dist/paperless/{p-8fb06c75.entry.js.map → p-54ab52ba.entry.js.map} +0 -0
- /package/dist/paperless/{p-12ceb286.entry.js.map → p-5fd4c545.entry.js.map} +0 -0
- /package/dist/paperless/{p-a5ee88a9.entry.js.map → p-60ce5cb1.entry.js.map} +0 -0
- /package/dist/paperless/{p-52cd6c94.entry.js.map → p-6604ead1.entry.js.map} +0 -0
- /package/dist/paperless/{p-06a613af.entry.js.map → p-6b1995b5.entry.js.map} +0 -0
- /package/dist/paperless/{p-b95d6845.entry.js.map → p-6bb570c5.entry.js.map} +0 -0
- /package/dist/paperless/{p-d4595315.entry.js.map → p-75cb9a59.entry.js.map} +0 -0
- /package/dist/paperless/{p-9ccfddf3.entry.js.map → p-77ea8989.entry.js.map} +0 -0
- /package/dist/paperless/{p-7cb05993.entry.js.map → p-7d4ba7b3.entry.js.map} +0 -0
- /package/dist/paperless/{p-3e5feb89.entry.js.map → p-80f058e5.entry.js.map} +0 -0
- /package/dist/paperless/{p-e350dc79.entry.js.map → p-8dd6fba3.entry.js.map} +0 -0
- /package/dist/paperless/{p-eacbe5ed.entry.js.map → p-95d812ef.entry.js.map} +0 -0
- /package/dist/paperless/{p-da90df50.entry.js.map → p-b03f7821.entry.js.map} +0 -0
- /package/dist/paperless/{p-7300fdce.entry.js.map → p-b2441c2e.entry.js.map} +0 -0
- /package/dist/paperless/{p-62bb5a15.entry.js.map → p-b6db4300.entry.js.map} +0 -0
- /package/dist/paperless/{p-7625a9fe.entry.js.map → p-bf24b57e.entry.js.map} +0 -0
- /package/dist/paperless/{p-621c658d.entry.js.map → p-bf91728e.entry.js.map} +0 -0
- /package/dist/paperless/{p-6fc33855.entry.js.map → p-bfaf3040.entry.js.map} +0 -0
- /package/dist/paperless/{p-d7f2601b.entry.js.map → p-caf60b01.entry.js.map} +0 -0
- /package/dist/paperless/{p-198d3d33.entry.js.map → p-e8d09f71.entry.js.map} +0 -0
- /package/dist/paperless/{p-630b821d.entry.js.map → p-ee8f4311.entry.js.map} +0 -0
- /package/dist/paperless/{p-aa03a9b1.entry.js.map → p-f56afec1.entry.js.map} +0 -0
- /package/dist/paperless/{p-09fbb0bb.entry.js.map → p-ff0dee5d.entry.js.map} +0 -0
|
@@ -27,10 +27,10 @@ export class Accordion {
|
|
|
27
27
|
*/
|
|
28
28
|
isOpen;
|
|
29
29
|
render() {
|
|
30
|
-
return (h(ThemedHost, { key: '
|
|
30
|
+
return (h(ThemedHost, { key: '12fbff336768433948b9d384528d595808295fb9' }, h("div", { key: 'd49e477d32da230a91eda03f8d4ba2e56bf3daed', class: cn('flex cursor-pointer items-center gap-2', {
|
|
31
31
|
'text-storm-500 dark:text-white': this.variant === 'primary',
|
|
32
32
|
'text-storm-300 dark:text-hurricane-200': this.variant === 'secondary',
|
|
33
|
-
}), onClick: () => this._onClick() }, h("p-icon", { key: '
|
|
33
|
+
}), onClick: () => this._onClick() }, h("p-icon", { key: '145e3327d49ae7b660175ca886b2248aba1c8054', class: 'flex shrink-0', variant: 'caret', rotate: this.open ? 0 : -90 }), h("p", { key: 'ac26cc99a24c03c9dba432f737616bcfcab7b313', class: 'my-0 shrink-0 whitespace-nowrap text-base font-medium' }, this.header), h("p-divider", { key: 'f99a5a61e0f1d8d06e4adcd1fad6860607162185', class: 'flex-1' })), this.open && (h("div", { key: '1ea4d6ab9fb6991971c460b452b7d95a19f56b36', class: 'mt-4' }, h("slot", { key: 'f126b1599886ccc3a6db40c15a2c8874bc62b012' })))));
|
|
34
34
|
}
|
|
35
35
|
_onClick() {
|
|
36
36
|
if (!this.closeable && this.open) {
|
|
@@ -95,21 +95,21 @@ export class Attachment {
|
|
|
95
95
|
_fileRef;
|
|
96
96
|
_cameraFileRef;
|
|
97
97
|
render() {
|
|
98
|
-
let prefix = (h("p-icon", { key: '
|
|
98
|
+
let prefix = (h("p-icon", { key: 'be618d8484432870e28ebc0cb053644364f6a428', class: 'text-storm-300', variant: 'attachment' }));
|
|
99
99
|
if (this.error) {
|
|
100
|
-
prefix = (h("p-icon", { key: '
|
|
100
|
+
prefix = (h("p-icon", { key: 'd937e55a4039f62d6dc0b7975197e6951b5b9a4d', variant: 'warning', class: 'text-negative-red-500' }));
|
|
101
101
|
}
|
|
102
102
|
// const isMobileDevice = isMobile();
|
|
103
103
|
const isMobileDevice = isTablet();
|
|
104
104
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
105
|
-
return (h(Fragment, { key: '
|
|
105
|
+
return (h(Fragment, { key: 'ae4592f8c9586b0322cdea7b15667900d0a5a2b0' }, h("p-field-container", { key: '5ceb544db8a82a57ec10d002e448ea9f8e726032', variant: 'write', label: this.label, helper: this.helper, error: this.error, required: this.required, forceShowTooltip: !!this.error?.length }, h("div", { key: '2f37933fa6d1a930ddb07e5ceb716ec04cbff2e1', slot: 'content', class: 'flex w-full items-start gap-2' }, h("div", { key: 'f116650d2975cea68050315fcfc25776c1f2e1f7', class: attachment({
|
|
106
106
|
click: this.mode === 'write' && !this.value?.length,
|
|
107
107
|
error: !!this.error?.length,
|
|
108
|
-
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '
|
|
108
|
+
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '0ec0b9971d7ba20cf682a60816307787503da946', class: cn(baseText, 'peer empty:hidden dark:text-white') }, this.value), h("span", { key: '2b754f7101e71e4fb3466806beedd3bd230f8740', class: cn(baseText, 'hidden peer-empty:block') }, this.placeholder)), h("p-tooltip", { key: 'd5079acda601bee27379f4607ef23232ff744f9f', class: 'w-8', content: this.mode === 'read'
|
|
109
109
|
? this.downloadTooltip
|
|
110
110
|
: this.value?.length
|
|
111
111
|
? this.deleteTooltip
|
|
112
|
-
: this.uploadTooltip }, h("p-button", { key: '
|
|
112
|
+
: this.uploadTooltip }, h("p-button", { key: 'dd17172a5e921a11517bfbbd0eec2ad49afbc4cf', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: this.mode === 'read'
|
|
113
113
|
? 'download'
|
|
114
114
|
: this.value?.length
|
|
115
115
|
? 'trash'
|
|
@@ -120,7 +120,7 @@ export class Attachment {
|
|
|
120
120
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
121
121
|
this.mode === 'write' &&
|
|
122
122
|
isMobileDevice &&
|
|
123
|
-
!this.value?.length && (h("p-tooltip", { key: '
|
|
123
|
+
!this.value?.length && (h("p-tooltip", { key: '66e1a9bae5041f09d626073a4bcbfad55ef3c2af', content: this.cameraTooltip, class: 'w-8 desktop-xs:hidden' }, h("p-button", { key: '7b9f10d744bb26885fdaaaba3d66be83228053ad', slot: 'trigger', variant: 'secondary', iconOnly: true, icon: 'camera', onOnClick: () => this._cameraClick() }))))), h("input", { key: '1b36e1332831dfc11fba2c1d0f1b46e9bbf7584e', class: 'hidden', type: 'file', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, ref: el => (this._fileRef = el), onChange: ev => this._onFileChange(ev) }), h("input", { key: 'cb4d507633be0ed55ba5f135952b049aa347efe0', class: 'hidden', type: 'file', accept: 'image/*', capture: 'true', ref: el => (this._cameraFileRef = el), onChange: ev => this._onFileChange(ev) })));
|
|
124
124
|
}
|
|
125
125
|
_uploadClick() {
|
|
126
126
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -12,7 +12,7 @@ export class ButtonGroup {
|
|
|
12
12
|
this._checkButtons();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'a1da21729b15d719031ff57ea9fb4b7b51c18bfb', class: 'flex items-center' }, h("slot", { key: 'a797445c7c70a66a75a6946423419b49625aa5e4' })));
|
|
16
16
|
}
|
|
17
17
|
slotchange() {
|
|
18
18
|
this._checkButtons();
|
|
@@ -182,7 +182,7 @@ export class Calendar {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
render() {
|
|
185
|
-
return (h(ThemedHost, { key: '
|
|
185
|
+
return (h(ThemedHost, { key: '096ab769bc6d1df1481f412ab64047d75682aced' }, h("div", { key: '48f95e63542d93fb5ba7ca6c276280adca0d9e87', class: calendar({ variant: this.variant }) }, this._getView())));
|
|
186
186
|
}
|
|
187
187
|
_checkTodayButton() {
|
|
188
188
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -47,9 +47,9 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '3082a3d1c0416b593e3a3d158d9eb076113f042f', class: 'p-content-slider' }, h("div", { key: '48e1f7e9e22fc71775354a47b960055ea050635e', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
51
51
|
height: `${this._outerHeight}px`,
|
|
52
|
-
}, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: '
|
|
52
|
+
}, ref: el => (this._sliderRef = el), onMouseDown: e => this._mouseDownHandler(e), onTouchStart: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e) }, h("div", { key: 'e1a0dcc1c1ef51c96549ad06f446290c8a927766', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'a291e9568a8c1bfd1a717b2c7a1acaaa65801abe', onSlotchange: () => this._slotChange() }))), h("div", { key: '5092b037cf36ced7b7a49cbc38aebe62028ba841', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("div", { class: cn('block h-2 w-2 rounded-full', {
|
|
53
53
|
'bg-indigo-600': i === this._visibleIndex,
|
|
54
54
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
55
55
|
}) })))))));
|
|
@@ -41,7 +41,7 @@ export class Cropper {
|
|
|
41
41
|
const themeColor = state.theme === 'dark'
|
|
42
42
|
? 'rgba(70, 75, 84, 0.5)'
|
|
43
43
|
: 'rgba(255, 255, 255, 0.5)';
|
|
44
|
-
return (h(ThemedHost, { key: '
|
|
44
|
+
return (h(ThemedHost, { key: '8de79414d99c04fce4f0c7b640bed695e4cc5853' }, this._loaded && (h("cropper-canvas", { key: '1180efdfdae579c524e03c6d5318d98a8882554f', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200', onAction: () => this._onAction() }, h("cropper-image", { key: '27f2096a8780043674bfcedbc80124d7a7616874', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '9f8680d14c514aded609bf4b3fc15ca2f958fc32', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: '101c1b6e1856da2900416d169820cc24d4ac03d6', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '17db2d8220c79692a96adee92c73f2e11b6a5f46', action: 'move', plain: true }))), h("p-range", { key: 'e29991c21cb4034b4fcc47c4bbf7b8f6a1e1567d', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
45
45
|
}
|
|
46
46
|
_setImageRef(ref) {
|
|
47
47
|
if (this._imageRef) {
|
|
@@ -204,7 +204,7 @@ export class Datepicker {
|
|
|
204
204
|
this.parseValue(this.value);
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
|
-
return (h("p-dropdown", { key: '
|
|
207
|
+
return (h("p-dropdown", { key: '4400ed720e3b79d14c9c0f7a778ebad8594bc600', allowOverflow: true, strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '667d56425f4a91e036345ec4a960bd56f437e775', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, autoShowError: false, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '6741f5b236b64eddd4a8e6cc35532cb310590722', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value &&
|
|
208
208
|
format(this._value, 'yyyy-MM-dd', {
|
|
209
209
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
210
210
|
}), min: this.minDate &&
|
|
@@ -213,7 +213,7 @@ export class Datepicker {
|
|
|
213
213
|
}), max: this.maxDate &&
|
|
214
214
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
215
215
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
216
|
-
}) })), h("div", { key: '
|
|
216
|
+
}) })), h("div", { key: '21bb536f91293aeb7bf9575bb4eb357bf89d0b1d', slot: 'items' }, h("p-calendar", { key: 'db5798f487ba8a1cdaf1826f30dcc36a9d292fb8', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, enableToday: this.enableToday, todayText: this.todayText, mode: this.mode }))));
|
|
217
217
|
}
|
|
218
218
|
documentClickHandler({ target }) {
|
|
219
219
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -115,11 +115,11 @@ export class Dropdown {
|
|
|
115
115
|
this._checkItems();
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: '9e793781c686849fbb772f61204aa04b997a5140', class: 'relative' }, h("div", { key: 'f282f409c2a302995f294bb7ba09d9dbaae56631', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '3f8a29f23d515c923a32273a79ecca589f9b094c', name: 'trigger' })), h("div", { key: '9401e7ce9b0683b1431ac3a39b6d6cc5c94f1236', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '21d44fc86648a7e8b027ce5b7730ce0f56d1b790', variant: this.variant, maxWidth: this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, class: dropdownContainerClass({
|
|
119
119
|
strategy: this.strategy,
|
|
120
120
|
maxWidth: this.applyMaxWidth,
|
|
121
121
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
122
|
-
}), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: '
|
|
122
|
+
}), ref: el => this._load(el), onClick: () => this._containerClickHandler(), role: 'popover', "data-placement": this.placement, "data-strategy": this.strategy }, h("slot", { key: '66b5da85c37a9b91fc5aaabed34c6b4731bb358a', name: 'items' })))));
|
|
123
123
|
}
|
|
124
124
|
_checkButtons(active = false) {
|
|
125
125
|
if (!this.applyChevron) {
|
|
@@ -59,11 +59,11 @@ export class EmptyState {
|
|
|
59
59
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
60
60
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
61
61
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
62
|
-
return (h(ThemedHost, { key: '
|
|
62
|
+
return (h(ThemedHost, { key: 'a7178e18d2a830fa44b73825c8abf2940b29c40a' }, h("div", { key: 'dfde89ed956be692bd107ae2084422f35cb2991c', class: emptyState({
|
|
63
63
|
enableAction: asBoolean(this.enableAction, true),
|
|
64
64
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
65
65
|
? this.action.emit(ev)
|
|
66
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
66
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '36f836019e28b73d1694b7268e24959ec90b1d3c', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-storm-500 dark:text-white' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm font-normal text-storm-300 dark:text-hurricane-200' }, this.content))), this.enableAction &&
|
|
67
67
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "p-empty-state"; }
|
|
@@ -325,8 +325,8 @@ export class Field {
|
|
|
325
325
|
}
|
|
326
326
|
render() {
|
|
327
327
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
328
|
-
return (h(ThemedHost, { key: '
|
|
329
|
-
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '
|
|
328
|
+
return (h(ThemedHost, { key: 'dafed84a3cebd3183f9e7750201e23c8a35e12b1' }, h("p-field-container", { key: '4bdd13136ac2f1761d5fa286f5c488a4e9763716', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
329
|
+
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label, align: this.align, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '66d128a4ffaa837b19125cfed07914706fad9306', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '70dad7a55744308710a39bbac389288903a05b14', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'b282396971c47f0f56e195f34c845267ed31b9a2', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '3d128969d9706b12e405fa685bb6f1be4d5eada9', name: 'error', slot: 'error' })), h("div", { key: '7a7377358c3f5e09381990acfd9a4393419885f5', class: field({
|
|
330
330
|
error: !!this.error?.length,
|
|
331
331
|
disabled: asBoolean(this.disabled),
|
|
332
332
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -337,7 +337,7 @@ export class Field {
|
|
|
337
337
|
? `${this.value}`
|
|
338
338
|
: undefined, slot: 'content' }, (this.error?.length ||
|
|
339
339
|
prefix ||
|
|
340
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
340
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: 'f70ce94cc37be4edc3dcec1cbc072f2398779e91', class: prefixAndSuffix({
|
|
341
341
|
variant: this.variant,
|
|
342
342
|
error: !!this.error?.length,
|
|
343
343
|
disabled: asBoolean(this.disabled),
|
|
@@ -347,7 +347,7 @@ export class Field {
|
|
|
347
347
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
348
348
|
this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
349
349
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
350
|
-
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
350
|
+
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: 'd87ff3eafbf692f0276e597ed0e9cacfb5d89235', class: prefixAndSuffix({
|
|
351
351
|
variant: this.variant,
|
|
352
352
|
error: !!this.error?.length,
|
|
353
353
|
disabled: asBoolean(this.disabled),
|
|
@@ -69,14 +69,14 @@ export class Label {
|
|
|
69
69
|
*/
|
|
70
70
|
keepMobileContent = false;
|
|
71
71
|
render() {
|
|
72
|
-
return (h(ThemedHost, { key: '
|
|
72
|
+
return (h(ThemedHost, { key: '81d0988d1395a9689894b923f703afc1b846e0d3' }, h("div", { key: 'a34233e4ef34f3a2709ca28715a967ae3466e4c2', class: label({
|
|
73
73
|
variant: this.variant,
|
|
74
74
|
iconOnly: this.iconOnly,
|
|
75
75
|
keepMobileContent: this.keepMobileContent,
|
|
76
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
76
|
+
}) }, this.icon && (h("p-icon", { key: '65babdbf6313700725a485b078e4b66938f0cf07', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: 'de6cc8e7b553cfbf318018defd3c2e7b6a3d32bc', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
|
|
77
77
|
hidden: !this.keepMobileContent,
|
|
78
78
|
'desktop-xs:block': !this.keepMobileContent,
|
|
79
|
-
}) }, h("slot", { key: '
|
|
79
|
+
}) }, h("slot", { key: '4982a62ed0b0178252315c543cad09ccc6a659c4' }))))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "p-label"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,13 +76,13 @@ export class NavigationItem {
|
|
|
76
76
|
render() {
|
|
77
77
|
const TagType = this.as;
|
|
78
78
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
79
|
-
return (h(ThemedHost, { key: '
|
|
79
|
+
return (h(ThemedHost, { key: '2d29f70e6ec2ba062b2ce4f2757f705cfad3ae12', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '04332bd09399e88de1e58218c7de4e56357d0836', class: navigationItem({
|
|
80
80
|
icon: !!this.icon,
|
|
81
81
|
active,
|
|
82
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
82
|
+
}), href: this.href, target: this.target }, h("div", { key: '9c054d73cdbc086f385899cec281cd8b5cae4d5a', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '1d06647840b67887bbb43eb6dbc632fd79a1aca2', variant: this.icon })), h("span", { key: 'a83535b05b7635bf4a5401ce27591fc98829ffc1', class: cn({
|
|
83
83
|
'has-counter': !!this.counter,
|
|
84
84
|
'w-full': this.applyFullWidth,
|
|
85
|
-
}) }, h("slot", { key: '
|
|
85
|
+
}) }, h("slot", { key: '5863363e5a23002347e28729d5919a8705b862e9' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '82b0eedf127b7b01237cff0833764c09ed612089' }, this.counter)), !!this.loading && h("p-loader", { key: 'd91a386bc9f56c02f06588a55af808a5a6888e59', class: 'ml-auto' }))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "p-navigation-item"; }
|
|
88
88
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -6,7 +6,7 @@ export class NavigationSection {
|
|
|
6
6
|
*/
|
|
7
7
|
header;
|
|
8
8
|
render() {
|
|
9
|
-
return (h(ThemedHost, { key: '
|
|
9
|
+
return (h(ThemedHost, { key: '002ed7acb41410e679f8a58eb22a3abc8b558156', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: 'c2cb70e21a2b546f90cb7e7562798e33f7b57563' }, this.header)), h("div", { key: '30c52779d5d2c810a0c088efa6d023b433d63095', class: 'flex flex-col' }, h("slot", { key: 'a757faba94597f2476c2a1166c10170c4ed2d6c1' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-navigation-section"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class PaginationPages {
|
|
|
40
40
|
this._generate();
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(ThemedHost, { key: '
|
|
43
|
+
return (h(ThemedHost, { key: 'fac924cdf7545478c541427ebe8d888e19a01598' }, h("div", { key: '924356249ec8d6ba2ec4d215f122ce3d5f605a17', class: pagination({
|
|
44
44
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
45
45
|
}) }, this._set?.map(p => {
|
|
46
46
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -61,12 +61,12 @@ export class Pagination {
|
|
|
61
61
|
_hasPaginationPages = true;
|
|
62
62
|
render() {
|
|
63
63
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: 'a559316eebf880454bea768eba343b67de16b5e7' }, h("div", { key: 'fbabe3134439dc52c661751a79039aecbbebe659', class: pagination({
|
|
65
65
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
66
66
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
67
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
67
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '2c862ee1c1c8ca70a26d040146f0da65d01d714a' }, h("p-pagination-size", { key: '1990fe2b9cbdc90846aacadbf4b73658c7a3064b', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
68
68
|
this.hideOnSinglePage &&
|
|
69
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
69
|
+
this._hasPaginationPages && (h("p-divider", { key: '17b9ef49c977fa90555dd98b0697ef9e056aeb3e', variant: 'vertical', class: 'mx-0 h-4 text-off-white-700 dark:text-hurricane-400' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '3b06eace9b53c2901e93d35c88ae41b6a04cb7ec', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
70
70
|
this._hasPaginationPages = detail > 1;
|
|
71
71
|
this.pagesChange.emit(detail);
|
|
72
72
|
} })))));
|
|
@@ -28,7 +28,7 @@ export class Profile {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const content = this._getContent();
|
|
31
|
-
return (h(ThemedHost, { key: '
|
|
31
|
+
return (h(ThemedHost, { key: '9856f8b723b8c4e764ae8176ad16d1dc2241b934' }, this._hasDropdownSlot ? (h("p-dropdown", { strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
32
32
|
}
|
|
33
33
|
slotchange() {
|
|
34
34
|
this._checkDropdownSlot();
|
|
@@ -23,13 +23,13 @@ export class Range {
|
|
|
23
23
|
valueChange;
|
|
24
24
|
render() {
|
|
25
25
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
return (h(ThemedHost, { key: 'c937c22c26281de6e233d8cf8ab0cb13af1973b2' }, h("div", { key: '0eed98812f468dff396750ca4d1a804de945c8b3', class: 'flex w-inherit items-center gap-2 text-storm-300 dark:text-hurricane-200' }, h("p-icon", { key: '1e71cf8f4866f97dd1f3985e45d489e2ed6f4f0c', variant: 'minus' }), h("div", { key: '558f3fc8d5fd578e3510aab6c617a4a69ff9d19f', class: 'relative h-6 flex-1' }, h("input", { key: 'f61117e1cf805b58a274873c4bb062e827fd1ef2', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => {
|
|
27
27
|
const value = ev.target.value;
|
|
28
28
|
this.value = parseFloat(value);
|
|
29
29
|
this.valueChange.emit(value);
|
|
30
|
-
} }), h("div", { key: '
|
|
30
|
+
} }), h("div", { key: '8c247df11ce56689438e3edf381972b95360f7cf', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-indigo-600', style: {
|
|
31
31
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
32
|
-
} })), h("p-icon", { key: '
|
|
32
|
+
} })), h("p-icon", { key: '10738ff8b64a0d3c0d354c166c80175876a1195b', variant: 'plus' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-range"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -321,8 +321,8 @@ export class Select {
|
|
|
321
321
|
if (this.error?.length) {
|
|
322
322
|
buttonIcon = 'warning';
|
|
323
323
|
}
|
|
324
|
-
return (h(ThemedHost, { key: '
|
|
325
|
-
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, h("div", { key: '
|
|
324
|
+
return (h(ThemedHost, { key: 'c4ede01413b6ecc94698220e38612b7ee86cf4a2' }, h("p-field-container", { key: '8380ad89a6c1001832978455054c7d450306fea5', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, showOptional: this.showOptional, error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown }, h("p-dropdown", { key: 'd91a5985868814e2e24ee5cc912f87ea056f20d1', applyFullWidth: true, applyMaxWidth: false, slot: 'content', insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, "disable-trigger-click": this.disabled, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), strategy: this.strategy }, h("p-button", { key: '0c68ef89ac2239a56144a284151112a57a02dc22', slot: 'trigger', class: 'w-full', variant: 'secondary', size: this.size, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, active: this._showDropdown, error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
|
|
325
|
+
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, h("div", { key: '0c7ae720d59661f750f3b3f79cba40fe36a7de64', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
|
|
326
326
|
}
|
|
327
327
|
documentClickHandler(event) {
|
|
328
328
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -83,7 +83,7 @@ export class TableCell {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h(ThemedHost, { key: '
|
|
86
|
+
return (h(ThemedHost, { key: 'cd757cfb2a27c50feef5127165eb99b071238872', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false && (h(Fragment, { key: 'cee33b8580e78e39d2567b92696d4b38ebfa5c56' }, h("div", { key: '5d519c083da98149208c0e88ae7c9fd21c848e04', class: 'text-storm-300 text-storm-400 text-storm-500 dark:text-hurricane-200 dark:text-white' }), h("div", { key: 'f296e7adc1229b338d92a5d18eafba5f208b41ca', class: 'justify-start justify-end justify-center' }), h("div", { key: 'fd5854b0f3a24d482dbedca031e2184418bac4b4', class: 'font-semibold text-storm-300 text-storm-400 text-storm-500' }), h("div", { key: 'c780b3ac8c5a6c8c2b0f92d07537aed9358f447b', class: 'w-12/12 w-1/12 w-10/12 w-11/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12' }), h("div", { key: '1ff079d3a61e419fca39119ad254415332546e71', class: 'tablet:w-12/12 tablet:w-1/12 tablet:w-10/12 tablet:w-11/12 tablet:w-2/12 tablet:w-3/12 tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12 tablet:w-9/12' }), h("div", { key: 'cd2fb0523fdcd1d9c26a60dc6fd808d46e8b7957', class: 'desktop-xs:w-12/12 desktop-xs:w-1/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12' }), h("div", { key: '7bb766b68ebb4b1fdeb79de0e01b9fd005e89965', class: 'desktop-xs:w-12/12 desktop-xs:w-1/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12' }), h("div", { key: 'a0b9a56086e2ae818d72fbafbf1b097bc73aed3e', class: 'desktop-sm:w-12/12 desktop-sm:w-1/12 desktop-sm:w-10/12 desktop-sm:w-11/12 desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12 desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12' }), h("div", { key: '9425fce4acd1a1a3c0bad85f7d172125baa09d63', class: 'desktop:w-12/12 desktop:w-1/12 desktop:w-10/12 desktop:w-11/12 desktop:w-2/12 desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12 desktop:w-7/12 desktop:w-8/12 desktop:w-9/12' }), h("div", { key: '7f599e6c359e1e1b8ce09153b1c13babba424a13', class: 'desktop-lg:w-12/12 desktop-lg:w-1/12 desktop-lg:w-10/12 desktop-lg:w-11/12 desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12 desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12' }), h("div", { key: 'c67bd330cc055edb416f0a6cc01b188a73c58462', class: 'desktop-xl:w-12/12 desktop-xl:w-1/12 desktop-xl:w-10/12 desktop-xl:w-11/12 desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12 desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12' }), h("div", { key: '166b82949ef1713f4eee23068bfde63b0bb0dff9', class: 'flex hidden group-hover:flex group-hover:hidden' }), h("div", { key: 'ad04aa8cf128d4fda3581907ba147f9f9d64df29', class: 'tablet:flex tablet:hidden tablet:group-hover:flex tablet:group-hover:hidden' }), h("div", { key: '96fca39ba7eae1c4b6d7f7a83ff5148784263d8d', class: 'desktop-xs:flex desktop-xs:hidden desktop-xs:group-hover:flex desktop-xs:group-hover:hidden' }), h("div", { key: '5f27fef437cc2ebc965b235e3e731f324c85590b', class: 'desktop-sm:flex desktop-sm:hidden desktop-sm:group-hover:flex desktop-sm:group-hover:hidden' }), h("div", { key: '7b21f8a5056168a3906deb2d5b3bc7906715ad21', class: 'desktop:flex desktop:hidden desktop:group-hover:flex desktop:group-hover:hidden' }), h("div", { key: 'dd58cfc8bcc768ef574279ef43b2b20c368fab20', class: 'desktop-lg:flex desktop-lg:hidden desktop-lg:group-hover:flex desktop-lg:group-hover:hidden' }), h("div", { key: 'bf54fbdf8d971df872dd93f3499f7a0f20288711', class: 'desktop-xl:flex desktop-xl:hidden desktop-xl:group-hover:flex desktop-xl:group-hover:hidden' }), h("div", { key: 'e828635f2281c78e535781fc777bc32f5b6834f9', class: 'pr-0 pr-4 last-of-type:pr-0' }), h("div", { key: 'c9b0ea3df3103dca2c5a7cbaf9bf35f4160dfc19', class: 'tablet:pr-0 tablet:pr-4' }), h("div", { key: '55314977008960b068314740a686301700c589e2', class: 'desktop-xs:pr-0 desktop-xs:pr-4' }), h("div", { key: '2c5f60ccdd95eeea93165a3d06eb2b0cb07c8e0b', class: 'desktop-sm:pr-0 desktop-sm:pr-4' }), h("div", { key: '91e704406f68cfd88523055a197b0506360f8c9a', class: 'desktop:pr-0 desktop:pr-4' }), h("div", { key: '01f44080a5cae4940dcbf1fb1af538f2ca035da8', class: 'desktop-lg:pr-0 desktop-lg:pr-4' }), h("div", { key: '3419c371f9df3e6c5c7fa2ae4e1d1e9278169124', class: 'desktop-xl:pr-0 desktop-xl:pr-4' })))));
|
|
87
87
|
}
|
|
88
88
|
_getContent() {
|
|
89
89
|
if (this.variant === 'loading') {
|
|
@@ -92,11 +92,11 @@ export class TableFooter {
|
|
|
92
92
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 100);
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (h(ThemedHost, { key: '
|
|
95
|
+
return (h(ThemedHost, { key: '40a461aa422e9fa9355b3c80dd2a587921757c97' }, h("div", { key: 'aaaf82bf2a2dee5d27f2347fed248c879e8fd630', class: footer({
|
|
96
96
|
pinned: this._isPinned,
|
|
97
97
|
hidden: this._hidden,
|
|
98
98
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
99
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
99
|
+
this.total > 0 && (h("p-pagination", { key: '258b98819e5f8737463af4336bf820f427b0acf4', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total, onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) })))));
|
|
100
100
|
}
|
|
101
101
|
_changePageSize(s) {
|
|
102
102
|
if (!s) {
|
|
@@ -88,13 +88,13 @@ export class TableRow {
|
|
|
88
88
|
*/
|
|
89
89
|
isLast = false;
|
|
90
90
|
render() {
|
|
91
|
-
return (h(ThemedHost, { key: '
|
|
91
|
+
return (h(ThemedHost, { key: '57cefd78545981975ff160405e54a614c52b2d10' }, h("div", { key: '752a97669376b1503b44ee3d53eb6a70fa22dabe', class: 'flex flex-col' }, h("div", { key: 'd764d107929e299979d1c859ae0a6ab571bd1561', class: row({
|
|
92
92
|
variant: this.variant,
|
|
93
93
|
enableHover: this.enableHover,
|
|
94
94
|
checked: this.checked,
|
|
95
|
-
}) }, h("div", { key: '
|
|
95
|
+
}) }, h("div", { key: '1d695cfc2826074c699f948869f648b165b2d617', class: content({
|
|
96
96
|
variant: this.variant,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, h("slot", { key: '6195e8107e31ade2831f9bd53408ab03a12ee651' }), h("div", { key: 'fc8b47883f833b5e04fbf59ed1670fe6bca72102', class: actions() }, h("slot", { key: '00574d5c478f7bd740bef1a159a26071e25ffef7', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: '7b408d711e1e08ab375587d474cfaebd89043276' })))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "p-table-row"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class Toast {
|
|
|
49
49
|
*/
|
|
50
50
|
action;
|
|
51
51
|
render() {
|
|
52
|
-
return (h(ThemedHost, { key: '
|
|
52
|
+
return (h(ThemedHost, { key: 'd0cacbaaf93bfb9f98061e16892ad1c9331f98e0' }, h("div", { key: '74cb104d0c07fbdbf47f8884737af64fc4e78faf', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2 dark:border-hurricane-800 dark:bg-hurricane-800', onClick: () => this._onClick() }, h("div", { key: '92dbc67246e8cea086e66598a966b424c1783380', class: indicator({ variant: this.variant }) }), h("div", { key: 'c556f645622a403241fd30501b6e584659a1c28f', class: content() }, h("div", { key: '9d71be40edbbececfe7b2bf07fcf12e4dd2d0775', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '7c397d10916c460a72cc5ffb62d2db6551af00d5', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500 dark:text-white' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '7018743c217932aa4fb988511d482d8bf9b7b745', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300 dark:text-hurricane-200' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("div", { key: 'a960ca7bb2e3530ce977536f0e6d7137bdd6ac70', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500 hover:text-white dark:text-hurricane-200' }, h("p-icon", { key: 'daf1bf85797180442d76fe75c261e21ddc4d15da', variant: this.actionIcon, flip: this.actionIconFlip, rotate: this.actionIconRotate })))))));
|
|
53
53
|
}
|
|
54
54
|
_onClick() {
|
|
55
55
|
if (this.enableAction) {
|
|
@@ -18,10 +18,10 @@ export class Listing {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'fa1711147b6dad9acbbd5b5a5fb798299e22bf2a', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
22
22
|
'opacity-100': this._generatedOnce,
|
|
23
23
|
'opacity-0': !this._generatedOnce,
|
|
24
|
-
}) }, h("slot", { key: '
|
|
24
|
+
}) }, h("slot", { key: '8e3b03479567559ba00e7839e7f9555d142f520c', onSlotchange: () => this._generateLinesOnce() })));
|
|
25
25
|
}
|
|
26
26
|
_generateLinesOnce() {
|
|
27
27
|
if (this._generateTimeout) {
|
|
@@ -44,7 +44,7 @@ const backdrop = cva(['z-navbar-backdrop layout-1280:hidden transition-opacity r
|
|
|
44
44
|
export class Navbar {
|
|
45
45
|
_show = false;
|
|
46
46
|
render() {
|
|
47
|
-
return (h(ThemedHost, { key: '
|
|
47
|
+
return (h(ThemedHost, { key: 'f18236b1eecebb2364756c2ec45dd5547e5c2b8a' }, h("p-backdrop", { key: 'd6c6c3c6913c64801c3210b3f9356a7d2f88f685', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '26fa33772a4437faaec4d5bbce86f5fcf5e06f1d', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'c41a829e518a972b4c7030fb0500a1501fa3835b', class: 'flex w-full items-center justify-end layout-1280:hidden' }, h("p-button", { key: 'ee1d0e561764ddbf58797ca8ea6ca08bb726aa6d', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, onClick: () => (this._show = false) })), h("div", { key: '531559e69a4158a2271be6d63ab7537f866f8eaf', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: '97b8397a519af90da71aa53ec90ffad88a723657', name: 'company' })), h("div", { key: '4c526a339ac703505b3dd2ac8a4959e3b4bc47ee', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '6047b39501d08754bcb7264142cf713297cf9e01', name: 'content' })), h("div", { key: '18cbd646cbefb9031e74f712afdc7075d8aec953', class: 'mt-auto hidden w-full flex-shrink-0 flex-col layout-1280:flex' }, h("slot", { key: '15cbd9e622dbda0c2e09e2353143ffd164a41cfc', name: 'user' }))), h("div", { key: 'f54474e0a0b298dd986be0b6e74c9fb0cff05945', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'a9cb10403323860b08a5131d928d19f9fdfb6afa', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', onClick: () => (this._show = true) }), h("slot", { key: 'ccfaa956eb493047a8ce2f0c3a1c89d62e47a0c3', name: 'topbar' }))));
|
|
48
48
|
}
|
|
49
49
|
handleCloseNavbar() {
|
|
50
50
|
this._show = false;
|
|
@@ -4,10 +4,10 @@ import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj
|
|
|
4
4
|
import { c as cn } from './p-CT54OXR2.js';
|
|
5
5
|
import { a as asBoolean } from './p-C5CTp9IA.js';
|
|
6
6
|
import { T as ThemedHost } from './p-7QA93RrV.js';
|
|
7
|
-
import { d as defineCustomElement$4 } from './p-
|
|
7
|
+
import { d as defineCustomElement$4 } from './p-CAvUntoE.js';
|
|
8
8
|
import { d as defineCustomElement$3 } from './p-BHphGfv6.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './p-BFbLqg3-.js';
|
|
10
|
-
import { d as defineCustomElement$1 } from './p-
|
|
10
|
+
import { d as defineCustomElement$1 } from './p-BgJXDL3C.js';
|
|
11
11
|
|
|
12
12
|
const fieldContainerComponentCss = "*{box-sizing:border-box}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-shrink-0{flex-shrink:0!important}.cursor-auto{cursor:auto!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.font-normal{font-weight:400!important}.text-storm-200{--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.text-storm-500{color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.text-storm-500,.text-white{--tw-text-opacity:1!important}.text-white{color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.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}}.empty\\:hidden:empty{display:none!important}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}";
|
|
13
13
|
|
|
@@ -210,6 +210,6 @@ function defineCustomElement() {
|
|
|
210
210
|
defineCustomElement();
|
|
211
211
|
|
|
212
212
|
export { FieldContainer as F, defineCustomElement as d };
|
|
213
|
-
//# sourceMappingURL=p-
|
|
213
|
+
//# sourceMappingURL=p-1TpRsovb.js.map
|
|
214
214
|
|
|
215
|
-
//# sourceMappingURL=p-
|
|
215
|
+
//# sourceMappingURL=p-1TpRsovb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-BWS61QL4.js","mappings":";;;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,2lGAA2lG;;ACoB9nG,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,EAAE,EAAE,IAAI;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;A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ecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tcn,\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { ThemedHost } from '../../../../internal/themed-host.component';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * Align content to the start or end\n\t */\n\t@Prop() align: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * Wether to show optional when not required\n\t */\n\t@Prop({ reflect: true }) showOptional: boolean = true;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tslot='trigger'\n\t\t\t\tname='content'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<ThemedHost>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id}\n\t\t\t\t\tclass={cn('flex w-inherit flex-col gap-1', {\n\t\t\t\t\t\t'cursor-auto': this.variant === 'read',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={cn('flex items-end justify-between gap-1 empty:hidden', {\n\t\t\t\t\t\t\t'flex-row-reverse': this.align === 'end',\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{(!!label?.length || !!helper?.length) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='flex min-w-0 gap-2'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class='min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200'>\n\t\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\tclass='flex flex-shrink-0'\n\t\t\t\t\t\t\t\t\t\tplacement='top'\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{((!asBoolean(this.required) && asBoolean(this.showOptional)) ||\n\t\t\t\t\t\t\thasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!asBoolean(this.required) &&\n\t\t\t\t\t\t\t\t\tasBoolean(this.showOptional) &&\n\t\t\t\t\t\t\t\t\tthis.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-storm-200 dark:text-hurricane-300'>\n\t\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass={cn({\n\t\t\t\t\t\t\t'w-full': this.variant === 'write' || this.loading,\n\t\t\t\t\t\t\t'ml-auto': this.align === 'end',\n\t\t\t\t\t\t\t'font-normal': this.variant === 'read',\n\t\t\t\t\t\t\t'text-storm-500 dark:text-white': this.variant === 'read',\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={\n\t\t\t\t\t\t\terrorAndErrorIsNotBoolean &&\n\t\t\t\t\t\t\tasBoolean(this.forceShowTooltip, false)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{contentSlot}\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</label>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-1TpRsovb.js","mappings":";;;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,2lGAA2lG;;ACoB9nG,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,EAAE,EAAE,IAAI;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AAED,QAAA;AACC,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,KAAA;AACD,CAAA,CAAC;MASW,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;;;;;;;AAClB,IAAA,wBAAwB,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,CAAC;AACxE,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAC1E,QAAA,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC;QAExE,MAAM,MAAM,GAAG,aAAa,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM;QACnE,MAAM,KAAK,GAAG,YAAY,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK;QAE/D,MAAM,yBAAyB,GAC9B,YAAY;AACZ,aAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;QAExE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tcn,\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { ThemedHost } from '../../../../internal/themed-host.component';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * Align content to the start or end\n\t */\n\t@Prop() align: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * Wether to show optional when not required\n\t */\n\t@Prop({ reflect: true }) showOptional: boolean = true;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tslot='trigger'\n\t\t\t\tname='content'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<ThemedHost>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id}\n\t\t\t\t\tclass={cn('flex w-inherit flex-col gap-1', {\n\t\t\t\t\t\t'cursor-auto': this.variant === 'read',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={cn('flex items-end justify-between gap-1 empty:hidden', {\n\t\t\t\t\t\t\t'flex-row-reverse': this.align === 'end',\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{(!!label?.length || !!helper?.length) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='flex min-w-0 gap-2'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class='min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200'>\n\t\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\tclass='flex flex-shrink-0'\n\t\t\t\t\t\t\t\t\t\tplacement='top'\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{((!asBoolean(this.required) && asBoolean(this.showOptional)) ||\n\t\t\t\t\t\t\thasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!asBoolean(this.required) &&\n\t\t\t\t\t\t\t\t\tasBoolean(this.showOptional) &&\n\t\t\t\t\t\t\t\t\tthis.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-storm-200 dark:text-hurricane-300'>\n\t\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass={cn({\n\t\t\t\t\t\t\t'w-full': this.variant === 'write' || this.loading,\n\t\t\t\t\t\t\t'ml-auto': this.align === 'end',\n\t\t\t\t\t\t\t'font-normal': this.variant === 'read',\n\t\t\t\t\t\t\t'text-storm-500 dark:text-white': this.variant === 'read',\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={\n\t\t\t\t\t\t\terrorAndErrorIsNotBoolean &&\n\t\t\t\t\t\t\tasBoolean(this.forceShowTooltip, false)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{contentSlot}\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</label>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
|