@esfaenza/es-table 11.2.147 → 11.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.
- package/bundles/esfaenza-es-table.umd.js +6 -4
- 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 +6 -5
- package/fesm2015/esfaenza-es-table.js +5 -4
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4831,7 +4831,8 @@
|
|
|
4831
4831
|
* @param {any[]} items Oggetti da selezionare o deselezionare
|
|
4832
4832
|
* @param {boolean} select **true** per selezionarli, **false** per non toccarli
|
|
4833
4833
|
*/
|
|
4834
|
-
EsTableComponent.prototype.setSelectionStatus = function (items, all, select) {
|
|
4834
|
+
EsTableComponent.prototype.setSelectionStatus = function (items, all, select, emit) {
|
|
4835
|
+
if (emit === void 0) { emit = false; }
|
|
4835
4836
|
var _a;
|
|
4836
4837
|
if (all) {
|
|
4837
4838
|
if (!this.SelectAll) {
|
|
@@ -4846,20 +4847,21 @@
|
|
|
4846
4847
|
else
|
|
4847
4848
|
this.selection_H.handleItemsSelection(items, select);
|
|
4848
4849
|
this.cdr.markForCheck();
|
|
4850
|
+
if (emit)
|
|
4851
|
+
this.onSelectionChanged.emit(this.arraymodeSelection);
|
|
4849
4852
|
};
|
|
4850
4853
|
/**
|
|
4851
4854
|
* Effettua un hard reset della selezione
|
|
4852
4855
|
*/
|
|
4853
4856
|
EsTableComponent.prototype.resetSelection = function (emit) {
|
|
4854
4857
|
if (emit === void 0) { emit = false; }
|
|
4855
|
-
var _a;
|
|
4856
4858
|
this.selection_H.clearSelectionCaches();
|
|
4857
|
-
if (
|
|
4859
|
+
if (this.viewMode && this.View) {
|
|
4858
4860
|
this.View.selection = new ItemsSelection([]);
|
|
4859
4861
|
if (emit)
|
|
4860
4862
|
this.onSelectionChanged.emit(this.View.selection);
|
|
4861
4863
|
}
|
|
4862
|
-
else if (this.
|
|
4864
|
+
else if (this.arrayMode) {
|
|
4863
4865
|
this.arraymodeSelection = new ItemsSelection([]);
|
|
4864
4866
|
if (emit)
|
|
4865
4867
|
this.onSelectionChanged.emit(this.arraymodeSelection);
|