@splunk/visualizations 23.2.0 → 23.5.0
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/Area.config.js +36 -30
- package/Area.config.js.map +1 -1
- package/Area.js +243 -203
- package/Area.js.map +1 -1
- package/Bar.config.js +29 -23
- package/Bar.config.js.map +1 -1
- package/Bar.js +233 -193
- package/Bar.js.map +1 -1
- package/Bubble.config.js +36 -23
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +247 -196
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +15 -12
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +201 -148
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +29 -23
- package/Column.config.js.map +1 -1
- package/Column.js +235 -194
- package/Column.js.map +1 -1
- package/Ellipse.config.js +23 -20
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +176 -123
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +803 -0
- package/FillerGauge.config.js.map +1 -0
- package/FillerGauge.js +3634 -0
- package/FillerGauge.js.map +1 -0
- package/Image.config.js +13 -6
- package/Image.config.js.map +1 -1
- package/Image.js +260 -200
- package/Image.js.map +1 -1
- package/LICENSE.md +14 -0
- package/Line.config.js +40 -31
- package/Line.config.js.map +1 -1
- package/Line.js +248 -202
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +107 -123
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +241 -193
- package/LinkGraph.js.map +1 -1
- package/Markdown.config.js +95 -3
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +272 -118
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +750 -0
- package/MarkerGauge.config.js.map +1 -0
- package/MarkerGauge.js +3758 -0
- package/MarkerGauge.js.map +1 -0
- package/ParallelCoordinates.config.js +52 -46
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +257 -164
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +61 -46
- package/Pie.config.js.map +1 -1
- package/Pie.js +254 -186
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +279 -39
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +825 -193
- package/Punchcard.js.map +1 -1
- package/README.external.md +45 -0
- package/README.md +18 -3
- package/Rectangle.config.js +89 -107
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +204 -145
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +29 -22
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +250 -186
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +39 -28
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +2375 -2434
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +37 -29
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +3108 -3174
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +37 -23
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +36 -28
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +279 -210
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +15 -13
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +299 -253
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +26 -10
- package/Table.config.js.map +1 -1
- package/Table.js +382 -265
- package/Table.js.map +1 -1
- package/common/Charting.js +33 -30
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +4 -4
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +36 -34
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +386 -0
- package/common/GaugeMajorTicks.js.map +1 -0
- package/common/GaugeValueMarker.js +333 -0
- package/common/GaugeValueMarker.js.map +1 -0
- package/common/OptionsDoc.js +47 -33
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +376 -0
- package/common/OverviewDoc.js.map +1 -0
- package/common/SplunkVisualization.js +6 -6
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +10 -10
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +55 -72
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +15 -13
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +893 -0
- package/common/gaugeUtils.js.map +1 -0
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/JSONSchemaUtils.js.map +1 -1
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +57 -3
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +24 -10
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/withDashboardViz.js +158 -95
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +18 -14
- package/common/utils/eventUtils.js +0 -115
- package/common/utils/eventUtils.js.map +0 -1
package/Bar.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 138);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -170,6 +170,77 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
170
170
|
"use strict";
|
|
171
171
|
|
|
172
172
|
|
|
173
|
+
var _typeof = __webpack_require__(22);
|
|
174
|
+
|
|
175
|
+
Object.defineProperty(exports, "__esModule", {
|
|
176
|
+
value: true
|
|
177
|
+
});
|
|
178
|
+
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
179
|
+
|
|
180
|
+
var lodash_1 = __webpack_require__(2);
|
|
181
|
+
/**
|
|
182
|
+
* @method extendStaticWrapperProps
|
|
183
|
+
* @param {Object} props
|
|
184
|
+
* @param {DashboardVizType} props.Wrapper
|
|
185
|
+
* @param {DashboardVizType} props.Visualization
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
190
|
+
var Wrapper = _ref.Wrapper,
|
|
191
|
+
Visualization = _ref.Visualization;
|
|
192
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
193
|
+
extendProperties.forEach(function (prop) {
|
|
194
|
+
if (Visualization[prop]) {
|
|
195
|
+
Wrapper[prop] = Visualization[prop];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
201
|
+
/**
|
|
202
|
+
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
203
|
+
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
|
|
204
|
+
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
205
|
+
*
|
|
206
|
+
* @method deepMergeWithArrayOverrides
|
|
207
|
+
* @param {Object} initial - target object to merge values into
|
|
208
|
+
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
209
|
+
*
|
|
210
|
+
* @returns {Object}
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
214
|
+
var clone = lodash_1.cloneDeep(initial);
|
|
215
|
+
|
|
216
|
+
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
217
|
+
sources[_key - 1] = arguments[_key];
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
sources.forEach(function (sourceToApply) {
|
|
221
|
+
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
222
|
+
if (!clone.hasOwnProperty(sourceKey)) {
|
|
223
|
+
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
224
|
+
} // object merging excluding arrays
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
228
|
+
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
return clone;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
236
|
+
|
|
237
|
+
/***/ }),
|
|
238
|
+
/* 8 */
|
|
239
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
240
|
+
|
|
241
|
+
"use strict";
|
|
242
|
+
|
|
243
|
+
|
|
173
244
|
var _defineProperty = __webpack_require__(6);
|
|
174
245
|
|
|
175
246
|
var __rest = this && this.__rest || function (s, e) {
|
|
@@ -355,25 +426,25 @@ function generatePrecisionValues(numPrecisionValues) {
|
|
|
355
426
|
exports.generatePrecisionValues = generatePrecisionValues;
|
|
356
427
|
|
|
357
428
|
/***/ }),
|
|
358
|
-
/*
|
|
429
|
+
/* 9 */
|
|
359
430
|
/***/ (function(module, exports) {
|
|
360
431
|
|
|
361
432
|
module.exports = require("@splunk/visualizations-shared/Message");
|
|
362
433
|
|
|
363
434
|
/***/ }),
|
|
364
|
-
/*
|
|
435
|
+
/* 10 */
|
|
365
436
|
/***/ (function(module, exports) {
|
|
366
437
|
|
|
367
438
|
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
368
439
|
|
|
369
440
|
/***/ }),
|
|
370
|
-
/*
|
|
441
|
+
/* 11 */
|
|
371
442
|
/***/ (function(module, exports) {
|
|
372
443
|
|
|
373
444
|
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
374
445
|
|
|
375
446
|
/***/ }),
|
|
376
|
-
/*
|
|
447
|
+
/* 12 */
|
|
377
448
|
/***/ (function(module, exports, __webpack_require__) {
|
|
378
449
|
|
|
379
450
|
"use strict";
|
|
@@ -387,11 +458,11 @@ var React = __webpack_require__(1);
|
|
|
387
458
|
|
|
388
459
|
var styled_components_1 = __webpack_require__(4);
|
|
389
460
|
|
|
390
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
461
|
+
var SizeAwareWrapper_1 = __webpack_require__(17);
|
|
391
462
|
|
|
392
463
|
var style_1 = __webpack_require__(13);
|
|
393
464
|
|
|
394
|
-
var colorUtils_1 = __webpack_require__(
|
|
465
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
395
466
|
|
|
396
467
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
397
468
|
var width = _ref.width;
|
|
@@ -467,37 +538,6 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
467
538
|
|
|
468
539
|
exports.default = withFixedSizeContainer;
|
|
469
540
|
|
|
470
|
-
/***/ }),
|
|
471
|
-
/* 12 */
|
|
472
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
473
|
-
|
|
474
|
-
"use strict";
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
Object.defineProperty(exports, "__esModule", {
|
|
478
|
-
value: true
|
|
479
|
-
});
|
|
480
|
-
exports.extendStaticWrapperProps = void 0;
|
|
481
|
-
/**
|
|
482
|
-
* @method extendStaticWrapperProps
|
|
483
|
-
* @param {Object} props
|
|
484
|
-
* @param {DashboardVizType} props.Wrapper
|
|
485
|
-
* @param {DashboardVizType} props.Visualization
|
|
486
|
-
*/
|
|
487
|
-
|
|
488
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
489
|
-
var Wrapper = _ref.Wrapper,
|
|
490
|
-
Visualization = _ref.Visualization;
|
|
491
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
492
|
-
extendProperties.forEach(function (prop) {
|
|
493
|
-
if (Visualization[prop]) {
|
|
494
|
-
Wrapper[prop] = Visualization[prop];
|
|
495
|
-
}
|
|
496
|
-
});
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
500
|
-
|
|
501
541
|
/***/ }),
|
|
502
542
|
/* 13 */
|
|
503
543
|
/***/ (function(module, exports) {
|
|
@@ -515,19 +555,19 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
515
555
|
/* 16 */
|
|
516
556
|
/***/ (function(module, exports) {
|
|
517
557
|
|
|
518
|
-
module.exports = require("@
|
|
558
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
519
559
|
|
|
520
560
|
/***/ }),
|
|
521
561
|
/* 17 */
|
|
522
562
|
/***/ (function(module, exports) {
|
|
523
563
|
|
|
524
|
-
module.exports = require("@
|
|
564
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
525
565
|
|
|
526
566
|
/***/ }),
|
|
527
567
|
/* 18 */
|
|
528
568
|
/***/ (function(module, exports) {
|
|
529
569
|
|
|
530
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
570
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
531
571
|
|
|
532
572
|
/***/ }),
|
|
533
573
|
/* 19 */
|
|
@@ -536,13 +576,20 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
|
536
576
|
module.exports = require("@splunk/themes/variables");
|
|
537
577
|
|
|
538
578
|
/***/ }),
|
|
539
|
-
/* 20
|
|
579
|
+
/* 20 */,
|
|
580
|
+
/* 21 */
|
|
540
581
|
/***/ (function(module, exports) {
|
|
541
582
|
|
|
542
583
|
module.exports = require("@splunk/themes/pick");
|
|
543
584
|
|
|
544
585
|
/***/ }),
|
|
545
|
-
/*
|
|
586
|
+
/* 22 */
|
|
587
|
+
/***/ (function(module, exports) {
|
|
588
|
+
|
|
589
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
590
|
+
|
|
591
|
+
/***/ }),
|
|
592
|
+
/* 23 */
|
|
546
593
|
/***/ (function(module, exports, __webpack_require__) {
|
|
547
594
|
|
|
548
595
|
"use strict";
|
|
@@ -559,7 +606,7 @@ var T = __webpack_require__(0);
|
|
|
559
606
|
|
|
560
607
|
var lodash_1 = __webpack_require__(2);
|
|
561
608
|
|
|
562
|
-
var DataSource_1 = __webpack_require__(
|
|
609
|
+
var DataSource_1 = __webpack_require__(33);
|
|
563
610
|
|
|
564
611
|
exports.SortParamsPropTypes = T.shape({
|
|
565
612
|
currentSortKey: T.string,
|
|
@@ -612,7 +659,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
612
659
|
exports.getSortingParams = getSortingParams;
|
|
613
660
|
|
|
614
661
|
/***/ }),
|
|
615
|
-
/*
|
|
662
|
+
/* 24 */
|
|
616
663
|
/***/ (function(module, exports, __webpack_require__) {
|
|
617
664
|
|
|
618
665
|
"use strict";
|
|
@@ -676,7 +723,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
676
723
|
exports.getPaginationParams = getPaginationParams;
|
|
677
724
|
|
|
678
725
|
/***/ }),
|
|
679
|
-
/*
|
|
726
|
+
/* 25 */
|
|
680
727
|
/***/ (function(module, exports, __webpack_require__) {
|
|
681
728
|
|
|
682
729
|
"use strict";
|
|
@@ -695,9 +742,9 @@ var lodash_1 = __webpack_require__(2);
|
|
|
695
742
|
|
|
696
743
|
var i18n_1 = __webpack_require__(3);
|
|
697
744
|
|
|
698
|
-
var Message_1 = __webpack_require__(
|
|
745
|
+
var Message_1 = __webpack_require__(9);
|
|
699
746
|
|
|
700
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
747
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
701
748
|
/**
|
|
702
749
|
* @method shouldShowIconPlaceholder
|
|
703
750
|
* @param {object} dataSources
|
|
@@ -763,7 +810,7 @@ IconPlaceholder.defaultProps = {
|
|
|
763
810
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
764
811
|
|
|
765
812
|
/***/ }),
|
|
766
|
-
/*
|
|
813
|
+
/* 26 */
|
|
767
814
|
/***/ (function(module, exports, __webpack_require__) {
|
|
768
815
|
|
|
769
816
|
"use strict";
|
|
@@ -786,10 +833,12 @@ var VizCategory;
|
|
|
786
833
|
VizCategory["SHAPES"] = "Shapes";
|
|
787
834
|
VizCategory["MISC"] = "misc";
|
|
788
835
|
VizCategory["FLOW"] = "Flow";
|
|
836
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
837
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
789
838
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
790
839
|
|
|
791
840
|
/***/ }),
|
|
792
|
-
/*
|
|
841
|
+
/* 27 */
|
|
793
842
|
/***/ (function(module, exports, __webpack_require__) {
|
|
794
843
|
|
|
795
844
|
"use strict";
|
|
@@ -803,31 +852,33 @@ var React = __webpack_require__(1);
|
|
|
803
852
|
|
|
804
853
|
var lodash_1 = __webpack_require__(2);
|
|
805
854
|
|
|
806
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
807
|
-
|
|
808
|
-
var Options_1 = __webpack_require__(27);
|
|
855
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(28);
|
|
809
856
|
|
|
810
|
-
var
|
|
857
|
+
var Options_1 = __webpack_require__(29);
|
|
811
858
|
|
|
812
|
-
var
|
|
859
|
+
var SanitizeProps_1 = __webpack_require__(30);
|
|
813
860
|
|
|
814
861
|
var styled_components_1 = __webpack_require__(4);
|
|
815
862
|
|
|
863
|
+
var SplunkVisualization_1 = __webpack_require__(31);
|
|
864
|
+
|
|
816
865
|
var VizBehavior_1 = __webpack_require__(5);
|
|
817
866
|
|
|
818
|
-
var getSorting_1 = __webpack_require__(
|
|
867
|
+
var getSorting_1 = __webpack_require__(23);
|
|
819
868
|
|
|
820
|
-
var getPagination_1 = __webpack_require__(
|
|
869
|
+
var getPagination_1 = __webpack_require__(24);
|
|
821
870
|
|
|
822
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
871
|
+
var useDeepMemo_1 = __webpack_require__(34);
|
|
823
872
|
|
|
824
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
873
|
+
var JSONSchemaUtils_1 = __webpack_require__(35);
|
|
825
874
|
|
|
826
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
875
|
+
var MissingPropsMessage_1 = __webpack_require__(36);
|
|
827
876
|
|
|
828
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
877
|
+
var withEditModeCover_1 = __webpack_require__(37);
|
|
829
878
|
|
|
830
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
879
|
+
var withPlaceholder_1 = __webpack_require__(38);
|
|
880
|
+
|
|
881
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
831
882
|
/**
|
|
832
883
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
833
884
|
* @param {DashboardVizOpts} opts
|
|
@@ -880,7 +931,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
880
931
|
try {
|
|
881
932
|
return Options_1.Options.evaluate({
|
|
882
933
|
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
883
|
-
options:
|
|
934
|
+
options: hocUtils_1.deepMergeWithArrayOverrides({}, options, defaultOptions)
|
|
884
935
|
}, dataSources, themeFunc);
|
|
885
936
|
} catch (e) {
|
|
886
937
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
@@ -891,7 +942,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
891
942
|
|
|
892
943
|
React.useEffect(function () {
|
|
893
944
|
onComputedProps(evaluatedOptions);
|
|
894
|
-
}); //present warning message if any required props are missing
|
|
945
|
+
}); // present warning message if any required props are missing
|
|
895
946
|
|
|
896
947
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
897
948
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
@@ -914,7 +965,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
914
965
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
915
966
|
var supportedEvents = vizConfig.events;
|
|
916
967
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
917
|
-
var eventCallbackPropName = lodash_1.camelCase(
|
|
968
|
+
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
918
969
|
eventCallbackProps[eventCallbackPropName] = null; // todo: refactor single value and single value icon to send payload from viz
|
|
919
970
|
// then remove these lines
|
|
920
971
|
|
|
@@ -1009,31 +1060,31 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1009
1060
|
exports.default = withDashboardViz;
|
|
1010
1061
|
|
|
1011
1062
|
/***/ }),
|
|
1012
|
-
/*
|
|
1063
|
+
/* 28 */
|
|
1013
1064
|
/***/ (function(module, exports) {
|
|
1014
1065
|
|
|
1015
1066
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1016
1067
|
|
|
1017
1068
|
/***/ }),
|
|
1018
|
-
/*
|
|
1069
|
+
/* 29 */
|
|
1019
1070
|
/***/ (function(module, exports) {
|
|
1020
1071
|
|
|
1021
1072
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1022
1073
|
|
|
1023
1074
|
/***/ }),
|
|
1024
|
-
/*
|
|
1075
|
+
/* 30 */
|
|
1025
1076
|
/***/ (function(module, exports) {
|
|
1026
1077
|
|
|
1027
1078
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1028
1079
|
|
|
1029
1080
|
/***/ }),
|
|
1030
|
-
/*
|
|
1081
|
+
/* 31 */
|
|
1031
1082
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1032
1083
|
|
|
1033
1084
|
"use strict";
|
|
1034
1085
|
|
|
1035
1086
|
|
|
1036
|
-
var _classCallCheck = __webpack_require__(
|
|
1087
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1037
1088
|
|
|
1038
1089
|
Object.defineProperty(exports, "__esModule", {
|
|
1039
1090
|
value: true
|
|
@@ -1045,7 +1096,7 @@ var T = __webpack_require__(0);
|
|
|
1045
1096
|
|
|
1046
1097
|
var lodash_1 = __webpack_require__(2);
|
|
1047
1098
|
|
|
1048
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1099
|
+
var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1049
1100
|
|
|
1050
1101
|
|
|
1051
1102
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1178,15 +1229,15 @@ SplunkVisualization.defaultProps = {
|
|
|
1178
1229
|
exports.default = SplunkVisualization;
|
|
1179
1230
|
|
|
1180
1231
|
/***/ }),
|
|
1181
|
-
/*
|
|
1232
|
+
/* 32 */
|
|
1182
1233
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1183
1234
|
|
|
1184
1235
|
"use strict";
|
|
1185
1236
|
|
|
1186
1237
|
|
|
1187
|
-
var _classCallCheck = __webpack_require__(
|
|
1238
|
+
var _classCallCheck = __webpack_require__(10);
|
|
1188
1239
|
|
|
1189
|
-
var _createClass = __webpack_require__(
|
|
1240
|
+
var _createClass = __webpack_require__(16);
|
|
1190
1241
|
|
|
1191
1242
|
Object.defineProperty(exports, "__esModule", {
|
|
1192
1243
|
value: true
|
|
@@ -1215,7 +1266,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1215
1266
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1216
1267
|
|
|
1217
1268
|
/***/ }),
|
|
1218
|
-
/*
|
|
1269
|
+
/* 33 */
|
|
1219
1270
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1220
1271
|
|
|
1221
1272
|
"use strict";
|
|
@@ -1228,7 +1279,7 @@ exports.validSortDirs = void 0;
|
|
|
1228
1279
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1229
1280
|
|
|
1230
1281
|
/***/ }),
|
|
1231
|
-
/*
|
|
1282
|
+
/* 34 */
|
|
1232
1283
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1233
1284
|
|
|
1234
1285
|
"use strict";
|
|
@@ -1273,7 +1324,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1273
1324
|
exports.useDeepMemo = useDeepMemo;
|
|
1274
1325
|
|
|
1275
1326
|
/***/ }),
|
|
1276
|
-
/*
|
|
1327
|
+
/* 35 */
|
|
1277
1328
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1278
1329
|
|
|
1279
1330
|
"use strict";
|
|
@@ -1306,7 +1357,7 @@ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
|
1306
1357
|
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
1307
1358
|
|
|
1308
1359
|
/***/ }),
|
|
1309
|
-
/*
|
|
1360
|
+
/* 36 */
|
|
1310
1361
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1311
1362
|
|
|
1312
1363
|
"use strict";
|
|
@@ -1323,9 +1374,9 @@ var T = __webpack_require__(0);
|
|
|
1323
1374
|
|
|
1324
1375
|
var i18n_1 = __webpack_require__(3);
|
|
1325
1376
|
|
|
1326
|
-
var Message_1 = __webpack_require__(
|
|
1377
|
+
var Message_1 = __webpack_require__(9);
|
|
1327
1378
|
|
|
1328
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
1379
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1329
1380
|
/**
|
|
1330
1381
|
* @method isMissing
|
|
1331
1382
|
* @param {any} v
|
|
@@ -1385,7 +1436,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1385
1436
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1386
1437
|
|
|
1387
1438
|
/***/ }),
|
|
1388
|
-
/*
|
|
1439
|
+
/* 37 */
|
|
1389
1440
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1390
1441
|
|
|
1391
1442
|
"use strict";
|
|
@@ -1399,7 +1450,7 @@ var React = __webpack_require__(1);
|
|
|
1399
1450
|
|
|
1400
1451
|
var styled_components_1 = __webpack_require__(4);
|
|
1401
1452
|
|
|
1402
|
-
var hocUtils_1 = __webpack_require__(
|
|
1453
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
1403
1454
|
|
|
1404
1455
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1405
1456
|
displayName: "withEditModeCover__Cover",
|
|
@@ -1434,7 +1485,7 @@ var withEditModeCover = function withEditModeCover(Visualization) {
|
|
|
1434
1485
|
exports.default = withEditModeCover;
|
|
1435
1486
|
|
|
1436
1487
|
/***/ }),
|
|
1437
|
-
/*
|
|
1488
|
+
/* 38 */
|
|
1438
1489
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1439
1490
|
|
|
1440
1491
|
"use strict";
|
|
@@ -1446,13 +1497,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1446
1497
|
|
|
1447
1498
|
var React = __webpack_require__(1);
|
|
1448
1499
|
|
|
1449
|
-
var colorUtils_1 = __webpack_require__(
|
|
1500
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
1450
1501
|
|
|
1451
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1502
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
1452
1503
|
|
|
1453
1504
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1454
1505
|
|
|
1455
|
-
var hocUtils_1 = __webpack_require__(
|
|
1506
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
1456
1507
|
|
|
1457
1508
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1458
1509
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1493,40 +1544,63 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1493
1544
|
exports.default = withPlaceholder;
|
|
1494
1545
|
|
|
1495
1546
|
/***/ }),
|
|
1496
|
-
/* 37 */,
|
|
1497
|
-
/* 38 */,
|
|
1498
1547
|
/* 39 */
|
|
1499
1548
|
/***/ (function(module, exports) {
|
|
1500
1549
|
|
|
1501
|
-
module.exports = require("@splunk/visualization-icons");
|
|
1502
|
-
|
|
1503
|
-
/***/ }),
|
|
1504
|
-
/* 40 */
|
|
1505
|
-
/***/ (function(module, exports) {
|
|
1506
|
-
|
|
1507
1550
|
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
1508
1551
|
|
|
1509
1552
|
/***/ }),
|
|
1553
|
+
/* 40 */,
|
|
1510
1554
|
/* 41 */
|
|
1511
1555
|
/***/ (function(module, exports) {
|
|
1512
1556
|
|
|
1513
1557
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
1514
1558
|
|
|
1515
1559
|
/***/ }),
|
|
1516
|
-
/* 42
|
|
1517
|
-
/* 43 */
|
|
1560
|
+
/* 42 */
|
|
1518
1561
|
/***/ (function(module, exports) {
|
|
1519
1562
|
|
|
1520
|
-
module.exports = require("@splunk/
|
|
1563
|
+
module.exports = require("@splunk/visualization-icons");
|
|
1521
1564
|
|
|
1522
1565
|
/***/ }),
|
|
1566
|
+
/* 43 */,
|
|
1523
1567
|
/* 44 */
|
|
1524
1568
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1525
1569
|
|
|
1526
1570
|
"use strict";
|
|
1527
1571
|
|
|
1528
1572
|
|
|
1529
|
-
|
|
1573
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1574
|
+
value: true
|
|
1575
|
+
});
|
|
1576
|
+
|
|
1577
|
+
var i18n_1 = __webpack_require__(3);
|
|
1578
|
+
|
|
1579
|
+
var background = function background(_ref) {
|
|
1580
|
+
var label = _ref.label,
|
|
1581
|
+
themes = _ref.themes,
|
|
1582
|
+
labelPosition = _ref.labelPosition;
|
|
1583
|
+
return [{
|
|
1584
|
+
label: i18n_1._(label || 'Background'),
|
|
1585
|
+
option: 'backgroundColor',
|
|
1586
|
+
editor: 'editor.color',
|
|
1587
|
+
editorProps: {
|
|
1588
|
+
labelPosition: labelPosition || 'top',
|
|
1589
|
+
themes: themes
|
|
1590
|
+
}
|
|
1591
|
+
}];
|
|
1592
|
+
};
|
|
1593
|
+
|
|
1594
|
+
exports.default = background;
|
|
1595
|
+
|
|
1596
|
+
/***/ }),
|
|
1597
|
+
/* 45 */
|
|
1598
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1599
|
+
|
|
1600
|
+
"use strict";
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
var _toConsumableArray = __webpack_require__(39);
|
|
1530
1604
|
|
|
1531
1605
|
var __rest = this && this.__rest || function (s, e) {
|
|
1532
1606
|
var t = {};
|
|
@@ -1613,7 +1687,7 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
|
|
|
1613
1687
|
if (lodash_1.has(options, key)) {
|
|
1614
1688
|
var updatedValue = optionValuesSCMapping[key][options[key]];
|
|
1615
1689
|
|
|
1616
|
-
if (updatedValue) {
|
|
1690
|
+
if (!lodash_1.isUndefined(updatedValue)) {
|
|
1617
1691
|
convertedOptions[key] = updatedValue;
|
|
1618
1692
|
}
|
|
1619
1693
|
}
|
|
@@ -1695,8 +1769,10 @@ var toArrayForSeries = function toArrayForSeries(data, value) {
|
|
|
1695
1769
|
exports.toArrayForSeries = toArrayForSeries;
|
|
1696
1770
|
|
|
1697
1771
|
var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
1698
|
-
var x = _ref2.x,
|
|
1699
|
-
|
|
1772
|
+
var _ref2$x = _ref2.x,
|
|
1773
|
+
x = _ref2$x === void 0 ? [] : _ref2$x,
|
|
1774
|
+
_ref2$y = _ref2.y,
|
|
1775
|
+
y = _ref2$y === void 0 ? [] : _ref2$y,
|
|
1700
1776
|
xField = _ref2.xField,
|
|
1701
1777
|
yFields = _ref2.yFields,
|
|
1702
1778
|
y2 = _ref2.y2,
|
|
@@ -1739,36 +1815,15 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
1739
1815
|
exports.constructFieldsAndColumns = constructFieldsAndColumns;
|
|
1740
1816
|
|
|
1741
1817
|
/***/ }),
|
|
1742
|
-
/*
|
|
1743
|
-
/***/ (function(module, exports
|
|
1744
|
-
|
|
1745
|
-
"use strict";
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1749
|
-
value: true
|
|
1750
|
-
});
|
|
1751
|
-
|
|
1752
|
-
var i18n_1 = __webpack_require__(3);
|
|
1753
|
-
|
|
1754
|
-
var background = function background(_ref) {
|
|
1755
|
-
var themes = _ref.themes;
|
|
1756
|
-
return [{
|
|
1757
|
-
label: i18n_1._('Background'),
|
|
1758
|
-
option: 'backgroundColor',
|
|
1759
|
-
editor: 'editor.color',
|
|
1760
|
-
editorProps: {
|
|
1761
|
-
themes: themes
|
|
1762
|
-
}
|
|
1763
|
-
}];
|
|
1764
|
-
};
|
|
1818
|
+
/* 46 */
|
|
1819
|
+
/***/ (function(module, exports) {
|
|
1765
1820
|
|
|
1766
|
-
exports
|
|
1821
|
+
module.exports = require("@splunk/charting-bundle");
|
|
1767
1822
|
|
|
1768
1823
|
/***/ }),
|
|
1769
|
-
/* 46 */,
|
|
1770
1824
|
/* 47 */,
|
|
1771
|
-
/* 48
|
|
1825
|
+
/* 48 */,
|
|
1826
|
+
/* 49 */
|
|
1772
1827
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1773
1828
|
|
|
1774
1829
|
"use strict";
|
|
@@ -1794,24 +1849,24 @@ var React = __webpack_require__(1);
|
|
|
1794
1849
|
|
|
1795
1850
|
var T = __webpack_require__(0);
|
|
1796
1851
|
|
|
1797
|
-
var react_event_listener_1 = __webpack_require__(
|
|
1852
|
+
var react_event_listener_1 = __webpack_require__(50);
|
|
1798
1853
|
|
|
1799
|
-
__webpack_require__(
|
|
1854
|
+
__webpack_require__(51); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
1800
1855
|
|
|
1801
1856
|
|
|
1802
|
-
var charting_bundle_1 = __webpack_require__(
|
|
1857
|
+
var charting_bundle_1 = __webpack_require__(46);
|
|
1803
1858
|
|
|
1804
1859
|
var style_1 = __webpack_require__(13);
|
|
1805
1860
|
|
|
1806
1861
|
var styled_components_1 = __webpack_require__(4);
|
|
1807
1862
|
|
|
1808
|
-
var Message_1 = __webpack_require__(
|
|
1863
|
+
var Message_1 = __webpack_require__(9);
|
|
1809
1864
|
|
|
1810
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
1865
|
+
var useSplunkTheme_1 = __webpack_require__(52);
|
|
1811
1866
|
|
|
1812
|
-
var themeUtils_1 = __webpack_require__(
|
|
1867
|
+
var themeUtils_1 = __webpack_require__(53);
|
|
1813
1868
|
|
|
1814
|
-
var ChartingApi_1 = __webpack_require__(
|
|
1869
|
+
var ChartingApi_1 = __webpack_require__(54);
|
|
1815
1870
|
|
|
1816
1871
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
1817
1872
|
|
|
@@ -2093,6 +2148,7 @@ var Charting = function Charting(props) {
|
|
|
2093
2148
|
|
|
2094
2149
|
var prevOptions = usePrevious(options);
|
|
2095
2150
|
var prevTheme = usePrevious(themeKey);
|
|
2151
|
+
var prevOnClick = usePrevious(onClick);
|
|
2096
2152
|
react_1.useEffect(function () {
|
|
2097
2153
|
debouncedDrawChart();
|
|
2098
2154
|
props.visualizationApiRef(api.current);
|
|
@@ -2104,7 +2160,7 @@ var Charting = function Charting(props) {
|
|
|
2104
2160
|
react_1.useEffect(function () {
|
|
2105
2161
|
// TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
|
|
2106
2162
|
// seems like redraw doesn't suffice to update the background colors
|
|
2107
|
-
if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || !props.themeKey && prevTheme !== themeKey) {
|
|
2163
|
+
if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
|
|
2108
2164
|
needsInit.current = true;
|
|
2109
2165
|
}
|
|
2110
2166
|
|
|
@@ -2112,7 +2168,7 @@ var Charting = function Charting(props) {
|
|
|
2112
2168
|
// otherwise a noop would occur if the onContainerMount drawChart is re-invoked when dimensions change
|
|
2113
2169
|
|
|
2114
2170
|
drawChart();
|
|
2115
|
-
}, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), themeKey]);
|
|
2171
|
+
}, [JSON.stringify(options), JSON.stringify(chartData.toJSON()), JSON.stringify(chartData.annotations), themeKey, onClick]);
|
|
2116
2172
|
return React.createElement(ChartingContainer, {
|
|
2117
2173
|
style: style,
|
|
2118
2174
|
ref: onContainerMount,
|
|
@@ -2174,39 +2230,39 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
|
|
|
2174
2230
|
exports.default = withEmptyChartMessage(Charting);
|
|
2175
2231
|
|
|
2176
2232
|
/***/ }),
|
|
2177
|
-
/*
|
|
2233
|
+
/* 50 */
|
|
2178
2234
|
/***/ (function(module, exports) {
|
|
2179
2235
|
|
|
2180
2236
|
module.exports = require("react-event-listener");
|
|
2181
2237
|
|
|
2182
2238
|
/***/ }),
|
|
2183
|
-
/*
|
|
2239
|
+
/* 51 */
|
|
2184
2240
|
/***/ (function(module, exports) {
|
|
2185
2241
|
|
|
2186
2242
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
2187
2243
|
|
|
2188
2244
|
/***/ }),
|
|
2189
|
-
/*
|
|
2245
|
+
/* 52 */
|
|
2190
2246
|
/***/ (function(module, exports) {
|
|
2191
2247
|
|
|
2192
2248
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
2193
2249
|
|
|
2194
2250
|
/***/ }),
|
|
2195
|
-
/*
|
|
2251
|
+
/* 53 */
|
|
2196
2252
|
/***/ (function(module, exports) {
|
|
2197
2253
|
|
|
2198
2254
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
2199
2255
|
|
|
2200
2256
|
/***/ }),
|
|
2201
|
-
/*
|
|
2257
|
+
/* 54 */
|
|
2202
2258
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2203
2259
|
|
|
2204
2260
|
"use strict";
|
|
2205
2261
|
|
|
2206
2262
|
|
|
2207
|
-
var _classCallCheck = __webpack_require__(
|
|
2263
|
+
var _classCallCheck = __webpack_require__(10);
|
|
2208
2264
|
|
|
2209
|
-
var _createClass = __webpack_require__(
|
|
2265
|
+
var _createClass = __webpack_require__(16);
|
|
2210
2266
|
|
|
2211
2267
|
Object.defineProperty(exports, "__esModule", {
|
|
2212
2268
|
value: true
|
|
@@ -2265,32 +2321,15 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
|
|
|
2265
2321
|
exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
2266
2322
|
|
|
2267
2323
|
/***/ }),
|
|
2268
|
-
/*
|
|
2324
|
+
/* 55 */
|
|
2269
2325
|
/***/ (function(module, exports) {
|
|
2270
2326
|
|
|
2271
2327
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2272
2328
|
|
|
2273
|
-
/***/ }),
|
|
2274
|
-
/* 55 */
|
|
2275
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2276
|
-
|
|
2277
|
-
"use strict";
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2281
|
-
value: true
|
|
2282
|
-
});
|
|
2283
|
-
exports.enableClickHandler = void 0;
|
|
2284
|
-
|
|
2285
|
-
var enableClickHandler = function enableClickHandler(hasEventHandlers, mode) {
|
|
2286
|
-
return !!hasEventHandlers && mode === 'view';
|
|
2287
|
-
};
|
|
2288
|
-
|
|
2289
|
-
exports.enableClickHandler = enableClickHandler;
|
|
2290
|
-
|
|
2291
2329
|
/***/ }),
|
|
2292
2330
|
/* 56 */,
|
|
2293
|
-
/* 57
|
|
2331
|
+
/* 57 */,
|
|
2332
|
+
/* 58 */
|
|
2294
2333
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2295
2334
|
|
|
2296
2335
|
"use strict";
|
|
@@ -2317,7 +2356,7 @@ var axes = {
|
|
|
2317
2356
|
exports.default = axes;
|
|
2318
2357
|
|
|
2319
2358
|
/***/ }),
|
|
2320
|
-
/*
|
|
2359
|
+
/* 59 */
|
|
2321
2360
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2322
2361
|
|
|
2323
2362
|
"use strict";
|
|
@@ -2377,7 +2416,6 @@ var legend = {
|
|
|
2377
2416
|
exports.default = legend;
|
|
2378
2417
|
|
|
2379
2418
|
/***/ }),
|
|
2380
|
-
/* 59 */,
|
|
2381
2419
|
/* 60 */,
|
|
2382
2420
|
/* 61 */,
|
|
2383
2421
|
/* 62 */,
|
|
@@ -2440,7 +2478,10 @@ module.exports = require("@splunk/react-icons/BarStacked100");
|
|
|
2440
2478
|
/* 104 */,
|
|
2441
2479
|
/* 105 */,
|
|
2442
2480
|
/* 106 */,
|
|
2443
|
-
/* 107
|
|
2481
|
+
/* 107 */,
|
|
2482
|
+
/* 108 */,
|
|
2483
|
+
/* 109 */,
|
|
2484
|
+
/* 110 */
|
|
2444
2485
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2445
2486
|
|
|
2446
2487
|
"use strict";
|
|
@@ -2466,23 +2507,21 @@ exports.config = exports.themes = exports.computeVizProps = void 0;
|
|
|
2466
2507
|
|
|
2467
2508
|
var lodash_1 = __webpack_require__(2);
|
|
2468
2509
|
|
|
2469
|
-
var Charting_1 = __webpack_require__(
|
|
2510
|
+
var Charting_1 = __webpack_require__(49);
|
|
2470
2511
|
|
|
2471
|
-
var charting_bundle_1 = __webpack_require__(
|
|
2512
|
+
var charting_bundle_1 = __webpack_require__(46);
|
|
2472
2513
|
|
|
2473
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
2514
|
+
var simpleXMLOptions_1 = __webpack_require__(55);
|
|
2474
2515
|
|
|
2475
|
-
var config_1 = __webpack_require__(
|
|
2516
|
+
var config_1 = __webpack_require__(139);
|
|
2476
2517
|
|
|
2477
2518
|
exports.config = config_1.default;
|
|
2478
2519
|
|
|
2479
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
2520
|
+
var withDashboardViz_1 = __webpack_require__(27);
|
|
2480
2521
|
|
|
2481
|
-
var barUtils_1 = __webpack_require__(
|
|
2522
|
+
var barUtils_1 = __webpack_require__(140);
|
|
2482
2523
|
|
|
2483
|
-
var chartingUtils_1 = __webpack_require__(
|
|
2484
|
-
|
|
2485
|
-
var eventUtils_1 = __webpack_require__(55);
|
|
2524
|
+
var chartingUtils_1 = __webpack_require__(45);
|
|
2486
2525
|
|
|
2487
2526
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
2488
2527
|
|
|
@@ -2530,7 +2569,7 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
2530
2569
|
|
|
2531
2570
|
computedProps.chartData = charting_bundle_1.default.extractChartReadyData(Object.assign({}, primaryData));
|
|
2532
2571
|
|
|
2533
|
-
if (
|
|
2572
|
+
if (otherOptions.hasEventHandlers) {
|
|
2534
2573
|
computedProps.onClick = onEventTrigger;
|
|
2535
2574
|
computedProps.onSelect = onEventTrigger;
|
|
2536
2575
|
computedProps.onPointMouseOver = onEventTrigger;
|
|
@@ -2551,9 +2590,6 @@ exports.themes = themes;
|
|
|
2551
2590
|
exports.default = Bar;
|
|
2552
2591
|
|
|
2553
2592
|
/***/ }),
|
|
2554
|
-
/* 108 */,
|
|
2555
|
-
/* 109 */,
|
|
2556
|
-
/* 110 */,
|
|
2557
2593
|
/* 111 */,
|
|
2558
2594
|
/* 112 */,
|
|
2559
2595
|
/* 113 */,
|
|
@@ -2577,7 +2613,11 @@ exports.default = Bar;
|
|
|
2577
2613
|
/* 131 */,
|
|
2578
2614
|
/* 132 */,
|
|
2579
2615
|
/* 133 */,
|
|
2580
|
-
/* 134
|
|
2616
|
+
/* 134 */,
|
|
2617
|
+
/* 135 */,
|
|
2618
|
+
/* 136 */,
|
|
2619
|
+
/* 137 */,
|
|
2620
|
+
/* 138 */
|
|
2581
2621
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2582
2622
|
|
|
2583
2623
|
"use strict";
|
|
@@ -2607,9 +2647,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2607
2647
|
});
|
|
2608
2648
|
exports.default = void 0;
|
|
2609
2649
|
|
|
2610
|
-
__exportStar(__webpack_require__(
|
|
2650
|
+
__exportStar(__webpack_require__(110), exports);
|
|
2611
2651
|
|
|
2612
|
-
var Bar_1 = __webpack_require__(
|
|
2652
|
+
var Bar_1 = __webpack_require__(110);
|
|
2613
2653
|
|
|
2614
2654
|
Object.defineProperty(exports, "default", {
|
|
2615
2655
|
enumerable: true,
|
|
@@ -2619,7 +2659,7 @@ Object.defineProperty(exports, "default", {
|
|
|
2619
2659
|
});
|
|
2620
2660
|
|
|
2621
2661
|
/***/ }),
|
|
2622
|
-
/*
|
|
2662
|
+
/* 139 */
|
|
2623
2663
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2624
2664
|
|
|
2625
2665
|
"use strict";
|
|
@@ -2629,7 +2669,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2629
2669
|
value: true
|
|
2630
2670
|
});
|
|
2631
2671
|
|
|
2632
|
-
var visualization_icons_1 = __webpack_require__(
|
|
2672
|
+
var visualization_icons_1 = __webpack_require__(42);
|
|
2633
2673
|
|
|
2634
2674
|
var schemaUtils_1 = __webpack_require__(14);
|
|
2635
2675
|
|
|
@@ -2643,21 +2683,21 @@ var BarStacked_1 = __webpack_require__(68);
|
|
|
2643
2683
|
|
|
2644
2684
|
var BarStacked100_1 = __webpack_require__(69);
|
|
2645
2685
|
|
|
2646
|
-
var pick_1 = __webpack_require__(
|
|
2686
|
+
var pick_1 = __webpack_require__(21);
|
|
2647
2687
|
|
|
2648
2688
|
var variables_1 = __webpack_require__(19);
|
|
2649
2689
|
|
|
2650
|
-
var Axes_1 = __webpack_require__(
|
|
2690
|
+
var Axes_1 = __webpack_require__(58);
|
|
2651
2691
|
|
|
2652
|
-
var Legend_1 = __webpack_require__(
|
|
2692
|
+
var Legend_1 = __webpack_require__(59);
|
|
2653
2693
|
|
|
2654
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
2694
|
+
var BackgroundColor_1 = __webpack_require__(44);
|
|
2655
2695
|
|
|
2656
2696
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2657
2697
|
|
|
2658
|
-
var VizCategory_1 = __webpack_require__(
|
|
2698
|
+
var VizCategory_1 = __webpack_require__(26);
|
|
2659
2699
|
|
|
2660
|
-
var configUtils_1 = __webpack_require__(
|
|
2700
|
+
var configUtils_1 = __webpack_require__(8);
|
|
2661
2701
|
|
|
2662
2702
|
var dataContract = {
|
|
2663
2703
|
requiredDataSources: [{
|
|
@@ -3139,7 +3179,7 @@ var config = {
|
|
|
3139
3179
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
3140
3180
|
|
|
3141
3181
|
/***/ }),
|
|
3142
|
-
/*
|
|
3182
|
+
/* 140 */
|
|
3143
3183
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3144
3184
|
|
|
3145
3185
|
"use strict";
|
|
@@ -3152,9 +3192,9 @@ exports.convertToBarSCProperties = exports.mapToOldKey = exports.convertToString
|
|
|
3152
3192
|
|
|
3153
3193
|
var lodash_1 = __webpack_require__(2);
|
|
3154
3194
|
|
|
3155
|
-
var propUtils_1 = __webpack_require__(
|
|
3195
|
+
var propUtils_1 = __webpack_require__(18);
|
|
3156
3196
|
|
|
3157
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3197
|
+
var chartingUtils_1 = __webpack_require__(45); // map for key names which are either new or not present in SimpleXML options mapping
|
|
3158
3198
|
|
|
3159
3199
|
|
|
3160
3200
|
var barOptionsSCMapping = {
|