@splunk/visualizations 25.13.1 → 26.0.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 +216 -216
- package/Area.config.js.map +1 -1
- package/Area.js +529 -561
- package/Area.js.map +1 -1
- package/Bar.config.js +213 -213
- package/Bar.config.js.map +1 -1
- package/Bar.js +394 -386
- package/Bar.js.map +1 -1
- package/Bubble.config.js +140 -140
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +313 -305
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +15 -15
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +149 -144
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +205 -205
- package/Column.config.js.map +1 -1
- package/Column.js +387 -379
- package/Column.js.map +1 -1
- package/Ellipse.config.js +45 -45
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +157 -144
- package/Ellipse.js.map +1 -1
- package/Events.config.js +11 -11
- package/Events.config.js.map +1 -1
- package/Events.js +273 -261
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +46 -46
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +267 -262
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +8 -8
- package/Image.config.js.map +1 -1
- package/Image.js +110 -104
- package/Image.js.map +1 -1
- package/Line.config.js +220 -220
- package/Line.config.js.map +1 -1
- package/Line.js +404 -396
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +27 -27
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +557 -548
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +71 -71
- package/Map.config.js.map +1 -1
- package/Map.js +471 -465
- package/Map.js.map +1 -1
- package/Markdown.config.js +23 -23
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +151 -145
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +84 -84
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +295 -289
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +23 -23
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +164 -162
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +24 -24
- package/Pie.config.js.map +1 -1
- package/Pie.js +233 -228
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +33 -33
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +278 -279
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +46 -46
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +154 -142
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +19 -19
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +281 -275
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +135 -135
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +304 -299
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +119 -119
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +359 -341
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +14 -14
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +117 -117
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +373 -371
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +157 -115
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1114 -540
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +50 -20
- package/SparkLine.js.map +1 -1
- package/Table.config.js +54 -54
- package/Table.config.js.map +1 -1
- package/Table.js +302 -286
- package/Table.js.map +1 -1
- package/common/Charting.js +41 -41
- package/common/Charting.js.map +1 -1
- package/common/EventsDoc.js +15 -14
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +2 -2
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +22 -22
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +32 -27
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +14 -14
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +12 -12
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +112 -112
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +21 -15
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +10 -9
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +2 -2
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/layoutUtils.js +2 -2
- package/common/utils/layoutUtils.js.map +1 -1
- package/common/utils/mapUtils.js +84 -80
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +2 -2
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +27 -9
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +26 -26
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +107 -104
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +19 -19
package/Image.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 = 220);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -145,14 +145,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
|
145
145
|
var width = _ref.width;
|
|
146
146
|
return {
|
|
147
147
|
style: {
|
|
148
|
-
width: style_1.toPx(width)
|
|
148
|
+
width: (0, style_1.toPx)(width)
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
}).withConfig({
|
|
152
152
|
displayName: "FixedSizeContainer__Item",
|
|
153
153
|
componentId: "sc-1yhgpod-0"
|
|
154
154
|
})(["position:relative;background-color:", "};"], function (props) {
|
|
155
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
155
|
+
return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
156
156
|
});
|
|
157
157
|
// Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
158
158
|
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
@@ -160,16 +160,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
|
160
160
|
height = _ref2.height;
|
|
161
161
|
return {
|
|
162
162
|
style: Object.assign(Object.assign({}, width && {
|
|
163
|
-
width: style_1.toPx(width)
|
|
163
|
+
width: (0, style_1.toPx)(width)
|
|
164
164
|
}), height && {
|
|
165
|
-
height: style_1.toPx(height)
|
|
165
|
+
height: (0, style_1.toPx)(height)
|
|
166
166
|
})
|
|
167
167
|
};
|
|
168
168
|
}).withConfig({
|
|
169
169
|
displayName: "FixedSizeContainer__FixSizeItem",
|
|
170
170
|
componentId: "sc-1yhgpod-1"
|
|
171
171
|
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
172
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
172
|
+
return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
173
173
|
});
|
|
174
174
|
var ItemContent = styled_components_1.default.div.withConfig({
|
|
175
175
|
displayName: "FixedSizeContainer__ItemContent",
|
|
@@ -193,7 +193,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
193
193
|
}
|
|
194
194
|
return React.createElement(FixSizeItem, {
|
|
195
195
|
"data-test": "fix-size-item",
|
|
196
|
-
"data-splunk-visualization-version": "
|
|
196
|
+
"data-splunk-visualization-version": "26.0.0 - 2f7458907",
|
|
197
197
|
width: width,
|
|
198
198
|
height: height,
|
|
199
199
|
backgroundColor: backgroundColor
|
|
@@ -251,7 +251,7 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
251
251
|
|
|
252
252
|
/***/ }),
|
|
253
253
|
|
|
254
|
-
/***/
|
|
254
|
+
/***/ 153:
|
|
255
255
|
/***/ (function(module, exports, __webpack_require__) {
|
|
256
256
|
|
|
257
257
|
"use strict";
|
|
@@ -275,13 +275,13 @@ var lodash_1 = __webpack_require__(3);
|
|
|
275
275
|
var React = __webpack_require__(1);
|
|
276
276
|
var i18n_1 = __webpack_require__(2);
|
|
277
277
|
var style_1 = __webpack_require__(14);
|
|
278
|
-
var RemoteImage_1 = __webpack_require__(
|
|
278
|
+
var RemoteImage_1 = __webpack_require__(154);
|
|
279
279
|
var styled_components_1 = __webpack_require__(4);
|
|
280
280
|
var T = __webpack_require__(0);
|
|
281
|
-
var config_1 = __webpack_require__(
|
|
281
|
+
var config_1 = __webpack_require__(221);
|
|
282
282
|
exports.config = config_1.default;
|
|
283
283
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
284
|
-
var ImageApi_1 = __webpack_require__(
|
|
284
|
+
var ImageApi_1 = __webpack_require__(222);
|
|
285
285
|
var useEffect = React.useEffect,
|
|
286
286
|
useRef = React.useRef;
|
|
287
287
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
@@ -295,7 +295,7 @@ var Container = styled_components_1.default.div.attrs(function () {
|
|
|
295
295
|
})(["position:relative;box-sizing:border-box;display:flex;justify-content:center;align-items:center;cursor:", ";", ";"], function (props) {
|
|
296
296
|
return props.onClick ? 'pointer' : 'inherit';
|
|
297
297
|
}, function (props) {
|
|
298
|
-
return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
|
|
298
|
+
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
299
299
|
});
|
|
300
300
|
var shouldShowPlaceholder = function shouldShowPlaceholder(dataSources, loading, options) {
|
|
301
301
|
if (options.src) {
|
|
@@ -308,20 +308,20 @@ var toImageDimensions = function toImageDimensions(props) {
|
|
|
308
308
|
if (props.shouldPreserveAspectRatio) {
|
|
309
309
|
return "\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n ";
|
|
310
310
|
}
|
|
311
|
-
return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
|
|
311
|
+
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
312
312
|
};
|
|
313
313
|
exports.toImageDimensions = toImageDimensions;
|
|
314
314
|
var StyledImage = styled_components_1.default.img.withConfig({
|
|
315
315
|
displayName: "Image__StyledImage",
|
|
316
316
|
componentId: "kplb09-1"
|
|
317
317
|
})(["display:block;", ";"], function (props) {
|
|
318
|
-
return exports.toImageDimensions(props);
|
|
318
|
+
return (0, exports.toImageDimensions)(props);
|
|
319
319
|
});
|
|
320
320
|
var computeVizProps = function computeVizProps(_a) {
|
|
321
321
|
var visualizationApiRef = _a.visualizationApiRef,
|
|
322
322
|
title = _a.title,
|
|
323
323
|
otherOptions = __rest(_a, ["visualizationApiRef", "title"]);
|
|
324
|
-
var options = lodash_1.chain(otherOptions).pick(validOptions).value();
|
|
324
|
+
var options = (0, lodash_1.chain)(otherOptions).pick(validOptions).value();
|
|
325
325
|
return {
|
|
326
326
|
options: options,
|
|
327
327
|
title: title,
|
|
@@ -346,7 +346,7 @@ var ImageVisualization = function ImageVisualization(_ref) {
|
|
|
346
346
|
},
|
|
347
347
|
remoteImage: remoteImage
|
|
348
348
|
}));
|
|
349
|
-
var isRemote = RemoteImage_1.isRemoteImage(src);
|
|
349
|
+
var isRemote = (0, RemoteImage_1.isRemoteImage)(src);
|
|
350
350
|
useEffect(function () {
|
|
351
351
|
visualizationApiRef(api.current);
|
|
352
352
|
return function () {
|
|
@@ -370,9 +370,9 @@ var ImageVisualization = function ImageVisualization(_ref) {
|
|
|
370
370
|
shouldPreserveAspectRatio: preserveAspectRatio,
|
|
371
371
|
width: width,
|
|
372
372
|
height: height,
|
|
373
|
-
alt: i18n_1._(title),
|
|
373
|
+
alt: (0, i18n_1._)(title),
|
|
374
374
|
onError: function onError(e) {
|
|
375
|
-
e.target.alt = i18n_1._('Image not found');
|
|
375
|
+
e.target.alt = (0, i18n_1._)('Image not found');
|
|
376
376
|
},
|
|
377
377
|
referrerPolicy: "no-referrer"
|
|
378
378
|
}));
|
|
@@ -395,7 +395,7 @@ var defaultProps = {
|
|
|
395
395
|
};
|
|
396
396
|
ImageVisualization.propTypes = propTypes;
|
|
397
397
|
ImageVisualization.defaultProps = defaultProps;
|
|
398
|
-
var Image = withDashboardViz_1.default({
|
|
398
|
+
var Image = (0, withDashboardViz_1.default)({
|
|
399
399
|
ReactViz: ImageVisualization,
|
|
400
400
|
vizConfig: config_1.default,
|
|
401
401
|
useIconPlaceholder: exports.shouldShowPlaceholder,
|
|
@@ -407,7 +407,7 @@ exports.default = Image;
|
|
|
407
407
|
|
|
408
408
|
/***/ }),
|
|
409
409
|
|
|
410
|
-
/***/
|
|
410
|
+
/***/ 154:
|
|
411
411
|
/***/ (function(module, exports) {
|
|
412
412
|
|
|
413
413
|
module.exports = require("@splunk/visualizations-shared/RemoteImage");
|
|
@@ -609,8 +609,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
|
609
609
|
*/
|
|
610
610
|
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
611
611
|
return presets.find(function (preset) {
|
|
612
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
613
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
612
|
+
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
613
|
+
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
614
614
|
var presetContextKeys = Object.keys(presetContext);
|
|
615
615
|
var presetOptionKeys = Object.keys(presetOptions);
|
|
616
616
|
// all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
@@ -627,7 +627,7 @@ exports.getInitialPreset = getInitialPreset;
|
|
|
627
627
|
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
628
628
|
*/
|
|
629
629
|
function generatePrecisionValues(numPrecisionValues) {
|
|
630
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
630
|
+
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
631
631
|
return {
|
|
632
632
|
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
633
633
|
value: i
|
|
@@ -660,7 +660,7 @@ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
|
660
660
|
|
|
661
661
|
/***/ }),
|
|
662
662
|
|
|
663
|
-
/***/
|
|
663
|
+
/***/ 220:
|
|
664
664
|
/***/ (function(module, exports, __webpack_require__) {
|
|
665
665
|
|
|
666
666
|
"use strict";
|
|
@@ -668,12 +668,16 @@ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
|
668
668
|
|
|
669
669
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
670
670
|
if (k2 === undefined) k2 = k;
|
|
671
|
-
Object.
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
671
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
672
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
673
|
+
desc = {
|
|
674
|
+
enumerable: true,
|
|
675
|
+
get: function get() {
|
|
676
|
+
return m[k];
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
Object.defineProperty(o, k2, desc);
|
|
677
681
|
} : function (o, m, k, k2) {
|
|
678
682
|
if (k2 === undefined) k2 = k;
|
|
679
683
|
o[k2] = m[k];
|
|
@@ -687,8 +691,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
687
691
|
value: true
|
|
688
692
|
});
|
|
689
693
|
exports.default = void 0;
|
|
690
|
-
__exportStar(__webpack_require__(
|
|
691
|
-
var Image_1 = __webpack_require__(
|
|
694
|
+
__exportStar(__webpack_require__(153), exports);
|
|
695
|
+
var Image_1 = __webpack_require__(153);
|
|
692
696
|
Object.defineProperty(exports, "default", {
|
|
693
697
|
enumerable: true,
|
|
694
698
|
get: function get() {
|
|
@@ -698,7 +702,7 @@ Object.defineProperty(exports, "default", {
|
|
|
698
702
|
|
|
699
703
|
/***/ }),
|
|
700
704
|
|
|
701
|
-
/***/
|
|
705
|
+
/***/ 221:
|
|
702
706
|
/***/ (function(module, exports, __webpack_require__) {
|
|
703
707
|
|
|
704
708
|
"use strict";
|
|
@@ -740,13 +744,13 @@ var optionsSchema = {
|
|
|
740
744
|
}
|
|
741
745
|
};
|
|
742
746
|
var editorConfig = [{
|
|
743
|
-
label: i18n_1._('Image content'),
|
|
747
|
+
label: (0, i18n_1._)('Image content'),
|
|
744
748
|
layout: [[{
|
|
745
|
-
label: i18n_1._('Image file'),
|
|
749
|
+
label: (0, i18n_1._)('Image file'),
|
|
746
750
|
option: 'src',
|
|
747
751
|
editor: 'editor.image'
|
|
748
752
|
}], [{
|
|
749
|
-
label: i18n_1._('Preserve aspect ratio'),
|
|
753
|
+
label: (0, i18n_1._)('Preserve aspect ratio'),
|
|
750
754
|
option: 'preserveAspectRatio',
|
|
751
755
|
editor: 'editor.checkbox',
|
|
752
756
|
showEditor: function showEditor(_ref) {
|
|
@@ -767,7 +771,7 @@ var config = {
|
|
|
767
771
|
/**
|
|
768
772
|
* viz name
|
|
769
773
|
*/
|
|
770
|
-
name: i18n_1._('Image'),
|
|
774
|
+
name: (0, i18n_1._)('Image'),
|
|
771
775
|
category: VizCategory_1.VizCategory.MISC,
|
|
772
776
|
/**
|
|
773
777
|
* viz icon
|
|
@@ -786,11 +790,11 @@ var config = {
|
|
|
786
790
|
}
|
|
787
791
|
}
|
|
788
792
|
};
|
|
789
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
793
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
790
794
|
|
|
791
795
|
/***/ }),
|
|
792
796
|
|
|
793
|
-
/***/
|
|
797
|
+
/***/ 222:
|
|
794
798
|
/***/ (function(module, exports, __webpack_require__) {
|
|
795
799
|
|
|
796
800
|
"use strict";
|
|
@@ -802,7 +806,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
802
806
|
value: true
|
|
803
807
|
});
|
|
804
808
|
var lodash_1 = __webpack_require__(3);
|
|
805
|
-
var RemoteImage_1 = __webpack_require__(
|
|
809
|
+
var RemoteImage_1 = __webpack_require__(154);
|
|
806
810
|
/**
|
|
807
811
|
* Image Api
|
|
808
812
|
*/
|
|
@@ -824,11 +828,11 @@ var ImageApi = /*#__PURE__*/function () {
|
|
|
824
828
|
}, {
|
|
825
829
|
key: "snapshot",
|
|
826
830
|
value: function snapshot() {
|
|
827
|
-
var srcFromOptions = lodash_1.get(this.viz.options, 'src', '');
|
|
828
|
-
var isRemote = RemoteImage_1.isRemoteImage(srcFromOptions);
|
|
831
|
+
var srcFromOptions = (0, lodash_1.get)(this.viz.options, 'src', '');
|
|
832
|
+
var isRemote = (0, RemoteImage_1.isRemoteImage)(srcFromOptions);
|
|
829
833
|
return {
|
|
830
834
|
options: Object.assign(Object.assign({}, this.viz.options), {
|
|
831
|
-
src: isRemote && this.viz.remoteImage ? lodash_1.get(this.viz.remoteImage, ['current', 'state', 'imageDataURI'], '') : srcFromOptions
|
|
835
|
+
src: isRemote && this.viz.remoteImage ? (0, lodash_1.get)(this.viz.remoteImage, ['current', 'state', 'imageDataURI'], '') : srcFromOptions
|
|
832
836
|
})
|
|
833
837
|
};
|
|
834
838
|
}
|
|
@@ -842,28 +846,28 @@ exports.default = ImageApi;
|
|
|
842
846
|
/***/ 25:
|
|
843
847
|
/***/ (function(module, exports) {
|
|
844
848
|
|
|
845
|
-
module.exports = require("@splunk/
|
|
849
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
846
850
|
|
|
847
851
|
/***/ }),
|
|
848
852
|
|
|
849
853
|
/***/ 26:
|
|
850
854
|
/***/ (function(module, exports) {
|
|
851
855
|
|
|
852
|
-
module.exports = require("@splunk/
|
|
856
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
853
857
|
|
|
854
858
|
/***/ }),
|
|
855
859
|
|
|
856
860
|
/***/ 27:
|
|
857
861
|
/***/ (function(module, exports) {
|
|
858
862
|
|
|
859
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
863
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
860
864
|
|
|
861
865
|
/***/ }),
|
|
862
866
|
|
|
863
|
-
/***/
|
|
867
|
+
/***/ 28:
|
|
864
868
|
/***/ (function(module, exports) {
|
|
865
869
|
|
|
866
|
-
module.exports = require("@splunk/
|
|
870
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
867
871
|
|
|
868
872
|
/***/ }),
|
|
869
873
|
|
|
@@ -874,7 +878,14 @@ module.exports = require("lodash");
|
|
|
874
878
|
|
|
875
879
|
/***/ }),
|
|
876
880
|
|
|
877
|
-
/***/
|
|
881
|
+
/***/ 30:
|
|
882
|
+
/***/ (function(module, exports) {
|
|
883
|
+
|
|
884
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
885
|
+
|
|
886
|
+
/***/ }),
|
|
887
|
+
|
|
888
|
+
/***/ 32:
|
|
878
889
|
/***/ (function(module, exports, __webpack_require__) {
|
|
879
890
|
|
|
880
891
|
"use strict";
|
|
@@ -898,9 +909,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
|
|
|
898
909
|
*/
|
|
899
910
|
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
900
911
|
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
901
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
912
|
+
var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
|
|
902
913
|
var noData = data === undefined;
|
|
903
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
914
|
+
var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
|
|
904
915
|
var noFields = fields === undefined;
|
|
905
916
|
return loading || noData || noFields;
|
|
906
917
|
};
|
|
@@ -941,7 +952,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
|
|
|
941
952
|
width: width,
|
|
942
953
|
height: height,
|
|
943
954
|
level: "warning",
|
|
944
|
-
message: i18n_1._('No DataSource Connected')
|
|
955
|
+
message: (0, i18n_1._)('No DataSource Connected')
|
|
945
956
|
});
|
|
946
957
|
};
|
|
947
958
|
IconPlaceholder.propTypes = propTypes;
|
|
@@ -949,14 +960,7 @@ IconPlaceholder.defaultProps = {
|
|
|
949
960
|
width: '100%',
|
|
950
961
|
height: 250
|
|
951
962
|
};
|
|
952
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
953
|
-
|
|
954
|
-
/***/ }),
|
|
955
|
-
|
|
956
|
-
/***/ 32:
|
|
957
|
-
/***/ (function(module, exports) {
|
|
958
|
-
|
|
959
|
-
module.exports = require("@splunk/ui-utils/id");
|
|
963
|
+
exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
960
964
|
|
|
961
965
|
/***/ }),
|
|
962
966
|
|
|
@@ -991,7 +995,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
991
995
|
};
|
|
992
996
|
var onSort;
|
|
993
997
|
if (typeof onRequestParamsChange === 'function') {
|
|
994
|
-
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
998
|
+
if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
|
|
995
999
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
996
1000
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
997
1001
|
}
|
|
@@ -1000,7 +1004,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1000
1004
|
var sortKey = _ref2.sortKey,
|
|
1001
1005
|
sortDir = _ref2.sortDir;
|
|
1002
1006
|
if (typeof sortKey === 'string') {
|
|
1003
|
-
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
1007
|
+
var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
1004
1008
|
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
1005
1009
|
offset: 0,
|
|
1006
1010
|
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
@@ -1051,7 +1055,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1051
1055
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
1052
1056
|
var page = _ref2.page,
|
|
1053
1057
|
countArg = _ref2.count;
|
|
1054
|
-
var newParams = lodash_1.cloneDeep(requestParams);
|
|
1058
|
+
var newParams = (0, lodash_1.cloneDeep)(requestParams);
|
|
1055
1059
|
if (typeof countArg === 'number') {
|
|
1056
1060
|
newParams.count = countArg;
|
|
1057
1061
|
newParams.offset = 0;
|
|
@@ -1115,16 +1119,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1115
1119
|
var React = __webpack_require__(1);
|
|
1116
1120
|
var lodash_1 = __webpack_require__(3);
|
|
1117
1121
|
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
1118
|
-
var Options_1 = __webpack_require__(
|
|
1122
|
+
var Options_1 = __webpack_require__(30);
|
|
1119
1123
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
1120
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1124
|
+
var TimezoneContext_1 = __webpack_require__(26);
|
|
1121
1125
|
var moment_1 = __webpack_require__(39);
|
|
1122
1126
|
var FeatureFlagContext_1 = __webpack_require__(21);
|
|
1123
1127
|
var styled_components_1 = __webpack_require__(4);
|
|
1124
|
-
var hocUtils_1 = __webpack_require__(
|
|
1125
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1128
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
1129
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
1126
1130
|
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1127
|
-
var id_1 = __webpack_require__(
|
|
1131
|
+
var id_1 = __webpack_require__(25);
|
|
1128
1132
|
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1129
1133
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1130
1134
|
var getSorting_1 = __webpack_require__(33);
|
|
@@ -1145,8 +1149,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1145
1149
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
1146
1150
|
disableEditModeCover = opts.disableEditModeCover,
|
|
1147
1151
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
1148
|
-
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
1149
|
-
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
1152
|
+
var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
|
|
1153
|
+
var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
|
|
1150
1154
|
var DashboardViz = function DashboardViz(props) {
|
|
1151
1155
|
var _a;
|
|
1152
1156
|
var mode = props.mode,
|
|
@@ -1181,19 +1185,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1181
1185
|
return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
|
|
1182
1186
|
};
|
|
1183
1187
|
var bgColorFromTheme = themeFunc('defaultBackgroundColor');
|
|
1184
|
-
var
|
|
1188
|
+
var _ref = (0, getSettingsFromThemedProps_1.default)({
|
|
1185
1189
|
theme: theme
|
|
1186
1190
|
}),
|
|
1187
|
-
currentThemeFamily =
|
|
1188
|
-
currentThemeColorScheme =
|
|
1189
|
-
currentThemeDensity =
|
|
1191
|
+
currentThemeFamily = _ref.family,
|
|
1192
|
+
currentThemeColorScheme = _ref.colorScheme,
|
|
1193
|
+
currentThemeDensity = _ref.density;
|
|
1190
1194
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1191
1195
|
var _React$useState = React.useState({}),
|
|
1192
1196
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1193
1197
|
evaluatedOptionsAsync = _React$useState2[0],
|
|
1194
1198
|
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1195
1199
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1196
|
-
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
1200
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
|
|
1197
1201
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1198
1202
|
visualizationID = _React$useState4[0];
|
|
1199
1203
|
var _React$useState5 = React.useState({}),
|
|
@@ -1204,16 +1208,17 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1204
1208
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
1205
1209
|
dataFramesInState = _React$useState8[0],
|
|
1206
1210
|
setDataFramesInState = _React$useState8[1];
|
|
1207
|
-
var _React$useState9 = React.useState(Boolean(featureFlagContext
|
|
1211
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
|
|
1208
1212
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
1209
1213
|
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
1210
1214
|
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
1211
|
-
|
|
1215
|
+
var isMounted = React.useRef(true);
|
|
1216
|
+
evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
|
|
1212
1217
|
try {
|
|
1213
1218
|
if (useAsyncEvaluatedOptions) {
|
|
1214
1219
|
var optionsToEvaluate = {
|
|
1215
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1216
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1220
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
1221
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
1217
1222
|
};
|
|
1218
1223
|
var asyncDynamicOptionsEvaluatorParams = {
|
|
1219
1224
|
visualizationID: visualizationID,
|
|
@@ -1224,10 +1229,10 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1224
1229
|
};
|
|
1225
1230
|
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1226
1231
|
setEvaluatedOptionsAsync(results.results);
|
|
1227
|
-
}).catch(function (
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1232
|
+
}).catch(function () {
|
|
1233
|
+
if (isMounted.current) {
|
|
1234
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1235
|
+
}
|
|
1231
1236
|
});
|
|
1232
1237
|
} else {
|
|
1233
1238
|
var dataFrames = dataFramesInState;
|
|
@@ -1237,8 +1242,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1237
1242
|
setDataFramesInState(dataFrames);
|
|
1238
1243
|
}
|
|
1239
1244
|
return Options_1.Options.evaluate({
|
|
1240
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1241
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1245
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
1246
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
1242
1247
|
}, dataSources, themeFunc, dataFrames);
|
|
1243
1248
|
}
|
|
1244
1249
|
} catch (e) {
|
|
@@ -1267,6 +1272,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1267
1272
|
React.useEffect(function () {
|
|
1268
1273
|
return function () {
|
|
1269
1274
|
if (useAsyncEvaluatedOptions) {
|
|
1275
|
+
isMounted.current = false;
|
|
1270
1276
|
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1271
1277
|
}
|
|
1272
1278
|
};
|
|
@@ -1276,7 +1282,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1276
1282
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1277
1283
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1278
1284
|
supports = vizConfig.supports;
|
|
1279
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1285
|
+
var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
|
|
1280
1286
|
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
|
|
1281
1287
|
) {
|
|
1282
1288
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1292,7 +1298,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1292
1298
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
1293
1299
|
var supportedEvents = vizConfig.events;
|
|
1294
1300
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
1295
|
-
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
1301
|
+
var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
|
|
1296
1302
|
eventCallbackProps[eventCallbackPropName] = null;
|
|
1297
1303
|
// todo: refactor single value and single value icon to send payload from viz
|
|
1298
1304
|
// then remove these lines
|
|
@@ -1335,19 +1341,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1335
1341
|
*/
|
|
1336
1342
|
var dataSourceMetadata = {};
|
|
1337
1343
|
var OptionKey = 'paginateDataSourceKey';
|
|
1338
|
-
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1339
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1340
|
-
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
1341
|
-
var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
1344
|
+
var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1345
|
+
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
|
|
1346
|
+
var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
1347
|
+
var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
1342
1348
|
var handleRequestParamsChange = function handleRequestParamsChange(payload) {
|
|
1343
1349
|
return onRequestParamsChange(paginateDataSourceKey, payload);
|
|
1344
1350
|
};
|
|
1345
|
-
var sortParams = getSorting_1.getSortingParams({
|
|
1351
|
+
var sortParams = (0, getSorting_1.getSortingParams)({
|
|
1346
1352
|
requestParams: requestParams,
|
|
1347
1353
|
meta: meta,
|
|
1348
1354
|
onRequestParamsChange: handleRequestParamsChange
|
|
1349
1355
|
});
|
|
1350
|
-
var paginatorParams = getPagination_1.getPaginationParams({
|
|
1356
|
+
var paginatorParams = (0, getPagination_1.getPaginationParams)({
|
|
1351
1357
|
requestParams: requestParams,
|
|
1352
1358
|
meta: meta,
|
|
1353
1359
|
onRequestParamsChange: handleRequestParamsChange
|
|
@@ -1375,7 +1381,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1375
1381
|
// attach viz config
|
|
1376
1382
|
DashboardViz.config = vizConfig;
|
|
1377
1383
|
// @ts-ignore: TODO fix sc upgrade TS issues
|
|
1378
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1384
|
+
return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1379
1385
|
};
|
|
1380
1386
|
exports.default = withDashboardViz;
|
|
1381
1387
|
|
|
@@ -1619,8 +1625,8 @@ var lodash_1 = __webpack_require__(3);
|
|
|
1619
1625
|
* @param dependencies an array of dependencies
|
|
1620
1626
|
*/
|
|
1621
1627
|
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
1622
|
-
var ref = react_1.useRef();
|
|
1623
|
-
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
1628
|
+
var ref = (0, react_1.useRef)();
|
|
1629
|
+
if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
|
|
1624
1630
|
ref.current = {
|
|
1625
1631
|
dependencies: dependencies,
|
|
1626
1632
|
value: fn()
|
|
@@ -1664,7 +1670,7 @@ exports.isMissing = isMissing;
|
|
|
1664
1670
|
*/
|
|
1665
1671
|
var missingKeys = function missingKeys(keys, target) {
|
|
1666
1672
|
return keys.filter(function (k) {
|
|
1667
|
-
return exports.isMissing(target[k]);
|
|
1673
|
+
return (0, exports.isMissing)(target[k]);
|
|
1668
1674
|
});
|
|
1669
1675
|
};
|
|
1670
1676
|
exports.missingKeys = missingKeys;
|
|
@@ -1688,7 +1694,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
|
1688
1694
|
"data-test": "message",
|
|
1689
1695
|
width: width,
|
|
1690
1696
|
height: height,
|
|
1691
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
1697
|
+
message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
|
|
1692
1698
|
});
|
|
1693
1699
|
};
|
|
1694
1700
|
exports.MissingPropsMessage = MissingPropsMessage;
|
|
@@ -1697,7 +1703,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1697
1703
|
width: '100%',
|
|
1698
1704
|
height: 250
|
|
1699
1705
|
};
|
|
1700
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1706
|
+
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
1701
1707
|
|
|
1702
1708
|
/***/ }),
|
|
1703
1709
|
|
|
@@ -1718,7 +1724,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1718
1724
|
componentId: "sc-1gsbnxb-0"
|
|
1719
1725
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1720
1726
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1721
|
-
'data-splunk-visualization-version': "
|
|
1727
|
+
'data-splunk-visualization-version': "26.0.0 - 2f7458907"
|
|
1722
1728
|
}).withConfig({
|
|
1723
1729
|
displayName: "withEditModeCover__Blocker",
|
|
1724
1730
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1737,7 +1743,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1737
1743
|
"data-test": "edit-mode-cover"
|
|
1738
1744
|
}));
|
|
1739
1745
|
};
|
|
1740
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1746
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
1741
1747
|
Wrapper: Wrapper,
|
|
1742
1748
|
Visualization: Visualization
|
|
1743
1749
|
});
|
|
@@ -1759,7 +1765,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1759
1765
|
var React = __webpack_require__(1);
|
|
1760
1766
|
var colorUtils_1 = __webpack_require__(12);
|
|
1761
1767
|
var variables_1 = __webpack_require__(11);
|
|
1762
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1768
|
+
var IconPlaceholder_1 = __webpack_require__(32);
|
|
1763
1769
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1764
1770
|
var hocUtils_1 = __webpack_require__(15);
|
|
1765
1771
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
@@ -1774,7 +1780,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1774
1780
|
height = props.height,
|
|
1775
1781
|
width = props.width;
|
|
1776
1782
|
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1777
|
-
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
1783
|
+
var bgColorFromTheme = (0, colorUtils_1.isColor)(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
1778
1784
|
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1779
1785
|
var iconColor = variables_1.default.contentColorActive(props);
|
|
1780
1786
|
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
@@ -1789,7 +1795,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1789
1795
|
}
|
|
1790
1796
|
return React.createElement(Visualization, Object.assign({}, props));
|
|
1791
1797
|
};
|
|
1792
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1798
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
1793
1799
|
Wrapper: Wrapper,
|
|
1794
1800
|
Visualization: Visualization
|
|
1795
1801
|
});
|