@zeedhi/teknisa-components-common 1.114.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.package.json +40 -0
- package/dist/teknisa-components-common.js +112 -0
- package/dist/teknisa-components-common.min.js +112 -0
- package/dist/types/components/index.d.ts +2 -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/{types → dist/types}/error/delete-rows-error.d.ts +6 -6
- package/dist/types/index.d.ts +1 -0
- package/environments.json +14 -0
- package/package.json +26 -18
- package/src/components/index.ts +108 -0
- package/src/components/tek-breadcrumb-header/breadcrumb-header.ts +29 -0
- package/src/components/tek-breadcrumb-header/interfaces.ts +7 -0
- package/src/error/delete-rows-error.ts +11 -0
- package/src/index.ts +1 -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/grid-column.spec.ts +4 -4
- package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +17 -11
- package/tests/unit/components/tek-grid/grid.spec.ts +45 -721
- package/tests/unit/components/tek-grid/layout_options.spec.ts +5 -7
- 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/dist/tek-components-common.esm.js +0 -4830
- package/dist/tek-components-common.umd.js +0 -4867
- 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-datasource/interfaces.d.ts +0 -16
- package/types/components/tek-datasource/memory-datasource.d.ts +0 -100
- package/types/components/tek-datasource/rest-datasource.d.ts +0 -103
- 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/filter-helper.d.ts +0 -7
- package/types/components/tek-grid/grid-column.d.ts +0 -45
- package/types/components/tek-grid/grid-columns-button-controller.d.ts +0 -8
- package/types/components/tek-grid/grid-columns-button.d.ts +0 -12
- package/types/components/tek-grid/grid-filter-button.d.ts +0 -31
- package/types/components/tek-grid/grid.d.ts +0 -267
- package/types/components/tek-grid/interfaces.d.ts +0 -203
- package/types/components/tek-grid/layout-options.d.ts +0 -31
- 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/components/tek-user-info/TekUserInfoController.d.ts +0 -21
- package/types/components/tek-user-info/interfaces.d.ts +0 -27
- package/types/components/tek-user-info/tek-user-info-list.d.ts +0 -31
- package/types/components/tek-user-info/tek-user-info.d.ts +0 -37
- package/types/error/incomplete-groups-error.d.ts +0 -8
- package/types/index.d.ts +0 -2
- package/types/utils/config/config.d.ts +0 -7
- package/types/utils/extract-properties.d.ts +0 -7
- package/types/utils/grid-base/export-options/button-option.d.ts +0 -16
- package/types/utils/grid-base/export-options/index.d.ts +0 -3
- package/types/utils/grid-base/export-options/interfaces.d.ts +0 -5
- package/types/utils/grid-base/export-options/multi-option.d.ts +0 -12
- 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,22 +0,0 @@
|
|
|
1
|
-
import { IIterable, IComponentEvents, EventDef } from '@zeedhi/common';
|
|
2
|
-
import { IEventParam } from '@zeedhi/core';
|
|
3
|
-
import { Notifications } from './notifications';
|
|
4
|
-
export interface INotification {
|
|
5
|
-
id: string;
|
|
6
|
-
date: string;
|
|
7
|
-
subject: string;
|
|
8
|
-
body: string;
|
|
9
|
-
read: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface INotificationsEvent extends IEventParam<Notifications> {
|
|
12
|
-
notification: INotification;
|
|
13
|
-
}
|
|
14
|
-
export interface INotificationsEvents<T = INotificationsEvent | IEventParam<any>> extends IComponentEvents<T> {
|
|
15
|
-
showAllClick?: EventDef<T>;
|
|
16
|
-
notificationClick?: EventDef<T>;
|
|
17
|
-
markAllAsReadClick?: EventDef<T>;
|
|
18
|
-
}
|
|
19
|
-
export interface INotifications extends IIterable {
|
|
20
|
-
allNotificationsPath?: string;
|
|
21
|
-
events?: INotificationsEvents;
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Iterable } from '@zeedhi/common';
|
|
2
|
-
import { INotifications, INotificationsEvents } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Notifications component is used to show notifications
|
|
5
|
-
*/
|
|
6
|
-
export declare class Notifications extends Iterable implements INotifications {
|
|
7
|
-
allNotificationsPath: string;
|
|
8
|
-
/**
|
|
9
|
-
* Defines grid events.
|
|
10
|
-
*/
|
|
11
|
-
events: INotificationsEvents;
|
|
12
|
-
cardTitle: {
|
|
13
|
-
name: string;
|
|
14
|
-
component: string;
|
|
15
|
-
title: string;
|
|
16
|
-
rightSlot: {
|
|
17
|
-
name: string;
|
|
18
|
-
component: string;
|
|
19
|
-
tag: string;
|
|
20
|
-
events: {
|
|
21
|
-
click: ({ event, element }: any) => void;
|
|
22
|
-
};
|
|
23
|
-
children: {
|
|
24
|
-
name: string;
|
|
25
|
-
cssClass: string;
|
|
26
|
-
component: string;
|
|
27
|
-
text: string;
|
|
28
|
-
}[];
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
31
|
-
constructor(props: INotifications);
|
|
32
|
-
markAsRead({ event, element }: any): void;
|
|
33
|
-
showAll(event: Event, element: HTMLElement): void;
|
|
34
|
-
notificationClick(event: Event, notification: any, element: HTMLElement): void;
|
|
35
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IComponentRender } from '@zeedhi/common';
|
|
2
|
-
import { IEventParam } from '@zeedhi/core';
|
|
3
|
-
import { ProductCard } from './product-card';
|
|
4
|
-
export declare type IProductCardEvent = IEventParam<ProductCard>;
|
|
5
|
-
export interface IProductCard extends IComponentRender {
|
|
6
|
-
id?: string;
|
|
7
|
-
to?: string;
|
|
8
|
-
src?: string;
|
|
9
|
-
errorImagePath?: string;
|
|
10
|
-
errorImageText?: string;
|
|
11
|
-
productPrice?: number | string;
|
|
12
|
-
productName?: string;
|
|
13
|
-
productSupplier?: string;
|
|
14
|
-
productBrand?: string;
|
|
15
|
-
width?: string;
|
|
16
|
-
height?: number | string;
|
|
17
|
-
maxHeight?: number | string;
|
|
18
|
-
minHeight?: number | string;
|
|
19
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '@zeedhi/common';
|
|
2
|
-
import { IProductCard } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Teknisa product card component
|
|
5
|
-
*/
|
|
6
|
-
export declare class ProductCard extends ComponentRender implements IProductCard {
|
|
7
|
-
/**
|
|
8
|
-
* Route path.
|
|
9
|
-
*/
|
|
10
|
-
to: string;
|
|
11
|
-
/**
|
|
12
|
-
* Product Id.
|
|
13
|
-
*/
|
|
14
|
-
id: string;
|
|
15
|
-
/**
|
|
16
|
-
* Image source Product.
|
|
17
|
-
*/
|
|
18
|
-
src: string;
|
|
19
|
-
/**
|
|
20
|
-
* Product name.
|
|
21
|
-
*/
|
|
22
|
-
productName: string;
|
|
23
|
-
/**
|
|
24
|
-
* Product supplier
|
|
25
|
-
*/
|
|
26
|
-
productSupplier?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Product brand
|
|
29
|
-
*/
|
|
30
|
-
productBrand?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Product price
|
|
33
|
-
*/
|
|
34
|
-
productPrice?: number | string;
|
|
35
|
-
/**
|
|
36
|
-
* Path to image to be shown when error
|
|
37
|
-
*/
|
|
38
|
-
errorImagePath: string;
|
|
39
|
-
/**
|
|
40
|
-
* Text to be shown when error
|
|
41
|
-
*/
|
|
42
|
-
errorImageText: string;
|
|
43
|
-
/**
|
|
44
|
-
* Card width
|
|
45
|
-
*/
|
|
46
|
-
width: string;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the height for the component.
|
|
49
|
-
*/
|
|
50
|
-
height: number | string;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the maximum height for the component.
|
|
53
|
-
*/
|
|
54
|
-
maxHeight: number | string;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the minimum height for the component.
|
|
57
|
-
*/
|
|
58
|
-
minHeight: number | string;
|
|
59
|
-
protected currencyFormatterFn: Function;
|
|
60
|
-
/**
|
|
61
|
-
* Creates a new instance of ProductCard
|
|
62
|
-
* @param props Product Card props
|
|
63
|
-
*/
|
|
64
|
-
constructor(props: IProductCard);
|
|
65
|
-
get productPriceFormat(): any;
|
|
66
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IComponentRender, ITreeGridEditable } from '@zeedhi/common';
|
|
2
|
-
import { IDictionary } from '@zeedhi/core';
|
|
3
|
-
import { ITekGridColumn, ITekGridEvents, ITekGridExportConfig, TekGridLayoutOptions, IModalFilterProps } from '..';
|
|
4
|
-
export interface ITekTreeGrid extends ITreeGridEditable {
|
|
5
|
-
actions?: IComponentRender[];
|
|
6
|
-
addButton?: boolean;
|
|
7
|
-
columnFilterButton?: boolean;
|
|
8
|
-
columns?: ITekGridColumn[];
|
|
9
|
-
columnsButton?: boolean;
|
|
10
|
-
columnsButtonIgnore?: string[];
|
|
11
|
-
deleteButton?: 'none' | 'currentRow' | 'selection';
|
|
12
|
-
events?: ITekGridEvents;
|
|
13
|
-
filterButton?: boolean;
|
|
14
|
-
mainGrid?: boolean;
|
|
15
|
-
modalFilterProps?: IModalFilterProps;
|
|
16
|
-
showSearch?: boolean;
|
|
17
|
-
showHideButton?: boolean;
|
|
18
|
-
showLayoutOptions?: boolean;
|
|
19
|
-
title?: string;
|
|
20
|
-
showExport?: boolean;
|
|
21
|
-
showEditButtons?: boolean;
|
|
22
|
-
showReload?: boolean;
|
|
23
|
-
exportConfig?: ITekGridExportConfig[];
|
|
24
|
-
exportActions?: IComponentRender[];
|
|
25
|
-
layoutOptions?: TekGridLayoutOptions;
|
|
26
|
-
showCheckboxAllFilter?: boolean;
|
|
27
|
-
defaultFilter?: IDictionary;
|
|
28
|
-
toolbarOpened?: boolean;
|
|
29
|
-
reportTitle?: string;
|
|
30
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { IComponentRender, TreeGridEditable } from '@zeedhi/common';
|
|
2
|
-
import { Datasource, IDictionary } from '@zeedhi/core';
|
|
3
|
-
import { ITekGridAtoms } from '../../utils';
|
|
4
|
-
import { TekGridColumn } from '../tek-grid/grid-column';
|
|
5
|
-
import { IModalFilterProps, ITekGridColumn, ITekGridEvents, ITekGridExportConfig } from '../tek-grid/interfaces';
|
|
6
|
-
import { ITekTreeGrid } from './interfaces';
|
|
7
|
-
import { TekGridLayoutOptions } from '..';
|
|
8
|
-
export declare class TekTreeGrid extends TreeGridEditable implements ITekTreeGrid {
|
|
9
|
-
title: string;
|
|
10
|
-
addButton: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Components that will be rendered on toolbar slot
|
|
13
|
-
*/
|
|
14
|
-
toolbarConfig: (IComponentRender | string)[];
|
|
15
|
-
showEditButtons: boolean;
|
|
16
|
-
deleteButton: 'none' | 'currentRow' | 'selection';
|
|
17
|
-
actions: IComponentRender[];
|
|
18
|
-
filterButton: boolean;
|
|
19
|
-
modalFilterProps: IModalFilterProps;
|
|
20
|
-
showSearch?: boolean;
|
|
21
|
-
showHideButton: boolean;
|
|
22
|
-
columnFilterButton: boolean;
|
|
23
|
-
columnsButton: boolean;
|
|
24
|
-
columnsButtonIgnore: string[];
|
|
25
|
-
events: ITekGridEvents;
|
|
26
|
-
/**
|
|
27
|
-
* Enables column dragging
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
dragColumns: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Defines if the grid is the unique grid on screen
|
|
33
|
-
*/
|
|
34
|
-
mainGrid: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Enables column resizing
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
39
|
-
resizeColumns: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Enables layout saving
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
showLayoutOptions: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Editable columns
|
|
47
|
-
*/
|
|
48
|
-
columns: TekGridColumn[];
|
|
49
|
-
/**
|
|
50
|
-
* Show export button
|
|
51
|
-
*/
|
|
52
|
-
showExport: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Show refresh button
|
|
55
|
-
*/
|
|
56
|
-
showReload: boolean;
|
|
57
|
-
toolbarOpened: boolean;
|
|
58
|
-
protected keyShortcutKeyMapping: any;
|
|
59
|
-
/**
|
|
60
|
-
* Export config
|
|
61
|
-
*/
|
|
62
|
-
exportConfig: ITekGridExportConfig[];
|
|
63
|
-
private toolbarSlotProps;
|
|
64
|
-
/**
|
|
65
|
-
* Actions to overwrite the default export config
|
|
66
|
-
*/
|
|
67
|
-
exportActions?: IComponentRender[];
|
|
68
|
-
private gridBase;
|
|
69
|
-
filterRelationsDatasource: Datasource;
|
|
70
|
-
filterOperationsDatasource: Datasource;
|
|
71
|
-
showCheckboxAllFilter: boolean;
|
|
72
|
-
defaultFilter: IDictionary;
|
|
73
|
-
reportTitle: string;
|
|
74
|
-
/**
|
|
75
|
-
* TekTreeGrid class constructor
|
|
76
|
-
* @param props TekTreeGrid properties
|
|
77
|
-
*/
|
|
78
|
-
constructor(props: ITekTreeGrid);
|
|
79
|
-
onMounted(element: HTMLElement): void;
|
|
80
|
-
onBeforeDestroy(): void;
|
|
81
|
-
onCreated(): void;
|
|
82
|
-
protected focusSearchInput(): void;
|
|
83
|
-
get layoutOptions(): TekGridLayoutOptions | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* Get Grid columns objects
|
|
86
|
-
* @param columns Grid columns parameter
|
|
87
|
-
*/
|
|
88
|
-
protected getColumns(columns: ITekGridColumn[]): TekGridColumn[];
|
|
89
|
-
columnHasFilterData(column: TekGridColumn): any;
|
|
90
|
-
getReport(type: string, portrait?: boolean, rowObj?: any): Promise<Window | null>;
|
|
91
|
-
setSearch(search: string): Promise<any>;
|
|
92
|
-
/**
|
|
93
|
-
* Dispatches row click event
|
|
94
|
-
* @param row Grid row
|
|
95
|
-
* @param event DOM event
|
|
96
|
-
* @param element DOM Element
|
|
97
|
-
*/
|
|
98
|
-
rowClick(row: IDictionary<any>, event: Event, element: HTMLElement): void;
|
|
99
|
-
getAtomInstance<T>(key: keyof ITekGridAtoms): T;
|
|
100
|
-
getFilterInputs(columnName?: string): import("@zeedhi/common").Input[];
|
|
101
|
-
getColumn(name: string): TekGridColumn;
|
|
102
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TekUserInfo } from './tek-user-info';
|
|
2
|
-
export 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
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import { List } from '@zeedhi/common';
|
|
2
|
-
import { ITekUserInfo, 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: ITekUserInfo);
|
|
10
|
-
protected getItems(): ({
|
|
11
|
-
name: string;
|
|
12
|
-
component: string;
|
|
13
|
-
title: string;
|
|
14
|
-
subtitle: string;
|
|
15
|
-
isVisible: string;
|
|
16
|
-
cssClass: string;
|
|
17
|
-
prependIcon?: undefined;
|
|
18
|
-
events?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
name: string;
|
|
21
|
-
component: string;
|
|
22
|
-
title: string;
|
|
23
|
-
prependIcon: string;
|
|
24
|
-
cssClass: string;
|
|
25
|
-
isVisible: string;
|
|
26
|
-
events: {
|
|
27
|
-
click: () => void;
|
|
28
|
-
};
|
|
29
|
-
subtitle?: undefined;
|
|
30
|
-
})[];
|
|
31
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Button, IComponentRender, Modal } from '@zeedhi/common';
|
|
2
|
-
import { IEventParam } from '@zeedhi/core';
|
|
3
|
-
import { UserInfo } from '@zeedhi/zd-user-info-common';
|
|
4
|
-
import { ITekUserInfo, IVersionInfo } from './interfaces';
|
|
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>): void;
|
|
35
|
-
onCreated(): void;
|
|
36
|
-
onMounted(element: any): Promise<void>;
|
|
37
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
/**
|
|
3
|
-
* Thrown when a row has incomplete group information.
|
|
4
|
-
* Provides details about the missing groups and the problematic row.
|
|
5
|
-
*/
|
|
6
|
-
export declare class IncompleteGroupsError extends Error {
|
|
7
|
-
constructor(row: IDictionary, missingGroups: string[]);
|
|
8
|
-
}
|
package/types/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts properties from an object based on a list of properties
|
|
3
|
-
* @param obj object whose properties will be extracted
|
|
4
|
-
* @param props array of strings with the properties to be extracted
|
|
5
|
-
* @returns object containing the extracted properties
|
|
6
|
-
*/
|
|
7
|
-
export declare const extractProperties: (obj: any, props: string[]) => any;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITekGridExportConfig, TekGrid, TekTreeGrid } from '../../../components';
|
|
2
|
-
import { IExportOption } from './interfaces';
|
|
3
|
-
export declare class ButtonOption implements IExportOption {
|
|
4
|
-
private config;
|
|
5
|
-
constructor(config: ITekGridExportConfig);
|
|
6
|
-
buildComponent(grid: TekGrid | TekTreeGrid): {
|
|
7
|
-
label: string | undefined;
|
|
8
|
-
iconName: string | undefined;
|
|
9
|
-
name: string;
|
|
10
|
-
component: string;
|
|
11
|
-
flat: boolean;
|
|
12
|
-
events: {
|
|
13
|
-
click: () => any;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IRow } from '@zeedhi/common';
|
|
2
|
-
import { ITekGridExportConfig, TekGrid, TekTreeGrid } from '../../../components';
|
|
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: TekGrid | TekTreeGrid): IRow;
|
|
12
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IComponentRender } from '@zeedhi/common';
|
|
2
|
-
import { TekGrid, TekGridFilterButton, TekTreeGrid } from '../../components';
|
|
3
|
-
export interface ITekGridAtoms {
|
|
4
|
-
TITLE: string;
|
|
5
|
-
HIDE_BUTTON: string;
|
|
6
|
-
ADD_BUTTON: string;
|
|
7
|
-
DELETE_BUTTON: string;
|
|
8
|
-
REFRESH_BUTTON: string;
|
|
9
|
-
COLUMNS_BUTTON: string;
|
|
10
|
-
LAYOUT_BUTTON: string;
|
|
11
|
-
EXPORT_BUTTON: string;
|
|
12
|
-
ACTIONS_BUTTON: string;
|
|
13
|
-
SAVE_BUTTON: string;
|
|
14
|
-
CANCEL_BUTTON: string;
|
|
15
|
-
SEARCH: string;
|
|
16
|
-
FILTER_BUTTON: string;
|
|
17
|
-
FILTER_MODAL: string;
|
|
18
|
-
FILTER_FORM: string;
|
|
19
|
-
EXPORT_DROPDOWN: string;
|
|
20
|
-
ACTIONS_DROPDOWN: string;
|
|
21
|
-
}
|
|
22
|
-
export declare class GridBase {
|
|
23
|
-
private grid;
|
|
24
|
-
private exportConfigButtons;
|
|
25
|
-
private defaultToolbar;
|
|
26
|
-
constructor(grid: TekGrid | TekTreeGrid);
|
|
27
|
-
private getOption;
|
|
28
|
-
private getExportConfigButtons;
|
|
29
|
-
private initializeDefaultToolbarItems;
|
|
30
|
-
private processUserToolbarItems;
|
|
31
|
-
/**
|
|
32
|
-
* Adiciona os itens padrão da toolbar quando nenhuma configuração é fornecida.
|
|
33
|
-
* @param toolbarDivChildren Array para adicionar os componentes da toolbar.
|
|
34
|
-
*/
|
|
35
|
-
private addDefaultToolbarItems;
|
|
36
|
-
/**
|
|
37
|
-
* Cria os componentes que serão renderizados na toolbar do grid.
|
|
38
|
-
*/
|
|
39
|
-
createToolbarProps(): IComponentRender[];
|
|
40
|
-
filterButton?: TekGridFilterButton;
|
|
41
|
-
private loadFilterButton;
|
|
42
|
-
private hideButtonClick;
|
|
43
|
-
private addButtonClick;
|
|
44
|
-
private deleteButtonClick;
|
|
45
|
-
private reloadGrid;
|
|
46
|
-
private saveChanges;
|
|
47
|
-
private cancelChanges;
|
|
48
|
-
hideFilterModal(): void;
|
|
49
|
-
getFilterRelationsDatasource(): any;
|
|
50
|
-
getFilterOperationsDatasource(): any;
|
|
51
|
-
getFilterOptionsData(prop: string): {
|
|
52
|
-
text: string;
|
|
53
|
-
value: string;
|
|
54
|
-
}[];
|
|
55
|
-
setSearch(search: string): Promise<any>;
|
|
56
|
-
protected atoms: ITekGridAtoms;
|
|
57
|
-
getAtomInstance<T>(key: keyof ITekGridAtoms): T;
|
|
58
|
-
getFilterInputs(columnName?: string): import("@zeedhi/common").Input[];
|
|
59
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TekGrid } from '../../components/tek-grid/grid';
|
|
2
|
-
import { TekTreeGrid } from '../../components/tek-tree-grid/tree-grid';
|
|
3
|
-
export declare class GridController {
|
|
4
|
-
private grid;
|
|
5
|
-
openToolbar: boolean;
|
|
6
|
-
constructor(grid: TekGrid | TekTreeGrid);
|
|
7
|
-
get gridTitle(): string;
|
|
8
|
-
get showAddButton(): boolean;
|
|
9
|
-
get showDeleteButton(): boolean;
|
|
10
|
-
get showFilterButton(): boolean;
|
|
11
|
-
get showModalFilterProps(): import("../..").IModalFilterProps;
|
|
12
|
-
get showSearchInput(): boolean | undefined;
|
|
13
|
-
get showReloadButton(): boolean;
|
|
14
|
-
get showColumnsButton(): boolean;
|
|
15
|
-
get columnsButtonIgnore(): string[];
|
|
16
|
-
get showLayoutOptionsButton(): boolean;
|
|
17
|
-
get showDivider(): boolean;
|
|
18
|
-
get showOptionsDivider(): boolean;
|
|
19
|
-
get showHideButton(): boolean;
|
|
20
|
-
get showActionsButton(): boolean;
|
|
21
|
-
get showExportButton(): boolean;
|
|
22
|
-
get showActionAndExportButton(): boolean | undefined;
|
|
23
|
-
get isEditing(): boolean;
|
|
24
|
-
get showEditButtons(): boolean;
|
|
25
|
-
get isNotEditing(): boolean;
|
|
26
|
-
get disableDeleteButton(): boolean;
|
|
27
|
-
}
|
package/types/utils/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MetadataFilter } from '@zeedhi/common';
|
|
2
|
-
import { IDictionary } from '@zeedhi/core';
|
|
3
|
-
import { IDynamicFilterItem } from '../../components';
|
|
4
|
-
/**
|
|
5
|
-
* Class to translate a TekRestDatasource dynamicFilter to the ZhReports format
|
|
6
|
-
*/
|
|
7
|
-
export declare class ReportFilter {
|
|
8
|
-
filter: IDictionary<IDynamicFilterItem[]>;
|
|
9
|
-
private messages;
|
|
10
|
-
constructor(filter: IDictionary);
|
|
11
|
-
build(): MetadataFilter;
|
|
12
|
-
}
|