@esfaenza/es-table 11.2.124 → 11.2.126
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 +8 -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/esfaenza-es-table.metadata.json +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +3 -3
- package/esm2015/lib/core/handlers/ColumnMetadataHandler.js +2 -1
- package/esm2015/lib/directives/es_th.directive.js +2 -1
- package/esm2015/lib/domain/externals/EsTableColumnsDefinition.js +4 -3
- package/fesm2015/esfaenza-es-table.js +7 -4
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/directives/es_th.directive.d.ts +2 -0
- package/lib/domain/externals/EsTableColumnsDefinition.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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
|
}());
|
|
@@ -4635,7 +4639,7 @@
|
|
|
4635
4639
|
this.PagerOptions.PagerCount = this.View.length || 0;
|
|
4636
4640
|
this.PagerOptions.ShowButtons = this.PagerOptions.ShowButtons && (this.View.length > 10 || (((_a = this.SearchView) === null || _a === void 0 ? void 0 : _a.objectcount) || 0) > 10);
|
|
4637
4641
|
this.PagerOptions.ShowCount = this.PagerOptions.ShowCount || (this.View && this.View.length) || (this.SearchView && this.SearchView.objectcount && this.SearchView.objectcount != -1);
|
|
4638
|
-
this.PagerOptions.ShowPaging = this.PagerOptions.ShowButtons || this.PagerOptions.ShowCount;
|
|
4642
|
+
this.PagerOptions.ShowPaging = this.PagerOptions.ShowPaging && (this.PagerOptions.ShowButtons || this.PagerOptions.ShowCount);
|
|
4639
4643
|
this.PagerOptions.ShowPagingOptions = this.PagerOptions.ShowButtons;
|
|
4640
4644
|
}
|
|
4641
4645
|
else if (this.viewMode) {
|
|
@@ -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 ||
|
|
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,
|