@luzmo/embed 6.1.5 → 6.1.6
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/CHANGELOG.md +6 -0
- package/index.cjs +1564 -2
- package/index.js +1564 -2
- package/luzmo-embed.min.js +1564 -2
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -53767,6 +53767,1565 @@ var text_options_schema_default = {
|
|
|
53767
53767
|
type: "object"
|
|
53768
53768
|
};
|
|
53769
53769
|
|
|
53770
|
+
// libs/dashboard-contents-types/assets/json-schemas/search-filter.schema.json
|
|
53771
|
+
var search_filter_schema_default = {
|
|
53772
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
53773
|
+
$id: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter.schema.json",
|
|
53774
|
+
type: "object",
|
|
53775
|
+
description: "Search Filter item",
|
|
53776
|
+
properties: {
|
|
53777
|
+
type: {
|
|
53778
|
+
description: "Type of the item",
|
|
53779
|
+
type: "string",
|
|
53780
|
+
const: "search-filter"
|
|
53781
|
+
},
|
|
53782
|
+
options: {
|
|
53783
|
+
description: "Options of the Search Filter item",
|
|
53784
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-options.schema.json"
|
|
53785
|
+
},
|
|
53786
|
+
slots: {
|
|
53787
|
+
description: "Data definition of the Search Filter item",
|
|
53788
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json"
|
|
53789
|
+
}
|
|
53790
|
+
}
|
|
53791
|
+
};
|
|
53792
|
+
|
|
53793
|
+
// libs/dashboard-contents-types/assets/json-schemas/search-filter-options.schema.json
|
|
53794
|
+
var search_filter_options_schema_default = {
|
|
53795
|
+
$id: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-options.schema.json",
|
|
53796
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
53797
|
+
properties: {
|
|
53798
|
+
applyFiltersWithButton: {
|
|
53799
|
+
default: false,
|
|
53800
|
+
description: "Whether to auto apply filters or add the apply button",
|
|
53801
|
+
type: "boolean"
|
|
53802
|
+
},
|
|
53803
|
+
color: {
|
|
53804
|
+
default: "",
|
|
53805
|
+
description: "The main color for the item, if omitted the default color from the theme will be used.",
|
|
53806
|
+
examples: [
|
|
53807
|
+
"#FF5733",
|
|
53808
|
+
"#33FF57",
|
|
53809
|
+
"#5733FF"
|
|
53810
|
+
],
|
|
53811
|
+
type: "string"
|
|
53812
|
+
},
|
|
53813
|
+
display: {
|
|
53814
|
+
description: "General display options of the Search filter: title, label, placeholder, search and clear",
|
|
53815
|
+
properties: {
|
|
53816
|
+
label: {
|
|
53817
|
+
default: true,
|
|
53818
|
+
description: "Show or hide the label of the Search filter",
|
|
53819
|
+
type: "boolean"
|
|
53820
|
+
},
|
|
53821
|
+
placeholder: {
|
|
53822
|
+
default: true,
|
|
53823
|
+
description: "Show or hide the placeholder",
|
|
53824
|
+
type: "boolean"
|
|
53825
|
+
},
|
|
53826
|
+
title: {
|
|
53827
|
+
default: false,
|
|
53828
|
+
description: "Show or hide the title",
|
|
53829
|
+
type: "boolean"
|
|
53830
|
+
}
|
|
53831
|
+
},
|
|
53832
|
+
type: "object"
|
|
53833
|
+
},
|
|
53834
|
+
interactivity: {
|
|
53835
|
+
description: "Interactivity options",
|
|
53836
|
+
properties: {
|
|
53837
|
+
measureDimensionPicker: {
|
|
53838
|
+
default: [
|
|
53839
|
+
[]
|
|
53840
|
+
],
|
|
53841
|
+
description: "An array of measure dimension picker configurations",
|
|
53842
|
+
items: {
|
|
53843
|
+
description: "Measure dimension picker configuration",
|
|
53844
|
+
properties: {
|
|
53845
|
+
acceptFormula: {
|
|
53846
|
+
type: "boolean"
|
|
53847
|
+
},
|
|
53848
|
+
allAvailableColumns: {
|
|
53849
|
+
items: {
|
|
53850
|
+
properties: {
|
|
53851
|
+
columns: {
|
|
53852
|
+
items: {
|
|
53853
|
+
properties: {
|
|
53854
|
+
cardinality: {
|
|
53855
|
+
type: "number"
|
|
53856
|
+
},
|
|
53857
|
+
color: {
|
|
53858
|
+
type: "string"
|
|
53859
|
+
},
|
|
53860
|
+
columnHierarchies: {
|
|
53861
|
+
anyOf: [
|
|
53862
|
+
{
|
|
53863
|
+
items: {
|
|
53864
|
+
type: "string"
|
|
53865
|
+
},
|
|
53866
|
+
type: "array"
|
|
53867
|
+
},
|
|
53868
|
+
{
|
|
53869
|
+
items: {
|
|
53870
|
+
properties: {
|
|
53871
|
+
color: {
|
|
53872
|
+
type: "string"
|
|
53873
|
+
},
|
|
53874
|
+
id: {
|
|
53875
|
+
type: "string"
|
|
53876
|
+
},
|
|
53877
|
+
level: {
|
|
53878
|
+
type: "number"
|
|
53879
|
+
},
|
|
53880
|
+
name: {
|
|
53881
|
+
type: "object"
|
|
53882
|
+
}
|
|
53883
|
+
},
|
|
53884
|
+
type: "object"
|
|
53885
|
+
},
|
|
53886
|
+
type: "array"
|
|
53887
|
+
}
|
|
53888
|
+
]
|
|
53889
|
+
},
|
|
53890
|
+
currency: {
|
|
53891
|
+
properties: {
|
|
53892
|
+
id: {
|
|
53893
|
+
type: "string"
|
|
53894
|
+
},
|
|
53895
|
+
name: {
|
|
53896
|
+
type: "string"
|
|
53897
|
+
},
|
|
53898
|
+
symbol: {
|
|
53899
|
+
type: "string"
|
|
53900
|
+
}
|
|
53901
|
+
},
|
|
53902
|
+
type: "object"
|
|
53903
|
+
},
|
|
53904
|
+
currency_id: {
|
|
53905
|
+
type: "string"
|
|
53906
|
+
},
|
|
53907
|
+
description: {
|
|
53908
|
+
type: "object"
|
|
53909
|
+
},
|
|
53910
|
+
duration_format: {
|
|
53911
|
+
enum: [
|
|
53912
|
+
"long",
|
|
53913
|
+
"short",
|
|
53914
|
+
"time"
|
|
53915
|
+
],
|
|
53916
|
+
type: "string"
|
|
53917
|
+
},
|
|
53918
|
+
duration_levels: {
|
|
53919
|
+
items: {
|
|
53920
|
+
type: "number"
|
|
53921
|
+
},
|
|
53922
|
+
type: "array"
|
|
53923
|
+
},
|
|
53924
|
+
expression: {
|
|
53925
|
+
type: "string"
|
|
53926
|
+
},
|
|
53927
|
+
format: {
|
|
53928
|
+
type: "string"
|
|
53929
|
+
},
|
|
53930
|
+
hierarchyLevels: {
|
|
53931
|
+
items: {
|
|
53932
|
+
properties: {
|
|
53933
|
+
color: {
|
|
53934
|
+
type: "string"
|
|
53935
|
+
},
|
|
53936
|
+
id: {
|
|
53937
|
+
type: "string"
|
|
53938
|
+
},
|
|
53939
|
+
level: {
|
|
53940
|
+
type: "number"
|
|
53941
|
+
},
|
|
53942
|
+
name: {
|
|
53943
|
+
type: "object"
|
|
53944
|
+
}
|
|
53945
|
+
},
|
|
53946
|
+
type: "object"
|
|
53947
|
+
},
|
|
53948
|
+
type: "array"
|
|
53949
|
+
},
|
|
53950
|
+
hierarchy_enabled: {
|
|
53951
|
+
type: "boolean"
|
|
53952
|
+
},
|
|
53953
|
+
highestLevel: {
|
|
53954
|
+
type: "number"
|
|
53955
|
+
},
|
|
53956
|
+
id: {
|
|
53957
|
+
type: "string"
|
|
53958
|
+
},
|
|
53959
|
+
informat: {
|
|
53960
|
+
type: "string"
|
|
53961
|
+
},
|
|
53962
|
+
isFormula: {
|
|
53963
|
+
type: "boolean"
|
|
53964
|
+
},
|
|
53965
|
+
isLabel: {
|
|
53966
|
+
type: "boolean"
|
|
53967
|
+
},
|
|
53968
|
+
joins: {
|
|
53969
|
+
items: {
|
|
53970
|
+
properties: {
|
|
53971
|
+
currency_id: {
|
|
53972
|
+
type: [
|
|
53973
|
+
"null",
|
|
53974
|
+
"string"
|
|
53975
|
+
]
|
|
53976
|
+
},
|
|
53977
|
+
hierarchy_enabled: {
|
|
53978
|
+
type: "boolean"
|
|
53979
|
+
},
|
|
53980
|
+
id: {
|
|
53981
|
+
type: "string"
|
|
53982
|
+
},
|
|
53983
|
+
join: {
|
|
53984
|
+
properties: {
|
|
53985
|
+
column_id: {
|
|
53986
|
+
type: "string"
|
|
53987
|
+
},
|
|
53988
|
+
created_at: {
|
|
53989
|
+
type: "string"
|
|
53990
|
+
},
|
|
53991
|
+
joins_id: {
|
|
53992
|
+
type: "string"
|
|
53993
|
+
},
|
|
53994
|
+
subtype: {
|
|
53995
|
+
type: "string"
|
|
53996
|
+
},
|
|
53997
|
+
type: {
|
|
53998
|
+
enum: [
|
|
53999
|
+
"exact",
|
|
54000
|
+
"lookup"
|
|
54001
|
+
],
|
|
54002
|
+
type: "string"
|
|
54003
|
+
},
|
|
54004
|
+
update_at: {
|
|
54005
|
+
type: "string"
|
|
54006
|
+
},
|
|
54007
|
+
updated_at: {
|
|
54008
|
+
type: "string"
|
|
54009
|
+
}
|
|
54010
|
+
},
|
|
54011
|
+
type: "object"
|
|
54012
|
+
},
|
|
54013
|
+
securable_id: {
|
|
54014
|
+
type: "string"
|
|
54015
|
+
}
|
|
54016
|
+
},
|
|
54017
|
+
type: "object"
|
|
54018
|
+
},
|
|
54019
|
+
type: "array"
|
|
54020
|
+
},
|
|
54021
|
+
level: {
|
|
54022
|
+
type: "number"
|
|
54023
|
+
},
|
|
54024
|
+
lowestLevel: {
|
|
54025
|
+
type: "number"
|
|
54026
|
+
},
|
|
54027
|
+
name: {
|
|
54028
|
+
type: "object"
|
|
54029
|
+
},
|
|
54030
|
+
order: {
|
|
54031
|
+
type: "number"
|
|
54032
|
+
},
|
|
54033
|
+
securable_id: {
|
|
54034
|
+
type: "string"
|
|
54035
|
+
},
|
|
54036
|
+
source_name: {
|
|
54037
|
+
type: "string"
|
|
54038
|
+
},
|
|
54039
|
+
subtype: {
|
|
54040
|
+
enum: [
|
|
54041
|
+
"coordinates",
|
|
54042
|
+
"currency",
|
|
54043
|
+
"duration",
|
|
54044
|
+
"hierarchy_element_expression",
|
|
54045
|
+
"topography"
|
|
54046
|
+
],
|
|
54047
|
+
type: "string"
|
|
54048
|
+
},
|
|
54049
|
+
type: {
|
|
54050
|
+
enum: [
|
|
54051
|
+
"datetime",
|
|
54052
|
+
"hierarchy",
|
|
54053
|
+
"numeric",
|
|
54054
|
+
"spatial"
|
|
54055
|
+
],
|
|
54056
|
+
type: "string"
|
|
54057
|
+
},
|
|
54058
|
+
version: {
|
|
54059
|
+
type: "number"
|
|
54060
|
+
},
|
|
54061
|
+
width: {
|
|
54062
|
+
type: "number"
|
|
54063
|
+
}
|
|
54064
|
+
},
|
|
54065
|
+
type: "object"
|
|
54066
|
+
},
|
|
54067
|
+
type: "array"
|
|
54068
|
+
},
|
|
54069
|
+
datasetId: {
|
|
54070
|
+
format: "uuid",
|
|
54071
|
+
type: "string"
|
|
54072
|
+
},
|
|
54073
|
+
datasetName: {
|
|
54074
|
+
type: "object"
|
|
54075
|
+
},
|
|
54076
|
+
formulas: {
|
|
54077
|
+
items: {
|
|
54078
|
+
properties: {
|
|
54079
|
+
color: {
|
|
54080
|
+
type: "string"
|
|
54081
|
+
},
|
|
54082
|
+
currency: {
|
|
54083
|
+
properties: {
|
|
54084
|
+
id: {
|
|
54085
|
+
type: "string"
|
|
54086
|
+
},
|
|
54087
|
+
name: {
|
|
54088
|
+
type: "string"
|
|
54089
|
+
},
|
|
54090
|
+
symbol: {
|
|
54091
|
+
type: "string"
|
|
54092
|
+
}
|
|
54093
|
+
},
|
|
54094
|
+
type: "object"
|
|
54095
|
+
},
|
|
54096
|
+
currency_id: {
|
|
54097
|
+
type: "string"
|
|
54098
|
+
},
|
|
54099
|
+
duration_format: {
|
|
54100
|
+
enum: [
|
|
54101
|
+
"long",
|
|
54102
|
+
"short",
|
|
54103
|
+
"time"
|
|
54104
|
+
],
|
|
54105
|
+
type: "string"
|
|
54106
|
+
},
|
|
54107
|
+
duration_levels: {
|
|
54108
|
+
items: {
|
|
54109
|
+
type: "number"
|
|
54110
|
+
},
|
|
54111
|
+
type: "array"
|
|
54112
|
+
},
|
|
54113
|
+
expression: {
|
|
54114
|
+
type: "string"
|
|
54115
|
+
},
|
|
54116
|
+
format: {
|
|
54117
|
+
type: "string"
|
|
54118
|
+
},
|
|
54119
|
+
id: {
|
|
54120
|
+
type: "string"
|
|
54121
|
+
},
|
|
54122
|
+
informat: {
|
|
54123
|
+
enum: [
|
|
54124
|
+
"DD-MM-YYYY HH:mm:ss.SSS",
|
|
54125
|
+
"DD-MM-YYYY HH:mm:ss.SSS ZZ",
|
|
54126
|
+
"MM-DD-YYYY HH:mm:ss.SSS",
|
|
54127
|
+
"MM-DD-YYYY HH:mm:ss.SSS ZZ",
|
|
54128
|
+
"X",
|
|
54129
|
+
"YYYY-MM-DD HH:mm:ss.SSS",
|
|
54130
|
+
"YYYY-MM-DD HH:mm:ss.SSS ZZ",
|
|
54131
|
+
"hierarchy",
|
|
54132
|
+
"numeric",
|
|
54133
|
+
"x"
|
|
54134
|
+
],
|
|
54135
|
+
type: "string"
|
|
54136
|
+
},
|
|
54137
|
+
isFormula: {
|
|
54138
|
+
type: "boolean"
|
|
54139
|
+
},
|
|
54140
|
+
level: {
|
|
54141
|
+
type: "number"
|
|
54142
|
+
},
|
|
54143
|
+
lowestLevel: {
|
|
54144
|
+
type: "number"
|
|
54145
|
+
},
|
|
54146
|
+
name: {
|
|
54147
|
+
type: "object"
|
|
54148
|
+
},
|
|
54149
|
+
securableFormula: {
|
|
54150
|
+
properties: {
|
|
54151
|
+
formula_id: {
|
|
54152
|
+
type: "string"
|
|
54153
|
+
},
|
|
54154
|
+
securable_id: {
|
|
54155
|
+
type: "string"
|
|
54156
|
+
}
|
|
54157
|
+
},
|
|
54158
|
+
type: "object"
|
|
54159
|
+
},
|
|
54160
|
+
securable_id: {
|
|
54161
|
+
type: "string"
|
|
54162
|
+
},
|
|
54163
|
+
subtype: {
|
|
54164
|
+
enum: [
|
|
54165
|
+
"currency",
|
|
54166
|
+
"date",
|
|
54167
|
+
"datetime",
|
|
54168
|
+
"duration"
|
|
54169
|
+
],
|
|
54170
|
+
type: "string"
|
|
54171
|
+
},
|
|
54172
|
+
type: {
|
|
54173
|
+
enum: [
|
|
54174
|
+
"datetime",
|
|
54175
|
+
"hierarchy",
|
|
54176
|
+
"numeric"
|
|
54177
|
+
],
|
|
54178
|
+
type: "string"
|
|
54179
|
+
}
|
|
54180
|
+
},
|
|
54181
|
+
type: "object"
|
|
54182
|
+
},
|
|
54183
|
+
type: "array"
|
|
54184
|
+
}
|
|
54185
|
+
},
|
|
54186
|
+
type: "object"
|
|
54187
|
+
},
|
|
54188
|
+
type: "array"
|
|
54189
|
+
},
|
|
54190
|
+
allowMultiple: {
|
|
54191
|
+
type: "boolean"
|
|
54192
|
+
},
|
|
54193
|
+
description: {
|
|
54194
|
+
type: "string"
|
|
54195
|
+
},
|
|
54196
|
+
order: {
|
|
54197
|
+
type: "number"
|
|
54198
|
+
},
|
|
54199
|
+
slot: {
|
|
54200
|
+
type: "string"
|
|
54201
|
+
},
|
|
54202
|
+
values: {
|
|
54203
|
+
items: {
|
|
54204
|
+
properties: {
|
|
54205
|
+
aggregationFunc: {
|
|
54206
|
+
description: 'Aggregation function. It can be used with a "numeric" column type, and with some limitations with "hierarchy" and "datetime" column types.',
|
|
54207
|
+
enum: [
|
|
54208
|
+
"average",
|
|
54209
|
+
"count",
|
|
54210
|
+
"cumulativesum",
|
|
54211
|
+
"distinctcount",
|
|
54212
|
+
"histogram",
|
|
54213
|
+
"max",
|
|
54214
|
+
"median",
|
|
54215
|
+
"min",
|
|
54216
|
+
"rate",
|
|
54217
|
+
"stddev",
|
|
54218
|
+
"sum",
|
|
54219
|
+
"weightedaverage"
|
|
54220
|
+
],
|
|
54221
|
+
type: "string"
|
|
54222
|
+
},
|
|
54223
|
+
aggregationWeight: {
|
|
54224
|
+
description: 'Aggregation weight. It can be used with a "numeric" column type.',
|
|
54225
|
+
properties: {
|
|
54226
|
+
columnId: {
|
|
54227
|
+
description: "Column id",
|
|
54228
|
+
format: "uuid",
|
|
54229
|
+
type: "string"
|
|
54230
|
+
},
|
|
54231
|
+
columnSubType: {
|
|
54232
|
+
description: "Column subtype",
|
|
54233
|
+
enum: [
|
|
54234
|
+
"coordinates",
|
|
54235
|
+
"currency",
|
|
54236
|
+
"duration",
|
|
54237
|
+
"hierarchy_element_expression",
|
|
54238
|
+
"topography"
|
|
54239
|
+
],
|
|
54240
|
+
type: "string"
|
|
54241
|
+
},
|
|
54242
|
+
datasetId: {
|
|
54243
|
+
description: "Dataset id",
|
|
54244
|
+
format: "uuid",
|
|
54245
|
+
type: "string"
|
|
54246
|
+
}
|
|
54247
|
+
},
|
|
54248
|
+
type: "object"
|
|
54249
|
+
},
|
|
54250
|
+
bins: {
|
|
54251
|
+
description: 'Bin definition. It can be used when a "numeric" column is used as a category.',
|
|
54252
|
+
properties: {
|
|
54253
|
+
enabled: {
|
|
54254
|
+
description: "Enable or disable binning",
|
|
54255
|
+
type: "boolean"
|
|
54256
|
+
},
|
|
54257
|
+
number: {
|
|
54258
|
+
description: "Defines the range of the bins",
|
|
54259
|
+
type: "number"
|
|
54260
|
+
}
|
|
54261
|
+
},
|
|
54262
|
+
type: "object"
|
|
54263
|
+
},
|
|
54264
|
+
color: {
|
|
54265
|
+
description: "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
54266
|
+
type: [
|
|
54267
|
+
"null",
|
|
54268
|
+
"string"
|
|
54269
|
+
]
|
|
54270
|
+
},
|
|
54271
|
+
columnHierarchies: {
|
|
54272
|
+
anyOf: [
|
|
54273
|
+
{
|
|
54274
|
+
items: {
|
|
54275
|
+
type: "string"
|
|
54276
|
+
},
|
|
54277
|
+
type: "array"
|
|
54278
|
+
},
|
|
54279
|
+
{
|
|
54280
|
+
items: {
|
|
54281
|
+
properties: {
|
|
54282
|
+
color: {
|
|
54283
|
+
type: "string"
|
|
54284
|
+
},
|
|
54285
|
+
id: {
|
|
54286
|
+
type: "string"
|
|
54287
|
+
},
|
|
54288
|
+
level: {
|
|
54289
|
+
type: "number"
|
|
54290
|
+
},
|
|
54291
|
+
name: {
|
|
54292
|
+
type: "object"
|
|
54293
|
+
}
|
|
54294
|
+
},
|
|
54295
|
+
type: "object"
|
|
54296
|
+
},
|
|
54297
|
+
type: "array"
|
|
54298
|
+
}
|
|
54299
|
+
]
|
|
54300
|
+
},
|
|
54301
|
+
columnId: {
|
|
54302
|
+
description: "Column id",
|
|
54303
|
+
format: "uuid",
|
|
54304
|
+
type: "string"
|
|
54305
|
+
},
|
|
54306
|
+
currency: {
|
|
54307
|
+
description: 'Currency code, for example "\u20AC" or "$". It is only used when the column type is "numeric" and subtype is "currency".',
|
|
54308
|
+
type: [
|
|
54309
|
+
"null",
|
|
54310
|
+
"string"
|
|
54311
|
+
]
|
|
54312
|
+
},
|
|
54313
|
+
datasetId: {
|
|
54314
|
+
description: "Dataset id",
|
|
54315
|
+
format: "uuid",
|
|
54316
|
+
type: "string"
|
|
54317
|
+
},
|
|
54318
|
+
datetimeDisplayMode: {
|
|
54319
|
+
description: "If it's set it will be used for datetime formatting together with weekStart, weekDayNameFormat, monthNameFormat",
|
|
54320
|
+
enum: [
|
|
54321
|
+
"day_in_month",
|
|
54322
|
+
"day_in_year",
|
|
54323
|
+
"default",
|
|
54324
|
+
"hour_in_day",
|
|
54325
|
+
"minute_in_hour",
|
|
54326
|
+
"month_name",
|
|
54327
|
+
"month_number",
|
|
54328
|
+
"quarter_number",
|
|
54329
|
+
"second_in_minute",
|
|
54330
|
+
"week_number",
|
|
54331
|
+
"weekday_name",
|
|
54332
|
+
"weekday_number"
|
|
54333
|
+
],
|
|
54334
|
+
type: "string"
|
|
54335
|
+
},
|
|
54336
|
+
duration: {
|
|
54337
|
+
description: `Duration definition. It's only used when the column type is "numeric" and subtype is "duration".`,
|
|
54338
|
+
properties: {
|
|
54339
|
+
format: {
|
|
54340
|
+
description: "Duration format",
|
|
54341
|
+
enum: [
|
|
54342
|
+
"long",
|
|
54343
|
+
"short",
|
|
54344
|
+
"time"
|
|
54345
|
+
],
|
|
54346
|
+
type: "string"
|
|
54347
|
+
},
|
|
54348
|
+
levels: {
|
|
54349
|
+
description: "Duration levels used",
|
|
54350
|
+
items: {
|
|
54351
|
+
type: "number"
|
|
54352
|
+
},
|
|
54353
|
+
type: "array"
|
|
54354
|
+
}
|
|
54355
|
+
},
|
|
54356
|
+
type: "object"
|
|
54357
|
+
},
|
|
54358
|
+
format: {
|
|
54359
|
+
description: `D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
|
|
54360
|
+
It can also be used for "hierarchy" formatting but when it's used in the measure slot.`,
|
|
54361
|
+
type: "string"
|
|
54362
|
+
},
|
|
54363
|
+
formula: {
|
|
54364
|
+
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",
|
|
54365
|
+
type: "string"
|
|
54366
|
+
},
|
|
54367
|
+
grandTotals: {
|
|
54368
|
+
description: "Enable or disable grand totals, they're only used in Pivot table",
|
|
54369
|
+
properties: {
|
|
54370
|
+
enabled: {
|
|
54371
|
+
type: "boolean"
|
|
54372
|
+
}
|
|
54373
|
+
},
|
|
54374
|
+
type: "object"
|
|
54375
|
+
},
|
|
54376
|
+
hidden: {
|
|
54377
|
+
type: "boolean"
|
|
54378
|
+
},
|
|
54379
|
+
include_nonoccurring: {
|
|
54380
|
+
description: `Shows empty areas for geo slots (with the name "geo" and content type 'spacial).
|
|
54381
|
+
Also, it can be set in the options' advanced settings of the Choropleth map.`,
|
|
54382
|
+
type: "boolean"
|
|
54383
|
+
},
|
|
54384
|
+
label: {
|
|
54385
|
+
description: 'Label in format {locale: "label"}, for example, {en: "Total Revenue"}',
|
|
54386
|
+
type: "object"
|
|
54387
|
+
},
|
|
54388
|
+
level: {
|
|
54389
|
+
description: '"hierarchy" or "datetime" level',
|
|
54390
|
+
type: [
|
|
54391
|
+
"number",
|
|
54392
|
+
"null"
|
|
54393
|
+
]
|
|
54394
|
+
},
|
|
54395
|
+
lowestLevel: {
|
|
54396
|
+
description: 'Lowest "hierarchy" or "datetime" level',
|
|
54397
|
+
type: [
|
|
54398
|
+
"null",
|
|
54399
|
+
"number"
|
|
54400
|
+
]
|
|
54401
|
+
},
|
|
54402
|
+
monthNameFormat: {
|
|
54403
|
+
description: "Month name format for datetime column formatting",
|
|
54404
|
+
enum: [
|
|
54405
|
+
"letter",
|
|
54406
|
+
"long",
|
|
54407
|
+
"short"
|
|
54408
|
+
],
|
|
54409
|
+
type: "string"
|
|
54410
|
+
},
|
|
54411
|
+
periodOverPeriod: {
|
|
54412
|
+
description: "Settings to configure period over period comparison. It can be used only in a measure slot.",
|
|
54413
|
+
properties: {
|
|
54414
|
+
level: {
|
|
54415
|
+
description: "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
|
|
54416
|
+
type: "number"
|
|
54417
|
+
},
|
|
54418
|
+
periodToDate: {
|
|
54419
|
+
description: "Turn ON/OFF period to date comparison",
|
|
54420
|
+
type: "boolean"
|
|
54421
|
+
},
|
|
54422
|
+
quantity: {
|
|
54423
|
+
description: "Number of periods",
|
|
54424
|
+
type: "number"
|
|
54425
|
+
},
|
|
54426
|
+
type: {
|
|
54427
|
+
description: "Period over period comparison type:\n'none' - turned off,\n'past' - absolute value comparison to the past,\n'change' - percentage change comparison to the past",
|
|
54428
|
+
enum: [
|
|
54429
|
+
"change",
|
|
54430
|
+
"none",
|
|
54431
|
+
"past"
|
|
54432
|
+
],
|
|
54433
|
+
type: "string"
|
|
54434
|
+
}
|
|
54435
|
+
},
|
|
54436
|
+
type: "object"
|
|
54437
|
+
},
|
|
54438
|
+
readonly: {
|
|
54439
|
+
type: "boolean"
|
|
54440
|
+
},
|
|
54441
|
+
selected: {
|
|
54442
|
+
type: "boolean"
|
|
54443
|
+
},
|
|
54444
|
+
subtype: {
|
|
54445
|
+
anyOf: [
|
|
54446
|
+
{
|
|
54447
|
+
enum: [
|
|
54448
|
+
"coordinates",
|
|
54449
|
+
"currency",
|
|
54450
|
+
"date",
|
|
54451
|
+
"datetime",
|
|
54452
|
+
"duration",
|
|
54453
|
+
"hierarchy_element_expression",
|
|
54454
|
+
"topography"
|
|
54455
|
+
],
|
|
54456
|
+
type: "string"
|
|
54457
|
+
},
|
|
54458
|
+
{
|
|
54459
|
+
type: "null"
|
|
54460
|
+
}
|
|
54461
|
+
],
|
|
54462
|
+
description: "Column subtype"
|
|
54463
|
+
},
|
|
54464
|
+
type: {
|
|
54465
|
+
description: "Column / Formula type",
|
|
54466
|
+
enum: [
|
|
54467
|
+
"datetime",
|
|
54468
|
+
"hierarchy",
|
|
54469
|
+
"numeric",
|
|
54470
|
+
"spatial"
|
|
54471
|
+
],
|
|
54472
|
+
type: "string"
|
|
54473
|
+
},
|
|
54474
|
+
weekDayNameFormat: {
|
|
54475
|
+
description: "Week day name format for datetime column formatting",
|
|
54476
|
+
enum: [
|
|
54477
|
+
"letter",
|
|
54478
|
+
"long",
|
|
54479
|
+
"short"
|
|
54480
|
+
],
|
|
54481
|
+
type: "string"
|
|
54482
|
+
},
|
|
54483
|
+
weekStart: {
|
|
54484
|
+
description: "Week start day, 'sunday' or 'monday'. For datetime column formatting.",
|
|
54485
|
+
enum: [
|
|
54486
|
+
"monday",
|
|
54487
|
+
"sunday"
|
|
54488
|
+
],
|
|
54489
|
+
type: "string"
|
|
54490
|
+
}
|
|
54491
|
+
},
|
|
54492
|
+
type: "object"
|
|
54493
|
+
},
|
|
54494
|
+
type: "array"
|
|
54495
|
+
}
|
|
54496
|
+
},
|
|
54497
|
+
type: "object"
|
|
54498
|
+
},
|
|
54499
|
+
type: "array"
|
|
54500
|
+
}
|
|
54501
|
+
},
|
|
54502
|
+
type: "object"
|
|
54503
|
+
},
|
|
54504
|
+
loader: {
|
|
54505
|
+
description: "The loader configuration",
|
|
54506
|
+
properties: {
|
|
54507
|
+
background: {
|
|
54508
|
+
default: "#f9f9f9",
|
|
54509
|
+
description: "Background color of the chart loader element",
|
|
54510
|
+
type: "string"
|
|
54511
|
+
},
|
|
54512
|
+
fontColor: {
|
|
54513
|
+
default: "#5a5a5a",
|
|
54514
|
+
description: "Font color of the text of the chart loaders",
|
|
54515
|
+
type: "string"
|
|
54516
|
+
},
|
|
54517
|
+
locale: {
|
|
54518
|
+
default: "en",
|
|
54519
|
+
description: 'Locale to be used if "msg" is set',
|
|
54520
|
+
examples: [
|
|
54521
|
+
"en",
|
|
54522
|
+
"fr"
|
|
54523
|
+
],
|
|
54524
|
+
type: "string"
|
|
54525
|
+
},
|
|
54526
|
+
mode: {
|
|
54527
|
+
default: "light",
|
|
54528
|
+
description: "Light or dark loader",
|
|
54529
|
+
type: "string"
|
|
54530
|
+
},
|
|
54531
|
+
msg: {
|
|
54532
|
+
description: "Loading message",
|
|
54533
|
+
examples: [
|
|
54534
|
+
"Loading dashboard..."
|
|
54535
|
+
],
|
|
54536
|
+
type: "string"
|
|
54537
|
+
},
|
|
54538
|
+
showBranded: {
|
|
54539
|
+
default: false,
|
|
54540
|
+
description: 'Shows the branded "powered by" information',
|
|
54541
|
+
type: "boolean"
|
|
54542
|
+
},
|
|
54543
|
+
spinnerBackground: {
|
|
54544
|
+
default: "rgba(169, 169, 169, 0.14)",
|
|
54545
|
+
description: "Background color of the spinner",
|
|
54546
|
+
type: "string"
|
|
54547
|
+
},
|
|
54548
|
+
spinnerColor: {
|
|
54549
|
+
default: "rgba(255, 165, 0, 0.7)",
|
|
54550
|
+
description: "Spinner color of the loader",
|
|
54551
|
+
type: "string"
|
|
54552
|
+
}
|
|
54553
|
+
},
|
|
54554
|
+
type: "object"
|
|
54555
|
+
},
|
|
54556
|
+
locale: {
|
|
54557
|
+
default: "en",
|
|
54558
|
+
description: "Locale to be used",
|
|
54559
|
+
examples: [
|
|
54560
|
+
"en",
|
|
54561
|
+
"fr"
|
|
54562
|
+
],
|
|
54563
|
+
type: "string"
|
|
54564
|
+
},
|
|
54565
|
+
padding: {
|
|
54566
|
+
description: "Update left or right padding of the Search filter",
|
|
54567
|
+
properties: {
|
|
54568
|
+
left: {
|
|
54569
|
+
default: 16,
|
|
54570
|
+
description: "Update left padding of the Search filter",
|
|
54571
|
+
type: "number"
|
|
54572
|
+
},
|
|
54573
|
+
right: {
|
|
54574
|
+
default: 16,
|
|
54575
|
+
description: "Update right padding of the Search filter",
|
|
54576
|
+
type: "number"
|
|
54577
|
+
}
|
|
54578
|
+
},
|
|
54579
|
+
type: "object"
|
|
54580
|
+
},
|
|
54581
|
+
theme: {
|
|
54582
|
+
description: "Theme configuration",
|
|
54583
|
+
properties: {
|
|
54584
|
+
borders: {
|
|
54585
|
+
description: "Custom border styling",
|
|
54586
|
+
properties: {
|
|
54587
|
+
"border-bottom-width": {
|
|
54588
|
+
description: "Border bottom width",
|
|
54589
|
+
examples: [
|
|
54590
|
+
"0px",
|
|
54591
|
+
"1px",
|
|
54592
|
+
"3px"
|
|
54593
|
+
],
|
|
54594
|
+
type: "string"
|
|
54595
|
+
},
|
|
54596
|
+
"border-color": {
|
|
54597
|
+
description: "Border color",
|
|
54598
|
+
examples: [
|
|
54599
|
+
"rgba(216, 216, 216, 1)",
|
|
54600
|
+
"rgb(147, 146, 148)"
|
|
54601
|
+
],
|
|
54602
|
+
type: "string"
|
|
54603
|
+
},
|
|
54604
|
+
"border-left-width": {
|
|
54605
|
+
description: "Border left width",
|
|
54606
|
+
examples: [
|
|
54607
|
+
"0px",
|
|
54608
|
+
"1px",
|
|
54609
|
+
"3px"
|
|
54610
|
+
],
|
|
54611
|
+
type: "string"
|
|
54612
|
+
},
|
|
54613
|
+
"border-radius": {
|
|
54614
|
+
description: "Border radius",
|
|
54615
|
+
examples: [
|
|
54616
|
+
"0",
|
|
54617
|
+
"12px",
|
|
54618
|
+
"20px"
|
|
54619
|
+
],
|
|
54620
|
+
type: "string"
|
|
54621
|
+
},
|
|
54622
|
+
"border-right-width": {
|
|
54623
|
+
description: "Border right width",
|
|
54624
|
+
examples: [
|
|
54625
|
+
"0px",
|
|
54626
|
+
"1px",
|
|
54627
|
+
"3px"
|
|
54628
|
+
],
|
|
54629
|
+
type: "string"
|
|
54630
|
+
},
|
|
54631
|
+
"border-style": {
|
|
54632
|
+
description: "Border style",
|
|
54633
|
+
examples: [
|
|
54634
|
+
"none",
|
|
54635
|
+
"solid",
|
|
54636
|
+
"dotted",
|
|
54637
|
+
"dashed"
|
|
54638
|
+
],
|
|
54639
|
+
type: "string"
|
|
54640
|
+
},
|
|
54641
|
+
"border-top-width": {
|
|
54642
|
+
description: "Border top width",
|
|
54643
|
+
examples: [
|
|
54644
|
+
"0px",
|
|
54645
|
+
"1px",
|
|
54646
|
+
"3px"
|
|
54647
|
+
],
|
|
54648
|
+
type: "string"
|
|
54649
|
+
}
|
|
54650
|
+
},
|
|
54651
|
+
type: "object"
|
|
54652
|
+
},
|
|
54653
|
+
boxShadow: {
|
|
54654
|
+
description: "Custom shadow styling",
|
|
54655
|
+
properties: {
|
|
54656
|
+
color: {
|
|
54657
|
+
description: "Shadow color",
|
|
54658
|
+
examples: [
|
|
54659
|
+
"rgb(0, 0, 0)",
|
|
54660
|
+
"rgb(100, 100, 103)"
|
|
54661
|
+
],
|
|
54662
|
+
type: "string"
|
|
54663
|
+
},
|
|
54664
|
+
size: {
|
|
54665
|
+
description: "Shadow size",
|
|
54666
|
+
enum: [
|
|
54667
|
+
"L",
|
|
54668
|
+
"M",
|
|
54669
|
+
"S",
|
|
54670
|
+
"none"
|
|
54671
|
+
],
|
|
54672
|
+
examples: [
|
|
54673
|
+
"none",
|
|
54674
|
+
"S",
|
|
54675
|
+
"M",
|
|
54676
|
+
"L"
|
|
54677
|
+
],
|
|
54678
|
+
type: "string"
|
|
54679
|
+
}
|
|
54680
|
+
},
|
|
54681
|
+
type: "object"
|
|
54682
|
+
},
|
|
54683
|
+
font: {
|
|
54684
|
+
description: "Custom font styling",
|
|
54685
|
+
properties: {
|
|
54686
|
+
"font-style": {
|
|
54687
|
+
const: "normal",
|
|
54688
|
+
description: "Font style",
|
|
54689
|
+
examples: [
|
|
54690
|
+
"normal",
|
|
54691
|
+
"italic",
|
|
54692
|
+
"oblique"
|
|
54693
|
+
],
|
|
54694
|
+
type: "string"
|
|
54695
|
+
},
|
|
54696
|
+
"font-weight": {
|
|
54697
|
+
description: "Font weight",
|
|
54698
|
+
examples: [
|
|
54699
|
+
400,
|
|
54700
|
+
700
|
|
54701
|
+
],
|
|
54702
|
+
type: "number"
|
|
54703
|
+
},
|
|
54704
|
+
fontFamily: {
|
|
54705
|
+
description: "Font family",
|
|
54706
|
+
examples: [
|
|
54707
|
+
"Lato",
|
|
54708
|
+
"Montserrat",
|
|
54709
|
+
"Roboto Mono",
|
|
54710
|
+
"Arial",
|
|
54711
|
+
"Times New Roman"
|
|
54712
|
+
],
|
|
54713
|
+
type: "string"
|
|
54714
|
+
},
|
|
54715
|
+
fontSize: {
|
|
54716
|
+
description: "Font size in px",
|
|
54717
|
+
examples: [
|
|
54718
|
+
10,
|
|
54719
|
+
15,
|
|
54720
|
+
18
|
|
54721
|
+
],
|
|
54722
|
+
type: "number"
|
|
54723
|
+
}
|
|
54724
|
+
},
|
|
54725
|
+
type: "object"
|
|
54726
|
+
},
|
|
54727
|
+
id: {
|
|
54728
|
+
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.',
|
|
54729
|
+
examples: [
|
|
54730
|
+
"seasonal",
|
|
54731
|
+
"urban"
|
|
54732
|
+
],
|
|
54733
|
+
type: "string"
|
|
54734
|
+
},
|
|
54735
|
+
itemsBackground: {
|
|
54736
|
+
description: "Custom item background color",
|
|
54737
|
+
examples: [
|
|
54738
|
+
"rgb(255, 255, 255)",
|
|
54739
|
+
"rgb(71, 69, 69)",
|
|
54740
|
+
"rgb(195, 191, 191)"
|
|
54741
|
+
],
|
|
54742
|
+
type: "string"
|
|
54743
|
+
},
|
|
54744
|
+
title: {
|
|
54745
|
+
description: "Custom title styling",
|
|
54746
|
+
properties: {
|
|
54747
|
+
align: {
|
|
54748
|
+
description: "Title align",
|
|
54749
|
+
enum: [
|
|
54750
|
+
"center",
|
|
54751
|
+
"left",
|
|
54752
|
+
"right"
|
|
54753
|
+
],
|
|
54754
|
+
examples: [
|
|
54755
|
+
"left",
|
|
54756
|
+
"center",
|
|
54757
|
+
"right"
|
|
54758
|
+
],
|
|
54759
|
+
type: "string"
|
|
54760
|
+
},
|
|
54761
|
+
bold: {
|
|
54762
|
+
description: "Is title bold",
|
|
54763
|
+
examples: [
|
|
54764
|
+
true,
|
|
54765
|
+
false
|
|
54766
|
+
],
|
|
54767
|
+
type: "boolean"
|
|
54768
|
+
},
|
|
54769
|
+
border: {
|
|
54770
|
+
description: "Is title a border",
|
|
54771
|
+
examples: [
|
|
54772
|
+
true,
|
|
54773
|
+
false
|
|
54774
|
+
],
|
|
54775
|
+
type: "boolean"
|
|
54776
|
+
},
|
|
54777
|
+
fontSize: {
|
|
54778
|
+
description: "Title's font size in px",
|
|
54779
|
+
examples: [
|
|
54780
|
+
16,
|
|
54781
|
+
20
|
|
54782
|
+
],
|
|
54783
|
+
type: "number"
|
|
54784
|
+
},
|
|
54785
|
+
italic: {
|
|
54786
|
+
description: "Is title italic",
|
|
54787
|
+
examples: [
|
|
54788
|
+
true,
|
|
54789
|
+
false
|
|
54790
|
+
],
|
|
54791
|
+
type: "boolean"
|
|
54792
|
+
},
|
|
54793
|
+
lineHeight: {
|
|
54794
|
+
description: "Title's line height in px",
|
|
54795
|
+
examples: [
|
|
54796
|
+
30,
|
|
54797
|
+
42,
|
|
54798
|
+
50
|
|
54799
|
+
],
|
|
54800
|
+
type: "number"
|
|
54801
|
+
},
|
|
54802
|
+
underline: {
|
|
54803
|
+
description: "Is title underline",
|
|
54804
|
+
examples: [
|
|
54805
|
+
true,
|
|
54806
|
+
false
|
|
54807
|
+
],
|
|
54808
|
+
type: "boolean"
|
|
54809
|
+
}
|
|
54810
|
+
},
|
|
54811
|
+
type: "object"
|
|
54812
|
+
},
|
|
54813
|
+
type: {
|
|
54814
|
+
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.',
|
|
54815
|
+
examples: [
|
|
54816
|
+
"custom"
|
|
54817
|
+
],
|
|
54818
|
+
type: "string"
|
|
54819
|
+
}
|
|
54820
|
+
},
|
|
54821
|
+
type: "object"
|
|
54822
|
+
},
|
|
54823
|
+
timezoneId: {
|
|
54824
|
+
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",
|
|
54825
|
+
examples: [
|
|
54826
|
+
"Europe/Brussels",
|
|
54827
|
+
"America/New_York"
|
|
54828
|
+
],
|
|
54829
|
+
type: "string"
|
|
54830
|
+
},
|
|
54831
|
+
title: {
|
|
54832
|
+
description: 'Title in format {locale: "title"}, for example, {en: "Title"}',
|
|
54833
|
+
examples: [
|
|
54834
|
+
{
|
|
54835
|
+
en: "Title"
|
|
54836
|
+
}
|
|
54837
|
+
],
|
|
54838
|
+
type: "object"
|
|
54839
|
+
}
|
|
54840
|
+
},
|
|
54841
|
+
type: "object"
|
|
54842
|
+
};
|
|
54843
|
+
|
|
54844
|
+
// libs/dashboard-contents-types/assets/json-schemas/search-filter-slots.schema.json
|
|
54845
|
+
var search_filter_slots_schema_default = {
|
|
54846
|
+
$id: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json",
|
|
54847
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
54848
|
+
definitions: {
|
|
54849
|
+
ColumnSubtype: {
|
|
54850
|
+
enum: [
|
|
54851
|
+
"coordinates",
|
|
54852
|
+
"currency",
|
|
54853
|
+
"duration",
|
|
54854
|
+
"hierarchy_element_expression",
|
|
54855
|
+
"topography"
|
|
54856
|
+
],
|
|
54857
|
+
type: "string"
|
|
54858
|
+
},
|
|
54859
|
+
DateTimeSlotContent: {
|
|
54860
|
+
properties: {
|
|
54861
|
+
aggregationFunc: {
|
|
54862
|
+
description: 'Basic aggregation function. It can be used when a "datetime" column is used in a measure slot.',
|
|
54863
|
+
enum: [
|
|
54864
|
+
"count",
|
|
54865
|
+
"distinctcount"
|
|
54866
|
+
],
|
|
54867
|
+
type: "string"
|
|
54868
|
+
},
|
|
54869
|
+
color: {
|
|
54870
|
+
description: "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
54871
|
+
type: [
|
|
54872
|
+
"null",
|
|
54873
|
+
"string"
|
|
54874
|
+
]
|
|
54875
|
+
},
|
|
54876
|
+
columnId: {
|
|
54877
|
+
description: "Column id",
|
|
54878
|
+
format: "uuid",
|
|
54879
|
+
type: "string"
|
|
54880
|
+
},
|
|
54881
|
+
datasetId: {
|
|
54882
|
+
description: "Dataset id",
|
|
54883
|
+
format: "uuid",
|
|
54884
|
+
type: "string"
|
|
54885
|
+
},
|
|
54886
|
+
datetimeDisplayMode: {
|
|
54887
|
+
description: "If it's set it will be used for datetime formatting together with weekStart, weekDayNameFormat, monthNameFormat",
|
|
54888
|
+
enum: [
|
|
54889
|
+
"day_in_month",
|
|
54890
|
+
"day_in_year",
|
|
54891
|
+
"default",
|
|
54892
|
+
"hour_in_day",
|
|
54893
|
+
"minute_in_hour",
|
|
54894
|
+
"month_name",
|
|
54895
|
+
"month_number",
|
|
54896
|
+
"quarter_number",
|
|
54897
|
+
"second_in_minute",
|
|
54898
|
+
"week_number",
|
|
54899
|
+
"weekday_name",
|
|
54900
|
+
"weekday_number"
|
|
54901
|
+
],
|
|
54902
|
+
type: "string"
|
|
54903
|
+
},
|
|
54904
|
+
format: {
|
|
54905
|
+
description: `D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
|
|
54906
|
+
It can also be used for "hierarchy" formatting but when it's used in the measure slot.`,
|
|
54907
|
+
type: "string"
|
|
54908
|
+
},
|
|
54909
|
+
grandTotals: {
|
|
54910
|
+
description: "Enable or disable grand totals, they're only used in Pivot table",
|
|
54911
|
+
properties: {
|
|
54912
|
+
enabled: {
|
|
54913
|
+
type: "boolean"
|
|
54914
|
+
}
|
|
54915
|
+
},
|
|
54916
|
+
type: "object"
|
|
54917
|
+
},
|
|
54918
|
+
label: {
|
|
54919
|
+
description: 'Label in format {locale: "label"}, for example, {en: "Total Revenue"}',
|
|
54920
|
+
type: "object"
|
|
54921
|
+
},
|
|
54922
|
+
level: {
|
|
54923
|
+
description: '"hierarchy" or "datetime" level',
|
|
54924
|
+
type: [
|
|
54925
|
+
"number",
|
|
54926
|
+
"null"
|
|
54927
|
+
]
|
|
54928
|
+
},
|
|
54929
|
+
lowestLevel: {
|
|
54930
|
+
description: 'Lowest "hierarchy" or "datetime" level',
|
|
54931
|
+
type: [
|
|
54932
|
+
"null",
|
|
54933
|
+
"number"
|
|
54934
|
+
]
|
|
54935
|
+
},
|
|
54936
|
+
monthNameFormat: {
|
|
54937
|
+
description: "Month name format for datetime column formatting",
|
|
54938
|
+
enum: [
|
|
54939
|
+
"letter",
|
|
54940
|
+
"long",
|
|
54941
|
+
"short"
|
|
54942
|
+
],
|
|
54943
|
+
type: "string"
|
|
54944
|
+
},
|
|
54945
|
+
periodOverPeriod: {
|
|
54946
|
+
description: "Settings to configure period over period comparison. It can be used only in a measure slot.",
|
|
54947
|
+
properties: {
|
|
54948
|
+
level: {
|
|
54949
|
+
description: "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
|
|
54950
|
+
type: "number"
|
|
54951
|
+
},
|
|
54952
|
+
periodToDate: {
|
|
54953
|
+
description: "Turn ON/OFF period to date comparison",
|
|
54954
|
+
type: "boolean"
|
|
54955
|
+
},
|
|
54956
|
+
quantity: {
|
|
54957
|
+
description: "Number of periods",
|
|
54958
|
+
type: "number"
|
|
54959
|
+
},
|
|
54960
|
+
type: {
|
|
54961
|
+
description: "Period over period comparison type:\n'none' - turned off,\n'past' - absolute value comparison to the past,\n'change' - percentage change comparison to the past",
|
|
54962
|
+
enum: [
|
|
54963
|
+
"change",
|
|
54964
|
+
"none",
|
|
54965
|
+
"past"
|
|
54966
|
+
],
|
|
54967
|
+
type: "string"
|
|
54968
|
+
}
|
|
54969
|
+
},
|
|
54970
|
+
type: "object"
|
|
54971
|
+
},
|
|
54972
|
+
subtype: {
|
|
54973
|
+
description: `There's no subtype for "datetime", it can be null or omitted`,
|
|
54974
|
+
type: "null"
|
|
54975
|
+
},
|
|
54976
|
+
type: {
|
|
54977
|
+
const: "datetime",
|
|
54978
|
+
description: '"datetime" column type',
|
|
54979
|
+
type: "string"
|
|
54980
|
+
},
|
|
54981
|
+
weekDayNameFormat: {
|
|
54982
|
+
description: "Week day name format for datetime column formatting",
|
|
54983
|
+
enum: [
|
|
54984
|
+
"letter",
|
|
54985
|
+
"long",
|
|
54986
|
+
"short"
|
|
54987
|
+
],
|
|
54988
|
+
type: "string"
|
|
54989
|
+
},
|
|
54990
|
+
weekStart: {
|
|
54991
|
+
description: "Week start day, 'sunday' or 'monday'. For datetime column formatting.",
|
|
54992
|
+
enum: [
|
|
54993
|
+
"monday",
|
|
54994
|
+
"sunday"
|
|
54995
|
+
],
|
|
54996
|
+
type: "string"
|
|
54997
|
+
}
|
|
54998
|
+
},
|
|
54999
|
+
type: "object"
|
|
55000
|
+
},
|
|
55001
|
+
DimensionSlot: {
|
|
55002
|
+
description: "Dimension slot definition of the search filter. Dimension slot is a required slot and it can have multiple columns.",
|
|
55003
|
+
properties: {
|
|
55004
|
+
content: {
|
|
55005
|
+
description: "Dimension slot definition",
|
|
55006
|
+
items: {
|
|
55007
|
+
anyOf: [
|
|
55008
|
+
{
|
|
55009
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json#/definitions/NumericSlotContent"
|
|
55010
|
+
},
|
|
55011
|
+
{
|
|
55012
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json#/definitions/HierarchySlotContent"
|
|
55013
|
+
},
|
|
55014
|
+
{
|
|
55015
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
55016
|
+
}
|
|
55017
|
+
]
|
|
55018
|
+
},
|
|
55019
|
+
type: "array"
|
|
55020
|
+
},
|
|
55021
|
+
name: {
|
|
55022
|
+
const: "dimension",
|
|
55023
|
+
description: "Name of the slot",
|
|
55024
|
+
type: "string"
|
|
55025
|
+
}
|
|
55026
|
+
},
|
|
55027
|
+
type: "object"
|
|
55028
|
+
},
|
|
55029
|
+
HierarchySlotContent: {
|
|
55030
|
+
properties: {
|
|
55031
|
+
aggregationFunc: {
|
|
55032
|
+
description: 'Basic aggregation function. It can be used when a "hierarchy" column is used in a measure slot.',
|
|
55033
|
+
enum: [
|
|
55034
|
+
"count",
|
|
55035
|
+
"distinctcount"
|
|
55036
|
+
],
|
|
55037
|
+
type: "string"
|
|
55038
|
+
},
|
|
55039
|
+
color: {
|
|
55040
|
+
description: "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
55041
|
+
type: [
|
|
55042
|
+
"null",
|
|
55043
|
+
"string"
|
|
55044
|
+
]
|
|
55045
|
+
},
|
|
55046
|
+
columnId: {
|
|
55047
|
+
description: "Column id",
|
|
55048
|
+
format: "uuid",
|
|
55049
|
+
type: "string"
|
|
55050
|
+
},
|
|
55051
|
+
datasetId: {
|
|
55052
|
+
description: "Dataset id",
|
|
55053
|
+
format: "uuid",
|
|
55054
|
+
type: "string"
|
|
55055
|
+
},
|
|
55056
|
+
format: {
|
|
55057
|
+
description: `D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
|
|
55058
|
+
It can also be used for "hierarchy" formatting but when it's used in the measure slot.`,
|
|
55059
|
+
type: "string"
|
|
55060
|
+
},
|
|
55061
|
+
grandTotals: {
|
|
55062
|
+
description: "Enable or disable grand totals, they're only used in Pivot table",
|
|
55063
|
+
properties: {
|
|
55064
|
+
enabled: {
|
|
55065
|
+
type: "boolean"
|
|
55066
|
+
}
|
|
55067
|
+
},
|
|
55068
|
+
type: "object"
|
|
55069
|
+
},
|
|
55070
|
+
label: {
|
|
55071
|
+
description: 'Label in format {locale: "label"}, for example, {en: "Total Revenue"}',
|
|
55072
|
+
type: "object"
|
|
55073
|
+
},
|
|
55074
|
+
level: {
|
|
55075
|
+
description: '"hierarchy" or "datetime" level',
|
|
55076
|
+
type: [
|
|
55077
|
+
"number",
|
|
55078
|
+
"null"
|
|
55079
|
+
]
|
|
55080
|
+
},
|
|
55081
|
+
lowestLevel: {
|
|
55082
|
+
description: 'Lowest "hierarchy" or "datetime" level',
|
|
55083
|
+
type: [
|
|
55084
|
+
"null",
|
|
55085
|
+
"number"
|
|
55086
|
+
]
|
|
55087
|
+
},
|
|
55088
|
+
periodOverPeriod: {
|
|
55089
|
+
description: "Settings to configure period over period comparison. It can be used only in a measure slot.",
|
|
55090
|
+
properties: {
|
|
55091
|
+
level: {
|
|
55092
|
+
description: "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
|
|
55093
|
+
type: "number"
|
|
55094
|
+
},
|
|
55095
|
+
periodToDate: {
|
|
55096
|
+
description: "Turn ON/OFF period to date comparison",
|
|
55097
|
+
type: "boolean"
|
|
55098
|
+
},
|
|
55099
|
+
quantity: {
|
|
55100
|
+
description: "Number of periods",
|
|
55101
|
+
type: "number"
|
|
55102
|
+
},
|
|
55103
|
+
type: {
|
|
55104
|
+
description: "Period over period comparison type:\n'none' - turned off,\n'past' - absolute value comparison to the past,\n'change' - percentage change comparison to the past",
|
|
55105
|
+
enum: [
|
|
55106
|
+
"change",
|
|
55107
|
+
"none",
|
|
55108
|
+
"past"
|
|
55109
|
+
],
|
|
55110
|
+
type: "string"
|
|
55111
|
+
}
|
|
55112
|
+
},
|
|
55113
|
+
type: "object"
|
|
55114
|
+
},
|
|
55115
|
+
subtype: {
|
|
55116
|
+
anyOf: [
|
|
55117
|
+
{
|
|
55118
|
+
enum: [
|
|
55119
|
+
"coordinates",
|
|
55120
|
+
"currency",
|
|
55121
|
+
"date",
|
|
55122
|
+
"datetime",
|
|
55123
|
+
"duration",
|
|
55124
|
+
"hierarchy_element_expression",
|
|
55125
|
+
"topography"
|
|
55126
|
+
],
|
|
55127
|
+
type: "string"
|
|
55128
|
+
},
|
|
55129
|
+
{
|
|
55130
|
+
type: "null"
|
|
55131
|
+
}
|
|
55132
|
+
],
|
|
55133
|
+
description: "Column subtype"
|
|
55134
|
+
},
|
|
55135
|
+
type: {
|
|
55136
|
+
const: "hierarchy",
|
|
55137
|
+
description: '"hierarchy" column type',
|
|
55138
|
+
type: "string"
|
|
55139
|
+
}
|
|
55140
|
+
},
|
|
55141
|
+
type: "object"
|
|
55142
|
+
},
|
|
55143
|
+
NumericSlotContent: {
|
|
55144
|
+
properties: {
|
|
55145
|
+
aggregationFunc: {
|
|
55146
|
+
description: 'Aggregation function. It can be used with a "numeric" column type, and with some limitations with "hierarchy" and "datetime" column types.',
|
|
55147
|
+
enum: [
|
|
55148
|
+
"average",
|
|
55149
|
+
"count",
|
|
55150
|
+
"cumulativesum",
|
|
55151
|
+
"distinctcount",
|
|
55152
|
+
"histogram",
|
|
55153
|
+
"max",
|
|
55154
|
+
"median",
|
|
55155
|
+
"min",
|
|
55156
|
+
"rate",
|
|
55157
|
+
"stddev",
|
|
55158
|
+
"sum",
|
|
55159
|
+
"weightedaverage"
|
|
55160
|
+
],
|
|
55161
|
+
type: "string"
|
|
55162
|
+
},
|
|
55163
|
+
aggregationWeight: {
|
|
55164
|
+
description: 'Aggregation weight. It can be used with a "numeric" column type.',
|
|
55165
|
+
properties: {
|
|
55166
|
+
columnId: {
|
|
55167
|
+
description: "Column id",
|
|
55168
|
+
format: "uuid",
|
|
55169
|
+
type: "string"
|
|
55170
|
+
},
|
|
55171
|
+
columnSubType: {
|
|
55172
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json#/definitions/ColumnSubtype",
|
|
55173
|
+
description: "Column subtype"
|
|
55174
|
+
},
|
|
55175
|
+
datasetId: {
|
|
55176
|
+
description: "Dataset id",
|
|
55177
|
+
format: "uuid",
|
|
55178
|
+
type: "string"
|
|
55179
|
+
}
|
|
55180
|
+
},
|
|
55181
|
+
type: "object"
|
|
55182
|
+
},
|
|
55183
|
+
bins: {
|
|
55184
|
+
description: 'Bin definition. It can be used when a "numeric" column is used as a category.',
|
|
55185
|
+
properties: {
|
|
55186
|
+
enabled: {
|
|
55187
|
+
description: "Enable or disable binning",
|
|
55188
|
+
type: "boolean"
|
|
55189
|
+
},
|
|
55190
|
+
number: {
|
|
55191
|
+
description: "Defines the range of the bins",
|
|
55192
|
+
type: "number"
|
|
55193
|
+
}
|
|
55194
|
+
},
|
|
55195
|
+
type: "object"
|
|
55196
|
+
},
|
|
55197
|
+
color: {
|
|
55198
|
+
description: "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
55199
|
+
type: [
|
|
55200
|
+
"null",
|
|
55201
|
+
"string"
|
|
55202
|
+
]
|
|
55203
|
+
},
|
|
55204
|
+
columnId: {
|
|
55205
|
+
description: "Column id",
|
|
55206
|
+
format: "uuid",
|
|
55207
|
+
type: "string"
|
|
55208
|
+
},
|
|
55209
|
+
currency: {
|
|
55210
|
+
description: 'Currency code, for example "\u20AC" or "$". It is only used when the column type is "numeric" and subtype is "currency".',
|
|
55211
|
+
type: [
|
|
55212
|
+
"null",
|
|
55213
|
+
"string"
|
|
55214
|
+
]
|
|
55215
|
+
},
|
|
55216
|
+
datasetId: {
|
|
55217
|
+
description: "Dataset id",
|
|
55218
|
+
format: "uuid",
|
|
55219
|
+
type: "string"
|
|
55220
|
+
},
|
|
55221
|
+
duration: {
|
|
55222
|
+
description: `Duration definition. It's only used when the column type is "numeric" and subtype is "duration".`,
|
|
55223
|
+
properties: {
|
|
55224
|
+
format: {
|
|
55225
|
+
description: "Duration format",
|
|
55226
|
+
enum: [
|
|
55227
|
+
"long",
|
|
55228
|
+
"short",
|
|
55229
|
+
"time"
|
|
55230
|
+
],
|
|
55231
|
+
type: "string"
|
|
55232
|
+
},
|
|
55233
|
+
levels: {
|
|
55234
|
+
description: "Duration levels used",
|
|
55235
|
+
items: {
|
|
55236
|
+
type: "number"
|
|
55237
|
+
},
|
|
55238
|
+
type: "array"
|
|
55239
|
+
}
|
|
55240
|
+
},
|
|
55241
|
+
type: "object"
|
|
55242
|
+
},
|
|
55243
|
+
format: {
|
|
55244
|
+
description: `D3 format, it is used for "numeric" formatting (https://observablehq.com/@d3/d3-format), for "datetime" formatting (https://d3js.org/d3-time-format).
|
|
55245
|
+
It can also be used for "hierarchy" formatting but when it's used in the measure slot.`,
|
|
55246
|
+
type: "string"
|
|
55247
|
+
},
|
|
55248
|
+
formula: {
|
|
55249
|
+
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",
|
|
55250
|
+
type: "string"
|
|
55251
|
+
},
|
|
55252
|
+
grandTotals: {
|
|
55253
|
+
description: "Enable or disable grand totals, they're only used in Pivot table",
|
|
55254
|
+
properties: {
|
|
55255
|
+
enabled: {
|
|
55256
|
+
type: "boolean"
|
|
55257
|
+
}
|
|
55258
|
+
},
|
|
55259
|
+
type: "object"
|
|
55260
|
+
},
|
|
55261
|
+
label: {
|
|
55262
|
+
description: 'Label in format {locale: "label"}, for example, {en: "Total Revenue"}',
|
|
55263
|
+
type: "object"
|
|
55264
|
+
},
|
|
55265
|
+
periodOverPeriod: {
|
|
55266
|
+
description: "Settings to configure period over period comparison. It can be used only in a measure slot.",
|
|
55267
|
+
properties: {
|
|
55268
|
+
level: {
|
|
55269
|
+
description: "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
|
|
55270
|
+
type: "number"
|
|
55271
|
+
},
|
|
55272
|
+
periodToDate: {
|
|
55273
|
+
description: "Turn ON/OFF period to date comparison",
|
|
55274
|
+
type: "boolean"
|
|
55275
|
+
},
|
|
55276
|
+
quantity: {
|
|
55277
|
+
description: "Number of periods",
|
|
55278
|
+
type: "number"
|
|
55279
|
+
},
|
|
55280
|
+
type: {
|
|
55281
|
+
description: "Period over period comparison type:\n'none' - turned off,\n'past' - absolute value comparison to the past,\n'change' - percentage change comparison to the past",
|
|
55282
|
+
enum: [
|
|
55283
|
+
"change",
|
|
55284
|
+
"none",
|
|
55285
|
+
"past"
|
|
55286
|
+
],
|
|
55287
|
+
type: "string"
|
|
55288
|
+
}
|
|
55289
|
+
},
|
|
55290
|
+
type: "object"
|
|
55291
|
+
},
|
|
55292
|
+
subtype: {
|
|
55293
|
+
anyOf: [
|
|
55294
|
+
{
|
|
55295
|
+
enum: [
|
|
55296
|
+
"coordinates",
|
|
55297
|
+
"currency",
|
|
55298
|
+
"date",
|
|
55299
|
+
"datetime",
|
|
55300
|
+
"duration",
|
|
55301
|
+
"hierarchy_element_expression",
|
|
55302
|
+
"topography"
|
|
55303
|
+
],
|
|
55304
|
+
type: "string"
|
|
55305
|
+
},
|
|
55306
|
+
{
|
|
55307
|
+
type: "null"
|
|
55308
|
+
}
|
|
55309
|
+
],
|
|
55310
|
+
description: "Column subtype"
|
|
55311
|
+
},
|
|
55312
|
+
type: {
|
|
55313
|
+
const: "numeric",
|
|
55314
|
+
description: '"numeric" column / formula type',
|
|
55315
|
+
type: "string"
|
|
55316
|
+
}
|
|
55317
|
+
},
|
|
55318
|
+
type: "object"
|
|
55319
|
+
}
|
|
55320
|
+
},
|
|
55321
|
+
description: "Data definition of the Search filter",
|
|
55322
|
+
items: {
|
|
55323
|
+
$ref: "https://developer.luzmo.com/assets/json-schemas/0.1.89/search-filter-slots.schema.json#/definitions/DimensionSlot"
|
|
55324
|
+
},
|
|
55325
|
+
maxItems: 1,
|
|
55326
|
+
type: "array"
|
|
55327
|
+
};
|
|
55328
|
+
|
|
53770
55329
|
// libs/dashboard-contents-types/json-schemas.ts
|
|
53771
55330
|
var json_schemas_default = {
|
|
53772
55331
|
"viz-item-type.schema.json": viz_item_type_schema_default,
|
|
@@ -53838,7 +55397,10 @@ var json_schemas_default = {
|
|
|
53838
55397
|
"slider-filter-options.schema.json": slider_filter_options_schema_default,
|
|
53839
55398
|
"slider-filter-slots.schema.json": slider_filter_slots_schema_default,
|
|
53840
55399
|
"text.schema.json": text_schema_default,
|
|
53841
|
-
"text-options.schema.json": text_options_schema_default
|
|
55400
|
+
"text-options.schema.json": text_options_schema_default,
|
|
55401
|
+
"search-filter.schema.json": search_filter_schema_default,
|
|
55402
|
+
"search-filter-options.schema.json": search_filter_options_schema_default,
|
|
55403
|
+
"search-filter-slots.schema.json": search_filter_slots_schema_default
|
|
53842
55404
|
};
|
|
53843
55405
|
|
|
53844
55406
|
// libs/embed-libs/embed/src/index.ts
|
|
@@ -53852,7 +55414,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
53852
55414
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
53853
55415
|
|
|
53854
55416
|
// libs/embed-libs/embed/package.json
|
|
53855
|
-
var version = "6.1.
|
|
55417
|
+
var version = "6.1.6";
|
|
53856
55418
|
|
|
53857
55419
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
53858
55420
|
var LuzmoService = class {
|