@paperless/core 2.9.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/{paperless/p-e5934335.entry.js → build/p-08b625cd.entry.js} +2 -2
- package/dist/build/p-08b625cd.entry.js.map +1 -0
- package/dist/build/{p-6f12eb4b.js → p-cc4d0190.js} +1 -1
- package/dist/build/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +4 -5
- package/dist/cjs/p-empty-state_8.cjs.entry.js.map +1 -1
- package/dist/collection/components/molecules/table/header/table-header.component.js +4 -5
- package/dist/collection/components/molecules/table/header/table-header.component.js.map +1 -1
- package/dist/components/{p--8Wk5rpW.js → p-CbfQ0Wci.js} +6 -7
- package/dist/components/{p--8Wk5rpW.js.map → p-CbfQ0Wci.js.map} +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/esm/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.js.map +1 -1
- package/dist/esm/p-empty-state_8.entry.js +4 -5
- package/dist/esm/p-empty-state_8.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/{build/p-e5934335.entry.js → paperless/p-08b625cd.entry.js} +2 -2
- package/dist/paperless/p-08b625cd.entry.js.map +1 -0
- package/dist/paperless/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.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-e5934335.entry.js.map +0 -1
- package/dist/paperless/p-e5934335.entry.js.map +0 -1
|
@@ -9961,7 +9961,6 @@ const TableHeader = class {
|
|
|
9961
9961
|
.subscribe(value => this.queryChange.emit(value));
|
|
9962
9962
|
}
|
|
9963
9963
|
render() {
|
|
9964
|
-
console.log(this.quickFilters);
|
|
9965
9964
|
const quickFilters = typeof this.quickFilters === 'string'
|
|
9966
9965
|
? JSON.parse(this.quickFilters)
|
|
9967
9966
|
: this.quickFilters;
|
|
@@ -9969,15 +9968,15 @@ const TableHeader = class {
|
|
|
9969
9968
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
9970
9969
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
9971
9970
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
9972
|
-
return (h(ThemedHost, { key: '
|
|
9973
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '
|
|
9971
|
+
return (h(ThemedHost, { key: 'b853afc278bcdc5615fe52928e49a08216f807e0' }, h("div", { key: 'cc1fb1ffe7376263d17fa0948160fa73b1d49f68', class: header() }, this.loading && (h("p-loader", { key: '156ab2edb7bb6e9ffe697ab547ec24c287d1ab4c', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
9972
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: 'f96b1d33ff36ddbb19fb4198554f74265923a1b9', class: 'flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '5d401f179a913db5511a67d8ad1968df432ab722', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: '37c7315ced7f7be6e39f59a8334eae08260b772e', class: 'hidden desktop-xs:flex' }, quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
9974
9973
|
? item.text
|
|
9975
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '
|
|
9974
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '0199cc10cc0d7d992e8bc08097f7d0462db1e8f5', class: 'flex flex-col justify-end gap-2 desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center' }, this.enableSearch && (h("p-field", { key: 'e4daaddd95257ba880a0803242c492aa6888bc66', icon: 'search', class: 'desktop-xs:max-w-60', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: '89e51f87a89f629c77b22c5fd0714662d452a5c6', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: '933b0ff84cb98c91d3bdb9bfa761bac3096b6d82', icon: 'filter', variant: 'secondary', class: `w-full ${this.enableFilterDesktop
|
|
9976
9975
|
? 'desktop-xs:w-auto'
|
|
9977
9976
|
: 'desktop-xs:hidden'}`, onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
9978
9977
|
? this.filterButtonTemplate()
|
|
9979
9978
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
9980
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '
|
|
9979
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: 'f1432c63cb0b9758338dcc5eba1446cbce6e6494', variant: 'vertical', class: 'hidden h-4 tablet:flex dark:text-white/15' })), !this.loading && this.enableExport && (h("p-button", { key: '9599f305f6e200246a889177e4c3b3fd7a99d493', variant: 'secondary', icon: 'upload', class: 'desktop-xs:auto w-full', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '8afdb5ab4234df9aa5574fa8fb78d5fc51e14c2f', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '126a654009f3837c7aa9bc028a4e616c54c4f399', class: 'border-t-mystic-dark fixed bottom-0 left-0 block w-full border border-solid border-transparent bg-white p-4 desktop-xs:hidden' }, this._buttonTemplate(true))))));
|
|
9981
9980
|
}
|
|
9982
9981
|
async _setLocales() {
|
|
9983
9982
|
this._locales = await getLocaleComponentStrings(this._el);
|