@zeedhi/common 1.37.0 → 1.39.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/dist/zd-common.esm.js +390 -46
- package/dist/zd-common.umd.js +390 -46
- package/package.json +2 -2
- package/types/components/zd-grid/grid-editable.d.ts +1 -1
- package/types/components/zd-iterable/column.d.ts +4 -2
- package/types/components/zd-select/select.d.ts +2 -0
- package/types/components/zd-select-multiple/select-multiple.d.ts +4 -0
- package/types/components/zd-select-tree/select-tree.d.ts +7 -1
- package/types/components/zd-select-tree-multiple/select-tree-multiple.d.ts +4 -0
- package/types/components/zd-tree-grid/interfaces.d.ts +3 -1
- package/types/components/zd-tree-grid/tree-grid-editable.d.ts +4 -3
- package/types/utils/report/report-type/interfaces.d.ts +7 -2
- package/types/utils/report/report-type/xls-report.d.ts +17 -1
- package/types/components/zd-apex-chart/apex_chart.d.ts +0 -55
- package/types/components/zd-button-group/button_group.d.ts +0 -83
- package/types/components/zd-checkbox-multiple/checkbox_multiple.d.ts +0 -42
- package/types/components/zd-code-editor/code_editor.d.ts +0 -58
- package/types/components/zd-code-editor/prism.d.ts +0 -14
- package/types/components/zd-collapse-card/collapse_card.d.ts +0 -56
- package/types/components/zd-component/child_not_found.d.ts +0 -6
- package/types/components/zd-component/component_render.d.ts +0 -16
- package/types/components/zd-component/invalid_accessor.d.ts +0 -6
- package/types/components/zd-date/date_range.d.ts +0 -124
- package/types/components/zd-grid/errors/not_editing.d.ts +0 -6
- package/types/components/zd-grid/errors/row_not_found.d.ts +0 -6
- package/types/components/zd-grid/grid_column.d.ts +0 -52
- package/types/components/zd-grid/grid_column_editable.d.ts +0 -13
- package/types/components/zd-grid/grid_editable.d.ts +0 -162
- package/types/components/zd-iterable/column_not_found.d.ts +0 -6
- package/types/components/zd-iterable/iterable_columns_button.d.ts +0 -29
- package/types/components/zd-iterable/iterable_columns_button_controller.d.ts +0 -6
- package/types/components/zd-iterable/iterable_page_component.d.ts +0 -27
- package/types/components/zd-iterable/iterable_page_info.d.ts +0 -7
- package/types/components/zd-iterable/iterable_page_size.d.ts +0 -62
- package/types/components/zd-iterable/iterable_pagination.d.ts +0 -28
- package/types/components/zd-list/item_not_found.d.ts +0 -6
- package/types/components/zd-list/list_group.d.ts +0 -30
- package/types/components/zd-list/list_item.d.ts +0 -49
- package/types/components/zd-master-detail/detail_not_found.d.ts +0 -6
- package/types/components/zd-master-detail/master_detail.d.ts +0 -20
- package/types/components/zd-master-detail/master_not_found.d.ts +0 -6
- package/types/components/zd-menu/menu_button.d.ts +0 -28
- package/types/components/zd-menu/menu_group.d.ts +0 -53
- package/types/components/zd-menu/menu_link.d.ts +0 -46
- package/types/components/zd-menu/menu_separator.d.ts +0 -7
- package/types/components/zd-modal/modal_close_button.d.ts +0 -28
- package/types/components/zd-svg-map/svg_map.d.ts +0 -78
- package/types/components/zd-tabs/tab_not_found.d.ts +0 -11
- package/types/components/zd-text-input/text_input.d.ts +0 -90
- package/types/components/zd-tree-grid/errors/not_editing.d.ts +0 -6
- package/types/components/zd-tree-grid/errors/row_not_found.d.ts +0 -6
- package/types/components/zd-tree-grid/tree-data-structure.d.ts +0 -144
- package/types/components/zd-tree-grid/tree_data_structure.d.ts +0 -144
- package/types/components/zd-tree-grid/tree_grid.d.ts +0 -77
- package/types/components/zd-tree-grid/tree_grid_column.d.ts +0 -52
- package/types/components/zd-tree-grid/tree_grid_column_editable.d.ts +0 -13
- package/types/components/zd-tree-grid/tree_grid_editable.d.ts +0 -157
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { Column } from '../zd-iterable/column';
|
|
3
|
-
import { IChildrenActionColumn, IGridColumn } from './interfaces';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Grid column
|
|
6
|
-
*/
|
|
7
|
-
export declare class GridColumn extends Column implements IGridColumn {
|
|
8
|
-
children: IChildrenActionColumn[];
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new Grid Column.
|
|
11
|
-
* @param props Grid column properties
|
|
12
|
-
*/
|
|
13
|
-
constructor(props: IGridColumn);
|
|
14
|
-
/**
|
|
15
|
-
* Children props without grid system.
|
|
16
|
-
*/
|
|
17
|
-
get childrenProps(): {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
children?: import("..").IComponentRender[] | undefined;
|
|
20
|
-
component: string;
|
|
21
|
-
componentId?: number | undefined;
|
|
22
|
-
cssClass?: string | undefined;
|
|
23
|
-
cssStyle?: string | object | undefined;
|
|
24
|
-
events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
25
|
-
isVisible?: string | boolean | undefined;
|
|
26
|
-
keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
27
|
-
name: string;
|
|
28
|
-
parent?: import("..").Component | undefined;
|
|
29
|
-
}[];
|
|
30
|
-
/**
|
|
31
|
-
* Grid system for each child.
|
|
32
|
-
*/
|
|
33
|
-
get childrenConditions(): IDictionary<any>;
|
|
34
|
-
/**
|
|
35
|
-
* Get the conditions function to be applied to each column depending on the row
|
|
36
|
-
* @param conditions Conditions object
|
|
37
|
-
*/
|
|
38
|
-
getConditions(conditions: IDictionary): (row: {
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}) => {
|
|
41
|
-
[key: string]: boolean;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Get the Column without the conditions object
|
|
45
|
-
* @param component Column component
|
|
46
|
-
*/
|
|
47
|
-
getColumnWithoutConditions(component: any): any;
|
|
48
|
-
/**
|
|
49
|
-
* checkOutValues
|
|
50
|
-
*/
|
|
51
|
-
checkOutValues(component: any, row: IDictionary<any>, newRow: IDictionary<any>): void;
|
|
52
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IGridColumnEditable } from './interfaces';
|
|
2
|
-
import { GridColumn } from './grid_column';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Grid column
|
|
5
|
-
*/
|
|
6
|
-
export declare class GridColumnEditable extends GridColumn implements IGridColumnEditable {
|
|
7
|
-
editable: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new Grid Column.
|
|
10
|
-
* @param props Grid column properties
|
|
11
|
-
*/
|
|
12
|
-
constructor(props: IGridColumnEditable);
|
|
13
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { IGridColumnEditable, IGridEditable } from './interfaces';
|
|
3
|
-
import { Grid } from '..';
|
|
4
|
-
import { GridColumnEditable } from './grid_column_editable';
|
|
5
|
-
/**
|
|
6
|
-
* Base class for Grid component
|
|
7
|
-
*/
|
|
8
|
-
export declare class GridEditable extends Grid implements IGridEditable {
|
|
9
|
-
/**
|
|
10
|
-
* Editable columns
|
|
11
|
-
*/
|
|
12
|
-
columns: GridColumnEditable[];
|
|
13
|
-
/**
|
|
14
|
-
* Editing rows
|
|
15
|
-
*/
|
|
16
|
-
editing: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Edited rows
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
private editedRows;
|
|
22
|
-
/**
|
|
23
|
-
* Invalid inline components
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
private invalidComponents;
|
|
27
|
-
/**
|
|
28
|
-
* Get Grid columns objects
|
|
29
|
-
* @param columns Grid columns parameter
|
|
30
|
-
*/
|
|
31
|
-
protected getColumns(columns: IGridColumnEditable[]): GridColumnEditable[];
|
|
32
|
-
/**
|
|
33
|
-
* Changes column order
|
|
34
|
-
* @async
|
|
35
|
-
* @param field Grid column
|
|
36
|
-
*/
|
|
37
|
-
changeColumnOrder(column: IGridColumnEditable): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Dispatches row click event
|
|
40
|
-
* @param row Grid row
|
|
41
|
-
* @param event DOM event
|
|
42
|
-
* @param element DOM Element
|
|
43
|
-
*/
|
|
44
|
-
rowClick(row: IDictionary<any>, event: Event, element: HTMLElement): void;
|
|
45
|
-
/**
|
|
46
|
-
* Enables editing mode if column is editable
|
|
47
|
-
* @param row Grid row
|
|
48
|
-
* @param column Grid column
|
|
49
|
-
* @param event DOM event
|
|
50
|
-
* @param element DOM Element
|
|
51
|
-
*/
|
|
52
|
-
cellClick(row: IDictionary<any>, column: GridColumnEditable, event: Event, element: HTMLElement): void;
|
|
53
|
-
/**
|
|
54
|
-
* Dispatches select/unselect event
|
|
55
|
-
* @param row Grid row
|
|
56
|
-
* @param isSelected Row is selected
|
|
57
|
-
* @param event DOM event
|
|
58
|
-
* @param element DOM Element
|
|
59
|
-
*/
|
|
60
|
-
selectClick(row: IDictionary<any>, isSelected: boolean, event: Event, element: HTMLElement): void;
|
|
61
|
-
/**
|
|
62
|
-
* Dispatches select/unselect all rows event
|
|
63
|
-
* @param isSelected Row is selected
|
|
64
|
-
* @param event DOM event
|
|
65
|
-
* @param element DOM Element
|
|
66
|
-
*/
|
|
67
|
-
selectAllClick(isSelected: boolean, event: Event, element: HTMLElement): void;
|
|
68
|
-
/**
|
|
69
|
-
* Returns editable component properties based on the column definition
|
|
70
|
-
* @param column Column definition
|
|
71
|
-
* @param row Datasource row
|
|
72
|
-
* @param cellProps Column conditional props
|
|
73
|
-
* @param events Component events
|
|
74
|
-
*/
|
|
75
|
-
getEditableComponent(column: IGridColumnEditable, row: IDictionary<any>, cellProps: IDictionary<any>, events: any): {
|
|
76
|
-
name: string;
|
|
77
|
-
parent: GridEditable;
|
|
78
|
-
align: "left" | "center" | "right" | undefined;
|
|
79
|
-
showLabel: boolean;
|
|
80
|
-
showHelper: boolean;
|
|
81
|
-
dense: boolean;
|
|
82
|
-
value: any;
|
|
83
|
-
events: any;
|
|
84
|
-
autofill: boolean;
|
|
85
|
-
};
|
|
86
|
-
private checkLookupData;
|
|
87
|
-
private checkCompValidity;
|
|
88
|
-
/**
|
|
89
|
-
* change event of editable components
|
|
90
|
-
*/
|
|
91
|
-
private changeEditableComponent;
|
|
92
|
-
/**
|
|
93
|
-
* Checks if column is edited
|
|
94
|
-
* @param column Column
|
|
95
|
-
* @param row Row
|
|
96
|
-
*/
|
|
97
|
-
isEdited(column: IGridColumnEditable, row: IDictionary): boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Checks if column is valid
|
|
100
|
-
* @param column Column
|
|
101
|
-
* @param row Row
|
|
102
|
-
*/
|
|
103
|
-
isValid(column: IGridColumnEditable, row: IDictionary): boolean;
|
|
104
|
-
private newRowIdentifier;
|
|
105
|
-
/**
|
|
106
|
-
* Cancels all edited rows and enable grid components
|
|
107
|
-
*/
|
|
108
|
-
cancelEditedRows(): Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* Saves all edited rows if they are valid
|
|
111
|
-
* @throws Will throw when it finds an invalid row
|
|
112
|
-
*/
|
|
113
|
-
saveEditedRows(): Promise<any[]>;
|
|
114
|
-
/**
|
|
115
|
-
* Retrieves all edited rows if they are valid
|
|
116
|
-
* @throws Will throw when it finds an invalid row
|
|
117
|
-
*/
|
|
118
|
-
getEditedRows(): IDictionary<any>[];
|
|
119
|
-
isGridValid(): boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Adds new row to the datasource data and pushes it to the editedRows
|
|
122
|
-
* @param row Row
|
|
123
|
-
* @param position whether the new Row will be inserted at the beginning or end of the data array
|
|
124
|
-
*/
|
|
125
|
-
addNewRow(row: IDictionary, position?: 'end' | 'start'): Promise<void>;
|
|
126
|
-
/**
|
|
127
|
-
* Gets the editable component name
|
|
128
|
-
* @param key Row unique key
|
|
129
|
-
* @param columnName Column name
|
|
130
|
-
*/
|
|
131
|
-
private getCompName;
|
|
132
|
-
/**
|
|
133
|
-
* Gets the component in specified position
|
|
134
|
-
* @param key Row unique key
|
|
135
|
-
* @param columnName Column name
|
|
136
|
-
*/
|
|
137
|
-
getComponent<T>(key: string, columnName: string): T;
|
|
138
|
-
/**
|
|
139
|
-
* Updates a row, adding it to editedRows
|
|
140
|
-
* @param newRow Row being updated
|
|
141
|
-
* @throws NotEditingError If grid is not in edit mode
|
|
142
|
-
* @throws RowNotFoundError If the row is not present in datasource
|
|
143
|
-
*/
|
|
144
|
-
updateRow(newRow: IDictionary): void;
|
|
145
|
-
/**
|
|
146
|
-
* Updates a cell, adding it's row to editedRows
|
|
147
|
-
* @param rowKey Cell's row key
|
|
148
|
-
* @param columnName Cell's column name
|
|
149
|
-
* @param value Value to be set in the cell
|
|
150
|
-
* @throws NotEditingError If grid is not in edit mode
|
|
151
|
-
* @throws RowNotFoundError If the row is not present in datasource
|
|
152
|
-
*/
|
|
153
|
-
updateCell(rowKey: string, columnName: string, value: any): void;
|
|
154
|
-
/**
|
|
155
|
-
* Changes a cell value in editedRows
|
|
156
|
-
* @param rowKey Cell's row key
|
|
157
|
-
* @param rowIdx Cell's row index in datasource.data
|
|
158
|
-
* @param column Cell's column
|
|
159
|
-
* @param value Value to be set in the cell
|
|
160
|
-
*/
|
|
161
|
-
private changeCell;
|
|
162
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Button } from '../zd-button/button';
|
|
2
|
-
import { IIterableColumnsButton } from './interfaces';
|
|
3
|
-
import { Iterable } from './iterable';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Columns Button component
|
|
6
|
-
*/
|
|
7
|
-
export declare class IterableColumnsButton extends Button implements IIterableColumnsButton {
|
|
8
|
-
/**
|
|
9
|
-
* Iterable component name
|
|
10
|
-
*/
|
|
11
|
-
iterableComponentName: string;
|
|
12
|
-
/**
|
|
13
|
-
* Iterable component name
|
|
14
|
-
*/
|
|
15
|
-
iterableComponent: Iterable;
|
|
16
|
-
/**
|
|
17
|
-
* Component controller
|
|
18
|
-
*/
|
|
19
|
-
controller: any;
|
|
20
|
-
iconName: string;
|
|
21
|
-
icon: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new Iterable Page component.
|
|
24
|
-
* @param props Iterable page component properties
|
|
25
|
-
*/
|
|
26
|
-
constructor(props: IIterableColumnsButton);
|
|
27
|
-
private setIterableComponent;
|
|
28
|
-
onCreated(): void;
|
|
29
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { Checkbox } from '../zd-checkbox/checkbox';
|
|
3
|
-
import { Column } from './column';
|
|
4
|
-
export declare class IterableColumnsButtonController {
|
|
5
|
-
showHideColumn(column: Column, { component }: IEventParam<Checkbox>): void;
|
|
6
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IIterablePageComponent } from './interfaces';
|
|
2
|
-
import { ComponentRender } from '../zd-component/component_render';
|
|
3
|
-
import { Iterable } from './iterable';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Iterable Page component
|
|
6
|
-
*/
|
|
7
|
-
export declare class IterablePageComponent extends ComponentRender implements IIterablePageComponent {
|
|
8
|
-
/**
|
|
9
|
-
* Iterable component name
|
|
10
|
-
*/
|
|
11
|
-
iterableComponentName: string;
|
|
12
|
-
/**
|
|
13
|
-
* Iterable component name
|
|
14
|
-
*/
|
|
15
|
-
iterableComponent: Iterable;
|
|
16
|
-
/**
|
|
17
|
-
* Creates a new Iterable Page component.
|
|
18
|
-
* @param props Iterable page component properties
|
|
19
|
-
*/
|
|
20
|
-
constructor(props: IIterablePageComponent);
|
|
21
|
-
/**
|
|
22
|
-
* Set the Iterable Component
|
|
23
|
-
* @param element Element mounted reference
|
|
24
|
-
*/
|
|
25
|
-
onMounted(element: HTMLElement): void;
|
|
26
|
-
private setIterableComponent;
|
|
27
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IIterablePageInfo } from './interfaces';
|
|
2
|
-
import { IterablePageComponent } from './iterable_page_component';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Iterable Page Info component
|
|
5
|
-
*/
|
|
6
|
-
export declare class IterablePageInfo extends IterablePageComponent implements IIterablePageInfo {
|
|
7
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { IIterablePageSize } from './interfaces';
|
|
3
|
-
import { Select } from '../zd-select/select';
|
|
4
|
-
import { Iterable } from './iterable';
|
|
5
|
-
/**
|
|
6
|
-
* Base class for Iterable Page Size component
|
|
7
|
-
*/
|
|
8
|
-
export declare class IterablePageSize extends Select implements IIterablePageSize {
|
|
9
|
-
/**
|
|
10
|
-
* Iterable component name
|
|
11
|
-
*/
|
|
12
|
-
iterableComponentName: string;
|
|
13
|
-
/**
|
|
14
|
-
* Add input clear functionality if the input isn't readonly or disabled.
|
|
15
|
-
*/
|
|
16
|
-
clearable: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Field used to display values
|
|
19
|
-
*/
|
|
20
|
-
dataText: string | string[];
|
|
21
|
-
/**
|
|
22
|
-
* Field used to save values
|
|
23
|
-
*/
|
|
24
|
-
dataValue: string;
|
|
25
|
-
/**
|
|
26
|
-
* Enables search input
|
|
27
|
-
*/
|
|
28
|
-
autocomplete: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Shows input helper.
|
|
31
|
-
*/
|
|
32
|
-
showHelper: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Shows input label.
|
|
35
|
-
*/
|
|
36
|
-
showLabel: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Input validations.
|
|
39
|
-
*/
|
|
40
|
-
validations: IDictionary;
|
|
41
|
-
/**
|
|
42
|
-
* Iterable component name
|
|
43
|
-
*/
|
|
44
|
-
iterableComponent: Iterable;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a new Iterable Page component.
|
|
47
|
-
* @param props Iterable page component properties
|
|
48
|
-
*/
|
|
49
|
-
constructor(props: IIterablePageSize);
|
|
50
|
-
/**
|
|
51
|
-
* Set the Iterable Component
|
|
52
|
-
* @param element Element mounted reference
|
|
53
|
-
*/
|
|
54
|
-
onMounted(element: HTMLElement): void;
|
|
55
|
-
private setIterableComponent;
|
|
56
|
-
/**
|
|
57
|
-
* Event trigged when component loses the focus and value changes
|
|
58
|
-
* @param value inputed value
|
|
59
|
-
*/
|
|
60
|
-
selectChange(value: any, event?: Event, element?: HTMLElement): void;
|
|
61
|
-
changePageSize(size: number): void;
|
|
62
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IIterablePagination } from './interfaces';
|
|
2
|
-
import { IterablePageComponent } from './iterable_page_component';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Iterable Pagination component
|
|
5
|
-
*/
|
|
6
|
-
export declare class IterablePagination extends IterablePageComponent implements IIterablePagination {
|
|
7
|
-
/**
|
|
8
|
-
* Previous button icon
|
|
9
|
-
*/
|
|
10
|
-
prevIcon: string;
|
|
11
|
-
/**
|
|
12
|
-
* Next button icon
|
|
13
|
-
*/
|
|
14
|
-
nextIcon: string;
|
|
15
|
-
/**
|
|
16
|
-
* Show buttons as circles
|
|
17
|
-
*/
|
|
18
|
-
circle: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Delimits the maximum number of page buttons. Undefined means automatic
|
|
21
|
-
*/
|
|
22
|
-
maxButtons?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a new Iterable Pagination.
|
|
25
|
-
* @param props Iterable pagination properties
|
|
26
|
-
*/
|
|
27
|
-
constructor(props: IIterablePagination);
|
|
28
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IListGroup, IListItem } from './interfaces';
|
|
2
|
-
import { ListItem } from './list_item';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for ListGroup component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ListGroup extends ListItem implements IListGroup {
|
|
7
|
-
/**
|
|
8
|
-
* List items structure.
|
|
9
|
-
*/
|
|
10
|
-
items: IListItem[];
|
|
11
|
-
/**
|
|
12
|
-
* Content will be loaded only when the group opens.
|
|
13
|
-
*/
|
|
14
|
-
lazyLoad: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Group state.
|
|
17
|
-
*/
|
|
18
|
-
opened: boolean;
|
|
19
|
-
constructor(props: IListGroup);
|
|
20
|
-
/**
|
|
21
|
-
* Toggle group state.
|
|
22
|
-
*/
|
|
23
|
-
toggle(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Get item by name
|
|
26
|
-
* @param name name property of the item
|
|
27
|
-
* @throws ItemNotFoundError
|
|
28
|
-
*/
|
|
29
|
-
getItem(name: string): IListItem;
|
|
30
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ComponentRender } from '../zd-component/component_render';
|
|
2
|
-
import { IListItem } from './interfaces';
|
|
3
|
-
import { IComponent } from '../zd-component/interfaces';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for ListItem component.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ListItem extends ComponentRender implements IListItem {
|
|
8
|
-
/**
|
|
9
|
-
* Append an icon inside the item.
|
|
10
|
-
*/
|
|
11
|
-
appendIcon?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Removes the ability to click or target the item.
|
|
14
|
-
*/
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Prepend a component inside the item.
|
|
18
|
-
*/
|
|
19
|
-
leftField?: IComponent;
|
|
20
|
-
/**
|
|
21
|
-
* Prepend an icon inside the item.
|
|
22
|
-
*/
|
|
23
|
-
prependIcon?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Append a component inside the item.
|
|
26
|
-
*/
|
|
27
|
-
rightField?: IComponent;
|
|
28
|
-
/**
|
|
29
|
-
* Apply the ripple effect to show action from a user.
|
|
30
|
-
*/
|
|
31
|
-
ripple: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Defines the item subtitle.
|
|
34
|
-
*/
|
|
35
|
-
subtitle?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Increases the item height to better support three lines of text.
|
|
38
|
-
*/
|
|
39
|
-
threeLine?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Defines the item title.
|
|
42
|
-
*/
|
|
43
|
-
title?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Increases the item height to better support two lines of text.
|
|
46
|
-
*/
|
|
47
|
-
twoLine?: boolean;
|
|
48
|
-
constructor(props: IListItem);
|
|
49
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { IMasterDetail } from './interfaces';
|
|
3
|
-
import { ComponentRender } from '../zd-component/component_render';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for Master Detail component.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MasterDetail extends ComponentRender implements IMasterDetail {
|
|
8
|
-
/**
|
|
9
|
-
* Master detail relationships configuration
|
|
10
|
-
*/
|
|
11
|
-
config: IDictionary<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Creates a new Master Detail.
|
|
14
|
-
* @param props Master detail properties
|
|
15
|
-
*/
|
|
16
|
-
constructor(props: IMasterDetail);
|
|
17
|
-
private createRelationship;
|
|
18
|
-
private createRelationships;
|
|
19
|
-
onMounted(element: HTMLElement): void;
|
|
20
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Button } from '../zd-button/button';
|
|
2
|
-
import { IMenuButton } from './interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for MenuButton component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class MenuButton extends Button implements IMenuButton {
|
|
7
|
-
/**
|
|
8
|
-
* Makes the background transparent (equal to text prop in Vuetify).
|
|
9
|
-
*/
|
|
10
|
-
flat: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Designates the button as icon, round and flat.
|
|
13
|
-
*/
|
|
14
|
-
icon: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Designates the button icon, that will be rendered before the label.
|
|
17
|
-
*/
|
|
18
|
-
iconName: string;
|
|
19
|
-
/**
|
|
20
|
-
* Name of the menu component controlled by this button.
|
|
21
|
-
*/
|
|
22
|
-
menuName: string;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a new Menu Button.
|
|
25
|
-
* @param props Menu Button properties
|
|
26
|
-
*/
|
|
27
|
-
constructor(props: IMenuButton);
|
|
28
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { IMenuGroup, IMenuItem } from './interfaces';
|
|
2
|
-
import { ComponentRender } from '../zd-component/component_render';
|
|
3
|
-
import { Menu } from './menu';
|
|
4
|
-
/**
|
|
5
|
-
* Base class for MenuGroup component.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MenuGroup extends ComponentRender implements IMenuGroup {
|
|
8
|
-
/**
|
|
9
|
-
* item label
|
|
10
|
-
*/
|
|
11
|
-
label: string;
|
|
12
|
-
/**
|
|
13
|
-
* Item icon
|
|
14
|
-
*/
|
|
15
|
-
icon: string;
|
|
16
|
-
/**
|
|
17
|
-
* Items grouped
|
|
18
|
-
*/
|
|
19
|
-
items: IMenuItem[];
|
|
20
|
-
/**
|
|
21
|
-
* Group state
|
|
22
|
-
*/
|
|
23
|
-
opened: boolean | string;
|
|
24
|
-
/**
|
|
25
|
-
* Menu that contains the item
|
|
26
|
-
*/
|
|
27
|
-
parentMenu?: Menu;
|
|
28
|
-
/**
|
|
29
|
-
* Group that contains the item
|
|
30
|
-
*/
|
|
31
|
-
parentGroup?: MenuGroup;
|
|
32
|
-
/**
|
|
33
|
-
* Expansion icon
|
|
34
|
-
*/
|
|
35
|
-
expandIcon: string;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a new Menu Group.
|
|
38
|
-
* @param props Menu Group properties
|
|
39
|
-
*/
|
|
40
|
-
constructor(props: IMenuGroup);
|
|
41
|
-
/**
|
|
42
|
-
* @returns item is selected or not
|
|
43
|
-
*/
|
|
44
|
-
isSelected(): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Open group
|
|
47
|
-
*/
|
|
48
|
-
open(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Close group
|
|
51
|
-
*/
|
|
52
|
-
close(): void;
|
|
53
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IMenuLink, IMenuLinkEvents } from './interfaces';
|
|
2
|
-
import { ComponentRender } from '../zd-component/component_render';
|
|
3
|
-
import { Menu } from './menu';
|
|
4
|
-
import { MenuGroup } from './menu_group';
|
|
5
|
-
/**
|
|
6
|
-
* Base class for MenuLink component.
|
|
7
|
-
*/
|
|
8
|
-
export declare class MenuLink extends ComponentRender implements IMenuLink {
|
|
9
|
-
/**
|
|
10
|
-
* Item label
|
|
11
|
-
*/
|
|
12
|
-
label: string;
|
|
13
|
-
/**
|
|
14
|
-
* Item events
|
|
15
|
-
*/
|
|
16
|
-
events: IMenuLinkEvents;
|
|
17
|
-
/**
|
|
18
|
-
* Item icon
|
|
19
|
-
*/
|
|
20
|
-
icon: string;
|
|
21
|
-
/**
|
|
22
|
-
* Url to redirect
|
|
23
|
-
*/
|
|
24
|
-
route: string;
|
|
25
|
-
/**
|
|
26
|
-
* Menu that contains the item
|
|
27
|
-
*/
|
|
28
|
-
parentMenu?: Menu;
|
|
29
|
-
/**
|
|
30
|
-
* Group that contains the item
|
|
31
|
-
*/
|
|
32
|
-
parentGroup?: MenuGroup;
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new Menu Link.
|
|
35
|
-
* @param props Menu Link properties
|
|
36
|
-
*/
|
|
37
|
-
constructor(props: IMenuLink);
|
|
38
|
-
/**
|
|
39
|
-
* Event triggered when this item is clicked
|
|
40
|
-
*/
|
|
41
|
-
click(event: Event): void;
|
|
42
|
-
/**
|
|
43
|
-
* @returns item is selected or not
|
|
44
|
-
*/
|
|
45
|
-
isSelected(): boolean;
|
|
46
|
-
}
|