mmhglobal-dynamicform 2.6.1 → 2.6.3
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 +8 -0
- package/esm2020/lib/zgrid/zgrid.component.mjs +7 -3
- package/esm2020/lib/zudf/zudf.component.mjs +7 -3
- package/fesm2015/mmhglobal-dynamicform.mjs +12 -4
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +12 -4
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8155,7 +8155,9 @@ class ZgridComponent extends DataListingFieldBase {
|
|
|
8155
8155
|
if (this.zgrid) {
|
|
8156
8156
|
if (this.isUseLocalData()) {
|
|
8157
8157
|
this.zgrid.data = gData;
|
|
8158
|
-
this.
|
|
8158
|
+
if (!this.data.DisableAutoAppendGridDateFilterCol) {
|
|
8159
|
+
this.setDateColForFiltering();
|
|
8160
|
+
}
|
|
8159
8161
|
}
|
|
8160
8162
|
else {
|
|
8161
8163
|
this.zgrid.grid.data = {
|
|
@@ -8644,7 +8646,9 @@ class ZgridComponent extends DataListingFieldBase {
|
|
|
8644
8646
|
this.zgrid = grid;
|
|
8645
8647
|
this._state = this.zgrid.state;
|
|
8646
8648
|
this.columns = this.zgrid.gridColumns;
|
|
8647
|
-
this.
|
|
8649
|
+
if (!this.data.DisableAutoAppendGridDateFilterCol) {
|
|
8650
|
+
this.setDateColForFiltering();
|
|
8651
|
+
}
|
|
8648
8652
|
this.setupGridWithInlineEdit();
|
|
8649
8653
|
this.setupPopoverFeature(this.columns, this.getGridData());
|
|
8650
8654
|
}), switchMap$1(() => {
|
|
@@ -12054,17 +12058,20 @@ class ZudfComponent extends ContainerFieldBase {
|
|
|
12054
12058
|
const patchedModelData = this.addZModelPropertyPrefix(modelData);
|
|
12055
12059
|
// Update the zModel values of the form group
|
|
12056
12060
|
Object.assign(group[this.componentScopeName].zModel, patchedModelData);
|
|
12057
|
-
// Update grid values for any arrays in the model data
|
|
12061
|
+
// Update grid values for any arrays in the model data base on kcard component.
|
|
12058
12062
|
for (const model in patchedModelData) {
|
|
12059
12063
|
if (Array.isArray(patchedModelData[model])) {
|
|
12060
12064
|
const gridValue = `${model}${this.prefixValueOption}`;
|
|
12061
12065
|
const gridDataSource = `${model}${this.prefixDataSourceName}`;
|
|
12066
|
+
//const component = ZComponentHelper.getComponentByValue(this.group, model);
|
|
12067
|
+
//if (component?.data?.Type === 'kcard' || component?.data?.Type === 'zgrid') {
|
|
12062
12068
|
// Update the data source for the grid
|
|
12063
12069
|
group[gridDataSource] = patchedModelData[model];
|
|
12064
12070
|
// Update the grid value
|
|
12065
12071
|
if (group[gridValue]) {
|
|
12066
12072
|
group[gridValue].setData(group[gridDataSource]);
|
|
12067
12073
|
}
|
|
12074
|
+
//}
|
|
12068
12075
|
}
|
|
12069
12076
|
}
|
|
12070
12077
|
// Update the form group model
|
|
@@ -12294,7 +12301,8 @@ class ZudfComponent extends ContainerFieldBase {
|
|
|
12294
12301
|
"Type": "zgrid",
|
|
12295
12302
|
"Value": 'group.' + gridValueName,
|
|
12296
12303
|
"Visible": true,
|
|
12297
|
-
"WidthReduce": 500
|
|
12304
|
+
"WidthReduce": 500,
|
|
12305
|
+
"DisableAutoAppendGridDateFilterCol": true
|
|
12298
12306
|
};
|
|
12299
12307
|
// Create a property in the group object based on the above declaration, except Name, and also insert column fields.
|
|
12300
12308
|
// Use the grouping value as the column and skip inserting any container type.
|