chrv-components 1.11.53 → 1.11.54
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.
|
Binary file
|
|
@@ -3245,7 +3245,11 @@ class ChrDataTable {
|
|
|
3245
3245
|
*/
|
|
3246
3246
|
this.actions = input();
|
|
3247
3247
|
this.contextMenuItems = (entry) => {
|
|
3248
|
-
const entries = this.actions()
|
|
3248
|
+
const entries = this.actions()
|
|
3249
|
+
?.filter((action) => action.disabledCallback
|
|
3250
|
+
? !action.disabledCallback(entry)
|
|
3251
|
+
: !action.disabled || false)
|
|
3252
|
+
?.map((action) => ({
|
|
3249
3253
|
label: action.display,
|
|
3250
3254
|
icon: action.icon,
|
|
3251
3255
|
action: () => action.callback(entry),
|
|
@@ -3483,7 +3487,11 @@ class ChrTableComponent {
|
|
|
3483
3487
|
this.textColor = input('secondary-contrast');
|
|
3484
3488
|
this._page = 1;
|
|
3485
3489
|
this.contextMenuItems = (entry) => {
|
|
3486
|
-
const entries = this.actions()
|
|
3490
|
+
const entries = this.actions()
|
|
3491
|
+
?.filter((action) => action.disabledCallback
|
|
3492
|
+
? !action.disabledCallback(entry)
|
|
3493
|
+
: !action.disabled || false)
|
|
3494
|
+
.map((action) => ({
|
|
3487
3495
|
label: action.display,
|
|
3488
3496
|
icon: action.icon,
|
|
3489
3497
|
action: () => action.callback(entry),
|