@zeedhi/teknisa-components-common 1.115.0 → 1.117.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.
- package/coverage/clover.xml +82 -80
- package/coverage/coverage-final.json +47 -47
- package/coverage/lcov-report/index.html +5 -5
- package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/index.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/index.ts.html +1 -1
- package/coverage/lcov-report/tests/__helpers__/mock-created-helper.ts.html +1 -1
- package/coverage/lcov.info +54 -52
- package/dist/tek-components-common.esm.js +3 -0
- package/dist/tek-components-common.umd.js +3 -0
- package/package.json +2 -2
- package/types/components/tek-ag-grid/default-icons.d.ts +53 -0
- package/types/components/tek-ag-grid/interfaces.d.ts +9 -0
- package/types/components/tek-ag-grid/tek-ag-grid.d.ts +35 -0
- package/types/components/tek-datasource/datasource.d.ts +94 -0
- package/types/components/tek-grid/default-icons.d.ts +53 -0
- package/types/components/tek-grid/filter-dynamic-values.d.ts +9 -0
- package/types/components/tek-grid/grid-controller.d.ts +19 -0
- package/types/components/tek-grid/grid_column.d.ts +14 -0
- package/types/components/tek-grid/grid_controller.d.ts +15 -0
- package/types/components/tek-grid/tek-grid.d.ts +35 -0
- package/types/components/tek-login/interfaces.d.ts +3 -0
- package/types/components/tek-login/login-children.d.ts +3 -0
- package/types/components/tek-login/login.d.ts +58 -0
- package/types/components/tek-login/login_children.d.ts +3 -0
- package/types/components/tek-user-info/interfaces.d.ts +1 -0
- package/types/components/tek-user-info/tek-user-info.d.ts +1 -0
|
@@ -25,7 +25,7 @@
|
|
|
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'>
|
|
28
|
+
<span class='fraction'>1884/1884</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -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'>
|
|
49
|
+
<span class='fraction'>1794/1794</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -309,13 +309,13 @@
|
|
|
309
309
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
310
310
|
</td>
|
|
311
311
|
<td data-value="100" class="pct high">100%</td>
|
|
312
|
-
<td data-value="
|
|
312
|
+
<td data-value="96" class="abs high">96/96</td>
|
|
313
313
|
<td data-value="100" class="pct high">100%</td>
|
|
314
314
|
<td data-value="45" class="abs high">45/45</td>
|
|
315
315
|
<td data-value="100" class="pct high">100%</td>
|
|
316
316
|
<td data-value="32" class="abs high">32/32</td>
|
|
317
317
|
<td data-value="100" class="pct high">100%</td>
|
|
318
|
-
<td data-value="
|
|
318
|
+
<td data-value="86" class="abs high">86/86</td>
|
|
319
319
|
</tr>
|
|
320
320
|
|
|
321
321
|
<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-
|
|
419
|
+
at 2025-10-15T15:22:07.869Z
|
|
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-
|
|
88
|
+
at 2025-10-15T15:22:07.869Z
|
|
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-
|
|
82
|
+
at 2025-10-15T15:22:07.869Z
|
|
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-
|
|
154
|
+
at 2025-10-15T15:22:07.869Z
|
|
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-
|
|
164
|
+
at 2025-10-15T15:22:07.869Z
|
|
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-
|
|
82
|
+
at 2025-10-15T15:22:07.869Z
|
|
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-
|
|
109
|
+
at 2025-10-15T15:22:07.869Z
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../../prettify.js"></script>
|
|
112
112
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -3117,16 +3117,16 @@ BRH:5
|
|
|
3117
3117
|
end_of_record
|
|
3118
3118
|
TN:
|
|
3119
3119
|
SF:src/components/tek-user-info/tek-user-info.ts
|
|
3120
|
-
FN:
|
|
3121
|
-
FN:
|
|
3122
|
-
FN:
|
|
3123
|
-
FN:
|
|
3124
|
-
FN:
|
|
3125
|
-
FN:
|
|
3126
|
-
FN:
|
|
3127
|
-
FN:
|
|
3128
|
-
FN:
|
|
3129
|
-
FN:
|
|
3120
|
+
FN:40,(anonymous_7)
|
|
3121
|
+
FN:56,(anonymous_8)
|
|
3122
|
+
FN:66,(anonymous_9)
|
|
3123
|
+
FN:138,(anonymous_10)
|
|
3124
|
+
FN:157,(anonymous_11)
|
|
3125
|
+
FN:259,(anonymous_12)
|
|
3126
|
+
FN:267,(anonymous_13)
|
|
3127
|
+
FN:279,(anonymous_14)
|
|
3128
|
+
FN:292,(anonymous_15)
|
|
3129
|
+
FN:299,(anonymous_16)
|
|
3130
3130
|
FNF:10
|
|
3131
3131
|
FNH:10
|
|
3132
3132
|
FNDA:32,(anonymous_7)
|
|
@@ -3148,53 +3148,55 @@ DA:19,32
|
|
|
3148
3148
|
DA:24,32
|
|
3149
3149
|
DA:29,32
|
|
3150
3150
|
DA:34,32
|
|
3151
|
-
DA:
|
|
3152
|
-
DA:40,32
|
|
3151
|
+
DA:36,32
|
|
3153
3152
|
DA:41,32
|
|
3154
3153
|
DA:42,32
|
|
3155
3154
|
DA:43,32
|
|
3155
|
+
DA:44,32
|
|
3156
3156
|
DA:45,32
|
|
3157
3157
|
DA:46,32
|
|
3158
|
-
DA:
|
|
3159
|
-
DA:
|
|
3160
|
-
DA:
|
|
3161
|
-
DA:
|
|
3162
|
-
DA:
|
|
3163
|
-
DA:
|
|
3164
|
-
DA:139,
|
|
3165
|
-
DA:
|
|
3166
|
-
DA:
|
|
3167
|
-
DA:
|
|
3168
|
-
DA:
|
|
3169
|
-
DA:
|
|
3170
|
-
DA:
|
|
3171
|
-
DA:
|
|
3172
|
-
DA:
|
|
3173
|
-
DA:
|
|
3174
|
-
DA:
|
|
3175
|
-
DA:
|
|
3176
|
-
DA:
|
|
3177
|
-
DA:
|
|
3178
|
-
DA:
|
|
3179
|
-
DA:
|
|
3180
|
-
DA:
|
|
3181
|
-
DA:
|
|
3182
|
-
DA:
|
|
3183
|
-
DA:
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
BRDA:
|
|
3189
|
-
BRDA:
|
|
3190
|
-
BRDA:
|
|
3191
|
-
BRDA:
|
|
3192
|
-
BRDA:
|
|
3193
|
-
BRDA:
|
|
3194
|
-
BRDA:
|
|
3195
|
-
BRDA:
|
|
3196
|
-
BRDA:
|
|
3197
|
-
BRDA:
|
|
3158
|
+
DA:52,32
|
|
3159
|
+
DA:53,32
|
|
3160
|
+
DA:57,15
|
|
3161
|
+
DA:67,5
|
|
3162
|
+
DA:68,4
|
|
3163
|
+
DA:135,5
|
|
3164
|
+
DA:139,12
|
|
3165
|
+
DA:141,6
|
|
3166
|
+
DA:147,6
|
|
3167
|
+
DA:154,6
|
|
3168
|
+
DA:158,9
|
|
3169
|
+
DA:159,8
|
|
3170
|
+
DA:259,2
|
|
3171
|
+
DA:267,3
|
|
3172
|
+
DA:276,9
|
|
3173
|
+
DA:280,3
|
|
3174
|
+
DA:282,2
|
|
3175
|
+
DA:284,2
|
|
3176
|
+
DA:286,1
|
|
3177
|
+
DA:289,1
|
|
3178
|
+
DA:293,16
|
|
3179
|
+
DA:294,16
|
|
3180
|
+
DA:296,16
|
|
3181
|
+
DA:300,1
|
|
3182
|
+
DA:302,1
|
|
3183
|
+
DA:303,1
|
|
3184
|
+
DA:305,1
|
|
3185
|
+
DA:310,30
|
|
3186
|
+
LF:44
|
|
3187
|
+
LH:44
|
|
3188
|
+
BRDA:67,0,0,4
|
|
3189
|
+
BRDA:139,1,0,6
|
|
3190
|
+
BRDA:158,2,0,8
|
|
3191
|
+
BRDA:259,3,0,1
|
|
3192
|
+
BRDA:259,3,1,1
|
|
3193
|
+
BRDA:259,4,0,2
|
|
3194
|
+
BRDA:259,4,1,2
|
|
3195
|
+
BRDA:280,5,0,1
|
|
3196
|
+
BRDA:284,6,0,1
|
|
3197
|
+
BRDA:296,7,0,1
|
|
3198
|
+
BRDA:296,7,1,15
|
|
3199
|
+
BRDA:302,8,0,1
|
|
3198
3200
|
BRF:12
|
|
3199
3201
|
BRH:12
|
|
3200
3202
|
end_of_record
|
|
@@ -4340,10 +4340,12 @@ class TekUserInfo extends UserInfo {
|
|
|
4340
4340
|
* Path to the image to be shown on about modal
|
|
4341
4341
|
*/
|
|
4342
4342
|
this.aboutImage = '';
|
|
4343
|
+
this.aboutModalHeaderHeight = '';
|
|
4343
4344
|
this.versionInfo = this.getInitValue('versionInfo', props.versionInfo, this.versionInfo);
|
|
4344
4345
|
this.defaultEmail = this.getInitValue('defaultEmail', props.defaultEmail, this.defaultEmail);
|
|
4345
4346
|
this.versionUrl = this.getInitValue('versionUrl', props.versionUrl, this.versionUrl);
|
|
4346
4347
|
this.aboutImage = this.getInitValue('aboutImage', props.aboutImage, this.aboutImage);
|
|
4348
|
+
this.aboutModalHeaderHeight = this.getInitValue('aboutModalHeaderHeight', props.aboutModalHeaderHeight, this.aboutModalHeaderHeight);
|
|
4347
4349
|
this.createAccessors();
|
|
4348
4350
|
this.propBottomSlot = props.bottomSlot;
|
|
4349
4351
|
}
|
|
@@ -4370,6 +4372,7 @@ class TekUserInfo extends UserInfo {
|
|
|
4370
4372
|
color: 'transparent',
|
|
4371
4373
|
padless: true,
|
|
4372
4374
|
elevation: 0,
|
|
4375
|
+
height: this.aboutModalHeaderHeight,
|
|
4373
4376
|
rightSlot: [
|
|
4374
4377
|
{
|
|
4375
4378
|
name: `${this.name}_about_close_button`,
|
|
@@ -4344,10 +4344,12 @@
|
|
|
4344
4344
|
* Path to the image to be shown on about modal
|
|
4345
4345
|
*/
|
|
4346
4346
|
this.aboutImage = '';
|
|
4347
|
+
this.aboutModalHeaderHeight = '';
|
|
4347
4348
|
this.versionInfo = this.getInitValue('versionInfo', props.versionInfo, this.versionInfo);
|
|
4348
4349
|
this.defaultEmail = this.getInitValue('defaultEmail', props.defaultEmail, this.defaultEmail);
|
|
4349
4350
|
this.versionUrl = this.getInitValue('versionUrl', props.versionUrl, this.versionUrl);
|
|
4350
4351
|
this.aboutImage = this.getInitValue('aboutImage', props.aboutImage, this.aboutImage);
|
|
4352
|
+
this.aboutModalHeaderHeight = this.getInitValue('aboutModalHeaderHeight', props.aboutModalHeaderHeight, this.aboutModalHeaderHeight);
|
|
4351
4353
|
this.createAccessors();
|
|
4352
4354
|
this.propBottomSlot = props.bottomSlot;
|
|
4353
4355
|
}
|
|
@@ -4374,6 +4376,7 @@
|
|
|
4374
4376
|
color: 'transparent',
|
|
4375
4377
|
padless: true,
|
|
4376
4378
|
elevation: 0,
|
|
4379
|
+
height: this.aboutModalHeaderHeight,
|
|
4377
4380
|
rightSlot: [
|
|
4378
4381
|
{
|
|
4379
4382
|
name: `${this.name}_about_close_button`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-components-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.117.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": "
|
|
35
|
+
"gitHead": "ac4945d42e6031702234ad16a8413793d88e7406"
|
|
36
36
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const defaultIcons: {
|
|
2
|
+
columnGroupOpened: string;
|
|
3
|
+
columnGroupClosed: string;
|
|
4
|
+
columnSelectClosed: string;
|
|
5
|
+
columnSelectOpen: string;
|
|
6
|
+
columnSelectIndeterminate: string;
|
|
7
|
+
columnMovePin: string;
|
|
8
|
+
columnMoveHide: string;
|
|
9
|
+
columnMoveMove: string;
|
|
10
|
+
columnMoveLeft: string;
|
|
11
|
+
columnMoveRight: string;
|
|
12
|
+
columnMoveGroup: string;
|
|
13
|
+
columnMoveValue: string;
|
|
14
|
+
dropNotAllowed: string;
|
|
15
|
+
groupContracted: string;
|
|
16
|
+
groupExpanded: string;
|
|
17
|
+
chart: string;
|
|
18
|
+
close: string;
|
|
19
|
+
cancel: string;
|
|
20
|
+
check: string;
|
|
21
|
+
first: string;
|
|
22
|
+
previous: string;
|
|
23
|
+
next: string;
|
|
24
|
+
last: string;
|
|
25
|
+
linked: string;
|
|
26
|
+
unlinked: string;
|
|
27
|
+
colorPicker: string;
|
|
28
|
+
groupLoading: string;
|
|
29
|
+
menu: string;
|
|
30
|
+
filter: string;
|
|
31
|
+
columns: string;
|
|
32
|
+
maximize: string;
|
|
33
|
+
minimize: string;
|
|
34
|
+
menuPin: string;
|
|
35
|
+
menuValue: string;
|
|
36
|
+
menuAddRowGroup: string;
|
|
37
|
+
menuRemoveRowGroup: string;
|
|
38
|
+
clipboardCopy: string;
|
|
39
|
+
clipboardPaste: string;
|
|
40
|
+
rowGroupPanel: string;
|
|
41
|
+
valuePanel: string;
|
|
42
|
+
columnDrag: string;
|
|
43
|
+
rowDrag: string;
|
|
44
|
+
save: string;
|
|
45
|
+
smallDown: string;
|
|
46
|
+
smallLeft: string;
|
|
47
|
+
smallRight: string;
|
|
48
|
+
smallUp: string;
|
|
49
|
+
sortAscending: string;
|
|
50
|
+
sortDescending: string;
|
|
51
|
+
sortUnSort: string;
|
|
52
|
+
};
|
|
53
|
+
export default defaultIcons;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IIterable } from '@zeedhi/common';
|
|
2
|
+
import { IDictionary } from '@zeedhi/core';
|
|
3
|
+
export interface ITekAgGrid extends IIterable {
|
|
4
|
+
dense?: boolean;
|
|
5
|
+
frameworkComponents?: IDictionary;
|
|
6
|
+
gridOptions?: IDictionary;
|
|
7
|
+
height?: string | number;
|
|
8
|
+
icons?: IDictionary<string>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Iterable } from '@zeedhi/common';
|
|
2
|
+
import { IDictionary } from '@zeedhi/core';
|
|
3
|
+
import { ITekAgGrid } from './interfaces';
|
|
4
|
+
/** Grid Component */
|
|
5
|
+
export declare class TekAgGrid extends Iterable implements ITekAgGrid {
|
|
6
|
+
cssClass: string;
|
|
7
|
+
dense: boolean;
|
|
8
|
+
frameworkComponents: IDictionary;
|
|
9
|
+
gridOptions: IDictionary;
|
|
10
|
+
height: string | number;
|
|
11
|
+
icons: IDictionary<string>;
|
|
12
|
+
gridComponent: any;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new AgGrid.
|
|
15
|
+
* @param props AgGrid properties
|
|
16
|
+
*/
|
|
17
|
+
constructor(props: ITekAgGrid);
|
|
18
|
+
private createOptionsAccessors;
|
|
19
|
+
private setAccessor;
|
|
20
|
+
/**
|
|
21
|
+
* Reload dataset
|
|
22
|
+
*/
|
|
23
|
+
reload(): Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* Compares two dates
|
|
26
|
+
* @param date1
|
|
27
|
+
* @param date2
|
|
28
|
+
* @param format
|
|
29
|
+
* @returns -1 if date1 after date2
|
|
30
|
+
* @returns 0 if date1 equal date2
|
|
31
|
+
* @returns 1 if date1 before date2
|
|
32
|
+
*/
|
|
33
|
+
dateComparator(date1: string | Date, date2: string | Date, format?: string): 1 | -1 | 0;
|
|
34
|
+
private getDateAsString;
|
|
35
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { IDatasource, IDictionary, RestDatasource } from '@zeedhi/core';
|
|
2
|
+
import { IDynamicFilterItem, ITekRestDatasource } from './interfaces';
|
|
3
|
+
export declare class TekRestDatasource extends RestDatasource implements ITekRestDatasource {
|
|
4
|
+
/** Dynamic filter data */
|
|
5
|
+
dynamicFilter: IDictionary<IDynamicFilterItem[]>;
|
|
6
|
+
/** Search Join data */
|
|
7
|
+
searchJoin: IDictionary<Array<string | number>>;
|
|
8
|
+
/**
|
|
9
|
+
* URL reserved keys
|
|
10
|
+
*/
|
|
11
|
+
protected reservedKeys: IDictionary<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Dynamic Filter Operations
|
|
14
|
+
*/
|
|
15
|
+
dynamicFilterOperations: IDictionary<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Dynamic Filter Relations
|
|
18
|
+
*/
|
|
19
|
+
dynamicFilterRelations: IDictionary<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Dynamic Filter applied flag
|
|
22
|
+
*/
|
|
23
|
+
protected dynamicFilterApplied: string;
|
|
24
|
+
/**
|
|
25
|
+
* Create new datasource
|
|
26
|
+
* @param props Datasource properties
|
|
27
|
+
*/
|
|
28
|
+
constructor(props: ITekRestDatasource);
|
|
29
|
+
protected updateInternalProperties(datasource?: IDatasource): void;
|
|
30
|
+
protected getEncodedParam(urlParam: string, datasourceParam?: IDictionary<any>): IDictionary<any>;
|
|
31
|
+
protected getQueryStringValues(): IDictionary<any>;
|
|
32
|
+
protected getUrlQueryString(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Adds a new dynamic filter position or replace if exists
|
|
35
|
+
* @param column Dynamic Filter column name
|
|
36
|
+
* @param value Dynamic Filter value
|
|
37
|
+
* @returns Promise with data collection
|
|
38
|
+
*/
|
|
39
|
+
addDynamicFilter(column: string, value: any): Promise<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Removes a dynamic filter position
|
|
42
|
+
* @param column Dynamic Filter column name
|
|
43
|
+
* @returns Promise with data collection
|
|
44
|
+
*/
|
|
45
|
+
removeDynamicFilter(column: string): Promise<any>;
|
|
46
|
+
/**
|
|
47
|
+
* Sets new dynamic filter value
|
|
48
|
+
* @param filter Dynamic Filter value
|
|
49
|
+
* @returns Promise with data collection
|
|
50
|
+
*/
|
|
51
|
+
setDynamicFilter(filter: IDictionary<any>): Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Clears Dynamic filter value
|
|
54
|
+
* @returns Promise with data collection
|
|
55
|
+
*/
|
|
56
|
+
clearDynamicFilter(): Promise<any>;
|
|
57
|
+
/**
|
|
58
|
+
* Resets page and selected rows and tries to update the url
|
|
59
|
+
* @returns Promise with data collection
|
|
60
|
+
*/
|
|
61
|
+
protected updateDynamicFilter(): Promise<any>;
|
|
62
|
+
/**
|
|
63
|
+
* Checks if a filter value is valid
|
|
64
|
+
* @param value Filter value
|
|
65
|
+
* @returns Is valid filter value
|
|
66
|
+
*/
|
|
67
|
+
protected isValidDynamicFilterValue(column: string, value?: IDictionary<any>[]): boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves request params
|
|
70
|
+
*/
|
|
71
|
+
protected getRequestParams(): any;
|
|
72
|
+
clone(): {
|
|
73
|
+
dynamicFilter: IDictionary<IDynamicFilterItem[]>;
|
|
74
|
+
searchJoin: IDictionary<(string | number)[]>;
|
|
75
|
+
type: string;
|
|
76
|
+
route?: string | undefined;
|
|
77
|
+
lazyLoad?: boolean | undefined;
|
|
78
|
+
arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined;
|
|
79
|
+
find?: IDictionary<any> | undefined;
|
|
80
|
+
currentRow?: IDictionary<any> | undefined;
|
|
81
|
+
data?: IDictionary<any>[] | undefined;
|
|
82
|
+
filter?: IDictionary<any> | undefined;
|
|
83
|
+
limit?: string | number | undefined;
|
|
84
|
+
loadAll?: boolean | undefined;
|
|
85
|
+
loading?: boolean | undefined;
|
|
86
|
+
order?: string[] | undefined;
|
|
87
|
+
page?: string | number | undefined;
|
|
88
|
+
search?: string | undefined;
|
|
89
|
+
searchIn?: string[] | undefined;
|
|
90
|
+
uniqueKey?: string | undefined;
|
|
91
|
+
watchUrl?: boolean | undefined;
|
|
92
|
+
events?: import("@zeedhi/core").IDatasourceEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const defaultIcons: {
|
|
2
|
+
columnGroupOpened: string;
|
|
3
|
+
columnGroupClosed: string;
|
|
4
|
+
columnSelectClosed: string;
|
|
5
|
+
columnSelectOpen: string;
|
|
6
|
+
columnSelectIndeterminate: string;
|
|
7
|
+
columnMovePin: string;
|
|
8
|
+
columnMoveHide: string;
|
|
9
|
+
columnMoveMove: string;
|
|
10
|
+
columnMoveLeft: string;
|
|
11
|
+
columnMoveRight: string;
|
|
12
|
+
columnMoveGroup: string;
|
|
13
|
+
columnMoveValue: string;
|
|
14
|
+
dropNotAllowed: string;
|
|
15
|
+
groupContracted: string;
|
|
16
|
+
groupExpanded: string;
|
|
17
|
+
chart: string;
|
|
18
|
+
close: string;
|
|
19
|
+
cancel: string;
|
|
20
|
+
check: string;
|
|
21
|
+
first: string;
|
|
22
|
+
previous: string;
|
|
23
|
+
next: string;
|
|
24
|
+
last: string;
|
|
25
|
+
linked: string;
|
|
26
|
+
unlinked: string;
|
|
27
|
+
colorPicker: string;
|
|
28
|
+
groupLoading: string;
|
|
29
|
+
menu: string;
|
|
30
|
+
filter: string;
|
|
31
|
+
columns: string;
|
|
32
|
+
maximize: string;
|
|
33
|
+
minimize: string;
|
|
34
|
+
menuPin: string;
|
|
35
|
+
menuValue: string;
|
|
36
|
+
menuAddRowGroup: string;
|
|
37
|
+
menuRemoveRowGroup: string;
|
|
38
|
+
clipboardCopy: string;
|
|
39
|
+
clipboardPaste: string;
|
|
40
|
+
rowGroupPanel: string;
|
|
41
|
+
valuePanel: string;
|
|
42
|
+
columnDrag: string;
|
|
43
|
+
rowDrag: string;
|
|
44
|
+
save: string;
|
|
45
|
+
smallDown: string;
|
|
46
|
+
smallLeft: string;
|
|
47
|
+
smallRight: string;
|
|
48
|
+
smallUp: string;
|
|
49
|
+
sortAscending: string;
|
|
50
|
+
sortDescending: string;
|
|
51
|
+
sortUnSort: string;
|
|
52
|
+
};
|
|
53
|
+
export default defaultIcons;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TekGridColumn } from '..';
|
|
2
|
+
export declare class TekFilterDynamicValues {
|
|
3
|
+
private static values;
|
|
4
|
+
private static formatDate;
|
|
5
|
+
static getLabel(name: string): string;
|
|
6
|
+
static getValue(name: string, column: TekGridColumn): string | string[];
|
|
7
|
+
static register(name: string, label: string, fn: () => Date | [Date, Date]): void;
|
|
8
|
+
static unregister(name: string): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TekGrid } from './grid';
|
|
2
|
+
export declare class TekGridController {
|
|
3
|
+
private grid;
|
|
4
|
+
constructor(grid: TekGrid);
|
|
5
|
+
get gridTitle(): string;
|
|
6
|
+
get showAddButton(): boolean;
|
|
7
|
+
get showDeleteButton(): boolean;
|
|
8
|
+
get showFilterButton(): boolean;
|
|
9
|
+
get showColumnsButton(): boolean;
|
|
10
|
+
get columnsButtonIgnore(): string[];
|
|
11
|
+
get showLayoutOptions(): boolean;
|
|
12
|
+
get showFirstDivider(): boolean;
|
|
13
|
+
get showActionsButton(): boolean;
|
|
14
|
+
get showExportButton(): boolean;
|
|
15
|
+
get showActionAndExportButton(): boolean;
|
|
16
|
+
get isEditing(): boolean;
|
|
17
|
+
get isNotEditing(): boolean;
|
|
18
|
+
get disableDeleteButton(): boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GridColumnEditable } from '@zeedhi/common';
|
|
2
|
+
import { ITekGridColumn } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for Grid column
|
|
5
|
+
*/
|
|
6
|
+
export declare class TekGridColumn extends GridColumnEditable implements ITekGridColumn {
|
|
7
|
+
filterProps: any;
|
|
8
|
+
filterable: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new TekGrid Column.
|
|
11
|
+
* @param props TekGrid column properties
|
|
12
|
+
*/
|
|
13
|
+
constructor(props: ITekGridColumn);
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TekGrid } from './grid';
|
|
2
|
+
export declare class TekGridController {
|
|
3
|
+
private grid;
|
|
4
|
+
constructor(grid: TekGrid);
|
|
5
|
+
get gridTitle(): string;
|
|
6
|
+
get showAddButton(): boolean;
|
|
7
|
+
get showDeleteButton(): boolean;
|
|
8
|
+
get showFilterButton(): boolean;
|
|
9
|
+
get showColumnsButton(): boolean;
|
|
10
|
+
get showFirstDivider(): boolean;
|
|
11
|
+
get showActionsButton(): boolean;
|
|
12
|
+
get isEditing(): boolean;
|
|
13
|
+
get isNotEditing(): boolean;
|
|
14
|
+
get disableDeleteButton(): boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Iterable } from '@zeedhi/common';
|
|
2
|
+
import { IDictionary } from '@zeedhi/core';
|
|
3
|
+
import { ITekGrid } from './interfaces';
|
|
4
|
+
/** Grid Component */
|
|
5
|
+
export declare class TekGrid extends Iterable implements ITekGrid {
|
|
6
|
+
cssClass: string;
|
|
7
|
+
dense: boolean;
|
|
8
|
+
frameworkComponents: IDictionary;
|
|
9
|
+
gridOptions: IDictionary;
|
|
10
|
+
height: string | number;
|
|
11
|
+
icons: IDictionary<string>;
|
|
12
|
+
gridComponent: any;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new Grid.
|
|
15
|
+
* @param props Grid properties
|
|
16
|
+
*/
|
|
17
|
+
constructor(props: ITekGrid);
|
|
18
|
+
private createOptionsAccessors;
|
|
19
|
+
private setAccessor;
|
|
20
|
+
/**
|
|
21
|
+
* Reload dataset
|
|
22
|
+
*/
|
|
23
|
+
reload(): Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* Compares two dates
|
|
26
|
+
* @param date1
|
|
27
|
+
* @param date2
|
|
28
|
+
* @param format
|
|
29
|
+
* @returns -1 if date1 after date2
|
|
30
|
+
* @returns 0 if date1 equal date2
|
|
31
|
+
* @returns 1 if date1 before date2
|
|
32
|
+
*/
|
|
33
|
+
dateComparator(date1: string | Date, date2: string | Date, format?: string): 1 | -1 | 0;
|
|
34
|
+
private getDateAsString;
|
|
35
|
+
}
|