@zeedhi/teknisa-components-common 1.117.1 → 3.0.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/.package.json +43 -0
- package/dist/teknisa-components-common.js +3802 -0
- package/dist/teknisa-components-common.min.js +3802 -0
- package/dist/types/components/index.d.ts +7 -0
- package/{types → dist/types}/components/tek-breadcrumb-header/breadcrumb-header.d.ts +12 -12
- package/{types → dist/types}/components/tek-breadcrumb-header/interfaces.d.ts +6 -6
- package/dist/types/components/tek-datasource/index.d.ts +3 -0
- package/{types → dist/types}/components/tek-datasource/interfaces.d.ts +16 -16
- package/{types/components/tek-datasource/memory-datasource.d.ts → dist/types/components/tek-datasource/tek-memory-datasource.d.ts} +93 -100
- package/{types/components/tek-datasource/rest-datasource.d.ts → dist/types/components/tek-datasource/tek-rest-datasource.d.ts} +95 -103
- package/dist/types/components/tek-grid/columns-searcher.d.ts +5 -0
- package/dist/types/components/tek-grid/dynamic-filter-datasource-factory.d.ts +6 -0
- package/{types → dist/types}/components/tek-grid/filter-helper.d.ts +7 -7
- package/{types → dist/types}/components/tek-grid/grid-filter-button.d.ts +29 -31
- package/dist/types/components/tek-grid/grouped-data-manager.d.ts +82 -0
- package/dist/types/components/tek-grid/grouped-data-selector.d.ts +7 -0
- package/dist/types/components/tek-grid/grouped-view-navigator.d.ts +14 -0
- package/dist/types/components/tek-grid/index.d.ts +18 -0
- package/dist/types/components/tek-grid/interfaces.d.ts +259 -0
- package/dist/types/components/tek-grid/keymap-grouped.d.ts +6 -0
- package/{types → dist/types}/components/tek-grid/layout-options.d.ts +39 -31
- package/{types/components/tek-grid/grid-column.d.ts → dist/types/components/tek-grid/tek-grid-column.d.ts} +42 -45
- package/{types/components/tek-grid/grid-columns-button-controller.d.ts → dist/types/components/tek-grid/tek-grid-columns-button/tek-grid-columns-button-controller.d.ts} +8 -8
- package/{types/components/tek-grid/grid-columns-button.d.ts → dist/types/components/tek-grid/tek-grid-columns-button/tek-grid-columns-button.d.ts} +13 -12
- package/dist/types/components/tek-grid/tek-grid-controller.d.ts +31 -0
- package/dist/types/components/tek-grid/tek-grid-events.d.ts +31 -0
- package/{types/utils/grid-base → dist/types/components/tek-grid/tek-grid-toolbar-provider}/export-options/button-option.d.ts +17 -16
- package/{types/utils/grid-base → dist/types/components/tek-grid/tek-grid-toolbar-provider}/export-options/index.d.ts +3 -3
- package/dist/types/components/tek-grid/tek-grid-toolbar-provider/export-options/interfaces.d.ts +5 -0
- package/{types/utils/grid-base → dist/types/components/tek-grid/tek-grid-toolbar-provider}/export-options/multi-option.d.ts +12 -12
- package/dist/types/components/tek-grid/tek-grid-toolbar-provider/index.d.ts +2 -0
- package/dist/types/components/tek-grid/tek-grid-toolbar-provider/tek-grid-toolbar-provider.d.ts +22 -0
- package/dist/types/components/tek-grid/tek-grid.d.ts +216 -0
- package/{types → dist/types}/components/tek-user-info/TekUserInfoController.d.ts +22 -21
- package/{types → dist/types}/components/tek-user-info/interfaces.d.ts +27 -28
- package/{types → dist/types}/components/tek-user-info/tek-user-info-list.d.ts +32 -31
- package/{types → dist/types}/components/tek-user-info/tek-user-info.d.ts +37 -38
- package/{types → dist/types}/error/delete-rows-error.d.ts +6 -6
- package/dist/types/error/tek-grid-delete-rows-error.d.ts +7 -0
- package/dist/types/error/teknisa-common-error.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/{types → dist/types}/utils/config/config.d.ts +7 -7
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/is-filled-object/is-filled-object.d.ts +2 -0
- package/dist/types/utils/is-nil.d.ts +1 -0
- package/environments.json +14 -0
- package/package.json +26 -18
- package/src/components/index.ts +101 -0
- package/src/components/tek-breadcrumb-header/breadcrumb-header.ts +29 -0
- package/src/components/tek-breadcrumb-header/interfaces.ts +7 -0
- package/src/components/tek-datasource/index.ts +3 -0
- package/src/components/tek-datasource/interfaces.ts +36 -0
- package/src/components/tek-datasource/tek-memory-datasource.ts +314 -0
- package/src/components/tek-datasource/tek-rest-datasource.ts +224 -0
- package/src/components/tek-grid/columns-searcher.ts +22 -0
- package/src/components/tek-grid/dynamic-filter-datasource-factory.ts +20 -0
- package/src/components/tek-grid/filter-helper.ts +20 -0
- package/src/components/tek-grid/grid-filter-button.ts +419 -0
- package/src/components/tek-grid/grouped-data-manager.ts +448 -0
- package/src/components/tek-grid/grouped-data-selector.ts +40 -0
- package/src/components/tek-grid/grouped-view-navigator.ts +84 -0
- package/src/components/tek-grid/index.ts +18 -0
- package/src/components/tek-grid/interfaces.ts +329 -0
- package/src/components/tek-grid/keymap-grouped.ts +20 -0
- package/src/components/tek-grid/layout-options.ts +248 -0
- package/src/components/tek-grid/tek-grid-column.ts +193 -0
- package/src/components/tek-grid/tek-grid-columns-button/tek-grid-columns-button-controller.ts +28 -0
- package/src/components/tek-grid/tek-grid-columns-button/tek-grid-columns-button.ts +38 -0
- package/src/components/tek-grid/tek-grid-controller.ts +140 -0
- package/src/components/tek-grid/tek-grid-events.ts +105 -0
- package/src/components/tek-grid/tek-grid-toolbar-provider/export-options/button-option.ts +26 -0
- package/src/components/tek-grid/tek-grid-toolbar-provider/export-options/index.ts +3 -0
- package/src/components/tek-grid/tek-grid-toolbar-provider/export-options/interfaces.ts +6 -0
- package/src/components/tek-grid/tek-grid-toolbar-provider/export-options/multi-option.ts +85 -0
- package/src/components/tek-grid/tek-grid-toolbar-provider/index.ts +2 -0
- package/src/components/tek-grid/tek-grid-toolbar-provider/tek-grid-toolbar-provider.ts +365 -0
- package/src/components/tek-grid/tek-grid.ts +1118 -0
- package/src/components/tek-user-info/TekUserInfoController.ts +87 -0
- package/src/components/tek-user-info/interfaces.ts +21 -0
- package/src/components/tek-user-info/tek-user-info-list.ts +64 -0
- package/src/components/tek-user-info/tek-user-info.ts +337 -0
- package/src/error/tek-grid-delete-rows-error.ts +15 -0
- package/src/error/teknisa-common-error.ts +8 -0
- package/src/index.ts +2 -0
- package/src/utils/config/config.ts +8 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/is-filled-object/is-filled-object.ts +5 -0
- package/src/utils/is-nil.ts +3 -0
- package/tests/__helpers__/component-event-helper.ts +1 -1
- package/tests/__helpers__/get-child-helper.ts +1 -1
- package/tests/__helpers__/mock-created-helper.ts +1 -1
- package/tests/unit/components/crud/crud-button.spec.ts +1 -1
- package/tests/unit/components/tek-datasource/memory-datasource.spec.ts +1 -11
- package/tests/unit/components/tek-datasource/rest-datasource.spec.ts +5 -7
- package/tests/unit/components/tek-drag-grid/tek-drag-grid.spec.ts +1 -1
- package/tests/unit/components/tek-grid/button-option.spec.ts +49 -0
- package/tests/unit/components/tek-grid/columns-searcher.spec.ts +112 -0
- package/tests/unit/components/tek-grid/dynamic-filter-datasource-factory.spec.ts +90 -0
- package/tests/unit/components/tek-grid/filter-helper.spec.ts +34 -130
- package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +114 -239
- package/tests/unit/components/tek-grid/grouped-data-manager.spec.ts +593 -0
- package/tests/unit/components/tek-grid/grouped-data-selector.spec.ts +136 -0
- package/tests/unit/components/tek-grid/grouped-view-navigator.spec.ts +244 -0
- package/tests/unit/components/tek-grid/keymap-grouped.spec.ts +20 -0
- package/tests/unit/components/tek-grid/{layout_options.spec.ts → layout-options.spec.ts} +70 -30
- package/tests/unit/components/tek-grid/multi-option.spec.ts +139 -0
- package/tests/unit/components/tek-grid/{grid-column.spec.ts → tek-grid-column.spec.ts} +44 -2
- package/tests/unit/components/tek-grid/{grid-columns-button.spec.ts → tek-grid-columns-button.spec.ts} +42 -9
- package/tests/unit/components/tek-grid/tek-grid-controller.spec.ts +253 -0
- package/tests/unit/components/tek-grid/tek-grid-events.spec.ts +186 -0
- package/tests/unit/components/tek-grid/tek-grid-toolbar-provider.spec.ts +34 -0
- package/tests/unit/components/tek-grid/tek-grid.spec.ts +895 -0
- package/tests/unit/components/tek-grid/tek-memory-datasource.spec.ts +482 -0
- package/tests/unit/components/tek-grid/tek-rest-datasource.spec.ts +422 -0
- package/tests/unit/components/tek-user-info/tek-user-info-list.spec.ts +1 -1
- package/tests/unit/components/tek-user-info/tek-user-info.spec.ts +10 -14
- package/tests/unit/components/tree-grid/tree-grid.spec.ts +4 -28
- package/tests/unit/utils/grid-base/export-options/multi-option.spec.ts +2 -2
- package/tests/unit/utils/grid-base/grid-controller.spec.ts +17 -152
- package/tsconfig.build.json +7 -0
- package/coverage/clover.xml +0 -2007
- package/coverage/coverage-final.json +0 -48
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -431
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +0 -100
- package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +0 -94
- package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +0 -166
- package/coverage/lcov-report/tests/__helpers__/index.html +0 -176
- package/coverage/lcov-report/tests/__helpers__/index.ts.html +0 -94
- package/coverage/lcov-report/tests/__helpers__/mock-created-helper.ts.html +0 -121
- package/coverage/lcov.info +0 -3885
- package/dist/tek-components-common.esm.js +0 -4833
- package/dist/tek-components-common.umd.js +0 -4870
- package/tests/unit/components/tek-grid/grid.spec.ts +0 -3377
- package/tests/unit/utils/grid-base/delete-rows-error.spec.ts +0 -24
- package/types/components/crud/crud-add-button.d.ts +0 -38
- package/types/components/crud/crud-button.d.ts +0 -27
- package/types/components/crud/crud-cancel-button.d.ts +0 -28
- package/types/components/crud/crud-delete-button.d.ts +0 -42
- package/types/components/crud/crud-form.d.ts +0 -46
- package/types/components/crud/crud-save-button.d.ts +0 -24
- package/types/components/crud/interfaces.d.ts +0 -15
- package/types/components/index.d.ts +0 -41
- package/types/components/tek-card-title/card-title.d.ts +0 -14
- package/types/components/tek-card-title/interfaces.d.ts +0 -9
- package/types/components/tek-drag-grid/interfaces.d.ts +0 -7
- package/types/components/tek-drag-grid/tek-drag-grid.d.ts +0 -36
- package/types/components/tek-grid/grid.d.ts +0 -267
- package/types/components/tek-grid/interfaces.d.ts +0 -203
- package/types/components/tek-image/image.d.ts +0 -55
- package/types/components/tek-image/interfaces.d.ts +0 -12
- package/types/components/tek-iterable-carousel/interfaces.d.ts +0 -5
- package/types/components/tek-iterable-carousel/iterable-carousel.d.ts +0 -13
- package/types/components/tek-iterable-component-render/interfaces.d.ts +0 -3
- package/types/components/tek-iterable-component-render/iterable-component-render.d.ts +0 -10
- package/types/components/tek-loading/interfaces.d.ts +0 -6
- package/types/components/tek-loading/loading.d.ts +0 -24
- package/types/components/tek-notifications/interfaces.d.ts +0 -22
- package/types/components/tek-notifications/notifications.d.ts +0 -35
- package/types/components/tek-product-card/interfaces.d.ts +0 -19
- package/types/components/tek-product-card/product-card.d.ts +0 -66
- package/types/components/tek-tree-grid/interfaces.d.ts +0 -30
- package/types/components/tek-tree-grid/tree-grid.d.ts +0 -102
- package/types/error/incomplete-groups-error.d.ts +0 -8
- package/types/index.d.ts +0 -2
- package/types/utils/extract-properties.d.ts +0 -7
- package/types/utils/grid-base/export-options/interfaces.d.ts +0 -5
- package/types/utils/grid-base/grid-base.d.ts +0 -59
- package/types/utils/grid-base/grid-controller.d.ts +0 -27
- package/types/utils/index.d.ts +0 -6
- package/types/utils/report-filter/report-filter.d.ts +0 -12
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
import { IComponent } from '@zeedhi/common';
|
|
2
|
+
import { IExportable, ITekGridExportConfig } from '../../interfaces';
|
|
3
|
+
import { IExportOption } from './interfaces';
|
|
4
|
+
export declare class ButtonOption implements IExportOption {
|
|
5
|
+
private config;
|
|
6
|
+
constructor(config: ITekGridExportConfig);
|
|
7
|
+
buildComponent(grid: IComponent & IExportable): {
|
|
8
|
+
label: string | undefined;
|
|
9
|
+
iconName: string | undefined;
|
|
10
|
+
name: string;
|
|
11
|
+
component: string;
|
|
12
|
+
flat: boolean;
|
|
13
|
+
events: {
|
|
14
|
+
click: () => any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './button-option';
|
|
2
|
-
export * from './multi-option';
|
|
3
|
-
export * from './interfaces';
|
|
1
|
+
export * from './button-option';
|
|
2
|
+
export * from './multi-option';
|
|
3
|
+
export * from './interfaces';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IRow } from '@zeedhi/common';
|
|
2
|
-
import {
|
|
3
|
-
import { IExportOption } from './interfaces';
|
|
4
|
-
export declare class MultiOption implements IExportOption {
|
|
5
|
-
private config;
|
|
6
|
-
constructor(config: ITekGridExportConfig);
|
|
7
|
-
private formatName;
|
|
8
|
-
private buildTooltip;
|
|
9
|
-
private buildButton;
|
|
10
|
-
private buildDivider;
|
|
11
|
-
buildComponent(grid:
|
|
12
|
-
}
|
|
1
|
+
import { IComponent, IRow } from '@zeedhi/common';
|
|
2
|
+
import { IExportable, ITekGridExportConfig } from '../../interfaces';
|
|
3
|
+
import { IExportOption } from './interfaces';
|
|
4
|
+
export declare class MultiOption implements IExportOption {
|
|
5
|
+
private config;
|
|
6
|
+
constructor(config: ITekGridExportConfig);
|
|
7
|
+
private formatName;
|
|
8
|
+
private buildTooltip;
|
|
9
|
+
private buildButton;
|
|
10
|
+
private buildDivider;
|
|
11
|
+
buildComponent(grid: IComponent & IExportable): IRow;
|
|
12
|
+
}
|
package/dist/types/components/tek-grid/tek-grid-toolbar-provider/tek-grid-toolbar-provider.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { IComponentRender, IGridEditable } from '@zeedhi/common';
|
|
3
|
+
import { IExportable, ISupportsToolbar, ITekGridAtoms, ITekGridToolbarProvider } from '../interfaces';
|
|
4
|
+
type GridEditableWithToolbar = IGridEditable & ISupportsToolbar & IExportable;
|
|
5
|
+
export declare class TekGridToolbarProvider implements ITekGridToolbarProvider {
|
|
6
|
+
private grid;
|
|
7
|
+
private groupsVisibility;
|
|
8
|
+
constructor(grid: GridEditableWithToolbar, groupsVisibility: 'hide' | 'show');
|
|
9
|
+
protected atoms: ITekGridAtoms;
|
|
10
|
+
getAtomName(key: keyof ITekGridAtoms): string;
|
|
11
|
+
getAtomInstance<T>(key: keyof ITekGridAtoms): T;
|
|
12
|
+
private getOption;
|
|
13
|
+
private getExportConfigButtons;
|
|
14
|
+
private hideButtonClick;
|
|
15
|
+
private cancelChanges;
|
|
16
|
+
private saveChanges;
|
|
17
|
+
private addButtonClick;
|
|
18
|
+
private deleteButtonClick;
|
|
19
|
+
reloadGrid({ event }: IEventParam<any>): void;
|
|
20
|
+
getProperties(): IComponentRender[];
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { Datasource, IDictionary, IEventParam } from '@zeedhi/core';
|
|
2
|
+
import { Direction, IGrid, VerticalDirection, IComponent, IComponentRender, IGridColumnEditable, IGridEditable, Iterable, IIterableProps } from '@zeedhi/common';
|
|
3
|
+
import { IModalFilterProps, ITekGrid, ITekGridAtoms, ITekGridColumn, ITekGridExportConfig, ITekGridProps, ITekGridSummary } from './interfaces';
|
|
4
|
+
import { TekGridColumn } from './tek-grid-column';
|
|
5
|
+
export declare class TekGrid extends Iterable<TekGridColumn> implements ITekGrid {
|
|
6
|
+
private tableActionBuilder;
|
|
7
|
+
private iterableTable;
|
|
8
|
+
private dataSelector;
|
|
9
|
+
private tekGridEvents;
|
|
10
|
+
private dataNavigator;
|
|
11
|
+
private groupedViewNavigator;
|
|
12
|
+
private keyMapMerger;
|
|
13
|
+
private dataEditor;
|
|
14
|
+
private columnsSearcher;
|
|
15
|
+
private groupedDataManager;
|
|
16
|
+
private tekGridToolbarProvider;
|
|
17
|
+
title: string;
|
|
18
|
+
addButton: boolean;
|
|
19
|
+
deleteButton: 'none' | 'currentRow' | 'selection';
|
|
20
|
+
actions: IComponentRender[];
|
|
21
|
+
showEditButtons: boolean;
|
|
22
|
+
filterButton: boolean;
|
|
23
|
+
showSearch: boolean;
|
|
24
|
+
columnFilterButton: boolean;
|
|
25
|
+
columnsButton: boolean;
|
|
26
|
+
mainGrid: boolean;
|
|
27
|
+
columnsButtonIgnore: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Enables column dragging
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
dragColumns: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Enables column resizing
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
resizeColumns: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Enables layout saving
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
showLayoutOptions: boolean;
|
|
43
|
+
xlsDefaultType?: string;
|
|
44
|
+
modalFilterProps: IModalFilterProps;
|
|
45
|
+
/**
|
|
46
|
+
* Show export button
|
|
47
|
+
*/
|
|
48
|
+
showExport: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Show refresh button
|
|
51
|
+
*/
|
|
52
|
+
showReload: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Export config
|
|
55
|
+
*/
|
|
56
|
+
exportConfig: ITekGridExportConfig[];
|
|
57
|
+
/**
|
|
58
|
+
* Actions to overwrite the default export config
|
|
59
|
+
*/
|
|
60
|
+
exportActions?: IComponentRender[];
|
|
61
|
+
/**
|
|
62
|
+
* Groups should be opened by default after building
|
|
63
|
+
*/
|
|
64
|
+
groupsOpened: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Show Total summary
|
|
67
|
+
*/
|
|
68
|
+
showSummaryTotal: boolean;
|
|
69
|
+
editNewRowsOnly: boolean;
|
|
70
|
+
protected keyShortcutKeyMapping: any;
|
|
71
|
+
showCheckboxAllFilter: boolean;
|
|
72
|
+
defaultFilter: IDictionary;
|
|
73
|
+
toolbarOpened: boolean;
|
|
74
|
+
reportTitle: string;
|
|
75
|
+
editing: boolean;
|
|
76
|
+
currentColumn: TekGridColumn | null;
|
|
77
|
+
selectedRows: IDictionary<any>[];
|
|
78
|
+
selectionState: {
|
|
79
|
+
allSelected: boolean;
|
|
80
|
+
except: IDictionary<any>[];
|
|
81
|
+
};
|
|
82
|
+
rowStyleConditions?: (row: IDictionary) => IDictionary;
|
|
83
|
+
selectAllPages: boolean;
|
|
84
|
+
selectable: boolean;
|
|
85
|
+
disableSelection?: (args: {
|
|
86
|
+
row: IDictionary<any>;
|
|
87
|
+
component: IGrid;
|
|
88
|
+
}) => boolean;
|
|
89
|
+
cellSelection: boolean;
|
|
90
|
+
toolbarSlot: IComponentRender[];
|
|
91
|
+
footerSlot: IComponentRender[];
|
|
92
|
+
noResultsText: string;
|
|
93
|
+
noResultSlot: IComponentRender[];
|
|
94
|
+
errorSlot: IComponentRender[];
|
|
95
|
+
dense: boolean;
|
|
96
|
+
headerBackground: string;
|
|
97
|
+
headerCellTextColor: string;
|
|
98
|
+
height: string | number;
|
|
99
|
+
loadingText: string;
|
|
100
|
+
maxHeight: string | number;
|
|
101
|
+
maxWidth: string | number;
|
|
102
|
+
minHeight: string | number;
|
|
103
|
+
minWidth: string | number;
|
|
104
|
+
noDataText: string;
|
|
105
|
+
noDataSlot: IComponentRender[];
|
|
106
|
+
showFooter: boolean;
|
|
107
|
+
showHeader: boolean;
|
|
108
|
+
showSelectAll: boolean;
|
|
109
|
+
width: string | number;
|
|
110
|
+
backgroundColor: string;
|
|
111
|
+
canEditRow?: ((args: {
|
|
112
|
+
row: IDictionary<any>;
|
|
113
|
+
component: IGridEditable;
|
|
114
|
+
}) => boolean) | undefined;
|
|
115
|
+
showCancelColumn: boolean;
|
|
116
|
+
doubleClickEdit: boolean;
|
|
117
|
+
singleEdit: boolean;
|
|
118
|
+
editingNewRows: boolean;
|
|
119
|
+
private defaultLazy;
|
|
120
|
+
private toolbarSlotProps;
|
|
121
|
+
filterRelationsDatasource?: Datasource;
|
|
122
|
+
filterOperationsDatasource?: Datasource;
|
|
123
|
+
/**
|
|
124
|
+
* TekGrid class constructor
|
|
125
|
+
* @param props TekGrid properties
|
|
126
|
+
*/
|
|
127
|
+
constructor(props: ITekGridProps);
|
|
128
|
+
protected initializeDatasource(props: IIterableProps): void;
|
|
129
|
+
columnHasFilter(columnName: string): boolean;
|
|
130
|
+
registerTask(task: Promise<any>): void;
|
|
131
|
+
loadAfterTasks(): Promise<void>;
|
|
132
|
+
calcSummary(column: TekGridColumn, columnNamesummary: ITekGridSummary, row: IDictionary): void;
|
|
133
|
+
private getDefaultLazy;
|
|
134
|
+
initializeGrouping(lazyLoad: boolean): void;
|
|
135
|
+
updateGrouping(): void;
|
|
136
|
+
updateGroupedData(lazyLoad: boolean): Promise<void>;
|
|
137
|
+
buildGroupedData(): void;
|
|
138
|
+
openGroup(group: IDictionary<any>): void;
|
|
139
|
+
isItemVisible(row: IDictionary<any>): any;
|
|
140
|
+
isGrouped(): boolean;
|
|
141
|
+
isColumnSearchable(column: TekGridColumn): boolean;
|
|
142
|
+
getGroupedData(): IDictionary<any>[];
|
|
143
|
+
directionalLeft(param: IEventParam<any>): void;
|
|
144
|
+
directionalRight(param: IEventParam<any>): void;
|
|
145
|
+
getReport(): Promise<Window | null>;
|
|
146
|
+
setViewUpdateFixedColumns(fn: () => void): void;
|
|
147
|
+
setViewUpdateScrollData(fn: () => void): void;
|
|
148
|
+
onCreated(): void;
|
|
149
|
+
private createDynamicFilterDatasources;
|
|
150
|
+
onMounted(element: HTMLElement): void;
|
|
151
|
+
onBeforeDestroy(): void;
|
|
152
|
+
createColumn(column: ITekGridColumn): TekGridColumn;
|
|
153
|
+
getConditionalProps({ row, column }: {
|
|
154
|
+
row: IDictionary;
|
|
155
|
+
column: TekGridColumn;
|
|
156
|
+
}): Partial<IComponentRender>;
|
|
157
|
+
changeOrder(sortBy: {
|
|
158
|
+
key: string;
|
|
159
|
+
order: 'asc' | 'desc';
|
|
160
|
+
}[]): Promise<void>;
|
|
161
|
+
selectCell(row: IDictionary, column: TekGridColumn): void;
|
|
162
|
+
reapplyRowStyleConditions(row: IDictionary): IDictionary;
|
|
163
|
+
getRowStyleConditions(row: IDictionary): IDictionary;
|
|
164
|
+
deleteRows(): Promise<any[]>;
|
|
165
|
+
selectAll(isSelected: boolean): void;
|
|
166
|
+
toggleRow(row: IDictionary): void;
|
|
167
|
+
selectRow(row: IDictionary, select: boolean): void;
|
|
168
|
+
callDisableSelection(row: IDictionary): boolean;
|
|
169
|
+
selectClick(row: IDictionary<any>, isSelected: boolean, event: Event, element?: HTMLElement): void;
|
|
170
|
+
selectAllClick(isSelected: boolean, event: Event, element?: HTMLElement): void;
|
|
171
|
+
navigatePageUp(): void;
|
|
172
|
+
navigatePageDown(): void;
|
|
173
|
+
setViewNavigate(viewNavigate: (direction: Direction, event?: Event) => void): void;
|
|
174
|
+
navigateLeft(params: IEventParam<any>): void;
|
|
175
|
+
navigateRight(params: IEventParam<any>): void;
|
|
176
|
+
navigateUp(): void;
|
|
177
|
+
navigateDown(): void;
|
|
178
|
+
navigateDatasource(direction: VerticalDirection): void;
|
|
179
|
+
getActionComponent(actionComponent: IComponent, column: TekGridColumn, row: IDictionary, parentPath?: string): IComponent;
|
|
180
|
+
addCancelColumn(): void;
|
|
181
|
+
getCancelColumnProps(): IGridColumnEditable;
|
|
182
|
+
isAdded(row: IDictionary): boolean;
|
|
183
|
+
cancelAddedRow(key: string | number): Promise<any>;
|
|
184
|
+
cancelAddedRows(): Promise<void>;
|
|
185
|
+
getAddedRows(): IDictionary<any>[];
|
|
186
|
+
addNewRow(row: IDictionary, position?: 'end' | 'start'): Promise<void>;
|
|
187
|
+
getVisibleValue(row: IDictionary, column: ITekGridColumn): any;
|
|
188
|
+
getEditableComponent(column: ITekGridColumn, row: IDictionary<any>): IComponentRender;
|
|
189
|
+
isEdited(column: ITekGridColumn, row: IDictionary): boolean;
|
|
190
|
+
isValid(column: ITekGridColumn, row: IDictionary, revalidate?: boolean): Promise<boolean>;
|
|
191
|
+
checkValid(column: ITekGridColumn, row: IDictionary): boolean;
|
|
192
|
+
isGridValid(revalidate?: boolean): boolean;
|
|
193
|
+
getComponent<T>(key: string, columnName: string): T;
|
|
194
|
+
updateRow(newRow: IDictionary): void;
|
|
195
|
+
updateCell(rowKey: string, columnName: string, value: any): void;
|
|
196
|
+
setViewEnterEdit(fn: ((rowKey: string, columnName: string) => void) | null): void;
|
|
197
|
+
enterEdit(rowKey: string, columnName: string): void;
|
|
198
|
+
cancelEditedRows(): Promise<void>;
|
|
199
|
+
saveEditedRows(revalidate?: boolean): Promise<void[]>;
|
|
200
|
+
reapplyCanEditRow(row: IDictionary<any>): void;
|
|
201
|
+
getCanEditRow(row: IDictionary<any>): boolean | undefined;
|
|
202
|
+
getEditedRows(revalidate?: boolean, silent?: boolean): IDictionary<any>[];
|
|
203
|
+
getEditedRow(row: IDictionary): IDictionary | undefined;
|
|
204
|
+
rowClick(row: IDictionary<any>, event: Event, element?: HTMLElement): void;
|
|
205
|
+
rowDoubleClick(row: IDictionary<any>, event: Event, element?: HTMLElement): void;
|
|
206
|
+
cellDoubleClick(row: IDictionary<any>, column: TekGridColumn, event: Event, element?: HTMLElement): void;
|
|
207
|
+
inlineEdit(row: IDictionary, column: TekGridColumn, event?: Event, element?: HTMLElement): void;
|
|
208
|
+
cellClick(row: IDictionary<any>, column: TekGridColumn, event: Event, element?: HTMLElement): void;
|
|
209
|
+
cellClickEvent(row: IDictionary<any>, column: TekGridColumn, event: Event, element?: HTMLElement): void;
|
|
210
|
+
groupRowClick(row: IDictionary<any>, event: Event, element?: HTMLElement): void;
|
|
211
|
+
groupRowDoubleClick(row: IDictionary<any>, event: Event, element?: HTMLElement): void;
|
|
212
|
+
selectGroupClick(row: IDictionary<any>, isSelected: boolean, event: Event, element?: HTMLElement): void;
|
|
213
|
+
setSearch(search: string): Promise<any>;
|
|
214
|
+
getAtomInstance<T>(key: keyof ITekGridAtoms): T;
|
|
215
|
+
getAtomName(key: keyof ITekGridAtoms): string;
|
|
216
|
+
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { TekUserInfo } from './tek-user-info';
|
|
2
|
-
|
|
3
|
-
component: TekUserInfo;
|
|
4
|
-
get versionInfo(): import("./interfaces").IVersionInfo | null;
|
|
5
|
-
constructor(component: TekUserInfo);
|
|
6
|
-
get name(): string;
|
|
7
|
-
set name(value: string);
|
|
8
|
-
get version(): string;
|
|
9
|
-
set version(value: string);
|
|
10
|
-
get hasDefaultEmail(): boolean;
|
|
11
|
-
get hasAboutImage(): boolean;
|
|
12
|
-
mergeText(name: string, version: string): string;
|
|
13
|
-
get mainVersion(): string;
|
|
14
|
-
protected getItems(tab: 'frontend' | 'backend' | 'modules'): string | never[];
|
|
15
|
-
get frontendItems(): string | never[];
|
|
16
|
-
get backendItems(): string | never[];
|
|
17
|
-
get modulesItems(): string | never[];
|
|
18
|
-
get showReportError(): boolean;
|
|
19
|
-
get showVersionInfo(): boolean;
|
|
20
|
-
get showAbout(): boolean;
|
|
21
|
-
}
|
|
1
|
+
import { TekUserInfo } from './tek-user-info';
|
|
2
|
+
declare class TekUserInfoController {
|
|
3
|
+
component: TekUserInfo;
|
|
4
|
+
get versionInfo(): import("./interfaces").IVersionInfo | null;
|
|
5
|
+
constructor(component: TekUserInfo);
|
|
6
|
+
get name(): string;
|
|
7
|
+
set name(value: string);
|
|
8
|
+
get version(): string;
|
|
9
|
+
set version(value: string);
|
|
10
|
+
get hasDefaultEmail(): boolean;
|
|
11
|
+
get hasAboutImage(): boolean;
|
|
12
|
+
mergeText(name: string, version: string): string;
|
|
13
|
+
get mainVersion(): string;
|
|
14
|
+
protected getItems(tab: 'frontend' | 'backend' | 'modules'): string | never[];
|
|
15
|
+
get frontendItems(): string | never[];
|
|
16
|
+
get backendItems(): string | never[];
|
|
17
|
+
get modulesItems(): string | never[];
|
|
18
|
+
get showReportError(): boolean;
|
|
19
|
+
get showVersionInfo(): boolean;
|
|
20
|
+
get showAbout(): boolean;
|
|
21
|
+
}
|
|
22
|
+
export { TekUserInfoController };
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { IList } from '@zeedhi/common';
|
|
2
|
-
import { IUserInfo } from '@zeedhi/zd-user-info-common';
|
|
3
|
-
export interface IVersionInfo {
|
|
4
|
-
name: string;
|
|
5
|
-
version: string;
|
|
6
|
-
frontend: {
|
|
7
|
-
name: string;
|
|
8
|
-
version: string;
|
|
9
|
-
}[];
|
|
10
|
-
backend: {
|
|
11
|
-
name: string;
|
|
12
|
-
version: string;
|
|
13
|
-
}[];
|
|
14
|
-
modules: {
|
|
15
|
-
name: string;
|
|
16
|
-
version: string;
|
|
17
|
-
}[];
|
|
18
|
-
}
|
|
19
|
-
export interface ITekUserInfo extends IUserInfo {
|
|
20
|
-
aboutImage?: string;
|
|
21
|
-
defaultEmail?: string;
|
|
22
|
-
versionInfo?: IVersionInfo | null;
|
|
23
|
-
versionUrl?: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
1
|
+
import { IList } from '@zeedhi/common';
|
|
2
|
+
import { IUserInfo } from '@zeedhi/zd-user-info-common';
|
|
3
|
+
export interface IVersionInfo {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
frontend: {
|
|
7
|
+
name: string;
|
|
8
|
+
version: string;
|
|
9
|
+
}[];
|
|
10
|
+
backend: {
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}[];
|
|
14
|
+
modules: {
|
|
15
|
+
name: string;
|
|
16
|
+
version: string;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
export interface ITekUserInfo extends IUserInfo {
|
|
20
|
+
aboutImage?: string;
|
|
21
|
+
defaultEmail?: string;
|
|
22
|
+
versionInfo?: IVersionInfo | null;
|
|
23
|
+
versionUrl?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ITekUserInfoList extends IList {
|
|
26
|
+
parentName?: string;
|
|
27
|
+
}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { List } from '@zeedhi/common';
|
|
2
|
-
import {
|
|
3
|
-
export declare class TekUserInfoList extends List implements ITekUserInfoList {
|
|
4
|
-
/**
|
|
5
|
-
* Name of the user info component
|
|
6
|
-
*/
|
|
7
|
-
parentName: string;
|
|
8
|
-
dense: boolean;
|
|
9
|
-
constructor(props:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
1
|
+
import { List } from '@zeedhi/common';
|
|
2
|
+
import { ITekUserInfoList } from './interfaces';
|
|
3
|
+
export declare class TekUserInfoList extends List implements ITekUserInfoList {
|
|
4
|
+
/**
|
|
5
|
+
* Name of the user info component
|
|
6
|
+
*/
|
|
7
|
+
parentName: string;
|
|
8
|
+
dense: boolean;
|
|
9
|
+
constructor(props: ITekUserInfoList);
|
|
10
|
+
onCreated(): void;
|
|
11
|
+
protected getItems(): ({
|
|
12
|
+
name: string;
|
|
13
|
+
component: string;
|
|
14
|
+
title: string;
|
|
15
|
+
subtitle: string;
|
|
16
|
+
isVisible: string;
|
|
17
|
+
cssClass: string;
|
|
18
|
+
prependIcon?: undefined;
|
|
19
|
+
events?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
component: string;
|
|
23
|
+
title: string;
|
|
24
|
+
prependIcon: string;
|
|
25
|
+
cssClass: string;
|
|
26
|
+
isVisible: string;
|
|
27
|
+
events: {
|
|
28
|
+
click: () => void;
|
|
29
|
+
};
|
|
30
|
+
subtitle?: undefined;
|
|
31
|
+
})[];
|
|
32
|
+
}
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import { Button, IComponentRender, Modal } from '@zeedhi/common';
|
|
2
|
-
import { IEventParam } from '@zeedhi/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare class TekUserInfo extends UserInfo implements ITekUserInfo {
|
|
6
|
-
aboutModal?: Modal;
|
|
7
|
-
reportModal?: Modal;
|
|
8
|
-
/**
|
|
9
|
-
* Data about the application version
|
|
10
|
-
*/
|
|
11
|
-
versionInfo: IVersionInfo | null;
|
|
12
|
-
/**
|
|
13
|
-
* Default email address to be defined in the Report Bug form
|
|
14
|
-
*/
|
|
15
|
-
defaultEmail: string;
|
|
16
|
-
/**
|
|
17
|
-
* Url from which the version info will be retrieved
|
|
18
|
-
*/
|
|
19
|
-
versionUrl: string;
|
|
20
|
-
/**
|
|
21
|
-
* Path to the image to be shown on about modal
|
|
22
|
-
*/
|
|
23
|
-
aboutImage: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
1
|
+
import { Button, IComponentRender, Modal } from '@zeedhi/common';
|
|
2
|
+
import { IEventParam } from '@zeedhi/core';
|
|
3
|
+
import { ITekUserInfo, IVersionInfo } from './interfaces';
|
|
4
|
+
import { UserInfo } from '@zeedhi/zd-user-info-common';
|
|
5
|
+
export declare class TekUserInfo extends UserInfo implements ITekUserInfo {
|
|
6
|
+
aboutModal?: Modal;
|
|
7
|
+
reportModal?: Modal;
|
|
8
|
+
/**
|
|
9
|
+
* Data about the application version
|
|
10
|
+
*/
|
|
11
|
+
versionInfo: IVersionInfo | null;
|
|
12
|
+
/**
|
|
13
|
+
* Default email address to be defined in the Report Bug form
|
|
14
|
+
*/
|
|
15
|
+
defaultEmail: string;
|
|
16
|
+
/**
|
|
17
|
+
* Url from which the version info will be retrieved
|
|
18
|
+
*/
|
|
19
|
+
versionUrl: string;
|
|
20
|
+
/**
|
|
21
|
+
* Path to the image to be shown on about modal
|
|
22
|
+
*/
|
|
23
|
+
aboutImage: string;
|
|
24
|
+
protected propBottomSlot?: IComponentRender[];
|
|
25
|
+
constructor(props: ITekUserInfo);
|
|
26
|
+
protected getBottomSlot(): IComponentRender[];
|
|
27
|
+
onAboutClick(): void;
|
|
28
|
+
protected getVersionTree(tab: 'frontend' | 'backend' | 'modules'): {
|
|
29
|
+
name: string;
|
|
30
|
+
component: string;
|
|
31
|
+
text: string;
|
|
32
|
+
}[];
|
|
33
|
+
onReportClick(): void;
|
|
34
|
+
onSendReport({ event, element }: IEventParam<Button>): Promise<void>;
|
|
35
|
+
onCreated(): void;
|
|
36
|
+
onMounted(element: any): Promise<void>;
|
|
37
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete rows error
|
|
3
|
-
*/
|
|
4
|
-
export declare class TekGridDeleteRowsError extends Error {
|
|
5
|
-
constructor();
|
|
6
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Delete rows error
|
|
3
|
+
*/
|
|
4
|
+
export declare class TekGridDeleteRowsError extends Error {
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IConfig } from '@zeedhi/core';
|
|
2
|
-
export interface ITekConfig extends IConfig {
|
|
3
|
-
saveGridLayoutsEndPoint?: string;
|
|
4
|
-
loadGridLayoutsEndPoint?: string;
|
|
5
|
-
selectAllCompatibilityMode?: boolean;
|
|
6
|
-
gridShowCheckboxAllFilter?: boolean;
|
|
7
|
-
}
|
|
1
|
+
import { IConfig } from '@zeedhi/core';
|
|
2
|
+
export interface ITekConfig extends IConfig {
|
|
3
|
+
saveGridLayoutsEndPoint?: string;
|
|
4
|
+
loadGridLayoutsEndPoint?: string;
|
|
5
|
+
selectAllCompatibilityMode?: boolean;
|
|
6
|
+
gridShowCheckboxAllFilter?: boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isNil(value: unknown): value is null | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"development": {
|
|
3
|
+
"devDependencies": {
|
|
4
|
+
"@zeedhi/common": "file:../../../zeedhi-client-core/packages/common",
|
|
5
|
+
"@zeedhi/core": "file:../../../zeedhi-client-core/packages/core"
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
"production": {
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@zeedhi/common": "^3.0.0",
|
|
11
|
+
"@zeedhi/core": "^3.0.0"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|