Compare commits

...

4 Commits

Author SHA1 Message Date
6e680085a4 1.0.215 2023-09-22 20:02:49 +02:00
286a843b67 fix(core): update 2023-09-22 20:02:48 +02:00
df7c5ebafc 1.0.214 2023-09-22 19:42:23 +02:00
9927323a9d fix(core): update 2023-09-22 19:42:23 +02:00
3 changed files with 14 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@design.estate/dees-catalog", "name": "@design.estate/dees-catalog",
"version": "1.0.213", "version": "1.0.215",
"private": false, "private": false,
"description": "website for lossless.com", "description": "website for lossless.com",
"main": "dist_ts_web/index.js", "main": "dist_ts_web/index.js",

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@design.estate/dees-catalog', name: '@design.estate/dees-catalog',
version: '1.0.213', version: '1.0.215',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@@ -57,10 +57,12 @@ export interface ITableAction<T = any> {
* @param itemArg * @param itemArg
* @returns * @returns
*/ */
actionFunc: (optionsArg: { actionFunc: (actionDataArg: ITableActionDataArg<T>) => Promise<any>;
item: T, }
dataArray: T[],
}) => Promise<any>; export interface ITableActionDataArg<T> {
item: T,
table: DeesTable<T>,
} }
export type TDisplayFunction<T = any> = (itemArg: T) => object; export type TDisplayFunction<T = any> = (itemArg: T) => object;
@@ -120,7 +122,7 @@ export class DeesTable<T> extends DeesElement {
public files: File[] = []; public files: File[] = [];
public fileWeakMap = new WeakMap(); public fileWeakMap = new WeakMap();
public itemChangeSubject = new domtools.plugins.smartrx.rxjs.Subject(); public dataChangeSubject = new domtools.plugins.smartrx.rxjs.Subject();
constructor() { constructor() {
super(); super();
@@ -344,7 +346,7 @@ export class DeesTable<T> extends DeesElement {
@click=${() => { @click=${() => {
action.actionFunc({ action.actionFunc({
item: this.selectedDataRow, item: this.selectedDataRow,
dataArray: this.data table: this,
}); });
}} }}
> >
@@ -447,7 +449,7 @@ export class DeesTable<T> extends DeesElement {
action: async () => { action: async () => {
await action.actionFunc({ await action.actionFunc({
item: itemArg, item: itemArg,
dataArray: this.data table: this,
}); });
return null; return null;
}, },
@@ -471,7 +473,7 @@ export class DeesTable<T> extends DeesElement {
if (wantedAction) { if (wantedAction) {
wantedAction.actionFunc({ wantedAction.actionFunc({
item: itemArg, item: itemArg,
dataArray: this.data table: this,
}); });
} }
} }
@@ -491,7 +493,7 @@ export class DeesTable<T> extends DeesElement {
class="action" class="action"
@click=${() => actionArg.actionFunc({ @click=${() => actionArg.actionFunc({
item: itemArg, item: itemArg,
dataArray: this.data table: this,
})} })}
> >
${actionArg.iconName ${actionArg.iconName
@@ -530,7 +532,7 @@ export class DeesTable<T> extends DeesElement {
@click=${() => { @click=${() => {
action.actionFunc({ action.actionFunc({
item: this.selectedDataRow, item: this.selectedDataRow,
dataArray: this.data table: this,
}); });
}} }}
> >