@vizzly/dashboard 0.15.0-dev-9c6450e1992314d49bfd0ec35c6ffdf797865567 → 0.15.0-dev-e4e46cdb5d41c2a0c5b2637632228c4a6a4654e0
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/dist/dashboard.esm.js
CHANGED
|
@@ -4175,7 +4175,7 @@ var attributesSchema$2 = function attributesSchema(config) {
|
|
|
4175
4175
|
return Joi.object(_extends({}, baseAttributesSchema(config.attributesSchemaOptions), timeDimensionQuerySchema(config.queryEngineConfig, config.attributesSchemaOptions), {
|
|
4176
4176
|
stacked: Joi.valid(true, false, '100%'),
|
|
4177
4177
|
legend: Joi.valid(true, false),
|
|
4178
|
-
labels: Joi.valid(true, false).optional(),
|
|
4178
|
+
// labels: Joi.valid(true, false).optional(),
|
|
4179
4179
|
type: Joi.valid('lineChartV2').required(),
|
|
4180
4180
|
parameters: parametersSchema(config.queryEngineConfig, config.attributesSchemaOptions),
|
|
4181
4181
|
lineCurve: lineCurveSchema,
|
|
@@ -4285,13 +4285,8 @@ var CONSTANTS$2 = {
|
|
|
4285
4285
|
title: 'Show Legend',
|
|
4286
4286
|
description: '',
|
|
4287
4287
|
namespace: 'legend'
|
|
4288
|
-
},
|
|
4289
|
-
labels: {
|
|
4290
|
-
type: 'labels',
|
|
4291
|
-
title: 'Show Labels',
|
|
4292
|
-
description: '',
|
|
4293
|
-
namespace: 'labels'
|
|
4294
4288
|
}
|
|
4289
|
+
// labels: { type: 'labels', title: 'Show Labels', description: '', namespace: 'labels' },
|
|
4295
4290
|
}
|
|
4296
4291
|
},
|
|
4297
4292
|
axis_labels: {
|
|
@@ -4457,7 +4452,6 @@ var LineChart$1 = function LineChart(config) {
|
|
|
4457
4452
|
conditionalFormattingRules: [],
|
|
4458
4453
|
drilldown: [],
|
|
4459
4454
|
legend: true,
|
|
4460
|
-
labels: false,
|
|
4461
4455
|
goalLines: undefined,
|
|
4462
4456
|
approxXAxisLabelCount: 'auto',
|
|
4463
4457
|
approxYAxisLabelCount: 'auto',
|
|
@@ -4520,9 +4514,10 @@ var LineChart$1 = function LineChart(config) {
|
|
|
4520
4514
|
}), namespace(CONSTANTS$2, 'sort'), namespace(CONSTANTS$2, 'filter'), namespace(CONSTANTS$2, 'custom_metrics'), namespace(CONSTANTS$2, 'limit')];
|
|
4521
4515
|
},
|
|
4522
4516
|
formatPanelConfig: function formatPanelConfig() {
|
|
4523
|
-
var _CONSTANTS$format_pan
|
|
4517
|
+
var _CONSTANTS$format_pan;
|
|
4524
4518
|
return [headingConstant(CONSTANTS$2), _extends({}, namespace(CONSTANTS$2, 'chart_styles'), {
|
|
4525
|
-
subSection: [(_CONSTANTS$format_pan = CONSTANTS$2.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend
|
|
4519
|
+
subSection: [(_CONSTANTS$format_pan = CONSTANTS$2.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend // CONSTANTS.format_panel.chart_styles?.subSectionDefinition.labels as Section<'labels'>,
|
|
4520
|
+
]
|
|
4526
4521
|
}), axisLabelsConstants(CONSTANTS$2), _extends({}, namespace(CONSTANTS$2, 'conditional_formatting'), {
|
|
4527
4522
|
ruleType: 'lineColor'
|
|
4528
4523
|
}), namespace(CONSTANTS$2, 'goal_line')
|
|
@@ -8650,13 +8645,8 @@ var CONSTANTS$h = {
|
|
|
8650
8645
|
title: 'Show Legend',
|
|
8651
8646
|
description: '',
|
|
8652
8647
|
namespace: 'legend'
|
|
8653
|
-
},
|
|
8654
|
-
labels: {
|
|
8655
|
-
type: 'labels',
|
|
8656
|
-
title: 'Show Labels',
|
|
8657
|
-
description: '',
|
|
8658
|
-
namespace: 'labels'
|
|
8659
8648
|
}
|
|
8649
|
+
// labels: { type: 'labels', title: 'Show Labels', description: '', namespace: 'labels' },
|
|
8660
8650
|
}
|
|
8661
8651
|
},
|
|
8662
8652
|
axis_labels: {
|
|
@@ -8795,7 +8785,6 @@ var FunnelChart = function FunnelChart(config) {
|
|
|
8795
8785
|
yAxisFormat: null,
|
|
8796
8786
|
xAxisFormat: null,
|
|
8797
8787
|
legend: true,
|
|
8798
|
-
labels: false,
|
|
8799
8788
|
approxXAxisLabelCount: 'auto',
|
|
8800
8789
|
approxYAxisLabelCount: 'auto',
|
|
8801
8790
|
axisTitles: undefined,
|
|
@@ -8853,9 +8842,10 @@ var FunnelChart = function FunnelChart(config) {
|
|
|
8853
8842
|
}), namespace(CONSTANTS$h, 'sort'), namespace(CONSTANTS$h, 'filter'), namespace(CONSTANTS$h, 'custom_metrics'), namespace(CONSTANTS$h, 'limit')];
|
|
8854
8843
|
},
|
|
8855
8844
|
formatPanelConfig: function formatPanelConfig() {
|
|
8856
|
-
var _CONSTANTS$format_pan
|
|
8845
|
+
var _CONSTANTS$format_pan;
|
|
8857
8846
|
return [headingConstant(CONSTANTS$h), _extends({}, namespace(CONSTANTS$h, 'chart_styles'), {
|
|
8858
|
-
subSection: [(_CONSTANTS$format_pan = CONSTANTS$h.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend
|
|
8847
|
+
subSection: [(_CONSTANTS$format_pan = CONSTANTS$h.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend // CONSTANTS.format_panel.chart_styles?.subSectionDefinition.labels as Section<'labels'>,
|
|
8848
|
+
]
|
|
8859
8849
|
}), axisLabelsConstants(CONSTANTS$h), _extends({}, namespace(CONSTANTS$h, 'conditional_formatting'), {
|
|
8860
8850
|
ruleType: 'backgroundColor'
|
|
8861
8851
|
}), namespace(CONSTANTS$h, 'headline')];
|
|
@@ -9953,7 +9943,7 @@ var attributesSchema$i = function attributesSchema(config) {
|
|
|
9953
9943
|
return Joi.object(_extends({}, baseAttributesSchema(config.attributesSchemaOptions), timeDimensionQuerySchema(config.queryEngineConfig, config.attributesSchemaOptions), {
|
|
9954
9944
|
stacked: Joi.valid(true, false),
|
|
9955
9945
|
legend: Joi.valid(true, false),
|
|
9956
|
-
labels: Joi.valid(true, false).optional(),
|
|
9946
|
+
// labels: Joi.valid(true, false).optional(),
|
|
9957
9947
|
type: Joi.valid('barChartV2').required(),
|
|
9958
9948
|
parameters: parametersSchema(config.queryEngineConfig, config.attributesSchemaOptions),
|
|
9959
9949
|
conditionalFormattingRules: conditionalFormattingRulesSchema(config.queryEngineConfig),
|
|
@@ -10062,13 +10052,8 @@ var CONSTANTS$k = {
|
|
|
10062
10052
|
title: 'Show Legend',
|
|
10063
10053
|
description: '',
|
|
10064
10054
|
namespace: 'legend'
|
|
10065
|
-
},
|
|
10066
|
-
labels: {
|
|
10067
|
-
type: 'labels',
|
|
10068
|
-
title: 'Show Labels',
|
|
10069
|
-
description: '',
|
|
10070
|
-
namespace: 'labels'
|
|
10071
10055
|
}
|
|
10056
|
+
// labels: { type: 'labels', title: 'Show Labels', description: '', namespace: 'labels' },
|
|
10072
10057
|
}
|
|
10073
10058
|
},
|
|
10074
10059
|
axis_labels: {
|
|
@@ -10228,7 +10213,6 @@ var BarChart$1 = function BarChart(config) {
|
|
|
10228
10213
|
conditionalFormattingRules: [],
|
|
10229
10214
|
drilldown: [],
|
|
10230
10215
|
legend: true,
|
|
10231
|
-
labels: false,
|
|
10232
10216
|
goalLines: undefined,
|
|
10233
10217
|
approxXAxisLabelCount: 'auto',
|
|
10234
10218
|
approxYAxisLabelCount: 'auto',
|
|
@@ -10295,9 +10279,10 @@ var BarChart$1 = function BarChart(config) {
|
|
|
10295
10279
|
}), namespace(CONSTANTS$k, 'custom_metrics'), namespace(CONSTANTS$k, 'limit')];
|
|
10296
10280
|
},
|
|
10297
10281
|
formatPanelConfig: function formatPanelConfig() {
|
|
10298
|
-
var _CONSTANTS$format_pan
|
|
10282
|
+
var _CONSTANTS$format_pan;
|
|
10299
10283
|
return [headingConstant(CONSTANTS$k), _extends({}, namespace(CONSTANTS$k, 'chart_styles'), {
|
|
10300
|
-
subSection: [(_CONSTANTS$format_pan = CONSTANTS$k.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend
|
|
10284
|
+
subSection: [(_CONSTANTS$format_pan = CONSTANTS$k.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend // CONSTANTS.format_panel.chart_styles?.subSectionDefinition.labels as Section<'labels'>,
|
|
10285
|
+
]
|
|
10301
10286
|
}), axisLabelsConstants(CONSTANTS$k), _extends({}, namespace(CONSTANTS$k, 'conditional_formatting'), {
|
|
10302
10287
|
ruleType: 'lineColor'
|
|
10303
10288
|
}), namespace(CONSTANTS$k, 'goal_line')];
|
|
@@ -10325,7 +10310,7 @@ var BarChart$1 = function BarChart(config) {
|
|
|
10325
10310
|
var attributesSchema$j = function attributesSchema(config) {
|
|
10326
10311
|
return Joi.object(_extends({}, baseAttributesSchema(config.attributesSchemaOptions), timeDimensionQuerySchema(config.queryEngineConfig, config.attributesSchemaOptions), {
|
|
10327
10312
|
legend: Joi.valid(true, false),
|
|
10328
|
-
labels: Joi.valid(true, false).optional(),
|
|
10313
|
+
// labels: Joi.valid(true, false).optional(),
|
|
10329
10314
|
type: Joi.valid('waterfallChart').required(),
|
|
10330
10315
|
parameters: parametersSchema(config.queryEngineConfig, config.attributesSchemaOptions),
|
|
10331
10316
|
axisTitles: axisTitleSchema(),
|
|
@@ -10422,13 +10407,8 @@ var CONSTANTS$l = {
|
|
|
10422
10407
|
title: 'Show Legend',
|
|
10423
10408
|
description: '',
|
|
10424
10409
|
namespace: 'legend'
|
|
10425
|
-
},
|
|
10426
|
-
labels: {
|
|
10427
|
-
type: 'labels',
|
|
10428
|
-
title: 'Show Labels',
|
|
10429
|
-
description: '',
|
|
10430
|
-
namespace: 'labels'
|
|
10431
10410
|
}
|
|
10411
|
+
// labels: { type: 'labels', title: 'Show Labels', description: '', namespace: 'labels' },
|
|
10432
10412
|
}
|
|
10433
10413
|
},
|
|
10434
10414
|
axis_labels: {
|
|
@@ -10579,7 +10559,6 @@ var WaterfallChart = function WaterfallChart(config) {
|
|
|
10579
10559
|
yAxisFormat: null,
|
|
10580
10560
|
xAxisFormat: null,
|
|
10581
10561
|
legend: true,
|
|
10582
|
-
labels: false,
|
|
10583
10562
|
parameters: {},
|
|
10584
10563
|
axisTitles: undefined,
|
|
10585
10564
|
headline: undefined,
|
|
@@ -10640,9 +10619,10 @@ var WaterfallChart = function WaterfallChart(config) {
|
|
|
10640
10619
|
}), namespace(CONSTANTS$l, 'sort'), namespace(CONSTANTS$l, 'filter'), namespace(CONSTANTS$l, 'custom_metrics'), namespace(CONSTANTS$l, 'limit')];
|
|
10641
10620
|
},
|
|
10642
10621
|
formatPanelConfig: function formatPanelConfig() {
|
|
10643
|
-
var _CONSTANTS$format_pan
|
|
10622
|
+
var _CONSTANTS$format_pan;
|
|
10644
10623
|
return [headingConstant(CONSTANTS$l), namespace(CONSTANTS$l, 'waterfall_colors'), _extends({}, namespace(CONSTANTS$l, 'chart_styles'), {
|
|
10645
|
-
subSection: [(_CONSTANTS$format_pan = CONSTANTS$l.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend
|
|
10624
|
+
subSection: [(_CONSTANTS$format_pan = CONSTANTS$l.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend // CONSTANTS.format_panel.chart_styles?.subSectionDefinition.labels as Section<'labels'>,
|
|
10625
|
+
]
|
|
10646
10626
|
}), axisLabelsConstants(CONSTANTS$l)];
|
|
10647
10627
|
},
|
|
10648
10628
|
supportedCustomFields: {
|
|
@@ -10669,7 +10649,7 @@ var attributesSchema$k = function attributesSchema(config) {
|
|
|
10669
10649
|
return Joi.object(_extends({}, baseAttributesSchema(config.attributesSchemaOptions), timeDimensionQuerySchema(config.queryEngineConfig, config.attributesSchemaOptions), {
|
|
10670
10650
|
stacked: Joi.valid(true, false),
|
|
10671
10651
|
legend: Joi.valid(true, false),
|
|
10672
|
-
labels: Joi.valid(true, false).optional(),
|
|
10652
|
+
// labels: Joi.valid(true, false).optional(),
|
|
10673
10653
|
type: Joi.valid('areaChartV2').required(),
|
|
10674
10654
|
parameters: parametersSchema(config.queryEngineConfig, config.attributesSchemaOptions),
|
|
10675
10655
|
lineCurve: areaCurveSchema,
|
|
@@ -10785,13 +10765,8 @@ var CONSTANTS$m = {
|
|
|
10785
10765
|
title: 'Show Legend',
|
|
10786
10766
|
description: '',
|
|
10787
10767
|
namespace: 'legend'
|
|
10788
|
-
},
|
|
10789
|
-
labels: {
|
|
10790
|
-
type: 'labels',
|
|
10791
|
-
title: 'Show Labels',
|
|
10792
|
-
description: '',
|
|
10793
|
-
namespace: 'labels'
|
|
10794
10768
|
}
|
|
10769
|
+
// labels: { type: 'labels', title: 'Show Labels', description: '', namespace: 'labels' },
|
|
10795
10770
|
}
|
|
10796
10771
|
},
|
|
10797
10772
|
axis_labels: {
|
|
@@ -10958,7 +10933,6 @@ var AreaChart$1 = function AreaChart(config) {
|
|
|
10958
10933
|
conditionalFormattingRules: [],
|
|
10959
10934
|
drilldown: [],
|
|
10960
10935
|
legend: true,
|
|
10961
|
-
labels: false,
|
|
10962
10936
|
goalLines: undefined,
|
|
10963
10937
|
approxXAxisLabelCount: 'auto',
|
|
10964
10938
|
approxYAxisLabelCount: 'auto',
|
|
@@ -11022,9 +10996,10 @@ var AreaChart$1 = function AreaChart(config) {
|
|
|
11022
10996
|
}), namespace(CONSTANTS$m, 'sort'), namespace(CONSTANTS$m, 'filter'), namespace(CONSTANTS$m, 'custom_metrics'), namespace(CONSTANTS$m, 'limit')];
|
|
11023
10997
|
},
|
|
11024
10998
|
formatPanelConfig: function formatPanelConfig() {
|
|
11025
|
-
var _CONSTANTS$format_pan
|
|
10999
|
+
var _CONSTANTS$format_pan;
|
|
11026
11000
|
return [headingConstant(CONSTANTS$m), _extends({}, namespace(CONSTANTS$m, 'chart_styles'), {
|
|
11027
|
-
subSection: [(_CONSTANTS$format_pan = CONSTANTS$m.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend
|
|
11001
|
+
subSection: [(_CONSTANTS$format_pan = CONSTANTS$m.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend // CONSTANTS.format_panel.chart_styles?.subSectionDefinition.labels as Section<'labels'>,
|
|
11002
|
+
]
|
|
11028
11003
|
}), axisLabelsConstants(CONSTANTS$m), _extends({}, namespace(CONSTANTS$m, 'conditional_formatting'), {
|
|
11029
11004
|
ruleType: 'lineColor'
|
|
11030
11005
|
}), namespace(CONSTANTS$m, 'goal_line')];
|
|
@@ -11053,7 +11028,7 @@ var attributesSchema$l = function attributesSchema(config) {
|
|
|
11053
11028
|
return Joi.object(_extends({}, baseAttributesSchema(config.attributesSchemaOptions), {
|
|
11054
11029
|
stacked: Joi.valid(true, false),
|
|
11055
11030
|
legend: Joi.valid(true, false),
|
|
11056
|
-
labels: Joi.valid(true, false).optional(),
|
|
11031
|
+
// labels: Joi.valid(true, false).optional(),
|
|
11057
11032
|
barMeasure: Joi.array().items(measureSchema(config.queryEngineConfig.supportedAggregates, config.attributesSchemaOptions)),
|
|
11058
11033
|
lineMeasure: Joi.array().items(measureSchema(config.queryEngineConfig.supportedAggregates, config.attributesSchemaOptions)),
|
|
11059
11034
|
barDimension: dimensionSchema(config.queryEngineConfig.supportedTimeTruncFunctions, config.attributesSchemaOptions),
|
|
@@ -11199,13 +11174,8 @@ var CONSTANTS$n = {
|
|
|
11199
11174
|
title: 'Show Legend',
|
|
11200
11175
|
description: '',
|
|
11201
11176
|
namespace: 'legend'
|
|
11202
|
-
},
|
|
11203
|
-
labels: {
|
|
11204
|
-
type: 'labels',
|
|
11205
|
-
title: 'Show Labels',
|
|
11206
|
-
description: '',
|
|
11207
|
-
namespace: 'labels'
|
|
11208
11177
|
}
|
|
11178
|
+
// labels: { type: 'labels', title: 'Show Labels', description: '', namespace: 'labels' },
|
|
11209
11179
|
}
|
|
11210
11180
|
},
|
|
11211
11181
|
axis_labels: {
|
|
@@ -11337,7 +11307,6 @@ var ComboChartV2 = function ComboChartV2(config) {
|
|
|
11337
11307
|
yAxisFormat: null,
|
|
11338
11308
|
xAxisFormat: null,
|
|
11339
11309
|
legend: true,
|
|
11340
|
-
labels: false,
|
|
11341
11310
|
approxXAxisLabelCount: 'auto',
|
|
11342
11311
|
approxYAxisLabelCount: 'auto',
|
|
11343
11312
|
goalLines: undefined,
|
|
@@ -11378,18 +11347,19 @@ var ComboChartV2 = function ComboChartV2(config) {
|
|
|
11378
11347
|
}), namespace(CONSTANTS$n, 'combo_chart_dimension'), namespace(CONSTANTS$n, 'sort'), namespace(CONSTANTS$n, 'filter'), namespace(CONSTANTS$n, 'custom_metrics'), namespace(CONSTANTS$n, 'limit')];
|
|
11379
11348
|
},
|
|
11380
11349
|
formatPanelConfig: function formatPanelConfig() {
|
|
11381
|
-
var _CONSTANTS$format_pan, _CONSTANTS$format_pan2, _CONSTANTS$format_pan3, _CONSTANTS$format_pan4, _CONSTANTS$format_pan5, _CONSTANTS$format_pan6, _CONSTANTS$format_pan7
|
|
11350
|
+
var _CONSTANTS$format_pan, _CONSTANTS$format_pan2, _CONSTANTS$format_pan3, _CONSTANTS$format_pan4, _CONSTANTS$format_pan5, _CONSTANTS$format_pan6, _CONSTANTS$format_pan7;
|
|
11382
11351
|
return [headingConstant(CONSTANTS$n), _extends({}, namespace(CONSTANTS$n, 'chart_styles'), {
|
|
11383
|
-
subSection: [(_CONSTANTS$format_pan = CONSTANTS$n.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend
|
|
11352
|
+
subSection: [(_CONSTANTS$format_pan = CONSTANTS$n.format_panel.chart_styles) == null ? void 0 : _CONSTANTS$format_pan.subSectionDefinition.legend // CONSTANTS.format_panel.chart_styles?.subSectionDefinition.labels as Section<'labels'>,
|
|
11353
|
+
]
|
|
11384
11354
|
}), axisLabelsConstants(CONSTANTS$n), _extends({}, namespace(CONSTANTS$n, 'conditional_formatting'), {
|
|
11385
11355
|
ruleType: 'backgroundColor',
|
|
11386
11356
|
subSection: [{
|
|
11387
|
-
title: (_CONSTANTS$
|
|
11388
|
-
namespace: (_CONSTANTS$
|
|
11357
|
+
title: (_CONSTANTS$format_pan2 = (_CONSTANTS$format_pan3 = CONSTANTS$n.format_panel.conditional_formatting) == null || (_CONSTANTS$format_pan3 = _CONSTANTS$format_pan3.subSectionDefinition) == null ? void 0 : _CONSTANTS$format_pan3.bar.title) != null ? _CONSTANTS$format_pan2 : '',
|
|
11358
|
+
namespace: (_CONSTANTS$format_pan4 = CONSTANTS$n.format_panel.conditional_formatting) == null || (_CONSTANTS$format_pan4 = _CONSTANTS$format_pan4.subSectionDefinition) == null ? void 0 : _CONSTANTS$format_pan4.bar.namespace,
|
|
11389
11359
|
propKey: 'bar'
|
|
11390
11360
|
}, {
|
|
11391
|
-
title: (_CONSTANTS$
|
|
11392
|
-
namespace: (_CONSTANTS$
|
|
11361
|
+
title: (_CONSTANTS$format_pan5 = (_CONSTANTS$format_pan6 = CONSTANTS$n.format_panel.conditional_formatting) == null || (_CONSTANTS$format_pan6 = _CONSTANTS$format_pan6.subSectionDefinition) == null ? void 0 : _CONSTANTS$format_pan6.line.title) != null ? _CONSTANTS$format_pan5 : '',
|
|
11362
|
+
namespace: (_CONSTANTS$format_pan7 = CONSTANTS$n.format_panel.conditional_formatting) == null || (_CONSTANTS$format_pan7 = _CONSTANTS$format_pan7.subSectionDefinition) == null ? void 0 : _CONSTANTS$format_pan7.line.namespace,
|
|
11393
11363
|
propKey: 'line'
|
|
11394
11364
|
}]
|
|
11395
11365
|
}), namespace(CONSTANTS$n, 'goal_line')];
|
|
@@ -47983,7 +47953,6 @@ var LineChartV2View = function LineChartV2View(props) {
|
|
|
47983
47953
|
overflowX: 'hidden'
|
|
47984
47954
|
},
|
|
47985
47955
|
children: function children(parent) {
|
|
47986
|
-
var _props$attributes$lab;
|
|
47987
47956
|
if (chartRepresentation.lines.length === 0) return jsx(LoadingComponent, {});
|
|
47988
47957
|
return jsx(LineChart$5, {
|
|
47989
47958
|
width: parent.width,
|
|
@@ -47994,7 +47963,7 @@ var LineChartV2View = function LineChartV2View(props) {
|
|
|
47994
47963
|
removeStroke: false,
|
|
47995
47964
|
showRoundedTotal: false,
|
|
47996
47965
|
showLegend: props.attributes.legend,
|
|
47997
|
-
showLabels:
|
|
47966
|
+
showLabels: false,
|
|
47998
47967
|
axis: {
|
|
47999
47968
|
showXAxisLabels: props.attributes.approxXAxisLabelCount !== 0,
|
|
48000
47969
|
showYAxisLabels: props.attributes.approxYAxisLabelCount !== 0
|
|
@@ -48354,7 +48323,7 @@ var AreaChartV2View = function AreaChartV2View(props) {
|
|
|
48354
48323
|
overflowX: 'hidden'
|
|
48355
48324
|
},
|
|
48356
48325
|
children: function children(parent) {
|
|
48357
|
-
var _props$attributes$vie2, _props$attributes$sta
|
|
48326
|
+
var _props$attributes$vie2, _props$attributes$sta;
|
|
48358
48327
|
if (chartRepresentation.areas.length === 0) return jsx(LoadingComponent, {});
|
|
48359
48328
|
return jsx(AreaChart$5, {
|
|
48360
48329
|
width: parent.width,
|
|
@@ -48367,7 +48336,7 @@ var AreaChartV2View = function AreaChartV2View(props) {
|
|
|
48367
48336
|
removeStroke: false,
|
|
48368
48337
|
showRoundedTotal: false,
|
|
48369
48338
|
showLegend: props.attributes.legend,
|
|
48370
|
-
showLabels:
|
|
48339
|
+
showLabels: false,
|
|
48371
48340
|
axis: {
|
|
48372
48341
|
showXAxisLabels: props.attributes.approxXAxisLabelCount !== 0,
|
|
48373
48342
|
showYAxisLabels: props.attributes.approxYAxisLabelCount !== 0
|
|
@@ -48749,7 +48718,6 @@ var BarChartV2View = function BarChartV2View(props) {
|
|
|
48749
48718
|
overflowX: 'hidden'
|
|
48750
48719
|
},
|
|
48751
48720
|
children: function children(parent) {
|
|
48752
|
-
var _props$attributes$lab;
|
|
48753
48721
|
if (chartRepresentation.bars.length === 0) return jsx(LoadingComponent, {});
|
|
48754
48722
|
return jsx(BarChart$5, {
|
|
48755
48723
|
width: parent.width,
|
|
@@ -48760,7 +48728,7 @@ var BarChartV2View = function BarChartV2View(props) {
|
|
|
48760
48728
|
removeStroke: false,
|
|
48761
48729
|
showRoundedTotal: false,
|
|
48762
48730
|
showLegend: props.attributes.legend,
|
|
48763
|
-
showLabels:
|
|
48731
|
+
showLabels: false,
|
|
48764
48732
|
axis: {
|
|
48765
48733
|
showXAxisLabels: props.attributes.approxXAxisLabelCount !== 0,
|
|
48766
48734
|
showYAxisLabels: props.attributes.approxYAxisLabelCount !== 0
|
|
@@ -49438,7 +49406,7 @@ var ComboChartViewV2 = function ComboChartViewV2(props) {
|
|
|
49438
49406
|
overflowX: 'hidden'
|
|
49439
49407
|
},
|
|
49440
49408
|
children: function children(parent) {
|
|
49441
|
-
var _props$attributes$sta2
|
|
49409
|
+
var _props$attributes$sta2;
|
|
49442
49410
|
var numberOfXTicksFittingIntoSpace = howManyTicksFitInWidth(comboChartRepresentation.x.ticks || [], parent.width);
|
|
49443
49411
|
return jsx(ComboChart$4, {
|
|
49444
49412
|
width: parent.width,
|
|
@@ -49456,7 +49424,7 @@ var ComboChartViewV2 = function ComboChartViewV2(props) {
|
|
|
49456
49424
|
removeStroke: false,
|
|
49457
49425
|
showRoundedTotal: false,
|
|
49458
49426
|
showLegend: props.attributes.legend,
|
|
49459
|
-
showLabels:
|
|
49427
|
+
showLabels: false,
|
|
49460
49428
|
axis: {
|
|
49461
49429
|
showXAxisLabels: props.attributes.approxXAxisLabelCount !== 0,
|
|
49462
49430
|
showYAxisLabels: props.attributes.approxYAxisLabelCount !== 0
|
|
@@ -52010,7 +51978,7 @@ var defaultProps$8 = {
|
|
|
52010
51978
|
approxYAxisLabelCount: 'auto'
|
|
52011
51979
|
};
|
|
52012
51980
|
var FunnelChartView = function FunnelChartView(props) {
|
|
52013
|
-
var _props$library, _props2, _props3, _props4, _props5, _props6, _props7, _props$viewId, _props8, _props$library2, _props9, _props10, _props11, _theme$charts, _props13,
|
|
51981
|
+
var _props$library, _props2, _props3, _props4, _props5, _props6, _props7, _props$viewId, _props8, _props$library2, _props9, _props10, _props11, _theme$charts, _props13, _props14, _props$viewId2, _theme$charts2;
|
|
52014
51982
|
var _props = props,
|
|
52015
51983
|
displayTitle = _props.displayTitle,
|
|
52016
51984
|
displaySubject = _props.displaySubject;
|
|
@@ -52101,11 +52069,11 @@ var FunnelChartView = function FunnelChartView(props) {
|
|
|
52101
52069
|
colors: themeToColorScale(theme == null ? void 0 : theme.colors, series$1.length),
|
|
52102
52070
|
data: resultSet$1,
|
|
52103
52071
|
legend: showLegend((_props13 = props) == null ? void 0 : _props13.legend, (theme == null ? void 0 : theme.detail) === 'verbose'),
|
|
52104
|
-
labels:
|
|
52072
|
+
labels: false,
|
|
52105
52073
|
removeStroke: false,
|
|
52106
52074
|
forceXAxisAsTime: !!props.timeDimension,
|
|
52107
52075
|
theme: theme == null ? void 0 : theme.charts,
|
|
52108
|
-
axisTitles: (
|
|
52076
|
+
axisTitles: (_props14 = props) == null ? void 0 : _props14.axisTitles,
|
|
52109
52077
|
formatSeriesName: formatSeriesName(props.result, textOverride, props.type, (_props$viewId2 = props.viewId) != null ? _props$viewId2 : '', labelFormat),
|
|
52110
52078
|
conditionalFormattingPossibilities: function conditionalFormattingPossibilities(dataKey) {
|
|
52111
52079
|
return getExplanationsOfConditionFormattingRulesThatApplyToSeries(props.dimension, props.conditionalFormattingRules,
|
|
@@ -54324,7 +54292,6 @@ var WaterfallChartView = function WaterfallChartView(props) {
|
|
|
54324
54292
|
displayTitle = props.displayTitle,
|
|
54325
54293
|
headline = props.headline,
|
|
54326
54294
|
id = props.id,
|
|
54327
|
-
labels = props.labels,
|
|
54328
54295
|
legend = props.legend,
|
|
54329
54296
|
library = props.library,
|
|
54330
54297
|
localFilters = props.localFilters,
|
|
@@ -54432,7 +54399,7 @@ var WaterfallChartView = function WaterfallChartView(props) {
|
|
|
54432
54399
|
height: parent.height,
|
|
54433
54400
|
options: {
|
|
54434
54401
|
showLegend: showLegend(legend, (theme == null ? void 0 : theme.detail) === 'verbose'),
|
|
54435
|
-
showLabels:
|
|
54402
|
+
showLabels: false,
|
|
54436
54403
|
showTooltipRoundedTotal: true,
|
|
54437
54404
|
removeStroke: false,
|
|
54438
54405
|
axis: {
|
|
@@ -72346,8 +72313,6 @@ var getInMemoryDb = function getInMemoryDb() {
|
|
|
72346
72313
|
// @ts-ignore
|
|
72347
72314
|
var InMemoryDb = window.VizzlyInMemoryDb;
|
|
72348
72315
|
if (!InMemoryDb) throw new MissingVizzlyInMemoryDb("VizzlyInMemoryDb missing! This means that 'window.VizzlyInMemoryDb' was not set. This is required for the in-browser vizzly setup.\n\nPlease ensure you have added the script tag to load the in-browser query engine.\n\nFor example, this should be added within the <head> tag;\n<script src=\"https://static.app.vizzly.co/query-engine/0.8.29/vizzly-in-memory-db.umd.js\"></script>\n\nNote, you can change the version of the in-memory database by changing '0.8.3' to the version you require.\n");
|
|
72349
|
-
|
|
72350
|
-
// @ts-ignore
|
|
72351
72316
|
return InMemoryDb;
|
|
72352
72317
|
};
|
|
72353
72318
|
|
|
@@ -73085,8 +73050,6 @@ var VizzlyServices = /*#__PURE__*/function () {
|
|
|
73085
73050
|
case 9:
|
|
73086
73051
|
return _context5.abrupt("return", saved.body);
|
|
73087
73052
|
case 10:
|
|
73088
|
-
return _context5.abrupt("return", undefined);
|
|
73089
|
-
case 11:
|
|
73090
73053
|
case "end":
|
|
73091
73054
|
return _context5.stop();
|
|
73092
73055
|
}
|
|
@@ -73386,8 +73349,6 @@ var VizzlyServices = /*#__PURE__*/function () {
|
|
|
73386
73349
|
_context12.t0 = _context12["catch"](0);
|
|
73387
73350
|
logError('Error updating global library:', _context12.t0);
|
|
73388
73351
|
case 12:
|
|
73389
|
-
return _context12.abrupt("return", undefined);
|
|
73390
|
-
case 13:
|
|
73391
73352
|
case "end":
|
|
73392
73353
|
return _context12.stop();
|
|
73393
73354
|
}
|
|
@@ -163,7 +163,6 @@ export declare namespace Component {
|
|
|
163
163
|
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
164
164
|
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
165
165
|
legend: boolean;
|
|
166
|
-
labels?: boolean;
|
|
167
166
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
168
167
|
conditionalFormattingRules?: {
|
|
169
168
|
bar?: Array<ConditionalFormatting.Rule>;
|
|
@@ -207,7 +206,6 @@ export declare namespace Component {
|
|
|
207
206
|
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
208
207
|
drilldown: QueryAttributes.Dimension[];
|
|
209
208
|
legend: boolean;
|
|
210
|
-
labels?: boolean;
|
|
211
209
|
parameters?: Parameters;
|
|
212
210
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
213
211
|
axisTitles?: AxisTitles;
|
|
@@ -228,7 +226,6 @@ export declare namespace Component {
|
|
|
228
226
|
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
229
227
|
drilldown: QueryAttributes.Dimension[];
|
|
230
228
|
legend: boolean;
|
|
231
|
-
labels?: boolean;
|
|
232
229
|
parameters?: Parameters;
|
|
233
230
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
234
231
|
axisTitles?: AxisTitles;
|
|
@@ -250,7 +247,6 @@ export declare namespace Component {
|
|
|
250
247
|
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
251
248
|
drilldown: QueryAttributes.Dimension[];
|
|
252
249
|
legend: boolean;
|
|
253
|
-
labels?: boolean;
|
|
254
250
|
parameters?: Parameters;
|
|
255
251
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
256
252
|
axisTitles?: AxisTitles;
|
|
@@ -474,7 +470,6 @@ export declare namespace Component {
|
|
|
474
470
|
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
475
471
|
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
476
472
|
legend: boolean;
|
|
477
|
-
labels?: boolean;
|
|
478
473
|
parameters?: Parameters;
|
|
479
474
|
axisTitles?: AxisTitles;
|
|
480
475
|
headline?: Headline;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.15.0-dev-
|
|
4
|
+
"version": "0.15.0-dev-e4e46cdb5d41c2a0c5b2637632228c4a6a4654e0",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@react-hook/window-size": "^3.1.1",
|
|
54
54
|
"@react-spring/web": "9.6.1",
|
|
55
55
|
"@visx/visx": "^3.10.2",
|
|
56
|
-
"@vizzly/api-client": "0.0.
|
|
56
|
+
"@vizzly/api-client": "0.0.57",
|
|
57
57
|
"@vizzly/joi": "^17.7.0",
|
|
58
58
|
"@vizzly/semantic-layer-public": "0.0.235",
|
|
59
59
|
"@vizzly/sqlbuilder-public": "0.1.57",
|