@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/Scatter.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 = 464);
|
|
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
|
|
@@ -258,7 +258,7 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
258
258
|
|
|
259
259
|
/***/ }),
|
|
260
260
|
|
|
261
|
-
/***/
|
|
261
|
+
/***/ 167:
|
|
262
262
|
/***/ (function(module, exports, __webpack_require__) {
|
|
263
263
|
|
|
264
264
|
"use strict";
|
|
@@ -281,14 +281,14 @@ exports.config = exports.themes = exports.computeVizProps = void 0;
|
|
|
281
281
|
var lodash_1 = __webpack_require__(3);
|
|
282
282
|
// Charting imports i18n which needs to be run to instantiate window globals in the tests
|
|
283
283
|
// eslint-disable-next-line import/order
|
|
284
|
-
var Charting_1 = __webpack_require__(
|
|
285
|
-
var charting_bundle_1 = __webpack_require__(
|
|
286
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
287
|
-
var config_1 = __webpack_require__(
|
|
284
|
+
var Charting_1 = __webpack_require__(65);
|
|
285
|
+
var charting_bundle_1 = __webpack_require__(55);
|
|
286
|
+
var simpleXMLOptions_1 = __webpack_require__(70);
|
|
287
|
+
var config_1 = __webpack_require__(465);
|
|
288
288
|
exports.config = config_1.default;
|
|
289
289
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
290
|
-
var scatterUtils_1 = __webpack_require__(
|
|
291
|
-
var chartingUtils_1 = __webpack_require__(
|
|
290
|
+
var scatterUtils_1 = __webpack_require__(466);
|
|
291
|
+
var chartingUtils_1 = __webpack_require__(56);
|
|
292
292
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
293
293
|
var computeVizProps = function computeVizProps(_a) {
|
|
294
294
|
var dataSources = _a.dataSources,
|
|
@@ -307,8 +307,8 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
307
307
|
visualizationApiRef: visualizationApiRef
|
|
308
308
|
};
|
|
309
309
|
var hasEventHandlers = otherOptions.hasEventHandlers;
|
|
310
|
-
computedProps.options = lodash_1.chain(otherOptions).pick(validOptions).thru(scatterUtils_1.convertToScatterSCProperties).thru(function (options) {
|
|
311
|
-
return Object.assign(Object.assign({}, simpleXMLOptions_1.getSimpleXMLOptionsForProps(options)), {
|
|
310
|
+
computedProps.options = (0, lodash_1.chain)(otherOptions).pick(validOptions).thru(scatterUtils_1.convertToScatterSCProperties).thru(function (options) {
|
|
311
|
+
return Object.assign(Object.assign({}, (0, simpleXMLOptions_1.getSimpleXMLOptionsForProps)(options)), {
|
|
312
312
|
chart: 'scatter'
|
|
313
313
|
});
|
|
314
314
|
}).value();
|
|
@@ -329,7 +329,7 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
329
329
|
primaryData.fields = fields;
|
|
330
330
|
var truncationLimit = computedProps.options['chart.resultTruncationLimit'];
|
|
331
331
|
if (truncationLimit) {
|
|
332
|
-
primaryData = chartingUtils_1.truncateData(primaryData, truncationLimit);
|
|
332
|
+
primaryData = (0, chartingUtils_1.truncateData)(primaryData, truncationLimit);
|
|
333
333
|
}
|
|
334
334
|
computedProps.chartData = charting_bundle_1.default.extractChartReadyData(Object.assign({}, primaryData));
|
|
335
335
|
if (hasEventHandlers) {
|
|
@@ -344,7 +344,7 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
344
344
|
return computedProps;
|
|
345
345
|
};
|
|
346
346
|
exports.computeVizProps = computeVizProps;
|
|
347
|
-
var Column = withDashboardViz_1.default({
|
|
347
|
+
var Column = (0, withDashboardViz_1.default)({
|
|
348
348
|
ReactViz: Charting_1.default,
|
|
349
349
|
computeVizProps: exports.computeVizProps,
|
|
350
350
|
vizConfig: config_1.default
|
|
@@ -543,8 +543,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
|
543
543
|
*/
|
|
544
544
|
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
545
545
|
return presets.find(function (preset) {
|
|
546
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
547
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
546
|
+
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
547
|
+
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
548
548
|
var presetContextKeys = Object.keys(presetContext);
|
|
549
549
|
var presetOptionKeys = Object.keys(presetOptions);
|
|
550
550
|
// all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
@@ -561,7 +561,7 @@ exports.getInitialPreset = getInitialPreset;
|
|
|
561
561
|
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
562
562
|
*/
|
|
563
563
|
function generatePrecisionValues(numPrecisionValues) {
|
|
564
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
564
|
+
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
565
565
|
return {
|
|
566
566
|
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
567
567
|
value: i
|
|
@@ -604,35 +604,35 @@ module.exports = require("@splunk/themes/pick");
|
|
|
604
604
|
/***/ 25:
|
|
605
605
|
/***/ (function(module, exports) {
|
|
606
606
|
|
|
607
|
-
module.exports = require("@splunk/
|
|
607
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
608
608
|
|
|
609
609
|
/***/ }),
|
|
610
610
|
|
|
611
611
|
/***/ 26:
|
|
612
612
|
/***/ (function(module, exports) {
|
|
613
613
|
|
|
614
|
-
module.exports = require("@splunk/
|
|
614
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
615
615
|
|
|
616
616
|
/***/ }),
|
|
617
617
|
|
|
618
618
|
/***/ 27:
|
|
619
619
|
/***/ (function(module, exports) {
|
|
620
620
|
|
|
621
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
621
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
622
622
|
|
|
623
623
|
/***/ }),
|
|
624
624
|
|
|
625
625
|
/***/ 28:
|
|
626
626
|
/***/ (function(module, exports) {
|
|
627
627
|
|
|
628
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
628
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
629
629
|
|
|
630
630
|
/***/ }),
|
|
631
631
|
|
|
632
632
|
/***/ 29:
|
|
633
633
|
/***/ (function(module, exports) {
|
|
634
634
|
|
|
635
|
-
module.exports = require("@splunk/
|
|
635
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
636
636
|
|
|
637
637
|
/***/ }),
|
|
638
638
|
|
|
@@ -643,7 +643,14 @@ module.exports = require("lodash");
|
|
|
643
643
|
|
|
644
644
|
/***/ }),
|
|
645
645
|
|
|
646
|
-
/***/
|
|
646
|
+
/***/ 30:
|
|
647
|
+
/***/ (function(module, exports) {
|
|
648
|
+
|
|
649
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
650
|
+
|
|
651
|
+
/***/ }),
|
|
652
|
+
|
|
653
|
+
/***/ 32:
|
|
647
654
|
/***/ (function(module, exports, __webpack_require__) {
|
|
648
655
|
|
|
649
656
|
"use strict";
|
|
@@ -667,9 +674,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
|
|
|
667
674
|
*/
|
|
668
675
|
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
669
676
|
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
670
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
677
|
+
var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
|
|
671
678
|
var noData = data === undefined;
|
|
672
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
679
|
+
var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
|
|
673
680
|
var noFields = fields === undefined;
|
|
674
681
|
return loading || noData || noFields;
|
|
675
682
|
};
|
|
@@ -710,7 +717,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
|
|
|
710
717
|
width: width,
|
|
711
718
|
height: height,
|
|
712
719
|
level: "warning",
|
|
713
|
-
message: i18n_1._('No DataSource Connected')
|
|
720
|
+
message: (0, i18n_1._)('No DataSource Connected')
|
|
714
721
|
});
|
|
715
722
|
};
|
|
716
723
|
IconPlaceholder.propTypes = propTypes;
|
|
@@ -718,14 +725,7 @@ IconPlaceholder.defaultProps = {
|
|
|
718
725
|
width: '100%',
|
|
719
726
|
height: 250
|
|
720
727
|
};
|
|
721
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
722
|
-
|
|
723
|
-
/***/ }),
|
|
724
|
-
|
|
725
|
-
/***/ 32:
|
|
726
|
-
/***/ (function(module, exports) {
|
|
727
|
-
|
|
728
|
-
module.exports = require("@splunk/ui-utils/id");
|
|
728
|
+
exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
729
729
|
|
|
730
730
|
/***/ }),
|
|
731
731
|
|
|
@@ -760,7 +760,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
760
760
|
};
|
|
761
761
|
var onSort;
|
|
762
762
|
if (typeof onRequestParamsChange === 'function') {
|
|
763
|
-
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
763
|
+
if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
|
|
764
764
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
765
765
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
766
766
|
}
|
|
@@ -769,7 +769,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
769
769
|
var sortKey = _ref2.sortKey,
|
|
770
770
|
sortDir = _ref2.sortDir;
|
|
771
771
|
if (typeof sortKey === 'string') {
|
|
772
|
-
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
772
|
+
var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
773
773
|
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
774
774
|
offset: 0,
|
|
775
775
|
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
@@ -820,7 +820,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
820
820
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
821
821
|
var page = _ref2.page,
|
|
822
822
|
countArg = _ref2.count;
|
|
823
|
-
var newParams = lodash_1.cloneDeep(requestParams);
|
|
823
|
+
var newParams = (0, lodash_1.cloneDeep)(requestParams);
|
|
824
824
|
if (typeof countArg === 'number') {
|
|
825
825
|
newParams.count = countArg;
|
|
826
826
|
newParams.offset = 0;
|
|
@@ -884,16 +884,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
884
884
|
var React = __webpack_require__(1);
|
|
885
885
|
var lodash_1 = __webpack_require__(3);
|
|
886
886
|
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
887
|
-
var Options_1 = __webpack_require__(
|
|
887
|
+
var Options_1 = __webpack_require__(30);
|
|
888
888
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
889
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
889
|
+
var TimezoneContext_1 = __webpack_require__(26);
|
|
890
890
|
var moment_1 = __webpack_require__(39);
|
|
891
891
|
var FeatureFlagContext_1 = __webpack_require__(21);
|
|
892
892
|
var styled_components_1 = __webpack_require__(4);
|
|
893
|
-
var hocUtils_1 = __webpack_require__(
|
|
894
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
893
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
894
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
895
895
|
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
896
|
-
var id_1 = __webpack_require__(
|
|
896
|
+
var id_1 = __webpack_require__(25);
|
|
897
897
|
var SplunkVisualization_1 = __webpack_require__(41);
|
|
898
898
|
var VizBehavior_1 = __webpack_require__(6);
|
|
899
899
|
var getSorting_1 = __webpack_require__(33);
|
|
@@ -914,8 +914,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
914
914
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
915
915
|
disableEditModeCover = opts.disableEditModeCover,
|
|
916
916
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
917
|
-
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
918
|
-
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
917
|
+
var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
|
|
918
|
+
var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
|
|
919
919
|
var DashboardViz = function DashboardViz(props) {
|
|
920
920
|
var _a;
|
|
921
921
|
var mode = props.mode,
|
|
@@ -950,19 +950,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
950
950
|
return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
|
|
951
951
|
};
|
|
952
952
|
var bgColorFromTheme = themeFunc('defaultBackgroundColor');
|
|
953
|
-
var
|
|
953
|
+
var _ref = (0, getSettingsFromThemedProps_1.default)({
|
|
954
954
|
theme: theme
|
|
955
955
|
}),
|
|
956
|
-
currentThemeFamily =
|
|
957
|
-
currentThemeColorScheme =
|
|
958
|
-
currentThemeDensity =
|
|
956
|
+
currentThemeFamily = _ref.family,
|
|
957
|
+
currentThemeColorScheme = _ref.colorScheme,
|
|
958
|
+
currentThemeDensity = _ref.density;
|
|
959
959
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
960
960
|
var _React$useState = React.useState({}),
|
|
961
961
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
962
962
|
evaluatedOptionsAsync = _React$useState2[0],
|
|
963
963
|
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
964
964
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
965
|
-
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
965
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
|
|
966
966
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
967
967
|
visualizationID = _React$useState4[0];
|
|
968
968
|
var _React$useState5 = React.useState({}),
|
|
@@ -973,16 +973,17 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
973
973
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
974
974
|
dataFramesInState = _React$useState8[0],
|
|
975
975
|
setDataFramesInState = _React$useState8[1];
|
|
976
|
-
var _React$useState9 = React.useState(Boolean(featureFlagContext
|
|
976
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
|
|
977
977
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
978
978
|
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
979
979
|
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
980
|
-
|
|
980
|
+
var isMounted = React.useRef(true);
|
|
981
|
+
evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
|
|
981
982
|
try {
|
|
982
983
|
if (useAsyncEvaluatedOptions) {
|
|
983
984
|
var optionsToEvaluate = {
|
|
984
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
985
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
985
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
986
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
986
987
|
};
|
|
987
988
|
var asyncDynamicOptionsEvaluatorParams = {
|
|
988
989
|
visualizationID: visualizationID,
|
|
@@ -993,10 +994,10 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
993
994
|
};
|
|
994
995
|
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
995
996
|
setEvaluatedOptionsAsync(results.results);
|
|
996
|
-
}).catch(function (
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
}).catch(function () {
|
|
998
|
+
if (isMounted.current) {
|
|
999
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1000
|
+
}
|
|
1000
1001
|
});
|
|
1001
1002
|
} else {
|
|
1002
1003
|
var dataFrames = dataFramesInState;
|
|
@@ -1006,8 +1007,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1006
1007
|
setDataFramesInState(dataFrames);
|
|
1007
1008
|
}
|
|
1008
1009
|
return Options_1.Options.evaluate({
|
|
1009
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1010
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1010
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
1011
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
1011
1012
|
}, dataSources, themeFunc, dataFrames);
|
|
1012
1013
|
}
|
|
1013
1014
|
} catch (e) {
|
|
@@ -1036,6 +1037,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1036
1037
|
React.useEffect(function () {
|
|
1037
1038
|
return function () {
|
|
1038
1039
|
if (useAsyncEvaluatedOptions) {
|
|
1040
|
+
isMounted.current = false;
|
|
1039
1041
|
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1040
1042
|
}
|
|
1041
1043
|
};
|
|
@@ -1045,7 +1047,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1045
1047
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1046
1048
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1047
1049
|
supports = vizConfig.supports;
|
|
1048
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1050
|
+
var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
|
|
1049
1051
|
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
|
|
1050
1052
|
) {
|
|
1051
1053
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1061,7 +1063,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1061
1063
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
1062
1064
|
var supportedEvents = vizConfig.events;
|
|
1063
1065
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
1064
|
-
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
1066
|
+
var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
|
|
1065
1067
|
eventCallbackProps[eventCallbackPropName] = null;
|
|
1066
1068
|
// todo: refactor single value and single value icon to send payload from viz
|
|
1067
1069
|
// then remove these lines
|
|
@@ -1104,19 +1106,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1104
1106
|
*/
|
|
1105
1107
|
var dataSourceMetadata = {};
|
|
1106
1108
|
var OptionKey = 'paginateDataSourceKey';
|
|
1107
|
-
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1108
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1109
|
-
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
1110
|
-
var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
1109
|
+
var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1110
|
+
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
|
|
1111
|
+
var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
1112
|
+
var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
1111
1113
|
var handleRequestParamsChange = function handleRequestParamsChange(payload) {
|
|
1112
1114
|
return onRequestParamsChange(paginateDataSourceKey, payload);
|
|
1113
1115
|
};
|
|
1114
|
-
var sortParams = getSorting_1.getSortingParams({
|
|
1116
|
+
var sortParams = (0, getSorting_1.getSortingParams)({
|
|
1115
1117
|
requestParams: requestParams,
|
|
1116
1118
|
meta: meta,
|
|
1117
1119
|
onRequestParamsChange: handleRequestParamsChange
|
|
1118
1120
|
});
|
|
1119
|
-
var paginatorParams = getPagination_1.getPaginationParams({
|
|
1121
|
+
var paginatorParams = (0, getPagination_1.getPaginationParams)({
|
|
1120
1122
|
requestParams: requestParams,
|
|
1121
1123
|
meta: meta,
|
|
1122
1124
|
onRequestParamsChange: handleRequestParamsChange
|
|
@@ -1144,7 +1146,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1144
1146
|
// attach viz config
|
|
1145
1147
|
DashboardViz.config = vizConfig;
|
|
1146
1148
|
// @ts-ignore: TODO fix sc upgrade TS issues
|
|
1147
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1149
|
+
return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1148
1150
|
};
|
|
1149
1151
|
exports.default = withDashboardViz;
|
|
1150
1152
|
|
|
@@ -1388,8 +1390,8 @@ var lodash_1 = __webpack_require__(3);
|
|
|
1388
1390
|
* @param dependencies an array of dependencies
|
|
1389
1391
|
*/
|
|
1390
1392
|
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
1391
|
-
var ref = react_1.useRef();
|
|
1392
|
-
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
1393
|
+
var ref = (0, react_1.useRef)();
|
|
1394
|
+
if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
|
|
1393
1395
|
ref.current = {
|
|
1394
1396
|
dependencies: dependencies,
|
|
1395
1397
|
value: fn()
|
|
@@ -1433,7 +1435,7 @@ exports.isMissing = isMissing;
|
|
|
1433
1435
|
*/
|
|
1434
1436
|
var missingKeys = function missingKeys(keys, target) {
|
|
1435
1437
|
return keys.filter(function (k) {
|
|
1436
|
-
return exports.isMissing(target[k]);
|
|
1438
|
+
return (0, exports.isMissing)(target[k]);
|
|
1437
1439
|
});
|
|
1438
1440
|
};
|
|
1439
1441
|
exports.missingKeys = missingKeys;
|
|
@@ -1457,7 +1459,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
|
1457
1459
|
"data-test": "message",
|
|
1458
1460
|
width: width,
|
|
1459
1461
|
height: height,
|
|
1460
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
1462
|
+
message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
|
|
1461
1463
|
});
|
|
1462
1464
|
};
|
|
1463
1465
|
exports.MissingPropsMessage = MissingPropsMessage;
|
|
@@ -1466,7 +1468,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1466
1468
|
width: '100%',
|
|
1467
1469
|
height: 250
|
|
1468
1470
|
};
|
|
1469
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1471
|
+
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
1470
1472
|
|
|
1471
1473
|
/***/ }),
|
|
1472
1474
|
|
|
@@ -1487,7 +1489,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1487
1489
|
componentId: "sc-1gsbnxb-0"
|
|
1488
1490
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1489
1491
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1490
|
-
'data-splunk-visualization-version': "
|
|
1492
|
+
'data-splunk-visualization-version': "26.0.0 - 2f7458907"
|
|
1491
1493
|
}).withConfig({
|
|
1492
1494
|
displayName: "withEditModeCover__Blocker",
|
|
1493
1495
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1506,7 +1508,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1506
1508
|
"data-test": "edit-mode-cover"
|
|
1507
1509
|
}));
|
|
1508
1510
|
};
|
|
1509
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1511
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
1510
1512
|
Wrapper: Wrapper,
|
|
1511
1513
|
Visualization: Visualization
|
|
1512
1514
|
});
|
|
@@ -1516,7 +1518,7 @@ exports.default = withEditModeCover;
|
|
|
1516
1518
|
|
|
1517
1519
|
/***/ }),
|
|
1518
1520
|
|
|
1519
|
-
/***/
|
|
1521
|
+
/***/ 464:
|
|
1520
1522
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1521
1523
|
|
|
1522
1524
|
"use strict";
|
|
@@ -1524,12 +1526,16 @@ exports.default = withEditModeCover;
|
|
|
1524
1526
|
|
|
1525
1527
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1526
1528
|
if (k2 === undefined) k2 = k;
|
|
1527
|
-
Object.
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1529
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1530
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1531
|
+
desc = {
|
|
1532
|
+
enumerable: true,
|
|
1533
|
+
get: function get() {
|
|
1534
|
+
return m[k];
|
|
1535
|
+
}
|
|
1536
|
+
};
|
|
1537
|
+
}
|
|
1538
|
+
Object.defineProperty(o, k2, desc);
|
|
1533
1539
|
} : function (o, m, k, k2) {
|
|
1534
1540
|
if (k2 === undefined) k2 = k;
|
|
1535
1541
|
o[k2] = m[k];
|
|
@@ -1543,8 +1549,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1543
1549
|
value: true
|
|
1544
1550
|
});
|
|
1545
1551
|
exports.default = void 0;
|
|
1546
|
-
__exportStar(__webpack_require__(
|
|
1547
|
-
var Scatter_1 = __webpack_require__(
|
|
1552
|
+
__exportStar(__webpack_require__(167), exports);
|
|
1553
|
+
var Scatter_1 = __webpack_require__(167);
|
|
1548
1554
|
Object.defineProperty(exports, "default", {
|
|
1549
1555
|
enumerable: true,
|
|
1550
1556
|
get: function get() {
|
|
@@ -1554,7 +1560,7 @@ Object.defineProperty(exports, "default", {
|
|
|
1554
1560
|
|
|
1555
1561
|
/***/ }),
|
|
1556
1562
|
|
|
1557
|
-
/***/
|
|
1563
|
+
/***/ 465:
|
|
1558
1564
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1559
1565
|
|
|
1560
1566
|
"use strict";
|
|
@@ -1566,7 +1572,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1566
1572
|
});
|
|
1567
1573
|
exports.optionsSchema = void 0;
|
|
1568
1574
|
var visualization_icons_1 = __webpack_require__(52);
|
|
1569
|
-
var placeholders_1 = __webpack_require__(
|
|
1575
|
+
var placeholders_1 = __webpack_require__(50);
|
|
1570
1576
|
var pick_1 = __webpack_require__(23);
|
|
1571
1577
|
var variables_1 = __webpack_require__(11);
|
|
1572
1578
|
var schemaUtils_1 = __webpack_require__(16);
|
|
@@ -1575,11 +1581,11 @@ var i18n_1 = __webpack_require__(2);
|
|
|
1575
1581
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1576
1582
|
var VizCategory_1 = __webpack_require__(35);
|
|
1577
1583
|
var configUtils_1 = __webpack_require__(20);
|
|
1578
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
1579
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
1580
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
1581
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
1582
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
1584
|
+
var AxesChartDataConfig_1 = __webpack_require__(74);
|
|
1585
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(77);
|
|
1586
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(75);
|
|
1587
|
+
var AxesChartLegend_1 = __webpack_require__(76);
|
|
1588
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(78);
|
|
1583
1589
|
var dataContract = {
|
|
1584
1590
|
requiredDataSources: [{
|
|
1585
1591
|
name: 'primary',
|
|
@@ -1657,13 +1663,13 @@ exports.optionsSchema = {
|
|
|
1657
1663
|
legendDisplay: {
|
|
1658
1664
|
default: 'right',
|
|
1659
1665
|
description: 'Specify the location of the legend on the panel.',
|
|
1660
|
-
pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
|
|
1666
|
+
pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
|
|
1661
1667
|
type: 'string'
|
|
1662
1668
|
},
|
|
1663
1669
|
legendTruncation: {
|
|
1664
1670
|
default: 'ellipsisEnd',
|
|
1665
1671
|
description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
|
|
1666
|
-
pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1672
|
+
pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
1667
1673
|
type: 'string'
|
|
1668
1674
|
},
|
|
1669
1675
|
markerSize: {
|
|
@@ -1744,40 +1750,40 @@ exports.optionsSchema = {
|
|
|
1744
1750
|
default: 'off',
|
|
1745
1751
|
description: 'Specify whether to abbreviate large x-axis values with the closest SI prefix.',
|
|
1746
1752
|
enum: ['off', 'auto'],
|
|
1747
|
-
pattern: schemaUtils_1.getPattern(['auto', 'off']),
|
|
1753
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
|
|
1748
1754
|
type: 'string'
|
|
1749
1755
|
},
|
|
1750
1756
|
yAxisAbbreviation: {
|
|
1751
1757
|
default: 'auto',
|
|
1752
1758
|
description: 'Specify whether to abbreviate large y-axis values with the closest SI prefix.',
|
|
1753
1759
|
enum: ['off', 'auto'],
|
|
1754
|
-
pattern: schemaUtils_1.getPattern(['auto', 'off']),
|
|
1760
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'off']),
|
|
1755
1761
|
type: 'string'
|
|
1756
1762
|
},
|
|
1757
1763
|
xAxisLabelVisibility: {
|
|
1758
1764
|
default: 'auto',
|
|
1759
1765
|
description: 'Specify whether to show or hide labels on the x-axis.',
|
|
1760
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1766
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1761
1767
|
type: 'string'
|
|
1762
1768
|
},
|
|
1763
1769
|
yAxisLabelVisibility: {
|
|
1764
1770
|
default: 'auto',
|
|
1765
1771
|
description: 'Specify whether to show or hide labels on the y-axis.',
|
|
1766
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1772
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1767
1773
|
type: 'string'
|
|
1768
1774
|
},
|
|
1769
1775
|
xAxisLineVisibility: {
|
|
1770
1776
|
default: 'hide',
|
|
1771
1777
|
description: 'Specify whether to show or hide the x-axis line.',
|
|
1772
1778
|
enum: ['hide', 'show'],
|
|
1773
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1779
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1774
1780
|
type: 'string'
|
|
1775
1781
|
},
|
|
1776
1782
|
yAxisLineVisibility: {
|
|
1777
1783
|
default: 'hide',
|
|
1778
1784
|
description: 'Specify whether to show or hide the y-axis line.',
|
|
1779
1785
|
enum: ['hide', 'show'],
|
|
1780
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1786
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1781
1787
|
type: 'string'
|
|
1782
1788
|
},
|
|
1783
1789
|
xAxisMajorTickInterval: {
|
|
@@ -1813,25 +1819,25 @@ exports.optionsSchema = {
|
|
|
1813
1819
|
xAxisMajorTickVisibility: {
|
|
1814
1820
|
default: 'auto',
|
|
1815
1821
|
description: 'Specify whether to show or hide major tick marks on the x-axis.',
|
|
1816
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1822
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1817
1823
|
type: 'string'
|
|
1818
1824
|
},
|
|
1819
1825
|
yAxisMajorTickVisibility: {
|
|
1820
1826
|
default: 'auto',
|
|
1821
1827
|
description: 'Specify whether to show or hide major tick marks on the y-axis.',
|
|
1822
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1828
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1823
1829
|
type: 'string'
|
|
1824
1830
|
},
|
|
1825
1831
|
xAxisMinorTickVisibility: {
|
|
1826
1832
|
default: 'auto',
|
|
1827
1833
|
description: 'Specify whether to show or hide minor tick marks on the x-axis .',
|
|
1828
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1834
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1829
1835
|
type: 'string'
|
|
1830
1836
|
},
|
|
1831
1837
|
yAxisMinorTickVisibility: {
|
|
1832
1838
|
default: 'auto',
|
|
1833
1839
|
description: 'Specify whether to show or hide minor tick marks on the y-axis.',
|
|
1834
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
1840
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
1835
1841
|
type: 'string'
|
|
1836
1842
|
},
|
|
1837
1843
|
xAxisMax: {
|
|
@@ -1857,13 +1863,13 @@ exports.optionsSchema = {
|
|
|
1857
1863
|
xAxisScale: {
|
|
1858
1864
|
default: 'linear',
|
|
1859
1865
|
description: 'Specify the type of scale that applies to a numerical x-axis.',
|
|
1860
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
1866
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1861
1867
|
type: 'string'
|
|
1862
1868
|
},
|
|
1863
1869
|
yAxisScale: {
|
|
1864
1870
|
default: 'linear',
|
|
1865
1871
|
description: 'Specify the type of scale that applies to a numerical y-axis.',
|
|
1866
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
1872
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
1867
1873
|
type: 'string'
|
|
1868
1874
|
},
|
|
1869
1875
|
xAxisTitleText: {
|
|
@@ -1878,20 +1884,20 @@ exports.optionsSchema = {
|
|
|
1878
1884
|
default: 'show',
|
|
1879
1885
|
description: 'Specify whether to show or hide the title of the x-axis.',
|
|
1880
1886
|
enum: ['hide', 'show'],
|
|
1881
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1887
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1882
1888
|
type: 'string'
|
|
1883
1889
|
},
|
|
1884
1890
|
yAxisTitleVisibility: {
|
|
1885
1891
|
default: 'show',
|
|
1886
1892
|
description: 'Specify whether to show or hide the title of the y-axis.',
|
|
1887
1893
|
enum: ['hide', 'show'],
|
|
1888
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
1894
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
1889
1895
|
type: 'string'
|
|
1890
1896
|
}
|
|
1891
1897
|
};
|
|
1892
1898
|
var themes = {
|
|
1893
1899
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
1894
|
-
return pick_1.default({
|
|
1900
|
+
return (0, pick_1.default)({
|
|
1895
1901
|
enterprise: {
|
|
1896
1902
|
dark: variables_1.default.black(props),
|
|
1897
1903
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -1903,14 +1909,14 @@ var themes = {
|
|
|
1903
1909
|
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigScatter, {
|
|
1904
1910
|
label: AxesChartColorAndStyle_1.default.label,
|
|
1905
1911
|
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout.slice(0, 2)), [[{
|
|
1906
|
-
label: i18n_1._('Series colors by category name'),
|
|
1912
|
+
label: (0, i18n_1._)('Series colors by category name'),
|
|
1907
1913
|
option: 'seriesColorsByField',
|
|
1908
1914
|
editor: 'editor.seriesColorsByField',
|
|
1909
1915
|
editorProps: {
|
|
1910
1916
|
isCategorical: true
|
|
1911
1917
|
}
|
|
1912
1918
|
}], [{
|
|
1913
|
-
label: i18n_1._('Marker size'),
|
|
1919
|
+
label: (0, i18n_1._)('Marker size'),
|
|
1914
1920
|
option: 'markerSize',
|
|
1915
1921
|
editor: 'editor.slider',
|
|
1916
1922
|
editorProps: {
|
|
@@ -1931,7 +1937,7 @@ var config = {
|
|
|
1931
1937
|
/**
|
|
1932
1938
|
* viz name
|
|
1933
1939
|
*/
|
|
1934
|
-
name: i18n_1._('Scatter'),
|
|
1940
|
+
name: (0, i18n_1._)('Scatter'),
|
|
1935
1941
|
category: VizCategory_1.VizCategory.CORRELATION,
|
|
1936
1942
|
/**
|
|
1937
1943
|
* viz icon
|
|
@@ -1954,11 +1960,11 @@ var config = {
|
|
|
1954
1960
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
|
|
1955
1961
|
themes: themes
|
|
1956
1962
|
};
|
|
1957
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
1963
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
1958
1964
|
|
|
1959
1965
|
/***/ }),
|
|
1960
1966
|
|
|
1961
|
-
/***/
|
|
1967
|
+
/***/ 466:
|
|
1962
1968
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1963
1969
|
|
|
1964
1970
|
"use strict";
|
|
@@ -1969,8 +1975,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1969
1975
|
});
|
|
1970
1976
|
exports.convertToScatterSCProperties = exports.mapToOldKey = exports.convertToStringValues = exports.scatterOptionValuesSCMapping = void 0;
|
|
1971
1977
|
var lodash_1 = __webpack_require__(3);
|
|
1972
|
-
var propUtils_1 = __webpack_require__(
|
|
1973
|
-
var chartingUtils_1 = __webpack_require__(
|
|
1978
|
+
var propUtils_1 = __webpack_require__(29);
|
|
1979
|
+
var chartingUtils_1 = __webpack_require__(56);
|
|
1974
1980
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
1975
1981
|
var scatterOptionsSCMapping = {
|
|
1976
1982
|
xAxisLabelRotation: 'xAxisMajorLabelRotation',
|
|
@@ -2022,7 +2028,7 @@ exports.scatterOptionValuesSCMapping = {
|
|
|
2022
2028
|
* @returns {Object}
|
|
2023
2029
|
*/
|
|
2024
2030
|
var convertToStringValues = function convertToStringValues(options) {
|
|
2025
|
-
var updatedOptions = propUtils_1.convertPropsToString({
|
|
2031
|
+
var updatedOptions = (0, propUtils_1.convertPropsToString)({
|
|
2026
2032
|
vizProps: options,
|
|
2027
2033
|
propNames: ['seriesColors', 'fieldColors']
|
|
2028
2034
|
});
|
|
@@ -2037,7 +2043,7 @@ exports.convertToStringValues = convertToStringValues;
|
|
|
2037
2043
|
* @returns {Object}
|
|
2038
2044
|
*/
|
|
2039
2045
|
var mapToOldKey = function mapToOldKey(options) {
|
|
2040
|
-
return lodash_1.mapKeys(options, function (val, key) {
|
|
2046
|
+
return (0, lodash_1.mapKeys)(options, function (val, key) {
|
|
2041
2047
|
return scatterOptionsSCMapping[key] ? scatterOptionsSCMapping[key] : key;
|
|
2042
2048
|
});
|
|
2043
2049
|
};
|
|
@@ -2051,7 +2057,7 @@ exports.mapToOldKey = mapToOldKey;
|
|
|
2051
2057
|
* @returns {Object}
|
|
2052
2058
|
*/
|
|
2053
2059
|
var convertToScatterSCProperties = function convertToScatterSCProperties(originalOptions) {
|
|
2054
|
-
return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.scatterOptionValuesSCMapping)).thru(exports.convertToStringValues).value();
|
|
2060
|
+
return (0, lodash_1.chain)((0, exports.mapToOldKey)(originalOptions)).thru((0, chartingUtils_1.mapToValues)(exports.scatterOptionValuesSCMapping)).thru(exports.convertToStringValues).value();
|
|
2055
2061
|
};
|
|
2056
2062
|
exports.convertToScatterSCProperties = convertToScatterSCProperties;
|
|
2057
2063
|
|
|
@@ -2069,7 +2075,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2069
2075
|
var React = __webpack_require__(1);
|
|
2070
2076
|
var colorUtils_1 = __webpack_require__(12);
|
|
2071
2077
|
var variables_1 = __webpack_require__(11);
|
|
2072
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2078
|
+
var IconPlaceholder_1 = __webpack_require__(32);
|
|
2073
2079
|
var VizBehavior_1 = __webpack_require__(6);
|
|
2074
2080
|
var hocUtils_1 = __webpack_require__(15);
|
|
2075
2081
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
@@ -2084,7 +2090,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2084
2090
|
height = props.height,
|
|
2085
2091
|
width = props.width;
|
|
2086
2092
|
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
2087
|
-
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);
|
|
2093
|
+
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);
|
|
2088
2094
|
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
2089
2095
|
var iconColor = variables_1.default.contentColorActive(props);
|
|
2090
2096
|
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
@@ -2099,7 +2105,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
2099
2105
|
}
|
|
2100
2106
|
return React.createElement(Visualization, Object.assign({}, props));
|
|
2101
2107
|
};
|
|
2102
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
2108
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
2103
2109
|
Wrapper: Wrapper,
|
|
2104
2110
|
Visualization: Visualization
|
|
2105
2111
|
});
|
|
@@ -2109,7 +2115,7 @@ exports.default = withPlaceholder;
|
|
|
2109
2115
|
|
|
2110
2116
|
/***/ }),
|
|
2111
2117
|
|
|
2112
|
-
/***/
|
|
2118
|
+
/***/ 50:
|
|
2113
2119
|
/***/ (function(module, exports) {
|
|
2114
2120
|
|
|
2115
2121
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
@@ -2145,7 +2151,7 @@ var background = function background(_ref) {
|
|
|
2145
2151
|
themes = _ref.themes,
|
|
2146
2152
|
labelPosition = _ref.labelPosition;
|
|
2147
2153
|
return [{
|
|
2148
|
-
label: i18n_1._(label || 'Background'),
|
|
2154
|
+
label: (0, i18n_1._)(label || 'Background'),
|
|
2149
2155
|
option: 'backgroundColor',
|
|
2150
2156
|
editor: 'editor.color',
|
|
2151
2157
|
editorProps: {
|
|
@@ -2159,6 +2165,13 @@ exports.default = background;
|
|
|
2159
2165
|
/***/ }),
|
|
2160
2166
|
|
|
2161
2167
|
/***/ 55:
|
|
2168
|
+
/***/ (function(module, exports) {
|
|
2169
|
+
|
|
2170
|
+
module.exports = require("@splunk/charting-bundle");
|
|
2171
|
+
|
|
2172
|
+
/***/ }),
|
|
2173
|
+
|
|
2174
|
+
/***/ 56:
|
|
2162
2175
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2163
2176
|
|
|
2164
2177
|
"use strict";
|
|
@@ -2234,9 +2247,9 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
|
|
|
2234
2247
|
return function (options) {
|
|
2235
2248
|
var convertedOptions = Object.assign({}, options);
|
|
2236
2249
|
Object.keys(optionValuesSCMapping).forEach(function (key) {
|
|
2237
|
-
if (lodash_1.has(options, key)) {
|
|
2250
|
+
if ((0, lodash_1.has)(options, key)) {
|
|
2238
2251
|
var updatedValue = optionValuesSCMapping[key][options[key]];
|
|
2239
|
-
if (!lodash_1.isUndefined(updatedValue)) {
|
|
2252
|
+
if (!(0, lodash_1.isUndefined)(updatedValue)) {
|
|
2240
2253
|
convertedOptions[key] = updatedValue;
|
|
2241
2254
|
}
|
|
2242
2255
|
}
|
|
@@ -2257,7 +2270,7 @@ var convertY2AxisOptions = function convertY2AxisOptions(_a) {
|
|
|
2257
2270
|
var convertedOptions = Object.assign({}, originalOptions);
|
|
2258
2271
|
if (y2Fields) {
|
|
2259
2272
|
convertedOptions['axisY2.enabled'] = true;
|
|
2260
|
-
convertedOptions['axisY2.fields'] = lodash_1.isArray(y2Fields) ? y2Fields.filter(function (name) {
|
|
2273
|
+
convertedOptions['axisY2.fields'] = (0, lodash_1.isArray)(y2Fields) ? y2Fields.filter(function (name) {
|
|
2261
2274
|
return name;
|
|
2262
2275
|
}).join(',') : y2Fields;
|
|
2263
2276
|
}
|
|
@@ -2299,7 +2312,7 @@ exports.isMultiSeriesData = isMultiSeriesData;
|
|
|
2299
2312
|
* @return {array}
|
|
2300
2313
|
*/
|
|
2301
2314
|
var toArrayForSeries = function toArrayForSeries(data, value) {
|
|
2302
|
-
return exports.isMultiSeriesData(data) ? value : [value];
|
|
2315
|
+
return (0, exports.isMultiSeriesData)(data) ? value : [value];
|
|
2303
2316
|
};
|
|
2304
2317
|
exports.toArrayForSeries = toArrayForSeries;
|
|
2305
2318
|
var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
@@ -2311,10 +2324,10 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
2311
2324
|
yFields = _ref2.yFields,
|
|
2312
2325
|
y2 = _ref2.y2,
|
|
2313
2326
|
y2Fields = _ref2.y2Fields;
|
|
2314
|
-
var columns = [x.map(String)].concat(_toConsumableArray(exports.toArrayForSeries(y, y).map(function (series) {
|
|
2327
|
+
var columns = [x.map(String)].concat(_toConsumableArray((0, exports.toArrayForSeries)(y, y).map(function (series) {
|
|
2315
2328
|
return series.map(String);
|
|
2316
2329
|
})));
|
|
2317
|
-
var yFieldsArray = exports.toArrayForSeries(y, yFields);
|
|
2330
|
+
var yFieldsArray = (0, exports.toArrayForSeries)(y, yFields);
|
|
2318
2331
|
var fields = [{
|
|
2319
2332
|
name: xField
|
|
2320
2333
|
}].concat(_toConsumableArray(yFieldsArray.map(function (field) {
|
|
@@ -2326,8 +2339,8 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
2326
2339
|
// when y & y2 options are configured with different (mutually exclusive) series
|
|
2327
2340
|
// y2 columns need to be added to columns
|
|
2328
2341
|
if (y2Fields) {
|
|
2329
|
-
var y2FieldsArray = exports.toArrayForSeries(y2, y2Fields);
|
|
2330
|
-
var y2AsArray = exports.toArrayForSeries(y2, y2).map(function (series) {
|
|
2342
|
+
var y2FieldsArray = (0, exports.toArrayForSeries)(y2, y2Fields);
|
|
2343
|
+
var y2AsArray = (0, exports.toArrayForSeries)(y2, y2).map(function (series) {
|
|
2331
2344
|
return series === null || series === void 0 ? void 0 : series.map(String);
|
|
2332
2345
|
});
|
|
2333
2346
|
y2FieldsArray.forEach(function (y2Field, index) {
|
|
@@ -2348,13 +2361,6 @@ exports.constructFieldsAndColumns = constructFieldsAndColumns;
|
|
|
2348
2361
|
|
|
2349
2362
|
/***/ }),
|
|
2350
2363
|
|
|
2351
|
-
/***/ 56:
|
|
2352
|
-
/***/ (function(module, exports) {
|
|
2353
|
-
|
|
2354
|
-
module.exports = require("@splunk/charting-bundle");
|
|
2355
|
-
|
|
2356
|
-
/***/ }),
|
|
2357
|
-
|
|
2358
2364
|
/***/ 57:
|
|
2359
2365
|
/***/ (function(module, exports) {
|
|
2360
2366
|
|
|
@@ -2399,7 +2405,7 @@ var VizBehavior;
|
|
|
2399
2405
|
|
|
2400
2406
|
/***/ }),
|
|
2401
2407
|
|
|
2402
|
-
/***/
|
|
2408
|
+
/***/ 65:
|
|
2403
2409
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2404
2410
|
|
|
2405
2411
|
"use strict";
|
|
@@ -2416,16 +2422,16 @@ var visualization_color_palettes_1 = __webpack_require__(51);
|
|
|
2416
2422
|
var react_1 = __webpack_require__(1);
|
|
2417
2423
|
var React = __webpack_require__(1);
|
|
2418
2424
|
var T = __webpack_require__(0);
|
|
2419
|
-
var react_event_listener_1 = __webpack_require__(
|
|
2420
|
-
__webpack_require__(
|
|
2421
|
-
var charting_bundle_1 = __webpack_require__(
|
|
2422
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2425
|
+
var react_event_listener_1 = __webpack_require__(66);
|
|
2426
|
+
__webpack_require__(67); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
2427
|
+
var charting_bundle_1 = __webpack_require__(55);
|
|
2428
|
+
var TimezoneContext_1 = __webpack_require__(26);
|
|
2423
2429
|
var style_1 = __webpack_require__(14);
|
|
2424
2430
|
var styled_components_1 = __webpack_require__(4);
|
|
2425
2431
|
var Message_1 = __webpack_require__(10);
|
|
2426
2432
|
var useSplunkTheme_1 = __webpack_require__(57);
|
|
2427
|
-
var themeUtils_1 = __webpack_require__(
|
|
2428
|
-
var ChartingApi_1 = __webpack_require__(
|
|
2433
|
+
var themeUtils_1 = __webpack_require__(68);
|
|
2434
|
+
var ChartingApi_1 = __webpack_require__(69);
|
|
2429
2435
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
2430
2436
|
var changedOptions = function changedOptions(curOptions, nextOptions) {
|
|
2431
2437
|
return Object.keys(curOptions).filter(function (key) {
|
|
@@ -2435,10 +2441,9 @@ var changedOptions = function changedOptions(curOptions, nextOptions) {
|
|
|
2435
2441
|
}));
|
|
2436
2442
|
};
|
|
2437
2443
|
exports.changedOptions = changedOptions;
|
|
2438
|
-
charting_bundle_1.default.enableScaledEvents();
|
|
2439
2444
|
function usePrevious(value) {
|
|
2440
|
-
var ref = react_1.useRef();
|
|
2441
|
-
react_1.useEffect(function () {
|
|
2445
|
+
var ref = (0, react_1.useRef)();
|
|
2446
|
+
(0, react_1.useEffect)(function () {
|
|
2442
2447
|
ref.current = value;
|
|
2443
2448
|
});
|
|
2444
2449
|
return ref.current;
|
|
@@ -2451,7 +2456,7 @@ var canUpdateInPlace = function canUpdateInPlace(curOptions, nextOptions) {
|
|
|
2451
2456
|
}
|
|
2452
2457
|
return !exports.NO_INPLACE_PROPS.some(function (p) {
|
|
2453
2458
|
return curOptions[p] !== nextOptions[p];
|
|
2454
|
-
}) && !exports.changedOptions(curOptions, nextOptions).some(function (p) {
|
|
2459
|
+
}) && !(0, exports.changedOptions)(curOptions, nextOptions).some(function (p) {
|
|
2455
2460
|
return p.toLowerCase().endsWith('color');
|
|
2456
2461
|
});
|
|
2457
2462
|
};
|
|
@@ -2487,7 +2492,7 @@ var ChartingContainer = styled_components_1.default.div.attrs(function (props) {
|
|
|
2487
2492
|
displayName: "Charting__ChartingContainer",
|
|
2488
2493
|
componentId: "sc-3wbgm0-0"
|
|
2489
2494
|
})(["& .highcharts-a11y-proxy-container{pointer-events:none;}overflow:hidden;position:relative;", ";"], function (props) {
|
|
2490
|
-
return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
|
|
2495
|
+
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
2491
2496
|
});
|
|
2492
2497
|
var propTypes = {
|
|
2493
2498
|
width: T.oneOfType([T.string, T.number]),
|
|
@@ -2505,12 +2510,12 @@ var propTypes = {
|
|
|
2505
2510
|
themeKey: T.string
|
|
2506
2511
|
};
|
|
2507
2512
|
var Charting = function Charting(props) {
|
|
2508
|
-
var container = react_1.useRef(null);
|
|
2509
|
-
var needsInit = react_1.useRef(true);
|
|
2510
|
-
var chart = react_1.useRef();
|
|
2511
|
-
var needsRedraw = react_1.useRef(true);
|
|
2512
|
-
var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
|
|
2513
|
-
var timezone = react_1.useContext(TimezoneContext_1.default);
|
|
2513
|
+
var container = (0, react_1.useRef)(null);
|
|
2514
|
+
var needsInit = (0, react_1.useRef)(true);
|
|
2515
|
+
var chart = (0, react_1.useRef)();
|
|
2516
|
+
var needsRedraw = (0, react_1.useRef)(true);
|
|
2517
|
+
var api = (0, react_1.useRef)(new ChartingApi_1.ChartingApiFunctional(chart));
|
|
2518
|
+
var timezone = (0, react_1.useContext)(TimezoneContext_1.default);
|
|
2514
2519
|
var computeChartingSize = function computeChartingSize() {
|
|
2515
2520
|
if (container.current) {
|
|
2516
2521
|
var rect = container.current.getBoundingClientRect();
|
|
@@ -2521,8 +2526,8 @@ var Charting = function Charting(props) {
|
|
|
2521
2526
|
}
|
|
2522
2527
|
return {};
|
|
2523
2528
|
};
|
|
2524
|
-
var splunkTheme = useSplunkTheme_1.default();
|
|
2525
|
-
var themeKey = props.themeKey ? props.themeKey : themeUtils_1.getChartingThemeKey({
|
|
2529
|
+
var splunkTheme = (0, useSplunkTheme_1.default)();
|
|
2530
|
+
var themeKey = props.themeKey ? props.themeKey : (0, themeUtils_1.getChartingThemeKey)({
|
|
2526
2531
|
splunkThemeV1: splunkTheme
|
|
2527
2532
|
});
|
|
2528
2533
|
var width = props.width,
|
|
@@ -2539,13 +2544,13 @@ var Charting = function Charting(props) {
|
|
|
2539
2544
|
var prevOptions = usePrevious(options);
|
|
2540
2545
|
var prevTimezone = usePrevious(timezone);
|
|
2541
2546
|
var handleClick = function handleClick(chartEvent, type) {
|
|
2542
|
-
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
|
|
2547
|
+
var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
|
|
2543
2548
|
payload.name = payload.name2;
|
|
2544
2549
|
delete payload.name2;
|
|
2545
2550
|
if (type === VizChartEventType.POINT_CLICK) {
|
|
2546
2551
|
payload.value = payload.value2;
|
|
2547
2552
|
delete payload.value2;
|
|
2548
|
-
payload = exports.updateRowPayload(chartEvent.rowContext, payload);
|
|
2553
|
+
payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
|
|
2549
2554
|
}
|
|
2550
2555
|
onClick({
|
|
2551
2556
|
type: type,
|
|
@@ -2567,7 +2572,7 @@ var Charting = function Charting(props) {
|
|
|
2567
2572
|
onSelect({
|
|
2568
2573
|
type: 'range.select',
|
|
2569
2574
|
originalEvent: chartEvent,
|
|
2570
|
-
payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
2575
|
+
payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
2571
2576
|
});
|
|
2572
2577
|
return;
|
|
2573
2578
|
}
|
|
@@ -2575,16 +2580,16 @@ var Charting = function Charting(props) {
|
|
|
2575
2580
|
onEventTrigger({
|
|
2576
2581
|
type: 'range.select',
|
|
2577
2582
|
originalEvent: chartEvent,
|
|
2578
|
-
payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
2583
|
+
payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
2579
2584
|
});
|
|
2580
2585
|
};
|
|
2581
2586
|
var handlePointMouseOut = function handlePointMouseOut(chartEvent, type) {
|
|
2582
|
-
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
2587
|
+
var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
2583
2588
|
payload.name = payload.name2;
|
|
2584
2589
|
delete payload.name2;
|
|
2585
2590
|
payload.value = payload.value2;
|
|
2586
2591
|
delete payload.value2;
|
|
2587
|
-
payload = exports.updateRowPayload(chartEvent.rowContext, payload);
|
|
2592
|
+
payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
|
|
2588
2593
|
onPointMouseOut({
|
|
2589
2594
|
type: type,
|
|
2590
2595
|
originalEvent: chartEvent,
|
|
@@ -2592,12 +2597,12 @@ var Charting = function Charting(props) {
|
|
|
2592
2597
|
});
|
|
2593
2598
|
};
|
|
2594
2599
|
var handlePointMouseOver = function handlePointMouseOver(chartEvent, type) {
|
|
2595
|
-
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
2600
|
+
var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
2596
2601
|
payload.name = payload.name2;
|
|
2597
2602
|
delete payload.name2;
|
|
2598
2603
|
payload.value = payload.value2;
|
|
2599
2604
|
delete payload.value2;
|
|
2600
|
-
payload = exports.updateRowPayload(chartEvent.rowContext, payload);
|
|
2605
|
+
payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
|
|
2601
2606
|
onPointMouseOver({
|
|
2602
2607
|
type: type,
|
|
2603
2608
|
originalEvent: chartEvent,
|
|
@@ -2679,14 +2684,14 @@ var Charting = function Charting(props) {
|
|
|
2679
2684
|
window.console.error('Caught error rendering chart:', e);
|
|
2680
2685
|
}
|
|
2681
2686
|
};
|
|
2682
|
-
var debouncedDrawChart = lodash_1.debounce(drawChart, 5);
|
|
2687
|
+
var debouncedDrawChart = (0, lodash_1.debounce)(drawChart, 5);
|
|
2683
2688
|
var onContainerMount = function onContainerMount(chartingContainer) {
|
|
2684
2689
|
container.current = chartingContainer;
|
|
2685
2690
|
debouncedDrawChart();
|
|
2686
2691
|
};
|
|
2687
2692
|
var prevTheme = usePrevious(themeKey);
|
|
2688
2693
|
var prevOnClick = usePrevious(onClick);
|
|
2689
|
-
react_1.useEffect(function () {
|
|
2694
|
+
(0, react_1.useEffect)(function () {
|
|
2690
2695
|
debouncedDrawChart();
|
|
2691
2696
|
props.visualizationApiRef(api.current);
|
|
2692
2697
|
return function () {
|
|
@@ -2694,10 +2699,10 @@ var Charting = function Charting(props) {
|
|
|
2694
2699
|
destroyChart();
|
|
2695
2700
|
};
|
|
2696
2701
|
}, []);
|
|
2697
|
-
react_1.useEffect(function () {
|
|
2702
|
+
(0, react_1.useEffect)(function () {
|
|
2698
2703
|
// TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
|
|
2699
2704
|
// seems like redraw doesn't suffice to update the background colors
|
|
2700
|
-
if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) ||
|
|
2705
|
+
if (!chart.current || !(0, exports.canUpdateInPlace)(prevOptions, options) ||
|
|
2701
2706
|
// timezone is a simple object so this comparison should be fast
|
|
2702
2707
|
JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
|
|
2703
2708
|
needsInit.current = true;
|
|
@@ -2741,13 +2746,13 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
|
|
|
2741
2746
|
var chartData = props.chartData;
|
|
2742
2747
|
if (!chartData) {
|
|
2743
2748
|
return React.createElement(Message_1.default, {
|
|
2744
|
-
message: i18n_1._('No DataSource'),
|
|
2749
|
+
message: (0, i18n_1._)('No DataSource'),
|
|
2745
2750
|
level: "warning"
|
|
2746
2751
|
});
|
|
2747
2752
|
}
|
|
2748
2753
|
if (chartData && !Object.keys(chartData).length) {
|
|
2749
2754
|
return React.createElement(Message_1.default, {
|
|
2750
|
-
message: i18n_1._('No Result'),
|
|
2755
|
+
message: (0, i18n_1._)('No Result'),
|
|
2751
2756
|
level: "info"
|
|
2752
2757
|
});
|
|
2753
2758
|
}
|
|
@@ -2763,28 +2768,28 @@ exports.default = withEmptyChartMessage(Charting);
|
|
|
2763
2768
|
|
|
2764
2769
|
/***/ }),
|
|
2765
2770
|
|
|
2766
|
-
/***/
|
|
2771
|
+
/***/ 66:
|
|
2767
2772
|
/***/ (function(module, exports) {
|
|
2768
2773
|
|
|
2769
2774
|
module.exports = require("react-event-listener");
|
|
2770
2775
|
|
|
2771
2776
|
/***/ }),
|
|
2772
2777
|
|
|
2773
|
-
/***/
|
|
2778
|
+
/***/ 67:
|
|
2774
2779
|
/***/ (function(module, exports) {
|
|
2775
2780
|
|
|
2776
2781
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
2777
2782
|
|
|
2778
2783
|
/***/ }),
|
|
2779
2784
|
|
|
2780
|
-
/***/
|
|
2785
|
+
/***/ 68:
|
|
2781
2786
|
/***/ (function(module, exports) {
|
|
2782
2787
|
|
|
2783
2788
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
2784
2789
|
|
|
2785
2790
|
/***/ }),
|
|
2786
2791
|
|
|
2787
|
-
/***/
|
|
2792
|
+
/***/ 69:
|
|
2788
2793
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2789
2794
|
|
|
2790
2795
|
"use strict";
|
|
@@ -2842,21 +2847,21 @@ exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
|
2842
2847
|
|
|
2843
2848
|
/***/ }),
|
|
2844
2849
|
|
|
2845
|
-
/***/
|
|
2850
|
+
/***/ 7:
|
|
2846
2851
|
/***/ (function(module, exports) {
|
|
2847
2852
|
|
|
2848
|
-
module.exports = require("@
|
|
2853
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
2849
2854
|
|
|
2850
2855
|
/***/ }),
|
|
2851
2856
|
|
|
2852
|
-
/***/
|
|
2857
|
+
/***/ 70:
|
|
2853
2858
|
/***/ (function(module, exports) {
|
|
2854
2859
|
|
|
2855
|
-
module.exports = require("@
|
|
2860
|
+
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2856
2861
|
|
|
2857
2862
|
/***/ }),
|
|
2858
2863
|
|
|
2859
|
-
/***/
|
|
2864
|
+
/***/ 74:
|
|
2860
2865
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2861
2866
|
|
|
2862
2867
|
"use strict";
|
|
@@ -2870,9 +2875,9 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
|
|
|
2870
2875
|
var i18n_1 = __webpack_require__(2);
|
|
2871
2876
|
var configUtils_1 = __webpack_require__(20);
|
|
2872
2877
|
var AxesChartDataConfig = {
|
|
2873
|
-
label: i18n_1._('Data configurations'),
|
|
2878
|
+
label: (0, i18n_1._)('Data configurations'),
|
|
2874
2879
|
layout: [[{
|
|
2875
|
-
label: i18n_1._('X'),
|
|
2880
|
+
label: (0, i18n_1._)('X'),
|
|
2876
2881
|
option: 'x',
|
|
2877
2882
|
editor: 'editor.columnSelector',
|
|
2878
2883
|
editorProps: {
|
|
@@ -2881,7 +2886,7 @@ var AxesChartDataConfig = {
|
|
|
2881
2886
|
expectedDataPrimitive: ['series']
|
|
2882
2887
|
}
|
|
2883
2888
|
}], [{
|
|
2884
|
-
label: i18n_1._('Y'),
|
|
2889
|
+
label: (0, i18n_1._)('Y'),
|
|
2885
2890
|
option: 'y',
|
|
2886
2891
|
editor: 'editor.columnMultiSelector',
|
|
2887
2892
|
editorProps: {
|
|
@@ -2891,7 +2896,7 @@ var AxesChartDataConfig = {
|
|
|
2891
2896
|
expectedDataPrimitive: ['series', 'frame']
|
|
2892
2897
|
}
|
|
2893
2898
|
}], [{
|
|
2894
|
-
label: i18n_1._('Result limit'),
|
|
2899
|
+
label: (0, i18n_1._)('Result limit'),
|
|
2895
2900
|
option: 'resultLimit',
|
|
2896
2901
|
editor: 'editor.number',
|
|
2897
2902
|
editorProps: {
|
|
@@ -2902,8 +2907,8 @@ var AxesChartDataConfig = {
|
|
|
2902
2907
|
exports.AxesChartDataConfigBar = {
|
|
2903
2908
|
label: AxesChartDataConfig.label,
|
|
2904
2909
|
// insert Y2 after Y
|
|
2905
|
-
layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
|
|
2906
|
-
label: i18n_1._('Y2'),
|
|
2910
|
+
layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
|
|
2911
|
+
label: (0, i18n_1._)('Y2'),
|
|
2907
2912
|
option: 'y2',
|
|
2908
2913
|
editor: 'editor.columnMultiSelector',
|
|
2909
2914
|
editorProps: {
|
|
@@ -2917,7 +2922,7 @@ exports.AxesChartDataConfigBar = {
|
|
|
2917
2922
|
exports.AxesChartDataConfigScatter = {
|
|
2918
2923
|
label: AxesChartDataConfig.label,
|
|
2919
2924
|
layout: [[{
|
|
2920
|
-
label: i18n_1._('X'),
|
|
2925
|
+
label: (0, i18n_1._)('X'),
|
|
2921
2926
|
option: 'x',
|
|
2922
2927
|
editor: 'editor.columnSelector',
|
|
2923
2928
|
editorProps: {
|
|
@@ -2926,7 +2931,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2926
2931
|
expectedDataPrimitive: ['series']
|
|
2927
2932
|
}
|
|
2928
2933
|
}], [{
|
|
2929
|
-
label: i18n_1._('Y'),
|
|
2934
|
+
label: (0, i18n_1._)('Y'),
|
|
2930
2935
|
option: 'y',
|
|
2931
2936
|
editor: 'editor.columnSelector',
|
|
2932
2937
|
editorProps: {
|
|
@@ -2936,7 +2941,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2936
2941
|
expectedDataPrimitive: ['series']
|
|
2937
2942
|
}
|
|
2938
2943
|
}], [{
|
|
2939
|
-
label: i18n_1._('Category'),
|
|
2944
|
+
label: (0, i18n_1._)('Category'),
|
|
2940
2945
|
option: 'category',
|
|
2941
2946
|
editor: 'editor.columnSelector',
|
|
2942
2947
|
editorProps: {
|
|
@@ -2945,7 +2950,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2945
2950
|
expectedDataPrimitive: ['series']
|
|
2946
2951
|
}
|
|
2947
2952
|
}], [{
|
|
2948
|
-
label: i18n_1._('Result limit'),
|
|
2953
|
+
label: (0, i18n_1._)('Result limit'),
|
|
2949
2954
|
option: 'resultLimit',
|
|
2950
2955
|
editor: 'editor.number',
|
|
2951
2956
|
editorProps: {
|
|
@@ -2956,8 +2961,8 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2956
2961
|
exports.AxesChartDataConfigBubble = {
|
|
2957
2962
|
label: exports.AxesChartDataConfigScatter.label,
|
|
2958
2963
|
// layout: insert Size after Category
|
|
2959
|
-
layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
|
|
2960
|
-
label: i18n_1._('Size'),
|
|
2964
|
+
layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
|
|
2965
|
+
label: (0, i18n_1._)('Size'),
|
|
2961
2966
|
option: 'size',
|
|
2962
2967
|
editor: 'editor.columnSelector',
|
|
2963
2968
|
editorProps: {
|
|
@@ -2970,7 +2975,7 @@ exports.AxesChartDataConfigBubble = {
|
|
|
2970
2975
|
exports.AxesChartDataConfigAreaColumnLine = {
|
|
2971
2976
|
label: exports.AxesChartDataConfigBar.label,
|
|
2972
2977
|
layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
|
|
2973
|
-
label: i18n_1._('Annotation x'),
|
|
2978
|
+
label: (0, i18n_1._)('Annotation x'),
|
|
2974
2979
|
option: 'annotationX',
|
|
2975
2980
|
editor: 'editor.columnSelector',
|
|
2976
2981
|
editorProps: {
|
|
@@ -2979,7 +2984,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
|
|
|
2979
2984
|
expectedDataPrimitive: ['series']
|
|
2980
2985
|
}
|
|
2981
2986
|
}], [{
|
|
2982
|
-
label: i18n_1._('Annotation labels'),
|
|
2987
|
+
label: (0, i18n_1._)('Annotation labels'),
|
|
2983
2988
|
option: 'annotationLabel',
|
|
2984
2989
|
editor: 'editor.columnSelector',
|
|
2985
2990
|
editorProps: {
|
|
@@ -2993,7 +2998,7 @@ exports.default = AxesChartDataConfig;
|
|
|
2993
2998
|
|
|
2994
2999
|
/***/ }),
|
|
2995
3000
|
|
|
2996
|
-
/***/
|
|
3001
|
+
/***/ 75:
|
|
2997
3002
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2998
3003
|
|
|
2999
3004
|
"use strict";
|
|
@@ -3008,7 +3013,7 @@ var variables_1 = __webpack_require__(11);
|
|
|
3008
3013
|
var BackgroundColor_1 = __webpack_require__(53);
|
|
3009
3014
|
var themes = {
|
|
3010
3015
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
3011
|
-
return pick_1.default({
|
|
3016
|
+
return (0, pick_1.default)({
|
|
3012
3017
|
enterprise: {
|
|
3013
3018
|
dark: variables_1.default.black(props),
|
|
3014
3019
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -3018,15 +3023,15 @@ var themes = {
|
|
|
3018
3023
|
}
|
|
3019
3024
|
};
|
|
3020
3025
|
var AxesChartColorAndStyle = {
|
|
3021
|
-
label: i18n_1._('Color and style'),
|
|
3022
|
-
layout: [BackgroundColor_1.default({
|
|
3026
|
+
label: (0, i18n_1._)('Color and style'),
|
|
3027
|
+
layout: [(0, BackgroundColor_1.default)({
|
|
3023
3028
|
themes: themes
|
|
3024
3029
|
}), [{
|
|
3025
|
-
label: i18n_1._('Series colors'),
|
|
3030
|
+
label: (0, i18n_1._)('Series colors'),
|
|
3026
3031
|
option: 'seriesColors',
|
|
3027
3032
|
editor: 'editor.seriesColors'
|
|
3028
3033
|
}], [{
|
|
3029
|
-
label: i18n_1._('Series colors by field name'),
|
|
3034
|
+
label: (0, i18n_1._)('Series colors by field name'),
|
|
3030
3035
|
option: 'seriesColorsByField',
|
|
3031
3036
|
editor: 'editor.seriesColorsByField'
|
|
3032
3037
|
}]]
|
|
@@ -3035,7 +3040,7 @@ exports.default = AxesChartColorAndStyle;
|
|
|
3035
3040
|
|
|
3036
3041
|
/***/ }),
|
|
3037
3042
|
|
|
3038
|
-
/***/
|
|
3043
|
+
/***/ 76:
|
|
3039
3044
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3040
3045
|
|
|
3041
3046
|
"use strict";
|
|
@@ -3046,45 +3051,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3046
3051
|
});
|
|
3047
3052
|
var i18n_1 = __webpack_require__(2);
|
|
3048
3053
|
var AxesChartLegend = {
|
|
3049
|
-
label: i18n_1._('Legend'),
|
|
3054
|
+
label: (0, i18n_1._)('Legend'),
|
|
3050
3055
|
layout: [[{
|
|
3051
|
-
label: i18n_1._('Legend display'),
|
|
3056
|
+
label: (0, i18n_1._)('Legend display'),
|
|
3052
3057
|
option: 'legendDisplay',
|
|
3053
3058
|
editor: 'editor.select',
|
|
3054
3059
|
editorProps: {
|
|
3055
3060
|
values: [{
|
|
3056
|
-
label: i18n_1._('Right'),
|
|
3061
|
+
label: (0, i18n_1._)('Right'),
|
|
3057
3062
|
value: 'right'
|
|
3058
3063
|
}, {
|
|
3059
|
-
label: i18n_1._('Left'),
|
|
3064
|
+
label: (0, i18n_1._)('Left'),
|
|
3060
3065
|
value: 'left'
|
|
3061
3066
|
}, {
|
|
3062
|
-
label: i18n_1._('Top'),
|
|
3067
|
+
label: (0, i18n_1._)('Top'),
|
|
3063
3068
|
value: 'top'
|
|
3064
3069
|
}, {
|
|
3065
|
-
label: i18n_1._('Bottom'),
|
|
3070
|
+
label: (0, i18n_1._)('Bottom'),
|
|
3066
3071
|
value: 'bottom'
|
|
3067
3072
|
}, {
|
|
3068
|
-
label: i18n_1._('Off'),
|
|
3073
|
+
label: (0, i18n_1._)('Off'),
|
|
3069
3074
|
value: 'off'
|
|
3070
3075
|
}]
|
|
3071
3076
|
}
|
|
3072
3077
|
}], [{
|
|
3073
|
-
label: i18n_1._('Legend truncation'),
|
|
3078
|
+
label: (0, i18n_1._)('Legend truncation'),
|
|
3074
3079
|
option: 'legendTruncation',
|
|
3075
3080
|
editor: 'editor.radioBar',
|
|
3076
3081
|
editorProps: {
|
|
3077
3082
|
values: [{
|
|
3078
|
-
label: i18n_1._('A...'),
|
|
3083
|
+
label: (0, i18n_1._)('A...'),
|
|
3079
3084
|
value: 'ellipsisEnd'
|
|
3080
3085
|
}, {
|
|
3081
|
-
label: i18n_1._('A...Z'),
|
|
3086
|
+
label: (0, i18n_1._)('A...Z'),
|
|
3082
3087
|
value: 'ellipsisMiddle'
|
|
3083
3088
|
}, {
|
|
3084
|
-
label: i18n_1._('...Z'),
|
|
3089
|
+
label: (0, i18n_1._)('...Z'),
|
|
3085
3090
|
value: 'ellipsisStart'
|
|
3086
3091
|
}, {
|
|
3087
|
-
label: i18n_1._('Off'),
|
|
3092
|
+
label: (0, i18n_1._)('Off'),
|
|
3088
3093
|
value: 'ellipsisOff'
|
|
3089
3094
|
}]
|
|
3090
3095
|
},
|
|
@@ -3098,7 +3103,7 @@ exports.default = AxesChartLegend;
|
|
|
3098
3103
|
|
|
3099
3104
|
/***/ }),
|
|
3100
3105
|
|
|
3101
|
-
/***/
|
|
3106
|
+
/***/ 77:
|
|
3102
3107
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3103
3108
|
|
|
3104
3109
|
"use strict";
|
|
@@ -3112,13 +3117,13 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
|
|
|
3112
3117
|
var i18n_1 = __webpack_require__(2);
|
|
3113
3118
|
var configUtils_1 = __webpack_require__(20);
|
|
3114
3119
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
3115
|
-
label: i18n_1._('X-axis grid and labels'),
|
|
3120
|
+
label: (0, i18n_1._)('X-axis grid and labels'),
|
|
3116
3121
|
layout: [[{
|
|
3117
|
-
label: i18n_1._('Axis title'),
|
|
3122
|
+
label: (0, i18n_1._)('Axis title'),
|
|
3118
3123
|
option: 'xAxisTitleVisibility',
|
|
3119
3124
|
editor: 'editor.toggle'
|
|
3120
3125
|
}], [{
|
|
3121
|
-
label: i18n_1._('Axis title text'),
|
|
3126
|
+
label: (0, i18n_1._)('Axis title text'),
|
|
3122
3127
|
option: 'xAxisTitleText',
|
|
3123
3128
|
editor: 'editor.text',
|
|
3124
3129
|
showEditor: function showEditor(_ref) {
|
|
@@ -3126,18 +3131,18 @@ exports.AxesChartXGridAndLabelsCommon = {
|
|
|
3126
3131
|
return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
|
|
3127
3132
|
}
|
|
3128
3133
|
}], [{
|
|
3129
|
-
label: i18n_1._('Label visibility'),
|
|
3134
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
3130
3135
|
option: 'xAxisLabelVisibility',
|
|
3131
3136
|
editor: 'editor.radioBar',
|
|
3132
3137
|
editorProps: {
|
|
3133
3138
|
values: [{
|
|
3134
|
-
label: i18n_1._('Auto'),
|
|
3139
|
+
label: (0, i18n_1._)('Auto'),
|
|
3135
3140
|
value: 'auto'
|
|
3136
3141
|
}, {
|
|
3137
|
-
label: i18n_1._('Show'),
|
|
3142
|
+
label: (0, i18n_1._)('Show'),
|
|
3138
3143
|
value: 'show'
|
|
3139
3144
|
}, {
|
|
3140
|
-
label: i18n_1._('Hide'),
|
|
3145
|
+
label: (0, i18n_1._)('Hide'),
|
|
3141
3146
|
value: 'hide'
|
|
3142
3147
|
}]
|
|
3143
3148
|
}
|
|
@@ -3146,24 +3151,24 @@ exports.AxesChartXGridAndLabelsCommon = {
|
|
|
3146
3151
|
var AxesChartXGridAndLabels = {
|
|
3147
3152
|
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
3148
3153
|
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
3149
|
-
label: i18n_1._('Label rotation'),
|
|
3154
|
+
label: (0, i18n_1._)('Label rotation'),
|
|
3150
3155
|
option: 'xAxisLabelRotation',
|
|
3151
3156
|
editor: 'editor.select',
|
|
3152
3157
|
editorProps: {
|
|
3153
3158
|
values: [{
|
|
3154
|
-
label: i18n_1._('-90'),
|
|
3159
|
+
label: (0, i18n_1._)('-90'),
|
|
3155
3160
|
value: -90
|
|
3156
3161
|
}, {
|
|
3157
|
-
label: i18n_1._('-45'),
|
|
3162
|
+
label: (0, i18n_1._)('-45'),
|
|
3158
3163
|
value: -45
|
|
3159
3164
|
}, {
|
|
3160
|
-
label: i18n_1._('0'),
|
|
3165
|
+
label: (0, i18n_1._)('0'),
|
|
3161
3166
|
value: 0
|
|
3162
3167
|
}, {
|
|
3163
|
-
label: i18n_1._('45'),
|
|
3168
|
+
label: (0, i18n_1._)('45'),
|
|
3164
3169
|
value: 45
|
|
3165
3170
|
}, {
|
|
3166
|
-
label: i18n_1._('90'),
|
|
3171
|
+
label: (0, i18n_1._)('90'),
|
|
3167
3172
|
value: 90
|
|
3168
3173
|
}]
|
|
3169
3174
|
},
|
|
@@ -3172,7 +3177,7 @@ var AxesChartXGridAndLabels = {
|
|
|
3172
3177
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
3173
3178
|
}
|
|
3174
3179
|
}], [{
|
|
3175
|
-
label: i18n_1._('Number of time label parts'),
|
|
3180
|
+
label: (0, i18n_1._)('Number of time label parts'),
|
|
3176
3181
|
option: 'xAxisMaxLabelParts',
|
|
3177
3182
|
editor: 'editor.number',
|
|
3178
3183
|
editorProps: {
|
|
@@ -3184,31 +3189,31 @@ var AxesChartXGridAndLabels = {
|
|
|
3184
3189
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
3185
3190
|
}
|
|
3186
3191
|
}], [{
|
|
3187
|
-
label: i18n_1._('Axis line visibility'),
|
|
3192
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
3188
3193
|
option: 'xAxisLineVisibility',
|
|
3189
3194
|
editor: 'editor.checkbox'
|
|
3190
3195
|
}], [{
|
|
3191
|
-
label: i18n_1._('Major gridlines'),
|
|
3196
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
3192
3197
|
option: 'showXMajorGridLines',
|
|
3193
3198
|
editor: 'editor.checkbox'
|
|
3194
3199
|
}], [{
|
|
3195
|
-
label: i18n_1._('Major tick visibility'),
|
|
3200
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
3196
3201
|
option: 'xAxisMajorTickVisibility',
|
|
3197
3202
|
editor: 'editor.radioBar',
|
|
3198
3203
|
editorProps: {
|
|
3199
3204
|
values: [{
|
|
3200
|
-
label: i18n_1._('Auto'),
|
|
3205
|
+
label: (0, i18n_1._)('Auto'),
|
|
3201
3206
|
value: 'auto'
|
|
3202
3207
|
}, {
|
|
3203
|
-
label: i18n_1._('Show'),
|
|
3208
|
+
label: (0, i18n_1._)('Show'),
|
|
3204
3209
|
value: 'show'
|
|
3205
3210
|
}, {
|
|
3206
|
-
label: i18n_1._('Hide'),
|
|
3211
|
+
label: (0, i18n_1._)('Hide'),
|
|
3207
3212
|
value: 'hide'
|
|
3208
3213
|
}]
|
|
3209
3214
|
}
|
|
3210
3215
|
}], [{
|
|
3211
|
-
label: i18n_1._('Major tick size (px)'),
|
|
3216
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
3212
3217
|
option: 'xAxisMajorTickSize',
|
|
3213
3218
|
editor: 'editor.slider',
|
|
3214
3219
|
editorProps: {
|
|
@@ -3224,38 +3229,38 @@ var AxesChartXGridAndLabels = {
|
|
|
3224
3229
|
};
|
|
3225
3230
|
exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
3226
3231
|
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
3227
|
-
layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
3228
|
-
label: i18n_1._('Axis scale'),
|
|
3232
|
+
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
3233
|
+
label: (0, i18n_1._)('Axis scale'),
|
|
3229
3234
|
option: 'xAxisScale',
|
|
3230
3235
|
editor: 'editor.radioBar',
|
|
3231
3236
|
editorProps: {
|
|
3232
3237
|
values: [{
|
|
3233
|
-
label: i18n_1._('Linear'),
|
|
3238
|
+
label: (0, i18n_1._)('Linear'),
|
|
3234
3239
|
value: 'linear'
|
|
3235
3240
|
}, {
|
|
3236
|
-
label: i18n_1._('Log'),
|
|
3241
|
+
label: (0, i18n_1._)('Log'),
|
|
3237
3242
|
value: 'log'
|
|
3238
3243
|
}]
|
|
3239
3244
|
}
|
|
3240
3245
|
}])), [[{
|
|
3241
|
-
label: i18n_1._('Label rotation'),
|
|
3246
|
+
label: (0, i18n_1._)('Label rotation'),
|
|
3242
3247
|
option: 'xAxisLabelRotation',
|
|
3243
3248
|
editor: 'editor.select',
|
|
3244
3249
|
editorProps: {
|
|
3245
3250
|
values: [{
|
|
3246
|
-
label: i18n_1._('-90'),
|
|
3251
|
+
label: (0, i18n_1._)('-90'),
|
|
3247
3252
|
value: -90
|
|
3248
3253
|
}, {
|
|
3249
|
-
label: i18n_1._('-45'),
|
|
3254
|
+
label: (0, i18n_1._)('-45'),
|
|
3250
3255
|
value: -45
|
|
3251
3256
|
}, {
|
|
3252
|
-
label: i18n_1._('0'),
|
|
3257
|
+
label: (0, i18n_1._)('0'),
|
|
3253
3258
|
value: 0
|
|
3254
3259
|
}, {
|
|
3255
|
-
label: i18n_1._('45'),
|
|
3260
|
+
label: (0, i18n_1._)('45'),
|
|
3256
3261
|
value: 45
|
|
3257
3262
|
}, {
|
|
3258
|
-
label: i18n_1._('90'),
|
|
3263
|
+
label: (0, i18n_1._)('90'),
|
|
3259
3264
|
value: 90
|
|
3260
3265
|
}]
|
|
3261
3266
|
},
|
|
@@ -3264,7 +3269,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
3264
3269
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
3265
3270
|
}
|
|
3266
3271
|
}], [{
|
|
3267
|
-
label: i18n_1._('Round axis labels'),
|
|
3272
|
+
label: (0, i18n_1._)('Round axis labels'),
|
|
3268
3273
|
option: 'showRoundedXAxisLabels',
|
|
3269
3274
|
editor: 'editor.checkbox',
|
|
3270
3275
|
showEditor: function showEditor(_ref6) {
|
|
@@ -3272,7 +3277,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
3272
3277
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
3273
3278
|
}
|
|
3274
3279
|
}], [{
|
|
3275
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
3280
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
3276
3281
|
option: 'xAxisAbbreviation',
|
|
3277
3282
|
editor: 'editor.checkbox',
|
|
3278
3283
|
showEditor: function showEditor(_ref7) {
|
|
@@ -3280,23 +3285,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
3280
3285
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
3281
3286
|
}
|
|
3282
3287
|
}], [{
|
|
3283
|
-
label: i18n_1._('Include zero'),
|
|
3288
|
+
label: (0, i18n_1._)('Include zero'),
|
|
3284
3289
|
option: 'showXAxisWithZero',
|
|
3285
3290
|
editor: 'editor.checkbox'
|
|
3286
3291
|
}], [{
|
|
3287
|
-
label: i18n_1._('Extend to whole grid'),
|
|
3292
|
+
label: (0, i18n_1._)('Extend to whole grid'),
|
|
3288
3293
|
option: 'showXAxisExtendedRange',
|
|
3289
3294
|
editor: 'editor.checkbox'
|
|
3290
3295
|
}], [{
|
|
3291
|
-
label: i18n_1._('Minimum axis value'),
|
|
3296
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
3292
3297
|
option: 'xAxisMin',
|
|
3293
3298
|
editor: 'editor.number'
|
|
3294
3299
|
}, {
|
|
3295
|
-
label: i18n_1._('Maximum axis value'),
|
|
3300
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
3296
3301
|
option: 'xAxisMax',
|
|
3297
3302
|
editor: 'editor.number'
|
|
3298
3303
|
}], [{
|
|
3299
|
-
label: i18n_1._('Axis line visibility'),
|
|
3304
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
3300
3305
|
option: 'xAxisLineVisibility',
|
|
3301
3306
|
editor: 'editor.checkbox'
|
|
3302
3307
|
}],
|
|
@@ -3309,23 +3314,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
3309
3314
|
// },
|
|
3310
3315
|
// ],
|
|
3311
3316
|
[{
|
|
3312
|
-
label: i18n_1._('Major tick visibility'),
|
|
3317
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
3313
3318
|
option: 'xAxisMajorTickVisibility',
|
|
3314
3319
|
editor: 'editor.radioBar',
|
|
3315
3320
|
editorProps: {
|
|
3316
3321
|
values: [{
|
|
3317
|
-
label: i18n_1._('Auto'),
|
|
3322
|
+
label: (0, i18n_1._)('Auto'),
|
|
3318
3323
|
value: 'auto'
|
|
3319
3324
|
}, {
|
|
3320
|
-
label: i18n_1._('Show'),
|
|
3325
|
+
label: (0, i18n_1._)('Show'),
|
|
3321
3326
|
value: 'show'
|
|
3322
3327
|
}, {
|
|
3323
|
-
label: i18n_1._('Hide'),
|
|
3328
|
+
label: (0, i18n_1._)('Hide'),
|
|
3324
3329
|
value: 'hide'
|
|
3325
3330
|
}]
|
|
3326
3331
|
}
|
|
3327
3332
|
}], [{
|
|
3328
|
-
label: i18n_1._('Major tick size (px)'),
|
|
3333
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
3329
3334
|
option: 'xAxisMajorTickSize',
|
|
3330
3335
|
editor: 'editor.slider',
|
|
3331
3336
|
editorProps: {
|
|
@@ -3338,7 +3343,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
3338
3343
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
3339
3344
|
}
|
|
3340
3345
|
}], [{
|
|
3341
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
3346
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
3342
3347
|
option: 'xAxisMajorTickInterval',
|
|
3343
3348
|
editor: 'editor.number',
|
|
3344
3349
|
showEditor: function showEditor(_ref9) {
|
|
@@ -3346,27 +3351,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
3346
3351
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
3347
3352
|
}
|
|
3348
3353
|
}], [{
|
|
3349
|
-
label: i18n_1._('Minor gridlines'),
|
|
3354
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
3350
3355
|
option: 'showXMinorGridLines',
|
|
3351
3356
|
editor: 'editor.checkbox'
|
|
3352
3357
|
}], [{
|
|
3353
|
-
label: i18n_1._('Minor tick visibility'),
|
|
3358
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
3354
3359
|
option: 'xAxisMinorTickVisibility',
|
|
3355
3360
|
editor: 'editor.radioBar',
|
|
3356
3361
|
editorProps: {
|
|
3357
3362
|
values: [{
|
|
3358
|
-
label: i18n_1._('Auto'),
|
|
3363
|
+
label: (0, i18n_1._)('Auto'),
|
|
3359
3364
|
value: 'auto'
|
|
3360
3365
|
}, {
|
|
3361
|
-
label: i18n_1._('Show'),
|
|
3366
|
+
label: (0, i18n_1._)('Show'),
|
|
3362
3367
|
value: 'show'
|
|
3363
3368
|
}, {
|
|
3364
|
-
label: i18n_1._('Hide'),
|
|
3369
|
+
label: (0, i18n_1._)('Hide'),
|
|
3365
3370
|
value: 'hide'
|
|
3366
3371
|
}]
|
|
3367
3372
|
}
|
|
3368
3373
|
}], [{
|
|
3369
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
3374
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
3370
3375
|
option: 'xAxisMinorTickSize',
|
|
3371
3376
|
editor: 'editor.slider',
|
|
3372
3377
|
editorProps: {
|
|
@@ -3384,7 +3389,7 @@ exports.default = AxesChartXGridAndLabels;
|
|
|
3384
3389
|
|
|
3385
3390
|
/***/ }),
|
|
3386
3391
|
|
|
3387
|
-
/***/
|
|
3392
|
+
/***/ 78:
|
|
3388
3393
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3389
3394
|
|
|
3390
3395
|
"use strict";
|
|
@@ -3395,13 +3400,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3395
3400
|
});
|
|
3396
3401
|
var i18n_1 = __webpack_require__(2);
|
|
3397
3402
|
var AxesChartYGridAndLabels = {
|
|
3398
|
-
label: i18n_1._('Y-axis grid and labels'),
|
|
3403
|
+
label: (0, i18n_1._)('Y-axis grid and labels'),
|
|
3399
3404
|
layout: [[{
|
|
3400
|
-
label: i18n_1._('Axis title'),
|
|
3405
|
+
label: (0, i18n_1._)('Axis title'),
|
|
3401
3406
|
option: 'yAxisTitleVisibility',
|
|
3402
3407
|
editor: 'editor.toggle'
|
|
3403
3408
|
}], [{
|
|
3404
|
-
label: i18n_1._('Axis title text'),
|
|
3409
|
+
label: (0, i18n_1._)('Axis title text'),
|
|
3405
3410
|
option: 'yAxisTitleText',
|
|
3406
3411
|
editor: 'editor.text',
|
|
3407
3412
|
showEditor: function showEditor(_ref) {
|
|
@@ -3409,36 +3414,36 @@ var AxesChartYGridAndLabels = {
|
|
|
3409
3414
|
return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
|
|
3410
3415
|
}
|
|
3411
3416
|
}], [{
|
|
3412
|
-
label: i18n_1._('Scale'),
|
|
3417
|
+
label: (0, i18n_1._)('Scale'),
|
|
3413
3418
|
option: 'yAxisScale',
|
|
3414
3419
|
editor: 'editor.radioBar',
|
|
3415
3420
|
editorProps: {
|
|
3416
3421
|
values: [{
|
|
3417
|
-
label: i18n_1._('Linear'),
|
|
3422
|
+
label: (0, i18n_1._)('Linear'),
|
|
3418
3423
|
value: 'linear'
|
|
3419
3424
|
}, {
|
|
3420
|
-
label: i18n_1._('Log'),
|
|
3425
|
+
label: (0, i18n_1._)('Log'),
|
|
3421
3426
|
value: 'log'
|
|
3422
3427
|
}]
|
|
3423
3428
|
}
|
|
3424
3429
|
}], [{
|
|
3425
|
-
label: i18n_1._('Label visibility'),
|
|
3430
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
3426
3431
|
option: 'yAxisLabelVisibility',
|
|
3427
3432
|
editor: 'editor.radioBar',
|
|
3428
3433
|
editorProps: {
|
|
3429
3434
|
values: [{
|
|
3430
|
-
label: i18n_1._('Auto'),
|
|
3435
|
+
label: (0, i18n_1._)('Auto'),
|
|
3431
3436
|
value: 'auto'
|
|
3432
3437
|
}, {
|
|
3433
|
-
label: i18n_1._('Show'),
|
|
3438
|
+
label: (0, i18n_1._)('Show'),
|
|
3434
3439
|
value: 'show'
|
|
3435
3440
|
}, {
|
|
3436
|
-
label: i18n_1._('Hide'),
|
|
3441
|
+
label: (0, i18n_1._)('Hide'),
|
|
3437
3442
|
value: 'hide'
|
|
3438
3443
|
}]
|
|
3439
3444
|
}
|
|
3440
3445
|
}], [{
|
|
3441
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
3446
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
3442
3447
|
option: 'yAxisAbbreviation',
|
|
3443
3448
|
editor: 'editor.checkbox',
|
|
3444
3449
|
showEditor: function showEditor(_ref2) {
|
|
@@ -3446,47 +3451,47 @@ var AxesChartYGridAndLabels = {
|
|
|
3446
3451
|
return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
|
|
3447
3452
|
}
|
|
3448
3453
|
}], [{
|
|
3449
|
-
label: i18n_1._('Include zero'),
|
|
3454
|
+
label: (0, i18n_1._)('Include zero'),
|
|
3450
3455
|
option: 'showYAxisWithZero',
|
|
3451
3456
|
editor: 'editor.checkbox'
|
|
3452
3457
|
}], [{
|
|
3453
|
-
label: i18n_1._('Extend to whole grid'),
|
|
3458
|
+
label: (0, i18n_1._)('Extend to whole grid'),
|
|
3454
3459
|
option: 'showYAxisExtendedRange',
|
|
3455
3460
|
editor: 'editor.checkbox'
|
|
3456
3461
|
}], [{
|
|
3457
|
-
label: i18n_1._('Minimum axis value'),
|
|
3462
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
3458
3463
|
option: 'yAxisMin',
|
|
3459
3464
|
editor: 'editor.number'
|
|
3460
3465
|
}, {
|
|
3461
|
-
label: i18n_1._('Maximum axis value'),
|
|
3466
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
3462
3467
|
option: 'yAxisMax',
|
|
3463
3468
|
editor: 'editor.number'
|
|
3464
3469
|
}], [{
|
|
3465
|
-
label: i18n_1._('Axis line visibility'),
|
|
3470
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
3466
3471
|
option: 'yAxisLineVisibility',
|
|
3467
3472
|
editor: 'editor.checkbox'
|
|
3468
3473
|
}], [{
|
|
3469
|
-
label: i18n_1._('Major gridlines'),
|
|
3474
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
3470
3475
|
option: 'showYMajorGridLines',
|
|
3471
3476
|
editor: 'editor.checkbox'
|
|
3472
3477
|
}], [{
|
|
3473
|
-
label: i18n_1._('Major tick visibility'),
|
|
3478
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
3474
3479
|
option: 'yAxisMajorTickVisibility',
|
|
3475
3480
|
editor: 'editor.radioBar',
|
|
3476
3481
|
editorProps: {
|
|
3477
3482
|
values: [{
|
|
3478
|
-
label: i18n_1._('Auto'),
|
|
3483
|
+
label: (0, i18n_1._)('Auto'),
|
|
3479
3484
|
value: 'auto'
|
|
3480
3485
|
}, {
|
|
3481
|
-
label: i18n_1._('Show'),
|
|
3486
|
+
label: (0, i18n_1._)('Show'),
|
|
3482
3487
|
value: 'show'
|
|
3483
3488
|
}, {
|
|
3484
|
-
label: i18n_1._('Hide'),
|
|
3489
|
+
label: (0, i18n_1._)('Hide'),
|
|
3485
3490
|
value: 'hide'
|
|
3486
3491
|
}]
|
|
3487
3492
|
}
|
|
3488
3493
|
}], [{
|
|
3489
|
-
label: i18n_1._('Major tick size (px)'),
|
|
3494
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
3490
3495
|
option: 'yAxisMajorTickSize',
|
|
3491
3496
|
editor: 'editor.slider',
|
|
3492
3497
|
editorProps: {
|
|
@@ -3499,7 +3504,7 @@ var AxesChartYGridAndLabels = {
|
|
|
3499
3504
|
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
3500
3505
|
}
|
|
3501
3506
|
}], [{
|
|
3502
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
3507
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
3503
3508
|
option: 'yAxisMajorTickInterval',
|
|
3504
3509
|
editor: 'editor.number',
|
|
3505
3510
|
showEditor: function showEditor(_ref4) {
|
|
@@ -3507,27 +3512,27 @@ var AxesChartYGridAndLabels = {
|
|
|
3507
3512
|
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
3508
3513
|
}
|
|
3509
3514
|
}], [{
|
|
3510
|
-
label: i18n_1._('Minor gridlines'),
|
|
3515
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
3511
3516
|
option: 'showYMinorGridLines',
|
|
3512
3517
|
editor: 'editor.checkbox'
|
|
3513
3518
|
}], [{
|
|
3514
|
-
label: i18n_1._('Minor tick visibility'),
|
|
3519
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
3515
3520
|
option: 'yAxisMinorTickVisibility',
|
|
3516
3521
|
editor: 'editor.radioBar',
|
|
3517
3522
|
editorProps: {
|
|
3518
3523
|
values: [{
|
|
3519
|
-
label: i18n_1._('Auto'),
|
|
3524
|
+
label: (0, i18n_1._)('Auto'),
|
|
3520
3525
|
value: 'auto'
|
|
3521
3526
|
}, {
|
|
3522
|
-
label: i18n_1._('Show'),
|
|
3527
|
+
label: (0, i18n_1._)('Show'),
|
|
3523
3528
|
value: 'show'
|
|
3524
3529
|
}, {
|
|
3525
|
-
label: i18n_1._('Hide'),
|
|
3530
|
+
label: (0, i18n_1._)('Hide'),
|
|
3526
3531
|
value: 'hide'
|
|
3527
3532
|
}]
|
|
3528
3533
|
}
|
|
3529
3534
|
}], [{
|
|
3530
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
3535
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
3531
3536
|
option: 'yAxisMinorTickSize',
|
|
3532
3537
|
editor: 'editor.slider',
|
|
3533
3538
|
editorProps: {
|