mmhglobal-dynamicform 2.6.1 → 2.6.2

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.
@@ -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.setDateColForFiltering();
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.setDateColForFiltering();
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,16 +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}`;
12062
- // Update the data source for the grid
12063
- group[gridDataSource] = patchedModelData[model];
12064
- // Update the grid value
12065
- if (group[gridValue]) {
12066
- group[gridValue].setData(group[gridDataSource]);
12066
+ // Check is it kcard, sometime can be dropdown.
12067
+ const component = ZComponentHelper.getComponentByValue(this.group, model);
12068
+ if (component?.data?.Type === 'kcard') {
12069
+ // Update the data source for the grid
12070
+ group[gridDataSource] = patchedModelData[model];
12071
+ // Update the grid value
12072
+ if (group[gridValue]) {
12073
+ group[gridValue].setData(group[gridDataSource]);
12074
+ }
12067
12075
  }
12068
12076
  }
12069
12077
  }
@@ -12294,7 +12302,8 @@ class ZudfComponent extends ContainerFieldBase {
12294
12302
  "Type": "zgrid",
12295
12303
  "Value": 'group.' + gridValueName,
12296
12304
  "Visible": true,
12297
- "WidthReduce": 500
12305
+ "WidthReduce": 500,
12306
+ "DisableAutoAppendGridDateFilterCol": true
12298
12307
  };
12299
12308
  // Create a property in the group object based on the above declaration, except Name, and also insert column fields.
12300
12309
  // Use the grouping value as the column and skip inserting any container type.