@vuu-ui/vuu-table-extras 0.8.14-debug → 0.8.15-debug
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/cjs/index.js +0 -20
- package/cjs/index.js.map +2 -2
- package/esm/index.js +0 -20
- package/esm/index.js.map +2 -2
- package/package.json +11 -11
package/esm/index.js
CHANGED
|
@@ -3642,26 +3642,6 @@ var buildContextMenuDescriptors = (dataSource) => (location, options) => {
|
|
|
3642
3642
|
label: `DataGrid Settings`,
|
|
3643
3643
|
options
|
|
3644
3644
|
});
|
|
3645
|
-
} else if (location === "filter") {
|
|
3646
|
-
const { column, filter } = options;
|
|
3647
|
-
const colIsOnlyFilter = (filter == null ? void 0 : filter.column) === (column == null ? void 0 : column.name);
|
|
3648
|
-
descriptors.push({
|
|
3649
|
-
label: "Edit filter",
|
|
3650
|
-
action: "filter-edit",
|
|
3651
|
-
options
|
|
3652
|
-
});
|
|
3653
|
-
descriptors.push({
|
|
3654
|
-
label: "Remove filter",
|
|
3655
|
-
action: "filter-remove-column",
|
|
3656
|
-
options
|
|
3657
|
-
});
|
|
3658
|
-
if (column && !colIsOnlyFilter) {
|
|
3659
|
-
descriptors.push({
|
|
3660
|
-
label: `Remove all filters`,
|
|
3661
|
-
action: "remove-filters",
|
|
3662
|
-
options
|
|
3663
|
-
});
|
|
3664
|
-
}
|
|
3665
3645
|
}
|
|
3666
3646
|
return descriptors;
|
|
3667
3647
|
};
|