@zeedhi/teknisa-components-common 1.81.0 → 1.83.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 +411 -416
- package/coverage/coverage-final.json +39 -39
- package/coverage/lcov-report/index.html +13 -13
- package/coverage/lcov-report/tests/__helpers__/component-event-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 +627 -636
- package/dist/tek-components-common.esm.js +5 -3
- package/dist/tek-components-common.umd.js +5 -3
- package/package.json +2 -2
- package/tests/unit/components/tek-grid/grid.spec.ts +2 -0
- package/tests/unit/components/tek-grid/layout_options.spec.ts +3 -3
- package/types/components/tek-grid/grid-column.d.ts +0 -1
- package/types/components/tek-grid/grid.d.ts +0 -1
- package/types/components/tek-grid/interfaces.d.ts +0 -1
- package/types/utils/grid-base/grid-base.d.ts +1 -0
- package/types/components/tek-ag-grid/default-icons.d.ts +0 -53
- package/types/components/tek-ag-grid/interfaces.d.ts +0 -9
- package/types/components/tek-ag-grid/tek-ag-grid.d.ts +0 -35
- package/types/components/tek-datasource/datasource.d.ts +0 -94
- package/types/components/tek-grid/default-icons.d.ts +0 -53
- package/types/components/tek-grid/filter-dynamic-values.d.ts +0 -9
- package/types/components/tek-grid/grid-controller.d.ts +0 -19
- package/types/components/tek-grid/grid_column.d.ts +0 -14
- package/types/components/tek-grid/grid_controller.d.ts +0 -15
- package/types/components/tek-grid/tek-grid.d.ts +0 -35
- package/types/components/tek-login/interfaces.d.ts +0 -3
- package/types/components/tek-login/login-children.d.ts +0 -3
- package/types/components/tek-login/login.d.ts +0 -58
- package/types/components/tek-login/login_children.d.ts +0 -3
|
@@ -991,6 +991,10 @@ class GridBase {
|
|
|
991
991
|
this.createFilterFromColumns();
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
+
destroyFilterModal() {
|
|
995
|
+
var _a;
|
|
996
|
+
(_a = this.filterModal) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
997
|
+
}
|
|
994
998
|
createFilterFromColumns() {
|
|
995
999
|
if (!this.filterModal) {
|
|
996
1000
|
const originalProps = {
|
|
@@ -2134,8 +2138,6 @@ class TekGridColumn extends GridColumnEditable {
|
|
|
2134
2138
|
this.filterProps = [];
|
|
2135
2139
|
/* column can be use to filter */
|
|
2136
2140
|
this.filterable = true;
|
|
2137
|
-
/* column is fixed */
|
|
2138
|
-
this.fixed = false;
|
|
2139
2141
|
/* column is grouped */
|
|
2140
2142
|
this.groupedValue = false;
|
|
2141
2143
|
/* Value to show when grouped value is empty */
|
|
@@ -2152,7 +2154,6 @@ class TekGridColumn extends GridColumnEditable {
|
|
|
2152
2154
|
this.filterProps = this.getInitValue('filterProps', props.filterProps, this.filterProps);
|
|
2153
2155
|
this.filterable = this.getInitValue('filterable', props.filterable, this.filterable);
|
|
2154
2156
|
this.filterIndex = this.getInitValue('filterIndex', props.filterIndex, this.filterIndex);
|
|
2155
|
-
this.fixed = this.getInitValue('fixed', props.fixed, this.fixed);
|
|
2156
2157
|
this.grouped = this.getInitValue('grouped', props.grouped, this.grouped);
|
|
2157
2158
|
this.groupOpened = this.getInitValue('groupOpened', props.groupOpened, this.groupOpened);
|
|
2158
2159
|
this.aggregation = this.getInitValue('aggregation', props.aggregation, this.aggregation);
|
|
@@ -2499,6 +2500,7 @@ class TekGrid extends GridEditable {
|
|
|
2499
2500
|
}
|
|
2500
2501
|
onBeforeDestroy() {
|
|
2501
2502
|
super.onBeforeDestroy();
|
|
2503
|
+
this.gridBase.destroyFilterModal();
|
|
2502
2504
|
KeyMap.unbind(this.keyShortcutKeyMapping, this);
|
|
2503
2505
|
}
|
|
2504
2506
|
focusSearchInput() {
|
|
@@ -996,6 +996,10 @@
|
|
|
996
996
|
this.createFilterFromColumns();
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
+
destroyFilterModal() {
|
|
1000
|
+
var _a;
|
|
1001
|
+
(_a = this.filterModal) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
1002
|
+
}
|
|
999
1003
|
createFilterFromColumns() {
|
|
1000
1004
|
if (!this.filterModal) {
|
|
1001
1005
|
const originalProps = {
|
|
@@ -2139,8 +2143,6 @@
|
|
|
2139
2143
|
this.filterProps = [];
|
|
2140
2144
|
/* column can be use to filter */
|
|
2141
2145
|
this.filterable = true;
|
|
2142
|
-
/* column is fixed */
|
|
2143
|
-
this.fixed = false;
|
|
2144
2146
|
/* column is grouped */
|
|
2145
2147
|
this.groupedValue = false;
|
|
2146
2148
|
/* Value to show when grouped value is empty */
|
|
@@ -2157,7 +2159,6 @@
|
|
|
2157
2159
|
this.filterProps = this.getInitValue('filterProps', props.filterProps, this.filterProps);
|
|
2158
2160
|
this.filterable = this.getInitValue('filterable', props.filterable, this.filterable);
|
|
2159
2161
|
this.filterIndex = this.getInitValue('filterIndex', props.filterIndex, this.filterIndex);
|
|
2160
|
-
this.fixed = this.getInitValue('fixed', props.fixed, this.fixed);
|
|
2161
2162
|
this.grouped = this.getInitValue('grouped', props.grouped, this.grouped);
|
|
2162
2163
|
this.groupOpened = this.getInitValue('groupOpened', props.groupOpened, this.groupOpened);
|
|
2163
2164
|
this.aggregation = this.getInitValue('aggregation', props.aggregation, this.aggregation);
|
|
@@ -2504,6 +2505,7 @@
|
|
|
2504
2505
|
}
|
|
2505
2506
|
onBeforeDestroy() {
|
|
2506
2507
|
super.onBeforeDestroy();
|
|
2508
|
+
this.gridBase.destroyFilterModal();
|
|
2507
2509
|
core.KeyMap.unbind(this.keyShortcutKeyMapping, this);
|
|
2508
2510
|
}
|
|
2509
2511
|
focusSearchInput() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-components-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.83.0",
|
|
4
4
|
"description": "Teknisa Components Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@zeedhi/core": "*"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "a4b9ff9f2b1ab2c36addbfafbe5382c2798a6879"
|
|
35
35
|
}
|
|
@@ -188,7 +188,7 @@ describe('LayoutOptions', () => {
|
|
|
188
188
|
groupOpened: undefined,
|
|
189
189
|
label: '',
|
|
190
190
|
filterHelperValue: '',
|
|
191
|
-
fixed:
|
|
191
|
+
fixed: false,
|
|
192
192
|
grouped: undefined,
|
|
193
193
|
},
|
|
194
194
|
{
|
|
@@ -201,7 +201,7 @@ describe('LayoutOptions', () => {
|
|
|
201
201
|
groupOpened: undefined,
|
|
202
202
|
label: '',
|
|
203
203
|
filterHelperValue: '',
|
|
204
|
-
fixed:
|
|
204
|
+
fixed: false,
|
|
205
205
|
grouped: undefined,
|
|
206
206
|
},
|
|
207
207
|
{
|
|
@@ -214,7 +214,7 @@ describe('LayoutOptions', () => {
|
|
|
214
214
|
groupOpened: undefined,
|
|
215
215
|
label: '',
|
|
216
216
|
filterHelperValue: '',
|
|
217
|
-
fixed:
|
|
217
|
+
fixed: false,
|
|
218
218
|
grouped: undefined,
|
|
219
219
|
},
|
|
220
220
|
]);
|
|
@@ -9,7 +9,6 @@ export declare class TekGridColumn extends GridColumnEditable implements ITekGri
|
|
|
9
9
|
filterProps: IFilterPropsComponent | IFilterPropsComponent[];
|
|
10
10
|
filterable: boolean;
|
|
11
11
|
filterIndex?: number;
|
|
12
|
-
fixed: boolean;
|
|
13
12
|
private groupedValue;
|
|
14
13
|
private groupOpenedValue?;
|
|
15
14
|
groupLabelForEmptyValue: string;
|
|
@@ -67,7 +67,6 @@ export declare class TekGrid extends GridEditable implements ITekGrid {
|
|
|
67
67
|
groupedData: IDictionary<any>[];
|
|
68
68
|
private toolbarSlotProps;
|
|
69
69
|
viewUpdateScrollData?: () => void;
|
|
70
|
-
viewUpdateFixedColumns?: () => void;
|
|
71
70
|
private gridBase;
|
|
72
71
|
filterRelationsDatasource: Datasource;
|
|
73
72
|
filterOperationsDatasource: Datasource;
|
|
@@ -103,7 +103,6 @@ export interface ITekGridColumn extends IGridColumnEditable {
|
|
|
103
103
|
filterProps?: IFilterPropsComponent | IFilterPropsComponent[];
|
|
104
104
|
filterable?: boolean;
|
|
105
105
|
filterIndex?: number;
|
|
106
|
-
fixed?: boolean;
|
|
107
106
|
grouped?: boolean;
|
|
108
107
|
aggregation?: ITekGridColumnAggregation;
|
|
109
108
|
groupOpened?: boolean;
|
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Button, Checkbox, IComponentRender, Login, Select, Text } from '@zeedhi/common';
|
|
2
|
-
import { IEventParam } from '@zeedhi/core';
|
|
3
|
-
import { ITekLogin } from './interfaces';
|
|
4
|
-
export declare class TekLogin extends Login implements ITekLogin {
|
|
5
|
-
cardWidth: string | number;
|
|
6
|
-
layout: string;
|
|
7
|
-
children: IComponentRender[];
|
|
8
|
-
constructor(props: ITekLogin);
|
|
9
|
-
private testLicenseKeyMap;
|
|
10
|
-
private attempts;
|
|
11
|
-
private confirmSessionChange;
|
|
12
|
-
private user;
|
|
13
|
-
private password;
|
|
14
|
-
private hash;
|
|
15
|
-
private userData;
|
|
16
|
-
private privacyModal?;
|
|
17
|
-
onMounted(element: HTMLElement): void;
|
|
18
|
-
onBeforeDestroy(): void;
|
|
19
|
-
privacyClick({ component }: IEventParam<Text>): void;
|
|
20
|
-
private findPrivacyPolicyByAuthentication;
|
|
21
|
-
private openModalPrivacyPolicy;
|
|
22
|
-
loginEmailPrivacyPolicyCancel(): void;
|
|
23
|
-
loginEmailPrivacyPolicyConfirm({ component }: IEventParam<Button>): void;
|
|
24
|
-
forgetClick(): void;
|
|
25
|
-
loginForgetPasswordConfirm({ component }: IEventParam<Button>): void;
|
|
26
|
-
loginForgetPasswordCancel(): void;
|
|
27
|
-
private requestNewPassword;
|
|
28
|
-
private setCurrentLanguage;
|
|
29
|
-
private getLanguageNewFormat;
|
|
30
|
-
private getLanguageOldFormat;
|
|
31
|
-
private updateLanguages;
|
|
32
|
-
private getDataSource;
|
|
33
|
-
private setDataSource;
|
|
34
|
-
private getProductLanguages;
|
|
35
|
-
changeLanguage({ component }: IEventParam<Select>): void;
|
|
36
|
-
changeKeepConnected({ component }: IEventParam<Checkbox>): void;
|
|
37
|
-
private generateKey;
|
|
38
|
-
loginClick({ component }: IEventParam<Button>): void;
|
|
39
|
-
private doLogin;
|
|
40
|
-
private checkLoginResponse;
|
|
41
|
-
private checkErrorResponse;
|
|
42
|
-
private expiredPasswordValidation;
|
|
43
|
-
private showDialogExpiredPassword;
|
|
44
|
-
private openExpiredPasswordWidget;
|
|
45
|
-
private showMessage;
|
|
46
|
-
loginExpiredPasswordConfirm({ component }: IEventParam<Button>): void;
|
|
47
|
-
loginExpiredPasswordCancel(): void;
|
|
48
|
-
private showForm;
|
|
49
|
-
private updatePassword;
|
|
50
|
-
private validateRcUrl;
|
|
51
|
-
private redirectAfterLogin;
|
|
52
|
-
private isJson;
|
|
53
|
-
private defaultError;
|
|
54
|
-
private showInvalidPasswordMaskMessage;
|
|
55
|
-
private setLogAccess;
|
|
56
|
-
private redirectToProduct;
|
|
57
|
-
private testLicenseConnection;
|
|
58
|
-
}
|