@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
|
@@ -9963,7 +9963,6 @@ const TableHeader = class {
|
|
|
9963
9963
|
.subscribe(value => this.queryChange.emit(value));
|
|
9964
9964
|
}
|
|
9965
9965
|
render() {
|
|
9966
|
-
console.log(this.quickFilters);
|
|
9967
9966
|
const quickFilters = typeof this.quickFilters === 'string'
|
|
9968
9967
|
? JSON.parse(this.quickFilters)
|
|
9969
9968
|
: this.quickFilters;
|
|
@@ -9971,15 +9970,15 @@ const TableHeader = class {
|
|
|
9971
9970
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
9972
9971
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
9973
9972
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
9974
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
9975
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (index.h("div", { key: '
|
|
9973
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'b853afc278bcdc5615fe52928e49a08216f807e0' }, index.h("div", { key: 'cc1fb1ffe7376263d17fa0948160fa73b1d49f68', class: header() }, this.loading && (index.h("p-loader", { key: '156ab2edb7bb6e9ffe697ab547ec24c287d1ab4c', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
9974
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (index.h("div", { key: 'f96b1d33ff36ddbb19fb4198554f74265923a1b9', class: 'flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row' }, hasCustomFilterSlot && index.h("slot", { key: '5d401f179a913db5511a67d8ad1968df432ab722', name: 'custom-filter' }), quickFilters.length > 0 && (index.h("p-segment-container", { key: '37c7315ced7f7be6e39f59a8334eae08260b772e', class: 'hidden desktop-xs:flex' }, quickFilters.map(item => (index.h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
9976
9975
|
? item.text
|
|
9977
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), index.h("div", { key: '
|
|
9976
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), index.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 && (index.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) })), index.h("div", { key: '89e51f87a89f629c77b22c5fd0714662d452a5c6', class: 'flex items-center gap-2' }, this.enableFilter && (index.h("p-button", { key: '933b0ff84cb98c91d3bdb9bfa761bac3096b6d82', icon: 'filter', variant: 'secondary', class: `w-full ${this.enableFilterDesktop
|
|
9978
9977
|
? 'desktop-xs:w-auto'
|
|
9979
9978
|
: 'desktop-xs:hidden'}`, onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
9980
9979
|
? this.filterButtonTemplate()
|
|
9981
9980
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
9982
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (index.h("p-divider", { key: '
|
|
9981
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (index.h("p-divider", { key: 'f1432c63cb0b9758338dcc5eba1446cbce6e6494', variant: 'vertical', class: 'hidden h-4 tablet:flex dark:text-white/15' })), !this.loading && this.enableExport && (index.h("p-button", { key: '9599f305f6e200246a889177e4c3b3fd7a99d493', variant: 'secondary', icon: 'upload', class: 'desktop-xs:auto w-full', onClick: () => this.export.emit() }, localization.formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && index.h("slot", { key: '8afdb5ab4234df9aa5574fa8fb78d5fc51e14c2f', name: 'custom-actions' })), this.enableAction && this.canUseAction && (index.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))))));
|
|
9983
9982
|
}
|
|
9984
9983
|
async _setLocales() {
|
|
9985
9984
|
this._locales = await localization.getLocaleComponentStrings(this._el);
|