@zeedhi/common 1.42.0 → 1.45.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 +696 -83
- package/dist/zd-common.umd.js +695 -82
- package/package.json +2 -2
- 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-button-group/button-group.d.ts +1 -1
- package/types/components/zd-carousel/carousel.d.ts +12 -2
- package/types/components/zd-carousel/interfaces.d.ts +3 -1
- 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-collapse-card/collapse-card.d.ts +1 -1
- package/types/components/zd-component/component.d.ts +5 -4
- package/types/components/zd-container/container.d.ts +12 -0
- package/types/components/zd-container/interfaces.d.ts +3 -0
- package/types/components/zd-dashboard/dashboard.d.ts +1 -1
- package/types/components/zd-date/date-range.d.ts +4 -4
- package/types/components/zd-date/date.d.ts +5 -5
- 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-file-input/file-input.d.ts +3 -3
- package/types/components/zd-form/form.d.ts +6 -2
- package/types/components/zd-form/interfaces.d.ts +1 -0
- package/types/components/zd-frame/frame.d.ts +4 -1
- package/types/components/zd-frame/interfaces.d.ts +3 -0
- package/types/components/zd-grid/grid-editable.d.ts +16 -6
- package/types/components/zd-grid/grid.d.ts +5 -5
- package/types/components/zd-increment/increment.d.ts +2 -2
- package/types/components/zd-input/input.d.ts +6 -6
- package/types/components/zd-iterable/column.d.ts +2 -0
- package/types/components/zd-iterable/interfaces.d.ts +1 -0
- package/types/components/zd-iterable/iterable-page-component.d.ts +1 -1
- package/types/components/zd-iterable/iterable-page-size.d.ts +2 -2
- package/types/components/zd-iterable/iterable.d.ts +1 -1
- package/types/components/zd-list/interfaces.d.ts +3 -0
- package/types/components/zd-list/list.d.ts +12 -0
- package/types/components/zd-login/login-button.d.ts +1 -1
- package/types/components/zd-master-detail/master-detail.d.ts +1 -1
- package/types/components/zd-menu/menu-group.d.ts +8 -0
- package/types/components/zd-menu/menu-link.d.ts +5 -1
- package/types/components/zd-menu/menu.d.ts +3 -1
- 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/select.d.ts +5 -5
- package/types/components/zd-select-multiple/select-multiple.d.ts +2 -2
- package/types/components/zd-select-tree/select-tree.d.ts +6 -6
- package/types/components/zd-select-tree-multiple/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree-multiple/select-tree-multiple.d.ts +6 -2
- package/types/components/zd-selectable-list/selectable-list.d.ts +1 -1
- package/types/components/zd-svg-map/svg-map.d.ts +1 -1
- package/types/components/zd-tabs/interfaces.d.ts +1 -0
- package/types/components/zd-tabs/tabs.d.ts +6 -2
- package/types/components/zd-text-input/text-input.d.ts +4 -4
- package/types/components/zd-time/time.d.ts +1 -1
- package/types/components/zd-tree/interfaces.d.ts +4 -0
- package/types/components/zd-tree/tree.d.ts +39 -11
- package/types/components/zd-tree-grid/tree-grid-editable.d.ts +8 -5
- package/types/components/zd-tree-grid/tree-grid.d.ts +2 -2
- package/types/services/zd-loading/loading-service.d.ts +7 -1
- package/types/utils/report/report-type/interfaces.d.ts +1 -0
- package/types/utils/themes/themes.d.ts +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.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": "b5841549f61c539c52f2438b72e21ccd72156f73"
|
|
41
41
|
}
|
|
@@ -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
|
*/
|
|
@@ -149,13 +159,13 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
149
159
|
* @param element Carousel element
|
|
150
160
|
* @param slideData Data related to the beforeSlide event
|
|
151
161
|
*/
|
|
152
|
-
beforeSlide(element:
|
|
162
|
+
beforeSlide(element: any, slideData: ISlideData, event?: Event): void;
|
|
153
163
|
/**
|
|
154
164
|
* Event triggered when the current slide changes.
|
|
155
165
|
* @param event Event that triggered the slide event
|
|
156
166
|
* @param element Carousel element
|
|
157
167
|
* @param slideData Data related to the slide event
|
|
158
168
|
*/
|
|
159
|
-
slide(element:
|
|
169
|
+
slide(element: any, slideData: ISlideData, event?: Event): void;
|
|
160
170
|
private changeDefaultButtonName;
|
|
161
171
|
}
|
|
@@ -9,7 +9,7 @@ export interface ISlideData {
|
|
|
9
9
|
export interface ICarouselEventParam {
|
|
10
10
|
component: Carousel;
|
|
11
11
|
event?: Event | undefined;
|
|
12
|
-
element?:
|
|
12
|
+
element?: any;
|
|
13
13
|
slideData?: ISlideData;
|
|
14
14
|
}
|
|
15
15
|
export declare type ICarouselEvents = IComponentEvents<ICarouselEventParam>;
|
|
@@ -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
|
|
@@ -63,6 +63,7 @@ export declare class Component implements IComponent {
|
|
|
63
63
|
* Properties accessors to controller.
|
|
64
64
|
*/
|
|
65
65
|
private accessorManager;
|
|
66
|
+
private element?;
|
|
66
67
|
/**
|
|
67
68
|
* Sets view focus method.
|
|
68
69
|
*/
|
|
@@ -128,7 +129,7 @@ export declare class Component implements IComponent {
|
|
|
128
129
|
* Triggered when the component is mounted.
|
|
129
130
|
* @param element Element mounted reference
|
|
130
131
|
*/
|
|
131
|
-
onMounted(element:
|
|
132
|
+
onMounted(element: any): void;
|
|
132
133
|
/**
|
|
133
134
|
* Triggered before the component is destroyed.
|
|
134
135
|
*/
|
|
@@ -142,17 +143,17 @@ export declare class Component implements IComponent {
|
|
|
142
143
|
* @param event DOM event
|
|
143
144
|
* @param element Element clicked
|
|
144
145
|
*/
|
|
145
|
-
click(event
|
|
146
|
+
click(event?: Event, element?: any): void;
|
|
146
147
|
/**
|
|
147
148
|
* Triggered when the component is focused.
|
|
148
149
|
* @param event DOM event
|
|
149
150
|
* @param element Element focused
|
|
150
151
|
*/
|
|
151
|
-
focus(event: Event, element:
|
|
152
|
+
focus(event: Event, element: any): void;
|
|
152
153
|
/**
|
|
153
154
|
* Triggered when the component loses focus.
|
|
154
155
|
* @param event DOM event
|
|
155
156
|
* @param element Element that lost the focus
|
|
156
157
|
*/
|
|
157
|
-
blur(event: Event, element:
|
|
158
|
+
blur(event: Event, element: any): void;
|
|
158
159
|
}
|
|
@@ -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
|
*/
|
|
@@ -24,7 +24,7 @@ export declare class Dashboard extends ComponentRender implements IDashboard {
|
|
|
24
24
|
* @param props Dashboard properties
|
|
25
25
|
*/
|
|
26
26
|
constructor(props: IDashboard);
|
|
27
|
-
onMounted(element:
|
|
27
|
+
onMounted(element: any): void;
|
|
28
28
|
onBeforeDestroy(): void;
|
|
29
29
|
addCard(): void;
|
|
30
30
|
deleteCard(): void;
|
|
@@ -89,9 +89,9 @@ export declare class DateRange extends TextInput implements IDateRange {
|
|
|
89
89
|
parseISODateRangeValue(values: string[]): any;
|
|
90
90
|
private sortDates;
|
|
91
91
|
dateValidation(): boolean | string;
|
|
92
|
-
click(event
|
|
93
|
-
blur(event: Event, element:
|
|
94
|
-
focus(event: Event, element:
|
|
92
|
+
click(event?: Event, element?: any): void;
|
|
93
|
+
blur(event: Event, element: any): void;
|
|
94
|
+
focus(event: Event, element: any): void;
|
|
95
95
|
/**
|
|
96
96
|
* Add date mask
|
|
97
97
|
*/
|
|
@@ -109,7 +109,7 @@ export declare class DateRange extends TextInput implements IDateRange {
|
|
|
109
109
|
* @param event DOM event
|
|
110
110
|
* @param element Text input
|
|
111
111
|
*/
|
|
112
|
-
iconClick(event: Event, element:
|
|
112
|
+
iconClick(event: Event, element: any): void;
|
|
113
113
|
/**
|
|
114
114
|
* Checks if a date format is simple.
|
|
115
115
|
* Simple date formats are the ones that consists only of 'DD', 'MM' or 'YYYY', and mask delimiters
|
|
@@ -79,7 +79,7 @@ export declare class Date extends TextInput implements IDate {
|
|
|
79
79
|
* @param event
|
|
80
80
|
* @param element
|
|
81
81
|
*/
|
|
82
|
-
selectDate(date: string, event?: Event, element?:
|
|
82
|
+
selectDate(date: string, event?: Event, element?: any): void;
|
|
83
83
|
get displayValue(): string;
|
|
84
84
|
set displayValue(newValue: string);
|
|
85
85
|
/**
|
|
@@ -98,9 +98,9 @@ export declare class Date extends TextInput implements IDate {
|
|
|
98
98
|
formatISODateValue(value: string): string;
|
|
99
99
|
parseISODateValue(value: string): any;
|
|
100
100
|
dateValidation(): boolean | string;
|
|
101
|
-
click(event
|
|
102
|
-
blur(event: Event, element:
|
|
103
|
-
focus(event: Event, element:
|
|
101
|
+
click(event?: Event, element?: any): void;
|
|
102
|
+
blur(event: Event, element: any): void;
|
|
103
|
+
focus(event: Event, element: any): void;
|
|
104
104
|
/**
|
|
105
105
|
* Add date mask
|
|
106
106
|
*/
|
|
@@ -118,7 +118,7 @@ export declare class Date extends TextInput implements IDate {
|
|
|
118
118
|
* @param event DOM event
|
|
119
119
|
* @param element Text input
|
|
120
120
|
*/
|
|
121
|
-
iconClick(event: Event, element:
|
|
121
|
+
iconClick(event: Event, element: any): void;
|
|
122
122
|
/**
|
|
123
123
|
* Checks if a date format is simple.
|
|
124
124
|
* Simple date formats are the ones that consists only of 'DD', 'MM' or 'YYYY', and mask delimiters
|
|
@@ -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
|
*/
|
|
@@ -77,14 +77,14 @@ export declare class FileInput extends TextInput implements IFileInput {
|
|
|
77
77
|
* @param event DOM event
|
|
78
78
|
* @param element Element clicked
|
|
79
79
|
*/
|
|
80
|
-
change(event?: Event, element?:
|
|
80
|
+
change(event?: Event, element?: any): void;
|
|
81
81
|
/**
|
|
82
82
|
* Triggered when a removable chip is clicked
|
|
83
83
|
* @param event DOM event
|
|
84
84
|
* @param index Chip index
|
|
85
|
-
* @param element
|
|
85
|
+
* @param element any
|
|
86
86
|
*/
|
|
87
|
-
chipClick(event: Event, index: number, element
|
|
87
|
+
chipClick(event: Event, index: number, element: any): void;
|
|
88
88
|
/**
|
|
89
89
|
* Check if File type is valid using accept attribute
|
|
90
90
|
* @param file File
|
|
@@ -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
|
*/
|
|
@@ -102,12 +106,12 @@ export declare class Form extends ComponentRender implements IForm {
|
|
|
102
106
|
* @param event DOM Event
|
|
103
107
|
* @param element Form component
|
|
104
108
|
*/
|
|
105
|
-
callSubmitEvent(event: Event, element:
|
|
109
|
+
callSubmitEvent(event: Event, element: any): void;
|
|
106
110
|
/**
|
|
107
111
|
* Triggered when the component is mounted.
|
|
108
112
|
* @param element Element mounted reference
|
|
109
113
|
*/
|
|
110
|
-
onMounted(element:
|
|
114
|
+
onMounted(element: any): void;
|
|
111
115
|
submit(): void;
|
|
112
116
|
/**
|
|
113
117
|
* Reset all form validation errors.
|
|
@@ -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
|
/**
|
|
@@ -28,7 +31,7 @@ export declare class Frame extends ComponentRender implements IFrame {
|
|
|
28
31
|
* @param event
|
|
29
32
|
* @param element
|
|
30
33
|
*/
|
|
31
|
-
afterLoad(event?: Event, element?:
|
|
34
|
+
afterLoad(event?: Event, element?: any): void;
|
|
32
35
|
/**
|
|
33
36
|
* Checks if cache response is valid (not expired yet)
|
|
34
37
|
* @param response
|