dhx-suite 7.3.13 → 8.0.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/codebase/suite.min.css +1 -1
- package/codebase/suite.min.js +3 -3
- package/codebase/types/ts-all/sources/entry.d.ts +1 -1
- package/codebase/types/ts-chart/index.d.ts +1 -0
- package/codebase/types/ts-chart/sources/Chart.d.ts +8 -6
- package/codebase/types/ts-chart/sources/Export.d.ts +10 -0
- package/codebase/types/ts-chart/sources/Legend.d.ts +1 -0
- package/codebase/types/ts-chart/sources/ProChart.d.ts +7 -0
- package/codebase/types/ts-chart/sources/series/CalendarHeatMap.d.ts +20 -0
- package/codebase/types/ts-chart/sources/series/index.d.ts +2 -0
- package/codebase/types/ts-chart/sources/shapes/legend.d.ts +1 -0
- package/codebase/types/ts-chart/sources/types.d.ts +42 -10
- package/codebase/types/ts-colorpicker/sources/types.d.ts +2 -0
- package/codebase/types/ts-combobox/sources/types.d.ts +2 -0
- package/codebase/types/ts-common/dom.d.ts +2 -0
- package/codebase/types/ts-common/html.d.ts +2 -0
- package/codebase/types/ts-common/types.d.ts +1 -0
- package/codebase/types/ts-data/sources/types.d.ts +8 -4
- package/codebase/types/ts-form/sources/Form.d.ts +1 -1
- package/codebase/types/ts-form/sources/ProForm.d.ts +1 -2
- package/codebase/types/ts-form/sources/elements/checkbox.d.ts +1 -0
- package/codebase/types/ts-form/sources/elements/checkboxGroup.d.ts +6 -6
- package/codebase/types/ts-form/sources/elements/radioGroup.d.ts +6 -6
- package/codebase/types/ts-form/sources/elements/radiobutton.d.ts +9 -1
- package/codebase/types/ts-form/sources/elements/select.d.ts +3 -3
- package/codebase/types/ts-form/sources/elements/sliderform.d.ts +0 -1
- package/codebase/types/ts-form/sources/elements/textarea.d.ts +0 -1
- package/codebase/types/ts-form/sources/elements/timeinput.d.ts +1 -0
- package/codebase/types/ts-form/sources/helper.d.ts +1 -1
- package/codebase/types/ts-form/sources/types.d.ts +55 -36
- package/codebase/types/ts-grid/sources/Grid.d.ts +4 -5
- package/codebase/types/ts-grid/sources/ProGrid.d.ts +1 -0
- package/codebase/types/ts-grid/sources/Selection.d.ts +5 -1
- package/codebase/types/ts-grid/sources/types.d.ts +51 -5
- package/codebase/types/ts-grid/sources/ui/Cells.d.ts +10 -10
- package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +3 -3
- package/codebase/types/ts-grid/sources/ui/FixedRows.d.ts +2 -2
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +21 -0
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +22 -0
- package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +20 -0
- package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +16 -0
- package/codebase/types/ts-grid/sources/ui/render.d.ts +4 -1
- package/codebase/types/ts-layout/sources/Cell.d.ts +10 -0
- package/codebase/types/ts-layout/sources/Layout.d.ts +3 -0
- package/codebase/types/ts-layout/sources/types.d.ts +5 -0
- package/codebase/types/ts-message/sources/message.d.ts +3 -1
- package/codebase/types/ts-navbar/sources/types.d.ts +16 -0
- package/codebase/types/ts-popup/sources/Popup.d.ts +1 -0
- package/codebase/types/ts-popup/sources/types.d.ts +2 -0
- package/codebase/types/ts-slider/sources/types.d.ts +2 -0
- package/codebase/types/ts-tabbar/sources/Tabbar.d.ts +1 -0
- package/codebase/types/ts-timepicker/sources/Timepicker.d.ts +3 -1
- package/codebase/types/ts-timepicker/sources/types.d.ts +2 -0
- package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +1 -0
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +160 -0
- package/codebase/types/ts-form/sources/elements/proCombo.d.ts +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../styles/suite.scss";
|
|
2
2
|
export { cssManager } from "../../ts-common/CssManager";
|
|
3
3
|
export { EventSystem } from "../../ts-common/events";
|
|
4
|
-
export { awaitRedraw, resizeHandler } from "../../ts-common/dom";
|
|
4
|
+
export { awaitRedraw, resizeHandler, setTheme } from "../../ts-common/dom";
|
|
5
5
|
export { Uploader } from "../../ts-vault";
|
|
6
6
|
export { DataCollection, TreeCollection, DataProxy, dataDrivers, ajax } from "../../ts-data";
|
|
7
7
|
export { Layout } from "../../ts-layout";
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { IEventSystem } from "../../ts-common/events";
|
|
2
2
|
import { View } from "../../ts-common/view";
|
|
3
3
|
import { DataCollection, DataEvents, TreeCollection } from "../../ts-data";
|
|
4
|
-
import { ChartEvents, IChart, IChartConfig, ISeria } from "./types";
|
|
4
|
+
import { ChartEvents, IChart, IChartConfig, IChartSeries, IComposeLayer, IScaleConfig, IScales, ISeria } from "./types";
|
|
5
|
+
import { Exporter } from "./Export";
|
|
5
6
|
export declare class Chart extends View implements IChart {
|
|
6
7
|
data: DataCollection | TreeCollection;
|
|
7
8
|
events: IEventSystem<DataEvents | ChartEvents>;
|
|
8
9
|
config: IChartConfig;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
export: Exporter;
|
|
11
|
+
protected _layers: IComposeLayer;
|
|
12
|
+
protected _series: IChartSeries;
|
|
13
|
+
protected _scales: IScales;
|
|
12
14
|
private _tooltip;
|
|
13
15
|
private _globalHTMLHandlers;
|
|
14
16
|
private _width;
|
|
@@ -20,7 +22,7 @@ export declare class Chart extends View implements IChart {
|
|
|
20
22
|
eachSeries(handler: (serie: ISeria) => any): any[];
|
|
21
23
|
destructor(): void;
|
|
22
24
|
setConfig(config: IChartConfig): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
protected _setScale(config: IScaleConfig, position: string): void;
|
|
26
|
+
protected _detectScaleType(config: any, key: any): any;
|
|
25
27
|
private _initEvents;
|
|
26
28
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View } from "../../ts-common/view";
|
|
2
|
+
export declare class Exporter {
|
|
3
|
+
private _name;
|
|
4
|
+
private _view;
|
|
5
|
+
private _version;
|
|
6
|
+
constructor(_name: string, _view: View);
|
|
7
|
+
pdf(config: any): void;
|
|
8
|
+
png(config: any): void;
|
|
9
|
+
protected _rawExport(config: any, mode: string, view: View): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Chart } from "./Chart";
|
|
2
|
+
import { IChartConfig } from "./types";
|
|
3
|
+
export declare class ProChart extends Chart implements IChartConfig {
|
|
4
|
+
config: IChartConfig;
|
|
5
|
+
constructor(node: HTMLElement | string, config?: IChartConfig);
|
|
6
|
+
setConfig(config: IChartConfig): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IFitPosition } from "../../../ts-common/html";
|
|
2
|
+
import { DataCollection } from "../../../ts-data";
|
|
3
|
+
import { ICalendarHeatMapConfig, PointData, SvgElement } from "../types";
|
|
4
|
+
import BaseSeria from "./BaseSeria";
|
|
5
|
+
export default class CalendarHeatMap extends BaseSeria {
|
|
6
|
+
config: ICalendarHeatMapConfig;
|
|
7
|
+
protected _data: DataCollection;
|
|
8
|
+
private _headerHeight;
|
|
9
|
+
private _dateLocator;
|
|
10
|
+
private _valueLocator;
|
|
11
|
+
private _cellSize;
|
|
12
|
+
private _years;
|
|
13
|
+
private _maxValue;
|
|
14
|
+
private _minValue;
|
|
15
|
+
scaleReady(sizes: IFitPosition): IFitPosition;
|
|
16
|
+
dataReady(): PointData[];
|
|
17
|
+
paint(width: number, height: number): SvgElement;
|
|
18
|
+
protected _setDefaults(config: ICalendarHeatMapConfig): void;
|
|
19
|
+
protected _defaultLocator(v: any): any[];
|
|
20
|
+
}
|
|
@@ -10,6 +10,7 @@ import scatter from "./Scatter";
|
|
|
10
10
|
import spline from "./Spline";
|
|
11
11
|
import splineArea from "./SplineArea";
|
|
12
12
|
import treeMap from "./TreeMap";
|
|
13
|
+
import calendarHeatMap from "./CalendarHeatMap";
|
|
13
14
|
declare const seriesTypes: {
|
|
14
15
|
line: typeof line;
|
|
15
16
|
spline: typeof spline;
|
|
@@ -23,5 +24,6 @@ declare const seriesTypes: {
|
|
|
23
24
|
bar: typeof bar;
|
|
24
25
|
xbar: typeof xbar;
|
|
25
26
|
treeMap: typeof treeMap;
|
|
27
|
+
calendarHeatMap: typeof calendarHeatMap;
|
|
26
28
|
};
|
|
27
29
|
export default seriesTypes;
|
|
@@ -10,7 +10,7 @@ export interface IChart {
|
|
|
10
10
|
getSeries(id: string): ISeria;
|
|
11
11
|
}
|
|
12
12
|
export interface IChartConfig {
|
|
13
|
-
type?:
|
|
13
|
+
type?: TChartType;
|
|
14
14
|
css?: string;
|
|
15
15
|
barWidth?: number;
|
|
16
16
|
scales?: IScalesConfig;
|
|
@@ -18,8 +18,9 @@ export interface IChartConfig {
|
|
|
18
18
|
series?: SeriaConfig[];
|
|
19
19
|
maxPoints?: number;
|
|
20
20
|
data?: DataCollection<any> | any[];
|
|
21
|
+
exportStyles?: boolean | string[];
|
|
21
22
|
}
|
|
22
|
-
export declare type
|
|
23
|
+
export declare type TChartType = "bar" | "line" | "spline" | "scatter" | "area" | "donut" | "pie" | "pie3D" | "radar" | "xbar" | "splineArea" | "treeMap" | "calendarHeatMap";
|
|
23
24
|
export declare enum ChartEvents {
|
|
24
25
|
toggleSeries = "toggleSeries",
|
|
25
26
|
chartMouseMove = "chartMouseMove",
|
|
@@ -56,7 +57,7 @@ export interface ISeria extends ILikeSeria {
|
|
|
56
57
|
export declare type TreeDirectionType = "asc" | "desc";
|
|
57
58
|
export interface ISeriaConfig {
|
|
58
59
|
id?: string;
|
|
59
|
-
type?:
|
|
60
|
+
type?: TChartType;
|
|
60
61
|
active?: boolean;
|
|
61
62
|
pointColor?: string;
|
|
62
63
|
dashed?: boolean;
|
|
@@ -119,10 +120,10 @@ export interface IScales {
|
|
|
119
120
|
radial?: IScale;
|
|
120
121
|
}
|
|
121
122
|
export interface IScalesConfig {
|
|
122
|
-
left?: IScaleConfig;
|
|
123
|
-
right?: IScaleConfig;
|
|
124
|
-
top?: IScaleConfig;
|
|
125
|
-
bottom?: IScaleConfig;
|
|
123
|
+
left?: IScaleConfig | boolean;
|
|
124
|
+
right?: IScaleConfig | boolean;
|
|
125
|
+
top?: IScaleConfig | boolean;
|
|
126
|
+
bottom?: IScaleConfig | boolean;
|
|
126
127
|
radial?: IRadialScaleConfig;
|
|
127
128
|
}
|
|
128
129
|
export interface ILegendConfig {
|
|
@@ -131,6 +132,15 @@ export interface ILegendConfig {
|
|
|
131
132
|
text: SmartLocator;
|
|
132
133
|
color: SmartLocator;
|
|
133
134
|
alpha?: SmartLocator;
|
|
135
|
+
positiveColor?: SmartLocator;
|
|
136
|
+
negativeColor?: SmartLocator;
|
|
137
|
+
minValue?: number;
|
|
138
|
+
maxValue?: number;
|
|
139
|
+
value?: string;
|
|
140
|
+
step?: number;
|
|
141
|
+
tick?: number;
|
|
142
|
+
majorTick?: number;
|
|
143
|
+
tickTemplate?: <T>(value: T) => string;
|
|
134
144
|
};
|
|
135
145
|
size?: number;
|
|
136
146
|
form?: Shape;
|
|
@@ -162,6 +172,14 @@ export interface ILegendDrawData {
|
|
|
162
172
|
fill: string;
|
|
163
173
|
active?: boolean;
|
|
164
174
|
color?: string;
|
|
175
|
+
minValue?: number;
|
|
176
|
+
maxValue?: number;
|
|
177
|
+
negativeColor?: string;
|
|
178
|
+
positiveColor?: string;
|
|
179
|
+
step?: number;
|
|
180
|
+
tick?: number;
|
|
181
|
+
majorTick?: number;
|
|
182
|
+
tickTemplate?: <T>(value: T) => string;
|
|
165
183
|
}
|
|
166
184
|
export interface IComposable {
|
|
167
185
|
paint(width: number, height: number, prev?: PointData[]): object;
|
|
@@ -197,6 +215,20 @@ export interface ITreeMapConfig extends ISeriaConfig {
|
|
|
197
215
|
paddings?: number;
|
|
198
216
|
text?: string;
|
|
199
217
|
}
|
|
218
|
+
export interface ICalendarHeatMapConfig extends ISeriaConfig {
|
|
219
|
+
paddings?: number;
|
|
220
|
+
date?: string;
|
|
221
|
+
dateFormat?: string;
|
|
222
|
+
weekStart?: "saturday" | "sunday" | "monday";
|
|
223
|
+
positiveColor?: SmartLocator;
|
|
224
|
+
negativeColor?: SmartLocator;
|
|
225
|
+
minValue?: number;
|
|
226
|
+
maxValue?: number;
|
|
227
|
+
startDate?: string | Date;
|
|
228
|
+
endDate?: string | Date;
|
|
229
|
+
days?: string[];
|
|
230
|
+
months?: string[];
|
|
231
|
+
}
|
|
200
232
|
export interface IAxisCreatorConfig {
|
|
201
233
|
max?: number;
|
|
202
234
|
min?: number;
|
|
@@ -232,11 +264,11 @@ export declare type PointType = "circle" | "rect" | "triangle" | "rhombus" | "si
|
|
|
232
264
|
export declare type Gradient = (color: string) => any;
|
|
233
265
|
export declare type TooltipType = "simple" | "right" | "left" | "top" | "bot";
|
|
234
266
|
export declare type SvgElement = any;
|
|
235
|
-
export declare type Shape = "rect" | "circle";
|
|
267
|
+
export declare type Shape = "rect" | "circle" | "line";
|
|
236
268
|
export declare type HorizontalPosition = "left" | "center" | "right";
|
|
237
269
|
export declare type VerticalPosition = "top" | "middle" | "bottom";
|
|
238
270
|
export declare type LegendDirection = "row" | "column";
|
|
239
|
-
export declare type LegendType = "groupName" | "range";
|
|
271
|
+
export declare type LegendType = "groupName" | "range" | "scale";
|
|
240
272
|
export declare type LegendSizes = {
|
|
241
273
|
width: number;
|
|
242
274
|
height: number;
|
|
@@ -255,7 +287,7 @@ export declare type SmartLocator = Locator | string;
|
|
|
255
287
|
export interface IStacker extends IComposable, ILikeSeria {
|
|
256
288
|
add(seria: ISeria): void;
|
|
257
289
|
}
|
|
258
|
-
export declare type PointData = [number, number, string, number | string
|
|
290
|
+
export declare type PointData = [number, number, string, (number | string)?, number?, TreePointData?];
|
|
259
291
|
export declare type TreePointData = {
|
|
260
292
|
items: PointData[];
|
|
261
293
|
};
|
|
@@ -29,6 +29,7 @@ export interface IColorpickerConfig {
|
|
|
29
29
|
paletteOnly?: boolean;
|
|
30
30
|
}
|
|
31
31
|
export declare enum ColorpickerEvents {
|
|
32
|
+
beforeChange = "beforeChange",
|
|
32
33
|
change = "change",
|
|
33
34
|
apply = "apply",
|
|
34
35
|
cancelClick = "cancelClick",
|
|
@@ -42,6 +43,7 @@ export declare enum ColorpickerEvents {
|
|
|
42
43
|
}
|
|
43
44
|
export interface IEventHandlersMap {
|
|
44
45
|
[key: string]: (...args: any[]) => any;
|
|
46
|
+
[ColorpickerEvents.beforeChange]: (color: string) => boolean | void;
|
|
45
47
|
[ColorpickerEvents.change]: (color: string) => void;
|
|
46
48
|
[ColorpickerEvents.apply]: () => void;
|
|
47
49
|
[ColorpickerEvents.cancelClick]: () => void;
|
|
@@ -36,6 +36,7 @@ export interface IComboboxConfig {
|
|
|
36
36
|
readonly?: boolean;
|
|
37
37
|
}
|
|
38
38
|
export declare enum ComboboxEvents {
|
|
39
|
+
beforeChange = "beforeChange",
|
|
39
40
|
change = "change",
|
|
40
41
|
focus = "focus",
|
|
41
42
|
blur = "blur",
|
|
@@ -52,6 +53,7 @@ export declare enum ComboboxEvents {
|
|
|
52
53
|
}
|
|
53
54
|
export interface IComboboxEventHandlersMap {
|
|
54
55
|
[key: string]: (...args: any[]) => any;
|
|
56
|
+
[ComboboxEvents.beforeChange]: (ids: Id | Id[]) => boolean | void;
|
|
55
57
|
[ComboboxEvents.change]: (ids: Id | Id[]) => void;
|
|
56
58
|
[ComboboxEvents.focus]: () => void;
|
|
57
59
|
[ComboboxEvents.blur]: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TTheme } from "./types";
|
|
1
2
|
export declare const el: any;
|
|
2
3
|
export declare const sv: any;
|
|
3
4
|
export declare const view: any;
|
|
@@ -19,3 +20,4 @@ export interface IViewHash {
|
|
|
19
20
|
export declare function resizer(handler: any): any;
|
|
20
21
|
export declare function resizeHandler(container: any, handler: any): any;
|
|
21
22
|
export declare function awaitRedraw(): Promise<any>;
|
|
23
|
+
export declare function setTheme(theme: TTheme, container: string | HTMLElement): void;
|
|
@@ -2,6 +2,7 @@ import { IEventSystem } from "./events";
|
|
|
2
2
|
export interface IHandlers {
|
|
3
3
|
[key: string]: anyFunction | IHandlers;
|
|
4
4
|
}
|
|
5
|
+
export declare type TTheme = "light" | "dark" | "contrast-light" | "contrast-dark" | string;
|
|
5
6
|
export declare type Id = string | number;
|
|
6
7
|
export declare type fn<T extends any[], K> = (...args: T) => K;
|
|
7
8
|
export declare type anyFunction = fn<any[], any>;
|
|
@@ -57,7 +57,7 @@ export interface IDataConfig {
|
|
|
57
57
|
init?: anyFunction;
|
|
58
58
|
update?: anyFunction;
|
|
59
59
|
approximate?: IApproximate;
|
|
60
|
-
autoload?:
|
|
60
|
+
autoload?: string;
|
|
61
61
|
}
|
|
62
62
|
export interface IDataCollection<T extends IDataItem = IDataItem> {
|
|
63
63
|
config: IDataConfig;
|
|
@@ -209,11 +209,13 @@ export declare enum DataEvents {
|
|
|
209
209
|
beforeRemove = "beforeremove",
|
|
210
210
|
afterRemove = "afterremove",
|
|
211
211
|
change = "change",
|
|
212
|
+
dataRequest = "dataRequest",
|
|
212
213
|
load = "load",
|
|
213
214
|
loadError = "loaderror",
|
|
214
215
|
beforeLazyLoad = "beforelazyload",
|
|
215
216
|
afterLazyLoad = "afterlazyload",
|
|
216
|
-
|
|
217
|
+
beforeItemLoad = "beforeItemLoad",
|
|
218
|
+
afterItemLoad = "afterItemLoad"
|
|
217
219
|
}
|
|
218
220
|
export interface IDataEventsHandlersMap {
|
|
219
221
|
[key: string]: (...args: any[]) => any;
|
|
@@ -222,12 +224,14 @@ export interface IDataEventsHandlersMap {
|
|
|
222
224
|
[DataEvents.afterRemove]: (removedItem: any) => void;
|
|
223
225
|
[DataEvents.beforeAdd]: (newItem: any) => boolean | void;
|
|
224
226
|
[DataEvents.beforeRemove]: (removedItem: any) => boolean | void;
|
|
225
|
-
[DataEvents.load]: () => void;
|
|
226
227
|
[DataEvents.removeAll]: () => void;
|
|
228
|
+
[DataEvents.dataRequest]: (from: number, to: number) => void;
|
|
229
|
+
[DataEvents.load]: () => void;
|
|
227
230
|
[DataEvents.loadError]: (response: any) => void;
|
|
231
|
+
[DataEvents.beforeItemLoad]: (id: Id) => boolean | void;
|
|
232
|
+
[DataEvents.afterItemLoad]: (id: Id) => void;
|
|
228
233
|
[DataEvents.beforeLazyLoad]: () => boolean | void;
|
|
229
234
|
[DataEvents.afterLazyLoad]: (from: number, count: number) => void;
|
|
230
|
-
[DataEvents.dataRequest]: (from: number, to: number) => void;
|
|
231
235
|
}
|
|
232
236
|
export declare enum DragEvents {
|
|
233
237
|
beforeDrag = "beforeDrag",
|
|
@@ -41,12 +41,12 @@ export declare class Form extends View implements IForm {
|
|
|
41
41
|
destructor(): void;
|
|
42
42
|
getRootView(): any;
|
|
43
43
|
protected _addLayoutItem(item: IItemConfig): ICellConfig;
|
|
44
|
+
protected _initItemHandlers(item: IItemConfig, name: string): void;
|
|
44
45
|
protected _changeProps(name: any, props: any): void;
|
|
45
46
|
private _addLayoutItems;
|
|
46
47
|
private _checkLayoutConfig;
|
|
47
48
|
protected _createLayoutConfig(config: IFormConfig, layoutConfig: ILayoutConfig): void;
|
|
48
49
|
protected _initUI(container: HTMLElement | string): void;
|
|
49
|
-
private _initHandlers;
|
|
50
50
|
private _clear;
|
|
51
51
|
private _clearValidate;
|
|
52
52
|
private _formContainerShow;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Form } from "./Form";
|
|
2
2
|
import { IFormConfig, IItemConfig } from "./types";
|
|
3
|
-
import { ICellConfig } from "../../ts-layout";
|
|
4
3
|
export declare class ProForm extends Form {
|
|
5
4
|
constructor(container: HTMLElement | string, config: IFormConfig);
|
|
6
|
-
protected
|
|
5
|
+
protected _initItemHandlers(item: IItemConfig, name: string): void;
|
|
7
6
|
protected _initUI(container: HTMLElement | string): void;
|
|
8
7
|
}
|
|
@@ -22,12 +22,12 @@ export declare class CheckboxGroup extends Label implements ICheckboxGroup {
|
|
|
22
22
|
};
|
|
23
23
|
focus(id?: string): void;
|
|
24
24
|
blur(): void;
|
|
25
|
-
show(): void;
|
|
26
|
-
hide(init?: boolean): void;
|
|
27
|
-
isVisible(): boolean;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
isDisabled(): boolean;
|
|
25
|
+
show(id?: string): void;
|
|
26
|
+
hide(id?: string, init?: boolean): void;
|
|
27
|
+
isVisible(id?: string): boolean;
|
|
28
|
+
enable(id?: string): void;
|
|
29
|
+
disable(id?: string, init?: boolean): void;
|
|
30
|
+
isDisabled(id?: string): boolean;
|
|
31
31
|
clear(): void;
|
|
32
32
|
validate(silent?: boolean): boolean;
|
|
33
33
|
clearValidate(): void;
|
|
@@ -21,12 +21,12 @@ export declare class RadioGroup extends Label implements IRadioGroup {
|
|
|
21
21
|
setValue(value: string): void;
|
|
22
22
|
focus(id?: string): void;
|
|
23
23
|
blur(): void;
|
|
24
|
-
show(): void;
|
|
25
|
-
hide(init?: boolean): void;
|
|
26
|
-
isVisible(): boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
isDisabled(): boolean;
|
|
24
|
+
show(id?: string): void;
|
|
25
|
+
hide(id?: string, init?: boolean): void;
|
|
26
|
+
isVisible(id?: string): boolean;
|
|
27
|
+
enable(id?: string): void;
|
|
28
|
+
disable(id?: string, init?: boolean): void;
|
|
29
|
+
isDisabled(id?: string): boolean;
|
|
30
30
|
clear(): void;
|
|
31
31
|
validate(silent?: boolean): boolean;
|
|
32
32
|
clearValidate(): void;
|
|
@@ -2,10 +2,15 @@ import { IEventSystem } from "../../../ts-common/events";
|
|
|
2
2
|
import { View } from "../../../ts-common/view";
|
|
3
3
|
import { IRadioButtonConfig } from "../types";
|
|
4
4
|
export declare enum RadioButtonEvents {
|
|
5
|
+
beforeChange = "beforeChange",
|
|
5
6
|
change = "change",
|
|
6
7
|
focus = "focus",
|
|
7
8
|
blur = "blur",
|
|
8
|
-
keydown = "keydown"
|
|
9
|
+
keydown = "keydown",
|
|
10
|
+
beforeHide = "beforeHide",
|
|
11
|
+
afterHide = "afterHide",
|
|
12
|
+
beforeShow = "beforeShow",
|
|
13
|
+
afterShow = "afterShow"
|
|
9
14
|
}
|
|
10
15
|
export declare class RadioButton extends View {
|
|
11
16
|
config: IRadioButtonConfig;
|
|
@@ -19,6 +24,9 @@ export declare class RadioButton extends View {
|
|
|
19
24
|
getProperties(): {};
|
|
20
25
|
getValue(): string | void;
|
|
21
26
|
setValue(checked: boolean): void;
|
|
27
|
+
show(): void;
|
|
28
|
+
hide(): void;
|
|
29
|
+
isVisible(): boolean;
|
|
22
30
|
focus(): void;
|
|
23
31
|
blur(): void;
|
|
24
32
|
disable(): void;
|
|
@@ -14,9 +14,9 @@ export declare class Select extends Label implements ISelect {
|
|
|
14
14
|
show(): void;
|
|
15
15
|
hide(init?: boolean): void;
|
|
16
16
|
isVisible(): boolean;
|
|
17
|
-
disable(): void;
|
|
18
|
-
enable(): void;
|
|
19
|
-
isDisabled(): boolean;
|
|
17
|
+
disable(value?: string | number): void;
|
|
18
|
+
enable(value?: string | number): void;
|
|
19
|
+
isDisabled(value?: string | number): boolean;
|
|
20
20
|
validate(silent?: boolean): boolean;
|
|
21
21
|
clearValidate(): void;
|
|
22
22
|
clear(): void;
|
|
@@ -9,7 +9,6 @@ export declare class Textarea extends Input implements ITextArea {
|
|
|
9
9
|
events: IEventSystem<ItemEvent, ITextAreaEventHandlersMap>;
|
|
10
10
|
protected _propsItem: string[];
|
|
11
11
|
protected _props: string[];
|
|
12
|
-
setValue(value: string): void;
|
|
13
12
|
getValue(): string;
|
|
14
13
|
focus(): void;
|
|
15
14
|
blur(): void;
|
|
@@ -8,4 +8,4 @@ export declare function baseInputValidate(value: string | number, config: IInput
|
|
|
8
8
|
export declare function isTimeFormat(value: string, timeFormat?: number): boolean;
|
|
9
9
|
export declare function isVerify(config: any): boolean;
|
|
10
10
|
export declare const baseProps: string[];
|
|
11
|
-
export declare const widgetConfig: ({ width, type, id, name, hidden, editable,
|
|
11
|
+
export declare const widgetConfig: ({ width, type, id, name, hidden, editable, css, required, helpMessage, preMessage, successMessage, errorMessage, label, labelWidth, labelPosition, hiddenLabel, validation, icon, ...res }: any) => any;
|