Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e680085a4 | |||
| 286a843b67 | |||
| df7c5ebafc | |||
| 9927323a9d |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@design.estate/dees-catalog",
|
||||
"version": "1.0.213",
|
||||
"version": "1.0.215",
|
||||
"private": false,
|
||||
"description": "website for lossless.com",
|
||||
"main": "dist_ts_web/index.js",
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@design.estate/dees-catalog',
|
||||
version: '1.0.213',
|
||||
version: '1.0.215',
|
||||
description: 'website for lossless.com'
|
||||
}
|
||||
|
||||
@@ -57,10 +57,12 @@ export interface ITableAction<T = any> {
|
||||
* @param itemArg
|
||||
* @returns
|
||||
*/
|
||||
actionFunc: (optionsArg: {
|
||||
actionFunc: (actionDataArg: ITableActionDataArg<T>) => Promise<any>;
|
||||
}
|
||||
|
||||
export interface ITableActionDataArg<T> {
|
||||
item: T,
|
||||
dataArray: T[],
|
||||
}) => Promise<any>;
|
||||
table: DeesTable<T>,
|
||||
}
|
||||
|
||||
export type TDisplayFunction<T = any> = (itemArg: T) => object;
|
||||
@@ -120,7 +122,7 @@ export class DeesTable<T> extends DeesElement {
|
||||
public files: File[] = [];
|
||||
public fileWeakMap = new WeakMap();
|
||||
|
||||
public itemChangeSubject = new domtools.plugins.smartrx.rxjs.Subject();
|
||||
public dataChangeSubject = new domtools.plugins.smartrx.rxjs.Subject();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
@@ -344,7 +346,7 @@ export class DeesTable<T> extends DeesElement {
|
||||
@click=${() => {
|
||||
action.actionFunc({
|
||||
item: this.selectedDataRow,
|
||||
dataArray: this.data
|
||||
table: this,
|
||||
});
|
||||
}}
|
||||
>
|
||||
@@ -447,7 +449,7 @@ export class DeesTable<T> extends DeesElement {
|
||||
action: async () => {
|
||||
await action.actionFunc({
|
||||
item: itemArg,
|
||||
dataArray: this.data
|
||||
table: this,
|
||||
});
|
||||
return null;
|
||||
},
|
||||
@@ -471,7 +473,7 @@ export class DeesTable<T> extends DeesElement {
|
||||
if (wantedAction) {
|
||||
wantedAction.actionFunc({
|
||||
item: itemArg,
|
||||
dataArray: this.data
|
||||
table: this,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -491,7 +493,7 @@ export class DeesTable<T> extends DeesElement {
|
||||
class="action"
|
||||
@click=${() => actionArg.actionFunc({
|
||||
item: itemArg,
|
||||
dataArray: this.data
|
||||
table: this,
|
||||
})}
|
||||
>
|
||||
${actionArg.iconName
|
||||
@@ -530,7 +532,7 @@ export class DeesTable<T> extends DeesElement {
|
||||
@click=${() => {
|
||||
action.actionFunc({
|
||||
item: this.selectedDataRow,
|
||||
dataArray: this.data
|
||||
table: this,
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user