@zeedhi/common 1.39.1 → 1.43.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/style.css +1 -1
- package/dist/zd-common.esm.js +868 -251
- package/dist/zd-common.umd.js +873 -253
- package/package.json +2 -2
- package/types/components/index.d.ts +2 -0
- package/types/components/zd-alert/alert.d.ts +2 -0
- package/types/components/zd-apex-chart/apex-chart.d.ts +163 -1
- package/types/components/zd-apex-chart/interfaces.d.ts +35 -3
- package/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -8
- package/types/components/zd-button/button.d.ts +0 -8
- package/types/components/zd-button/interfaces.d.ts +0 -2
- package/types/components/zd-button-group/button-group.d.ts +0 -8
- package/types/components/zd-button-group/interfaces.d.ts +0 -2
- package/types/components/zd-card/card.d.ts +0 -8
- package/types/components/zd-card/interfaces.d.ts +0 -2
- package/types/components/zd-carousel/carousel.d.ts +10 -8
- package/types/components/zd-carousel/interfaces.d.ts +2 -2
- 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-component/component.d.ts +8 -0
- package/types/components/zd-component/interfaces.d.ts +2 -0
- package/types/components/zd-container/container.d.ts +12 -0
- package/types/components/zd-container/interfaces.d.ts +3 -0
- package/types/components/zd-date/date-range.d.ts +1 -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-divider/divider.d.ts +0 -8
- package/types/components/zd-divider/interfaces.d.ts +0 -2
- package/types/components/zd-dropdown/dropdown.d.ts +4 -0
- package/types/components/zd-dropdown/interfaces.d.ts +1 -0
- package/types/components/zd-footer/footer.d.ts +0 -8
- package/types/components/zd-footer/interfaces.d.ts +0 -2
- package/types/components/zd-form/form.d.ts +14 -1
- package/types/components/zd-form/interfaces.d.ts +1 -0
- package/types/components/zd-frame/frame.d.ts +4 -0
- package/types/components/zd-frame/interfaces.d.ts +3 -0
- package/types/components/zd-grid/grid-column.d.ts +2 -0
- package/types/components/zd-grid/grid-editable.d.ts +11 -1
- package/types/components/zd-grid/grid.d.ts +4 -0
- package/types/components/zd-grid/interfaces.d.ts +1 -0
- package/types/components/zd-header/header.d.ts +0 -8
- package/types/components/zd-icon/icon.d.ts +0 -8
- package/types/components/zd-icon/interfaces.d.ts +0 -2
- package/types/components/zd-input/input.d.ts +0 -8
- package/types/components/zd-list/interfaces.d.ts +3 -2
- package/types/components/zd-list/list.d.ts +12 -8
- package/types/components/zd-login/interfaces.d.ts +0 -1
- package/types/components/zd-login/login.d.ts +0 -4
- package/types/components/zd-menu/interfaces.d.ts +0 -1
- package/types/components/zd-menu/menu.d.ts +0 -4
- package/types/components/zd-progress/progress.d.ts +0 -8
- package/types/components/zd-select-tree/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree/select-tree.d.ts +6 -0
- package/types/components/zd-selectable-list/interfaces.d.ts +8 -0
- package/types/components/zd-selectable-list/selectable-list.d.ts +29 -0
- package/types/components/zd-steppers/interfaces.d.ts +0 -2
- package/types/components/zd-steppers/steppers.d.ts +0 -8
- 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/index.d.ts +2 -0
- package/types/utils/report/report-type/base-report.d.ts +3 -1
- package/types/utils/report/report-type/interfaces.d.ts +2 -1
- package/types/utils/report/report-type/xls-report.d.ts +1 -16
- package/types/utils/report/report-type/xls2-report.d.ts +16 -0
- package/types/utils/report/report-type/xls3-report.d.ts +16 -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.43.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": "29c0d1651d7e00dba4a4e582c1c1ffd8b466107e"
|
|
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,10 +43,19 @@ 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
|
*/
|
|
49
53
|
private viewUpdate?;
|
|
54
|
+
/**
|
|
55
|
+
* Method to return icon HTML on the view layer.
|
|
56
|
+
*/
|
|
57
|
+
private viewGetIconHTML?;
|
|
58
|
+
private defaultOptions;
|
|
50
59
|
/**
|
|
51
60
|
* Creates a new ApexChart.
|
|
52
61
|
* @param props ApexChart properties
|
|
@@ -57,9 +66,162 @@ export declare class ApexChart extends ComponentRender implements IApexChart {
|
|
|
57
66
|
* @param viewUpdate Update method
|
|
58
67
|
*/
|
|
59
68
|
setViewUpdate(viewUpdate: (options: any) => Promise<any>): void;
|
|
69
|
+
/**
|
|
70
|
+
* Sets view get icon HTML method.
|
|
71
|
+
* @param viewGetIconHTML Update method
|
|
72
|
+
*/
|
|
73
|
+
setViewGetIconHTML(viewGetIconHTML: (icon: string) => string): void;
|
|
60
74
|
/**
|
|
61
75
|
* Update the chart
|
|
62
76
|
* @param options New options
|
|
63
77
|
*/
|
|
64
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;
|
|
226
|
+
updateToolbarIcons(): any;
|
|
65
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
|
}
|
|
@@ -4,10 +4,6 @@ import { ComponentRender } from '../zd-component/component-render';
|
|
|
4
4
|
* Base class for Breadcrumbs component.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Breadcrumbs extends ComponentRender implements IBreadcrumbs {
|
|
7
|
-
/**
|
|
8
|
-
* Applies the dark theme variant to the component.
|
|
9
|
-
*/
|
|
10
|
-
dark: boolean;
|
|
11
7
|
/**
|
|
12
8
|
* Specifies the dividing string between items.
|
|
13
9
|
*/
|
|
@@ -24,10 +20,6 @@ export declare class Breadcrumbs extends ComponentRender implements IBreadcrumbs
|
|
|
24
20
|
* Increase the font-size of the breadcrumb item text to 16px.
|
|
25
21
|
*/
|
|
26
22
|
large: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Applies the light theme variant to the component.
|
|
29
|
-
*/
|
|
30
|
-
light: boolean;
|
|
31
23
|
/**
|
|
32
24
|
* Decrease the font-size of the breadcrumb item text to 12px.
|
|
33
25
|
*/
|
|
@@ -22,10 +22,6 @@ export declare class Button extends ComponentRender implements IButton {
|
|
|
22
22
|
* It can be the name of material or css color in hexa
|
|
23
23
|
*/
|
|
24
24
|
color: string;
|
|
25
|
-
/**
|
|
26
|
-
* Applies the dark theme variant to the button
|
|
27
|
-
*/
|
|
28
|
-
dark: boolean;
|
|
29
25
|
/**
|
|
30
26
|
* Removes the ability to click or target the button
|
|
31
27
|
*/
|
|
@@ -71,10 +67,6 @@ export declare class Button extends ComponentRender implements IButton {
|
|
|
71
67
|
* This should be used with the absolute or fixed props
|
|
72
68
|
*/
|
|
73
69
|
left: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Applies the light theme variant to the button
|
|
76
|
-
*/
|
|
77
|
-
light: boolean;
|
|
78
70
|
/**
|
|
79
71
|
* Makes the background transparent and applies a thin border
|
|
80
72
|
*/
|
|
@@ -8,7 +8,6 @@ export interface IButton extends IComponentRender {
|
|
|
8
8
|
block?: boolean;
|
|
9
9
|
bottom?: boolean;
|
|
10
10
|
color?: string;
|
|
11
|
-
dark?: boolean;
|
|
12
11
|
disabled?: boolean;
|
|
13
12
|
events?: IButtonEvents;
|
|
14
13
|
fab?: boolean;
|
|
@@ -20,7 +19,6 @@ export interface IButton extends IComponentRender {
|
|
|
20
19
|
label?: string;
|
|
21
20
|
large?: boolean;
|
|
22
21
|
left?: boolean;
|
|
23
|
-
light?: boolean;
|
|
24
22
|
outline?: boolean;
|
|
25
23
|
reverse?: boolean;
|
|
26
24
|
right?: boolean;
|
|
@@ -22,10 +22,6 @@ export declare class ButtonGroup extends ComponentRender implements IButtonGroup
|
|
|
22
22
|
* It can be the name of material or css color in hexa
|
|
23
23
|
*/
|
|
24
24
|
color: string;
|
|
25
|
-
/**
|
|
26
|
-
* Applies the dark theme variant to the component.
|
|
27
|
-
*/
|
|
28
|
-
dark: boolean;
|
|
29
25
|
/**
|
|
30
26
|
* Reduces the button size and padding.
|
|
31
27
|
*/
|
|
@@ -35,10 +31,6 @@ export declare class ButtonGroup extends ComponentRender implements IButtonGroup
|
|
|
35
31
|
* space between the buttons
|
|
36
32
|
*/
|
|
37
33
|
group: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Applies the light theme variant to the component.
|
|
40
|
-
*/
|
|
41
|
-
light: boolean;
|
|
42
34
|
/**
|
|
43
35
|
* Applies mandatory selected button
|
|
44
36
|
*/
|
|
@@ -11,11 +11,9 @@ export interface IButtonGroup extends IComponentRender {
|
|
|
11
11
|
backgroundColor?: string;
|
|
12
12
|
borderless?: boolean;
|
|
13
13
|
color?: string;
|
|
14
|
-
dark?: boolean;
|
|
15
14
|
dense?: boolean;
|
|
16
15
|
events?: IButtonGroupEvents;
|
|
17
16
|
group?: boolean;
|
|
18
|
-
light?: boolean;
|
|
19
17
|
mandatory?: boolean;
|
|
20
18
|
multiple?: boolean;
|
|
21
19
|
rounded?: boolean;
|
|
@@ -16,10 +16,6 @@ export declare class Card extends ComponentRender implements ICard {
|
|
|
16
16
|
* Applies specified color to the control. It can be the name of material color
|
|
17
17
|
*/
|
|
18
18
|
color: string;
|
|
19
|
-
/**
|
|
20
|
-
* Applies the dark theme variant to the component
|
|
21
|
-
*/
|
|
22
|
-
dark: boolean;
|
|
23
19
|
/**
|
|
24
20
|
* Removes the ability to click or target the component
|
|
25
21
|
*/
|
|
@@ -53,10 +49,6 @@ export declare class Card extends ComponentRender implements ICard {
|
|
|
53
49
|
* Specifies an image background for the card
|
|
54
50
|
*/
|
|
55
51
|
img: string;
|
|
56
|
-
/**
|
|
57
|
-
* Applies the light theme variant to the component
|
|
58
|
-
*/
|
|
59
|
-
light: boolean;
|
|
60
52
|
/**
|
|
61
53
|
* Designates that the card is a link
|
|
62
54
|
*/
|
|
@@ -9,14 +9,12 @@ export interface ICard extends IComponentRender {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
elevation?: number | string;
|
|
11
11
|
events?: ICardEvents;
|
|
12
|
-
dark?: boolean;
|
|
13
12
|
disabled?: boolean;
|
|
14
13
|
flat?: boolean;
|
|
15
14
|
height?: number | string;
|
|
16
15
|
hover?: boolean;
|
|
17
16
|
href?: string;
|
|
18
17
|
img?: string;
|
|
19
|
-
light?: boolean;
|
|
20
18
|
link?: boolean;
|
|
21
19
|
maxHeight?: number | string;
|
|
22
20
|
maxWidth?: number | string;
|
|
@@ -26,10 +26,6 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
26
26
|
* Current slide being displayed
|
|
27
27
|
*/
|
|
28
28
|
currentSlide: number;
|
|
29
|
-
/**
|
|
30
|
-
* Applies the dark theme variant to the carousel pagination
|
|
31
|
-
*/
|
|
32
|
-
dark: boolean;
|
|
33
29
|
/**
|
|
34
30
|
* Events registered to the carousel
|
|
35
31
|
*/
|
|
@@ -44,6 +40,16 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
44
40
|
* '30em', '400', 400. Values without measurement unit will be notated in pixels by default
|
|
45
41
|
*/
|
|
46
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;
|
|
47
53
|
/**
|
|
48
54
|
* Configures the carousel as infinite (the slide after the last one is the first slide, and vice-versa)
|
|
49
55
|
*/
|
|
@@ -60,10 +66,6 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
60
66
|
* Allows controlling the carousel using the keyboard arrow keys
|
|
61
67
|
*/
|
|
62
68
|
keysControl: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Applies the light theme variant to the carousel
|
|
65
|
-
*/
|
|
66
|
-
light: boolean;
|
|
67
69
|
/**
|
|
68
70
|
* Allows controlling the carousel using mouse drag
|
|
69
71
|
*/
|
|
@@ -18,13 +18,13 @@ export interface ICarousel extends IComponentRender {
|
|
|
18
18
|
buttonsOutside?: boolean;
|
|
19
19
|
center?: boolean;
|
|
20
20
|
currentSlide?: number;
|
|
21
|
-
dark?: boolean;
|
|
22
21
|
height?: number | string;
|
|
22
|
+
maxHeight?: number | string;
|
|
23
|
+
minHeight?: number | string;
|
|
23
24
|
infiniteScroll?: boolean;
|
|
24
25
|
initialSlide?: number;
|
|
25
26
|
interval?: number;
|
|
26
27
|
keysControl?: boolean;
|
|
27
|
-
light?: boolean;
|
|
28
28
|
mouseControl?: boolean;
|
|
29
29
|
nextButton?: IButton;
|
|
30
30
|
fractionPagination?: boolean;
|
|
@@ -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
|
|
@@ -34,6 +34,14 @@ export declare class Component implements IComponent {
|
|
|
34
34
|
* Defines component name.
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Applies the dark theme variant to the component.
|
|
39
|
+
*/
|
|
40
|
+
dark: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Applies the light theme variant to the component.
|
|
43
|
+
*/
|
|
44
|
+
light: boolean;
|
|
37
45
|
/**
|
|
38
46
|
* Parent component instance. This property should be used when is
|
|
39
47
|
* necessary create dynamic components.
|
|
@@ -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
|
*/
|
|
@@ -37,10 +37,6 @@ export declare class DateRange extends TextInput implements IDateRange {
|
|
|
37
37
|
* Sets the locale. Accepts a string with a BCP 47 language tag.
|
|
38
38
|
*/
|
|
39
39
|
locale?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Defines if dates should be ordered
|
|
42
|
-
*/
|
|
43
|
-
orderedDates: boolean;
|
|
44
40
|
/**
|
|
45
41
|
* Allows changing displayed month with mouse scroll
|
|
46
42
|
*/
|
|
@@ -91,8 +87,8 @@ export declare class DateRange extends TextInput implements IDateRange {
|
|
|
91
87
|
set isoRangeValue(newValue: string[]);
|
|
92
88
|
formatISODateRangeValue(dates: string[] | string): string[];
|
|
93
89
|
parseISODateRangeValue(values: string[]): any;
|
|
90
|
+
private sortDates;
|
|
94
91
|
dateValidation(): boolean | string;
|
|
95
|
-
dateValidateOrder(): boolean | string;
|
|
96
92
|
click(event: Event, element: HTMLElement): void;
|
|
97
93
|
blur(event: Event, element: HTMLElement): void;
|
|
98
94
|
focus(event: Event, element: HTMLElement): void;
|
|
@@ -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
|
*/
|
|
@@ -4,18 +4,10 @@ import { ComponentRender } from '../zd-component/component-render';
|
|
|
4
4
|
* Base class for Divider component.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Divider extends ComponentRender implements IDivider {
|
|
7
|
-
/**
|
|
8
|
-
* Applies the dark theme variant to the component.
|
|
9
|
-
*/
|
|
10
|
-
dark: boolean;
|
|
11
7
|
/**
|
|
12
8
|
* Adds indentation (72px) for normal dividers, reduces max height for vertical.
|
|
13
9
|
*/
|
|
14
10
|
inset: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Applies the light theme variant to the component.
|
|
17
|
-
*/
|
|
18
|
-
light: boolean;
|
|
19
11
|
/**
|
|
20
12
|
* Displays dividers vertically.
|
|
21
13
|
*/
|
|
@@ -3,8 +3,6 @@ import { Divider } from './divider';
|
|
|
3
3
|
import { IComponentRender } from '../zd-component/interfaces';
|
|
4
4
|
export declare type IDividerEvent = IEventParam<Divider>;
|
|
5
5
|
export interface IDivider extends IComponentRender {
|
|
6
|
-
dark?: boolean;
|
|
7
6
|
inset?: boolean;
|
|
8
|
-
light?: boolean;
|
|
9
7
|
vertical?: boolean;
|
|
10
8
|
}
|
|
@@ -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
|
*/
|