@zeedhi/common 1.41.0 → 1.44.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/dist/zd-common.esm.js +532 -22
- package/dist/zd-common.umd.js +531 -20
- package/package.json +2 -2
- package/types/components/index.d.ts +2 -0
- package/types/components/zd-apex-chart/apex-chart.d.ts +152 -1
- package/types/components/zd-apex-chart/interfaces.d.ts +35 -3
- package/types/components/zd-carousel/carousel.d.ts +10 -0
- package/types/components/zd-carousel/interfaces.d.ts +2 -0
- package/types/components/zd-code-editor/code-editor.d.ts +5 -1
- package/types/components/zd-code-editor/interfaces.d.ts +2 -1
- package/types/components/zd-container/container.d.ts +12 -0
- package/types/components/zd-container/interfaces.d.ts +3 -0
- package/types/components/zd-dialog/dialog.d.ts +11 -0
- package/types/components/zd-dialog/interfaces.d.ts +2 -0
- package/types/components/zd-dropdown/dropdown.d.ts +4 -0
- package/types/components/zd-dropdown/interfaces.d.ts +1 -0
- package/types/components/zd-form/form.d.ts +4 -0
- package/types/components/zd-form/interfaces.d.ts +1 -0
- package/types/components/zd-frame/frame.d.ts +3 -0
- package/types/components/zd-frame/interfaces.d.ts +3 -0
- package/types/components/zd-grid/grid-editable.d.ts +11 -1
- package/types/components/zd-iterable/column.d.ts +2 -0
- package/types/components/zd-iterable/interfaces.d.ts +1 -0
- package/types/components/zd-list/interfaces.d.ts +3 -0
- package/types/components/zd-list/list.d.ts +12 -0
- package/types/components/zd-menu/menu-group.d.ts +8 -0
- package/types/components/zd-menu/menu-link.d.ts +4 -0
- package/types/components/zd-menu/menu.d.ts +2 -0
- package/types/components/zd-modal/interfaces.d.ts +2 -0
- package/types/components/zd-modal/modal.d.ts +8 -0
- package/types/components/zd-select-tree-multiple/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree-multiple/select-tree-multiple.d.ts +4 -0
- package/types/components/zd-selectable-list/interfaces.d.ts +1 -0
- package/types/components/zd-selectable-list/selectable-list.d.ts +4 -4
- package/types/components/zd-tabs/interfaces.d.ts +1 -0
- package/types/components/zd-tabs/tabs.d.ts +14 -0
- package/types/components/zd-tree-grid/tree-grid-editable.d.ts +3 -0
- package/types/utils/report/report-type/interfaces.d.ts +1 -0
- package/types/utils/themes/themes.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"lodash.times": "^4.3.2",
|
|
38
38
|
"mockdate": "^3.0.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "cfe94f85ab62e7e30d7bb09ea8178edf2b75fd59"
|
|
41
41
|
}
|
|
@@ -121,6 +121,8 @@ export * from './zd-select-tree/select-tree';
|
|
|
121
121
|
export * from './zd-select-tree/interfaces';
|
|
122
122
|
export * from './zd-select-tree-multiple/select-tree-multiple';
|
|
123
123
|
export * from './zd-select-tree-multiple/interfaces';
|
|
124
|
+
export * from './zd-selectable-list/selectable-list';
|
|
125
|
+
export * from './zd-selectable-list/interfaces';
|
|
124
126
|
export * from './zd-speed-dial/speed-dial';
|
|
125
127
|
export * from './zd-speed-dial/interfaces';
|
|
126
128
|
export * from './zd-steppers/steppers';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApexChart } from './interfaces';
|
|
1
|
+
import { IApexChart, IApexChartEvents } from './interfaces';
|
|
2
2
|
import { ComponentRender } from '../zd-component/component-render';
|
|
3
3
|
/**
|
|
4
4
|
* Base class for ApexChart component.
|
|
@@ -43,6 +43,10 @@ export declare class ApexChart extends ComponentRender implements IApexChart {
|
|
|
43
43
|
* Defines the load progress color
|
|
44
44
|
*/
|
|
45
45
|
loadColor: string;
|
|
46
|
+
/**
|
|
47
|
+
* Defines Apex Chart events.
|
|
48
|
+
*/
|
|
49
|
+
events: IApexChartEvents;
|
|
46
50
|
/**
|
|
47
51
|
* Optional update method assigned by view layer.
|
|
48
52
|
*/
|
|
@@ -72,5 +76,152 @@ export declare class ApexChart extends ComponentRender implements IApexChart {
|
|
|
72
76
|
* @param options New options
|
|
73
77
|
*/
|
|
74
78
|
updateChart(options: any): Promise<any>;
|
|
79
|
+
/**
|
|
80
|
+
* Fires when the chart’s initial animation is finished
|
|
81
|
+
* @param chartContext
|
|
82
|
+
* @param config
|
|
83
|
+
* @param element DOM Element
|
|
84
|
+
*/
|
|
85
|
+
animationEndEvent(chartContext: any, options: any): void;
|
|
86
|
+
/**
|
|
87
|
+
* Fires before the chart has been drawn on screen
|
|
88
|
+
* @param chartContext
|
|
89
|
+
* @param config
|
|
90
|
+
* @param element DOM Element
|
|
91
|
+
*/
|
|
92
|
+
beforeMountEvent(chartContext: any, config: any): void;
|
|
93
|
+
/**
|
|
94
|
+
* Fires after the chart has been drawn on screen
|
|
95
|
+
* @param chartContext
|
|
96
|
+
* @param config
|
|
97
|
+
* @param element DOM Element
|
|
98
|
+
*/
|
|
99
|
+
mountedEvent(chartContext: any, config: any): void;
|
|
100
|
+
/**
|
|
101
|
+
* Fires when the chart has been dynamically updated either with
|
|
102
|
+
* updateOptions() or updateSeries() functions
|
|
103
|
+
* @param chartContext
|
|
104
|
+
* @param config
|
|
105
|
+
* @param element DOM Element
|
|
106
|
+
*/
|
|
107
|
+
updatedEvent(chartContext: any, config: any): void;
|
|
108
|
+
/**
|
|
109
|
+
* Fires when the chart has been dynamically updated either with
|
|
110
|
+
* updateOptions() or updateSeries() functions
|
|
111
|
+
* @param event Event that triggered the click event
|
|
112
|
+
* @param chartContext
|
|
113
|
+
* @param config
|
|
114
|
+
* @param element DOM Element
|
|
115
|
+
*/
|
|
116
|
+
clickEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
117
|
+
/**
|
|
118
|
+
* Fires when user moves mouse on any area of the chart.
|
|
119
|
+
* @param event Event that triggered the click event
|
|
120
|
+
* @param chartContext
|
|
121
|
+
* @param config
|
|
122
|
+
* @param element DOM Element
|
|
123
|
+
*/
|
|
124
|
+
mouseMoveEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
125
|
+
/**
|
|
126
|
+
* Fires when user moves mouse on any area of the chart.
|
|
127
|
+
* @param event Event that triggered the mouse leave
|
|
128
|
+
* @param chartContext
|
|
129
|
+
* @param config New config
|
|
130
|
+
* @param element DOM Element
|
|
131
|
+
*/
|
|
132
|
+
mouseLeaveEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
133
|
+
/**
|
|
134
|
+
* Fires when user moves mouse on any area of the chart.
|
|
135
|
+
* @param chartContext
|
|
136
|
+
* @param seriesIndex
|
|
137
|
+
* @param config
|
|
138
|
+
* @param element DOM Element
|
|
139
|
+
*/
|
|
140
|
+
legendClickEvent(chartContext?: any, seriesIndex?: any, config?: any): void;
|
|
141
|
+
/**
|
|
142
|
+
* Fires when user moves mouse on any area of the chart.
|
|
143
|
+
* @param event Event that triggered the marker click
|
|
144
|
+
* @param chartContext
|
|
145
|
+
* @param option New config
|
|
146
|
+
* @param element DOM Element
|
|
147
|
+
*/
|
|
148
|
+
markerClickEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
149
|
+
/**
|
|
150
|
+
* Fires when user selects rect using the selection tool.
|
|
151
|
+
* The second argument
|
|
152
|
+
* @param chartContext
|
|
153
|
+
* @param config contains the yaxis and xaxis coordinates where user made the selection
|
|
154
|
+
* @param element DOM Element
|
|
155
|
+
*/
|
|
156
|
+
selectionEvent(chartContext?: any, config?: any): void;
|
|
157
|
+
/**
|
|
158
|
+
* Fires when user clicks on a datapoint (bar/column/marker/bubble/donut-slice).
|
|
159
|
+
* @param event Event that triggered when user clicks on a datapoint
|
|
160
|
+
* @param chartContext
|
|
161
|
+
* @param config The config object, also includes additional information like
|
|
162
|
+
* which dataPointIndex was selected of which series.
|
|
163
|
+
* @param element DOM Element
|
|
164
|
+
*/
|
|
165
|
+
dataPointSelectionEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
166
|
+
/**
|
|
167
|
+
* Fires when user clicks on a datapoint (bar/column/marker/bubble/donut-slice).
|
|
168
|
+
* @param event Event that triggered when user’s mouse enter on a datapoint
|
|
169
|
+
* @param chartContext
|
|
170
|
+
* @param config The config object, also includes additional information like
|
|
171
|
+
* which dataPointIndex was hovered of particular series.
|
|
172
|
+
* @param element DOM Element
|
|
173
|
+
*/
|
|
174
|
+
dataPointMouseEnterEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
175
|
+
/**
|
|
176
|
+
* MouseLeave event for a datapoint (bar/column/marker/bubble/donut-slice).
|
|
177
|
+
* @param event Event that triggered the beforeSlide event
|
|
178
|
+
* @param chartContext
|
|
179
|
+
* @param config
|
|
180
|
+
* @param element DOM Element
|
|
181
|
+
*/
|
|
182
|
+
dataPointMouseLeaveEvent(event?: Event, chartContext?: any, config?: any): void;
|
|
183
|
+
/**
|
|
184
|
+
* This function, if defined, runs just before zooming in/out of the chart
|
|
185
|
+
* allowing you to set a custom range for zooming in/out.
|
|
186
|
+
* @param chartContext
|
|
187
|
+
* @param config { min: timestamp, max: timestamp }
|
|
188
|
+
* @param element DOM Element
|
|
189
|
+
*/
|
|
190
|
+
beforeZoomEvent(chartContext?: any, config?: any): void;
|
|
191
|
+
/**
|
|
192
|
+
* This function, if defined, runs just before the user hits the HOME button
|
|
193
|
+
* on the toolbar to reset the chart to it’s original state. The function
|
|
194
|
+
* allows you to set a custom axes range for the initial view of the chart.
|
|
195
|
+
* @param chartContext
|
|
196
|
+
* @param config { min: timestamp, max: timestamp }
|
|
197
|
+
* @param element DOM Element
|
|
198
|
+
*/
|
|
199
|
+
beforeResetZoomEvent(chartContext?: any, config?: any): void;
|
|
200
|
+
/**
|
|
201
|
+
* Fires when user zooms in/out the chart using either the selection zooming
|
|
202
|
+
* tool or zoom in/out buttons.
|
|
203
|
+
* The 2nd argument includes information of the new xaxis/yaxis generated after zooming.
|
|
204
|
+
* @param chartContext
|
|
205
|
+
* @param config { min: timestamp, max: timestamp }
|
|
206
|
+
* @param element DOM Element
|
|
207
|
+
*/
|
|
208
|
+
zoomedEvent(chartContext?: any, config?: any): void;
|
|
209
|
+
/**
|
|
210
|
+
* Fires when user scrolls using the pan tool.
|
|
211
|
+
* The 2nd argument includes information of the new xaxis generated after scrolling.
|
|
212
|
+
* @param chartContext
|
|
213
|
+
* @param config { xaxis: any }
|
|
214
|
+
* @param element DOM Element
|
|
215
|
+
*/
|
|
216
|
+
scrolledEvent(chartContext?: any, config?: any): void;
|
|
217
|
+
/**
|
|
218
|
+
* Fires when user drags the brush in a brush chart.
|
|
219
|
+
* The 2nd argument includes information of the new axes generated after
|
|
220
|
+
* scrolling the brush.
|
|
221
|
+
* @param chartContext
|
|
222
|
+
* @param config { xaxis: any, yaxis: any }
|
|
223
|
+
* @param element DOM Element
|
|
224
|
+
*/
|
|
225
|
+
brushScrolledEvent(chartContext?: any, config?: any): void;
|
|
75
226
|
updateToolbarIcons(): any;
|
|
76
227
|
}
|
|
@@ -1,7 +1,38 @@
|
|
|
1
|
-
import { IEventParam } from '@zeedhi/core';
|
|
2
|
-
import { IComponentRender } from '../zd-component/interfaces';
|
|
1
|
+
import { IEventParam, IEvent } from '@zeedhi/core';
|
|
2
|
+
import { IComponentEvents, IComponentRender } from '../zd-component/interfaces';
|
|
3
3
|
import { ApexChart } from './apex-chart';
|
|
4
|
-
export declare type
|
|
4
|
+
export declare type ApexChartOption = {
|
|
5
|
+
xaxis?: any;
|
|
6
|
+
yaxis?: any;
|
|
7
|
+
seriesIndex?: any;
|
|
8
|
+
config?: any;
|
|
9
|
+
dataPointIndex?: any;
|
|
10
|
+
};
|
|
11
|
+
export interface IApexChartEvent extends IEventParam<ApexChart> {
|
|
12
|
+
chartContext: any;
|
|
13
|
+
config?: ApexChartOption;
|
|
14
|
+
seriesIndex?: any;
|
|
15
|
+
}
|
|
16
|
+
export interface IApexChartEvents<T = IApexChartEvent | IEventParam<any>> extends IComponentEvents<T> {
|
|
17
|
+
chartAnimationEnd?: IEvent<T> | string;
|
|
18
|
+
chartBeforeMount?: IEvent<T> | string;
|
|
19
|
+
chartMounted?: IEvent<T> | string;
|
|
20
|
+
chartUpdated?: IEvent<T> | string;
|
|
21
|
+
chartMouseMove?: IEvent<T> | string;
|
|
22
|
+
chartMouseLeave?: IEvent<T> | string;
|
|
23
|
+
chartClick?: IEvent<T> | string;
|
|
24
|
+
chartLegendClick?: IEvent<T> | string;
|
|
25
|
+
chartMarkerClick?: IEvent<T> | string;
|
|
26
|
+
chartSelection?: IEvent<T> | string;
|
|
27
|
+
chartDataPointSelection?: IEvent<T> | string;
|
|
28
|
+
chartDataPointMouseEnter?: IEvent<T> | string;
|
|
29
|
+
chartDataPointMouseLeave?: IEvent<T> | string;
|
|
30
|
+
chartBeforeZoom?: IEvent<T> | string;
|
|
31
|
+
chartBeforeResetZoom?: IEvent<T> | string;
|
|
32
|
+
chartZoomed?: IEvent<T> | string;
|
|
33
|
+
chartScrolled?: IEvent<T> | string;
|
|
34
|
+
chartBrushScrolled?: IEvent<T> | string;
|
|
35
|
+
}
|
|
5
36
|
export interface IApexChart extends IComponentRender {
|
|
6
37
|
chartType?: string;
|
|
7
38
|
series?: any[] | string;
|
|
@@ -11,4 +42,5 @@ export interface IApexChart extends IComponentRender {
|
|
|
11
42
|
loading?: boolean;
|
|
12
43
|
loadOpacity?: number;
|
|
13
44
|
loadColor?: string;
|
|
45
|
+
events?: IApexChartEvents;
|
|
14
46
|
}
|
|
@@ -40,6 +40,16 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
40
40
|
* '30em', '400', 400. Values without measurement unit will be notated in pixels by default
|
|
41
41
|
*/
|
|
42
42
|
height: number | string;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the carousel max height. Example values: 'auto', '100%', '400px',
|
|
45
|
+
* '30em', '400', 400. Values without measurement unit will be notated in pixels by default
|
|
46
|
+
*/
|
|
47
|
+
maxHeight: number | string;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the carousel min height. Example values: 'auto', '100%', '400px',
|
|
50
|
+
* '30em', '400', 400. Values without measurement unit will be notated in pixels by default
|
|
51
|
+
*/
|
|
52
|
+
minHeight: number | string;
|
|
43
53
|
/**
|
|
44
54
|
* Configures the carousel as infinite (the slide after the last one is the first slide, and vice-versa)
|
|
45
55
|
*/
|
|
@@ -19,6 +19,8 @@ export interface ICarousel extends IComponentRender {
|
|
|
19
19
|
center?: boolean;
|
|
20
20
|
currentSlide?: number;
|
|
21
21
|
height?: number | string;
|
|
22
|
+
maxHeight?: number | string;
|
|
23
|
+
minHeight?: number | string;
|
|
22
24
|
infiniteScroll?: boolean;
|
|
23
25
|
initialSlide?: number;
|
|
24
26
|
interval?: number;
|
|
@@ -11,7 +11,11 @@ export declare class CodeEditor extends ComponentRender implements ICodeEditor {
|
|
|
11
11
|
/**
|
|
12
12
|
* Max height in pixels. 'none' means no limit.
|
|
13
13
|
*/
|
|
14
|
-
maxHeight: string;
|
|
14
|
+
maxHeight: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* Max height in pixels. 'none' means no limit.
|
|
17
|
+
*/
|
|
18
|
+
height: number | string;
|
|
15
19
|
/**
|
|
16
20
|
* Language code to be used for highlight (js|javascript, css, html, json, ts|typescript, bash|shell)
|
|
17
21
|
* Other languages must be imported above
|
|
@@ -8,6 +8,18 @@ export declare class Container extends ComponentRender implements IContainer {
|
|
|
8
8
|
* Adds height 100% to container.
|
|
9
9
|
*/
|
|
10
10
|
fillHeight: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the height for the component.
|
|
13
|
+
*/
|
|
14
|
+
height: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the maximum height for the component.
|
|
17
|
+
*/
|
|
18
|
+
maxHeight: number | string;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the minimum height for the component.
|
|
21
|
+
*/
|
|
22
|
+
minHeight: number | string;
|
|
11
23
|
/**
|
|
12
24
|
* Removes viewport maximum-width size breakpoints.
|
|
13
25
|
*/
|
|
@@ -29,12 +29,22 @@ export declare class Dialog extends Component implements IDialog {
|
|
|
29
29
|
* Dialog type (normal, success, error, warning, info)
|
|
30
30
|
*/
|
|
31
31
|
type: string;
|
|
32
|
+
/**
|
|
33
|
+
* Confirm button component name
|
|
34
|
+
*/
|
|
35
|
+
confirmButton?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Deny button component name
|
|
38
|
+
*/
|
|
39
|
+
denyButton?: string;
|
|
32
40
|
/**
|
|
33
41
|
* Default dialog buttons
|
|
34
42
|
* @private
|
|
35
43
|
*/
|
|
36
44
|
private defaultButtons;
|
|
37
45
|
protected defaultValues: {
|
|
46
|
+
confirmButton: string | undefined;
|
|
47
|
+
denyButton: string | undefined;
|
|
38
48
|
name: string;
|
|
39
49
|
maxWidth: string | number;
|
|
40
50
|
persistent: boolean;
|
|
@@ -52,6 +62,7 @@ export declare class Dialog extends Component implements IDialog {
|
|
|
52
62
|
* @param dialog Dialog structure
|
|
53
63
|
*/
|
|
54
64
|
assignDialogProperties(dialog: IDialog): void;
|
|
65
|
+
protected clickDefaultButtonKeyMapping: any;
|
|
55
66
|
/**
|
|
56
67
|
* Displays dialog
|
|
57
68
|
*/
|
|
@@ -37,6 +37,10 @@ export declare class Dropdown extends ComponentRender implements IDropdown {
|
|
|
37
37
|
* Applies position fixed to the dropdown.
|
|
38
38
|
*/
|
|
39
39
|
fixed: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the height for the dropdown.
|
|
42
|
+
*/
|
|
43
|
+
height?: number | string;
|
|
40
44
|
/**
|
|
41
45
|
* Sets the maximum height for the dropdown.
|
|
42
46
|
*/
|
|
@@ -20,6 +20,10 @@ export declare class Form extends ComponentRender implements IForm {
|
|
|
20
20
|
* Available options are start, center, end, space-between and space-around.
|
|
21
21
|
*/
|
|
22
22
|
justify?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the height for the form.
|
|
25
|
+
*/
|
|
26
|
+
height?: number | string;
|
|
23
27
|
/**
|
|
24
28
|
* Defines form events.
|
|
25
29
|
*/
|
|
@@ -12,6 +12,9 @@ export declare class Frame extends ComponentRender implements IFrame {
|
|
|
12
12
|
cache: boolean;
|
|
13
13
|
events: IFrameEvents;
|
|
14
14
|
cacheDuration: number;
|
|
15
|
+
height: number | string;
|
|
16
|
+
maxHeight: number | string;
|
|
17
|
+
minHeight: number | string;
|
|
15
18
|
private readonly headerName;
|
|
16
19
|
private static readonly cacheName;
|
|
17
20
|
/**
|
|
@@ -23,12 +23,20 @@ export declare class GridEditable extends Grid implements IGridEditable {
|
|
|
23
23
|
* @private
|
|
24
24
|
*/
|
|
25
25
|
private editedRows;
|
|
26
|
+
/**
|
|
27
|
+
* Rows with newRowIdentifier
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
30
|
+
private addedRows;
|
|
26
31
|
/**
|
|
27
32
|
* Invalid inline components
|
|
28
33
|
* @private
|
|
29
34
|
*/
|
|
30
35
|
private invalidComponents;
|
|
36
|
+
protected cancelEditedRowsKeyMapping: any;
|
|
31
37
|
constructor(props: IGridEditable);
|
|
38
|
+
onMounted(element: HTMLElement): void;
|
|
39
|
+
onBeforeDestroy(): void;
|
|
32
40
|
/**
|
|
33
41
|
* Get Grid columns objects
|
|
34
42
|
* @param columns Grid columns parameter
|
|
@@ -112,11 +120,13 @@ export declare class GridEditable extends Grid implements IGridEditable {
|
|
|
112
120
|
* Cancels all edited rows and enable grid components
|
|
113
121
|
*/
|
|
114
122
|
cancelEditedRows(): Promise<void>;
|
|
123
|
+
private removeAddedRows;
|
|
124
|
+
private addDataRow;
|
|
115
125
|
/**
|
|
116
126
|
* Saves all edited rows if they are valid
|
|
117
127
|
* @throws Will throw when it finds an invalid row
|
|
118
128
|
*/
|
|
119
|
-
saveEditedRows(): Promise<
|
|
129
|
+
saveEditedRows(): Promise<void[]>;
|
|
120
130
|
/**
|
|
121
131
|
* Retrieves all edited rows if they are valid
|
|
122
132
|
* @throws Will throw when it finds an invalid row
|
|
@@ -16,6 +16,8 @@ export declare class Column extends Component implements IColumn {
|
|
|
16
16
|
componentProps: any;
|
|
17
17
|
/** column style property */
|
|
18
18
|
style: IDictionary;
|
|
19
|
+
/** Type of XLS */
|
|
20
|
+
xlsType: string;
|
|
19
21
|
protected lookupDatasource?: Datasource;
|
|
20
22
|
lookupData: any;
|
|
21
23
|
lookupDataCount: number;
|
|
@@ -41,6 +41,18 @@ export declare class List extends ComponentRender implements IList {
|
|
|
41
41
|
* Will only collapse when explicitly closed.
|
|
42
42
|
*/
|
|
43
43
|
expand: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the height for the component.
|
|
46
|
+
*/
|
|
47
|
+
height: number | string;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the maxHeight for the component.
|
|
50
|
+
*/
|
|
51
|
+
maxHeight: number | string;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the minHeight for the component.
|
|
54
|
+
*/
|
|
55
|
+
minHeight: number | string;
|
|
44
56
|
constructor(props: IList);
|
|
45
57
|
/**
|
|
46
58
|
* Get item by name
|
|
@@ -50,4 +50,12 @@ export declare class MenuGroup extends ComponentRender implements IMenuGroup {
|
|
|
50
50
|
* Close group
|
|
51
51
|
*/
|
|
52
52
|
close(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Event triggered when this item is clicked
|
|
55
|
+
*/
|
|
56
|
+
click(event: Event): void;
|
|
57
|
+
/**
|
|
58
|
+
* Event triggered when this item is focus
|
|
59
|
+
*/
|
|
60
|
+
focus(event: Event): void;
|
|
53
61
|
}
|
|
@@ -39,6 +39,10 @@ export declare class MenuLink extends ComponentRender implements IMenuLink {
|
|
|
39
39
|
* Event triggered when this item is clicked
|
|
40
40
|
*/
|
|
41
41
|
click(event: Event): void;
|
|
42
|
+
/**
|
|
43
|
+
* Event triggered when this item is focus
|
|
44
|
+
*/
|
|
45
|
+
focus(): void;
|
|
42
46
|
/**
|
|
43
47
|
* @returns item is selected or not
|
|
44
48
|
*/
|
|
@@ -111,6 +111,8 @@ export declare class Menu extends ComponentRender implements IMenu {
|
|
|
111
111
|
private filteredMenuItems;
|
|
112
112
|
/** Search value */
|
|
113
113
|
private searchValue;
|
|
114
|
+
/** Store the current item focused */
|
|
115
|
+
currentItem: IMenuItem | null;
|
|
114
116
|
/**
|
|
115
117
|
* Creates a new Menu.
|
|
116
118
|
* @param props Menu properties
|
|
@@ -17,6 +17,14 @@ export declare class Modal extends Component implements IModal {
|
|
|
17
17
|
* If true the modal won't close when overlay is clicked
|
|
18
18
|
*/
|
|
19
19
|
persistent: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Allows modal to be dragged around in the screen
|
|
22
|
+
*/
|
|
23
|
+
draggable: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Css selector of the drag handle
|
|
26
|
+
*/
|
|
27
|
+
dragHandle?: string;
|
|
20
28
|
/**
|
|
21
29
|
* Creates a new modal
|
|
22
30
|
* @param props Modal structure
|
|
@@ -12,6 +12,7 @@ export interface ISelectTreeMultiple extends ISelectTree {
|
|
|
12
12
|
flat?: boolean;
|
|
13
13
|
limit?: number;
|
|
14
14
|
events?: ISelectTreeMultipleEvents;
|
|
15
|
+
valueConsistsOf?: string;
|
|
15
16
|
}
|
|
16
17
|
export interface ISelectTreeMultipleSelectedNodesEvent extends IEventParam<SelectTreeMultiple> {
|
|
17
18
|
selectedNodes: ISelectTreeMultipleNode<IDictionary>[];
|
|
@@ -22,6 +22,10 @@ export declare class SelectTreeMultiple extends SelectTree implements ISelectTre
|
|
|
22
22
|
*/
|
|
23
23
|
selectedNodes: ISelectTreeMultipleNode<IDictionary>[];
|
|
24
24
|
selectValue: any[];
|
|
25
|
+
/**
|
|
26
|
+
* Changes the behavior of checked nodes that will be displayed in the array of values
|
|
27
|
+
*/
|
|
28
|
+
valueConsistsOf: string;
|
|
25
29
|
/**
|
|
26
30
|
* Creates a new instance of Select Tree Multiple
|
|
27
31
|
* @param props
|
|
@@ -16,14 +16,14 @@ export declare class SelectableList extends List implements ISelectableList {
|
|
|
16
16
|
* Defines the maximum number of elements the list has
|
|
17
17
|
*/
|
|
18
18
|
max?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the maximum number of elements the list has
|
|
21
|
-
*/
|
|
22
|
-
value?: string;
|
|
23
19
|
/**
|
|
24
20
|
* Defines how many elements of the list can be selected at the same time
|
|
25
21
|
*/
|
|
26
22
|
multiple?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the active list-item inside the list-group
|
|
25
|
+
*/
|
|
26
|
+
value?: any;
|
|
27
27
|
constructor(props: ISelectableList);
|
|
28
28
|
change(event?: Event, element?: HTMLElement): void;
|
|
29
29
|
}
|
|
@@ -8,6 +8,10 @@ export declare class Tabs extends ComponentRender implements ITabs {
|
|
|
8
8
|
activeTab: number;
|
|
9
9
|
events: ITabsEvents;
|
|
10
10
|
tabs: Tab[];
|
|
11
|
+
/**
|
|
12
|
+
* Sets the height for Tabs.
|
|
13
|
+
*/
|
|
14
|
+
height?: number | string;
|
|
11
15
|
/**
|
|
12
16
|
* Create a new Tabs.
|
|
13
17
|
* @param props Tabs properties
|
|
@@ -15,6 +19,16 @@ export declare class Tabs extends ComponentRender implements ITabs {
|
|
|
15
19
|
constructor(props: ITabs);
|
|
16
20
|
private getTabs;
|
|
17
21
|
getTab(name: string): Tab;
|
|
22
|
+
/**
|
|
23
|
+
* Method for navigating to the next tab
|
|
24
|
+
* @param loop Defines if want a loop navigation
|
|
25
|
+
*/
|
|
26
|
+
nextTab(loop?: boolean): void;
|
|
27
|
+
/**
|
|
28
|
+
* Method for navigating to the previous tab
|
|
29
|
+
* @param loop Defines if want a loop navigation
|
|
30
|
+
*/
|
|
31
|
+
previousTab(loop?: boolean): void;
|
|
18
32
|
/**
|
|
19
33
|
* Triggered before tab is change.
|
|
20
34
|
* @param event DOM event
|