@zeedhi/common 1.40.0 → 1.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/zd-common.esm.js +569 -43
  2. package/dist/zd-common.umd.js +572 -45
  3. package/package.json +2 -2
  4. package/types/components/index.d.ts +2 -0
  5. package/types/components/zd-apex-chart/apex-chart.d.ts +163 -1
  6. package/types/components/zd-apex-chart/interfaces.d.ts +35 -3
  7. package/types/components/zd-carousel/carousel.d.ts +10 -0
  8. package/types/components/zd-carousel/interfaces.d.ts +2 -0
  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-container/container.d.ts +12 -0
  12. package/types/components/zd-container/interfaces.d.ts +3 -0
  13. package/types/components/zd-date/date-range.d.ts +1 -5
  14. package/types/components/zd-dialog/dialog.d.ts +11 -0
  15. package/types/components/zd-dialog/interfaces.d.ts +2 -0
  16. package/types/components/zd-dropdown/dropdown.d.ts +4 -0
  17. package/types/components/zd-dropdown/interfaces.d.ts +1 -0
  18. package/types/components/zd-form/form.d.ts +4 -0
  19. package/types/components/zd-form/interfaces.d.ts +1 -0
  20. package/types/components/zd-frame/frame.d.ts +4 -0
  21. package/types/components/zd-frame/interfaces.d.ts +3 -0
  22. package/types/components/zd-grid/grid-editable.d.ts +11 -1
  23. package/types/components/zd-list/interfaces.d.ts +3 -0
  24. package/types/components/zd-list/list.d.ts +12 -0
  25. package/types/components/zd-selectable-list/interfaces.d.ts +8 -0
  26. package/types/components/zd-selectable-list/selectable-list.d.ts +29 -0
  27. package/types/components/zd-tabs/interfaces.d.ts +1 -0
  28. package/types/components/zd-tabs/tabs.d.ts +14 -0
  29. package/types/components/zd-tree-grid/tree-grid-editable.d.ts +3 -0
  30. 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.40.0",
3
+ "version": "1.43.1",
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": "3dd3bf4a5646a8b7f6b7813b16ca0fbed39c98a8"
40
+ "gitHead": "dea0dcc3bb44548e97613b82580964acdc07411d"
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 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
  }
@@ -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
@@ -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
  }
@@ -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
  }
@@ -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,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;
@@ -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
  */
@@ -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
  /**
@@ -20,6 +23,7 @@ export declare class Frame extends ComponentRender implements IFrame {
20
23
  */
21
24
  constructor(props: IFrame);
22
25
  private getMetadata;
26
+ reload(): Promise<void>;
23
27
  protected notFoundError(): void;
24
28
  private requestPage;
25
29
  /**
@@ -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
  }
@@ -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<any[]>;
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
@@ -12,6 +12,9 @@ export interface IList extends IComponentRender {
12
12
  color?: string;
13
13
  elevation?: number | string;
14
14
  expand?: boolean;
15
+ height?: number | string;
16
+ maxHeight?: number | string;
17
+ minHeight?: number | string;
15
18
  }
16
19
  /**
17
20
  * Interface for list itens
@@ -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
@@ -0,0 +1,8 @@
1
+ import { IList } from '../zd-list/interfaces';
2
+ export interface ISelectableList extends IList {
3
+ activeClass?: string;
4
+ mandatory?: boolean;
5
+ max?: number;
6
+ multiple?: boolean;
7
+ value?: any;
8
+ }
@@ -0,0 +1,29 @@
1
+ import { ISelectableList } from './interfaces';
2
+ import { List } from '../zd-list/list';
3
+ /**
4
+ * Base class for SelectableList component.
5
+ */
6
+ export declare class SelectableList extends List implements ISelectableList {
7
+ /**
8
+ * Applies specified css class to the selected item
9
+ */
10
+ activeClass?: string;
11
+ /**
12
+ * Specifies whether at least one element must be selected
13
+ */
14
+ mandatory: boolean;
15
+ /**
16
+ * Defines the maximum number of elements the list has
17
+ */
18
+ max?: number;
19
+ /**
20
+ * Defines how many elements of the list can be selected at the same time
21
+ */
22
+ multiple?: boolean;
23
+ /**
24
+ * Sets the active list-item inside the list-group
25
+ */
26
+ value?: any;
27
+ constructor(props: ISelectableList);
28
+ change(event?: Event, element?: HTMLElement): void;
29
+ }
@@ -17,4 +17,5 @@ export interface ITab extends IComponent {
17
17
  export interface ITabs extends IComponentRender {
18
18
  activeTab?: number;
19
19
  tabs?: ITab[];
20
+ height?: number | string;
20
21
  }
@@ -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
@@ -26,7 +26,10 @@ export declare class TreeGridEditable extends TreeGrid implements ITreeGridEdita
26
26
  * Enter edit mode on double click
27
27
  */
28
28
  doubleClickEdit: boolean;
29
+ protected cancelEditedRowsKeyMapping: any;
29
30
  constructor(props: ITreeGridEditable);
31
+ onMounted(element: HTMLElement): void;
32
+ onBeforeDestroy(): void;
30
33
  /**
31
34
  * Get Grid columns objects
32
35
  * @param columns Grid columns parameter
@@ -32,10 +32,14 @@ declare const initTheme: (theme?: any) => {
32
32
  light: {
33
33
  'font-color': string;
34
34
  'background-base': string;
35
+ 'scrollbar-track': string;
36
+ 'scrollbar-thumb': string;
35
37
  };
36
38
  dark: {
37
39
  'font-color': string;
38
40
  'background-base': string;
41
+ 'scrollbar-track': string;
42
+ 'scrollbar-thumb': string;
39
43
  };
40
44
  variables: {
41
45
  'default-padding': string;