@zeedhi/teknisa-components-common 1.92.1 → 1.93.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 +52 -52
- package/coverage/coverage-final.json +45 -45
- package/coverage/lcov-report/index.html +7 -7
- 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 +46 -45
- package/dist/tek-components-common.esm.js +2 -1
- package/dist/tek-components-common.umd.js +2 -1
- package/package.json +2 -2
- package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +1 -1
- package/tests/unit/components/tek-product-card/product-card.spec.ts +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/coverage/lcov-report/components/crud/crud-add-button.ts.html +0 -250
- package/coverage/lcov-report/components/crud/crud-button.ts.html +0 -292
- package/coverage/lcov-report/components/crud/crud-cancel-button.ts.html +0 -259
- package/coverage/lcov-report/components/crud/crud-delete-button.ts.html +0 -322
- package/coverage/lcov-report/components/crud/crud-form.ts.html +0 -382
- package/coverage/lcov-report/components/crud/crud-save-button.ts.html +0 -253
- package/coverage/lcov-report/components/crud/index.html +0 -191
- package/coverage/lcov-report/components/index.html +0 -116
- package/coverage/lcov-report/components/index.ts.html +0 -394
- package/coverage/lcov-report/components/tek-breadcrumb-header/breadcrumb-header.ts.html +0 -172
- package/coverage/lcov-report/components/tek-breadcrumb-header/index.html +0 -116
- package/coverage/lcov-report/components/tek-card-title/card-title.ts.html +0 -175
- package/coverage/lcov-report/components/tek-card-title/index.html +0 -116
- package/coverage/lcov-report/components/tek-datasource/index.html +0 -146
- package/coverage/lcov-report/components/tek-datasource/interfaces.ts.html +0 -193
- package/coverage/lcov-report/components/tek-datasource/memory-datasource.ts.html +0 -1015
- package/coverage/lcov-report/components/tek-datasource/rest-datasource.ts.html +0 -751
- package/coverage/lcov-report/components/tek-drag-grid/index.html +0 -116
- package/coverage/lcov-report/components/tek-drag-grid/tek-drag-grid.ts.html +0 -409
- package/coverage/lcov-report/components/tek-grid/filter-helper.ts.html +0 -145
- package/coverage/lcov-report/components/tek-grid/grid-column.ts.html +0 -775
- package/coverage/lcov-report/components/tek-grid/grid-columns-button-controller.ts.html +0 -169
- package/coverage/lcov-report/components/tek-grid/grid-columns-button.ts.html +0 -190
- package/coverage/lcov-report/components/tek-grid/grid-filter-button.ts.html +0 -1282
- package/coverage/lcov-report/components/tek-grid/grid.ts.html +0 -3157
- package/coverage/lcov-report/components/tek-grid/index.html +0 -221
- package/coverage/lcov-report/components/tek-grid/interfaces.ts.html +0 -733
- package/coverage/lcov-report/components/tek-grid/layout-options.ts.html +0 -826
- package/coverage/lcov-report/components/tek-image/image.ts.html +0 -313
- package/coverage/lcov-report/components/tek-image/index.html +0 -116
- package/coverage/lcov-report/components/tek-iterable-carousel/index.html +0 -116
- package/coverage/lcov-report/components/tek-iterable-carousel/iterable-carousel.ts.html +0 -175
- package/coverage/lcov-report/components/tek-iterable-component-render/index.html +0 -116
- package/coverage/lcov-report/components/tek-iterable-component-render/iterable-component-render.ts.html +0 -118
- package/coverage/lcov-report/components/tek-loading/index.html +0 -116
- package/coverage/lcov-report/components/tek-loading/loading.ts.html +0 -196
- package/coverage/lcov-report/components/tek-notifications/index.html +0 -116
- package/coverage/lcov-report/components/tek-notifications/notifications.ts.html +0 -271
- package/coverage/lcov-report/components/tek-product-card/index.html +0 -116
- package/coverage/lcov-report/components/tek-product-card/product-card.ts.html +0 -391
- package/coverage/lcov-report/components/tek-tree-grid/index.html +0 -116
- package/coverage/lcov-report/components/tek-tree-grid/tree-grid.ts.html +0 -1255
- package/coverage/lcov-report/components/tek-user-info/TekUserInfoController.ts.html +0 -367
- package/coverage/lcov-report/components/tek-user-info/index.html +0 -146
- package/coverage/lcov-report/components/tek-user-info/tek-user-info-list.ts.html +0 -268
- package/coverage/lcov-report/components/tek-user-info/tek-user-info.ts.html +0 -1096
- package/coverage/lcov-report/error/delete-rows-error.ts.html +0 -118
- package/coverage/lcov-report/error/index.html +0 -116
- package/coverage/lcov-report/utils/grid-base/export-options/button-option.ts.html +0 -166
- package/coverage/lcov-report/utils/grid-base/export-options/index.html +0 -146
- package/coverage/lcov-report/utils/grid-base/export-options/index.ts.html +0 -94
- package/coverage/lcov-report/utils/grid-base/export-options/multi-option.ts.html +0 -355
- package/coverage/lcov-report/utils/grid-base/grid-base.ts.html +0 -1960
- package/coverage/lcov-report/utils/grid-base/grid-controller.ts.html +0 -457
- package/coverage/lcov-report/utils/grid-base/index.html +0 -131
- package/coverage/lcov-report/utils/index.html +0 -116
- package/coverage/lcov-report/utils/index.ts.html +0 -100
- package/coverage/lcov-report/utils/report-filter/index.html +0 -116
- package/coverage/lcov-report/utils/report-filter/report-filter.ts.html +0 -256
|
@@ -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'>
|
|
28
|
+
<span class='fraction'>1602/1602</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>678/678</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -189,9 +189,9 @@
|
|
|
189
189
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
190
190
|
</td>
|
|
191
191
|
<td data-value="100" class="pct high">100%</td>
|
|
192
|
-
<td data-value="
|
|
193
|
-
<td data-value="
|
|
194
|
-
<td data-value="
|
|
192
|
+
<td data-value="710" class="abs high">710/710</td>
|
|
193
|
+
<td data-value="100" class="pct high">100%</td>
|
|
194
|
+
<td data-value="314" class="abs high">314/314</td>
|
|
195
195
|
<td data-value="100" class="pct high">100%</td>
|
|
196
196
|
<td data-value="155" class="abs high">155/155</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 2024-05-
|
|
419
|
+
at 2024-05-13T21:00:12.966Z
|
|
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 2024-05-
|
|
88
|
+
at 2024-05-13T21:00:12.966Z
|
|
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 2024-05-
|
|
82
|
+
at 2024-05-13T21:00:12.966Z
|
|
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 2024-05-
|
|
154
|
+
at 2024-05-13T21:00:12.966Z
|
|
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 2024-05-
|
|
164
|
+
at 2024-05-13T21:00:12.966Z
|
|
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 2024-05-
|
|
82
|
+
at 2024-05-13T21:00:12.966Z
|
|
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 2024-05-
|
|
109
|
+
at 2024-05-13T21:00:12.966Z
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../../prettify.js"></script>
|
|
112
112
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -1381,8 +1381,8 @@ BRDA:31,0,0,2
|
|
|
1381
1381
|
BRDA:35,1,0,1
|
|
1382
1382
|
BRDA:36,2,0,1
|
|
1383
1383
|
BRDA:44,3,0,22
|
|
1384
|
-
BRDA:44,4,0,
|
|
1385
|
-
BRDA:44,4,1,
|
|
1384
|
+
BRDA:44,4,0,1
|
|
1385
|
+
BRDA:44,4,1,22
|
|
1386
1386
|
BRDA:44,5,0,23
|
|
1387
1387
|
BRDA:44,5,1,23
|
|
1388
1388
|
BRDA:53,6,0,1
|
|
@@ -1416,53 +1416,54 @@ BRDA:79,21,1,1
|
|
|
1416
1416
|
BRDA:79,21,2,1
|
|
1417
1417
|
BRDA:90,22,0,2
|
|
1418
1418
|
BRDA:99,23,0,1
|
|
1419
|
-
BRDA:
|
|
1420
|
-
BRDA:114,
|
|
1421
|
-
BRDA:
|
|
1422
|
-
BRDA:
|
|
1423
|
-
BRDA:269,
|
|
1424
|
-
BRDA:269,27,0,5
|
|
1419
|
+
BRDA:110,24,0,1
|
|
1420
|
+
BRDA:114,25,0,21
|
|
1421
|
+
BRDA:114,25,1,1
|
|
1422
|
+
BRDA:265,26,0,5
|
|
1423
|
+
BRDA:269,27,0,2
|
|
1425
1424
|
BRDA:269,27,1,3
|
|
1426
|
-
BRDA:
|
|
1427
|
-
BRDA:
|
|
1428
|
-
BRDA:271,29,
|
|
1429
|
-
BRDA:271,30,0,
|
|
1430
|
-
BRDA:271,30,1,
|
|
1431
|
-
BRDA:
|
|
1432
|
-
BRDA:
|
|
1433
|
-
BRDA:
|
|
1434
|
-
BRDA:
|
|
1435
|
-
BRDA:
|
|
1436
|
-
BRDA:
|
|
1437
|
-
BRDA:
|
|
1438
|
-
BRDA:
|
|
1439
|
-
BRDA:
|
|
1440
|
-
BRDA:
|
|
1441
|
-
BRDA:
|
|
1442
|
-
BRDA:
|
|
1443
|
-
BRDA:348,39,
|
|
1444
|
-
BRDA:348,
|
|
1445
|
-
BRDA:
|
|
1446
|
-
BRDA:
|
|
1447
|
-
BRDA:353,41,0,
|
|
1425
|
+
BRDA:269,28,0,5
|
|
1426
|
+
BRDA:269,28,1,3
|
|
1427
|
+
BRDA:271,29,0,8
|
|
1428
|
+
BRDA:271,30,0,10
|
|
1429
|
+
BRDA:271,30,1,8
|
|
1430
|
+
BRDA:271,31,0,8
|
|
1431
|
+
BRDA:271,31,1,2
|
|
1432
|
+
BRDA:277,32,0,6
|
|
1433
|
+
BRDA:297,33,0,8
|
|
1434
|
+
BRDA:312,34,0,2
|
|
1435
|
+
BRDA:326,35,0,5
|
|
1436
|
+
BRDA:326,35,1,30
|
|
1437
|
+
BRDA:327,36,0,1
|
|
1438
|
+
BRDA:327,36,1,34
|
|
1439
|
+
BRDA:334,37,0,2
|
|
1440
|
+
BRDA:347,38,0,45
|
|
1441
|
+
BRDA:347,38,1,4
|
|
1442
|
+
BRDA:348,39,0,32
|
|
1443
|
+
BRDA:348,40,0,49
|
|
1444
|
+
BRDA:348,40,1,48
|
|
1445
|
+
BRDA:348,40,2,48
|
|
1446
|
+
BRDA:353,41,0,36
|
|
1448
1447
|
BRDA:353,41,1,4
|
|
1449
|
-
BRDA:
|
|
1450
|
-
BRDA:
|
|
1451
|
-
BRDA:
|
|
1452
|
-
BRDA:
|
|
1453
|
-
BRDA:
|
|
1454
|
-
BRDA:
|
|
1455
|
-
BRDA:
|
|
1456
|
-
BRDA:
|
|
1457
|
-
BRDA:
|
|
1458
|
-
BRDA:
|
|
1459
|
-
BRDA:393,48,
|
|
1448
|
+
BRDA:353,42,0,40
|
|
1449
|
+
BRDA:353,42,1,4
|
|
1450
|
+
BRDA:354,43,0,36
|
|
1451
|
+
BRDA:354,43,1,20
|
|
1452
|
+
BRDA:355,44,0,36
|
|
1453
|
+
BRDA:355,44,1,12
|
|
1454
|
+
BRDA:371,45,0,5
|
|
1455
|
+
BRDA:372,46,0,5
|
|
1456
|
+
BRDA:387,47,0,1
|
|
1457
|
+
BRDA:387,47,1,2
|
|
1458
|
+
BRDA:393,48,0,2
|
|
1460
1459
|
BRDA:393,49,0,4
|
|
1461
1460
|
BRDA:393,49,1,2
|
|
1462
|
-
BRDA:393,50,0,
|
|
1463
|
-
BRDA:393,50,1,
|
|
1464
|
-
|
|
1465
|
-
|
|
1461
|
+
BRDA:393,50,0,4
|
|
1462
|
+
BRDA:393,50,1,2
|
|
1463
|
+
BRDA:393,51,0,2
|
|
1464
|
+
BRDA:393,51,1,1
|
|
1465
|
+
BRF:85
|
|
1466
|
+
BRH:85
|
|
1466
1467
|
end_of_record
|
|
1467
1468
|
TN:
|
|
1468
1469
|
SF:src/components/tek-grid/grid.ts
|
|
@@ -2989,7 +2989,8 @@ class TekGridFilterButton extends Button {
|
|
|
2989
2989
|
this.filterModal.hide();
|
|
2990
2990
|
}
|
|
2991
2991
|
destroyFilterModal() {
|
|
2992
|
-
this.filterModal
|
|
2992
|
+
if (this.filterModal)
|
|
2993
|
+
this.filterModal.destroy();
|
|
2993
2994
|
}
|
|
2994
2995
|
createFilterFromColumns() {
|
|
2995
2996
|
if (!this.filterModal) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-components-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.93.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": "*"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f994901c45e87971a66097fa7c70542402eeb7b1"
|
|
36
36
|
}
|
|
@@ -106,7 +106,7 @@ describe('TekGridFilterButton', () => {
|
|
|
106
106
|
button.onCreated();
|
|
107
107
|
|
|
108
108
|
expect(spy).toBeCalledTimes(1);
|
|
109
|
-
button.click(
|
|
109
|
+
button.click();
|
|
110
110
|
expect(spy).toBeCalledTimes(1);
|
|
111
111
|
expect(button.isVisible).toBeFalsy();
|
|
112
112
|
(instance as any).gridBase.hideFilterModal();
|
|
@@ -28,7 +28,7 @@ describe('ProductCard', () => {
|
|
|
28
28
|
src: '/img/zeedhi.svg',
|
|
29
29
|
productName: 'ProductTest',
|
|
30
30
|
productPrice: '150',
|
|
31
|
-
errorImagePath: 'image-error.
|
|
31
|
+
errorImagePath: 'image-error.avif',
|
|
32
32
|
errorImageText: 'Image not found',
|
|
33
33
|
width: '200',
|
|
34
34
|
height: '400px',
|
|
@@ -39,7 +39,7 @@ describe('ProductCard', () => {
|
|
|
39
39
|
expect(instance.id).toBe('id');
|
|
40
40
|
expect(instance.src).toBe('/img/zeedhi.svg');
|
|
41
41
|
expect(instance.productName).toBe('ProductTest');
|
|
42
|
-
expect(instance.errorImagePath).toBe('image-error.
|
|
42
|
+
expect(instance.errorImagePath).toBe('image-error.avif');
|
|
43
43
|
expect(instance.errorImageText).toBe('Image not found');
|
|
44
44
|
expect(instance.width).toBe('200');
|
|
45
45
|
expect(instance.productPriceFormat).toBe('$150.00');
|
|
@@ -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
|
+
}
|