@zeedhi/teknisa-components-common 1.105.0 → 1.105.1

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.
@@ -32,7 +32,7 @@
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'>715/715</span>
35
+ <span class='fraction'>717/717</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'>1614/1614</span>
49
+ <span class='fraction'>1615/1615</span>
50
50
  </div>
51
51
 
52
52
 
@@ -356,11 +356,11 @@
356
356
  <td data-value="100" class="pct high">100%</td>
357
357
  <td data-value="115" class="abs high">115/115</td>
358
358
  <td data-value="100" class="pct high">100%</td>
359
- <td data-value="57" class="abs high">57/57</td>
359
+ <td data-value="59" class="abs high">59/59</td>
360
360
  <td data-value="100" class="pct high">100%</td>
361
361
  <td data-value="53" class="abs high">53/53</td>
362
362
  <td data-value="100" class="pct high">100%</td>
363
- <td data-value="107" class="abs high">107/107</td>
363
+ <td data-value="108" class="abs high">108/108</td>
364
364
  </tr>
365
365
 
366
366
  <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-03-12T14:45:05.476Z
419
+ at 2025-03-19T19:53:27.466Z
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-03-12T14:45:05.476Z
88
+ at 2025-03-19T19:53:27.466Z
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-03-12T14:45:05.476Z
82
+ at 2025-03-19T19:53:27.466Z
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-03-12T14:45:05.476Z
154
+ at 2025-03-19T19:53:27.466Z
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-03-12T14:45:05.476Z
164
+ at 2025-03-19T19:53:27.466Z
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-03-12T14:45:05.476Z
82
+ at 2025-03-19T19:53:27.466Z
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-03-12T14:45:05.476Z
109
+ at 2025-03-19T19:53:27.466Z
110
110
  </div>
111
111
  <script src="../../prettify.js"></script>
112
112
  <script>
@@ -966,25 +966,25 @@ BRH:0
966
966
  end_of_record
967
967
  TN:
968
968
  SF:src/components/tek-grid/grid-column.ts
969
- FN:66,(anonymous_8)
970
- FN:74,(anonymous_9)
971
- FN:86,(anonymous_10)
972
- FN:101,(anonymous_12)
973
- FN:111,(anonymous_13)
974
- FN:114,(anonymous_15)
975
- FN:120,(anonymous_16)
976
- FN:133,(anonymous_17)
977
- FN:145,(anonymous_18)
978
- FN:180,(anonymous_20)
979
- FN:184,(anonymous_21)
980
- FN:192,(anonymous_22)
981
- FN:196,(anonymous_23)
982
- FN:204,(anonymous_24)
983
- FN:208,(anonymous_25)
984
- FN:216,(anonymous_26)
985
- FN:220,(anonymous_27)
986
- FN:224,(anonymous_28)
987
- FN:226,(anonymous_29)
969
+ FN:70,(anonymous_8)
970
+ FN:78,(anonymous_9)
971
+ FN:90,(anonymous_10)
972
+ FN:105,(anonymous_12)
973
+ FN:115,(anonymous_13)
974
+ FN:118,(anonymous_15)
975
+ FN:124,(anonymous_16)
976
+ FN:137,(anonymous_17)
977
+ FN:149,(anonymous_18)
978
+ FN:184,(anonymous_20)
979
+ FN:188,(anonymous_21)
980
+ FN:196,(anonymous_22)
981
+ FN:200,(anonymous_23)
982
+ FN:208,(anonymous_24)
983
+ FN:212,(anonymous_25)
984
+ FN:220,(anonymous_26)
985
+ FN:224,(anonymous_27)
986
+ FN:228,(anonymous_28)
987
+ FN:230,(anonymous_29)
988
988
  FNF:19
989
989
  FNH:19
990
990
  FNDA:9,(anonymous_8)
@@ -996,13 +996,13 @@ FNDA:6,(anonymous_15)
996
996
  FNDA:5,(anonymous_16)
997
997
  FNDA:4,(anonymous_17)
998
998
  FNDA:11,(anonymous_18)
999
- FNDA:965,(anonymous_20)
999
+ FNDA:967,(anonymous_20)
1000
1000
  FNDA:248,(anonymous_21)
1001
1001
  FNDA:507,(anonymous_22)
1002
1002
  FNDA:247,(anonymous_23)
1003
1003
  FNDA:325,(anonymous_24)
1004
1004
  FNDA:245,(anonymous_25)
1005
- FNDA:558,(anonymous_26)
1005
+ FNDA:560,(anonymous_26)
1006
1006
  FNDA:738,(anonymous_27)
1007
1007
  FNDA:46,(anonymous_28)
1008
1008
  FNDA:1,(anonymous_29)
@@ -1010,107 +1010,107 @@ DA:1,30
1010
1010
  DA:2,30
1011
1011
  DA:3,30
1012
1012
  DA:10,30
1013
- DA:67,9
1014
- DA:69,9
1015
- DA:70,4
1016
- DA:72,5
1017
- DA:74,5
1018
- DA:75,5
1019
- DA:76,3
1020
- DA:77,3
1021
- DA:80,2
1022
- DA:81,2
1023
- DA:82,2
1024
- DA:83,2
1025
- DA:87,4
1026
- DA:88,4
1027
- DA:89,4
1028
- DA:90,2
1029
- DA:92,2
1030
- DA:93,2
1031
- DA:94,1
1013
+ DA:71,9
1014
+ DA:73,9
1015
+ DA:74,4
1016
+ DA:76,5
1017
+ DA:78,5
1018
+ DA:79,5
1019
+ DA:80,3
1020
+ DA:81,3
1021
+ DA:84,2
1022
+ DA:85,2
1023
+ DA:86,2
1024
+ DA:87,2
1025
+ DA:91,4
1026
+ DA:92,4
1027
+ DA:93,4
1028
+ DA:94,2
1029
+ DA:96,2
1032
1030
  DA:97,2
1033
- DA:100,4
1034
- DA:101,4
1035
- DA:102,20
1031
+ DA:98,1
1032
+ DA:101,2
1036
1033
  DA:104,4
1037
1034
  DA:105,4
1038
- DA:106,4
1039
- DA:112,3
1040
- DA:113,3
1041
- DA:114,3
1042
- DA:115,6
1043
- DA:116,1
1044
- DA:117,1
1045
- DA:120,5
1046
- DA:121,5
1047
- DA:122,1
1048
- DA:123,1
1049
- DA:124,1
1050
- DA:127,4
1051
- DA:130,3
1052
- DA:131,2
1053
- DA:133,2
1054
- DA:134,4
1055
- DA:135,4
1056
- DA:139,3
1057
- DA:146,11
1058
- DA:147,1
1059
- DA:150,10
1060
- DA:151,10
1061
- DA:152,7
1062
- DA:153,6
1063
- DA:157,3
1064
- DA:163,3
1065
- DA:166,10
1066
- DA:167,10
1035
+ DA:106,20
1036
+ DA:108,4
1037
+ DA:109,4
1038
+ DA:110,4
1039
+ DA:116,3
1040
+ DA:117,3
1041
+ DA:118,3
1042
+ DA:119,6
1043
+ DA:120,1
1044
+ DA:121,1
1045
+ DA:124,5
1046
+ DA:125,5
1047
+ DA:126,1
1048
+ DA:127,1
1049
+ DA:128,1
1050
+ DA:131,4
1051
+ DA:134,3
1052
+ DA:135,2
1053
+ DA:137,2
1054
+ DA:138,4
1055
+ DA:139,4
1056
+ DA:143,3
1057
+ DA:150,11
1058
+ DA:151,1
1059
+ DA:154,10
1060
+ DA:155,10
1061
+ DA:156,7
1062
+ DA:157,6
1063
+ DA:161,3
1064
+ DA:167,3
1067
1065
  DA:170,10
1068
- DA:177,10
1069
- DA:181,965
1070
- DA:185,248
1071
- DA:186,248
1072
- DA:187,248
1073
- DA:188,27
1074
- DA:193,507
1075
- DA:197,247
1076
- DA:198,247
1077
- DA:199,247
1078
- DA:200,18
1079
- DA:205,325
1080
- DA:209,245
1081
- DA:210,245
1082
- DA:211,245
1083
- DA:212,1
1084
- DA:217,558
1085
- DA:221,738
1086
- DA:226,46
1087
- DA:227,1
1066
+ DA:171,10
1067
+ DA:174,10
1068
+ DA:181,10
1069
+ DA:185,967
1070
+ DA:189,248
1071
+ DA:190,248
1072
+ DA:191,248
1073
+ DA:192,27
1074
+ DA:197,507
1075
+ DA:201,247
1076
+ DA:202,247
1077
+ DA:203,247
1078
+ DA:204,18
1079
+ DA:209,325
1080
+ DA:213,245
1081
+ DA:214,245
1082
+ DA:215,245
1083
+ DA:216,1
1084
+ DA:221,560
1085
+ DA:225,738
1086
+ DA:230,46
1087
+ DA:231,1
1088
1088
  LF:79
1089
1089
  LH:79
1090
- BRDA:69,0,0,4
1091
- BRDA:75,1,0,3
1092
- BRDA:80,2,0,2
1093
- BRDA:80,2,1,2
1094
- BRDA:89,3,0,2
1095
- BRDA:89,3,1,2
1096
- BRDA:92,4,0,2
1097
- BRDA:92,4,1,1
1098
- BRDA:93,5,0,1
1099
- BRDA:115,6,0,1
1100
- BRDA:121,7,0,1
1101
- BRDA:130,8,0,2
1102
- BRDA:135,9,0,2
1103
- BRDA:146,10,0,1
1104
- BRDA:151,11,0,7
1105
- BRDA:151,11,1,3
1106
- BRDA:152,12,0,6
1107
- BRDA:167,13,0,4
1108
- BRDA:167,13,1,6
1109
- BRDA:187,14,0,27
1110
- BRDA:199,15,0,18
1111
- BRDA:211,16,0,1
1112
- BRDA:217,17,0,558
1113
- BRDA:217,17,1,553
1090
+ BRDA:73,0,0,4
1091
+ BRDA:79,1,0,3
1092
+ BRDA:84,2,0,2
1093
+ BRDA:84,2,1,2
1094
+ BRDA:93,3,0,2
1095
+ BRDA:93,3,1,2
1096
+ BRDA:96,4,0,2
1097
+ BRDA:96,4,1,1
1098
+ BRDA:97,5,0,1
1099
+ BRDA:119,6,0,1
1100
+ BRDA:125,7,0,1
1101
+ BRDA:134,8,0,2
1102
+ BRDA:139,9,0,2
1103
+ BRDA:150,10,0,1
1104
+ BRDA:155,11,0,7
1105
+ BRDA:155,11,1,3
1106
+ BRDA:156,12,0,6
1107
+ BRDA:171,13,0,4
1108
+ BRDA:171,13,1,6
1109
+ BRDA:191,14,0,27
1110
+ BRDA:203,15,0,18
1111
+ BRDA:215,16,0,1
1112
+ BRDA:221,17,0,560
1113
+ BRDA:221,17,1,555
1114
1114
  BRF:24
1115
1115
  BRH:24
1116
1116
  end_of_record
@@ -3046,12 +3046,12 @@ FN:368,(anonymous_25)
3046
3046
  FN:376,(anonymous_26)
3047
3047
  FN:385,(anonymous_27)
3048
3048
  FN:394,(anonymous_28)
3049
- FN:397,(anonymous_30)
3050
- FN:401,(anonymous_31)
3051
- FN:401,(anonymous_32)
3052
- FN:405,(anonymous_33)
3053
- FN:438,(anonymous_34)
3054
- FN:442,(anonymous_35)
3049
+ FN:398,(anonymous_30)
3050
+ FN:403,(anonymous_31)
3051
+ FN:403,(anonymous_32)
3052
+ FN:407,(anonymous_33)
3053
+ FN:440,(anonymous_34)
3054
+ FN:444,(anonymous_35)
3055
3055
  FNF:28
3056
3056
  FNH:28
3057
3057
  FNDA:158,(anonymous_7)
@@ -3139,23 +3139,24 @@ DA:385,234
3139
3139
  DA:391,280
3140
3140
  DA:395,6
3141
3141
  DA:396,6
3142
- DA:397,9
3143
- DA:398,4
3142
+ DA:397,4
3143
+ DA:398,9
3144
3144
  DA:400,4
3145
- DA:401,3
3146
- DA:402,3
3145
+ DA:402,4
3146
+ DA:403,3
3147
3147
  DA:404,3
3148
- DA:405,6
3149
- DA:408,3
3150
- DA:411,4
3151
- DA:414,6
3152
- DA:415,6
3153
- DA:418,158
3154
- DA:439,2
3155
- DA:443,4
3156
- DA:447,30
3157
- LF:72
3158
- LH:72
3148
+ DA:406,3
3149
+ DA:407,6
3150
+ DA:410,3
3151
+ DA:413,4
3152
+ DA:416,6
3153
+ DA:417,6
3154
+ DA:420,158
3155
+ DA:441,2
3156
+ DA:445,4
3157
+ DA:449,30
3158
+ LF:73
3159
+ LH:73
3159
3160
  BRDA:48,0,0,157
3160
3161
  BRDA:211,1,0,47
3161
3162
  BRDA:211,1,1,47
@@ -3177,9 +3178,11 @@ BRDA:380,13,1,18
3177
3178
  BRDA:396,14,0,4
3178
3179
  BRDA:396,15,0,6
3179
3180
  BRDA:396,15,1,2
3180
- BRDA:400,16,0,3
3181
- BRF:22
3182
- BRH:22
3181
+ BRDA:398,16,0,9
3182
+ BRDA:398,16,1,4
3183
+ BRDA:402,17,0,3
3184
+ BRF:24
3185
+ BRH:24
3183
3186
  end_of_record
3184
3187
  TN:
3185
3188
  SF:src/utils/grid-base/grid-controller.ts
@@ -1160,7 +1160,7 @@ class GridBase {
1160
1160
  return __awaiter(this, void 0, void 0, function* () {
1161
1161
  const { datasource } = this.grid;
1162
1162
  if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
1163
- const lookupColumns = this.grid.columns.filter((column) => !!column.componentProps.datasource);
1163
+ const lookupColumns = this.grid.columns.filter((column) => !!column.componentProps.datasource && !column.skipLookupSearch);
1164
1164
  const searchJoin = {};
1165
1165
  if (search) {
1166
1166
  const promises = lookupColumns.map((column) => __awaiter(this, void 0, void 0, function* () {
@@ -1986,6 +1986,8 @@ class TekGridColumn extends GridColumnEditable {
1986
1986
  this.filterProps = [];
1987
1987
  /* column can be use to filter */
1988
1988
  this.filterable = true;
1989
+ /* should not consider lookup column on search */
1990
+ this.skipLookupSearch = false;
1989
1991
  /* column is grouped */
1990
1992
  this.groupedValue = false;
1991
1993
  /* Value to show when grouped value is empty */
@@ -2002,6 +2004,7 @@ class TekGridColumn extends GridColumnEditable {
2002
2004
  this.filterProps = this.getInitValue('filterProps', props.filterProps, this.filterProps);
2003
2005
  this.filterable = this.getInitValue('filterable', props.filterable, this.filterable);
2004
2006
  this.filterIndex = this.getInitValue('filterIndex', props.filterIndex, this.filterIndex);
2007
+ this.skipLookupSearch = this.getInitValue('skipLookupSearch', props.skipLookupSearch, this.skipLookupSearch);
2005
2008
  this.grouped = this.getInitValue('grouped', props.grouped, this.grouped);
2006
2009
  this.groupOpened = this.getInitValue('groupOpened', props.groupOpened, this.groupOpened);
2007
2010
  this.aggregation = this.getInitValue('aggregation', props.aggregation, this.aggregation);
@@ -1164,7 +1164,7 @@
1164
1164
  return __awaiter(this, void 0, void 0, function* () {
1165
1165
  const { datasource } = this.grid;
1166
1166
  if (datasource instanceof TekRestDatasource || datasource instanceof TekMemoryDatasource) {
1167
- const lookupColumns = this.grid.columns.filter((column) => !!column.componentProps.datasource);
1167
+ const lookupColumns = this.grid.columns.filter((column) => !!column.componentProps.datasource && !column.skipLookupSearch);
1168
1168
  const searchJoin = {};
1169
1169
  if (search) {
1170
1170
  const promises = lookupColumns.map((column) => __awaiter(this, void 0, void 0, function* () {
@@ -1990,6 +1990,8 @@
1990
1990
  this.filterProps = [];
1991
1991
  /* column can be use to filter */
1992
1992
  this.filterable = true;
1993
+ /* should not consider lookup column on search */
1994
+ this.skipLookupSearch = false;
1993
1995
  /* column is grouped */
1994
1996
  this.groupedValue = false;
1995
1997
  /* Value to show when grouped value is empty */
@@ -2006,6 +2008,7 @@
2006
2008
  this.filterProps = this.getInitValue('filterProps', props.filterProps, this.filterProps);
2007
2009
  this.filterable = this.getInitValue('filterable', props.filterable, this.filterable);
2008
2010
  this.filterIndex = this.getInitValue('filterIndex', props.filterIndex, this.filterIndex);
2011
+ this.skipLookupSearch = this.getInitValue('skipLookupSearch', props.skipLookupSearch, this.skipLookupSearch);
2009
2012
  this.grouped = this.getInitValue('grouped', props.grouped, this.grouped);
2010
2013
  this.groupOpened = this.getInitValue('groupOpened', props.groupOpened, this.groupOpened);
2011
2014
  this.aggregation = this.getInitValue('aggregation', props.aggregation, this.aggregation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/teknisa-components-common",
3
- "version": "1.105.0",
3
+ "version": "1.105.1",
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": "60ca727f8a22b30fab574ac1c6d69b11a5cb65e5"
35
+ "gitHead": "846a17a12144e941bec933012885c3ee7d495ee6"
36
36
  }
@@ -9,6 +9,7 @@ export declare class TekGridColumn extends GridColumnEditable implements ITekGri
9
9
  filterProps: IFilterPropsComponent | IFilterPropsComponent[];
10
10
  filterable: boolean;
11
11
  filterIndex?: number;
12
+ skipLookupSearch: boolean;
12
13
  private groupedValue;
13
14
  private groupOpenedValue?;
14
15
  groupLabelForEmptyValue: string;
@@ -124,6 +124,7 @@ export interface ITekGridColumn extends IGridColumnEditable {
124
124
  filterProps?: IFilterPropsComponent | IFilterPropsComponent[];
125
125
  filterable?: boolean;
126
126
  filterIndex?: number;
127
+ skipLookupSearch?: boolean;
127
128
  grouped?: boolean;
128
129
  aggregation?: ITekGridColumnAggregation;
129
130
  groupOpened?: boolean;