@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
@@ -84,6 +84,67 @@ declare const _default: {
84
84
  },
85
85
  "type": "object"
86
86
  },
87
+ "loader": {
88
+ "description": "The loader configuration",
89
+ "properties": {
90
+ "background": {
91
+ "default": "#f9f9f9",
92
+ "description": "Background color of the chart loader element",
93
+ "type": "string"
94
+ },
95
+ "fontColor": {
96
+ "default": "#5a5a5a",
97
+ "description": "Font color of the text of the chart loaders",
98
+ "type": "string"
99
+ },
100
+ "locale": {
101
+ "default": "en",
102
+ "description": "Locale to be used if \"msg\" is set",
103
+ "examples": [
104
+ "en",
105
+ "fr"
106
+ ],
107
+ "type": "string"
108
+ },
109
+ "mode": {
110
+ "default": "light",
111
+ "description": "Light or dark loader",
112
+ "type": "string"
113
+ },
114
+ "msg": {
115
+ "description": "Loading message",
116
+ "examples": [
117
+ "Loading dashboard..."
118
+ ],
119
+ "type": "string"
120
+ },
121
+ "showBranded": {
122
+ "default": false,
123
+ "description": "Shows the branded \"powered by\" information",
124
+ "type": "boolean"
125
+ },
126
+ "spinnerBackground": {
127
+ "default": "rgba(169, 169, 169, 0.14)",
128
+ "description": "Background color of the spinner",
129
+ "type": "string"
130
+ },
131
+ "spinnerColor": {
132
+ "default": "rgba(255, 165, 0, 0.7)",
133
+ "description": "Spinner color of the loader",
134
+ "type": "string"
135
+ }
136
+ },
137
+ "type": "object"
138
+ },
139
+ "locale": {
140
+ "default": "en",
141
+ "description": "Locale to be used",
142
+ "examples": [
143
+ "en",
144
+ "fr"
145
+ ],
146
+ "type": "string"
147
+ },
87
148
  "mode": {
88
149
  "default": "fill",
89
150
  "description": "Image mode: noResize, fit, fitHorizontal, fitVertical, fill, stretch",
@@ -100,37 +161,8 @@ declare const _default: {
100
161
  "theme": {
101
162
  "description": "Theme configuration",
102
163
  "properties": {
103
- "axis": {
104
- "description": "Axis styling",
105
- "examples": [
106
- {
107
- "fontSize": 12
108
- },
109
- {
110
- "fontSize": 10
111
- }
112
- ],
113
- "type": "object"
114
- },
115
- "background": {
116
- "description": "Background color",
117
- "examples": [
118
- "rgb(245, 245, 245)",
119
- "rgb(61, 61, 61)"
120
- ],
121
- "type": "string"
122
- },
123
- "baseFontSize": {
124
- "description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
125
- "examples": [
126
- 13,
127
- 16,
128
- 20
129
- ],
130
- "type": "number"
131
- },
132
164
  "borders": {
133
- "description": "Border styling",
165
+ "description": "Custom border styling",
134
166
  "properties": {
135
167
  "border-bottom-width": {
136
168
  "description": "Border bottom width",
@@ -199,7 +231,7 @@ declare const _default: {
199
231
  "type": "object"
200
232
  },
201
233
  "boxShadow": {
202
- "description": "Shadow styling",
234
+ "description": "Custom shadow styling",
203
235
  "properties": {
204
236
  "color": {
205
237
  "description": "Shadow color",
@@ -228,132 +260,16 @@ declare const _default: {
228
260
  },
229
261
  "type": "object"
230
262
  },
231
- "colors": {
232
- "description": "A list of theme colors",
233
- "examples": [
234
- [
235
- "rgb(122, 112, 112)",
236
- "rgb(175, 169, 169)",
237
- "rgb(228, 226, 226)"
238
- ],
239
- [
240
- "rgb(48, 36, 179)",
241
- "rgb(105, 93, 255)",
242
- "rgb(199, 194, 255)",
243
- "rgb(134, 4, 129)",
244
- "rgb(204, 55, 198)",
245
- "rgb(236, 180, 234)",
246
- "rgb(220, 141, 0)",
247
- "rgb(249, 206, 61)",
248
- "rgb(253, 237, 182)",
249
- "rgb(6, 142, 84)",
250
- "rgb(58, 213, 147)",
251
- "rgb(181, 239, 215)",
252
- "rgb(85, 78, 78)",
253
- "rgb(149, 141, 141)",
254
- "rgb(215, 212, 212)"
255
- ]
256
- ],
257
- "items": {
258
- "type": "string"
259
- },
260
- "type": "array"
261
- },
262
- "editBackground": {
263
- "description": "Edit background",
264
- "examples": [
265
- "rgb(228, 228, 228)",
266
- "rgb(245, 245, 245)",
267
- "rgb(61, 61, 61)"
268
- ],
269
- "type": "string"
270
- },
271
- "editModeBackground": {
272
- "description": "Edit mode background",
273
- "examples": [
274
- "rgb(245, 245, 245)"
275
- ],
276
- "type": "string"
277
- },
278
- "font": {
279
- "description": "Font styling",
280
- "properties": {
281
- "font-style": {
282
- "const": "normal",
283
- "description": "Font style",
284
- "examples": [
285
- "normal",
286
- "italic",
287
- "oblique"
288
- ],
289
- "type": "string"
290
- },
291
- "font-weight": {
292
- "description": "Font weight",
293
- "examples": [
294
- 400,
295
- 700
296
- ],
297
- "type": "number"
298
- },
299
- "fontFamily": {
300
- "description": "Font family",
301
- "examples": [
302
- "Lato",
303
- "Montserrat",
304
- "Roboto Mono",
305
- "Arial",
306
- "Times New Roman"
307
- ],
308
- "type": "string"
309
- },
310
- "fontSize": {
311
- "description": "Font size in px",
312
- "examples": [
313
- 10,
314
- 15,
315
- 18
316
- ],
317
- "type": "number"
318
- }
319
- },
320
- "type": "object"
321
- },
322
263
  "id": {
323
- "description": "Id of the theme, like \"seasonal\", \"urban\", etc.",
264
+ "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.",
324
265
  "examples": [
325
266
  "seasonal",
326
267
  "urban"
327
268
  ],
328
269
  "type": "string"
329
270
  },
330
- "itemSpecific": {
331
- "description": "Item specific styling",
332
- "properties": {
333
- "padding": {
334
- "description": "Padding of the item",
335
- "examples": [
336
- 0,
337
- 4,
338
- 8,
339
- 10
340
- ],
341
- "type": "number"
342
- },
343
- "rounding": {
344
- "description": "Rounding of the item",
345
- "examples": [
346
- 0,
347
- 8,
348
- 12
349
- ],
350
- "type": "number"
351
- }
352
- },
353
- "type": "object"
354
- },
355
271
  "itemsBackground": {
356
- "description": "Item background color",
272
+ "description": "Custom item background color",
357
273
  "examples": [
358
274
  "rgb(255, 255, 255)",
359
275
  "rgb(71, 69, 69)",
@@ -361,197 +277,8 @@ declare const _default: {
361
277
  ],
362
278
  "type": "string"
363
279
  },
364
- "legend": {
365
- "description": "Legend styling",
366
- "properties": {
367
- "fontSize": {
368
- "description": "Legend font size in px",
369
- "examples": [
370
- 12,
371
- 16
372
- ],
373
- "type": "number"
374
- },
375
- "lineHeight": {
376
- "description": "Legend line height in px",
377
- "examples": [
378
- 12,
379
- 16,
380
- 20
381
- ],
382
- "type": "number"
383
- },
384
- "type": {
385
- "description": "Legend type",
386
- "enum": [
387
- "circle",
388
- "line",
389
- "normal"
390
- ],
391
- "examples": [
392
- "normal",
393
- "line",
394
- "circle"
395
- ],
396
- "type": "string"
397
- }
398
- },
399
- "type": "object"
400
- },
401
- "mainColor": {
402
- "description": "Theme main color",
403
- "examples": [
404
- "rgb(123, 144, 255)",
405
- "rgb(255, 174, 52)",
406
- "rgb(123, 144, 255)"
407
- ],
408
- "type": "string"
409
- },
410
- "margins": {
411
- "description": "Dashboard vertical and horizontal margins",
412
- "examples": [
413
- [
414
- 16,
415
- 16
416
- ],
417
- [
418
- 20,
419
- 20
420
- ]
421
- ],
422
- "items": [
423
- {
424
- "type": "number"
425
- },
426
- {
427
- "type": "number"
428
- }
429
- ],
430
- "maxItems": 2,
431
- "minItems": 2,
432
- "type": "array"
433
- },
434
- "name": {
435
- "description": "Theme name",
436
- "examples": [
437
- "manual"
438
- ],
439
- "type": "string"
440
- },
441
- "title": {
442
- "description": "Title styling",
443
- "properties": {
444
- "align": {
445
- "description": "Title align",
446
- "enum": [
447
- "center",
448
- "left",
449
- "right"
450
- ],
451
- "examples": [
452
- "left",
453
- "center",
454
- "right"
455
- ],
456
- "type": "string"
457
- },
458
- "bold": {
459
- "description": "Is title bold",
460
- "examples": [
461
- true,
462
- false
463
- ],
464
- "type": "boolean"
465
- },
466
- "border": {
467
- "description": "Is title a border",
468
- "examples": [
469
- true,
470
- false
471
- ],
472
- "type": "boolean"
473
- },
474
- "fontSize": {
475
- "description": "Title's font size in px",
476
- "examples": [
477
- 16,
478
- 20
479
- ],
480
- "type": "number"
481
- },
482
- "italic": {
483
- "description": "Is title italic",
484
- "examples": [
485
- true,
486
- false
487
- ],
488
- "type": "boolean"
489
- },
490
- "lineHeight": {
491
- "description": "Title's line height in px",
492
- "examples": [
493
- 30,
494
- 42,
495
- 50
496
- ],
497
- "type": "number"
498
- },
499
- "underline": {
500
- "description": "Is title underline",
501
- "examples": [
502
- true,
503
- false
504
- ],
505
- "type": "boolean"
506
- }
507
- },
508
- "type": "object"
509
- },
510
- "tooltip": {
511
- "description": "Tooltip styling",
512
- "properties": {
513
- "background": {
514
- "description": "Tooltip's background",
515
- "examples": [
516
- "rgb(248, 248, 248)",
517
- "rgb(248, 248, 248)",
518
- "rgb(130, 128, 128)",
519
- "rgb(61, 61, 61)"
520
- ],
521
- "type": "string"
522
- },
523
- "fontSize": {
524
- "description": "Tooltip's font size in px",
525
- "examples": [
526
- 12,
527
- 16,
528
- 20
529
- ],
530
- "type": "number"
531
- },
532
- "lineHeight": {
533
- "description": "Tooltip's line height in px",
534
- "examples": [
535
- 12,
536
- 16,
537
- 20
538
- ],
539
- "type": "number"
540
- },
541
- "opacity": {
542
- "description": "Tooltip's opacity",
543
- "examples": [
544
- 0.5,
545
- 0.8,
546
- 1
547
- ],
548
- "type": "number"
549
- }
550
- },
551
- "type": "object"
552
- },
553
280
  "type": {
554
- "description": "Theme type",
281
+ "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.",
555
282
  "examples": [
556
283
  "custom"
557
284
  ],
@@ -560,6 +287,14 @@ declare const _default: {
560
287
  },
561
288
  "type": "object"
562
289
  },
290
+ "timezoneId": {
291
+ "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",
292
+ "examples": [
293
+ "Europe/Brussels",
294
+ "America/New_York"
295
+ ],
296
+ "type": "string"
297
+ },
563
298
  "title": {
564
299
  "description": "Title in format {locale: \"title\"}, for example, {en: \"Title\"}",
565
300
  "examples": [