@paperless/core 3.10.4 → 3.12.0
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/dist/assets/icons/general/scroll.svg +1 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/{paperless/p-e1fa4cc2.entry.js → build/p-0380b299.entry.js} +1 -1
- package/dist/build/{p-9f1beebc.entry.js → p-18aebae1.entry.js} +1 -1
- package/dist/{paperless/p-D5R5Y1FW.js → build/p-CU4DsLKq.js} +1 -1
- package/dist/build/{p-dd2db526.js → p-dd5b5648.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-j7xVExba.js → icons-B5X261jk.js} +5 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +11 -4
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/assets/icons/general/scroll.svg +1 -0
- package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
- package/dist/collection/components/helpers/table/row-action/table-row-action.component.js +1 -1
- package/dist/collection/components/molecules/button/button.component.js +1 -1
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +1 -1
- package/dist/collection/components/molecules/label/label.component.js +1 -1
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +2 -2
- package/dist/collection/components/molecules/table/header/table-header.component.js +33 -5
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +1 -1
- package/dist/collection/utils/icons.js +3 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-AdgmVWQg.js → p-9C3ias2a.js} +1 -1
- package/dist/components/{p-BG0voO8b.js → p-A2wMRQKW.js} +1 -1
- package/dist/components/{p-DI_ECJzt.js → p-BDYSnb7i.js} +1 -1
- package/dist/components/{p-BD4ZVzaR.js → p-BE5gs-wy.js} +1 -1
- package/dist/components/{p-DFZS6Jig.js → p-BHcIe6BE.js} +1 -1
- package/dist/components/{p-B2OsP4eD.js → p-BoI3_eAE.js} +1 -1
- package/dist/components/{p-CK97bsy0.js → p-BrFVDEeC.js} +1 -1
- package/dist/components/{p-oS1-cdrr.js → p-BrFy12TR.js} +1 -1
- package/dist/components/{p-CUZ_fbsu.js → p-C5n669YA.js} +1 -1
- package/dist/components/{p-BqRMTJiz.js → p-C7j7Um7Y.js} +1 -1
- package/dist/components/{p-B95c9dkd.js → p-CB3RfZL6.js} +1 -1
- package/dist/components/{p-A2evcUTz.js → p-CMhIKf1I.js} +1 -1
- package/dist/components/{p-BzkJl46a.js → p-CNtLMu6c.js} +1 -1
- package/dist/{build/p-D5R5Y1FW.js → components/p-CU4DsLKq.js} +1 -1
- package/dist/components/{p-DXNPGJOI.js → p-DHLrIt0b.js} +1 -1
- package/dist/components/{p-DwJAKJDy.js → p-DL2YlEpH.js} +1 -1
- package/dist/components/p-DbRPTfvT.js +1 -0
- package/dist/components/{p-Bzz8LM5X.js → p-PKBe_c-k.js} +1 -1
- package/dist/components/{p-CuKlo0QR.js → p-Tuv_bAJ2.js} +1 -1
- package/dist/components/{p-jjbT-vs8.js → p-UUd1zusc.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-item.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-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/{p-DMdgkHjq.js → p-lss590AG.js} +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-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 +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.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.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/{icons-D5R5Y1FW.js → icons-CU4DsLKq.js} +5 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-empty-state_8.entry.js +11 -4
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/{build/p-e1fa4cc2.entry.js → paperless/p-0380b299.entry.js} +1 -1
- package/dist/paperless/{p-9f1beebc.entry.js → p-18aebae1.entry.js} +1 -1
- package/dist/{components/p-D5R5Y1FW.js → paperless/p-CU4DsLKq.js} +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/table/header/table-header.component.d.ts +4 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/utils/icons.d.ts +2 -0
- package/hydrate/index.js +16 -4
- package/hydrate/index.mjs +16 -4
- package/package.json +1 -1
- package/dist/components/p-DXkmWNXW.js +0 -1
|
@@ -14,6 +14,10 @@ export declare class TableHeader {
|
|
|
14
14
|
* Active quick filter identifier
|
|
15
15
|
*/
|
|
16
16
|
activeQuickFilterIdentifier: string;
|
|
17
|
+
/**
|
|
18
|
+
* Wether to hide quick filters on mobile
|
|
19
|
+
*/
|
|
20
|
+
hideQuickFiltersOnMobile: boolean;
|
|
17
21
|
/**
|
|
18
22
|
* Wether we want to show loading state
|
|
19
23
|
*/
|
|
@@ -2373,6 +2373,11 @@ export namespace Components {
|
|
|
2373
2373
|
* @default this._defaultFilterButtonTemplate
|
|
2374
2374
|
*/
|
|
2375
2375
|
"filterButtonTemplate": templateFunc5;
|
|
2376
|
+
/**
|
|
2377
|
+
* Wether to hide quick filters on mobile
|
|
2378
|
+
* @default true
|
|
2379
|
+
*/
|
|
2380
|
+
"hideQuickFiltersOnMobile": boolean;
|
|
2376
2381
|
/**
|
|
2377
2382
|
* The amount of items that are selected
|
|
2378
2383
|
* @default 0
|
|
@@ -6234,6 +6239,11 @@ declare namespace LocalJSX {
|
|
|
6234
6239
|
* @default this._defaultFilterButtonTemplate
|
|
6235
6240
|
*/
|
|
6236
6241
|
"filterButtonTemplate"?: templateFunc5;
|
|
6242
|
+
/**
|
|
6243
|
+
* Wether to hide quick filters on mobile
|
|
6244
|
+
* @default true
|
|
6245
|
+
*/
|
|
6246
|
+
"hideQuickFiltersOnMobile"?: boolean;
|
|
6237
6247
|
/**
|
|
6238
6248
|
* The amount of items that are selected
|
|
6239
6249
|
* @default 0
|
|
@@ -93,6 +93,7 @@ export declare const categorized: {
|
|
|
93
93
|
receipt: string;
|
|
94
94
|
reset: string;
|
|
95
95
|
running: string;
|
|
96
|
+
scroll: string;
|
|
96
97
|
search: string;
|
|
97
98
|
send: string;
|
|
98
99
|
settings: string;
|
|
@@ -229,6 +230,7 @@ export declare const icons: {
|
|
|
229
230
|
receipt: string;
|
|
230
231
|
reset: string;
|
|
231
232
|
running: string;
|
|
233
|
+
scroll: string;
|
|
232
234
|
search: string;
|
|
233
235
|
send: string;
|
|
234
236
|
settings: string;
|
package/hydrate/index.js
CHANGED
|
@@ -7832,6 +7832,9 @@ var running = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xml
|
|
|
7832
7832
|
</svg>
|
|
7833
7833
|
`;
|
|
7834
7834
|
|
|
7835
|
+
var scroll = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><path stroke="currentColor" d="M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"></path></svg>
|
|
7836
|
+
`;
|
|
7837
|
+
|
|
7835
7838
|
var search$1 = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 16 16">
|
|
7836
7839
|
<g clip-path="url(#a)">
|
|
7837
7840
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10Zm3.536-1.464L14 14"/>
|
|
@@ -8414,6 +8417,7 @@ const icons = {
|
|
|
8414
8417
|
receipt,
|
|
8415
8418
|
reset,
|
|
8416
8419
|
running,
|
|
8420
|
+
scroll,
|
|
8417
8421
|
search: search$1,
|
|
8418
8422
|
send,
|
|
8419
8423
|
settings,
|
|
@@ -110683,6 +110687,10 @@ class TableHeader {
|
|
|
110683
110687
|
* Active quick filter identifier
|
|
110684
110688
|
*/
|
|
110685
110689
|
activeQuickFilterIdentifier;
|
|
110690
|
+
/**
|
|
110691
|
+
* Wether to hide quick filters on mobile
|
|
110692
|
+
*/
|
|
110693
|
+
hideQuickFiltersOnMobile = true;
|
|
110686
110694
|
/**
|
|
110687
110695
|
* Wether we want to show loading state
|
|
110688
110696
|
*/
|
|
@@ -110785,10 +110793,13 @@ class TableHeader {
|
|
|
110785
110793
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
110786
110794
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
110787
110795
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
110788
|
-
return (hAsync(ThemedHost, { key: '
|
|
110789
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (hAsync("div", { key: '
|
|
110796
|
+
return (hAsync(ThemedHost, { key: 'c77d8b8a5761d85fa731ac4bbf9ae704182db662' }, hAsync("div", { key: '326b6a259d665f75dbf0b31efddab55529670474', class: header() }, this.loading && (hAsync("p-loader", { key: '2023b41f25ae827ef05d9b32776f6d9b778ff244', class: '\n hidden h-8 w-3/4 rounded\n desktop-xs:flex\n ', variant: 'ghost' })), !this.loading &&
|
|
110797
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (hAsync("div", { key: '9878787e280a54674a01cd14b930298eb76602b7', class: '\n flex flex-col justify-start gap-4 justify-self-start\n desktop-xs:flex-row\n ' }, hasCustomFilterSlot && hAsync("slot", { key: '6451546fd33c35ff649990d83e9e689d2c049451', name: 'custom-filter' }), quickFilters.length > 0 && (hAsync("p-segment-container", { key: '119fbbf7e666bd4fd8d81a051bbec530d992a3e5', class: cn({
|
|
110798
|
+
'hidden desktop-xs:flex': this.hideQuickFiltersOnMobile,
|
|
110799
|
+
flex: !this.hideQuickFiltersOnMobile,
|
|
110800
|
+
}) }, quickFilters.map(item => (hAsync("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
110790
110801
|
? item.text
|
|
110791
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), hAsync("div", { key: '
|
|
110802
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), hAsync("div", { key: '789a79b292ae29db76ed9267cca90bf3a19dbe0b', class: '\n flex flex-col justify-end gap-2\n desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center\n ' }, this.enableSearch && (hAsync("p-field", { key: '7f90862d3bb0c41420de733fe38c1a351c38fb99', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), hAsync("div", { key: 'c027c1a9fcfc608a3b7e14baca90ceb7ccbc430b', class: 'flex items-center gap-2' }, this.enableFilter && (hAsync("p-button", { key: 'bd70812488a36ee0931b5d3c4948101d56eddcc7', class: `
|
|
110792
110803
|
w-full
|
|
110793
110804
|
${this.enableFilterDesktop
|
|
110794
110805
|
? 'desktop-xs:w-auto'
|
|
@@ -110796,7 +110807,7 @@ class TableHeader {
|
|
|
110796
110807
|
`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
110797
110808
|
? this.filterButtonTemplate()
|
|
110798
110809
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
110799
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '
|
|
110810
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '602f7968fd60f4ea23909d1fcf23c1d32fef3721', class: '\n hidden h-4\n tablet:flex\n dark:text-white/15\n ', variant: 'vertical' })), !this.loading && this.enableExport && (hAsync("p-button", { key: 'a55cf0b5e09b18b5cf7d9f1c6ab33aac6160b9ec', class: '\n w-full\n desktop-xs:w-auto\n ', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && hAsync("slot", { key: '47435fd94bc6d8dced05be088e9d157fb0a46c92', name: 'custom-actions' })), this.enableAction && this.canUseAction && (hAsync("div", { key: '42e42671e2b19c9f262b9a7dba9c080d1439acbd', class: '\n fixed bottom-0 left-0 z-[2] block w-full border border-solid\n border-transparent bg-white p-4\n desktop-xs:hidden\n dark:border-t-hurricane-400 dark:bg-hurricane-500\n ' }, this._buttonTemplate(true))))));
|
|
110800
110811
|
}
|
|
110801
110812
|
async _setLocales() {
|
|
110802
110813
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -110832,6 +110843,7 @@ class TableHeader {
|
|
|
110832
110843
|
"$members$": {
|
|
110833
110844
|
"quickFilters": [1, "quick-filters"],
|
|
110834
110845
|
"activeQuickFilterIdentifier": [1, "active-quick-filter-identifier"],
|
|
110846
|
+
"hideQuickFiltersOnMobile": [4, "hide-quick-filters-on-mobile"],
|
|
110835
110847
|
"loading": [4],
|
|
110836
110848
|
"enableSearch": [4, "enable-search"],
|
|
110837
110849
|
"itemsSelectedAmount": [2, "items-selected-amount"],
|
package/hydrate/index.mjs
CHANGED
|
@@ -7830,6 +7830,9 @@ var running = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xml
|
|
|
7830
7830
|
</svg>
|
|
7831
7831
|
`;
|
|
7832
7832
|
|
|
7833
|
+
var scroll = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><path stroke="currentColor" d="M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"></path></svg>
|
|
7834
|
+
`;
|
|
7835
|
+
|
|
7833
7836
|
var search$1 = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 16 16">
|
|
7834
7837
|
<g clip-path="url(#a)">
|
|
7835
7838
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10Zm3.536-1.464L14 14"/>
|
|
@@ -8412,6 +8415,7 @@ const icons = {
|
|
|
8412
8415
|
receipt,
|
|
8413
8416
|
reset,
|
|
8414
8417
|
running,
|
|
8418
|
+
scroll,
|
|
8415
8419
|
search: search$1,
|
|
8416
8420
|
send,
|
|
8417
8421
|
settings,
|
|
@@ -110681,6 +110685,10 @@ class TableHeader {
|
|
|
110681
110685
|
* Active quick filter identifier
|
|
110682
110686
|
*/
|
|
110683
110687
|
activeQuickFilterIdentifier;
|
|
110688
|
+
/**
|
|
110689
|
+
* Wether to hide quick filters on mobile
|
|
110690
|
+
*/
|
|
110691
|
+
hideQuickFiltersOnMobile = true;
|
|
110684
110692
|
/**
|
|
110685
110693
|
* Wether we want to show loading state
|
|
110686
110694
|
*/
|
|
@@ -110783,10 +110791,13 @@ class TableHeader {
|
|
|
110783
110791
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
110784
110792
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
110785
110793
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
110786
|
-
return (hAsync(ThemedHost, { key: '
|
|
110787
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (hAsync("div", { key: '
|
|
110794
|
+
return (hAsync(ThemedHost, { key: 'c77d8b8a5761d85fa731ac4bbf9ae704182db662' }, hAsync("div", { key: '326b6a259d665f75dbf0b31efddab55529670474', class: header() }, this.loading && (hAsync("p-loader", { key: '2023b41f25ae827ef05d9b32776f6d9b778ff244', class: '\n hidden h-8 w-3/4 rounded\n desktop-xs:flex\n ', variant: 'ghost' })), !this.loading &&
|
|
110795
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (hAsync("div", { key: '9878787e280a54674a01cd14b930298eb76602b7', class: '\n flex flex-col justify-start gap-4 justify-self-start\n desktop-xs:flex-row\n ' }, hasCustomFilterSlot && hAsync("slot", { key: '6451546fd33c35ff649990d83e9e689d2c049451', name: 'custom-filter' }), quickFilters.length > 0 && (hAsync("p-segment-container", { key: '119fbbf7e666bd4fd8d81a051bbec530d992a3e5', class: cn({
|
|
110796
|
+
'hidden desktop-xs:flex': this.hideQuickFiltersOnMobile,
|
|
110797
|
+
flex: !this.hideQuickFiltersOnMobile,
|
|
110798
|
+
}) }, quickFilters.map(item => (hAsync("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
110788
110799
|
? item.text
|
|
110789
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), hAsync("div", { key: '
|
|
110800
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), hAsync("div", { key: '789a79b292ae29db76ed9267cca90bf3a19dbe0b', class: '\n flex flex-col justify-end gap-2\n desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center\n ' }, this.enableSearch && (hAsync("p-field", { key: '7f90862d3bb0c41420de733fe38c1a351c38fb99', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), hAsync("div", { key: 'c027c1a9fcfc608a3b7e14baca90ceb7ccbc430b', class: 'flex items-center gap-2' }, this.enableFilter && (hAsync("p-button", { key: 'bd70812488a36ee0931b5d3c4948101d56eddcc7', class: `
|
|
110790
110801
|
w-full
|
|
110791
110802
|
${this.enableFilterDesktop
|
|
110792
110803
|
? 'desktop-xs:w-auto'
|
|
@@ -110794,7 +110805,7 @@ class TableHeader {
|
|
|
110794
110805
|
`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
110795
110806
|
? this.filterButtonTemplate()
|
|
110796
110807
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
110797
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '
|
|
110808
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '602f7968fd60f4ea23909d1fcf23c1d32fef3721', class: '\n hidden h-4\n tablet:flex\n dark:text-white/15\n ', variant: 'vertical' })), !this.loading && this.enableExport && (hAsync("p-button", { key: 'a55cf0b5e09b18b5cf7d9f1c6ab33aac6160b9ec', class: '\n w-full\n desktop-xs:w-auto\n ', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && hAsync("slot", { key: '47435fd94bc6d8dced05be088e9d157fb0a46c92', name: 'custom-actions' })), this.enableAction && this.canUseAction && (hAsync("div", { key: '42e42671e2b19c9f262b9a7dba9c080d1439acbd', class: '\n fixed bottom-0 left-0 z-[2] block w-full border border-solid\n border-transparent bg-white p-4\n desktop-xs:hidden\n dark:border-t-hurricane-400 dark:bg-hurricane-500\n ' }, this._buttonTemplate(true))))));
|
|
110798
110809
|
}
|
|
110799
110810
|
async _setLocales() {
|
|
110800
110811
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -110830,6 +110841,7 @@ class TableHeader {
|
|
|
110830
110841
|
"$members$": {
|
|
110831
110842
|
"quickFilters": [1, "quick-filters"],
|
|
110832
110843
|
"activeQuickFilterIdentifier": [1, "active-quick-filter-identifier"],
|
|
110844
|
+
"hideQuickFiltersOnMobile": [4, "hide-quick-filters-on-mobile"],
|
|
110833
110845
|
"loading": [4],
|
|
110834
110846
|
"enableSearch": [4, "enable-search"],
|
|
110835
110847
|
"itemsSelectedAmount": [2, "items-selected-amount"],
|