@zeedhi/teknisa-components-common 1.111.0 → 1.112.0

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.
@@ -25,14 +25,14 @@
25
25
  <div class='fl pad1y space-right2'>
26
26
  <span class="strong">100% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>1879/1879</span>
28
+ <span class='fraction'>1881/1881</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
33
  <span class="strong">100% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>781/781</span>
35
+ <span class='fraction'>782/782</span>
36
36
  </div>
37
37
 
38
38
 
@@ -46,7 +46,7 @@
46
46
  <div class='fl pad1y space-right2'>
47
47
  <span class="strong">100% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>1789/1789</span>
49
+ <span class='fraction'>1791/1791</span>
50
50
  </div>
51
51
 
52
52
 
@@ -174,13 +174,13 @@
174
174
  <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
175
175
  </td>
176
176
  <td data-value="100" class="pct high">100%</td>
177
- <td data-value="26" class="abs high">26/26</td>
177
+ <td data-value="28" class="abs high">28/28</td>
178
178
  <td data-value="100" class="pct high">100%</td>
179
179
  <td data-value="2" class="abs high">2/2</td>
180
180
  <td data-value="100" class="pct high">100%</td>
181
181
  <td data-value="9" class="abs high">9/9</td>
182
182
  <td data-value="100" class="pct high">100%</td>
183
- <td data-value="26" class="abs high">26/26</td>
183
+ <td data-value="28" class="abs high">28/28</td>
184
184
  </tr>
185
185
 
186
186
  <tr>
@@ -191,7 +191,7 @@
191
191
  <td data-value="100" class="pct high">100%</td>
192
192
  <td data-value="891" class="abs high">891/891</td>
193
193
  <td data-value="100" class="pct high">100%</td>
194
- <td data-value="372" class="abs high">372/372</td>
194
+ <td data-value="373" class="abs high">373/373</td>
195
195
  <td data-value="100" class="pct high">100%</td>
196
196
  <td data-value="194" class="abs high">194/194</td>
197
197
  <td data-value="100" class="pct high">100%</td>
@@ -416,7 +416,7 @@
416
416
  <div class='footer quiet pad2 space-top1 center small'>
417
417
  Code coverage generated by
418
418
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
419
- at 2025-07-24T14:22:39.195Z
419
+ at 2025-08-07T15:33:08.372Z
420
420
  </div>
421
421
  <script src="prettify.js"></script>
422
422
  <script>
@@ -85,7 +85,7 @@ export { setClick };
85
85
  <div class='footer quiet pad2 space-top1 center small'>
86
86
  Code coverage generated by
87
87
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
88
- at 2025-07-24T14:22:39.195Z
88
+ at 2025-08-07T15:33:08.372Z
89
89
  </div>
90
90
  <script src="../../prettify.js"></script>
91
91
  <script>
@@ -79,7 +79,7 @@ export { flushPromises };
79
79
  <div class='footer quiet pad2 space-top1 center small'>
80
80
  Code coverage generated by
81
81
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
82
- at 2025-07-24T14:22:39.195Z
82
+ at 2025-08-07T15:33:08.372Z
83
83
  </div>
84
84
  <script src="../../prettify.js"></script>
85
85
  <script>
@@ -151,7 +151,7 @@ export { getChild };
151
151
  <div class='footer quiet pad2 space-top1 center small'>
152
152
  Code coverage generated by
153
153
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
154
- at 2025-07-24T14:22:39.195Z
154
+ at 2025-08-07T15:33:08.372Z
155
155
  </div>
156
156
  <script src="../../prettify.js"></script>
157
157
  <script>
@@ -161,7 +161,7 @@
161
161
  <div class='footer quiet pad2 space-top1 center small'>
162
162
  Code coverage generated by
163
163
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
164
- at 2025-07-24T14:22:39.195Z
164
+ at 2025-08-07T15:33:08.372Z
165
165
  </div>
166
166
  <script src="../../prettify.js"></script>
167
167
  <script>
@@ -79,7 +79,7 @@ export * from './mock-created-helper';
79
79
  <div class='footer quiet pad2 space-top1 center small'>
80
80
  Code coverage generated by
81
81
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
82
- at 2025-07-24T14:22:39.195Z
82
+ at 2025-08-07T15:33:08.372Z
83
83
  </div>
84
84
  <script src="../../prettify.js"></script>
85
85
  <script>
@@ -106,7 +106,7 @@ export { mockCreated };
106
106
  <div class='footer quiet pad2 space-top1 center small'>
107
107
  Code coverage generated by
108
108
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
109
- at 2025-07-24T14:22:39.195Z
109
+ at 2025-08-07T15:33:08.372Z
110
110
  </div>
111
111
  <script src="../../prettify.js"></script>
112
112
  <script>
@@ -898,20 +898,20 @@ BRH:43
898
898
  end_of_record
899
899
  TN:
900
900
  SF:src/components/tek-drag-grid/tek-drag-grid.ts
901
- FN:13,(anonymous_0)
902
- FN:26,(anonymous_1)
903
- FN:31,(anonymous_2)
904
- FN:35,(anonymous_3)
905
- FN:40,(anonymous_4)
906
- FN:51,(anonymous_5)
907
- FN:68,(anonymous_6)
908
- FN:83,(anonymous_7)
909
- FN:89,(anonymous_8)
901
+ FN:14,(anonymous_0)
902
+ FN:27,(anonymous_1)
903
+ FN:32,(anonymous_2)
904
+ FN:36,(anonymous_3)
905
+ FN:41,(anonymous_4)
906
+ FN:52,(anonymous_5)
907
+ FN:69,(anonymous_6)
908
+ FN:84,(anonymous_7)
909
+ FN:92,(anonymous_8)
910
910
  FNF:9
911
911
  FNH:9
912
912
  FNDA:4,(anonymous_0)
913
913
  FNDA:1,(anonymous_1)
914
- FNDA:13,(anonymous_2)
914
+ FNDA:12,(anonymous_2)
915
915
  FNDA:1,(anonymous_3)
916
916
  FNDA:10,(anonymous_4)
917
917
  FNDA:1,(anonymous_5)
@@ -920,34 +920,36 @@ FNDA:1,(anonymous_7)
920
920
  FNDA:2,(anonymous_8)
921
921
  DA:1,30
922
922
  DA:3,30
923
- DA:6,30
924
- DA:7,4
925
- DA:9,4
926
- DA:14,4
927
- DA:20,4
923
+ DA:4,30
924
+ DA:7,30
925
+ DA:8,4
926
+ DA:10,4
927
+ DA:15,4
928
928
  DA:21,4
929
929
  DA:22,4
930
930
  DA:23,4
931
- DA:27,1
931
+ DA:24,4
932
932
  DA:28,1
933
- DA:32,13
934
- DA:36,1
933
+ DA:29,1
934
+ DA:33,12
935
935
  DA:37,1
936
- DA:41,10
937
- DA:52,1
938
- DA:59,1
939
- DA:69,1
940
- DA:84,1
941
- DA:86,1
936
+ DA:38,1
937
+ DA:42,10
938
+ DA:53,1
939
+ DA:60,1
940
+ DA:70,1
941
+ DA:85,1
942
942
  DA:87,1
943
- DA:89,1
944
- DA:90,2
945
- DA:93,1
946
- DA:101,1
947
- LF:26
948
- LH:26
949
- BRDA:17,0,0,4
950
- BRDA:17,0,1,4
943
+ DA:88,1
944
+ DA:90,1
945
+ DA:92,1
946
+ DA:93,2
947
+ DA:96,1
948
+ DA:104,1
949
+ LF:28
950
+ LH:28
951
+ BRDA:18,0,0,4
952
+ BRDA:18,0,1,4
951
953
  BRF:2
952
954
  BRH:2
953
955
  end_of_record
@@ -2382,8 +2384,9 @@ BRDA:1215,108,0,1
2382
2384
  BRDA:1242,109,0,1
2383
2385
  BRDA:1242,109,1,1
2384
2386
  BRDA:1270,110,0,12
2385
- BRDA:1270,110,1,10
2386
- BRDA:1270,110,2,2
2387
+ BRDA:1270,110,1,12
2388
+ BRDA:1270,110,2,10
2389
+ BRDA:1270,110,3,2
2387
2390
  BRDA:1282,111,0,1
2388
2391
  BRDA:1283,112,0,1
2389
2392
  BRDA:1301,113,0,4
@@ -2406,8 +2409,8 @@ BRDA:1398,123,0,2
2406
2409
  BRDA:1434,124,0,18
2407
2410
  BRDA:1453,125,0,40
2408
2411
  BRDA:1453,125,1,20
2409
- BRF:193
2410
- BRH:193
2412
+ BRF:194
2413
+ BRH:194
2411
2414
  end_of_record
2412
2415
  TN:
2413
2416
  SF:src/components/tek-grid/interfaces.ts
@@ -3160,7 +3160,7 @@ class TekGrid extends GridEditable {
3160
3160
  return this.gridBase.getFilterInputs(columnName);
3161
3161
  }
3162
3162
  isColumnSearchable(column) {
3163
- return !this.searchVisibleOnly || column.isVisible || column.grouped;
3163
+ return column.searchable && (!this.searchVisibleOnly || column.isVisible || column.grouped);
3164
3164
  }
3165
3165
  getColumn(name) {
3166
3166
  return super.getColumn(name);
@@ -4743,8 +4743,9 @@ class TekDragGrid extends TekGrid {
4743
4743
  const { oldIndex, newIndex } = event;
4744
4744
  const changes = this.draggable.getDragChanges(oldIndex, newIndex, this.datasource, this.getEditedRows());
4745
4745
  this.editing = true;
4746
+ const orderColumn = new GridColumnEditable({ name: this.orderColumnName });
4746
4747
  changes.forEach((change) => {
4747
- this.changeEditableComponent({ name: this.orderColumnName }, change.row, change.value);
4748
+ this.changeEditableComponent(orderColumn, change.row, change.value);
4748
4749
  });
4749
4750
  this.callEvent('inlineEdit', {
4750
4751
  event,
@@ -3164,7 +3164,7 @@
3164
3164
  return this.gridBase.getFilterInputs(columnName);
3165
3165
  }
3166
3166
  isColumnSearchable(column) {
3167
- return !this.searchVisibleOnly || column.isVisible || column.grouped;
3167
+ return column.searchable && (!this.searchVisibleOnly || column.isVisible || column.grouped);
3168
3168
  }
3169
3169
  getColumn(name) {
3170
3170
  return super.getColumn(name);
@@ -4747,8 +4747,9 @@
4747
4747
  const { oldIndex, newIndex } = event;
4748
4748
  const changes = this.draggable.getDragChanges(oldIndex, newIndex, this.datasource, this.getEditedRows());
4749
4749
  this.editing = true;
4750
+ const orderColumn = new common.GridColumnEditable({ name: this.orderColumnName });
4750
4751
  changes.forEach((change) => {
4751
- this.changeEditableComponent({ name: this.orderColumnName }, change.row, change.value);
4752
+ this.changeEditableComponent(orderColumn, change.row, change.value);
4752
4753
  });
4753
4754
  this.callEvent('inlineEdit', {
4754
4755
  event,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-common",
3
- "version": "1.111.0",
3
+ "version": "1.112.0",
4
4
  "description": "Teknisa Components Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -32,5 +32,5 @@
32
32
  "peerDependencies": {
33
33
  "@zeedhi/core": "^1.97.0"
34
34
  },
35
- "gitHead": "55a6a69ca54e1ee419bdf4608e021222eaf45e51"
35
+ "gitHead": "6bb547678e3e35d7bef320fdc80215bd96153b69"
36
36
  }
@@ -78,22 +78,18 @@ export declare class TekMemoryDatasource extends MemoryDatasource implements ITe
78
78
  currentRow?: IDictionary<any> | undefined;
79
79
  data?: IDictionary<any>[] | undefined;
80
80
  filter?: IDictionary<any> | undefined;
81
- limit?: string | number | undefined; /**
82
- * Dynamic Filter Operations
83
- */
81
+ limit?: string | number | undefined;
84
82
  loadAll?: boolean | undefined;
85
83
  loading?: boolean | undefined;
86
84
  order?: string[] | undefined;
87
85
  page?: string | number | undefined;
88
- /**
89
- * Dynamic Filter Relations
90
- */
91
86
  search?: string | undefined;
92
87
  searchIn?: string[] | undefined;
93
88
  searchInParams?: IDictionary<any> | undefined;
94
89
  uniqueKey?: string | undefined;
95
90
  watchUrl?: boolean | undefined;
96
91
  events?: import("@zeedhi/core").IDatasourceEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
92
+ customSearch?: (({ row, component }: import("@zeedhi/core").IEventParam<import("@zeedhi/core").Datasource>) => boolean) | undefined;
97
93
  };
98
94
  /**
99
95
  * Updates filtered data
@@ -83,7 +83,9 @@ export declare class TekRestDatasource extends RestDatasource implements ITekRes
83
83
  localSearch?: boolean | undefined;
84
84
  searchPost?: boolean | undefined;
85
85
  currentRow?: IDictionary<any> | undefined;
86
- data?: IDictionary<any>[] | undefined;
86
+ data?: IDictionary<any>[] | undefined; /**
87
+ * Dynamic Filter Operations
88
+ */
87
89
  filter?: IDictionary<any> | undefined;
88
90
  limit?: string | number | undefined;
89
91
  loadAll?: boolean | undefined;
@@ -92,11 +94,10 @@ export declare class TekRestDatasource extends RestDatasource implements ITekRes
92
94
  page?: string | number | undefined;
93
95
  search?: string | undefined;
94
96
  searchIn?: string[] | undefined;
95
- searchInParams?: IDictionary<any> | undefined; /**
96
- * Dynamic Filter applied flag
97
- */
97
+ searchInParams?: IDictionary<any> | undefined;
98
98
  uniqueKey?: string | undefined;
99
99
  watchUrl?: boolean | undefined;
100
100
  events?: import("@zeedhi/core").IDatasourceEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
101
+ customSearch?: (({ row, component }: import("@zeedhi/core").IEventParam<import("@zeedhi/core").Datasource>) => boolean) | undefined;
101
102
  };
102
103
  }
@@ -1,4 +1,4 @@
1
- import { GridEditable, IComponentRender, IGridColumnEditable, Input, LabelFormatter } from '@zeedhi/common';
1
+ import { GridEditable, IComponentRender, Input, LabelFormatter, GridColumnEditable } from '@zeedhi/common';
2
2
  import { Datasource, IDictionary, IEventParam } from '@zeedhi/core';
3
3
  import { ITekGridAtoms } from '../../utils';
4
4
  import { TekGridColumn } from './grid-column';
@@ -263,5 +263,5 @@ export declare class TekGrid extends GridEditable implements ITekGrid {
263
263
  * change event of editable components
264
264
  * - override to call updateSummary on change
265
265
  */
266
- protected changeEditableComponent(column: IGridColumnEditable, row: IDictionary<any>, value: any, component?: Input): void;
266
+ protected changeEditableComponent(column: GridColumnEditable, row: IDictionary<any>, value: any, component?: Input): void;
267
267
  }