Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e680085a4 | |||
| 286a843b67 | |||
| df7c5ebafc | |||
| 9927323a9d |
@@ -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",
|
||||||
|
|||||||
@@ -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'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user