mmhglobal-dynamicform 2.10.3 → 2.10.4
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/README.md +14 -9
- package/esm2020/lib/ztreelist/ztreelist.component.mjs +12 -2
- package/fesm2015/mmhglobal-dynamicform.mjs +12 -1
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +11 -1
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/lib/ztreelist/ztreelist.component.d.ts +4 -3
- package/package.json +1 -1
|
@@ -11219,6 +11219,9 @@ class ZtreelistComponent extends DataListingFieldBase {
|
|
|
11219
11219
|
this.options.pageAble = this.data.pageAble != undefined ? this.data.pageAble : false;
|
|
11220
11220
|
let zfields = [];
|
|
11221
11221
|
this.fieldService.getFormFieldCode(this.data["ColumnFieldCode"], "FormField", null, null).pipe(switchMap(fields => {
|
|
11222
|
+
//Before get grid data
|
|
11223
|
+
return this.beforeLoadColumn(this.group, fields, this);
|
|
11224
|
+
}), switchMap(fields => {
|
|
11222
11225
|
zfields = fields;
|
|
11223
11226
|
return this.getButtonsFromZButtons(fields);
|
|
11224
11227
|
}), tap$1((buttons) => {
|
|
@@ -11232,6 +11235,13 @@ class ZtreelistComponent extends DataListingFieldBase {
|
|
|
11232
11235
|
this.isLoading = false;
|
|
11233
11236
|
})).subscribe();
|
|
11234
11237
|
}
|
|
11238
|
+
beforeLoadColumn(group, fields, me) {
|
|
11239
|
+
if (!group.beforeLoadColumn) {
|
|
11240
|
+
console.warn("group.beforeLoadColumn is undefined");
|
|
11241
|
+
return of(fields);
|
|
11242
|
+
}
|
|
11243
|
+
return group.beforeLoadColumn(group, fields, me);
|
|
11244
|
+
}
|
|
11235
11245
|
// const zbuttonFields = [] as Array<ZField>;
|
|
11236
11246
|
// fields.forEach(field => {
|
|
11237
11247
|
// if (field.Type === "zbuttons") {
|
|
@@ -11323,7 +11333,7 @@ class ZtreelistComponent extends DataListingFieldBase {
|
|
|
11323
11333
|
});
|
|
11324
11334
|
}
|
|
11325
11335
|
insertField(field) {
|
|
11326
|
-
let colTitle = field.Name;
|
|
11336
|
+
let colTitle = field.DisplayName ?? field.Name;
|
|
11327
11337
|
if (colTitle.toString().startsWith('group.')) {
|
|
11328
11338
|
colTitle = ZComponentHelper.getGroupValue(colTitle.toString(), this.group);
|
|
11329
11339
|
}
|