@drayman/elements 1.89.0 → 1.91.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/grid/main.js +1 -1
- package/dist/nebula/main.js +6 -6
- package/dist/ngx-graph/main.js +1 -1
- package/dist/types/code-editor/src/app/models/code-editor-options.d.ts +8 -0
- package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +84 -142
- package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requires the host environment to initialize Monaco on `window.monaco`
|
|
3
|
+
* before creating a `drayman-code-editor` element.
|
|
4
|
+
*/
|
|
1
5
|
export interface DraymanCodeEditor {
|
|
2
6
|
/**
|
|
3
7
|
* The language of the code editor.
|
|
@@ -22,6 +26,10 @@ export interface DraymanCodeEditor {
|
|
|
22
26
|
onValueChange?: ElementEvent<{
|
|
23
27
|
value: string;
|
|
24
28
|
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Executed when the browser-side editor is ready.
|
|
31
|
+
*/
|
|
32
|
+
onReady?: ElementEvent<{}>;
|
|
25
33
|
/**
|
|
26
34
|
* Label shown above the editor.
|
|
27
35
|
*/
|
|
@@ -1,16 +1,59 @@
|
|
|
1
|
+
export declare type DraymanNgxChartType = 'pie' | 'advancedPie' | 'pieGrid' | 'verticalBar' | 'horizontalBar' | 'verticalBarGrouped' | 'horizontalBarGrouped' | 'verticalBarStacked' | 'horizontalBarStacked' | 'verticalBarNormalized' | 'horizontalBarNormalized' | 'numberCard' | 'gauge' | 'linearGauge' | 'area' | 'areaNormalized' | 'areaStacked' | 'line' | 'bubble' | 'heatMap' | 'treeMap' | 'polarRadar';
|
|
2
|
+
export interface DraymanNgxChartDataItem {
|
|
3
|
+
name: string | number | Date;
|
|
4
|
+
value: number;
|
|
5
|
+
extra?: any;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DraymanNgxChartBubbleDataItem {
|
|
10
|
+
name: string | number | Date;
|
|
11
|
+
x: number | Date;
|
|
12
|
+
y: number | Date;
|
|
13
|
+
r: number;
|
|
14
|
+
extra?: any;
|
|
15
|
+
}
|
|
16
|
+
export interface DraymanNgxChartSeries {
|
|
17
|
+
name: string | number;
|
|
18
|
+
series: Array<DraymanNgxChartDataItem | DraymanNgxChartBubbleDataItem>;
|
|
19
|
+
}
|
|
1
20
|
export interface DraymanNgxCharts {
|
|
2
21
|
/**
|
|
3
|
-
* Executed when
|
|
4
|
-
* Emits data defined by `onSelect` output of [ngx-charts](https://github.com/swimlane/ngx-charts) library.
|
|
22
|
+
* Executed when a chart data point is selected.
|
|
5
23
|
*/
|
|
6
24
|
onSelect?: ElementEvent<{
|
|
7
25
|
data: any;
|
|
8
26
|
}>;
|
|
9
|
-
type: 'pie' | 'verticalBar' | 'verticalBarStacked' | 'numberCard' | 'gauge' | 'areaNormalized' | 'areaStacked' | 'line';
|
|
10
27
|
/**
|
|
11
|
-
*
|
|
28
|
+
* Executed when the pointer enters a chart data point.
|
|
29
|
+
*/
|
|
30
|
+
onActivate?: ElementEvent<{
|
|
31
|
+
data: any;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Executed when the pointer leaves a chart data point.
|
|
35
|
+
*/
|
|
36
|
+
onDeactivate?: ElementEvent<{
|
|
37
|
+
data: any;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Executed when a pie slice is double-clicked.
|
|
41
|
+
*/
|
|
42
|
+
onDblClick?: ElementEvent<{
|
|
43
|
+
data: any;
|
|
44
|
+
}>;
|
|
45
|
+
type: DraymanNgxChartType;
|
|
46
|
+
/**
|
|
47
|
+
* Chart data. Most charts accept either a single series of `{ name, value }`
|
|
48
|
+
* items or a multi-series array of `{ name, series }` items. Bubble charts
|
|
49
|
+
* use `{ name, x, y, r }` points. Linear gauges use `value` instead.
|
|
12
50
|
*/
|
|
13
|
-
results
|
|
51
|
+
results?: any[];
|
|
52
|
+
/**
|
|
53
|
+
* Fixed chart dimensions `[width, height]`. When omitted, the chart fills
|
|
54
|
+
* its parent container.
|
|
55
|
+
*/
|
|
56
|
+
view?: [number, number];
|
|
14
57
|
legendTitle?: string;
|
|
15
58
|
/**
|
|
16
59
|
* Color scheme of the chart.
|
|
@@ -21,199 +64,98 @@ export interface DraymanNgxCharts {
|
|
|
21
64
|
*/
|
|
22
65
|
animations?: boolean;
|
|
23
66
|
/**
|
|
24
|
-
* Show or hide legend.
|
|
67
|
+
* Show or hide the legend.
|
|
25
68
|
*/
|
|
26
69
|
legend?: boolean;
|
|
27
70
|
/**
|
|
28
|
-
* Show or hide
|
|
71
|
+
* Show or hide pie labels.
|
|
29
72
|
*/
|
|
30
73
|
labels?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Custom colors for the chart. Used to override a color for a specific value.
|
|
33
|
-
*/
|
|
34
74
|
customColors?: any;
|
|
35
|
-
/**
|
|
36
|
-
* Color scale type.
|
|
37
|
-
*/
|
|
38
75
|
schemeType?: 'ordinal' | 'linear';
|
|
39
|
-
/**
|
|
40
|
-
* Make the radius of each slice proportional to it's value.
|
|
41
|
-
*/
|
|
42
76
|
explodeSlices?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Show doughnut instead of pie slices.
|
|
45
|
-
*/
|
|
46
77
|
doughnut?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Arc width, expressed as a fraction of outer radius.
|
|
49
|
-
*/
|
|
50
78
|
arcWidth?: number;
|
|
51
|
-
/**
|
|
52
|
-
* Fill elements with a gradient instead of a solid color.
|
|
53
|
-
*/
|
|
54
79
|
gradient?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Elements to highlight.
|
|
57
|
-
*/
|
|
58
80
|
activeEntries?: any[];
|
|
59
81
|
tooltipDisabled?: boolean;
|
|
82
|
+
tooltipText?: any;
|
|
60
83
|
trimLabels?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Maximum length of the labels. If `trimLabels` is `true`, labels over this length will be trimmed.
|
|
63
|
-
*/
|
|
64
84
|
maxLabelLength?: number;
|
|
65
|
-
/**
|
|
66
|
-
* Show or hide the x axis.
|
|
67
|
-
*/
|
|
68
85
|
xAxis?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Show or hide the y axis.
|
|
71
|
-
*/
|
|
72
86
|
yAxis?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Show or hide the x axis label.
|
|
75
|
-
*/
|
|
76
87
|
showXAxisLabel?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Show or hide the y axis label.
|
|
79
|
-
*/
|
|
80
88
|
showYAxisLabel?: boolean;
|
|
81
89
|
xAxisLabel?: string;
|
|
82
90
|
yAxisLabel?: string;
|
|
83
91
|
showGridLines?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Trim or don't trim ticks on the x axis.
|
|
86
|
-
*/
|
|
87
92
|
trimXAxisTicks?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Trim or don't trim ticks on the y axis.
|
|
90
|
-
*/
|
|
91
93
|
trimYAxisTicks?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Rotate x axis tick labels to prevent overlap.
|
|
94
|
-
*/
|
|
95
94
|
rotateXAxisTicks?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Maximum length of x axis tick labels when trimming is enabled.
|
|
98
|
-
*/
|
|
99
95
|
maxXAxisTickLength?: number;
|
|
100
|
-
/**
|
|
101
|
-
* Maximum length of y axis tick labels when trimming is enabled.
|
|
102
|
-
*/
|
|
103
96
|
maxYAxisTickLength?: number;
|
|
104
|
-
/**
|
|
105
|
-
* Custom x axis tick formatting function.
|
|
106
|
-
*/
|
|
107
97
|
xAxisTickFormatting?: any;
|
|
108
|
-
/**
|
|
109
|
-
* Custom y axis tick formatting function.
|
|
110
|
-
*/
|
|
111
98
|
yAxisTickFormatting?: any;
|
|
112
|
-
|
|
113
|
-
* Predefined list of x axis tick values.
|
|
114
|
-
*/
|
|
99
|
+
axisTickFormatting?: any;
|
|
115
100
|
xAxisTicks?: any[];
|
|
116
|
-
/**
|
|
117
|
-
* Predefined list of y axis tick values.
|
|
118
|
-
*/
|
|
119
101
|
yAxisTicks?: any[];
|
|
120
|
-
/**
|
|
121
|
-
* Padding between bars in `px`.
|
|
122
|
-
*/
|
|
123
102
|
barPadding?: number;
|
|
124
|
-
|
|
125
|
-
* Round domains for aligned gridlines.
|
|
126
|
-
*/
|
|
103
|
+
groupPadding?: number;
|
|
127
104
|
roundDomains?: boolean;
|
|
128
105
|
roundEdges?: boolean;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
106
|
+
noBarWhenZero?: boolean;
|
|
107
|
+
xScaleMax?: any;
|
|
108
|
+
xScaleMin?: any;
|
|
132
109
|
yScaleMax?: number;
|
|
133
|
-
/**
|
|
134
|
-
* Minimum value of the y axis (ignored if chart data contains a lower value)
|
|
135
|
-
*/
|
|
136
110
|
yScaleMin?: number;
|
|
137
|
-
/**
|
|
138
|
-
* Display value number next to the bar.
|
|
139
|
-
*/
|
|
140
111
|
showDataLabel?: boolean;
|
|
141
|
-
|
|
142
|
-
* Color of the card background, defaults to color based on value and scheme.
|
|
143
|
-
*/
|
|
112
|
+
dataLabelFormatting?: any;
|
|
144
113
|
cardColor?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Color of the card color-bar, defaults to color based on value and scheme.
|
|
147
|
-
*/
|
|
148
114
|
bandColor?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Color of empty card slots.
|
|
151
|
-
*/
|
|
152
115
|
emptyColor?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Padding around each card in `px`.
|
|
155
|
-
*/
|
|
156
116
|
innerPadding?: number | number[];
|
|
157
|
-
/**
|
|
158
|
-
* Color of the card text, defaults to the inverse of the card color.
|
|
159
|
-
*/
|
|
160
117
|
textColor?: string;
|
|
161
118
|
legendPosition?: 'right' | 'below';
|
|
162
|
-
/**
|
|
163
|
-
* Starting point of the scale.
|
|
164
|
-
*/
|
|
165
119
|
min?: number;
|
|
166
|
-
/**
|
|
167
|
-
* Ending point of the scale.
|
|
168
|
-
*/
|
|
169
120
|
max?: number;
|
|
170
|
-
/**
|
|
171
|
-
* Text to display under the value.
|
|
172
|
-
*/
|
|
173
121
|
units?: string;
|
|
174
|
-
/**
|
|
175
|
-
* Number of big segments on the axis.
|
|
176
|
-
*/
|
|
177
122
|
bigSegments?: number;
|
|
178
|
-
/**
|
|
179
|
-
* Number of small segments between every big segment.
|
|
180
|
-
*/
|
|
181
123
|
smallSegments?: number;
|
|
182
124
|
showAxis?: boolean;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
125
|
+
showText?: boolean;
|
|
126
|
+
textValue?: string;
|
|
127
|
+
margin?: number[];
|
|
186
128
|
startAngle?: number;
|
|
187
|
-
/**
|
|
188
|
-
* The angle that the chart spans (in degrees).
|
|
189
|
-
*/
|
|
190
129
|
angleSpan?: number;
|
|
191
|
-
/**
|
|
192
|
-
* Display a timeline control under the chart. Only available if x scale is date.
|
|
193
|
-
*/
|
|
194
130
|
timeline?: boolean;
|
|
131
|
+
autoScale?: boolean;
|
|
132
|
+
rangeFillOpacity?: number;
|
|
133
|
+
showRefLines?: boolean;
|
|
134
|
+
referenceLines?: any[];
|
|
135
|
+
showRefLabels?: boolean;
|
|
195
136
|
/**
|
|
196
|
-
*
|
|
197
|
-
*/
|
|
198
|
-
xScaleMin?: any;
|
|
199
|
-
/**
|
|
200
|
-
* The maximum value of the x axis (if the x scale is linear or time).
|
|
201
|
-
*/
|
|
202
|
-
xScaleMax?: any;
|
|
203
|
-
/**
|
|
204
|
-
* Set the minimum value of the y axis to the minimum value in the data, instead of 0 (ignored if yScaleMin is defined).
|
|
137
|
+
* Baseline used by the standard area chart.
|
|
205
138
|
*/
|
|
206
|
-
|
|
139
|
+
baseValue?: number | 'auto';
|
|
207
140
|
/**
|
|
208
|
-
*
|
|
209
|
-
* The range shadow is only displayed if min and max values are provided with the data.
|
|
210
|
-
* The color of the shadow is alwas the color of the central line.
|
|
141
|
+
* Numeric value rendered by a linear gauge.
|
|
211
142
|
*/
|
|
212
|
-
|
|
213
|
-
showRefLines?: boolean;
|
|
143
|
+
value?: number;
|
|
214
144
|
/**
|
|
215
|
-
*
|
|
145
|
+
* Comparison marker rendered by a linear gauge.
|
|
216
146
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
147
|
+
previousValue?: number;
|
|
148
|
+
maxRadius?: number;
|
|
149
|
+
minRadius?: number;
|
|
150
|
+
label?: string;
|
|
151
|
+
minWidth?: number;
|
|
152
|
+
designatedTotal?: number;
|
|
153
|
+
valueFormatting?: any;
|
|
154
|
+
nameFormatting?: any;
|
|
155
|
+
percentageFormatting?: any;
|
|
156
|
+
labelFormatting?: any;
|
|
157
|
+
showSeriesOnHover?: boolean;
|
|
158
|
+
yAxisMinScale?: number;
|
|
159
|
+
labelTrim?: boolean;
|
|
160
|
+
labelTrimSize?: number;
|
|
219
161
|
}
|
|
@@ -27,6 +27,10 @@ export interface DraymanNgxGraph {
|
|
|
27
27
|
* Automatically zoom the graph to fit in the avialable viewport when the graph is updated.
|
|
28
28
|
*/
|
|
29
29
|
autoZoom?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Focus the first node at left center, then retain position and zoom instead of autoCenter/autoZoom.
|
|
32
|
+
*/
|
|
33
|
+
preserveView?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Executed when user clicks on a node.
|
|
32
36
|
*/
|