@splunk/visualizations 26.2.1 → 26.4.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 +92 -595
- package/Area.config.js.map +1 -1
- package/Area.js +296 -801
- package/Area.js.map +1 -1
- package/Bar.config.js +93 -562
- package/Bar.config.js.map +1 -1
- package/Bar.js +299 -770
- package/Bar.js.map +1 -1
- package/Bubble.config.js +84 -483
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +286 -687
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +77 -202
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +272 -400
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +93 -600
- package/Column.config.js.map +1 -1
- package/Column.js +299 -808
- package/Column.js.map +1 -1
- package/Ellipse.config.js +82 -200
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +233 -356
- package/Ellipse.js.map +1 -1
- package/Events.config.js +62 -283
- package/Events.config.js.map +1 -1
- package/Events.js +326 -530
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +91 -220
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +267 -401
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +61 -157
- package/Image.config.js.map +1 -1
- package/Image.js +217 -327
- package/Image.js.map +1 -1
- package/Line.config.js +92 -607
- package/Line.config.js.map +1 -1
- package/Line.js +297 -814
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +75 -257
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +1755 -17415
- package/LinkGraph.js.map +1 -1
- package/MIGRATION.md +6 -0
- package/Map.config.js +128 -1123
- package/Map.config.js.map +1 -1
- package/Map.js +470 -782
- package/Map.js.map +1 -1
- package/Markdown.config.js +62 -189
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +272 -401
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +138 -298
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +309 -470
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +72 -192
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +333 -442
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +77 -241
- package/Pie.config.js.map +1 -1
- package/Pie.js +336 -471
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +72 -306
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +356 -583
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +211 -347
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +371 -509
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +72 -214
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +343 -475
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +86 -464
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +1118 -1493
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +124 -411
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +522 -789
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +73 -61
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +123 -380
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +508 -745
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +121 -385
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1642 -1885
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +39 -39
- package/SparkLine.js.map +1 -1
- package/Table.config.js +82 -496
- package/Table.config.js.map +1 -1
- package/Table.js +416 -825
- package/Table.js.map +1 -1
- package/common/Charting.js +37 -57
- package/common/Charting.js.map +1 -1
- package/common/DocExampleWithVizSandbox.js +21 -21
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/EventsDoc.js +18 -18
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +4 -4
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +4 -4
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +39 -40
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +2 -2
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +19 -19
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/gaugeUtils.js +10 -10
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +10 -10
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +25 -155
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +87 -105
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/featureFlagUtils.js +4 -4
- package/common/utils/featureFlagUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/mapUtils.js +51 -54
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +30 -18
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +7 -36
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +7 -6
- 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 +93 -101
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +48 -50
- package/common/utils/layoutUtils.js +0 -115
- package/common/utils/layoutUtils.js.map +0 -1
package/SingleValue.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 = 477);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,70 +95,25 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("prop-types");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("react");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@
|
|
113
|
-
|
|
114
|
-
/***/ }),
|
|
115
|
-
|
|
116
|
-
/***/ 102:
|
|
117
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
118
|
-
|
|
119
|
-
"use strict";
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Object.defineProperty(exports, "__esModule", {
|
|
123
|
-
value: true
|
|
124
|
-
});
|
|
125
|
-
exports.TrellisTitle = exports.TRELLIS_TITLE_HEIGHT = void 0;
|
|
126
|
-
|
|
127
|
-
var React = __webpack_require__(0);
|
|
128
|
-
|
|
129
|
-
var styled_components_1 = __webpack_require__(4);
|
|
130
|
-
|
|
131
|
-
exports.TRELLIS_TITLE_HEIGHT = 28;
|
|
132
|
-
var TrellisTitleText = styled_components_1.default.div.withConfig({
|
|
133
|
-
displayName: "TrellisTitle__TrellisTitleText",
|
|
134
|
-
componentId: "sc-2cu404-0"
|
|
135
|
-
})(["margin-left:10px;margin-right:10px;padding-top:8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"]);
|
|
136
|
-
var TrellisTitleDiv = styled_components_1.default.div.withConfig({
|
|
137
|
-
displayName: "TrellisTitle__TrellisTitleDiv",
|
|
138
|
-
componentId: "sc-2cu404-1"
|
|
139
|
-
})(["height:", "px;font-size:14px;font-weight:700;color:", ";background-color:", ";box-shadow:0 1px ", ";"], exports.TRELLIS_TITLE_HEIGHT, function (props) {
|
|
140
|
-
return props.fontColor;
|
|
141
|
-
}, function (props) {
|
|
142
|
-
return props.backgroundColor;
|
|
143
|
-
}, function (props) {
|
|
144
|
-
return props.backgroundColor;
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
var TrellisTitle = function TrellisTitle(props) {
|
|
148
|
-
var titleText = String(props.trellisKey).toString();
|
|
149
|
-
return React.createElement(TrellisTitleDiv, {
|
|
150
|
-
fontColor: props.fontColor,
|
|
151
|
-
backgroundColor: props.backgroundColor,
|
|
152
|
-
"data-test": "trellis-title",
|
|
153
|
-
title: titleText
|
|
154
|
-
}, React.createElement(TrellisTitleText, null, titleText));
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
exports.TrellisTitle = TrellisTitle;
|
|
112
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
158
113
|
|
|
159
114
|
/***/ }),
|
|
160
115
|
|
|
161
|
-
/***/
|
|
116
|
+
/***/ 101:
|
|
162
117
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
163
118
|
|
|
164
119
|
"use strict";
|
|
@@ -169,15 +124,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
169
124
|
__webpack_require__.d(__webpack_exports__, "SingleValueTrendValue", function() { return /* binding */ SingleValueTrendValue; });
|
|
170
125
|
|
|
171
126
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
|
|
172
|
-
var extends_ = __webpack_require__(
|
|
127
|
+
var extends_ = __webpack_require__(68);
|
|
173
128
|
var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
|
|
174
129
|
|
|
175
130
|
// EXTERNAL MODULE: external "react"
|
|
176
|
-
var external_react_ = __webpack_require__(
|
|
131
|
+
var external_react_ = __webpack_require__(1);
|
|
177
132
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
178
133
|
|
|
179
134
|
// EXTERNAL MODULE: external "prop-types"
|
|
180
|
-
var external_prop_types_ = __webpack_require__(
|
|
135
|
+
var external_prop_types_ = __webpack_require__(0);
|
|
181
136
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
182
137
|
|
|
183
138
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -185,18 +140,18 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
185
140
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
186
141
|
|
|
187
142
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
188
|
-
var singleValueUtils = __webpack_require__(
|
|
143
|
+
var singleValueUtils = __webpack_require__(19);
|
|
189
144
|
|
|
190
145
|
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowUp"
|
|
191
|
-
var ArrowUp_ = __webpack_require__(
|
|
146
|
+
var ArrowUp_ = __webpack_require__(105);
|
|
192
147
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
193
148
|
|
|
194
149
|
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ArrowDown"
|
|
195
|
-
var ArrowDown_ = __webpack_require__(
|
|
150
|
+
var ArrowDown_ = __webpack_require__(106);
|
|
196
151
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
197
152
|
|
|
198
153
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
199
|
-
var i18n_ = __webpack_require__(
|
|
154
|
+
var i18n_ = __webpack_require__(3);
|
|
200
155
|
|
|
201
156
|
// CONCATENATED MODULE: ./src/SingleValueBasic/TrendValue.jsx
|
|
202
157
|
|
|
@@ -208,7 +163,7 @@ var i18n_ = __webpack_require__(2);
|
|
|
208
163
|
|
|
209
164
|
var Column = external_styled_components_default.a.div.withConfig({
|
|
210
165
|
displayName: "TrendValue__Column",
|
|
211
|
-
componentId: "yd2lvy-0"
|
|
166
|
+
componentId: "sc-yd2lvy-0"
|
|
212
167
|
})(["display:flex;flex-direction:row;justify-content:", ";height:", "px;", ";"], function (props) {
|
|
213
168
|
return props.justify || 'flex-end';
|
|
214
169
|
}, function (props) {
|
|
@@ -218,7 +173,7 @@ var Column = external_styled_components_default.a.div.withConfig({
|
|
|
218
173
|
});
|
|
219
174
|
var Text = external_styled_components_default.a.div.withConfig({
|
|
220
175
|
displayName: "TrendValue__Text",
|
|
221
|
-
componentId: "yd2lvy-1"
|
|
176
|
+
componentId: "sc-yd2lvy-1"
|
|
222
177
|
})(["white-space:nowrap;font-size:", "px;color:", ";font-family:", ";height:", "px;line-height:", "px;display:flex;align-self:baseline;", ";"], function (props) {
|
|
223
178
|
return props.size || 12;
|
|
224
179
|
}, function (props) {
|
|
@@ -271,7 +226,7 @@ TrendValue_SingleValueContent.propTypes = {
|
|
|
271
226
|
};
|
|
272
227
|
/* harmony default export */ var TrendValue = (TrendValue_SingleValueContent);
|
|
273
228
|
// EXTERNAL MODULE: external "cssesc"
|
|
274
|
-
var external_cssesc_ = __webpack_require__(
|
|
229
|
+
var external_cssesc_ = __webpack_require__(107);
|
|
275
230
|
var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc_);
|
|
276
231
|
|
|
277
232
|
// CONCATENATED MODULE: ./src/SingleValueBasic/MajorValue.jsx
|
|
@@ -282,7 +237,7 @@ var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc
|
|
|
282
237
|
|
|
283
238
|
var Row = external_styled_components_default.a.div.withConfig({
|
|
284
239
|
displayName: "MajorValue__Row",
|
|
285
|
-
componentId: "shlzpv-0"
|
|
240
|
+
componentId: "sc-shlzpv-0"
|
|
286
241
|
})(["display:flex;flex-direction:row;align-items:flex-end;justify-content:left;height:", "px;line-height:", "px;"], function (props) {
|
|
287
242
|
return props.size;
|
|
288
243
|
}, function (props) {
|
|
@@ -290,7 +245,7 @@ var Row = external_styled_components_default.a.div.withConfig({
|
|
|
290
245
|
});
|
|
291
246
|
var MajorValue_Text = external_styled_components_default.a.div.withConfig({
|
|
292
247
|
displayName: "MajorValue__Text",
|
|
293
|
-
componentId: "shlzpv-1"
|
|
248
|
+
componentId: "sc-shlzpv-1"
|
|
294
249
|
})(["white-space:nowrap;height:100%;font-size:", "px;color:", ";font-family:", ";font-weight:bold;&:hover{text-decoration:", ";cursor:", ";}", ""], function (props) {
|
|
295
250
|
return props.size || 12;
|
|
296
251
|
}, function (props) {
|
|
@@ -381,11 +336,11 @@ MajorValue_SingleValueContent.propTypes = {
|
|
|
381
336
|
|
|
382
337
|
var SingleValueBasic_Column = external_styled_components_default.a.div.withConfig({
|
|
383
338
|
displayName: "SingleValueBasic__Column",
|
|
384
|
-
componentId: "k0nwrx-0"
|
|
339
|
+
componentId: "sc-k0nwrx-0"
|
|
385
340
|
})(["display:flex;flex-direction:column;align-self:center;justify-content:center;"]);
|
|
386
341
|
var SingleValueBasic_Row = external_styled_components_default.a.div.withConfig({
|
|
387
342
|
displayName: "SingleValueBasic__Row",
|
|
388
|
-
componentId: "k0nwrx-1"
|
|
343
|
+
componentId: "sc-k0nwrx-1"
|
|
389
344
|
})(["display:flex;flex-direction:row;align-items:", ";justify-content:", ";"], function (props) {
|
|
390
345
|
return props.alignItems || 'center';
|
|
391
346
|
}, function (props) {
|
|
@@ -393,7 +348,7 @@ var SingleValueBasic_Row = external_styled_components_default.a.div.withConfig({
|
|
|
393
348
|
});
|
|
394
349
|
var SingleValueBasic_Text = external_styled_components_default.a.div.withConfig({
|
|
395
350
|
displayName: "SingleValueBasic__Text",
|
|
396
|
-
componentId: "k0nwrx-2"
|
|
351
|
+
componentId: "sc-k0nwrx-2"
|
|
397
352
|
})(["font-weight:normal;white-space:nowrap;font-size:", "px;color:", ";font-family:", ";height:", "px;line-height:1.2;margin:", ";"], function (props) {
|
|
398
353
|
return props.size || 12;
|
|
399
354
|
}, function (props) {
|
|
@@ -477,61 +432,61 @@ var SingleValueTrendValue = TrendValue;
|
|
|
477
432
|
|
|
478
433
|
/***/ }),
|
|
479
434
|
|
|
480
|
-
/***/
|
|
435
|
+
/***/ 104:
|
|
481
436
|
/***/ (function(module, exports) {
|
|
482
437
|
|
|
483
438
|
module.exports = require("@splunk/visualizations-shared/trellisUtils");
|
|
484
439
|
|
|
485
440
|
/***/ }),
|
|
486
441
|
|
|
487
|
-
/***/
|
|
442
|
+
/***/ 105:
|
|
488
443
|
/***/ (function(module, exports) {
|
|
489
444
|
|
|
490
445
|
module.exports = require("@splunk/react-icons/enterprise/ArrowUp");
|
|
491
446
|
|
|
492
447
|
/***/ }),
|
|
493
448
|
|
|
494
|
-
/***/
|
|
449
|
+
/***/ 106:
|
|
495
450
|
/***/ (function(module, exports) {
|
|
496
451
|
|
|
497
452
|
module.exports = require("@splunk/react-icons/enterprise/ArrowDown");
|
|
498
453
|
|
|
499
454
|
/***/ }),
|
|
500
455
|
|
|
501
|
-
/***/
|
|
456
|
+
/***/ 107:
|
|
502
457
|
/***/ (function(module, exports) {
|
|
503
458
|
|
|
504
|
-
module.exports = require("
|
|
459
|
+
module.exports = require("cssesc");
|
|
505
460
|
|
|
506
461
|
/***/ }),
|
|
507
462
|
|
|
508
|
-
/***/
|
|
463
|
+
/***/ 108:
|
|
509
464
|
/***/ (function(module, exports) {
|
|
510
465
|
|
|
511
|
-
module.exports = require("
|
|
466
|
+
module.exports = require("@babel/runtime/helpers/assertThisInitialized");
|
|
512
467
|
|
|
513
468
|
/***/ }),
|
|
514
469
|
|
|
515
|
-
/***/
|
|
470
|
+
/***/ 11:
|
|
516
471
|
/***/ (function(module, exports) {
|
|
517
472
|
|
|
518
|
-
module.exports = require("@
|
|
473
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
519
474
|
|
|
520
475
|
/***/ }),
|
|
521
476
|
|
|
522
|
-
/***/
|
|
477
|
+
/***/ 111:
|
|
523
478
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
524
479
|
|
|
525
480
|
"use strict";
|
|
526
481
|
__webpack_require__.r(__webpack_exports__);
|
|
527
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
482
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
528
483
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
529
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
484
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
530
485
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
531
486
|
|
|
532
487
|
|
|
533
488
|
var StaticBackgroundColorEditor = {
|
|
534
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background'),
|
|
489
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background color'),
|
|
535
490
|
option: 'backgroundColor',
|
|
536
491
|
editor: 'editor.color',
|
|
537
492
|
showEditor: function showEditor(_ref) {
|
|
@@ -543,47 +498,47 @@ var StaticBackgroundColorEditor = {
|
|
|
543
498
|
|
|
544
499
|
/***/ }),
|
|
545
500
|
|
|
546
|
-
/***/
|
|
501
|
+
/***/ 113:
|
|
547
502
|
/***/ (function(module, exports) {
|
|
548
503
|
|
|
549
504
|
module.exports = require("@splunk/react-ui/Paginator");
|
|
550
505
|
|
|
551
506
|
/***/ }),
|
|
552
507
|
|
|
553
|
-
/***/
|
|
508
|
+
/***/ 114:
|
|
554
509
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
555
510
|
|
|
556
511
|
"use strict";
|
|
557
512
|
__webpack_require__.r(__webpack_exports__);
|
|
558
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
513
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68);
|
|
559
514
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
560
|
-
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
515
|
+
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
|
561
516
|
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
|
|
562
|
-
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
517
|
+
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
|
|
563
518
|
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
|
|
564
|
-
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
519
|
+
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(108);
|
|
565
520
|
/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);
|
|
566
|
-
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
521
|
+
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91);
|
|
567
522
|
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
|
|
568
|
-
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
523
|
+
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92);
|
|
569
524
|
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
|
|
570
|
-
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
525
|
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82);
|
|
571
526
|
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
|
|
572
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
527
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
|
|
573
528
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
|
|
574
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
529
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
575
530
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
576
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
531
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1);
|
|
577
532
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
578
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
533
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2);
|
|
579
534
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
|
|
580
535
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4);
|
|
581
536
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_11__);
|
|
582
|
-
/* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
537
|
+
/* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(81);
|
|
583
538
|
/* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__);
|
|
584
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
539
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3);
|
|
585
540
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__);
|
|
586
|
-
/* harmony import */ var _splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
|
|
541
|
+
/* harmony import */ var _splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(30);
|
|
587
542
|
/* harmony import */ var _splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_id__WEBPACK_IMPORTED_MODULE_14__);
|
|
588
543
|
|
|
589
544
|
|
|
@@ -1195,19 +1150,19 @@ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Spa
|
|
|
1195
1150
|
/***/ 12:
|
|
1196
1151
|
/***/ (function(module, exports) {
|
|
1197
1152
|
|
|
1198
|
-
module.exports = require("@
|
|
1153
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
1199
1154
|
|
|
1200
1155
|
/***/ }),
|
|
1201
1156
|
|
|
1202
|
-
/***/
|
|
1157
|
+
/***/ 121:
|
|
1203
1158
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1204
1159
|
|
|
1205
1160
|
"use strict";
|
|
1206
1161
|
__webpack_require__.r(__webpack_exports__);
|
|
1207
1162
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
|
|
1208
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1163
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
1209
1164
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1210
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1165
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
1211
1166
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
1212
1167
|
|
|
1213
1168
|
|
|
@@ -1244,15 +1199,15 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
1244
1199
|
|
|
1245
1200
|
/***/ }),
|
|
1246
1201
|
|
|
1247
|
-
/***/
|
|
1202
|
+
/***/ 122:
|
|
1248
1203
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1249
1204
|
|
|
1250
1205
|
"use strict";
|
|
1251
1206
|
__webpack_require__.r(__webpack_exports__);
|
|
1252
1207
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
|
|
1253
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1208
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
1254
1209
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1255
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1210
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
1256
1211
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
1257
1212
|
|
|
1258
1213
|
|
|
@@ -1260,7 +1215,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
1260
1215
|
var defaultContext = _ref.defaultContext,
|
|
1261
1216
|
defaultPalettesConfig = _ref.defaultPalettesConfig;
|
|
1262
1217
|
return {
|
|
1263
|
-
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background'),
|
|
1218
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Background color'),
|
|
1264
1219
|
option: 'backgroundColor',
|
|
1265
1220
|
context: 'backgroundColorEditorConfig',
|
|
1266
1221
|
editor: 'editor.dynamicColor',
|
|
@@ -1299,12 +1254,12 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
1299
1254
|
|
|
1300
1255
|
/***/ }),
|
|
1301
1256
|
|
|
1302
|
-
/***/
|
|
1257
|
+
/***/ 123:
|
|
1303
1258
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1304
1259
|
|
|
1305
1260
|
"use strict";
|
|
1306
1261
|
__webpack_require__.r(__webpack_exports__);
|
|
1307
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1262
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
1308
1263
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1309
1264
|
|
|
1310
1265
|
var StaticMajorAndTrendLayout = [[{
|
|
@@ -1350,14 +1305,14 @@ var StaticMajorAndTrendLayout = [[{
|
|
|
1350
1305
|
|
|
1351
1306
|
/***/ }),
|
|
1352
1307
|
|
|
1353
|
-
/***/
|
|
1308
|
+
/***/ 124:
|
|
1354
1309
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1355
1310
|
|
|
1356
1311
|
"use strict";
|
|
1357
1312
|
__webpack_require__.r(__webpack_exports__);
|
|
1358
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1313
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
1359
1314
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1360
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1315
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
1361
1316
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
1362
1317
|
|
|
1363
1318
|
|
|
@@ -1374,14 +1329,14 @@ var StaticMajorColorEditor = {
|
|
|
1374
1329
|
|
|
1375
1330
|
/***/ }),
|
|
1376
1331
|
|
|
1377
|
-
/***/
|
|
1332
|
+
/***/ 125:
|
|
1378
1333
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1379
1334
|
|
|
1380
1335
|
"use strict";
|
|
1381
1336
|
__webpack_require__.r(__webpack_exports__);
|
|
1382
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1337
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
1383
1338
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1384
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1339
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
1385
1340
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
1386
1341
|
|
|
1387
1342
|
|
|
@@ -1402,7 +1357,7 @@ var StaticTrendColorEditor = {
|
|
|
1402
1357
|
|
|
1403
1358
|
/***/ }),
|
|
1404
1359
|
|
|
1405
|
-
/***/
|
|
1360
|
+
/***/ 126:
|
|
1406
1361
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1407
1362
|
|
|
1408
1363
|
"use strict";
|
|
@@ -1413,13 +1368,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1413
1368
|
});
|
|
1414
1369
|
exports.TrellisBackgroundColorEditor = exports.TrellisEditorConfig = void 0;
|
|
1415
1370
|
|
|
1416
|
-
var React = __webpack_require__(
|
|
1371
|
+
var React = __webpack_require__(1);
|
|
1417
1372
|
|
|
1418
|
-
var i18n_1 = __webpack_require__(
|
|
1373
|
+
var i18n_1 = __webpack_require__(3);
|
|
1419
1374
|
|
|
1420
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1375
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
1421
1376
|
|
|
1422
|
-
var
|
|
1377
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1423
1378
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
1424
1379
|
|
|
1425
1380
|
|
|
@@ -1443,7 +1398,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
1443
1398
|
var options = _ref.options;
|
|
1444
1399
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1445
1400
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1446
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
1401
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1447
1402
|
}
|
|
1448
1403
|
}], [{
|
|
1449
1404
|
label: (0, i18n_1._)('Number of columns'),
|
|
@@ -1457,7 +1412,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
1457
1412
|
var options = _ref2.options;
|
|
1458
1413
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1459
1414
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1460
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
1415
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1461
1416
|
}
|
|
1462
1417
|
}], [{
|
|
1463
1418
|
label: (0, i18n_1._)('Min column width'),
|
|
@@ -1470,7 +1425,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
1470
1425
|
var options = _ref3.options;
|
|
1471
1426
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1472
1427
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1473
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
1428
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1474
1429
|
}
|
|
1475
1430
|
}, {
|
|
1476
1431
|
label: (0, i18n_1._)('Row height'),
|
|
@@ -1483,7 +1438,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
1483
1438
|
var options = _ref4.options;
|
|
1484
1439
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1485
1440
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1486
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
1441
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1487
1442
|
}
|
|
1488
1443
|
}], [{
|
|
1489
1444
|
label: (0, i18n_1._)('Max number of components per page'),
|
|
@@ -1496,7 +1451,7 @@ exports.TrellisEditorConfig = [[{
|
|
|
1496
1451
|
var options = _ref5.options;
|
|
1497
1452
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1498
1453
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1499
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
1454
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1500
1455
|
}
|
|
1501
1456
|
}]];
|
|
1502
1457
|
exports.TrellisBackgroundColorEditor = {
|
|
@@ -1507,19 +1462,19 @@ exports.TrellisBackgroundColorEditor = {
|
|
|
1507
1462
|
var options = _ref6.options;
|
|
1508
1463
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1509
1464
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1510
|
-
return isTrellisFeatureFlagOn && options.splitByLayout ===
|
|
1465
|
+
return isTrellisFeatureFlagOn && options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
1511
1466
|
}
|
|
1512
1467
|
};
|
|
1513
1468
|
|
|
1514
1469
|
/***/ }),
|
|
1515
1470
|
|
|
1516
|
-
/***/
|
|
1471
|
+
/***/ 127:
|
|
1517
1472
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1518
1473
|
|
|
1519
1474
|
"use strict";
|
|
1520
1475
|
|
|
1521
1476
|
|
|
1522
|
-
var _slicedToArray = __webpack_require__(
|
|
1477
|
+
var _slicedToArray = __webpack_require__(5);
|
|
1523
1478
|
|
|
1524
1479
|
var __rest = this && this.__rest || function (s, e) {
|
|
1525
1480
|
var t = {};
|
|
@@ -1538,45 +1493,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1538
1493
|
value: true
|
|
1539
1494
|
});
|
|
1540
1495
|
|
|
1541
|
-
var React = __webpack_require__(
|
|
1496
|
+
var React = __webpack_require__(1);
|
|
1542
1497
|
|
|
1543
|
-
var react_1 = __webpack_require__(
|
|
1498
|
+
var react_1 = __webpack_require__(1);
|
|
1544
1499
|
|
|
1545
|
-
var lodash_1 = __webpack_require__(
|
|
1500
|
+
var lodash_1 = __webpack_require__(2);
|
|
1546
1501
|
|
|
1547
1502
|
var styled_components_1 = __webpack_require__(4);
|
|
1548
1503
|
|
|
1549
|
-
var Paginator_1 = __webpack_require__(
|
|
1504
|
+
var Paginator_1 = __webpack_require__(113);
|
|
1550
1505
|
|
|
1551
|
-
var i18n_1 = __webpack_require__(
|
|
1506
|
+
var i18n_1 = __webpack_require__(3);
|
|
1552
1507
|
|
|
1553
|
-
var themes_1 = __webpack_require__(
|
|
1508
|
+
var themes_1 = __webpack_require__(79);
|
|
1554
1509
|
|
|
1555
|
-
var useSplunkTheme_1 = __webpack_require__(
|
|
1510
|
+
var useSplunkTheme_1 = __webpack_require__(76);
|
|
1556
1511
|
|
|
1557
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1512
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
1558
1513
|
|
|
1559
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
1514
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
1560
1515
|
|
|
1561
1516
|
var style_1 = __webpack_require__(18);
|
|
1562
1517
|
|
|
1563
|
-
var Message_1 = __webpack_require__(
|
|
1518
|
+
var Message_1 = __webpack_require__(11);
|
|
1564
1519
|
|
|
1565
|
-
var trellisUtils_1 = __webpack_require__(
|
|
1520
|
+
var trellisUtils_1 = __webpack_require__(104);
|
|
1566
1521
|
|
|
1567
|
-
var hocUtils_1 = __webpack_require__(
|
|
1522
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
1568
1523
|
|
|
1569
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1524
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
1570
1525
|
|
|
1571
|
-
var
|
|
1526
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
1572
1527
|
|
|
1573
|
-
var
|
|
1528
|
+
var Options_1 = __webpack_require__(16);
|
|
1574
1529
|
|
|
1575
|
-
var
|
|
1530
|
+
var trellisUtils_2 = __webpack_require__(128);
|
|
1576
1531
|
|
|
1577
1532
|
var TrellisContainer = styled_components_1.default.div.withConfig({
|
|
1578
1533
|
displayName: "withTrellis__TrellisContainer",
|
|
1579
|
-
componentId: "pjmeig-0"
|
|
1534
|
+
componentId: "sc-pjmeig-0"
|
|
1580
1535
|
})(["overflow:hidden;display:flex;flex-direction:column;background-color:", ";", ";> [data-test='paginator']{align-self:flex-end;margin-bottom:10px;}"], function (props) {
|
|
1581
1536
|
return props.backgroundColor;
|
|
1582
1537
|
}, function (props) {
|
|
@@ -1584,7 +1539,7 @@ var TrellisContainer = styled_components_1.default.div.withConfig({
|
|
|
1584
1539
|
});
|
|
1585
1540
|
var TrellisContainerGrid = styled_components_1.default.div.withConfig({
|
|
1586
1541
|
displayName: "withTrellis__TrellisContainerGrid",
|
|
1587
|
-
componentId: "pjmeig-1"
|
|
1542
|
+
componentId: "sc-pjmeig-1"
|
|
1588
1543
|
})(["display:grid;height:", ";gap:10px 10px;grid-template-columns:", ";overflow:auto;justify-items:stretch;grid-auto-rows:", ";.child{height:", ";}"], function (props) {
|
|
1589
1544
|
return "".concat(props.height, "px");
|
|
1590
1545
|
}, function (props) {
|
|
@@ -1732,11 +1687,11 @@ var withTrellis = function withTrellis(Viz) {
|
|
|
1732
1687
|
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1733
1688
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1734
1689
|
|
|
1735
|
-
if (!isTrellisFeatureFlagOn || !splitByLayout || splitByLayout !==
|
|
1690
|
+
if (!isTrellisFeatureFlagOn || !splitByLayout || splitByLayout !== visualization_schemas_1.LAYOUT_TYPE.Trellis) {
|
|
1736
1691
|
return React.createElement(Viz, Object.assign({}, opts));
|
|
1737
1692
|
}
|
|
1738
1693
|
|
|
1739
|
-
if (splitByLayout ===
|
|
1694
|
+
if (splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis) {
|
|
1740
1695
|
if (noColumns || noFields) {
|
|
1741
1696
|
return React.createElement(Message_1.default, {
|
|
1742
1697
|
width: width,
|
|
@@ -1820,29 +1775,22 @@ exports.default = withTrellis;
|
|
|
1820
1775
|
|
|
1821
1776
|
/***/ }),
|
|
1822
1777
|
|
|
1823
|
-
/***/
|
|
1824
|
-
/***/ (function(module, exports) {
|
|
1825
|
-
|
|
1826
|
-
module.exports = require("@splunk/themes/variables");
|
|
1827
|
-
|
|
1828
|
-
/***/ }),
|
|
1829
|
-
|
|
1830
|
-
/***/ 130:
|
|
1778
|
+
/***/ 128:
|
|
1831
1779
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1832
1780
|
|
|
1833
1781
|
"use strict";
|
|
1834
1782
|
|
|
1835
1783
|
|
|
1836
|
-
var _toConsumableArray = __webpack_require__(
|
|
1784
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
1837
1785
|
|
|
1838
1786
|
Object.defineProperty(exports, "__esModule", {
|
|
1839
1787
|
value: true
|
|
1840
1788
|
});
|
|
1841
1789
|
exports.getTrellisDataSourcesBySplitMode = exports.dataSourcesSplitByModeStatsorUnknown = exports.dataSourcesSplitByModeChart = exports.dataSourcesSplitByModeTimechart = exports.dataSourcesSplitByAggregationsStats = exports.dataSourcesSplitByAggregationsTimechartAndChart = exports.dataSourcesSplitByAggregationsUnknown = exports.AGGREGATIONS = void 0;
|
|
1842
1790
|
|
|
1843
|
-
var lodash_1 = __webpack_require__(
|
|
1791
|
+
var lodash_1 = __webpack_require__(2);
|
|
1844
1792
|
|
|
1845
|
-
var trellisUtils_1 = __webpack_require__(
|
|
1793
|
+
var trellisUtils_1 = __webpack_require__(104);
|
|
1846
1794
|
|
|
1847
1795
|
exports.AGGREGATIONS = 'aggregations';
|
|
1848
1796
|
/**
|
|
@@ -2308,6 +2256,7 @@ var getTrellisDataSourcesBySplitMode = function getTrellisDataSourcesBySplitMode
|
|
|
2308
2256
|
result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsUnknown)(dataSources) : (0, exports.dataSourcesSplitByModeStatsorUnknown)(dataSources, trellisSplitBy, trellisUtils_1.UNKNOWN);
|
|
2309
2257
|
}
|
|
2310
2258
|
} catch (ex) {
|
|
2259
|
+
// eslint-disable-next-line no-console
|
|
2311
2260
|
console.error('getTrellisDataSourcesBySplitMode ', ex);
|
|
2312
2261
|
result = {
|
|
2313
2262
|
splitDataSources: null,
|
|
@@ -2322,14 +2271,21 @@ exports.getTrellisDataSourcesBySplitMode = getTrellisDataSourcesBySplitMode;
|
|
|
2322
2271
|
|
|
2323
2272
|
/***/ }),
|
|
2324
2273
|
|
|
2325
|
-
/***/
|
|
2274
|
+
/***/ 129:
|
|
2326
2275
|
/***/ (function(module, exports) {
|
|
2327
2276
|
|
|
2328
2277
|
module.exports = require("lodash/pick");
|
|
2329
2278
|
|
|
2330
2279
|
/***/ }),
|
|
2331
2280
|
|
|
2332
|
-
/***/
|
|
2281
|
+
/***/ 13:
|
|
2282
|
+
/***/ (function(module, exports) {
|
|
2283
|
+
|
|
2284
|
+
module.exports = require("@splunk/themes/variables");
|
|
2285
|
+
|
|
2286
|
+
/***/ }),
|
|
2287
|
+
|
|
2288
|
+
/***/ 130:
|
|
2333
2289
|
/***/ (function(module, exports) {
|
|
2334
2290
|
|
|
2335
2291
|
module.exports = require("lodash/isEmpty");
|
|
@@ -2347,9 +2303,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2347
2303
|
});
|
|
2348
2304
|
exports.downsampleDataSources = exports.calculateDownsamplingThreshold = exports.calculateThresholdOnRangeSelect = exports.isDownsamplingEnabledForViz = exports.convertToArrOfObjects = void 0;
|
|
2349
2305
|
|
|
2350
|
-
var numberUtils_1 = __webpack_require__(
|
|
2306
|
+
var numberUtils_1 = __webpack_require__(10);
|
|
2351
2307
|
|
|
2352
|
-
var interfaces_1 = __webpack_require__(
|
|
2308
|
+
var interfaces_1 = __webpack_require__(39); // TODO: utilize this fn in ParallelCoordinates
|
|
2353
2309
|
|
|
2354
2310
|
|
|
2355
2311
|
var convertToArrOfObjects = function convertToArrOfObjects(columns, fields) {
|
|
@@ -2484,19 +2440,21 @@ var largestTriangleThreeBuckets = function largestTriangleThreeBuckets(data, thr
|
|
|
2484
2440
|
*/
|
|
2485
2441
|
|
|
2486
2442
|
|
|
2487
|
-
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column) {
|
|
2488
|
-
// Splunk charting allows for numbers in formats such as negative hex that
|
|
2443
|
+
var strictlyCoerceYColumn = function strictlyCoerceYColumn(column, options) {
|
|
2444
|
+
var isNullCoercionEnabled = options.nullValueDisplay === 'zero'; // Splunk charting allows for numbers in formats such as negative hex that
|
|
2489
2445
|
// Number() does not support and also allows loose coercion of hex numbers (but not other formats)
|
|
2490
2446
|
// We want to identify columns which contain at least one value that can be loosely coerced
|
|
2447
|
+
|
|
2491
2448
|
var canLooselyCoerceSomeValues = column.findIndex(function (value) {
|
|
2492
|
-
return (0, numberUtils_1.startsWithNumber)("".concat(value));
|
|
2449
|
+
return (0, numberUtils_1.startsWithNumber)("".concat(value)) || isNullCoercionEnabled && value === null;
|
|
2493
2450
|
}) >= 0; // If not all values in column can be strictly coerced to a number, we do not downsample
|
|
2494
2451
|
|
|
2495
2452
|
var coercedColumn = [];
|
|
2496
2453
|
var canDownsampleColumn = !column.some(function (value) {
|
|
2497
|
-
var coercedValue = Number(value);
|
|
2454
|
+
var coercedValue = Number(value);
|
|
2455
|
+
var coerceValueToZero = isNullCoercionEnabled && value === null; // if it can't be parsed or isn't safe, fail
|
|
2498
2456
|
|
|
2499
|
-
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number') {
|
|
2457
|
+
if (Number.isNaN(coercedValue) || coercedValue <= Number.MIN_SAFE_INTEGER || coercedValue >= Number.MAX_SAFE_INTEGER || typeof value !== 'string' && typeof value !== 'number' && !coerceValueToZero) {
|
|
2500
2458
|
return true;
|
|
2501
2459
|
} // save value and continue to next
|
|
2502
2460
|
|
|
@@ -2577,8 +2535,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
2577
2535
|
dataSources = _ref3.dataSources,
|
|
2578
2536
|
selectChartEvent = _ref3.selectChartEvent,
|
|
2579
2537
|
width = _ref3.width,
|
|
2580
|
-
xField = _ref3.xField
|
|
2581
|
-
y2Fields = _ref3.y2Fields;
|
|
2538
|
+
xField = _ref3.xField;
|
|
2582
2539
|
|
|
2583
2540
|
var _a, _b, _c;
|
|
2584
2541
|
|
|
@@ -2615,14 +2572,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
2615
2572
|
});
|
|
2616
2573
|
var lastIndex = fullSeries.findIndex(function (x) {
|
|
2617
2574
|
return downsampledSeries[endXIndex] === x;
|
|
2618
|
-
});
|
|
2619
|
-
// re-calculating downsampling threshold if the chart is zoomed in until SPL-259458 is fixed
|
|
2620
|
-
// Also do not support re-calculating downsampling threshold for zoomed-in charts with y2
|
|
2621
|
-
// until SPL-259611 is fixed
|
|
2622
|
-
|
|
2623
|
-
if (xField !== '_time' || (y2Fields === null || y2Fields === void 0 ? void 0 : y2Fields.length)) {
|
|
2624
|
-
return firstIndex === 0 && lastIndex === fullSeries.length - 1 ? width : null;
|
|
2625
|
-
}
|
|
2575
|
+
});
|
|
2626
2576
|
|
|
2627
2577
|
if (firstIndex >= 0 && lastIndex >= 0 && firstIndex <= lastIndex) {
|
|
2628
2578
|
return (0, exports.calculateThresholdOnRangeSelect)({
|
|
@@ -2633,6 +2583,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
|
|
|
2633
2583
|
});
|
|
2634
2584
|
}
|
|
2635
2585
|
} catch (e) {
|
|
2586
|
+
// eslint-disable-next-line no-console
|
|
2636
2587
|
console.error('Error occurred while setting downsample threshold on range select event', e);
|
|
2637
2588
|
}
|
|
2638
2589
|
|
|
@@ -2671,7 +2622,7 @@ var isColumnStrictlyIncreasing = function isColumnStrictlyIncreasing(column, fie
|
|
|
2671
2622
|
*/
|
|
2672
2623
|
|
|
2673
2624
|
|
|
2674
|
-
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes) {
|
|
2625
|
+
var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, xField, yFields, fieldTypes, options) {
|
|
2675
2626
|
var xColumn = [];
|
|
2676
2627
|
var yColumns = [];
|
|
2677
2628
|
var canDownsample = !ds.data.fields.some(function (field, index) {
|
|
@@ -2685,7 +2636,7 @@ var tryToCoerceAllDisplayedFields = function tryToCoerceAllDisplayedFields(ds, x
|
|
|
2685
2636
|
if (fieldName === xField) {
|
|
2686
2637
|
xColumn = strictlyCoerceXColumn(column, fieldType);
|
|
2687
2638
|
} else if (yFields.has(fieldName)) {
|
|
2688
|
-
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index]),
|
|
2639
|
+
var _strictlyCoerceYColum = strictlyCoerceYColumn(ds.data.columns[index], options),
|
|
2689
2640
|
coercedColumn = _strictlyCoerceYColum.coercedColumn,
|
|
2690
2641
|
canLooselyCoerceSomeValues = _strictlyCoerceYColum.canLooselyCoerceSomeValues,
|
|
2691
2642
|
canDownsampleColumn = _strictlyCoerceYColum.canDownsampleColumn; // do not perform downsampling if a column can possibly be displayed but cannot
|
|
@@ -2775,7 +2726,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
2775
2726
|
return dataSources;
|
|
2776
2727
|
}
|
|
2777
2728
|
|
|
2778
|
-
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes),
|
|
2729
|
+
var _tryToCoerceAllDispla = tryToCoerceAllDisplayedFields(primaryDS, xField, nonInternalYFields, fieldTypes, options),
|
|
2779
2730
|
xColumn = _tryToCoerceAllDispla.xColumn,
|
|
2780
2731
|
yColumns = _tryToCoerceAllDispla.yColumns;
|
|
2781
2732
|
|
|
@@ -2799,6 +2750,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
|
|
|
2799
2750
|
return downsampledIndices.add(downsampleIndex);
|
|
2800
2751
|
});
|
|
2801
2752
|
} catch (e) {
|
|
2753
|
+
// eslint-disable-next-line no-console
|
|
2802
2754
|
console.error("Error occurred while downsampling column ".concat(columnIndex), e);
|
|
2803
2755
|
}
|
|
2804
2756
|
}); // update data columns with downsampled columns
|
|
@@ -2818,7 +2770,7 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
2818
2770
|
|
|
2819
2771
|
/***/ }),
|
|
2820
2772
|
|
|
2821
|
-
/***/
|
|
2773
|
+
/***/ 153:
|
|
2822
2774
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2823
2775
|
|
|
2824
2776
|
"use strict";
|
|
@@ -2863,15 +2815,15 @@ exports.defaultContext = {
|
|
|
2863
2815
|
|
|
2864
2816
|
/***/ }),
|
|
2865
2817
|
|
|
2866
|
-
/***/
|
|
2818
|
+
/***/ 154:
|
|
2867
2819
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2868
2820
|
|
|
2869
2821
|
"use strict";
|
|
2870
2822
|
__webpack_require__.r(__webpack_exports__);
|
|
2871
2823
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
|
|
2872
|
-
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2824
|
+
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
2873
2825
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
2874
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
2826
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
2875
2827
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
2876
2828
|
|
|
2877
2829
|
|
|
@@ -2927,13 +2879,13 @@ module.exports = require("@splunk/visualization-encoding/Options");
|
|
|
2927
2879
|
"use strict";
|
|
2928
2880
|
|
|
2929
2881
|
|
|
2930
|
-
var _slicedToArray = __webpack_require__(
|
|
2882
|
+
var _slicedToArray = __webpack_require__(5);
|
|
2931
2883
|
|
|
2932
2884
|
Object.defineProperty(exports, "__esModule", {
|
|
2933
2885
|
value: true
|
|
2934
2886
|
});
|
|
2935
2887
|
|
|
2936
|
-
var React = __webpack_require__(
|
|
2888
|
+
var React = __webpack_require__(1);
|
|
2937
2889
|
|
|
2938
2890
|
var styled_components_1 = __webpack_require__(4);
|
|
2939
2891
|
|
|
@@ -2941,7 +2893,7 @@ var style_1 = __webpack_require__(18);
|
|
|
2941
2893
|
|
|
2942
2894
|
var colorUtils_1 = __webpack_require__(15);
|
|
2943
2895
|
|
|
2944
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
2896
|
+
var SizeAwareWrapper_1 = __webpack_require__(25);
|
|
2945
2897
|
|
|
2946
2898
|
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
2947
2899
|
var width = _ref.width;
|
|
@@ -3012,7 +2964,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
3012
2964
|
|
|
3013
2965
|
return React.createElement(FixSizeItem, {
|
|
3014
2966
|
"data-test": "fix-size-item",
|
|
3015
|
-
"data-splunk-visualization-version": "26.
|
|
2967
|
+
"data-splunk-visualization-version": "26.4.0 - 04078274d",
|
|
3016
2968
|
width: width,
|
|
3017
2969
|
height: height,
|
|
3018
2970
|
backgroundColor: backgroundColor
|
|
@@ -3042,29 +2994,6 @@ module.exports = require("@splunk/visualizations-shared/style");
|
|
|
3042
2994
|
/***/ }),
|
|
3043
2995
|
|
|
3044
2996
|
/***/ 19:
|
|
3045
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3046
|
-
|
|
3047
|
-
"use strict";
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3051
|
-
value: true
|
|
3052
|
-
});
|
|
3053
|
-
exports.validOutputModes = exports.validSegmentationModes = exports.validSortDirs = void 0;
|
|
3054
|
-
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
3055
|
-
exports.validSegmentationModes = ['none', 'inner'];
|
|
3056
|
-
exports.validOutputModes = ['json_cols', 'json'];
|
|
3057
|
-
|
|
3058
|
-
/***/ }),
|
|
3059
|
-
|
|
3060
|
-
/***/ 2:
|
|
3061
|
-
/***/ (function(module, exports) {
|
|
3062
|
-
|
|
3063
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
3064
|
-
|
|
3065
|
-
/***/ }),
|
|
3066
|
-
|
|
3067
|
-
/***/ 20:
|
|
3068
2997
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3069
2998
|
|
|
3070
2999
|
"use strict";
|
|
@@ -3100,17 +3029,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3100
3029
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
3101
3030
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
3102
3031
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
3103
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3032
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
|
|
3104
3033
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
3105
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3034
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
3106
3035
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
3107
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
3036
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
3108
3037
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
3109
|
-
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
3038
|
+
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73);
|
|
3110
3039
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
3111
|
-
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
3040
|
+
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35);
|
|
3112
3041
|
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
3113
|
-
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
3042
|
+
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69);
|
|
3114
3043
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
|
|
3115
3044
|
|
|
3116
3045
|
|
|
@@ -3360,7 +3289,7 @@ var computeColors = function computeColors(props, defaultColors) {
|
|
|
3360
3289
|
* @param {Number} props.value // The major/trend value
|
|
3361
3290
|
* @param {Number} props.numberPrecision
|
|
3362
3291
|
* @param {Bool} props.shouldUseThousandSeparators
|
|
3363
|
-
* @param {Bool} props.
|
|
3292
|
+
* @param {Bool} props.shouldAbbreviateValue
|
|
3364
3293
|
* @returns {Number} major or trend text
|
|
3365
3294
|
*/
|
|
3366
3295
|
|
|
@@ -3368,11 +3297,11 @@ var computeText = function computeText(_ref4) {
|
|
|
3368
3297
|
var value = _ref4.value,
|
|
3369
3298
|
numberPrecision = _ref4.numberPrecision,
|
|
3370
3299
|
shouldUseThousandSeparators = _ref4.shouldUseThousandSeparators,
|
|
3371
|
-
|
|
3300
|
+
shouldAbbreviateValue = _ref4.shouldAbbreviateValue;
|
|
3372
3301
|
var text = Object(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__["isNumerial"])(value) ? Object(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__["formatNumber"])(value, numberPrecision, {
|
|
3373
3302
|
useThousandSeparators: shouldUseThousandSeparators,
|
|
3374
3303
|
// todo: need update formatNumber
|
|
3375
|
-
useTrendUnits:
|
|
3304
|
+
useTrendUnits: shouldAbbreviateValue
|
|
3376
3305
|
}) : value; // When text is undefined, return empty string
|
|
3377
3306
|
|
|
3378
3307
|
text = text || '';
|
|
@@ -3384,19 +3313,21 @@ var computeText = function computeText(_ref4) {
|
|
|
3384
3313
|
* @param {Number} props.majorValue
|
|
3385
3314
|
* @param {Number} props.numberPrecision
|
|
3386
3315
|
* @param {Bool} props.shouldUseThousandSeparators
|
|
3316
|
+
* @param {Bool} props.shouldAbbreviateMajorValue
|
|
3387
3317
|
* @returns {String} majorText
|
|
3388
3318
|
*/
|
|
3389
3319
|
|
|
3390
3320
|
var getMajorText = function getMajorText(_ref5) {
|
|
3391
3321
|
var majorValue = _ref5.majorValue,
|
|
3392
3322
|
numberPrecision = _ref5.numberPrecision,
|
|
3393
|
-
shouldUseThousandSeparators = _ref5.shouldUseThousandSeparators
|
|
3323
|
+
shouldUseThousandSeparators = _ref5.shouldUseThousandSeparators,
|
|
3324
|
+
shouldAbbreviateMajorValue = _ref5.shouldAbbreviateMajorValue;
|
|
3394
3325
|
return computeText({
|
|
3395
3326
|
value: majorValue === null ? 'N/A' : majorValue,
|
|
3396
3327
|
// if majorValue is null, use `N/A`.
|
|
3397
3328
|
numberPrecision: numberPrecision,
|
|
3398
3329
|
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
3399
|
-
|
|
3330
|
+
shouldAbbreviateValue: shouldAbbreviateMajorValue
|
|
3400
3331
|
});
|
|
3401
3332
|
};
|
|
3402
3333
|
/*
|
|
@@ -3424,7 +3355,7 @@ var getTrendText = function getTrendText(_ref6) {
|
|
|
3424
3355
|
value: value,
|
|
3425
3356
|
numberPrecision: numberPrecision,
|
|
3426
3357
|
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
3427
|
-
|
|
3358
|
+
shouldAbbreviateValue: shouldAbbreviateTrendValue
|
|
3428
3359
|
});
|
|
3429
3360
|
};
|
|
3430
3361
|
|
|
@@ -3568,6 +3499,7 @@ var getUnderLabel = function getUnderLabel(_ref10) {
|
|
|
3568
3499
|
* @param {Number} props.numberPrecision
|
|
3569
3500
|
* @param {Bool} props.shouldUseThousandSeparators
|
|
3570
3501
|
* @param {Bool} props.shouldAbbreviateTrendValue
|
|
3502
|
+
* @param {Bool} props.shouldAbbreviateMajorValue
|
|
3571
3503
|
* @returns {Number, Number, Number, Number} Major text, trend text, major text size, trend text size
|
|
3572
3504
|
*/
|
|
3573
3505
|
|
|
@@ -3582,14 +3514,16 @@ var getMajorAndTrend = function getMajorAndTrend(_ref11) {
|
|
|
3582
3514
|
unit = _ref11.unit,
|
|
3583
3515
|
numberPrecision = _ref11.numberPrecision,
|
|
3584
3516
|
shouldUseThousandSeparators = _ref11.shouldUseThousandSeparators,
|
|
3585
|
-
shouldAbbreviateTrendValue = _ref11.shouldAbbreviateTrendValue
|
|
3517
|
+
shouldAbbreviateTrendValue = _ref11.shouldAbbreviateTrendValue,
|
|
3518
|
+
shouldAbbreviateMajorValue = _ref11.shouldAbbreviateMajorValue;
|
|
3586
3519
|
var majorTextSpaceRatio = Object(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__["isNumerial"])(trendValue) && shouldShowTrend(trendDisplay) ? 0.6 : 1;
|
|
3587
3520
|
var textContentWidth = width * 0.9;
|
|
3588
3521
|
var textContentHeight = height * 0.9;
|
|
3589
3522
|
var majorText = getMajorText({
|
|
3590
3523
|
majorValue: majorValue,
|
|
3591
3524
|
numberPrecision: numberPrecision,
|
|
3592
|
-
shouldUseThousandSeparators: shouldUseThousandSeparators
|
|
3525
|
+
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
3526
|
+
shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
|
|
3593
3527
|
});
|
|
3594
3528
|
var majorTextFontSize = majorFontSize || getMajorFontSize({
|
|
3595
3529
|
width: textContentWidth,
|
|
@@ -3715,6 +3649,7 @@ var updateVizInSmallSpace = function updateVizInSmallSpace(_ref12) {
|
|
|
3715
3649
|
* @param {Number} props.numberPrecision
|
|
3716
3650
|
* @param {Bool} props.shouldUseThousandSeparators
|
|
3717
3651
|
* @param {Bool} props.shouldAbbreviateTrendValue
|
|
3652
|
+
* @param {Bool} props.shouldAbbreviateMajorValue
|
|
3718
3653
|
* @param {Object} props.toRemoveList
|
|
3719
3654
|
* @returns {Object} results
|
|
3720
3655
|
* @returns {String} results.majorText
|
|
@@ -3739,6 +3674,7 @@ var computeSingleValueContent = function computeSingleValueContent(_ref13) {
|
|
|
3739
3674
|
numberPrecision = _ref13.numberPrecision,
|
|
3740
3675
|
shouldUseThousandSeparators = _ref13.shouldUseThousandSeparators,
|
|
3741
3676
|
shouldAbbreviateTrendValue = _ref13.shouldAbbreviateTrendValue,
|
|
3677
|
+
shouldAbbreviateMajorValue = _ref13.shouldAbbreviateMajorValue,
|
|
3742
3678
|
toRemoveList = _ref13.toRemoveList;
|
|
3743
3679
|
|
|
3744
3680
|
var _getMajorAndTrend = getMajorAndTrend({
|
|
@@ -3752,7 +3688,8 @@ var computeSingleValueContent = function computeSingleValueContent(_ref13) {
|
|
|
3752
3688
|
unit: unit,
|
|
3753
3689
|
numberPrecision: numberPrecision,
|
|
3754
3690
|
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
3755
|
-
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
|
|
3691
|
+
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
|
|
3692
|
+
shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
|
|
3756
3693
|
}),
|
|
3757
3694
|
majorText = _getMajorAndTrend.majorText,
|
|
3758
3695
|
trendText = _getMajorAndTrend.trendText,
|
|
@@ -3841,6 +3778,7 @@ var minimallyTruncateStringToWidth = function minimallyTruncateStringToWidth(_re
|
|
|
3841
3778
|
* @param {Number} props.numberPrecision
|
|
3842
3779
|
* @param {Bool} props.shouldUseThousandSeparators
|
|
3843
3780
|
* @param {Bool} props.shouldAbbreviateTrendValue
|
|
3781
|
+
* @param {Bool} props.shouldAbbreviateMajorValue,
|
|
3844
3782
|
* @param {Object} props.toRemoveList
|
|
3845
3783
|
* @param {Bool} props.smallViz
|
|
3846
3784
|
* @returns {Object} results
|
|
@@ -3866,6 +3804,7 @@ var computeSingleValueRadialContent = function computeSingleValueRadialContent(_
|
|
|
3866
3804
|
numberPrecision = _ref15.numberPrecision,
|
|
3867
3805
|
shouldUseThousandSeparators = _ref15.shouldUseThousandSeparators,
|
|
3868
3806
|
shouldAbbreviateTrendValue = _ref15.shouldAbbreviateTrendValue,
|
|
3807
|
+
shouldAbbreviateMajorValue = _ref15.shouldAbbreviateMajorValue,
|
|
3869
3808
|
smallViz = _ref15.smallViz;
|
|
3870
3809
|
|
|
3871
3810
|
var _getMajorAndTrend2 = getMajorAndTrend({
|
|
@@ -3879,7 +3818,8 @@ var computeSingleValueRadialContent = function computeSingleValueRadialContent(_
|
|
|
3879
3818
|
unit: unit,
|
|
3880
3819
|
numberPrecision: numberPrecision,
|
|
3881
3820
|
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
3882
|
-
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
|
|
3821
|
+
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
|
|
3822
|
+
shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
|
|
3883
3823
|
}),
|
|
3884
3824
|
majorText = _getMajorAndTrend2.majorText,
|
|
3885
3825
|
trendText = _getMajorAndTrend2.trendText,
|
|
@@ -3910,7 +3850,8 @@ var computeSingleValueRadialContent = function computeSingleValueRadialContent(_
|
|
|
3910
3850
|
trendDisplay: trendDisplay,
|
|
3911
3851
|
numberPrecision: numberPrecision,
|
|
3912
3852
|
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
3913
|
-
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue
|
|
3853
|
+
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
|
|
3854
|
+
shouldAbbreviateMajorValue: shouldAbbreviateMajorValue
|
|
3914
3855
|
});
|
|
3915
3856
|
|
|
3916
3857
|
majorText = _getMajorAndTrend3.majorText;
|
|
@@ -4093,15 +4034,37 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
4093
4034
|
|
|
4094
4035
|
/***/ }),
|
|
4095
4036
|
|
|
4037
|
+
/***/ 2:
|
|
4038
|
+
/***/ (function(module, exports) {
|
|
4039
|
+
|
|
4040
|
+
module.exports = require("lodash");
|
|
4041
|
+
|
|
4042
|
+
/***/ }),
|
|
4043
|
+
|
|
4044
|
+
/***/ 20:
|
|
4045
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4046
|
+
|
|
4047
|
+
"use strict";
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4051
|
+
value: true
|
|
4052
|
+
});
|
|
4053
|
+
exports.validOutputModes = exports.validSortDirs = void 0;
|
|
4054
|
+
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
4055
|
+
exports.validOutputModes = ['json_cols', 'json'];
|
|
4056
|
+
|
|
4057
|
+
/***/ }),
|
|
4058
|
+
|
|
4096
4059
|
/***/ 21:
|
|
4097
4060
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4098
4061
|
|
|
4099
4062
|
"use strict";
|
|
4100
4063
|
|
|
4101
4064
|
|
|
4102
|
-
var _classCallCheck = __webpack_require__(
|
|
4065
|
+
var _classCallCheck = __webpack_require__(8);
|
|
4103
4066
|
|
|
4104
|
-
var _createClass = __webpack_require__(
|
|
4067
|
+
var _createClass = __webpack_require__(24);
|
|
4105
4068
|
|
|
4106
4069
|
Object.defineProperty(exports, "__esModule", {
|
|
4107
4070
|
value: true
|
|
@@ -4196,123 +4159,41 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
4196
4159
|
/***/ 24:
|
|
4197
4160
|
/***/ (function(module, exports) {
|
|
4198
4161
|
|
|
4199
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
4200
|
-
|
|
4201
|
-
/***/ }),
|
|
4202
|
-
|
|
4203
|
-
/***/ 25:
|
|
4204
|
-
/***/ (function(module, exports) {
|
|
4205
|
-
|
|
4206
4162
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
4207
4163
|
|
|
4208
4164
|
/***/ }),
|
|
4209
4165
|
|
|
4210
|
-
/***/
|
|
4166
|
+
/***/ 25:
|
|
4211
4167
|
/***/ (function(module, exports) {
|
|
4212
4168
|
|
|
4213
4169
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
4214
4170
|
|
|
4215
4171
|
/***/ }),
|
|
4216
4172
|
|
|
4217
|
-
/***/
|
|
4173
|
+
/***/ 26:
|
|
4218
4174
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4219
4175
|
|
|
4220
4176
|
"use strict";
|
|
4221
4177
|
|
|
4222
4178
|
|
|
4223
|
-
var _toConsumableArray = __webpack_require__(
|
|
4224
|
-
|
|
4225
|
-
var _defineProperty = __webpack_require__(9);
|
|
4226
|
-
|
|
4227
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
4228
|
-
var t = {};
|
|
4229
|
-
|
|
4230
|
-
for (var p in s) {
|
|
4231
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4232
|
-
}
|
|
4233
|
-
|
|
4234
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4235
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
4236
|
-
}
|
|
4237
|
-
return t;
|
|
4238
|
-
};
|
|
4179
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
4239
4180
|
|
|
4240
4181
|
Object.defineProperty(exports, "__esModule", {
|
|
4241
4182
|
value: true
|
|
4242
4183
|
});
|
|
4243
|
-
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.
|
|
4244
|
-
|
|
4245
|
-
var lodash_1 = __webpack_require__(3);
|
|
4246
|
-
|
|
4247
|
-
var schemaUtils_1 = __webpack_require__(24);
|
|
4248
|
-
|
|
4249
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
4250
|
-
|
|
4251
|
-
var dynamicOptionsDSLType = {
|
|
4252
|
-
type: 'string',
|
|
4253
|
-
pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
|
|
4254
|
-
};
|
|
4255
|
-
/**
|
|
4256
|
-
* Helper function to extend an options schema with dynamic options DSL
|
|
4257
|
-
* @param optionsSchema a visualization's options schema
|
|
4258
|
-
* @returns an updated options schema that additionally allows strings starting with > for each option
|
|
4259
|
-
*/
|
|
4184
|
+
exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
|
|
4260
4185
|
|
|
4261
|
-
|
|
4262
|
-
var enhancedOptionsSchema = {};
|
|
4263
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
4264
|
-
var _a = optionsSchema[key],
|
|
4265
|
-
title = _a.title,
|
|
4266
|
-
description = _a.description,
|
|
4267
|
-
readOnly = _a.readOnly,
|
|
4268
|
-
writeOnly = _a.writeOnly,
|
|
4269
|
-
examples = _a.examples,
|
|
4270
|
-
defaultValue = _a.default,
|
|
4271
|
-
type = _a.type,
|
|
4272
|
-
properties = _a.properties,
|
|
4273
|
-
patternProperties = _a.patternProperties,
|
|
4274
|
-
remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
|
|
4275
|
-
|
|
4276
|
-
var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
|
|
4277
|
-
title: title
|
|
4278
|
-
}), description !== undefined && {
|
|
4279
|
-
description: description
|
|
4280
|
-
}), readOnly !== undefined && {
|
|
4281
|
-
readOnly: readOnly
|
|
4282
|
-
}), writeOnly !== undefined && {
|
|
4283
|
-
writeOnly: writeOnly
|
|
4284
|
-
}), examples !== undefined && {
|
|
4285
|
-
examples: examples
|
|
4286
|
-
}), defaultValue !== undefined && {
|
|
4287
|
-
default: defaultValue
|
|
4288
|
-
});
|
|
4186
|
+
var lodash_1 = __webpack_require__(2); // included for backwards compatibility
|
|
4289
4187
|
|
|
4290
|
-
if (type === 'object') {
|
|
4291
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
|
|
4292
|
-
type: type
|
|
4293
|
-
}), properties && {
|
|
4294
|
-
properties: enhanceOptionsSchemaWithDynamicOptions(properties)
|
|
4295
|
-
});
|
|
4296
4188
|
|
|
4297
|
-
|
|
4298
|
-
var enhancedPatternProperties = {};
|
|
4299
|
-
Object.keys(patternProperties).forEach(function (opt) {
|
|
4300
|
-
enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
|
|
4301
|
-
});
|
|
4302
|
-
enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
|
|
4303
|
-
}
|
|
4304
|
-
} else {
|
|
4305
|
-
enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
|
|
4306
|
-
anyOf: [Object.assign(Object.assign({}, type !== undefined && {
|
|
4307
|
-
type: type
|
|
4308
|
-
}), remainingSchemaEntry), dynamicOptionsDSLType]
|
|
4309
|
-
});
|
|
4310
|
-
}
|
|
4311
|
-
});
|
|
4312
|
-
return enhancedOptionsSchema;
|
|
4313
|
-
}
|
|
4189
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
4314
4190
|
|
|
4315
|
-
exports
|
|
4191
|
+
Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
|
|
4192
|
+
enumerable: true,
|
|
4193
|
+
get: function get() {
|
|
4194
|
+
return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
|
|
4195
|
+
}
|
|
4196
|
+
});
|
|
4316
4197
|
/**
|
|
4317
4198
|
* Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
|
|
4318
4199
|
* this function also collapse all editor panels
|
|
@@ -4323,11 +4204,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
|
|
|
4323
4204
|
|
|
4324
4205
|
function enhanceConfig(vizConfig) {
|
|
4325
4206
|
var enhancedConfig = Object.assign({}, vizConfig);
|
|
4326
|
-
|
|
4327
|
-
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
|
|
4328
|
-
enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
|
|
4329
|
-
}
|
|
4330
|
-
|
|
4331
4207
|
enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
|
|
4332
4208
|
return Object.assign(Object.assign({}, config), {
|
|
4333
4209
|
open: config.open || false
|
|
@@ -4451,49 +4327,49 @@ exports.insertLayout = insertLayout;
|
|
|
4451
4327
|
|
|
4452
4328
|
/***/ }),
|
|
4453
4329
|
|
|
4454
|
-
/***/
|
|
4330
|
+
/***/ 27:
|
|
4455
4331
|
/***/ (function(module, exports) {
|
|
4456
4332
|
|
|
4457
4333
|
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
4458
4334
|
|
|
4459
4335
|
/***/ }),
|
|
4460
4336
|
|
|
4461
|
-
/***/
|
|
4337
|
+
/***/ 28:
|
|
4462
4338
|
/***/ (function(module, exports) {
|
|
4463
4339
|
|
|
4464
4340
|
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
4465
4341
|
|
|
4466
4342
|
/***/ }),
|
|
4467
4343
|
|
|
4468
|
-
/***/
|
|
4344
|
+
/***/ 29:
|
|
4469
4345
|
/***/ (function(module, exports) {
|
|
4470
4346
|
|
|
4471
|
-
module.exports = require("
|
|
4347
|
+
module.exports = require("@splunk/themes/pick");
|
|
4472
4348
|
|
|
4473
4349
|
/***/ }),
|
|
4474
4350
|
|
|
4475
|
-
/***/
|
|
4351
|
+
/***/ 3:
|
|
4476
4352
|
/***/ (function(module, exports) {
|
|
4477
4353
|
|
|
4478
|
-
module.exports = require("@splunk/
|
|
4354
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
4479
4355
|
|
|
4480
4356
|
/***/ }),
|
|
4481
4357
|
|
|
4482
|
-
/***/
|
|
4358
|
+
/***/ 30:
|
|
4483
4359
|
/***/ (function(module, exports) {
|
|
4484
4360
|
|
|
4485
4361
|
module.exports = require("@splunk/ui-utils/id");
|
|
4486
4362
|
|
|
4487
4363
|
/***/ }),
|
|
4488
4364
|
|
|
4489
|
-
/***/
|
|
4365
|
+
/***/ 31:
|
|
4490
4366
|
/***/ (function(module, exports) {
|
|
4491
4367
|
|
|
4492
4368
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
4493
4369
|
|
|
4494
4370
|
/***/ }),
|
|
4495
4371
|
|
|
4496
|
-
/***/
|
|
4372
|
+
/***/ 32:
|
|
4497
4373
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4498
4374
|
|
|
4499
4375
|
"use strict";
|
|
@@ -4503,7 +4379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4503
4379
|
value: true
|
|
4504
4380
|
});
|
|
4505
4381
|
|
|
4506
|
-
var react_1 = __webpack_require__(
|
|
4382
|
+
var react_1 = __webpack_require__(1);
|
|
4507
4383
|
|
|
4508
4384
|
function usePrevious(value) {
|
|
4509
4385
|
var ref = (0, react_1.useRef)();
|
|
@@ -4517,28 +4393,28 @@ exports.default = usePrevious;
|
|
|
4517
4393
|
|
|
4518
4394
|
/***/ }),
|
|
4519
4395
|
|
|
4520
|
-
/***/
|
|
4396
|
+
/***/ 33:
|
|
4521
4397
|
/***/ (function(module, exports) {
|
|
4522
4398
|
|
|
4523
4399
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
4524
4400
|
|
|
4525
4401
|
/***/ }),
|
|
4526
4402
|
|
|
4527
|
-
/***/
|
|
4403
|
+
/***/ 34:
|
|
4528
4404
|
/***/ (function(module, exports) {
|
|
4529
4405
|
|
|
4530
4406
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
4531
4407
|
|
|
4532
4408
|
/***/ }),
|
|
4533
4409
|
|
|
4534
|
-
/***/
|
|
4410
|
+
/***/ 35:
|
|
4535
4411
|
/***/ (function(module, exports) {
|
|
4536
4412
|
|
|
4537
4413
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
4538
4414
|
|
|
4539
4415
|
/***/ }),
|
|
4540
4416
|
|
|
4541
|
-
/***/
|
|
4417
|
+
/***/ 36:
|
|
4542
4418
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4543
4419
|
|
|
4544
4420
|
"use strict";
|
|
@@ -4549,15 +4425,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4549
4425
|
});
|
|
4550
4426
|
exports.shouldShowIconPlaceholder = void 0;
|
|
4551
4427
|
|
|
4552
|
-
var React = __webpack_require__(
|
|
4428
|
+
var React = __webpack_require__(1);
|
|
4553
4429
|
|
|
4554
|
-
var T = __webpack_require__(
|
|
4430
|
+
var T = __webpack_require__(0);
|
|
4555
4431
|
|
|
4556
|
-
var lodash_1 = __webpack_require__(
|
|
4432
|
+
var lodash_1 = __webpack_require__(2);
|
|
4557
4433
|
|
|
4558
|
-
var i18n_1 = __webpack_require__(
|
|
4434
|
+
var i18n_1 = __webpack_require__(3);
|
|
4559
4435
|
|
|
4560
|
-
var Message_1 = __webpack_require__(
|
|
4436
|
+
var Message_1 = __webpack_require__(11);
|
|
4561
4437
|
|
|
4562
4438
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
4563
4439
|
/**
|
|
@@ -4631,24 +4507,24 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
|
|
|
4631
4507
|
|
|
4632
4508
|
/***/ }),
|
|
4633
4509
|
|
|
4634
|
-
/***/
|
|
4510
|
+
/***/ 37:
|
|
4635
4511
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4636
4512
|
|
|
4637
4513
|
"use strict";
|
|
4638
4514
|
|
|
4639
4515
|
|
|
4640
|
-
var _defineProperty = __webpack_require__(
|
|
4516
|
+
var _defineProperty = __webpack_require__(12);
|
|
4641
4517
|
|
|
4642
4518
|
Object.defineProperty(exports, "__esModule", {
|
|
4643
4519
|
value: true
|
|
4644
4520
|
});
|
|
4645
4521
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
4646
4522
|
|
|
4647
|
-
var T = __webpack_require__(
|
|
4523
|
+
var T = __webpack_require__(0);
|
|
4648
4524
|
|
|
4649
|
-
var lodash_1 = __webpack_require__(
|
|
4525
|
+
var lodash_1 = __webpack_require__(2);
|
|
4650
4526
|
|
|
4651
|
-
var DataSource_1 = __webpack_require__(
|
|
4527
|
+
var DataSource_1 = __webpack_require__(20);
|
|
4652
4528
|
|
|
4653
4529
|
exports.SortParamsPropTypes = T.shape({
|
|
4654
4530
|
currentSortKey: T.string,
|
|
@@ -4702,7 +4578,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
4702
4578
|
|
|
4703
4579
|
/***/ }),
|
|
4704
4580
|
|
|
4705
|
-
/***/
|
|
4581
|
+
/***/ 38:
|
|
4706
4582
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4707
4583
|
|
|
4708
4584
|
"use strict";
|
|
@@ -4713,9 +4589,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4713
4589
|
});
|
|
4714
4590
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
4715
4591
|
|
|
4716
|
-
var T = __webpack_require__(
|
|
4592
|
+
var T = __webpack_require__(0);
|
|
4717
4593
|
|
|
4718
|
-
var lodash_1 = __webpack_require__(
|
|
4594
|
+
var lodash_1 = __webpack_require__(2);
|
|
4719
4595
|
|
|
4720
4596
|
exports.PaginatorParamsPropTypes = T.shape({
|
|
4721
4597
|
isPaging: T.bool,
|
|
@@ -4767,14 +4643,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
4767
4643
|
|
|
4768
4644
|
/***/ }),
|
|
4769
4645
|
|
|
4770
|
-
/***/
|
|
4771
|
-
/***/ (function(module, exports) {
|
|
4772
|
-
|
|
4773
|
-
module.exports = require("styled-components");
|
|
4774
|
-
|
|
4775
|
-
/***/ }),
|
|
4776
|
-
|
|
4777
|
-
/***/ 40:
|
|
4646
|
+
/***/ 39:
|
|
4778
4647
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4779
4648
|
|
|
4780
4649
|
"use strict";
|
|
@@ -4809,11 +4678,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4809
4678
|
value: true
|
|
4810
4679
|
});
|
|
4811
4680
|
|
|
4681
|
+
__exportStar(__webpack_require__(40), exports);
|
|
4682
|
+
|
|
4812
4683
|
__exportStar(__webpack_require__(41), exports);
|
|
4813
4684
|
|
|
4814
|
-
__exportStar(__webpack_require__(
|
|
4685
|
+
__exportStar(__webpack_require__(20), exports);
|
|
4815
4686
|
|
|
4816
|
-
__exportStar(__webpack_require__(
|
|
4687
|
+
__exportStar(__webpack_require__(42), exports);
|
|
4817
4688
|
|
|
4818
4689
|
__exportStar(__webpack_require__(43), exports);
|
|
4819
4690
|
|
|
@@ -4825,16 +4696,16 @@ __exportStar(__webpack_require__(46), exports);
|
|
|
4825
4696
|
|
|
4826
4697
|
__exportStar(__webpack_require__(47), exports);
|
|
4827
4698
|
|
|
4828
|
-
__exportStar(__webpack_require__(48), exports);
|
|
4829
|
-
|
|
4830
|
-
__exportStar(__webpack_require__(49), exports);
|
|
4831
|
-
|
|
4832
4699
|
__exportStar(__webpack_require__(21), exports);
|
|
4833
4700
|
|
|
4834
|
-
__exportStar(__webpack_require__(
|
|
4701
|
+
__exportStar(__webpack_require__(7), exports);
|
|
4835
4702
|
|
|
4836
4703
|
__exportStar(__webpack_require__(22), exports);
|
|
4837
4704
|
|
|
4705
|
+
__exportStar(__webpack_require__(48), exports);
|
|
4706
|
+
|
|
4707
|
+
__exportStar(__webpack_require__(49), exports);
|
|
4708
|
+
|
|
4838
4709
|
__exportStar(__webpack_require__(50), exports);
|
|
4839
4710
|
|
|
4840
4711
|
__exportStar(__webpack_require__(51), exports);
|
|
@@ -4843,13 +4714,16 @@ __exportStar(__webpack_require__(52), exports);
|
|
|
4843
4714
|
|
|
4844
4715
|
__exportStar(__webpack_require__(53), exports);
|
|
4845
4716
|
|
|
4846
|
-
|
|
4717
|
+
/***/ }),
|
|
4718
|
+
|
|
4719
|
+
/***/ 4:
|
|
4720
|
+
/***/ (function(module, exports) {
|
|
4847
4721
|
|
|
4848
|
-
|
|
4722
|
+
module.exports = require("styled-components");
|
|
4849
4723
|
|
|
4850
4724
|
/***/ }),
|
|
4851
4725
|
|
|
4852
|
-
/***/
|
|
4726
|
+
/***/ 40:
|
|
4853
4727
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4854
4728
|
|
|
4855
4729
|
"use strict";
|
|
@@ -4861,7 +4735,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4861
4735
|
|
|
4862
4736
|
/***/ }),
|
|
4863
4737
|
|
|
4864
|
-
/***/
|
|
4738
|
+
/***/ 41:
|
|
4865
4739
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4866
4740
|
|
|
4867
4741
|
"use strict";
|
|
@@ -4876,7 +4750,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4876
4750
|
|
|
4877
4751
|
/***/ }),
|
|
4878
4752
|
|
|
4879
|
-
/***/
|
|
4753
|
+
/***/ 42:
|
|
4880
4754
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4881
4755
|
|
|
4882
4756
|
"use strict";
|
|
@@ -4888,7 +4762,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4888
4762
|
|
|
4889
4763
|
/***/ }),
|
|
4890
4764
|
|
|
4891
|
-
/***/
|
|
4765
|
+
/***/ 43:
|
|
4892
4766
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4893
4767
|
|
|
4894
4768
|
"use strict";
|
|
@@ -4900,7 +4774,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4900
4774
|
|
|
4901
4775
|
/***/ }),
|
|
4902
4776
|
|
|
4903
|
-
/***/
|
|
4777
|
+
/***/ 44:
|
|
4904
4778
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4905
4779
|
|
|
4906
4780
|
"use strict";
|
|
@@ -4912,7 +4786,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4912
4786
|
|
|
4913
4787
|
/***/ }),
|
|
4914
4788
|
|
|
4915
|
-
/***/
|
|
4789
|
+
/***/ 45:
|
|
4916
4790
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4917
4791
|
|
|
4918
4792
|
"use strict";
|
|
@@ -4924,7 +4798,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4924
4798
|
|
|
4925
4799
|
/***/ }),
|
|
4926
4800
|
|
|
4927
|
-
/***/
|
|
4801
|
+
/***/ 46:
|
|
4928
4802
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4929
4803
|
|
|
4930
4804
|
"use strict";
|
|
@@ -4936,7 +4810,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4936
4810
|
|
|
4937
4811
|
/***/ }),
|
|
4938
4812
|
|
|
4939
|
-
/***/
|
|
4813
|
+
/***/ 47:
|
|
4940
4814
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4941
4815
|
|
|
4942
4816
|
"use strict";
|
|
@@ -4948,7 +4822,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4948
4822
|
|
|
4949
4823
|
/***/ }),
|
|
4950
4824
|
|
|
4951
|
-
/***/
|
|
4825
|
+
/***/ 477:
|
|
4952
4826
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4953
4827
|
|
|
4954
4828
|
"use strict";
|
|
@@ -4972,15 +4846,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4972
4846
|
});
|
|
4973
4847
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
4974
4848
|
|
|
4975
|
-
var SingleValue_1 = __webpack_require__(
|
|
4849
|
+
var SingleValue_1 = __webpack_require__(502);
|
|
4976
4850
|
|
|
4977
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
4851
|
+
var withDashboardViz_1 = __webpack_require__(54);
|
|
4978
4852
|
|
|
4979
|
-
var singleValueUtils_1 = __webpack_require__(
|
|
4853
|
+
var singleValueUtils_1 = __webpack_require__(19);
|
|
4980
4854
|
|
|
4981
|
-
var config_1 = __webpack_require__(
|
|
4855
|
+
var config_1 = __webpack_require__(478);
|
|
4982
4856
|
|
|
4983
|
-
var withTrellis_1 = __webpack_require__(
|
|
4857
|
+
var withTrellis_1 = __webpack_require__(127);
|
|
4984
4858
|
|
|
4985
4859
|
exports.config = config_1.default;
|
|
4986
4860
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -5023,72 +4897,58 @@ exports.default = viz;
|
|
|
5023
4897
|
|
|
5024
4898
|
/***/ }),
|
|
5025
4899
|
|
|
5026
|
-
/***/
|
|
5027
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5028
|
-
|
|
5029
|
-
"use strict";
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5033
|
-
value: true
|
|
5034
|
-
});
|
|
5035
|
-
|
|
5036
|
-
/***/ }),
|
|
5037
|
-
|
|
5038
|
-
/***/ 490:
|
|
4900
|
+
/***/ 478:
|
|
5039
4901
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5040
4902
|
|
|
5041
4903
|
"use strict";
|
|
5042
4904
|
|
|
5043
4905
|
|
|
5044
|
-
var _toConsumableArray = __webpack_require__(
|
|
4906
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
5045
4907
|
|
|
5046
4908
|
Object.defineProperty(exports, "__esModule", {
|
|
5047
4909
|
value: true
|
|
5048
4910
|
});
|
|
5049
4911
|
|
|
5050
|
-
var i18n_1 = __webpack_require__(
|
|
4912
|
+
var i18n_1 = __webpack_require__(3);
|
|
5051
4913
|
|
|
5052
|
-
var
|
|
4914
|
+
var visualization_schemas_1 = __webpack_require__(9);
|
|
5053
4915
|
|
|
5054
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
4916
|
+
var PresetPalettes_1 = __webpack_require__(80);
|
|
5055
4917
|
|
|
5056
|
-
var variables_1 = __webpack_require__(
|
|
4918
|
+
var variables_1 = __webpack_require__(479);
|
|
5057
4919
|
|
|
5058
|
-
var pick_1 = __webpack_require__(
|
|
4920
|
+
var pick_1 = __webpack_require__(29);
|
|
5059
4921
|
|
|
5060
4922
|
var variables_2 = __webpack_require__(13);
|
|
5061
4923
|
|
|
5062
|
-
var visualization_icons_1 = __webpack_require__(
|
|
4924
|
+
var visualization_icons_1 = __webpack_require__(71);
|
|
5063
4925
|
|
|
5064
|
-
var placeholders_1 = __webpack_require__(
|
|
4926
|
+
var placeholders_1 = __webpack_require__(70);
|
|
5065
4927
|
|
|
5066
|
-
var singleValueContext_1 = __webpack_require__(
|
|
4928
|
+
var singleValueContext_1 = __webpack_require__(153);
|
|
5067
4929
|
|
|
5068
|
-
var VizBehavior_1 = __webpack_require__(
|
|
4930
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
5069
4931
|
|
|
5070
|
-
var DynamicMajorColorEditor_1 = __webpack_require__(
|
|
4932
|
+
var DynamicMajorColorEditor_1 = __webpack_require__(154);
|
|
5071
4933
|
|
|
5072
|
-
var DynamicTrendColorEditor_1 = __webpack_require__(
|
|
4934
|
+
var DynamicTrendColorEditor_1 = __webpack_require__(121);
|
|
5073
4935
|
|
|
5074
|
-
var DynamicBackgroundColorEditor_1 = __webpack_require__(
|
|
4936
|
+
var DynamicBackgroundColorEditor_1 = __webpack_require__(122);
|
|
5075
4937
|
|
|
5076
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
4938
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(123);
|
|
5077
4939
|
|
|
5078
|
-
var StaticMajorColorEditor_1 = __webpack_require__(
|
|
4940
|
+
var StaticMajorColorEditor_1 = __webpack_require__(124);
|
|
5079
4941
|
|
|
5080
|
-
var StaticTrendColorEditor_1 = __webpack_require__(
|
|
4942
|
+
var StaticTrendColorEditor_1 = __webpack_require__(125);
|
|
5081
4943
|
|
|
5082
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
4944
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(111);
|
|
5083
4945
|
|
|
5084
|
-
var configUtils_1 = __webpack_require__(
|
|
4946
|
+
var configUtils_1 = __webpack_require__(26);
|
|
5085
4947
|
|
|
5086
|
-
var TrellisEditors_1 = __webpack_require__(
|
|
4948
|
+
var TrellisEditors_1 = __webpack_require__(126);
|
|
5087
4949
|
|
|
5088
4950
|
var VizCategory_1 = __webpack_require__(22);
|
|
5089
4951
|
|
|
5090
|
-
var layoutUtils_1 = __webpack_require__(80);
|
|
5091
|
-
|
|
5092
4952
|
var dataContract = {
|
|
5093
4953
|
requiredDataSources: [{
|
|
5094
4954
|
name: 'primary',
|
|
@@ -5106,188 +4966,6 @@ var size = {
|
|
|
5106
4966
|
initialWidth: 250,
|
|
5107
4967
|
initialHeight: 250
|
|
5108
4968
|
};
|
|
5109
|
-
var optionsSchema = {
|
|
5110
|
-
align: {
|
|
5111
|
-
default: 'center',
|
|
5112
|
-
description: 'Specify how to align the center content.',
|
|
5113
|
-
pattern: (0, schemaUtils_1.getPattern)(['left', 'center', 'right']),
|
|
5114
|
-
type: 'string'
|
|
5115
|
-
},
|
|
5116
|
-
backgroundColor: {
|
|
5117
|
-
default: '> themes.defaultBackgroundColor',
|
|
5118
|
-
description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
|
|
5119
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5120
|
-
type: 'string'
|
|
5121
|
-
},
|
|
5122
|
-
majorColor: {
|
|
5123
|
-
default: '> themes.defaultFontColor',
|
|
5124
|
-
description: 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
5125
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5126
|
-
type: 'string'
|
|
5127
|
-
},
|
|
5128
|
-
majorFontSize: {
|
|
5129
|
-
description: 'Specify the font size (px) for the major value. By default the major value font size is calculated dynamically based on the available space.',
|
|
5130
|
-
type: 'number'
|
|
5131
|
-
},
|
|
5132
|
-
majorValue: {
|
|
5133
|
-
default: '> sparklineValues|lastPoint()',
|
|
5134
|
-
description: 'The major value to display in the visualization.',
|
|
5135
|
-
type: ['string', 'number']
|
|
5136
|
-
},
|
|
5137
|
-
majorValueField: {
|
|
5138
|
-
default: '> majorValue | getField()',
|
|
5139
|
-
description: 'The field name of major value.',
|
|
5140
|
-
type: 'string'
|
|
5141
|
-
},
|
|
5142
|
-
numberPrecision: {
|
|
5143
|
-
default: 0,
|
|
5144
|
-
maximum: 20,
|
|
5145
|
-
minimum: 0,
|
|
5146
|
-
description: 'Specify the number of decimal places to display. For example, to display 3 decimal places, use a value of 3. Values can range from 0 to 20.',
|
|
5147
|
-
type: 'number'
|
|
5148
|
-
},
|
|
5149
|
-
shouldAbbreviateTrendValue: {
|
|
5150
|
-
default: false,
|
|
5151
|
-
description: 'Specify whether to abbreviate the trend value to 2 decimal points. A magnitude unit will be displayed.',
|
|
5152
|
-
type: 'boolean'
|
|
5153
|
-
},
|
|
5154
|
-
shouldSparklineAcceptNullData: {
|
|
5155
|
-
default: true,
|
|
5156
|
-
description: 'Specify whether to convert null and non-numeric values in the sparkline to 0.',
|
|
5157
|
-
type: 'boolean'
|
|
5158
|
-
},
|
|
5159
|
-
shouldUseThousandSeparators: {
|
|
5160
|
-
default: true,
|
|
5161
|
-
description: 'Specify whether numeric values use commas as thousandths separators.',
|
|
5162
|
-
type: 'boolean'
|
|
5163
|
-
},
|
|
5164
|
-
showSparklineAreaGraph: {
|
|
5165
|
-
default: false,
|
|
5166
|
-
description: 'Specify whether to show the sparkline as an area graph rather than a line.',
|
|
5167
|
-
type: 'boolean'
|
|
5168
|
-
},
|
|
5169
|
-
showSparklineTooltip: {
|
|
5170
|
-
default: false,
|
|
5171
|
-
description: 'Show a tooltip to display values on the sparkline.',
|
|
5172
|
-
type: 'boolean'
|
|
5173
|
-
},
|
|
5174
|
-
splitByLayout: {
|
|
5175
|
-
default: 'off',
|
|
5176
|
-
description: 'Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category.',
|
|
5177
|
-
type: 'string',
|
|
5178
|
-
pattern: (0, schemaUtils_1.getPattern)([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
|
|
5179
|
-
enum: [layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]
|
|
5180
|
-
},
|
|
5181
|
-
sparklineAreaColor: {
|
|
5182
|
-
default: '> sparklineStrokeColor',
|
|
5183
|
-
description: 'Specify the color for the sparkline area fill. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The graph area will have an opacity of 20% and will blend with the background color.',
|
|
5184
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5185
|
-
type: 'string'
|
|
5186
|
-
},
|
|
5187
|
-
sparklineDisplay: {
|
|
5188
|
-
default: 'below',
|
|
5189
|
-
description: 'Specify how to display a sparkline.',
|
|
5190
|
-
pattern: (0, schemaUtils_1.getPattern)(['before', 'after', 'below', 'off']),
|
|
5191
|
-
type: 'string'
|
|
5192
|
-
},
|
|
5193
|
-
sparklineHighlightDots: {
|
|
5194
|
-
default: 0,
|
|
5195
|
-
description: 'Specify the number of markers, or dots, to display at the top of a sparkline area graph.',
|
|
5196
|
-
type: 'number'
|
|
5197
|
-
},
|
|
5198
|
-
sparklineHighlightSegments: {
|
|
5199
|
-
default: 0,
|
|
5200
|
-
description: 'Specify the number of segments to be highlighted at the top of a sparkline area graph.',
|
|
5201
|
-
type: 'number'
|
|
5202
|
-
},
|
|
5203
|
-
sparklineStrokeColor: {
|
|
5204
|
-
default: '> themes.defaultSparklineStrokeColor',
|
|
5205
|
-
description: 'Specify the color for the sparkline stroke. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
5206
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5207
|
-
type: 'string'
|
|
5208
|
-
},
|
|
5209
|
-
sparklineValues: {
|
|
5210
|
-
default: '> primary|seriesByPrioritizedTypes("number", "string", "time")',
|
|
5211
|
-
description: 'List of numerical values to display on a sparkline. If the values are string type, the sparkline will not be shown.',
|
|
5212
|
-
type: 'array',
|
|
5213
|
-
items: {
|
|
5214
|
-
type: ['string', 'number']
|
|
5215
|
-
}
|
|
5216
|
-
},
|
|
5217
|
-
trendColor: {
|
|
5218
|
-
default: '> themes.defaultFontColor',
|
|
5219
|
-
description: 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
|
|
5220
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5221
|
-
type: 'string'
|
|
5222
|
-
},
|
|
5223
|
-
trendDisplay: {
|
|
5224
|
-
default: 'absolute',
|
|
5225
|
-
description: 'Specify how to display the trend value.',
|
|
5226
|
-
pattern: (0, schemaUtils_1.getPattern)(['percent', 'absolute', 'off']),
|
|
5227
|
-
type: 'string'
|
|
5228
|
-
},
|
|
5229
|
-
trendFontSize: {
|
|
5230
|
-
description: 'Specify the font size (px) for the trend value. By default the trend value font size is calculated dynamically based on the available space.',
|
|
5231
|
-
type: 'number'
|
|
5232
|
-
},
|
|
5233
|
-
trendValue: {
|
|
5234
|
-
default: '> sparklineValues|delta(-2)',
|
|
5235
|
-
description: 'The trend value to display in the visualization.',
|
|
5236
|
-
type: 'number'
|
|
5237
|
-
},
|
|
5238
|
-
trellisBackgroundColor: {
|
|
5239
|
-
default: '> themes.defaultBackgroundColor',
|
|
5240
|
-
description: 'Specify the color used for the trellis container background by using a hexadecimal code. For example, #0000FF.',
|
|
5241
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
|
|
5242
|
-
type: 'string'
|
|
5243
|
-
},
|
|
5244
|
-
trellisColumns: {
|
|
5245
|
-
description: 'Specify the number of visualizations to display in a given row of the trellis container. The remaining visualizations will wrap accordingly. If nothing is specified, it will be auto-set based on the trellisMinColumnWidth. The minimum value is 1.',
|
|
5246
|
-
type: 'number',
|
|
5247
|
-
minimum: 1
|
|
5248
|
-
},
|
|
5249
|
-
trellisMinColumnWidth: {
|
|
5250
|
-
default: 100,
|
|
5251
|
-
minimum: 1,
|
|
5252
|
-
description: 'Specify the minimum width, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1.',
|
|
5253
|
-
type: 'number'
|
|
5254
|
-
},
|
|
5255
|
-
trellisPageCount: {
|
|
5256
|
-
default: 20,
|
|
5257
|
-
minimum: 1,
|
|
5258
|
-
description: 'Specify the maximum number of visualizations to display in a single page in the trellis container. The remaining visualizations will paginate accordingly. The minimum value is 1.',
|
|
5259
|
-
type: 'number'
|
|
5260
|
-
},
|
|
5261
|
-
trellisRowHeight: {
|
|
5262
|
-
default: 70,
|
|
5263
|
-
minimum: 1,
|
|
5264
|
-
description: 'Specify the height, in pixels, of each visualization in the trellis container. If the window or panel is resized, the remaining visualizations may be viewed by scrolling. The minimum value is 1.',
|
|
5265
|
-
type: 'number'
|
|
5266
|
-
},
|
|
5267
|
-
trellisSplitBy: {
|
|
5268
|
-
description: 'Specify the field name of the column with categories used, or “aggregations”, to split the data into individual visualizations for trellis display, if applicable. If a SPL `timechart` command is used, this may default to the SPL `by` clause field. If a SPL `chart` command is used, this may default to the first string field.',
|
|
5269
|
-
type: 'string'
|
|
5270
|
-
},
|
|
5271
|
-
underLabel: {
|
|
5272
|
-
description: 'Specify the text that appears below the major value.',
|
|
5273
|
-
type: 'string'
|
|
5274
|
-
},
|
|
5275
|
-
underLabelFontSize: {
|
|
5276
|
-
default: 12,
|
|
5277
|
-
description: 'Specify the font size (px) for the under label text.',
|
|
5278
|
-
type: 'number'
|
|
5279
|
-
},
|
|
5280
|
-
unit: {
|
|
5281
|
-
description: 'Specify text to show next to the major value.',
|
|
5282
|
-
type: 'string'
|
|
5283
|
-
},
|
|
5284
|
-
unitPosition: {
|
|
5285
|
-
default: 'after',
|
|
5286
|
-
description: 'Specify whether the unit text should appear before or after the major value.',
|
|
5287
|
-
pattern: (0, schemaUtils_1.getPattern)(['before', 'after']),
|
|
5288
|
-
type: 'string'
|
|
5289
|
-
}
|
|
5290
|
-
};
|
|
5291
4969
|
var basePresetContext = {
|
|
5292
4970
|
majorColorEditorConfig: undefined,
|
|
5293
4971
|
trendColorEditorConfig: undefined,
|
|
@@ -5508,7 +5186,7 @@ var editorConfig = [{
|
|
|
5508
5186
|
},
|
|
5509
5187
|
isDisabled: function isDisabled(_ref) {
|
|
5510
5188
|
var options = _ref.options;
|
|
5511
|
-
return options.splitByLayout ===
|
|
5189
|
+
return options.splitByLayout === visualization_schemas_1.LAYOUT_TYPE.Trellis;
|
|
5512
5190
|
}
|
|
5513
5191
|
}]]
|
|
5514
5192
|
}, {
|
|
@@ -5621,6 +5299,14 @@ var editorConfig = [{
|
|
|
5621
5299
|
var options = _ref6.options;
|
|
5622
5300
|
return options.trendDisplay === 'off';
|
|
5623
5301
|
}
|
|
5302
|
+
}], [{
|
|
5303
|
+
label: (0, i18n_1._)('Major value abbreviation'),
|
|
5304
|
+
option: 'shouldAbbreviateMajorValue',
|
|
5305
|
+
editor: 'editor.checkbox'
|
|
5306
|
+
}], [{
|
|
5307
|
+
label: (0, i18n_1._)('Trend value abbreviation'),
|
|
5308
|
+
option: 'shouldAbbreviateTrendValue',
|
|
5309
|
+
editor: 'editor.checkbox'
|
|
5624
5310
|
}], [{
|
|
5625
5311
|
label: (0, i18n_1._)('Alignment'),
|
|
5626
5312
|
editor: 'editor.radioBar',
|
|
@@ -5667,7 +5353,7 @@ var config = {
|
|
|
5667
5353
|
dataContract: dataContract,
|
|
5668
5354
|
size: size,
|
|
5669
5355
|
defaultContext: singleValueContext_1.defaultContext,
|
|
5670
|
-
optionsSchema:
|
|
5356
|
+
optionsSchema: visualization_schemas_1.singleValueOptionsSchema,
|
|
5671
5357
|
editorConfig: editorConfig,
|
|
5672
5358
|
events: {
|
|
5673
5359
|
'value.click': {
|
|
@@ -5683,14 +5369,14 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
|
5683
5369
|
|
|
5684
5370
|
/***/ }),
|
|
5685
5371
|
|
|
5686
|
-
/***/
|
|
5372
|
+
/***/ 479:
|
|
5687
5373
|
/***/ (function(module, exports) {
|
|
5688
5374
|
|
|
5689
5375
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
5690
5376
|
|
|
5691
5377
|
/***/ }),
|
|
5692
5378
|
|
|
5693
|
-
/***/
|
|
5379
|
+
/***/ 48:
|
|
5694
5380
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5695
5381
|
|
|
5696
5382
|
"use strict";
|
|
@@ -5702,7 +5388,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5702
5388
|
|
|
5703
5389
|
/***/ }),
|
|
5704
5390
|
|
|
5705
|
-
/***/
|
|
5391
|
+
/***/ 49:
|
|
5706
5392
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5707
5393
|
|
|
5708
5394
|
"use strict";
|
|
@@ -5714,7 +5400,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5714
5400
|
|
|
5715
5401
|
/***/ }),
|
|
5716
5402
|
|
|
5717
|
-
/***/
|
|
5403
|
+
/***/ 5:
|
|
5404
|
+
/***/ (function(module, exports) {
|
|
5405
|
+
|
|
5406
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
5407
|
+
|
|
5408
|
+
/***/ }),
|
|
5409
|
+
|
|
5410
|
+
/***/ 50:
|
|
5411
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5412
|
+
|
|
5413
|
+
"use strict";
|
|
5414
|
+
|
|
5415
|
+
|
|
5416
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5417
|
+
value: true
|
|
5418
|
+
});
|
|
5419
|
+
|
|
5420
|
+
/***/ }),
|
|
5421
|
+
|
|
5422
|
+
/***/ 502:
|
|
5718
5423
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5719
5424
|
|
|
5720
5425
|
"use strict";
|
|
@@ -5726,19 +5431,19 @@ __webpack_require__.d(__webpack_exports__, "CONTENT_OVERFLOW_FADEOUT_AREA_PX", f
|
|
|
5726
5431
|
__webpack_require__.d(__webpack_exports__, "DEFAULT_CONTENT_HEIGHT_ALLOCATION_RATIO", function() { return /* binding */ DEFAULT_CONTENT_HEIGHT_ALLOCATION_RATIO; });
|
|
5727
5432
|
|
|
5728
5433
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/slicedToArray"
|
|
5729
|
-
var slicedToArray_ = __webpack_require__(
|
|
5434
|
+
var slicedToArray_ = __webpack_require__(5);
|
|
5730
5435
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray_);
|
|
5731
5436
|
|
|
5732
5437
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
|
|
5733
|
-
var extends_ = __webpack_require__(
|
|
5438
|
+
var extends_ = __webpack_require__(68);
|
|
5734
5439
|
var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
|
|
5735
5440
|
|
|
5736
5441
|
// EXTERNAL MODULE: external "react"
|
|
5737
|
-
var external_react_ = __webpack_require__(
|
|
5442
|
+
var external_react_ = __webpack_require__(1);
|
|
5738
5443
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
5739
5444
|
|
|
5740
5445
|
// EXTERNAL MODULE: external "prop-types"
|
|
5741
|
-
var external_prop_types_ = __webpack_require__(
|
|
5446
|
+
var external_prop_types_ = __webpack_require__(0);
|
|
5742
5447
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
5743
5448
|
|
|
5744
5449
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -5746,45 +5451,45 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
5746
5451
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
5747
5452
|
|
|
5748
5453
|
// EXTERNAL MODULE: external "lodash/pick"
|
|
5749
|
-
var pick_ = __webpack_require__(
|
|
5454
|
+
var pick_ = __webpack_require__(129);
|
|
5750
5455
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
|
|
5751
5456
|
|
|
5752
5457
|
// EXTERNAL MODULE: external "lodash/isEmpty"
|
|
5753
|
-
var isEmpty_ = __webpack_require__(
|
|
5458
|
+
var isEmpty_ = __webpack_require__(130);
|
|
5754
5459
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
5755
5460
|
|
|
5756
5461
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
5757
5462
|
var style_ = __webpack_require__(18);
|
|
5758
5463
|
|
|
5759
5464
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
|
|
5760
|
-
var SizeAwareWrapper_ = __webpack_require__(
|
|
5465
|
+
var SizeAwareWrapper_ = __webpack_require__(25);
|
|
5761
5466
|
var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
|
|
5762
5467
|
|
|
5763
5468
|
// EXTERNAL MODULE: external "@splunk/visualization-context/FeatureFlagContext"
|
|
5764
|
-
var FeatureFlagContext_ = __webpack_require__(
|
|
5469
|
+
var FeatureFlagContext_ = __webpack_require__(27);
|
|
5765
5470
|
var FeatureFlagContext_default = /*#__PURE__*/__webpack_require__.n(FeatureFlagContext_);
|
|
5766
5471
|
|
|
5472
|
+
// EXTERNAL MODULE: external "@splunk/visualization-schemas"
|
|
5473
|
+
var visualization_schemas_ = __webpack_require__(9);
|
|
5474
|
+
|
|
5767
5475
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
5768
|
-
var VizStyleWrapper = __webpack_require__(
|
|
5476
|
+
var VizStyleWrapper = __webpack_require__(93);
|
|
5769
5477
|
|
|
5770
5478
|
// EXTERNAL MODULE: ./src/common/components/TrellisTitle.tsx
|
|
5771
|
-
var TrellisTitle = __webpack_require__(
|
|
5772
|
-
|
|
5773
|
-
// EXTERNAL MODULE: ./src/common/utils/layoutUtils.ts
|
|
5774
|
-
var layoutUtils = __webpack_require__(80);
|
|
5479
|
+
var TrellisTitle = __webpack_require__(99);
|
|
5775
5480
|
|
|
5776
5481
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
|
|
5777
|
-
var defineProperty_ = __webpack_require__(
|
|
5482
|
+
var defineProperty_ = __webpack_require__(12);
|
|
5778
5483
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
5779
5484
|
|
|
5780
5485
|
// EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
|
|
5781
|
-
var SingleValueBasic = __webpack_require__(
|
|
5486
|
+
var SingleValueBasic = __webpack_require__(101);
|
|
5782
5487
|
|
|
5783
5488
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
|
|
5784
|
-
var propUtils_ = __webpack_require__(
|
|
5489
|
+
var propUtils_ = __webpack_require__(35);
|
|
5785
5490
|
|
|
5786
5491
|
// EXTERNAL MODULE: ./src/SparkLine/SparkLine.jsx
|
|
5787
|
-
var SparkLine = __webpack_require__(
|
|
5492
|
+
var SparkLine = __webpack_require__(114);
|
|
5788
5493
|
|
|
5789
5494
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/SingleValueSparkline.jsx
|
|
5790
5495
|
|
|
@@ -5848,13 +5553,13 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
|
|
|
5848
5553
|
};
|
|
5849
5554
|
/* harmony default export */ var PureSingleValue_SingleValueSparkline = (SingleValueSparkline_SingleValueSparkline);
|
|
5850
5555
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/colorConstants"
|
|
5851
|
-
var colorConstants_ = __webpack_require__(
|
|
5556
|
+
var colorConstants_ = __webpack_require__(69);
|
|
5852
5557
|
|
|
5853
5558
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
|
|
5854
|
-
var numberUtils_ = __webpack_require__(
|
|
5559
|
+
var numberUtils_ = __webpack_require__(10);
|
|
5855
5560
|
|
|
5856
5561
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
5857
|
-
var singleValueUtils = __webpack_require__(
|
|
5562
|
+
var singleValueUtils = __webpack_require__(19);
|
|
5858
5563
|
|
|
5859
5564
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/utils/displayUtils.js
|
|
5860
5565
|
|
|
@@ -6156,11 +5861,11 @@ function _objectSpread(target) {
|
|
|
6156
5861
|
var CONTENT_OVERFLOW_FADEOUT_AREA_PX = 16;
|
|
6157
5862
|
var Column = external_styled_components_default.a.div.withConfig({
|
|
6158
5863
|
displayName: "StandardLayout__Column",
|
|
6159
|
-
componentId: "isgrrp-0"
|
|
5864
|
+
componentId: "sc-isgrrp-0"
|
|
6160
5865
|
})(["display:flex;flex-direction:column;height:100%;width:100%;justify-content:center;"]);
|
|
6161
5866
|
var Row = external_styled_components_default.a.div.withConfig({
|
|
6162
5867
|
displayName: "StandardLayout__Row",
|
|
6163
|
-
componentId: "isgrrp-1"
|
|
5868
|
+
componentId: "sc-isgrrp-1"
|
|
6164
5869
|
})(["display:flex;flex-direction:row;"]);
|
|
6165
5870
|
var OverflowWrapper = external_styled_components_default.a.div.attrs(function () {
|
|
6166
5871
|
return {
|
|
@@ -6168,7 +5873,7 @@ var OverflowWrapper = external_styled_components_default.a.div.attrs(function ()
|
|
|
6168
5873
|
};
|
|
6169
5874
|
}).withConfig({
|
|
6170
5875
|
displayName: "StandardLayout__OverflowWrapper",
|
|
6171
|
-
componentId: "isgrrp-2"
|
|
5876
|
+
componentId: "sc-isgrrp-2"
|
|
6172
5877
|
})(["box-sizing:border-box;padding-left:16px;padding-right:16px;width:100%;height:", "px;position:relative;display:flex;align-items:start;justify-content:", ";&:after,&:before{position:absolute;height:100%;width:", "px;content:'';top:0;}&:after{right:0;background:linear-gradient( 90deg,", "00,", " );}&:before{left:0;background:linear-gradient( -90deg,", "00,", " );}"], function (props) {
|
|
6173
5878
|
return props.height;
|
|
6174
5879
|
}, function (props) {
|
|
@@ -6345,6 +6050,7 @@ var SingleValue_SingleValue = function SingleValue(_ref) {
|
|
|
6345
6050
|
numberPrecision = props.numberPrecision,
|
|
6346
6051
|
shouldUseThousandSeparators = props.shouldUseThousandSeparators,
|
|
6347
6052
|
shouldAbbreviateTrendValue = props.shouldAbbreviateTrendValue,
|
|
6053
|
+
shouldAbbreviateMajorValue = props.shouldAbbreviateMajorValue,
|
|
6348
6054
|
sparklineValues = props.sparklineValues,
|
|
6349
6055
|
sparklineHighlightSegments = props.sparklineHighlightSegments,
|
|
6350
6056
|
sparklineHighlightDots = props.sparklineHighlightDots,
|
|
@@ -6388,7 +6094,7 @@ var SingleValue_SingleValue = function SingleValue(_ref) {
|
|
|
6388
6094
|
}, []);
|
|
6389
6095
|
var featureFlagContext = external_react_default.a.useContext(FeatureFlagContext_default.a);
|
|
6390
6096
|
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
6391
|
-
var trellisEnabled = isTrellisFeatureFlagOn && splitByLayout ===
|
|
6097
|
+
var trellisEnabled = isTrellisFeatureFlagOn && splitByLayout === visualization_schemas_["LAYOUT_TYPE"].Trellis;
|
|
6392
6098
|
var handleValueClick = Object(external_react_["useCallback"])(function (ev) {
|
|
6393
6099
|
return Object(singleValueUtils["handleValueClickCallback"])(ev, majorValue, majorValueField, trendValue, onValueClick, trellisEnabled, trellisSplitBy, trellisKey);
|
|
6394
6100
|
}, [onValueClick, majorValue, majorValueField, trendValue, trellisEnabled, trellisSplitBy, trellisKey]); // FIXME todo 'compute colors' is not pure, it must be lifted into behavior or DSL
|
|
@@ -6473,6 +6179,7 @@ var SingleValue_SingleValue = function SingleValue(_ref) {
|
|
|
6473
6179
|
numberPrecision: numberPrecision,
|
|
6474
6180
|
shouldUseThousandSeparators: shouldUseThousandSeparators,
|
|
6475
6181
|
shouldAbbreviateTrendValue: shouldAbbreviateTrendValue,
|
|
6182
|
+
shouldAbbreviateMajorValue: shouldAbbreviateMajorValue,
|
|
6476
6183
|
toRemoveList: toRemoveList
|
|
6477
6184
|
}),
|
|
6478
6185
|
majorText = _computeSingleValueCo.majorText,
|
|
@@ -6595,6 +6302,7 @@ SingleValue_SingleValue.propTypes = {
|
|
|
6595
6302
|
trendFontSize: external_prop_types_default.a.number,
|
|
6596
6303
|
trendDisplay: external_prop_types_default.a.oneOf(['absolute', 'percent', 'off']),
|
|
6597
6304
|
shouldAbbreviateTrendValue: external_prop_types_default.a.bool,
|
|
6305
|
+
shouldAbbreviateMajorValue: external_prop_types_default.a.bool,
|
|
6598
6306
|
backgroundColor: external_prop_types_default.a.string,
|
|
6599
6307
|
unit: external_prop_types_default.a.string,
|
|
6600
6308
|
unitPosition: external_prop_types_default.a.string,
|
|
@@ -6629,6 +6337,7 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
6629
6337
|
majorValueField: '',
|
|
6630
6338
|
trendDisplay: 'absolute',
|
|
6631
6339
|
shouldAbbreviateTrendValue: false,
|
|
6340
|
+
shouldAbbreviateMajorValue: false,
|
|
6632
6341
|
unitPosition: 'after',
|
|
6633
6342
|
underLabelFontSize: 12,
|
|
6634
6343
|
numberPrecision: 0,
|
|
@@ -6649,19 +6358,7 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
6649
6358
|
|
|
6650
6359
|
/***/ }),
|
|
6651
6360
|
|
|
6652
|
-
/***/
|
|
6653
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6654
|
-
|
|
6655
|
-
"use strict";
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6659
|
-
value: true
|
|
6660
|
-
});
|
|
6661
|
-
|
|
6662
|
-
/***/ }),
|
|
6663
|
-
|
|
6664
|
-
/***/ 53:
|
|
6361
|
+
/***/ 51:
|
|
6665
6362
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6666
6363
|
|
|
6667
6364
|
"use strict";
|
|
@@ -6673,7 +6370,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6673
6370
|
|
|
6674
6371
|
/***/ }),
|
|
6675
6372
|
|
|
6676
|
-
/***/
|
|
6373
|
+
/***/ 52:
|
|
6677
6374
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6678
6375
|
|
|
6679
6376
|
"use strict";
|
|
@@ -6685,7 +6382,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6685
6382
|
|
|
6686
6383
|
/***/ }),
|
|
6687
6384
|
|
|
6688
|
-
/***/
|
|
6385
|
+
/***/ 53:
|
|
6689
6386
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6690
6387
|
|
|
6691
6388
|
"use strict";
|
|
@@ -6697,65 +6394,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6697
6394
|
|
|
6698
6395
|
/***/ }),
|
|
6699
6396
|
|
|
6700
|
-
/***/
|
|
6397
|
+
/***/ 54:
|
|
6701
6398
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6702
6399
|
|
|
6703
6400
|
"use strict";
|
|
6704
6401
|
|
|
6705
6402
|
|
|
6706
|
-
var _slicedToArray = __webpack_require__(
|
|
6403
|
+
var _slicedToArray = __webpack_require__(5);
|
|
6707
6404
|
|
|
6708
6405
|
Object.defineProperty(exports, "__esModule", {
|
|
6709
6406
|
value: true
|
|
6710
6407
|
});
|
|
6711
6408
|
|
|
6712
|
-
var React = __webpack_require__(
|
|
6409
|
+
var React = __webpack_require__(1);
|
|
6713
6410
|
|
|
6714
|
-
var lodash_1 = __webpack_require__(
|
|
6411
|
+
var lodash_1 = __webpack_require__(2);
|
|
6715
6412
|
|
|
6716
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
6413
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(55);
|
|
6717
6414
|
|
|
6718
6415
|
var Options_1 = __webpack_require__(16);
|
|
6719
6416
|
|
|
6720
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
6417
|
+
var SanitizeProps_1 = __webpack_require__(56);
|
|
6721
6418
|
|
|
6722
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
6419
|
+
var TimezoneContext_1 = __webpack_require__(31);
|
|
6723
6420
|
|
|
6724
|
-
var moment_1 = __webpack_require__(
|
|
6421
|
+
var moment_1 = __webpack_require__(57);
|
|
6725
6422
|
|
|
6726
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
6423
|
+
var FeatureFlagContext_1 = __webpack_require__(27);
|
|
6727
6424
|
|
|
6728
6425
|
var styled_components_1 = __webpack_require__(4);
|
|
6729
6426
|
|
|
6730
|
-
var hocUtils_1 = __webpack_require__(
|
|
6427
|
+
var hocUtils_1 = __webpack_require__(33);
|
|
6731
6428
|
|
|
6732
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
6429
|
+
var JSONSchemaUtils_1 = __webpack_require__(34);
|
|
6733
6430
|
|
|
6734
|
-
var async_dynamic_options_evaluator_1 = __webpack_require__(
|
|
6431
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(58);
|
|
6735
6432
|
|
|
6736
|
-
var id_1 = __webpack_require__(
|
|
6433
|
+
var id_1 = __webpack_require__(30);
|
|
6737
6434
|
|
|
6738
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
6435
|
+
var SplunkVisualization_1 = __webpack_require__(59);
|
|
6739
6436
|
|
|
6740
|
-
var VizBehavior_1 = __webpack_require__(
|
|
6437
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
6741
6438
|
|
|
6742
|
-
var getSorting_1 = __webpack_require__(
|
|
6439
|
+
var getSorting_1 = __webpack_require__(37);
|
|
6743
6440
|
|
|
6744
|
-
var getPagination_1 = __webpack_require__(
|
|
6441
|
+
var getPagination_1 = __webpack_require__(38);
|
|
6745
6442
|
|
|
6746
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
6443
|
+
var useDeepMemo_1 = __webpack_require__(60);
|
|
6747
6444
|
|
|
6748
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
6445
|
+
var MissingPropsMessage_1 = __webpack_require__(61);
|
|
6749
6446
|
|
|
6750
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
6447
|
+
var withEditModeCover_1 = __webpack_require__(62);
|
|
6751
6448
|
|
|
6752
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
6449
|
+
var withPlaceholder_1 = __webpack_require__(63);
|
|
6753
6450
|
|
|
6754
|
-
var useDownsampleDataSources_1 = __webpack_require__(
|
|
6451
|
+
var useDownsampleDataSources_1 = __webpack_require__(64);
|
|
6755
6452
|
|
|
6756
6453
|
var dataUtils_1 = __webpack_require__(14);
|
|
6757
6454
|
|
|
6758
|
-
var featureFlagUtils_1 = __webpack_require__(
|
|
6455
|
+
var featureFlagUtils_1 = __webpack_require__(66);
|
|
6759
6456
|
/**
|
|
6760
6457
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
6761
6458
|
* @param {DashboardVizOpts} opts
|
|
@@ -7088,81 +6785,41 @@ exports.default = withDashboardViz;
|
|
|
7088
6785
|
|
|
7089
6786
|
/***/ }),
|
|
7090
6787
|
|
|
7091
|
-
/***/
|
|
6788
|
+
/***/ 55:
|
|
7092
6789
|
/***/ (function(module, exports) {
|
|
7093
6790
|
|
|
7094
6791
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
7095
6792
|
|
|
7096
6793
|
/***/ }),
|
|
7097
6794
|
|
|
7098
|
-
/***/
|
|
6795
|
+
/***/ 56:
|
|
7099
6796
|
/***/ (function(module, exports) {
|
|
7100
6797
|
|
|
7101
6798
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
7102
6799
|
|
|
7103
6800
|
/***/ }),
|
|
7104
6801
|
|
|
7105
|
-
/***/
|
|
6802
|
+
/***/ 57:
|
|
7106
6803
|
/***/ (function(module, exports) {
|
|
7107
6804
|
|
|
7108
6805
|
module.exports = require("@splunk/moment");
|
|
7109
6806
|
|
|
7110
6807
|
/***/ }),
|
|
7111
6808
|
|
|
7112
|
-
/***/
|
|
7113
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7114
|
-
|
|
7115
|
-
"use strict";
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7119
|
-
value: true
|
|
7120
|
-
});
|
|
7121
|
-
exports.VizBehavior = void 0;
|
|
7122
|
-
var VizBehavior;
|
|
7123
|
-
|
|
7124
|
-
(function (VizBehavior) {
|
|
7125
|
-
/**
|
|
7126
|
-
* Dynamic Options Behavior.
|
|
7127
|
-
* This allows visualization options to be powered by data
|
|
7128
|
-
*
|
|
7129
|
-
* **Example**
|
|
7130
|
-
*
|
|
7131
|
-
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
7132
|
-
* would configure sparklineValues with an array of data points
|
|
7133
|
-
* coming from the first series in the primary datasource
|
|
7134
|
-
*
|
|
7135
|
-
*/
|
|
7136
|
-
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
7137
|
-
VizBehavior["EVENTS"] = "events";
|
|
7138
|
-
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
7139
|
-
/**
|
|
7140
|
-
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
7141
|
-
* missing.
|
|
7142
|
-
* @type {string}
|
|
7143
|
-
*/
|
|
7144
|
-
|
|
7145
|
-
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
7146
|
-
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
7147
|
-
VizBehavior["TRELLIS"] = "trellis";
|
|
7148
|
-
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
7149
|
-
|
|
7150
|
-
/***/ }),
|
|
7151
|
-
|
|
7152
|
-
/***/ 60:
|
|
6809
|
+
/***/ 58:
|
|
7153
6810
|
/***/ (function(module, exports) {
|
|
7154
6811
|
|
|
7155
6812
|
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
7156
6813
|
|
|
7157
6814
|
/***/ }),
|
|
7158
6815
|
|
|
7159
|
-
/***/
|
|
6816
|
+
/***/ 59:
|
|
7160
6817
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7161
6818
|
|
|
7162
6819
|
"use strict";
|
|
7163
6820
|
|
|
7164
6821
|
|
|
7165
|
-
var _classCallCheck = __webpack_require__(
|
|
6822
|
+
var _classCallCheck = __webpack_require__(8);
|
|
7166
6823
|
|
|
7167
6824
|
Object.defineProperty(exports, "__esModule", {
|
|
7168
6825
|
value: true
|
|
@@ -7170,9 +6827,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7170
6827
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
7171
6828
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
7172
6829
|
|
|
7173
|
-
var T = __webpack_require__(
|
|
6830
|
+
var T = __webpack_require__(0);
|
|
7174
6831
|
|
|
7175
|
-
var lodash_1 = __webpack_require__(
|
|
6832
|
+
var lodash_1 = __webpack_require__(2);
|
|
7176
6833
|
|
|
7177
6834
|
var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
7178
6835
|
|
|
@@ -7308,7 +6965,14 @@ exports.default = SplunkVisualization;
|
|
|
7308
6965
|
|
|
7309
6966
|
/***/ }),
|
|
7310
6967
|
|
|
7311
|
-
/***/
|
|
6968
|
+
/***/ 6:
|
|
6969
|
+
/***/ (function(module, exports) {
|
|
6970
|
+
|
|
6971
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
6972
|
+
|
|
6973
|
+
/***/ }),
|
|
6974
|
+
|
|
6975
|
+
/***/ 60:
|
|
7312
6976
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7313
6977
|
|
|
7314
6978
|
"use strict";
|
|
@@ -7319,9 +6983,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7319
6983
|
});
|
|
7320
6984
|
exports.useDeepMemo = void 0;
|
|
7321
6985
|
|
|
7322
|
-
var react_1 = __webpack_require__(
|
|
6986
|
+
var react_1 = __webpack_require__(1);
|
|
7323
6987
|
|
|
7324
|
-
var lodash_1 = __webpack_require__(
|
|
6988
|
+
var lodash_1 = __webpack_require__(2);
|
|
7325
6989
|
/**
|
|
7326
6990
|
* This hook evaluates and stores the result of a passed function and only
|
|
7327
6991
|
* re-evaluates the function when passed dependencies change.
|
|
@@ -7354,7 +7018,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
7354
7018
|
|
|
7355
7019
|
/***/ }),
|
|
7356
7020
|
|
|
7357
|
-
/***/
|
|
7021
|
+
/***/ 61:
|
|
7358
7022
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7359
7023
|
|
|
7360
7024
|
"use strict";
|
|
@@ -7365,13 +7029,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7365
7029
|
});
|
|
7366
7030
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
7367
7031
|
|
|
7368
|
-
var React = __webpack_require__(
|
|
7032
|
+
var React = __webpack_require__(1);
|
|
7369
7033
|
|
|
7370
|
-
var T = __webpack_require__(
|
|
7034
|
+
var T = __webpack_require__(0);
|
|
7371
7035
|
|
|
7372
|
-
var i18n_1 = __webpack_require__(
|
|
7036
|
+
var i18n_1 = __webpack_require__(3);
|
|
7373
7037
|
|
|
7374
|
-
var Message_1 = __webpack_require__(
|
|
7038
|
+
var Message_1 = __webpack_require__(11);
|
|
7375
7039
|
|
|
7376
7040
|
var FixedSizeContainer_1 = __webpack_require__(17);
|
|
7377
7041
|
/**
|
|
@@ -7435,7 +7099,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
|
|
|
7435
7099
|
|
|
7436
7100
|
/***/ }),
|
|
7437
7101
|
|
|
7438
|
-
/***/
|
|
7102
|
+
/***/ 62:
|
|
7439
7103
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7440
7104
|
|
|
7441
7105
|
"use strict";
|
|
@@ -7445,7 +7109,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7445
7109
|
value: true
|
|
7446
7110
|
});
|
|
7447
7111
|
|
|
7448
|
-
var React = __webpack_require__(
|
|
7112
|
+
var React = __webpack_require__(1);
|
|
7449
7113
|
|
|
7450
7114
|
var styled_components_1 = __webpack_require__(4);
|
|
7451
7115
|
|
|
@@ -7456,7 +7120,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
7456
7120
|
componentId: "sc-1gsbnxb-0"
|
|
7457
7121
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
7458
7122
|
var Blocker = styled_components_1.default.div.attrs({
|
|
7459
|
-
'data-splunk-visualization-version': "26.
|
|
7123
|
+
'data-splunk-visualization-version': "26.4.0 - 04078274d"
|
|
7460
7124
|
}).withConfig({
|
|
7461
7125
|
displayName: "withEditModeCover__Blocker",
|
|
7462
7126
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -7488,7 +7152,7 @@ exports.default = withEditModeCover;
|
|
|
7488
7152
|
|
|
7489
7153
|
/***/ }),
|
|
7490
7154
|
|
|
7491
|
-
/***/
|
|
7155
|
+
/***/ 63:
|
|
7492
7156
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7493
7157
|
|
|
7494
7158
|
"use strict";
|
|
@@ -7498,15 +7162,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7498
7162
|
value: true
|
|
7499
7163
|
});
|
|
7500
7164
|
|
|
7501
|
-
var React = __webpack_require__(
|
|
7165
|
+
var React = __webpack_require__(1);
|
|
7502
7166
|
|
|
7503
7167
|
var colorUtils_1 = __webpack_require__(15);
|
|
7504
7168
|
|
|
7505
7169
|
var variables_1 = __webpack_require__(13);
|
|
7506
7170
|
|
|
7507
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
7171
|
+
var IconPlaceholder_1 = __webpack_require__(36);
|
|
7508
7172
|
|
|
7509
|
-
var VizBehavior_1 = __webpack_require__(
|
|
7173
|
+
var VizBehavior_1 = __webpack_require__(7);
|
|
7510
7174
|
|
|
7511
7175
|
var hocUtils_1 = __webpack_require__(23);
|
|
7512
7176
|
|
|
@@ -7553,27 +7217,30 @@ exports.default = withPlaceholder;
|
|
|
7553
7217
|
|
|
7554
7218
|
/***/ }),
|
|
7555
7219
|
|
|
7556
|
-
/***/
|
|
7220
|
+
/***/ 64:
|
|
7557
7221
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7558
7222
|
|
|
7559
7223
|
"use strict";
|
|
7560
7224
|
|
|
7561
7225
|
|
|
7562
|
-
var _slicedToArray = __webpack_require__(
|
|
7226
|
+
var _slicedToArray = __webpack_require__(5);
|
|
7563
7227
|
|
|
7564
7228
|
Object.defineProperty(exports, "__esModule", {
|
|
7565
7229
|
value: true
|
|
7566
7230
|
});
|
|
7567
7231
|
|
|
7568
|
-
var react_1 = __webpack_require__(
|
|
7232
|
+
var react_1 = __webpack_require__(1);
|
|
7569
7233
|
|
|
7570
|
-
var lodash_1 = __webpack_require__(
|
|
7234
|
+
var lodash_1 = __webpack_require__(2);
|
|
7571
7235
|
|
|
7572
7236
|
var dataUtils_1 = __webpack_require__(14);
|
|
7573
7237
|
|
|
7574
|
-
var usePrevious_1 = __webpack_require__(
|
|
7238
|
+
var usePrevious_1 = __webpack_require__(32);
|
|
7575
7239
|
|
|
7576
|
-
var useGetXAndYFields_1 = __webpack_require__(
|
|
7240
|
+
var useGetXAndYFields_1 = __webpack_require__(65); // Options properties which impact/require re-downsample on change.
|
|
7241
|
+
|
|
7242
|
+
|
|
7243
|
+
var downsampleVizOptionProperties = ['nullValueDisplay'];
|
|
7577
7244
|
|
|
7578
7245
|
var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
7579
7246
|
var dataSources = _ref.dataSources,
|
|
@@ -7587,8 +7254,15 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
7587
7254
|
options: options,
|
|
7588
7255
|
context: context,
|
|
7589
7256
|
dataSources: dataSources
|
|
7590
|
-
});
|
|
7591
|
-
|
|
7257
|
+
}); // Extract viz options that impact downsampling.
|
|
7258
|
+
|
|
7259
|
+
var downsampleVizOptions = (0, react_1.useMemo)(function () {
|
|
7260
|
+
return (0, lodash_1.pick)(options, downsampleVizOptionProperties);
|
|
7261
|
+
}, [options]);
|
|
7262
|
+
var downsampleDSOptions = (0, react_1.useMemo)(function () {
|
|
7263
|
+
return Object.assign(Object.assign({}, downsampleVizOptions), xAndYFieldsWithTypes);
|
|
7264
|
+
}, [xAndYFieldsWithTypes, downsampleVizOptions]);
|
|
7265
|
+
var previousDownsampleDSOptions = (0, usePrevious_1.default)(downsampleDSOptions);
|
|
7592
7266
|
var previousDataSources = (0, usePrevious_1.default)(dataSources);
|
|
7593
7267
|
var previousThreshold = (0, usePrevious_1.default)(threshold);
|
|
7594
7268
|
|
|
@@ -7596,7 +7270,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
7596
7270
|
return isDownsamplingEnabled ? (0, dataUtils_1.downsampleDataSources)({
|
|
7597
7271
|
dataSources: dataSources,
|
|
7598
7272
|
threshold: threshold,
|
|
7599
|
-
options:
|
|
7273
|
+
options: downsampleDSOptions
|
|
7600
7274
|
}) : dataSources;
|
|
7601
7275
|
}),
|
|
7602
7276
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -7624,7 +7298,7 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
7624
7298
|
return;
|
|
7625
7299
|
}
|
|
7626
7300
|
|
|
7627
|
-
if ((0, lodash_1.isEqual)(
|
|
7301
|
+
if ((0, lodash_1.isEqual)(previousDownsampleDSOptions, downsampleDSOptions) && previousDataSources === dataSources && previousThreshold === threshold) {
|
|
7628
7302
|
return;
|
|
7629
7303
|
} // Debounce the downsampling so we don't have to downsample and execute DSL multiple times
|
|
7630
7304
|
// while the viz is being resized
|
|
@@ -7632,10 +7306,10 @@ var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
|
|
|
7632
7306
|
|
|
7633
7307
|
debouncedDownsampleDataSources({
|
|
7634
7308
|
dataSources: dataSources,
|
|
7635
|
-
options:
|
|
7309
|
+
options: downsampleDSOptions,
|
|
7636
7310
|
threshold: threshold
|
|
7637
7311
|
}); // need to detect if this runs as part of the initial render
|
|
7638
|
-
}, [dataSources, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled,
|
|
7312
|
+
}, [dataSources, downsampleDSOptions, debouncedDownsampleDataSources, xAndYFieldsWithTypes, threshold, isDownsamplingEnabled, previousDataSources, previousThreshold, previousDownsampleDSOptions]);
|
|
7639
7313
|
return downsampledDataSources;
|
|
7640
7314
|
};
|
|
7641
7315
|
|
|
@@ -7643,19 +7317,19 @@ exports.default = useDownsampleDataSources;
|
|
|
7643
7317
|
|
|
7644
7318
|
/***/ }),
|
|
7645
7319
|
|
|
7646
|
-
/***/
|
|
7320
|
+
/***/ 65:
|
|
7647
7321
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7648
7322
|
|
|
7649
7323
|
"use strict";
|
|
7650
7324
|
|
|
7651
7325
|
|
|
7652
|
-
var _toConsumableArray = __webpack_require__(
|
|
7326
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
7653
7327
|
|
|
7654
7328
|
Object.defineProperty(exports, "__esModule", {
|
|
7655
7329
|
value: true
|
|
7656
7330
|
});
|
|
7657
7331
|
|
|
7658
|
-
var react_1 = __webpack_require__(
|
|
7332
|
+
var react_1 = __webpack_require__(1);
|
|
7659
7333
|
|
|
7660
7334
|
var Options_1 = __webpack_require__(16);
|
|
7661
7335
|
/**
|
|
@@ -7758,7 +7432,7 @@ exports.default = useGetXAndYFields;
|
|
|
7758
7432
|
|
|
7759
7433
|
/***/ }),
|
|
7760
7434
|
|
|
7761
|
-
/***/
|
|
7435
|
+
/***/ 66:
|
|
7762
7436
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7763
7437
|
|
|
7764
7438
|
"use strict";
|
|
@@ -7769,7 +7443,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7769
7443
|
});
|
|
7770
7444
|
exports.getFeatureFlag = void 0;
|
|
7771
7445
|
|
|
7772
|
-
var FeatureFlags_1 = __webpack_require__(
|
|
7446
|
+
var FeatureFlags_1 = __webpack_require__(67);
|
|
7773
7447
|
|
|
7774
7448
|
var getFeatureFlag = function getFeatureFlag(context, flagName) {
|
|
7775
7449
|
// look for feature flag in context first
|
|
@@ -7794,110 +7468,124 @@ exports.getFeatureFlag = getFeatureFlag;
|
|
|
7794
7468
|
|
|
7795
7469
|
/***/ }),
|
|
7796
7470
|
|
|
7797
|
-
/***/
|
|
7471
|
+
/***/ 67:
|
|
7798
7472
|
/***/ (function(module, exports) {
|
|
7799
7473
|
|
|
7800
7474
|
module.exports = require("@splunk/visualization-context/FeatureFlags");
|
|
7801
7475
|
|
|
7802
7476
|
/***/ }),
|
|
7803
7477
|
|
|
7804
|
-
/***/
|
|
7478
|
+
/***/ 68:
|
|
7805
7479
|
/***/ (function(module, exports) {
|
|
7806
7480
|
|
|
7807
|
-
module.exports = require("@babel/runtime/helpers/
|
|
7481
|
+
module.exports = require("@babel/runtime/helpers/extends");
|
|
7808
7482
|
|
|
7809
7483
|
/***/ }),
|
|
7810
7484
|
|
|
7811
|
-
/***/
|
|
7485
|
+
/***/ 69:
|
|
7812
7486
|
/***/ (function(module, exports) {
|
|
7813
7487
|
|
|
7814
|
-
module.exports = require("@
|
|
7488
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
7815
7489
|
|
|
7816
7490
|
/***/ }),
|
|
7817
7491
|
|
|
7818
|
-
/***/
|
|
7819
|
-
/***/ (function(module, exports) {
|
|
7492
|
+
/***/ 7:
|
|
7493
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7820
7494
|
|
|
7821
|
-
|
|
7495
|
+
"use strict";
|
|
7496
|
+
|
|
7497
|
+
|
|
7498
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7499
|
+
value: true
|
|
7500
|
+
});
|
|
7501
|
+
exports.VizBehavior = void 0;
|
|
7502
|
+
var VizBehavior;
|
|
7503
|
+
|
|
7504
|
+
(function (VizBehavior) {
|
|
7505
|
+
/**
|
|
7506
|
+
* Dynamic Options Behavior.
|
|
7507
|
+
* This allows visualization options to be powered by data
|
|
7508
|
+
*
|
|
7509
|
+
* **Example**
|
|
7510
|
+
*
|
|
7511
|
+
* sparklineValues: ">primary|seriesByIndex(0)"
|
|
7512
|
+
* would configure sparklineValues with an array of data points
|
|
7513
|
+
* coming from the first series in the primary datasource
|
|
7514
|
+
*
|
|
7515
|
+
*/
|
|
7516
|
+
VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
|
|
7517
|
+
VizBehavior["EVENTS"] = "events";
|
|
7518
|
+
VizBehavior["DOWNSAMPLING"] = "downsampling";
|
|
7519
|
+
/**
|
|
7520
|
+
* Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
|
|
7521
|
+
* missing.
|
|
7522
|
+
* @type {string}
|
|
7523
|
+
*/
|
|
7524
|
+
|
|
7525
|
+
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
7526
|
+
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
7527
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
7528
|
+
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
7822
7529
|
|
|
7823
7530
|
/***/ }),
|
|
7824
7531
|
|
|
7825
|
-
/***/
|
|
7532
|
+
/***/ 70:
|
|
7826
7533
|
/***/ (function(module, exports) {
|
|
7827
7534
|
|
|
7828
7535
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
7829
7536
|
|
|
7830
7537
|
/***/ }),
|
|
7831
7538
|
|
|
7832
|
-
/***/
|
|
7539
|
+
/***/ 71:
|
|
7833
7540
|
/***/ (function(module, exports) {
|
|
7834
7541
|
|
|
7835
7542
|
module.exports = require("@splunk/visualization-icons");
|
|
7836
7543
|
|
|
7837
7544
|
/***/ }),
|
|
7838
7545
|
|
|
7839
|
-
/***/
|
|
7546
|
+
/***/ 73:
|
|
7840
7547
|
/***/ (function(module, exports) {
|
|
7841
7548
|
|
|
7842
7549
|
module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
7843
7550
|
|
|
7844
7551
|
/***/ }),
|
|
7845
7552
|
|
|
7846
|
-
/***/
|
|
7553
|
+
/***/ 76:
|
|
7847
7554
|
/***/ (function(module, exports) {
|
|
7848
7555
|
|
|
7849
7556
|
module.exports = require("@splunk/themes/useSplunkTheme");
|
|
7850
7557
|
|
|
7851
7558
|
/***/ }),
|
|
7852
7559
|
|
|
7853
|
-
/***/
|
|
7560
|
+
/***/ 79:
|
|
7854
7561
|
/***/ (function(module, exports) {
|
|
7855
7562
|
|
|
7856
|
-
module.exports = require("@
|
|
7857
|
-
|
|
7858
|
-
/***/ }),
|
|
7859
|
-
|
|
7860
|
-
/***/ 80:
|
|
7861
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7862
|
-
|
|
7863
|
-
"use strict";
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7867
|
-
value: true
|
|
7868
|
-
});
|
|
7869
|
-
exports.LAYOUT_TYPE = void 0;
|
|
7870
|
-
var LAYOUT_TYPE;
|
|
7871
|
-
|
|
7872
|
-
(function (LAYOUT_TYPE) {
|
|
7873
|
-
LAYOUT_TYPE["Off"] = "off";
|
|
7874
|
-
LAYOUT_TYPE["Trellis"] = "trellis";
|
|
7875
|
-
})(LAYOUT_TYPE = exports.LAYOUT_TYPE || (exports.LAYOUT_TYPE = {}));
|
|
7563
|
+
module.exports = require("@splunk/themes");
|
|
7876
7564
|
|
|
7877
7565
|
/***/ }),
|
|
7878
7566
|
|
|
7879
|
-
/***/
|
|
7567
|
+
/***/ 8:
|
|
7880
7568
|
/***/ (function(module, exports) {
|
|
7881
7569
|
|
|
7882
|
-
module.exports = require("@
|
|
7570
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
7883
7571
|
|
|
7884
7572
|
/***/ }),
|
|
7885
7573
|
|
|
7886
|
-
/***/
|
|
7574
|
+
/***/ 80:
|
|
7887
7575
|
/***/ (function(module, exports) {
|
|
7888
7576
|
|
|
7889
7577
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
7890
7578
|
|
|
7891
7579
|
/***/ }),
|
|
7892
7580
|
|
|
7893
|
-
/***/
|
|
7581
|
+
/***/ 81:
|
|
7894
7582
|
/***/ (function(module, exports) {
|
|
7895
7583
|
|
|
7896
7584
|
module.exports = require("@splunk/react-ui/Popover");
|
|
7897
7585
|
|
|
7898
7586
|
/***/ }),
|
|
7899
7587
|
|
|
7900
|
-
/***/
|
|
7588
|
+
/***/ 82:
|
|
7901
7589
|
/***/ (function(module, exports) {
|
|
7902
7590
|
|
|
7903
7591
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
@@ -7907,25 +7595,25 @@ module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
|
7907
7595
|
/***/ 9:
|
|
7908
7596
|
/***/ (function(module, exports) {
|
|
7909
7597
|
|
|
7910
|
-
module.exports = require("@
|
|
7598
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
7911
7599
|
|
|
7912
7600
|
/***/ }),
|
|
7913
7601
|
|
|
7914
|
-
/***/
|
|
7602
|
+
/***/ 91:
|
|
7915
7603
|
/***/ (function(module, exports) {
|
|
7916
7604
|
|
|
7917
7605
|
module.exports = require("@babel/runtime/helpers/inherits");
|
|
7918
7606
|
|
|
7919
7607
|
/***/ }),
|
|
7920
7608
|
|
|
7921
|
-
/***/
|
|
7609
|
+
/***/ 92:
|
|
7922
7610
|
/***/ (function(module, exports) {
|
|
7923
7611
|
|
|
7924
7612
|
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
7925
7613
|
|
|
7926
7614
|
/***/ }),
|
|
7927
7615
|
|
|
7928
|
-
/***/
|
|
7616
|
+
/***/ 93:
|
|
7929
7617
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7930
7618
|
|
|
7931
7619
|
"use strict";
|
|
@@ -7948,6 +7636,51 @@ var VizStyleWrapper = styled_components__WEBPACK_IMPORTED_MODULE_0___default.a.d
|
|
|
7948
7636
|
VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
7949
7637
|
/* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
|
|
7950
7638
|
|
|
7639
|
+
/***/ }),
|
|
7640
|
+
|
|
7641
|
+
/***/ 99:
|
|
7642
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7643
|
+
|
|
7644
|
+
"use strict";
|
|
7645
|
+
|
|
7646
|
+
|
|
7647
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7648
|
+
value: true
|
|
7649
|
+
});
|
|
7650
|
+
exports.TrellisTitle = exports.TRELLIS_TITLE_HEIGHT = void 0;
|
|
7651
|
+
|
|
7652
|
+
var React = __webpack_require__(1);
|
|
7653
|
+
|
|
7654
|
+
var styled_components_1 = __webpack_require__(4);
|
|
7655
|
+
|
|
7656
|
+
exports.TRELLIS_TITLE_HEIGHT = 28;
|
|
7657
|
+
var TrellisTitleText = styled_components_1.default.div.withConfig({
|
|
7658
|
+
displayName: "TrellisTitle__TrellisTitleText",
|
|
7659
|
+
componentId: "sc-2cu404-0"
|
|
7660
|
+
})(["margin-left:10px;margin-right:10px;padding-top:8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"]);
|
|
7661
|
+
var TrellisTitleDiv = styled_components_1.default.div.withConfig({
|
|
7662
|
+
displayName: "TrellisTitle__TrellisTitleDiv",
|
|
7663
|
+
componentId: "sc-2cu404-1"
|
|
7664
|
+
})(["height:", "px;font-size:14px;font-weight:700;color:", ";background-color:", ";box-shadow:0 1px ", ";"], exports.TRELLIS_TITLE_HEIGHT, function (props) {
|
|
7665
|
+
return props.fontColor;
|
|
7666
|
+
}, function (props) {
|
|
7667
|
+
return props.backgroundColor;
|
|
7668
|
+
}, function (props) {
|
|
7669
|
+
return props.backgroundColor;
|
|
7670
|
+
});
|
|
7671
|
+
|
|
7672
|
+
var TrellisTitle = function TrellisTitle(props) {
|
|
7673
|
+
var titleText = String(props.trellisKey).toString();
|
|
7674
|
+
return React.createElement(TrellisTitleDiv, {
|
|
7675
|
+
fontColor: props.fontColor,
|
|
7676
|
+
backgroundColor: props.backgroundColor,
|
|
7677
|
+
"data-test": "trellis-title",
|
|
7678
|
+
title: titleText
|
|
7679
|
+
}, React.createElement(TrellisTitleText, null, titleText));
|
|
7680
|
+
};
|
|
7681
|
+
|
|
7682
|
+
exports.TrellisTitle = TrellisTitle;
|
|
7683
|
+
|
|
7951
7684
|
/***/ })
|
|
7952
7685
|
|
|
7953
7686
|
/******/ });
|