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