@esfaenza/es-table 11.2.131 → 11.2.134
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 +19 -14
- 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 +8 -4
- package/esm2015/lib/core/handlers/ColumnMetadataHandler.js +2 -2
- package/esm2015/lib/domain/configuration/EsTableDefaultable.js +1 -1
- package/esm2015/lib/domain/externals/appsearch/AppSearch.js +2 -1
- package/fesm2015/esfaenza-es-table.js +9 -4
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +2 -0
- package/lib/domain/configuration/EsTableDefaultable.d.ts +1 -0
- package/package.json +6 -6
|
@@ -190,6 +190,7 @@ class AppSearch {
|
|
|
190
190
|
aps.items = [];
|
|
191
191
|
var newref = JSON.parse(JSON.stringify(aps));
|
|
192
192
|
newref.items = items;
|
|
193
|
+
newref.page = 1;
|
|
193
194
|
return newref;
|
|
194
195
|
}
|
|
195
196
|
}
|
|
@@ -736,7 +737,7 @@ class ColumnMetadataHandler {
|
|
|
736
737
|
column_ordering: this.utiExts.deepClone(columnsOrderings),
|
|
737
738
|
orders: this.utiExts.deepClone(columnOrders)
|
|
738
739
|
};
|
|
739
|
-
this.prefService.setItem(this.est.ngControl.name, toStore
|
|
740
|
+
this.prefService.setItem(this.est.ngControl.name, toStore).subscribe();
|
|
740
741
|
}
|
|
741
742
|
/**
|
|
742
743
|
* Partendo dagli **EsThs** estrappolo la lista di **EsTableColumn** che questa tabella dovrà eventualmente gestire per Visibilità e Ordine
|
|
@@ -3490,7 +3491,7 @@ Logger.ctorParameters = () => [
|
|
|
3490
3491
|
class EsTableComponent {
|
|
3491
3492
|
/** @ignore */
|
|
3492
3493
|
constructor(ngControl, prefService, deafults, locale, lc, cdr, utilities_H, utiExts, expExts, dateExts, msgExts, copyPasteDetector, clipboardService, logger) {
|
|
3493
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
3494
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
3494
3495
|
this.ngControl = ngControl;
|
|
3495
3496
|
this.prefService = prefService;
|
|
3496
3497
|
this.deafults = deafults;
|
|
@@ -3699,6 +3700,8 @@ class EsTableComponent {
|
|
|
3699
3700
|
this.StartsExpanded = true;
|
|
3700
3701
|
/** Indica se effettuare il salvataggio delle preferenze di ricerca */
|
|
3701
3702
|
this.SavePreferences = null;
|
|
3703
|
+
/** Allineamento di default per celle e headers */
|
|
3704
|
+
this.DefaultAlignment = null;
|
|
3702
3705
|
/** Indica dove visualizzare le informazioni di paginazione, se sopra, sotto o in entrambi */
|
|
3703
3706
|
this.PagingStyle = null;
|
|
3704
3707
|
/** Indica dove visualizzare le informazioni di paginazione, se sopra, sotto o in entrambi */
|
|
@@ -3854,6 +3857,7 @@ class EsTableComponent {
|
|
|
3854
3857
|
this.ShowItemGroupsColumns = this.utilities_H.InputOrDefault(this.ShowItemGroupsColumns, (_q = this.deafults) === null || _q === void 0 ? void 0 : _q.ShowItemGroupsColumns, false);
|
|
3855
3858
|
this.ArraymodeItemsPerPage = this.utilities_H.InputOrDefault(this.ArraymodeItemsPerPage, (_r = this.deafults) === null || _r === void 0 ? void 0 : _r.ArraymodeItemsPerPage, 15);
|
|
3856
3859
|
this.ColumnsPinnable = this.utilities_H.InputOrDefault(this.ColumnsPinnable, (_s = this.deafults) === null || _s === void 0 ? void 0 : _s.ColumnsPinnable, true);
|
|
3860
|
+
this.DefaultAlignment = this.utilities_H.InputOrDefault(this.DefaultAlignment, (_t = this.deafults) === null || _t === void 0 ? void 0 : _t.DefaultAlignment, 'Left');
|
|
3857
3861
|
}
|
|
3858
3862
|
/** @ignore */
|
|
3859
3863
|
ngOnInit() {
|
|
@@ -4410,7 +4414,7 @@ class EsTableComponent {
|
|
|
4410
4414
|
Multi: td._multi,
|
|
4411
4415
|
MultiProp: td._multi ? td.td.split('_')[0] : null,
|
|
4412
4416
|
MultiIndex: td._multi ? td.td.split('_')[1] : null,
|
|
4413
|
-
Alignment: (td.tdAlignment || th.thAlignment ||
|
|
4417
|
+
Alignment: (td.tdAlignment || th.thAlignment || this.DefaultAlignment).toLowerCase(),
|
|
4414
4418
|
Format: td.tdFormat || th.thFormat,
|
|
4415
4419
|
PropertyName: th.thProperty,
|
|
4416
4420
|
PropertyType: th.thType,
|
|
@@ -4490,7 +4494,7 @@ class EsTableComponent {
|
|
|
4490
4494
|
Order: th.thOrder,
|
|
4491
4495
|
Orderable: th.thOrderable,
|
|
4492
4496
|
Template: th.Template,
|
|
4493
|
-
Alignment: (th.thAlignment ||
|
|
4497
|
+
Alignment: (th.thAlignment || this.DefaultAlignment).toLowerCase(),
|
|
4494
4498
|
// Se non è nessun contenuto né nessun template mostro semplicemente l'ID dell'header
|
|
4495
4499
|
Content: th.thStaticContent != null ? th.thStaticContent : th.Template ? '' : th.th,
|
|
4496
4500
|
Wrap: th.thWrap,
|
|
@@ -5169,6 +5173,7 @@ EsTableComponent.propDecorators = {
|
|
|
5169
5173
|
OwnKey: [{ type: Input }],
|
|
5170
5174
|
StartsExpanded: [{ type: Input }],
|
|
5171
5175
|
SavePreferences: [{ type: Input }],
|
|
5176
|
+
DefaultAlignment: [{ type: Input }],
|
|
5172
5177
|
PagingStyle: [{ type: Input }],
|
|
5173
5178
|
RowGroupingPagingStyle: [{ type: Input }],
|
|
5174
5179
|
ItemSourceProperty: [{ type: Input }],
|