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