@paperless/core 2.0.1-beta.114 → 2.0.1-beta.116
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 +22 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-7046dc66.entry.js → p-05db72d0.entry.js} +2 -2
- package/dist/build/{p-5c3167c8.entry.js → p-26a3990a.entry.js} +2 -2
- package/dist/build/{p-76a4f70e.entry.js → p-2edd87f3.entry.js} +2 -2
- package/dist/{paperless/p-cc379751.entry.js → build/p-43d3357f.entry.js} +2 -2
- package/dist/build/p-474a16ab.entry.js +2 -0
- package/dist/{paperless/p-66adc33a.entry.js → build/p-53009290.entry.js} +2 -2
- package/dist/build/{p-0da54170.entry.js → p-55a41995.entry.js} +2 -2
- package/dist/{paperless/p-91ea22cd.entry.js → build/p-87981fef.entry.js} +2 -2
- package/dist/{paperless/p-cac630d2.entry.js → build/p-8981247d.entry.js} +2 -2
- package/dist/{paperless/p-730bcacd.entry.js → build/p-8a5dcfac.entry.js} +2 -2
- package/dist/build/p-8ca737d7.entry.js +2 -0
- package/dist/{paperless/p-e9db1b2d.entry.js.map → build/p-8ca737d7.entry.js.map} +1 -1
- package/dist/build/p-8f7a37d9.entry.js +2 -0
- package/dist/build/p-8f7a37d9.entry.js.map +1 -0
- package/dist/build/{p-bfda8061.entry.js → p-965962ce.entry.js} +2 -2
- package/dist/build/p-B3sNjfzc.js +2 -0
- package/dist/build/p-B3sNjfzc.js.map +1 -0
- package/dist/build/p-DdQ-S2l7.js +2 -0
- package/dist/build/p-DdQ-S2l7.js.map +1 -0
- package/dist/build/p-a02a5085.js +2 -0
- package/dist/build/{p-79b42a23.entry.js → p-adb1ad27.entry.js} +2 -2
- package/dist/build/{p-912ce588.entry.js → p-aec29ee9.entry.js} +2 -2
- package/dist/build/p-attachment.entry.esm.js.map +1 -1
- package/dist/build/{p-0c257fa2.entry.js → p-cc3307b8.entry.js} +2 -2
- package/dist/build/{p-29d452d0.entry.js → p-cfd2e444.entry.js} +2 -2
- package/dist/build/{p-7658fd89.entry.js → p-e2054751.entry.js} +2 -2
- package/dist/build/p-table.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/constants-DDb_wCc1.js +16 -0
- package/dist/cjs/constants-DDb_wCc1.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -10
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +88 -10
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
- package/dist/cjs/p-attachment.entry.cjs.js.map +1 -1
- 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 +4 -4
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- 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 +1 -1
- 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-select.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +4 -3
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table.entry.cjs.js.map +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/{screens-D_ByWDz6.js → screens-h1MTJhCu.js} +2 -13
- package/dist/cjs/screens-h1MTJhCu.js.map +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.css +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +175 -14
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -1
- 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/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +4 -4
- 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/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 +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/stepper/stepper.component.js +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-LsrP-Unv.js → p-B3sNjfzc.js} +3 -13
- package/dist/components/p-B3sNjfzc.js.map +1 -0
- package/dist/components/{p-Cr5nmZn3.js → p-BFXs5OQx.js} +3 -3
- package/dist/components/{p-Cr5nmZn3.js.map → p-BFXs5OQx.js.map} +1 -1
- package/dist/components/{p-BSAVV_6x.js → p-Bb8uyInh.js} +5 -5
- package/dist/components/{p-BSAVV_6x.js.map → p-Bb8uyInh.js.map} +1 -1
- package/dist/components/{p-BPXS3EM8.js → p-BtG4QBr6.js} +3 -3
- package/dist/components/{p-BPXS3EM8.js.map → p-BtG4QBr6.js.map} +1 -1
- package/dist/components/{p-CgHBpaJ2.js → p-Bw6TWc-_.js} +8 -8
- package/dist/components/{p-CgHBpaJ2.js.map → p-Bw6TWc-_.js.map} +1 -1
- package/dist/components/{p-Cp8IEnaB.js → p-C5yz-mQE.js} +3 -3
- package/dist/components/{p-Cp8IEnaB.js.map → p-C5yz-mQE.js.map} +1 -1
- package/dist/components/{p-DwUkFgs3.js → p-CBxUj1bt.js} +3 -3
- package/dist/components/{p-DwUkFgs3.js.map → p-CBxUj1bt.js.map} +1 -1
- package/dist/components/{p-Hj0dtQOu.js → p-Cw7TZ18X.js} +4 -4
- package/dist/components/{p-Hj0dtQOu.js.map → p-Cw7TZ18X.js.map} +1 -1
- package/dist/components/{p-HLwIOGJt.js → p-DaFVCsxX.js} +3 -3
- package/dist/components/{p-HLwIOGJt.js.map → p-DaFVCsxX.js.map} +1 -1
- package/dist/components/p-DdQ-S2l7.js +14 -0
- package/dist/components/p-DdQ-S2l7.js.map +1 -0
- package/dist/components/{p-b3Miuuib.js → p-Dn38WwJ_.js} +8 -8
- package/dist/components/{p-b3Miuuib.js.map → p-Dn38WwJ_.js.map} +1 -1
- package/dist/components/{p-BnyZAlkn.js → p-ExfyVPT0.js} +5 -5
- package/dist/components/{p-BnyZAlkn.js.map → p-ExfyVPT0.js.map} +1 -1
- package/dist/components/{p-BP1aeBcW.js → p-YYQ927T-.js} +6 -6
- package/dist/components/{p-BP1aeBcW.js.map → p-YYQ927T-.js.map} +1 -1
- package/dist/components/p-attachment.js +93 -11
- package/dist/components/p-attachment.js.map +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-datepicker.js +5 -5
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-listing.js +1 -1
- 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-profile.js +1 -1
- package/dist/components/p-select.js +3 -3
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +12 -11
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/constants-DdQ-S2l7.js +14 -0
- package/dist/esm/constants-DdQ-S2l7.js.map +1 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-attachment.entry.js +89 -11
- package/dist/esm/p-attachment.entry.js.map +1 -1
- 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 +4 -4
- package/dist/esm/p-content-slider.entry.js +2 -2
- 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 +1 -1
- 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-select.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-table.entry.js +2 -1
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/{screens-LsrP-Unv.js → screens-B3sNjfzc.js} +3 -13
- package/dist/esm/screens-B3sNjfzc.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-7046dc66.entry.js → p-05db72d0.entry.js} +2 -2
- package/dist/paperless/{p-5c3167c8.entry.js → p-26a3990a.entry.js} +2 -2
- package/dist/paperless/{p-76a4f70e.entry.js → p-2edd87f3.entry.js} +2 -2
- package/dist/{build/p-cc379751.entry.js → paperless/p-43d3357f.entry.js} +2 -2
- package/dist/paperless/p-474a16ab.entry.js +2 -0
- package/dist/{build/p-66adc33a.entry.js → paperless/p-53009290.entry.js} +2 -2
- package/dist/paperless/{p-0da54170.entry.js → p-55a41995.entry.js} +2 -2
- package/dist/{build/p-91ea22cd.entry.js → paperless/p-87981fef.entry.js} +2 -2
- package/dist/{build/p-cac630d2.entry.js → paperless/p-8981247d.entry.js} +2 -2
- package/dist/{build/p-730bcacd.entry.js → paperless/p-8a5dcfac.entry.js} +2 -2
- package/dist/paperless/p-8ca737d7.entry.js +2 -0
- package/dist/{build/p-e9db1b2d.entry.js.map → paperless/p-8ca737d7.entry.js.map} +1 -1
- package/dist/paperless/p-8f7a37d9.entry.js +2 -0
- package/dist/paperless/p-8f7a37d9.entry.js.map +1 -0
- package/dist/paperless/{p-bfda8061.entry.js → p-965962ce.entry.js} +2 -2
- package/dist/paperless/p-B3sNjfzc.js +2 -0
- package/dist/paperless/p-B3sNjfzc.js.map +1 -0
- package/dist/paperless/p-DdQ-S2l7.js +2 -0
- package/dist/paperless/p-DdQ-S2l7.js.map +1 -0
- package/dist/paperless/{p-79b42a23.entry.js → p-adb1ad27.entry.js} +2 -2
- package/dist/paperless/{p-912ce588.entry.js → p-aec29ee9.entry.js} +2 -2
- package/dist/paperless/p-attachment.entry.esm.js.map +1 -1
- package/dist/paperless/{p-0c257fa2.entry.js → p-cc3307b8.entry.js} +2 -2
- package/dist/paperless/{p-29d452d0.entry.js → p-cfd2e444.entry.js} +2 -2
- package/dist/paperless/{p-7658fd89.entry.js → p-e2054751.entry.js} +2 -2
- package/dist/paperless/p-table.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/dist/types/components/molecules/attachment/attachment.component.d.ts +27 -1
- package/dist/types/components.d.ts +42 -2
- package/package.json +1 -1
- package/dist/build/p-0cf505a8.entry.js +0 -2
- package/dist/build/p-8577755d.entry.js +0 -2
- package/dist/build/p-8577755d.entry.js.map +0 -1
- package/dist/build/p-LsrP-Unv.js +0 -2
- package/dist/build/p-LsrP-Unv.js.map +0 -1
- package/dist/build/p-ab23f388.js +0 -2
- package/dist/build/p-e9db1b2d.entry.js +0 -2
- package/dist/cjs/screens-D_ByWDz6.js.map +0 -1
- package/dist/components/p-LsrP-Unv.js.map +0 -1
- package/dist/esm/screens-LsrP-Unv.js.map +0 -1
- package/dist/paperless/p-0cf505a8.entry.js +0 -2
- package/dist/paperless/p-8577755d.entry.js +0 -2
- package/dist/paperless/p-8577755d.entry.js.map +0 -1
- package/dist/paperless/p-LsrP-Unv.js +0 -2
- package/dist/paperless/p-LsrP-Unv.js.map +0 -1
- package/dist/paperless/p-e9db1b2d.entry.js +0 -2
- /package/dist/build/{p-7046dc66.entry.js.map → p-05db72d0.entry.js.map} +0 -0
- /package/dist/build/{p-5c3167c8.entry.js.map → p-26a3990a.entry.js.map} +0 -0
- /package/dist/build/{p-76a4f70e.entry.js.map → p-2edd87f3.entry.js.map} +0 -0
- /package/dist/build/{p-cc379751.entry.js.map → p-43d3357f.entry.js.map} +0 -0
- /package/dist/build/{p-0cf505a8.entry.js.map → p-474a16ab.entry.js.map} +0 -0
- /package/dist/build/{p-66adc33a.entry.js.map → p-53009290.entry.js.map} +0 -0
- /package/dist/build/{p-0da54170.entry.js.map → p-55a41995.entry.js.map} +0 -0
- /package/dist/build/{p-91ea22cd.entry.js.map → p-87981fef.entry.js.map} +0 -0
- /package/dist/build/{p-cac630d2.entry.js.map → p-8981247d.entry.js.map} +0 -0
- /package/dist/build/{p-730bcacd.entry.js.map → p-8a5dcfac.entry.js.map} +0 -0
- /package/dist/build/{p-bfda8061.entry.js.map → p-965962ce.entry.js.map} +0 -0
- /package/dist/build/{p-79b42a23.entry.js.map → p-adb1ad27.entry.js.map} +0 -0
- /package/dist/build/{p-912ce588.entry.js.map → p-aec29ee9.entry.js.map} +0 -0
- /package/dist/build/{p-0c257fa2.entry.js.map → p-cc3307b8.entry.js.map} +0 -0
- /package/dist/build/{p-29d452d0.entry.js.map → p-cfd2e444.entry.js.map} +0 -0
- /package/dist/build/{p-7658fd89.entry.js.map → p-e2054751.entry.js.map} +0 -0
- /package/dist/paperless/{p-7046dc66.entry.js.map → p-05db72d0.entry.js.map} +0 -0
- /package/dist/paperless/{p-5c3167c8.entry.js.map → p-26a3990a.entry.js.map} +0 -0
- /package/dist/paperless/{p-76a4f70e.entry.js.map → p-2edd87f3.entry.js.map} +0 -0
- /package/dist/paperless/{p-cc379751.entry.js.map → p-43d3357f.entry.js.map} +0 -0
- /package/dist/paperless/{p-0cf505a8.entry.js.map → p-474a16ab.entry.js.map} +0 -0
- /package/dist/paperless/{p-66adc33a.entry.js.map → p-53009290.entry.js.map} +0 -0
- /package/dist/paperless/{p-0da54170.entry.js.map → p-55a41995.entry.js.map} +0 -0
- /package/dist/paperless/{p-91ea22cd.entry.js.map → p-87981fef.entry.js.map} +0 -0
- /package/dist/paperless/{p-cac630d2.entry.js.map → p-8981247d.entry.js.map} +0 -0
- /package/dist/paperless/{p-730bcacd.entry.js.map → p-8a5dcfac.entry.js.map} +0 -0
- /package/dist/paperless/{p-bfda8061.entry.js.map → p-965962ce.entry.js.map} +0 -0
- /package/dist/paperless/{p-79b42a23.entry.js.map → p-adb1ad27.entry.js.map} +0 -0
- /package/dist/paperless/{p-912ce588.entry.js.map → p-aec29ee9.entry.js.map} +0 -0
- /package/dist/paperless/{p-0c257fa2.entry.js.map → p-cc3307b8.entry.js.map} +0 -0
- /package/dist/paperless/{p-29d452d0.entry.js.map → p-cfd2e444.entry.js.map} +0 -0
- /package/dist/paperless/{p-7658fd89.entry.js.map → p-e2054751.entry.js.map} +0 -0
|
@@ -64,11 +64,11 @@ const EmptyState = /*@__PURE__*/ proxyCustomElement(class EmptyState extends H {
|
|
|
64
64
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
65
65
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
66
66
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
67
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: '4d4ffeaee2bb367b6fa44558bffc6b1ea36e7ff2', class: emptyState({
|
|
68
68
|
enableAction: asBoolean(this.enableAction, true),
|
|
69
69
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
70
70
|
? this.action.emit(ev)
|
|
71
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
71
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '5ffdc50bc7b414703c1ab66e8c11d9213360e421', class: 'mb-8 text-teal', 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-black-teal' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm text-black-teal-300' }, this.content))), this.enableAction &&
|
|
72
72
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
|
|
73
73
|
}
|
|
74
74
|
static get style() { return emptyStateComponentCss; }
|
|
@@ -118,6 +118,6 @@ function defineCustomElement() {
|
|
|
118
118
|
defineCustomElement();
|
|
119
119
|
|
|
120
120
|
export { EmptyState as E, defineCustomElement as d };
|
|
121
|
-
//# sourceMappingURL=p-
|
|
121
|
+
//# sourceMappingURL=p-Cw7TZ18X.js.map
|
|
122
122
|
|
|
123
|
-
//# sourceMappingURL=p-
|
|
123
|
+
//# sourceMappingURL=p-Cw7TZ18X.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-Cw7TZ18X.js","mappings":";;;;;;;;AAAA,MAAM,sBAAsB,GAAG,k+BAAk+B;;ACgBjgC,MAAM,UAAU,GAAG,GAAG,CACrB,CAAC,+DAA+D,CAAC,EACjE;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,YAAY,EAAE;AACb,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,KAAA;AACD,CAAA,CACD;MAOY,UAAU,iBAAAA,kBAAA,CAAA,MAAA,UAAA,SAAAC,CAAA,CAAA;;;;;;;AACtB;;AAEG;AACK,IAAA,YAAY;AAEpB;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;AACK,IAAA,OAAO;AAEf;;AAEG;IACK,YAAY,GAAY,IAAI;AAEpC;;AAEG;AACK,IAAA,UAAU;AAElB;;AAEG;IACK,aAAa,GAAkB,WAAW;AAElD;;AAEG;AACK,IAAA,UAAU;AAElB;;AAEG;IACK,aAAa,GAAY,KAAK;AAEtC;;AAEG;AACM,IAAA,MAAM;;IAOf,MAAM,GAAA;AACL,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAC1E,QAAA,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC9C,2BAA2B,CAC3B;AACD,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAE1E,QAAA,QACC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,KAAK,EAAE,UAAU,CAAC;gBACjB,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC;AAChD,aAAA,CAAC,EACF,OAAO,EAAE,EAAE,IACV,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC;kBACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;kBACnB,SAAS,EAAA,EAGZ,IAAI,CAAC,YAAY,KACjB,uEACC,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,IAAI,CAAC,YAAY,GACzB,CACF,EACA,aAAa,IACb,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,EAAG,CAAA,KAEtB,IAAI,CAAC,MAAM,EAAE,MAAM,KAClB,SAAG,KAAK,EAAC,+DAA+D,EAAA,EACtE,IAAI,CAAC,MAAM,CACT,CACJ,CACD,EACA,cAAc,IACd,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,SAAS,EAAG,CAAA,KAEvB,IAAI,CAAC,OAAO,EAAE,MAAM,KACnB,SAAG,KAAK,EAAC,8CAA8C,EAAA,EACrD,IAAI,CAAC,OAAO,CACV,CACJ,CACD,EACA,IAAI,CAAC,YAAY;aAChB,aAAa,IACb,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,EAAA,CAAG,KAEtB,CAAA,CAAA,UAAA,EAAA,EACC,KAAK,EAAC,MAAM,EACZ,IAAI,EAAE,IAAI,CAAC,UAAU,EACrB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,OAAO,EAAE,IAAI,CAAC,aAAa,EAAA,EAE1B,IAAI,CAAC,UAAU,CACN,CACX,CAAC,CACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/empty-state/empty-state.component.css?tag=p-empty-state&encapsulation=shadow","src/components/molecules/empty-state/empty-state.component.tsx"],"sourcesContent":["p-divider {\n\t--tw-content: '';\n}\n","import {\n\tComponent,\n\th,\n\tProp,\n\tEvent,\n\tEventEmitter,\n\tElement,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tButtonVariant,\n\tIconVariant,\n\tIllustrationVariant,\n} from '../../../components';\nimport { asBoolean } from '../../../utils/as-boolean';\n\nconst emptyState = cva(\n\t['flex flex-col w-full items-center justify-start max-w-[20rem]'],\n\t{\n\t\tvariants: {\n\t\t\tenableAction: {\n\t\t\t\ttrue: 'cursor-pointer',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-empty-state',\n\tstyleUrl: 'empty-state.component.css',\n\tshadow: true,\n})\nexport class EmptyState {\n\t/**\n\t * The variant of the illustration\n\t */\n\t@Prop() illustration: IllustrationVariant;\n\n\t/**\n\t * The header of the empty state\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * The content of the empty state\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * Wether to enable the action button\n\t */\n\t@Prop() enableAction: boolean = true;\n\n\t/**\n\t * The text on the action button\n\t */\n\t@Prop() actionText: string;\n\n\t/**\n\t * The variant of the action\n\t */\n\t@Prop() actionVariant: ButtonVariant = 'secondary';\n\n\t/**\n\t * The icon for the action button\n\t */\n\t@Prop() actionIcon: IconVariant;\n\n\t/**\n\t * Wether the action is loading\n\t */\n\t@Prop() actionLoading: boolean = false;\n\n\t/**\n\t * The text on the action button\n\t */\n\t@Event() action: EventEmitter<MouseEvent>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\trender() {\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t\tconst hasActionSlot = !!this._el.querySelector(':scope > [slot=\"action\"]');\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={emptyState({\n\t\t\t\t\tenableAction: asBoolean(this.enableAction, true),\n\t\t\t\t})}\n\t\t\t\tonClick={ev =>\n\t\t\t\t\tthis.enableAction && !this.actionLoading\n\t\t\t\t\t\t? this.action.emit(ev)\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{this.illustration && (\n\t\t\t\t\t<p-illustration\n\t\t\t\t\t\tclass='mb-8 text-teal'\n\t\t\t\t\t\tvariant={this.illustration}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{hasHeaderSlot ? (\n\t\t\t\t\t<slot name='header' />\n\t\t\t\t) : (\n\t\t\t\t\tthis.header?.length && (\n\t\t\t\t\t\t<p class='my-0 text-center font-ambit text-sm font-bold text-black-teal'>\n\t\t\t\t\t\t\t{this.header}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)\n\t\t\t\t)}\n\t\t\t\t{hasContentSlot ? (\n\t\t\t\t\t<slot name='content' />\n\t\t\t\t) : (\n\t\t\t\t\tthis.content?.length && (\n\t\t\t\t\t\t<p class='my-0 text-center text-sm text-black-teal-300'>\n\t\t\t\t\t\t\t{this.content}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)\n\t\t\t\t)}\n\t\t\t\t{this.enableAction &&\n\t\t\t\t\t(hasActionSlot ? (\n\t\t\t\t\t\t<slot name='action' />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tclass='mt-4'\n\t\t\t\t\t\t\ticon={this.actionIcon}\n\t\t\t\t\t\t\tloading={this.actionLoading}\n\t\t\t\t\t\t\tvariant={this.actionVariant}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.actionText}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -2848,7 +2848,7 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends H {
|
|
|
2848
2848
|
.filter(date => isValid(date));
|
|
2849
2849
|
}
|
|
2850
2850
|
render() {
|
|
2851
|
-
return (h(Host, { key: '
|
|
2851
|
+
return (h(Host, { key: '3bc005be3abe7f7ff19c1261961e875e85ffb697', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
2852
2852
|
}
|
|
2853
2853
|
_getView() {
|
|
2854
2854
|
if (this._view === 'year') {
|
|
@@ -3111,6 +3111,6 @@ function defineCustomElement() {
|
|
|
3111
3111
|
defineCustomElement();
|
|
3112
3112
|
|
|
3113
3113
|
export { Calendar as C, _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, defineCustomElement as d, getUTCISOWeek as e, getDefaultOptions as f, getUTCWeekYear as g, longFormatters as h, subMilliseconds as i, getTimezoneOffsetInMilliseconds as j, isProtectedWeekYearToken as k, locale as l, throwProtectedError as m, isProtectedDayOfYearToken as n, isValid as o, isBefore as p, isAfter as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, format as u, startOfDay as v, startOfMonth as w, isSameDay as x };
|
|
3114
|
-
//# sourceMappingURL=p-
|
|
3114
|
+
//# sourceMappingURL=p-DaFVCsxX.js.map
|
|
3115
3115
|
|
|
3116
|
-
//# sourceMappingURL=p-
|
|
3116
|
+
//# sourceMappingURL=p-DaFVCsxX.js.map
|