@esfaenza/es-table 11.2.86 → 11.2.87
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/bundles/esfaenza-es-table.umd.js +9 -1
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +10 -2
- package/fesm2015/esfaenza-es-table.js +9 -1
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -5068,6 +5068,8 @@
|
|
|
5068
5068
|
};
|
|
5069
5069
|
/** Evento che gestisce il comando "Copia" buttando i valori selezionati nella clipboard in base al loro tipo */
|
|
5070
5070
|
EsTableComponent.prototype.handleCopy = function () {
|
|
5071
|
+
if (!this.RangeSelection)
|
|
5072
|
+
return;
|
|
5071
5073
|
var sel = this.selection_H.getSelectionStatusSelection();
|
|
5072
5074
|
if (sel.length > 0 && sel[0].length > 0) {
|
|
5073
5075
|
var selectionText = this.selection_H.getClipbardTextFromSelection(sel);
|
|
@@ -5078,6 +5080,8 @@
|
|
|
5078
5080
|
/** Evento che gestisce il comando "Incolla" prendendo i dati della clipboard e applicandoli al range di selezione attuale in base al tipo delle celle sotto */
|
|
5079
5081
|
EsTableComponent.prototype.handlePaste = function () {
|
|
5080
5082
|
var _this = this;
|
|
5083
|
+
if (!this.RangeSelection)
|
|
5084
|
+
return;
|
|
5081
5085
|
var sel = this.selection_H.getSelectionStatusSelection();
|
|
5082
5086
|
if (sel.length > 0 && sel[0].length > 0) {
|
|
5083
5087
|
this.clipboardService.getClipboard("matrix", function (values) {
|
|
@@ -5204,7 +5208,7 @@
|
|
|
5204
5208
|
EsTableComponent.prototype.mousedown = function (event, rowItem, item) {
|
|
5205
5209
|
var _a, _b;
|
|
5206
5210
|
// Tasto diverso dal click sinistro -> ciao è stato bello e intenso
|
|
5207
|
-
if (event.buttons != 1)
|
|
5211
|
+
if (event.buttons != 1 || !this.RangeSelection)
|
|
5208
5212
|
return;
|
|
5209
5213
|
// Tutti i click su una cella già in edit non devono effettuare la selezione della riga
|
|
5210
5214
|
if ((((_a = this.DynamicRowColumnsDefinition) === null || _a === void 0 ? void 0 : _a.length) > 0 && rowItem.edits && ((_b = rowItem.edits[item._hash]) === null || _b === void 0 ? void 0 : _b._editing)) ||
|
|
@@ -5216,6 +5220,8 @@
|
|
|
5216
5220
|
this.selection_H.singleCellSelection({ view: event.view, shiftKey: false }, this.firstCoordinates.row, this.firstCoordinates.column);
|
|
5217
5221
|
};
|
|
5218
5222
|
EsTableComponent.prototype.mouseenter = function (event) {
|
|
5223
|
+
if (!this.RangeSelection)
|
|
5224
|
+
return;
|
|
5219
5225
|
if (event.buttons == 0)
|
|
5220
5226
|
this.mouseIsDown = false;
|
|
5221
5227
|
if (this.mouseIsDown && this.firstCoordinates) {
|
|
@@ -5225,6 +5231,8 @@
|
|
|
5225
5231
|
}
|
|
5226
5232
|
};
|
|
5227
5233
|
EsTableComponent.prototype.mouseup = function (event) {
|
|
5234
|
+
if (!this.RangeSelection)
|
|
5235
|
+
return;
|
|
5228
5236
|
this.mouseIsDown = false;
|
|
5229
5237
|
};
|
|
5230
5238
|
return EsTableComponent;
|