@splunk/visualizations 26.2.1 → 26.3.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.
Files changed (149) hide show
  1. package/Area.config.js +91 -594
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +184 -689
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +92 -561
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +184 -655
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +83 -482
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +177 -578
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +76 -201
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +170 -300
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +92 -599
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +184 -693
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +82 -200
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +137 -262
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +61 -282
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +222 -428
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +90 -219
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +163 -299
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +61 -157
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +130 -242
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +91 -606
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +184 -701
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +74 -256
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +545 -729
  44. package/LinkGraph.js.map +1 -1
  45. package/Map.config.js +128 -1123
  46. package/Map.config.js.map +1 -1
  47. package/Map.js +309 -680
  48. package/Map.js.map +1 -1
  49. package/Markdown.config.js +61 -188
  50. package/Markdown.config.js.map +1 -1
  51. package/Markdown.js +190 -323
  52. package/Markdown.js.map +1 -1
  53. package/MarkerGauge.config.js +137 -297
  54. package/MarkerGauge.config.js.map +1 -1
  55. package/MarkerGauge.js +1038 -1203
  56. package/MarkerGauge.js.map +1 -1
  57. package/ParallelCoordinates.config.js +71 -191
  58. package/ParallelCoordinates.config.js.map +1 -1
  59. package/ParallelCoordinates.js +218 -343
  60. package/ParallelCoordinates.js.map +1 -1
  61. package/Pie.config.js +72 -240
  62. package/Pie.config.js.map +1 -1
  63. package/Pie.js +214 -381
  64. package/Pie.js.map +1 -1
  65. package/Punchcard.config.js +71 -305
  66. package/Punchcard.config.js.map +1 -1
  67. package/Punchcard.js +246 -477
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +211 -347
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +274 -416
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.config.js +71 -213
  74. package/Sankey.config.js.map +1 -1
  75. package/Sankey.js +246 -382
  76. package/Sankey.js.map +1 -1
  77. package/Scatter.config.js +85 -463
  78. package/Scatter.config.js.map +1 -1
  79. package/Scatter.js +825 -1202
  80. package/Scatter.js.map +1 -1
  81. package/SingleValue.config.js +114 -409
  82. package/SingleValue.config.js.map +1 -1
  83. package/SingleValue.js +287 -582
  84. package/SingleValue.js.map +1 -1
  85. package/SingleValueBasic.js +30 -30
  86. package/SingleValueBasic.js.map +1 -1
  87. package/SingleValueIcon.config.js +113 -378
  88. package/SingleValueIcon.config.js.map +1 -1
  89. package/SingleValueIcon.js +268 -533
  90. package/SingleValueIcon.js.map +1 -1
  91. package/SingleValueRadial.config.js +110 -382
  92. package/SingleValueRadial.config.js.map +1 -1
  93. package/SingleValueRadial.js +272 -543
  94. package/SingleValueRadial.js.map +1 -1
  95. package/SparkLine.js +24 -24
  96. package/SparkLine.js.map +1 -1
  97. package/Table.config.js +74 -496
  98. package/Table.config.js.map +1 -1
  99. package/Table.js +302 -720
  100. package/Table.js.map +1 -1
  101. package/common/Charting.js +22 -34
  102. package/common/Charting.js.map +1 -1
  103. package/common/DocExampleWithVizSandbox.js +21 -21
  104. package/common/DocExampleWithVizSandbox.js.map +1 -1
  105. package/common/EventsDoc.js +18 -18
  106. package/common/EventsDoc.js.map +1 -1
  107. package/common/GaugeMajorTicks.js +4 -4
  108. package/common/GaugeMajorTicks.js.map +1 -1
  109. package/common/GaugeValueMarker.js +2 -2
  110. package/common/GaugeValueMarker.js.map +1 -1
  111. package/common/OptionsDoc.js +4 -4
  112. package/common/OptionsDoc.js.map +1 -1
  113. package/common/OverviewDoc.js +39 -40
  114. package/common/OverviewDoc.js.map +1 -1
  115. package/common/SplunkVisualization.js +2 -2
  116. package/common/SplunkVisualization.js.map +1 -1
  117. package/common/SplunkVisualizationApi.js +2 -2
  118. package/common/SplunkVisualizationApi.js.map +1 -1
  119. package/common/ThemesDoc.js +19 -19
  120. package/common/ThemesDoc.js.map +1 -1
  121. package/common/chartingUtils.js +2 -2
  122. package/common/chartingUtils.js.map +1 -1
  123. package/common/gaugeUtils.js +10 -10
  124. package/common/gaugeUtils.js.map +1 -1
  125. package/common/shapeUtils.js +10 -10
  126. package/common/shapeUtils.js.map +1 -1
  127. package/common/utils/configUtils.js +25 -155
  128. package/common/utils/configUtils.js.map +1 -1
  129. package/common/utils/dataUtils.js +75 -87
  130. package/common/utils/dataUtils.js.map +1 -1
  131. package/common/utils/featureFlagUtils.js +4 -4
  132. package/common/utils/featureFlagUtils.js.map +1 -1
  133. package/common/utils/hocUtils.js +2 -2
  134. package/common/utils/hocUtils.js.map +1 -1
  135. package/common/utils/mapUtils.js +51 -54
  136. package/common/utils/mapUtils.js.map +1 -1
  137. package/common/utils/singleValueUtils.js +7 -7
  138. package/common/utils/singleValueUtils.js.map +1 -1
  139. package/common/utils/testHelper.js +7 -36
  140. package/common/utils/testHelper.js.map +1 -1
  141. package/common/utils/trellisUtils.js +7 -6
  142. package/common/utils/trellisUtils.js.map +1 -1
  143. package/common/utils/urlUtils.js +2 -2
  144. package/common/utils/urlUtils.js.map +1 -1
  145. package/common/withDashboardViz.js +65 -77
  146. package/common/withDashboardViz.js.map +1 -1
  147. package/package.json +46 -49
  148. package/common/utils/layoutUtils.js +0 -115
  149. package/common/utils/layoutUtils.js.map +0 -1
package/Table.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 = 501);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 497);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,58 +109,58 @@ module.exports = require("prop-types");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@babel/runtime/helpers/classCallCheck");
112
+ module.exports = require("@splunk/visualization-schemas");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 105:
116
+ /***/ 103:
117
117
  /***/ (function(module, exports) {
118
118
 
119
119
  module.exports = require("@babel/runtime/helpers/typeof");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 11:
123
+ /***/ 109:
124
124
  /***/ (function(module, exports) {
125
125
 
126
- module.exports = require("@splunk/visualizations-shared/numberUtils");
126
+ module.exports = require("@babel/runtime/helpers/assertThisInitialized");
127
127
 
128
128
  /***/ }),
129
129
 
130
- /***/ 111:
130
+ /***/ 11:
131
131
  /***/ (function(module, exports) {
132
132
 
133
- module.exports = require("@babel/runtime/helpers/assertThisInitialized");
133
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
134
134
 
135
135
  /***/ }),
136
136
 
137
- /***/ 117:
137
+ /***/ 114:
138
138
  /***/ (function(module, exports) {
139
139
 
140
140
  module.exports = require("@splunk/react-ui/Paginator");
141
141
 
142
142
  /***/ }),
143
143
 
144
- /***/ 118:
144
+ /***/ 115:
145
145
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
146
146
 
147
147
  "use strict";
148
148
  __webpack_require__.r(__webpack_exports__);
149
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
149
+ /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69);
150
150
  /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
151
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
151
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
152
152
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
153
153
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25);
154
154
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
155
- /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(111);
155
+ /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(109);
156
156
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);
157
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94);
157
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92);
158
158
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
159
- /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95);
159
+ /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93);
160
160
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
161
- /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85);
161
+ /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83);
162
162
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
163
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9);
163
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13);
164
164
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
165
165
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
166
166
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
@@ -170,7 +170,7 @@ __webpack_require__.r(__webpack_exports__);
170
170
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
171
171
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4);
172
172
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_11__);
173
- /* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(84);
173
+ /* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82);
174
174
  /* harmony import */ var _splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_ui_Popover__WEBPACK_IMPORTED_MODULE_12__);
175
175
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2);
176
176
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_13__);
@@ -793,11 +793,11 @@ module.exports = require("@splunk/visualizations-shared/Message");
793
793
  /***/ 13:
794
794
  /***/ (function(module, exports) {
795
795
 
796
- module.exports = require("@splunk/themes/variables");
796
+ module.exports = require("@babel/runtime/helpers/defineProperty");
797
797
 
798
798
  /***/ }),
799
799
 
800
- /***/ 135:
800
+ /***/ 133:
801
801
  /***/ (function(module, exports) {
802
802
 
803
803
  module.exports = require("@splunk/react-ui/Table");
@@ -805,6 +805,20 @@ module.exports = require("@splunk/react-ui/Table");
805
805
  /***/ }),
806
806
 
807
807
  /***/ 14:
808
+ /***/ (function(module, exports) {
809
+
810
+ module.exports = require("@splunk/themes/variables");
811
+
812
+ /***/ }),
813
+
814
+ /***/ 144:
815
+ /***/ (function(module, exports) {
816
+
817
+ module.exports = require("@splunk/react-ui/Message");
818
+
819
+ /***/ }),
820
+
821
+ /***/ 15:
808
822
  /***/ (function(module, exports, __webpack_require__) {
809
823
 
810
824
  "use strict";
@@ -1101,6 +1115,7 @@ var calculateDownsamplingThreshold = function calculateDownsamplingThreshold(_re
1101
1115
  });
1102
1116
  }
1103
1117
  } catch (e) {
1118
+ // eslint-disable-next-line no-console
1104
1119
  console.error('Error occurred while setting downsample threshold on range select event', e);
1105
1120
  }
1106
1121
 
@@ -1267,6 +1282,7 @@ var downsampleDataSources = function downsampleDataSources(_ref4) {
1267
1282
  return downsampledIndices.add(downsampleIndex);
1268
1283
  });
1269
1284
  } catch (e) {
1285
+ // eslint-disable-next-line no-console
1270
1286
  console.error("Error occurred while downsampling column ".concat(columnIndex), e);
1271
1287
  }
1272
1288
  }); // update data columns with downsampled columns
@@ -1279,53 +1295,27 @@ exports.downsampleDataSources = downsampleDataSources;
1279
1295
 
1280
1296
  /***/ }),
1281
1297
 
1282
- /***/ 146:
1283
- /***/ (function(module, exports) {
1284
-
1285
- module.exports = require("@splunk/react-ui/Message");
1286
-
1287
- /***/ }),
1288
-
1289
- /***/ 15:
1298
+ /***/ 16:
1290
1299
  /***/ (function(module, exports) {
1291
1300
 
1292
1301
  module.exports = require("@splunk/visualizations-shared/colorUtils");
1293
1302
 
1294
1303
  /***/ }),
1295
1304
 
1296
- /***/ 159:
1297
- /***/ (function(module, exports, __webpack_require__) {
1298
-
1299
- "use strict";
1300
-
1301
-
1302
- Object.defineProperty(exports, "__esModule", {
1303
- value: true
1304
- });
1305
- exports.validFontSizes = exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
1306
- exports.validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'];
1307
- exports.validSparklineTypes = ['line', 'area'];
1308
- exports.validHeaderVisibilities = ['none', 'fixed', 'inline'];
1309
- exports.validAlignments = ['left', 'center', 'right'];
1310
- exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
1311
- exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
1312
-
1313
- /***/ }),
1314
-
1315
- /***/ 16:
1305
+ /***/ 17:
1316
1306
  /***/ (function(module, exports) {
1317
1307
 
1318
1308
  module.exports = require("@splunk/visualization-encoding/Options");
1319
1309
 
1320
1310
  /***/ }),
1321
1311
 
1322
- /***/ 17:
1312
+ /***/ 18:
1323
1313
  /***/ (function(module, exports, __webpack_require__) {
1324
1314
 
1325
1315
  "use strict";
1326
1316
 
1327
1317
 
1328
- var _slicedToArray = __webpack_require__(7);
1318
+ var _slicedToArray = __webpack_require__(6);
1329
1319
 
1330
1320
  Object.defineProperty(exports, "__esModule", {
1331
1321
  value: true
@@ -1335,9 +1325,9 @@ var React = __webpack_require__(0);
1335
1325
 
1336
1326
  var styled_components_1 = __webpack_require__(4);
1337
1327
 
1338
- var style_1 = __webpack_require__(18);
1328
+ var style_1 = __webpack_require__(19);
1339
1329
 
1340
- var colorUtils_1 = __webpack_require__(15);
1330
+ var colorUtils_1 = __webpack_require__(16);
1341
1331
 
1342
1332
  var SizeAwareWrapper_1 = __webpack_require__(26);
1343
1333
 
@@ -1410,7 +1400,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
1410
1400
 
1411
1401
  return React.createElement(FixSizeItem, {
1412
1402
  "data-test": "fix-size-item",
1413
- "data-splunk-visualization-version": "26.2.1 - 714383dbb",
1403
+ "data-splunk-visualization-version": "26.3.0 - a1ef240a6",
1414
1404
  width: width,
1415
1405
  height: height,
1416
1406
  backgroundColor: backgroundColor
@@ -1432,36 +1422,13 @@ exports.default = withFixedSizeContainer;
1432
1422
 
1433
1423
  /***/ }),
1434
1424
 
1435
- /***/ 18:
1436
- /***/ (function(module, exports) {
1437
-
1438
- module.exports = require("@splunk/visualizations-shared/style");
1439
-
1440
- /***/ }),
1441
-
1442
- /***/ 19:
1443
- /***/ (function(module, exports, __webpack_require__) {
1444
-
1445
- "use strict";
1446
-
1447
-
1448
- Object.defineProperty(exports, "__esModule", {
1449
- value: true
1450
- });
1451
- exports.validOutputModes = exports.validSegmentationModes = exports.validSortDirs = void 0;
1452
- exports.validSortDirs = ['asc', 'desc', 'none'];
1453
- exports.validSegmentationModes = ['none', 'inner'];
1454
- exports.validOutputModes = ['json_cols', 'json'];
1455
-
1456
- /***/ }),
1457
-
1458
- /***/ 191:
1425
+ /***/ 188:
1459
1426
  /***/ (function(module, exports, __webpack_require__) {
1460
1427
 
1461
1428
  "use strict";
1462
1429
 
1463
1430
 
1464
- var _slicedToArray = __webpack_require__(7);
1431
+ var _slicedToArray = __webpack_require__(6);
1465
1432
 
1466
1433
  var __rest = this && this.__rest || function (s, e) {
1467
1434
  var t = {};
@@ -1483,15 +1450,15 @@ exports.config = exports.PureTable = exports.themes = exports.computeVizProps =
1483
1450
 
1484
1451
  var lodash_1 = __webpack_require__(3);
1485
1452
 
1486
- var colorUtils_1 = __webpack_require__(15);
1453
+ var colorUtils_1 = __webpack_require__(16);
1487
1454
 
1488
- var config_1 = __webpack_require__(502);
1455
+ var config_1 = __webpack_require__(498);
1489
1456
 
1490
1457
  exports.config = config_1.default;
1491
1458
 
1492
- var withDashboardViz_1 = __webpack_require__(56);
1459
+ var withDashboardViz_1 = __webpack_require__(55);
1493
1460
 
1494
- var PureTable_1 = __webpack_require__(506);
1461
+ var PureTable_1 = __webpack_require__(502);
1495
1462
 
1496
1463
  exports.PureTable = PureTable_1.default;
1497
1464
 
@@ -1589,6 +1556,13 @@ exports.default = Table;
1589
1556
 
1590
1557
  /***/ }),
1591
1558
 
1559
+ /***/ 19:
1560
+ /***/ (function(module, exports) {
1561
+
1562
+ module.exports = require("@splunk/visualizations-shared/style");
1563
+
1564
+ /***/ }),
1565
+
1592
1566
  /***/ 2:
1593
1567
  /***/ (function(module, exports) {
1594
1568
 
@@ -1602,7 +1576,22 @@ module.exports = require("@splunk/ui-utils/i18n");
1602
1576
  "use strict";
1603
1577
 
1604
1578
 
1605
- var _classCallCheck = __webpack_require__(10);
1579
+ Object.defineProperty(exports, "__esModule", {
1580
+ value: true
1581
+ });
1582
+ exports.validOutputModes = exports.validSortDirs = void 0;
1583
+ exports.validSortDirs = ['asc', 'desc', 'none'];
1584
+ exports.validOutputModes = ['json_cols', 'json'];
1585
+
1586
+ /***/ }),
1587
+
1588
+ /***/ 22:
1589
+ /***/ (function(module, exports, __webpack_require__) {
1590
+
1591
+ "use strict";
1592
+
1593
+
1594
+ var _classCallCheck = __webpack_require__(9);
1606
1595
 
1607
1596
  var _createClass = __webpack_require__(25);
1608
1597
 
@@ -1634,7 +1623,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1634
1623
 
1635
1624
  /***/ }),
1636
1625
 
1637
- /***/ 22:
1626
+ /***/ 23:
1638
1627
  /***/ (function(module, exports, __webpack_require__) {
1639
1628
 
1640
1629
  "use strict";
@@ -1663,7 +1652,7 @@ var VizCategory;
1663
1652
 
1664
1653
  /***/ }),
1665
1654
 
1666
- /***/ 23:
1655
+ /***/ 24:
1667
1656
  /***/ (function(module, exports, __webpack_require__) {
1668
1657
 
1669
1658
  "use strict";
@@ -1696,13 +1685,6 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
1696
1685
 
1697
1686
  /***/ }),
1698
1687
 
1699
- /***/ 24:
1700
- /***/ (function(module, exports) {
1701
-
1702
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
1703
-
1704
- /***/ }),
1705
-
1706
1688
  /***/ 25:
1707
1689
  /***/ (function(module, exports) {
1708
1690
 
@@ -1723,99 +1705,24 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
1723
1705
  "use strict";
1724
1706
 
1725
1707
 
1726
- var _toConsumableArray = __webpack_require__(8);
1727
-
1728
- var _defineProperty = __webpack_require__(9);
1729
-
1730
- var __rest = this && this.__rest || function (s, e) {
1731
- var t = {};
1732
-
1733
- for (var p in s) {
1734
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1735
- }
1736
-
1737
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1738
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
1739
- }
1740
- return t;
1741
- };
1708
+ var _toConsumableArray = __webpack_require__(7);
1742
1709
 
1743
1710
  Object.defineProperty(exports, "__esModule", {
1744
1711
  value: true
1745
1712
  });
1746
- exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
1747
-
1748
- var lodash_1 = __webpack_require__(3);
1749
-
1750
- var schemaUtils_1 = __webpack_require__(24);
1751
-
1752
- var VizBehavior_1 = __webpack_require__(6);
1713
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceConfig = exports.enhanceOptionsSchemaWithDynamicOptions = void 0;
1753
1714
 
1754
- var dynamicOptionsDSLType = {
1755
- type: 'string',
1756
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
1757
- };
1758
- /**
1759
- * Helper function to extend an options schema with dynamic options DSL
1760
- * @param optionsSchema a visualization's options schema
1761
- * @returns an updated options schema that additionally allows strings starting with > for each option
1762
- */
1715
+ var lodash_1 = __webpack_require__(3); // included for backwards compatibility
1763
1716
 
1764
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
1765
- var enhancedOptionsSchema = {};
1766
- Object.keys(optionsSchema).forEach(function (key) {
1767
- var _a = optionsSchema[key],
1768
- title = _a.title,
1769
- description = _a.description,
1770
- readOnly = _a.readOnly,
1771
- writeOnly = _a.writeOnly,
1772
- examples = _a.examples,
1773
- defaultValue = _a.default,
1774
- type = _a.type,
1775
- properties = _a.properties,
1776
- patternProperties = _a.patternProperties,
1777
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
1778
-
1779
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
1780
- title: title
1781
- }), description !== undefined && {
1782
- description: description
1783
- }), readOnly !== undefined && {
1784
- readOnly: readOnly
1785
- }), writeOnly !== undefined && {
1786
- writeOnly: writeOnly
1787
- }), examples !== undefined && {
1788
- examples: examples
1789
- }), defaultValue !== undefined && {
1790
- default: defaultValue
1791
- });
1792
1717
 
1793
- if (type === 'object') {
1794
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
1795
- type: type
1796
- }), properties && {
1797
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
1798
- });
1799
-
1800
- if (patternProperties) {
1801
- var enhancedPatternProperties = {};
1802
- Object.keys(patternProperties).forEach(function (opt) {
1803
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
1804
- });
1805
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
1806
- }
1807
- } else {
1808
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
1809
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
1810
- type: type
1811
- }), remainingSchemaEntry), dynamicOptionsDSLType]
1812
- });
1813
- }
1814
- });
1815
- return enhancedOptionsSchema;
1816
- }
1718
+ var visualization_schemas_1 = __webpack_require__(10);
1817
1719
 
1818
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
1720
+ Object.defineProperty(exports, "enhanceOptionsSchemaWithDynamicOptions", {
1721
+ enumerable: true,
1722
+ get: function get() {
1723
+ return visualization_schemas_1.enhanceOptionsSchemaWithDynamicOptions;
1724
+ }
1725
+ });
1819
1726
  /**
1820
1727
  * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
1821
1728
  * this function also collapse all editor panels
@@ -1826,11 +1733,6 @@ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamic
1826
1733
 
1827
1734
  function enhanceConfig(vizConfig) {
1828
1735
  var enhancedConfig = Object.assign({}, vizConfig);
1829
-
1830
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
1831
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
1832
- }
1833
-
1834
1736
  enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
1835
1737
  return Object.assign(Object.assign({}, config), {
1836
1738
  open: config.open || false
@@ -2048,7 +1950,7 @@ var i18n_1 = __webpack_require__(2);
2048
1950
 
2049
1951
  var Message_1 = __webpack_require__(12);
2050
1952
 
2051
- var FixedSizeContainer_1 = __webpack_require__(17);
1953
+ var FixedSizeContainer_1 = __webpack_require__(18);
2052
1954
  /**
2053
1955
  * @method shouldShowIconPlaceholder
2054
1956
  * @param {object} dataSources
@@ -2126,7 +2028,7 @@ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
2126
2028
  "use strict";
2127
2029
 
2128
2030
 
2129
- var _defineProperty = __webpack_require__(9);
2031
+ var _defineProperty = __webpack_require__(13);
2130
2032
 
2131
2033
  Object.defineProperty(exports, "__esModule", {
2132
2034
  value: true
@@ -2137,7 +2039,7 @@ var T = __webpack_require__(1);
2137
2039
 
2138
2040
  var lodash_1 = __webpack_require__(3);
2139
2041
 
2140
- var DataSource_1 = __webpack_require__(19);
2042
+ var DataSource_1 = __webpack_require__(21);
2141
2043
 
2142
2044
  exports.SortParamsPropTypes = T.shape({
2143
2045
  currentSortKey: T.string,
@@ -2302,7 +2204,7 @@ __exportStar(__webpack_require__(41), exports);
2302
2204
 
2303
2205
  __exportStar(__webpack_require__(42), exports);
2304
2206
 
2305
- __exportStar(__webpack_require__(19), exports);
2207
+ __exportStar(__webpack_require__(21), exports);
2306
2208
 
2307
2209
  __exportStar(__webpack_require__(43), exports);
2308
2210
 
@@ -2316,13 +2218,13 @@ __exportStar(__webpack_require__(47), exports);
2316
2218
 
2317
2219
  __exportStar(__webpack_require__(48), exports);
2318
2220
 
2319
- __exportStar(__webpack_require__(49), exports);
2221
+ __exportStar(__webpack_require__(22), exports);
2320
2222
 
2321
- __exportStar(__webpack_require__(21), exports);
2223
+ __exportStar(__webpack_require__(8), exports);
2322
2224
 
2323
- __exportStar(__webpack_require__(6), exports);
2225
+ __exportStar(__webpack_require__(23), exports);
2324
2226
 
2325
- __exportStar(__webpack_require__(22), exports);
2227
+ __exportStar(__webpack_require__(49), exports);
2326
2228
 
2327
2229
  __exportStar(__webpack_require__(50), exports);
2328
2230
 
@@ -2334,8 +2236,6 @@ __exportStar(__webpack_require__(53), exports);
2334
2236
 
2335
2237
  __exportStar(__webpack_require__(54), exports);
2336
2238
 
2337
- __exportStar(__webpack_require__(55), exports);
2338
-
2339
2239
  /***/ }),
2340
2240
 
2341
2241
  /***/ 41:
@@ -2449,19 +2349,7 @@ Object.defineProperty(exports, "__esModule", {
2449
2349
 
2450
2350
  /***/ }),
2451
2351
 
2452
- /***/ 50:
2453
- /***/ (function(module, exports, __webpack_require__) {
2454
-
2455
- "use strict";
2456
-
2457
-
2458
- Object.defineProperty(exports, "__esModule", {
2459
- value: true
2460
- });
2461
-
2462
- /***/ }),
2463
-
2464
- /***/ 501:
2352
+ /***/ 497:
2465
2353
  /***/ (function(module, exports, __webpack_require__) {
2466
2354
 
2467
2355
  "use strict";
@@ -2499,9 +2387,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
2499
2387
  // for some reason, omitting the default export worked before TS v4
2500
2388
  // see: https://stackoverflow.com/a/34445175
2501
2389
 
2502
- __exportStar(__webpack_require__(191), exports);
2390
+ __exportStar(__webpack_require__(188), exports);
2503
2391
 
2504
- var Table_1 = __webpack_require__(191);
2392
+ var Table_1 = __webpack_require__(188);
2505
2393
 
2506
2394
  Object.defineProperty(exports, "default", {
2507
2395
  enumerable: true,
@@ -2512,13 +2400,13 @@ Object.defineProperty(exports, "default", {
2512
2400
 
2513
2401
  /***/ }),
2514
2402
 
2515
- /***/ 502:
2403
+ /***/ 498:
2516
2404
  /***/ (function(module, exports, __webpack_require__) {
2517
2405
 
2518
2406
  "use strict";
2519
2407
 
2520
2408
 
2521
- var _toConsumableArray = __webpack_require__(8);
2409
+ var _toConsumableArray = __webpack_require__(7);
2522
2410
 
2523
2411
  Object.defineProperty(exports, "__esModule", {
2524
2412
  value: true
@@ -2528,31 +2416,29 @@ var i18n_1 = __webpack_require__(2);
2528
2416
 
2529
2417
  var lodash_1 = __webpack_require__(3);
2530
2418
 
2531
- var schemaUtils_1 = __webpack_require__(24);
2419
+ var visualization_schemas_1 = __webpack_require__(10);
2532
2420
 
2533
- var colorConstants_1 = __webpack_require__(71);
2421
+ var colorConstants_1 = __webpack_require__(70);
2534
2422
 
2535
- var visualization_icons_1 = __webpack_require__(74);
2423
+ var visualization_icons_1 = __webpack_require__(72);
2536
2424
 
2537
- var placeholders_1 = __webpack_require__(72);
2425
+ var placeholders_1 = __webpack_require__(71);
2538
2426
 
2539
- var variables_1 = __webpack_require__(13);
2427
+ var variables_1 = __webpack_require__(14);
2540
2428
 
2541
2429
  var pick_1 = __webpack_require__(30);
2542
2430
 
2543
- var TextAlignCenter_1 = __webpack_require__(503);
2431
+ var TextAlignCenter_1 = __webpack_require__(499);
2544
2432
 
2545
- var TextAlignLeft_1 = __webpack_require__(504);
2433
+ var TextAlignLeft_1 = __webpack_require__(500);
2546
2434
 
2547
- var TextAlignRight_1 = __webpack_require__(505);
2435
+ var TextAlignRight_1 = __webpack_require__(501);
2548
2436
 
2549
2437
  var configUtils_1 = __webpack_require__(27);
2550
2438
 
2551
- var VizBehavior_1 = __webpack_require__(6);
2552
-
2553
- var consts_1 = __webpack_require__(159);
2439
+ var VizBehavior_1 = __webpack_require__(8);
2554
2440
 
2555
- var VizCategory_1 = __webpack_require__(22);
2441
+ var VizCategory_1 = __webpack_require__(23);
2556
2442
 
2557
2443
  var dataContract = {
2558
2444
  requiredDataSources: [{
@@ -2798,320 +2684,6 @@ var matchColorConfig = [{
2798
2684
  match: '',
2799
2685
  value: '#5C33FF'
2800
2686
  }];
2801
- var optionsSchema = {
2802
- backgroundColor: {
2803
- default: '> themes.defaultBackgroundColor',
2804
- description: 'Specify the color for the background. You might use a data source 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".',
2805
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
2806
- type: 'string'
2807
- },
2808
- columnFormat: {
2809
- description: 'Lets you format an individual column in a table. Specify a column in a table as a field, followed by a property. For more information, see the Column Format Align - Left example on the Examples page.',
2810
- type: 'object',
2811
- patternProperties: {
2812
- '.*': {
2813
- description: 'Customization for column property',
2814
- type: 'object',
2815
- properties: {
2816
- align: {
2817
- description: 'Specify the alignment for the whole column. Valid alignments include "left", "center", and "right". You can also pass an array to specify the alignment of each cell. When set to "auto", the column will use the same configuration as tableFormat.align.',
2818
- type: ['string', 'array'],
2819
- items: {
2820
- type: 'string',
2821
- enum: consts_1.validAlignments.concat()
2822
- },
2823
- default: 'auto'
2824
- },
2825
- cellTypes: {
2826
- description: 'Specify how to render data in cells. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
2827
- type: 'array',
2828
- items: {
2829
- type: 'string',
2830
- enum: consts_1.validCellRenderers.concat()
2831
- }
2832
- },
2833
- data: {
2834
- description: 'Specify data points to be displayed in the cells of a column.',
2835
- type: 'array',
2836
- items: {
2837
- oneOf: [{
2838
- type: 'string'
2839
- }, {
2840
- type: 'number'
2841
- }, {
2842
- type: 'array',
2843
- items: {
2844
- type: ['string', 'number']
2845
- }
2846
- }]
2847
- }
2848
- },
2849
- headerAlign: {
2850
- description: 'Specify the heaader alignment for the whole column. Valid alignments include "left", "center", and "right". When set to "auto", the column will use the same configuration as tableFormat.headerAlign',
2851
- type: 'string',
2852
- items: {
2853
- type: 'string',
2854
- enum: consts_1.validAlignments.concat()
2855
- },
2856
- default: 'auto'
2857
- },
2858
- rowBackgroundColors: {
2859
- description: 'Specify a list of colors, in hexadecimal code, for the background color of each column of the table. For example, ["#2C333B", "32373D"].',
2860
- type: 'array',
2861
- items: {
2862
- type: 'string',
2863
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
2864
- }
2865
- },
2866
- rowColors: {
2867
- description: 'Specify a list of colors, in hexadecimal code, for the text color of the cells of a column. For example, ["#2C333B", "32373D"].',
2868
- type: 'array',
2869
- items: {
2870
- type: 'string',
2871
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
2872
- }
2873
- },
2874
- sparklineAreaColors: {
2875
- description: 'Specify a list of colors, in hexadecimal code, for the sparkline area of each column. For example, ["#2C333B", "32373D"].',
2876
- type: 'array',
2877
- items: {
2878
- type: 'string',
2879
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
2880
- }
2881
- },
2882
- sparklineColors: {
2883
- description: 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each column. For example, ["#2C333B", "32373D"].',
2884
- type: 'array',
2885
- items: {
2886
- type: 'string',
2887
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
2888
- }
2889
- },
2890
- sparklineTypes: {
2891
- description: 'Choose either area or line formatting for the Sparkline. Valid sparkline types include "line" and "area".',
2892
- type: 'array',
2893
- items: {
2894
- type: 'string',
2895
- enum: consts_1.validSparklineTypes.concat()
2896
- }
2897
- },
2898
- textOverflow: {
2899
- description: 'Controls how the text should be truncated within a particular column. Valid types include "anywhere", "break-word", "ellipsis". Columns are "break-word" styled by default when "textOverflow" is not configured.',
2900
- type: 'string',
2901
- pattern: (0, schemaUtils_1.getPattern)(consts_1.validTextOverflows),
2902
- enum: consts_1.validTextOverflows.concat()
2903
- },
2904
- width: {
2905
- description: 'Specify, in pixels, the width of the column. The default displays a minimum width of at least 90, unless the table needs to filled further. The minimum width is 30px.',
2906
- type: 'number',
2907
- minimum: 30
2908
- }
2909
- }
2910
- }
2911
- }
2912
- },
2913
- count: {
2914
- description: 'Specify the maximum number of rows to display.',
2915
- type: 'number',
2916
- default: 10
2917
- },
2918
- font: {
2919
- default: 'proportional',
2920
- description: 'Specify the font style to use for table content.',
2921
- type: 'string',
2922
- pattern: (0, schemaUtils_1.getPattern)(['proportional', 'monospace'])
2923
- },
2924
- fontSize: {
2925
- default: 'default',
2926
- description: 'Specify the font size to use for table content. Font sizes range from extra small (10px) to large (16px) with the default being 14px.',
2927
- type: 'string',
2928
- pattern: (0, schemaUtils_1.getPattern)(consts_1.validFontSizes)
2929
- },
2930
- headers: {
2931
- default: '> table | getField()',
2932
- description: "Specify an array of headers to display on the table. Though these can be statically listed, it's best to use the dynamic default, as it will return the fields of your search.",
2933
- type: 'array',
2934
- items: {
2935
- type: 'string'
2936
- }
2937
- },
2938
- headerVisibility: {
2939
- default: 'inline',
2940
- description: 'Specify how to display the table header row.',
2941
- pattern: (0, schemaUtils_1.getPattern)(consts_1.validHeaderVisibilities),
2942
- enum: consts_1.validHeaderVisibilities.concat(),
2943
- type: 'string'
2944
- },
2945
- paginateDataSourceKey: {
2946
- default: 'primary',
2947
- description: 'Specify the data source key for pagination and sorting.',
2948
- type: 'string'
2949
- },
2950
- showInternalFields: {
2951
- default: true,
2952
- description: 'Specify whether to show internal fields that start with an underscore. The _time field will still be shown if false.',
2953
- type: 'boolean'
2954
- },
2955
- showRowNumbers: {
2956
- default: false,
2957
- description: 'Show row numbers in the first column.',
2958
- type: 'boolean'
2959
- },
2960
- table: {
2961
- default: '> primary',
2962
- description: 'Two dimensional array of data to be displayed in the table.',
2963
- type: 'array',
2964
- items: {
2965
- type: 'array',
2966
- items: {
2967
- oneOf: [{
2968
- type: 'string'
2969
- }, {
2970
- type: 'number'
2971
- }, {
2972
- type: 'array',
2973
- items: {
2974
- type: ['string', 'number']
2975
- }
2976
- }]
2977
- }
2978
- }
2979
- },
2980
- tableFormat: {
2981
- description: 'Lets you set global options for a table.',
2982
- type: 'object',
2983
- properties: {
2984
- align: {
2985
- default: '> table | type() | matchValue(tableAlignByType)',
2986
- description: 'Specify alignment for the whole table. Valid alignments include "left", "center", and "right". You can also pass a 2 dimensional array to specify the alignment of each cell. By default, the table will be aligned by type.',
2987
- type: ['string', 'array'],
2988
- items: {
2989
- type: 'array',
2990
- items: {
2991
- type: 'string',
2992
- enum: consts_1.validAlignments.concat()
2993
- }
2994
- }
2995
- },
2996
- cellTypes: {
2997
- default: '> table | type() | matchValue(tableCellTypeByType)',
2998
- description: 'Specify how to render data in cells. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
2999
- type: 'array',
3000
- items: {
3001
- type: 'array',
3002
- items: {
3003
- type: 'string',
3004
- enum: consts_1.validCellRenderers.concat()
3005
- }
3006
- }
3007
- },
3008
- data: {
3009
- description: 'Two dimensional data to be displayed in the table. This is usually formatted data instead of raw data from search.',
3010
- type: 'array',
3011
- items: {
3012
- type: 'array',
3013
- items: {
3014
- oneOf: [{
3015
- type: 'string'
3016
- }, {
3017
- type: 'number'
3018
- }, {
3019
- type: 'array',
3020
- items: {
3021
- type: ['string', 'number']
3022
- }
3023
- }]
3024
- }
3025
- }
3026
- },
3027
- headerAlign: {
3028
- description: 'Specify the header alignment for the whole table. Valid alignments include "left", "center", and "right".',
3029
- type: 'string',
3030
- items: {
3031
- type: 'string',
3032
- enum: consts_1.validAlignments.concat()
3033
- },
3034
- default: 'left'
3035
- },
3036
- headerBackgroundColor: {
3037
- default: '> themes.defaultHeaderBackgroundColor',
3038
- description: 'Specify the table header background color using a hexadecimal code. For example, "#FFFFFF".',
3039
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3040
- type: 'string'
3041
- },
3042
- headerColor: {
3043
- description: 'Specify the table header text color using a hexadecimal code. For example, "#FFFFFF".',
3044
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3045
- type: 'string'
3046
- },
3047
- rowBackgroundColors: {
3048
- default: '> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByTheme)',
3049
- description: 'Specify a list of colors, in hexadecimal code, for the background color of each row of the table. For example, ["#2C333B", "32373D"].',
3050
- type: 'array',
3051
- items: {
3052
- type: 'array',
3053
- items: {
3054
- type: 'string',
3055
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
3056
- }
3057
- }
3058
- },
3059
- rowColors: {
3060
- description: 'Specify a list of colors, in hexadecimal code, for the text color of each row of the table. For example, ["#2C333B", "32373D"].',
3061
- type: 'array',
3062
- items: {
3063
- type: 'array',
3064
- items: {
3065
- type: 'string',
3066
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
3067
- }
3068
- }
3069
- },
3070
- sparklineAreaColors: {
3071
- description: 'Specify a list of colors, in hexadecimal code, for the sparkline area of each row of the table. For example, ["#2C333B", "32373D"].',
3072
- type: 'array',
3073
- items: {
3074
- type: 'array',
3075
- items: {
3076
- type: 'string',
3077
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
3078
- }
3079
- }
3080
- },
3081
- sparklineColors: {
3082
- description: 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each row of the table. For example, ["#2C333B", "32373D"].',
3083
- type: 'array',
3084
- items: {
3085
- type: 'array',
3086
- items: {
3087
- type: 'string',
3088
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
3089
- }
3090
- }
3091
- },
3092
- sparklineTypes: {
3093
- description: 'Choose either area or line formatting for the Sparkline.',
3094
- type: 'array',
3095
- items: {
3096
- type: 'array',
3097
- items: {
3098
- type: 'string',
3099
- enum: consts_1.validSparklineTypes.concat()
3100
- }
3101
- }
3102
- },
3103
- textOverflow: {
3104
- description: 'Specify the text overflow for the whole column. Valid overflows include "break-word", "anywhere", and "ellipsis".',
3105
- type: 'string',
3106
- items: {
3107
- type: 'string',
3108
- enum: consts_1.validTextOverflows.concat()
3109
- },
3110
- default: 'break-word'
3111
- }
3112
- }
3113
- }
3114
- };
3115
2687
  var themes = {
3116
2688
  defaultBackgroundColor: function defaultBackgroundColor(props) {
3117
2689
  return (0, pick_1.default)({
@@ -3370,7 +2942,7 @@ var config = {
3370
2942
  dataContract: dataContract,
3371
2943
  size: size,
3372
2944
  defaultContext: defaultContext,
3373
- optionsSchema: optionsSchema,
2945
+ optionsSchema: visualization_schemas_1.tableOptionsSchema,
3374
2946
  editorConfig: editorConfig,
3375
2947
  events: {
3376
2948
  'cell.click': {
@@ -3384,36 +2956,48 @@ exports.default = (0, configUtils_1.enhanceConfig)(config);
3384
2956
 
3385
2957
  /***/ }),
3386
2958
 
3387
- /***/ 503:
2959
+ /***/ 499:
3388
2960
  /***/ (function(module, exports) {
3389
2961
 
3390
2962
  module.exports = require("@splunk/react-icons/TextAlignCenter");
3391
2963
 
3392
2964
  /***/ }),
3393
2965
 
3394
- /***/ 504:
2966
+ /***/ 50:
2967
+ /***/ (function(module, exports, __webpack_require__) {
2968
+
2969
+ "use strict";
2970
+
2971
+
2972
+ Object.defineProperty(exports, "__esModule", {
2973
+ value: true
2974
+ });
2975
+
2976
+ /***/ }),
2977
+
2978
+ /***/ 500:
3395
2979
  /***/ (function(module, exports) {
3396
2980
 
3397
2981
  module.exports = require("@splunk/react-icons/TextAlignLeft");
3398
2982
 
3399
2983
  /***/ }),
3400
2984
 
3401
- /***/ 505:
2985
+ /***/ 501:
3402
2986
  /***/ (function(module, exports) {
3403
2987
 
3404
2988
  module.exports = require("@splunk/react-icons/TextAlignRight");
3405
2989
 
3406
2990
  /***/ }),
3407
2991
 
3408
- /***/ 506:
2992
+ /***/ 502:
3409
2993
  /***/ (function(module, exports, __webpack_require__) {
3410
2994
 
3411
2995
  "use strict";
3412
2996
 
3413
2997
 
3414
- var _slicedToArray = __webpack_require__(7);
2998
+ var _slicedToArray = __webpack_require__(6);
3415
2999
 
3416
- var _taggedTemplateLiteral = __webpack_require__(81);
3000
+ var _taggedTemplateLiteral = __webpack_require__(79);
3417
3001
 
3418
3002
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
3419
3003
 
@@ -3445,35 +3029,35 @@ var styled_components_1 = __webpack_require__(4);
3445
3029
 
3446
3030
  var i18n_1 = __webpack_require__(2);
3447
3031
 
3448
- var Table_1 = __webpack_require__(135);
3032
+ var Table_1 = __webpack_require__(133);
3449
3033
 
3450
- var Paginator_1 = __webpack_require__(117);
3034
+ var Paginator_1 = __webpack_require__(114);
3451
3035
 
3452
- var Message_1 = __webpack_require__(146);
3036
+ var Message_1 = __webpack_require__(144);
3453
3037
 
3454
- var colorUtils_1 = __webpack_require__(15);
3038
+ var colorUtils_1 = __webpack_require__(16);
3455
3039
 
3456
- var style_1 = __webpack_require__(18);
3040
+ var style_1 = __webpack_require__(19);
3457
3041
 
3458
3042
  var pick_1 = __webpack_require__(30);
3459
3043
 
3460
- var variables_1 = __webpack_require__(13);
3044
+ var variables_1 = __webpack_require__(14);
3461
3045
 
3462
- var hooks_1 = __webpack_require__(507);
3046
+ var visualization_schemas_1 = __webpack_require__(10);
3463
3047
 
3464
- var consts_1 = __webpack_require__(159);
3048
+ var hooks_1 = __webpack_require__(503);
3465
3049
 
3466
- var cells_1 = __webpack_require__(508);
3050
+ var cells_1 = __webpack_require__(504);
3467
3051
 
3468
3052
  var getPagination_1 = __webpack_require__(39);
3469
3053
 
3470
3054
  var getSorting_1 = __webpack_require__(38);
3471
3055
 
3472
- var FixedSizeContainer_1 = __webpack_require__(17); // debounce was imported this way due to typing
3056
+ var FixedSizeContainer_1 = __webpack_require__(18); // debounce was imported this way due to typing
3473
3057
  // eslint-disable-next-line import/order
3474
3058
 
3475
3059
 
3476
- var debounce = __webpack_require__(513);
3060
+ var debounce = __webpack_require__(509);
3477
3061
 
3478
3062
  exports.MINIMUM_COLUMN_SIZE = 30;
3479
3063
  exports.INITIAL_UNSET_COLUMN_WIDTH = 90;
@@ -3485,7 +3069,7 @@ var TableHeadCell = (0, styled_components_1.default)(Table_1.default.HeadCell)(_
3485
3069
  });
3486
3070
  var VizTableContainer = styled_components_1.default.div.withConfig({
3487
3071
  displayName: "PureTable__VizTableContainer",
3488
- componentId: "tovzjg-0"
3072
+ componentId: "sc-tovzjg-0"
3489
3073
  })(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;td,* > td:hover{color:", ";}"], (0, pick_1.default)({
3490
3074
  enterprise: variables_1.default.spacingHalf,
3491
3075
  prisma: variables_1.default.spacingSmall
@@ -3500,7 +3084,7 @@ var PAGINATOR_CONTAINER_HEIGHT = 38;
3500
3084
  var PAGINATOR_SPACING = 5;
3501
3085
  var SUITableContainer = styled_components_1.default.div.withConfig({
3502
3086
  displayName: "PureTable__SUITableContainer",
3503
- componentId: "tovzjg-1"
3087
+ componentId: "sc-tovzjg-1"
3504
3088
  })(["& *{font-family:", ";font-size:", ";line-height:", ";}box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " [data-test=\"main-table\"]{", " td{white-space:pre-wrap;}}"], function (props) {
3505
3089
  return props.font;
3506
3090
  }, function (props) {
@@ -3543,7 +3127,7 @@ var SUITableContainer = styled_components_1.default.div.withConfig({
3543
3127
  SUITableContainer.displayName = 'SUITableContainer';
3544
3128
  var PaginatorContainer = styled_components_1.default.div.withConfig({
3545
3129
  displayName: "PureTable__PaginatorContainer",
3546
- componentId: "tovzjg-2"
3130
+ componentId: "sc-tovzjg-2"
3547
3131
  })(["position:relative;text-align:right;height:", "px;"], PAGINATOR_CONTAINER_HEIGHT);
3548
3132
  PaginatorContainer.displayName = 'PaginatorContainer'; // allow for early return in case of empty tableBody while still following hook rules
3549
3133
 
@@ -3899,18 +3483,18 @@ PureTable.propTypes = {
3899
3483
  backgroundColor: T.string,
3900
3484
  count: T.number,
3901
3485
  columnFormat: T.objectOf(T.shape({
3902
- align: T.oneOfType([T.arrayOf(T.oneOf(consts_1.validAlignments)), T.oneOf(consts_1.validAlignments)]),
3903
- cellTypes: T.arrayOf(T.oneOf(consts_1.validCellRenderers)),
3486
+ align: T.oneOfType([T.arrayOf(T.oneOf(visualization_schemas_1.validAlignments)), T.oneOf(visualization_schemas_1.validAlignments)]),
3487
+ cellTypes: T.arrayOf(T.oneOf(visualization_schemas_1.validCellRenderers)),
3904
3488
  data: T.arrayOf(cellDataType),
3905
- headerAlign: T.oneOf(consts_1.validAlignments),
3489
+ headerAlign: T.oneOf(visualization_schemas_1.validAlignments),
3906
3490
  rowBackgroundColors: T.arrayOf(T.string),
3907
3491
  rowColors: T.arrayOf(T.string),
3908
3492
  sparklineAreaColors: T.arrayOf(T.string),
3909
3493
  sparklineColors: T.arrayOf(T.string),
3910
- sparklineTypes: T.arrayOf(T.oneOf(consts_1.validSparklineTypes))
3494
+ sparklineTypes: T.arrayOf(T.oneOf(visualization_schemas_1.validSparklineTypes))
3911
3495
  })),
3912
3496
  headers: T.arrayOf(T.string),
3913
- headerVisibility: T.oneOf(consts_1.validHeaderVisibilities),
3497
+ headerVisibility: T.oneOf(visualization_schemas_1.validHeaderVisibilities),
3914
3498
  height: T.oneOfType([T.number]),
3915
3499
  mode: T.string,
3916
3500
  onCellClick: T.func,
@@ -3919,17 +3503,17 @@ PureTable.propTypes = {
3919
3503
  sortParams: getSorting_1.SortParamsPropTypes,
3920
3504
  table: T.arrayOf(T.arrayOf(cellDataType)),
3921
3505
  tableFormat: T.shape({
3922
- align: T.oneOfType([T.arrayOf(T.arrayOf(T.oneOf(consts_1.validAlignments))), T.oneOf(consts_1.validAlignments)]),
3923
- cellTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validCellRenderers))),
3506
+ align: T.oneOfType([T.arrayOf(T.arrayOf(T.oneOf(visualization_schemas_1.validAlignments))), T.oneOf(visualization_schemas_1.validAlignments)]),
3507
+ cellTypes: T.arrayOf(T.arrayOf(T.oneOf(visualization_schemas_1.validCellRenderers))),
3924
3508
  data: T.arrayOf(T.arrayOf(cellDataType)),
3925
- headerAlign: T.oneOf(consts_1.validAlignments),
3509
+ headerAlign: T.oneOf(visualization_schemas_1.validAlignments),
3926
3510
  headerBackgroundColor: T.string,
3927
3511
  headerColor: T.string,
3928
3512
  rowBackgroundColors: T.oneOfType([T.arrayOf(T.string), T.arrayOf(T.arrayOf(T.string))]),
3929
3513
  rowColors: T.oneOfType([T.arrayOf(T.string), T.arrayOf(T.arrayOf(T.string))]),
3930
3514
  sparklineAreaColors: T.arrayOf(T.arrayOf(T.string)),
3931
3515
  sparklineColors: T.arrayOf(T.arrayOf(T.string)),
3932
- sparklineTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validSparklineTypes)))
3516
+ sparklineTypes: T.arrayOf(T.arrayOf(T.oneOf(visualization_schemas_1.validSparklineTypes)))
3933
3517
  }),
3934
3518
  theme: T.any,
3935
3519
  width: T.oneOfType([T.number]),
@@ -3965,15 +3549,15 @@ exports.default = withEmptyTableMessage((0, FixedSizeContainer_1.default)(PureTa
3965
3549
 
3966
3550
  /***/ }),
3967
3551
 
3968
- /***/ 507:
3552
+ /***/ 503:
3969
3553
  /***/ (function(module, exports, __webpack_require__) {
3970
3554
 
3971
3555
  "use strict";
3972
3556
 
3973
3557
 
3974
- var _toConsumableArray = __webpack_require__(8);
3558
+ var _toConsumableArray = __webpack_require__(7);
3975
3559
 
3976
- var _typeof = __webpack_require__(105);
3560
+ var _typeof = __webpack_require__(103);
3977
3561
 
3978
3562
  Object.defineProperty(exports, "__esModule", {
3979
3563
  value: true
@@ -3982,9 +3566,9 @@ exports.useTable = exports.getTextOverflowType = exports.getOverflowStyles = voi
3982
3566
 
3983
3567
  var lodash_1 = __webpack_require__(3);
3984
3568
 
3985
- var colorUtils_1 = __webpack_require__(15);
3569
+ var colorUtils_1 = __webpack_require__(16);
3986
3570
 
3987
- var consts_1 = __webpack_require__(159);
3571
+ var visualization_schemas_1 = __webpack_require__(10);
3988
3572
 
3989
3573
  var isArray = function isArray(v) {
3990
3574
  return Array.isArray(v);
@@ -4056,14 +3640,15 @@ var getColumnFormatAlign = function getColumnFormatAlign(columnFormat, currentCo
4056
3640
  var align;
4057
3641
  var alignOption = getAttributeFromColumnFormat('align', columnFormat, currentColumn.columnId, currentColumn.value);
4058
3642
 
4059
- if (isArray(alignOption) && (0, lodash_1.includes)(consts_1.validAlignments, alignOption[currentRow])) {
3643
+ if (isArray(alignOption) && (0, lodash_1.includes)(visualization_schemas_1.validAlignments, alignOption[currentRow])) {
4060
3644
  align = alignOption[currentRow];
4061
3645
  } else if (typeof alignOption === 'string' && alignOption === 'auto') {
4062
3646
  align = undefined;
4063
- } else if (typeof alignOption === 'string' && (0, lodash_1.includes)(consts_1.validAlignments, alignOption)) {
3647
+ } else if (typeof alignOption === 'string' && (0, lodash_1.includes)(visualization_schemas_1.validAlignments, alignOption)) {
4064
3648
  align = alignOption;
4065
3649
  } else if (typeof alignOption !== 'undefined') {
4066
- console.warn("columnFormat.".concat(currentColumn.columnId, ".align should be a string or an array containing (").concat(consts_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
3650
+ // eslint-disable-next-line no-console
3651
+ console.warn("columnFormat.".concat(currentColumn.columnId, ".align should be a string or an array containing (").concat(visualization_schemas_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
4067
3652
  }
4068
3653
 
4069
3654
  return align;
@@ -4073,10 +3658,11 @@ var getColumnFormatCellType = function getColumnFormatCellType(columnFormat, cur
4073
3658
  var cellType;
4074
3659
  var cellTypes = getAttributeFromColumnFormat('cellTypes', columnFormat, currentColumn.columnId, currentColumn.value);
4075
3660
 
4076
- if (isArray(cellTypes) && (0, lodash_1.includes)(consts_1.validCellRenderers, cellTypes[currentRow])) {
3661
+ if (isArray(cellTypes) && (0, lodash_1.includes)(visualization_schemas_1.validCellRenderers, cellTypes[currentRow])) {
4077
3662
  cellType = cellTypes[currentRow];
4078
3663
  } else if (typeof cellTypes !== 'undefined') {
4079
- console.warn("columnFormat.".concat(currentColumn.value, ".cellType should be an array containing (").concat(consts_1.validCellRenderers.join(' | '), "). ").concat(JSON.stringify(cellTypes), " provided"));
3664
+ // eslint-disable-next-line no-console
3665
+ console.warn("columnFormat.".concat(currentColumn.value, ".cellType should be an array containing (").concat(visualization_schemas_1.validCellRenderers.join(' | '), "). ").concat(JSON.stringify(cellTypes), " provided"));
4080
3666
  }
4081
3667
 
4082
3668
  return cellType;
@@ -4086,10 +3672,11 @@ var getColumnFormatSparklineType = function getColumnFormatSparklineType(columnF
4086
3672
  var sparklineType;
4087
3673
  var types = getAttributeFromColumnFormat('sparklineTypes', columnFormat, currentColumn.columnId, currentColumn.value);
4088
3674
 
4089
- if (isArray(types) && (0, lodash_1.includes)(consts_1.validSparklineTypes, types[currentRow])) {
3675
+ if (isArray(types) && (0, lodash_1.includes)(visualization_schemas_1.validSparklineTypes, types[currentRow])) {
4090
3676
  sparklineType = types[currentRow];
4091
3677
  } else if (typeof types !== 'undefined') {
4092
- console.warn("columnFormat.".concat(currentColumn.value, ".sparklineTypes should be one of (").concat(consts_1.validSparklineTypes.join(' | '), "). ").concat(JSON.stringify(types), " provided"));
3678
+ // eslint-disable-next-line no-console
3679
+ console.warn("columnFormat.".concat(currentColumn.value, ".sparklineTypes should be one of (").concat(visualization_schemas_1.validSparklineTypes.join(' | '), "). ").concat(JSON.stringify(types), " provided"));
4093
3680
  }
4094
3681
 
4095
3682
  return sparklineType;
@@ -4102,6 +3689,7 @@ var getColumnFormatData = function getColumnFormatData(columnFormat, currentColu
4102
3689
  if (isArray(data)) {
4103
3690
  datum = data[currentRow];
4104
3691
  } else if (typeof data !== 'undefined') {
3692
+ // eslint-disable-next-line no-console
4105
3693
  console.warn("columnFormat.".concat(currentColumn.value, ".data should be an array containing formatted data. ").concat(_typeof(data), " provided"));
4106
3694
  }
4107
3695
 
@@ -4115,6 +3703,7 @@ var getColumnFormatColor = function getColumnFormatColor(columnFormat, currentCo
4115
3703
  if (isArray(colors) && (0, colorUtils_1.isColor)(colors[currentRow])) {
4116
3704
  color = colors[currentRow];
4117
3705
  } else if (typeof colors !== 'undefined') {
3706
+ // eslint-disable-next-line no-console
4118
3707
  console.warn("columnFormat.".concat(currentColumn.columnId, ".").concat(field, " should be an array containing valid colors. ").concat(JSON.stringify(colors), " provided"));
4119
3708
  }
4120
3709
 
@@ -4145,10 +3734,11 @@ var getColumnFormatHeaderAlign = function getColumnFormatHeaderAlign(columnForma
4145
3734
  return undefined;
4146
3735
  }
4147
3736
 
4148
- if (typeof alignOption === 'string' && (0, lodash_1.includes)(consts_1.validAlignments, alignOption)) {
3737
+ if (typeof alignOption === 'string' && (0, lodash_1.includes)(visualization_schemas_1.validAlignments, alignOption)) {
4149
3738
  headerAlign = alignOption;
4150
3739
  } else if (typeof alignOption !== 'undefined') {
4151
- console.warn("columnFormat.".concat(columnId, ".headerAlign should be a string containing (").concat(consts_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
3740
+ // eslint-disable-next-line no-console
3741
+ console.warn("columnFormat.".concat(columnId, ".headerAlign should be a string containing (").concat(visualization_schemas_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
4152
3742
  }
4153
3743
 
4154
3744
  return headerAlign;
@@ -4158,12 +3748,13 @@ var getTableFormatAlign = function getTableFormatAlign(tableFormat, currentColum
4158
3748
  var alignOption = (0, lodash_1.get)(tableFormat, 'align');
4159
3749
  var align;
4160
3750
 
4161
- if (isArray(alignOption) && isArray(alignOption[currentColumn]) && (0, lodash_1.includes)(consts_1.validAlignments, alignOption[currentColumn][currentRow])) {
3751
+ if (isArray(alignOption) && isArray(alignOption[currentColumn]) && (0, lodash_1.includes)(visualization_schemas_1.validAlignments, alignOption[currentColumn][currentRow])) {
4162
3752
  align = alignOption[currentColumn][currentRow];
4163
- } else if (typeof alignOption === 'string' && (0, lodash_1.includes)(consts_1.validAlignments, alignOption)) {
3753
+ } else if (typeof alignOption === 'string' && (0, lodash_1.includes)(visualization_schemas_1.validAlignments, alignOption)) {
4164
3754
  align = alignOption;
4165
3755
  } else if (typeof alignOption !== 'undefined') {
4166
- console.warn("tableFormat.align should be a string or a 2 dimensional array containing (".concat(consts_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
3756
+ // eslint-disable-next-line no-console
3757
+ console.warn("tableFormat.align should be a string or a 2 dimensional array containing (".concat(visualization_schemas_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
4167
3758
  }
4168
3759
 
4169
3760
  return align;
@@ -4173,10 +3764,11 @@ var getTableFormatCellType = function getTableFormatCellType(tableFormat, curren
4173
3764
  var cellTypes = (0, lodash_1.get)(tableFormat, 'cellTypes');
4174
3765
  var cellType;
4175
3766
 
4176
- if (isArray(cellTypes) && isArray(cellTypes[currentColumn]) && (0, lodash_1.includes)(consts_1.validCellRenderers, cellTypes[currentColumn][currentRow])) {
3767
+ if (isArray(cellTypes) && isArray(cellTypes[currentColumn]) && (0, lodash_1.includes)(visualization_schemas_1.validCellRenderers, cellTypes[currentColumn][currentRow])) {
4177
3768
  cellType = cellTypes[currentColumn][currentRow];
4178
3769
  } else if (typeof cellTypes !== 'undefined') {
4179
- console.warn("tableFormat.cellType should be a 2 dimensional array containing (".concat(consts_1.validCellRenderers.join(' | '), "). ").concat(JSON.stringify(cellTypes), " provided"));
3770
+ // eslint-disable-next-line no-console
3771
+ console.warn("tableFormat.cellType should be a 2 dimensional array containing (".concat(visualization_schemas_1.validCellRenderers.join(' | '), "). ").concat(JSON.stringify(cellTypes), " provided"));
4180
3772
  }
4181
3773
 
4182
3774
  return cellType;
@@ -4186,10 +3778,11 @@ var getTableFormatSparklineType = function getTableFormatSparklineType(tableForm
4186
3778
  var types = (0, lodash_1.get)(tableFormat, 'sparklineTypes');
4187
3779
  var sparklineType;
4188
3780
 
4189
- if (isArray(types) && isArray(types[currentColumn]) && (0, lodash_1.includes)(consts_1.validSparklineTypes, types[currentColumn][currentRow])) {
3781
+ if (isArray(types) && isArray(types[currentColumn]) && (0, lodash_1.includes)(visualization_schemas_1.validSparklineTypes, types[currentColumn][currentRow])) {
4190
3782
  sparklineType = types[currentColumn][currentRow];
4191
3783
  } else if (typeof types !== 'undefined') {
4192
- console.warn("tableFormat.sparklineTypes should be a 2 dimensional array containing one of (".concat(consts_1.validSparklineTypes.join(' | '), "). ").concat(JSON.stringify(types), " provided"));
3784
+ // eslint-disable-next-line no-console
3785
+ console.warn("tableFormat.sparklineTypes should be a 2 dimensional array containing one of (".concat(visualization_schemas_1.validSparklineTypes.join(' | '), "). ").concat(JSON.stringify(types), " provided"));
4193
3786
  }
4194
3787
 
4195
3788
  return sparklineType;
@@ -4204,6 +3797,7 @@ var getTableFormatColor = function getTableFormatColor(tableFormat, currentColum
4204
3797
  } else if (isArray(colors) && (0, colorUtils_1.isColor)(colors[currentRow])) {
4205
3798
  color = colors[currentRow];
4206
3799
  } else if (typeof colors !== 'undefined' && isArray(colors) && isArray(colors[currentColumn]) && colors[currentColumn][currentRow] !== undefined) {
3800
+ // eslint-disable-next-line no-console
4207
3801
  console.warn("tableFormat.".concat(field, " needs to be an array of colors, provided ").concat(JSON.stringify(colors), ". Current value at [").concat(currentColumn, "][").concat(currentRow, "] is ").concat(JSON.stringify(colors[currentRow])));
4208
3802
  }
4209
3803
 
@@ -4233,6 +3827,7 @@ var getTableFormatData = function getTableFormatData(tableFormat, currentCol, cu
4233
3827
  if (isArray(data) && isArray(data[currentCol])) {
4234
3828
  datum = data[currentCol][currentRow];
4235
3829
  } else if (typeof data !== 'undefined') {
3830
+ // eslint-disable-next-line no-console
4236
3831
  console.warn("tableFormat.data should be a 2 dimensional array containing formatted data to be displayed. ".concat(_typeof(data), " provided"));
4237
3832
  }
4238
3833
 
@@ -4243,10 +3838,11 @@ var getTableFormatHeaderAlign = function getTableFormatHeaderAlign(tableFormat)
4243
3838
  var alignOption = (0, lodash_1.get)(tableFormat, 'headerAlign');
4244
3839
  var headerAlign;
4245
3840
 
4246
- if (typeof alignOption === 'string' && consts_1.validAlignments.includes(alignOption)) {
3841
+ if (typeof alignOption === 'string' && visualization_schemas_1.validAlignments.includes(alignOption)) {
4247
3842
  headerAlign = alignOption;
4248
3843
  } else if (typeof alignOption !== 'undefined') {
4249
- console.warn("tableFormat.headerAlign should be a string containing (".concat(consts_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
3844
+ // eslint-disable-next-line no-console
3845
+ console.warn("tableFormat.headerAlign should be a string containing (".concat(visualization_schemas_1.validAlignments.join(' | '), "). ").concat(JSON.stringify(alignOption), " provided"));
4250
3846
  }
4251
3847
 
4252
3848
  return headerAlign;
@@ -4352,7 +3948,7 @@ var useTable = function useTable() {
4352
3948
  }
4353
3949
 
4354
3950
  var tableHeader = {
4355
- visibility: consts_1.validHeaderVisibilities.indexOf(headerVisibility) >= 0 ? headerVisibility : 'inline',
3951
+ visibility: visualization_schemas_1.validHeaderVisibilities.indexOf(headerVisibility) >= 0 ? headerVisibility : 'inline',
4356
3952
  cells: table.map(function (f, i) {
4357
3953
  if (i < headers.length) {
4358
3954
  return generateHeader(headers[i], columnIds[i], i, columnFormat, tableFormat, showInternalFields);
@@ -4435,7 +4031,7 @@ exports.useTable = useTable;
4435
4031
 
4436
4032
  /***/ }),
4437
4033
 
4438
- /***/ 508:
4034
+ /***/ 504:
4439
4035
  /***/ (function(module, exports, __webpack_require__) {
4440
4036
 
4441
4037
  "use strict";
@@ -4470,17 +4066,17 @@ Object.defineProperty(exports, "__esModule", {
4470
4066
  value: true
4471
4067
  });
4472
4068
 
4473
- __exportStar(__webpack_require__(509), exports);
4069
+ __exportStar(__webpack_require__(505), exports);
4474
4070
 
4475
- __exportStar(__webpack_require__(510), exports);
4071
+ __exportStar(__webpack_require__(506), exports);
4476
4072
 
4477
- __exportStar(__webpack_require__(511), exports);
4073
+ __exportStar(__webpack_require__(507), exports);
4478
4074
 
4479
- __exportStar(__webpack_require__(512), exports);
4075
+ __exportStar(__webpack_require__(508), exports);
4480
4076
 
4481
4077
  /***/ }),
4482
4078
 
4483
- /***/ 509:
4079
+ /***/ 505:
4484
4080
  /***/ (function(module, exports, __webpack_require__) {
4485
4081
 
4486
4082
  "use strict";
@@ -4503,19 +4099,7 @@ exports.SwitchTableCell = SwitchTableCell;
4503
4099
 
4504
4100
  /***/ }),
4505
4101
 
4506
- /***/ 51:
4507
- /***/ (function(module, exports, __webpack_require__) {
4508
-
4509
- "use strict";
4510
-
4511
-
4512
- Object.defineProperty(exports, "__esModule", {
4513
- value: true
4514
- });
4515
-
4516
- /***/ }),
4517
-
4518
- /***/ 510:
4102
+ /***/ 506:
4519
4103
  /***/ (function(module, exports, __webpack_require__) {
4520
4104
 
4521
4105
  "use strict";
@@ -4528,7 +4112,7 @@ exports.TextCell = void 0;
4528
4112
 
4529
4113
  var React = __webpack_require__(0);
4530
4114
 
4531
- var Table_1 = __webpack_require__(135);
4115
+ var Table_1 = __webpack_require__(133);
4532
4116
 
4533
4117
  var noop = function noop() {
4534
4118
  return undefined;
@@ -4556,7 +4140,7 @@ exports.TextCell.displayName = 'TextCell';
4556
4140
 
4557
4141
  /***/ }),
4558
4142
 
4559
- /***/ 511:
4143
+ /***/ 507:
4560
4144
  /***/ (function(module, exports, __webpack_require__) {
4561
4145
 
4562
4146
  "use strict";
@@ -4569,7 +4153,7 @@ exports.ArrayCell = void 0;
4569
4153
 
4570
4154
  var React = __webpack_require__(0);
4571
4155
 
4572
- var Table_1 = __webpack_require__(135);
4156
+ var Table_1 = __webpack_require__(133);
4573
4157
 
4574
4158
  var noop = function noop() {
4575
4159
  return undefined;
@@ -4605,24 +4189,24 @@ exports.ArrayCell.displayName = 'ArrayCell';
4605
4189
 
4606
4190
  /***/ }),
4607
4191
 
4608
- /***/ 512:
4192
+ /***/ 508:
4609
4193
  /***/ (function(module, exports, __webpack_require__) {
4610
4194
 
4611
4195
  "use strict";
4612
4196
 
4613
4197
 
4614
- var _slicedToArray = __webpack_require__(7);
4198
+ var _slicedToArray = __webpack_require__(6);
4615
4199
 
4616
4200
  Object.defineProperty(exports, "__esModule", {
4617
4201
  value: true
4618
4202
  });
4619
- exports.SparklineCell = exports.validSparklineTypes = void 0;
4203
+ exports.SparklineCell = void 0;
4620
4204
 
4621
4205
  var React = __webpack_require__(0);
4622
4206
 
4623
- var Table_1 = __webpack_require__(135);
4207
+ var Table_1 = __webpack_require__(133);
4624
4208
 
4625
- var SparkLine_1 = __webpack_require__(118);
4209
+ var SparkLine_1 = __webpack_require__(115);
4626
4210
 
4627
4211
  var paddingLeftRight = 5;
4628
4212
  var paddingTopBottom = 3;
@@ -4636,8 +4220,6 @@ var parseSparklineData = function parseSparklineData(data) {
4636
4220
  }; // eslint-disable-line no-restricted-globals
4637
4221
 
4638
4222
 
4639
- exports.validSparklineTypes = ['line', 'area'];
4640
-
4641
4223
  var noop = function noop() {
4642
4224
  return undefined;
4643
4225
  };
@@ -4717,14 +4299,14 @@ exports.SparklineCell.displayName = 'SparklineCell';
4717
4299
 
4718
4300
  /***/ }),
4719
4301
 
4720
- /***/ 513:
4302
+ /***/ 509:
4721
4303
  /***/ (function(module, exports) {
4722
4304
 
4723
4305
  module.exports = require("lodash/debounce");
4724
4306
 
4725
4307
  /***/ }),
4726
4308
 
4727
- /***/ 52:
4309
+ /***/ 51:
4728
4310
  /***/ (function(module, exports, __webpack_require__) {
4729
4311
 
4730
4312
  "use strict";
@@ -4736,7 +4318,7 @@ Object.defineProperty(exports, "__esModule", {
4736
4318
 
4737
4319
  /***/ }),
4738
4320
 
4739
- /***/ 53:
4321
+ /***/ 52:
4740
4322
  /***/ (function(module, exports, __webpack_require__) {
4741
4323
 
4742
4324
  "use strict";
@@ -4748,7 +4330,7 @@ Object.defineProperty(exports, "__esModule", {
4748
4330
 
4749
4331
  /***/ }),
4750
4332
 
4751
- /***/ 54:
4333
+ /***/ 53:
4752
4334
  /***/ (function(module, exports, __webpack_require__) {
4753
4335
 
4754
4336
  "use strict";
@@ -4760,7 +4342,7 @@ Object.defineProperty(exports, "__esModule", {
4760
4342
 
4761
4343
  /***/ }),
4762
4344
 
4763
- /***/ 55:
4345
+ /***/ 54:
4764
4346
  /***/ (function(module, exports, __webpack_require__) {
4765
4347
 
4766
4348
  "use strict";
@@ -4772,13 +4354,13 @@ Object.defineProperty(exports, "__esModule", {
4772
4354
 
4773
4355
  /***/ }),
4774
4356
 
4775
- /***/ 56:
4357
+ /***/ 55:
4776
4358
  /***/ (function(module, exports, __webpack_require__) {
4777
4359
 
4778
4360
  "use strict";
4779
4361
 
4780
4362
 
4781
- var _slicedToArray = __webpack_require__(7);
4363
+ var _slicedToArray = __webpack_require__(6);
4782
4364
 
4783
4365
  Object.defineProperty(exports, "__esModule", {
4784
4366
  value: true
@@ -4788,15 +4370,15 @@ var React = __webpack_require__(0);
4788
4370
 
4789
4371
  var lodash_1 = __webpack_require__(3);
4790
4372
 
4791
- var getSettingsFromThemedProps_1 = __webpack_require__(57);
4373
+ var getSettingsFromThemedProps_1 = __webpack_require__(56);
4792
4374
 
4793
- var Options_1 = __webpack_require__(16);
4375
+ var Options_1 = __webpack_require__(17);
4794
4376
 
4795
- var SanitizeProps_1 = __webpack_require__(58);
4377
+ var SanitizeProps_1 = __webpack_require__(57);
4796
4378
 
4797
4379
  var TimezoneContext_1 = __webpack_require__(32);
4798
4380
 
4799
- var moment_1 = __webpack_require__(59);
4381
+ var moment_1 = __webpack_require__(58);
4800
4382
 
4801
4383
  var FeatureFlagContext_1 = __webpack_require__(28);
4802
4384
 
@@ -4806,31 +4388,31 @@ var hocUtils_1 = __webpack_require__(34);
4806
4388
 
4807
4389
  var JSONSchemaUtils_1 = __webpack_require__(35);
4808
4390
 
4809
- var async_dynamic_options_evaluator_1 = __webpack_require__(60);
4391
+ var async_dynamic_options_evaluator_1 = __webpack_require__(59);
4810
4392
 
4811
4393
  var id_1 = __webpack_require__(31);
4812
4394
 
4813
- var SplunkVisualization_1 = __webpack_require__(61);
4395
+ var SplunkVisualization_1 = __webpack_require__(60);
4814
4396
 
4815
- var VizBehavior_1 = __webpack_require__(6);
4397
+ var VizBehavior_1 = __webpack_require__(8);
4816
4398
 
4817
4399
  var getSorting_1 = __webpack_require__(38);
4818
4400
 
4819
4401
  var getPagination_1 = __webpack_require__(39);
4820
4402
 
4821
- var useDeepMemo_1 = __webpack_require__(62);
4403
+ var useDeepMemo_1 = __webpack_require__(61);
4822
4404
 
4823
- var MissingPropsMessage_1 = __webpack_require__(63);
4405
+ var MissingPropsMessage_1 = __webpack_require__(62);
4824
4406
 
4825
- var withEditModeCover_1 = __webpack_require__(64);
4407
+ var withEditModeCover_1 = __webpack_require__(63);
4826
4408
 
4827
- var withPlaceholder_1 = __webpack_require__(65);
4409
+ var withPlaceholder_1 = __webpack_require__(64);
4828
4410
 
4829
- var useDownsampleDataSources_1 = __webpack_require__(66);
4411
+ var useDownsampleDataSources_1 = __webpack_require__(65);
4830
4412
 
4831
- var dataUtils_1 = __webpack_require__(14);
4413
+ var dataUtils_1 = __webpack_require__(15);
4832
4414
 
4833
- var featureFlagUtils_1 = __webpack_require__(68);
4415
+ var featureFlagUtils_1 = __webpack_require__(67);
4834
4416
  /**
4835
4417
  * hoc that wraps a pure react visualization in a Dashboard visualization
4836
4418
  * @param {DashboardVizOpts} opts
@@ -5163,81 +4745,48 @@ exports.default = withDashboardViz;
5163
4745
 
5164
4746
  /***/ }),
5165
4747
 
5166
- /***/ 57:
4748
+ /***/ 56:
5167
4749
  /***/ (function(module, exports) {
5168
4750
 
5169
4751
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
5170
4752
 
5171
4753
  /***/ }),
5172
4754
 
5173
- /***/ 58:
4755
+ /***/ 57:
5174
4756
  /***/ (function(module, exports) {
5175
4757
 
5176
4758
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
5177
4759
 
5178
4760
  /***/ }),
5179
4761
 
5180
- /***/ 59:
4762
+ /***/ 58:
5181
4763
  /***/ (function(module, exports) {
5182
4764
 
5183
4765
  module.exports = require("@splunk/moment");
5184
4766
 
5185
4767
  /***/ }),
5186
4768
 
5187
- /***/ 6:
5188
- /***/ (function(module, exports, __webpack_require__) {
5189
-
5190
- "use strict";
5191
-
5192
-
5193
- Object.defineProperty(exports, "__esModule", {
5194
- value: true
5195
- });
5196
- exports.VizBehavior = void 0;
5197
- var VizBehavior;
5198
-
5199
- (function (VizBehavior) {
5200
- /**
5201
- * Dynamic Options Behavior.
5202
- * This allows visualization options to be powered by data
5203
- *
5204
- * **Example**
5205
- *
5206
- * sparklineValues: ">primary|seriesByIndex(0)"
5207
- * would configure sparklineValues with an array of data points
5208
- * coming from the first series in the primary datasource
5209
- *
5210
- */
5211
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
5212
- VizBehavior["EVENTS"] = "events";
5213
- VizBehavior["DOWNSAMPLING"] = "downsampling";
5214
- /**
5215
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
5216
- * missing.
5217
- * @type {string}
5218
- */
4769
+ /***/ 59:
4770
+ /***/ (function(module, exports) {
5219
4771
 
5220
- VizBehavior["PLACEHOLDER"] = "placeholder";
5221
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
5222
- VizBehavior["TRELLIS"] = "trellis";
5223
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
4772
+ module.exports = require("@splunk/async-dynamic-options-evaluator");
5224
4773
 
5225
4774
  /***/ }),
5226
4775
 
5227
- /***/ 60:
4776
+ /***/ 6:
5228
4777
  /***/ (function(module, exports) {
5229
4778
 
5230
- module.exports = require("@splunk/async-dynamic-options-evaluator");
4779
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
5231
4780
 
5232
4781
  /***/ }),
5233
4782
 
5234
- /***/ 61:
4783
+ /***/ 60:
5235
4784
  /***/ (function(module, exports, __webpack_require__) {
5236
4785
 
5237
4786
  "use strict";
5238
4787
 
5239
4788
 
5240
- var _classCallCheck = __webpack_require__(10);
4789
+ var _classCallCheck = __webpack_require__(9);
5241
4790
 
5242
4791
  Object.defineProperty(exports, "__esModule", {
5243
4792
  value: true
@@ -5249,7 +4798,7 @@ var T = __webpack_require__(1);
5249
4798
 
5250
4799
  var lodash_1 = __webpack_require__(3);
5251
4800
 
5252
- var VizActionHandler_1 = __webpack_require__(21); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
4801
+ var VizActionHandler_1 = __webpack_require__(22); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
5253
4802
 
5254
4803
 
5255
4804
  exports.INITIAL_WIDTH = 250;
@@ -5383,7 +4932,7 @@ exports.default = SplunkVisualization;
5383
4932
 
5384
4933
  /***/ }),
5385
4934
 
5386
- /***/ 62:
4935
+ /***/ 61:
5387
4936
  /***/ (function(module, exports, __webpack_require__) {
5388
4937
 
5389
4938
  "use strict";
@@ -5429,7 +4978,7 @@ exports.useDeepMemo = useDeepMemo;
5429
4978
 
5430
4979
  /***/ }),
5431
4980
 
5432
- /***/ 63:
4981
+ /***/ 62:
5433
4982
  /***/ (function(module, exports, __webpack_require__) {
5434
4983
 
5435
4984
  "use strict";
@@ -5448,7 +4997,7 @@ var i18n_1 = __webpack_require__(2);
5448
4997
 
5449
4998
  var Message_1 = __webpack_require__(12);
5450
4999
 
5451
- var FixedSizeContainer_1 = __webpack_require__(17);
5000
+ var FixedSizeContainer_1 = __webpack_require__(18);
5452
5001
  /**
5453
5002
  * @method isMissing
5454
5003
  * @param {any} v
@@ -5510,7 +5059,7 @@ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage)
5510
5059
 
5511
5060
  /***/ }),
5512
5061
 
5513
- /***/ 64:
5062
+ /***/ 63:
5514
5063
  /***/ (function(module, exports, __webpack_require__) {
5515
5064
 
5516
5065
  "use strict";
@@ -5524,14 +5073,14 @@ var React = __webpack_require__(0);
5524
5073
 
5525
5074
  var styled_components_1 = __webpack_require__(4);
5526
5075
 
5527
- var hocUtils_1 = __webpack_require__(23);
5076
+ var hocUtils_1 = __webpack_require__(24);
5528
5077
 
5529
5078
  var Cover = styled_components_1.default.div.withConfig({
5530
5079
  displayName: "withEditModeCover__Cover",
5531
5080
  componentId: "sc-1gsbnxb-0"
5532
5081
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
5533
5082
  var Blocker = styled_components_1.default.div.attrs({
5534
- 'data-splunk-visualization-version': "26.2.1 - 714383dbb"
5083
+ 'data-splunk-visualization-version': "26.3.0 - a1ef240a6"
5535
5084
  }).withConfig({
5536
5085
  displayName: "withEditModeCover__Blocker",
5537
5086
  componentId: "sc-1gsbnxb-1"
@@ -5563,7 +5112,7 @@ exports.default = withEditModeCover;
5563
5112
 
5564
5113
  /***/ }),
5565
5114
 
5566
- /***/ 65:
5115
+ /***/ 64:
5567
5116
  /***/ (function(module, exports, __webpack_require__) {
5568
5117
 
5569
5118
  "use strict";
@@ -5575,15 +5124,15 @@ Object.defineProperty(exports, "__esModule", {
5575
5124
 
5576
5125
  var React = __webpack_require__(0);
5577
5126
 
5578
- var colorUtils_1 = __webpack_require__(15);
5127
+ var colorUtils_1 = __webpack_require__(16);
5579
5128
 
5580
- var variables_1 = __webpack_require__(13);
5129
+ var variables_1 = __webpack_require__(14);
5581
5130
 
5582
5131
  var IconPlaceholder_1 = __webpack_require__(37);
5583
5132
 
5584
- var VizBehavior_1 = __webpack_require__(6);
5133
+ var VizBehavior_1 = __webpack_require__(8);
5585
5134
 
5586
- var hocUtils_1 = __webpack_require__(23);
5135
+ var hocUtils_1 = __webpack_require__(24);
5587
5136
 
5588
5137
  var withPlaceholder = function withPlaceholder(Visualization) {
5589
5138
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -5628,13 +5177,13 @@ exports.default = withPlaceholder;
5628
5177
 
5629
5178
  /***/ }),
5630
5179
 
5631
- /***/ 66:
5180
+ /***/ 65:
5632
5181
  /***/ (function(module, exports, __webpack_require__) {
5633
5182
 
5634
5183
  "use strict";
5635
5184
 
5636
5185
 
5637
- var _slicedToArray = __webpack_require__(7);
5186
+ var _slicedToArray = __webpack_require__(6);
5638
5187
 
5639
5188
  Object.defineProperty(exports, "__esModule", {
5640
5189
  value: true
@@ -5644,11 +5193,11 @@ var react_1 = __webpack_require__(0);
5644
5193
 
5645
5194
  var lodash_1 = __webpack_require__(3);
5646
5195
 
5647
- var dataUtils_1 = __webpack_require__(14);
5196
+ var dataUtils_1 = __webpack_require__(15);
5648
5197
 
5649
5198
  var usePrevious_1 = __webpack_require__(33);
5650
5199
 
5651
- var useGetXAndYFields_1 = __webpack_require__(67);
5200
+ var useGetXAndYFields_1 = __webpack_require__(66);
5652
5201
 
5653
5202
  var useDownsampleDataSources = function useDownsampleDataSources(_ref) {
5654
5203
  var dataSources = _ref.dataSources,
@@ -5718,13 +5267,13 @@ exports.default = useDownsampleDataSources;
5718
5267
 
5719
5268
  /***/ }),
5720
5269
 
5721
- /***/ 67:
5270
+ /***/ 66:
5722
5271
  /***/ (function(module, exports, __webpack_require__) {
5723
5272
 
5724
5273
  "use strict";
5725
5274
 
5726
5275
 
5727
- var _toConsumableArray = __webpack_require__(8);
5276
+ var _toConsumableArray = __webpack_require__(7);
5728
5277
 
5729
5278
  Object.defineProperty(exports, "__esModule", {
5730
5279
  value: true
@@ -5732,7 +5281,7 @@ Object.defineProperty(exports, "__esModule", {
5732
5281
 
5733
5282
  var react_1 = __webpack_require__(0);
5734
5283
 
5735
- var Options_1 = __webpack_require__(16);
5284
+ var Options_1 = __webpack_require__(17);
5736
5285
  /**
5737
5286
  * Hook that evaluates the DSL for subset of a viz's options needed to determine
5738
5287
  * its x and y fields as well as the types of all its fields.
@@ -5833,7 +5382,7 @@ exports.default = useGetXAndYFields;
5833
5382
 
5834
5383
  /***/ }),
5835
5384
 
5836
- /***/ 68:
5385
+ /***/ 67:
5837
5386
  /***/ (function(module, exports, __webpack_require__) {
5838
5387
 
5839
5388
  "use strict";
@@ -5844,7 +5393,7 @@ Object.defineProperty(exports, "__esModule", {
5844
5393
  });
5845
5394
  exports.getFeatureFlag = void 0;
5846
5395
 
5847
- var FeatureFlags_1 = __webpack_require__(69);
5396
+ var FeatureFlags_1 = __webpack_require__(68);
5848
5397
 
5849
5398
  var getFeatureFlag = function getFeatureFlag(context, flagName) {
5850
5399
  // look for feature flag in context first
@@ -5869,70 +5418,103 @@ exports.getFeatureFlag = getFeatureFlag;
5869
5418
 
5870
5419
  /***/ }),
5871
5420
 
5872
- /***/ 69:
5421
+ /***/ 68:
5873
5422
  /***/ (function(module, exports) {
5874
5423
 
5875
5424
  module.exports = require("@splunk/visualization-context/FeatureFlags");
5876
5425
 
5877
5426
  /***/ }),
5878
5427
 
5879
- /***/ 7:
5428
+ /***/ 69:
5880
5429
  /***/ (function(module, exports) {
5881
5430
 
5882
- module.exports = require("@babel/runtime/helpers/slicedToArray");
5431
+ module.exports = require("@babel/runtime/helpers/extends");
5883
5432
 
5884
5433
  /***/ }),
5885
5434
 
5886
- /***/ 70:
5435
+ /***/ 7:
5887
5436
  /***/ (function(module, exports) {
5888
5437
 
5889
- module.exports = require("@babel/runtime/helpers/extends");
5438
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
5890
5439
 
5891
5440
  /***/ }),
5892
5441
 
5893
- /***/ 71:
5442
+ /***/ 70:
5894
5443
  /***/ (function(module, exports) {
5895
5444
 
5896
5445
  module.exports = require("@splunk/visualizations-shared/colorConstants");
5897
5446
 
5898
5447
  /***/ }),
5899
5448
 
5900
- /***/ 72:
5449
+ /***/ 71:
5901
5450
  /***/ (function(module, exports) {
5902
5451
 
5903
5452
  module.exports = require("@splunk/visualization-icons/placeholders");
5904
5453
 
5905
5454
  /***/ }),
5906
5455
 
5907
- /***/ 74:
5456
+ /***/ 72:
5908
5457
  /***/ (function(module, exports) {
5909
5458
 
5910
5459
  module.exports = require("@splunk/visualization-icons");
5911
5460
 
5912
5461
  /***/ }),
5913
5462
 
5914
- /***/ 8:
5463
+ /***/ 79:
5915
5464
  /***/ (function(module, exports) {
5916
5465
 
5917
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
5466
+ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
5918
5467
 
5919
5468
  /***/ }),
5920
5469
 
5921
- /***/ 81:
5922
- /***/ (function(module, exports) {
5470
+ /***/ 8:
5471
+ /***/ (function(module, exports, __webpack_require__) {
5923
5472
 
5924
- module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
5473
+ "use strict";
5474
+
5475
+
5476
+ Object.defineProperty(exports, "__esModule", {
5477
+ value: true
5478
+ });
5479
+ exports.VizBehavior = void 0;
5480
+ var VizBehavior;
5481
+
5482
+ (function (VizBehavior) {
5483
+ /**
5484
+ * Dynamic Options Behavior.
5485
+ * This allows visualization options to be powered by data
5486
+ *
5487
+ * **Example**
5488
+ *
5489
+ * sparklineValues: ">primary|seriesByIndex(0)"
5490
+ * would configure sparklineValues with an array of data points
5491
+ * coming from the first series in the primary datasource
5492
+ *
5493
+ */
5494
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
5495
+ VizBehavior["EVENTS"] = "events";
5496
+ VizBehavior["DOWNSAMPLING"] = "downsampling";
5497
+ /**
5498
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
5499
+ * missing.
5500
+ * @type {string}
5501
+ */
5502
+
5503
+ VizBehavior["PLACEHOLDER"] = "placeholder";
5504
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
5505
+ VizBehavior["TRELLIS"] = "trellis";
5506
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
5925
5507
 
5926
5508
  /***/ }),
5927
5509
 
5928
- /***/ 84:
5510
+ /***/ 82:
5929
5511
  /***/ (function(module, exports) {
5930
5512
 
5931
5513
  module.exports = require("@splunk/react-ui/Popover");
5932
5514
 
5933
5515
  /***/ }),
5934
5516
 
5935
- /***/ 85:
5517
+ /***/ 83:
5936
5518
  /***/ (function(module, exports) {
5937
5519
 
5938
5520
  module.exports = require("@babel/runtime/helpers/getPrototypeOf");
@@ -5942,18 +5524,18 @@ module.exports = require("@babel/runtime/helpers/getPrototypeOf");
5942
5524
  /***/ 9:
5943
5525
  /***/ (function(module, exports) {
5944
5526
 
5945
- module.exports = require("@babel/runtime/helpers/defineProperty");
5527
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
5946
5528
 
5947
5529
  /***/ }),
5948
5530
 
5949
- /***/ 94:
5531
+ /***/ 92:
5950
5532
  /***/ (function(module, exports) {
5951
5533
 
5952
5534
  module.exports = require("@babel/runtime/helpers/inherits");
5953
5535
 
5954
5536
  /***/ }),
5955
5537
 
5956
- /***/ 95:
5538
+ /***/ 93:
5957
5539
  /***/ (function(module, exports) {
5958
5540
 
5959
5541
  module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");