@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
@@ -204,6 +204,9 @@ declare const _default: {
204
204
  "currency_id": {
205
205
  "type": "string"
206
206
  },
207
+ "description": {
208
+ "type": "object"
209
+ },
207
210
  "duration_format": {
208
211
  "enum": [
209
212
  "long",
@@ -657,7 +660,7 @@ declare const _default: {
657
660
  "type": "string"
658
661
  },
659
662
  "formula": {
660
- "description": "A dataset formula id or an ad-hoc formula. A formula is an entity similar to a column. You can add formulas on the dataset details page or use ad-hoc formulas.",
663
+ "description": "A dataset formula id or an ad-hoc formula. A formula is an entity similar to a column. You can add formulas on the dataset details page or use ad-hoc formulas. You can find more information about formulas in the article https://academy.luzmo.com/article/52tm82oo",
661
664
  "type": "string"
662
665
  },
663
666
  "grandTotals": {
@@ -704,18 +707,18 @@ declare const _default: {
704
707
  "type": "string"
705
708
  },
706
709
  "periodOverPeriod": {
707
- "description": "Settings to configure period over period comparison",
710
+ "description": "Settings to configure period over period comparison. It can be used only in a measure slot.",
708
711
  "properties": {
709
712
  "level": {
710
- "description": "0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
713
+ "description": "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
711
714
  "type": "number"
712
715
  },
713
716
  "periodToDate": {
714
- "description": "period to date comparison",
717
+ "description": "Turn ON/OFF period to date comparison",
715
718
  "type": "boolean"
716
719
  },
717
720
  "quantity": {
718
- "description": "number of periods",
721
+ "description": "Number of periods",
719
722
  "type": "number"
720
723
  },
721
724
  "type": {
@@ -796,6 +799,67 @@ declare const _default: {
796
799
  },
797
800
  "type": "object"
798
801
  },
802
+ "loader": {
803
+ "description": "The loader configuration",
804
+ "properties": {
805
+ "background": {
806
+ "default": "#f9f9f9",
807
+ "description": "Background color of the chart loader element",
808
+ "type": "string"
809
+ },
810
+ "fontColor": {
811
+ "default": "#5a5a5a",
812
+ "description": "Font color of the text of the chart loaders",
813
+ "type": "string"
814
+ },
815
+ "locale": {
816
+ "default": "en",
817
+ "description": "Locale to be used if \"msg\" is set",
818
+ "examples": [
819
+ "en",
820
+ "fr"
821
+ ],
822
+ "type": "string"
823
+ },
824
+ "mode": {
825
+ "default": "light",
826
+ "description": "Light or dark loader",
827
+ "type": "string"
828
+ },
829
+ "msg": {
830
+ "description": "Loading message",
831
+ "examples": [
832
+ "Loading dashboard..."
833
+ ],
834
+ "type": "string"
835
+ },
836
+ "showBranded": {
837
+ "default": false,
838
+ "description": "Shows the branded \"powered by\" information",
839
+ "type": "boolean"
840
+ },
841
+ "spinnerBackground": {
842
+ "default": "rgba(169, 169, 169, 0.14)",
843
+ "description": "Background color of the spinner",
844
+ "type": "string"
845
+ },
846
+ "spinnerColor": {
847
+ "default": "rgba(255, 165, 0, 0.7)",
848
+ "description": "Spinner color of the loader",
849
+ "type": "string"
850
+ }
851
+ },
852
+ "type": "object"
853
+ },
854
+ "locale": {
855
+ "default": "en",
856
+ "description": "Locale to be used",
857
+ "examples": [
858
+ "en",
859
+ "fr"
860
+ ],
861
+ "type": "string"
862
+ },
799
863
  "padding": {
800
864
  "description": "Padding of the date filter",
801
865
  "properties": {
@@ -815,37 +879,8 @@ declare const _default: {
815
879
  "theme": {
816
880
  "description": "Theme configuration",
817
881
  "properties": {
818
- "axis": {
819
- "description": "Axis styling",
820
- "examples": [
821
- {
822
- "fontSize": 12
823
- },
824
- {
825
- "fontSize": 10
826
- }
827
- ],
828
- "type": "object"
829
- },
830
- "background": {
831
- "description": "Background color",
832
- "examples": [
833
- "rgb(245, 245, 245)",
834
- "rgb(61, 61, 61)"
835
- ],
836
- "type": "string"
837
- },
838
- "baseFontSize": {
839
- "description": "Base font size, usually it participates in calculations related to font sizes, spacings, etc.",
840
- "examples": [
841
- 13,
842
- 16,
843
- 20
844
- ],
845
- "type": "number"
846
- },
847
882
  "borders": {
848
- "description": "Border styling",
883
+ "description": "Custom border styling",
849
884
  "properties": {
850
885
  "border-bottom-width": {
851
886
  "description": "Border bottom width",
@@ -914,7 +949,7 @@ declare const _default: {
914
949
  "type": "object"
915
950
  },
916
951
  "boxShadow": {
917
- "description": "Shadow styling",
952
+ "description": "Custom shadow styling",
918
953
  "properties": {
919
954
  "color": {
920
955
  "description": "Shadow color",
@@ -943,55 +978,8 @@ declare const _default: {
943
978
  },
944
979
  "type": "object"
945
980
  },
946
- "colors": {
947
- "description": "A list of theme colors",
948
- "examples": [
949
- [
950
- "rgb(122, 112, 112)",
951
- "rgb(175, 169, 169)",
952
- "rgb(228, 226, 226)"
953
- ],
954
- [
955
- "rgb(48, 36, 179)",
956
- "rgb(105, 93, 255)",
957
- "rgb(199, 194, 255)",
958
- "rgb(134, 4, 129)",
959
- "rgb(204, 55, 198)",
960
- "rgb(236, 180, 234)",
961
- "rgb(220, 141, 0)",
962
- "rgb(249, 206, 61)",
963
- "rgb(253, 237, 182)",
964
- "rgb(6, 142, 84)",
965
- "rgb(58, 213, 147)",
966
- "rgb(181, 239, 215)",
967
- "rgb(85, 78, 78)",
968
- "rgb(149, 141, 141)",
969
- "rgb(215, 212, 212)"
970
- ]
971
- ],
972
- "items": {
973
- "type": "string"
974
- },
975
- "type": "array"
976
- },
977
- "editBackground": {
978
- "description": "Edit background",
979
- "examples": [
980
- "rgb(228, 228, 228)",
981
- "rgb(245, 245, 245)",
982
- "rgb(61, 61, 61)"
983
- ],
984
- "type": "string"
985
- },
986
- "editModeBackground": {
987
- "description": "Edit mode background",
988
- "examples": [
989
- "rgb(245, 245, 245)"
990
- ],
991
- "type": "string"
992
- },
993
981
  "font": {
994
- "description": "Font styling",
982
+ "description": "Custom font styling",
995
983
  "properties": {
996
984
  "font-style": {
997
985
  "const": "normal",
@@ -1035,40 +1023,15 @@ declare const _default: {
1035
1023
  "type": "object"
1036
1024
  },
1037
1025
  "id": {
1038
- "description": "Id of the theme, like \"seasonal\", \"urban\", etc.",
1026
+ "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.",
1039
1027
  "examples": [
1040
1028
  "seasonal",
1041
1029
  "urban"
1042
1030
  ],
1043
1031
  "type": "string"
1044
1032
  },
1045
- "itemSpecific": {
1046
- "description": "Item specific styling",
1047
- "properties": {
1048
- "padding": {
1049
- "description": "Padding of the item",
1050
- "examples": [
1051
- 0,
1052
- 4,
1053
- 8,
1054
- 10
1055
- ],
1056
- "type": "number"
1057
- },
1058
- "rounding": {
1059
- "description": "Rounding of the item",
1060
- "examples": [
1061
- 0,
1062
- 8,
1063
- 12
1064
- ],
1065
- "type": "number"
1066
- }
1067
- },
1068
- "type": "object"
1069
- },
1070
1033
  "itemsBackground": {
1071
- "description": "Item background color",
1034
+ "description": "Custom item background color",
1072
1035
  "examples": [
1073
1036
  "rgb(255, 255, 255)",
1074
1037
  "rgb(71, 69, 69)",
@@ -1076,85 +1039,8 @@ declare const _default: {
1076
1039
  ],
1077
1040
  "type": "string"
1078
1041
  },
1079
- "legend": {
1080
- "description": "Legend styling",
1081
- "properties": {
1082
- "fontSize": {
1083
- "description": "Legend font size in px",
1084
- "examples": [
1085
- 12,
1086
- 16
1087
- ],
1088
- "type": "number"
1089
- },
1090
- "lineHeight": {
1091
- "description": "Legend line height in px",
1092
- "examples": [
1093
- 12,
1094
- 16,
1095
- 20
1096
- ],
1097
- "type": "number"
1098
- },
1099
- "type": {
1100
- "description": "Legend type",
1101
- "enum": [
1102
- "circle",
1103
- "line",
1104
- "normal"
1105
- ],
1106
- "examples": [
1107
- "normal",
1108
- "line",
1109
- "circle"
1110
- ],
1111
- "type": "string"
1112
- }
1113
- },
1114
- "type": "object"
1115
- },
1116
- "mainColor": {
1117
- "description": "Theme main color",
1118
- "examples": [
1119
- "rgb(123, 144, 255)",
1120
- "rgb(255, 174, 52)",
1121
- "rgb(123, 144, 255)"
1122
- ],
1123
- "type": "string"
1124
- },
1125
- "margins": {
1126
- "description": "Dashboard vertical and horizontal margins",
1127
- "examples": [
1128
- [
1129
- 16,
1130
- 16
1131
- ],
1132
- [
1133
- 20,
1134
- 20
1135
- ]
1136
- ],
1137
- "items": [
1138
- {
1139
- "type": "number"
1140
- },
1141
- {
1142
- "type": "number"
1143
- }
1144
- ],
1145
- "maxItems": 2,
1146
- "minItems": 2,
1147
- "type": "array"
1148
- },
1149
- "name": {
1150
- "description": "Theme name",
1151
- "examples": [
1152
- "manual"
1153
- ],
1154
- "type": "string"
1155
- },
1156
1042
  "title": {
1157
- "description": "Title styling",
1043
+ "description": "Custom title styling",
1158
1044
  "properties": {
1159
1045
  "align": {
1160
1046
  "description": "Title align",
@@ -1222,51 +1108,8 @@ declare const _default: {
1222
1108
  },
1223
1109
  "type": "object"
1224
1110
  },
1225
- "tooltip": {
1226
- "description": "Tooltip styling",
1227
- "properties": {
1228
- "background": {
1229
- "description": "Tooltip's background",
1230
- "examples": [
1231
- "rgb(248, 248, 248)",
1232
- "rgb(248, 248, 248)",
1233
- "rgb(130, 128, 128)",
1234
- "rgb(61, 61, 61)"
1235
- ],
1236
- "type": "string"
1237
- },
1238
- "fontSize": {
1239
- "description": "Tooltip's font size in px",
1240
- "examples": [
1241
- 12,
1242
- 16,
1243
- 20
1244
- ],
1245
- "type": "number"
1246
- },
1247
- "lineHeight": {
1248
- "description": "Tooltip's line height in px",
1249
- "examples": [
1250
- 12,
1251
- 16,
1252
- 20
1253
- ],
1254
- "type": "number"
1255
- },
1256
- "opacity": {
1257
- "description": "Tooltip's opacity",
1258
- "examples": [
1259
- 0.5,
1260
- 0.8,
1261
- 1
1262
- ],
1263
- "type": "number"
1264
- }
1265
- },
1266
- "type": "object"
1267
- },
1268
1111
  "type": {
1269
- "description": "Theme type",
1112
+ "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.",
1270
1113
  "examples": [
1271
1114
  "custom"
1272
1115
  ],
@@ -1275,6 +1118,14 @@ declare const _default: {
1275
1118
  },
1276
1119
  "type": "object"
1277
1120
  },
1121
+ "timezoneId": {
1122
+ "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",
1123
+ "examples": [
1124
+ "Europe/Brussels",
1125
+ "America/New_York"
1126
+ ],
1127
+ "type": "string"
1128
+ },
1278
1129
  "title": {
1279
1130
  "description": "Title in format {locale: \"title\"}, for example, {en: \"Title\"}",
1280
1131
  "examples": [
@@ -88,18 +88,18 @@ declare const _default: {
88
88
  "type": "string"
89
89
  },
90
90
  "periodOverPeriod": {
91
- "description": "Settings to configure period over period comparison",
91
+ "description": "Settings to configure period over period comparison. It can be used only in a measure slot.",
92
92
  "properties": {
93
93
  "level": {
94
- "description": "0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
94
+ "description": "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
95
95
  "type": "number"
96
96
  },
97
97
  "periodToDate": {
98
- "description": "period to date comparison",
98
+ "description": "Turn ON/OFF period to date comparison",
99
99
  "type": "boolean"
100
100
  },
101
101
  "quantity": {
102
- "description": "number of periods",
102
+ "description": "Number of periods",
103
103
  "type": "number"
104
104
  },
105
105
  "type": {