@design.estate/dees-catalog 1.0.211 → 1.0.213
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_bundle/bundle.js +60 -60
- package/dist_bundle/bundle.js.map +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/dees-icon.d.ts +1 -19
- package/dist_ts_web/elements/dees-icon.js +3 -21
- package/dist_ts_web/elements/dees-table.d.ts +4 -1
- package/dist_ts_web/elements/dees-table.demo.js +4 -4
- package/dist_ts_web/elements/dees-table.js +21 -6
- package/dist_watch/bundle.js +29 -27
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-icon.ts +2 -19
- package/ts_web/elements/dees-table.demo.ts +3 -3
- package/ts_web/elements/dees-table.ts +24 -6
package/package.json
CHANGED
|
@@ -54,6 +54,7 @@ import {
|
|
|
54
54
|
faMinus as faMinusSolid,
|
|
55
55
|
faPaste as faPasteSolid,
|
|
56
56
|
faPenToSquare as faPenToSquareSolid,
|
|
57
|
+
faPlus as faPlusSolid,
|
|
57
58
|
faRss as faRssSolid,
|
|
58
59
|
faUsers as faUsersSolid,
|
|
59
60
|
faShare as faShareSolid,
|
|
@@ -68,51 +69,34 @@ export const faIcons = {
|
|
|
68
69
|
// normal
|
|
69
70
|
arrowRight: faArrowRightSolid,
|
|
70
71
|
arrowUpRightFromSquare: faArrowUpRightFromSquareSolid,
|
|
71
|
-
arrowUpRightFromSquareSolid: faArrowUpRightFromSquareSolid,
|
|
72
72
|
bell: faBellSolid,
|
|
73
|
-
bellSolid: faBellSolid,
|
|
74
73
|
bug: faBugSolid,
|
|
75
|
-
bugSolid: faBugSolid,
|
|
76
74
|
building: faBuildingSolid,
|
|
77
|
-
buildingSolid: faBuildingSolid,
|
|
78
75
|
caretLeft: faCaretLeftSolid,
|
|
79
|
-
caretLeftSolid: faCaretLeftSolid,
|
|
80
76
|
caretRight: faCaretRightSolid,
|
|
81
|
-
caretRightSolid: faCaretRightSolid,
|
|
82
77
|
check: faCheckSolid,
|
|
83
|
-
checkSolid: faCheckSolid,
|
|
84
78
|
circleInfo: faCircleInfoSolid,
|
|
85
|
-
circleInfoSolid: faCircleInfoSolid,
|
|
86
79
|
circleCheck: faCircleCheckRegular,
|
|
87
80
|
circleCheckSolid: faCircleCheckSolid,
|
|
88
81
|
circleXmark: faCircleXmarkRegular,
|
|
89
82
|
circleXmarkSolid: faCircleXmarkSolid,
|
|
90
83
|
clockRotateLeft: faClockRotateLeftSolid,
|
|
91
|
-
clockRotateLeftSolid: faClockRotateLeftSolid,
|
|
92
84
|
copy: faCopyRegular,
|
|
93
85
|
copySolid: faCopySolid,
|
|
94
86
|
desktop: faDesktopSolid,
|
|
95
|
-
desktopSolid: faDesktopSolid,
|
|
96
87
|
eye: faEyeSolid,
|
|
97
|
-
eyeSolid: faEyeSolid,
|
|
98
88
|
eyeSlash: faEyeSlashSolid,
|
|
99
|
-
eyeSlashSolid: faEyeSlashSolid,
|
|
100
89
|
grip: faGripSolid,
|
|
101
|
-
gripSolid: faGripSolid,
|
|
102
90
|
message: faMessageRegular,
|
|
103
91
|
messageSolid: faMessageSolid,
|
|
104
92
|
mugHot: faMugHotSolid,
|
|
105
|
-
mugHotSolid: faMugHotSolid,
|
|
106
93
|
minus: faMinusSolid,
|
|
107
|
-
minusSolid: faMinusSolid,
|
|
108
94
|
paste: faPasteRegular,
|
|
109
95
|
pasteSolid: faPasteSolid,
|
|
110
96
|
penToSquare: faPenToSquareSolid,
|
|
111
|
-
|
|
97
|
+
plus: faPlusSolid,
|
|
112
98
|
rss: faRssSolid,
|
|
113
|
-
rssSolid: faRssSolid,
|
|
114
99
|
share: faShareSolid,
|
|
115
|
-
shareSolid: faShareSolid,
|
|
116
100
|
sun: faSunRegular,
|
|
117
101
|
sunSolid: faSunSolid,
|
|
118
102
|
trash: faTrashSolid,
|
|
@@ -121,7 +105,6 @@ export const faIcons = {
|
|
|
121
105
|
trashCanSolid: faTrashCanSolid,
|
|
122
106
|
users: faUsersSolid,
|
|
123
107
|
xmark: faXmarkSolid,
|
|
124
|
-
xmarkSolid: faXmarkSolid,
|
|
125
108
|
// brands
|
|
126
109
|
facebook: faFacebook,
|
|
127
110
|
google: faGoogle,
|
|
@@ -58,8 +58,8 @@ export const demoFunc = () => html`
|
|
|
58
58
|
iconName: 'bell',
|
|
59
59
|
useTableBehaviour: 'upload',
|
|
60
60
|
type: ['inRow'],
|
|
61
|
-
actionFunc: async (
|
|
62
|
-
alert(
|
|
61
|
+
actionFunc: async (optionsArg) => {
|
|
62
|
+
alert(optionsArg.item.amount);
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -112,7 +112,7 @@ export const demoFunc = () => html`
|
|
|
112
112
|
type: ['doubleClick', 'contextmenu'],
|
|
113
113
|
iconName: 'eye',
|
|
114
114
|
actionFunc: async (itemArg) => {
|
|
115
|
-
alert(itemArg.amount);
|
|
115
|
+
alert(itemArg.item.amount);
|
|
116
116
|
return null;
|
|
117
117
|
},
|
|
118
118
|
}
|
|
@@ -57,7 +57,10 @@ export interface ITableAction<T = any> {
|
|
|
57
57
|
* @param itemArg
|
|
58
58
|
* @returns
|
|
59
59
|
*/
|
|
60
|
-
actionFunc: (
|
|
60
|
+
actionFunc: (optionsArg: {
|
|
61
|
+
item: T,
|
|
62
|
+
dataArray: T[],
|
|
63
|
+
}) => Promise<any>;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
export type TDisplayFunction<T = any> = (itemArg: T) => object;
|
|
@@ -339,7 +342,10 @@ export class DeesTable<T> extends DeesElement {
|
|
|
339
342
|
html`<div
|
|
340
343
|
class="headerAction"
|
|
341
344
|
@click=${() => {
|
|
342
|
-
action.actionFunc(
|
|
345
|
+
action.actionFunc({
|
|
346
|
+
item: this.selectedDataRow,
|
|
347
|
+
dataArray: this.data
|
|
348
|
+
});
|
|
343
349
|
}}
|
|
344
350
|
>
|
|
345
351
|
${action.iconName
|
|
@@ -439,7 +445,10 @@ export class DeesTable<T> extends DeesElement {
|
|
|
439
445
|
name: action.name,
|
|
440
446
|
iconName: action.iconName as any,
|
|
441
447
|
action: async () => {
|
|
442
|
-
await action.actionFunc(
|
|
448
|
+
await action.actionFunc({
|
|
449
|
+
item: itemArg,
|
|
450
|
+
dataArray: this.data
|
|
451
|
+
});
|
|
443
452
|
return null;
|
|
444
453
|
},
|
|
445
454
|
};
|
|
@@ -460,7 +469,10 @@ export class DeesTable<T> extends DeesElement {
|
|
|
460
469
|
actionArg.type.includes('doubleClick')
|
|
461
470
|
);
|
|
462
471
|
if (wantedAction) {
|
|
463
|
-
wantedAction.actionFunc(
|
|
472
|
+
wantedAction.actionFunc({
|
|
473
|
+
item: itemArg,
|
|
474
|
+
dataArray: this.data
|
|
475
|
+
});
|
|
464
476
|
}
|
|
465
477
|
}
|
|
466
478
|
}}
|
|
@@ -477,7 +489,10 @@ export class DeesTable<T> extends DeesElement {
|
|
|
477
489
|
${this.getActionsForType('inRow').map(
|
|
478
490
|
(actionArg) => html`<div
|
|
479
491
|
class="action"
|
|
480
|
-
@click=${() => actionArg.actionFunc(
|
|
492
|
+
@click=${() => actionArg.actionFunc({
|
|
493
|
+
item: itemArg,
|
|
494
|
+
dataArray: this.data
|
|
495
|
+
})}
|
|
481
496
|
>
|
|
482
497
|
${actionArg.iconName
|
|
483
498
|
? html`
|
|
@@ -513,7 +528,10 @@ export class DeesTable<T> extends DeesElement {
|
|
|
513
528
|
html`<div
|
|
514
529
|
class="footerAction"
|
|
515
530
|
@click=${() => {
|
|
516
|
-
action.actionFunc(
|
|
531
|
+
action.actionFunc({
|
|
532
|
+
item: this.selectedDataRow,
|
|
533
|
+
dataArray: this.data
|
|
534
|
+
});
|
|
517
535
|
}}
|
|
518
536
|
>
|
|
519
537
|
${action.iconName
|