@zeedhi/teknisa-components-common 1.97.0 → 1.97.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 +671 -714
- package/coverage/coverage-final.json +45 -45
- 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 +16 -16
- package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +2 -2
- package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +2 -2
- package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +9 -9
- 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-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 +1144 -1214
- package/dist/tek-components-common.esm.js +17 -4
- package/dist/tek-components-common.umd.js +16 -3
- package/package.json +2 -2
- package/tests/unit/components/tek-grid/grid.spec.ts +25 -0
- package/types/components/tek-grid/grid.d.ts +4 -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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyMap, I18n, FormatterParserProvider, Messages, DatasourceFactory, Metadata, MemoryDatasource, URL, Utils, RestDatasource, Config, Loader, DateHelper, Http, Singleton, VersionService } from '@zeedhi/core';
|
|
1
|
+
import { KeyMap, I18n, FormatterParserProvider, Messages, DatasourceFactory, Metadata, MemoryDatasource, URL, Utils, RestDatasource, Config, Accessor, Loader, DateHelper, Http, Singleton, VersionService } from '@zeedhi/core';
|
|
2
2
|
import { Form, Button, Tooltip, GridEditable, Grid, ComponentRender, Iterable, Carousel, IterableComponentRender as IterableComponentRender$1, Loading as Loading$1, GridColumnEditable, Report, ColumnNotFoundError, IterableColumnsButtonController, IterableColumnsButton, ModalService, SelectMultiple, TreeGridEditable, List } from '@zeedhi/common';
|
|
3
3
|
import debounce from 'lodash.debounce';
|
|
4
4
|
import merge from 'lodash.merge';
|
|
@@ -2108,8 +2108,7 @@ class TekGrid extends GridEditable {
|
|
|
2108
2108
|
* @param props TekGrid properties
|
|
2109
2109
|
*/
|
|
2110
2110
|
constructor(props) {
|
|
2111
|
-
|
|
2112
|
-
super(Object.assign(Object.assign({}, props), { datasource: Object.assign(Object.assign({}, props.datasource), { lazyLoad: true }) }));
|
|
2111
|
+
super(props);
|
|
2113
2112
|
/* Grid Title */
|
|
2114
2113
|
this.title = '';
|
|
2115
2114
|
/* Show Add button */
|
|
@@ -2292,10 +2291,24 @@ class TekGrid extends GridEditable {
|
|
|
2292
2291
|
},
|
|
2293
2292
|
};
|
|
2294
2293
|
this.createAccessors();
|
|
2294
|
+
this.defaultLazy = this.getDefaultLazy(props);
|
|
2295
2295
|
this.gridBase = new GridBase(this);
|
|
2296
2296
|
this.filterOperationsDatasource = this.gridBase.getFilterOperationsDatasource();
|
|
2297
2297
|
this.filterRelationsDatasource = this.gridBase.getFilterRelationsDatasource();
|
|
2298
|
-
|
|
2298
|
+
}
|
|
2299
|
+
getDatasourceDefaults() {
|
|
2300
|
+
return { lazyLoad: true };
|
|
2301
|
+
}
|
|
2302
|
+
getDefaultLazy(props) {
|
|
2303
|
+
if (typeof props.datasource === 'object') {
|
|
2304
|
+
return props.datasource.lazyLoad;
|
|
2305
|
+
}
|
|
2306
|
+
if (typeof props.datasource === 'string' && Accessor.isAccessorDefinition(props.datasource)) {
|
|
2307
|
+
const [controller, accessor] = Accessor.getAccessor(props.datasource);
|
|
2308
|
+
const instance = Loader.getInstance(controller);
|
|
2309
|
+
return instance[accessor].lazyLoad || false;
|
|
2310
|
+
}
|
|
2311
|
+
return false;
|
|
2299
2312
|
}
|
|
2300
2313
|
onCreated() {
|
|
2301
2314
|
super.onCreated();
|
|
@@ -2112,8 +2112,7 @@
|
|
|
2112
2112
|
* @param props TekGrid properties
|
|
2113
2113
|
*/
|
|
2114
2114
|
constructor(props) {
|
|
2115
|
-
|
|
2116
|
-
super(Object.assign(Object.assign({}, props), { datasource: Object.assign(Object.assign({}, props.datasource), { lazyLoad: true }) }));
|
|
2115
|
+
super(props);
|
|
2117
2116
|
/* Grid Title */
|
|
2118
2117
|
this.title = '';
|
|
2119
2118
|
/* Show Add button */
|
|
@@ -2296,10 +2295,24 @@
|
|
|
2296
2295
|
},
|
|
2297
2296
|
};
|
|
2298
2297
|
this.createAccessors();
|
|
2298
|
+
this.defaultLazy = this.getDefaultLazy(props);
|
|
2299
2299
|
this.gridBase = new GridBase(this);
|
|
2300
2300
|
this.filterOperationsDatasource = this.gridBase.getFilterOperationsDatasource();
|
|
2301
2301
|
this.filterRelationsDatasource = this.gridBase.getFilterRelationsDatasource();
|
|
2302
|
-
|
|
2302
|
+
}
|
|
2303
|
+
getDatasourceDefaults() {
|
|
2304
|
+
return { lazyLoad: true };
|
|
2305
|
+
}
|
|
2306
|
+
getDefaultLazy(props) {
|
|
2307
|
+
if (typeof props.datasource === 'object') {
|
|
2308
|
+
return props.datasource.lazyLoad;
|
|
2309
|
+
}
|
|
2310
|
+
if (typeof props.datasource === 'string' && core.Accessor.isAccessorDefinition(props.datasource)) {
|
|
2311
|
+
const [controller, accessor] = core.Accessor.getAccessor(props.datasource);
|
|
2312
|
+
const instance = core.Loader.getInstance(controller);
|
|
2313
|
+
return instance[accessor].lazyLoad || false;
|
|
2314
|
+
}
|
|
2315
|
+
return false;
|
|
2303
2316
|
}
|
|
2304
2317
|
onCreated() {
|
|
2305
2318
|
super.onCreated();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-components-common",
|
|
3
|
-
"version": "1.97.
|
|
3
|
+
"version": "1.97.1",
|
|
4
4
|
"description": "Teknisa Components Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@zeedhi/core": "~1.97.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ff6f76c07441863c96758cecfb84300f914a15d3"
|
|
36
36
|
}
|
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
} from '@zeedhi/common';
|
|
6
6
|
import {
|
|
7
7
|
KeyMap, Http, Metadata, IDictionary, IEventParam,
|
|
8
|
+
Datasource,
|
|
9
|
+
init,
|
|
8
10
|
} from '@zeedhi/core';
|
|
9
11
|
import {
|
|
10
12
|
ITekGrid,
|
|
@@ -19,6 +21,13 @@ jest.mock('lodash.debounce', () => jest.fn((fn) => fn));
|
|
|
19
21
|
|
|
20
22
|
jest.useFakeTimers();
|
|
21
23
|
|
|
24
|
+
class AppController {
|
|
25
|
+
public datasource = {
|
|
26
|
+
uniqueKey: 'id',
|
|
27
|
+
data: [{ id: '1' }],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
const clickOnFilterButton = (grid: TekGrid, event?: any) => {
|
|
23
32
|
const buttonProps = getChild<ITekGridFilterButton>(grid.toolbarSlot, `${grid.name}_filterButton`);
|
|
24
33
|
const filterButton = new TekGridFilterButton(buttonProps);
|
|
@@ -177,6 +186,22 @@ describe('TekGrid', () => {
|
|
|
177
186
|
expect((instance as any).gridBase.exportConfigButtons[0].flat).toBeTruthy();
|
|
178
187
|
expect((instance as any).gridBase.exportConfigButtons[0].events).toBeDefined();
|
|
179
188
|
});
|
|
189
|
+
|
|
190
|
+
it('should create new TekGrid with accessor datasource', () => {
|
|
191
|
+
init({
|
|
192
|
+
controllers: {
|
|
193
|
+
AppController,
|
|
194
|
+
},
|
|
195
|
+
});
|
|
196
|
+
const instance = new TekGrid({
|
|
197
|
+
name: 'grid',
|
|
198
|
+
component: 'TekGrid',
|
|
199
|
+
datasource: '{{AppController.datasource}}' as any,
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
expect(instance.datasource).toBeInstanceOf(Datasource);
|
|
203
|
+
expect(instance.datasource.data).toEqual([{ id: '1' }]);
|
|
204
|
+
});
|
|
180
205
|
});
|
|
181
206
|
|
|
182
207
|
describe('getReport()', () => {
|
|
@@ -79,7 +79,11 @@ export declare class TekGrid extends GridEditable implements ITekGrid {
|
|
|
79
79
|
* @param props TekGrid properties
|
|
80
80
|
*/
|
|
81
81
|
constructor(props: ITekGrid);
|
|
82
|
+
protected getDatasourceDefaults(): {
|
|
83
|
+
lazyLoad: boolean;
|
|
84
|
+
};
|
|
82
85
|
private defaultLazy;
|
|
86
|
+
private getDefaultLazy;
|
|
83
87
|
onCreated(): void;
|
|
84
88
|
onMounted(element: HTMLElement): void;
|
|
85
89
|
onBeforeDestroy(): void;
|
|
@@ -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
|
-
}
|