@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.
Files changed (62) hide show
  1. package/dist/zd-common.esm.js +696 -83
  2. package/dist/zd-common.umd.js +695 -82
  3. package/package.json +2 -2
  4. package/types/components/zd-apex-chart/apex-chart.d.ts +152 -1
  5. package/types/components/zd-apex-chart/interfaces.d.ts +35 -3
  6. package/types/components/zd-button-group/button-group.d.ts +1 -1
  7. package/types/components/zd-carousel/carousel.d.ts +12 -2
  8. package/types/components/zd-carousel/interfaces.d.ts +3 -1
  9. package/types/components/zd-code-editor/code-editor.d.ts +5 -1
  10. package/types/components/zd-code-editor/interfaces.d.ts +2 -1
  11. package/types/components/zd-collapse-card/collapse-card.d.ts +1 -1
  12. package/types/components/zd-component/component.d.ts +5 -4
  13. package/types/components/zd-container/container.d.ts +12 -0
  14. package/types/components/zd-container/interfaces.d.ts +3 -0
  15. package/types/components/zd-dashboard/dashboard.d.ts +1 -1
  16. package/types/components/zd-date/date-range.d.ts +4 -4
  17. package/types/components/zd-date/date.d.ts +5 -5
  18. package/types/components/zd-dialog/dialog.d.ts +11 -0
  19. package/types/components/zd-dialog/interfaces.d.ts +2 -0
  20. package/types/components/zd-dropdown/dropdown.d.ts +4 -0
  21. package/types/components/zd-dropdown/interfaces.d.ts +1 -0
  22. package/types/components/zd-file-input/file-input.d.ts +3 -3
  23. package/types/components/zd-form/form.d.ts +6 -2
  24. package/types/components/zd-form/interfaces.d.ts +1 -0
  25. package/types/components/zd-frame/frame.d.ts +4 -1
  26. package/types/components/zd-frame/interfaces.d.ts +3 -0
  27. package/types/components/zd-grid/grid-editable.d.ts +16 -6
  28. package/types/components/zd-grid/grid.d.ts +5 -5
  29. package/types/components/zd-increment/increment.d.ts +2 -2
  30. package/types/components/zd-input/input.d.ts +6 -6
  31. package/types/components/zd-iterable/column.d.ts +2 -0
  32. package/types/components/zd-iterable/interfaces.d.ts +1 -0
  33. package/types/components/zd-iterable/iterable-page-component.d.ts +1 -1
  34. package/types/components/zd-iterable/iterable-page-size.d.ts +2 -2
  35. package/types/components/zd-iterable/iterable.d.ts +1 -1
  36. package/types/components/zd-list/interfaces.d.ts +3 -0
  37. package/types/components/zd-list/list.d.ts +12 -0
  38. package/types/components/zd-login/login-button.d.ts +1 -1
  39. package/types/components/zd-master-detail/master-detail.d.ts +1 -1
  40. package/types/components/zd-menu/menu-group.d.ts +8 -0
  41. package/types/components/zd-menu/menu-link.d.ts +5 -1
  42. package/types/components/zd-menu/menu.d.ts +3 -1
  43. package/types/components/zd-modal/interfaces.d.ts +2 -0
  44. package/types/components/zd-modal/modal.d.ts +8 -0
  45. package/types/components/zd-select/select.d.ts +5 -5
  46. package/types/components/zd-select-multiple/select-multiple.d.ts +2 -2
  47. package/types/components/zd-select-tree/select-tree.d.ts +6 -6
  48. package/types/components/zd-select-tree-multiple/interfaces.d.ts +1 -0
  49. package/types/components/zd-select-tree-multiple/select-tree-multiple.d.ts +6 -2
  50. package/types/components/zd-selectable-list/selectable-list.d.ts +1 -1
  51. package/types/components/zd-svg-map/svg-map.d.ts +1 -1
  52. package/types/components/zd-tabs/interfaces.d.ts +1 -0
  53. package/types/components/zd-tabs/tabs.d.ts +6 -2
  54. package/types/components/zd-text-input/text-input.d.ts +4 -4
  55. package/types/components/zd-time/time.d.ts +1 -1
  56. package/types/components/zd-tree/interfaces.d.ts +4 -0
  57. package/types/components/zd-tree/tree.d.ts +39 -11
  58. package/types/components/zd-tree-grid/tree-grid-editable.d.ts +8 -5
  59. package/types/components/zd-tree-grid/tree-grid.d.ts +2 -2
  60. package/types/services/zd-loading/loading-service.d.ts +7 -1
  61. package/types/utils/report/report-type/interfaces.d.ts +1 -0
  62. 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.42.0",
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": "1b3927e4fa74176f8c1dcfa909db8d89d39711e5"
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 IApexChartEvent = IEventParam<ApexChart>;
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
  }
@@ -71,5 +71,5 @@ export declare class ButtonGroup extends ComponentRender implements IButtonGroup
71
71
  * @param event DOM event
72
72
  * @param element Element clicked
73
73
  */
74
- change(event?: Event, element?: HTMLElement): void;
74
+ change(event?: Event, element?: any): void;
75
75
  }
@@ -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: HTMLElement, slideData: ISlideData, event?: Event): void;
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: HTMLElement, slideData: ISlideData, event?: Event): void;
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?: HTMLElement;
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
@@ -3,6 +3,7 @@ export interface ICodeEditor extends IComponentRender {
3
3
  staticCode?: object | string | string[];
4
4
  language?: string;
5
5
  showLineNumbers?: boolean | string;
6
- maxHeight?: string;
6
+ maxHeight?: string | number;
7
+ height?: string | number;
7
8
  copyIcon?: string;
8
9
  }
@@ -52,5 +52,5 @@ export declare class CollapseCard extends Card implements ICollapseCard {
52
52
  * @param event DOM event
53
53
  * @param element Element changed
54
54
  */
55
- change(event: Event, element: HTMLElement): void;
55
+ change(event: Event, element: any): void;
56
56
  }
@@ -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: HTMLElement): void;
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: Event, element: HTMLElement): void;
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: HTMLElement): void;
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: HTMLElement): void;
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
  */
@@ -2,4 +2,7 @@ import { IComponentRender } from '../zd-component/interfaces';
2
2
  export interface IContainer extends IComponentRender {
3
3
  fillHeight?: boolean;
4
4
  fluid?: boolean;
5
+ height?: number | string;
6
+ maxHeight?: number | string;
7
+ minHeight?: number | string;
5
8
  }
@@ -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: HTMLElement): void;
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: Event, element: HTMLElement): void;
93
- blur(event: Event, element: HTMLElement): void;
94
- focus(event: Event, element: HTMLElement): void;
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: HTMLElement): void;
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?: HTMLElement): void;
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: Event, element: HTMLElement): void;
102
- blur(event: Event, element: HTMLElement): void;
103
- focus(event: Event, element: HTMLElement): void;
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: HTMLElement): void;
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
  */
@@ -4,6 +4,8 @@ export interface IDialog extends IComponent {
4
4
  buttons?: IButton[];
5
5
  maxWidth?: string | number;
6
6
  persistent?: boolean;
7
+ confirmButton?: string;
8
+ denyButton?: string;
7
9
  text?: string;
8
10
  title?: string;
9
11
  type?: string;
@@ -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
  */
@@ -11,6 +11,7 @@ export interface IDropdown extends IComponentRender {
11
11
  cursor?: string;
12
12
  fixed?: boolean;
13
13
  hover?: boolean;
14
+ height?: number | string;
14
15
  maxHeight?: number | string;
15
16
  maxWidth?: number | string;
16
17
  minHeight?: number | string;
@@ -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?: HTMLElement): void;
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 HTMLElement
85
+ * @param element any
86
86
  */
87
- chipClick(event: Event, index: number, element?: HTMLElement): void;
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: HTMLElement): void;
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: HTMLElement): void;
114
+ onMounted(element: any): void;
111
115
  submit(): void;
112
116
  /**
113
117
  * Reset all form validation errors.
@@ -22,6 +22,7 @@ export interface IFormComponent extends IComponentRender {
22
22
  export interface IForm extends IComponentRender {
23
23
  align?: string;
24
24
  justify?: string;
25
+ height?: number | string;
25
26
  children?: IFormComponent[];
26
27
  events?: IFormEvents;
27
28
  }
@@ -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?: HTMLElement): void;
34
+ afterLoad(event?: Event, element?: any): void;
32
35
  /**
33
36
  * Checks if cache response is valid (not expired yet)
34
37
  * @param response
@@ -11,4 +11,7 @@ export interface IFrame extends IComponentRender {
11
11
  override?: Object;
12
12
  cache?: boolean;
13
13
  cacheDuration?: number;
14
+ height?: number | string;
15
+ maxHeight?: number | string;
16
+ minHeight?: number | string;
14
17
  }