@paperless/core 3.24.0 → 3.25.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/build/{p-2f4efe8a.entry.js → p-272721bf.entry.js} +1 -1
- package/dist/build/{p-742c2ea7.js → p-549aa5b8.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +5 -3
- package/dist/collection/components/organisms/table/table.component.js +5 -3
- package/dist/components/p-table.js +1 -1
- package/dist/esm/p-table.entry.js +5 -3
- package/dist/index.html +1 -1
- package/dist/paperless/{p-2f4efe8a.entry.js → p-272721bf.entry.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/hydrate/index.js +5 -3
- package/hydrate/index.mjs +5 -3
- package/package.json +1 -1
package/hydrate/index.js
CHANGED
|
@@ -101168,10 +101168,12 @@ class Table {
|
|
|
101168
101168
|
if (this._items.length === 0) {
|
|
101169
101169
|
return this._getEmptyState();
|
|
101170
101170
|
}
|
|
101171
|
-
return this._items.map((item, index) =>
|
|
101171
|
+
return this._items.map((item, index) => {
|
|
101172
|
+
const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
|
|
101173
|
+
return (hAsync("p-table-row", { checked: this._selectionContains(index), enableHover: this._enableRowSelection || this.enableRowClick || !!actions?.length, isLast: index === this._items.length - 1, onClick: ev => this._rowClick(ev, index) }, this._getRowColumns(item, index), this._getActions(item, index, actions)));
|
|
101174
|
+
});
|
|
101172
101175
|
}
|
|
101173
|
-
_getActions(item, index) {
|
|
101174
|
-
const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
|
|
101176
|
+
_getActions(item, index, actions) {
|
|
101175
101177
|
if (actions?.length && !isMobile()) {
|
|
101176
101178
|
return (hAsync("p-table-row-actions-container", { checked: this._selectionContains(index), slot: 'actions' }, actions.map(a => (hAsync("p-tooltip", { content: a.label, strategy: 'fixed' }, hAsync("p-button", { icon: a.icon, iconFlip: a.iconFlip, iconOnly: true, iconRotate: a.iconRotate, size: 'sm', slot: 'trigger', variant: 'secondary', "data-is-action": true, onClick: () => typeof a.action === 'function' && a.action?.(item, false) }))))));
|
|
101177
101179
|
}
|
package/hydrate/index.mjs
CHANGED
|
@@ -101166,10 +101166,12 @@ class Table {
|
|
|
101166
101166
|
if (this._items.length === 0) {
|
|
101167
101167
|
return this._getEmptyState();
|
|
101168
101168
|
}
|
|
101169
|
-
return this._items.map((item, index) =>
|
|
101169
|
+
return this._items.map((item, index) => {
|
|
101170
|
+
const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
|
|
101171
|
+
return (hAsync("p-table-row", { checked: this._selectionContains(index), enableHover: this._enableRowSelection || this.enableRowClick || !!actions?.length, isLast: index === this._items.length - 1, onClick: ev => this._rowClick(ev, index) }, this._getRowColumns(item, index), this._getActions(item, index, actions)));
|
|
101172
|
+
});
|
|
101170
101173
|
}
|
|
101171
|
-
_getActions(item, index) {
|
|
101172
|
-
const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
|
|
101174
|
+
_getActions(item, index, actions) {
|
|
101173
101175
|
if (actions?.length && !isMobile()) {
|
|
101174
101176
|
return (hAsync("p-table-row-actions-container", { checked: this._selectionContains(index), slot: 'actions' }, actions.map(a => (hAsync("p-tooltip", { content: a.label, strategy: 'fixed' }, hAsync("p-button", { icon: a.icon, iconFlip: a.iconFlip, iconOnly: true, iconRotate: a.iconRotate, size: 'sm', slot: 'trigger', variant: 'secondary', "data-is-action": true, onClick: () => typeof a.action === 'function' && a.action?.(item, false) }))))));
|
|
101175
101177
|
}
|