@zeedhi/teknisa-components-common 1.115.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.
Files changed (105) hide show
  1. package/.package.json +40 -0
  2. package/dist/teknisa-components-common.js +112 -0
  3. package/dist/teknisa-components-common.min.js +112 -0
  4. package/dist/types/components/index.d.ts +2 -0
  5. package/{types → dist/types}/components/tek-breadcrumb-header/breadcrumb-header.d.ts +12 -12
  6. package/{types → dist/types}/components/tek-breadcrumb-header/interfaces.d.ts +6 -6
  7. package/{types → dist/types}/error/delete-rows-error.d.ts +6 -6
  8. package/dist/types/index.d.ts +1 -0
  9. package/environments.json +14 -0
  10. package/package.json +26 -18
  11. package/src/components/index.ts +108 -0
  12. package/src/components/tek-breadcrumb-header/breadcrumb-header.ts +29 -0
  13. package/src/components/tek-breadcrumb-header/interfaces.ts +7 -0
  14. package/src/error/delete-rows-error.ts +11 -0
  15. package/src/index.ts +1 -0
  16. package/tests/__helpers__/component-event-helper.ts +1 -1
  17. package/tests/__helpers__/get-child-helper.ts +1 -1
  18. package/tests/__helpers__/mock-created-helper.ts +1 -1
  19. package/tests/unit/components/crud/crud-button.spec.ts +1 -1
  20. package/tests/unit/components/tek-datasource/memory-datasource.spec.ts +1 -11
  21. package/tests/unit/components/tek-datasource/rest-datasource.spec.ts +5 -7
  22. package/tests/unit/components/tek-drag-grid/tek-drag-grid.spec.ts +1 -1
  23. package/tests/unit/components/tek-grid/grid-column.spec.ts +4 -4
  24. package/tests/unit/components/tek-grid/grid-filter-button.spec.ts +17 -11
  25. package/tests/unit/components/tek-grid/grid.spec.ts +45 -721
  26. package/tests/unit/components/tek-grid/layout_options.spec.ts +5 -7
  27. package/tests/unit/components/tek-user-info/tek-user-info-list.spec.ts +1 -1
  28. package/tests/unit/components/tek-user-info/tek-user-info.spec.ts +10 -14
  29. package/tests/unit/components/tree-grid/tree-grid.spec.ts +4 -28
  30. package/tests/unit/utils/grid-base/export-options/multi-option.spec.ts +2 -2
  31. package/tests/unit/utils/grid-base/grid-controller.spec.ts +17 -152
  32. package/tsconfig.build.json +7 -0
  33. package/coverage/clover.xml +0 -2005
  34. package/coverage/coverage-final.json +0 -48
  35. package/coverage/lcov-report/base.css +0 -224
  36. package/coverage/lcov-report/block-navigation.js +0 -87
  37. package/coverage/lcov-report/favicon.png +0 -0
  38. package/coverage/lcov-report/index.html +0 -431
  39. package/coverage/lcov-report/prettify.css +0 -1
  40. package/coverage/lcov-report/prettify.js +0 -2
  41. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  42. package/coverage/lcov-report/sorter.js +0 -210
  43. package/coverage/lcov-report/tests/__helpers__/component-event-helper.ts.html +0 -100
  44. package/coverage/lcov-report/tests/__helpers__/flush-promises-helper.ts.html +0 -94
  45. package/coverage/lcov-report/tests/__helpers__/get-child-helper.ts.html +0 -166
  46. package/coverage/lcov-report/tests/__helpers__/index.html +0 -176
  47. package/coverage/lcov-report/tests/__helpers__/index.ts.html +0 -94
  48. package/coverage/lcov-report/tests/__helpers__/mock-created-helper.ts.html +0 -121
  49. package/coverage/lcov.info +0 -3883
  50. package/dist/tek-components-common.esm.js +0 -4830
  51. package/dist/tek-components-common.umd.js +0 -4867
  52. package/tests/unit/utils/grid-base/delete-rows-error.spec.ts +0 -24
  53. package/types/components/crud/crud-add-button.d.ts +0 -38
  54. package/types/components/crud/crud-button.d.ts +0 -27
  55. package/types/components/crud/crud-cancel-button.d.ts +0 -28
  56. package/types/components/crud/crud-delete-button.d.ts +0 -42
  57. package/types/components/crud/crud-form.d.ts +0 -46
  58. package/types/components/crud/crud-save-button.d.ts +0 -24
  59. package/types/components/crud/interfaces.d.ts +0 -15
  60. package/types/components/index.d.ts +0 -41
  61. package/types/components/tek-card-title/card-title.d.ts +0 -14
  62. package/types/components/tek-card-title/interfaces.d.ts +0 -9
  63. package/types/components/tek-datasource/interfaces.d.ts +0 -16
  64. package/types/components/tek-datasource/memory-datasource.d.ts +0 -100
  65. package/types/components/tek-datasource/rest-datasource.d.ts +0 -103
  66. package/types/components/tek-drag-grid/interfaces.d.ts +0 -7
  67. package/types/components/tek-drag-grid/tek-drag-grid.d.ts +0 -36
  68. package/types/components/tek-grid/filter-helper.d.ts +0 -7
  69. package/types/components/tek-grid/grid-column.d.ts +0 -45
  70. package/types/components/tek-grid/grid-columns-button-controller.d.ts +0 -8
  71. package/types/components/tek-grid/grid-columns-button.d.ts +0 -12
  72. package/types/components/tek-grid/grid-filter-button.d.ts +0 -31
  73. package/types/components/tek-grid/grid.d.ts +0 -267
  74. package/types/components/tek-grid/interfaces.d.ts +0 -203
  75. package/types/components/tek-grid/layout-options.d.ts +0 -31
  76. package/types/components/tek-image/image.d.ts +0 -55
  77. package/types/components/tek-image/interfaces.d.ts +0 -12
  78. package/types/components/tek-iterable-carousel/interfaces.d.ts +0 -5
  79. package/types/components/tek-iterable-carousel/iterable-carousel.d.ts +0 -13
  80. package/types/components/tek-iterable-component-render/interfaces.d.ts +0 -3
  81. package/types/components/tek-iterable-component-render/iterable-component-render.d.ts +0 -10
  82. package/types/components/tek-loading/interfaces.d.ts +0 -6
  83. package/types/components/tek-loading/loading.d.ts +0 -24
  84. package/types/components/tek-notifications/interfaces.d.ts +0 -22
  85. package/types/components/tek-notifications/notifications.d.ts +0 -35
  86. package/types/components/tek-product-card/interfaces.d.ts +0 -19
  87. package/types/components/tek-product-card/product-card.d.ts +0 -66
  88. package/types/components/tek-tree-grid/interfaces.d.ts +0 -30
  89. package/types/components/tek-tree-grid/tree-grid.d.ts +0 -102
  90. package/types/components/tek-user-info/TekUserInfoController.d.ts +0 -21
  91. package/types/components/tek-user-info/interfaces.d.ts +0 -27
  92. package/types/components/tek-user-info/tek-user-info-list.d.ts +0 -31
  93. package/types/components/tek-user-info/tek-user-info.d.ts +0 -37
  94. package/types/error/incomplete-groups-error.d.ts +0 -8
  95. package/types/index.d.ts +0 -2
  96. package/types/utils/config/config.d.ts +0 -7
  97. package/types/utils/extract-properties.d.ts +0 -7
  98. package/types/utils/grid-base/export-options/button-option.d.ts +0 -16
  99. package/types/utils/grid-base/export-options/index.d.ts +0 -3
  100. package/types/utils/grid-base/export-options/interfaces.d.ts +0 -5
  101. package/types/utils/grid-base/export-options/multi-option.d.ts +0 -12
  102. package/types/utils/grid-base/grid-base.d.ts +0 -59
  103. package/types/utils/grid-base/grid-controller.d.ts +0 -27
  104. package/types/utils/index.d.ts +0 -6
  105. 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,2 +0,0 @@
1
- export * from './components';
2
- export { ITekConfig } from './utils';
@@ -1,7 +0,0 @@
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,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,3 +0,0 @@
1
- export * from './button-option';
2
- export * from './multi-option';
3
- export * from './interfaces';
@@ -1,5 +0,0 @@
1
- import { IComponentRender } from '@zeedhi/common';
2
- import { TekGrid, TekTreeGrid } from '../../../components';
3
- export interface IExportOption {
4
- buildComponent: (grid: TekGrid | TekTreeGrid) => IComponentRender;
5
- }
@@ -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
- }
@@ -1,6 +0,0 @@
1
- export * from './report-filter/report-filter';
2
- export * from './grid-base/grid-base';
3
- export * from './grid-base/grid-controller';
4
- export * from './grid-base/export-options';
5
- export * from './config/config';
6
- export * from './extract-properties';
@@ -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
- }