@zeedhi/teknisa-components-common 1.111.0 → 1.113.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.
@@ -9,7 +9,7 @@ var jumpToCode = (function init() {
9
9
  // We don't want to select elements that are direct descendants of another match
10
10
  var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
11
 
12
- // Selecter that finds elements on the page to which we can jump
12
+ // Selector that finds elements on the page to which we can jump
13
13
  var selector =
14
14
  fileListingElements.join(', ') +
15
15
  ', ' +
@@ -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'>1882/1882</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'>1792/1792</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>
@@ -294,13 +294,13 @@
294
294
  <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
295
295
  </td>
296
296
  <td data-value="100" class="pct high">100%</td>
297
- <td data-value="108" class="abs high">108/108</td>
297
+ <td data-value="109" class="abs high">109/109</td>
298
298
  <td data-value="100" class="pct high">100%</td>
299
299
  <td data-value="21" class="abs high">21/21</td>
300
300
  <td data-value="100" class="pct high">100%</td>
301
301
  <td data-value="18" class="abs high">18/18</td>
302
302
  <td data-value="100" class="pct high">100%</td>
303
- <td data-value="105" class="abs high">105/105</td>
303
+ <td data-value="106" class="abs high">106/106</td>
304
304
  </tr>
305
305
 
306
306
  <tr>
@@ -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-21T15:02:07.424Z
420
420
  </div>
421
421
  <script src="prettify.js"></script>
422
422
  <script>
@@ -27,17 +27,31 @@ var addSorting = (function() {
27
27
  function onFilterInput() {
28
28
  const searchValue = document.getElementById('fileSearch').value;
29
29
  const rows = document.getElementsByTagName('tbody')[0].children;
30
+
31
+ // Try to create a RegExp from the searchValue. If it fails (invalid regex),
32
+ // it will be treated as a plain text search
33
+ let searchRegex;
34
+ try {
35
+ searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
36
+ } catch (error) {
37
+ searchRegex = null;
38
+ }
39
+
30
40
  for (let i = 0; i < rows.length; i++) {
31
41
  const row = rows[i];
32
- if (
33
- row.textContent
34
- .toLowerCase()
35
- .includes(searchValue.toLowerCase())
36
- ) {
37
- row.style.display = '';
42
+ let isMatch = false;
43
+
44
+ if (searchRegex) {
45
+ // If a valid regex was created, use it for matching
46
+ isMatch = searchRegex.test(row.textContent);
38
47
  } else {
39
- row.style.display = 'none';
48
+ // Otherwise, fall back to the original plain text search
49
+ isMatch = row.textContent
50
+ .toLowerCase()
51
+ .includes(searchValue.toLowerCase());
40
52
  }
53
+
54
+ row.style.display = isMatch ? '' : 'none';
41
55
  }
42
56
  }
43
57
 
@@ -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-21T15:02:07.424Z
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-21T15:02:07.424Z
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-21T15:02:07.424Z
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-21T15:02:07.424Z
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-21T15:02:07.424Z
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-21T15:02:07.424Z
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
@@ -2806,23 +2809,23 @@ end_of_record
2806
2809
  TN:
2807
2810
  SF:src/components/tek-tree-grid/tree-grid.ts
2808
2811
  FN:189,(anonymous_8)
2809
- FN:296,(anonymous_9)
2810
- FN:309,(anonymous_10)
2811
- FN:329,(anonymous_11)
2812
- FN:334,(anonymous_12)
2813
- FN:339,(anonymous_13)
2814
- FN:348,(anonymous_14)
2815
- FN:353,(anonymous_15)
2816
- FN:364,(anonymous_16)
2817
- FN:365,(anonymous_17)
2818
- FN:368,(anonymous_18)
2819
- FN:379,(anonymous_19)
2820
- FN:412,(anonymous_21)
2821
- FN:415,(anonymous_22)
2822
- FN:425,(anonymous_24)
2823
- FN:440,(anonymous_25)
2824
- FN:444,(anonymous_26)
2825
- FN:448,(anonymous_27)
2812
+ FN:301,(anonymous_9)
2813
+ FN:314,(anonymous_10)
2814
+ FN:334,(anonymous_11)
2815
+ FN:339,(anonymous_12)
2816
+ FN:344,(anonymous_13)
2817
+ FN:353,(anonymous_14)
2818
+ FN:358,(anonymous_15)
2819
+ FN:369,(anonymous_16)
2820
+ FN:370,(anonymous_17)
2821
+ FN:373,(anonymous_18)
2822
+ FN:384,(anonymous_19)
2823
+ FN:417,(anonymous_21)
2824
+ FN:420,(anonymous_22)
2825
+ FN:430,(anonymous_24)
2826
+ FN:445,(anonymous_25)
2827
+ FN:449,(anonymous_26)
2828
+ FN:453,(anonymous_27)
2826
2829
  FNF:18
2827
2830
  FNH:18
2828
2831
  FNDA:18,(anonymous_8)
@@ -2896,81 +2899,82 @@ DA:262,18
2896
2899
  DA:267,18
2897
2900
  DA:272,18
2898
2901
  DA:277,18
2899
- DA:278,18
2900
- DA:279,18
2901
- DA:280,18
2902
- DA:281,18
2903
2902
  DA:282,18
2903
+ DA:283,18
2904
2904
  DA:284,18
2905
- DA:285,3
2906
- DA:288,18
2907
- DA:297,1
2908
- DA:298,1
2909
- DA:301,1
2910
- DA:310,1
2911
- DA:313,1
2912
- DA:314,1
2913
- DA:322,18
2914
- DA:323,18
2915
- DA:324,18
2916
- DA:326,18
2917
- DA:330,3
2918
- DA:331,3
2905
+ DA:285,18
2906
+ DA:286,18
2907
+ DA:287,18
2908
+ DA:289,18
2909
+ DA:290,3
2910
+ DA:293,18
2911
+ DA:302,1
2912
+ DA:303,1
2913
+ DA:306,1
2914
+ DA:315,1
2915
+ DA:318,1
2916
+ DA:319,1
2917
+ DA:327,18
2918
+ DA:328,18
2919
+ DA:329,18
2920
+ DA:331,18
2919
2921
  DA:335,3
2920
2922
  DA:336,3
2921
- DA:340,6
2922
- DA:341,6
2923
+ DA:340,3
2924
+ DA:341,3
2923
2925
  DA:345,6
2924
- DA:349,1
2925
- DA:350,1
2926
- DA:354,2
2926
+ DA:346,6
2927
+ DA:350,6
2928
+ DA:354,1
2927
2929
  DA:355,1
2928
- DA:365,21
2929
- DA:369,2
2930
- DA:373,1
2931
- DA:374,1
2932
- DA:376,1
2933
- DA:380,2
2934
- DA:381,2
2935
- DA:382,2
2930
+ DA:359,2
2931
+ DA:360,1
2932
+ DA:370,21
2933
+ DA:374,2
2934
+ DA:378,1
2935
+ DA:379,1
2936
+ DA:381,1
2936
2937
  DA:385,2
2937
- DA:389,1
2938
- DA:390,1
2939
- DA:395,2
2940
- DA:396,2
2941
- DA:399,2
2942
- DA:412,2
2943
- DA:416,1
2944
- DA:426,2
2945
- DA:427,1
2946
- DA:429,1
2947
- DA:437,2
2948
- DA:441,1
2949
- DA:445,2
2950
- DA:449,1
2951
- LF:105
2952
- LH:105
2953
- BRDA:279,0,0,18
2954
- BRDA:279,0,1,18
2955
- BRDA:281,1,0,18
2956
- BRDA:281,1,1,18
2957
- BRDA:284,2,0,3
2958
- BRDA:297,3,0,1
2959
- BRDA:345,4,0,5
2960
- BRDA:354,5,0,1
2961
- BRDA:369,6,0,1
2962
- BRDA:370,7,0,2
2963
- BRDA:370,7,1,1
2964
- BRDA:374,8,0,1
2965
- BRDA:374,8,1,1
2966
- BRDA:379,9,0,2
2967
- BRDA:380,10,0,2
2968
- BRDA:380,10,1,2
2969
- BRDA:385,11,0,1
2970
- BRDA:386,12,0,2
2971
- BRDA:386,12,1,1
2972
- BRDA:395,13,0,2
2973
- BRDA:426,14,0,1
2938
+ DA:386,2
2939
+ DA:387,2
2940
+ DA:390,2
2941
+ DA:394,1
2942
+ DA:395,1
2943
+ DA:400,2
2944
+ DA:401,2
2945
+ DA:404,2
2946
+ DA:417,2
2947
+ DA:421,1
2948
+ DA:431,2
2949
+ DA:432,1
2950
+ DA:434,1
2951
+ DA:442,2
2952
+ DA:446,1
2953
+ DA:450,2
2954
+ DA:454,1
2955
+ LF:106
2956
+ LH:106
2957
+ BRDA:284,0,0,18
2958
+ BRDA:284,0,1,18
2959
+ BRDA:286,1,0,18
2960
+ BRDA:286,1,1,18
2961
+ BRDA:289,2,0,3
2962
+ BRDA:302,3,0,1
2963
+ BRDA:350,4,0,5
2964
+ BRDA:359,5,0,1
2965
+ BRDA:374,6,0,1
2966
+ BRDA:375,7,0,2
2967
+ BRDA:375,7,1,1
2968
+ BRDA:379,8,0,1
2969
+ BRDA:379,8,1,1
2970
+ BRDA:384,9,0,2
2971
+ BRDA:385,10,0,2
2972
+ BRDA:385,10,1,2
2973
+ BRDA:390,11,0,1
2974
+ BRDA:391,12,0,2
2975
+ BRDA:391,12,1,1
2976
+ BRDA:400,13,0,2
2977
+ BRDA:431,14,0,1
2974
2978
  BRF:21
2975
2979
  BRH:21
2976
2980
  end_of_record
@@ -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);
@@ -4101,6 +4101,7 @@ class TekTreeGrid extends TreeGridEditable {
4101
4101
  this.showExport = this.getInitValue('showExport', props.showExport, this.showExport);
4102
4102
  this.showReload = this.getInitValue('showReload', props.showReload, this.showReload);
4103
4103
  this.exportConfig = this.getInitValue('exportConfig', props.exportConfig, this.exportConfig);
4104
+ this.modalFilterProps = this.getInitValue('modalFilterProps', props.modalFilterProps, this.modalFilterProps);
4104
4105
  this.showCheckboxAllFilter = this.getInitValue('showCheckboxAllFilter', props.showCheckboxAllFilter, this.showCheckboxAllFilter);
4105
4106
  this.defaultFilter = this.getInitValue('defaultFilter', props.defaultFilter, this.defaultFilter);
4106
4107
  this.toolbarConfig = this.getInitValue('toolbarConfig', props.toolbarConfig, this.toolbarConfig);
@@ -4743,8 +4744,9 @@ class TekDragGrid extends TekGrid {
4743
4744
  const { oldIndex, newIndex } = event;
4744
4745
  const changes = this.draggable.getDragChanges(oldIndex, newIndex, this.datasource, this.getEditedRows());
4745
4746
  this.editing = true;
4747
+ const orderColumn = new GridColumnEditable({ name: this.orderColumnName });
4746
4748
  changes.forEach((change) => {
4747
- this.changeEditableComponent({ name: this.orderColumnName }, change.row, change.value);
4749
+ this.changeEditableComponent(orderColumn, change.row, change.value);
4748
4750
  });
4749
4751
  this.callEvent('inlineEdit', {
4750
4752
  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);
@@ -4105,6 +4105,7 @@
4105
4105
  this.showExport = this.getInitValue('showExport', props.showExport, this.showExport);
4106
4106
  this.showReload = this.getInitValue('showReload', props.showReload, this.showReload);
4107
4107
  this.exportConfig = this.getInitValue('exportConfig', props.exportConfig, this.exportConfig);
4108
+ this.modalFilterProps = this.getInitValue('modalFilterProps', props.modalFilterProps, this.modalFilterProps);
4108
4109
  this.showCheckboxAllFilter = this.getInitValue('showCheckboxAllFilter', props.showCheckboxAllFilter, this.showCheckboxAllFilter);
4109
4110
  this.defaultFilter = this.getInitValue('defaultFilter', props.defaultFilter, this.defaultFilter);
4110
4111
  this.toolbarConfig = this.getInitValue('toolbarConfig', props.toolbarConfig, this.toolbarConfig);
@@ -4747,8 +4748,9 @@
4747
4748
  const { oldIndex, newIndex } = event;
4748
4749
  const changes = this.draggable.getDragChanges(oldIndex, newIndex, this.datasource, this.getEditedRows());
4749
4750
  this.editing = true;
4751
+ const orderColumn = new common.GridColumnEditable({ name: this.orderColumnName });
4750
4752
  changes.forEach((change) => {
4751
- this.changeEditableComponent({ name: this.orderColumnName }, change.row, change.value);
4753
+ this.changeEditableComponent(orderColumn, change.row, change.value);
4752
4754
  });
4753
4755
  this.callEvent('inlineEdit', {
4754
4756
  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.113.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": "6e11bff8bd021a6880fc1801c81e8ef1d1124624"
36
36
  }
@@ -63,6 +63,18 @@ describe('TekTreeGrid', () => {
63
63
  ],
64
64
  columnsButton: true,
65
65
  columnsButtonIgnore: ['id'],
66
+ modalFilterProps: {
67
+ name: 'name',
68
+ height: 'auto',
69
+ persistent: true,
70
+ cssClass: '',
71
+ cssStyle: '',
72
+ dark: false,
73
+ draggable: false,
74
+ fullscreen: false,
75
+ dragHandle: '',
76
+ title: 'EXAMPLE',
77
+ },
66
78
  });
67
79
  expect(instance.title).toBe('title');
68
80
  expect(instance.addButton).toBeTruthy();
@@ -76,6 +88,18 @@ describe('TekTreeGrid', () => {
76
88
  expect(instance.columns[0]).toBeInstanceOf(TekGridColumn);
77
89
  expect(instance.columnsButton).toBeTruthy();
78
90
  expect(instance.columnsButtonIgnore).toEqual(['id']);
91
+ expect(instance.modalFilterProps).toEqual({
92
+ name: 'name',
93
+ height: 'auto',
94
+ persistent: true,
95
+ cssClass: '',
96
+ cssStyle: '',
97
+ dark: false,
98
+ draggable: false,
99
+ fullscreen: false,
100
+ dragHandle: '',
101
+ title: 'EXAMPLE',
102
+ });
79
103
  });
80
104
 
81
105
  it('should create toolbar and footer', () => {
@@ -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
  }