@splunk/visualizations-shared 26.3.0 → 26.4.1
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/Downloader.js +2 -2
- package/Downloader.js.map +1 -1
- package/FileDownloader.js +6 -6
- package/FileDownloader.js.map +1 -1
- package/JSONSchemaUtils.js +4 -4
- package/JSONSchemaUtils.js.map +1 -1
- package/Message.js +4 -4
- package/Message.js.map +1 -1
- package/RemoteIcon.js +16 -18
- package/RemoteIcon.js.map +1 -1
- package/RemoteImage.js +16 -18
- package/RemoteImage.js.map +1 -1
- package/SanitizeProps.js +26 -82
- package/SanitizeProps.js.map +1 -1
- package/SizeAwareWrapper.js +4 -4
- package/SizeAwareWrapper.js.map +1 -1
- package/SizeAwareWrapperDeprecated.js +11 -11
- package/SizeAwareWrapperDeprecated.js.map +1 -1
- package/VisualizationDocPage.js +79 -60
- package/VisualizationDocPage.js.map +1 -1
- package/colorConstants.js +4 -4
- package/colorConstants.js.map +1 -1
- package/colorUtils.js +22 -78
- package/colorUtils.js.map +1 -1
- package/configUtils.js +2 -2
- package/configUtils.js.map +1 -1
- package/console.js +8 -8
- package/console.js.map +1 -1
- package/dataSourceUtils.js +2 -2
- package/dataSourceUtils.js.map +1 -1
- package/domUtils.js +4 -4
- package/domUtils.js.map +1 -1
- package/hocUtils.js +11 -120
- package/hocUtils.js.map +1 -1
- package/i18n.js +4 -4
- package/i18n.js.map +1 -1
- package/iconUtils.js +2 -2
- package/iconUtils.js.map +1 -1
- package/mapUtils.js +12 -40
- package/mapUtils.js.map +1 -1
- package/numberUtils.js +6 -6
- package/numberUtils.js.map +1 -1
- package/package.json +9 -8
- package/previewVizMessage.js +2 -2
- package/previewVizMessage.js.map +1 -1
- package/propUtils.js +4 -4
- package/propUtils.js.map +1 -1
- package/schemaUtils.js +10 -10
- package/schemaUtils.js.map +1 -1
- package/simpleXMLOptions.js +4 -4
- package/simpleXMLOptions.js.map +1 -1
- package/testHelper.js +2 -2
- package/testHelper.js.map +1 -1
- package/themeUtils.js +6 -6
- package/themeUtils.js.map +1 -1
- package/trellisUtils.js +4 -4
- package/trellisUtils.js.map +1 -1
- package/namedColors.js +0 -110
- package/namedColors.js.map +0 -1
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 48);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -120,21 +120,14 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
123
|
+
/***/ 3:
|
|
124
124
|
/***/ (function(module, exports) {
|
|
125
125
|
|
|
126
126
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
127
127
|
|
|
128
128
|
/***/ }),
|
|
129
129
|
|
|
130
|
-
/***/
|
|
131
|
-
/***/ (function(module, exports) {
|
|
132
|
-
|
|
133
|
-
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
134
|
-
|
|
135
|
-
/***/ }),
|
|
136
|
-
|
|
137
|
-
/***/ 50:
|
|
130
|
+
/***/ 48:
|
|
138
131
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
139
132
|
|
|
140
133
|
"use strict";
|
|
@@ -149,7 +142,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
149
142
|
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);
|
|
150
143
|
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
|
|
151
144
|
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
|
|
152
|
-
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
145
|
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
|
|
153
146
|
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
|
|
154
147
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
|
|
155
148
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__);
|
|
@@ -329,6 +322,13 @@ SizeAwareWrapperDeprecated.defaultProps = {
|
|
|
329
322
|
|
|
330
323
|
/***/ }),
|
|
331
324
|
|
|
325
|
+
/***/ 5:
|
|
326
|
+
/***/ (function(module, exports) {
|
|
327
|
+
|
|
328
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
329
|
+
|
|
330
|
+
/***/ }),
|
|
331
|
+
|
|
332
332
|
/***/ 6:
|
|
333
333
|
/***/ (function(module, exports) {
|
|
334
334
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///./src/SizeAwareWrapperDeprecated.jsx","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\""],"names":["styles","position","width","height","visibility","display","SizeAwareWrapperDeprecated","parentElement","entries","entry","children","resizableElement","window","observe","unobserve","PureComponent","T"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,uC;;;;;;;ACAA,kC;;;;;;;ACAA,yE;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AAEA,IAAMA,MAAM,GAAG;AACXC,UAAQ,EADG;AAEXC,OAAK,EA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C,mBAFG,uBAES,CAAE;AAFX,SAAP;AAIH;;AACD,aAAO,mBAAmB,KAA1B,YAAO,CAAP;AACH;;;WAsBD,kBAAS;AAAA;;AACL,0BACI,2DAAC,4CAAD,8BACI;AACI,WAAG,EADP;AAEI,aAAK,EAFT;AAGI,WAAG,EAAE,iBAAM;AACP,gBAAI,CAAJ;AACH;AALL,QADJ,EAQK,KATT,cASS,EARL,CADJ;AAYH;;;;EA7EoCC,mD;;AAgFzCT,0BAA0B,CAA1BA,YAAuC;AACnCI,UAAQ,EAAEM,iDAAC,CADwB,IAClB;;AADkB,CAAvCV;AAIAA,0BAA0B,CAA1BA,eAA0C;AACtCI,UAAQ,EAAE;AAD4B,CAA1CJ;AAIA,2F;;;;;;;ACnGA,kE;;;;;;;ACAA,+D;;;;;;;ACAA,4D;;;;;;;ACAA,6E","file":"SizeAwareWrapperDeprecated.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 48);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","import React, { PureComponent } from 'react';\nimport T from 'prop-types';\n\nconst styles = {\n position: 'absolute',\n width: 0,\n height: 0,\n visibility: 'hidden',\n display: 'none',\n};\n\nclass SizeAwareWrapperDeprecated extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n width: null,\n height: null,\n };\n this.animationFrameID = null;\n this.ro = this.getResizeObserver();\n }\n\n componentDidMount() {\n const resizableElement = this.getElement();\n if (resizableElement) {\n this.ro.observe(resizableElement);\n }\n }\n\n componentWillUnmount() {\n const resizableElement = this.getElement();\n if (resizableElement) {\n this.ro.unobserve(resizableElement);\n }\n if (window && this.animationFrameID) {\n window.cancelAnimationFrame(this.animationFrameID);\n }\n }\n\n getElement = () => {\n // it listens on the size of its parent elemnt\n const parentElement = this.el && this.el.parentElement;\n return parentElement;\n };\n\n getResizeObserver() {\n if (typeof ResizeObserver !== 'function') {\n return {\n observe() {},\n unobserve() {},\n };\n }\n return new ResizeObserver(this.handleResize);\n }\n\n handleResize = entries => {\n entries.forEach(entry => {\n const { width, height } = entry.contentRect;\n // use requestAnimationFrame to make sure width/height is updated in time\n this.animationFrameID = window.requestAnimationFrame(() => {\n this.setState({ width, height });\n });\n });\n };\n\n renderChildren = () => {\n // expect children to be a function\n const { width, height } = this.state;\n const { children } = this.props;\n if (width != null && height != null && typeof children === 'function') {\n return children({ width, height });\n }\n return null;\n };\n\n render() {\n return (\n <React.Fragment>\n <div\n key=\"resize-detector\"\n style={styles}\n ref={el => {\n this.el = el;\n }}\n />\n {this.renderChildren()}\n </React.Fragment>\n );\n }\n}\n\nSizeAwareWrapperDeprecated.propTypes = {\n children: T.any, // eslint-disable-line react/forbid-prop-types\n};\n\nSizeAwareWrapperDeprecated.defaultProps = {\n children: null,\n};\n\nexport default SizeAwareWrapperDeprecated;\n","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");"],"sourceRoot":""}
|
package/VisualizationDocPage.js
CHANGED
|
@@ -87,94 +87,135 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 49);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
|
-
/******/ (
|
|
94
|
-
|
|
95
|
-
/***/ 0:
|
|
93
|
+
/******/ ([
|
|
94
|
+
/* 0 */
|
|
96
95
|
/***/ (function(module, exports) {
|
|
97
96
|
|
|
98
97
|
module.exports = require("prop-types");
|
|
99
98
|
|
|
100
99
|
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 1:
|
|
100
|
+
/* 1 */
|
|
103
101
|
/***/ (function(module, exports) {
|
|
104
102
|
|
|
105
103
|
module.exports = require("react");
|
|
106
104
|
|
|
107
105
|
/***/ }),
|
|
108
|
-
|
|
109
|
-
/***/ 11:
|
|
106
|
+
/* 2 */
|
|
110
107
|
/***/ (function(module, exports) {
|
|
111
108
|
|
|
112
|
-
module.exports = require("@babel/runtime/helpers/
|
|
109
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
113
110
|
|
|
114
111
|
/***/ }),
|
|
115
|
-
|
|
116
|
-
/***/ 16:
|
|
112
|
+
/* 3 */
|
|
117
113
|
/***/ (function(module, exports) {
|
|
118
114
|
|
|
119
|
-
module.exports = require("@
|
|
115
|
+
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
120
116
|
|
|
121
117
|
/***/ }),
|
|
122
|
-
|
|
123
|
-
/***/ 2:
|
|
118
|
+
/* 4 */
|
|
124
119
|
/***/ (function(module, exports) {
|
|
125
120
|
|
|
126
|
-
module.exports = require("
|
|
121
|
+
module.exports = require("lodash");
|
|
127
122
|
|
|
128
123
|
/***/ }),
|
|
129
|
-
|
|
130
|
-
/***/ 3:
|
|
124
|
+
/* 5 */
|
|
131
125
|
/***/ (function(module, exports) {
|
|
132
126
|
|
|
133
|
-
module.exports = require("
|
|
127
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
134
128
|
|
|
135
129
|
/***/ }),
|
|
136
|
-
|
|
137
|
-
/***/ 35:
|
|
130
|
+
/* 6 */
|
|
138
131
|
/***/ (function(module, exports) {
|
|
139
132
|
|
|
140
|
-
module.exports = require("@babel/runtime/helpers/
|
|
133
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
141
134
|
|
|
142
135
|
/***/ }),
|
|
143
|
-
|
|
144
|
-
/***/ 36:
|
|
136
|
+
/* 7 */
|
|
145
137
|
/***/ (function(module, exports) {
|
|
146
138
|
|
|
147
|
-
module.exports = require("@
|
|
139
|
+
module.exports = require("@babel/runtime/helpers/inherits");
|
|
148
140
|
|
|
149
141
|
/***/ }),
|
|
150
|
-
|
|
151
|
-
/***/ 37:
|
|
142
|
+
/* 8 */
|
|
152
143
|
/***/ (function(module, exports) {
|
|
153
144
|
|
|
154
|
-
module.exports = require("@
|
|
145
|
+
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
155
146
|
|
|
156
147
|
/***/ }),
|
|
148
|
+
/* 9 */,
|
|
149
|
+
/* 10 */,
|
|
150
|
+
/* 11 */
|
|
151
|
+
/***/ (function(module, exports) {
|
|
152
|
+
|
|
153
|
+
module.exports = require("@babel/runtime/helpers/assertThisInitialized");
|
|
157
154
|
|
|
158
|
-
/***/
|
|
155
|
+
/***/ }),
|
|
156
|
+
/* 12 */,
|
|
157
|
+
/* 13 */,
|
|
158
|
+
/* 14 */,
|
|
159
|
+
/* 15 */,
|
|
160
|
+
/* 16 */
|
|
159
161
|
/***/ (function(module, exports) {
|
|
160
162
|
|
|
161
|
-
module.exports = require("@
|
|
163
|
+
module.exports = require("@splunk/react-docs/DockingTabBar");
|
|
162
164
|
|
|
163
165
|
/***/ }),
|
|
166
|
+
/* 17 */,
|
|
167
|
+
/* 18 */,
|
|
168
|
+
/* 19 */,
|
|
169
|
+
/* 20 */,
|
|
170
|
+
/* 21 */,
|
|
171
|
+
/* 22 */,
|
|
172
|
+
/* 23 */,
|
|
173
|
+
/* 24 */,
|
|
174
|
+
/* 25 */,
|
|
175
|
+
/* 26 */,
|
|
176
|
+
/* 27 */,
|
|
177
|
+
/* 28 */,
|
|
178
|
+
/* 29 */,
|
|
179
|
+
/* 30 */,
|
|
180
|
+
/* 31 */,
|
|
181
|
+
/* 32 */,
|
|
182
|
+
/* 33 */
|
|
183
|
+
/***/ (function(module, exports) {
|
|
184
|
+
|
|
185
|
+
module.exports = require("@babel/runtime/helpers/extends");
|
|
164
186
|
|
|
165
|
-
/***/
|
|
187
|
+
/***/ }),
|
|
188
|
+
/* 34 */
|
|
166
189
|
/***/ (function(module, exports) {
|
|
167
190
|
|
|
168
|
-
module.exports = require("@
|
|
191
|
+
module.exports = require("@splunk/react-docs/API");
|
|
169
192
|
|
|
170
193
|
/***/ }),
|
|
194
|
+
/* 35 */
|
|
195
|
+
/***/ (function(module, exports) {
|
|
171
196
|
|
|
172
|
-
|
|
197
|
+
module.exports = require("@splunk/visualizations-shared/previewVizMessage");
|
|
198
|
+
|
|
199
|
+
/***/ }),
|
|
200
|
+
/* 36 */,
|
|
201
|
+
/* 37 */,
|
|
202
|
+
/* 38 */,
|
|
203
|
+
/* 39 */,
|
|
204
|
+
/* 40 */,
|
|
205
|
+
/* 41 */,
|
|
206
|
+
/* 42 */,
|
|
207
|
+
/* 43 */,
|
|
208
|
+
/* 44 */,
|
|
209
|
+
/* 45 */,
|
|
210
|
+
/* 46 */,
|
|
211
|
+
/* 47 */,
|
|
212
|
+
/* 48 */,
|
|
213
|
+
/* 49 */
|
|
173
214
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
174
215
|
|
|
175
216
|
"use strict";
|
|
176
217
|
__webpack_require__.r(__webpack_exports__);
|
|
177
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
218
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33);
|
|
178
219
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
179
220
|
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
180
221
|
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
|
|
@@ -186,7 +227,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
186
227
|
/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
|
|
187
228
|
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
|
|
188
229
|
/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
|
|
189
|
-
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
230
|
+
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
190
231
|
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
|
|
191
232
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2);
|
|
192
233
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__);
|
|
@@ -194,13 +235,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
194
235
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
|
195
236
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(0);
|
|
196
237
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
197
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
238
|
+
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4);
|
|
198
239
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
|
|
199
240
|
/* harmony import */ var _splunk_react_docs_DockingTabBar__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(16);
|
|
200
241
|
/* harmony import */ var _splunk_react_docs_DockingTabBar__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_docs_DockingTabBar__WEBPACK_IMPORTED_MODULE_11__);
|
|
201
|
-
/* harmony import */ var _splunk_react_docs_API__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
242
|
+
/* harmony import */ var _splunk_react_docs_API__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
|
|
202
243
|
/* harmony import */ var _splunk_react_docs_API__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_docs_API__WEBPACK_IMPORTED_MODULE_12__);
|
|
203
|
-
/* harmony import */ var _splunk_visualizations_shared_previewVizMessage__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
244
|
+
/* harmony import */ var _splunk_visualizations_shared_previewVizMessage__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
|
|
204
245
|
/* harmony import */ var _splunk_visualizations_shared_previewVizMessage__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_previewVizMessage__WEBPACK_IMPORTED_MODULE_13__);
|
|
205
246
|
|
|
206
247
|
|
|
@@ -463,28 +504,6 @@ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()(Com
|
|
|
463
504
|
|
|
464
505
|
/* harmony default export */ __webpack_exports__["default"] = (ComponentPage);
|
|
465
506
|
|
|
466
|
-
/***/ }),
|
|
467
|
-
|
|
468
|
-
/***/ 6:
|
|
469
|
-
/***/ (function(module, exports) {
|
|
470
|
-
|
|
471
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
472
|
-
|
|
473
|
-
/***/ }),
|
|
474
|
-
|
|
475
|
-
/***/ 7:
|
|
476
|
-
/***/ (function(module, exports) {
|
|
477
|
-
|
|
478
|
-
module.exports = require("@babel/runtime/helpers/inherits");
|
|
479
|
-
|
|
480
|
-
/***/ }),
|
|
481
|
-
|
|
482
|
-
/***/ 8:
|
|
483
|
-
/***/ (function(module, exports) {
|
|
484
|
-
|
|
485
|
-
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
486
|
-
|
|
487
507
|
/***/ })
|
|
488
|
-
|
|
489
|
-
/******/ });
|
|
508
|
+
/******/ ]);
|
|
490
509
|
//# sourceMappingURL=VisualizationDocPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@splunk/react-docs/DockingTabBar\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/extends\"","webpack:///external \"@splunk/react-docs/API\"","webpack:///external \"@splunk/visualizations-shared/previewVizMessage\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///./src/VisualizationDocPage.jsx","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\""],"names":["ComponentPage","args","selectedTabId","activeSection","top","window","target","currentSection","encodingSection","optionSection","overviewSection","conceptsSection","examplesSection","eventSection","themeSection","createComponentURL","headerOffset","sourceURL","basePageProps","pick","body","handleSectionChange","padding","marginTop","handleBodyMount","Component","T","dependsOnSplunk","status","description","title","isRequired"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,uC;;;;;;;ACAA,kC;;;;;;;ACAA,yE;;;;;;;ACAA,6D;;;;;;;ACAA,kE;;;;;;;ACAA,mC;;;;;;;ACAA,2D;;;;;;;ACAA,mD;;;;;;;ACAA,4E;;;;;;;ACAA,kE;;;;;;;ACAA,kE;;;;;;;;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;AACQE,QAAM,EAAEF,iDAAC,CAPM;AAQfG,aAAW,EAAEH,iDAAC,CARC;;AASf;AACR;AACA;AACQhB,iBAAe,EAAEgB,iDAAC,CAZH;;AAaf;AACR;AACA;AACQf,iBAAe,EAAEe,iDAAC,CAhBH;;AAiBf;AACR;AACA;AACQd,iBAAe,EAAEc,iDAAC,CAADA,KApBF;;AAqBf;AACR;AACA;AACQjB,eAAa,EAAEiB,iDAAC,CAADA,KAxBA;;AAyBf;AACR;AACA;AACQlB,iBAAe,EAAEkB,iDAAC,CA5BH;;AA6Bf;AACR;AACA;AACQb,cAAY,EAAEa,iDAAC,CAhCA;;AAiCf;AACR;AACA;AACQZ,cAAY,EAAEY,iDAAC,CApCA;AAqCfV,cAAY,EAAEU,iDAAC,CArCA;;AAsCf;AACR;AACA;AACQT,WAAS,EAAES,iDAAC,CAzCG;AA0CfI,OAAK,EAAEJ,iDAAC,CAADA,OAASK;AA1CD,C;;6EAHjB/B,a,kBAgDoB;AAClBe,oBADkB,gCACG,CADH;AAElBC,cAAY,EAAE;AAFI,C;;AA+G1B,8E;;;;;;;ACtKA,+D;;;;;;;ACAA,4D;;;;;;;ACAA,6E","file":"VisualizationDocPage.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 51);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"@splunk/react-docs/DockingTabBar\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@splunk/react-docs/API\");","module.exports = require(\"@splunk/visualizations-shared/previewVizMessage\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","import React, { Component } from 'react';\nimport T from 'prop-types';\nimport { pick } from 'lodash';\nimport DockingTabBar, { Tab } from '@splunk/react-docs/DockingTabBar';\nimport APIPage from '@splunk/react-docs/API';\nimport previewVizMessage from '@splunk/visualizations-shared/previewVizMessage';\n\nclass ComponentPage extends Component {\n static currentSection = 'overview';\n\n static propTypes = {\n createComponentURL: T.func,\n dependsOnSplunk: T.bool,\n /**\n * If status is `preview`, a message is prepended to the description reflecting this visualization is new\n * and minor changes may be made soon.\n */\n status: T.string,\n description: T.string,\n /**\n * The \"overview\" section of the doc page.\n */\n overviewSection: T.node,\n /**\n * The \"concepts\" section of the doc page.\n */\n conceptsSection: T.node,\n /**\n * The \"examples\" section of the doc page.\n */\n examplesSection: T.node.isRequired,\n /**\n * The \"options\" section of the doc page.\n */\n optionSection: T.node.isRequired,\n /**\n * The \"encoding\" section of the doc page.\n */\n encodingSection: T.node,\n /**\n * The \"event\" section of the doc page.\n */\n eventSection: T.node,\n /**\n * The \"theme\" section of the doc page\n */\n themeSection: T.node,\n headerOffset: T.number,\n /**\n * Overrides the (otherwise automatically generated) source code url.\n */\n sourceURL: T.string,\n title: T.string.isRequired,\n };\n\n static defaultProps = {\n createComponentURL() {},\n headerOffset: 0,\n };\n\n constructor(...args) {\n super(...args);\n this.state = { activeSection: ComponentPage.currentSection };\n }\n\n handleBodyMount = el => {\n this.bodyEl = el;\n };\n\n handleSectionChange = (e, { selectedTabId }) => {\n ComponentPage.currentSection = selectedTabId;\n this.setState({ activeSection: selectedTabId }, () => {\n // After the new section loads, scroll to the top of the section.\n const { top } = this.bodyEl.getBoundingClientRect();\n if (top < window.scrollY) {\n const target = top + window.scrollY - 90;\n window.scroll(0, target);\n }\n });\n };\n\n renderBody() {\n const {\n encodingSection,\n optionSection,\n overviewSection,\n conceptsSection,\n examplesSection,\n eventSection,\n themeSection,\n } = this.props;\n const { activeSection } = this.state;\n switch (activeSection) {\n case 'concepts':\n return conceptsSection;\n case 'overview':\n return overviewSection;\n case 'examples':\n return examplesSection;\n case 'encoding':\n return encodingSection;\n case 'option':\n return optionSection;\n case 'event':\n return eventSection;\n case 'theme':\n return themeSection;\n default:\n return null;\n }\n }\n\n render() {\n const {\n createComponentURL,\n conceptsSection,\n overviewSection,\n examplesSection,\n encodingSection,\n eventSection,\n themeSection,\n headerOffset,\n sourceURL,\n } = this.props;\n const basePageProps = pick(this.props, 'dependsOnSplunk', 'description', 'title');\n\n if (this.props.status === 'preview') {\n basePageProps.description = `#### ${previewVizMessage} \\n ${basePageProps.description || ''}`;\n }\n\n let { activeSection } = this.state;\n let body = this.renderBody();\n\n if (!body) {\n body = examplesSection;\n activeSection = 'examples';\n }\n return (\n <APIPage sourceURL={sourceURL || createComponentURL(window.location.pathname)} {...basePageProps}>\n <DockingTabBar\n activeTabId={activeSection}\n offset={headerOffset}\n onChange={this.handleSectionChange}\n >\n {overviewSection && <Tab label=\"Overview\" tabId=\"overview\" />}\n <Tab label=\"Examples\" tabId=\"examples\" />\n {encodingSection && <Tab label=\"Encoding\" tabId=\"encoding\" />}\n <Tab label=\"Options\" tabId=\"option\" />\n {eventSection && <Tab label=\"Events\" tabId=\"event\" />}\n {themeSection && <Tab label=\"Themes\" tabId=\"theme\" />}\n {conceptsSection && <Tab label=\"Concepts\" tabId=\"concepts\" />}\n </DockingTabBar>\n <div\n style={{\n padding: '0 30px 30px',\n marginTop: '20px',\n }}\n ref={this.handleBodyMount}\n >\n {body}\n </div>\n </APIPage>\n );\n }\n}\n\nexport default ComponentPage;\n","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@splunk/react-docs/DockingTabBar\"","webpack:///external \"@babel/runtime/helpers/extends\"","webpack:///external \"@splunk/react-docs/API\"","webpack:///external \"@splunk/visualizations-shared/previewVizMessage\"","webpack:///./src/VisualizationDocPage.jsx"],"names":["ComponentPage","args","selectedTabId","activeSection","top","window","target","currentSection","encodingSection","optionSection","overviewSection","conceptsSection","examplesSection","eventSection","themeSection","createComponentURL","headerOffset","sourceURL","basePageProps","pick","body","handleSectionChange","padding","marginTop","handleBodyMount","Component","T","dependsOnSplunk","status","description","title","isRequired"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QAC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eAcI;AACI,aAAK,EAAE;AACHW,iBAAO,EADJ;AAEHC,mBAAS,EAAE;AAFR,SADX;AAKI,WAAG,EAAE,KAAKC;AALd,SAfR,IAeQ,CAdJ,CADJ;AA0BH;;;;EA5JuBC,+C;;6EAAtBzB,a,oBACsB,U;;6EADtBA,a,eAGiB;AACfe,oBAAkB,EAAEW,iDAAC,CADN;AAEfC,iBAAe,EAAED,iDAAC,CAFH;;AAGf;AACR;AACA;AACA;AACQE,QAAM,EAAEF,iDAAC,CAPM;AAQfG,aAAW,EAAEH,iDAAC,CARC;;AASf;AACR;AACA;AACQhB,iBAAe,EAAEgB,iDAAC,CAZH;;AAaf;AACR;AACA;AACQf,iBAAe,EAAEe,iDAAC,CAhBH;;AAiBf;AACR;AACA;AACQd,iBAAe,EAAEc,iDAAC,CAADA,KApBF;;AAqBf;AACR;AACA;AACQjB,eAAa,EAAEiB,iDAAC,CAADA,KAxBA;;AAyBf;AACR;AACA;AACQlB,iBAAe,EAAEkB,iDAAC,CA5BH;;AA6Bf;AACR;AACA;AACQb,cAAY,EAAEa,iDAAC,CAhCA;;AAiCf;AACR;AACA;AACQZ,cAAY,EAAEY,iDAAC,CApCA;AAqCfV,cAAY,EAAEU,iDAAC,CArCA;;AAsCf;AACR;AACA;AACQT,WAAS,EAAES,iDAAC,CAzCG;AA0CfI,OAAK,EAAEJ,iDAAC,CAADA,OAASK;AA1CD,C;;6EAHjB/B,a,kBAgDoB;AAClBe,oBADkB,gCACG,CADH;AAElBC,cAAY,EAAE;AAFI,C;;AA+G1B,8E","file":"VisualizationDocPage.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 49);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"@splunk/react-docs/DockingTabBar\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@splunk/react-docs/API\");","module.exports = require(\"@splunk/visualizations-shared/previewVizMessage\");","import React, { Component } from 'react';\nimport T from 'prop-types';\nimport { pick } from 'lodash';\nimport DockingTabBar, { Tab } from '@splunk/react-docs/DockingTabBar';\nimport APIPage from '@splunk/react-docs/API';\nimport previewVizMessage from '@splunk/visualizations-shared/previewVizMessage';\n\nclass ComponentPage extends Component {\n static currentSection = 'overview';\n\n static propTypes = {\n createComponentURL: T.func,\n dependsOnSplunk: T.bool,\n /**\n * If status is `preview`, a message is prepended to the description reflecting this visualization is new\n * and minor changes may be made soon.\n */\n status: T.string,\n description: T.string,\n /**\n * The \"overview\" section of the doc page.\n */\n overviewSection: T.node,\n /**\n * The \"concepts\" section of the doc page.\n */\n conceptsSection: T.node,\n /**\n * The \"examples\" section of the doc page.\n */\n examplesSection: T.node.isRequired,\n /**\n * The \"options\" section of the doc page.\n */\n optionSection: T.node.isRequired,\n /**\n * The \"encoding\" section of the doc page.\n */\n encodingSection: T.node,\n /**\n * The \"event\" section of the doc page.\n */\n eventSection: T.node,\n /**\n * The \"theme\" section of the doc page\n */\n themeSection: T.node,\n headerOffset: T.number,\n /**\n * Overrides the (otherwise automatically generated) source code url.\n */\n sourceURL: T.string,\n title: T.string.isRequired,\n };\n\n static defaultProps = {\n createComponentURL() {},\n headerOffset: 0,\n };\n\n constructor(...args) {\n super(...args);\n this.state = { activeSection: ComponentPage.currentSection };\n }\n\n handleBodyMount = el => {\n this.bodyEl = el;\n };\n\n handleSectionChange = (e, { selectedTabId }) => {\n ComponentPage.currentSection = selectedTabId;\n this.setState({ activeSection: selectedTabId }, () => {\n // After the new section loads, scroll to the top of the section.\n const { top } = this.bodyEl.getBoundingClientRect();\n if (top < window.scrollY) {\n const target = top + window.scrollY - 90;\n window.scroll(0, target);\n }\n });\n };\n\n renderBody() {\n const {\n encodingSection,\n optionSection,\n overviewSection,\n conceptsSection,\n examplesSection,\n eventSection,\n themeSection,\n } = this.props;\n const { activeSection } = this.state;\n switch (activeSection) {\n case 'concepts':\n return conceptsSection;\n case 'overview':\n return overviewSection;\n case 'examples':\n return examplesSection;\n case 'encoding':\n return encodingSection;\n case 'option':\n return optionSection;\n case 'event':\n return eventSection;\n case 'theme':\n return themeSection;\n default:\n return null;\n }\n }\n\n render() {\n const {\n createComponentURL,\n conceptsSection,\n overviewSection,\n examplesSection,\n encodingSection,\n eventSection,\n themeSection,\n headerOffset,\n sourceURL,\n } = this.props;\n const basePageProps = pick(this.props, 'dependsOnSplunk', 'description', 'title');\n\n if (this.props.status === 'preview') {\n basePageProps.description = `#### ${previewVizMessage} \\n ${basePageProps.description || ''}`;\n }\n\n let { activeSection } = this.state;\n let body = this.renderBody();\n\n if (!body) {\n body = examplesSection;\n activeSection = 'examples';\n }\n return (\n <APIPage sourceURL={sourceURL || createComponentURL(window.location.pathname)} {...basePageProps}>\n <DockingTabBar\n activeTabId={activeSection}\n offset={headerOffset}\n onChange={this.handleSectionChange}\n >\n {overviewSection && <Tab label=\"Overview\" tabId=\"overview\" />}\n <Tab label=\"Examples\" tabId=\"examples\" />\n {encodingSection && <Tab label=\"Encoding\" tabId=\"encoding\" />}\n <Tab label=\"Options\" tabId=\"option\" />\n {eventSection && <Tab label=\"Events\" tabId=\"event\" />}\n {themeSection && <Tab label=\"Themes\" tabId=\"theme\" />}\n {conceptsSection && <Tab label=\"Concepts\" tabId=\"concepts\" />}\n </DockingTabBar>\n <div\n style={{\n padding: '0 30px 30px',\n marginTop: '20px',\n }}\n ref={this.handleBodyMount}\n >\n {body}\n </div>\n </APIPage>\n );\n }\n}\n\nexport default ComponentPage;\n"],"sourceRoot":""}
|
package/colorConstants.js
CHANGED
|
@@ -87,19 +87,19 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 50);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
94
94
|
|
|
95
|
-
/***/
|
|
95
|
+
/***/ 36:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
98
|
module.exports = require("@splunk/themes/getTheme");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
|
-
/***/
|
|
102
|
+
/***/ 50:
|
|
103
103
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
104
104
|
|
|
105
105
|
"use strict";
|
|
@@ -116,7 +116,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
116
116
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RADIAL_STROKE_COLOR", function() { return RADIAL_STROKE_COLOR; });
|
|
117
117
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RADIAL_SEVERITY_COLORS", function() { return RADIAL_SEVERITY_COLORS; });
|
|
118
118
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COLOR_EDITOR_PALETTE", function() { return COLOR_EDITOR_PALETTE; });
|
|
119
|
-
/* harmony import */ var _splunk_themes_getTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
119
|
+
/* harmony import */ var _splunk_themes_getTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
|
|
120
120
|
/* harmony import */ var _splunk_themes_getTheme__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_themes_getTheme__WEBPACK_IMPORTED_MODULE_0__);
|
|
121
121
|
|
|
122
122
|
var themeEnterprise = _splunk_themes_getTheme__WEBPACK_IMPORTED_MODULE_0___default()({
|
package/colorConstants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/themes/getTheme\"","webpack:///./src/colorConstants.js"],"names":["themeEnterprise","getTheme","family","colorScheme","density","DELTA_GREEN","DELTA_RED","SEMANTIC_SUCCESS","SEMANTIC_WARNING","SEMANTIC_ERROR","SPARKLINE_FILL_COLOR","SPARKLINE_STROKE_COLOR","SPARKLINE_WHITE","RADIAL_BACKGROUND_COLOR","RADIAL_STROKE_COLOR","RADIAL_SEVERITY_COLORS","none","background","stroke","gray60","low","successColorD50","guarded","infoColorD50","elevated","warningColorD50","high","alertColorD50","severe","errorColorD50","COLOR_EDITOR_PALETTE"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA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JX,cAAU,EAAEjB,eAAe,CADvB;AAEJkB,UAAM,EAAElB,eAAe,CAAC6B;AAFpB;AArB0B,CAA/B;AA2BA,IAAMC,oBAAoB,GAAG,qLAA7B,SAA6B,CAA7B,C","file":"colorConstants.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s =
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/themes/getTheme\"","webpack:///./src/colorConstants.js"],"names":["themeEnterprise","getTheme","family","colorScheme","density","DELTA_GREEN","DELTA_RED","SEMANTIC_SUCCESS","SEMANTIC_WARNING","SEMANTIC_ERROR","SPARKLINE_FILL_COLOR","SPARKLINE_STROKE_COLOR","SPARKLINE_WHITE","RADIAL_BACKGROUND_COLOR","RADIAL_STROKE_COLOR","RADIAL_SEVERITY_COLORS","none","background","stroke","gray60","low","successColorD50","guarded","infoColorD50","elevated","warningColorD50","high","alertColorD50","severe","errorColorD50","COLOR_EDITOR_PALETTE"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA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M,EAAElB,eAAe,CAACyB;AAFlB,GAbwB;AAiBlCC,MAAI,EAAE;AACFT,cAAU,EAAEjB,eAAe,CADzB;AAEFkB,UAAM,EAAElB,eAAe,CAAC2B;AAFtB,GAjB4B;AAqBlCC,QAAM,EAAE;AACJX,cAAU,EAAEjB,eAAe,CADvB;AAEJkB,UAAM,EAAElB,eAAe,CAAC6B;AAFpB;AArB0B,CAA/B;AA2BA,IAAMC,oBAAoB,GAAG,qLAA7B,SAA6B,CAA7B,C","file":"colorConstants.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 50);\n","module.exports = require(\"@splunk/themes/getTheme\");","import getTheme from '@splunk/themes/getTheme';\n\nconst themeEnterprise = getTheme({ family: 'enterprise', colorScheme: 'light', density: 'comfortable' });\n\nexport const DELTA_GREEN = themeEnterprise.successColor;\nexport const DELTA_RED = themeEnterprise.errorColor;\n\nexport const SEMANTIC_SUCCESS = '#53a051';\nexport const SEMANTIC_WARNING = '#f8be34';\nexport const SEMANTIC_ERROR = '#dc4e41';\n\nexport const SPARKLINE_FILL_COLOR = themeEnterprise.gray60;\nexport const SPARKLINE_STROKE_COLOR = themeEnterprise.gray20;\nexport const SPARKLINE_WHITE = themeEnterprise.white;\n\nexport const RADIAL_BACKGROUND_COLOR = themeEnterprise.gray92;\nexport const RADIAL_STROKE_COLOR = themeEnterprise.gray60;\n\nexport const RADIAL_SEVERITY_COLORS = {\n none: {\n background: themeEnterprise.gray92,\n stroke: themeEnterprise.gray60,\n },\n low: {\n background: themeEnterprise.successColorL40,\n stroke: themeEnterprise.successColorD50,\n },\n guarded: {\n background: themeEnterprise.infoColorL40,\n stroke: themeEnterprise.infoColorD50,\n },\n elevated: {\n background: themeEnterprise.warningColorL40,\n stroke: themeEnterprise.warningColorD50,\n },\n high: {\n background: themeEnterprise.alertColorL40,\n stroke: themeEnterprise.alertColorD50,\n },\n severe: {\n background: themeEnterprise.errorColorL40,\n stroke: themeEnterprise.errorColorD50,\n },\n};\n\nexport const COLOR_EDITOR_PALETTE = [\n 'transparent',\n '#000000',\n '#ffffff',\n '#dc4e41',\n '#f1813f',\n '#f8be34',\n '#53a051',\n '#0877a6',\n '#ec9960',\n '#af575a',\n '#62b3b2',\n '#4fa484',\n '#f8be44',\n '#5a4575',\n '#708794',\n '#294e70',\n '#b6c75a',\n];\n"],"sourceRoot":""}
|
package/colorUtils.js
CHANGED
|
@@ -87,33 +87,12 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 25);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
94
94
|
|
|
95
|
-
/***/
|
|
96
|
-
/***/ (function(module, exports) {
|
|
97
|
-
|
|
98
|
-
module.exports = require("@splunk/visualization-schemas");
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 23:
|
|
103
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
104
|
-
|
|
105
|
-
"use strict";
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Object.defineProperty(exports, "__esModule", {
|
|
109
|
-
value: true
|
|
110
|
-
}); // Reference - https://www.w3.org/TR/css-color-4/#named-colors
|
|
111
|
-
|
|
112
|
-
exports.default = ['transparent', 'aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'azure', 'beige', 'bisque', 'black', 'blanchedalmond', 'blue', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'fuchsia', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'gray', 'green', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'lime', 'limegreen', 'linen', 'magenta', 'maroon', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'navy', 'oldlace', 'olive', 'olivedrab', 'orange', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple', 'rebeccapurple', 'red', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'silver', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'teal', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'white', 'whitesmoke', 'yellow', 'yellowgreen'];
|
|
113
|
-
|
|
114
|
-
/***/ }),
|
|
115
|
-
|
|
116
|
-
/***/ 27:
|
|
95
|
+
/***/ 25:
|
|
117
96
|
/***/ (function(module, exports, __webpack_require__) {
|
|
118
97
|
|
|
119
98
|
"use strict";
|
|
@@ -124,68 +103,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
124
103
|
});
|
|
125
104
|
exports.sanitizeArrayOfColors = exports.isArrayOfColors = exports.isColor = void 0;
|
|
126
105
|
|
|
127
|
-
var
|
|
128
|
-
|
|
129
|
-
var namedColors_1 = __webpack_require__(23);
|
|
130
|
-
/**
|
|
131
|
-
* Validates if a given string is a valid color
|
|
132
|
-
*
|
|
133
|
-
* @param {string} color
|
|
134
|
-
* @returns {boolean}
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
function isColor() {
|
|
139
|
-
var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
106
|
+
var colorUtils_1 = __webpack_require__(26);
|
|
140
107
|
|
|
141
|
-
|
|
142
|
-
|
|
108
|
+
Object.defineProperty(exports, "isColor", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return colorUtils_1.isColor;
|
|
143
112
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "isArrayOfColors", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return colorUtils_1.isArrayOfColors;
|
|
149
118
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "sanitizeArrayOfColors", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return colorUtils_1.sanitizeArrayOfColors;
|
|
155
124
|
}
|
|
125
|
+
});
|
|
156
126
|
|
|
157
|
-
|
|
158
|
-
// return /^(rgb|hsl)a?\((\d+%?(deg|rad|grad|turn)?[,\s]+){2,3}[\s\/]*[\d\.]+%?\)$/i.test(color);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
exports.isColor = isColor;
|
|
162
|
-
/**
|
|
163
|
-
* Validates if a given array of strings is a valid array of colors
|
|
164
|
-
* @param colors
|
|
165
|
-
* @returns
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
|
-
var isArrayOfColors = function isArrayOfColors(colors) {
|
|
169
|
-
return Array.isArray(colors) && colors.every(isColor);
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
exports.isArrayOfColors = isArrayOfColors;
|
|
173
|
-
/**
|
|
174
|
-
* Sanitizes an array of colors `arr` to replace any non-color values with undefined,
|
|
175
|
-
* or the value of `fallback` if provided.
|
|
176
|
-
*
|
|
177
|
-
* @param arr
|
|
178
|
-
* @param {string} fallback
|
|
179
|
-
* @returns {string[]} sanitized array any non-color values replaced with `fallback`
|
|
180
|
-
*/
|
|
127
|
+
/***/ }),
|
|
181
128
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return isColor(entry) ? entry : fallback;
|
|
185
|
-
});
|
|
186
|
-
};
|
|
129
|
+
/***/ 26:
|
|
130
|
+
/***/ (function(module, exports) {
|
|
187
131
|
|
|
188
|
-
exports
|
|
132
|
+
module.exports = require("@splunk/visualization-encoding/utils/colorUtils");
|
|
189
133
|
|
|
190
134
|
/***/ })
|
|
191
135
|
|