@splunk/visualizations-shared 24.7.0 → 25.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mapUtils.js ADDED
@@ -0,0 +1,153 @@
1
+ /*!
2
+ * Copyright © 2018 Splunk Inc.
3
+ * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
+ * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
+ */
6
+ module.exports =
7
+ /******/ (function(modules) { // webpackBootstrap
8
+ /******/ // The module cache
9
+ /******/ var installedModules = {};
10
+ /******/
11
+ /******/ // The require function
12
+ /******/ function __webpack_require__(moduleId) {
13
+ /******/
14
+ /******/ // Check if module is in cache
15
+ /******/ if(installedModules[moduleId]) {
16
+ /******/ return installedModules[moduleId].exports;
17
+ /******/ }
18
+ /******/ // Create a new module (and put it into the cache)
19
+ /******/ var module = installedModules[moduleId] = {
20
+ /******/ i: moduleId,
21
+ /******/ l: false,
22
+ /******/ exports: {}
23
+ /******/ };
24
+ /******/
25
+ /******/ // Execute the module function
26
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
27
+ /******/
28
+ /******/ // Flag the module as loaded
29
+ /******/ module.l = true;
30
+ /******/
31
+ /******/ // Return the exports of the module
32
+ /******/ return module.exports;
33
+ /******/ }
34
+ /******/
35
+ /******/
36
+ /******/ // expose the modules object (__webpack_modules__)
37
+ /******/ __webpack_require__.m = modules;
38
+ /******/
39
+ /******/ // expose the module cache
40
+ /******/ __webpack_require__.c = installedModules;
41
+ /******/
42
+ /******/ // define getter function for harmony exports
43
+ /******/ __webpack_require__.d = function(exports, name, getter) {
44
+ /******/ if(!__webpack_require__.o(exports, name)) {
45
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
46
+ /******/ }
47
+ /******/ };
48
+ /******/
49
+ /******/ // define __esModule on exports
50
+ /******/ __webpack_require__.r = function(exports) {
51
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
52
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
53
+ /******/ }
54
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
55
+ /******/ };
56
+ /******/
57
+ /******/ // create a fake namespace object
58
+ /******/ // mode & 1: value is a module id, require it
59
+ /******/ // mode & 2: merge all properties of value into the ns
60
+ /******/ // mode & 4: return value when already ns object
61
+ /******/ // mode & 8|1: behave like require
62
+ /******/ __webpack_require__.t = function(value, mode) {
63
+ /******/ if(mode & 1) value = __webpack_require__(value);
64
+ /******/ if(mode & 8) return value;
65
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
66
+ /******/ var ns = Object.create(null);
67
+ /******/ __webpack_require__.r(ns);
68
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
69
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
70
+ /******/ return ns;
71
+ /******/ };
72
+ /******/
73
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
74
+ /******/ __webpack_require__.n = function(module) {
75
+ /******/ var getter = module && module.__esModule ?
76
+ /******/ function getDefault() { return module['default']; } :
77
+ /******/ function getModuleExports() { return module; };
78
+ /******/ __webpack_require__.d(getter, 'a', getter);
79
+ /******/ return getter;
80
+ /******/ };
81
+ /******/
82
+ /******/ // Object.prototype.hasOwnProperty.call
83
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
84
+ /******/
85
+ /******/ // __webpack_public_path__
86
+ /******/ __webpack_require__.p = "";
87
+ /******/
88
+ /******/
89
+ /******/ // Load entry module and return exports
90
+ /******/ return __webpack_require__(__webpack_require__.s = 57);
91
+ /******/ })
92
+ /************************************************************************/
93
+ /******/ ({
94
+
95
+ /***/ 57:
96
+ /***/ (function(module, exports, __webpack_require__) {
97
+
98
+ "use strict";
99
+
100
+
101
+ Object.defineProperty(exports, "__esModule", {
102
+ value: true
103
+ });
104
+ exports.findClosestMatchFromDefaultList = void 0;
105
+ /**
106
+ * Finds the closest matching object from the list, which has the max same key value pairs.
107
+ * Returns the index of match if found, or -1
108
+ * For eg :-
109
+ const list = [{
110
+ type: "marker",
111
+ lat: "value1"
112
+ }, {
113
+ type: "bubble",
114
+ size: "value2"
115
+ }];
116
+
117
+ const obj = {
118
+ type: 'bubble'
119
+ };
120
+
121
+ findClosestMatch(list, obj) -> returns index 1.
122
+ */
123
+
124
+ var findClosestMatchFromDefaultList = function findClosestMatchFromDefaultList(searchList, inputObj) {
125
+ if (!Array.isArray(searchList) || searchList.length === 0) {
126
+ return -1;
127
+ }
128
+
129
+ var keys = Object.keys(inputObj);
130
+ var maxMatchCnt = 0;
131
+ var maxMatchIdx = 0;
132
+ searchList.forEach(function (item, idx) {
133
+ var matchCnt = 0;
134
+ keys.forEach(function (key) {
135
+ if (item[key] === inputObj[key]) {
136
+ matchCnt += 1;
137
+ }
138
+ });
139
+
140
+ if (Math.max(maxMatchCnt, matchCnt) > maxMatchCnt) {
141
+ maxMatchCnt = matchCnt;
142
+ maxMatchIdx = idx;
143
+ }
144
+ });
145
+ return maxMatchIdx;
146
+ };
147
+
148
+ exports.findClosestMatchFromDefaultList = findClosestMatchFromDefaultList;
149
+
150
+ /***/ })
151
+
152
+ /******/ });
153
+ //# sourceMappingURL=mapUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/mapUtils.ts"],"names":[],"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;;;;;;;;;;;;;;;AC7EA;;;;;;;;;;;;;;;;;AAiBG;;AACI,IAAM,+BAA+B,GAAG,SAAlC,+BAAkC,CAC3C,UAD2C,EAE3C,QAF2C,EAGnC;AACR,MAAI,CAAC,KAAK,CAAC,OAAN,CAAc,UAAd,CAAD,IAA8B,UAAU,CAAC,MAAX,KAAsB,CAAxD,EAA2D;AACvD,WAAO,CAAC,CAAR;AACH;;AACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAP,CAAY,QAAZ,CAAb;AACA,MAAI,WAAW,GAAG,CAAlB;AACA,MAAI,WAAW,GAAG,CAAlB;AAEA,YAAU,CAAC,OAAX,CAAmB,UAAC,IAAD,EAAO,GAAP,EAAc;AAC7B,QAAI,QAAQ,GAAG,CAAf;AACA,QAAI,CAAC,OAAL,CAAa,aAAG,EAAG;AACf,UAAI,IAAI,CAAC,GAAD,CAAJ,KAAc,QAAQ,CAAC,GAAD,CAA1B,EAAiC;AAC7B,gBAAQ,IAAI,CAAZ;AACH;AACJ,KAJD;;AAKA,QAAI,IAAI,CAAC,GAAL,CAAS,WAAT,EAAsB,QAAtB,IAAkC,WAAtC,EAAmD;AAC/C,iBAAW,GAAG,QAAd;AACA,iBAAW,GAAG,GAAd;AACH;AACJ,GAXD;AAYA,SAAO,WAAP;AACH,CAxBM;;AAAM,0CAA+B,+BAA/B,C","file":"mapUtils.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 = 57);\n","export interface GeoJsonDataType {\n type: string;\n coordinates: Array<Array<Array<[number, number]>>>;\n}\n\n/**\n * Finds the closest matching object from the list, which has the max same key value pairs.\n * Returns the index of match if found, or -1\n * For eg :- \n const list = [{\n type: \"marker\",\n lat: \"value1\"\n }, {\n type: \"bubble\",\n size: \"value2\"\n }];\n\n const obj = {\n type: 'bubble'\n };\n\n findClosestMatch(list, obj) -> returns index 1.\n */\nexport const findClosestMatchFromDefaultList = (\n searchList: Array<Record<string, unknown>>,\n inputObj: Record<string, unknown>\n): number => {\n if (!Array.isArray(searchList) || searchList.length === 0) {\n return -1;\n }\n const keys = Object.keys(inputObj);\n let maxMatchCnt = 0;\n let maxMatchIdx = 0;\n\n searchList.forEach((item, idx) => {\n let matchCnt = 0;\n keys.forEach(key => {\n if (item[key] === inputObj[key]) {\n matchCnt += 1;\n }\n });\n if (Math.max(maxMatchCnt, matchCnt) > maxMatchCnt) {\n maxMatchCnt = matchCnt;\n maxMatchIdx = idx;\n }\n });\n return maxMatchIdx;\n};\n"],"sourceRoot":""}
package/numberUtils.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 = 57);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 58);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -106,7 +106,7 @@ module.exports = require("@babel/runtime/helpers/typeof");
106
106
 
107
107
  /***/ }),
108
108
 
109
- /***/ 57:
109
+ /***/ 58:
110
110
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
111
111
 
112
112
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/moment\"","webpack:///external \"@babel/runtime/helpers/typeof\"","webpack:///./src/numberUtils.js","webpack:///external \"lodash\"","webpack:///external \"@splunk/ui-utils/i18n\""],"names":["DECIMAL_OR_SCIENTIFIC_REGEX","COMMA_SEPARATED_NUMBER_REGEX","isDecimalOrExpo","isCommaSeparatedNumber","isFinite","isString","isNumerialStr","parseFloat","value","getThousandSeparatorDecimalPrecisionFormatter","memoize","locale","options","Intl","JSON","formatOptions","precision","useThousandSeparators","moment","defaultPrecision","useTrendUnits","isInteger","p","trendUnit","units","letter","power","found","Math","unit","formatter","_"],"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,2C;;;;;;;ACAA,0D;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;CAGA;;AACA;AACA;AACA;AACA;;AACA,IAAMA,2BAA2B,GAAjC;AACA,IAAMC,4BAA4B,GAAlC;;AACA,8BAA8B;AAC1B,SAAOD,2BAA2B,CAA3BA,KAAP,GAAOA,CAAP;AACH;;AACD,qCAAqC;AACjC,SAAOC,4BAA4B,CAA5BA,KAAP,GAAOA,CAA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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 = 57);\n","module.exports = require(\"@splunk/moment\");","module.exports = require(\"@babel/runtime/helpers/typeof\");","import moment from '@splunk/moment';\nimport { isFinite, isString, isInteger, memoize } from 'lodash';\nimport { _ } from '@splunk/ui-utils/i18n';\n\n// Todo: need break out this utils after breaking out all visualizations\n/**\n * @file\n * A set of number formatting function used in Table\n */\nconst DECIMAL_OR_SCIENTIFIC_REGEX = /(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i;\nconst COMMA_SEPARATED_NUMBER_REGEX = /(^[-+]?([0]|([1-9][0-9]{0,2})|(([1-9][0-9]{0,2}[,])([0-9]{3}[,])*[0-9]{3}))(([.][0-9]+)?)$)/;\nfunction isDecimalOrExpo(str) {\n return DECIMAL_OR_SCIENTIFIC_REGEX.test(str);\n}\nfunction isCommaSeparatedNumber(str) {\n return COMMA_SEPARATED_NUMBER_REGEX.test(str);\n}\n\n/**\n * Check if a string can be considered as numeric, this includes decimal, scientific number and number with comma separator\n *\n * Examples:\n * ```js\n * const { isNumerialStr } from '@splunk/react-visualizations/utils/numberUtils';\n * assert.ok(isNumerialStr('11.123'));\n * ```\n * @param {String} str input value\n * @return {Boolean}\n * @public\n */\nexport function isNumerialStr(str) {\n return isDecimalOrExpo(str) || isCommaSeparatedNumber(str);\n}\n\n/**\n * Check if a value can be considered as numeric\n *\n * Examples:\n * ```js\n * const { isNumerial } from '@splunk/react-visualizations/utils/numberUtils';\n * assert.equal(isNumerial('11.123') == 11.123);\n * ```\n * @param {any} value input value\n * @return {Boolean}\n * @public\n */\nexport function isNumerial(value) {\n return isFinite(value) || (isString(value) && isNumerialStr(value));\n}\n\n/**\n * Parse input value into number, return NaN for not numercial value\n * @param {*} value input value\n * @return {Number}\n * @public\n */\nexport function parseNumber(value) {\n if (isFinite(value) || (isString(value) && isDecimalOrExpo(value))) {\n // only parses the value consider as numeric.\n return parseFloat(value);\n }\n if (isString(value) && isCommaSeparatedNumber(value)) {\n return parseFloat(value.replace(/,/g, ''));\n }\n return NaN;\n}\n\n/**\n *\n */\nconst getThousandSeparatorDecimalPrecisionFormatter = memoize(\n (locale = 'en', options = {}) => new Intl.NumberFormat(locale, options),\n (locale, options) => `${locale}${JSON.stringify(options)}`\n);\n\n/**\n- * Format number into string with precision and/or grouping\n- *\n- * Examples:\n- * ```js\n- * const { formatNumber } from '@splunk/react-visualizations/utils/numberUtils';\n- * assert.equal(formatNumber('1100’, 2, { useThousandSeparators: true }), '1,100.00’)\n- * ```\n- * @param {Number} number // value to format\n- * @param {Number} [precision] // number of digits after the decimal point\n- * @param {Object} [options]\n- * @param {Boolean} [options.useThousandSeparators=false] // flag to determine if grouping is desired\n- * @param {Object} [options.locale=moment.locale()] // Locale of the user for determinining how numbers are grouped\n- * @param {Number} [options.defaultPrecision=0] // The default precision to use if none is defined\n- * @param {Number} [options.useTrendUnits=false] // Add K, M, B, T to end of value, and divide by the appropriate order of magnitude\n- * @return {String}\n- * @public\n- */\nexport function formatNumber(number, precision, options = {}) {\n const formatOptions = {};\n\n // Precision is optional, so check if precision is an object, and use it as the options, otherwise load from options\n const {\n useThousandSeparators = false,\n locale = moment.locale(),\n defaultPrecision = 0,\n useTrendUnits = false,\n } = precision && typeof precision === 'object' ? precision : options;\n\n // Apply precision only when it is a positive integer\n if (isInteger(precision) && precision >= 0) {\n // Validate precision is within acceptable bounds\n const p = precision > 20 ? 20 : precision;\n\n formatOptions.minimumFractionDigits = p;\n formatOptions.maximumFractionDigits = p;\n } else {\n formatOptions.maximumFractionDigits = defaultPrecision;\n }\n\n formatOptions.useGrouping = useThousandSeparators === true;\n\n let trendUnit = '';\n let value = number;\n const units = [\n { letter: 'T', power: 12 },\n { letter: 'B', power: 9 },\n { letter: 'M', power: 6 },\n { letter: 'K', power: 3 },\n ];\n\n if (useTrendUnits) {\n const found = units.find(unit => Math.abs(value) > 10 ** unit.power);\n\n if (found) {\n value /= 10 ** found.power;\n trendUnit = found.letter;\n formatOptions.maximumFractionDigits = 2;\n formatOptions.minimumFractionDigits = 0;\n }\n }\n\n const formatter = getThousandSeparatorDecimalPrecisionFormatter(locale, formatOptions);\n\n return `${formatter.format(value)}${trendUnit ? _(trendUnit) : ''}`;\n}\n","module.exports = require(\"lodash\");","module.exports = require(\"@splunk/ui-utils/i18n\");"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/moment\"","webpack:///external \"@babel/runtime/helpers/typeof\"","webpack:///./src/numberUtils.js","webpack:///external \"lodash\"","webpack:///external \"@splunk/ui-utils/i18n\""],"names":["DECIMAL_OR_SCIENTIFIC_REGEX","COMMA_SEPARATED_NUMBER_REGEX","isDecimalOrExpo","isCommaSeparatedNumber","isFinite","isString","isNumerialStr","parseFloat","value","getThousandSeparatorDecimalPrecisionFormatter","memoize","locale","options","Intl","JSON","formatOptions","precision","useThousandSeparators","moment","defaultPrecision","useTrendUnits","isInteger","p","trendUnit","units","letter","power","found","Math","unit","formatter","_"],"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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,GAAG,KAAK,CAAL,KAAW,gBAAI;AAAA,aAAIC,IAAI,CAAJA,0BAAwBC,IAAI,CAAhC,KAAID,CAAJ;AAA7B,KAAc,CAAd;;AAEA,eAAW;AACPpB,WAAK,iBAAUmB,KAAK,CAApBnB,KAAK,CAALA;AACAe,eAAS,GAAGI,KAAK,CAAjBJ;AACAR,mBAAa,CAAbA;AACAA,mBAAa,CAAbA;AACH;AACJ;;AAED,MAAMe,SAAS,GAAGrB,6CAA6C,SAA/D,aAA+D,CAA/D;AAEA,mBAAUqB,SAAS,CAATA,OAAV,KAAUA,CAAV,SAAoCP,SAAS,GAAGQ,+DAAC,CAAJ,SAAI,CAAJ,GAA7C;AACH,C;;;;;;;AC5ID,mC;;;;;;;ACAA,kD","file":"numberUtils.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 = 58);\n","module.exports = require(\"@splunk/moment\");","module.exports = require(\"@babel/runtime/helpers/typeof\");","import moment from '@splunk/moment';\nimport { isFinite, isString, isInteger, memoize } from 'lodash';\nimport { _ } from '@splunk/ui-utils/i18n';\n\n// Todo: need break out this utils after breaking out all visualizations\n/**\n * @file\n * A set of number formatting function used in Table\n */\nconst DECIMAL_OR_SCIENTIFIC_REGEX = /(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i;\nconst COMMA_SEPARATED_NUMBER_REGEX = /(^[-+]?([0]|([1-9][0-9]{0,2})|(([1-9][0-9]{0,2}[,])([0-9]{3}[,])*[0-9]{3}))(([.][0-9]+)?)$)/;\nfunction isDecimalOrExpo(str) {\n return DECIMAL_OR_SCIENTIFIC_REGEX.test(str);\n}\nfunction isCommaSeparatedNumber(str) {\n return COMMA_SEPARATED_NUMBER_REGEX.test(str);\n}\n\n/**\n * Check if a string can be considered as numeric, this includes decimal, scientific number and number with comma separator\n *\n * Examples:\n * ```js\n * const { isNumerialStr } from '@splunk/react-visualizations/utils/numberUtils';\n * assert.ok(isNumerialStr('11.123'));\n * ```\n * @param {String} str input value\n * @return {Boolean}\n * @public\n */\nexport function isNumerialStr(str) {\n return isDecimalOrExpo(str) || isCommaSeparatedNumber(str);\n}\n\n/**\n * Check if a value can be considered as numeric\n *\n * Examples:\n * ```js\n * const { isNumerial } from '@splunk/react-visualizations/utils/numberUtils';\n * assert.equal(isNumerial('11.123') == 11.123);\n * ```\n * @param {any} value input value\n * @return {Boolean}\n * @public\n */\nexport function isNumerial(value) {\n return isFinite(value) || (isString(value) && isNumerialStr(value));\n}\n\n/**\n * Parse input value into number, return NaN for not numercial value\n * @param {*} value input value\n * @return {Number}\n * @public\n */\nexport function parseNumber(value) {\n if (isFinite(value) || (isString(value) && isDecimalOrExpo(value))) {\n // only parses the value consider as numeric.\n return parseFloat(value);\n }\n if (isString(value) && isCommaSeparatedNumber(value)) {\n return parseFloat(value.replace(/,/g, ''));\n }\n return NaN;\n}\n\n/**\n *\n */\nconst getThousandSeparatorDecimalPrecisionFormatter = memoize(\n (locale = 'en', options = {}) => new Intl.NumberFormat(locale, options),\n (locale, options) => `${locale}${JSON.stringify(options)}`\n);\n\n/**\n- * Format number into string with precision and/or grouping\n- *\n- * Examples:\n- * ```js\n- * const { formatNumber } from '@splunk/react-visualizations/utils/numberUtils';\n- * assert.equal(formatNumber('1100’, 2, { useThousandSeparators: true }), '1,100.00’)\n- * ```\n- * @param {Number} number // value to format\n- * @param {Number} [precision] // number of digits after the decimal point\n- * @param {Object} [options]\n- * @param {Boolean} [options.useThousandSeparators=false] // flag to determine if grouping is desired\n- * @param {Object} [options.locale=moment.locale()] // Locale of the user for determinining how numbers are grouped\n- * @param {Number} [options.defaultPrecision=0] // The default precision to use if none is defined\n- * @param {Number} [options.useTrendUnits=false] // Add K, M, B, T to end of value, and divide by the appropriate order of magnitude\n- * @return {String}\n- * @public\n- */\nexport function formatNumber(number, precision, options = {}) {\n const formatOptions = {};\n\n // Precision is optional, so check if precision is an object, and use it as the options, otherwise load from options\n const {\n useThousandSeparators = false,\n locale = moment.locale(),\n defaultPrecision = 0,\n useTrendUnits = false,\n } = precision && typeof precision === 'object' ? precision : options;\n\n // Apply precision only when it is a positive integer\n if (isInteger(precision) && precision >= 0) {\n // Validate precision is within acceptable bounds\n const p = precision > 20 ? 20 : precision;\n\n formatOptions.minimumFractionDigits = p;\n formatOptions.maximumFractionDigits = p;\n } else {\n formatOptions.maximumFractionDigits = defaultPrecision;\n }\n\n formatOptions.useGrouping = useThousandSeparators === true;\n\n let trendUnit = '';\n let value = number;\n const units = [\n { letter: 'T', power: 12 },\n { letter: 'B', power: 9 },\n { letter: 'M', power: 6 },\n { letter: 'K', power: 3 },\n ];\n\n if (useTrendUnits) {\n const found = units.find(unit => Math.abs(value) > 10 ** unit.power);\n\n if (found) {\n value /= 10 ** found.power;\n trendUnit = found.letter;\n formatOptions.maximumFractionDigits = 2;\n formatOptions.minimumFractionDigits = 0;\n }\n }\n\n const formatter = getThousandSeparatorDecimalPrecisionFormatter(locale, formatOptions);\n\n return `${formatter.format(value)}${trendUnit ? _(trendUnit) : ''}`;\n}\n","module.exports = require(\"lodash\");","module.exports = require(\"@splunk/ui-utils/i18n\");"],"sourceRoot":""}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Visualizations Shared Files",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "author": "Splunk",
6
- "version": "24.7.0",
6
+ "version": "25.0.0",
7
7
  "scripts": {
8
8
  "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail",
9
9
  "build-storybook": "build-storybook -c .storybook -s fonts -o .storybook-bundle",
@@ -31,7 +31,7 @@
31
31
  "@splunk/moment": "^0.6.0",
32
32
  "@splunk/react-icons": "^3.1.0",
33
33
  "@splunk/react-ui": "^4.5.3",
34
- "@splunk/themes": "^0.11.0",
34
+ "@splunk/themes": "^0.12.0",
35
35
  "@splunk/ui-utils": "^1.2.1",
36
36
  "element-resize-detector": "^1.1.14",
37
37
  "lodash": "^4.17.4",
@@ -48,8 +48,8 @@
48
48
  "@babel/cli": "^7.13.0",
49
49
  "@babel/core": "^7.13.0",
50
50
  "@splunk/react-docs": "^0.11.0",
51
- "@splunk/visualization-build-tools": "^24.7.0",
52
- "@splunk/visualization-context": "^24.7.0",
51
+ "@splunk/visualization-build-tools": "^25.0.0",
52
+ "@splunk/visualization-context": "^25.0.0",
53
53
  "@storybook/addon-actions": "^6.1.20",
54
54
  "@storybook/addons": "^6.1.20",
55
55
  "@storybook/react": "^6.1.20",
@@ -87,12 +87,12 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 58);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 59);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
94
94
 
95
- /***/ 58:
95
+ /***/ 59:
96
96
  /***/ (function(module, exports, __webpack_require__) {
97
97
 
98
98
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/previewVizMessage.ts"],"names":[],"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,IAAM,iBAAiB,GACnB,wGADJ;AAGA,kBAAe,iBAAf,C","file":"previewVizMessage.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 = 58);\n","const previewVizMessage =\n '⚠️ This is a preview of a new visualization component. Minor updates and bug fixes should be expected.';\n\nexport default previewVizMessage;\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/previewVizMessage.ts"],"names":[],"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,IAAM,iBAAiB,GACnB,wGADJ;AAGA,kBAAe,iBAAf,C","file":"previewVizMessage.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 = 59);\n","const previewVizMessage =\n '⚠️ This is a preview of a new visualization component. Minor updates and bug fixes should be expected.';\n\nexport default previewVizMessage;\n"],"sourceRoot":""}
package/propUtils.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 = 59);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 60);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -106,7 +106,7 @@ module.exports = require("lodash/isPlainObject");
106
106
 
107
107
  /***/ }),
108
108
 
109
- /***/ 59:
109
+ /***/ 60:
110
110
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
111
111
 
112
112
  "use strict";
package/propUtils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/visualizations-shared/console\"","webpack:///external \"lodash/isPlainObject\"","webpack:///./src/propUtils.js"],"names":["convertPropsToString","vizProps","propNames","convertedVizProps","propValue","Array","isPlainObject","JSON","console","formatColor","color"],"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,kE;;;;;;;ACAA,iD;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAuB,OAAuC;AAAA,2BAApCC,QAAoC;AAAA,MAApCA,QAAoC,8BAAzB,EAAyB;AAAA,4BAArBC,SAAqB;AAAA,MAArBA,SAAqB,+BAAT,EAAS;AACvE,MAAMC,iBAAiB,GAAvB;AAEAD,WAAS,CAATA,QAAkB,oBAAY;AAC1B,QAAME,SAAS,GAAGH,QAAQ,CAA1B,QAA0B,CAA1B;;AACA,QAAII,KAAK,CAALA,sBAA4BC,2DAAa,CAA7C,SAA6C,CAA7C,EAA0D;AACtDH,uBAAiB,CAAjBA,QAAiB,CAAjBA,GAA8BI,IAAI,CAAJA,UAA9BJ,SAA8BI,CAA9BJ;AADJ,WAEO,IAAIC,SAAS,IAAI,qBAAjB,UAAgD;AACnDI,kFAAO,CAAPA;AACH;AANLN;AASA;AAZG;AAeP;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMO,WAAW,GAAG,SAAdA,WAAc,QAAS;AAChC,MAAI,UAAU,iBAAd,UAAyC;AACrC;AACH;;AAED,SAAOC,KAAK,CAALA,cAAP,GAAOA,CAAP;AALG,E","file":"propUtils.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 = 59);\n","module.exports = require(\"@splunk/visualizations-shared/console\");","module.exports = require(\"lodash/isPlainObject\");","import isPlainObject from 'lodash/isPlainObject';\nimport console from '@splunk/visualizations-shared/console';\n\n/**\n * convert props of type 'array/object' to 'string', based on the list of props to be converted in vizProps\n * @method convertPropsToString\n * @param {Object} vizProps\n * @param {Array} propNames\n * @return {Object} convertedVizProps\n */\nexport const convertPropsToString = ({ vizProps = {}, propNames = [] }) => {\n const convertedVizProps = {};\n\n propNames.forEach(propName => {\n const propValue = vizProps[propName];\n if (Array.isArray(propValue) || isPlainObject(propValue)) {\n convertedVizProps[propName] = JSON.stringify(propValue);\n } else if (propValue && typeof propValue === 'string') {\n console.warn(`The option type 'string' for '${propName}' has been deprecated.`);\n }\n });\n\n return convertedVizProps;\n};\n\n/**\n * Convert a hex value to a color\n * @method formatColor\n * @param {String} color\n * @returns {String}\n */\nexport const formatColor = color => {\n if (!color || typeof color !== 'string') {\n return '';\n }\n\n return color.replace('0x', '#');\n};\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/visualizations-shared/console\"","webpack:///external \"lodash/isPlainObject\"","webpack:///./src/propUtils.js"],"names":["convertPropsToString","vizProps","propNames","convertedVizProps","propValue","Array","isPlainObject","JSON","console","formatColor","color"],"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,kE;;;;;;;ACAA,iD;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAuB,OAAuC;AAAA,2BAApCC,QAAoC;AAAA,MAApCA,QAAoC,8BAAzB,EAAyB;AAAA,4BAArBC,SAAqB;AAAA,MAArBA,SAAqB,+BAAT,EAAS;AACvE,MAAMC,iBAAiB,GAAvB;AAEAD,WAAS,CAATA,QAAkB,oBAAY;AAC1B,QAAME,SAAS,GAAGH,QAAQ,CAA1B,QAA0B,CAA1B;;AACA,QAAII,KAAK,CAALA,sBAA4BC,2DAAa,CAA7C,SAA6C,CAA7C,EAA0D;AACtDH,uBAAiB,CAAjBA,QAAiB,CAAjBA,GAA8BI,IAAI,CAAJA,UAA9BJ,SAA8BI,CAA9BJ;AADJ,WAEO,IAAIC,SAAS,IAAI,qBAAjB,UAAgD;AACnDI,kFAAO,CAAPA;AACH;AANLN;AASA;AAZG;AAeP;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMO,WAAW,GAAG,SAAdA,WAAc,QAAS;AAChC,MAAI,UAAU,iBAAd,UAAyC;AACrC;AACH;;AAED,SAAOC,KAAK,CAALA,cAAP,GAAOA,CAAP;AALG,E","file":"propUtils.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 = 60);\n","module.exports = require(\"@splunk/visualizations-shared/console\");","module.exports = require(\"lodash/isPlainObject\");","import isPlainObject from 'lodash/isPlainObject';\nimport console from '@splunk/visualizations-shared/console';\n\n/**\n * convert props of type 'array/object' to 'string', based on the list of props to be converted in vizProps\n * @method convertPropsToString\n * @param {Object} vizProps\n * @param {Array} propNames\n * @return {Object} convertedVizProps\n */\nexport const convertPropsToString = ({ vizProps = {}, propNames = [] }) => {\n const convertedVizProps = {};\n\n propNames.forEach(propName => {\n const propValue = vizProps[propName];\n if (Array.isArray(propValue) || isPlainObject(propValue)) {\n convertedVizProps[propName] = JSON.stringify(propValue);\n } else if (propValue && typeof propValue === 'string') {\n console.warn(`The option type 'string' for '${propName}' has been deprecated.`);\n }\n });\n\n return convertedVizProps;\n};\n\n/**\n * Convert a hex value to a color\n * @method formatColor\n * @param {String} color\n * @returns {String}\n */\nexport const formatColor = color => {\n if (!color || typeof color !== 'string') {\n return '';\n }\n\n return color.replace('0x', '#');\n};\n"],"sourceRoot":""}
@@ -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 = 60);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 61);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -99,7 +99,7 @@ module.exports = require("lodash/invert");
99
99
 
100
100
  /***/ }),
101
101
 
102
- /***/ 60:
102
+ /***/ 61:
103
103
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
104
104
 
105
105
  "use strict";
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"lodash/invert\"","webpack:///./src/simpleXMLOptions.js"],"names":["simpleXMLOptionsToPropsMap","propsToSimpleXMLOptionsMap","invert","replaceObjectKeysFromMap","object","map","isValidKey","nuObject","Object","nuKey","getPropsForSimpleXMLOptions","options","value","getSimpleXMLOptionsForProps","props"],"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,0C;;;;;;;;ACAA;AAAA;AAAA;AAAA;AA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LOptions.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 = 60);\n","module.exports = require(\"lodash/invert\");","import invert from 'lodash/invert';\n\nconst simpleXMLOptionsToPropsMap = {\n 'annotation.categoryColors': 'annotationColor',\n 'axisLabelsX.axisVisibility': 'xAxisVisibility',\n 'axisLabelsY.axisVisibility': 'yAxisVisibility',\n 'axisLabelsX.integerUnits': 'roundXAxisLabelsToInteger',\n 'axisLabelsY.integerUnits': 'roundYAxisLabelsToInteger',\n 'axisLabelsY2.integerUnits': 'roundY2AxisLabelsToInteger',\n 'axisLabelsY2.axisVisibility': 'y2AxisVisibility',\n 'axisLabelsX.extendsAxisRange': 'xAxisExtendsAxisRange',\n 'axisLabelsY.extendsAxisRange': 'yAxisExtendsAxisRange',\n 'axisLabelsX.majorLabelStyle.rotation': 'xAxisMajorLabelRotation',\n 'axisLabelsX.majorLabelVisibility': 'xAxisMajorLabelVisibility',\n 'axisLabelsY.majorLabelVisibility': 'yAxisMajorLabelVisibility',\n 'axisLabelsY2.majorLabelVisibility': 'y2AxisMajorLabelVisibility',\n 'axisLabelsX.majorTickSize': 'xAxisMajorTickSize',\n 'axisLabelsY.majorTickSize': 'yAxisMajorTickSize',\n 'axisLabelsY2.majorTickSize': 'y2AxisMajorTickSize',\n 'axisLabelsX.minorTickSize': 'xAxisMinorTickSize',\n 'axisLabelsY.minorTickSize': 'yAxisMinorTickSize',\n 'axisLabelsY2.minorTickSize': 'y2AxisMinorTickSize',\n 'axisLabelsX.majorTickVisibility': 'xAxisMajorTickVisibility',\n 'axisLabelsY.majorTickVisibility': 'yAxisMajorTickVisibility',\n 'axisLabelsY2.majorTickVisibility': 'y2AxisMajorTickVisibility',\n 'axisLabelsX.majorUnit': 'xAxisMajorUnit',\n 'axisLabelsY.majorUnit': 'yAxisMajorUnit',\n 'axisLabelsY2.majorUnit': 'y2AxisMajorUnit',\n 'axisLabelsX.minorTickVisibility': 'xAxisMinorTickVisibility',\n 'axisLabelsY.minorTickVisibility': 'yAxisMinorTickVisibility',\n 'axisLabelsY2.minorTickVisibility': 'y2AxisMinorTickVisibility',\n 'axisLabelsX.maxLabelParts': 'xAxisMaxLabelParts',\n 'axisX.abbreviation': 'xAxisAbbreviation',\n 'axisY.abbreviation': 'yAxisAbbreviation',\n 'axisY2.abbreviation': 'y2AxisAbbreviation',\n 'axisX.includeZero': 'xAxisIncludeZero',\n 'axisY.includeZero': 'yAxisIncludeZero',\n 'axisY2.includeZero': 'y2AxisIncludeZero',\n 'axisX.maximumNumber': 'xAxisMax',\n 'axisY.maximumNumber': 'yAxisMax',\n 'axisY2.maximumNumber': 'y2AxisMax',\n 'axisX.minimumNumber': 'xAxisMin',\n 'axisY.minimumNumber': 'yAxisMin',\n 'axisY2.minimumNumber': 'y2AxisMin',\n 'axisX.scale': 'xAxisScale',\n 'axisY.scale': 'yAxisScale',\n 'axisY2.scale': 'y2AxisScale',\n 'axisTitleX.text': 'xAxisTitleText',\n 'axisTitleY.text': 'yAxisTitleText',\n 'axisTitleY2.text': 'y2AxisTitleText',\n 'axisTitleX.alignment': 'xAxisTitleAlignment',\n 'axisTitleY.alignment': 'yAxisTitleAlignment',\n 'axisTitleY2.alignment': 'y2AxisTitleAlignment',\n 'axisTitleX.visibility': 'xAxisTitleVisibility',\n 'axisTitleY.visibility': 'yAxisTitleVisibility',\n 'axisTitleY2.visibility': 'y2AxisTitleVisibility',\n 'chart.resultTruncationLimit': 'resultTruncationLimit',\n 'chart.overlayFields': 'overlayFields',\n 'axisY2.enabled': 'enableY2Axis',\n 'axisY2.fields': 'y2AxisField',\n 'chart.barSpacing': 'barSpacing',\n 'chart.columnSpacing': 'columnSpacing',\n 'chart.seriesSpacing': 'seriesSpacing',\n 'chart.nullValueMode': 'nullValueMode',\n 'chart.markerSize': 'markerSize',\n 'chart.showDataLabels': 'showDataLabels',\n 'chart.showLegend': 'showLegend',\n 'chart.showLines': 'showLines',\n 'chart.showMarkers': 'showMarkers',\n 'chart.stackMode': 'stackMode',\n 'data.fieldListMode': 'fieldListMode',\n 'data.fieldShowList': 'fieldShowList',\n 'data.fieldHideList': 'fieldHideList',\n 'gridLinesX.showMajorLines': 'showMajorXGridLines',\n 'gridLinesY.showMajorLines': 'showMajorYGridLines',\n 'gridLinesY2.showMajorLines': 'showMajorY2GridLines',\n 'gridLinesX.showMinorLines': 'showMinorXGridLines',\n 'gridLinesY.showMinorLines': 'showMinorYGridLines',\n 'gridLinesY2.showMinorLines': 'showMinorY2GridLines',\n 'layout.splitSeries': 'splitSeries',\n 'layout.splitSeries.allowIndependentYRanges': 'allowIndependentYRanges',\n 'legend.labels': 'legendLabels',\n 'legend.labelStyle.overflowMode': 'legendLabelOverflowMode',\n 'legend.masterLegend': 'masterLegend',\n 'legend.mode': 'legendMode',\n 'legend.placement': 'legendPlacement',\n 'chart.bubbleMaximumSize': 'bubbleMaxSize',\n 'chart.bubbleMinimumSize': 'bubbleMinSize',\n 'chart.bubbleSizeBy': 'bubbleSizeBy',\n};\n\nconst propsToSimpleXMLOptionsMap = invert(simpleXMLOptionsToPropsMap);\n\n// export to make it testable\nexport const replaceObjectKeysFromMap = (object = {}, map = {}, isValidKey = () => true) => {\n const nuObject = {};\n Object.keys(object).forEach(key => {\n const nuKey = map[key];\n if (!nuKey) {\n if (isValidKey(key)) {\n // @TODO(pwied):\n // get rid of this and ensure all known props are passed down to visualizations explicitly\n // captured here: SCP-14634\n nuObject[key] = object[key];\n }\n } else {\n nuObject[nuKey] = object[key];\n }\n });\n return nuObject;\n};\n\nexport const getPropsForSimpleXMLOptions = (options = {}) =>\n replaceObjectKeysFromMap(options, simpleXMLOptionsToPropsMap, value => value.indexOf('.') === -1);\n\nexport const getSimpleXMLOptionsForProps = (props = {}) =>\n replaceObjectKeysFromMap(props, propsToSimpleXMLOptionsMap);\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"lodash/invert\"","webpack:///./src/simpleXMLOptions.js"],"names":["simpleXMLOptionsToPropsMap","propsToSimpleXMLOptionsMap","invert","replaceObjectKeysFromMap","object","map","isValidKey","nuObject","Object","nuKey","getPropsForSimpleXMLOptions","options","value","getSimpleXMLOptionsForProps","props"],"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,0C;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAMA,0BAA0B,GAAG;AAC/B,+BAD+B;AAE/B,gCAF+B;AAG/B,gCAH+B;AAI/B,8BAJ+B;AAK/B,8BAL+B;AAM/B,+BAN+B;AAO/B,iCAP+B;AAQ/B,kCAR+B;AAS/B,kCAT+B;AAU/B,0CAV+B;AAW/B,sCAX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AiF/B,yBAjF+B;AAkF/B,iBAlF+B;AAmF/B,sBAnF+B;AAoF/B,6BApF+B;AAqF/B,6BArF+B;AAsF/B,wBAAsB;AAtFS,CAAnC;AAyFA,IAAMC,0BAA0B,GAAGC,oDAAM,CAAzC,0BAAyC,CAAzC,C,CAEA;;AACO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAA2B,GAAoD;AAAA,MAAnDC,MAAmD,uEAA1C,EAA0C;AAAA,MAAtCC,GAAsC,uEAAhC,EAAgC;AAAA,MAA5BC,UAA4B,uEAAf;AAAA;AAAe;AACxF,MAAMC,QAAQ,GAAd;AACAC,QAAM,CAANA,qBAA4B,eAAO;AAC/B,QAAMC,KAAK,GAAGJ,GAAG,CAAjB,GAAiB,CAAjB;;AACA,QAAI,CAAJ,OAAY;AACR,UAAIC,UAAU,CAAd,GAAc,CAAd,EAAqB;AACjB;AACA;AACA;AACAC,gBAAQ,CAARA,GAAQ,CAARA,GAAgBH,MAAM,CAAtBG,GAAsB,CAAtBA;AACH;AANL,WAOO;AACHA,cAAQ,CAARA,KAAQ,CAARA,GAAkBH,MAAM,CAAxBG,GAAwB,CAAxBA;AACH;AAXLC;AAaA;AAfG;AAkBA,IAAME,2BAA2B,GAAG,SAA9BA,2BAA8B;AAAA,MAACC,OAAD;AAAA,SACvCR,wBAAwB,sCAAsC,iBAAK;AAAA,WAAIS,KAAK,CAALA,iBAAuB,CAA3B;AAD5B,GACf,CADe;AAApC;AAGA,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA8B;AAAA,MAACC,KAAD;AAAA,SACvCX,wBAAwB,QADe,0BACf,CADe;AAApC,E","file":"simpleXMLOptions.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 = 61);\n","module.exports = require(\"lodash/invert\");","import invert from 'lodash/invert';\n\nconst simpleXMLOptionsToPropsMap = {\n 'annotation.categoryColors': 'annotationColor',\n 'axisLabelsX.axisVisibility': 'xAxisVisibility',\n 'axisLabelsY.axisVisibility': 'yAxisVisibility',\n 'axisLabelsX.integerUnits': 'roundXAxisLabelsToInteger',\n 'axisLabelsY.integerUnits': 'roundYAxisLabelsToInteger',\n 'axisLabelsY2.integerUnits': 'roundY2AxisLabelsToInteger',\n 'axisLabelsY2.axisVisibility': 'y2AxisVisibility',\n 'axisLabelsX.extendsAxisRange': 'xAxisExtendsAxisRange',\n 'axisLabelsY.extendsAxisRange': 'yAxisExtendsAxisRange',\n 'axisLabelsX.majorLabelStyle.rotation': 'xAxisMajorLabelRotation',\n 'axisLabelsX.majorLabelVisibility': 'xAxisMajorLabelVisibility',\n 'axisLabelsY.majorLabelVisibility': 'yAxisMajorLabelVisibility',\n 'axisLabelsY2.majorLabelVisibility': 'y2AxisMajorLabelVisibility',\n 'axisLabelsX.majorTickSize': 'xAxisMajorTickSize',\n 'axisLabelsY.majorTickSize': 'yAxisMajorTickSize',\n 'axisLabelsY2.majorTickSize': 'y2AxisMajorTickSize',\n 'axisLabelsX.minorTickSize': 'xAxisMinorTickSize',\n 'axisLabelsY.minorTickSize': 'yAxisMinorTickSize',\n 'axisLabelsY2.minorTickSize': 'y2AxisMinorTickSize',\n 'axisLabelsX.majorTickVisibility': 'xAxisMajorTickVisibility',\n 'axisLabelsY.majorTickVisibility': 'yAxisMajorTickVisibility',\n 'axisLabelsY2.majorTickVisibility': 'y2AxisMajorTickVisibility',\n 'axisLabelsX.majorUnit': 'xAxisMajorUnit',\n 'axisLabelsY.majorUnit': 'yAxisMajorUnit',\n 'axisLabelsY2.majorUnit': 'y2AxisMajorUnit',\n 'axisLabelsX.minorTickVisibility': 'xAxisMinorTickVisibility',\n 'axisLabelsY.minorTickVisibility': 'yAxisMinorTickVisibility',\n 'axisLabelsY2.minorTickVisibility': 'y2AxisMinorTickVisibility',\n 'axisLabelsX.maxLabelParts': 'xAxisMaxLabelParts',\n 'axisX.abbreviation': 'xAxisAbbreviation',\n 'axisY.abbreviation': 'yAxisAbbreviation',\n 'axisY2.abbreviation': 'y2AxisAbbreviation',\n 'axisX.includeZero': 'xAxisIncludeZero',\n 'axisY.includeZero': 'yAxisIncludeZero',\n 'axisY2.includeZero': 'y2AxisIncludeZero',\n 'axisX.maximumNumber': 'xAxisMax',\n 'axisY.maximumNumber': 'yAxisMax',\n 'axisY2.maximumNumber': 'y2AxisMax',\n 'axisX.minimumNumber': 'xAxisMin',\n 'axisY.minimumNumber': 'yAxisMin',\n 'axisY2.minimumNumber': 'y2AxisMin',\n 'axisX.scale': 'xAxisScale',\n 'axisY.scale': 'yAxisScale',\n 'axisY2.scale': 'y2AxisScale',\n 'axisTitleX.text': 'xAxisTitleText',\n 'axisTitleY.text': 'yAxisTitleText',\n 'axisTitleY2.text': 'y2AxisTitleText',\n 'axisTitleX.alignment': 'xAxisTitleAlignment',\n 'axisTitleY.alignment': 'yAxisTitleAlignment',\n 'axisTitleY2.alignment': 'y2AxisTitleAlignment',\n 'axisTitleX.visibility': 'xAxisTitleVisibility',\n 'axisTitleY.visibility': 'yAxisTitleVisibility',\n 'axisTitleY2.visibility': 'y2AxisTitleVisibility',\n 'chart.resultTruncationLimit': 'resultTruncationLimit',\n 'chart.overlayFields': 'overlayFields',\n 'axisY2.enabled': 'enableY2Axis',\n 'axisY2.fields': 'y2AxisField',\n 'chart.barSpacing': 'barSpacing',\n 'chart.columnSpacing': 'columnSpacing',\n 'chart.seriesSpacing': 'seriesSpacing',\n 'chart.nullValueMode': 'nullValueMode',\n 'chart.markerSize': 'markerSize',\n 'chart.showDataLabels': 'showDataLabels',\n 'chart.showLegend': 'showLegend',\n 'chart.showLines': 'showLines',\n 'chart.showMarkers': 'showMarkers',\n 'chart.stackMode': 'stackMode',\n 'data.fieldListMode': 'fieldListMode',\n 'data.fieldShowList': 'fieldShowList',\n 'data.fieldHideList': 'fieldHideList',\n 'gridLinesX.showMajorLines': 'showMajorXGridLines',\n 'gridLinesY.showMajorLines': 'showMajorYGridLines',\n 'gridLinesY2.showMajorLines': 'showMajorY2GridLines',\n 'gridLinesX.showMinorLines': 'showMinorXGridLines',\n 'gridLinesY.showMinorLines': 'showMinorYGridLines',\n 'gridLinesY2.showMinorLines': 'showMinorY2GridLines',\n 'layout.splitSeries': 'splitSeries',\n 'layout.splitSeries.allowIndependentYRanges': 'allowIndependentYRanges',\n 'legend.labels': 'legendLabels',\n 'legend.labelStyle.overflowMode': 'legendLabelOverflowMode',\n 'legend.masterLegend': 'masterLegend',\n 'legend.mode': 'legendMode',\n 'legend.placement': 'legendPlacement',\n 'chart.bubbleMaximumSize': 'bubbleMaxSize',\n 'chart.bubbleMinimumSize': 'bubbleMinSize',\n 'chart.bubbleSizeBy': 'bubbleSizeBy',\n};\n\nconst propsToSimpleXMLOptionsMap = invert(simpleXMLOptionsToPropsMap);\n\n// export to make it testable\nexport const replaceObjectKeysFromMap = (object = {}, map = {}, isValidKey = () => true) => {\n const nuObject = {};\n Object.keys(object).forEach(key => {\n const nuKey = map[key];\n if (!nuKey) {\n if (isValidKey(key)) {\n // @TODO(pwied):\n // get rid of this and ensure all known props are passed down to visualizations explicitly\n // captured here: SCP-14634\n nuObject[key] = object[key];\n }\n } else {\n nuObject[nuKey] = object[key];\n }\n });\n return nuObject;\n};\n\nexport const getPropsForSimpleXMLOptions = (options = {}) =>\n replaceObjectKeysFromMap(options, simpleXMLOptionsToPropsMap, value => value.indexOf('.') === -1);\n\nexport const getSimpleXMLOptionsForProps = (props = {}) =>\n replaceObjectKeysFromMap(props, propsToSimpleXMLOptionsMap);\n"],"sourceRoot":""}
package/testHelper.js CHANGED
@@ -87,12 +87,12 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 61);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 62);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
94
94
 
95
- /***/ 61:
95
+ /***/ 62:
96
96
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
97
 
98
98
  "use strict";
package/testHelper.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/testHelper.js"],"names":["defaultAreaProps","legendPlacement","legendLabelOverflowMode","legendMode","masterLegend","resultTruncationLimit","xAxisVisibility","yAxisVisibility","yAxisExtendsAxisRange","xAxisMajorLabelVisibility","yAxisMajorLabelVisibility","xAxisMajorTickSize","yAxisMajorTickSize","yAxisMinorTickSize","xAxisMajorTickVisibility","yAxisMajorTickVisibility","yAxisMajorUnit","yAxisMinorTickVisibility","yAxisAbbreviation","yAxisIncludeZero","xAxisMax","yAxisMax","yAxisMin","yAxisScale","xAxisTitleVisibility","yAxisTitleVisibility","showMajorYGridLines","showMinorYGridLines","y2AxisMajorLabelVisibility","y2AxisMajorTickSize","y2AxisMinorTickSize","y2AxisMajorTickVisibility","y2AxisMajorUnit","y2AxisMinorTickVisibility","y2AxisAbbreviation","roundY2AxisLabelsToInteger","y2AxisIncludeZero","y2AxisMax","y2AxisMin","y2AxisScale","y2AxisTitleVisibility","showMajorY2GridLines","showMinorY2GridLines","y2AxisVisibility","enableY2Axis","fieldListMode","xAxisMajorLabelRotation","showMajorXGridLines","splitSeries","allowIndependentYRanges","showDataLabels","stackMode","areaFillOpacity","nullValueMode","showLines","xAxisTitleAlignment","yAxisTitleAlignment","y2AxisTitleAlignment","areaLineCap","areaLineWidth","lineWidth","xAxisMaxLabelParts","defaultColumnProps","columnGrouping","columnFillOpacity","showTooltip","defaultLineProps","roundYAxisLabelsToInteger","lineDashStyle","showMarkers","showMarkerHalo","lineMarkerStyle","defaultBarProps","defaultPunchcardProps","theme","backgroundColor","showBubbleLabels","bubbleRowScale","bubbleScale","category","colorMode","seriesColors","bubbleColor","minBubbleColorIntensity","showMaxValuePulsation","height","width","isBubbleSizeDynamic","minBubbleSize","maxBubbleSize","maxBubbleRadius","minBubbleRadius","showLegend","useDefaultSort","defaultBubbleProps","xAxisExtendsAxisRange","xAxisMajorUnit","xAxisAbbreviation","roundXAxisLabelsToInteger","xAxisMinorTickSize","xAxisMinorTickVisibility","xAxisIncludeZero","xAxisMin","xAxisScale","bubbleMaxSize","bubbleMinSize","bubbleSizeBy","showMinorXGridLines","defaultScatterProps","markerSize"],"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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAMA,gBAAgB,GAAG;AAC5BC,iBAAe,EADa;AAE5BC,yBAAuB,EAFK;AAG5BC,YAAU,EAHkB;AAI5BC,cAAY,EAJgB;AAK5BC,uBAAqB,EALO;AAM5BC,iBAAe,EANa;AAO5BC,iBAAe,EAPa;AAQ5BC,uBAAqB,EARO;AAS5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AAiB/BC,mBAAiB,EAjBc;AAkB/BC,kBAAgB,EAlBe;AAmB/BC,UAAQ,EAnBuB;AAoB/BC,UAAQ,EApBuB;AAqB/BC,UAAQ,EArBuB;AAsB/BC,YAAU,EAtBqB;AAuB/BC,sBAAoB,EAvBW;AAwB/BC,sBAAoB,EAxBW;AAyB/BC,qBAAmB,EAzBY;AA0B/BC,qBAAmB,EA1BY;AA2B/BoE,uBAAqB,EA3BU;AA4B/BjD,yBAAuB,EA5BQ;AA6B/BkD,gBAAc,EA7BiB;AA8B/BC,mBAAiB,EA9Bc;AA+B/BC,2BAAyB,EA/BM;AAgC/BC,oBAAkB,EAhCa;AAiC/BC,0BAAwB,EAjCO;AAkC/BC,kBAAgB,EAlCe;AAmC/BC,UAAQ,EAnCuB;AAoC/BC,YAAU,EApCqB;AAqC/BI,qBAAmB,EArCY;AAsC/BE,YAAU,EAtCqB;AAuC/BhD,oBAAkB,EAAE;AAvCW,CAA5B,C","file":"testHelper.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 = 61);\n","export const defaultAreaProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n legendMode: 'standard',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'hide',\n yAxisMajorTickVisibility: 'hide',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'hide',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n xAxisMajorLabelRotation: 0,\n showMajorXGridLines: true,\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n stackMode: 'default',\n areaFillOpacity: 0.75,\n nullValueMode: 'gaps',\n showLines: true,\n xAxisTitleAlignment: 'low',\n yAxisTitleAlignment: 'low',\n y2AxisTitleAlignment: 'low',\n areaLineCap: 'round',\n areaLineWidth: 1.5,\n lineWidth: 2,\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultColumnProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'auto',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n xAxisMajorLabelRotation: 0,\n showMajorXGridLines: false,\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n stackMode: 'default',\n columnGrouping: 'default',\n columnFillOpacity: 1,\n lineWidth: 2,\n xAxisMaxLabelParts: 3,\n showTooltip: true,\n};\n\nexport const defaultLineProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n legendMode: 'standard',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'hide',\n yAxisMajorTickVisibility: 'hide',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'hide',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundYAxisLabelsToInteger: false,\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n xAxisMajorLabelRotation: 0,\n showMajorXGridLines: true,\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n nullValueMode: 'gaps',\n lineDashStyle: 'solid',\n lineWidth: 2,\n showMarkers: true,\n showMarkerHalo: false,\n lineMarkerStyle: 'hollow',\n xAxisTitleAlignment: 'low',\n yAxisTitleAlignment: 'low',\n y2AxisTitleAlignment: 'low',\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultBarProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'auto',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n stackMode: 'default',\n lineWidth: 2,\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultPunchcardProps = {\n theme: undefined,\n backgroundColor: 'transparent',\n showBubbleLabels: 'all',\n bubbleRowScale: 'global',\n bubbleScale: 'area',\n category: null,\n colorMode: 'categorical',\n seriesColors: [\n '#7B56DB',\n '#0089CF',\n '#00CDAF',\n '#DD9900',\n '#FF677B',\n '#CB2196',\n '#813193',\n '#0051B5',\n '#008C80',\n '#99B100',\n '#FFA476',\n '#FF6ACE',\n '#AE8CFF',\n '#00689D',\n '#00490A',\n '#465D00',\n '#9D6300',\n '#F6540B',\n '#FF969E',\n '#E47BFE',\n ],\n bubbleColor: '#7B56DB',\n minBubbleColorIntensity: 0.25,\n showMaxValuePulsation: true,\n height: 500,\n width: '100%',\n isBubbleSizeDynamic: true,\n minBubbleSize: 0.25,\n maxBubbleSize: 1,\n maxBubbleRadius: 15,\n minBubbleRadius: 1,\n showLegend: true,\n useDefaultSort: false,\n};\n\nexport const defaultBubbleProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n xAxisExtendsAxisRange: true,\n xAxisMajorLabelRotation: 0,\n xAxisMajorUnit: 'auto',\n xAxisAbbreviation: 'none',\n roundXAxisLabelsToInteger: false,\n xAxisMinorTickSize: 6,\n xAxisMinorTickVisibility: 'auto',\n xAxisIncludeZero: false,\n xAxisMin: 'auto',\n xAxisScale: 'linear',\n bubbleMaxSize: 50,\n bubbleMinSize: 10,\n bubbleSizeBy: 'area',\n showMinorXGridLines: false,\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultScatterProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n xAxisExtendsAxisRange: true,\n xAxisMajorLabelRotation: 0,\n xAxisMajorUnit: 'auto',\n xAxisAbbreviation: 'none',\n roundXAxisLabelsToInteger: false,\n xAxisMinorTickSize: 6,\n xAxisMinorTickVisibility: 'auto',\n xAxisIncludeZero: false,\n xAxisMin: 'auto',\n xAxisScale: 'linear',\n showMinorXGridLines: false,\n markerSize: 4,\n xAxisMaxLabelParts: 3,\n};\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/testHelper.js"],"names":["defaultAreaProps","legendPlacement","legendLabelOverflowMode","legendMode","masterLegend","resultTruncationLimit","xAxisVisibility","yAxisVisibility","yAxisExtendsAxisRange","xAxisMajorLabelVisibility","yAxisMajorLabelVisibility","xAxisMajorTickSize","yAxisMajorTickSize","yAxisMinorTickSize","xAxisMajorTickVisibility","yAxisMajorTickVisibility","yAxisMajorUnit","yAxisMinorTickVisibility","yAxisAbbreviation","yAxisIncludeZero","xAxisMax","yAxisMax","yAxisMin","yAxisScale","xAxisTitleVisibility","yAxisTitleVisibility","showMajorYGridLines","showMinorYGridLines","y2AxisMajorLabelVisibility","y2AxisMajorTickSize","y2AxisMinorTickSize","y2AxisMajorTickVisibility","y2AxisMajorUnit","y2AxisMinorTickVisibility","y2AxisAbbreviation","roundY2AxisLabelsToInteger","y2AxisIncludeZero","y2AxisMax","y2AxisMin","y2AxisScale","y2AxisTitleVisibility","showMajorY2GridLines","showMinorY2GridLines","y2AxisVisibility","enableY2Axis","fieldListMode","xAxisMajorLabelRotation","showMajorXGridLines","splitSeries","allowIndependentYRanges","showDataLabels","stackMode","areaFillOpacity","nullValueMode","showLines","xAxisTitleAlignment","yAxisTitleAlignment","y2AxisTitleAlignment","areaLineCap","areaLineWidth","lineWidth","xAxisMaxLabelParts","defaultColumnProps","columnGrouping","columnFillOpacity","showTooltip","defaultLineProps","roundYAxisLabelsToInteger","lineDashStyle","showMarkers","showMarkerHalo","lineMarkerStyle","defaultBarProps","defaultPunchcardProps","theme","backgroundColor","showBubbleLabels","bubbleRowScale","bubbleScale","category","colorMode","seriesColors","bubbleColor","minBubbleColorIntensity","showMaxValuePulsation","height","width","isBubbleSizeDynamic","minBubbleSize","maxBubbleSize","maxBubbleRadius","minBubbleRadius","showLegend","useDefaultSort","defaultBubbleProps","xAxisExtendsAxisRange","xAxisMajorUnit","xAxisAbbreviation","roundXAxisLabelsToInteger","xAxisMinorTickSize","xAxisMinorTickVisibility","xAxisIncludeZero","xAxisMin","xAxisScale","bubbleMaxSize","bubbleMinSize","bubbleSizeBy","showMinorXGridLines","defaultScatterProps","markerSize"],"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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAMA,gBAAgB,GAAG;AAC5BC,iBAAe,EADa;AAE5BC,yBAAuB,EAFK;AAG5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BAAkB,EAXa;AAY/BC,oBAAkB,EAZa;AAa/BC,0BAAwB,EAbO;AAc/BC,0BAAwB,EAdO;AAe/BC,gBAAc,EAfiB;AAgB/BC,0BAAwB,EAhBO;AAiB/BC,mBAAiB,EAjBc;AAkB/BC,kBAAgB,EAlBe;AAmB/BC,UAAQ,EAnBuB;AAoB/BC,UAAQ,EApBuB;AAqB/BC,UAAQ,EArBuB;AAsB/BC,YAAU,EAtBqB;AAuB/BC,sBAAoB,EAvBW;AAwB/BC,sBAAoB,EAxBW;AAyB/BC,qBAAmB,EAzBY;AA0B/BC,qBAAmB,EA1BY;AA2B/BoE,uBAAqB,EA3BU;AA4B/BjD,yBAAuB,EA5BQ;AA6B/BkD,gBAAc,EA7BiB;AA8B/BC,mBAAiB,EA9Bc;AA+B/BC,2BAAyB,EA/BM;AAgC/BC,oBAAkB,EAhCa;AAiC/BC,0BAAwB,EAjCO;AAkC/BC,kBAAgB,EAlCe;AAmC/BC,UAAQ,EAnCuB;AAoC/BC,YAAU,EApCqB;AAqC/BI,qBAAmB,EArCY;AAsC/BE,YAAU,EAtCqB;AAuC/BhD,oBAAkB,EAAE;AAvCW,CAA5B,C","file":"testHelper.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 = 62);\n","export const defaultAreaProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n legendMode: 'standard',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'hide',\n yAxisMajorTickVisibility: 'hide',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'hide',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n xAxisMajorLabelRotation: 0,\n showMajorXGridLines: true,\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n stackMode: 'default',\n areaFillOpacity: 0.75,\n nullValueMode: 'gaps',\n showLines: true,\n xAxisTitleAlignment: 'low',\n yAxisTitleAlignment: 'low',\n y2AxisTitleAlignment: 'low',\n areaLineCap: 'round',\n areaLineWidth: 1.5,\n lineWidth: 2,\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultColumnProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'auto',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n xAxisMajorLabelRotation: 0,\n showMajorXGridLines: false,\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n stackMode: 'default',\n columnGrouping: 'default',\n columnFillOpacity: 1,\n lineWidth: 2,\n xAxisMaxLabelParts: 3,\n showTooltip: true,\n};\n\nexport const defaultLineProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n legendMode: 'standard',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'hide',\n yAxisMajorTickVisibility: 'hide',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'hide',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundYAxisLabelsToInteger: false,\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n xAxisMajorLabelRotation: 0,\n showMajorXGridLines: true,\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n nullValueMode: 'gaps',\n lineDashStyle: 'solid',\n lineWidth: 2,\n showMarkers: true,\n showMarkerHalo: false,\n lineMarkerStyle: 'hollow',\n xAxisTitleAlignment: 'low',\n yAxisTitleAlignment: 'low',\n y2AxisTitleAlignment: 'low',\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultBarProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n y2AxisMajorLabelVisibility: 'auto',\n y2AxisMajorTickSize: 6,\n y2AxisMinorTickSize: 6,\n y2AxisMajorTickVisibility: 'auto',\n y2AxisMajorUnit: 'auto',\n y2AxisMinorTickVisibility: 'auto',\n y2AxisAbbreviation: 'none',\n roundY2AxisLabelsToInteger: false,\n y2AxisIncludeZero: false,\n y2AxisMax: 'auto',\n y2AxisMin: 'auto',\n y2AxisScale: 'linear',\n y2AxisTitleVisibility: 'visible',\n showMajorY2GridLines: true,\n showMinorY2GridLines: false,\n y2AxisVisibility: 'hide',\n enableY2Axis: false,\n fieldListMode: 'hide_show',\n splitSeries: false,\n allowIndependentYRanges: false,\n showDataLabels: 'none',\n stackMode: 'default',\n lineWidth: 2,\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultPunchcardProps = {\n theme: undefined,\n backgroundColor: 'transparent',\n showBubbleLabels: 'all',\n bubbleRowScale: 'global',\n bubbleScale: 'area',\n category: null,\n colorMode: 'categorical',\n seriesColors: [\n '#7B56DB',\n '#0089CF',\n '#00CDAF',\n '#DD9900',\n '#FF677B',\n '#CB2196',\n '#813193',\n '#0051B5',\n '#008C80',\n '#99B100',\n '#FFA476',\n '#FF6ACE',\n '#AE8CFF',\n '#00689D',\n '#00490A',\n '#465D00',\n '#9D6300',\n '#F6540B',\n '#FF969E',\n '#E47BFE',\n ],\n bubbleColor: '#7B56DB',\n minBubbleColorIntensity: 0.25,\n showMaxValuePulsation: true,\n height: 500,\n width: '100%',\n isBubbleSizeDynamic: true,\n minBubbleSize: 0.25,\n maxBubbleSize: 1,\n maxBubbleRadius: 15,\n minBubbleRadius: 1,\n showLegend: true,\n useDefaultSort: false,\n};\n\nexport const defaultBubbleProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n xAxisExtendsAxisRange: true,\n xAxisMajorLabelRotation: 0,\n xAxisMajorUnit: 'auto',\n xAxisAbbreviation: 'none',\n roundXAxisLabelsToInteger: false,\n xAxisMinorTickSize: 6,\n xAxisMinorTickVisibility: 'auto',\n xAxisIncludeZero: false,\n xAxisMin: 'auto',\n xAxisScale: 'linear',\n bubbleMaxSize: 50,\n bubbleMinSize: 10,\n bubbleSizeBy: 'area',\n showMinorXGridLines: false,\n xAxisMaxLabelParts: 3,\n};\n\nexport const defaultScatterProps = {\n legendPlacement: 'right',\n legendLabelOverflowMode: 'ellipsisMiddle',\n masterLegend: null,\n resultTruncationLimit: 50000,\n xAxisVisibility: 'hide',\n yAxisVisibility: 'hide',\n yAxisExtendsAxisRange: true,\n xAxisMajorLabelVisibility: 'auto',\n yAxisMajorLabelVisibility: 'auto',\n xAxisMajorTickSize: 6,\n yAxisMajorTickSize: 6,\n yAxisMinorTickSize: 6,\n xAxisMajorTickVisibility: 'auto',\n yAxisMajorTickVisibility: 'auto',\n yAxisMajorUnit: 'auto',\n yAxisMinorTickVisibility: 'auto',\n yAxisAbbreviation: 'none',\n yAxisIncludeZero: false,\n xAxisMax: 'auto',\n yAxisMax: 'auto',\n yAxisMin: 'auto',\n yAxisScale: 'linear',\n xAxisTitleVisibility: 'visible',\n yAxisTitleVisibility: 'visible',\n showMajorYGridLines: true,\n showMinorYGridLines: false,\n xAxisExtendsAxisRange: true,\n xAxisMajorLabelRotation: 0,\n xAxisMajorUnit: 'auto',\n xAxisAbbreviation: 'none',\n roundXAxisLabelsToInteger: false,\n xAxisMinorTickSize: 6,\n xAxisMinorTickVisibility: 'auto',\n xAxisIncludeZero: false,\n xAxisMin: 'auto',\n xAxisScale: 'linear',\n showMinorXGridLines: false,\n markerSize: 4,\n xAxisMaxLabelParts: 3,\n};\n"],"sourceRoot":""}
package/themeUtils.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 = 62);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 63);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -106,7 +106,7 @@ module.exports = require("@splunk/themes/getSettingsFromThemedProps");
106
106
 
107
107
  /***/ }),
108
108
 
109
- /***/ 62:
109
+ /***/ 63:
110
110
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
111
111
 
112
112
  "use strict";
package/themeUtils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"lodash/get\"","webpack:///external \"@splunk/themes/getSettingsFromThemedProps\"","webpack:///./src/themeUtils.js"],"names":["chartingThemes","light","enterprise","prisma","dark","getChartingThemeKey","getSettingsFromThemedProps","theme","colorScheme","family","get"],"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,sE;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;CAGA;;AACA,IAAMA,cAAc,GAAG;AACnBC,OAAK,EAAE;AACHC,cAAU,EADP;AAEH;AACAC,UAAM,EAAE;AAHL,GADY;AAMnBC,MAAI,EAAE;AACFF,cAAU,EADR;AAEFC,UAAM,EAAE;AAFN;AANa,CAAvB;AAYA;AACA;AACA;AACA;AACA;;AACO,IAAME,mBAAmB,GAAG,SAAtBA,mBAAsB,QAAS;AACxC,MAAI,CAAJ,OAAY;AACR;AACH;;AAHuC,8BAKRC,gFAA0B,CAAC;AAAEC,SAAK,EAALA;AAAF,GAAD,CALlB;AAAA,MAKhCC,WALgC;AAAA,MAKnBC,MALmB;;AAMxC,SAAOC,iDAAG,iBAAiB,cAAjB,MAAiB,CAAjB,EAAV,YAAU,CAAV;AANG,E","file":"themeUtils.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 = 62);\n","module.exports = require(\"lodash/get\");","module.exports = require(\"@splunk/themes/getSettingsFromThemedProps\");","import get from 'lodash/get';\nimport getSettingsFromThemedProps from '@splunk/themes/getSettingsFromThemedProps';\n\n// TODO: update splunk-charting to accept 'prisma' directly values\nconst chartingThemes = {\n light: {\n enterprise: 'default',\n // TODO(fkurniawan): add prisma light theming to splunk-charting once designs are finalized\n prisma: 'default',\n },\n dark: {\n enterprise: 'dark',\n prisma: 'prismaDark',\n },\n};\n\n/*\n * convert theme name for splunk-charting based visualization\n * @params {Object} theme\n * @return {String} 'prismaDark', 'dark' or 'default'\n */\nexport const getChartingThemeKey = theme => {\n if (!theme) {\n return 'prismaDark';\n }\n\n const { colorScheme, family } = getSettingsFromThemedProps({ theme });\n return get(chartingThemes, [colorScheme, family], 'prismaDark');\n};\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"lodash/get\"","webpack:///external \"@splunk/themes/getSettingsFromThemedProps\"","webpack:///./src/themeUtils.js"],"names":["chartingThemes","light","enterprise","prisma","dark","getChartingThemeKey","getSettingsFromThemedProps","theme","colorScheme","family","get"],"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,sE;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;CAGA;;AACA,IAAMA,cAAc,GAAG;AACnBC,OAAK,EAAE;AACHC,cAAU,EADP;AAEH;AACAC,UAAM,EAAE;AAHL,GADY;AAMnBC,MAAI,EAAE;AACFF,cAAU,EADR;AAEFC,UAAM,EAAE;AAFN;AANa,CAAvB;AAYA;AACA;AACA;AACA;AACA;;AACO,IAAME,mBAAmB,GAAG,SAAtBA,mBAAsB,QAAS;AACxC,MAAI,CAAJ,OAAY;AACR;AACH;;AAHuC,8BAKRC,gFAA0B,CAAC;AAAEC,SAAK,EAALA;AAAF,GAAD,CALlB;AAAA,MAKhCC,WALgC;AAAA,MAKnBC,MALmB;;AAMxC,SAAOC,iDAAG,iBAAiB,cAAjB,MAAiB,CAAjB,EAAV,YAAU,CAAV;AANG,E","file":"themeUtils.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 = 63);\n","module.exports = require(\"lodash/get\");","module.exports = require(\"@splunk/themes/getSettingsFromThemedProps\");","import get from 'lodash/get';\nimport getSettingsFromThemedProps from '@splunk/themes/getSettingsFromThemedProps';\n\n// TODO: update splunk-charting to accept 'prisma' directly values\nconst chartingThemes = {\n light: {\n enterprise: 'default',\n // TODO(fkurniawan): add prisma light theming to splunk-charting once designs are finalized\n prisma: 'default',\n },\n dark: {\n enterprise: 'dark',\n prisma: 'prismaDark',\n },\n};\n\n/*\n * convert theme name for splunk-charting based visualization\n * @params {Object} theme\n * @return {String} 'prismaDark', 'dark' or 'default'\n */\nexport const getChartingThemeKey = theme => {\n if (!theme) {\n return 'prismaDark';\n }\n\n const { colorScheme, family } = getSettingsFromThemedProps({ theme });\n return get(chartingThemes, [colorScheme, family], 'prismaDark');\n};\n"],"sourceRoot":""}