@luzmo/dashboard-contents-types 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +154 -0
  3. package/assets/json-schemas/area-chart-options.schema.json.d.ts +92 -286
  4. package/assets/json-schemas/area-chart-slots.schema.json.d.ts +13 -13
  5. package/assets/json-schemas/bar-chart-options.schema.json.d.ts +91 -134
  6. package/assets/json-schemas/bar-chart-slots.schema.json.d.ts +13 -13
  7. package/assets/json-schemas/box-plot-options.schema.json.d.ts +90 -170
  8. package/assets/json-schemas/box-plot-slots.schema.json.d.ts +13 -13
  9. package/assets/json-schemas/bubble-chart-options.schema.json.d.ts +91 -134
  10. package/assets/json-schemas/bubble-chart-slots.schema.json.d.ts +13 -13
  11. package/assets/json-schemas/bullet-chart-options.schema.json.d.ts +86 -180
  12. package/assets/json-schemas/bullet-chart-slots.schema.json.d.ts +13 -13
  13. package/assets/json-schemas/choropleth-map-options.schema.json.d.ts +86 -155
  14. package/assets/json-schemas/choropleth-map-slots.schema.json.d.ts +13 -40
  15. package/assets/json-schemas/circular-gauge-options.schema.json.d.ts +89 -181
  16. package/assets/json-schemas/circular-gauge-slots.schema.json.d.ts +13 -13
  17. package/assets/json-schemas/column-chart-options.schema.json.d.ts +91 -134
  18. package/assets/json-schemas/column-chart-slots.schema.json.d.ts +13 -13
  19. package/assets/json-schemas/combination-chart-options.schema.json.d.ts +91 -134
  20. package/assets/json-schemas/combination-chart-slots.schema.json.d.ts +13 -13
  21. package/assets/json-schemas/date-filter-options.schema.json.d.ts +84 -233
  22. package/assets/json-schemas/date-filter-slots.schema.json.d.ts +4 -4
  23. package/assets/json-schemas/donut-chart-options.schema.json.d.ts +90 -145
  24. package/assets/json-schemas/donut-chart-slots.schema.json.d.ts +13 -13
  25. package/assets/json-schemas/dropdown-filter-options.schema.json.d.ts +84 -233
  26. package/assets/json-schemas/dropdown-filter-slots.schema.json.d.ts +13 -13
  27. package/assets/json-schemas/evolution-number-options.schema.json.d.ts +89 -181
  28. package/assets/json-schemas/evolution-number-slots.schema.json.d.ts +13 -13
  29. package/assets/json-schemas/funnel-chart-options.schema.json.d.ts +90 -145
  30. package/assets/json-schemas/funnel-chart-slots.schema.json.d.ts +13 -13
  31. package/assets/json-schemas/image-options.schema.json.d.ts +74 -339
  32. package/assets/json-schemas/line-chart-options.schema.json.d.ts +91 -134
  33. package/assets/json-schemas/line-chart-slots.schema.json.d.ts +13 -13
  34. package/assets/json-schemas/options.schema.json.d.ts +3 -0
  35. package/assets/json-schemas/pivot-table-options.schema.json.d.ts +85 -191
  36. package/assets/json-schemas/pivot-table-slots.schema.json.d.ts +13 -13
  37. package/assets/json-schemas/regular-table-options.schema.json.d.ts +85 -191
  38. package/assets/json-schemas/regular-table-slots.schema.json.d.ts +13 -13
  39. package/assets/json-schemas/sankey-diagram-options.schema.json.d.ts +89 -181
  40. package/assets/json-schemas/sankey-diagram-slots.schema.json.d.ts +13 -13
  41. package/assets/json-schemas/scatter-plot-options.schema.json.d.ts +91 -134
  42. package/assets/json-schemas/scatter-plot-slots.schema.json.d.ts +13 -13
  43. package/assets/json-schemas/slicer-filter-options.schema.json.d.ts +84 -233
  44. package/assets/json-schemas/slicer-filter-slots.schema.json.d.ts +13 -13
  45. package/assets/json-schemas/slider-filter-options.schema.json.d.ts +84 -233
  46. package/assets/json-schemas/slider-filter-slots.schema.json.d.ts +9 -9
  47. package/assets/json-schemas/slots.schema.json.d.ts +3 -0
  48. package/assets/json-schemas/text-options.schema.json.d.ts +75 -296
  49. package/index.js +229 -151
  50. package/index.mjs +2572 -4890
  51. package/json-schemas.d.ts +1392 -2137
  52. package/json-schemas.d.ts.map +1 -1
  53. package/package.json +1 -1
  54. package/src/lib/area-chart/area-chart-options.d.ts +13 -7
  55. package/src/lib/area-chart/area-chart-options.d.ts.map +1 -1
  56. package/src/lib/bar-chart/bar-chart-options.d.ts +6 -3
  57. package/src/lib/bar-chart/bar-chart-options.d.ts.map +1 -1
  58. package/src/lib/box-plot/box-plot-options.d.ts +6 -3
  59. package/src/lib/box-plot/box-plot-options.d.ts.map +1 -1
  60. package/src/lib/bubble-chart/bubble-chart-options.d.ts +6 -3
  61. package/src/lib/bubble-chart/bubble-chart-options.d.ts.map +1 -1
  62. package/src/lib/bullet-chart/bullet-chart-options.d.ts +6 -1
  63. package/src/lib/bullet-chart/bullet-chart-options.d.ts.map +1 -1
  64. package/src/lib/choropleth-map/choropleth-map-options.d.ts +6 -2
  65. package/src/lib/choropleth-map/choropleth-map-options.d.ts.map +1 -1
  66. package/src/lib/circular-gauge/circular-gauge-options.d.ts +6 -1
  67. package/src/lib/circular-gauge/circular-gauge-options.d.ts.map +1 -1
  68. package/src/lib/column-chart/column-chart-options.d.ts +6 -3
  69. package/src/lib/column-chart/column-chart-options.d.ts.map +1 -1
  70. package/src/lib/combination-chart/combination-chart-options.d.ts +6 -3
  71. package/src/lib/combination-chart/combination-chart-options.d.ts.map +1 -1
  72. package/src/lib/conditional-number/conditional-number-options.d.ts +6 -1
  73. package/src/lib/conditional-number/conditional-number-options.d.ts.map +1 -1
  74. package/src/lib/date-filter/date-filter-options.d.ts +7 -4
  75. package/src/lib/date-filter/date-filter-options.d.ts.map +1 -1
  76. package/src/lib/donut-chart/donut-chart-options.d.ts +6 -2
  77. package/src/lib/donut-chart/donut-chart-options.d.ts.map +1 -1
  78. package/src/lib/dropdown-filter/dropdown-filter-options.d.ts +7 -3
  79. package/src/lib/dropdown-filter/dropdown-filter-options.d.ts.map +1 -1
  80. package/src/lib/evolution-number/evolution-number-options.d.ts +6 -1
  81. package/src/lib/evolution-number/evolution-number-options.d.ts.map +1 -1
  82. package/src/lib/funnel-chart/funnel-chart-options.d.ts +6 -2
  83. package/src/lib/funnel-chart/funnel-chart-options.d.ts.map +1 -1
  84. package/src/lib/image/image-options.d.ts +6 -1
  85. package/src/lib/image/image-options.d.ts.map +1 -1
  86. package/src/lib/line-chart/line-chart-options.d.ts +6 -3
  87. package/src/lib/line-chart/line-chart-options.d.ts.map +1 -1
  88. package/src/lib/pivot-table/pivot-table-options.d.ts +6 -2
  89. package/src/lib/pivot-table/pivot-table-options.d.ts.map +1 -1
  90. package/src/lib/regular-table/regular-table-options.d.ts +6 -1
  91. package/src/lib/regular-table/regular-table-options.d.ts.map +1 -1
  92. package/src/lib/sankey-diagram/sankey-diagram-options.d.ts +6 -2
  93. package/src/lib/sankey-diagram/sankey-diagram-options.d.ts.map +1 -1
  94. package/src/lib/scatter-plot/scatter-plot-options.d.ts +6 -3
  95. package/src/lib/scatter-plot/scatter-plot-options.d.ts.map +1 -1
  96. package/src/lib/search-filter/search-filter-options.d.ts +6 -2
  97. package/src/lib/search-filter/search-filter-options.d.ts.map +1 -1
  98. package/src/lib/shared/index.d.ts +2 -3
  99. package/src/lib/shared/index.d.ts.map +1 -1
  100. package/src/lib/shared/object-view-options.d.ts +2 -1
  101. package/src/lib/shared/object-view-options.d.ts.map +1 -1
  102. package/src/lib/shared/slots.d.ts +8 -6
  103. package/src/lib/shared/slots.d.ts.map +1 -1
  104. package/src/lib/shared/theme.d.ts +87 -81
  105. package/src/lib/shared/theme.d.ts.map +1 -1
  106. package/src/lib/shared/viz-item.d.ts +60 -0
  107. package/src/lib/shared/viz-item.d.ts.map +1 -0
  108. package/src/lib/slicer-filter/slicer-filter-options.d.ts +6 -2
  109. package/src/lib/slicer-filter/slicer-filter-options.d.ts.map +1 -1
  110. package/src/lib/slider-filter/slider-filter-options.d.ts +6 -2
  111. package/src/lib/slider-filter/slider-filter-options.d.ts.map +1 -1
  112. package/src/lib/text/text-options.d.ts +6 -1
  113. package/src/lib/text/text-options.d.ts.map +1 -1
  114. package/src/options.d.ts +1 -1
  115. package/src/options.d.ts.map +1 -1
  116. package/src/lib/shared/axis-view-options.d.ts +0 -3
  117. package/src/lib/shared/axis-view-options.d.ts.map +0 -1
@@ -28,6 +28,67 @@ declare const _default: {
28
28
  ],
29
29
  "type": "object"
30
30
  },
31
+ "loader": {
32
+ "description": "The loader configuration",
33
+ "properties": {
34
+ "background": {
35
+ "default": "#f9f9f9",
36
+ "description": "Background color of the chart loader element",
37
+ "type": "string"
38
+ },
39
+ "fontColor": {
40
+ "default": "#5a5a5a",
41
+ "description": "Font color of the text of the chart loaders",
42
+ "type": "string"
43
+ },
44
+ "locale": {
45
+ "default": "en",
46
+ "description": "Locale to be used if \"msg\" is set",
47
+ "examples": [
48
+ "en",
49
+ "fr"
50
+ ],
51
+ "type": "string"
52
+ },
53
+ "mode": {
54
+ "default": "light",
55
+ "description": "Light or dark loader",
56
+ "type": "string"
57
+ },
58
+ "msg": {
59
+ "description": "Loading message",
60
+ "examples": [
61
+ "Loading dashboard..."
62
+ ],
63
+ "type": "string"
64
+ },
65
+ "showBranded": {
66
+ "default": false,
67
+ "description": "Shows the branded \"powered by\" information",
68
+ "type": "boolean"
69
+ },
70
+ "spinnerBackground": {
71
+ "default": "rgba(169, 169, 169, 0.14)",
72
+ "description": "Background color of the spinner",
73
+ "type": "string"
74
+ },
75
+ "spinnerColor": {
76
+ "default": "rgba(255, 165, 0, 0.7)",
77
+ "description": "Spinner color of the loader",
78
+ "type": "string"
79
+ }
80
+ },
81
+ "type": "object"
82
+ },
83
+ "locale": {
84
+ "default": "en",
85
+ "description": "Locale to be used",
86
+ "examples": [
87
+ "en",
88
+ "fr"
89
+ ],
90
+ "type": "string"
91
+ },
31
92
  "padding": {
32
93
  "description": "Padding of the text item",
33
94
  "properties": {
@@ -57,37 +118,8 @@ declare const _default: {
57
118
  "theme": {
58
119
  "description": "Theme configuration",
59
120
  "properties": {
60
- "axis": {
61
- "description": "Axis styling",
62
- "examples": [
63
- {
64
- "fontSize": 12
65
- },
66
- {
67
- "fontSize": 10
68
- }
69
- ],
70
- "type": "object"
71
- },
72
- "background": {
73
- "description": "Background color",
74
- "examples": [
75
- "rgb(245, 245, 245)",
76
- "rgb(61, 61, 61)"
77
- ],
78
- "type": "string"
79
- },
80
- "baseFontSize": {
81
- "description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
82
- "examples": [
83
- 13,
84
- 16,
85
- 20
86
- ],
87
- "type": "number"
88
- },
89
121
  "borders": {
90
- "description": "Border styling",
122
+ "description": "Custom border styling",
91
123
  "properties": {
92
124
  "border-bottom-width": {
93
125
  "description": "Border bottom width",
@@ -156,7 +188,7 @@ declare const _default: {
156
188
  "type": "object"
157
189
  },
158
190
  "boxShadow": {
159
- "description": "Shadow styling",
191
+ "description": "Custom shadow styling",
160
192
  "properties": {
161
193
  "color": {
162
194
  "description": "Shadow color",
@@ -185,55 +217,8 @@ declare const _default: {
185
217
  },
186
218
  "type": "object"
187
219
  },
188
- "colors": {
189
- "description": "A list of theme colors",
190
- "examples": [
191
- [
192
- "rgb(122, 112, 112)",
193
- "rgb(175, 169, 169)",
194
- "rgb(228, 226, 226)"
195
- ],
196
- [
197
- "rgb(48, 36, 179)",
198
- "rgb(105, 93, 255)",
199
- "rgb(199, 194, 255)",
200
- "rgb(134, 4, 129)",
201
- "rgb(204, 55, 198)",
202
- "rgb(236, 180, 234)",
203
- "rgb(220, 141, 0)",
204
- "rgb(249, 206, 61)",
205
- "rgb(253, 237, 182)",
206
- "rgb(6, 142, 84)",
207
- "rgb(58, 213, 147)",
208
- "rgb(181, 239, 215)",
209
- "rgb(85, 78, 78)",
210
- "rgb(149, 141, 141)",
211
- "rgb(215, 212, 212)"
212
- ]
213
- ],
214
- "items": {
215
- "type": "string"
216
- },
217
- "type": "array"
218
- },
219
- "editBackground": {
220
- "description": "Edit background",
221
- "examples": [
222
- "rgb(228, 228, 228)",
223
- "rgb(245, 245, 245)",
224
- "rgb(61, 61, 61)"
225
- ],
226
- "type": "string"
227
- },
228
- "editModeBackground": {
229
- "description": "Edit mode background",
230
- "examples": [
231
- "rgb(245, 245, 245)"
232
- ],
233
- "type": "string"
234
- },
235
220
  "font": {
236
- "description": "Font styling",
221
+ "description": "Custom font styling",
237
222
  "properties": {
238
223
  "font-style": {
239
224
  "const": "normal",
@@ -277,40 +262,15 @@ declare const _default: {
277
262
  "type": "object"
278
263
  },
279
264
  "id": {
280
- "description": "Id of the theme, like \"seasonal\", \"urban\", etc.",
265
+ "description": "Id of the theme, for example, \"seasonal\", \"urban\" or custom theme uuid. If you just pass custom theme options, it have to be skipped.",
281
266
  "examples": [
282
267
  "seasonal",
283
268
  "urban"
284
269
  ],
285
270
  "type": "string"
286
271
  },
287
- "itemSpecific": {
288
- "description": "Item specific styling",
289
- "properties": {
290
- "padding": {
291
- "description": "Padding of the item",
292
- "examples": [
293
- 0,
294
- 4,
295
- 8,
296
- 10
297
- ],
298
- "type": "number"
299
- },
300
- "rounding": {
301
- "description": "Rounding of the item",
302
- "examples": [
303
- 0,
304
- 8,
305
- 12
306
- ],
307
- "type": "number"
308
- }
309
- },
310
- "type": "object"
311
- },
312
272
  "itemsBackground": {
313
- "description": "Item background color",
273
+ "description": "Custom item background color",
314
274
  "examples": [
315
275
  "rgb(255, 255, 255)",
316
276
  "rgb(71, 69, 69)",
@@ -318,197 +278,8 @@ declare const _default: {
318
278
  ],
319
279
  "type": "string"
320
280
  },
321
- "legend": {
322
- "description": "Legend styling",
323
- "properties": {
324
- "fontSize": {
325
- "description": "Legend font size in px",
326
- "examples": [
327
- 12,
328
- 16
329
- ],
330
- "type": "number"
331
- },
332
- "lineHeight": {
333
- "description": "Legend line height in px",
334
- "examples": [
335
- 12,
336
- 16,
337
- 20
338
- ],
339
- "type": "number"
340
- },
341
- "type": {
342
- "description": "Legend type",
343
- "enum": [
344
- "circle",
345
- "line",
346
- "normal"
347
- ],
348
- "examples": [
349
- "normal",
350
- "line",
351
- "circle"
352
- ],
353
- "type": "string"
354
- }
355
- },
356
- "type": "object"
357
- },
358
- "mainColor": {
359
- "description": "Theme main color",
360
- "examples": [
361
- "rgb(123, 144, 255)",
362
- "rgb(255, 174, 52)",
363
- "rgb(123, 144, 255)"
364
- ],
365
- "type": "string"
366
- },
367
- "margins": {
368
- "description": "Dashboard vertical and horizontal margins",
369
- "examples": [
370
- [
371
- 16,
372
- 16
373
- ],
374
- [
375
- 20,
376
- 20
377
- ]
378
- ],
379
- "items": [
380
- {
381
- "type": "number"
382
- },
383
- {
384
- "type": "number"
385
- }
386
- ],
387
- "maxItems": 2,
388
- "minItems": 2,
389
- "type": "array"
390
- },
391
- "name": {
392
- "description": "Theme name",
393
- "examples": [
394
- "manual"
395
- ],
396
- "type": "string"
397
- },
398
- "title": {
399
- "description": "Title styling",
400
- "properties": {
401
- "align": {
402
- "description": "Title align",
403
- "enum": [
404
- "center",
405
- "left",
406
- "right"
407
- ],
408
- "examples": [
409
- "left",
410
- "center",
411
- "right"
412
- ],
413
- "type": "string"
414
- },
415
- "bold": {
416
- "description": "Is title bold",
417
- "examples": [
418
- true,
419
- false
420
- ],
421
- "type": "boolean"
422
- },
423
- "border": {
424
- "description": "Is title a border",
425
- "examples": [
426
- true,
427
- false
428
- ],
429
- "type": "boolean"
430
- },
431
- "fontSize": {
432
- "description": "Title's font size in px",
433
- "examples": [
434
- 16,
435
- 20
436
- ],
437
- "type": "number"
438
- },
439
- "italic": {
440
- "description": "Is title italic",
441
- "examples": [
442
- true,
443
- false
444
- ],
445
- "type": "boolean"
446
- },
447
- "lineHeight": {
448
- "description": "Title's line height in px",
449
- "examples": [
450
- 30,
451
- 42,
452
- 50
453
- ],
454
- "type": "number"
455
- },
456
- "underline": {
457
- "description": "Is title underline",
458
- "examples": [
459
- true,
460
- false
461
- ],
462
- "type": "boolean"
463
- }
464
- },
465
- "type": "object"
466
- },
467
- "tooltip": {
468
- "description": "Tooltip styling",
469
- "properties": {
470
- "background": {
471
- "description": "Tooltip's background",
472
- "examples": [
473
- "rgb(248, 248, 248)",
474
- "rgb(248, 248, 248)",
475
- "rgb(130, 128, 128)",
476
- "rgb(61, 61, 61)"
477
- ],
478
- "type": "string"
479
- },
480
- "fontSize": {
481
- "description": "Tooltip's font size in px",
482
- "examples": [
483
- 12,
484
- 16,
485
- 20
486
- ],
487
- "type": "number"
488
- },
489
- "lineHeight": {
490
- "description": "Tooltip's line height in px",
491
- "examples": [
492
- 12,
493
- 16,
494
- 20
495
- ],
496
- "type": "number"
497
- },
498
- "opacity": {
499
- "description": "Tooltip's opacity",
500
- "examples": [
501
- 0.5,
502
- 0.8,
503
- 1
504
- ],
505
- "type": "number"
506
- }
507
- },
508
- "type": "object"
509
- },
510
281
  "type": {
511
- "description": "Theme type",
282
+ "description": "It should be \"custom\" if custom theme id is specified or if you specify custom theme options to set the theme. Skip it otherwise.",
512
283
  "examples": [
513
284
  "custom"
514
285
  ],
@@ -517,6 +288,14 @@ declare const _default: {
517
288
  },
518
289
  "type": "object"
519
290
  },
291
+ "timezoneId": {
292
+ "description": "The timezone that will be used in the dashboard. This timezone id needs to be a valid id that is available in the IANA timezone database",
293
+ "examples": [
294
+ "Europe/Brussels",
295
+ "America/New_York"
296
+ ],
297
+ "type": "string"
298
+ },
520
299
  "title": {
521
300
  "description": "Title in format {locale: \"title\"}, for example, {en: \"Title\"}",
522
301
  "examples": [