@splunk/visualization-migrations 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/index.js +155 -289
- package/index.js.map +1 -1
- package/package.json +7 -7
- package/tsconfig.json +3 -9
package/index.js
CHANGED
|
@@ -92,19 +92,25 @@ module.exports =
|
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
94
94
|
/* 0 */
|
|
95
|
+
/***/ (function(module, exports) {
|
|
96
|
+
|
|
97
|
+
module.exports = require("@splunk/visualization-schemas");
|
|
98
|
+
|
|
99
|
+
/***/ }),
|
|
100
|
+
/* 1 */
|
|
95
101
|
/***/ (function(module, exports, __webpack_require__) {
|
|
96
102
|
|
|
97
103
|
"use strict";
|
|
98
104
|
|
|
99
105
|
|
|
100
|
-
var _slicedToArray = __webpack_require__(
|
|
106
|
+
var _slicedToArray = __webpack_require__(7);
|
|
101
107
|
|
|
102
108
|
Object.defineProperty(exports, "__esModule", {
|
|
103
109
|
value: true
|
|
104
110
|
});
|
|
105
111
|
exports.addsDataSelectorToOptions = exports.preserveDataSelectionForValueOption = exports.renameVizOptions = exports.removeInvalidOptions = void 0;
|
|
106
112
|
|
|
107
|
-
var dsl_1 = __webpack_require__(
|
|
113
|
+
var dsl_1 = __webpack_require__(19);
|
|
108
114
|
/**
|
|
109
115
|
* Removes invalid keys in the options
|
|
110
116
|
* @param currentOptions - Current visualization options
|
|
@@ -200,7 +206,7 @@ var addsDataSelectorToOptions = function addsDataSelectorToOptions(dataOptions,
|
|
|
200
206
|
exports.addsDataSelectorToOptions = addsDataSelectorToOptions;
|
|
201
207
|
|
|
202
208
|
/***/ }),
|
|
203
|
-
/*
|
|
209
|
+
/* 2 */
|
|
204
210
|
/***/ (function(module, exports, __webpack_require__) {
|
|
205
211
|
|
|
206
212
|
"use strict";
|
|
@@ -235,16 +241,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
235
241
|
value: true
|
|
236
242
|
});
|
|
237
243
|
|
|
238
|
-
__exportStar(__webpack_require__(
|
|
244
|
+
__exportStar(__webpack_require__(14), exports);
|
|
239
245
|
|
|
240
246
|
/***/ }),
|
|
241
|
-
/*
|
|
247
|
+
/* 3 */
|
|
242
248
|
/***/ (function(module, exports, __webpack_require__) {
|
|
243
249
|
|
|
244
250
|
"use strict";
|
|
245
251
|
|
|
246
252
|
|
|
247
|
-
var _typeof = __webpack_require__(
|
|
253
|
+
var _typeof = __webpack_require__(5);
|
|
248
254
|
|
|
249
255
|
var __rest = this && this.__rest || function (s, e) {
|
|
250
256
|
var t = {};
|
|
@@ -264,7 +270,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
264
270
|
});
|
|
265
271
|
exports.otherValueReplacements = exports.migrateChartingOptions = exports.migrateBaseChartingVizDefinition = void 0;
|
|
266
272
|
|
|
267
|
-
var encoding_1 = __webpack_require__(
|
|
273
|
+
var encoding_1 = __webpack_require__(2);
|
|
268
274
|
/**
|
|
269
275
|
* map of splunk charting based @splunk/dashboard-visualization option names
|
|
270
276
|
* to updated @splunk/visualization option names
|
|
@@ -516,7 +522,7 @@ var migrateBaseChartingVizDefinition = function migrateBaseChartingVizDefinition
|
|
|
516
522
|
exports.migrateBaseChartingVizDefinition = migrateBaseChartingVizDefinition;
|
|
517
523
|
|
|
518
524
|
/***/ }),
|
|
519
|
-
/*
|
|
525
|
+
/* 4 */
|
|
520
526
|
/***/ (function(module, exports, __webpack_require__) {
|
|
521
527
|
|
|
522
528
|
"use strict";
|
|
@@ -555,25 +561,25 @@ var consolidateTrendDisplay = function consolidateTrendDisplay(trendDisplayMode,
|
|
|
555
561
|
exports.consolidateTrendDisplay = consolidateTrendDisplay;
|
|
556
562
|
|
|
557
563
|
/***/ }),
|
|
558
|
-
/*
|
|
564
|
+
/* 5 */
|
|
559
565
|
/***/ (function(module, exports) {
|
|
560
566
|
|
|
561
567
|
module.exports = require("@babel/runtime/helpers/typeof");
|
|
562
568
|
|
|
563
569
|
/***/ }),
|
|
564
|
-
/*
|
|
570
|
+
/* 6 */
|
|
565
571
|
/***/ (function(module, exports) {
|
|
566
572
|
|
|
567
573
|
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
568
574
|
|
|
569
575
|
/***/ }),
|
|
570
|
-
/*
|
|
576
|
+
/* 7 */
|
|
571
577
|
/***/ (function(module, exports) {
|
|
572
578
|
|
|
573
579
|
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
574
580
|
|
|
575
581
|
/***/ }),
|
|
576
|
-
/*
|
|
582
|
+
/* 8 */
|
|
577
583
|
/***/ (function(module, exports, __webpack_require__) {
|
|
578
584
|
|
|
579
585
|
"use strict";
|
|
@@ -611,12 +617,6 @@ var consolidateDisplayOption = function consolidateDisplayOption(showOption, per
|
|
|
611
617
|
|
|
612
618
|
exports.consolidateDisplayOption = consolidateDisplayOption;
|
|
613
619
|
|
|
614
|
-
/***/ }),
|
|
615
|
-
/* 8 */
|
|
616
|
-
/***/ (function(module, exports) {
|
|
617
|
-
|
|
618
|
-
module.exports = require("@splunk/visualizations/Markdown.config");
|
|
619
|
-
|
|
620
620
|
/***/ }),
|
|
621
621
|
/* 9 */
|
|
622
622
|
/***/ (function(module, exports) {
|
|
@@ -832,45 +832,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
832
832
|
|
|
833
833
|
__exportStar(__webpack_require__(13), exports);
|
|
834
834
|
|
|
835
|
-
__exportStar(__webpack_require__(
|
|
835
|
+
__exportStar(__webpack_require__(16), exports);
|
|
836
836
|
|
|
837
|
-
__exportStar(__webpack_require__(
|
|
837
|
+
__exportStar(__webpack_require__(17), exports);
|
|
838
838
|
|
|
839
|
-
__exportStar(__webpack_require__(
|
|
839
|
+
__exportStar(__webpack_require__(18), exports);
|
|
840
840
|
|
|
841
|
-
__exportStar(__webpack_require__(
|
|
841
|
+
__exportStar(__webpack_require__(20), exports);
|
|
842
842
|
|
|
843
|
-
__exportStar(__webpack_require__(
|
|
843
|
+
__exportStar(__webpack_require__(21), exports);
|
|
844
844
|
|
|
845
|
-
__exportStar(__webpack_require__(
|
|
845
|
+
__exportStar(__webpack_require__(22), exports);
|
|
846
846
|
|
|
847
|
-
__exportStar(__webpack_require__(
|
|
847
|
+
__exportStar(__webpack_require__(23), exports);
|
|
848
848
|
|
|
849
|
-
__exportStar(__webpack_require__(
|
|
849
|
+
__exportStar(__webpack_require__(24), exports);
|
|
850
850
|
|
|
851
|
-
__exportStar(__webpack_require__(
|
|
851
|
+
__exportStar(__webpack_require__(25), exports);
|
|
852
852
|
|
|
853
|
-
__exportStar(__webpack_require__(
|
|
853
|
+
__exportStar(__webpack_require__(26), exports);
|
|
854
854
|
|
|
855
|
-
__exportStar(__webpack_require__(
|
|
855
|
+
__exportStar(__webpack_require__(27), exports);
|
|
856
856
|
|
|
857
|
-
__exportStar(__webpack_require__(
|
|
857
|
+
__exportStar(__webpack_require__(28), exports);
|
|
858
858
|
|
|
859
|
-
__exportStar(__webpack_require__(
|
|
859
|
+
__exportStar(__webpack_require__(29), exports);
|
|
860
860
|
|
|
861
|
-
__exportStar(__webpack_require__(
|
|
861
|
+
__exportStar(__webpack_require__(30), exports);
|
|
862
862
|
|
|
863
|
-
__exportStar(__webpack_require__(
|
|
863
|
+
__exportStar(__webpack_require__(31), exports);
|
|
864
864
|
|
|
865
|
-
__exportStar(__webpack_require__(
|
|
865
|
+
__exportStar(__webpack_require__(32), exports);
|
|
866
866
|
|
|
867
|
-
__exportStar(__webpack_require__(
|
|
867
|
+
__exportStar(__webpack_require__(33), exports);
|
|
868
868
|
|
|
869
|
-
__exportStar(__webpack_require__(
|
|
869
|
+
__exportStar(__webpack_require__(35), exports);
|
|
870
870
|
|
|
871
|
-
__exportStar(__webpack_require__(
|
|
871
|
+
__exportStar(__webpack_require__(36), exports);
|
|
872
872
|
|
|
873
|
-
__exportStar(__webpack_require__(
|
|
873
|
+
__exportStar(__webpack_require__(37), exports);
|
|
874
874
|
|
|
875
875
|
/***/ }),
|
|
876
876
|
/* 13 */
|
|
@@ -884,11 +884,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
884
884
|
});
|
|
885
885
|
exports.migrateVizToSplunkArea = void 0;
|
|
886
886
|
|
|
887
|
-
var
|
|
887
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
888
888
|
|
|
889
|
-
var splunk_charting_1 = __webpack_require__(
|
|
889
|
+
var splunk_charting_1 = __webpack_require__(3); // old default configurations should be retained in migrated configuration
|
|
890
890
|
|
|
891
|
-
var validOptions = Object.assign({}, Area_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
892
891
|
|
|
893
892
|
var defaultChanges = {
|
|
894
893
|
yAxisAbbreviation: 'off',
|
|
@@ -901,7 +900,7 @@ var defaultChanges = {
|
|
|
901
900
|
var migrateVizToSplunkArea = function migrateVizToSplunkArea(vizDefinition) {
|
|
902
901
|
return (0, splunk_charting_1.migrateBaseChartingVizDefinition)({
|
|
903
902
|
defaultChanges: defaultChanges,
|
|
904
|
-
validOptions:
|
|
903
|
+
validOptions: visualization_schemas_1.areaOptionsSchema,
|
|
905
904
|
vizDefinition: vizDefinition,
|
|
906
905
|
vizType: 'splunk.area'
|
|
907
906
|
});
|
|
@@ -911,27 +910,21 @@ exports.migrateVizToSplunkArea = migrateVizToSplunkArea;
|
|
|
911
910
|
|
|
912
911
|
/***/ }),
|
|
913
912
|
/* 14 */
|
|
914
|
-
/***/ (function(module, exports) {
|
|
915
|
-
|
|
916
|
-
module.exports = require("@splunk/visualizations/Area.config");
|
|
917
|
-
|
|
918
|
-
/***/ }),
|
|
919
|
-
/* 15 */
|
|
920
913
|
/***/ (function(module, exports, __webpack_require__) {
|
|
921
914
|
|
|
922
915
|
"use strict";
|
|
923
916
|
|
|
924
917
|
|
|
925
|
-
var _typeof = __webpack_require__(
|
|
918
|
+
var _typeof = __webpack_require__(5);
|
|
926
919
|
|
|
927
|
-
var _toConsumableArray = __webpack_require__(
|
|
920
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
928
921
|
|
|
929
922
|
Object.defineProperty(exports, "__esModule", {
|
|
930
923
|
value: true
|
|
931
924
|
});
|
|
932
925
|
exports.encodingToDynamicOptionsDSL = void 0;
|
|
933
926
|
|
|
934
|
-
var Base_1 = __webpack_require__(
|
|
927
|
+
var Base_1 = __webpack_require__(15); // @TODO(pwied): move the parsing helpers so we can deprecate visualization-encoding-parsers package
|
|
935
928
|
// index based references are defined by <dataSource>[<index>]
|
|
936
929
|
// this regex matches <text with numbers>[<anything>]
|
|
937
930
|
// the "[" "]" part makes it an index based reference
|
|
@@ -1208,13 +1201,13 @@ var encodingToDynamicOptionsDSL = function encodingToDynamicOptionsDSL(encoding)
|
|
|
1208
1201
|
exports.encodingToDynamicOptionsDSL = encodingToDynamicOptionsDSL;
|
|
1209
1202
|
|
|
1210
1203
|
/***/ }),
|
|
1211
|
-
/*
|
|
1204
|
+
/* 15 */
|
|
1212
1205
|
/***/ (function(module, exports) {
|
|
1213
1206
|
|
|
1214
1207
|
module.exports = require("@splunk/visualization-encoding-parsers/Base");
|
|
1215
1208
|
|
|
1216
1209
|
/***/ }),
|
|
1217
|
-
/*
|
|
1210
|
+
/* 16 */
|
|
1218
1211
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1219
1212
|
|
|
1220
1213
|
"use strict";
|
|
@@ -1225,11 +1218,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1225
1218
|
});
|
|
1226
1219
|
exports.migrateVizToSplunkBar = void 0;
|
|
1227
1220
|
|
|
1228
|
-
var
|
|
1221
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1229
1222
|
|
|
1230
|
-
var splunk_charting_1 = __webpack_require__(
|
|
1223
|
+
var splunk_charting_1 = __webpack_require__(3); // old default configurations should be retained in migrated configuration
|
|
1231
1224
|
|
|
1232
|
-
var validOptions = Object.assign({}, Bar_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
1233
1225
|
|
|
1234
1226
|
var defaultChanges = {
|
|
1235
1227
|
yAxisAbbreviation: 'off',
|
|
@@ -1242,7 +1234,7 @@ var defaultChanges = {
|
|
|
1242
1234
|
var migrateVizToSplunkBar = function migrateVizToSplunkBar(vizDefinition) {
|
|
1243
1235
|
return (0, splunk_charting_1.migrateBaseChartingVizDefinition)({
|
|
1244
1236
|
defaultChanges: defaultChanges,
|
|
1245
|
-
validOptions:
|
|
1237
|
+
validOptions: visualization_schemas_1.barOptionsSchema,
|
|
1246
1238
|
vizDefinition: vizDefinition,
|
|
1247
1239
|
vizType: 'splunk.bar'
|
|
1248
1240
|
});
|
|
@@ -1251,13 +1243,7 @@ var migrateVizToSplunkBar = function migrateVizToSplunkBar(vizDefinition) {
|
|
|
1251
1243
|
exports.migrateVizToSplunkBar = migrateVizToSplunkBar;
|
|
1252
1244
|
|
|
1253
1245
|
/***/ }),
|
|
1254
|
-
/*
|
|
1255
|
-
/***/ (function(module, exports) {
|
|
1256
|
-
|
|
1257
|
-
module.exports = require("@splunk/visualizations/Bar.config");
|
|
1258
|
-
|
|
1259
|
-
/***/ }),
|
|
1260
|
-
/* 19 */
|
|
1246
|
+
/* 17 */
|
|
1261
1247
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1262
1248
|
|
|
1263
1249
|
"use strict";
|
|
@@ -1268,11 +1254,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1268
1254
|
});
|
|
1269
1255
|
exports.migrateVizToSplunkBubble = void 0;
|
|
1270
1256
|
|
|
1271
|
-
var
|
|
1257
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1272
1258
|
|
|
1273
|
-
var splunk_charting_1 = __webpack_require__(
|
|
1259
|
+
var splunk_charting_1 = __webpack_require__(3); // old default configurations should be retained in migrated configuration
|
|
1274
1260
|
|
|
1275
|
-
var validOptions = Object.assign({}, Bubble_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
1276
1261
|
|
|
1277
1262
|
var defaultChanges = {
|
|
1278
1263
|
yAxisAbbreviation: 'off',
|
|
@@ -1282,7 +1267,7 @@ var defaultChanges = {
|
|
|
1282
1267
|
var migrateVizToSplunkBubble = function migrateVizToSplunkBubble(vizDefinition) {
|
|
1283
1268
|
return (0, splunk_charting_1.migrateBaseChartingVizDefinition)({
|
|
1284
1269
|
defaultChanges: defaultChanges,
|
|
1285
|
-
validOptions:
|
|
1270
|
+
validOptions: visualization_schemas_1.bubbleOptionsSchema,
|
|
1286
1271
|
vizDefinition: vizDefinition,
|
|
1287
1272
|
vizType: 'splunk.bubble'
|
|
1288
1273
|
});
|
|
@@ -1291,13 +1276,7 @@ var migrateVizToSplunkBubble = function migrateVizToSplunkBubble(vizDefinition)
|
|
|
1291
1276
|
exports.migrateVizToSplunkBubble = migrateVizToSplunkBubble;
|
|
1292
1277
|
|
|
1293
1278
|
/***/ }),
|
|
1294
|
-
/*
|
|
1295
|
-
/***/ (function(module, exports) {
|
|
1296
|
-
|
|
1297
|
-
module.exports = require("@splunk/visualizations/Bubble.config");
|
|
1298
|
-
|
|
1299
|
-
/***/ }),
|
|
1300
|
-
/* 21 */
|
|
1279
|
+
/* 18 */
|
|
1301
1280
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1302
1281
|
|
|
1303
1282
|
"use strict";
|
|
@@ -1321,13 +1300,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1321
1300
|
});
|
|
1322
1301
|
exports.migrateVizToSplunkChoroplethSvg = void 0;
|
|
1323
1302
|
|
|
1324
|
-
var
|
|
1303
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1325
1304
|
|
|
1326
|
-
var encoding_1 = __webpack_require__(
|
|
1305
|
+
var encoding_1 = __webpack_require__(2);
|
|
1327
1306
|
|
|
1328
|
-
var migrationUtils_1 = __webpack_require__(
|
|
1307
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
1329
1308
|
|
|
1330
|
-
var validOptions = Object.assign({}, ChoroplethSvg_config_1.default.optionsSchema);
|
|
1331
1309
|
var optionRenames = {
|
|
1332
1310
|
featureId: 'areaIds',
|
|
1333
1311
|
value: 'areaValues',
|
|
@@ -1374,26 +1352,20 @@ var migrateVizToSplunkChoroplethSvg = function migrateVizToSplunkChoroplethSvg(v
|
|
|
1374
1352
|
migratedDefinition.options = Object.assign(Object.assign({}, defaultOptionChanges), migratedOptions);
|
|
1375
1353
|
migratedDefinition.context = encoding.fill ? dataContext : defaultContextChanges; // remove invalid options
|
|
1376
1354
|
|
|
1377
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options,
|
|
1355
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options, visualization_schemas_1.choroplethSvgOptionsSchema);
|
|
1378
1356
|
return migratedDefinition;
|
|
1379
1357
|
};
|
|
1380
1358
|
|
|
1381
1359
|
exports.migrateVizToSplunkChoroplethSvg = migrateVizToSplunkChoroplethSvg;
|
|
1382
1360
|
|
|
1383
1361
|
/***/ }),
|
|
1384
|
-
/*
|
|
1385
|
-
/***/ (function(module, exports) {
|
|
1386
|
-
|
|
1387
|
-
module.exports = require("@splunk/visualizations/ChoroplethSvg.config");
|
|
1388
|
-
|
|
1389
|
-
/***/ }),
|
|
1390
|
-
/* 23 */
|
|
1362
|
+
/* 19 */
|
|
1391
1363
|
/***/ (function(module, exports) {
|
|
1392
1364
|
|
|
1393
1365
|
module.exports = require("@splunk/visualization-encoding/utils/dsl");
|
|
1394
1366
|
|
|
1395
1367
|
/***/ }),
|
|
1396
|
-
/*
|
|
1368
|
+
/* 20 */
|
|
1397
1369
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1398
1370
|
|
|
1399
1371
|
"use strict";
|
|
@@ -1404,11 +1376,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1404
1376
|
});
|
|
1405
1377
|
exports.migrateVizToSplunkColumn = void 0;
|
|
1406
1378
|
|
|
1407
|
-
var
|
|
1379
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1408
1380
|
|
|
1409
|
-
var splunk_charting_1 = __webpack_require__(
|
|
1381
|
+
var splunk_charting_1 = __webpack_require__(3); // old default configurations should be retained in migrated configuration
|
|
1410
1382
|
|
|
1411
|
-
var validOptions = Object.assign({}, Column_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
1412
1383
|
|
|
1413
1384
|
var defaultChanges = {
|
|
1414
1385
|
yAxisAbbreviation: 'off',
|
|
@@ -1421,7 +1392,7 @@ var defaultChanges = {
|
|
|
1421
1392
|
var migrateVizToSplunkColumn = function migrateVizToSplunkColumn(vizDefinition) {
|
|
1422
1393
|
return (0, splunk_charting_1.migrateBaseChartingVizDefinition)({
|
|
1423
1394
|
defaultChanges: defaultChanges,
|
|
1424
|
-
validOptions:
|
|
1395
|
+
validOptions: visualization_schemas_1.columnOptionsSchema,
|
|
1425
1396
|
vizDefinition: vizDefinition,
|
|
1426
1397
|
vizType: 'splunk.column'
|
|
1427
1398
|
});
|
|
@@ -1430,13 +1401,7 @@ var migrateVizToSplunkColumn = function migrateVizToSplunkColumn(vizDefinition)
|
|
|
1430
1401
|
exports.migrateVizToSplunkColumn = migrateVizToSplunkColumn;
|
|
1431
1402
|
|
|
1432
1403
|
/***/ }),
|
|
1433
|
-
/*
|
|
1434
|
-
/***/ (function(module, exports) {
|
|
1435
|
-
|
|
1436
|
-
module.exports = require("@splunk/visualizations/Column.config");
|
|
1437
|
-
|
|
1438
|
-
/***/ }),
|
|
1439
|
-
/* 26 */
|
|
1404
|
+
/* 21 */
|
|
1440
1405
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1441
1406
|
|
|
1442
1407
|
"use strict";
|
|
@@ -1460,13 +1425,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1460
1425
|
});
|
|
1461
1426
|
exports.migrateVizToSplunkEllipse = void 0;
|
|
1462
1427
|
|
|
1463
|
-
var
|
|
1428
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1464
1429
|
|
|
1465
|
-
var encoding_1 = __webpack_require__(
|
|
1430
|
+
var encoding_1 = __webpack_require__(2);
|
|
1466
1431
|
|
|
1467
|
-
var migrationUtils_1 = __webpack_require__(
|
|
1432
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
1468
1433
|
|
|
1469
|
-
var validOptions = Object.assign({}, Ellipse_config_1.default.optionsSchema);
|
|
1470
1434
|
var optionsToRename = {
|
|
1471
1435
|
fill: 'fillColor',
|
|
1472
1436
|
stroke: 'strokeColor',
|
|
@@ -1497,7 +1461,7 @@ var migrateVizToSplunkEllipse = function migrateVizToSplunkEllipse(vizDefinition
|
|
|
1497
1461
|
|
|
1498
1462
|
migratedDefinition.options = (0, migrationUtils_1.renameVizOptions)(migratedDefinition.options, optionsToRename); // remove invalid options from new definition
|
|
1499
1463
|
|
|
1500
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options,
|
|
1464
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options, visualization_schemas_1.ellipseOptionsSchema);
|
|
1501
1465
|
migratedDefinition.context = dataContext;
|
|
1502
1466
|
return migratedDefinition;
|
|
1503
1467
|
};
|
|
@@ -1505,13 +1469,7 @@ var migrateVizToSplunkEllipse = function migrateVizToSplunkEllipse(vizDefinition
|
|
|
1505
1469
|
exports.migrateVizToSplunkEllipse = migrateVizToSplunkEllipse;
|
|
1506
1470
|
|
|
1507
1471
|
/***/ }),
|
|
1508
|
-
/*
|
|
1509
|
-
/***/ (function(module, exports) {
|
|
1510
|
-
|
|
1511
|
-
module.exports = require("@splunk/visualizations/Ellipse.config");
|
|
1512
|
-
|
|
1513
|
-
/***/ }),
|
|
1514
|
-
/* 28 */
|
|
1472
|
+
/* 22 */
|
|
1515
1473
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1516
1474
|
|
|
1517
1475
|
"use strict";
|
|
@@ -1535,15 +1493,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1535
1493
|
});
|
|
1536
1494
|
exports.migrateVizToSplunkFillerGauge = void 0;
|
|
1537
1495
|
|
|
1538
|
-
var
|
|
1496
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1539
1497
|
|
|
1540
|
-
var encoding_1 = __webpack_require__(
|
|
1498
|
+
var encoding_1 = __webpack_require__(2);
|
|
1541
1499
|
|
|
1542
|
-
var gauges_1 = __webpack_require__(
|
|
1500
|
+
var gauges_1 = __webpack_require__(8);
|
|
1543
1501
|
|
|
1544
|
-
var migrationUtils_1 = __webpack_require__(
|
|
1502
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
1545
1503
|
|
|
1546
|
-
var validOptions = Object.assign({}, FillerGauge_config_1.default.optionsSchema);
|
|
1547
1504
|
var optionRenames = {
|
|
1548
1505
|
majorUnit: 'majorTickInterval'
|
|
1549
1506
|
};
|
|
@@ -1624,20 +1581,14 @@ var migrateVizToSplunkFillerGauge = function migrateVizToSplunkFillerGauge(vizDe
|
|
|
1624
1581
|
valueDisplay: valueDisplay
|
|
1625
1582
|
}); // remove invalid options using the optionsSchema for splunk.fillergauge as reference
|
|
1626
1583
|
|
|
1627
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
1584
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.fillerGaugeOptionsSchema);
|
|
1628
1585
|
return migratedVisualization;
|
|
1629
1586
|
};
|
|
1630
1587
|
|
|
1631
1588
|
exports.migrateVizToSplunkFillerGauge = migrateVizToSplunkFillerGauge;
|
|
1632
1589
|
|
|
1633
1590
|
/***/ }),
|
|
1634
|
-
/*
|
|
1635
|
-
/***/ (function(module, exports) {
|
|
1636
|
-
|
|
1637
|
-
module.exports = require("@splunk/visualizations/FillerGauge.config");
|
|
1638
|
-
|
|
1639
|
-
/***/ }),
|
|
1640
|
-
/* 30 */
|
|
1591
|
+
/* 23 */
|
|
1641
1592
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1642
1593
|
|
|
1643
1594
|
"use strict";
|
|
@@ -1648,13 +1599,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1648
1599
|
});
|
|
1649
1600
|
exports.migrateVizToSplunkLine = void 0;
|
|
1650
1601
|
|
|
1651
|
-
var
|
|
1652
|
-
|
|
1653
|
-
var splunk_charting_1 = __webpack_require__(2);
|
|
1602
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1654
1603
|
|
|
1655
|
-
var
|
|
1604
|
+
var splunk_charting_1 = __webpack_require__(3); // old default configurations should be retained in migrated configuration
|
|
1656
1605
|
// except for markerDisplay which migrates to the new default 'off'
|
|
1657
1606
|
|
|
1607
|
+
|
|
1658
1608
|
var defaultChanges = {
|
|
1659
1609
|
yAxisAbbreviation: 'off',
|
|
1660
1610
|
y2AxisAbbreviation: 'off',
|
|
@@ -1666,7 +1616,7 @@ var defaultChanges = {
|
|
|
1666
1616
|
var migrateVizToSplunkLine = function migrateVizToSplunkLine(vizDefinition) {
|
|
1667
1617
|
return (0, splunk_charting_1.migrateBaseChartingVizDefinition)({
|
|
1668
1618
|
defaultChanges: defaultChanges,
|
|
1669
|
-
validOptions:
|
|
1619
|
+
validOptions: visualization_schemas_1.lineOptionsSchema,
|
|
1670
1620
|
vizDefinition: vizDefinition,
|
|
1671
1621
|
vizType: 'splunk.line'
|
|
1672
1622
|
});
|
|
@@ -1675,13 +1625,7 @@ var migrateVizToSplunkLine = function migrateVizToSplunkLine(vizDefinition) {
|
|
|
1675
1625
|
exports.migrateVizToSplunkLine = migrateVizToSplunkLine;
|
|
1676
1626
|
|
|
1677
1627
|
/***/ }),
|
|
1678
|
-
/*
|
|
1679
|
-
/***/ (function(module, exports) {
|
|
1680
|
-
|
|
1681
|
-
module.exports = require("@splunk/visualizations/Line.config");
|
|
1682
|
-
|
|
1683
|
-
/***/ }),
|
|
1684
|
-
/* 32 */
|
|
1628
|
+
/* 24 */
|
|
1685
1629
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1686
1630
|
|
|
1687
1631
|
"use strict";
|
|
@@ -1705,11 +1649,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1705
1649
|
});
|
|
1706
1650
|
exports.migrateVizToSplunkImage = void 0;
|
|
1707
1651
|
|
|
1708
|
-
var
|
|
1652
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1709
1653
|
|
|
1710
|
-
var migrationUtils_1 = __webpack_require__(
|
|
1711
|
-
|
|
1712
|
-
var validOptions = Object.assign({}, Image_config_1.default.optionsSchema);
|
|
1654
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
1713
1655
|
|
|
1714
1656
|
var migrateVizToSplunkImage = function migrateVizToSplunkImage(vizDefinition) {
|
|
1715
1657
|
var _vizDefinition$option = vizDefinition.options,
|
|
@@ -1723,20 +1665,14 @@ var migrateVizToSplunkImage = function migrateVizToSplunkImage(vizDefinition) {
|
|
|
1723
1665
|
context: {}
|
|
1724
1666
|
}); // remove invalid options using the optionsSchema for splunk.image as reference
|
|
1725
1667
|
|
|
1726
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
1668
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.imageOptionsSchema);
|
|
1727
1669
|
return migratedVisualization;
|
|
1728
1670
|
};
|
|
1729
1671
|
|
|
1730
1672
|
exports.migrateVizToSplunkImage = migrateVizToSplunkImage;
|
|
1731
1673
|
|
|
1732
1674
|
/***/ }),
|
|
1733
|
-
/*
|
|
1734
|
-
/***/ (function(module, exports) {
|
|
1735
|
-
|
|
1736
|
-
module.exports = require("@splunk/visualizations/Image.config");
|
|
1737
|
-
|
|
1738
|
-
/***/ }),
|
|
1739
|
-
/* 34 */
|
|
1675
|
+
/* 25 */
|
|
1740
1676
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1741
1677
|
|
|
1742
1678
|
"use strict";
|
|
@@ -1760,11 +1696,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1760
1696
|
});
|
|
1761
1697
|
exports.migrateVizToSplunkMarkdown = void 0;
|
|
1762
1698
|
|
|
1763
|
-
var
|
|
1699
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1764
1700
|
|
|
1765
|
-
var migrationUtils_1 = __webpack_require__(
|
|
1766
|
-
|
|
1767
|
-
var validOptions = Object.assign({}, Markdown_config_1.default.optionsSchema);
|
|
1701
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
1768
1702
|
|
|
1769
1703
|
var migrateVizToSplunkMarkdown = function migrateVizToSplunkMarkdown(vizDefinition) {
|
|
1770
1704
|
var _vizDefinition$option = vizDefinition.options,
|
|
@@ -1778,14 +1712,14 @@ var migrateVizToSplunkMarkdown = function migrateVizToSplunkMarkdown(vizDefiniti
|
|
|
1778
1712
|
context: {}
|
|
1779
1713
|
}); // remove invalid options using the optionsSchema for splunk.markdown as reference
|
|
1780
1714
|
|
|
1781
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
1715
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.markdownOptionsSchema);
|
|
1782
1716
|
return migratedVisualization;
|
|
1783
1717
|
};
|
|
1784
1718
|
|
|
1785
1719
|
exports.migrateVizToSplunkMarkdown = migrateVizToSplunkMarkdown;
|
|
1786
1720
|
|
|
1787
1721
|
/***/ }),
|
|
1788
|
-
/*
|
|
1722
|
+
/* 26 */
|
|
1789
1723
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1790
1724
|
|
|
1791
1725
|
"use strict";
|
|
@@ -1809,15 +1743,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1809
1743
|
});
|
|
1810
1744
|
exports.migrateVizToSplunkMarkerGauge = void 0;
|
|
1811
1745
|
|
|
1812
|
-
var
|
|
1746
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1813
1747
|
|
|
1814
|
-
var encoding_1 = __webpack_require__(
|
|
1748
|
+
var encoding_1 = __webpack_require__(2);
|
|
1815
1749
|
|
|
1816
|
-
var migrationUtils_1 = __webpack_require__(
|
|
1750
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
1817
1751
|
|
|
1818
|
-
var gauges_1 = __webpack_require__(
|
|
1752
|
+
var gauges_1 = __webpack_require__(8); // old default configurations should be retained in migrated configuration
|
|
1819
1753
|
|
|
1820
|
-
var validOptions = Object.assign({}, MarkerGauge_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
1821
1754
|
|
|
1822
1755
|
var defaultChanges = {
|
|
1823
1756
|
gaugeRanges: [{
|
|
@@ -1881,20 +1814,14 @@ var migrateVizToSplunkMarkerGauge = function migrateVizToSplunkMarkerGauge(vizDe
|
|
|
1881
1814
|
valueDisplay: valueDisplay
|
|
1882
1815
|
}); // remove invalid options using the optionsSchema for splunk.markergauge as reference
|
|
1883
1816
|
|
|
1884
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
1817
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.markerGaugeOptionsSchema);
|
|
1885
1818
|
return migratedVisualization;
|
|
1886
1819
|
};
|
|
1887
1820
|
|
|
1888
1821
|
exports.migrateVizToSplunkMarkerGauge = migrateVizToSplunkMarkerGauge;
|
|
1889
1822
|
|
|
1890
1823
|
/***/ }),
|
|
1891
|
-
/*
|
|
1892
|
-
/***/ (function(module, exports) {
|
|
1893
|
-
|
|
1894
|
-
module.exports = require("@splunk/visualizations/MarkerGauge.config");
|
|
1895
|
-
|
|
1896
|
-
/***/ }),
|
|
1897
|
-
/* 37 */
|
|
1824
|
+
/* 27 */
|
|
1898
1825
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1899
1826
|
|
|
1900
1827
|
"use strict";
|
|
@@ -1918,13 +1845,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1918
1845
|
});
|
|
1919
1846
|
exports.migrateVizToSplunkPie = void 0;
|
|
1920
1847
|
|
|
1921
|
-
var
|
|
1922
|
-
|
|
1923
|
-
var encoding_1 = __webpack_require__(1);
|
|
1848
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
1924
1849
|
|
|
1925
|
-
var
|
|
1850
|
+
var encoding_1 = __webpack_require__(2);
|
|
1926
1851
|
|
|
1927
|
-
var
|
|
1852
|
+
var splunk_charting_1 = __webpack_require__(3);
|
|
1928
1853
|
|
|
1929
1854
|
var migratePieChartLabelAndPercent = function migratePieChartLabelAndPercent(options) {
|
|
1930
1855
|
// if neither chart.showLabels or chart.showPercent is specified in viz.pie,
|
|
@@ -2010,7 +1935,7 @@ var migrateVizToSplunkPie = function migrateVizToSplunkPie(vizDefinition) {
|
|
|
2010
1935
|
var migratedOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, migratePieChartLabelAndPercent(options)), (0, splunk_charting_1.migrateChartingOptions)(options)), migrateFieldColors(options)), migrateDonutChart(options)), dataOptions); // remove invalid options
|
|
2011
1936
|
|
|
2012
1937
|
Object.keys(migratedOptions).forEach(function (key) {
|
|
2013
|
-
if (!
|
|
1938
|
+
if (!visualization_schemas_1.pieOptionsSchema[key]) {
|
|
2014
1939
|
delete migratedOptions[key];
|
|
2015
1940
|
}
|
|
2016
1941
|
});
|
|
@@ -2022,13 +1947,7 @@ var migrateVizToSplunkPie = function migrateVizToSplunkPie(vizDefinition) {
|
|
|
2022
1947
|
exports.migrateVizToSplunkPie = migrateVizToSplunkPie;
|
|
2023
1948
|
|
|
2024
1949
|
/***/ }),
|
|
2025
|
-
/*
|
|
2026
|
-
/***/ (function(module, exports) {
|
|
2027
|
-
|
|
2028
|
-
module.exports = require("@splunk/visualizations/Pie.config");
|
|
2029
|
-
|
|
2030
|
-
/***/ }),
|
|
2031
|
-
/* 39 */
|
|
1950
|
+
/* 28 */
|
|
2032
1951
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2033
1952
|
|
|
2034
1953
|
"use strict";
|
|
@@ -2039,11 +1958,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2039
1958
|
});
|
|
2040
1959
|
exports.migrateVizToSplunkScatter = void 0;
|
|
2041
1960
|
|
|
2042
|
-
var
|
|
1961
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2043
1962
|
|
|
2044
|
-
var splunk_charting_1 = __webpack_require__(
|
|
1963
|
+
var splunk_charting_1 = __webpack_require__(3); // old default configurations should be retained in migrated configuration
|
|
2045
1964
|
|
|
2046
|
-
var validOptions = Object.assign({}, Scatter_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
2047
1965
|
|
|
2048
1966
|
var defaultChanges = {
|
|
2049
1967
|
yAxisAbbreviation: 'off',
|
|
@@ -2053,7 +1971,7 @@ var defaultChanges = {
|
|
|
2053
1971
|
var migrateVizToSplunkScatter = function migrateVizToSplunkScatter(vizDefinition) {
|
|
2054
1972
|
return (0, splunk_charting_1.migrateBaseChartingVizDefinition)({
|
|
2055
1973
|
defaultChanges: defaultChanges,
|
|
2056
|
-
validOptions:
|
|
1974
|
+
validOptions: visualization_schemas_1.scatterOptionsSchema,
|
|
2057
1975
|
vizDefinition: vizDefinition,
|
|
2058
1976
|
vizType: 'splunk.scatter'
|
|
2059
1977
|
});
|
|
@@ -2062,13 +1980,7 @@ var migrateVizToSplunkScatter = function migrateVizToSplunkScatter(vizDefinition
|
|
|
2062
1980
|
exports.migrateVizToSplunkScatter = migrateVizToSplunkScatter;
|
|
2063
1981
|
|
|
2064
1982
|
/***/ }),
|
|
2065
|
-
/*
|
|
2066
|
-
/***/ (function(module, exports) {
|
|
2067
|
-
|
|
2068
|
-
module.exports = require("@splunk/visualizations/Scatter.config");
|
|
2069
|
-
|
|
2070
|
-
/***/ }),
|
|
2071
|
-
/* 41 */
|
|
1983
|
+
/* 29 */
|
|
2072
1984
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2073
1985
|
|
|
2074
1986
|
"use strict";
|
|
@@ -2092,11 +2004,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2092
2004
|
});
|
|
2093
2005
|
exports.migrateVizToSplunkRectangle = void 0;
|
|
2094
2006
|
|
|
2095
|
-
var
|
|
2007
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2096
2008
|
|
|
2097
|
-
var encoding_1 = __webpack_require__(
|
|
2009
|
+
var encoding_1 = __webpack_require__(2);
|
|
2098
2010
|
|
|
2099
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2011
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
2100
2012
|
|
|
2101
2013
|
var optionsToRename = {
|
|
2102
2014
|
fill: 'fillColor',
|
|
@@ -2104,7 +2016,6 @@ var optionsToRename = {
|
|
|
2104
2016
|
strokeDasharray: 'strokeDashStyle',
|
|
2105
2017
|
strokeLinejoin: 'strokeJoinStyle'
|
|
2106
2018
|
};
|
|
2107
|
-
var validOptions = Object.assign({}, Rectangle_config_1.default.optionsSchema);
|
|
2108
2019
|
|
|
2109
2020
|
var migrateVizToSplunkRectangle = function migrateVizToSplunkRectangle(vizDefinition) {
|
|
2110
2021
|
var _vizDefinition$encodi = vizDefinition.encoding,
|
|
@@ -2129,7 +2040,7 @@ var migrateVizToSplunkRectangle = function migrateVizToSplunkRectangle(vizDefini
|
|
|
2129
2040
|
|
|
2130
2041
|
migratedDefinition.options = (0, migrationUtils_1.renameVizOptions)(migratedDefinition.options, optionsToRename); // remove invalid options, validOptions is taken from the config.optionsSchema
|
|
2131
2042
|
|
|
2132
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options,
|
|
2043
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options, visualization_schemas_1.rectangleOptionsSchema);
|
|
2133
2044
|
migratedDefinition.context = dataContext;
|
|
2134
2045
|
return migratedDefinition;
|
|
2135
2046
|
};
|
|
@@ -2137,13 +2048,7 @@ var migrateVizToSplunkRectangle = function migrateVizToSplunkRectangle(vizDefini
|
|
|
2137
2048
|
exports.migrateVizToSplunkRectangle = migrateVizToSplunkRectangle;
|
|
2138
2049
|
|
|
2139
2050
|
/***/ }),
|
|
2140
|
-
/*
|
|
2141
|
-
/***/ (function(module, exports) {
|
|
2142
|
-
|
|
2143
|
-
module.exports = require("@splunk/visualizations/Rectangle.config");
|
|
2144
|
-
|
|
2145
|
-
/***/ }),
|
|
2146
|
-
/* 43 */
|
|
2051
|
+
/* 30 */
|
|
2147
2052
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2148
2053
|
|
|
2149
2054
|
"use strict";
|
|
@@ -2167,15 +2072,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2167
2072
|
});
|
|
2168
2073
|
exports.migrateVizToSplunkSingleValue = void 0;
|
|
2169
2074
|
|
|
2170
|
-
var
|
|
2075
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2171
2076
|
|
|
2172
|
-
var encoding_1 = __webpack_require__(
|
|
2077
|
+
var encoding_1 = __webpack_require__(2);
|
|
2173
2078
|
|
|
2174
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2079
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
2175
2080
|
|
|
2176
|
-
var singlevalue_1 = __webpack_require__(
|
|
2081
|
+
var singlevalue_1 = __webpack_require__(4); // old default configurations should be retained in migrated configuration
|
|
2177
2082
|
|
|
2178
|
-
var validOptions = Object.assign({}, SingleValue_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
2179
2083
|
|
|
2180
2084
|
var defaultsToRetain = {
|
|
2181
2085
|
showSparklineAreaGraph: false,
|
|
@@ -2257,20 +2161,14 @@ var migrateVizToSplunkSingleValue = function migrateVizToSplunkSingleValue(vizDe
|
|
|
2257
2161
|
});
|
|
2258
2162
|
migratedVisualization.context = dataContext; // remove invalid (and deprecated) options using the optionsSchema for splunk.singlevalue as reference
|
|
2259
2163
|
|
|
2260
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
2164
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.singleValueOptionsSchema);
|
|
2261
2165
|
return migratedVisualization;
|
|
2262
2166
|
};
|
|
2263
2167
|
|
|
2264
2168
|
exports.migrateVizToSplunkSingleValue = migrateVizToSplunkSingleValue;
|
|
2265
2169
|
|
|
2266
2170
|
/***/ }),
|
|
2267
|
-
/*
|
|
2268
|
-
/***/ (function(module, exports) {
|
|
2269
|
-
|
|
2270
|
-
module.exports = require("@splunk/visualizations/SingleValue.config");
|
|
2271
|
-
|
|
2272
|
-
/***/ }),
|
|
2273
|
-
/* 45 */
|
|
2171
|
+
/* 31 */
|
|
2274
2172
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2275
2173
|
|
|
2276
2174
|
"use strict";
|
|
@@ -2294,15 +2192,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2294
2192
|
});
|
|
2295
2193
|
exports.migrateVizToSplunkSingleValueIcon = void 0;
|
|
2296
2194
|
|
|
2297
|
-
var
|
|
2195
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2298
2196
|
|
|
2299
|
-
var encoding_1 = __webpack_require__(
|
|
2197
|
+
var encoding_1 = __webpack_require__(2);
|
|
2300
2198
|
|
|
2301
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2199
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
2302
2200
|
|
|
2303
|
-
var singlevalue_1 = __webpack_require__(
|
|
2201
|
+
var singlevalue_1 = __webpack_require__(4);
|
|
2304
2202
|
|
|
2305
|
-
var validOptions = Object.assign({}, SingleValueIcon_config_1.default.optionsSchema);
|
|
2306
2203
|
var defaultsToRetain = {
|
|
2307
2204
|
majorValue: '> primary | seriesByIndex(0) | lastPoint()',
|
|
2308
2205
|
trendValue: '> primary | seriesByIndex(0) | delta(-2)'
|
|
@@ -2348,20 +2245,14 @@ var migrateVizToSplunkSingleValueIcon = function migrateVizToSplunkSingleValueIc
|
|
|
2348
2245
|
});
|
|
2349
2246
|
migratedVisualization.context = dataContext; // remove invalid (and deprecated) options using the optionsSchema for splunk.singlevalueicon as reference
|
|
2350
2247
|
|
|
2351
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
2248
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.singleValueIconOptionsSchema);
|
|
2352
2249
|
return migratedVisualization;
|
|
2353
2250
|
};
|
|
2354
2251
|
|
|
2355
2252
|
exports.migrateVizToSplunkSingleValueIcon = migrateVizToSplunkSingleValueIcon;
|
|
2356
2253
|
|
|
2357
2254
|
/***/ }),
|
|
2358
|
-
/*
|
|
2359
|
-
/***/ (function(module, exports) {
|
|
2360
|
-
|
|
2361
|
-
module.exports = require("@splunk/visualizations/SingleValueIcon.config");
|
|
2362
|
-
|
|
2363
|
-
/***/ }),
|
|
2364
|
-
/* 47 */
|
|
2255
|
+
/* 32 */
|
|
2365
2256
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2366
2257
|
|
|
2367
2258
|
"use strict";
|
|
@@ -2385,15 +2276,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2385
2276
|
});
|
|
2386
2277
|
exports.migrateVizToSplunkSingleValueRadial = void 0;
|
|
2387
2278
|
|
|
2388
|
-
var
|
|
2279
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2389
2280
|
|
|
2390
|
-
var encoding_1 = __webpack_require__(
|
|
2281
|
+
var encoding_1 = __webpack_require__(2);
|
|
2391
2282
|
|
|
2392
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2283
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
2393
2284
|
|
|
2394
|
-
var singlevalue_1 = __webpack_require__(
|
|
2285
|
+
var singlevalue_1 = __webpack_require__(4); // old default configurations should be retained in migrated configuration
|
|
2395
2286
|
|
|
2396
|
-
var validOptions = Object.assign({}, SingleValueRadial_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
2397
2287
|
|
|
2398
2288
|
var defaultsToRetain = {
|
|
2399
2289
|
majorValue: '> primary | seriesByIndex(0) | lastPoint()',
|
|
@@ -2440,26 +2330,20 @@ var migrateVizToSplunkSingleValueRadial = function migrateVizToSplunkSingleValue
|
|
|
2440
2330
|
});
|
|
2441
2331
|
migratedVisualization.context = dataContext; // remove invalid (and deprecated) options using the optionsSchema for splunk.singlevalueradial as reference
|
|
2442
2332
|
|
|
2443
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
2333
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.singleValueRadialOptionsSchema);
|
|
2444
2334
|
return migratedVisualization;
|
|
2445
2335
|
};
|
|
2446
2336
|
|
|
2447
2337
|
exports.migrateVizToSplunkSingleValueRadial = migrateVizToSplunkSingleValueRadial;
|
|
2448
2338
|
|
|
2449
2339
|
/***/ }),
|
|
2450
|
-
/*
|
|
2451
|
-
/***/ (function(module, exports) {
|
|
2452
|
-
|
|
2453
|
-
module.exports = require("@splunk/visualizations/SingleValueRadial.config");
|
|
2454
|
-
|
|
2455
|
-
/***/ }),
|
|
2456
|
-
/* 49 */
|
|
2340
|
+
/* 33 */
|
|
2457
2341
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2458
2342
|
|
|
2459
2343
|
"use strict";
|
|
2460
2344
|
|
|
2461
2345
|
|
|
2462
|
-
var _slicedToArray = __webpack_require__(
|
|
2346
|
+
var _slicedToArray = __webpack_require__(7);
|
|
2463
2347
|
|
|
2464
2348
|
var __rest = this && this.__rest || function (s, e) {
|
|
2465
2349
|
var t = {};
|
|
@@ -2481,15 +2365,14 @@ exports.migrateVizToSplunkTable = void 0;
|
|
|
2481
2365
|
|
|
2482
2366
|
var lodash_1 = __webpack_require__(9);
|
|
2483
2367
|
|
|
2484
|
-
var
|
|
2368
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2485
2369
|
|
|
2486
|
-
var
|
|
2370
|
+
var deepMergeWithArrayPrimitiveOverrides_1 = __webpack_require__(34);
|
|
2487
2371
|
|
|
2488
|
-
var encoding_1 = __webpack_require__(
|
|
2372
|
+
var encoding_1 = __webpack_require__(2);
|
|
2489
2373
|
|
|
2490
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2374
|
+
var migrationUtils_1 = __webpack_require__(1); // old default configurations should be retained in migrated configuration
|
|
2491
2375
|
|
|
2492
|
-
var validOptions = Object.assign({}, Table_config_1.default.optionsSchema); // old default configurations should be retained in migrated configuration
|
|
2493
2376
|
|
|
2494
2377
|
var defaultChanges = {
|
|
2495
2378
|
count: 20
|
|
@@ -2721,10 +2604,10 @@ var migrateVizToSplunkTable = function migrateVizToSplunkTable(vizDefinition) {
|
|
|
2721
2604
|
}), {
|
|
2722
2605
|
tableFormat: tableFormat
|
|
2723
2606
|
});
|
|
2724
|
-
var migratedOptions = (0,
|
|
2607
|
+
var migratedOptions = (0, deepMergeWithArrayPrimitiveOverrides_1.deepMergeWithArrayPrimitiveOverrides)({}, defaultChanges, formattingOptions, migratedDataOptions, renamedOptions); // remove invalid options
|
|
2725
2608
|
|
|
2726
2609
|
Object.keys(migratedOptions).forEach(function (key) {
|
|
2727
|
-
if (!
|
|
2610
|
+
if (!visualization_schemas_1.tableOptionsSchema[key]) {
|
|
2728
2611
|
delete migratedOptions[key];
|
|
2729
2612
|
}
|
|
2730
2613
|
});
|
|
@@ -2736,19 +2619,13 @@ var migrateVizToSplunkTable = function migrateVizToSplunkTable(vizDefinition) {
|
|
|
2736
2619
|
exports.migrateVizToSplunkTable = migrateVizToSplunkTable;
|
|
2737
2620
|
|
|
2738
2621
|
/***/ }),
|
|
2739
|
-
/*
|
|
2740
|
-
/***/ (function(module, exports) {
|
|
2741
|
-
|
|
2742
|
-
module.exports = require("@splunk/visualizations/Table.config");
|
|
2743
|
-
|
|
2744
|
-
/***/ }),
|
|
2745
|
-
/* 51 */
|
|
2622
|
+
/* 34 */
|
|
2746
2623
|
/***/ (function(module, exports) {
|
|
2747
2624
|
|
|
2748
|
-
module.exports = require("@splunk/
|
|
2625
|
+
module.exports = require("@splunk/visualization-encoding/utils/deepMergeWithArrayPrimitiveOverrides");
|
|
2749
2626
|
|
|
2750
2627
|
/***/ }),
|
|
2751
|
-
/*
|
|
2628
|
+
/* 35 */
|
|
2752
2629
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2753
2630
|
|
|
2754
2631
|
"use strict";
|
|
@@ -2774,11 +2651,10 @@ exports.migrateVizTextToSplunkMarkdown = exports.convertFontSize = void 0;
|
|
|
2774
2651
|
|
|
2775
2652
|
var _ = __webpack_require__(9);
|
|
2776
2653
|
|
|
2777
|
-
var
|
|
2654
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2778
2655
|
|
|
2779
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2656
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
2780
2657
|
|
|
2781
|
-
var validOptions = Object.assign({}, Markdown_config_1.default.optionsSchema);
|
|
2782
2658
|
var optionsToRename = {
|
|
2783
2659
|
textColor: 'fontColor',
|
|
2784
2660
|
content: 'markdown'
|
|
@@ -2875,20 +2751,20 @@ var migrateVizTextToSplunkMarkdown = function migrateVizTextToSplunkMarkdown(viz
|
|
|
2875
2751
|
migratedVizOptions.fontFamily = fontFamily;
|
|
2876
2752
|
migratedVizOptions.rotation = rotation; // remove invalid options using the optionsSchema for splunk.markdown as reference
|
|
2877
2753
|
|
|
2878
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVizOptions,
|
|
2754
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVizOptions, visualization_schemas_1.markdownOptionsSchema);
|
|
2879
2755
|
return migratedVisualization;
|
|
2880
2756
|
};
|
|
2881
2757
|
|
|
2882
2758
|
exports.migrateVizTextToSplunkMarkdown = migrateVizTextToSplunkMarkdown;
|
|
2883
2759
|
|
|
2884
2760
|
/***/ }),
|
|
2885
|
-
/*
|
|
2761
|
+
/* 36 */
|
|
2886
2762
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2887
2763
|
|
|
2888
2764
|
"use strict";
|
|
2889
2765
|
|
|
2890
2766
|
|
|
2891
|
-
var _toConsumableArray = __webpack_require__(
|
|
2767
|
+
var _toConsumableArray = __webpack_require__(6);
|
|
2892
2768
|
|
|
2893
2769
|
var __rest = this && this.__rest || function (s, e) {
|
|
2894
2770
|
var t = {};
|
|
@@ -2908,14 +2784,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2908
2784
|
});
|
|
2909
2785
|
exports.migrateVizToSplunkPunchcard = void 0;
|
|
2910
2786
|
|
|
2911
|
-
var
|
|
2787
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
2912
2788
|
|
|
2913
|
-
var encoding_1 = __webpack_require__(
|
|
2789
|
+
var encoding_1 = __webpack_require__(2);
|
|
2914
2790
|
|
|
2915
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2791
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
2916
2792
|
|
|
2917
|
-
var
|
|
2918
|
-
|
|
2793
|
+
var defaultContext = {
|
|
2794
|
+
bubbleColorConfig: {
|
|
2795
|
+
colors: ['rgba(123,86,219,0.4)', 'rgba(123,86,219,1)']
|
|
2796
|
+
}
|
|
2797
|
+
};
|
|
2919
2798
|
var optionsToRename = {
|
|
2920
2799
|
showBubbleLabels: 'bubbleLabelDisplay',
|
|
2921
2800
|
bubbleScale: 'bubbleSizeMethod',
|
|
@@ -3031,20 +2910,14 @@ var migrateVizToSplunkPunchcard = function migrateVizToSplunkPunchcard(vizDefini
|
|
|
3031
2910
|
migratedVisualization.context = dataContext;
|
|
3032
2911
|
convertColorModeOption(migratedVisualization); // remove invalid options using the optionsSchema for splunk.punchcard as reference
|
|
3033
2912
|
|
|
3034
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options,
|
|
2913
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedVisualization.options, visualization_schemas_1.punchcardOptionsSchema);
|
|
3035
2914
|
return migratedVisualization;
|
|
3036
2915
|
};
|
|
3037
2916
|
|
|
3038
2917
|
exports.migrateVizToSplunkPunchcard = migrateVizToSplunkPunchcard;
|
|
3039
2918
|
|
|
3040
2919
|
/***/ }),
|
|
3041
|
-
/*
|
|
3042
|
-
/***/ (function(module, exports) {
|
|
3043
|
-
|
|
3044
|
-
module.exports = require("@splunk/visualizations/Punchcard.config");
|
|
3045
|
-
|
|
3046
|
-
/***/ }),
|
|
3047
|
-
/* 55 */
|
|
2920
|
+
/* 37 */
|
|
3048
2921
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3049
2922
|
|
|
3050
2923
|
"use strict";
|
|
@@ -3068,13 +2941,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3068
2941
|
});
|
|
3069
2942
|
exports.migrateVizToSplunkMapChoropleth = exports.defaultEmptyAreaColor = exports.defaultStrokeColor = void 0;
|
|
3070
2943
|
|
|
3071
|
-
var
|
|
2944
|
+
var visualization_schemas_1 = __webpack_require__(0);
|
|
3072
2945
|
|
|
3073
|
-
var encoding_1 = __webpack_require__(
|
|
2946
|
+
var encoding_1 = __webpack_require__(2);
|
|
3074
2947
|
|
|
3075
|
-
var migrationUtils_1 = __webpack_require__(
|
|
2948
|
+
var migrationUtils_1 = __webpack_require__(1);
|
|
3076
2949
|
|
|
3077
|
-
var validOptions = Object.assign({}, Map_config_1.default.optionsSchema);
|
|
3078
2950
|
var optionRenames = {
|
|
3079
2951
|
fillColor: 'choroplethEmptyAreaColor',
|
|
3080
2952
|
strokeColor: 'choroplethStrokeColor',
|
|
@@ -3180,18 +3052,12 @@ var migrateVizToSplunkMapChoropleth = function migrateVizToSplunkMapChoropleth(v
|
|
|
3180
3052
|
});
|
|
3181
3053
|
}
|
|
3182
3054
|
|
|
3183
|
-
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options,
|
|
3055
|
+
(0, migrationUtils_1.removeInvalidOptions)(migratedDefinition.options, visualization_schemas_1.mapOptionsSchema);
|
|
3184
3056
|
return migratedDefinition;
|
|
3185
3057
|
};
|
|
3186
3058
|
|
|
3187
3059
|
exports.migrateVizToSplunkMapChoropleth = migrateVizToSplunkMapChoropleth;
|
|
3188
3060
|
|
|
3189
|
-
/***/ }),
|
|
3190
|
-
/* 56 */
|
|
3191
|
-
/***/ (function(module, exports) {
|
|
3192
|
-
|
|
3193
|
-
module.exports = require("@splunk/visualizations/Map.config");
|
|
3194
|
-
|
|
3195
3061
|
/***/ })
|
|
3196
3062
|
/******/ ]);
|
|
3197
3063
|
//# sourceMappingURL=index.js.map
|