@splunk/visualizations 24.4.0 → 24.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/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Placeholder_If_No_Svg_And_No_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_empty_columns_and_fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_label_data_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_invalid_value_data_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Placeholder_if_missing_column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
- package/Area.js +246 -218
- package/Area.js.map +1 -1
- package/Bar.js +238 -210
- package/Bar.js.map +1 -1
- package/Bubble.js +231 -203
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.js +230 -197
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +238 -210
- package/Column.js.map +1 -1
- package/Ellipse.js +203 -170
- package/Ellipse.js.map +1 -1
- package/FillerGauge.js +222 -189
- package/FillerGauge.js.map +1 -1
- package/Image.js +199 -164
- package/Image.js.map +1 -1
- package/Line.js +239 -211
- package/Line.js.map +1 -1
- package/LinkGraph.js +264 -223
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +39 -25
- package/Map.config.js.map +1 -1
- package/Map.js +469 -327
- package/Map.js.map +1 -1
- package/Markdown.config.js +29 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +513 -267
- package/Markdown.js.map +1 -1
- package/MarkerGauge.js +941 -906
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.js +230 -196
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.js +309 -249
- package/Pie.js.map +1 -1
- package/Punchcard.js +263 -229
- package/Punchcard.js.map +1 -1
- package/Rectangle.js +217 -182
- package/Rectangle.js.map +1 -1
- package/Sankey.js +269 -230
- package/Sankey.js.map +1 -1
- package/Scatter.js +314 -286
- package/Scatter.js.map +1 -1
- package/SingleValue.js +398 -363
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +25 -25
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.js +2821 -2653
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.js +359 -324
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +2 -1
- package/Table.config.js.map +1 -1
- package/Table.js +623 -347
- package/Table.js.map +1 -1
- package/common/Charting.js +21 -21
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +10 -10
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +10 -10
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +217 -174
- package/common/OptionsDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/ThemesDoc.js +26 -26
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +3 -3
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +2 -2
- package/common/shapeUtils.js +2 -2
- package/common/withDashboardViz.js +80 -48
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +13 -11
package/Sankey.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 = 242);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -164,7 +164,7 @@ var VizBehavior;
|
|
|
164
164
|
"use strict";
|
|
165
165
|
|
|
166
166
|
|
|
167
|
-
var _defineProperty = __webpack_require__(
|
|
167
|
+
var _defineProperty = __webpack_require__(7);
|
|
168
168
|
|
|
169
169
|
var __rest = this && this.__rest || function (s, e) {
|
|
170
170
|
var t = {};
|
|
@@ -350,12 +350,18 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
350
350
|
|
|
351
351
|
/***/ }),
|
|
352
352
|
/* 7 */
|
|
353
|
+
/***/ (function(module, exports) {
|
|
354
|
+
|
|
355
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
356
|
+
|
|
357
|
+
/***/ }),
|
|
358
|
+
/* 8 */
|
|
353
359
|
/***/ (function(module, exports, __webpack_require__) {
|
|
354
360
|
|
|
355
361
|
"use strict";
|
|
356
362
|
|
|
357
363
|
|
|
358
|
-
var _typeof = __webpack_require__(
|
|
364
|
+
var _typeof = __webpack_require__(21);
|
|
359
365
|
|
|
360
366
|
Object.defineProperty(exports, "__esModule", {
|
|
361
367
|
value: true
|
|
@@ -476,12 +482,6 @@ var findClosestMatchFromDefaultList = function findClosestMatchFromDefaultList(s
|
|
|
476
482
|
|
|
477
483
|
exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
|
|
478
484
|
|
|
479
|
-
/***/ }),
|
|
480
|
-
/* 8 */
|
|
481
|
-
/***/ (function(module, exports) {
|
|
482
|
-
|
|
483
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
484
|
-
|
|
485
485
|
/***/ }),
|
|
486
486
|
/* 9 */
|
|
487
487
|
/***/ (function(module, exports) {
|
|
@@ -582,7 +582,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
582
582
|
|
|
583
583
|
return React.createElement(FixSizeItem, {
|
|
584
584
|
"data-test": "fix-size-item",
|
|
585
|
-
"data-splunk-visualization-version": "24.
|
|
585
|
+
"data-splunk-visualization-version": "24.5.0 - b75bfbe79",
|
|
586
586
|
width: width,
|
|
587
587
|
height: height,
|
|
588
588
|
backgroundColor: backgroundColor
|
|
@@ -628,21 +628,27 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
|
628
628
|
|
|
629
629
|
/***/ }),
|
|
630
630
|
/* 18 */,
|
|
631
|
-
/* 19
|
|
632
|
-
|
|
631
|
+
/* 19 */
|
|
632
|
+
/***/ (function(module, exports) {
|
|
633
|
+
|
|
634
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
635
|
+
|
|
636
|
+
/***/ }),
|
|
637
|
+
/* 20 */,
|
|
638
|
+
/* 21 */
|
|
633
639
|
/***/ (function(module, exports) {
|
|
634
640
|
|
|
635
641
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
636
642
|
|
|
637
643
|
/***/ }),
|
|
638
|
-
/*
|
|
639
|
-
/*
|
|
644
|
+
/* 22 */,
|
|
645
|
+
/* 23 */
|
|
640
646
|
/***/ (function(module, exports) {
|
|
641
647
|
|
|
642
648
|
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
643
649
|
|
|
644
650
|
/***/ }),
|
|
645
|
-
/*
|
|
651
|
+
/* 24 */
|
|
646
652
|
/***/ (function(module, exports, __webpack_require__) {
|
|
647
653
|
|
|
648
654
|
"use strict";
|
|
@@ -675,13 +681,104 @@ var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
|
675
681
|
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
676
682
|
|
|
677
683
|
/***/ }),
|
|
678
|
-
/*
|
|
684
|
+
/* 25 */
|
|
685
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
686
|
+
|
|
687
|
+
"use strict";
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
Object.defineProperty(exports, "__esModule", {
|
|
691
|
+
value: true
|
|
692
|
+
});
|
|
693
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
694
|
+
|
|
695
|
+
var React = __webpack_require__(1);
|
|
696
|
+
|
|
697
|
+
var T = __webpack_require__(0);
|
|
698
|
+
|
|
699
|
+
var lodash_1 = __webpack_require__(2);
|
|
700
|
+
|
|
701
|
+
var i18n_1 = __webpack_require__(3);
|
|
702
|
+
|
|
703
|
+
var Message_1 = __webpack_require__(9);
|
|
704
|
+
|
|
705
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
706
|
+
/**
|
|
707
|
+
* @method shouldShowIconPlaceholder
|
|
708
|
+
* @param {object} dataSources
|
|
709
|
+
* @param {boolean} loading
|
|
710
|
+
* @returns {boolean}
|
|
711
|
+
*/
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
715
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
716
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
717
|
+
var noData = data === undefined;
|
|
718
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
719
|
+
var noFields = fields === undefined;
|
|
720
|
+
return loading || noData || noFields;
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
724
|
+
var propTypes = {
|
|
725
|
+
icon: T.func,
|
|
726
|
+
width: T.oneOfType([T.string, T.number]),
|
|
727
|
+
height: T.oneOfType([T.string, T.number]),
|
|
728
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
729
|
+
backgroundColor: T.string,
|
|
730
|
+
iconColor: T.string
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* @method IconPlaceholder
|
|
734
|
+
* @param {IconPlaceholderProps} props
|
|
735
|
+
* @returns {React.ReactElement}
|
|
736
|
+
*/
|
|
737
|
+
|
|
738
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
739
|
+
var width = props.width,
|
|
740
|
+
height = props.height,
|
|
741
|
+
icon = props.icon,
|
|
742
|
+
iconColor = props.iconColor;
|
|
743
|
+
|
|
744
|
+
if (icon) {
|
|
745
|
+
return React.createElement(icon, {
|
|
746
|
+
style: {
|
|
747
|
+
left: '50%',
|
|
748
|
+
top: '50%',
|
|
749
|
+
color: iconColor,
|
|
750
|
+
opacity: 0.15,
|
|
751
|
+
position: 'absolute',
|
|
752
|
+
transform: 'translate(-50%, -50%)'
|
|
753
|
+
},
|
|
754
|
+
width: '50%',
|
|
755
|
+
height: '50%'
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
return React.createElement(Message_1.default, {
|
|
760
|
+
width: width,
|
|
761
|
+
height: height,
|
|
762
|
+
level: "warning",
|
|
763
|
+
message: i18n_1._('No DataSource Connected')
|
|
764
|
+
});
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
IconPlaceholder.propTypes = propTypes;
|
|
768
|
+
IconPlaceholder.defaultProps = {
|
|
769
|
+
width: '100%',
|
|
770
|
+
height: 250
|
|
771
|
+
};
|
|
772
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
773
|
+
|
|
774
|
+
/***/ }),
|
|
775
|
+
/* 26 */
|
|
679
776
|
/***/ (function(module, exports, __webpack_require__) {
|
|
680
777
|
|
|
681
778
|
"use strict";
|
|
682
779
|
|
|
683
780
|
|
|
684
|
-
var _defineProperty = __webpack_require__(
|
|
781
|
+
var _defineProperty = __webpack_require__(7);
|
|
685
782
|
|
|
686
783
|
Object.defineProperty(exports, "__esModule", {
|
|
687
784
|
value: true
|
|
@@ -692,7 +789,7 @@ var T = __webpack_require__(0);
|
|
|
692
789
|
|
|
693
790
|
var lodash_1 = __webpack_require__(2);
|
|
694
791
|
|
|
695
|
-
var DataSource_1 = __webpack_require__(
|
|
792
|
+
var DataSource_1 = __webpack_require__(36);
|
|
696
793
|
|
|
697
794
|
exports.SortParamsPropTypes = T.shape({
|
|
698
795
|
currentSortKey: T.string,
|
|
@@ -745,7 +842,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
745
842
|
exports.getSortingParams = getSortingParams;
|
|
746
843
|
|
|
747
844
|
/***/ }),
|
|
748
|
-
/*
|
|
845
|
+
/* 27 */
|
|
749
846
|
/***/ (function(module, exports, __webpack_require__) {
|
|
750
847
|
|
|
751
848
|
"use strict";
|
|
@@ -809,98 +906,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
809
906
|
exports.getPaginationParams = getPaginationParams;
|
|
810
907
|
|
|
811
908
|
/***/ }),
|
|
812
|
-
/*
|
|
813
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
814
|
-
|
|
815
|
-
"use strict";
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
Object.defineProperty(exports, "__esModule", {
|
|
819
|
-
value: true
|
|
820
|
-
});
|
|
821
|
-
exports.shouldShowIconPlaceholder = void 0;
|
|
822
|
-
|
|
823
|
-
var React = __webpack_require__(1);
|
|
824
|
-
|
|
825
|
-
var T = __webpack_require__(0);
|
|
826
|
-
|
|
827
|
-
var lodash_1 = __webpack_require__(2);
|
|
828
|
-
|
|
829
|
-
var i18n_1 = __webpack_require__(3);
|
|
830
|
-
|
|
831
|
-
var Message_1 = __webpack_require__(9);
|
|
832
|
-
|
|
833
|
-
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
834
|
-
/**
|
|
835
|
-
* @method shouldShowIconPlaceholder
|
|
836
|
-
* @param {object} dataSources
|
|
837
|
-
* @param {boolean} loading
|
|
838
|
-
* @returns {boolean}
|
|
839
|
-
*/
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
843
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
844
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
845
|
-
var noData = data === undefined;
|
|
846
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
847
|
-
var noFields = fields === undefined;
|
|
848
|
-
return loading || noData || noFields;
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
852
|
-
var propTypes = {
|
|
853
|
-
icon: T.func,
|
|
854
|
-
width: T.oneOfType([T.string, T.number]),
|
|
855
|
-
height: T.oneOfType([T.string, T.number]),
|
|
856
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
857
|
-
backgroundColor: T.string,
|
|
858
|
-
iconColor: T.string
|
|
859
|
-
};
|
|
860
|
-
/**
|
|
861
|
-
* @method IconPlaceholder
|
|
862
|
-
* @param {IconPlaceholderProps} props
|
|
863
|
-
* @returns {React.ReactElement}
|
|
864
|
-
*/
|
|
865
|
-
|
|
866
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
867
|
-
var width = props.width,
|
|
868
|
-
height = props.height,
|
|
869
|
-
icon = props.icon,
|
|
870
|
-
iconColor = props.iconColor;
|
|
871
|
-
|
|
872
|
-
if (icon) {
|
|
873
|
-
return React.createElement(icon, {
|
|
874
|
-
style: {
|
|
875
|
-
left: '50%',
|
|
876
|
-
top: '50%',
|
|
877
|
-
color: iconColor,
|
|
878
|
-
opacity: 0.15,
|
|
879
|
-
position: 'absolute',
|
|
880
|
-
transform: 'translate(-50%, -50%)'
|
|
881
|
-
},
|
|
882
|
-
width: '50%',
|
|
883
|
-
height: '50%'
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
return React.createElement(Message_1.default, {
|
|
888
|
-
width: width,
|
|
889
|
-
height: height,
|
|
890
|
-
level: "warning",
|
|
891
|
-
message: i18n_1._('No DataSource Connected')
|
|
892
|
-
});
|
|
893
|
-
};
|
|
894
|
-
|
|
895
|
-
IconPlaceholder.propTypes = propTypes;
|
|
896
|
-
IconPlaceholder.defaultProps = {
|
|
897
|
-
width: '100%',
|
|
898
|
-
height: 250
|
|
899
|
-
};
|
|
900
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
901
|
-
|
|
902
|
-
/***/ }),
|
|
903
|
-
/* 27 */
|
|
909
|
+
/* 28 */
|
|
904
910
|
/***/ (function(module, exports, __webpack_require__) {
|
|
905
911
|
|
|
906
912
|
"use strict";
|
|
@@ -928,7 +934,7 @@ var VizCategory;
|
|
|
928
934
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
929
935
|
|
|
930
936
|
/***/ }),
|
|
931
|
-
/*
|
|
937
|
+
/* 29 */
|
|
932
938
|
/***/ (function(module, exports, __webpack_require__) {
|
|
933
939
|
|
|
934
940
|
"use strict";
|
|
@@ -942,33 +948,37 @@ var React = __webpack_require__(1);
|
|
|
942
948
|
|
|
943
949
|
var lodash_1 = __webpack_require__(2);
|
|
944
950
|
|
|
945
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
951
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(30);
|
|
952
|
+
|
|
953
|
+
var Options_1 = __webpack_require__(31);
|
|
946
954
|
|
|
947
|
-
var
|
|
955
|
+
var SanitizeProps_1 = __webpack_require__(32);
|
|
948
956
|
|
|
949
|
-
var
|
|
957
|
+
var TimezoneContext_1 = __webpack_require__(19);
|
|
958
|
+
|
|
959
|
+
var moment_1 = __webpack_require__(33);
|
|
950
960
|
|
|
951
961
|
var styled_components_1 = __webpack_require__(4);
|
|
952
962
|
|
|
953
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
963
|
+
var SplunkVisualization_1 = __webpack_require__(34);
|
|
954
964
|
|
|
955
965
|
var VizBehavior_1 = __webpack_require__(5);
|
|
956
966
|
|
|
957
|
-
var getSorting_1 = __webpack_require__(
|
|
967
|
+
var getSorting_1 = __webpack_require__(26);
|
|
958
968
|
|
|
959
|
-
var getPagination_1 = __webpack_require__(
|
|
969
|
+
var getPagination_1 = __webpack_require__(27);
|
|
960
970
|
|
|
961
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
971
|
+
var useDeepMemo_1 = __webpack_require__(37);
|
|
962
972
|
|
|
963
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
973
|
+
var JSONSchemaUtils_1 = __webpack_require__(24);
|
|
964
974
|
|
|
965
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
975
|
+
var MissingPropsMessage_1 = __webpack_require__(38);
|
|
966
976
|
|
|
967
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
977
|
+
var withEditModeCover_1 = __webpack_require__(39);
|
|
968
978
|
|
|
969
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
979
|
+
var withPlaceholder_1 = __webpack_require__(40);
|
|
970
980
|
|
|
971
|
-
var hocUtils_1 = __webpack_require__(
|
|
981
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
972
982
|
/**
|
|
973
983
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
974
984
|
* @param {DashboardVizOpts} opts
|
|
@@ -1001,6 +1011,23 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1001
1011
|
theme = props.theme,
|
|
1002
1012
|
onRequestParamsChange = props.onRequestParamsChange;
|
|
1003
1013
|
|
|
1014
|
+
var _React$useContext = React.useContext(TimezoneContext_1.default),
|
|
1015
|
+
serializedTimezone = _React$useContext.serializedTimezone;
|
|
1016
|
+
|
|
1017
|
+
if (serializedTimezone) {
|
|
1018
|
+
/*
|
|
1019
|
+
@splunk/moment currently does not allow us to customize the timezone on a per visualization basis.
|
|
1020
|
+
This ensures that if a timezone was provided via TimezoneContext @splunk/moment time formatting
|
|
1021
|
+
will use it.
|
|
1022
|
+
@TODO(pwied):
|
|
1023
|
+
- remove when we moved away from @splunk/moment
|
|
1024
|
+
- provide timezone context to dynamic option evaluation phase
|
|
1025
|
+
*/
|
|
1026
|
+
if (!moment_1.default.getDefaultSplunkTimezone()) {
|
|
1027
|
+
moment_1.default.setDefaultSplunkTimezone(serializedTimezone);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1004
1031
|
var themeFunc = function themeFunc(themeVar) {
|
|
1005
1032
|
var _a, _b;
|
|
1006
1033
|
|
|
@@ -1029,7 +1056,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1029
1056
|
console.error("unexpected error evaluating options: + ".concat(e.message));
|
|
1030
1057
|
return {};
|
|
1031
1058
|
}
|
|
1032
|
-
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources]); // useEffect hook needs to be initialized before any early returns
|
|
1059
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
|
|
1033
1060
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1034
1061
|
|
|
1035
1062
|
React.useEffect(function () {
|
|
@@ -1152,25 +1179,31 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1152
1179
|
exports.default = withDashboardViz;
|
|
1153
1180
|
|
|
1154
1181
|
/***/ }),
|
|
1155
|
-
/*
|
|
1182
|
+
/* 30 */
|
|
1156
1183
|
/***/ (function(module, exports) {
|
|
1157
1184
|
|
|
1158
1185
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1159
1186
|
|
|
1160
1187
|
/***/ }),
|
|
1161
|
-
/*
|
|
1188
|
+
/* 31 */
|
|
1162
1189
|
/***/ (function(module, exports) {
|
|
1163
1190
|
|
|
1164
1191
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1165
1192
|
|
|
1166
1193
|
/***/ }),
|
|
1167
|
-
/*
|
|
1194
|
+
/* 32 */
|
|
1168
1195
|
/***/ (function(module, exports) {
|
|
1169
1196
|
|
|
1170
1197
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1171
1198
|
|
|
1172
1199
|
/***/ }),
|
|
1173
|
-
/*
|
|
1200
|
+
/* 33 */
|
|
1201
|
+
/***/ (function(module, exports) {
|
|
1202
|
+
|
|
1203
|
+
module.exports = require("@splunk/moment");
|
|
1204
|
+
|
|
1205
|
+
/***/ }),
|
|
1206
|
+
/* 34 */
|
|
1174
1207
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1175
1208
|
|
|
1176
1209
|
"use strict";
|
|
@@ -1188,7 +1221,7 @@ var T = __webpack_require__(0);
|
|
|
1188
1221
|
|
|
1189
1222
|
var lodash_1 = __webpack_require__(2);
|
|
1190
1223
|
|
|
1191
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1224
|
+
var VizActionHandler_1 = __webpack_require__(35); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1192
1225
|
|
|
1193
1226
|
|
|
1194
1227
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1321,7 +1354,7 @@ SplunkVisualization.defaultProps = {
|
|
|
1321
1354
|
exports.default = SplunkVisualization;
|
|
1322
1355
|
|
|
1323
1356
|
/***/ }),
|
|
1324
|
-
/*
|
|
1357
|
+
/* 35 */
|
|
1325
1358
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1326
1359
|
|
|
1327
1360
|
"use strict";
|
|
@@ -1358,7 +1391,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1358
1391
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1359
1392
|
|
|
1360
1393
|
/***/ }),
|
|
1361
|
-
/*
|
|
1394
|
+
/* 36 */
|
|
1362
1395
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1363
1396
|
|
|
1364
1397
|
"use strict";
|
|
@@ -1371,7 +1404,7 @@ exports.validSortDirs = void 0;
|
|
|
1371
1404
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1372
1405
|
|
|
1373
1406
|
/***/ }),
|
|
1374
|
-
/*
|
|
1407
|
+
/* 37 */
|
|
1375
1408
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1376
1409
|
|
|
1377
1410
|
"use strict";
|
|
@@ -1416,7 +1449,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1416
1449
|
exports.useDeepMemo = useDeepMemo;
|
|
1417
1450
|
|
|
1418
1451
|
/***/ }),
|
|
1419
|
-
/*
|
|
1452
|
+
/* 38 */
|
|
1420
1453
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1421
1454
|
|
|
1422
1455
|
"use strict";
|
|
@@ -1496,7 +1529,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1496
1529
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1497
1530
|
|
|
1498
1531
|
/***/ }),
|
|
1499
|
-
/*
|
|
1532
|
+
/* 39 */
|
|
1500
1533
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1501
1534
|
|
|
1502
1535
|
"use strict";
|
|
@@ -1510,14 +1543,14 @@ var React = __webpack_require__(1);
|
|
|
1510
1543
|
|
|
1511
1544
|
var styled_components_1 = __webpack_require__(4);
|
|
1512
1545
|
|
|
1513
|
-
var hocUtils_1 = __webpack_require__(
|
|
1546
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1514
1547
|
|
|
1515
1548
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1516
1549
|
displayName: "withEditModeCover__Cover",
|
|
1517
1550
|
componentId: "sc-1gsbnxb-0"
|
|
1518
1551
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1519
1552
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1520
|
-
'data-splunk-visualization-version': "24.
|
|
1553
|
+
'data-splunk-visualization-version': "24.5.0 - b75bfbe79"
|
|
1521
1554
|
}).withConfig({
|
|
1522
1555
|
displayName: "withEditModeCover__Blocker",
|
|
1523
1556
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1548,7 +1581,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1548
1581
|
exports.default = withEditModeCover;
|
|
1549
1582
|
|
|
1550
1583
|
/***/ }),
|
|
1551
|
-
/*
|
|
1584
|
+
/* 40 */
|
|
1552
1585
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1553
1586
|
|
|
1554
1587
|
"use strict";
|
|
@@ -1564,11 +1597,11 @@ var colorUtils_1 = __webpack_require__(12);
|
|
|
1564
1597
|
|
|
1565
1598
|
var variables_1 = __webpack_require__(11);
|
|
1566
1599
|
|
|
1567
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1600
|
+
var IconPlaceholder_1 = __webpack_require__(25);
|
|
1568
1601
|
|
|
1569
1602
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1570
1603
|
|
|
1571
|
-
var hocUtils_1 = __webpack_require__(
|
|
1604
|
+
var hocUtils_1 = __webpack_require__(8);
|
|
1572
1605
|
|
|
1573
1606
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1574
1607
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1612,34 +1645,34 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1612
1645
|
exports.default = withPlaceholder;
|
|
1613
1646
|
|
|
1614
1647
|
/***/ }),
|
|
1615
|
-
/*
|
|
1648
|
+
/* 41 */
|
|
1616
1649
|
/***/ (function(module, exports) {
|
|
1617
1650
|
|
|
1618
1651
|
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
1619
1652
|
|
|
1620
1653
|
/***/ }),
|
|
1621
|
-
/*
|
|
1622
|
-
/*
|
|
1654
|
+
/* 42 */,
|
|
1655
|
+
/* 43 */
|
|
1623
1656
|
/***/ (function(module, exports) {
|
|
1624
1657
|
|
|
1625
1658
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
1626
1659
|
|
|
1627
1660
|
/***/ }),
|
|
1628
|
-
/*
|
|
1661
|
+
/* 44 */
|
|
1629
1662
|
/***/ (function(module, exports) {
|
|
1630
1663
|
|
|
1631
1664
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1632
1665
|
|
|
1633
1666
|
/***/ }),
|
|
1634
|
-
/*
|
|
1667
|
+
/* 45 */
|
|
1635
1668
|
/***/ (function(module, exports) {
|
|
1636
1669
|
|
|
1637
1670
|
module.exports = require("@splunk/visualization-icons");
|
|
1638
1671
|
|
|
1639
1672
|
/***/ }),
|
|
1640
|
-
/*
|
|
1641
|
-
/*
|
|
1642
|
-
/*
|
|
1673
|
+
/* 46 */,
|
|
1674
|
+
/* 47 */,
|
|
1675
|
+
/* 48 */
|
|
1643
1676
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1644
1677
|
|
|
1645
1678
|
"use strict";
|
|
@@ -1669,35 +1702,34 @@ var background = function background(_ref) {
|
|
|
1669
1702
|
exports.default = background;
|
|
1670
1703
|
|
|
1671
1704
|
/***/ }),
|
|
1672
|
-
/*
|
|
1673
|
-
/*
|
|
1674
|
-
/*
|
|
1705
|
+
/* 49 */,
|
|
1706
|
+
/* 50 */,
|
|
1707
|
+
/* 51 */
|
|
1675
1708
|
/***/ (function(module, exports) {
|
|
1676
1709
|
|
|
1677
1710
|
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
1678
1711
|
|
|
1679
1712
|
/***/ }),
|
|
1680
|
-
/*
|
|
1713
|
+
/* 52 */
|
|
1681
1714
|
/***/ (function(module, exports) {
|
|
1682
1715
|
|
|
1683
1716
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
1684
1717
|
|
|
1685
1718
|
/***/ }),
|
|
1686
|
-
/*
|
|
1719
|
+
/* 53 */
|
|
1687
1720
|
/***/ (function(module, exports) {
|
|
1688
1721
|
|
|
1689
1722
|
module.exports = require("d3-array");
|
|
1690
1723
|
|
|
1691
1724
|
/***/ }),
|
|
1692
|
-
/* 52 */,
|
|
1693
|
-
/* 53 */,
|
|
1694
1725
|
/* 54 */,
|
|
1695
1726
|
/* 55 */,
|
|
1696
1727
|
/* 56 */,
|
|
1697
1728
|
/* 57 */,
|
|
1698
1729
|
/* 58 */,
|
|
1699
1730
|
/* 59 */,
|
|
1700
|
-
/* 60
|
|
1731
|
+
/* 60 */,
|
|
1732
|
+
/* 61 */
|
|
1701
1733
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1702
1734
|
|
|
1703
1735
|
"use strict";
|
|
@@ -1720,28 +1752,27 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
1720
1752
|
/* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
|
|
1721
1753
|
|
|
1722
1754
|
/***/ }),
|
|
1723
|
-
/* 61 */,
|
|
1724
1755
|
/* 62 */,
|
|
1725
1756
|
/* 63 */,
|
|
1726
1757
|
/* 64 */,
|
|
1727
|
-
/* 65
|
|
1758
|
+
/* 65 */
|
|
1759
|
+
/***/ (function(module, exports) {
|
|
1760
|
+
|
|
1761
|
+
module.exports = require("@splunk/themes");
|
|
1762
|
+
|
|
1763
|
+
/***/ }),
|
|
1728
1764
|
/* 66 */,
|
|
1729
1765
|
/* 67 */,
|
|
1730
1766
|
/* 68 */,
|
|
1731
1767
|
/* 69 */,
|
|
1732
|
-
/* 70
|
|
1768
|
+
/* 70 */,
|
|
1769
|
+
/* 71 */,
|
|
1770
|
+
/* 72 */
|
|
1733
1771
|
/***/ (function(module, exports) {
|
|
1734
1772
|
|
|
1735
1773
|
module.exports = require("d3-scale");
|
|
1736
1774
|
|
|
1737
1775
|
/***/ }),
|
|
1738
|
-
/* 71 */
|
|
1739
|
-
/***/ (function(module, exports) {
|
|
1740
|
-
|
|
1741
|
-
module.exports = require("@splunk/themes");
|
|
1742
|
-
|
|
1743
|
-
/***/ }),
|
|
1744
|
-
/* 72 */,
|
|
1745
1776
|
/* 73 */,
|
|
1746
1777
|
/* 74 */,
|
|
1747
1778
|
/* 75 */,
|
|
@@ -1751,15 +1782,17 @@ module.exports = require("@splunk/themes");
|
|
|
1751
1782
|
/* 79 */,
|
|
1752
1783
|
/* 80 */,
|
|
1753
1784
|
/* 81 */,
|
|
1754
|
-
/* 82
|
|
1785
|
+
/* 82 */,
|
|
1786
|
+
/* 83 */,
|
|
1787
|
+
/* 84 */
|
|
1755
1788
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1756
1789
|
|
|
1757
1790
|
"use strict";
|
|
1758
1791
|
|
|
1759
1792
|
|
|
1760
|
-
var _toConsumableArray = __webpack_require__(
|
|
1793
|
+
var _toConsumableArray = __webpack_require__(41);
|
|
1761
1794
|
|
|
1762
|
-
var _slicedToArray = __webpack_require__(
|
|
1795
|
+
var _slicedToArray = __webpack_require__(51);
|
|
1763
1796
|
|
|
1764
1797
|
Object.defineProperty(exports, "__esModule", {
|
|
1765
1798
|
value: true
|
|
@@ -1784,20 +1817,20 @@ var SizeAwareWrapper_1 = __webpack_require__(17);
|
|
|
1784
1817
|
|
|
1785
1818
|
var style_1 = __webpack_require__(14);
|
|
1786
1819
|
|
|
1787
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1820
|
+
var visualization_color_palettes_1 = __webpack_require__(43); // eslint-disable-next-line camelcase
|
|
1788
1821
|
|
|
1789
1822
|
|
|
1790
|
-
var sankey_1 = __webpack_require__(
|
|
1823
|
+
var sankey_1 = __webpack_require__(243);
|
|
1791
1824
|
|
|
1792
|
-
var VizStyleWrapper_1 = __webpack_require__(
|
|
1825
|
+
var VizStyleWrapper_1 = __webpack_require__(61);
|
|
1793
1826
|
|
|
1794
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
1827
|
+
var SankeyUtils_1 = __webpack_require__(107);
|
|
1795
1828
|
|
|
1796
|
-
var SankeyNode_1 = __webpack_require__(
|
|
1829
|
+
var SankeyNode_1 = __webpack_require__(244);
|
|
1797
1830
|
|
|
1798
|
-
var SankeyLink_1 = __webpack_require__(
|
|
1831
|
+
var SankeyLink_1 = __webpack_require__(245);
|
|
1799
1832
|
|
|
1800
|
-
var SankeyTooltip_1 = __webpack_require__(
|
|
1833
|
+
var SankeyTooltip_1 = __webpack_require__(246);
|
|
1801
1834
|
|
|
1802
1835
|
exports.DEFAULT_COLORS = {
|
|
1803
1836
|
backgroundColor: '#ffffff',
|
|
@@ -2133,8 +2166,6 @@ PureSankey.defaultProps = {
|
|
|
2133
2166
|
exports.default = PureSankey;
|
|
2134
2167
|
|
|
2135
2168
|
/***/ }),
|
|
2136
|
-
/* 83 */,
|
|
2137
|
-
/* 84 */,
|
|
2138
2169
|
/* 85 */,
|
|
2139
2170
|
/* 86 */,
|
|
2140
2171
|
/* 87 */,
|
|
@@ -2150,28 +2181,30 @@ exports.default = PureSankey;
|
|
|
2150
2181
|
/* 97 */,
|
|
2151
2182
|
/* 98 */,
|
|
2152
2183
|
/* 99 */,
|
|
2153
|
-
/* 100
|
|
2184
|
+
/* 100 */,
|
|
2185
|
+
/* 101 */,
|
|
2186
|
+
/* 102 */
|
|
2154
2187
|
/***/ (function(module, exports) {
|
|
2155
2188
|
|
|
2156
2189
|
module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
|
|
2157
2190
|
|
|
2158
2191
|
/***/ }),
|
|
2159
|
-
/*
|
|
2160
|
-
/*
|
|
2161
|
-
/*
|
|
2192
|
+
/* 103 */,
|
|
2193
|
+
/* 104 */,
|
|
2194
|
+
/* 105 */,
|
|
2195
|
+
/* 106 */
|
|
2162
2196
|
/***/ (function(module, exports) {
|
|
2163
2197
|
|
|
2164
2198
|
module.exports = require("@splunk/react-ui/Popover");
|
|
2165
2199
|
|
|
2166
2200
|
/***/ }),
|
|
2167
|
-
/*
|
|
2168
|
-
/* 105 */
|
|
2201
|
+
/* 107 */
|
|
2169
2202
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2170
2203
|
|
|
2171
2204
|
"use strict";
|
|
2172
2205
|
|
|
2173
2206
|
|
|
2174
|
-
var _typeof = __webpack_require__(
|
|
2207
|
+
var _typeof = __webpack_require__(21);
|
|
2175
2208
|
|
|
2176
2209
|
Object.defineProperty(exports, "__esModule", {
|
|
2177
2210
|
value: true
|
|
@@ -2179,7 +2212,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2179
2212
|
exports.truncateSVGTextWithEllipsis = exports.checkDigitsOnly = exports.computeAllConnectedLinksToNodes = exports.getAllConnectedLinks = exports.extractLinkMidPoint = exports.getAllNodeNames = exports.getLinkId = exports.getNodeId = exports.convertInputToSankeyDataFormat = exports.getColorCategoryMapping = exports.getNodesIndex = void 0;
|
|
2180
2213
|
/* eslint-disable no-param-reassign */
|
|
2181
2214
|
|
|
2182
|
-
var d3_scale_1 = __webpack_require__(
|
|
2215
|
+
var d3_scale_1 = __webpack_require__(72);
|
|
2183
2216
|
|
|
2184
2217
|
var insertNodeIfNotExist = function insertNodeIfNotExist(sankeyData, nodeName) {
|
|
2185
2218
|
var nodes = sankeyData.nodes;
|
|
@@ -2457,25 +2490,23 @@ var truncateSVGTextWithEllipsis = function truncateSVGTextWithEllipsis(textEleme
|
|
|
2457
2490
|
exports.truncateSVGTextWithEllipsis = truncateSVGTextWithEllipsis;
|
|
2458
2491
|
|
|
2459
2492
|
/***/ }),
|
|
2460
|
-
/* 106 */,
|
|
2461
|
-
/* 107 */,
|
|
2462
2493
|
/* 108 */,
|
|
2463
2494
|
/* 109 */,
|
|
2464
2495
|
/* 110 */,
|
|
2465
|
-
/* 111
|
|
2496
|
+
/* 111 */,
|
|
2497
|
+
/* 112 */,
|
|
2498
|
+
/* 113 */
|
|
2466
2499
|
/***/ (function(module, exports) {
|
|
2467
2500
|
|
|
2468
2501
|
module.exports = require("d3-interpolate");
|
|
2469
2502
|
|
|
2470
2503
|
/***/ }),
|
|
2471
|
-
/*
|
|
2504
|
+
/* 114 */
|
|
2472
2505
|
/***/ (function(module, exports) {
|
|
2473
2506
|
|
|
2474
2507
|
module.exports = require("d3-collection");
|
|
2475
2508
|
|
|
2476
2509
|
/***/ }),
|
|
2477
|
-
/* 113 */,
|
|
2478
|
-
/* 114 */,
|
|
2479
2510
|
/* 115 */,
|
|
2480
2511
|
/* 116 */,
|
|
2481
2512
|
/* 117 */,
|
|
@@ -2494,13 +2525,15 @@ module.exports = require("d3-collection");
|
|
|
2494
2525
|
/* 130 */,
|
|
2495
2526
|
/* 131 */,
|
|
2496
2527
|
/* 132 */,
|
|
2497
|
-
/* 133
|
|
2528
|
+
/* 133 */,
|
|
2529
|
+
/* 134 */,
|
|
2530
|
+
/* 135 */
|
|
2498
2531
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2499
2532
|
|
|
2500
2533
|
"use strict";
|
|
2501
2534
|
|
|
2502
2535
|
|
|
2503
|
-
var _typeof = __webpack_require__(
|
|
2536
|
+
var _typeof = __webpack_require__(21);
|
|
2504
2537
|
|
|
2505
2538
|
Object.defineProperty(exports, "__esModule", {
|
|
2506
2539
|
value: true
|
|
@@ -2509,17 +2542,17 @@ exports.PureSankey = exports.config = exports.themes = exports.computeVizProps =
|
|
|
2509
2542
|
|
|
2510
2543
|
var lodash_1 = __webpack_require__(2);
|
|
2511
2544
|
|
|
2512
|
-
var dataSourceUtils_1 = __webpack_require__(
|
|
2545
|
+
var dataSourceUtils_1 = __webpack_require__(102);
|
|
2513
2546
|
|
|
2514
2547
|
var colorUtils_1 = __webpack_require__(12);
|
|
2515
2548
|
|
|
2516
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
2549
|
+
var withDashboardViz_1 = __webpack_require__(29);
|
|
2517
2550
|
|
|
2518
|
-
var PureSankey_1 = __webpack_require__(
|
|
2551
|
+
var PureSankey_1 = __webpack_require__(84);
|
|
2519
2552
|
|
|
2520
2553
|
exports.PureSankey = PureSankey_1.default;
|
|
2521
2554
|
|
|
2522
|
-
var config_1 = __webpack_require__(
|
|
2555
|
+
var config_1 = __webpack_require__(247);
|
|
2523
2556
|
|
|
2524
2557
|
exports.config = config_1.default;
|
|
2525
2558
|
/**
|
|
@@ -2541,7 +2574,8 @@ var computeVizProps = function computeVizProps(_ref) {
|
|
|
2541
2574
|
var themeFunc = _ref.themeFunc,
|
|
2542
2575
|
dataSources = _ref.dataSources,
|
|
2543
2576
|
linkValues = _ref.linkValues,
|
|
2544
|
-
seriesColors = _ref.seriesColors
|
|
2577
|
+
seriesColors = _ref.seriesColors,
|
|
2578
|
+
linkColors = _ref.linkColors;
|
|
2545
2579
|
|
|
2546
2580
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j; // Compute all themeColor variables needed for PureSankey
|
|
2547
2581
|
|
|
@@ -2550,7 +2584,10 @@ var computeVizProps = function computeVizProps(_ref) {
|
|
|
2550
2584
|
var themeColors = {};
|
|
2551
2585
|
themeColorVariables.forEach(function (variable) {
|
|
2552
2586
|
themeColors[variable] = themeFunc(variable);
|
|
2553
|
-
}); // Sanitize
|
|
2587
|
+
}); // Sanitize linkColors prop
|
|
2588
|
+
// eslint-disable-next-line no-param-reassign
|
|
2589
|
+
|
|
2590
|
+
linkColors = colorUtils_1.sanitizeArrayOfColors(linkColors); // Sanitize seriesColors prop
|
|
2554
2591
|
// (Note:- This is handled outside SanitizeProps because it would impact seriesColors option used in splunk-charting viz as the types are different.
|
|
2555
2592
|
// The type used in splunk-charting viz expects a string of comma separated colors, but here the type is an array of string)
|
|
2556
2593
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -2584,7 +2621,8 @@ var computeVizProps = function computeVizProps(_ref) {
|
|
|
2584
2621
|
return Object.assign(Object.assign({}, themeColors), {
|
|
2585
2622
|
columns: columnsFromDataSource,
|
|
2586
2623
|
linkValueField: linkValueField,
|
|
2587
|
-
seriesColors: seriesColors
|
|
2624
|
+
seriesColors: seriesColors,
|
|
2625
|
+
linkColors: linkColors
|
|
2588
2626
|
});
|
|
2589
2627
|
};
|
|
2590
2628
|
|
|
@@ -2602,8 +2640,6 @@ exports.themes = themes;
|
|
|
2602
2640
|
exports.default = Sankey;
|
|
2603
2641
|
|
|
2604
2642
|
/***/ }),
|
|
2605
|
-
/* 134 */,
|
|
2606
|
-
/* 135 */,
|
|
2607
2643
|
/* 136 */,
|
|
2608
2644
|
/* 137 */,
|
|
2609
2645
|
/* 138 */,
|
|
@@ -2707,7 +2743,10 @@ exports.default = Sankey;
|
|
|
2707
2743
|
/* 236 */,
|
|
2708
2744
|
/* 237 */,
|
|
2709
2745
|
/* 238 */,
|
|
2710
|
-
/* 239
|
|
2746
|
+
/* 239 */,
|
|
2747
|
+
/* 240 */,
|
|
2748
|
+
/* 241 */,
|
|
2749
|
+
/* 242 */
|
|
2711
2750
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2712
2751
|
|
|
2713
2752
|
"use strict";
|
|
@@ -2737,9 +2776,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2737
2776
|
});
|
|
2738
2777
|
exports.default = void 0;
|
|
2739
2778
|
|
|
2740
|
-
__exportStar(__webpack_require__(
|
|
2779
|
+
__exportStar(__webpack_require__(135), exports);
|
|
2741
2780
|
|
|
2742
|
-
var Sankey_1 = __webpack_require__(
|
|
2781
|
+
var Sankey_1 = __webpack_require__(135);
|
|
2743
2782
|
|
|
2744
2783
|
Object.defineProperty(exports, "default", {
|
|
2745
2784
|
enumerable: true,
|
|
@@ -2749,17 +2788,17 @@ Object.defineProperty(exports, "default", {
|
|
|
2749
2788
|
});
|
|
2750
2789
|
|
|
2751
2790
|
/***/ }),
|
|
2752
|
-
/*
|
|
2791
|
+
/* 243 */
|
|
2753
2792
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2754
2793
|
|
|
2755
2794
|
"use strict";
|
|
2756
2795
|
__webpack_require__.r(__webpack_exports__);
|
|
2757
2796
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d3_sankey", function() { return d3_sankey; });
|
|
2758
|
-
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2797
|
+
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(113);
|
|
2759
2798
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__);
|
|
2760
|
-
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
2799
|
+
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
2761
2800
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(d3_array__WEBPACK_IMPORTED_MODULE_1__);
|
|
2762
|
-
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
2801
|
+
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(114);
|
|
2763
2802
|
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3_collection__WEBPACK_IMPORTED_MODULE_2__);
|
|
2764
2803
|
// reference link :- https://github.com/csaladenes/sankey
|
|
2765
2804
|
|
|
@@ -3315,7 +3354,7 @@ var d3_sankey = function d3_sankey() {
|
|
|
3315
3354
|
};
|
|
3316
3355
|
|
|
3317
3356
|
/***/ }),
|
|
3318
|
-
/*
|
|
3357
|
+
/* 244 */
|
|
3319
3358
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3320
3359
|
|
|
3321
3360
|
"use strict";
|
|
@@ -3333,9 +3372,9 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
3333
3372
|
|
|
3334
3373
|
var react_1 = __webpack_require__(1);
|
|
3335
3374
|
|
|
3336
|
-
var PureSankey_1 = __webpack_require__(
|
|
3375
|
+
var PureSankey_1 = __webpack_require__(84);
|
|
3337
3376
|
|
|
3338
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
3377
|
+
var SankeyUtils_1 = __webpack_require__(107);
|
|
3339
3378
|
|
|
3340
3379
|
var MAX_NODE_TEXT_WIDTH = 150;
|
|
3341
3380
|
|
|
@@ -3435,7 +3474,7 @@ SankeyNode.defaultProps = {
|
|
|
3435
3474
|
exports.default = SankeyNode;
|
|
3436
3475
|
|
|
3437
3476
|
/***/ }),
|
|
3438
|
-
/*
|
|
3477
|
+
/* 245 */
|
|
3439
3478
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3440
3479
|
|
|
3441
3480
|
"use strict";
|
|
@@ -3449,9 +3488,9 @@ var React = __webpack_require__(1);
|
|
|
3449
3488
|
|
|
3450
3489
|
var T = __webpack_require__(0);
|
|
3451
3490
|
|
|
3452
|
-
var PureSankey_1 = __webpack_require__(
|
|
3491
|
+
var PureSankey_1 = __webpack_require__(84);
|
|
3453
3492
|
|
|
3454
|
-
var SankeyUtils_1 = __webpack_require__(
|
|
3493
|
+
var SankeyUtils_1 = __webpack_require__(107);
|
|
3455
3494
|
|
|
3456
3495
|
var getLinkFill = function getLinkFill(link, colorCategoryMapping, colorMode) {
|
|
3457
3496
|
if (colorMode === 'categorical') {
|
|
@@ -3543,7 +3582,7 @@ SankeyLink.defaultProps = {
|
|
|
3543
3582
|
exports.default = SankeyLink;
|
|
3544
3583
|
|
|
3545
3584
|
/***/ }),
|
|
3546
|
-
/*
|
|
3585
|
+
/* 246 */
|
|
3547
3586
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3548
3587
|
|
|
3549
3588
|
"use strict";
|
|
@@ -3557,13 +3596,13 @@ var React = __webpack_require__(1);
|
|
|
3557
3596
|
|
|
3558
3597
|
var T = __webpack_require__(0);
|
|
3559
3598
|
|
|
3560
|
-
var Popover_1 = __webpack_require__(
|
|
3599
|
+
var Popover_1 = __webpack_require__(106);
|
|
3561
3600
|
|
|
3562
3601
|
var styled_components_1 = __webpack_require__(4);
|
|
3563
3602
|
|
|
3564
|
-
var numberUtils_1 = __webpack_require__(
|
|
3603
|
+
var numberUtils_1 = __webpack_require__(23);
|
|
3565
3604
|
|
|
3566
|
-
var PureSankey_1 = __webpack_require__(
|
|
3605
|
+
var PureSankey_1 = __webpack_require__(84);
|
|
3567
3606
|
|
|
3568
3607
|
var DEFAULT_PLACEMENT = 'below';
|
|
3569
3608
|
var StyledTooltipContainer = styled_components_1.default.div.withConfig({
|
|
@@ -3813,7 +3852,7 @@ SankeyTooltip.defaultProps = {
|
|
|
3813
3852
|
exports.default = SankeyTooltip;
|
|
3814
3853
|
|
|
3815
3854
|
/***/ }),
|
|
3816
|
-
/*
|
|
3855
|
+
/* 247 */
|
|
3817
3856
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3818
3857
|
|
|
3819
3858
|
"use strict";
|
|
@@ -3823,29 +3862,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3823
3862
|
value: true
|
|
3824
3863
|
});
|
|
3825
3864
|
|
|
3826
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3865
|
+
var visualization_icons_1 = __webpack_require__(45);
|
|
3827
3866
|
|
|
3828
|
-
var placeholders_1 = __webpack_require__(
|
|
3867
|
+
var placeholders_1 = __webpack_require__(44);
|
|
3829
3868
|
|
|
3830
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3869
|
+
var visualization_color_palettes_1 = __webpack_require__(43);
|
|
3831
3870
|
|
|
3832
3871
|
var schemaUtils_1 = __webpack_require__(15);
|
|
3833
3872
|
|
|
3834
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
3873
|
+
var PresetPalettes_1 = __webpack_require__(52);
|
|
3835
3874
|
|
|
3836
|
-
var themes_1 = __webpack_require__(
|
|
3875
|
+
var themes_1 = __webpack_require__(65);
|
|
3837
3876
|
|
|
3838
3877
|
var i18n_1 = __webpack_require__(3);
|
|
3839
3878
|
|
|
3840
3879
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3841
3880
|
|
|
3842
|
-
var VizCategory_1 = __webpack_require__(
|
|
3881
|
+
var VizCategory_1 = __webpack_require__(28);
|
|
3843
3882
|
|
|
3844
3883
|
var configUtils_1 = __webpack_require__(6);
|
|
3845
3884
|
|
|
3846
|
-
var DynamicLinkColorsEditor_1 = __webpack_require__(
|
|
3885
|
+
var DynamicLinkColorsEditor_1 = __webpack_require__(248);
|
|
3847
3886
|
|
|
3848
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3887
|
+
var BackgroundColor_1 = __webpack_require__(48);
|
|
3849
3888
|
|
|
3850
3889
|
var defaultContext = {
|
|
3851
3890
|
linkColorRangeConfig: [{
|
|
@@ -4056,7 +4095,7 @@ var config = {
|
|
|
4056
4095
|
exports.default = configUtils_1.enhanceConfig(config);
|
|
4057
4096
|
|
|
4058
4097
|
/***/ }),
|
|
4059
|
-
/*
|
|
4098
|
+
/* 248 */
|
|
4060
4099
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4061
4100
|
|
|
4062
4101
|
"use strict";
|