@luzmo/dashboard-contents-types 1.0.1 → 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 (87) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/assets/json-schemas/area-chart-options.schema.json.d.ts +17 -129
  3. package/assets/json-schemas/bar-chart-options.schema.json.d.ts +17 -129
  4. package/assets/json-schemas/box-plot-options.schema.json.d.ts +16 -165
  5. package/assets/json-schemas/bubble-chart-options.schema.json.d.ts +17 -129
  6. package/assets/json-schemas/bullet-chart-options.schema.json.d.ts +12 -175
  7. package/assets/json-schemas/choropleth-map-options.schema.json.d.ts +12 -150
  8. package/assets/json-schemas/circular-gauge-options.schema.json.d.ts +15 -176
  9. package/assets/json-schemas/column-chart-options.schema.json.d.ts +17 -129
  10. package/assets/json-schemas/combination-chart-options.schema.json.d.ts +17 -129
  11. package/assets/json-schemas/date-filter-options.schema.json.d.ts +10 -228
  12. package/assets/json-schemas/donut-chart-options.schema.json.d.ts +16 -140
  13. package/assets/json-schemas/dropdown-filter-options.schema.json.d.ts +10 -228
  14. package/assets/json-schemas/evolution-number-options.schema.json.d.ts +15 -176
  15. package/assets/json-schemas/funnel-chart-options.schema.json.d.ts +16 -140
  16. package/assets/json-schemas/image-options.schema.json.d.ts +5 -339
  17. package/assets/json-schemas/line-chart-options.schema.json.d.ts +17 -129
  18. package/assets/json-schemas/pivot-table-options.schema.json.d.ts +11 -186
  19. package/assets/json-schemas/regular-table-options.schema.json.d.ts +11 -186
  20. package/assets/json-schemas/sankey-diagram-options.schema.json.d.ts +15 -176
  21. package/assets/json-schemas/scatter-plot-options.schema.json.d.ts +17 -129
  22. package/assets/json-schemas/slicer-filter-options.schema.json.d.ts +10 -228
  23. package/assets/json-schemas/slider-filter-options.schema.json.d.ts +10 -228
  24. package/assets/json-schemas/text-options.schema.json.d.ts +6 -296
  25. package/index.js +45 -45
  26. package/index.mjs +462 -4273
  27. package/json-schemas.d.ts +63 -2019
  28. package/json-schemas.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/lib/area-chart/area-chart-options.d.ts +6 -3
  31. package/src/lib/area-chart/area-chart-options.d.ts.map +1 -1
  32. package/src/lib/bar-chart/bar-chart-options.d.ts +6 -3
  33. package/src/lib/bar-chart/bar-chart-options.d.ts.map +1 -1
  34. package/src/lib/box-plot/box-plot-options.d.ts +6 -3
  35. package/src/lib/box-plot/box-plot-options.d.ts.map +1 -1
  36. package/src/lib/bubble-chart/bubble-chart-options.d.ts +6 -3
  37. package/src/lib/bubble-chart/bubble-chart-options.d.ts.map +1 -1
  38. package/src/lib/bullet-chart/bullet-chart-options.d.ts +6 -1
  39. package/src/lib/bullet-chart/bullet-chart-options.d.ts.map +1 -1
  40. package/src/lib/choropleth-map/choropleth-map-options.d.ts +6 -2
  41. package/src/lib/choropleth-map/choropleth-map-options.d.ts.map +1 -1
  42. package/src/lib/circular-gauge/circular-gauge-options.d.ts +6 -1
  43. package/src/lib/circular-gauge/circular-gauge-options.d.ts.map +1 -1
  44. package/src/lib/column-chart/column-chart-options.d.ts +6 -3
  45. package/src/lib/column-chart/column-chart-options.d.ts.map +1 -1
  46. package/src/lib/combination-chart/combination-chart-options.d.ts +6 -3
  47. package/src/lib/combination-chart/combination-chart-options.d.ts.map +1 -1
  48. package/src/lib/conditional-number/conditional-number-options.d.ts +6 -1
  49. package/src/lib/conditional-number/conditional-number-options.d.ts.map +1 -1
  50. package/src/lib/date-filter/date-filter-options.d.ts +6 -2
  51. package/src/lib/date-filter/date-filter-options.d.ts.map +1 -1
  52. package/src/lib/donut-chart/donut-chart-options.d.ts +6 -2
  53. package/src/lib/donut-chart/donut-chart-options.d.ts.map +1 -1
  54. package/src/lib/dropdown-filter/dropdown-filter-options.d.ts +6 -1
  55. package/src/lib/dropdown-filter/dropdown-filter-options.d.ts.map +1 -1
  56. package/src/lib/evolution-number/evolution-number-options.d.ts +6 -1
  57. package/src/lib/evolution-number/evolution-number-options.d.ts.map +1 -1
  58. package/src/lib/funnel-chart/funnel-chart-options.d.ts +6 -2
  59. package/src/lib/funnel-chart/funnel-chart-options.d.ts.map +1 -1
  60. package/src/lib/image/image-options.d.ts +6 -1
  61. package/src/lib/image/image-options.d.ts.map +1 -1
  62. package/src/lib/line-chart/line-chart-options.d.ts +6 -3
  63. package/src/lib/line-chart/line-chart-options.d.ts.map +1 -1
  64. package/src/lib/pivot-table/pivot-table-options.d.ts +6 -2
  65. package/src/lib/pivot-table/pivot-table-options.d.ts.map +1 -1
  66. package/src/lib/regular-table/regular-table-options.d.ts +6 -1
  67. package/src/lib/regular-table/regular-table-options.d.ts.map +1 -1
  68. package/src/lib/sankey-diagram/sankey-diagram-options.d.ts +6 -2
  69. package/src/lib/sankey-diagram/sankey-diagram-options.d.ts.map +1 -1
  70. package/src/lib/scatter-plot/scatter-plot-options.d.ts +6 -3
  71. package/src/lib/scatter-plot/scatter-plot-options.d.ts.map +1 -1
  72. package/src/lib/search-filter/search-filter-options.d.ts +6 -2
  73. package/src/lib/search-filter/search-filter-options.d.ts.map +1 -1
  74. package/src/lib/shared/index.d.ts +1 -3
  75. package/src/lib/shared/index.d.ts.map +1 -1
  76. package/src/lib/shared/slots.d.ts +1 -0
  77. package/src/lib/shared/slots.d.ts.map +1 -1
  78. package/src/lib/shared/theme.d.ts +87 -81
  79. package/src/lib/shared/theme.d.ts.map +1 -1
  80. package/src/lib/slicer-filter/slicer-filter-options.d.ts +6 -2
  81. package/src/lib/slicer-filter/slicer-filter-options.d.ts.map +1 -1
  82. package/src/lib/slider-filter/slider-filter-options.d.ts +6 -2
  83. package/src/lib/slider-filter/slider-filter-options.d.ts.map +1 -1
  84. package/src/lib/text/text-options.d.ts +6 -1
  85. package/src/lib/text/text-options.d.ts.map +1 -1
  86. package/src/lib/shared/axis-view-options.d.ts +0 -3
  87. package/src/lib/shared/axis-view-options.d.ts.map +0 -1
@@ -118,37 +118,8 @@ declare const _default: {
118
118
  "theme": {
119
119
  "description": "Theme configuration",
120
120
  "properties": {
121
- "axis": {
122
- "description": "Axis styling",
123
- "examples": [
124
- {
125
- "fontSize": 12
126
- },
127
- {
128
- "fontSize": 10
129
- }
130
- ],
131
- "type": "object"
132
- },
133
- "background": {
134
- "description": "Background color",
135
- "examples": [
136
- "rgb(245, 245, 245)",
137
- "rgb(61, 61, 61)"
138
- ],
139
- "type": "string"
140
- },
141
- "baseFontSize": {
142
- "description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
143
- "examples": [
144
- 13,
145
- 16,
146
- 20
147
- ],
148
- "type": "number"
149
- },
150
121
  "borders": {
151
- "description": "Border styling",
122
+ "description": "Custom border styling",
152
123
  "properties": {
153
124
  "border-bottom-width": {
154
125
  "description": "Border bottom width",
@@ -217,7 +188,7 @@ declare const _default: {
217
188
  "type": "object"
218
189
  },
219
190
  "boxShadow": {
220
- "description": "Shadow styling",
191
+ "description": "Custom shadow styling",
221
192
  "properties": {
222
193
  "color": {
223
194
  "description": "Shadow color",
@@ -246,55 +217,8 @@ declare const _default: {
246
217
  },
247
218
  "type": "object"
248
219
  },
249
- "colors": {
250
- "description": "A list of theme colors",
251
- "examples": [
252
- [
253
- "rgb(122, 112, 112)",
254
- "rgb(175, 169, 169)",
255
- "rgb(228, 226, 226)"
256
- ],
257
- [
258
- "rgb(48, 36, 179)",
259
- "rgb(105, 93, 255)",
260
- "rgb(199, 194, 255)",
261
- "rgb(134, 4, 129)",
262
- "rgb(204, 55, 198)",
263
- "rgb(236, 180, 234)",
264
- "rgb(220, 141, 0)",
265
- "rgb(249, 206, 61)",
266
- "rgb(253, 237, 182)",
267
- "rgb(6, 142, 84)",
268
- "rgb(58, 213, 147)",
269
- "rgb(181, 239, 215)",
270
- "rgb(85, 78, 78)",
271
- "rgb(149, 141, 141)",
272
- "rgb(215, 212, 212)"
273
- ]
274
- ],
275
- "items": {
276
- "type": "string"
277
- },
278
- "type": "array"
279
- },
280
- "editBackground": {
281
- "description": "Edit background",
282
- "examples": [
283
- "rgb(228, 228, 228)",
284
- "rgb(245, 245, 245)",
285
- "rgb(61, 61, 61)"
286
- ],
287
- "type": "string"
288
- },
289
- "editModeBackground": {
290
- "description": "Edit mode background",
291
- "examples": [
292
- "rgb(245, 245, 245)"
293
- ],
294
- "type": "string"
295
- },
296
220
  "font": {
297
- "description": "Font styling",
221
+ "description": "Custom font styling",
298
222
  "properties": {
299
223
  "font-style": {
300
224
  "const": "normal",
@@ -338,40 +262,15 @@ declare const _default: {
338
262
  "type": "object"
339
263
  },
340
264
  "id": {
341
- "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.",
342
266
  "examples": [
343
267
  "seasonal",
344
268
  "urban"
345
269
  ],
346
270
  "type": "string"
347
271
  },
348
- "itemSpecific": {
349
- "description": "Item specific styling",
350
- "properties": {
351
- "padding": {
352
- "description": "Padding of the item",
353
- "examples": [
354
- 0,
355
- 4,
356
- 8,
357
- 10
358
- ],
359
- "type": "number"
360
- },
361
- "rounding": {
362
- "description": "Rounding of the item",
363
- "examples": [
364
- 0,
365
- 8,
366
- 12
367
- ],
368
- "type": "number"
369
- }
370
- },
371
- "type": "object"
372
- },
373
272
  "itemsBackground": {
374
- "description": "Item background color",
273
+ "description": "Custom item background color",
375
274
  "examples": [
376
275
  "rgb(255, 255, 255)",
377
276
  "rgb(71, 69, 69)",
@@ -379,197 +278,8 @@ declare const _default: {
379
278
  ],
380
279
  "type": "string"
381
280
  },
382
- "legend": {
383
- "description": "Legend styling",
384
- "properties": {
385
- "fontSize": {
386
- "description": "Legend font size in px",
387
- "examples": [
388
- 12,
389
- 16
390
- ],
391
- "type": "number"
392
- },
393
- "lineHeight": {
394
- "description": "Legend line height in px",
395
- "examples": [
396
- 12,
397
- 16,
398
- 20
399
- ],
400
- "type": "number"
401
- },
402
- "type": {
403
- "description": "Legend type",
404
- "enum": [
405
- "circle",
406
- "line",
407
- "normal"
408
- ],
409
- "examples": [
410
- "normal",
411
- "line",
412
- "circle"
413
- ],
414
- "type": "string"
415
- }
416
- },
417
- "type": "object"
418
- },
419
- "mainColor": {
420
- "description": "Theme main color",
421
- "examples": [
422
- "rgb(123, 144, 255)",
423
- "rgb(255, 174, 52)",
424
- "rgb(123, 144, 255)"
425
- ],
426
- "type": "string"
427
- },
428
- "margins": {
429
- "description": "Dashboard vertical and horizontal margins",
430
- "examples": [
431
- [
432
- 16,
433
- 16
434
- ],
435
- [
436
- 20,
437
- 20
438
- ]
439
- ],
440
- "items": [
441
- {
442
- "type": "number"
443
- },
444
- {
445
- "type": "number"
446
- }
447
- ],
448
- "maxItems": 2,
449
- "minItems": 2,
450
- "type": "array"
451
- },
452
- "name": {
453
- "description": "Theme name",
454
- "examples": [
455
- "manual"
456
- ],
457
- "type": "string"
458
- },
459
- "title": {
460
- "description": "Title styling",
461
- "properties": {
462
- "align": {
463
- "description": "Title align",
464
- "enum": [
465
- "center",
466
- "left",
467
- "right"
468
- ],
469
- "examples": [
470
- "left",
471
- "center",
472
- "right"
473
- ],
474
- "type": "string"
475
- },
476
- "bold": {
477
- "description": "Is title bold",
478
- "examples": [
479
- true,
480
- false
481
- ],
482
- "type": "boolean"
483
- },
484
- "border": {
485
- "description": "Is title a border",
486
- "examples": [
487
- true,
488
- false
489
- ],
490
- "type": "boolean"
491
- },
492
- "fontSize": {
493
- "description": "Title's font size in px",
494
- "examples": [
495
- 16,
496
- 20
497
- ],
498
- "type": "number"
499
- },
500
- "italic": {
501
- "description": "Is title italic",
502
- "examples": [
503
- true,
504
- false
505
- ],
506
- "type": "boolean"
507
- },
508
- "lineHeight": {
509
- "description": "Title's line height in px",
510
- "examples": [
511
- 30,
512
- 42,
513
- 50
514
- ],
515
- "type": "number"
516
- },
517
- "underline": {
518
- "description": "Is title underline",
519
- "examples": [
520
- true,
521
- false
522
- ],
523
- "type": "boolean"
524
- }
525
- },
526
- "type": "object"
527
- },
528
- "tooltip": {
529
- "description": "Tooltip styling",
530
- "properties": {
531
- "background": {
532
- "description": "Tooltip's background",
533
- "examples": [
534
- "rgb(248, 248, 248)",
535
- "rgb(248, 248, 248)",
536
- "rgb(130, 128, 128)",
537
- "rgb(61, 61, 61)"
538
- ],
539
- "type": "string"
540
- },
541
- "fontSize": {
542
- "description": "Tooltip's font size in px",
543
- "examples": [
544
- 12,
545
- 16,
546
- 20
547
- ],
548
- "type": "number"
549
- },
550
- "lineHeight": {
551
- "description": "Tooltip's line height in px",
552
- "examples": [
553
- 12,
554
- 16,
555
- 20
556
- ],
557
- "type": "number"
558
- },
559
- "opacity": {
560
- "description": "Tooltip's opacity",
561
- "examples": [
562
- 0.5,
563
- 0.8,
564
- 1
565
- ],
566
- "type": "number"
567
- }
568
- },
569
- "type": "object"
570
- },
571
281
  "type": {
572
- "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.",
573
283
  "examples": [
574
284
  "custom"
575
285
  ],