@paperless/core 2.0.1-beta.151 → 2.0.1-beta.152
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/{paperless/p-c879f50c.entry.js → build/p-0103e9ac.entry.js} +2 -2
- package/dist/build/{p-0740b690.entry.js → p-133e9259.entry.js} +2 -2
- package/dist/build/{p-71666551.entry.js → p-213bc400.entry.js} +2 -2
- package/dist/build/{p-e33a56c8.entry.js → p-219db898.entry.js} +2 -2
- package/dist/build/{p-cc3307b8.entry.js → p-2da67519.entry.js} +2 -2
- package/dist/build/{p-8981247d.entry.js → p-302eedc6.entry.js} +2 -2
- package/dist/build/p-32f997e7.entry.js +2 -0
- package/dist/build/p-3322c57a.js +2 -0
- package/dist/build/p-3f02cbe4.entry.js +2 -0
- package/dist/build/p-3f02cbe4.entry.js.map +1 -0
- package/dist/{paperless/p-add932d6.entry.js → build/p-4fb1f39b.entry.js} +2 -2
- package/dist/{paperless/p-5048c4c2.entry.js → build/p-50a816b0.entry.js} +2 -2
- package/dist/{paperless/p-8fcf3bb8.entry.js → build/p-7b7c60de.entry.js} +2 -2
- package/dist/build/{p-e2054751.entry.js → p-9e4cbacf.entry.js} +2 -2
- package/dist/build/p-ad3595e3.entry.js +3 -0
- package/dist/build/p-ad3595e3.entry.js.map +1 -0
- package/dist/build/p-b137cbd4.entry.js +2 -0
- package/dist/build/{p-d6828011.entry.js → p-bb7a5be7.entry.js} +2 -2
- package/dist/build/{p-2edd87f3.entry.js → p-c3558fb4.entry.js} +2 -2
- package/dist/build/{p-26a3990a.entry.js → p-c892b87a.entry.js} +2 -2
- package/dist/build/p-cropper.entry.esm.js.map +1 -1
- package/dist/build/{p-fa0234e9.entry.js → p-dc5fab19.entry.js} +2 -2
- package/dist/{paperless/p-0875bbbb.entry.js → build/p-e596d429.entry.js} +2 -2
- package/dist/build/{p-d4152f66.entry.js → p-fa78c45a.entry.js} +2 -2
- package/dist/build/p-range.entry.esm.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BDuPp9vl.js +4 -0
- package/dist/cjs/loader.cjs.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-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 +3 -3
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +6 -19
- package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-cropper.entry.cjs.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-empty-state_9.cjs.entry.js +8 -8
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +4 -4
- package/dist/cjs/p-portal.cjs.entry.js +1 -1
- package/dist/cjs/p-range.cjs.entry.js +44 -0
- package/dist/cjs/p-range.cjs.entry.js.map +1 -0
- package/dist/cjs/p-range.entry.cjs.js.map +1 -0
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/helpers/portal/portal.component.js +1 -1
- 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.css +1 -0
- package/dist/collection/components/{deprecated/molecules → molecules}/cropper/cropper.component.js +8 -41
- package/dist/collection/components/molecules/cropper/cropper.component.js.map +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- 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/range/range.component.css +1 -0
- package/dist/collection/components/molecules/range/range.component.js +144 -0
- package/dist/collection/components/molecules/range/range.component.js.map +1 -0
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- 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--NCbtXAT.js +69 -0
- package/dist/components/p--NCbtXAT.js.map +1 -0
- package/dist/components/{p-D07Uh9cR.js → p-6G9LqZu0.js} +3 -3
- package/dist/components/{p-D07Uh9cR.js.map → p-6G9LqZu0.js.map} +1 -1
- package/dist/components/{p-CU2NvmYF.js → p-B60b7s3F.js} +9 -9
- package/dist/components/{p-CU2NvmYF.js.map → p-B60b7s3F.js.map} +1 -1
- package/dist/components/{p-DQE2U_Lj.js → p-BPFWBp7T.js} +9 -9
- package/dist/components/{p-DQE2U_Lj.js.map → p-BPFWBp7T.js.map} +1 -1
- package/dist/components/{p-DfRQHBer.js → p-BuB74H5T.js} +3 -3
- package/dist/components/{p-DfRQHBer.js.map → p-BuB74H5T.js.map} +1 -1
- package/dist/components/{p-Du_Am2CT.js → p-C0ZWBE1t.js} +6 -6
- package/dist/components/{p-Du_Am2CT.js.map → p-C0ZWBE1t.js.map} +1 -1
- package/dist/components/{p-FA9hEJhK.js → p-C4qAvszO.js} +4 -4
- package/dist/components/{p-FA9hEJhK.js.map → p-C4qAvszO.js.map} +1 -1
- package/dist/components/{p-Dh_4gXYW.js → p-C6mKH4oI.js} +3 -3
- package/dist/components/{p-Dh_4gXYW.js.map → p-C6mKH4oI.js.map} +1 -1
- package/dist/components/{p-jSbWZMTW.js → p-CJPrTM14.js} +3 -3
- package/dist/components/{p-jSbWZMTW.js.map → p-CJPrTM14.js.map} +1 -1
- package/dist/components/{p-C7SA9Zu6.js → p-COcP6KwP.js} +5 -5
- package/dist/components/{p-C7SA9Zu6.js.map → p-COcP6KwP.js.map} +1 -1
- package/dist/components/{p-DnE_NWa3.js → p-CSK_X0tW.js} +9 -9
- package/dist/components/{p-DnE_NWa3.js.map → p-CSK_X0tW.js.map} +1 -1
- package/dist/components/{p-5BV5XA3F.js → p-CdJmhxHE.js} +5 -5
- package/dist/components/{p-5BV5XA3F.js.map → p-CdJmhxHE.js.map} +1 -1
- package/dist/components/{p-Bs_oUMiX.js → p-QH6YwDKn.js} +4 -4
- package/dist/components/{p-Bs_oUMiX.js.map → p-QH6YwDKn.js.map} +1 -1
- package/dist/components/{p-v8w9H3NB.js → p-S7p7V6sq.js} +4 -4
- package/dist/components/{p-v8w9H3NB.js.map → p-S7p7V6sq.js.map} +1 -1
- package/dist/components/p-accordion.js +2 -2
- package/dist/components/p-attachment.js +10 -10
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/{p-DqpPnj1P.js → p-c2_LHyBE.js} +3 -3
- package/dist/components/{p-DqpPnj1P.js.map → p-c2_LHyBE.js.map} +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-cropper.js +15 -23
- package/dist/components/p-cropper.js.map +1 -1
- package/dist/components/p-datepicker.js +9 -9
- 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-helper.js +1 -1
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-listing.js +2 -2
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.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-portal.js +1 -1
- package/dist/components/p-profile.js +2 -2
- package/dist/components/p-range.d.ts +11 -0
- package/dist/components/p-range.js +9 -0
- package/dist/components/p-range.js.map +1 -0
- package/dist/components/p-select.js +7 -7
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +14 -14
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-B1sC2mve.js → p-z7y5Yxgj.js} +7 -7
- package/dist/components/{p-B1sC2mve.js.map → p-z7y5Yxgj.js.map} +1 -1
- package/dist/esm/index-DhGo7hbh.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +6 -6
- 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 +3 -3
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +6 -19
- package/dist/esm/p-cropper.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-empty-state_9.entry.js +8 -8
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +4 -4
- package/dist/esm/p-portal.entry.js +1 -1
- package/dist/esm/p-range.entry.js +42 -0
- package/dist/esm/p-range.entry.js.map +1 -0
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/{build/p-c879f50c.entry.js → paperless/p-0103e9ac.entry.js} +2 -2
- package/dist/paperless/{p-0740b690.entry.js → p-133e9259.entry.js} +2 -2
- package/dist/paperless/{p-71666551.entry.js → p-213bc400.entry.js} +2 -2
- package/dist/paperless/{p-e33a56c8.entry.js → p-219db898.entry.js} +2 -2
- package/dist/paperless/{p-cc3307b8.entry.js → p-2da67519.entry.js} +2 -2
- package/dist/paperless/{p-8981247d.entry.js → p-302eedc6.entry.js} +2 -2
- package/dist/paperless/p-32f997e7.entry.js +2 -0
- package/dist/paperless/p-3f02cbe4.entry.js +2 -0
- package/dist/paperless/p-3f02cbe4.entry.js.map +1 -0
- package/dist/{build/p-add932d6.entry.js → paperless/p-4fb1f39b.entry.js} +2 -2
- package/dist/{build/p-5048c4c2.entry.js → paperless/p-50a816b0.entry.js} +2 -2
- package/dist/{build/p-8fcf3bb8.entry.js → paperless/p-7b7c60de.entry.js} +2 -2
- package/dist/paperless/{p-e2054751.entry.js → p-9e4cbacf.entry.js} +2 -2
- package/dist/paperless/p-ad3595e3.entry.js +3 -0
- package/dist/paperless/p-ad3595e3.entry.js.map +1 -0
- package/dist/paperless/p-b137cbd4.entry.js +2 -0
- package/dist/paperless/{p-d6828011.entry.js → p-bb7a5be7.entry.js} +2 -2
- package/dist/paperless/{p-2edd87f3.entry.js → p-c3558fb4.entry.js} +2 -2
- package/dist/paperless/{p-26a3990a.entry.js → p-c892b87a.entry.js} +2 -2
- package/dist/paperless/p-cropper.entry.esm.js.map +1 -1
- package/dist/paperless/{p-fa0234e9.entry.js → p-dc5fab19.entry.js} +2 -2
- package/dist/{build/p-0875bbbb.entry.js → paperless/p-e596d429.entry.js} +2 -2
- package/dist/paperless/{p-d4152f66.entry.js → p-fa78c45a.entry.js} +2 -2
- package/dist/paperless/p-range.entry.esm.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/{deprecated/molecules → molecules}/cropper/cropper.component.d.ts +2 -6
- package/dist/types/components/molecules/range/range.component.d.ts +24 -0
- package/dist/types/components.d.ts +66 -10
- package/package.json +2 -2
- package/dist/build/p-2d60e194.js +0 -2
- package/dist/build/p-30f6e463.entry.js +0 -3
- package/dist/build/p-30f6e463.entry.js.map +0 -1
- package/dist/build/p-474a16ab.entry.js +0 -2
- package/dist/build/p-eef52967.entry.js +0 -2
- package/dist/collection/components/deprecated/molecules/cropper/cropper.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/cropper/cropper.component.js.map +0 -1
- package/dist/paperless/p-30f6e463.entry.js +0 -3
- package/dist/paperless/p-30f6e463.entry.js.map +0 -1
- package/dist/paperless/p-474a16ab.entry.js +0 -2
- package/dist/paperless/p-eef52967.entry.js +0 -2
- /package/dist/build/{p-c879f50c.entry.js.map → p-0103e9ac.entry.js.map} +0 -0
- /package/dist/build/{p-0740b690.entry.js.map → p-133e9259.entry.js.map} +0 -0
- /package/dist/build/{p-71666551.entry.js.map → p-213bc400.entry.js.map} +0 -0
- /package/dist/build/{p-e33a56c8.entry.js.map → p-219db898.entry.js.map} +0 -0
- /package/dist/build/{p-cc3307b8.entry.js.map → p-2da67519.entry.js.map} +0 -0
- /package/dist/build/{p-8981247d.entry.js.map → p-302eedc6.entry.js.map} +0 -0
- /package/dist/build/{p-474a16ab.entry.js.map → p-32f997e7.entry.js.map} +0 -0
- /package/dist/build/{p-add932d6.entry.js.map → p-4fb1f39b.entry.js.map} +0 -0
- /package/dist/build/{p-5048c4c2.entry.js.map → p-50a816b0.entry.js.map} +0 -0
- /package/dist/build/{p-8fcf3bb8.entry.js.map → p-7b7c60de.entry.js.map} +0 -0
- /package/dist/build/{p-e2054751.entry.js.map → p-9e4cbacf.entry.js.map} +0 -0
- /package/dist/build/{p-eef52967.entry.js.map → p-b137cbd4.entry.js.map} +0 -0
- /package/dist/build/{p-d6828011.entry.js.map → p-bb7a5be7.entry.js.map} +0 -0
- /package/dist/build/{p-2edd87f3.entry.js.map → p-c3558fb4.entry.js.map} +0 -0
- /package/dist/build/{p-26a3990a.entry.js.map → p-c892b87a.entry.js.map} +0 -0
- /package/dist/build/{p-fa0234e9.entry.js.map → p-dc5fab19.entry.js.map} +0 -0
- /package/dist/build/{p-0875bbbb.entry.js.map → p-e596d429.entry.js.map} +0 -0
- /package/dist/build/{p-d4152f66.entry.js.map → p-fa78c45a.entry.js.map} +0 -0
- /package/dist/paperless/{p-c879f50c.entry.js.map → p-0103e9ac.entry.js.map} +0 -0
- /package/dist/paperless/{p-0740b690.entry.js.map → p-133e9259.entry.js.map} +0 -0
- /package/dist/paperless/{p-71666551.entry.js.map → p-213bc400.entry.js.map} +0 -0
- /package/dist/paperless/{p-e33a56c8.entry.js.map → p-219db898.entry.js.map} +0 -0
- /package/dist/paperless/{p-cc3307b8.entry.js.map → p-2da67519.entry.js.map} +0 -0
- /package/dist/paperless/{p-8981247d.entry.js.map → p-302eedc6.entry.js.map} +0 -0
- /package/dist/paperless/{p-474a16ab.entry.js.map → p-32f997e7.entry.js.map} +0 -0
- /package/dist/paperless/{p-add932d6.entry.js.map → p-4fb1f39b.entry.js.map} +0 -0
- /package/dist/paperless/{p-5048c4c2.entry.js.map → p-50a816b0.entry.js.map} +0 -0
- /package/dist/paperless/{p-8fcf3bb8.entry.js.map → p-7b7c60de.entry.js.map} +0 -0
- /package/dist/paperless/{p-e2054751.entry.js.map → p-9e4cbacf.entry.js.map} +0 -0
- /package/dist/paperless/{p-eef52967.entry.js.map → p-b137cbd4.entry.js.map} +0 -0
- /package/dist/paperless/{p-d6828011.entry.js.map → p-bb7a5be7.entry.js.map} +0 -0
- /package/dist/paperless/{p-2edd87f3.entry.js.map → p-c3558fb4.entry.js.map} +0 -0
- /package/dist/paperless/{p-26a3990a.entry.js.map → p-c892b87a.entry.js.map} +0 -0
- /package/dist/paperless/{p-fa0234e9.entry.js.map → p-dc5fab19.entry.js.map} +0 -0
- /package/dist/paperless/{p-0875bbbb.entry.js.map → p-e596d429.entry.js.map} +0 -0
- /package/dist/paperless/{p-d4152f66.entry.js.map → p-fa78c45a.entry.js.map} +0 -0
|
@@ -55,9 +55,9 @@ const ContentSlider = /*@__PURE__*/ proxyCustomElement(class ContentSlider exten
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '383758e226a6e9d1a1c84c650073a0468ed83dc9', class: "p-content-slider" }, h("div", { key: '18524f8330ba15ebad99573e6b5076f2909832e3', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
59
59
|
height: `${this._outerHeight}px`,
|
|
60
|
-
}, 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: '
|
|
60
|
+
}, 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: '3a86b6b3b6f2550e571a5afa3c10bab995a97139', class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '99c429d048aa6cd3c17e3d3d1a2b66e78cf6aec0' }))), h("div", { key: 'cd0cf8fe535606e40c1b8a4667a17cdf510e64ed', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("div", { class: cn('block w-2 h-2 rounded-full', {
|
|
61
61
|
'bg-dark-teal-600': i === this._visibleIndex,
|
|
62
62
|
'bg-dark-teal-400': i !== this._visibleIndex,
|
|
63
63
|
}) })))))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-tdjn65Lz.js';
|
|
2
|
-
import {
|
|
3
|
-
import { d as defineCustomElement$2 } from './p
|
|
2
|
+
import { d as defineCustomElement$3 } from './p-ZOW6vT-R.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p--NCbtXAT.js';
|
|
4
4
|
|
|
5
5
|
const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
6
6
|
const WINDOW = IS_BROWSER ? window : {};
|
|
@@ -2801,7 +2801,7 @@ CropperSelection.$define();
|
|
|
2801
2801
|
CropperShade.$define();
|
|
2802
2802
|
CropperViewer.$define();
|
|
2803
2803
|
|
|
2804
|
-
const cropperComponentCss = ".mb-6{margin-bottom:1.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static!important}.hidden{display:none!important}.h-\\[17\\.5rem\\]{height:17.5rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.resize{resize:both!important}.
|
|
2804
|
+
const cropperComponentCss = ".mb-6{margin-bottom:1.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static!important}.hidden{display:none!important}.aspect-branding{aspect-ratio:23/24!important}.h-\\[17\\.5rem\\]{height:17.5rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.resize{resize:both!important}.rounded-full{border-radius:9999px!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-14{padding-left:3.5rem!important;padding-right:3.5rem!important}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem!important}.tablet\\:px-1{padding-left:.25rem!important;padding-right:.25rem!important}}";
|
|
2805
2805
|
|
|
2806
2806
|
const Cropper = /*@__PURE__*/ proxyCustomElement(class Cropper extends H {
|
|
2807
2807
|
constructor() {
|
|
@@ -2810,10 +2810,6 @@ const Cropper = /*@__PURE__*/ proxyCustomElement(class Cropper extends H {
|
|
|
2810
2810
|
this.__attachShadow();
|
|
2811
2811
|
this.valueChange = createEvent(this, "valueChange", 3);
|
|
2812
2812
|
}
|
|
2813
|
-
/**
|
|
2814
|
-
* Variant of the image that's being cropped
|
|
2815
|
-
*/
|
|
2816
|
-
variant = 'user';
|
|
2817
2813
|
/**
|
|
2818
2814
|
* The image to crop (url or base64)
|
|
2819
2815
|
*/
|
|
@@ -2849,35 +2845,27 @@ const Cropper = /*@__PURE__*/ proxyCustomElement(class Cropper extends H {
|
|
|
2849
2845
|
}, 200);
|
|
2850
2846
|
}
|
|
2851
2847
|
render() {
|
|
2852
|
-
return (h(Host, { key: '
|
|
2853
|
-
'rounded-round': this.variant === 'user',
|
|
2854
|
-
rounded: this.variant === 'company',
|
|
2855
|
-
}), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: 'b6f27be2918f2d37db9c2e357edbf43c9437d948', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'f344a4f9329f0f95388cbb9d244e9874bb122872', action: 'move', plain: true }))), h("div", { key: 'fac0f650ad1c0f90cf76b1988c5b0868fca46433', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: 'cab454265a498a58246f560214a9773a05b64a9d', variant: 'minus' }), h("input", { key: '6e290864b2b72b195dcf3bc0499a7c15cf95dfb7', class: 'p-input w-full', type: 'range', min: '0', max: '100', value: this._currentScale, onInput: ev => this._onInput(ev.target.value), step: '0.5' }), h("p-icon", { key: 'eae0f43ac06be2eb63ceaeba98890a9bc423f003', variant: 'plus' }))));
|
|
2848
|
+
return (h(Host, { key: 'bb9b47e33d788f83b69156e78754fdf77e60fbdc', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: 'c9b38a906946c725192411a5c8aeea567194d85c', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '375a75a54723a633f6f67370af7732c49e17d5ea', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, translatable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '44df9ab40e61982a3d9dcc06c8395e878153f527', class: 'aspect-branding rounded-full', "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '98a11dbabb8e7852a3ea4ec34a9d8e5b4a617192', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'e8378de3cc52edeb6e3fa65cf4bf66050e36ee0a', action: 'move', plain: true }))), h("p-range", { key: 'a6471a180232794da126365058f4befb949b7cee', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
2856
2849
|
}
|
|
2857
2850
|
_setImageRef(ref) {
|
|
2858
2851
|
if (this._imageRef) {
|
|
2859
2852
|
return;
|
|
2860
2853
|
}
|
|
2861
2854
|
this._imageRef = ref;
|
|
2862
|
-
this._imageRef.$ready(image => setTimeout(() => this._setInitialState(image),
|
|
2855
|
+
this._imageRef.$ready(image => setTimeout(() => this._setInitialState(image), 100));
|
|
2863
2856
|
}
|
|
2864
2857
|
_setInitialState(image) {
|
|
2865
|
-
let scale;
|
|
2866
|
-
if (image.naturalWidth > image.naturalHeight) {
|
|
2867
|
-
// set scale by height
|
|
2868
|
-
scale = 200 / image.naturalHeight;
|
|
2869
|
-
}
|
|
2858
|
+
let scale = 200 / image.naturalHeight;
|
|
2870
2859
|
if (image.naturalHeight >= image.naturalWidth) {
|
|
2871
2860
|
// set scale by width
|
|
2872
2861
|
scale = 200 / image.naturalWidth;
|
|
2873
2862
|
}
|
|
2874
|
-
const current = this._imageRef.$getTransform();
|
|
2875
2863
|
this._minScale = scale;
|
|
2876
|
-
this._maxScale =
|
|
2864
|
+
this._maxScale = 5;
|
|
2877
2865
|
this._selectionRef.$resize('nw-resize', 200, 200, 1);
|
|
2878
2866
|
this._selectionRef.$center();
|
|
2879
|
-
this._setScale(scale);
|
|
2880
2867
|
this._toCanvas();
|
|
2868
|
+
this._setScale(scale);
|
|
2881
2869
|
}
|
|
2882
2870
|
_onAction() {
|
|
2883
2871
|
this._setCurrentScale();
|
|
@@ -2954,8 +2942,7 @@ const Cropper = /*@__PURE__*/ proxyCustomElement(class Cropper extends H {
|
|
|
2954
2942
|
}
|
|
2955
2943
|
static get style() { return cropperComponentCss; }
|
|
2956
2944
|
}, [1, "p-cropper", {
|
|
2957
|
-
"
|
|
2958
|
-
"value": [8],
|
|
2945
|
+
"value": [1],
|
|
2959
2946
|
"returnType": [1, "return-type"],
|
|
2960
2947
|
"_loaded": [32],
|
|
2961
2948
|
"_currentScale": [32]
|
|
@@ -2964,7 +2951,7 @@ function defineCustomElement$1() {
|
|
|
2964
2951
|
if (typeof customElements === "undefined") {
|
|
2965
2952
|
return;
|
|
2966
2953
|
}
|
|
2967
|
-
const components = ["p-cropper", "p-icon"];
|
|
2954
|
+
const components = ["p-cropper", "p-icon", "p-range"];
|
|
2968
2955
|
components.forEach(tagName => { switch (tagName) {
|
|
2969
2956
|
case "p-cropper":
|
|
2970
2957
|
if (!customElements.get(tagName)) {
|
|
@@ -2972,6 +2959,11 @@ function defineCustomElement$1() {
|
|
|
2972
2959
|
}
|
|
2973
2960
|
break;
|
|
2974
2961
|
case "p-icon":
|
|
2962
|
+
if (!customElements.get(tagName)) {
|
|
2963
|
+
defineCustomElement$3();
|
|
2964
|
+
}
|
|
2965
|
+
break;
|
|
2966
|
+
case "p-range":
|
|
2975
2967
|
if (!customElements.get(tagName)) {
|
|
2976
2968
|
defineCustomElement$2();
|
|
2977
2969
|
}
|