@undp/data-viz 2.2.0 → 2.2.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.
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +8 -9
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -3162
- package/dist/index.js +112 -130
- package/dist/index.js.map +1 -1
- package/package.json +4 -16
- package/dist/getSchema.cjs +0 -2
- package/dist/getSchema.cjs.map +0 -1
- package/dist/getSchema.d.ts +0 -3258
- package/dist/getSchema.js +0 -1137
- package/dist/getSchema.js.map +0 -1
- package/dist/validateSchema.cjs +0 -2
- package/dist/validateSchema.cjs.map +0 -1
- package/dist/validateSchema.d.ts +0 -66
- package/dist/validateSchema.js +0 -109
- package/dist/validateSchema.js.map +0 -1
package/dist/getSchema.js
DELETED
|
@@ -1,1137 +0,0 @@
|
|
|
1
|
-
import { g as i } from "./getGraphList-Bpd3PVmF.js";
|
|
2
|
-
const y = "https://raw.githubusercontent.com/UNDP-Data/undp-viz-library-schemas/refs/heads/main/";
|
|
3
|
-
function S(e) {
|
|
4
|
-
if (i.filter((t) => t.geoHubMapPresentation).map((t) => t.graphID).indexOf(e) !== -1) return null;
|
|
5
|
-
switch (e) {
|
|
6
|
-
case "dataTable":
|
|
7
|
-
return "dataSchema/dataTableDataSchema.json";
|
|
8
|
-
case "dataCards":
|
|
9
|
-
return "dataSchema/dataTableDataSchema.json";
|
|
10
|
-
case "barChart":
|
|
11
|
-
return "dataSchema/barGraphDataSchema.json";
|
|
12
|
-
case "stackedBarChart":
|
|
13
|
-
return "dataSchema/stackedBarGraphDataSchema.json";
|
|
14
|
-
case "groupedBarChart":
|
|
15
|
-
return "dataSchema/groupedBarGraphDataSchema.json";
|
|
16
|
-
case "lineChart":
|
|
17
|
-
return "dataSchema/lineChartDataSchema.json";
|
|
18
|
-
case "dualAxisLineChart":
|
|
19
|
-
return "dataSchema/dualAxisLineChartDataSchema.json";
|
|
20
|
-
case "differenceLineChart":
|
|
21
|
-
return "dataSchema/differenceLineChartDataSchema.json";
|
|
22
|
-
case "multiLineChart":
|
|
23
|
-
return "dataSchema/multiLineChartDataSchema.json";
|
|
24
|
-
case "multiLineAltChart":
|
|
25
|
-
return "dataSchema/multiLineAltChartDataSchema.json";
|
|
26
|
-
case "stackedAreaChart":
|
|
27
|
-
return "dataSchema/areaChartDataSchema.json";
|
|
28
|
-
case "choroplethMap":
|
|
29
|
-
return "dataSchema/choroplethMapDataSchema.json";
|
|
30
|
-
case "threeDGlobe":
|
|
31
|
-
return "dataSchema/choroplethMapDataSchema.json";
|
|
32
|
-
case "bulletChart":
|
|
33
|
-
return "dataSchema/bulletChartDataSchema.json";
|
|
34
|
-
case "biVariateChoroplethMap":
|
|
35
|
-
return "dataSchema/biVariateChoroplethMapDataSchema.json";
|
|
36
|
-
case "dotDensityMap":
|
|
37
|
-
return "dataSchema/dotDensityMapDataSchema.json";
|
|
38
|
-
case "donutChart":
|
|
39
|
-
return "dataSchema/donutChartDataSchema.json";
|
|
40
|
-
case "slopeChart":
|
|
41
|
-
return "dataSchema/slopeChartDataSchema.json";
|
|
42
|
-
case "scatterPlot":
|
|
43
|
-
return "dataSchema/scatterPlotDataSchema.json";
|
|
44
|
-
case "dumbbellChart":
|
|
45
|
-
return "dataSchema/dumbbellChartDataSchema.json";
|
|
46
|
-
case "treeMap":
|
|
47
|
-
return "dataSchema/treeMapDataSchema.json";
|
|
48
|
-
case "circlePacking":
|
|
49
|
-
return "dataSchema/circlePackingDataSchema.json";
|
|
50
|
-
case "heatMap":
|
|
51
|
-
return "dataSchema/heatMapDataSchema.json";
|
|
52
|
-
case "stripChart":
|
|
53
|
-
return "dataSchema/stripChartDataSchema.json";
|
|
54
|
-
case "beeSwarmChart":
|
|
55
|
-
return "dataSchema/beeSwarmChartDataSchema.json";
|
|
56
|
-
case "butterflyChart":
|
|
57
|
-
return "dataSchema/butterflyChartDataSchema.json";
|
|
58
|
-
case "histogram":
|
|
59
|
-
return "dataSchema/histogramDataSchema.json";
|
|
60
|
-
case "sparkLine":
|
|
61
|
-
return "dataSchema/lineChartDataSchema.json";
|
|
62
|
-
case "paretoChart":
|
|
63
|
-
return "dataSchema/paretoChartDataSchema.json";
|
|
64
|
-
case "statCard":
|
|
65
|
-
return "dataSchema/statCardDataSchema.json";
|
|
66
|
-
case "unitChart":
|
|
67
|
-
return "dataSchema/unitChartDataSchema.json";
|
|
68
|
-
case "sankeyChart":
|
|
69
|
-
return "dataSchema/sankeyChartDataSchema.json";
|
|
70
|
-
case "lineChartWithConfidenceInterval":
|
|
71
|
-
return "dataSchema/lineChartWithConfidenceIntervalDataSchema.json";
|
|
72
|
-
case "hybridMap":
|
|
73
|
-
return "dataSchema/hybridMapDataSchema.json";
|
|
74
|
-
case "radarChart":
|
|
75
|
-
return "dataSchema/radarChartDataSchema.json";
|
|
76
|
-
case "waterfallChart":
|
|
77
|
-
return "dataSchema/waterfallChartDataSchema.json";
|
|
78
|
-
default:
|
|
79
|
-
return console.error("Unknown chart type:", e), null;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function b(e) {
|
|
83
|
-
switch (e) {
|
|
84
|
-
case "barChart":
|
|
85
|
-
return "settingsSchema/simpleBarChartSettingsSchema.json";
|
|
86
|
-
case "stackedBarChart":
|
|
87
|
-
return "settingsSchema/stackedBarChartSettingsSchema.json";
|
|
88
|
-
case "groupedBarChart":
|
|
89
|
-
return "settingsSchema/groupedBarChartSettingsSchema.json";
|
|
90
|
-
case "lineChart":
|
|
91
|
-
return "settingsSchema/lineChartSettingsSchema.json";
|
|
92
|
-
case "dualAxisLineChart":
|
|
93
|
-
return "settingsSchema/dualAxisLineChartSettingsSchema.json";
|
|
94
|
-
case "multiLineChart":
|
|
95
|
-
return "settingsSchema/multiLineChartSettingsSchema.json";
|
|
96
|
-
case "multiLineAltChart":
|
|
97
|
-
return "settingsSchema/multiLineAltChartSettingsSchema.json";
|
|
98
|
-
case "differenceLineChart":
|
|
99
|
-
return "settingsSchema/differenceLineChartSettingsSchema.json";
|
|
100
|
-
case "stackedAreaChart":
|
|
101
|
-
return "settingsSchema/stackedAreaChartSettingsSchema.json";
|
|
102
|
-
case "choroplethMap":
|
|
103
|
-
return "settingsSchema/choroplethMapSettingsSchema.json";
|
|
104
|
-
case "threeDGlobe":
|
|
105
|
-
return "settingsSchema/threeDGlobeSettingsSchema.json";
|
|
106
|
-
case "bulletChart":
|
|
107
|
-
return "settingsSchema/bulletChartSettingsSchema.json";
|
|
108
|
-
case "biVariateChoroplethMap":
|
|
109
|
-
return "settingsSchema/biVariateChoroplethMapSettingsSchema.json";
|
|
110
|
-
case "dotDensityMap":
|
|
111
|
-
return "settingsSchema/dotDensityMapSettingsSchema.json";
|
|
112
|
-
case "donutChart":
|
|
113
|
-
return "settingsSchema/donutChartSettingsSchema.json";
|
|
114
|
-
case "slopeChart":
|
|
115
|
-
return "settingsSchema/slopeChartSettingsSchema.json";
|
|
116
|
-
case "scatterPlot":
|
|
117
|
-
return "settingsSchema/scatterPlotSettingsSchema.json";
|
|
118
|
-
case "dumbbellChart":
|
|
119
|
-
return "settingsSchema/dumbbellChartSettingsSchema.json";
|
|
120
|
-
case "treeMap":
|
|
121
|
-
return "settingsSchema/treeMapSettingsSchema.json";
|
|
122
|
-
case "circlePacking":
|
|
123
|
-
return "settingsSchema/circlePackingSettingsSchema.json";
|
|
124
|
-
case "heatMap":
|
|
125
|
-
return "settingsSchema/heatMapSettingsSchema.json";
|
|
126
|
-
case "stripChart":
|
|
127
|
-
return "settingsSchema/stripChartSettingsSchema.json";
|
|
128
|
-
case "beeSwarmChart":
|
|
129
|
-
return "settingsSchema/beeSwarmChartSettingsSchema.json";
|
|
130
|
-
case "butterflyChart":
|
|
131
|
-
return "settingsSchema/butterflyChartSettingsSchema.json";
|
|
132
|
-
case "histogram":
|
|
133
|
-
return "settingsSchema/histogramSettingsSchema.json";
|
|
134
|
-
case "sparkLine":
|
|
135
|
-
return "settingsSchema/sparkLineSettingsSchema.json";
|
|
136
|
-
case "paretoChart":
|
|
137
|
-
return "settingsSchema/paretoChartSettingsSchema.json";
|
|
138
|
-
case "dataTable":
|
|
139
|
-
return "settingsSchema/dataTableSettingsSchema.json";
|
|
140
|
-
case "statCard":
|
|
141
|
-
return "settingsSchema/statCardSettingsSchema.json";
|
|
142
|
-
case "geoHubCompareMap":
|
|
143
|
-
return "settingsSchema/geoHubCompareMapSettingsSchema.json";
|
|
144
|
-
case "geoHubMap":
|
|
145
|
-
return "settingsSchema/geoHubMapSettingsSchema.json";
|
|
146
|
-
case "geoHubMapWithLayerSelection":
|
|
147
|
-
return "settingsSchema/geoHubMapWithLayerSelectionSettingsSchema.json";
|
|
148
|
-
case "unitChart":
|
|
149
|
-
return "settingsSchema/unitChartSettingsSchema.json";
|
|
150
|
-
case "sankeyChart":
|
|
151
|
-
return "settingsSchema/sankeyChartSettingsSchema.json";
|
|
152
|
-
case "lineChartWithConfidenceInterval":
|
|
153
|
-
return "settingsSchema/lineChartWithConfidenceIntervalSettingsSchema.json";
|
|
154
|
-
case "dataCards":
|
|
155
|
-
return "settingsSchema/dataCardListSettingsSchema.json";
|
|
156
|
-
case "allGraphs":
|
|
157
|
-
return "settingsSchema/SettingsSchema.json";
|
|
158
|
-
case "radarChart":
|
|
159
|
-
return "settingsSchema/radarChartSettingsSchema.json";
|
|
160
|
-
case "hybridMap":
|
|
161
|
-
return "settingsSchema/hybridMapSettingsSchema.json";
|
|
162
|
-
case "waterfallChart":
|
|
163
|
-
return "settingsSchema/waterfallChartSettingsSchema.json";
|
|
164
|
-
default:
|
|
165
|
-
return console.error("Unknown chart type:", e), null;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
async function f(e) {
|
|
169
|
-
const t = await fetch(`${y}${S(e)}`);
|
|
170
|
-
if (!t.ok)
|
|
171
|
-
throw new Error(`Response status: ${t.status}`);
|
|
172
|
-
return await t.json();
|
|
173
|
-
}
|
|
174
|
-
async function l(e) {
|
|
175
|
-
const t = await fetch(`${y}${b(e)}`);
|
|
176
|
-
if (!t.ok)
|
|
177
|
-
throw new Error(`Response status: ${t.status}`);
|
|
178
|
-
return await t.json();
|
|
179
|
-
}
|
|
180
|
-
function C(e) {
|
|
181
|
-
switch (e) {
|
|
182
|
-
case "barChart":
|
|
183
|
-
return ["label", "size", "color", "date"];
|
|
184
|
-
case "waterfallChart":
|
|
185
|
-
return ["label", "size", "color"];
|
|
186
|
-
case "hybridMap":
|
|
187
|
-
return ["lat", "long", "x", "id", "radius", "label", "date"];
|
|
188
|
-
case "bulletChart":
|
|
189
|
-
return ["label", "size", "target", "qualitativeRange", "date"];
|
|
190
|
-
case "treeMap":
|
|
191
|
-
return ["label", "size", "color"];
|
|
192
|
-
case "circlePacking":
|
|
193
|
-
return ["label", "size", "color"];
|
|
194
|
-
case "butterflyChart":
|
|
195
|
-
return ["label", "leftBar", "rightBar", "date"];
|
|
196
|
-
case "groupedBarChart":
|
|
197
|
-
return ["label", "size", "date"];
|
|
198
|
-
case "stackedBarChart":
|
|
199
|
-
return ["label", "size", "date"];
|
|
200
|
-
case "dumbbellChart":
|
|
201
|
-
return ["x", "label", "date"];
|
|
202
|
-
case "donutChart":
|
|
203
|
-
return ["size", "label"];
|
|
204
|
-
case "histogram":
|
|
205
|
-
return ["value"];
|
|
206
|
-
case "choroplethMap":
|
|
207
|
-
return ["x", "id", "date"];
|
|
208
|
-
case "threeDGlobe":
|
|
209
|
-
return ["x", "id"];
|
|
210
|
-
case "biVariateChoroplethMap":
|
|
211
|
-
return ["x", "y", "id", "date"];
|
|
212
|
-
case "lineChart":
|
|
213
|
-
return ["date", "y"];
|
|
214
|
-
case "multiLineChart":
|
|
215
|
-
return ["date", "y"];
|
|
216
|
-
case "multiLineAltChart":
|
|
217
|
-
return ["date", "y", "label", "color"];
|
|
218
|
-
case "radarChart":
|
|
219
|
-
return ["values", "label", "color"];
|
|
220
|
-
case "stackedAreaChart":
|
|
221
|
-
return ["date", "y"];
|
|
222
|
-
case "scatterPlot":
|
|
223
|
-
return ["x", "y", "radius", "color", "label", "date"];
|
|
224
|
-
case "dualAxisLineChart":
|
|
225
|
-
return ["date", "y1", "y2"];
|
|
226
|
-
case "paretoChart":
|
|
227
|
-
return ["label", "bar", "line"];
|
|
228
|
-
case "dotDensityMap":
|
|
229
|
-
return ["lat", "long", "radius", "color", "label", "date"];
|
|
230
|
-
case "slopeChart":
|
|
231
|
-
return ["y1", "y2", "color", "label"];
|
|
232
|
-
case "heatMap":
|
|
233
|
-
return ["row", "column", "value"];
|
|
234
|
-
case "beeSwarmChart":
|
|
235
|
-
return ["label", "position", "radius", "color"];
|
|
236
|
-
case "stripChart":
|
|
237
|
-
return ["label", "position", "color"];
|
|
238
|
-
case "statCard":
|
|
239
|
-
return ["value"];
|
|
240
|
-
case "sankeyChart":
|
|
241
|
-
return ["source", "target", "value"];
|
|
242
|
-
case "differenceLineChart":
|
|
243
|
-
return ["date", "y1", "y2"];
|
|
244
|
-
case "unitChart":
|
|
245
|
-
return ["label", "value"];
|
|
246
|
-
case "sparkLine":
|
|
247
|
-
return ["date", "y"];
|
|
248
|
-
case "lineChartWithConfidenceInterval":
|
|
249
|
-
return ["date", "y", "yMin", "yMax"];
|
|
250
|
-
case "dashboardWideToLong":
|
|
251
|
-
return ["label", "size", "color", "value"];
|
|
252
|
-
case "dashboard":
|
|
253
|
-
return ["label", "radius", "size", "row", "y1", "y", "rightBar", "position", "leftBar", "x", "bar", "line", "y2", "column", "date", "value", "color", "long", "lat", "id", "source", "target", "yMin", "yMax"];
|
|
254
|
-
default:
|
|
255
|
-
return ["label", "radius", "size", "row", "y1", "y", "rightBar", "position", "leftBar", "x", "bar", "line", "y2", "column", "date", "value", "color", "long", "lat", "id", "source", "target", "yMin", "yMax"];
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
function n(e) {
|
|
259
|
-
return !e || e.length === 0 ? {} : {
|
|
260
|
-
enum: e
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
const m = (e) => ({
|
|
264
|
-
items: {
|
|
265
|
-
properties: {
|
|
266
|
-
column: {
|
|
267
|
-
type: "string",
|
|
268
|
-
...n(e)
|
|
269
|
-
},
|
|
270
|
-
delimiter: {
|
|
271
|
-
type: "string"
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
type: "object",
|
|
275
|
-
required: ["column"]
|
|
276
|
-
},
|
|
277
|
-
type: "array"
|
|
278
|
-
}), o = (e) => ({
|
|
279
|
-
properties: {
|
|
280
|
-
columnsToArray: m(e),
|
|
281
|
-
data: {},
|
|
282
|
-
dataURL: {
|
|
283
|
-
oneOf: [{
|
|
284
|
-
type: "string"
|
|
285
|
-
}, {
|
|
286
|
-
type: "array",
|
|
287
|
-
items: {
|
|
288
|
-
type: "object",
|
|
289
|
-
properties: {
|
|
290
|
-
fileType: {
|
|
291
|
-
enum: ["csv", "json", "api"],
|
|
292
|
-
type: "string"
|
|
293
|
-
},
|
|
294
|
-
apiHeaders: {},
|
|
295
|
-
dataTransformation: {
|
|
296
|
-
type: "string"
|
|
297
|
-
},
|
|
298
|
-
idColumnName: {
|
|
299
|
-
type: "string"
|
|
300
|
-
},
|
|
301
|
-
dataURL: {
|
|
302
|
-
type: "string"
|
|
303
|
-
},
|
|
304
|
-
delimiter: {
|
|
305
|
-
type: "string"
|
|
306
|
-
},
|
|
307
|
-
columnsToArray: m()
|
|
308
|
-
},
|
|
309
|
-
required: ["dataURL", "idColumnName"]
|
|
310
|
-
}
|
|
311
|
-
}]
|
|
312
|
-
},
|
|
313
|
-
delimiter: {
|
|
314
|
-
type: "string"
|
|
315
|
-
},
|
|
316
|
-
fileType: {
|
|
317
|
-
enum: ["csv", "json", "api"],
|
|
318
|
-
type: "string"
|
|
319
|
-
},
|
|
320
|
-
apiHeaders: {},
|
|
321
|
-
dataTransformation: {
|
|
322
|
-
type: "string"
|
|
323
|
-
},
|
|
324
|
-
idColumnTitle: {
|
|
325
|
-
type: "string"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
type: "object"
|
|
329
|
-
}), c = (e) => ({
|
|
330
|
-
type: "array",
|
|
331
|
-
items: {
|
|
332
|
-
type: "object",
|
|
333
|
-
properties: {
|
|
334
|
-
value: {
|
|
335
|
-
type: "string",
|
|
336
|
-
...n(e)
|
|
337
|
-
},
|
|
338
|
-
label: {
|
|
339
|
-
type: "string"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
required: ["value", "label"]
|
|
343
|
-
}
|
|
344
|
-
}), p = (e) => ({
|
|
345
|
-
items: {
|
|
346
|
-
properties: {
|
|
347
|
-
clearable: {
|
|
348
|
-
type: "boolean"
|
|
349
|
-
},
|
|
350
|
-
allowSelectAll: {
|
|
351
|
-
type: "boolean"
|
|
352
|
-
},
|
|
353
|
-
width: {
|
|
354
|
-
type: "string"
|
|
355
|
-
},
|
|
356
|
-
excludeValues: {
|
|
357
|
-
items: {
|
|
358
|
-
type: "string"
|
|
359
|
-
},
|
|
360
|
-
type: "array"
|
|
361
|
-
},
|
|
362
|
-
column: {
|
|
363
|
-
type: "string",
|
|
364
|
-
...n(e)
|
|
365
|
-
},
|
|
366
|
-
defaultValue: {
|
|
367
|
-
anyOf: [{
|
|
368
|
-
items: {
|
|
369
|
-
oneOf: [{
|
|
370
|
-
type: "string"
|
|
371
|
-
}, {
|
|
372
|
-
type: "number"
|
|
373
|
-
}]
|
|
374
|
-
},
|
|
375
|
-
type: "array"
|
|
376
|
-
}, {
|
|
377
|
-
type: "string"
|
|
378
|
-
}, {
|
|
379
|
-
type: "number"
|
|
380
|
-
}]
|
|
381
|
-
},
|
|
382
|
-
label: {
|
|
383
|
-
type: "string"
|
|
384
|
-
},
|
|
385
|
-
ui: {
|
|
386
|
-
type: "string",
|
|
387
|
-
enum: ["select", "radio"]
|
|
388
|
-
},
|
|
389
|
-
singleSelect: {
|
|
390
|
-
type: "boolean"
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
required: ["column"],
|
|
394
|
-
type: "object"
|
|
395
|
-
},
|
|
396
|
-
type: "array"
|
|
397
|
-
}), d = async (e) => {
|
|
398
|
-
const t = await l("allGraphs");
|
|
399
|
-
return {
|
|
400
|
-
type: "array",
|
|
401
|
-
items: {
|
|
402
|
-
type: "object",
|
|
403
|
-
properties: {
|
|
404
|
-
chartConfigId: {
|
|
405
|
-
type: "string"
|
|
406
|
-
},
|
|
407
|
-
label: {
|
|
408
|
-
type: "string"
|
|
409
|
-
},
|
|
410
|
-
width: {
|
|
411
|
-
type: "string"
|
|
412
|
-
},
|
|
413
|
-
allowedColumnIds: {
|
|
414
|
-
type: "array",
|
|
415
|
-
items: {
|
|
416
|
-
type: "object",
|
|
417
|
-
properties: {
|
|
418
|
-
value: {
|
|
419
|
-
type: "string",
|
|
420
|
-
...n(e)
|
|
421
|
-
},
|
|
422
|
-
label: {
|
|
423
|
-
type: "string"
|
|
424
|
-
},
|
|
425
|
-
graphSettings: t
|
|
426
|
-
},
|
|
427
|
-
required: ["value", "label"]
|
|
428
|
-
},
|
|
429
|
-
minItems: 1
|
|
430
|
-
},
|
|
431
|
-
ui: {
|
|
432
|
-
type: "string",
|
|
433
|
-
enum: ["select", "radio"]
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
required: ["chartConfigId", "allowedColumnIds"]
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
}, s = (e) => ({
|
|
440
|
-
type: "array",
|
|
441
|
-
items: {
|
|
442
|
-
type: "object",
|
|
443
|
-
properties: {
|
|
444
|
-
column: {
|
|
445
|
-
type: "string",
|
|
446
|
-
...n(e)
|
|
447
|
-
},
|
|
448
|
-
includeValues: {
|
|
449
|
-
type: "array",
|
|
450
|
-
items: {
|
|
451
|
-
oneOf: [{
|
|
452
|
-
type: "string"
|
|
453
|
-
}, {
|
|
454
|
-
type: "number"
|
|
455
|
-
}, {
|
|
456
|
-
type: "boolean"
|
|
457
|
-
}, {
|
|
458
|
-
type: "null"
|
|
459
|
-
}]
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
excludeValues: {
|
|
463
|
-
type: "array",
|
|
464
|
-
items: {
|
|
465
|
-
oneOf: [{
|
|
466
|
-
type: "string"
|
|
467
|
-
}, {
|
|
468
|
-
type: "number"
|
|
469
|
-
}, {
|
|
470
|
-
type: "boolean"
|
|
471
|
-
}, {
|
|
472
|
-
type: "null"
|
|
473
|
-
}]
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
required: ["column"]
|
|
478
|
-
}
|
|
479
|
-
}), u = (e) => ({
|
|
480
|
-
type: "object",
|
|
481
|
-
properties: {
|
|
482
|
-
keyColumn: {
|
|
483
|
-
type: "string",
|
|
484
|
-
...n(e)
|
|
485
|
-
},
|
|
486
|
-
aggregationColumnsSetting: {
|
|
487
|
-
type: "array",
|
|
488
|
-
items: {
|
|
489
|
-
type: "object",
|
|
490
|
-
properties: {
|
|
491
|
-
column: {
|
|
492
|
-
type: "string",
|
|
493
|
-
...n(e)
|
|
494
|
-
},
|
|
495
|
-
aggregationMethod: {
|
|
496
|
-
type: "string",
|
|
497
|
-
enum: ["sum", "average", "min", "max"]
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
required: ["column"]
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
required: ["keyColumn"]
|
|
505
|
-
}), h = (e, t) => ({
|
|
506
|
-
type: "array",
|
|
507
|
-
items: {
|
|
508
|
-
type: "object",
|
|
509
|
-
properties: {
|
|
510
|
-
columnId: {
|
|
511
|
-
oneOf: [{
|
|
512
|
-
type: "string",
|
|
513
|
-
...n(e)
|
|
514
|
-
}, {
|
|
515
|
-
type: "array",
|
|
516
|
-
items: {
|
|
517
|
-
type: "string",
|
|
518
|
-
...n(e)
|
|
519
|
-
}
|
|
520
|
-
}]
|
|
521
|
-
},
|
|
522
|
-
chartConfigId: {
|
|
523
|
-
type: "string",
|
|
524
|
-
...n(C(t))
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
required: ["columnId", "chartConfigId"]
|
|
528
|
-
}
|
|
529
|
-
}), g = async (e, t) => {
|
|
530
|
-
const a = await l("allGraphs");
|
|
531
|
-
return {
|
|
532
|
-
type: "array",
|
|
533
|
-
items: {
|
|
534
|
-
type: "object",
|
|
535
|
-
properties: {
|
|
536
|
-
chartConfigId: {
|
|
537
|
-
type: "string"
|
|
538
|
-
},
|
|
539
|
-
label: {
|
|
540
|
-
type: "string"
|
|
541
|
-
},
|
|
542
|
-
width: {
|
|
543
|
-
type: "string"
|
|
544
|
-
},
|
|
545
|
-
options: {
|
|
546
|
-
type: "array",
|
|
547
|
-
items: {
|
|
548
|
-
type: "object",
|
|
549
|
-
properties: {
|
|
550
|
-
dataConfiguration: h(e, t),
|
|
551
|
-
label: {
|
|
552
|
-
type: "string"
|
|
553
|
-
},
|
|
554
|
-
graphSettings: a
|
|
555
|
-
},
|
|
556
|
-
required: ["dataConfiguration", "label"]
|
|
557
|
-
},
|
|
558
|
-
minItems: 1
|
|
559
|
-
},
|
|
560
|
-
defaultValue: {
|
|
561
|
-
type: "array",
|
|
562
|
-
items: {
|
|
563
|
-
type: "object",
|
|
564
|
-
properties: {
|
|
565
|
-
dataConfiguration: h(e, t),
|
|
566
|
-
label: {
|
|
567
|
-
type: "string"
|
|
568
|
-
},
|
|
569
|
-
graphSettings: a
|
|
570
|
-
},
|
|
571
|
-
required: ["dataConfiguration", "label"]
|
|
572
|
-
},
|
|
573
|
-
minItems: 1
|
|
574
|
-
},
|
|
575
|
-
ui: {
|
|
576
|
-
type: "string",
|
|
577
|
-
enum: ["select", "radio"]
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
required: ["chartConfigId", "options"]
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
}, D = async (e, t) => {
|
|
584
|
-
const a = await l(t || "allGraphs");
|
|
585
|
-
return t && i.filter((r) => r.geoHubMapPresentation).map((r) => r.graphID).indexOf(t) !== -1 ? {
|
|
586
|
-
type: "object",
|
|
587
|
-
properties: {
|
|
588
|
-
graphSettings: a,
|
|
589
|
-
graphType: {
|
|
590
|
-
type: "string",
|
|
591
|
-
enum: i.filter((r) => r.geoHubMapPresentation).map((r) => r.graphID)
|
|
592
|
-
},
|
|
593
|
-
debugMode: {
|
|
594
|
-
type: "boolean"
|
|
595
|
-
},
|
|
596
|
-
theme: {
|
|
597
|
-
type: "string",
|
|
598
|
-
enum: ["dark", "light"]
|
|
599
|
-
},
|
|
600
|
-
uiMode: {
|
|
601
|
-
type: "string",
|
|
602
|
-
enum: ["light", "normal"]
|
|
603
|
-
},
|
|
604
|
-
classNames: {
|
|
605
|
-
type: "object"
|
|
606
|
-
},
|
|
607
|
-
highlightDataPointSettings: {
|
|
608
|
-
type: "object",
|
|
609
|
-
properties: {
|
|
610
|
-
column: {
|
|
611
|
-
type: "string"
|
|
612
|
-
},
|
|
613
|
-
label: {
|
|
614
|
-
type: "string"
|
|
615
|
-
},
|
|
616
|
-
defaultValues: {
|
|
617
|
-
oneOf: [{
|
|
618
|
-
type: "array",
|
|
619
|
-
items: {
|
|
620
|
-
type: "string"
|
|
621
|
-
}
|
|
622
|
-
}, {
|
|
623
|
-
type: "array",
|
|
624
|
-
items: {
|
|
625
|
-
type: "number"
|
|
626
|
-
}
|
|
627
|
-
}]
|
|
628
|
-
},
|
|
629
|
-
excludeValues: {
|
|
630
|
-
type: "array",
|
|
631
|
-
items: {
|
|
632
|
-
type: "string"
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
allowSelectAll: {
|
|
636
|
-
type: "boolean"
|
|
637
|
-
},
|
|
638
|
-
width: {
|
|
639
|
-
type: "string"
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
required: ["column"]
|
|
643
|
-
},
|
|
644
|
-
styles: {
|
|
645
|
-
type: "object"
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
required: ["graphType"]
|
|
649
|
-
} : t === "dataTable" || t === "dataCards" ? {
|
|
650
|
-
type: "object",
|
|
651
|
-
properties: {
|
|
652
|
-
graphSettings: a,
|
|
653
|
-
dataSettings: o(e),
|
|
654
|
-
filters: p(e),
|
|
655
|
-
noOfFiltersPerRow: {
|
|
656
|
-
type: "number"
|
|
657
|
-
},
|
|
658
|
-
graphType: {
|
|
659
|
-
type: "string",
|
|
660
|
-
enum: ["dataTable", "dataCards"]
|
|
661
|
-
},
|
|
662
|
-
dataTransform: u(e),
|
|
663
|
-
dataFilters: s(e),
|
|
664
|
-
readableHeader: c(e),
|
|
665
|
-
dataSelectionOptions: d(e),
|
|
666
|
-
advancedDataSelectionOptions: g(e, t),
|
|
667
|
-
debugMode: {
|
|
668
|
-
type: "boolean"
|
|
669
|
-
},
|
|
670
|
-
theme: {
|
|
671
|
-
type: "string",
|
|
672
|
-
enum: ["dark", "light"]
|
|
673
|
-
},
|
|
674
|
-
uiMode: {
|
|
675
|
-
type: "string",
|
|
676
|
-
enum: ["light", "normal"]
|
|
677
|
-
},
|
|
678
|
-
classNames: {
|
|
679
|
-
type: "object"
|
|
680
|
-
},
|
|
681
|
-
highlightDataPointSettings: {
|
|
682
|
-
type: "object",
|
|
683
|
-
properties: {
|
|
684
|
-
column: {
|
|
685
|
-
type: "string"
|
|
686
|
-
},
|
|
687
|
-
label: {
|
|
688
|
-
type: "string"
|
|
689
|
-
},
|
|
690
|
-
defaultValues: {
|
|
691
|
-
oneOf: [{
|
|
692
|
-
type: "array",
|
|
693
|
-
items: {
|
|
694
|
-
type: "string"
|
|
695
|
-
}
|
|
696
|
-
}, {
|
|
697
|
-
type: "array",
|
|
698
|
-
items: {
|
|
699
|
-
type: "number"
|
|
700
|
-
}
|
|
701
|
-
}]
|
|
702
|
-
},
|
|
703
|
-
excludeValues: {
|
|
704
|
-
type: "array",
|
|
705
|
-
items: {
|
|
706
|
-
type: "string"
|
|
707
|
-
}
|
|
708
|
-
},
|
|
709
|
-
allowSelectAll: {
|
|
710
|
-
type: "boolean"
|
|
711
|
-
},
|
|
712
|
-
width: {
|
|
713
|
-
type: "string"
|
|
714
|
-
}
|
|
715
|
-
},
|
|
716
|
-
required: ["column"]
|
|
717
|
-
},
|
|
718
|
-
styles: {
|
|
719
|
-
type: "object"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
required: ["dataSettings", "graphType"]
|
|
723
|
-
} : {
|
|
724
|
-
type: "object",
|
|
725
|
-
properties: {
|
|
726
|
-
graphSettings: a,
|
|
727
|
-
dataSettings: o(e),
|
|
728
|
-
filters: p(e),
|
|
729
|
-
classNames: {
|
|
730
|
-
type: "object"
|
|
731
|
-
},
|
|
732
|
-
styles: {
|
|
733
|
-
type: "object"
|
|
734
|
-
},
|
|
735
|
-
graphType: {
|
|
736
|
-
type: "string",
|
|
737
|
-
enum: i.map((r) => r.graphID)
|
|
738
|
-
},
|
|
739
|
-
noOfFiltersPerRow: {
|
|
740
|
-
type: "number"
|
|
741
|
-
},
|
|
742
|
-
dataTransform: u(e),
|
|
743
|
-
dataFilters: s(e),
|
|
744
|
-
graphDataConfiguration: h(e, t),
|
|
745
|
-
readableHeader: c(e),
|
|
746
|
-
dataSelectionOptions: d(e),
|
|
747
|
-
advancedDataSelectionOptions: g(e, t),
|
|
748
|
-
debugMode: {
|
|
749
|
-
type: "boolean"
|
|
750
|
-
},
|
|
751
|
-
theme: {
|
|
752
|
-
type: "string",
|
|
753
|
-
enum: ["dark", "light"]
|
|
754
|
-
},
|
|
755
|
-
highlightDataPointSettings: {
|
|
756
|
-
type: "object",
|
|
757
|
-
properties: {
|
|
758
|
-
column: {
|
|
759
|
-
type: "string"
|
|
760
|
-
},
|
|
761
|
-
label: {
|
|
762
|
-
type: "string"
|
|
763
|
-
},
|
|
764
|
-
defaultValues: {
|
|
765
|
-
oneOf: [{
|
|
766
|
-
type: "array",
|
|
767
|
-
items: {
|
|
768
|
-
type: "string"
|
|
769
|
-
}
|
|
770
|
-
}, {
|
|
771
|
-
type: "array",
|
|
772
|
-
items: {
|
|
773
|
-
type: "number"
|
|
774
|
-
}
|
|
775
|
-
}]
|
|
776
|
-
},
|
|
777
|
-
excludeValues: {
|
|
778
|
-
type: "array",
|
|
779
|
-
items: {
|
|
780
|
-
type: "string"
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
allowSelectAll: {
|
|
784
|
-
type: "boolean"
|
|
785
|
-
},
|
|
786
|
-
width: {
|
|
787
|
-
type: "string"
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
required: ["column"]
|
|
791
|
-
},
|
|
792
|
-
uiMode: {
|
|
793
|
-
type: "string",
|
|
794
|
-
enum: ["light", "normal"]
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
required: t ? ["dataSettings", "graphType", "graphDataConfiguration"] : ["graphType"]
|
|
798
|
-
};
|
|
799
|
-
}, M = async (e, t) => {
|
|
800
|
-
const a = await l(t || "allGraphs");
|
|
801
|
-
return t === "dataTable" || t === "dataCards" ? {
|
|
802
|
-
type: "object",
|
|
803
|
-
properties: {
|
|
804
|
-
graphSettings: a,
|
|
805
|
-
dataSettings: o(e),
|
|
806
|
-
filters: p(e),
|
|
807
|
-
classNames: {
|
|
808
|
-
type: "object"
|
|
809
|
-
},
|
|
810
|
-
styles: {
|
|
811
|
-
type: "object"
|
|
812
|
-
},
|
|
813
|
-
noOfFiltersPerRow: {
|
|
814
|
-
type: "number"
|
|
815
|
-
},
|
|
816
|
-
graphType: {
|
|
817
|
-
type: "string",
|
|
818
|
-
enum: ["dataTable", "dataCards"]
|
|
819
|
-
},
|
|
820
|
-
uiMode: {
|
|
821
|
-
type: "string",
|
|
822
|
-
enum: ["light", "normal"]
|
|
823
|
-
},
|
|
824
|
-
dataTransform: u(e),
|
|
825
|
-
dataFilters: s(e),
|
|
826
|
-
noOfColumns: {
|
|
827
|
-
type: "number"
|
|
828
|
-
},
|
|
829
|
-
columnGridBy: {
|
|
830
|
-
type: "string"
|
|
831
|
-
},
|
|
832
|
-
showCommonColorScale: {
|
|
833
|
-
type: "boolean"
|
|
834
|
-
},
|
|
835
|
-
minGraphHeight: {
|
|
836
|
-
type: "number"
|
|
837
|
-
},
|
|
838
|
-
minGraphWidth: {
|
|
839
|
-
type: "number"
|
|
840
|
-
},
|
|
841
|
-
readableHeader: c(e),
|
|
842
|
-
dataSelectionOptions: d(e),
|
|
843
|
-
advancedDataSelectionOptions: g(e, t),
|
|
844
|
-
debugMode: {
|
|
845
|
-
type: "boolean"
|
|
846
|
-
},
|
|
847
|
-
theme: {
|
|
848
|
-
type: "string",
|
|
849
|
-
enum: ["dark", "light"]
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
required: ["columnGridBy", "dataSettings", "graphType"]
|
|
853
|
-
} : {
|
|
854
|
-
type: "object",
|
|
855
|
-
properties: {
|
|
856
|
-
graphSettings: a,
|
|
857
|
-
dataSettings: o(e),
|
|
858
|
-
filters: p(e),
|
|
859
|
-
classNames: {
|
|
860
|
-
type: "object"
|
|
861
|
-
},
|
|
862
|
-
styles: {
|
|
863
|
-
type: "object"
|
|
864
|
-
},
|
|
865
|
-
noOfFiltersPerRow: {
|
|
866
|
-
type: "number"
|
|
867
|
-
},
|
|
868
|
-
graphType: {
|
|
869
|
-
type: "string",
|
|
870
|
-
enum: i.filter((r) => r.availableInGriddedGraph !== !1).map((r) => r.graphID)
|
|
871
|
-
},
|
|
872
|
-
uiMode: {
|
|
873
|
-
type: "string",
|
|
874
|
-
enum: ["light", "normal"]
|
|
875
|
-
},
|
|
876
|
-
dataTransform: u(e),
|
|
877
|
-
dataFilters: s(e),
|
|
878
|
-
graphDataConfiguration: h(e, t),
|
|
879
|
-
noOfColumns: {
|
|
880
|
-
type: "number"
|
|
881
|
-
},
|
|
882
|
-
columnGridBy: {
|
|
883
|
-
type: "string"
|
|
884
|
-
},
|
|
885
|
-
showCommonColorScale: {
|
|
886
|
-
type: "boolean"
|
|
887
|
-
},
|
|
888
|
-
minGraphHeight: {
|
|
889
|
-
type: "number"
|
|
890
|
-
},
|
|
891
|
-
minGraphWidth: {
|
|
892
|
-
type: "number"
|
|
893
|
-
},
|
|
894
|
-
readableHeader: c(e),
|
|
895
|
-
dataSelectionOptions: d(e),
|
|
896
|
-
advancedDataSelectionOptions: g(e, t),
|
|
897
|
-
debugMode: {
|
|
898
|
-
type: "boolean"
|
|
899
|
-
},
|
|
900
|
-
theme: {
|
|
901
|
-
type: "string",
|
|
902
|
-
enum: ["dark", "light"]
|
|
903
|
-
}
|
|
904
|
-
},
|
|
905
|
-
required: t ? ["columnGridBy", "dataSettings", "graphType", "graphDataConfiguration"] : ["columnGridBy", "dataSettings", "graphType"]
|
|
906
|
-
};
|
|
907
|
-
}, w = async (e) => {
|
|
908
|
-
const t = await l("allGraphs");
|
|
909
|
-
return {
|
|
910
|
-
properties: {
|
|
911
|
-
dashboardID: {
|
|
912
|
-
type: "string"
|
|
913
|
-
},
|
|
914
|
-
graphClassNames: {
|
|
915
|
-
type: "object"
|
|
916
|
-
},
|
|
917
|
-
graphStyles: {
|
|
918
|
-
type: "object"
|
|
919
|
-
},
|
|
920
|
-
dashboardLayout: {
|
|
921
|
-
properties: {
|
|
922
|
-
backgroundColor: {
|
|
923
|
-
type: ["string", "boolean"]
|
|
924
|
-
},
|
|
925
|
-
description: {
|
|
926
|
-
type: "string"
|
|
927
|
-
},
|
|
928
|
-
language: {
|
|
929
|
-
enum: ["ar", "en", "he"],
|
|
930
|
-
type: "string"
|
|
931
|
-
},
|
|
932
|
-
padding: {
|
|
933
|
-
type: "string"
|
|
934
|
-
},
|
|
935
|
-
title: {
|
|
936
|
-
type: "string"
|
|
937
|
-
},
|
|
938
|
-
rows: {
|
|
939
|
-
items: {
|
|
940
|
-
properties: {
|
|
941
|
-
columns: {
|
|
942
|
-
items: {
|
|
943
|
-
properties: {
|
|
944
|
-
columnWidth: {
|
|
945
|
-
type: "number"
|
|
946
|
-
},
|
|
947
|
-
dataFilters: s(),
|
|
948
|
-
dataTransform: u(),
|
|
949
|
-
graphDataConfiguration: h(void 0, "dashboard"),
|
|
950
|
-
graphType: {
|
|
951
|
-
enum: i.map((a) => a.graphID),
|
|
952
|
-
type: "string"
|
|
953
|
-
},
|
|
954
|
-
settings: t,
|
|
955
|
-
dataSelectionOptions: d(),
|
|
956
|
-
advancedDataSelectionOptions: g(),
|
|
957
|
-
attachedFilter: {
|
|
958
|
-
type: "string",
|
|
959
|
-
...n(e)
|
|
960
|
-
}
|
|
961
|
-
},
|
|
962
|
-
type: "object",
|
|
963
|
-
required: ["graphType"]
|
|
964
|
-
},
|
|
965
|
-
type: "array"
|
|
966
|
-
},
|
|
967
|
-
height: {
|
|
968
|
-
type: "number"
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
type: "object",
|
|
972
|
-
required: ["columns"]
|
|
973
|
-
},
|
|
974
|
-
type: "array"
|
|
975
|
-
}
|
|
976
|
-
},
|
|
977
|
-
type: "object",
|
|
978
|
-
required: ["rows"]
|
|
979
|
-
},
|
|
980
|
-
dataSettings: o(e),
|
|
981
|
-
filters: p(e),
|
|
982
|
-
noOfFiltersPerRow: {
|
|
983
|
-
type: "number"
|
|
984
|
-
},
|
|
985
|
-
uiMode: {
|
|
986
|
-
type: "string",
|
|
987
|
-
enum: ["light", "normal"]
|
|
988
|
-
},
|
|
989
|
-
filterPosition: {
|
|
990
|
-
type: "string",
|
|
991
|
-
enum: ["top", "side"]
|
|
992
|
-
},
|
|
993
|
-
readableHeader: c(e),
|
|
994
|
-
dataFilters: s(e),
|
|
995
|
-
debugMode: {
|
|
996
|
-
type: "boolean"
|
|
997
|
-
},
|
|
998
|
-
theme: {
|
|
999
|
-
type: "string",
|
|
1000
|
-
enum: ["dark", "light"]
|
|
1001
|
-
},
|
|
1002
|
-
graphBackgroundColor: {
|
|
1003
|
-
oneOf: [{
|
|
1004
|
-
type: "string"
|
|
1005
|
-
}, {
|
|
1006
|
-
type: "boolean"
|
|
1007
|
-
}]
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
type: "object",
|
|
1011
|
-
required: ["dashboardLayout", "dataSettings"]
|
|
1012
|
-
};
|
|
1013
|
-
}, k = async () => {
|
|
1014
|
-
const e = await l("allGraphs");
|
|
1015
|
-
return {
|
|
1016
|
-
properties: {
|
|
1017
|
-
dashboardID: {
|
|
1018
|
-
type: "string"
|
|
1019
|
-
},
|
|
1020
|
-
graphClassNames: {
|
|
1021
|
-
type: "object"
|
|
1022
|
-
},
|
|
1023
|
-
graphStyles: {
|
|
1024
|
-
type: "object"
|
|
1025
|
-
},
|
|
1026
|
-
dashboardLayout: {
|
|
1027
|
-
properties: {
|
|
1028
|
-
backgroundColor: {
|
|
1029
|
-
type: ["string", "boolean"]
|
|
1030
|
-
},
|
|
1031
|
-
description: {
|
|
1032
|
-
type: "string"
|
|
1033
|
-
},
|
|
1034
|
-
language: {
|
|
1035
|
-
enum: ["ar", "en", "he"],
|
|
1036
|
-
type: "string"
|
|
1037
|
-
},
|
|
1038
|
-
padding: {
|
|
1039
|
-
type: "string"
|
|
1040
|
-
},
|
|
1041
|
-
dropdownLabel: {
|
|
1042
|
-
type: "string"
|
|
1043
|
-
},
|
|
1044
|
-
title: {
|
|
1045
|
-
type: "string"
|
|
1046
|
-
},
|
|
1047
|
-
rows: {
|
|
1048
|
-
items: {
|
|
1049
|
-
properties: {
|
|
1050
|
-
columns: {
|
|
1051
|
-
items: {
|
|
1052
|
-
properties: {
|
|
1053
|
-
columnWidth: {
|
|
1054
|
-
type: "number"
|
|
1055
|
-
},
|
|
1056
|
-
dataFilters: s(),
|
|
1057
|
-
graphDataConfiguration: h(void 0, "dashboardWideToLong"),
|
|
1058
|
-
graphType: {
|
|
1059
|
-
enum: i.filter((t) => t.availableInWideToLongFormat).map((t) => t.graphID),
|
|
1060
|
-
type: "string"
|
|
1061
|
-
},
|
|
1062
|
-
settings: e
|
|
1063
|
-
},
|
|
1064
|
-
type: "object",
|
|
1065
|
-
required: ["graphType"]
|
|
1066
|
-
},
|
|
1067
|
-
type: "array"
|
|
1068
|
-
},
|
|
1069
|
-
height: {
|
|
1070
|
-
type: "number"
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
type: "object",
|
|
1074
|
-
required: ["columns"]
|
|
1075
|
-
},
|
|
1076
|
-
type: "array"
|
|
1077
|
-
}
|
|
1078
|
-
},
|
|
1079
|
-
type: "object",
|
|
1080
|
-
required: ["rows"]
|
|
1081
|
-
},
|
|
1082
|
-
dataSettings: {
|
|
1083
|
-
properties: {
|
|
1084
|
-
...o().properties,
|
|
1085
|
-
keyColumn: {
|
|
1086
|
-
type: "string"
|
|
1087
|
-
}
|
|
1088
|
-
},
|
|
1089
|
-
required: ["keyColumn"],
|
|
1090
|
-
type: "object"
|
|
1091
|
-
},
|
|
1092
|
-
uiMode: {
|
|
1093
|
-
type: "string",
|
|
1094
|
-
enum: ["light", "normal"]
|
|
1095
|
-
},
|
|
1096
|
-
dataFilters: s(),
|
|
1097
|
-
readableHeader: c(),
|
|
1098
|
-
debugMode: {
|
|
1099
|
-
type: "boolean"
|
|
1100
|
-
},
|
|
1101
|
-
theme: {
|
|
1102
|
-
type: "string",
|
|
1103
|
-
enum: ["dark", "light"]
|
|
1104
|
-
},
|
|
1105
|
-
graphBackgroundColor: {
|
|
1106
|
-
oneOf: [{
|
|
1107
|
-
type: "string"
|
|
1108
|
-
}, {
|
|
1109
|
-
type: "boolean"
|
|
1110
|
-
}]
|
|
1111
|
-
}
|
|
1112
|
-
},
|
|
1113
|
-
type: "object",
|
|
1114
|
-
required: ["dashboardLayout", "dataSettings"]
|
|
1115
|
-
};
|
|
1116
|
-
};
|
|
1117
|
-
export {
|
|
1118
|
-
g as getAdvancedDataSelectionSchema,
|
|
1119
|
-
m as getColumnsToArraySchema,
|
|
1120
|
-
w as getDashboardJSONSchema,
|
|
1121
|
-
k as getDashboardWideToLongFormatJSONSchema,
|
|
1122
|
-
s as getDataFiltersSchema,
|
|
1123
|
-
f as getDataSchema,
|
|
1124
|
-
S as getDataSchemaLink,
|
|
1125
|
-
d as getDataSelectionSchema,
|
|
1126
|
-
o as getDataSettingsSchema,
|
|
1127
|
-
u as getDataTransformSchema,
|
|
1128
|
-
p as getFiltersSchema,
|
|
1129
|
-
C as getGraphConfigChartConfigIdEnum,
|
|
1130
|
-
h as getGraphDataConfigurationSchema,
|
|
1131
|
-
M as getGriddedGraphJSONSchema,
|
|
1132
|
-
c as getReadableHeaderSchema,
|
|
1133
|
-
l as getSettingsSchema,
|
|
1134
|
-
b as getSettingsSchemaLink,
|
|
1135
|
-
D as getSingleGraphJSONSchema
|
|
1136
|
-
};
|
|
1137
|
-
//# sourceMappingURL=getSchema.js.map
|