@luzmo/dashboard-contents-types 0.1.88 → 0.1.89
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/README.md +154 -0
- package/assets/json-schemas/area-chart-options.schema.json.d.ts +15 -1
- package/assets/json-schemas/area-chart-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/area-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/bar-chart-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/bar-chart-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/bar-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/box-plot-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/box-plot-slots.schema.json.d.ts +8 -8
- package/assets/json-schemas/box-plot.schema.json.d.ts +3 -3
- package/assets/json-schemas/bubble-chart-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/bubble-chart-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/bubble-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/bullet-chart-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/bullet-chart-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/bullet-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/choropleth-map-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/choropleth-map-slots.schema.json.d.ts +11 -11
- package/assets/json-schemas/choropleth-map.schema.json.d.ts +3 -3
- package/assets/json-schemas/circular-gauge-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/circular-gauge-slots.schema.json.d.ts +10 -10
- package/assets/json-schemas/circular-gauge.schema.json.d.ts +3 -3
- package/assets/json-schemas/column-chart-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/column-chart-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/column-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/combination-chart-options.schema.json.d.ts +15 -1
- package/assets/json-schemas/combination-chart-slots.schema.json.d.ts +10 -10
- package/assets/json-schemas/combination-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/date-filter-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/date-filter-slots.schema.json.d.ts +3 -3
- package/assets/json-schemas/date-filter.schema.json.d.ts +3 -3
- package/assets/json-schemas/donut-chart-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/donut-chart-slots.schema.json.d.ts +10 -10
- package/assets/json-schemas/donut-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/dropdown-filter-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/dropdown-filter-slots.schema.json.d.ts +6 -6
- package/assets/json-schemas/dropdown-filter.schema.json.d.ts +3 -3
- package/assets/json-schemas/evolution-number-options.schema.json.d.ts +37 -23
- package/assets/json-schemas/evolution-number-slots.schema.json.d.ts +8 -8
- package/assets/json-schemas/evolution-number.schema.json.d.ts +3 -3
- package/assets/json-schemas/funnel-chart-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/funnel-chart-slots.schema.json.d.ts +9 -9
- package/assets/json-schemas/funnel-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/image-options.schema.json.d.ts +7 -1
- package/assets/json-schemas/image.schema.json.d.ts +2 -2
- package/assets/json-schemas/line-chart-options.schema.json.d.ts +15 -1
- package/assets/json-schemas/line-chart-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/line-chart.schema.json.d.ts +3 -3
- package/assets/json-schemas/options.schema.json.d.ts +24 -24
- package/assets/json-schemas/pivot-table-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/pivot-table-slots.schema.json.d.ts +14 -14
- package/assets/json-schemas/pivot-table.schema.json.d.ts +3 -3
- package/assets/json-schemas/regular-table-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/regular-table-slots.schema.json.d.ts +6 -6
- package/assets/json-schemas/regular-table.schema.json.d.ts +3 -3
- package/assets/json-schemas/sankey-diagram-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/sankey-diagram-slots.schema.json.d.ts +18 -18
- package/assets/json-schemas/sankey-diagram.schema.json.d.ts +3 -3
- package/assets/json-schemas/scatter-plot-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/scatter-plot-slots.schema.json.d.ts +22 -22
- package/assets/json-schemas/scatter-plot.schema.json.d.ts +3 -3
- package/assets/json-schemas/slicer-filter-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/slicer-filter-slots.schema.json.d.ts +10 -10
- package/assets/json-schemas/slicer-filter.schema.json.d.ts +3 -3
- package/assets/json-schemas/slider-filter-options.schema.json.d.ts +13 -1
- package/assets/json-schemas/slider-filter-slots.schema.json.d.ts +5 -5
- package/assets/json-schemas/slider-filter.schema.json.d.ts +3 -3
- package/assets/json-schemas/slots.schema.json.d.ts +22 -22
- package/assets/json-schemas/text-options.schema.json.d.ts +7 -1
- package/assets/json-schemas/text.schema.json.d.ts +2 -2
- package/assets/json-schemas/viz-item-type.schema.json.d.ts +1 -1
- package/index.js +69 -69
- package/index.mjs +719 -447
- package/json-schemas.d.ts +100 -17
- package/json-schemas.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/lib/evolution-number/evolution-number-options.d.ts +20 -5
- package/src/lib/evolution-number/evolution-number-options.d.ts.map +1 -1
- package/src/lib/shared/common.d.ts +4 -4
- package/src/lib/shared/common.d.ts.map +1 -1
- package/src/lib/shared/drop-object-view-options.d.ts +2 -0
- package/src/lib/shared/drop-object-view-options.d.ts.map +1 -1
- package/src/lib/shared/theme.d.ts +4 -0
- package/src/lib/shared/theme.d.ts.map +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Types and JSON schemas for Luzmo dashboard contents
|
|
2
|
+
|
|
3
|
+
This packages contains different dashboard contents' types and JSON schemas for Luzmo dashboard contents.
|
|
4
|
+
|
|
5
|
+
## Content Item Types
|
|
6
|
+
|
|
7
|
+
Here is the list of some types for content items. There are more types available in the package.
|
|
8
|
+
|
|
9
|
+
| Type | Description |
|
|
10
|
+
|--------------------------------|-------------------------------------------------------|
|
|
11
|
+
| `AreaChart` | An Area Chart type. |
|
|
12
|
+
| `AreaChartViewOptions` | An Area Chart options type. |
|
|
13
|
+
| `AreaChartSlots` | An Area Chart slots type. |
|
|
14
|
+
| `BarChart` | A Bar Chart type. |
|
|
15
|
+
| `BarChartViewOptions` | A Bar Chart options type. |
|
|
16
|
+
| `BarChartSlots` | A Bar Chart slots type. |
|
|
17
|
+
| `BoxPlot` | A Box Plot type. |
|
|
18
|
+
| `BoxPlotViewOptions` | A Box Plot options type. |
|
|
19
|
+
| `BoxPlotSlots` | A Box Plot slots type. |
|
|
20
|
+
| `BubbleChart` | A Bubble Chart type. |
|
|
21
|
+
| `BubbleChartViewOptions` | A Bubble Chart options type. |
|
|
22
|
+
| `BubbleChartSlots` | A Bubble Chart slots type. |
|
|
23
|
+
| `BulletChart` | A Bullet Chart type. |
|
|
24
|
+
| `BulletChartViewOptions` | A Bullet Chart options type. |
|
|
25
|
+
| `BulletChartSlots` | A Bullet Chart slots type. |
|
|
26
|
+
| `ChoroplethMap` | A Choropleth Map type. |
|
|
27
|
+
| `ChoroplethMapViewOptions` | A Choropleth Map options type. |
|
|
28
|
+
| `ChoroplethMapSlots` | A Choropleth Map slots type. |
|
|
29
|
+
| `CircularGauge` | A Circular Gauge type. |
|
|
30
|
+
| `CircularGaugeViewOptions` | A Circular Gauge options type. |
|
|
31
|
+
| `CircularGaugeSlots` | A Circular Gauge slots type. |
|
|
32
|
+
| `ColumnChart` | A Column Chart type. |
|
|
33
|
+
| `ColumnChartViewOptions` | A Column Chart options type. |
|
|
34
|
+
| `ColumnChartSlots` | A Column Chart slots type. |
|
|
35
|
+
| `CombinationChart` | A Combination Chart type. |
|
|
36
|
+
| `CombinationChartViewOptions` | A Combination Chart options type. |
|
|
37
|
+
| `CombinationChartSlots` | A Combination Chart slots type. |
|
|
38
|
+
| `ConditionalNumber` | A Conditional Number type. |
|
|
39
|
+
| `ConditionalNumberViewOptions` | A Conditional Number options type. |
|
|
40
|
+
| `ConditionalNumberSlots` | A Conditional Number slots type. |
|
|
41
|
+
| `DateFilter` | A Date Filter type. |
|
|
42
|
+
| `DateFilterViewOptions` | A Date Filter options type. |
|
|
43
|
+
| `DateFilterSlots` | A Date Filter slots type. |
|
|
44
|
+
| `DonutChart` | A Donut Chart type. |
|
|
45
|
+
| `DonutChartViewOptions` | A Donut Chart options type. |
|
|
46
|
+
| `DonutChartSlots` | A Donut Chart slots type. |
|
|
47
|
+
| `DropdownFilter` | A Dropdown Filter type. |
|
|
48
|
+
| `DropdownFilterViewOptions` | A Dropdown Filter options type. |
|
|
49
|
+
| `DropdownFilterSlots` | A Dropdown Filter slots type. |
|
|
50
|
+
| `EvolutionNumber` | An Evolution Number type. |
|
|
51
|
+
| `EvolutionNumberViewOptions` | An Evolution Number options type. |
|
|
52
|
+
| `EvolutionNumberSlots` | An Evolution Number slots type. |
|
|
53
|
+
| `FunnelChart` | A Funnel Chart type. |
|
|
54
|
+
| `FunnelChartViewOptions` | A Funnel Chart options type. |
|
|
55
|
+
| `FunnelChartSlots` | A Funnel Chart slots type. |
|
|
56
|
+
| `Image` | An Image type. |
|
|
57
|
+
| `ImageViewOptions` | An Image options type. |
|
|
58
|
+
| `LineChart` | A Line Chart type. |
|
|
59
|
+
| `LineChartViewOptions` | A Line Chart options type. |
|
|
60
|
+
| `LineChartSlots` | A Line Chart slots type. |
|
|
61
|
+
| `PivotTable` | A Pivot Table type. |
|
|
62
|
+
| `PivotTableViewOptions` | A Pivot Table options type. |
|
|
63
|
+
| `PivotTableSlots` | A Pivot Table slots type. |
|
|
64
|
+
| `RegularTable` | A Regular Table type. |
|
|
65
|
+
| `RegularTableViewOptions` | A Regular Table options type. |
|
|
66
|
+
| `RegularTableSlots` | A Regular Table slots type. |
|
|
67
|
+
| `SankeyDiagram` | A ScatterPlot type. |
|
|
68
|
+
| `SankeyDiagramViewOptions` | A Sankey Diagram options type. |
|
|
69
|
+
| `SankeyDiagramSlots` | A Sankey Diagram slots type. |
|
|
70
|
+
| `ScatterPlot` | A Scatter Plot type. |
|
|
71
|
+
| `ScatterPlotViewOptions` | A Scatter Plot options type. |
|
|
72
|
+
| `ScatterPlotSlots` | A Scatter Plot slots type. |
|
|
73
|
+
| `SlicerFilter` | A Slicer Filter type. |
|
|
74
|
+
| `SlicerFilterViewOptions` | A Slicer Filter options type. |
|
|
75
|
+
| `SlicerFilterSlots` | A Slicer Filter slots type. |
|
|
76
|
+
| `SliderFilter` | A Slider Filter type. |
|
|
77
|
+
| `SliderFilterViewOptions` | A Slider Filter options type. |
|
|
78
|
+
| `SliderFilterSlots` | A Slider Filter slots type. |
|
|
79
|
+
| `Text` | A Text type. |
|
|
80
|
+
| `TextViewOptions` | A Text options type. |
|
|
81
|
+
| `VizItemType` | A union type for content item types. |
|
|
82
|
+
| `Options` | A union type for all the options from all the charts. |
|
|
83
|
+
| `Slots` | A union type for all the slots from all the charts. |
|
|
84
|
+
|
|
85
|
+
## JSON Schemas
|
|
86
|
+
|
|
87
|
+
The library also provides JSON schemas for the content items. The schemas are provided as an object with the schema name as the key and the schema as the value.
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import { JSON_SCHEMAS } from '@luzmo/dashboard-contents-types';
|
|
91
|
+
|
|
92
|
+
console.log(JSON_SCHEMAS);
|
|
93
|
+
console.log(JSON_SCHEMAS['text-options.schema.json']);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The JSON schemas are not dereferenced. You can use a library like [json-schema-ref-parser](https://github.com/APIDevTools/json-schema-ref-parser) to dereference the schemas. `json-schema-ref-parser` is a Node library so to use it in a browser environment you should add a [configuration](https://github.com/APIDevTools/json-schema-ref-parser?tab=readme-ov-file#browser-support) for that.
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
import * as refParser from '@apidevtools/json-schema-ref-parser';
|
|
100
|
+
import { JSON_SCHEMAS } from '@luzmo/dashboard-contents-types';
|
|
101
|
+
|
|
102
|
+
const refParserResolver = {
|
|
103
|
+
order: 101,
|
|
104
|
+
canRead: /^https:\/\/developer\.luzmo\.com/,
|
|
105
|
+
read: (file, callback) => {
|
|
106
|
+
const name = file.url.split('/').pop();
|
|
107
|
+
const schema = JSON_SCHEMAS[name];
|
|
108
|
+
|
|
109
|
+
if (schema) {
|
|
110
|
+
callback(null, JSON.stringify(schema));
|
|
111
|
+
} else {
|
|
112
|
+
callback(new Error('Schema not found'));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const refParserOptions = {
|
|
118
|
+
mutateInputSchema: false,
|
|
119
|
+
resolve: {
|
|
120
|
+
http: refParserResolver,
|
|
121
|
+
external: true
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
refParser.dereference(JSON_SCHEMAS['area-chart-slots.schema.json'], refParserOptions)
|
|
126
|
+
.then((dereferencedSchema) => {
|
|
127
|
+
console.log(dereferencedSchema);
|
|
128
|
+
})
|
|
129
|
+
.catch((err) => {
|
|
130
|
+
console.error(err);
|
|
131
|
+
});
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
To validate a content item against a schema, you can use a library like [ajv](https://github.com/ajv-validator/ajv).
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
import Ajv from "ajv";
|
|
138
|
+
import ajvAddFormats from 'ajv-formats';
|
|
139
|
+
import { JSON_SCHEMAS } from '@luzmo/dashboard-contents-types';
|
|
140
|
+
|
|
141
|
+
const ajv = new Ajv({
|
|
142
|
+
schemas: Object.keys(JSON_SCHEMAS).map(key => JSON_SCHEMAS[key]),
|
|
143
|
+
allowUnionTypes: true,
|
|
144
|
+
strictTuples: false
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
ajvAddFormats(ajv);
|
|
148
|
+
|
|
149
|
+
const schemaId = 'https://developer.luzmo.com/assets/json-schemas/0.1.89/text-options.schema.json';
|
|
150
|
+
const validate = ajv.getSchema(schemaId);
|
|
151
|
+
const isValid = validate('VALUE TO VALIDATE');
|
|
152
|
+
|
|
153
|
+
console.log(isValid);
|
|
154
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-options.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"properties": {
|
|
5
5
|
"axis": {
|
|
@@ -293,7 +293,13 @@ declare const _default: {
|
|
|
293
293
|
"type": "object"
|
|
294
294
|
},
|
|
295
295
|
"color": {
|
|
296
|
+
"default": "",
|
|
296
297
|
"description": "The main color for the item, if omitted the default color from the theme will be used.",
|
|
298
|
+
"examples": [
|
|
299
|
+
"#FF5733",
|
|
300
|
+
"#33FF57",
|
|
301
|
+
"#5733FF"
|
|
302
|
+
],
|
|
297
303
|
"type": "string"
|
|
298
304
|
},
|
|
299
305
|
"display": {
|
|
@@ -1364,6 +1370,8 @@ declare const _default: {
|
|
|
1364
1370
|
"type": "string"
|
|
1365
1371
|
},
|
|
1366
1372
|
"nullBreak": {
|
|
1373
|
+
"default": false,
|
|
1374
|
+
"description": "Null break options",
|
|
1367
1375
|
"type": "boolean"
|
|
1368
1376
|
},
|
|
1369
1377
|
"theme": {
|
|
@@ -1390,6 +1398,12 @@ declare const _default: {
|
|
|
1390
1398
|
"type": "string"
|
|
1391
1399
|
},
|
|
1392
1400
|
"baseFontSize": {
|
|
1401
|
+
"description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
|
|
1402
|
+
"examples": [
|
|
1403
|
+
13,
|
|
1404
|
+
16,
|
|
1405
|
+
20
|
|
1406
|
+
],
|
|
1393
1407
|
"type": "number"
|
|
1394
1408
|
},
|
|
1395
1409
|
"borders": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
5
|
"ColumnSubtype": {
|
|
@@ -220,13 +220,13 @@ declare const _default: {
|
|
|
220
220
|
"items": {
|
|
221
221
|
"anyOf": [
|
|
222
222
|
{
|
|
223
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
223
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
226
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
229
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
230
230
|
}
|
|
231
231
|
]
|
|
232
232
|
},
|
|
@@ -249,13 +249,13 @@ declare const _default: {
|
|
|
249
249
|
"items": {
|
|
250
250
|
"anyOf": [
|
|
251
251
|
{
|
|
252
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
252
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
255
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
258
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
259
259
|
}
|
|
260
260
|
]
|
|
261
261
|
},
|
|
@@ -298,7 +298,7 @@ declare const _default: {
|
|
|
298
298
|
"type": "string"
|
|
299
299
|
},
|
|
300
300
|
"columnSubType": {
|
|
301
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
301
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/ColumnSubtype",
|
|
302
302
|
"description": "Column subtype"
|
|
303
303
|
},
|
|
304
304
|
"set": {
|
|
@@ -427,13 +427,13 @@ declare const _default: {
|
|
|
427
427
|
"items": {
|
|
428
428
|
"anyOf": [
|
|
429
429
|
{
|
|
430
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
430
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
433
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
436
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
437
437
|
}
|
|
438
438
|
]
|
|
439
439
|
},
|
|
@@ -453,13 +453,13 @@ declare const _default: {
|
|
|
453
453
|
"items": {
|
|
454
454
|
"anyOf": [
|
|
455
455
|
{
|
|
456
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
456
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/XAxisSlot"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
459
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/MeasureSlot"
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
462
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json#/definitions/LegendSlot"
|
|
463
463
|
}
|
|
464
464
|
]
|
|
465
465
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
3
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"description": "Area Chart item",
|
|
6
6
|
"properties": {
|
|
@@ -11,11 +11,11 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"options": {
|
|
13
13
|
"description": "Options of the Area Chart item",
|
|
14
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
14
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-options.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"slots": {
|
|
17
17
|
"description": "Data definition of the Area Chart item",
|
|
18
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
18
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/area-chart-slots.schema.json"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-options.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"properties": {
|
|
5
5
|
"axis": {
|
|
@@ -171,7 +171,13 @@ declare const _default: {
|
|
|
171
171
|
"type": "object"
|
|
172
172
|
},
|
|
173
173
|
"color": {
|
|
174
|
+
"default": "",
|
|
174
175
|
"description": "The main color for the item, if omitted the default color from the theme will be used.",
|
|
176
|
+
"examples": [
|
|
177
|
+
"#FF5733",
|
|
178
|
+
"#33FF57",
|
|
179
|
+
"#5733FF"
|
|
180
|
+
],
|
|
175
181
|
"type": "string"
|
|
176
182
|
},
|
|
177
183
|
"display": {
|
|
@@ -3385,6 +3391,12 @@ declare const _default: {
|
|
|
3385
3391
|
"type": "string"
|
|
3386
3392
|
},
|
|
3387
3393
|
"baseFontSize": {
|
|
3394
|
+
"description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
|
|
3395
|
+
"examples": [
|
|
3396
|
+
13,
|
|
3397
|
+
16,
|
|
3398
|
+
20
|
|
3399
|
+
],
|
|
3388
3400
|
"type": "number"
|
|
3389
3401
|
},
|
|
3390
3402
|
"borders": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
5
|
"ColumnSubtype": {
|
|
@@ -220,13 +220,13 @@ declare const _default: {
|
|
|
220
220
|
"items": {
|
|
221
221
|
"anyOf": [
|
|
222
222
|
{
|
|
223
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
223
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
226
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
229
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
230
230
|
}
|
|
231
231
|
]
|
|
232
232
|
},
|
|
@@ -249,13 +249,13 @@ declare const _default: {
|
|
|
249
249
|
"items": {
|
|
250
250
|
"anyOf": [
|
|
251
251
|
{
|
|
252
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
252
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
255
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
258
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
259
259
|
}
|
|
260
260
|
]
|
|
261
261
|
},
|
|
@@ -298,7 +298,7 @@ declare const _default: {
|
|
|
298
298
|
"type": "string"
|
|
299
299
|
},
|
|
300
300
|
"columnSubType": {
|
|
301
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
301
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/ColumnSubtype",
|
|
302
302
|
"description": "Column subtype"
|
|
303
303
|
},
|
|
304
304
|
"set": {
|
|
@@ -427,13 +427,13 @@ declare const _default: {
|
|
|
427
427
|
"items": {
|
|
428
428
|
"anyOf": [
|
|
429
429
|
{
|
|
430
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
430
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
433
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
436
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
437
437
|
}
|
|
438
438
|
]
|
|
439
439
|
},
|
|
@@ -453,13 +453,13 @@ declare const _default: {
|
|
|
453
453
|
"items": {
|
|
454
454
|
"anyOf": [
|
|
455
455
|
{
|
|
456
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
456
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/MeasureSlot"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
459
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/YAxisSlot"
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
462
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json#/definitions/LegendSlot"
|
|
463
463
|
}
|
|
464
464
|
]
|
|
465
465
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
3
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"description": "Bar Chart item",
|
|
6
6
|
"properties": {
|
|
@@ -11,11 +11,11 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"options": {
|
|
13
13
|
"description": "Options of the Bar Chart item",
|
|
14
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
14
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-options.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"slots": {
|
|
17
17
|
"description": "Data definition of the Bar Chart item",
|
|
18
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
18
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bar-chart-slots.schema.json"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-options.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"properties": {
|
|
5
5
|
"axis": {
|
|
@@ -178,7 +178,13 @@ declare const _default: {
|
|
|
178
178
|
"type": "number"
|
|
179
179
|
},
|
|
180
180
|
"color": {
|
|
181
|
+
"default": "",
|
|
181
182
|
"description": "The main color for the item, if omitted the default color from the theme will be used.",
|
|
183
|
+
"examples": [
|
|
184
|
+
"#FF5733",
|
|
185
|
+
"#33FF57",
|
|
186
|
+
"#5733FF"
|
|
187
|
+
],
|
|
182
188
|
"type": "string"
|
|
183
189
|
},
|
|
184
190
|
"display": {
|
|
@@ -1230,6 +1236,12 @@ declare const _default: {
|
|
|
1230
1236
|
"type": "string"
|
|
1231
1237
|
},
|
|
1232
1238
|
"baseFontSize": {
|
|
1239
|
+
"description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
|
|
1240
|
+
"examples": [
|
|
1241
|
+
13,
|
|
1242
|
+
16,
|
|
1243
|
+
20
|
|
1244
|
+
],
|
|
1233
1245
|
"type": "number"
|
|
1234
1246
|
},
|
|
1235
1247
|
"borders": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
5
|
"CategorySlot": {
|
|
@@ -10,13 +10,13 @@ declare const _default: {
|
|
|
10
10
|
"items": {
|
|
11
11
|
"anyOf": [
|
|
12
12
|
{
|
|
13
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
13
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/NumericSlotContent"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
16
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/HierarchySlotContent"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
19
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
},
|
|
@@ -247,7 +247,7 @@ declare const _default: {
|
|
|
247
247
|
"content": {
|
|
248
248
|
"description": "Measure slot definition",
|
|
249
249
|
"items": {
|
|
250
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
250
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/NumericSlotContent"
|
|
251
251
|
},
|
|
252
252
|
"maxItems": 1,
|
|
253
253
|
"type": "array"
|
|
@@ -289,7 +289,7 @@ declare const _default: {
|
|
|
289
289
|
"type": "string"
|
|
290
290
|
},
|
|
291
291
|
"columnSubType": {
|
|
292
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
292
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/ColumnSubtype",
|
|
293
293
|
"description": "Column subtype"
|
|
294
294
|
},
|
|
295
295
|
"set": {
|
|
@@ -415,10 +415,10 @@ declare const _default: {
|
|
|
415
415
|
"items": {
|
|
416
416
|
"anyOf": [
|
|
417
417
|
{
|
|
418
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
418
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/MeasureSlot"
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
421
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json#/definitions/CategorySlot"
|
|
422
422
|
}
|
|
423
423
|
]
|
|
424
424
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
3
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"description": "Box Plot item",
|
|
6
6
|
"properties": {
|
|
@@ -11,11 +11,11 @@ declare const _default: {
|
|
|
11
11
|
},
|
|
12
12
|
"options": {
|
|
13
13
|
"description": "Options of the Box Plot item",
|
|
14
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
14
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-options.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"slots": {
|
|
17
17
|
"description": "Data definition of the Box Plot item",
|
|
18
|
-
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
18
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.89/box-plot-slots.schema.json"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.89/bubble-chart-options.schema.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"properties": {
|
|
5
5
|
"categories": {
|
|
@@ -14,7 +14,13 @@ declare const _default: {
|
|
|
14
14
|
"type": "object"
|
|
15
15
|
},
|
|
16
16
|
"color": {
|
|
17
|
+
"default": "",
|
|
17
18
|
"description": "The main color for the item, if omitted the default color from the theme will be used.",
|
|
19
|
+
"examples": [
|
|
20
|
+
"#FF5733",
|
|
21
|
+
"#33FF57",
|
|
22
|
+
"#5733FF"
|
|
23
|
+
],
|
|
18
24
|
"type": "string"
|
|
19
25
|
},
|
|
20
26
|
"display": {
|
|
@@ -2977,6 +2983,12 @@ declare const _default: {
|
|
|
2977
2983
|
"type": "string"
|
|
2978
2984
|
},
|
|
2979
2985
|
"baseFontSize": {
|
|
2986
|
+
"description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
|
|
2987
|
+
"examples": [
|
|
2988
|
+
13,
|
|
2989
|
+
16,
|
|
2990
|
+
20
|
|
2991
|
+
],
|
|
2980
2992
|
"type": "number"
|
|
2981
2993
|
},
|
|
2982
2994
|
"borders": {
|