@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
|
@@ -4540,6 +4540,8 @@ class EsTableComponent {
|
|
|
4540
4540
|
}
|
|
4541
4541
|
/** Evento che gestisce il comando "Copia" buttando i valori selezionati nella clipboard in base al loro tipo */
|
|
4542
4542
|
handleCopy() {
|
|
4543
|
+
if (!this.RangeSelection)
|
|
4544
|
+
return;
|
|
4543
4545
|
let sel = this.selection_H.getSelectionStatusSelection();
|
|
4544
4546
|
if (sel.length > 0 && sel[0].length > 0) {
|
|
4545
4547
|
var selectionText = this.selection_H.getClipbardTextFromSelection(sel);
|
|
@@ -4549,6 +4551,8 @@ class EsTableComponent {
|
|
|
4549
4551
|
}
|
|
4550
4552
|
/** 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 */
|
|
4551
4553
|
handlePaste() {
|
|
4554
|
+
if (!this.RangeSelection)
|
|
4555
|
+
return;
|
|
4552
4556
|
let sel = this.selection_H.getSelectionStatusSelection();
|
|
4553
4557
|
if (sel.length > 0 && sel[0].length > 0) {
|
|
4554
4558
|
this.clipboardService.getClipboard("matrix", (values) => {
|
|
@@ -4673,7 +4677,7 @@ class EsTableComponent {
|
|
|
4673
4677
|
mousedown(event, rowItem, item) {
|
|
4674
4678
|
var _a, _b;
|
|
4675
4679
|
// Tasto diverso dal click sinistro -> ciao è stato bello e intenso
|
|
4676
|
-
if (event.buttons != 1)
|
|
4680
|
+
if (event.buttons != 1 || !this.RangeSelection)
|
|
4677
4681
|
return;
|
|
4678
4682
|
// Tutti i click su una cella già in edit non devono effettuare la selezione della riga
|
|
4679
4683
|
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)) ||
|
|
@@ -4685,6 +4689,8 @@ class EsTableComponent {
|
|
|
4685
4689
|
this.selection_H.singleCellSelection({ view: event.view, shiftKey: false }, this.firstCoordinates.row, this.firstCoordinates.column);
|
|
4686
4690
|
}
|
|
4687
4691
|
mouseenter(event) {
|
|
4692
|
+
if (!this.RangeSelection)
|
|
4693
|
+
return;
|
|
4688
4694
|
if (event.buttons == 0)
|
|
4689
4695
|
this.mouseIsDown = false;
|
|
4690
4696
|
if (this.mouseIsDown && this.firstCoordinates) {
|
|
@@ -4694,6 +4700,8 @@ class EsTableComponent {
|
|
|
4694
4700
|
}
|
|
4695
4701
|
}
|
|
4696
4702
|
mouseup(event) {
|
|
4703
|
+
if (!this.RangeSelection)
|
|
4704
|
+
return;
|
|
4697
4705
|
this.mouseIsDown = false;
|
|
4698
4706
|
}
|
|
4699
4707
|
}
|