@pongrass/utils 1.1.9-v20 → 1.1.10-v20

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.
@@ -2317,9 +2317,11 @@ class MultiFormComponent {
2317
2317
  }
2318
2318
  handleSearch(field, keyword) {
2319
2319
  const fieldConfig = field.config;
2320
- this.jsonrpcService.postJsonRpcRequest(fieldConfig.method, { keyword }).subscribe((response) => {
2321
- field.options = response?.result || [];
2322
- });
2320
+ if (fieldConfig) {
2321
+ this.jsonrpcService.postJsonRpcRequest(fieldConfig.method, { keyword }).subscribe((response) => {
2322
+ field.options = response?.result || [];
2323
+ });
2324
+ }
2323
2325
  }
2324
2326
  setDefaultAdvanceDate(currentDate, defaultAdvance) {
2325
2327
  if (defaultAdvance === 'weekly') {
@@ -2475,7 +2477,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImpor
2475
2477
  FormCheckInputDirective,
2476
2478
  EditionListGroupedComponent,
2477
2479
  MultiSelectStylerDirective,
2478
- TimePickerModule
2480
+ TimePickerModule,
2479
2481
  ],
2480
2482
  exports: [MultiFormComponent, DateTimePickerComponent]
2481
2483
  }]
@@ -2704,7 +2706,7 @@ class TableGridComponent {
2704
2706
  const initialState = this.tableGridState.map(item => ({
2705
2707
  colId: item.key,
2706
2708
  hide: item.visible === null || item.visible === undefined ? false : !item.visible,
2707
- width: item.width || this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth || 100,
2709
+ width: item.width || this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth,
2708
2710
  sort: item.sort || null
2709
2711
  }));
2710
2712
  this.gridAPI.api.applyColumnState({
@@ -2718,7 +2720,7 @@ class TableGridComponent {
2718
2720
  this.tableGridState.push({
2719
2721
  key: columnState.colId,
2720
2722
  visible: columnState.hide ? !columnState.hide : true,
2721
- width: columnState.width || this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth || 100,
2723
+ width: columnState.width,
2722
2724
  sort: columnState.sort
2723
2725
  });
2724
2726
  });
@@ -2853,7 +2855,7 @@ class TableGridComponent {
2853
2855
  }
2854
2856
  this.tableConfiguration.initialState.forEach((col) => {
2855
2857
  col.visible = col.visible === null || col.visible === undefined ? true : col.visible;
2856
- col.width = col.width || this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth || 100;
2858
+ col.width = col.width;
2857
2859
  col.sort = null;
2858
2860
  this.tableGridState.push(col);
2859
2861
  this.columnsListselectionForm.controls[col.key].setValue(true);
@@ -2863,7 +2865,7 @@ class TableGridComponent {
2863
2865
  state: this.tableGridState.map(item => ({
2864
2866
  colId: item.key,
2865
2867
  hide: item.visible === null || item.visible === undefined ? false : !item.visible,
2866
- width: item.width || this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth || 100,
2868
+ width: item.width,
2867
2869
  sort: item.sort || null,
2868
2870
  flex: 1
2869
2871
  })),
@@ -2929,7 +2931,7 @@ class TableGridComponent {
2929
2931
  const columnState = this.tableGridState.map(item => ({
2930
2932
  colId: item.key,
2931
2933
  hide: true,
2932
- width: this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth || 100,
2934
+ width: item?.width || this.configurationService.allConfigValues()?.tableGridConfig?.defaultMinWidth || 100,
2933
2935
  sort: item.sort || null,
2934
2936
  flex: 1
2935
2937
  }));