@trudb/tru-common-lib 0.2.148 → 0.2.149
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.
|
@@ -6038,6 +6038,9 @@ class TruDataGridClipboard {
|
|
|
6038
6038
|
getCopiedRows = () => {
|
|
6039
6039
|
return this.copiedRows;
|
|
6040
6040
|
};
|
|
6041
|
+
getCopiedCell = () => {
|
|
6042
|
+
return this.copiedCell;
|
|
6043
|
+
};
|
|
6041
6044
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridClipboard, deps: [{ token: TruUtil }, { token: TruUiNotification }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6042
6045
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridClipboard, providedIn: 'root' });
|
|
6043
6046
|
}
|
|
@@ -6071,7 +6074,7 @@ class TruDataGridCellRenderer {
|
|
|
6071
6074
|
};
|
|
6072
6075
|
onRightClick = (event) => {
|
|
6073
6076
|
event.preventDefault();
|
|
6074
|
-
this.pasteIsDisabled = this.dataGridClipboard.
|
|
6077
|
+
this.pasteIsDisabled = this.dataGridClipboard.getCopiedCell() ? false : true;
|
|
6075
6078
|
let clickedElement = event.target;
|
|
6076
6079
|
if (clickedElement instanceof Element) {
|
|
6077
6080
|
if (this.params.api.getEditingCells().length <= 0) {
|