@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/Bar.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 179);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
@@ -212,14 +212,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
|
212
212
|
var width = _ref.width;
|
|
213
213
|
return {
|
|
214
214
|
style: {
|
|
215
|
-
width: style_1.toPx(width)
|
|
215
|
+
width: (0, style_1.toPx)(width)
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
}).withConfig({
|
|
219
219
|
displayName: "FixedSizeContainer__Item",
|
|
220
220
|
componentId: "sc-1yhgpod-0"
|
|
221
221
|
})(["position:relative;background-color:", "};"], function (props) {
|
|
222
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
222
|
+
return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
223
223
|
});
|
|
224
224
|
// Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
225
225
|
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
@@ -227,16 +227,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
|
227
227
|
height = _ref2.height;
|
|
228
228
|
return {
|
|
229
229
|
style: Object.assign(Object.assign({}, width && {
|
|
230
|
-
width: style_1.toPx(width)
|
|
230
|
+
width: (0, style_1.toPx)(width)
|
|
231
231
|
}), height && {
|
|
232
|
-
height: style_1.toPx(height)
|
|
232
|
+
height: (0, style_1.toPx)(height)
|
|
233
233
|
})
|
|
234
234
|
};
|
|
235
235
|
}).withConfig({
|
|
236
236
|
displayName: "FixedSizeContainer__FixSizeItem",
|
|
237
237
|
componentId: "sc-1yhgpod-1"
|
|
238
238
|
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
239
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
239
|
+
return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
240
240
|
});
|
|
241
241
|
var ItemContent = styled_components_1.default.div.withConfig({
|
|
242
242
|
displayName: "FixedSizeContainer__ItemContent",
|
|
@@ -260,7 +260,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
260
260
|
}
|
|
261
261
|
return React.createElement(FixSizeItem, {
|
|
262
262
|
"data-test": "fix-size-item",
|
|
263
|
-
"data-splunk-visualization-version": "
|
|
263
|
+
"data-splunk-visualization-version": "26.0.0 - 2f7458907",
|
|
264
264
|
width: width,
|
|
265
265
|
height: height,
|
|
266
266
|
backgroundColor: backgroundColor
|
|
@@ -499,8 +499,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
|
499
499
|
*/
|
|
500
500
|
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
501
501
|
return presets.find(function (preset) {
|
|
502
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
503
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
502
|
+
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
503
|
+
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
504
504
|
var presetContextKeys = Object.keys(presetContext);
|
|
505
505
|
var presetOptionKeys = Object.keys(presetOptions);
|
|
506
506
|
// all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
@@ -517,7 +517,7 @@ exports.getInitialPreset = getInitialPreset;
|
|
|
517
517
|
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
518
518
|
*/
|
|
519
519
|
function generatePrecisionValues(numPrecisionValues) {
|
|
520
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
520
|
+
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
521
521
|
return {
|
|
522
522
|
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
523
523
|
value: i
|
|
@@ -559,35 +559,41 @@ module.exports = require("@splunk/themes/pick");
|
|
|
559
559
|
/* 25 */
|
|
560
560
|
/***/ (function(module, exports) {
|
|
561
561
|
|
|
562
|
-
module.exports = require("@splunk/
|
|
562
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
563
563
|
|
|
564
564
|
/***/ }),
|
|
565
565
|
/* 26 */
|
|
566
566
|
/***/ (function(module, exports) {
|
|
567
567
|
|
|
568
|
-
module.exports = require("@splunk/
|
|
568
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
569
569
|
|
|
570
570
|
/***/ }),
|
|
571
571
|
/* 27 */
|
|
572
572
|
/***/ (function(module, exports) {
|
|
573
573
|
|
|
574
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
574
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
575
575
|
|
|
576
576
|
/***/ }),
|
|
577
577
|
/* 28 */
|
|
578
578
|
/***/ (function(module, exports) {
|
|
579
579
|
|
|
580
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
580
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
581
581
|
|
|
582
582
|
/***/ }),
|
|
583
583
|
/* 29 */
|
|
584
584
|
/***/ (function(module, exports) {
|
|
585
585
|
|
|
586
|
+
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
587
|
+
|
|
588
|
+
/***/ }),
|
|
589
|
+
/* 30 */
|
|
590
|
+
/***/ (function(module, exports) {
|
|
591
|
+
|
|
586
592
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
587
593
|
|
|
588
594
|
/***/ }),
|
|
589
|
-
/*
|
|
590
|
-
/*
|
|
595
|
+
/* 31 */,
|
|
596
|
+
/* 32 */
|
|
591
597
|
/***/ (function(module, exports, __webpack_require__) {
|
|
592
598
|
|
|
593
599
|
"use strict";
|
|
@@ -611,9 +617,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
|
|
|
611
617
|
*/
|
|
612
618
|
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
613
619
|
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
614
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
620
|
+
var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
|
|
615
621
|
var noData = data === undefined;
|
|
616
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
622
|
+
var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
|
|
617
623
|
var noFields = fields === undefined;
|
|
618
624
|
return loading || noData || noFields;
|
|
619
625
|
};
|
|
@@ -654,7 +660,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
|
|
|
654
660
|
width: width,
|
|
655
661
|
height: height,
|
|
656
662
|
level: "warning",
|
|
657
|
-
message: i18n_1._('No DataSource Connected')
|
|
663
|
+
message: (0, i18n_1._)('No DataSource Connected')
|
|
658
664
|
});
|
|
659
665
|
};
|
|
660
666
|
IconPlaceholder.propTypes = propTypes;
|
|
@@ -662,13 +668,7 @@ IconPlaceholder.defaultProps = {
|
|
|
662
668
|
width: '100%',
|
|
663
669
|
height: 250
|
|
664
670
|
};
|
|
665
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
666
|
-
|
|
667
|
-
/***/ }),
|
|
668
|
-
/* 32 */
|
|
669
|
-
/***/ (function(module, exports) {
|
|
670
|
-
|
|
671
|
-
module.exports = require("@splunk/ui-utils/id");
|
|
671
|
+
exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
672
672
|
|
|
673
673
|
/***/ }),
|
|
674
674
|
/* 33 */
|
|
@@ -702,7 +702,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
702
702
|
};
|
|
703
703
|
var onSort;
|
|
704
704
|
if (typeof onRequestParamsChange === 'function') {
|
|
705
|
-
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
705
|
+
if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
|
|
706
706
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
707
707
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
708
708
|
}
|
|
@@ -711,7 +711,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
711
711
|
var sortKey = _ref2.sortKey,
|
|
712
712
|
sortDir = _ref2.sortDir;
|
|
713
713
|
if (typeof sortKey === 'string') {
|
|
714
|
-
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
714
|
+
var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
715
715
|
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
716
716
|
offset: 0,
|
|
717
717
|
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
@@ -761,7 +761,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
761
761
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
762
762
|
var page = _ref2.page,
|
|
763
763
|
countArg = _ref2.count;
|
|
764
|
-
var newParams = lodash_1.cloneDeep(requestParams);
|
|
764
|
+
var newParams = (0, lodash_1.cloneDeep)(requestParams);
|
|
765
765
|
if (typeof countArg === 'number') {
|
|
766
766
|
newParams.count = countArg;
|
|
767
767
|
newParams.offset = 0;
|
|
@@ -823,16 +823,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
823
823
|
var React = __webpack_require__(1);
|
|
824
824
|
var lodash_1 = __webpack_require__(3);
|
|
825
825
|
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
826
|
-
var Options_1 = __webpack_require__(
|
|
826
|
+
var Options_1 = __webpack_require__(30);
|
|
827
827
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
828
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
828
|
+
var TimezoneContext_1 = __webpack_require__(26);
|
|
829
829
|
var moment_1 = __webpack_require__(39);
|
|
830
830
|
var FeatureFlagContext_1 = __webpack_require__(21);
|
|
831
831
|
var styled_components_1 = __webpack_require__(4);
|
|
832
|
-
var hocUtils_1 = __webpack_require__(
|
|
833
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
832
|
+
var hocUtils_1 = __webpack_require__(27);
|
|
833
|
+
var JSONSchemaUtils_1 = __webpack_require__(28);
|
|
834
834
|
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
835
|
-
var id_1 = __webpack_require__(
|
|
835
|
+
var id_1 = __webpack_require__(25);
|
|
836
836
|
var SplunkVisualization_1 = __webpack_require__(41);
|
|
837
837
|
var VizBehavior_1 = __webpack_require__(6);
|
|
838
838
|
var getSorting_1 = __webpack_require__(33);
|
|
@@ -853,8 +853,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
853
853
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
854
854
|
disableEditModeCover = opts.disableEditModeCover,
|
|
855
855
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
856
|
-
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
857
|
-
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
856
|
+
var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
|
|
857
|
+
var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
|
|
858
858
|
var DashboardViz = function DashboardViz(props) {
|
|
859
859
|
var _a;
|
|
860
860
|
var mode = props.mode,
|
|
@@ -889,19 +889,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
889
889
|
return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
|
|
890
890
|
};
|
|
891
891
|
var bgColorFromTheme = themeFunc('defaultBackgroundColor');
|
|
892
|
-
var
|
|
892
|
+
var _ref = (0, getSettingsFromThemedProps_1.default)({
|
|
893
893
|
theme: theme
|
|
894
894
|
}),
|
|
895
|
-
currentThemeFamily =
|
|
896
|
-
currentThemeColorScheme =
|
|
897
|
-
currentThemeDensity =
|
|
895
|
+
currentThemeFamily = _ref.family,
|
|
896
|
+
currentThemeColorScheme = _ref.colorScheme,
|
|
897
|
+
currentThemeDensity = _ref.density;
|
|
898
898
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
899
899
|
var _React$useState = React.useState({}),
|
|
900
900
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
901
901
|
evaluatedOptionsAsync = _React$useState2[0],
|
|
902
902
|
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
903
903
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
904
|
-
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
|
|
904
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
|
|
905
905
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
906
906
|
visualizationID = _React$useState4[0];
|
|
907
907
|
var _React$useState5 = React.useState({}),
|
|
@@ -912,16 +912,17 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
912
912
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
913
913
|
dataFramesInState = _React$useState8[0],
|
|
914
914
|
setDataFramesInState = _React$useState8[1];
|
|
915
|
-
var _React$useState9 = React.useState(Boolean(featureFlagContext
|
|
915
|
+
var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
|
|
916
916
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
917
917
|
useAsyncEvaluatedOptions = _React$useState10[0],
|
|
918
918
|
setUseAsyncEvaluatedOptions = _React$useState10[1];
|
|
919
|
-
|
|
919
|
+
var isMounted = React.useRef(true);
|
|
920
|
+
evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
|
|
920
921
|
try {
|
|
921
922
|
if (useAsyncEvaluatedOptions) {
|
|
922
923
|
var optionsToEvaluate = {
|
|
923
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
924
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
924
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
925
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
925
926
|
};
|
|
926
927
|
var asyncDynamicOptionsEvaluatorParams = {
|
|
927
928
|
visualizationID: visualizationID,
|
|
@@ -932,10 +933,10 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
932
933
|
};
|
|
933
934
|
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
934
935
|
setEvaluatedOptionsAsync(results.results);
|
|
935
|
-
}).catch(function (
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
936
|
+
}).catch(function () {
|
|
937
|
+
if (isMounted.current) {
|
|
938
|
+
setUseAsyncEvaluatedOptions(false);
|
|
939
|
+
}
|
|
939
940
|
});
|
|
940
941
|
} else {
|
|
941
942
|
var dataFrames = dataFramesInState;
|
|
@@ -945,8 +946,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
945
946
|
setDataFramesInState(dataFrames);
|
|
946
947
|
}
|
|
947
948
|
return Options_1.Options.evaluate({
|
|
948
|
-
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
949
|
-
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
949
|
+
context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
|
|
950
|
+
options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
|
|
950
951
|
}, dataSources, themeFunc, dataFrames);
|
|
951
952
|
}
|
|
952
953
|
} catch (e) {
|
|
@@ -975,6 +976,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
975
976
|
React.useEffect(function () {
|
|
976
977
|
return function () {
|
|
977
978
|
if (useAsyncEvaluatedOptions) {
|
|
979
|
+
isMounted.current = false;
|
|
978
980
|
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
979
981
|
}
|
|
980
982
|
};
|
|
@@ -984,7 +986,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
984
986
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
985
987
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
986
988
|
supports = vizConfig.supports;
|
|
987
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
989
|
+
var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
|
|
988
990
|
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
|
|
989
991
|
) {
|
|
990
992
|
return React.createElement(MissingPropsMessage_1.default, {
|
|
@@ -1000,7 +1002,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1000
1002
|
if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
|
|
1001
1003
|
var supportedEvents = vizConfig.events;
|
|
1002
1004
|
Object.keys(supportedEvents).forEach(function (eventName) {
|
|
1003
|
-
var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
|
|
1005
|
+
var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
|
|
1004
1006
|
eventCallbackProps[eventCallbackPropName] = null;
|
|
1005
1007
|
// todo: refactor single value and single value icon to send payload from viz
|
|
1006
1008
|
// then remove these lines
|
|
@@ -1043,19 +1045,19 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1043
1045
|
*/
|
|
1044
1046
|
var dataSourceMetadata = {};
|
|
1045
1047
|
var OptionKey = 'paginateDataSourceKey';
|
|
1046
|
-
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1047
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1048
|
-
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
1049
|
-
var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
1048
|
+
var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1049
|
+
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
|
|
1050
|
+
var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
1051
|
+
var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
|
|
1050
1052
|
var handleRequestParamsChange = function handleRequestParamsChange(payload) {
|
|
1051
1053
|
return onRequestParamsChange(paginateDataSourceKey, payload);
|
|
1052
1054
|
};
|
|
1053
|
-
var sortParams = getSorting_1.getSortingParams({
|
|
1055
|
+
var sortParams = (0, getSorting_1.getSortingParams)({
|
|
1054
1056
|
requestParams: requestParams,
|
|
1055
1057
|
meta: meta,
|
|
1056
1058
|
onRequestParamsChange: handleRequestParamsChange
|
|
1057
1059
|
});
|
|
1058
|
-
var paginatorParams = getPagination_1.getPaginationParams({
|
|
1060
|
+
var paginatorParams = (0, getPagination_1.getPaginationParams)({
|
|
1059
1061
|
requestParams: requestParams,
|
|
1060
1062
|
meta: meta,
|
|
1061
1063
|
onRequestParamsChange: handleRequestParamsChange
|
|
@@ -1083,7 +1085,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1083
1085
|
// attach viz config
|
|
1084
1086
|
DashboardViz.config = vizConfig;
|
|
1085
1087
|
// @ts-ignore: TODO fix sc upgrade TS issues
|
|
1086
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1088
|
+
return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1087
1089
|
};
|
|
1088
1090
|
exports.default = withDashboardViz;
|
|
1089
1091
|
|
|
@@ -1312,8 +1314,8 @@ var lodash_1 = __webpack_require__(3);
|
|
|
1312
1314
|
* @param dependencies an array of dependencies
|
|
1313
1315
|
*/
|
|
1314
1316
|
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
1315
|
-
var ref = react_1.useRef();
|
|
1316
|
-
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
1317
|
+
var ref = (0, react_1.useRef)();
|
|
1318
|
+
if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
|
|
1317
1319
|
ref.current = {
|
|
1318
1320
|
dependencies: dependencies,
|
|
1319
1321
|
value: fn()
|
|
@@ -1356,7 +1358,7 @@ exports.isMissing = isMissing;
|
|
|
1356
1358
|
*/
|
|
1357
1359
|
var missingKeys = function missingKeys(keys, target) {
|
|
1358
1360
|
return keys.filter(function (k) {
|
|
1359
|
-
return exports.isMissing(target[k]);
|
|
1361
|
+
return (0, exports.isMissing)(target[k]);
|
|
1360
1362
|
});
|
|
1361
1363
|
};
|
|
1362
1364
|
exports.missingKeys = missingKeys;
|
|
@@ -1380,7 +1382,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
|
1380
1382
|
"data-test": "message",
|
|
1381
1383
|
width: width,
|
|
1382
1384
|
height: height,
|
|
1383
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
1385
|
+
message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
|
|
1384
1386
|
});
|
|
1385
1387
|
};
|
|
1386
1388
|
exports.MissingPropsMessage = MissingPropsMessage;
|
|
@@ -1389,7 +1391,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1389
1391
|
width: '100%',
|
|
1390
1392
|
height: 250
|
|
1391
1393
|
};
|
|
1392
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1394
|
+
exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
|
|
1393
1395
|
|
|
1394
1396
|
/***/ }),
|
|
1395
1397
|
/* 46 */
|
|
@@ -1409,7 +1411,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1409
1411
|
componentId: "sc-1gsbnxb-0"
|
|
1410
1412
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1411
1413
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1412
|
-
'data-splunk-visualization-version': "
|
|
1414
|
+
'data-splunk-visualization-version': "26.0.0 - 2f7458907"
|
|
1413
1415
|
}).withConfig({
|
|
1414
1416
|
displayName: "withEditModeCover__Blocker",
|
|
1415
1417
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1428,7 +1430,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1428
1430
|
"data-test": "edit-mode-cover"
|
|
1429
1431
|
}));
|
|
1430
1432
|
};
|
|
1431
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1433
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
1432
1434
|
Wrapper: Wrapper,
|
|
1433
1435
|
Visualization: Visualization
|
|
1434
1436
|
});
|
|
@@ -1449,7 +1451,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1449
1451
|
var React = __webpack_require__(1);
|
|
1450
1452
|
var colorUtils_1 = __webpack_require__(12);
|
|
1451
1453
|
var variables_1 = __webpack_require__(11);
|
|
1452
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1454
|
+
var IconPlaceholder_1 = __webpack_require__(32);
|
|
1453
1455
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1454
1456
|
var hocUtils_1 = __webpack_require__(15);
|
|
1455
1457
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
@@ -1464,7 +1466,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1464
1466
|
height = props.height,
|
|
1465
1467
|
width = props.width;
|
|
1466
1468
|
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1467
|
-
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);
|
|
1469
|
+
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);
|
|
1468
1470
|
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1469
1471
|
var iconColor = variables_1.default.contentColorActive(props);
|
|
1470
1472
|
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
@@ -1479,7 +1481,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1479
1481
|
}
|
|
1480
1482
|
return React.createElement(Visualization, Object.assign({}, props));
|
|
1481
1483
|
};
|
|
1482
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1484
|
+
(0, hocUtils_1.extendStaticWrapperProps)({
|
|
1483
1485
|
Wrapper: Wrapper,
|
|
1484
1486
|
Visualization: Visualization
|
|
1485
1487
|
});
|
|
@@ -1489,13 +1491,13 @@ exports.default = withPlaceholder;
|
|
|
1489
1491
|
|
|
1490
1492
|
/***/ }),
|
|
1491
1493
|
/* 48 */,
|
|
1492
|
-
/* 49
|
|
1494
|
+
/* 49 */,
|
|
1495
|
+
/* 50 */
|
|
1493
1496
|
/***/ (function(module, exports) {
|
|
1494
1497
|
|
|
1495
1498
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1496
1499
|
|
|
1497
1500
|
/***/ }),
|
|
1498
|
-
/* 50 */,
|
|
1499
1501
|
/* 51 */
|
|
1500
1502
|
/***/ (function(module, exports) {
|
|
1501
1503
|
|
|
@@ -1523,7 +1525,7 @@ var background = function background(_ref) {
|
|
|
1523
1525
|
themes = _ref.themes,
|
|
1524
1526
|
labelPosition = _ref.labelPosition;
|
|
1525
1527
|
return [{
|
|
1526
|
-
label: i18n_1._(label || 'Background'),
|
|
1528
|
+
label: (0, i18n_1._)(label || 'Background'),
|
|
1527
1529
|
option: 'backgroundColor',
|
|
1528
1530
|
editor: 'editor.color',
|
|
1529
1531
|
editorProps: {
|
|
@@ -1537,6 +1539,12 @@ exports.default = background;
|
|
|
1537
1539
|
/***/ }),
|
|
1538
1540
|
/* 54 */,
|
|
1539
1541
|
/* 55 */
|
|
1542
|
+
/***/ (function(module, exports) {
|
|
1543
|
+
|
|
1544
|
+
module.exports = require("@splunk/charting-bundle");
|
|
1545
|
+
|
|
1546
|
+
/***/ }),
|
|
1547
|
+
/* 56 */
|
|
1540
1548
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1541
1549
|
|
|
1542
1550
|
"use strict";
|
|
@@ -1612,9 +1620,9 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
|
|
|
1612
1620
|
return function (options) {
|
|
1613
1621
|
var convertedOptions = Object.assign({}, options);
|
|
1614
1622
|
Object.keys(optionValuesSCMapping).forEach(function (key) {
|
|
1615
|
-
if (lodash_1.has(options, key)) {
|
|
1623
|
+
if ((0, lodash_1.has)(options, key)) {
|
|
1616
1624
|
var updatedValue = optionValuesSCMapping[key][options[key]];
|
|
1617
|
-
if (!lodash_1.isUndefined(updatedValue)) {
|
|
1625
|
+
if (!(0, lodash_1.isUndefined)(updatedValue)) {
|
|
1618
1626
|
convertedOptions[key] = updatedValue;
|
|
1619
1627
|
}
|
|
1620
1628
|
}
|
|
@@ -1635,7 +1643,7 @@ var convertY2AxisOptions = function convertY2AxisOptions(_a) {
|
|
|
1635
1643
|
var convertedOptions = Object.assign({}, originalOptions);
|
|
1636
1644
|
if (y2Fields) {
|
|
1637
1645
|
convertedOptions['axisY2.enabled'] = true;
|
|
1638
|
-
convertedOptions['axisY2.fields'] = lodash_1.isArray(y2Fields) ? y2Fields.filter(function (name) {
|
|
1646
|
+
convertedOptions['axisY2.fields'] = (0, lodash_1.isArray)(y2Fields) ? y2Fields.filter(function (name) {
|
|
1639
1647
|
return name;
|
|
1640
1648
|
}).join(',') : y2Fields;
|
|
1641
1649
|
}
|
|
@@ -1677,7 +1685,7 @@ exports.isMultiSeriesData = isMultiSeriesData;
|
|
|
1677
1685
|
* @return {array}
|
|
1678
1686
|
*/
|
|
1679
1687
|
var toArrayForSeries = function toArrayForSeries(data, value) {
|
|
1680
|
-
return exports.isMultiSeriesData(data) ? value : [value];
|
|
1688
|
+
return (0, exports.isMultiSeriesData)(data) ? value : [value];
|
|
1681
1689
|
};
|
|
1682
1690
|
exports.toArrayForSeries = toArrayForSeries;
|
|
1683
1691
|
var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
@@ -1689,10 +1697,10 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
1689
1697
|
yFields = _ref2.yFields,
|
|
1690
1698
|
y2 = _ref2.y2,
|
|
1691
1699
|
y2Fields = _ref2.y2Fields;
|
|
1692
|
-
var columns = [x.map(String)].concat(_toConsumableArray(exports.toArrayForSeries(y, y).map(function (series) {
|
|
1700
|
+
var columns = [x.map(String)].concat(_toConsumableArray((0, exports.toArrayForSeries)(y, y).map(function (series) {
|
|
1693
1701
|
return series.map(String);
|
|
1694
1702
|
})));
|
|
1695
|
-
var yFieldsArray = exports.toArrayForSeries(y, yFields);
|
|
1703
|
+
var yFieldsArray = (0, exports.toArrayForSeries)(y, yFields);
|
|
1696
1704
|
var fields = [{
|
|
1697
1705
|
name: xField
|
|
1698
1706
|
}].concat(_toConsumableArray(yFieldsArray.map(function (field) {
|
|
@@ -1704,8 +1712,8 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
1704
1712
|
// when y & y2 options are configured with different (mutually exclusive) series
|
|
1705
1713
|
// y2 columns need to be added to columns
|
|
1706
1714
|
if (y2Fields) {
|
|
1707
|
-
var y2FieldsArray = exports.toArrayForSeries(y2, y2Fields);
|
|
1708
|
-
var y2AsArray = exports.toArrayForSeries(y2, y2).map(function (series) {
|
|
1715
|
+
var y2FieldsArray = (0, exports.toArrayForSeries)(y2, y2Fields);
|
|
1716
|
+
var y2AsArray = (0, exports.toArrayForSeries)(y2, y2).map(function (series) {
|
|
1709
1717
|
return series === null || series === void 0 ? void 0 : series.map(String);
|
|
1710
1718
|
});
|
|
1711
1719
|
y2FieldsArray.forEach(function (y2Field, index) {
|
|
@@ -1724,12 +1732,6 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
|
|
|
1724
1732
|
};
|
|
1725
1733
|
exports.constructFieldsAndColumns = constructFieldsAndColumns;
|
|
1726
1734
|
|
|
1727
|
-
/***/ }),
|
|
1728
|
-
/* 56 */
|
|
1729
|
-
/***/ (function(module, exports) {
|
|
1730
|
-
|
|
1731
|
-
module.exports = require("@splunk/charting-bundle");
|
|
1732
|
-
|
|
1733
1735
|
/***/ }),
|
|
1734
1736
|
/* 57 */
|
|
1735
1737
|
/***/ (function(module, exports) {
|
|
@@ -1743,7 +1745,8 @@ module.exports = require("@splunk/themes/useSplunkTheme");
|
|
|
1743
1745
|
/* 61 */,
|
|
1744
1746
|
/* 62 */,
|
|
1745
1747
|
/* 63 */,
|
|
1746
|
-
/* 64
|
|
1748
|
+
/* 64 */,
|
|
1749
|
+
/* 65 */
|
|
1747
1750
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1748
1751
|
|
|
1749
1752
|
"use strict";
|
|
@@ -1760,16 +1763,16 @@ var visualization_color_palettes_1 = __webpack_require__(51);
|
|
|
1760
1763
|
var react_1 = __webpack_require__(1);
|
|
1761
1764
|
var React = __webpack_require__(1);
|
|
1762
1765
|
var T = __webpack_require__(0);
|
|
1763
|
-
var react_event_listener_1 = __webpack_require__(
|
|
1764
|
-
__webpack_require__(
|
|
1765
|
-
var charting_bundle_1 = __webpack_require__(
|
|
1766
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1766
|
+
var react_event_listener_1 = __webpack_require__(66);
|
|
1767
|
+
__webpack_require__(67); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
|
|
1768
|
+
var charting_bundle_1 = __webpack_require__(55);
|
|
1769
|
+
var TimezoneContext_1 = __webpack_require__(26);
|
|
1767
1770
|
var style_1 = __webpack_require__(14);
|
|
1768
1771
|
var styled_components_1 = __webpack_require__(4);
|
|
1769
1772
|
var Message_1 = __webpack_require__(10);
|
|
1770
1773
|
var useSplunkTheme_1 = __webpack_require__(57);
|
|
1771
|
-
var themeUtils_1 = __webpack_require__(
|
|
1772
|
-
var ChartingApi_1 = __webpack_require__(
|
|
1774
|
+
var themeUtils_1 = __webpack_require__(68);
|
|
1775
|
+
var ChartingApi_1 = __webpack_require__(69);
|
|
1773
1776
|
exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
1774
1777
|
var changedOptions = function changedOptions(curOptions, nextOptions) {
|
|
1775
1778
|
return Object.keys(curOptions).filter(function (key) {
|
|
@@ -1779,10 +1782,9 @@ var changedOptions = function changedOptions(curOptions, nextOptions) {
|
|
|
1779
1782
|
}));
|
|
1780
1783
|
};
|
|
1781
1784
|
exports.changedOptions = changedOptions;
|
|
1782
|
-
charting_bundle_1.default.enableScaledEvents();
|
|
1783
1785
|
function usePrevious(value) {
|
|
1784
|
-
var ref = react_1.useRef();
|
|
1785
|
-
react_1.useEffect(function () {
|
|
1786
|
+
var ref = (0, react_1.useRef)();
|
|
1787
|
+
(0, react_1.useEffect)(function () {
|
|
1786
1788
|
ref.current = value;
|
|
1787
1789
|
});
|
|
1788
1790
|
return ref.current;
|
|
@@ -1795,7 +1797,7 @@ var canUpdateInPlace = function canUpdateInPlace(curOptions, nextOptions) {
|
|
|
1795
1797
|
}
|
|
1796
1798
|
return !exports.NO_INPLACE_PROPS.some(function (p) {
|
|
1797
1799
|
return curOptions[p] !== nextOptions[p];
|
|
1798
|
-
}) && !exports.changedOptions(curOptions, nextOptions).some(function (p) {
|
|
1800
|
+
}) && !(0, exports.changedOptions)(curOptions, nextOptions).some(function (p) {
|
|
1799
1801
|
return p.toLowerCase().endsWith('color');
|
|
1800
1802
|
});
|
|
1801
1803
|
};
|
|
@@ -1831,7 +1833,7 @@ var ChartingContainer = styled_components_1.default.div.attrs(function (props) {
|
|
|
1831
1833
|
displayName: "Charting__ChartingContainer",
|
|
1832
1834
|
componentId: "sc-3wbgm0-0"
|
|
1833
1835
|
})(["& .highcharts-a11y-proxy-container{pointer-events:none;}overflow:hidden;position:relative;", ";"], function (props) {
|
|
1834
|
-
return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
|
|
1836
|
+
return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
|
|
1835
1837
|
});
|
|
1836
1838
|
var propTypes = {
|
|
1837
1839
|
width: T.oneOfType([T.string, T.number]),
|
|
@@ -1849,12 +1851,12 @@ var propTypes = {
|
|
|
1849
1851
|
themeKey: T.string
|
|
1850
1852
|
};
|
|
1851
1853
|
var Charting = function Charting(props) {
|
|
1852
|
-
var container = react_1.useRef(null);
|
|
1853
|
-
var needsInit = react_1.useRef(true);
|
|
1854
|
-
var chart = react_1.useRef();
|
|
1855
|
-
var needsRedraw = react_1.useRef(true);
|
|
1856
|
-
var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
|
|
1857
|
-
var timezone = react_1.useContext(TimezoneContext_1.default);
|
|
1854
|
+
var container = (0, react_1.useRef)(null);
|
|
1855
|
+
var needsInit = (0, react_1.useRef)(true);
|
|
1856
|
+
var chart = (0, react_1.useRef)();
|
|
1857
|
+
var needsRedraw = (0, react_1.useRef)(true);
|
|
1858
|
+
var api = (0, react_1.useRef)(new ChartingApi_1.ChartingApiFunctional(chart));
|
|
1859
|
+
var timezone = (0, react_1.useContext)(TimezoneContext_1.default);
|
|
1858
1860
|
var computeChartingSize = function computeChartingSize() {
|
|
1859
1861
|
if (container.current) {
|
|
1860
1862
|
var rect = container.current.getBoundingClientRect();
|
|
@@ -1865,8 +1867,8 @@ var Charting = function Charting(props) {
|
|
|
1865
1867
|
}
|
|
1866
1868
|
return {};
|
|
1867
1869
|
};
|
|
1868
|
-
var splunkTheme = useSplunkTheme_1.default();
|
|
1869
|
-
var themeKey = props.themeKey ? props.themeKey : themeUtils_1.getChartingThemeKey({
|
|
1870
|
+
var splunkTheme = (0, useSplunkTheme_1.default)();
|
|
1871
|
+
var themeKey = props.themeKey ? props.themeKey : (0, themeUtils_1.getChartingThemeKey)({
|
|
1870
1872
|
splunkThemeV1: splunkTheme
|
|
1871
1873
|
});
|
|
1872
1874
|
var width = props.width,
|
|
@@ -1883,13 +1885,13 @@ var Charting = function Charting(props) {
|
|
|
1883
1885
|
var prevOptions = usePrevious(options);
|
|
1884
1886
|
var prevTimezone = usePrevious(timezone);
|
|
1885
1887
|
var handleClick = function handleClick(chartEvent, type) {
|
|
1886
|
-
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
|
|
1888
|
+
var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
|
|
1887
1889
|
payload.name = payload.name2;
|
|
1888
1890
|
delete payload.name2;
|
|
1889
1891
|
if (type === VizChartEventType.POINT_CLICK) {
|
|
1890
1892
|
payload.value = payload.value2;
|
|
1891
1893
|
delete payload.value2;
|
|
1892
|
-
payload = exports.updateRowPayload(chartEvent.rowContext, payload);
|
|
1894
|
+
payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
|
|
1893
1895
|
}
|
|
1894
1896
|
onClick({
|
|
1895
1897
|
type: type,
|
|
@@ -1911,7 +1913,7 @@ var Charting = function Charting(props) {
|
|
|
1911
1913
|
onSelect({
|
|
1912
1914
|
type: 'range.select',
|
|
1913
1915
|
originalEvent: chartEvent,
|
|
1914
|
-
payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
1916
|
+
payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
1915
1917
|
});
|
|
1916
1918
|
return;
|
|
1917
1919
|
}
|
|
@@ -1919,16 +1921,16 @@ var Charting = function Charting(props) {
|
|
|
1919
1921
|
onEventTrigger({
|
|
1920
1922
|
type: 'range.select',
|
|
1921
1923
|
originalEvent: chartEvent,
|
|
1922
|
-
payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
1924
|
+
payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
|
|
1923
1925
|
});
|
|
1924
1926
|
};
|
|
1925
1927
|
var handlePointMouseOut = function handlePointMouseOut(chartEvent, type) {
|
|
1926
|
-
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
1928
|
+
var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
1927
1929
|
payload.name = payload.name2;
|
|
1928
1930
|
delete payload.name2;
|
|
1929
1931
|
payload.value = payload.value2;
|
|
1930
1932
|
delete payload.value2;
|
|
1931
|
-
payload = exports.updateRowPayload(chartEvent.rowContext, payload);
|
|
1933
|
+
payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
|
|
1932
1934
|
onPointMouseOut({
|
|
1933
1935
|
type: type,
|
|
1934
1936
|
originalEvent: chartEvent,
|
|
@@ -1936,12 +1938,12 @@ var Charting = function Charting(props) {
|
|
|
1936
1938
|
});
|
|
1937
1939
|
};
|
|
1938
1940
|
var handlePointMouseOver = function handlePointMouseOver(chartEvent, type) {
|
|
1939
|
-
var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
1941
|
+
var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
|
|
1940
1942
|
payload.name = payload.name2;
|
|
1941
1943
|
delete payload.name2;
|
|
1942
1944
|
payload.value = payload.value2;
|
|
1943
1945
|
delete payload.value2;
|
|
1944
|
-
payload = exports.updateRowPayload(chartEvent.rowContext, payload);
|
|
1946
|
+
payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
|
|
1945
1947
|
onPointMouseOver({
|
|
1946
1948
|
type: type,
|
|
1947
1949
|
originalEvent: chartEvent,
|
|
@@ -2023,14 +2025,14 @@ var Charting = function Charting(props) {
|
|
|
2023
2025
|
window.console.error('Caught error rendering chart:', e);
|
|
2024
2026
|
}
|
|
2025
2027
|
};
|
|
2026
|
-
var debouncedDrawChart = lodash_1.debounce(drawChart, 5);
|
|
2028
|
+
var debouncedDrawChart = (0, lodash_1.debounce)(drawChart, 5);
|
|
2027
2029
|
var onContainerMount = function onContainerMount(chartingContainer) {
|
|
2028
2030
|
container.current = chartingContainer;
|
|
2029
2031
|
debouncedDrawChart();
|
|
2030
2032
|
};
|
|
2031
2033
|
var prevTheme = usePrevious(themeKey);
|
|
2032
2034
|
var prevOnClick = usePrevious(onClick);
|
|
2033
|
-
react_1.useEffect(function () {
|
|
2035
|
+
(0, react_1.useEffect)(function () {
|
|
2034
2036
|
debouncedDrawChart();
|
|
2035
2037
|
props.visualizationApiRef(api.current);
|
|
2036
2038
|
return function () {
|
|
@@ -2038,10 +2040,10 @@ var Charting = function Charting(props) {
|
|
|
2038
2040
|
destroyChart();
|
|
2039
2041
|
};
|
|
2040
2042
|
}, []);
|
|
2041
|
-
react_1.useEffect(function () {
|
|
2043
|
+
(0, react_1.useEffect)(function () {
|
|
2042
2044
|
// TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
|
|
2043
2045
|
// seems like redraw doesn't suffice to update the background colors
|
|
2044
|
-
if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) ||
|
|
2046
|
+
if (!chart.current || !(0, exports.canUpdateInPlace)(prevOptions, options) ||
|
|
2045
2047
|
// timezone is a simple object so this comparison should be fast
|
|
2046
2048
|
JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
|
|
2047
2049
|
needsInit.current = true;
|
|
@@ -2085,13 +2087,13 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
|
|
|
2085
2087
|
var chartData = props.chartData;
|
|
2086
2088
|
if (!chartData) {
|
|
2087
2089
|
return React.createElement(Message_1.default, {
|
|
2088
|
-
message: i18n_1._('No DataSource'),
|
|
2090
|
+
message: (0, i18n_1._)('No DataSource'),
|
|
2089
2091
|
level: "warning"
|
|
2090
2092
|
});
|
|
2091
2093
|
}
|
|
2092
2094
|
if (chartData && !Object.keys(chartData).length) {
|
|
2093
2095
|
return React.createElement(Message_1.default, {
|
|
2094
|
-
message: i18n_1._('No Result'),
|
|
2096
|
+
message: (0, i18n_1._)('No Result'),
|
|
2095
2097
|
level: "info"
|
|
2096
2098
|
});
|
|
2097
2099
|
}
|
|
@@ -2106,25 +2108,25 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
|
|
|
2106
2108
|
exports.default = withEmptyChartMessage(Charting);
|
|
2107
2109
|
|
|
2108
2110
|
/***/ }),
|
|
2109
|
-
/*
|
|
2111
|
+
/* 66 */
|
|
2110
2112
|
/***/ (function(module, exports) {
|
|
2111
2113
|
|
|
2112
2114
|
module.exports = require("react-event-listener");
|
|
2113
2115
|
|
|
2114
2116
|
/***/ }),
|
|
2115
|
-
/*
|
|
2117
|
+
/* 67 */
|
|
2116
2118
|
/***/ (function(module, exports) {
|
|
2117
2119
|
|
|
2118
2120
|
module.exports = require("@splunk/visualizations-shared/i18n");
|
|
2119
2121
|
|
|
2120
2122
|
/***/ }),
|
|
2121
|
-
/*
|
|
2123
|
+
/* 68 */
|
|
2122
2124
|
/***/ (function(module, exports) {
|
|
2123
2125
|
|
|
2124
2126
|
module.exports = require("@splunk/visualizations-shared/themeUtils");
|
|
2125
2127
|
|
|
2126
2128
|
/***/ }),
|
|
2127
|
-
/*
|
|
2129
|
+
/* 69 */
|
|
2128
2130
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2129
2131
|
|
|
2130
2132
|
"use strict";
|
|
@@ -2181,16 +2183,16 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
|
|
|
2181
2183
|
exports.ChartingApiFunctional = ChartingApiFunctional;
|
|
2182
2184
|
|
|
2183
2185
|
/***/ }),
|
|
2184
|
-
/*
|
|
2186
|
+
/* 70 */
|
|
2185
2187
|
/***/ (function(module, exports) {
|
|
2186
2188
|
|
|
2187
2189
|
module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
|
|
2188
2190
|
|
|
2189
2191
|
/***/ }),
|
|
2190
|
-
/* 70 */,
|
|
2191
2192
|
/* 71 */,
|
|
2192
2193
|
/* 72 */,
|
|
2193
|
-
/* 73
|
|
2194
|
+
/* 73 */,
|
|
2195
|
+
/* 74 */
|
|
2194
2196
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2195
2197
|
|
|
2196
2198
|
"use strict";
|
|
@@ -2204,9 +2206,9 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
|
|
|
2204
2206
|
var i18n_1 = __webpack_require__(2);
|
|
2205
2207
|
var configUtils_1 = __webpack_require__(20);
|
|
2206
2208
|
var AxesChartDataConfig = {
|
|
2207
|
-
label: i18n_1._('Data configurations'),
|
|
2209
|
+
label: (0, i18n_1._)('Data configurations'),
|
|
2208
2210
|
layout: [[{
|
|
2209
|
-
label: i18n_1._('X'),
|
|
2211
|
+
label: (0, i18n_1._)('X'),
|
|
2210
2212
|
option: 'x',
|
|
2211
2213
|
editor: 'editor.columnSelector',
|
|
2212
2214
|
editorProps: {
|
|
@@ -2215,7 +2217,7 @@ var AxesChartDataConfig = {
|
|
|
2215
2217
|
expectedDataPrimitive: ['series']
|
|
2216
2218
|
}
|
|
2217
2219
|
}], [{
|
|
2218
|
-
label: i18n_1._('Y'),
|
|
2220
|
+
label: (0, i18n_1._)('Y'),
|
|
2219
2221
|
option: 'y',
|
|
2220
2222
|
editor: 'editor.columnMultiSelector',
|
|
2221
2223
|
editorProps: {
|
|
@@ -2225,7 +2227,7 @@ var AxesChartDataConfig = {
|
|
|
2225
2227
|
expectedDataPrimitive: ['series', 'frame']
|
|
2226
2228
|
}
|
|
2227
2229
|
}], [{
|
|
2228
|
-
label: i18n_1._('Result limit'),
|
|
2230
|
+
label: (0, i18n_1._)('Result limit'),
|
|
2229
2231
|
option: 'resultLimit',
|
|
2230
2232
|
editor: 'editor.number',
|
|
2231
2233
|
editorProps: {
|
|
@@ -2236,8 +2238,8 @@ var AxesChartDataConfig = {
|
|
|
2236
2238
|
exports.AxesChartDataConfigBar = {
|
|
2237
2239
|
label: AxesChartDataConfig.label,
|
|
2238
2240
|
// insert Y2 after Y
|
|
2239
|
-
layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
|
|
2240
|
-
label: i18n_1._('Y2'),
|
|
2241
|
+
layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
|
|
2242
|
+
label: (0, i18n_1._)('Y2'),
|
|
2241
2243
|
option: 'y2',
|
|
2242
2244
|
editor: 'editor.columnMultiSelector',
|
|
2243
2245
|
editorProps: {
|
|
@@ -2251,7 +2253,7 @@ exports.AxesChartDataConfigBar = {
|
|
|
2251
2253
|
exports.AxesChartDataConfigScatter = {
|
|
2252
2254
|
label: AxesChartDataConfig.label,
|
|
2253
2255
|
layout: [[{
|
|
2254
|
-
label: i18n_1._('X'),
|
|
2256
|
+
label: (0, i18n_1._)('X'),
|
|
2255
2257
|
option: 'x',
|
|
2256
2258
|
editor: 'editor.columnSelector',
|
|
2257
2259
|
editorProps: {
|
|
@@ -2260,7 +2262,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2260
2262
|
expectedDataPrimitive: ['series']
|
|
2261
2263
|
}
|
|
2262
2264
|
}], [{
|
|
2263
|
-
label: i18n_1._('Y'),
|
|
2265
|
+
label: (0, i18n_1._)('Y'),
|
|
2264
2266
|
option: 'y',
|
|
2265
2267
|
editor: 'editor.columnSelector',
|
|
2266
2268
|
editorProps: {
|
|
@@ -2270,7 +2272,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2270
2272
|
expectedDataPrimitive: ['series']
|
|
2271
2273
|
}
|
|
2272
2274
|
}], [{
|
|
2273
|
-
label: i18n_1._('Category'),
|
|
2275
|
+
label: (0, i18n_1._)('Category'),
|
|
2274
2276
|
option: 'category',
|
|
2275
2277
|
editor: 'editor.columnSelector',
|
|
2276
2278
|
editorProps: {
|
|
@@ -2279,7 +2281,7 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2279
2281
|
expectedDataPrimitive: ['series']
|
|
2280
2282
|
}
|
|
2281
2283
|
}], [{
|
|
2282
|
-
label: i18n_1._('Result limit'),
|
|
2284
|
+
label: (0, i18n_1._)('Result limit'),
|
|
2283
2285
|
option: 'resultLimit',
|
|
2284
2286
|
editor: 'editor.number',
|
|
2285
2287
|
editorProps: {
|
|
@@ -2290,8 +2292,8 @@ exports.AxesChartDataConfigScatter = {
|
|
|
2290
2292
|
exports.AxesChartDataConfigBubble = {
|
|
2291
2293
|
label: exports.AxesChartDataConfigScatter.label,
|
|
2292
2294
|
// layout: insert Size after Category
|
|
2293
|
-
layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
|
|
2294
|
-
label: i18n_1._('Size'),
|
|
2295
|
+
layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
|
|
2296
|
+
label: (0, i18n_1._)('Size'),
|
|
2295
2297
|
option: 'size',
|
|
2296
2298
|
editor: 'editor.columnSelector',
|
|
2297
2299
|
editorProps: {
|
|
@@ -2304,7 +2306,7 @@ exports.AxesChartDataConfigBubble = {
|
|
|
2304
2306
|
exports.AxesChartDataConfigAreaColumnLine = {
|
|
2305
2307
|
label: exports.AxesChartDataConfigBar.label,
|
|
2306
2308
|
layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
|
|
2307
|
-
label: i18n_1._('Annotation x'),
|
|
2309
|
+
label: (0, i18n_1._)('Annotation x'),
|
|
2308
2310
|
option: 'annotationX',
|
|
2309
2311
|
editor: 'editor.columnSelector',
|
|
2310
2312
|
editorProps: {
|
|
@@ -2313,7 +2315,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
|
|
|
2313
2315
|
expectedDataPrimitive: ['series']
|
|
2314
2316
|
}
|
|
2315
2317
|
}], [{
|
|
2316
|
-
label: i18n_1._('Annotation labels'),
|
|
2318
|
+
label: (0, i18n_1._)('Annotation labels'),
|
|
2317
2319
|
option: 'annotationLabel',
|
|
2318
2320
|
editor: 'editor.columnSelector',
|
|
2319
2321
|
editorProps: {
|
|
@@ -2326,7 +2328,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
|
|
|
2326
2328
|
exports.default = AxesChartDataConfig;
|
|
2327
2329
|
|
|
2328
2330
|
/***/ }),
|
|
2329
|
-
/*
|
|
2331
|
+
/* 75 */
|
|
2330
2332
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2331
2333
|
|
|
2332
2334
|
"use strict";
|
|
@@ -2341,7 +2343,7 @@ var variables_1 = __webpack_require__(11);
|
|
|
2341
2343
|
var BackgroundColor_1 = __webpack_require__(53);
|
|
2342
2344
|
var themes = {
|
|
2343
2345
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
2344
|
-
return pick_1.default({
|
|
2346
|
+
return (0, pick_1.default)({
|
|
2345
2347
|
enterprise: {
|
|
2346
2348
|
dark: variables_1.default.black(props),
|
|
2347
2349
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -2351,15 +2353,15 @@ var themes = {
|
|
|
2351
2353
|
}
|
|
2352
2354
|
};
|
|
2353
2355
|
var AxesChartColorAndStyle = {
|
|
2354
|
-
label: i18n_1._('Color and style'),
|
|
2355
|
-
layout: [BackgroundColor_1.default({
|
|
2356
|
+
label: (0, i18n_1._)('Color and style'),
|
|
2357
|
+
layout: [(0, BackgroundColor_1.default)({
|
|
2356
2358
|
themes: themes
|
|
2357
2359
|
}), [{
|
|
2358
|
-
label: i18n_1._('Series colors'),
|
|
2360
|
+
label: (0, i18n_1._)('Series colors'),
|
|
2359
2361
|
option: 'seriesColors',
|
|
2360
2362
|
editor: 'editor.seriesColors'
|
|
2361
2363
|
}], [{
|
|
2362
|
-
label: i18n_1._('Series colors by field name'),
|
|
2364
|
+
label: (0, i18n_1._)('Series colors by field name'),
|
|
2363
2365
|
option: 'seriesColorsByField',
|
|
2364
2366
|
editor: 'editor.seriesColorsByField'
|
|
2365
2367
|
}]]
|
|
@@ -2367,7 +2369,7 @@ var AxesChartColorAndStyle = {
|
|
|
2367
2369
|
exports.default = AxesChartColorAndStyle;
|
|
2368
2370
|
|
|
2369
2371
|
/***/ }),
|
|
2370
|
-
/*
|
|
2372
|
+
/* 76 */
|
|
2371
2373
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2372
2374
|
|
|
2373
2375
|
"use strict";
|
|
@@ -2378,45 +2380,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2378
2380
|
});
|
|
2379
2381
|
var i18n_1 = __webpack_require__(2);
|
|
2380
2382
|
var AxesChartLegend = {
|
|
2381
|
-
label: i18n_1._('Legend'),
|
|
2383
|
+
label: (0, i18n_1._)('Legend'),
|
|
2382
2384
|
layout: [[{
|
|
2383
|
-
label: i18n_1._('Legend display'),
|
|
2385
|
+
label: (0, i18n_1._)('Legend display'),
|
|
2384
2386
|
option: 'legendDisplay',
|
|
2385
2387
|
editor: 'editor.select',
|
|
2386
2388
|
editorProps: {
|
|
2387
2389
|
values: [{
|
|
2388
|
-
label: i18n_1._('Right'),
|
|
2390
|
+
label: (0, i18n_1._)('Right'),
|
|
2389
2391
|
value: 'right'
|
|
2390
2392
|
}, {
|
|
2391
|
-
label: i18n_1._('Left'),
|
|
2393
|
+
label: (0, i18n_1._)('Left'),
|
|
2392
2394
|
value: 'left'
|
|
2393
2395
|
}, {
|
|
2394
|
-
label: i18n_1._('Top'),
|
|
2396
|
+
label: (0, i18n_1._)('Top'),
|
|
2395
2397
|
value: 'top'
|
|
2396
2398
|
}, {
|
|
2397
|
-
label: i18n_1._('Bottom'),
|
|
2399
|
+
label: (0, i18n_1._)('Bottom'),
|
|
2398
2400
|
value: 'bottom'
|
|
2399
2401
|
}, {
|
|
2400
|
-
label: i18n_1._('Off'),
|
|
2402
|
+
label: (0, i18n_1._)('Off'),
|
|
2401
2403
|
value: 'off'
|
|
2402
2404
|
}]
|
|
2403
2405
|
}
|
|
2404
2406
|
}], [{
|
|
2405
|
-
label: i18n_1._('Legend truncation'),
|
|
2407
|
+
label: (0, i18n_1._)('Legend truncation'),
|
|
2406
2408
|
option: 'legendTruncation',
|
|
2407
2409
|
editor: 'editor.radioBar',
|
|
2408
2410
|
editorProps: {
|
|
2409
2411
|
values: [{
|
|
2410
|
-
label: i18n_1._('A...'),
|
|
2412
|
+
label: (0, i18n_1._)('A...'),
|
|
2411
2413
|
value: 'ellipsisEnd'
|
|
2412
2414
|
}, {
|
|
2413
|
-
label: i18n_1._('A...Z'),
|
|
2415
|
+
label: (0, i18n_1._)('A...Z'),
|
|
2414
2416
|
value: 'ellipsisMiddle'
|
|
2415
2417
|
}, {
|
|
2416
|
-
label: i18n_1._('...Z'),
|
|
2418
|
+
label: (0, i18n_1._)('...Z'),
|
|
2417
2419
|
value: 'ellipsisStart'
|
|
2418
2420
|
}, {
|
|
2419
|
-
label: i18n_1._('Off'),
|
|
2421
|
+
label: (0, i18n_1._)('Off'),
|
|
2420
2422
|
value: 'ellipsisOff'
|
|
2421
2423
|
}]
|
|
2422
2424
|
},
|
|
@@ -2429,7 +2431,7 @@ var AxesChartLegend = {
|
|
|
2429
2431
|
exports.default = AxesChartLegend;
|
|
2430
2432
|
|
|
2431
2433
|
/***/ }),
|
|
2432
|
-
/*
|
|
2434
|
+
/* 77 */
|
|
2433
2435
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2434
2436
|
|
|
2435
2437
|
"use strict";
|
|
@@ -2443,13 +2445,13 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
|
|
|
2443
2445
|
var i18n_1 = __webpack_require__(2);
|
|
2444
2446
|
var configUtils_1 = __webpack_require__(20);
|
|
2445
2447
|
exports.AxesChartXGridAndLabelsCommon = {
|
|
2446
|
-
label: i18n_1._('X-axis grid and labels'),
|
|
2448
|
+
label: (0, i18n_1._)('X-axis grid and labels'),
|
|
2447
2449
|
layout: [[{
|
|
2448
|
-
label: i18n_1._('Axis title'),
|
|
2450
|
+
label: (0, i18n_1._)('Axis title'),
|
|
2449
2451
|
option: 'xAxisTitleVisibility',
|
|
2450
2452
|
editor: 'editor.toggle'
|
|
2451
2453
|
}], [{
|
|
2452
|
-
label: i18n_1._('Axis title text'),
|
|
2454
|
+
label: (0, i18n_1._)('Axis title text'),
|
|
2453
2455
|
option: 'xAxisTitleText',
|
|
2454
2456
|
editor: 'editor.text',
|
|
2455
2457
|
showEditor: function showEditor(_ref) {
|
|
@@ -2457,18 +2459,18 @@ exports.AxesChartXGridAndLabelsCommon = {
|
|
|
2457
2459
|
return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
|
|
2458
2460
|
}
|
|
2459
2461
|
}], [{
|
|
2460
|
-
label: i18n_1._('Label visibility'),
|
|
2462
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
2461
2463
|
option: 'xAxisLabelVisibility',
|
|
2462
2464
|
editor: 'editor.radioBar',
|
|
2463
2465
|
editorProps: {
|
|
2464
2466
|
values: [{
|
|
2465
|
-
label: i18n_1._('Auto'),
|
|
2467
|
+
label: (0, i18n_1._)('Auto'),
|
|
2466
2468
|
value: 'auto'
|
|
2467
2469
|
}, {
|
|
2468
|
-
label: i18n_1._('Show'),
|
|
2470
|
+
label: (0, i18n_1._)('Show'),
|
|
2469
2471
|
value: 'show'
|
|
2470
2472
|
}, {
|
|
2471
|
-
label: i18n_1._('Hide'),
|
|
2473
|
+
label: (0, i18n_1._)('Hide'),
|
|
2472
2474
|
value: 'hide'
|
|
2473
2475
|
}]
|
|
2474
2476
|
}
|
|
@@ -2477,24 +2479,24 @@ exports.AxesChartXGridAndLabelsCommon = {
|
|
|
2477
2479
|
var AxesChartXGridAndLabels = {
|
|
2478
2480
|
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
2479
2481
|
layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
2480
|
-
label: i18n_1._('Label rotation'),
|
|
2482
|
+
label: (0, i18n_1._)('Label rotation'),
|
|
2481
2483
|
option: 'xAxisLabelRotation',
|
|
2482
2484
|
editor: 'editor.select',
|
|
2483
2485
|
editorProps: {
|
|
2484
2486
|
values: [{
|
|
2485
|
-
label: i18n_1._('-90'),
|
|
2487
|
+
label: (0, i18n_1._)('-90'),
|
|
2486
2488
|
value: -90
|
|
2487
2489
|
}, {
|
|
2488
|
-
label: i18n_1._('-45'),
|
|
2490
|
+
label: (0, i18n_1._)('-45'),
|
|
2489
2491
|
value: -45
|
|
2490
2492
|
}, {
|
|
2491
|
-
label: i18n_1._('0'),
|
|
2493
|
+
label: (0, i18n_1._)('0'),
|
|
2492
2494
|
value: 0
|
|
2493
2495
|
}, {
|
|
2494
|
-
label: i18n_1._('45'),
|
|
2496
|
+
label: (0, i18n_1._)('45'),
|
|
2495
2497
|
value: 45
|
|
2496
2498
|
}, {
|
|
2497
|
-
label: i18n_1._('90'),
|
|
2499
|
+
label: (0, i18n_1._)('90'),
|
|
2498
2500
|
value: 90
|
|
2499
2501
|
}]
|
|
2500
2502
|
},
|
|
@@ -2503,7 +2505,7 @@ var AxesChartXGridAndLabels = {
|
|
|
2503
2505
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
2504
2506
|
}
|
|
2505
2507
|
}], [{
|
|
2506
|
-
label: i18n_1._('Number of time label parts'),
|
|
2508
|
+
label: (0, i18n_1._)('Number of time label parts'),
|
|
2507
2509
|
option: 'xAxisMaxLabelParts',
|
|
2508
2510
|
editor: 'editor.number',
|
|
2509
2511
|
editorProps: {
|
|
@@ -2515,31 +2517,31 @@ var AxesChartXGridAndLabels = {
|
|
|
2515
2517
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
2516
2518
|
}
|
|
2517
2519
|
}], [{
|
|
2518
|
-
label: i18n_1._('Axis line visibility'),
|
|
2520
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
2519
2521
|
option: 'xAxisLineVisibility',
|
|
2520
2522
|
editor: 'editor.checkbox'
|
|
2521
2523
|
}], [{
|
|
2522
|
-
label: i18n_1._('Major gridlines'),
|
|
2524
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
2523
2525
|
option: 'showXMajorGridLines',
|
|
2524
2526
|
editor: 'editor.checkbox'
|
|
2525
2527
|
}], [{
|
|
2526
|
-
label: i18n_1._('Major tick visibility'),
|
|
2528
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
2527
2529
|
option: 'xAxisMajorTickVisibility',
|
|
2528
2530
|
editor: 'editor.radioBar',
|
|
2529
2531
|
editorProps: {
|
|
2530
2532
|
values: [{
|
|
2531
|
-
label: i18n_1._('Auto'),
|
|
2533
|
+
label: (0, i18n_1._)('Auto'),
|
|
2532
2534
|
value: 'auto'
|
|
2533
2535
|
}, {
|
|
2534
|
-
label: i18n_1._('Show'),
|
|
2536
|
+
label: (0, i18n_1._)('Show'),
|
|
2535
2537
|
value: 'show'
|
|
2536
2538
|
}, {
|
|
2537
|
-
label: i18n_1._('Hide'),
|
|
2539
|
+
label: (0, i18n_1._)('Hide'),
|
|
2538
2540
|
value: 'hide'
|
|
2539
2541
|
}]
|
|
2540
2542
|
}
|
|
2541
2543
|
}], [{
|
|
2542
|
-
label: i18n_1._('Major tick size (px)'),
|
|
2544
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
2543
2545
|
option: 'xAxisMajorTickSize',
|
|
2544
2546
|
editor: 'editor.slider',
|
|
2545
2547
|
editorProps: {
|
|
@@ -2555,38 +2557,38 @@ var AxesChartXGridAndLabels = {
|
|
|
2555
2557
|
};
|
|
2556
2558
|
exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
2557
2559
|
label: exports.AxesChartXGridAndLabelsCommon.label,
|
|
2558
|
-
layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
2559
|
-
label: i18n_1._('Axis scale'),
|
|
2560
|
+
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
|
|
2561
|
+
label: (0, i18n_1._)('Axis scale'),
|
|
2560
2562
|
option: 'xAxisScale',
|
|
2561
2563
|
editor: 'editor.radioBar',
|
|
2562
2564
|
editorProps: {
|
|
2563
2565
|
values: [{
|
|
2564
|
-
label: i18n_1._('Linear'),
|
|
2566
|
+
label: (0, i18n_1._)('Linear'),
|
|
2565
2567
|
value: 'linear'
|
|
2566
2568
|
}, {
|
|
2567
|
-
label: i18n_1._('Log'),
|
|
2569
|
+
label: (0, i18n_1._)('Log'),
|
|
2568
2570
|
value: 'log'
|
|
2569
2571
|
}]
|
|
2570
2572
|
}
|
|
2571
2573
|
}])), [[{
|
|
2572
|
-
label: i18n_1._('Label rotation'),
|
|
2574
|
+
label: (0, i18n_1._)('Label rotation'),
|
|
2573
2575
|
option: 'xAxisLabelRotation',
|
|
2574
2576
|
editor: 'editor.select',
|
|
2575
2577
|
editorProps: {
|
|
2576
2578
|
values: [{
|
|
2577
|
-
label: i18n_1._('-90'),
|
|
2579
|
+
label: (0, i18n_1._)('-90'),
|
|
2578
2580
|
value: -90
|
|
2579
2581
|
}, {
|
|
2580
|
-
label: i18n_1._('-45'),
|
|
2582
|
+
label: (0, i18n_1._)('-45'),
|
|
2581
2583
|
value: -45
|
|
2582
2584
|
}, {
|
|
2583
|
-
label: i18n_1._('0'),
|
|
2585
|
+
label: (0, i18n_1._)('0'),
|
|
2584
2586
|
value: 0
|
|
2585
2587
|
}, {
|
|
2586
|
-
label: i18n_1._('45'),
|
|
2588
|
+
label: (0, i18n_1._)('45'),
|
|
2587
2589
|
value: 45
|
|
2588
2590
|
}, {
|
|
2589
|
-
label: i18n_1._('90'),
|
|
2591
|
+
label: (0, i18n_1._)('90'),
|
|
2590
2592
|
value: 90
|
|
2591
2593
|
}]
|
|
2592
2594
|
},
|
|
@@ -2595,7 +2597,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2595
2597
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
2596
2598
|
}
|
|
2597
2599
|
}], [{
|
|
2598
|
-
label: i18n_1._('Round axis labels'),
|
|
2600
|
+
label: (0, i18n_1._)('Round axis labels'),
|
|
2599
2601
|
option: 'showRoundedXAxisLabels',
|
|
2600
2602
|
editor: 'editor.checkbox',
|
|
2601
2603
|
showEditor: function showEditor(_ref6) {
|
|
@@ -2603,7 +2605,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2603
2605
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
2604
2606
|
}
|
|
2605
2607
|
}], [{
|
|
2606
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
2608
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
2607
2609
|
option: 'xAxisAbbreviation',
|
|
2608
2610
|
editor: 'editor.checkbox',
|
|
2609
2611
|
showEditor: function showEditor(_ref7) {
|
|
@@ -2611,23 +2613,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2611
2613
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
2612
2614
|
}
|
|
2613
2615
|
}], [{
|
|
2614
|
-
label: i18n_1._('Include zero'),
|
|
2616
|
+
label: (0, i18n_1._)('Include zero'),
|
|
2615
2617
|
option: 'showXAxisWithZero',
|
|
2616
2618
|
editor: 'editor.checkbox'
|
|
2617
2619
|
}], [{
|
|
2618
|
-
label: i18n_1._('Extend to whole grid'),
|
|
2620
|
+
label: (0, i18n_1._)('Extend to whole grid'),
|
|
2619
2621
|
option: 'showXAxisExtendedRange',
|
|
2620
2622
|
editor: 'editor.checkbox'
|
|
2621
2623
|
}], [{
|
|
2622
|
-
label: i18n_1._('Minimum axis value'),
|
|
2624
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
2623
2625
|
option: 'xAxisMin',
|
|
2624
2626
|
editor: 'editor.number'
|
|
2625
2627
|
}, {
|
|
2626
|
-
label: i18n_1._('Maximum axis value'),
|
|
2628
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
2627
2629
|
option: 'xAxisMax',
|
|
2628
2630
|
editor: 'editor.number'
|
|
2629
2631
|
}], [{
|
|
2630
|
-
label: i18n_1._('Axis line visibility'),
|
|
2632
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
2631
2633
|
option: 'xAxisLineVisibility',
|
|
2632
2634
|
editor: 'editor.checkbox'
|
|
2633
2635
|
}],
|
|
@@ -2640,23 +2642,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2640
2642
|
// },
|
|
2641
2643
|
// ],
|
|
2642
2644
|
[{
|
|
2643
|
-
label: i18n_1._('Major tick visibility'),
|
|
2645
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
2644
2646
|
option: 'xAxisMajorTickVisibility',
|
|
2645
2647
|
editor: 'editor.radioBar',
|
|
2646
2648
|
editorProps: {
|
|
2647
2649
|
values: [{
|
|
2648
|
-
label: i18n_1._('Auto'),
|
|
2650
|
+
label: (0, i18n_1._)('Auto'),
|
|
2649
2651
|
value: 'auto'
|
|
2650
2652
|
}, {
|
|
2651
|
-
label: i18n_1._('Show'),
|
|
2653
|
+
label: (0, i18n_1._)('Show'),
|
|
2652
2654
|
value: 'show'
|
|
2653
2655
|
}, {
|
|
2654
|
-
label: i18n_1._('Hide'),
|
|
2656
|
+
label: (0, i18n_1._)('Hide'),
|
|
2655
2657
|
value: 'hide'
|
|
2656
2658
|
}]
|
|
2657
2659
|
}
|
|
2658
2660
|
}], [{
|
|
2659
|
-
label: i18n_1._('Major tick size (px)'),
|
|
2661
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
2660
2662
|
option: 'xAxisMajorTickSize',
|
|
2661
2663
|
editor: 'editor.slider',
|
|
2662
2664
|
editorProps: {
|
|
@@ -2669,7 +2671,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2669
2671
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
2670
2672
|
}
|
|
2671
2673
|
}], [{
|
|
2672
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
2674
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
2673
2675
|
option: 'xAxisMajorTickInterval',
|
|
2674
2676
|
editor: 'editor.number',
|
|
2675
2677
|
showEditor: function showEditor(_ref9) {
|
|
@@ -2677,27 +2679,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2677
2679
|
return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
|
|
2678
2680
|
}
|
|
2679
2681
|
}], [{
|
|
2680
|
-
label: i18n_1._('Minor gridlines'),
|
|
2682
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
2681
2683
|
option: 'showXMinorGridLines',
|
|
2682
2684
|
editor: 'editor.checkbox'
|
|
2683
2685
|
}], [{
|
|
2684
|
-
label: i18n_1._('Minor tick visibility'),
|
|
2686
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
2685
2687
|
option: 'xAxisMinorTickVisibility',
|
|
2686
2688
|
editor: 'editor.radioBar',
|
|
2687
2689
|
editorProps: {
|
|
2688
2690
|
values: [{
|
|
2689
|
-
label: i18n_1._('Auto'),
|
|
2691
|
+
label: (0, i18n_1._)('Auto'),
|
|
2690
2692
|
value: 'auto'
|
|
2691
2693
|
}, {
|
|
2692
|
-
label: i18n_1._('Show'),
|
|
2694
|
+
label: (0, i18n_1._)('Show'),
|
|
2693
2695
|
value: 'show'
|
|
2694
2696
|
}, {
|
|
2695
|
-
label: i18n_1._('Hide'),
|
|
2697
|
+
label: (0, i18n_1._)('Hide'),
|
|
2696
2698
|
value: 'hide'
|
|
2697
2699
|
}]
|
|
2698
2700
|
}
|
|
2699
2701
|
}], [{
|
|
2700
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
2702
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
2701
2703
|
option: 'xAxisMinorTickSize',
|
|
2702
2704
|
editor: 'editor.slider',
|
|
2703
2705
|
editorProps: {
|
|
@@ -2714,7 +2716,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
|
|
|
2714
2716
|
exports.default = AxesChartXGridAndLabels;
|
|
2715
2717
|
|
|
2716
2718
|
/***/ }),
|
|
2717
|
-
/*
|
|
2719
|
+
/* 78 */
|
|
2718
2720
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2719
2721
|
|
|
2720
2722
|
"use strict";
|
|
@@ -2725,13 +2727,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2725
2727
|
});
|
|
2726
2728
|
var i18n_1 = __webpack_require__(2);
|
|
2727
2729
|
var AxesChartYGridAndLabels = {
|
|
2728
|
-
label: i18n_1._('Y-axis grid and labels'),
|
|
2730
|
+
label: (0, i18n_1._)('Y-axis grid and labels'),
|
|
2729
2731
|
layout: [[{
|
|
2730
|
-
label: i18n_1._('Axis title'),
|
|
2732
|
+
label: (0, i18n_1._)('Axis title'),
|
|
2731
2733
|
option: 'yAxisTitleVisibility',
|
|
2732
2734
|
editor: 'editor.toggle'
|
|
2733
2735
|
}], [{
|
|
2734
|
-
label: i18n_1._('Axis title text'),
|
|
2736
|
+
label: (0, i18n_1._)('Axis title text'),
|
|
2735
2737
|
option: 'yAxisTitleText',
|
|
2736
2738
|
editor: 'editor.text',
|
|
2737
2739
|
showEditor: function showEditor(_ref) {
|
|
@@ -2739,36 +2741,36 @@ var AxesChartYGridAndLabels = {
|
|
|
2739
2741
|
return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
|
|
2740
2742
|
}
|
|
2741
2743
|
}], [{
|
|
2742
|
-
label: i18n_1._('Scale'),
|
|
2744
|
+
label: (0, i18n_1._)('Scale'),
|
|
2743
2745
|
option: 'yAxisScale',
|
|
2744
2746
|
editor: 'editor.radioBar',
|
|
2745
2747
|
editorProps: {
|
|
2746
2748
|
values: [{
|
|
2747
|
-
label: i18n_1._('Linear'),
|
|
2749
|
+
label: (0, i18n_1._)('Linear'),
|
|
2748
2750
|
value: 'linear'
|
|
2749
2751
|
}, {
|
|
2750
|
-
label: i18n_1._('Log'),
|
|
2752
|
+
label: (0, i18n_1._)('Log'),
|
|
2751
2753
|
value: 'log'
|
|
2752
2754
|
}]
|
|
2753
2755
|
}
|
|
2754
2756
|
}], [{
|
|
2755
|
-
label: i18n_1._('Label visibility'),
|
|
2757
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
2756
2758
|
option: 'yAxisLabelVisibility',
|
|
2757
2759
|
editor: 'editor.radioBar',
|
|
2758
2760
|
editorProps: {
|
|
2759
2761
|
values: [{
|
|
2760
|
-
label: i18n_1._('Auto'),
|
|
2762
|
+
label: (0, i18n_1._)('Auto'),
|
|
2761
2763
|
value: 'auto'
|
|
2762
2764
|
}, {
|
|
2763
|
-
label: i18n_1._('Show'),
|
|
2765
|
+
label: (0, i18n_1._)('Show'),
|
|
2764
2766
|
value: 'show'
|
|
2765
2767
|
}, {
|
|
2766
|
-
label: i18n_1._('Hide'),
|
|
2768
|
+
label: (0, i18n_1._)('Hide'),
|
|
2767
2769
|
value: 'hide'
|
|
2768
2770
|
}]
|
|
2769
2771
|
}
|
|
2770
2772
|
}], [{
|
|
2771
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
2773
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
2772
2774
|
option: 'yAxisAbbreviation',
|
|
2773
2775
|
editor: 'editor.checkbox',
|
|
2774
2776
|
showEditor: function showEditor(_ref2) {
|
|
@@ -2776,47 +2778,47 @@ var AxesChartYGridAndLabels = {
|
|
|
2776
2778
|
return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
|
|
2777
2779
|
}
|
|
2778
2780
|
}], [{
|
|
2779
|
-
label: i18n_1._('Include zero'),
|
|
2781
|
+
label: (0, i18n_1._)('Include zero'),
|
|
2780
2782
|
option: 'showYAxisWithZero',
|
|
2781
2783
|
editor: 'editor.checkbox'
|
|
2782
2784
|
}], [{
|
|
2783
|
-
label: i18n_1._('Extend to whole grid'),
|
|
2785
|
+
label: (0, i18n_1._)('Extend to whole grid'),
|
|
2784
2786
|
option: 'showYAxisExtendedRange',
|
|
2785
2787
|
editor: 'editor.checkbox'
|
|
2786
2788
|
}], [{
|
|
2787
|
-
label: i18n_1._('Minimum axis value'),
|
|
2789
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
2788
2790
|
option: 'yAxisMin',
|
|
2789
2791
|
editor: 'editor.number'
|
|
2790
2792
|
}, {
|
|
2791
|
-
label: i18n_1._('Maximum axis value'),
|
|
2793
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
2792
2794
|
option: 'yAxisMax',
|
|
2793
2795
|
editor: 'editor.number'
|
|
2794
2796
|
}], [{
|
|
2795
|
-
label: i18n_1._('Axis line visibility'),
|
|
2797
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
2796
2798
|
option: 'yAxisLineVisibility',
|
|
2797
2799
|
editor: 'editor.checkbox'
|
|
2798
2800
|
}], [{
|
|
2799
|
-
label: i18n_1._('Major gridlines'),
|
|
2801
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
2800
2802
|
option: 'showYMajorGridLines',
|
|
2801
2803
|
editor: 'editor.checkbox'
|
|
2802
2804
|
}], [{
|
|
2803
|
-
label: i18n_1._('Major tick visibility'),
|
|
2805
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
2804
2806
|
option: 'yAxisMajorTickVisibility',
|
|
2805
2807
|
editor: 'editor.radioBar',
|
|
2806
2808
|
editorProps: {
|
|
2807
2809
|
values: [{
|
|
2808
|
-
label: i18n_1._('Auto'),
|
|
2810
|
+
label: (0, i18n_1._)('Auto'),
|
|
2809
2811
|
value: 'auto'
|
|
2810
2812
|
}, {
|
|
2811
|
-
label: i18n_1._('Show'),
|
|
2813
|
+
label: (0, i18n_1._)('Show'),
|
|
2812
2814
|
value: 'show'
|
|
2813
2815
|
}, {
|
|
2814
|
-
label: i18n_1._('Hide'),
|
|
2816
|
+
label: (0, i18n_1._)('Hide'),
|
|
2815
2817
|
value: 'hide'
|
|
2816
2818
|
}]
|
|
2817
2819
|
}
|
|
2818
2820
|
}], [{
|
|
2819
|
-
label: i18n_1._('Major tick size (px)'),
|
|
2821
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
2820
2822
|
option: 'yAxisMajorTickSize',
|
|
2821
2823
|
editor: 'editor.slider',
|
|
2822
2824
|
editorProps: {
|
|
@@ -2829,7 +2831,7 @@ var AxesChartYGridAndLabels = {
|
|
|
2829
2831
|
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
2830
2832
|
}
|
|
2831
2833
|
}], [{
|
|
2832
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
2834
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
2833
2835
|
option: 'yAxisMajorTickInterval',
|
|
2834
2836
|
editor: 'editor.number',
|
|
2835
2837
|
showEditor: function showEditor(_ref4) {
|
|
@@ -2837,27 +2839,27 @@ var AxesChartYGridAndLabels = {
|
|
|
2837
2839
|
return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
|
|
2838
2840
|
}
|
|
2839
2841
|
}], [{
|
|
2840
|
-
label: i18n_1._('Minor gridlines'),
|
|
2842
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
2841
2843
|
option: 'showYMinorGridLines',
|
|
2842
2844
|
editor: 'editor.checkbox'
|
|
2843
2845
|
}], [{
|
|
2844
|
-
label: i18n_1._('Minor tick visibility'),
|
|
2846
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
2845
2847
|
option: 'yAxisMinorTickVisibility',
|
|
2846
2848
|
editor: 'editor.radioBar',
|
|
2847
2849
|
editorProps: {
|
|
2848
2850
|
values: [{
|
|
2849
|
-
label: i18n_1._('Auto'),
|
|
2851
|
+
label: (0, i18n_1._)('Auto'),
|
|
2850
2852
|
value: 'auto'
|
|
2851
2853
|
}, {
|
|
2852
|
-
label: i18n_1._('Show'),
|
|
2854
|
+
label: (0, i18n_1._)('Show'),
|
|
2853
2855
|
value: 'show'
|
|
2854
2856
|
}, {
|
|
2855
|
-
label: i18n_1._('Hide'),
|
|
2857
|
+
label: (0, i18n_1._)('Hide'),
|
|
2856
2858
|
value: 'hide'
|
|
2857
2859
|
}]
|
|
2858
2860
|
}
|
|
2859
2861
|
}], [{
|
|
2860
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
2862
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
2861
2863
|
option: 'yAxisMinorTickSize',
|
|
2862
2864
|
editor: 'editor.slider',
|
|
2863
2865
|
editorProps: {
|
|
@@ -2874,7 +2876,6 @@ var AxesChartYGridAndLabels = {
|
|
|
2874
2876
|
exports.default = AxesChartYGridAndLabels;
|
|
2875
2877
|
|
|
2876
2878
|
/***/ }),
|
|
2877
|
-
/* 78 */,
|
|
2878
2879
|
/* 79 */,
|
|
2879
2880
|
/* 80 */,
|
|
2880
2881
|
/* 81 */,
|
|
@@ -2883,7 +2884,8 @@ exports.default = AxesChartYGridAndLabels;
|
|
|
2883
2884
|
/* 84 */,
|
|
2884
2885
|
/* 85 */,
|
|
2885
2886
|
/* 86 */,
|
|
2886
|
-
/* 87
|
|
2887
|
+
/* 87 */,
|
|
2888
|
+
/* 88 */
|
|
2887
2889
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2888
2890
|
|
|
2889
2891
|
"use strict";
|
|
@@ -2898,52 +2900,52 @@ var i18n_1 = __webpack_require__(2);
|
|
|
2898
2900
|
var lodash_1 = __webpack_require__(3);
|
|
2899
2901
|
var configUtils_1 = __webpack_require__(20);
|
|
2900
2902
|
exports.AxesChartDataDisplayLine = {
|
|
2901
|
-
label: i18n_1._('Data display'),
|
|
2903
|
+
label: (0, i18n_1._)('Data display'),
|
|
2902
2904
|
layout: [[{
|
|
2903
|
-
label: i18n_1._('Null value display'),
|
|
2905
|
+
label: (0, i18n_1._)('Null value display'),
|
|
2904
2906
|
option: 'nullValueDisplay',
|
|
2905
2907
|
editor: 'editor.radioBar',
|
|
2906
2908
|
editorProps: {
|
|
2907
2909
|
values: [{
|
|
2908
|
-
label: i18n_1._('Gaps'),
|
|
2910
|
+
label: (0, i18n_1._)('Gaps'),
|
|
2909
2911
|
value: 'gaps'
|
|
2910
2912
|
}, {
|
|
2911
|
-
label: i18n_1._('Zero'),
|
|
2913
|
+
label: (0, i18n_1._)('Zero'),
|
|
2912
2914
|
value: 'zero'
|
|
2913
2915
|
}, {
|
|
2914
|
-
label: i18n_1._('Connect'),
|
|
2916
|
+
label: (0, i18n_1._)('Connect'),
|
|
2915
2917
|
value: 'connect'
|
|
2916
2918
|
}]
|
|
2917
2919
|
}
|
|
2918
2920
|
}], [{
|
|
2919
|
-
label: i18n_1._('Data value display'),
|
|
2921
|
+
label: (0, i18n_1._)('Data value display'),
|
|
2920
2922
|
option: 'dataValuesDisplay',
|
|
2921
2923
|
editor: 'editor.radioBar',
|
|
2922
2924
|
editorProps: {
|
|
2923
2925
|
values: [{
|
|
2924
|
-
label: i18n_1._('Off'),
|
|
2926
|
+
label: (0, i18n_1._)('Off'),
|
|
2925
2927
|
value: 'off'
|
|
2926
2928
|
}, {
|
|
2927
|
-
label: i18n_1._('All'),
|
|
2929
|
+
label: (0, i18n_1._)('All'),
|
|
2928
2930
|
value: 'all'
|
|
2929
2931
|
}, {
|
|
2930
|
-
label: i18n_1._('Min/Max'),
|
|
2932
|
+
label: (0, i18n_1._)('Min/Max'),
|
|
2931
2933
|
value: 'minmax'
|
|
2932
2934
|
}]
|
|
2933
2935
|
}
|
|
2934
2936
|
}], [{
|
|
2935
|
-
label: i18n_1._('Overlay fields'),
|
|
2937
|
+
label: (0, i18n_1._)('Overlay fields'),
|
|
2936
2938
|
option: 'overlayFields',
|
|
2937
2939
|
editor: 'editor.columnMultiSelectionByFieldNameEditor',
|
|
2938
2940
|
editorProps: {
|
|
2939
2941
|
filterByTypes: ['number']
|
|
2940
2942
|
}
|
|
2941
2943
|
}], [{
|
|
2942
|
-
label: i18n_1._('Split series'),
|
|
2944
|
+
label: (0, i18n_1._)('Split series'),
|
|
2943
2945
|
option: 'showSplitSeries',
|
|
2944
2946
|
editor: 'editor.toggle'
|
|
2945
2947
|
}], [{
|
|
2946
|
-
label: i18n_1._('Independent y-axis for split series'),
|
|
2948
|
+
label: (0, i18n_1._)('Independent y-axis for split series'),
|
|
2947
2949
|
option: 'showIndependentYRanges',
|
|
2948
2950
|
editor: 'editor.checkbox',
|
|
2949
2951
|
showEditor: function showEditor(_ref) {
|
|
@@ -2955,18 +2957,18 @@ exports.AxesChartDataDisplayLine = {
|
|
|
2955
2957
|
var AxesChartDataDisplay = {
|
|
2956
2958
|
label: exports.AxesChartDataDisplayLine.label,
|
|
2957
2959
|
layout: [[{
|
|
2958
|
-
label: i18n_1._('Stack mode'),
|
|
2960
|
+
label: (0, i18n_1._)('Stack mode'),
|
|
2959
2961
|
option: 'stackMode',
|
|
2960
2962
|
editor: 'editor.select',
|
|
2961
2963
|
editorProps: {
|
|
2962
2964
|
values: [{
|
|
2963
|
-
label: i18n_1._('Not stacked'),
|
|
2965
|
+
label: (0, i18n_1._)('Not stacked'),
|
|
2964
2966
|
value: 'auto'
|
|
2965
2967
|
}, {
|
|
2966
|
-
label: i18n_1._('Stacked'),
|
|
2968
|
+
label: (0, i18n_1._)('Stacked'),
|
|
2967
2969
|
value: 'stacked'
|
|
2968
2970
|
}, {
|
|
2969
|
-
label: i18n_1._('Stacked 100%'),
|
|
2971
|
+
label: (0, i18n_1._)('Stacked 100%'),
|
|
2970
2972
|
value: 'stacked100'
|
|
2971
2973
|
}]
|
|
2972
2974
|
}
|
|
@@ -2975,39 +2977,39 @@ var AxesChartDataDisplay = {
|
|
|
2975
2977
|
exports.AxesChartDataDisplayBar = {
|
|
2976
2978
|
label: exports.AxesChartDataDisplayLine.label,
|
|
2977
2979
|
layout: [[{
|
|
2978
|
-
label: i18n_1._('Stack mode'),
|
|
2980
|
+
label: (0, i18n_1._)('Stack mode'),
|
|
2979
2981
|
option: 'stackMode',
|
|
2980
2982
|
editor: 'editor.select',
|
|
2981
2983
|
editorProps: {
|
|
2982
2984
|
values: [{
|
|
2983
|
-
label: i18n_1._('Not stacked'),
|
|
2985
|
+
label: (0, i18n_1._)('Not stacked'),
|
|
2984
2986
|
value: 'auto'
|
|
2985
2987
|
}, {
|
|
2986
|
-
label: i18n_1._('Stacked'),
|
|
2988
|
+
label: (0, i18n_1._)('Stacked'),
|
|
2987
2989
|
value: 'stacked'
|
|
2988
2990
|
}, {
|
|
2989
|
-
label: i18n_1._('Stacked 100%'),
|
|
2991
|
+
label: (0, i18n_1._)('Stacked 100%'),
|
|
2990
2992
|
value: 'stacked100'
|
|
2991
2993
|
}]
|
|
2992
2994
|
}
|
|
2993
|
-
}]].concat(_toConsumableArray(lodash_1.drop(exports.AxesChartDataDisplayLine.layout)))
|
|
2995
|
+
}]].concat(_toConsumableArray((0, lodash_1.drop)(exports.AxesChartDataDisplayLine.layout)))
|
|
2994
2996
|
};
|
|
2995
2997
|
exports.AxesChartDataDisplayColumn = {
|
|
2996
2998
|
label: exports.AxesChartDataDisplayBar.label,
|
|
2997
|
-
layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartDataDisplayBar.layout, 2, [{
|
|
2998
|
-
label: i18n_1._('Show tooltip on hover'),
|
|
2999
|
+
layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartDataDisplayBar.layout, 2, [{
|
|
3000
|
+
label: (0, i18n_1._)('Show tooltip on hover'),
|
|
2999
3001
|
option: 'showTooltip',
|
|
3000
3002
|
editor: 'editor.checkbox'
|
|
3001
3003
|
}])), [[{
|
|
3002
|
-
label: i18n_1._('Column grouping mode'),
|
|
3004
|
+
label: (0, i18n_1._)('Column grouping mode'),
|
|
3003
3005
|
option: 'columnGrouping',
|
|
3004
3006
|
editor: 'editor.radioBar',
|
|
3005
3007
|
editorProps: {
|
|
3006
3008
|
values: [{
|
|
3007
|
-
label: i18n_1._('Auto'),
|
|
3009
|
+
label: (0, i18n_1._)('Auto'),
|
|
3008
3010
|
value: 'auto'
|
|
3009
3011
|
}, {
|
|
3010
|
-
label: i18n_1._('Overlay'),
|
|
3012
|
+
label: (0, i18n_1._)('Overlay'),
|
|
3011
3013
|
value: 'overlay'
|
|
3012
3014
|
}]
|
|
3013
3015
|
}
|
|
@@ -3016,7 +3018,7 @@ exports.AxesChartDataDisplayColumn = {
|
|
|
3016
3018
|
exports.default = AxesChartDataDisplay;
|
|
3017
3019
|
|
|
3018
3020
|
/***/ }),
|
|
3019
|
-
/*
|
|
3021
|
+
/* 89 */
|
|
3020
3022
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3021
3023
|
|
|
3022
3024
|
"use strict";
|
|
@@ -3027,13 +3029,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3027
3029
|
});
|
|
3028
3030
|
var i18n_1 = __webpack_require__(2);
|
|
3029
3031
|
var axesChartY2GridAndLabels = {
|
|
3030
|
-
label: i18n_1._('Y2-axis grid and labels'),
|
|
3032
|
+
label: (0, i18n_1._)('Y2-axis grid and labels'),
|
|
3031
3033
|
layout: [[{
|
|
3032
|
-
label: i18n_1._('Axis title'),
|
|
3034
|
+
label: (0, i18n_1._)('Axis title'),
|
|
3033
3035
|
option: 'y2AxisTitleVisibility',
|
|
3034
3036
|
editor: 'editor.toggle'
|
|
3035
3037
|
}], [{
|
|
3036
|
-
label: i18n_1._('Axis title'),
|
|
3038
|
+
label: (0, i18n_1._)('Axis title'),
|
|
3037
3039
|
option: 'y2AxisTitleText',
|
|
3038
3040
|
editor: 'editor.text',
|
|
3039
3041
|
showEditor: function showEditor(_ref) {
|
|
@@ -3041,7 +3043,7 @@ var axesChartY2GridAndLabels = {
|
|
|
3041
3043
|
return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
|
|
3042
3044
|
}
|
|
3043
3045
|
}], [{
|
|
3044
|
-
label: i18n_1._('Show overlays on the y2-axis'),
|
|
3046
|
+
label: (0, i18n_1._)('Show overlays on the y2-axis'),
|
|
3045
3047
|
option: 'showOverlayY2Axis',
|
|
3046
3048
|
editor: 'editor.checkbox',
|
|
3047
3049
|
showEditor: function showEditor(_ref2) {
|
|
@@ -3049,36 +3051,36 @@ var axesChartY2GridAndLabels = {
|
|
|
3049
3051
|
return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
|
|
3050
3052
|
}
|
|
3051
3053
|
}], [{
|
|
3052
|
-
label: i18n_1._('Scale'),
|
|
3054
|
+
label: (0, i18n_1._)('Scale'),
|
|
3053
3055
|
option: 'y2AxisScale',
|
|
3054
3056
|
editor: 'editor.radioBar',
|
|
3055
3057
|
editorProps: {
|
|
3056
3058
|
values: [{
|
|
3057
|
-
label: i18n_1._('Linear'),
|
|
3059
|
+
label: (0, i18n_1._)('Linear'),
|
|
3058
3060
|
value: 'linear'
|
|
3059
3061
|
}, {
|
|
3060
|
-
label: i18n_1._('Log'),
|
|
3062
|
+
label: (0, i18n_1._)('Log'),
|
|
3061
3063
|
value: 'log'
|
|
3062
3064
|
}]
|
|
3063
3065
|
}
|
|
3064
3066
|
}], [{
|
|
3065
|
-
label: i18n_1._('Label visibility'),
|
|
3067
|
+
label: (0, i18n_1._)('Label visibility'),
|
|
3066
3068
|
option: 'y2AxisLabelVisibility',
|
|
3067
3069
|
editor: 'editor.radioBar',
|
|
3068
3070
|
editorProps: {
|
|
3069
3071
|
values: [{
|
|
3070
|
-
label: i18n_1._('Auto'),
|
|
3072
|
+
label: (0, i18n_1._)('Auto'),
|
|
3071
3073
|
value: 'auto'
|
|
3072
3074
|
}, {
|
|
3073
|
-
label: i18n_1._('Show'),
|
|
3075
|
+
label: (0, i18n_1._)('Show'),
|
|
3074
3076
|
value: 'show'
|
|
3075
3077
|
}, {
|
|
3076
|
-
label: i18n_1._('Hide'),
|
|
3078
|
+
label: (0, i18n_1._)('Hide'),
|
|
3077
3079
|
value: 'hide'
|
|
3078
3080
|
}]
|
|
3079
3081
|
}
|
|
3080
3082
|
}], [{
|
|
3081
|
-
label: i18n_1._('Round axis labels'),
|
|
3083
|
+
label: (0, i18n_1._)('Round axis labels'),
|
|
3082
3084
|
option: 'showRoundedY2AxisLabels',
|
|
3083
3085
|
editor: 'editor.checkbox',
|
|
3084
3086
|
showEditor: function showEditor(_ref3) {
|
|
@@ -3086,7 +3088,7 @@ var axesChartY2GridAndLabels = {
|
|
|
3086
3088
|
return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
|
|
3087
3089
|
}
|
|
3088
3090
|
}], [{
|
|
3089
|
-
label: i18n_1._('SI prefix abbreviation for labels'),
|
|
3091
|
+
label: (0, i18n_1._)('SI prefix abbreviation for labels'),
|
|
3090
3092
|
option: 'y2AxisAbbreviation',
|
|
3091
3093
|
editor: 'editor.checkbox',
|
|
3092
3094
|
showEditor: function showEditor(_ref4) {
|
|
@@ -3094,43 +3096,43 @@ var axesChartY2GridAndLabels = {
|
|
|
3094
3096
|
return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
|
|
3095
3097
|
}
|
|
3096
3098
|
}], [{
|
|
3097
|
-
label: i18n_1._('Include zero'),
|
|
3099
|
+
label: (0, i18n_1._)('Include zero'),
|
|
3098
3100
|
option: 'showY2AxisWithZero',
|
|
3099
3101
|
editor: 'editor.checkbox'
|
|
3100
3102
|
}], [{
|
|
3101
|
-
label: i18n_1._('Minimum axis value'),
|
|
3103
|
+
label: (0, i18n_1._)('Minimum axis value'),
|
|
3102
3104
|
option: 'y2AxisMin',
|
|
3103
3105
|
editor: 'editor.number'
|
|
3104
3106
|
}, {
|
|
3105
|
-
label: i18n_1._('Maximum axis value'),
|
|
3107
|
+
label: (0, i18n_1._)('Maximum axis value'),
|
|
3106
3108
|
option: 'y2AxisMax',
|
|
3107
3109
|
editor: 'editor.number'
|
|
3108
3110
|
}], [{
|
|
3109
|
-
label: i18n_1._('Axis line visibility'),
|
|
3111
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
3110
3112
|
option: 'y2AxisLineVisibility',
|
|
3111
3113
|
editor: 'editor.checkbox'
|
|
3112
3114
|
}], [{
|
|
3113
|
-
label: i18n_1._('Major gridlines'),
|
|
3115
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
3114
3116
|
option: 'showY2MajorGridLines',
|
|
3115
3117
|
editor: 'editor.checkbox'
|
|
3116
3118
|
}], [{
|
|
3117
|
-
label: i18n_1._('Major tick visibility'),
|
|
3119
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
3118
3120
|
option: 'y2AxisMajorTickVisibility',
|
|
3119
3121
|
editor: 'editor.radioBar',
|
|
3120
3122
|
editorProps: {
|
|
3121
3123
|
values: [{
|
|
3122
|
-
label: i18n_1._('Auto'),
|
|
3124
|
+
label: (0, i18n_1._)('Auto'),
|
|
3123
3125
|
value: 'auto'
|
|
3124
3126
|
}, {
|
|
3125
|
-
label: i18n_1._('Show'),
|
|
3127
|
+
label: (0, i18n_1._)('Show'),
|
|
3126
3128
|
value: 'show'
|
|
3127
3129
|
}, {
|
|
3128
|
-
label: i18n_1._('Hide'),
|
|
3130
|
+
label: (0, i18n_1._)('Hide'),
|
|
3129
3131
|
value: 'hide'
|
|
3130
3132
|
}]
|
|
3131
3133
|
}
|
|
3132
3134
|
}], [{
|
|
3133
|
-
label: i18n_1._('Major tick size (px)'),
|
|
3135
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
3134
3136
|
option: 'y2AxisMajorTickSize',
|
|
3135
3137
|
editor: 'editor.slider',
|
|
3136
3138
|
editorProps: {
|
|
@@ -3143,7 +3145,7 @@ var axesChartY2GridAndLabels = {
|
|
|
3143
3145
|
return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
|
|
3144
3146
|
}
|
|
3145
3147
|
}], [{
|
|
3146
|
-
label: i18n_1._('Major tick interval spacing'),
|
|
3148
|
+
label: (0, i18n_1._)('Major tick interval spacing'),
|
|
3147
3149
|
option: 'y2AxisMajorTickInterval',
|
|
3148
3150
|
editor: 'editor.number',
|
|
3149
3151
|
showEditor: function showEditor(_ref6) {
|
|
@@ -3151,27 +3153,27 @@ var axesChartY2GridAndLabels = {
|
|
|
3151
3153
|
return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
|
|
3152
3154
|
}
|
|
3153
3155
|
}], [{
|
|
3154
|
-
label: i18n_1._('Minor gridlines'),
|
|
3156
|
+
label: (0, i18n_1._)('Minor gridlines'),
|
|
3155
3157
|
option: 'showY2MinorGridLines',
|
|
3156
3158
|
editor: 'editor.checkbox'
|
|
3157
3159
|
}], [{
|
|
3158
|
-
label: i18n_1._('Minor tick visibility'),
|
|
3160
|
+
label: (0, i18n_1._)('Minor tick visibility'),
|
|
3159
3161
|
option: 'y2AxisMinorTickVisibility',
|
|
3160
3162
|
editor: 'editor.radioBar',
|
|
3161
3163
|
editorProps: {
|
|
3162
3164
|
values: [{
|
|
3163
|
-
label: i18n_1._('Auto'),
|
|
3165
|
+
label: (0, i18n_1._)('Auto'),
|
|
3164
3166
|
value: 'auto'
|
|
3165
3167
|
}, {
|
|
3166
|
-
label: i18n_1._('Show'),
|
|
3168
|
+
label: (0, i18n_1._)('Show'),
|
|
3167
3169
|
value: 'show'
|
|
3168
3170
|
}, {
|
|
3169
|
-
label: i18n_1._('Hide'),
|
|
3171
|
+
label: (0, i18n_1._)('Hide'),
|
|
3170
3172
|
value: 'hide'
|
|
3171
3173
|
}]
|
|
3172
3174
|
}
|
|
3173
3175
|
}], [{
|
|
3174
|
-
label: i18n_1._('Minor tick size (px)'),
|
|
3176
|
+
label: (0, i18n_1._)('Minor tick size (px)'),
|
|
3175
3177
|
option: 'y2AxisMinorTickSize',
|
|
3176
3178
|
editor: 'editor.slider',
|
|
3177
3179
|
editorProps: {
|
|
@@ -3188,7 +3190,6 @@ var axesChartY2GridAndLabels = {
|
|
|
3188
3190
|
exports.default = axesChartY2GridAndLabels;
|
|
3189
3191
|
|
|
3190
3192
|
/***/ }),
|
|
3191
|
-
/* 89 */,
|
|
3192
3193
|
/* 90 */,
|
|
3193
3194
|
/* 91 */,
|
|
3194
3195
|
/* 92 */,
|
|
@@ -3241,7 +3242,10 @@ exports.default = axesChartY2GridAndLabels;
|
|
|
3241
3242
|
/* 139 */,
|
|
3242
3243
|
/* 140 */,
|
|
3243
3244
|
/* 141 */,
|
|
3244
|
-
/* 142
|
|
3245
|
+
/* 142 */,
|
|
3246
|
+
/* 143 */,
|
|
3247
|
+
/* 144 */,
|
|
3248
|
+
/* 145 */
|
|
3245
3249
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3246
3250
|
|
|
3247
3251
|
"use strict";
|
|
@@ -3264,14 +3268,14 @@ exports.config = exports.themes = exports.computeVizProps = void 0;
|
|
|
3264
3268
|
var lodash_1 = __webpack_require__(3);
|
|
3265
3269
|
// Charting imports i18n which needs to be run to instantiate window globals in the tests
|
|
3266
3270
|
// eslint-disable-next-line import/order
|
|
3267
|
-
var Charting_1 = __webpack_require__(
|
|
3268
|
-
var charting_bundle_1 = __webpack_require__(
|
|
3269
|
-
var simpleXMLOptions_1 = __webpack_require__(
|
|
3270
|
-
var config_1 = __webpack_require__(
|
|
3271
|
+
var Charting_1 = __webpack_require__(65);
|
|
3272
|
+
var charting_bundle_1 = __webpack_require__(55);
|
|
3273
|
+
var simpleXMLOptions_1 = __webpack_require__(70);
|
|
3274
|
+
var config_1 = __webpack_require__(180);
|
|
3271
3275
|
exports.config = config_1.default;
|
|
3272
3276
|
var withDashboardViz_1 = __webpack_require__(36);
|
|
3273
|
-
var barUtils_1 = __webpack_require__(
|
|
3274
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3277
|
+
var barUtils_1 = __webpack_require__(181);
|
|
3278
|
+
var chartingUtils_1 = __webpack_require__(56);
|
|
3275
3279
|
var validOptions = Object.keys(config_1.default.optionsSchema);
|
|
3276
3280
|
var computeVizProps = function computeVizProps(_a) {
|
|
3277
3281
|
var dataSources = _a.dataSources,
|
|
@@ -3287,14 +3291,14 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
3287
3291
|
};
|
|
3288
3292
|
var y2 = otherOptions.y2,
|
|
3289
3293
|
y2Fields = otherOptions.y2Fields;
|
|
3290
|
-
computedProps.options = lodash_1.chain(otherOptions).pick(validOptions).thru(barUtils_1.convertToBarSCProperties).thru(function (options) {
|
|
3291
|
-
return Object.assign(Object.assign({}, simpleXMLOptions_1.getSimpleXMLOptionsForProps(options)), {
|
|
3294
|
+
computedProps.options = (0, lodash_1.chain)(otherOptions).pick(validOptions).thru(barUtils_1.convertToBarSCProperties).thru(function (options) {
|
|
3295
|
+
return Object.assign(Object.assign({}, (0, simpleXMLOptions_1.getSimpleXMLOptionsForProps)(options)), {
|
|
3292
3296
|
chart: 'bar'
|
|
3293
3297
|
});
|
|
3294
3298
|
}).value();
|
|
3295
3299
|
var truncationLimit = computedProps.options['chart.resultTruncationLimit'];
|
|
3296
3300
|
var primaryData = Object.assign({}, dataSources.primary.data);
|
|
3297
|
-
var
|
|
3301
|
+
var _ref = (0, chartingUtils_1.constructFieldsAndColumns)({
|
|
3298
3302
|
x: x,
|
|
3299
3303
|
y: y,
|
|
3300
3304
|
xField: xField,
|
|
@@ -3302,12 +3306,12 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
3302
3306
|
y2: y2,
|
|
3303
3307
|
y2Fields: y2Fields
|
|
3304
3308
|
}),
|
|
3305
|
-
columns =
|
|
3306
|
-
fields =
|
|
3309
|
+
columns = _ref.columns,
|
|
3310
|
+
fields = _ref.fields;
|
|
3307
3311
|
primaryData.columns = columns;
|
|
3308
3312
|
primaryData.fields = fields;
|
|
3309
3313
|
if (truncationLimit) {
|
|
3310
|
-
primaryData = chartingUtils_1.truncateData(primaryData, truncationLimit);
|
|
3314
|
+
primaryData = (0, chartingUtils_1.truncateData)(primaryData, truncationLimit);
|
|
3311
3315
|
}
|
|
3312
3316
|
computedProps.chartData = charting_bundle_1.default.extractChartReadyData(Object.assign({}, primaryData));
|
|
3313
3317
|
if (otherOptions.hasEventHandlers) {
|
|
@@ -3319,7 +3323,7 @@ var computeVizProps = function computeVizProps(_a) {
|
|
|
3319
3323
|
return computedProps;
|
|
3320
3324
|
};
|
|
3321
3325
|
exports.computeVizProps = computeVizProps;
|
|
3322
|
-
var Bar = withDashboardViz_1.default({
|
|
3326
|
+
var Bar = (0, withDashboardViz_1.default)({
|
|
3323
3327
|
ReactViz: Charting_1.default,
|
|
3324
3328
|
computeVizProps: exports.computeVizProps,
|
|
3325
3329
|
vizConfig: config_1.default
|
|
@@ -3329,9 +3333,6 @@ exports.themes = themes;
|
|
|
3329
3333
|
exports.default = Bar;
|
|
3330
3334
|
|
|
3331
3335
|
/***/ }),
|
|
3332
|
-
/* 143 */,
|
|
3333
|
-
/* 144 */,
|
|
3334
|
-
/* 145 */,
|
|
3335
3336
|
/* 146 */,
|
|
3336
3337
|
/* 147 */,
|
|
3337
3338
|
/* 148 */,
|
|
@@ -3362,7 +3363,10 @@ exports.default = Bar;
|
|
|
3362
3363
|
/* 173 */,
|
|
3363
3364
|
/* 174 */,
|
|
3364
3365
|
/* 175 */,
|
|
3365
|
-
/* 176
|
|
3366
|
+
/* 176 */,
|
|
3367
|
+
/* 177 */,
|
|
3368
|
+
/* 178 */,
|
|
3369
|
+
/* 179 */
|
|
3366
3370
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3367
3371
|
|
|
3368
3372
|
"use strict";
|
|
@@ -3370,12 +3374,16 @@ exports.default = Bar;
|
|
|
3370
3374
|
|
|
3371
3375
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
3372
3376
|
if (k2 === undefined) k2 = k;
|
|
3373
|
-
Object.
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3377
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3378
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3379
|
+
desc = {
|
|
3380
|
+
enumerable: true,
|
|
3381
|
+
get: function get() {
|
|
3382
|
+
return m[k];
|
|
3383
|
+
}
|
|
3384
|
+
};
|
|
3385
|
+
}
|
|
3386
|
+
Object.defineProperty(o, k2, desc);
|
|
3379
3387
|
} : function (o, m, k, k2) {
|
|
3380
3388
|
if (k2 === undefined) k2 = k;
|
|
3381
3389
|
o[k2] = m[k];
|
|
@@ -3389,8 +3397,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3389
3397
|
value: true
|
|
3390
3398
|
});
|
|
3391
3399
|
exports.default = void 0;
|
|
3392
|
-
__exportStar(__webpack_require__(
|
|
3393
|
-
var Bar_1 = __webpack_require__(
|
|
3400
|
+
__exportStar(__webpack_require__(145), exports);
|
|
3401
|
+
var Bar_1 = __webpack_require__(145);
|
|
3394
3402
|
Object.defineProperty(exports, "default", {
|
|
3395
3403
|
enumerable: true,
|
|
3396
3404
|
get: function get() {
|
|
@@ -3399,7 +3407,7 @@ Object.defineProperty(exports, "default", {
|
|
|
3399
3407
|
});
|
|
3400
3408
|
|
|
3401
3409
|
/***/ }),
|
|
3402
|
-
/*
|
|
3410
|
+
/* 180 */
|
|
3403
3411
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3404
3412
|
|
|
3405
3413
|
"use strict";
|
|
@@ -3410,20 +3418,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3410
3418
|
value: true
|
|
3411
3419
|
});
|
|
3412
3420
|
var visualization_icons_1 = __webpack_require__(52);
|
|
3413
|
-
var placeholders_1 = __webpack_require__(
|
|
3421
|
+
var placeholders_1 = __webpack_require__(50);
|
|
3414
3422
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3415
3423
|
var visualization_color_palettes_1 = __webpack_require__(51);
|
|
3416
3424
|
var i18n_1 = __webpack_require__(2);
|
|
3417
3425
|
var pick_1 = __webpack_require__(23);
|
|
3418
3426
|
var variables_1 = __webpack_require__(11);
|
|
3419
3427
|
var lodash_1 = __webpack_require__(3);
|
|
3420
|
-
var AxesChartDataConfig_1 = __webpack_require__(
|
|
3421
|
-
var AxesChartDataDisplay_1 = __webpack_require__(
|
|
3422
|
-
var AxesChartXGridAndLabels_1 = __webpack_require__(
|
|
3423
|
-
var AxesChartColorAndStyle_1 = __webpack_require__(
|
|
3424
|
-
var AxesChartLegend_1 = __webpack_require__(
|
|
3425
|
-
var AxesChartYGridAndLabels_1 = __webpack_require__(
|
|
3426
|
-
var AxesChartY2GridAndLabels_1 = __webpack_require__(
|
|
3428
|
+
var AxesChartDataConfig_1 = __webpack_require__(74);
|
|
3429
|
+
var AxesChartDataDisplay_1 = __webpack_require__(88);
|
|
3430
|
+
var AxesChartXGridAndLabels_1 = __webpack_require__(77);
|
|
3431
|
+
var AxesChartColorAndStyle_1 = __webpack_require__(75);
|
|
3432
|
+
var AxesChartLegend_1 = __webpack_require__(76);
|
|
3433
|
+
var AxesChartYGridAndLabels_1 = __webpack_require__(78);
|
|
3434
|
+
var AxesChartY2GridAndLabels_1 = __webpack_require__(89);
|
|
3427
3435
|
var VizBehavior_1 = __webpack_require__(6);
|
|
3428
3436
|
var VizCategory_1 = __webpack_require__(35);
|
|
3429
3437
|
var configUtils_1 = __webpack_require__(20);
|
|
@@ -3506,13 +3514,13 @@ var optionsSchema = {
|
|
|
3506
3514
|
dataValuesDisplay: {
|
|
3507
3515
|
default: 'off',
|
|
3508
3516
|
description: 'Specify the labels to display. Enter "all" to show lables for all data points, "off" to show no labels, or "minmax to show high and low values".',
|
|
3509
|
-
pattern: schemaUtils_1.getPattern(['off', 'all', 'minmax']),
|
|
3517
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
|
|
3510
3518
|
type: 'string'
|
|
3511
3519
|
},
|
|
3512
3520
|
legendDisplay: {
|
|
3513
3521
|
default: 'right',
|
|
3514
3522
|
description: 'Specify the location of the legend on the panel.',
|
|
3515
|
-
pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
|
|
3523
|
+
pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
|
|
3516
3524
|
type: 'string'
|
|
3517
3525
|
},
|
|
3518
3526
|
legendLabels: {
|
|
@@ -3525,13 +3533,13 @@ var optionsSchema = {
|
|
|
3525
3533
|
legendMode: {
|
|
3526
3534
|
default: 'standard',
|
|
3527
3535
|
description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
|
|
3528
|
-
pattern: schemaUtils_1.getPattern(['standard', 'seriesCompare']),
|
|
3536
|
+
pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
|
|
3529
3537
|
type: 'string'
|
|
3530
3538
|
},
|
|
3531
3539
|
legendTruncation: {
|
|
3532
3540
|
default: 'ellipsisEnd',
|
|
3533
3541
|
description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
|
|
3534
|
-
pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
3542
|
+
pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
|
|
3535
3543
|
type: 'string'
|
|
3536
3544
|
},
|
|
3537
3545
|
lineWidth: {
|
|
@@ -3563,7 +3571,7 @@ var optionsSchema = {
|
|
|
3563
3571
|
stackMode: {
|
|
3564
3572
|
default: 'auto',
|
|
3565
3573
|
description: 'Specify stack mode.',
|
|
3566
|
-
pattern: schemaUtils_1.getPattern(['auto', 'stacked', 'stacked100']),
|
|
3574
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
|
|
3567
3575
|
type: 'string'
|
|
3568
3576
|
},
|
|
3569
3577
|
showIndependentYRanges: {
|
|
@@ -3619,40 +3627,40 @@ var optionsSchema = {
|
|
|
3619
3627
|
xAxisLabelVisibility: {
|
|
3620
3628
|
default: 'auto',
|
|
3621
3629
|
description: 'Specify whether to show labels on the x-axis.',
|
|
3622
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3630
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3623
3631
|
type: 'string'
|
|
3624
3632
|
},
|
|
3625
3633
|
yAxisLabelVisibility: {
|
|
3626
3634
|
default: 'auto',
|
|
3627
3635
|
description: 'Specify whether to show labels on the y-axis.',
|
|
3628
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3636
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3629
3637
|
type: 'string'
|
|
3630
3638
|
},
|
|
3631
3639
|
y2AxisLabelVisibility: {
|
|
3632
3640
|
default: 'auto',
|
|
3633
3641
|
description: 'Specify whether to show labels on the second y-axis.',
|
|
3634
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3642
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3635
3643
|
type: 'string'
|
|
3636
3644
|
},
|
|
3637
3645
|
xAxisLineVisibility: {
|
|
3638
3646
|
default: 'hide',
|
|
3639
3647
|
description: 'Specify whether to show the x-axis line.',
|
|
3640
3648
|
enum: ['hide', 'show'],
|
|
3641
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
3649
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
3642
3650
|
type: 'string'
|
|
3643
3651
|
},
|
|
3644
3652
|
yAxisLineVisibility: {
|
|
3645
3653
|
default: 'hide',
|
|
3646
3654
|
description: 'Specify whether to show the y-axis line.',
|
|
3647
3655
|
enum: ['hide', 'show'],
|
|
3648
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
3656
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
3649
3657
|
type: 'string'
|
|
3650
3658
|
},
|
|
3651
3659
|
y2AxisLineVisibility: {
|
|
3652
3660
|
default: 'hide',
|
|
3653
3661
|
description: 'Specify whether to show the second y-axis line.',
|
|
3654
3662
|
enum: ['hide', 'show'],
|
|
3655
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
3663
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
3656
3664
|
type: 'string'
|
|
3657
3665
|
},
|
|
3658
3666
|
xAxisMajorTickSize: {
|
|
@@ -3683,31 +3691,31 @@ var optionsSchema = {
|
|
|
3683
3691
|
xAxisMajorTickVisibility: {
|
|
3684
3692
|
default: 'auto',
|
|
3685
3693
|
description: 'Specify whether to show major tick marks on the x-axis.',
|
|
3686
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3694
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3687
3695
|
type: 'string'
|
|
3688
3696
|
},
|
|
3689
3697
|
yAxisMajorTickVisibility: {
|
|
3690
3698
|
default: 'auto',
|
|
3691
3699
|
description: 'Specify whether to show major tick marks on the y-axis.',
|
|
3692
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3700
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3693
3701
|
type: 'string'
|
|
3694
3702
|
},
|
|
3695
3703
|
y2AxisMajorTickVisibility: {
|
|
3696
3704
|
default: 'auto',
|
|
3697
3705
|
description: 'Specify whether to show major tick marks on the second y-axis.',
|
|
3698
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3706
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3699
3707
|
type: 'string'
|
|
3700
3708
|
},
|
|
3701
3709
|
yAxisMinorTickVisibility: {
|
|
3702
3710
|
default: 'auto',
|
|
3703
3711
|
description: 'Specify whether to show minor tick marks on the y-axis.',
|
|
3704
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3712
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3705
3713
|
type: 'string'
|
|
3706
3714
|
},
|
|
3707
3715
|
y2AxisMinorTickVisibility: {
|
|
3708
3716
|
default: 'auto',
|
|
3709
3717
|
description: 'Specify whether to show minor tick marks on the second y-axis.',
|
|
3710
|
-
pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
|
|
3718
|
+
pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
|
|
3711
3719
|
type: 'string'
|
|
3712
3720
|
},
|
|
3713
3721
|
xAxisMaxLabelParts: {
|
|
@@ -3720,13 +3728,13 @@ var optionsSchema = {
|
|
|
3720
3728
|
yAxisScale: {
|
|
3721
3729
|
default: 'linear',
|
|
3722
3730
|
description: 'Specify the type of scale that applies to a numerical y-axis.',
|
|
3723
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
3731
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
3724
3732
|
type: 'string'
|
|
3725
3733
|
},
|
|
3726
3734
|
y2AxisScale: {
|
|
3727
3735
|
default: 'linear',
|
|
3728
3736
|
description: 'Specify the type of scale that applies to a numerical second y-axis.',
|
|
3729
|
-
pattern: schemaUtils_1.getPattern(['linear', 'log']),
|
|
3737
|
+
pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
|
|
3730
3738
|
type: 'string'
|
|
3731
3739
|
},
|
|
3732
3740
|
xAxisTitleText: {
|
|
@@ -3745,35 +3753,35 @@ var optionsSchema = {
|
|
|
3745
3753
|
default: 'show',
|
|
3746
3754
|
description: 'Specify whether to show the title of the x-axis.',
|
|
3747
3755
|
enum: ['hide', 'show'],
|
|
3748
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
3756
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
3749
3757
|
type: 'string'
|
|
3750
3758
|
},
|
|
3751
3759
|
yAxisTitleVisibility: {
|
|
3752
3760
|
default: 'show',
|
|
3753
3761
|
description: 'Specify whether to show the title of the y-axis.',
|
|
3754
3762
|
enum: ['hide', 'show'],
|
|
3755
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
3763
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
3756
3764
|
type: 'string'
|
|
3757
3765
|
},
|
|
3758
3766
|
y2AxisTitleVisibility: {
|
|
3759
3767
|
default: 'show',
|
|
3760
3768
|
description: 'Specify whether to show the title of the second y-axis.',
|
|
3761
3769
|
enum: ['hide', 'show'],
|
|
3762
|
-
pattern: schemaUtils_1.getPattern(['show', 'hide']),
|
|
3770
|
+
pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
|
|
3763
3771
|
type: 'string'
|
|
3764
3772
|
},
|
|
3765
3773
|
yAxisAbbreviation: {
|
|
3766
3774
|
default: 'auto',
|
|
3767
3775
|
description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
|
|
3768
3776
|
enum: ['auto', 'off'],
|
|
3769
|
-
pattern: schemaUtils_1.getPattern(['off', 'auto']),
|
|
3777
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
3770
3778
|
type: 'string'
|
|
3771
3779
|
},
|
|
3772
3780
|
y2AxisAbbreviation: {
|
|
3773
3781
|
default: 'auto',
|
|
3774
3782
|
description: 'Specify whether to abbreviate large y2-axis values with the closest International System of Units (SI) prefix.',
|
|
3775
3783
|
enum: ['auto', 'off'],
|
|
3776
|
-
pattern: schemaUtils_1.getPattern(['off', 'auto']),
|
|
3784
|
+
pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
|
|
3777
3785
|
type: 'string'
|
|
3778
3786
|
},
|
|
3779
3787
|
yAxisMajorTickInterval: {
|
|
@@ -3827,7 +3835,7 @@ var optionsSchema = {
|
|
|
3827
3835
|
};
|
|
3828
3836
|
var themes = {
|
|
3829
3837
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
3830
|
-
return pick_1.default({
|
|
3838
|
+
return (0, pick_1.default)({
|
|
3831
3839
|
enterprise: {
|
|
3832
3840
|
dark: variables_1.default.black(props),
|
|
3833
3841
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -3836,17 +3844,17 @@ var themes = {
|
|
|
3836
3844
|
})(props);
|
|
3837
3845
|
}
|
|
3838
3846
|
};
|
|
3839
|
-
var updatedAxesChartLegend = lodash_1.cloneDeep(AxesChartLegend_1.default);
|
|
3847
|
+
var updatedAxesChartLegend = (0, lodash_1.cloneDeep)(AxesChartLegend_1.default);
|
|
3840
3848
|
updatedAxesChartLegend.layout.push([{
|
|
3841
|
-
label: i18n_1._('Legend mode'),
|
|
3849
|
+
label: (0, i18n_1._)('Legend mode'),
|
|
3842
3850
|
option: 'legendMode',
|
|
3843
3851
|
editor: 'editor.radioBar',
|
|
3844
3852
|
editorProps: {
|
|
3845
3853
|
values: [{
|
|
3846
|
-
label: i18n_1._('Standard'),
|
|
3854
|
+
label: (0, i18n_1._)('Standard'),
|
|
3847
3855
|
value: 'standard'
|
|
3848
3856
|
}, {
|
|
3849
|
-
label: i18n_1._('Compare series'),
|
|
3857
|
+
label: (0, i18n_1._)('Compare series'),
|
|
3850
3858
|
value: 'seriesCompare'
|
|
3851
3859
|
}]
|
|
3852
3860
|
}
|
|
@@ -3854,7 +3862,7 @@ updatedAxesChartLegend.layout.push([{
|
|
|
3854
3862
|
var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataDisplay_1.AxesChartDataDisplayBar, {
|
|
3855
3863
|
label: AxesChartColorAndStyle_1.default.label,
|
|
3856
3864
|
layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
|
|
3857
|
-
label: i18n_1._('Line width'),
|
|
3865
|
+
label: (0, i18n_1._)('Line width'),
|
|
3858
3866
|
option: 'lineWidth',
|
|
3859
3867
|
editor: 'editor.slider',
|
|
3860
3868
|
editorProps: {
|
|
@@ -3867,18 +3875,18 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
3867
3875
|
return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
|
|
3868
3876
|
}
|
|
3869
3877
|
}], [{
|
|
3870
|
-
label: i18n_1._('Series spacing'),
|
|
3878
|
+
label: (0, i18n_1._)('Series spacing'),
|
|
3871
3879
|
option: 'seriesSpacing',
|
|
3872
3880
|
editor: 'editor.number'
|
|
3873
3881
|
}], [{
|
|
3874
|
-
label: i18n_1._('Bar spacing'),
|
|
3882
|
+
label: (0, i18n_1._)('Bar spacing'),
|
|
3875
3883
|
option: 'barSpacing',
|
|
3876
3884
|
editor: 'editor.number'
|
|
3877
3885
|
}]])
|
|
3878
3886
|
}, updatedAxesChartLegend, {
|
|
3879
|
-
label: i18n_1._('X-axis grid and labels (vertical axis)'),
|
|
3887
|
+
label: (0, i18n_1._)('X-axis grid and labels (vertical axis)'),
|
|
3880
3888
|
layout: [].concat(_toConsumableArray(AxesChartXGridAndLabels_1.AxesChartXGridAndLabelsCommon.layout), [[{
|
|
3881
|
-
label: i18n_1._('Number of time label parts'),
|
|
3889
|
+
label: (0, i18n_1._)('Number of time label parts'),
|
|
3882
3890
|
option: 'xAxisMaxLabelParts',
|
|
3883
3891
|
editor: 'editor.number',
|
|
3884
3892
|
editorProps: {
|
|
@@ -3890,31 +3898,31 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
3890
3898
|
return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
|
|
3891
3899
|
}
|
|
3892
3900
|
}], [{
|
|
3893
|
-
label: i18n_1._('Axis line visibility'),
|
|
3901
|
+
label: (0, i18n_1._)('Axis line visibility'),
|
|
3894
3902
|
option: 'xAxisLineVisibility',
|
|
3895
3903
|
editor: 'editor.checkbox'
|
|
3896
3904
|
}], [{
|
|
3897
|
-
label: i18n_1._('Major gridlines'),
|
|
3905
|
+
label: (0, i18n_1._)('Major gridlines'),
|
|
3898
3906
|
option: 'showXMajorGridLines',
|
|
3899
3907
|
editor: 'editor.checkbox'
|
|
3900
3908
|
}], [{
|
|
3901
|
-
label: i18n_1._('Major tick visibility'),
|
|
3909
|
+
label: (0, i18n_1._)('Major tick visibility'),
|
|
3902
3910
|
option: 'xAxisMajorTickVisibility',
|
|
3903
3911
|
editor: 'editor.radioBar',
|
|
3904
3912
|
editorProps: {
|
|
3905
3913
|
values: [{
|
|
3906
|
-
label: i18n_1._('Auto'),
|
|
3914
|
+
label: (0, i18n_1._)('Auto'),
|
|
3907
3915
|
value: 'auto'
|
|
3908
3916
|
}, {
|
|
3909
|
-
label: i18n_1._('Show'),
|
|
3917
|
+
label: (0, i18n_1._)('Show'),
|
|
3910
3918
|
value: 'show'
|
|
3911
3919
|
}, {
|
|
3912
|
-
label: i18n_1._('Hide'),
|
|
3920
|
+
label: (0, i18n_1._)('Hide'),
|
|
3913
3921
|
value: 'hide'
|
|
3914
3922
|
}]
|
|
3915
3923
|
}
|
|
3916
3924
|
}], [{
|
|
3917
|
-
label: i18n_1._('Major tick size (px)'),
|
|
3925
|
+
label: (0, i18n_1._)('Major tick size (px)'),
|
|
3918
3926
|
option: 'xAxisMajorTickSize',
|
|
3919
3927
|
editor: 'editor.slider',
|
|
3920
3928
|
editorProps: {
|
|
@@ -3928,7 +3936,7 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
|
|
|
3928
3936
|
}
|
|
3929
3937
|
}]])
|
|
3930
3938
|
}, Object.assign(Object.assign({}, AxesChartYGridAndLabels_1.default), {
|
|
3931
|
-
label: i18n_1._('Y-axis grid and labels (horizontal axis)')
|
|
3939
|
+
label: (0, i18n_1._)('Y-axis grid and labels (horizontal axis)')
|
|
3932
3940
|
}), AxesChartY2GridAndLabels_1.default];
|
|
3933
3941
|
/**
|
|
3934
3942
|
* visualization configuration
|
|
@@ -3941,7 +3949,7 @@ var config = {
|
|
|
3941
3949
|
/**
|
|
3942
3950
|
* viz name
|
|
3943
3951
|
*/
|
|
3944
|
-
name: i18n_1._('Bar'),
|
|
3952
|
+
name: (0, i18n_1._)('Bar'),
|
|
3945
3953
|
category: VizCategory_1.VizCategory.COMPARISONS,
|
|
3946
3954
|
/**
|
|
3947
3955
|
* viz icon
|
|
@@ -3970,10 +3978,10 @@ var config = {
|
|
|
3970
3978
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
|
|
3971
3979
|
themes: themes
|
|
3972
3980
|
};
|
|
3973
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
3981
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
3974
3982
|
|
|
3975
3983
|
/***/ }),
|
|
3976
|
-
/*
|
|
3984
|
+
/* 181 */
|
|
3977
3985
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3978
3986
|
|
|
3979
3987
|
"use strict";
|
|
@@ -3984,8 +3992,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3984
3992
|
});
|
|
3985
3993
|
exports.convertToBarSCProperties = exports.mapToOldKey = exports.convertToStringValues = void 0;
|
|
3986
3994
|
var lodash_1 = __webpack_require__(3);
|
|
3987
|
-
var propUtils_1 = __webpack_require__(
|
|
3988
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3995
|
+
var propUtils_1 = __webpack_require__(29);
|
|
3996
|
+
var chartingUtils_1 = __webpack_require__(56);
|
|
3989
3997
|
// map for key names which are either new or not present in SimpleXML options mapping
|
|
3990
3998
|
var barOptionsSCMapping = {
|
|
3991
3999
|
yAxisMajorTickInterval: 'yAxisMajorUnit',
|
|
@@ -4055,7 +4063,7 @@ var barOptionValuesSCMapping = {
|
|
|
4055
4063
|
* @returns {Object}
|
|
4056
4064
|
*/
|
|
4057
4065
|
var convertToStringValues = function convertToStringValues(options) {
|
|
4058
|
-
var updatedOptions = propUtils_1.convertPropsToString({
|
|
4066
|
+
var updatedOptions = (0, propUtils_1.convertPropsToString)({
|
|
4059
4067
|
vizProps: options,
|
|
4060
4068
|
propNames: ['seriesColors', 'fieldColors', 'legendLabels']
|
|
4061
4069
|
});
|
|
@@ -4070,7 +4078,7 @@ exports.convertToStringValues = convertToStringValues;
|
|
|
4070
4078
|
* @returns {Object}
|
|
4071
4079
|
*/
|
|
4072
4080
|
var mapToOldKey = function mapToOldKey(options) {
|
|
4073
|
-
return lodash_1.mapKeys(options, function (val, key) {
|
|
4081
|
+
return (0, lodash_1.mapKeys)(options, function (val, key) {
|
|
4074
4082
|
return barOptionsSCMapping[key] ? barOptionsSCMapping[key] : key;
|
|
4075
4083
|
});
|
|
4076
4084
|
};
|
|
@@ -4084,7 +4092,7 @@ exports.mapToOldKey = mapToOldKey;
|
|
|
4084
4092
|
* @returns {Object}
|
|
4085
4093
|
*/
|
|
4086
4094
|
var convertToBarSCProperties = function convertToBarSCProperties(originalOptions) {
|
|
4087
|
-
return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(barOptionValuesSCMapping)).thru(chartingUtils_1.convertY2AxisOptions).thru(chartingUtils_1.convertOverlayFields).thru(exports.convertToStringValues).value();
|
|
4095
|
+
return (0, lodash_1.chain)((0, exports.mapToOldKey)(originalOptions)).thru((0, chartingUtils_1.mapToValues)(barOptionValuesSCMapping)).thru(chartingUtils_1.convertY2AxisOptions).thru(chartingUtils_1.convertOverlayFields).thru(exports.convertToStringValues).value();
|
|
4088
4096
|
};
|
|
4089
4097
|
exports.convertToBarSCProperties = convertToBarSCProperties;
|
|
4090
4098
|
|