@zeedhi/teknisa-components-common 1.88.0 → 1.89.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.
- package/coverage/clover.xml +928 -827
- package/coverage/coverage-final.json +45 -40
- package/coverage/lcov-report/components/crud/crud-add-button.ts.html +250 -0
- package/coverage/lcov-report/components/crud/crud-button.ts.html +292 -0
- package/coverage/lcov-report/components/crud/crud-cancel-button.ts.html +259 -0
- package/coverage/lcov-report/components/crud/crud-delete-button.ts.html +322 -0
- package/coverage/lcov-report/components/crud/crud-form.ts.html +382 -0
- package/coverage/lcov-report/components/crud/crud-save-button.ts.html +253 -0
- package/coverage/lcov-report/components/crud/index.html +191 -0
- package/coverage/lcov-report/components/index.html +116 -0
- package/coverage/lcov-report/components/index.ts.html +394 -0
- package/coverage/lcov-report/components/tek-breadcrumb-header/breadcrumb-header.ts.html +172 -0
- package/coverage/lcov-report/components/tek-breadcrumb-header/index.html +116 -0
- package/coverage/lcov-report/components/tek-card-title/card-title.ts.html +175 -0
- package/coverage/lcov-report/components/tek-card-title/index.html +116 -0
- package/coverage/lcov-report/components/tek-datasource/index.html +146 -0
- package/coverage/lcov-report/components/tek-datasource/interfaces.ts.html +193 -0
- package/coverage/lcov-report/components/tek-datasource/memory-datasource.ts.html +1015 -0
- package/coverage/lcov-report/components/tek-datasource/rest-datasource.ts.html +751 -0
- package/coverage/lcov-report/components/tek-drag-grid/index.html +116 -0
- package/coverage/lcov-report/components/tek-drag-grid/tek-drag-grid.ts.html +409 -0
- package/coverage/lcov-report/components/tek-grid/filter-helper.ts.html +145 -0
- package/coverage/lcov-report/components/tek-grid/grid-column.ts.html +775 -0
- package/coverage/lcov-report/components/tek-grid/grid-columns-button-controller.ts.html +169 -0
- package/coverage/lcov-report/components/tek-grid/grid-columns-button.ts.html +190 -0
- package/coverage/lcov-report/components/tek-grid/grid-filter-button.ts.html +1282 -0
- package/coverage/lcov-report/components/tek-grid/grid.ts.html +3157 -0
- package/coverage/lcov-report/components/tek-grid/index.html +221 -0
- package/coverage/lcov-report/components/tek-grid/interfaces.ts.html +733 -0
- package/coverage/lcov-report/components/tek-grid/layout-options.ts.html +826 -0
- package/coverage/lcov-report/components/tek-image/image.ts.html +313 -0
- package/coverage/lcov-report/components/tek-image/index.html +116 -0
- package/coverage/lcov-report/components/tek-iterable-carousel/index.html +116 -0
- package/coverage/lcov-report/components/tek-iterable-carousel/iterable-carousel.ts.html +175 -0
- package/coverage/lcov-report/components/tek-iterable-component-render/index.html +116 -0
- package/coverage/lcov-report/components/tek-iterable-component-render/iterable-component-render.ts.html +118 -0
- package/coverage/lcov-report/components/tek-loading/index.html +116 -0
- package/coverage/lcov-report/components/tek-loading/loading.ts.html +196 -0
- package/coverage/lcov-report/components/tek-notifications/index.html +116 -0
- package/coverage/lcov-report/components/tek-notifications/notifications.ts.html +271 -0
- package/coverage/lcov-report/components/tek-product-card/index.html +116 -0
- package/coverage/lcov-report/components/tek-product-card/product-card.ts.html +391 -0
- package/coverage/lcov-report/components/tek-tree-grid/index.html +116 -0
- package/coverage/lcov-report/components/tek-tree-grid/tree-grid.ts.html +1255 -0
- package/coverage/lcov-report/components/tek-user-info/TekUserInfoController.ts.html +367 -0
- package/coverage/lcov-report/components/tek-user-info/index.html +146 -0
- package/coverage/lcov-report/components/tek-user-info/tek-user-info-list.ts.html +268 -0
- package/coverage/lcov-report/components/tek-user-info/tek-user-info.ts.html +1096 -0
- package/coverage/lcov-report/error/delete-rows-error.ts.html +118 -0
- package/coverage/lcov-report/error/index.html +116 -0
- package/coverage/lcov-report/index.html +54 -24
- package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +4 -4
- package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +3 -3
- package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +12 -12
- package/coverage/lcov-report/tests/__helpers__/index.html +2 -2
- package/coverage/lcov-report/tests/__helpers__/index.ts.html +5 -5
- package/coverage/lcov-report/tests/__helpers__/mock-created-helper.ts.html +4 -4
- package/coverage/lcov-report/utils/grid-base/export-options/button-option.ts.html +166 -0
- package/coverage/lcov-report/utils/grid-base/export-options/index.html +146 -0
- package/coverage/lcov-report/utils/grid-base/export-options/index.ts.html +94 -0
- package/coverage/lcov-report/utils/grid-base/export-options/multi-option.ts.html +355 -0
- package/coverage/lcov-report/utils/grid-base/grid-base.ts.html +1960 -0
- package/coverage/lcov-report/utils/grid-base/grid-controller.ts.html +457 -0
- package/coverage/lcov-report/utils/grid-base/index.html +131 -0
- package/coverage/lcov-report/utils/index.html +116 -0
- package/coverage/lcov-report/utils/index.ts.html +100 -0
- package/coverage/lcov-report/utils/report-filter/index.html +116 -0
- package/coverage/lcov-report/utils/report-filter/report-filter.ts.html +256 -0
- package/coverage/lcov.info +1545 -1355
- package/dist/tek-components-common.esm.js +613 -496
- package/dist/tek-components-common.umd.js +615 -497
- package/package.json +4 -3
- package/tests/unit/components/tek-drag-grid/tek-drag-grid.spec.ts +112 -0
- package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +846 -0
- package/tests/unit/components/tek-grid/grid.spec.ts +20 -769
- package/tests/unit/components/tree-grid/tree-grid.spec.ts +15 -9
- package/types/components/index.d.ts +3 -0
- package/types/components/tek-drag-grid/interfaces.d.ts +7 -0
- package/types/components/tek-drag-grid/tek-drag-grid.d.ts +36 -0
- package/types/components/tek-grid/grid-filter-button.d.ts +29 -0
- package/types/components/tek-grid/interfaces.d.ts +6 -2
- package/types/utils/grid-base/grid-base.d.ts +9 -19
- 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
|
@@ -5,15 +5,16 @@ import {
|
|
|
5
5
|
Http, IDictionary, KeyMap, Metadata,
|
|
6
6
|
} from '@zeedhi/core';
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ITekGridFilterButton,
|
|
9
|
+
ITekTreeGrid, TekGridColumn, TekGridFilterButton, TekRestDatasource, TekTreeGrid,
|
|
9
10
|
} from '../../../../src';
|
|
10
11
|
import { getChild, setClick } from '../../../__helpers__';
|
|
11
12
|
|
|
12
13
|
const flushPromises = () => new Promise(setImmediate);
|
|
13
14
|
|
|
14
15
|
const clickOnFilterButton = (grid: TekTreeGrid, event?: any) => {
|
|
15
|
-
const buttonProps = getChild<
|
|
16
|
-
const button = new
|
|
16
|
+
const buttonProps = getChild<ITekGridFilterButton>(grid.toolbarSlot, `${grid.name}_filterButton`);
|
|
17
|
+
const button = new TekGridFilterButton(buttonProps);
|
|
17
18
|
setClick(button, event);
|
|
18
19
|
|
|
19
20
|
return button;
|
|
@@ -138,9 +139,10 @@ describe('TekTreeGrid', () => {
|
|
|
138
139
|
|
|
139
140
|
const method = jest.fn();
|
|
140
141
|
|
|
141
|
-
const spyMetadata = jest.spyOn(Metadata, 'getInstance').mockImplementation(() => new
|
|
142
|
+
const spyMetadata = jest.spyOn(Metadata, 'getInstance').mockImplementation(() => new TekGridFilterButton({
|
|
142
143
|
name: 'grid_navigation_2_filterButton',
|
|
143
|
-
component: '
|
|
144
|
+
component: 'TekGridFilterButton',
|
|
145
|
+
grid: instance,
|
|
144
146
|
events: {
|
|
145
147
|
click: method,
|
|
146
148
|
},
|
|
@@ -281,8 +283,8 @@ describe('TekTreeGrid', () => {
|
|
|
281
283
|
|
|
282
284
|
instance.onCreated();
|
|
283
285
|
|
|
284
|
-
const buttonProps = getChild<
|
|
285
|
-
const button = new
|
|
286
|
+
const buttonProps = getChild<ITekGridFilterButton>(instance.toolbarSlot, `${instance.name}_filterButton`);
|
|
287
|
+
const button = new TekGridFilterButton(buttonProps);
|
|
286
288
|
setClick(button);
|
|
287
289
|
|
|
288
290
|
const formObject = new Form(form);
|
|
@@ -702,7 +704,9 @@ describe('TekTreeGrid', () => {
|
|
|
702
704
|
|
|
703
705
|
const spy = mockMetadata(instance);
|
|
704
706
|
instance.onCreated();
|
|
705
|
-
|
|
707
|
+
|
|
708
|
+
const filterButton = clickOnFilterButton(instance);
|
|
709
|
+
filterButton.onCreated();
|
|
706
710
|
|
|
707
711
|
const inputs = instance.getFilterInputs();
|
|
708
712
|
expect(inputs[0].name).toBe('grid-filter-AND-CONTAINS-name-0');
|
|
@@ -749,7 +753,9 @@ describe('TekTreeGrid', () => {
|
|
|
749
753
|
|
|
750
754
|
const spy = mockMetadata(instance);
|
|
751
755
|
instance.onCreated();
|
|
752
|
-
|
|
756
|
+
|
|
757
|
+
const filterButton = clickOnFilterButton(instance);
|
|
758
|
+
filterButton.onCreated();
|
|
753
759
|
|
|
754
760
|
const inputs = instance.getFilterInputs('salary');
|
|
755
761
|
expect(inputs[0].name).toBe('grid-filter-AND-GREATER_THAN_EQUALS-salary-0');
|
|
@@ -25,6 +25,7 @@ export * from './tek-grid/interfaces';
|
|
|
25
25
|
export * from './tek-grid/grid';
|
|
26
26
|
export * from './tek-grid/grid-column';
|
|
27
27
|
export * from './tek-grid/grid-columns-button';
|
|
28
|
+
export * from './tek-grid/grid-filter-button';
|
|
28
29
|
export * from './tek-grid/layout-options';
|
|
29
30
|
export * from './tek-grid/filter-helper';
|
|
30
31
|
export * from './tek-datasource/interfaces';
|
|
@@ -35,3 +36,5 @@ export * from './tek-tree-grid/tree-grid';
|
|
|
35
36
|
export * from './tek-user-info/interfaces';
|
|
36
37
|
export * from './tek-user-info/tek-user-info';
|
|
37
38
|
export * from './tek-user-info/tek-user-info-list';
|
|
39
|
+
export * from './tek-drag-grid/interfaces';
|
|
40
|
+
export * from './tek-drag-grid/tek-drag-grid';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IDraggable } from '@zeedhi/zd-drag-grid-common';
|
|
2
|
+
import { IDictionary } from '@zeedhi/core';
|
|
3
|
+
import { TekGrid } from '../tek-grid/grid';
|
|
4
|
+
import { ITekDragGrid } from './interfaces';
|
|
5
|
+
export declare class TekDragGrid extends TekGrid implements ITekDragGrid {
|
|
6
|
+
private internalOrderColumnName;
|
|
7
|
+
private internalOrderMode;
|
|
8
|
+
protected draggable: IDraggable;
|
|
9
|
+
constructor(props: ITekDragGrid);
|
|
10
|
+
set orderColumnName(value: string);
|
|
11
|
+
get orderColumnName(): string;
|
|
12
|
+
set orderMode(value: 'asc' | 'desc');
|
|
13
|
+
get orderMode(): 'asc' | 'desc';
|
|
14
|
+
/**
|
|
15
|
+
* Event triggered when dragged element is moving
|
|
16
|
+
* @param event DOM event
|
|
17
|
+
* @param row row being dragged
|
|
18
|
+
* @param element HTML element
|
|
19
|
+
* @returns return false to cancel dragging
|
|
20
|
+
*/
|
|
21
|
+
onDragMove(event: Event, row: IDictionary, element: HTMLElement): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Event triggered when drag starts
|
|
24
|
+
* @param event DOM event
|
|
25
|
+
* @param row row being dragged
|
|
26
|
+
* @param element HTML element
|
|
27
|
+
*/
|
|
28
|
+
onDragStart(event: Event, row: IDictionary, element: HTMLElement): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Event triggered when drag ends
|
|
31
|
+
* @param event DOM event
|
|
32
|
+
* @param row row being dragged
|
|
33
|
+
* @param element HTML element
|
|
34
|
+
*/
|
|
35
|
+
onDragEnd(event: Event, row: IDictionary, element: HTMLElement): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Button, Input } from '@zeedhi/common';
|
|
2
|
+
import { IDictionary } from '@zeedhi/core';
|
|
3
|
+
import { ITekGridFilterButton } from './interfaces';
|
|
4
|
+
import { TekGrid } from './grid';
|
|
5
|
+
import { TekTreeGrid } from '../tek-tree-grid/tree-grid';
|
|
6
|
+
/**
|
|
7
|
+
* Base class for TekGrid Filter Button component
|
|
8
|
+
*/
|
|
9
|
+
export declare class TekGridFilterButton extends Button implements ITekGridFilterButton {
|
|
10
|
+
gridName?: string;
|
|
11
|
+
grid: TekGrid | TekTreeGrid;
|
|
12
|
+
private filterModal?;
|
|
13
|
+
protected filterFormInputs: IDictionary<string[]>;
|
|
14
|
+
constructor(props: ITekGridFilterButton);
|
|
15
|
+
loadGrid(gridName?: string): void;
|
|
16
|
+
click(event: Event): void;
|
|
17
|
+
private loadFilterValues;
|
|
18
|
+
hideFilterModal(): void;
|
|
19
|
+
destroyFilterModal(): void;
|
|
20
|
+
private createFilterFromColumns;
|
|
21
|
+
onBeforeDestroy(): void;
|
|
22
|
+
private applyFilter;
|
|
23
|
+
private setFilter;
|
|
24
|
+
private clearFilter;
|
|
25
|
+
private sortFilterIndex;
|
|
26
|
+
getFilterInputs(columnName?: string): Input[];
|
|
27
|
+
private getFilterModalComponents;
|
|
28
|
+
private changeHelperEvent;
|
|
29
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBeforeReportEvent, IComponent, IComponentEvents, IComponentRender, IGridColumnEditable, IGridEditable, IIterableColumnsButton, EventDef, IModal } from '@zeedhi/common';
|
|
1
|
+
import { IBeforeReportEvent, IComponent, IComponentEvents, IComponentRender, IGridColumnEditable, IGridEditable, IIterableColumnsButton, EventDef, IModal, IButton } from '@zeedhi/common';
|
|
2
2
|
import { IDictionary, IEvent, IEventParam, IDateHelperValue, IDateHelperValues } from '@zeedhi/core';
|
|
3
|
-
import { IDynamicFilterItem, TekGridLayoutOptions } from '..';
|
|
3
|
+
import { IDynamicFilterItem, TekGrid, TekGridLayoutOptions, TekTreeGrid } from '..';
|
|
4
4
|
export interface ITekGridLayoutEventParams extends IEventParam<ITekGrid> {
|
|
5
5
|
layouts: ITekGridLayoutInfo;
|
|
6
6
|
}
|
|
@@ -112,6 +112,10 @@ export interface ITekGridColumn extends IGridColumnEditable {
|
|
|
112
112
|
export interface ITekGridColumnsButton extends IIterableColumnsButton {
|
|
113
113
|
hideGroups?: boolean;
|
|
114
114
|
}
|
|
115
|
+
export interface ITekGridFilterButton extends IButton {
|
|
116
|
+
gridName?: string;
|
|
117
|
+
grid?: TekGrid | TekTreeGrid;
|
|
118
|
+
}
|
|
115
119
|
export interface ITekGridGroup {
|
|
116
120
|
column: ITekGridColumn;
|
|
117
121
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IButton
|
|
2
|
-
import {
|
|
3
|
-
import { TekGrid, TekTreeGrid } from '../../components';
|
|
1
|
+
import { IButton } from '@zeedhi/common';
|
|
2
|
+
import { IEventParam } from '@zeedhi/core';
|
|
3
|
+
import { TekGrid, TekGridFilterButton, TekTreeGrid } from '../../components';
|
|
4
4
|
export interface ITekGridAtoms {
|
|
5
5
|
TITLE: string;
|
|
6
6
|
ADD_BUTTON: string;
|
|
@@ -224,11 +224,11 @@ export declare class GridBase {
|
|
|
224
224
|
children: {
|
|
225
225
|
name: string;
|
|
226
226
|
component: string;
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
grid: TekGrid | TekTreeGrid;
|
|
228
|
+
gridName: string;
|
|
229
229
|
isVisible: string;
|
|
230
230
|
events: {
|
|
231
|
-
|
|
231
|
+
onCreated: ({ component }: IEventParam<TekGridFilterButton>) => void;
|
|
232
232
|
};
|
|
233
233
|
}[];
|
|
234
234
|
cssClass?: undefined;
|
|
@@ -241,23 +241,14 @@ export declare class GridBase {
|
|
|
241
241
|
events?: undefined;
|
|
242
242
|
outline?: undefined;
|
|
243
243
|
})[];
|
|
244
|
+
filterButton?: TekGridFilterButton;
|
|
245
|
+
private loadFilterButton;
|
|
244
246
|
private addButtonClick;
|
|
245
247
|
private deleteButtonClick;
|
|
246
248
|
private reloadGrid;
|
|
247
249
|
private saveChanges;
|
|
248
250
|
private cancelChanges;
|
|
249
|
-
filterClick({ event }: any): void;
|
|
250
|
-
private filterModal?;
|
|
251
|
-
destroyFilterModal(): void;
|
|
252
|
-
private createFilterFromColumns;
|
|
253
251
|
hideFilterModal(): void;
|
|
254
|
-
private sortFilterIndex;
|
|
255
|
-
private getFilterModalComponents;
|
|
256
|
-
private changeHelperEvent;
|
|
257
|
-
private loadFilterValues;
|
|
258
|
-
private applyFilter;
|
|
259
|
-
private setFilter;
|
|
260
|
-
private clearFilter;
|
|
261
252
|
getFilterRelationsDatasource(): any;
|
|
262
253
|
getFilterOperationsDatasource(): any;
|
|
263
254
|
getFilterOptionsData(prop: string): {
|
|
@@ -265,8 +256,7 @@ export declare class GridBase {
|
|
|
265
256
|
value: string;
|
|
266
257
|
}[];
|
|
267
258
|
setSearch(search: string): Promise<any>;
|
|
268
|
-
protected filterFormInputs: IDictionary<string[]>;
|
|
269
259
|
protected atoms: ITekGridAtoms;
|
|
270
260
|
getAtomInstance<T>(key: keyof ITekGridAtoms): T;
|
|
271
|
-
getFilterInputs(columnName?: string): Input[];
|
|
261
|
+
getFilterInputs(columnName?: string): import("@zeedhi/common").Input[];
|
|
272
262
|
}
|
|
@@ -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
|
-
}
|