@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,157 +0,0 @@
|
|
|
1
|
-
import { IDictionary } from '@zeedhi/core';
|
|
2
|
-
import { TreeGrid } from './tree_grid';
|
|
3
|
-
import { GridColumnEditable } from '../zd-grid/grid_column_editable';
|
|
4
|
-
import { IGridColumnEditable, IGridEditable } from '../zd-grid/interfaces';
|
|
5
|
-
export declare class TreeGridEditable extends TreeGrid implements IGridEditable {
|
|
6
|
-
/**
|
|
7
|
-
* Editable columns
|
|
8
|
-
*/
|
|
9
|
-
columns: GridColumnEditable[];
|
|
10
|
-
/**
|
|
11
|
-
* Editing rows
|
|
12
|
-
*/
|
|
13
|
-
editing: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Edited rows
|
|
16
|
-
* @private
|
|
17
|
-
*/
|
|
18
|
-
private editedRows;
|
|
19
|
-
/**
|
|
20
|
-
* Invalid inline components
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
private invalidComponents;
|
|
24
|
-
/**
|
|
25
|
-
* Get Grid columns objects
|
|
26
|
-
* @param columns Grid columns parameter
|
|
27
|
-
*/
|
|
28
|
-
protected getColumns(columns: GridColumnEditable[]): GridColumnEditable[];
|
|
29
|
-
/**
|
|
30
|
-
* Changes column order
|
|
31
|
-
* @async
|
|
32
|
-
* @param field Grid column
|
|
33
|
-
*/
|
|
34
|
-
changeColumnOrder(column: IGridColumnEditable): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Dispatches row click event
|
|
37
|
-
* @param row Grid row
|
|
38
|
-
* @param event DOM event
|
|
39
|
-
* @param element DOM Element
|
|
40
|
-
*/
|
|
41
|
-
rowClick(row: IDictionary<any>, event: Event, element: HTMLElement): void;
|
|
42
|
-
/**
|
|
43
|
-
* Enables editing mode if column is editable
|
|
44
|
-
* @param row Grid row
|
|
45
|
-
* @param column Grid column
|
|
46
|
-
* @param event DOM event
|
|
47
|
-
* @param element DOM Element
|
|
48
|
-
*/
|
|
49
|
-
cellClick(row: IDictionary<any>, column: GridColumnEditable, event: Event, element: HTMLElement): void;
|
|
50
|
-
/**
|
|
51
|
-
* Dispatches select/unselect event
|
|
52
|
-
* @param row Grid row
|
|
53
|
-
* @param isSelected Row is selected
|
|
54
|
-
* @param event DOM event
|
|
55
|
-
* @param element DOM Element
|
|
56
|
-
*/
|
|
57
|
-
selectClick(row: IDictionary<any>, isSelected: boolean, event: Event, element: HTMLElement): void;
|
|
58
|
-
/**
|
|
59
|
-
* Dispatches select/unselect all rows event
|
|
60
|
-
* @param isSelected Row is selected
|
|
61
|
-
* @param event DOM event
|
|
62
|
-
* @param element DOM Element
|
|
63
|
-
*/
|
|
64
|
-
selectAllClick(isSelected: boolean, event: Event, element: HTMLElement): void;
|
|
65
|
-
/**
|
|
66
|
-
* Returns editable component properties based on the column definition
|
|
67
|
-
* @param column Column definition
|
|
68
|
-
* @param row Datasource row
|
|
69
|
-
* @param cellProps Column conditional props
|
|
70
|
-
* @param events Component events
|
|
71
|
-
*/
|
|
72
|
-
getEditableComponent(column: IGridColumnEditable, row: IDictionary<any>, cellProps: IDictionary<any>, events: any): {
|
|
73
|
-
name: string;
|
|
74
|
-
parent: TreeGridEditable;
|
|
75
|
-
align: "left" | "center" | "right" | undefined;
|
|
76
|
-
showLabel: boolean;
|
|
77
|
-
showHelper: boolean;
|
|
78
|
-
dense: boolean;
|
|
79
|
-
value: any;
|
|
80
|
-
events: any;
|
|
81
|
-
autofill: boolean;
|
|
82
|
-
};
|
|
83
|
-
private checkLookupData;
|
|
84
|
-
private checkCompValidity;
|
|
85
|
-
/**
|
|
86
|
-
* change event of editable components
|
|
87
|
-
*/
|
|
88
|
-
private changeEditableComponent;
|
|
89
|
-
/**
|
|
90
|
-
* Checks if column is edited
|
|
91
|
-
* @param column Column
|
|
92
|
-
* @param row Row
|
|
93
|
-
*/
|
|
94
|
-
isEdited(column: IGridColumnEditable, row: IDictionary): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Checks if column is valid
|
|
97
|
-
* @param column Column
|
|
98
|
-
* @param row Row
|
|
99
|
-
*/
|
|
100
|
-
isValid(column: IGridColumnEditable, row: IDictionary): boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Cancels all edited rows and enable grid components
|
|
103
|
-
*/
|
|
104
|
-
cancelEditedRows(): void;
|
|
105
|
-
/**
|
|
106
|
-
* Saves all edited rows if they are valid
|
|
107
|
-
* @throws Will throw when it finds an invalid row
|
|
108
|
-
*/
|
|
109
|
-
saveEditedRows(): Promise<any[]>;
|
|
110
|
-
/**
|
|
111
|
-
* Update DataSource and TreeDataSource
|
|
112
|
-
* with the EditedRows
|
|
113
|
-
*/
|
|
114
|
-
protected updateWithEditedRows(): void;
|
|
115
|
-
/**
|
|
116
|
-
* Retrieves all edited rows if they are valid
|
|
117
|
-
* @throws Will throw when it finds an invalid row
|
|
118
|
-
*/
|
|
119
|
-
getEditedRows(): IDictionary<any>[];
|
|
120
|
-
isGridValid(): boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Gets the editable component name
|
|
123
|
-
* @param key Row unique key
|
|
124
|
-
* @param columnName Column name
|
|
125
|
-
*/
|
|
126
|
-
private getCompName;
|
|
127
|
-
/**
|
|
128
|
-
* Gets the component in specified position
|
|
129
|
-
* @param key Row unique key
|
|
130
|
-
* @param columnName Column name
|
|
131
|
-
*/
|
|
132
|
-
getComponent<T>(key: string, columnName: string): T;
|
|
133
|
-
/**
|
|
134
|
-
* Updates a row, adding it to editedRows
|
|
135
|
-
* @param newRow Row being updated
|
|
136
|
-
* @throws NotEditingError If grid is not in edit mode
|
|
137
|
-
* @throws RowNotFoundError If the row is not present in datasource
|
|
138
|
-
*/
|
|
139
|
-
updateRow(newRow: IDictionary): void;
|
|
140
|
-
/**
|
|
141
|
-
* Updates a cell, adding it's row to editedRows
|
|
142
|
-
* @param rowKey Cell's row key
|
|
143
|
-
* @param columnName Cell's column name
|
|
144
|
-
* @param value Value to be set in the cell
|
|
145
|
-
* @throws NotEditingError If grid is not in edit mode
|
|
146
|
-
* @throws RowNotFoundError If the row is not present in datasource
|
|
147
|
-
*/
|
|
148
|
-
updateCell(rowKey: string, columnName: string, value: any): void;
|
|
149
|
-
/**
|
|
150
|
-
* Changes a cell value in editedRows
|
|
151
|
-
* @param rowKey Cell's row key
|
|
152
|
-
* @param rowIdx Cell's row index in datasource.data
|
|
153
|
-
* @param column Cell's column
|
|
154
|
-
* @param value Value to be set in the cell
|
|
155
|
-
*/
|
|
156
|
-
private changeCell;
|
|
157
|
-
}
|