@esfaenza/es-table 11.2.123 → 11.2.125

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.
@@ -707,6 +707,7 @@
707
707
  thWrap: [{ type: i0.Input }],
708
708
  thResizable: [{ type: i0.Input }],
709
709
  thClass: [{ type: i0.Input }],
710
+ thShrink: [{ type: i0.Input }],
710
711
  thGroupClass: [{ type: i0.Input }],
711
712
  thIf: [{ type: i0.Input }],
712
713
  thEmpty: [{ type: i0.Input }],
@@ -1177,6 +1178,7 @@
1177
1178
  newtH._multi_content = headerValue;
1178
1179
  newtH.th = prop + "_" + ii;
1179
1180
  newtH.thClass = refth.thClass;
1181
+ newtH.thShrink = refth.thShrink;
1180
1182
  newtH.thIf = refth.thIf;
1181
1183
  newtH.thVisible = refth.thVisible;
1182
1184
  newtH.thWrap = refth.thWrap;
@@ -1849,7 +1851,7 @@
1849
1851
  * @param {string} EditorName Nome dell'editor da utilizzare per la modifica di questo campo
1850
1852
  * @param {string} RendererName Nome del renderer da utilizzare per visualizzare questo campo
1851
1853
  */
1852
- function EsTableColumnsDefinition(Description, PropertyName, RoutePath, RouteParameterProperties, DataOrder, ColumnOrder, Visible, Clss, Orderable, HeaderWraps, PropertyType, PropertySource, EditorName, RendererName, EditorOptions, Pinned, PinnedWidth, Pinnable, Grouping) {
1854
+ function EsTableColumnsDefinition(Description, PropertyName, RoutePath, RouteParameterProperties, DataOrder, ColumnOrder, Visible, Clss, Orderable, HeaderWraps, PropertyType, PropertySource, EditorName, RendererName, EditorOptions, Pinned, PinnedWidth, Pinnable, Grouping, Shrink) {
1853
1855
  if (RoutePath === void 0) { RoutePath = null; }
1854
1856
  if (RouteParameterProperties === void 0) { RouteParameterProperties = null; }
1855
1857
  if (DataOrder === void 0) { DataOrder = null; }
@@ -1867,6 +1869,7 @@
1867
1869
  if (PinnedWidth === void 0) { PinnedWidth = 150; }
1868
1870
  if (Pinnable === void 0) { Pinnable = true; }
1869
1871
  if (Grouping === void 0) { Grouping = ""; }
1872
+ if (Shrink === void 0) { Shrink = false; }
1870
1873
  this.Description = Description;
1871
1874
  this.PropertyName = PropertyName;
1872
1875
  this.RoutePath = RoutePath;
@@ -1886,9 +1889,10 @@
1886
1889
  this.PinnedWidth = PinnedWidth;
1887
1890
  this.Pinnable = Pinnable;
1888
1891
  this.Grouping = Grouping;
1892
+ this.Shrink = Shrink;
1889
1893
  }
1890
1894
  EsTableColumnsDefinition.build = function (parsObj) {
1891
- return new EsTableColumnsDefinition(parsObj.Description, parsObj.PropertyName, parsObj.RoutePath, parsObj.RouteParameterProperties, parsObj.DataOrder, parsObj.ColumnOrder, parsObj.Visible || true, parsObj.Clss, parsObj.Orderable || true, parsObj.HeaderWraps, parsObj.PropertyType, parsObj.PropertySource, parsObj.EditorName, parsObj.RendererName, parsObj.Pinned, parsObj.Grouping);
1895
+ return new EsTableColumnsDefinition(parsObj.Description, parsObj.PropertyName, parsObj.RoutePath, parsObj.RouteParameterProperties, parsObj.DataOrder, parsObj.ColumnOrder, parsObj.Visible || true, parsObj.Clss, parsObj.Orderable || true, parsObj.HeaderWraps, parsObj.PropertyType, parsObj.PropertySource, parsObj.EditorName, parsObj.RendererName, parsObj.Pinned, parsObj.Grouping, parsObj.Shrink);
1892
1896
  };
1893
1897
  return EsTableColumnsDefinition;
1894
1898
  }());
@@ -4972,7 +4976,7 @@
4972
4976
  var th = ths[i];
4973
4977
  var toAdd = void 0;
4974
4978
  if (th.thIf || th.thGroup) {
4975
- var thClass = (th.thClass || '') + (th.thGroup ? " est-col-min" : "");
4979
+ var thClass = (th.thClass || "") + (th.thShrink ? " app-col-min" : "") + (th.thGroup ? " est-col-min" : "");
4976
4980
  toAdd = {
4977
4981
  Pinned: columnsListCache[th.th].pinned,
4978
4982
  Fixed: th.thFixed,
@@ -5291,7 +5295,8 @@
5291
5295
  this.internalWriteCall = false;
5292
5296
  };
5293
5297
  /** Metodo eventualmente richiamabile anche dal componente esterno che permette di forzare un refresh della tabella */
5294
- EsTableComponent.prototype.forceRefresh = function () {
5298
+ EsTableComponent.prototype.forceRefresh = function (relaunchSearch) {
5299
+ if (relaunchSearch === void 0) { relaunchSearch = true; }
5295
5300
  // Se sono in modalità View viene mantenuto in automatico il numero di pagina, ma per la modalità array devo prendere le info di paginazione prima e riapplicarle dopo
5296
5301
  var arrayPage;
5297
5302
  var arrayIpp;
@@ -5299,6 +5304,8 @@
5299
5304
  arrayPage = this.arraymodePage;
5300
5305
  arrayIpp = this.ArraymodeItemsPerPage;
5301
5306
  }
5307
+ if (!relaunchSearch && this.viewMode)
5308
+ this.View.selfsearch = true;
5302
5309
  this.writeValue(this.View);
5303
5310
  this.cdr.detectChanges();
5304
5311
  if (this.arrayMode) {
@@ -5312,8 +5319,9 @@
5312
5319
  * @param {string} groupOrHeader Header di cui settare la visibilità
5313
5320
  * @param {boolean} visibility Visibilità da impostare
5314
5321
  **/
5315
- EsTableComponent.prototype.setHeaderVisibility = function (groupOrHeader, visibility, refresh) {
5322
+ EsTableComponent.prototype.setHeaderVisibility = function (groupOrHeader, visibility, refresh, relaunchSearch) {
5316
5323
  if (refresh === void 0) { refresh = true; }
5324
+ if (relaunchSearch === void 0) { relaunchSearch = true; }
5317
5325
  var groupOrHead = this.thsCache[groupOrHeader];
5318
5326
  if (!groupOrHead)
5319
5327
  return;
@@ -5326,7 +5334,7 @@
5326
5334
  }
5327
5335
  if (refresh) {
5328
5336
  this.useLocalVisibility = true;
5329
- this.forceRefresh();
5337
+ this.forceRefresh(relaunchSearch);
5330
5338
  }
5331
5339
  };
5332
5340
  /**