@splunk/visualization-encoding-parsers 26.0.0 → 26.1.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/AreaParser.js CHANGED
@@ -126,8 +126,7 @@ var dataContract = {
126
126
  name: 'primary',
127
127
  description: 'DataSource that powers the visualization'
128
128
  }],
129
- optionalDataSources: [
130
- // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
129
+ optionalDataSources: [// Note: SCP-14090 disable ui for optional datasources. We may need to add it back later
131
130
  // {
132
131
  // name: 'annotation',
133
132
  // description: 'DataSource that populate event annotations',
@@ -172,7 +171,6 @@ var dataContract = {
172
171
  }
173
172
  }
174
173
  };
175
-
176
174
  /**
177
175
  * Area parse function
178
176
  * @param {object} dataSources
@@ -180,10 +178,12 @@ var dataContract = {
180
178
  * @return {object} props that dashboard/react visualizations can be used.
181
179
  * @public
182
180
  */
181
+
183
182
  var parse = function parse(dataSources, userDefinedEncoding) {
184
183
  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(dataSources)) {
185
184
  throw new Error(_errorMsgs__WEBPACK_IMPORTED_MODULE_2__["ErrorMsgs"].NO_DATA_SOURCES);
186
185
  }
186
+
187
187
  var encoding = Object(_splunk_visualization_encoding_parsers_Base__WEBPACK_IMPORTED_MODULE_0__["mergeEncoding"])(dataContract.encoding, userDefinedEncoding);
188
188
  var parsedProps = Object(_splunk_visualization_encoding_parsers_Base__WEBPACK_IMPORTED_MODULE_0__["parse"])(dataSources, encoding);
189
189
  return {
@@ -198,6 +198,7 @@ var parse = function parse(dataSources, userDefinedEncoding) {
198
198
  yFieldName: parsedProps['_meta'].fieldNames.y,
199
199
  // eslint-disable-line dot-notation
200
200
  y2FieldName: parsedProps['_meta'].fieldNames.y2 // eslint-disable-line dot-notation
201
+
201
202
  };
202
203
  };
203
204
 
package/AreaParser.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualization-encoding-parsers/Base\"","webpack:///./src/AreaParser.js","webpack:///./src/errorMsgs.js","webpack:///external \"lodash/isEmpty\""],"names":["dataContract","requiredDataSources","name","description","optionalDataSources","initialRequestParams","primary","offset","count","annotation","encoding","x","isRequired","type","default","y","y2","annotationX","annotationLabel","annotationColor","parse","dataSources","userDefinedEncoding","isEmpty","Error","ErrorMsgs","NO_DATA_SOURCES","mergeEncoding","parsedProps","baseParse","xFieldName","fieldNames","yFieldName","y2FieldName","_","NO_ENCODING","ERROR_PARSE"],"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,kD;;;;;;;ACAA,wE;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgG;AAC3D;AACG;AAEjC,IAAMA,YAAY,GAAG;EACxBC,mBAAmB,EAAE,CACjB;IACIC,IAAI,EAAE,SAAS;IACfC,WAAW,EAAE;EACjB,CAAC,CACJ;EACDC,mBAAmB,EAAE;IACjB;IACA;IACA;IACA;IACA;EAAA,CACH;EACDC,oBAAoB,EAAE;IAClBC,OAAO,EAAE;MAAEC,MAAM,EAA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CAAC,EAAEa,WAAW,CAACb,CAAC;IAChBC,EAAE,EAAEY,WAAW,CAACZ,EAAE;IAClBC,WAAW,EAAEW,WAAW,CAACX,WAAW;IACpCC,eAAe,EAAEU,WAAW,CAACV,eAAe;IAC5CC,eAAe,EAAES,WAAW,CAACT,eAAe;IAC5CW,UAAU,EAAEF,WAAW,CAAC,OAAO,CAAC,CAACG,UAAU,CAACpB,CAAC;IAAE;IAC/CqB,UAAU,EAAEJ,WAAW,CAAC,OAAO,CAAC,CAACG,UAAU,CAAChB,CAAC;IAAE;IAC/CkB,WAAW,EAAEL,WAAW,CAAC,OAAO,CAAC,CAACG,UAAU,CAACf,EAAE,CAAE;EACrD,CAAC;AACL,CAAC,C;;;;;;;;AC9ED;AAAA;AAAA;AAAA;AAA0C;AAEnC,IAAMS,SAAS,GAAG;EACrBC,eAAe,EAAEQ,+DAAC,CAAC,uBAAuB,CAAC;EAC3CC,WAAW,EAAED,+DAAC,CAAC,oBAAoB,CAAC;EACpCE,WAAW,EAAEF,+DAAC,CAAC,+BAA+B;AAClD,CAAC,C;;;;;;;ACND,2C","file":"AreaParser.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 = 16);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualization-encoding-parsers/Base\");","import { parse as baseParse, mergeEncoding } from '@splunk/visualization-encoding-parsers/Base';\nimport isEmpty from 'lodash/isEmpty';\nimport { ErrorMsgs } from './errorMsgs';\n\nexport const dataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [\n // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later\n // {\n // name: 'annotation',\n // description: 'DataSource that populate event annotations',\n // },\n ],\n initialRequestParams: {\n primary: { offset: 0, count: 10000 },\n annotation: { offset: 0, count: 10000 },\n },\n encoding: {\n x: {\n isRequired: true,\n type: ['time', 'number', 'string'],\n default: 'primary[0]',\n },\n y: {\n isRequired: true,\n type: ['number', 'string'],\n default: 'primary[1:]',\n },\n y2: {\n isRequired: false,\n type: ['number', 'string'],\n },\n annotationX: {\n isRequired: false,\n type: ['time', 'number', 'string'],\n },\n annotationLabel: {\n isRequired: false,\n type: ['string'],\n },\n annotationColor: {\n isRequired: false,\n type: ['string'],\n },\n },\n};\n\n/**\n * Area parse function\n * @param {object} dataSources\n * @param {object} userDefinedEncoding\n * @return {object} props that dashboard/react visualizations can be used.\n * @public\n */\nexport const parse = (dataSources, userDefinedEncoding) => {\n if (isEmpty(dataSources)) {\n throw new Error(ErrorMsgs.NO_DATA_SOURCES);\n }\n\n const encoding = mergeEncoding(dataContract.encoding, userDefinedEncoding);\n const parsedProps = baseParse(dataSources, encoding);\n\n return {\n x: parsedProps.x,\n y: parsedProps.y,\n y2: parsedProps.y2,\n annotationX: parsedProps.annotationX,\n annotationLabel: parsedProps.annotationLabel,\n annotationColor: parsedProps.annotationColor,\n xFieldName: parsedProps['_meta'].fieldNames.x, // eslint-disable-line dot-notation\n yFieldName: parsedProps['_meta'].fieldNames.y, // eslint-disable-line dot-notation\n y2FieldName: parsedProps['_meta'].fieldNames.y2, // eslint-disable-line dot-notation\n };\n};\n","import { _ } from '@splunk/ui-utils/i18n';\n\nexport const ErrorMsgs = {\n NO_DATA_SOURCES: _('No valid dataSources.'),\n NO_ENCODING: _('No valid encoding.'),\n ERROR_PARSE: _('Can not parse data correctly.'),\n};\n","module.exports = require(\"lodash/isEmpty\");"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualization-encoding-parsers/Base\"","webpack:///./src/AreaParser.js","webpack:///./src/errorMsgs.js","webpack:///external \"lodash/isEmpty\""],"names":["dataContract","requiredDataSources","name","description","optionalDataSources","initialRequestParams","primary","offset","count","annotation","encoding","x","isRequired","type","default","y","y2","annotationX","annotationLabel","annotationColor","parse","isEmpty","ErrorMsgs","mergeEncoding","parsedProps","baseParse","xFieldName","yFieldName","y2FieldName","NO_DATA_SOURCES","_","NO_ENCODING","ERROR_PARSE"],"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,kD;;;;;;;ACAA,wE;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEO,IAAMA,YAAY,GAAG;AACxBC,qBAAmB,EAAE,CACjB;AACIC,QAAI,EADR;AAEIC,eAAW,EAAE;AAFjB,GADiB,CADG;AAOxBC,qBAAmB,EAAE,CACjB;AACA;AACA;AACA;AACA;AALiB,GAPG;AAcxBC,sBAAoB,EAAE;AAClBC,WAAO,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AO4C;AAC/CG,cAAU,EAAEH,WAAW,CAAXA,OAAW,CAAXA,YART;AAQ4C;AAC/CI,eAAW,EAAEJ,WAAW,CAAXA,OAAW,CAAXA,YATV,GAS8C;;AAT9C,GAAP;AARG,E;;;;;;;;AC3DP;AAAA;AAAA;AAAA;AAAA;AAEO,IAAMF,SAAS,GAAG;AACrBO,iBAAe,EAAEC,+DAAC,CADG,uBACH,CADG;AAErBC,aAAW,EAAED,+DAAC,CAFO,oBAEP,CAFO;AAGrBE,aAAW,EAAEF,+DAAC;AAHO,CAAlB,C;;;;;;;ACFP,2C","file":"AreaParser.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 = 16);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualization-encoding-parsers/Base\");","import { parse as baseParse, mergeEncoding } from '@splunk/visualization-encoding-parsers/Base';\nimport isEmpty from 'lodash/isEmpty';\nimport { ErrorMsgs } from './errorMsgs';\n\nexport const dataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [\n // Note: SCP-14090 disable ui for optional datasources. We may need to add it back later\n // {\n // name: 'annotation',\n // description: 'DataSource that populate event annotations',\n // },\n ],\n initialRequestParams: {\n primary: { offset: 0, count: 10000 },\n annotation: { offset: 0, count: 10000 },\n },\n encoding: {\n x: {\n isRequired: true,\n type: ['time', 'number', 'string'],\n default: 'primary[0]',\n },\n y: {\n isRequired: true,\n type: ['number', 'string'],\n default: 'primary[1:]',\n },\n y2: {\n isRequired: false,\n type: ['number', 'string'],\n },\n annotationX: {\n isRequired: false,\n type: ['time', 'number', 'string'],\n },\n annotationLabel: {\n isRequired: false,\n type: ['string'],\n },\n annotationColor: {\n isRequired: false,\n type: ['string'],\n },\n },\n};\n\n/**\n * Area parse function\n * @param {object} dataSources\n * @param {object} userDefinedEncoding\n * @return {object} props that dashboard/react visualizations can be used.\n * @public\n */\nexport const parse = (dataSources, userDefinedEncoding) => {\n if (isEmpty(dataSources)) {\n throw new Error(ErrorMsgs.NO_DATA_SOURCES);\n }\n\n const encoding = mergeEncoding(dataContract.encoding, userDefinedEncoding);\n const parsedProps = baseParse(dataSources, encoding);\n\n return {\n x: parsedProps.x,\n y: parsedProps.y,\n y2: parsedProps.y2,\n annotationX: parsedProps.annotationX,\n annotationLabel: parsedProps.annotationLabel,\n annotationColor: parsedProps.annotationColor,\n xFieldName: parsedProps['_meta'].fieldNames.x, // eslint-disable-line dot-notation\n yFieldName: parsedProps['_meta'].fieldNames.y, // eslint-disable-line dot-notation\n y2FieldName: parsedProps['_meta'].fieldNames.y2, // eslint-disable-line dot-notation\n };\n};\n","import { _ } from '@splunk/ui-utils/i18n';\n\nexport const ErrorMsgs = {\n NO_DATA_SOURCES: _('No valid dataSources.'),\n NO_ENCODING: _('No valid encoding.'),\n ERROR_PARSE: _('Can not parse data correctly.'),\n};\n","module.exports = require(\"lodash/isEmpty\");"],"sourceRoot":""}
package/BarParser.js CHANGED
@@ -153,7 +153,6 @@ var dataContract = {
153
153
  }
154
154
  }
155
155
  };
156
-
157
156
  /**
158
157
  * Bar parse function
159
158
  * @param {object} dataSources
@@ -161,10 +160,12 @@ var dataContract = {
161
160
  * @return {object} props that dashboard/react visualizations can be used.
162
161
  * @public
163
162
  */
163
+
164
164
  var parse = function parse(dataSources, userDefinedEncoding) {
165
165
  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(dataSources)) {
166
166
  throw new Error(_errorMsgs__WEBPACK_IMPORTED_MODULE_2__["ErrorMsgs"].NO_DATA_SOURCES);
167
167
  }
168
+
168
169
  var encoding = Object(_splunk_visualization_encoding_parsers_Base__WEBPACK_IMPORTED_MODULE_0__["mergeEncoding"])(dataContract.encoding, userDefinedEncoding);
169
170
  var parsedProps = Object(_splunk_visualization_encoding_parsers_Base__WEBPACK_IMPORTED_MODULE_0__["parse"])(dataSources, encoding);
170
171
  return {
@@ -176,6 +177,7 @@ var parse = function parse(dataSources, userDefinedEncoding) {
176
177
  yFieldName: parsedProps['_meta'].fieldNames.y,
177
178
  // eslint-disable-line dot-notation
178
179
  y2FieldName: parsedProps['_meta'].fieldNames.y2 // eslint-disable-line dot-notation
180
+
179
181
  };
180
182
  };
181
183
 
package/BarParser.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualization-encoding-parsers/Base\"","webpack:///./src/BarParser.js","webpack:///./src/errorMsgs.js","webpack:///external \"lodash/isEmpty\""],"names":["dataContract","requiredDataSources","name","description","initialRequestParams","primary","options","arguments","length","undefined","offset","count","requestTotalCount","pageable","encoding","x","isRequired","type","default","y","y2","parse","dataSources","userDefinedEncoding","isEmpty","Error","ErrorMsgs","NO_DATA_SOURCES","mergeEncoding","parsedProps","baseParse","xFieldName","fieldNames","yFieldName","y2FieldName","_","NO_ENCODING","ERROR_PARSE"],"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;QAC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C,mBAAmB,EAAK;EACvD,IAAIC,qDAAO,CAACF,WAAW,CAAC,EAAE;IACtB,MAAM,IAAIG,KAAK,CAACC,oDAAS,CAACC,eAAe,CAAC;EAC9C;EAEA,IAAMb,QAAQ,GAAGc,iGAAa,CAAC5B,YAAY,CAACc,QAAQ,EAAES,mBAAmB,CAAC;EAC1E,IAAMM,WAAW,GAAGC,yFAAS,CAACR,WAAW,EAAER,QAAQ,CAAC;EAEpD,OAAO;IACHC,CAAC,EAAEc,WAAW,CAACd,CAAC;IAChBI,CAAC,EAAEU,WAAW,CAACV,CAAC;IAChBC,EAAE,EAAES,WAAW,CAACT,EAAE;IAClBW,UAAU,EAAEF,WAAW,CAAC,OAAO,CAAC,CAACG,UAAU,CAACjB,CAAC;IAAE;IAC/CkB,UAAU,EAAEJ,WAAW,CAAC,OAAO,CAAC,CAACG,UAAU,CAACb,CAAC;IAAE;IAC/Ce,WAAW,EAAEL,WAAW,CAAC,OAAO,CAAC,CAACG,UAAU,CAACZ,EAAE,CAAE;EACrD,CAAC;AACL,CAAC,C;;;;;;;;AC3DD;AAAA;AAAA;AAAA;AAA0C;AAEnC,IAAMM,SAAS,GAAG;EACrBC,eAAe,EAAEQ,+DAAC,CAAC,uBAAuB,CAAC;EAC3CC,WAAW,EAAED,+DAAC,CAAC,oBAAoB,CAAC;EACpCE,WAAW,EAAEF,+DAAC,CAAC,+BAA+B;AAClD,CAAC,C;;;;;;;ACND,2C","file":"BarParser.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 = 17);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualization-encoding-parsers/Base\");","import { parse as baseParse, mergeEncoding } from '@splunk/visualization-encoding-parsers/Base';\nimport isEmpty from 'lodash/isEmpty';\nimport { ErrorMsgs } from './errorMsgs';\n\nexport const dataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n initialRequestParams: {\n primary: (options = {}) => ({\n offset: 0,\n count: options.count || 1000,\n requestTotalCount: options.pageable,\n }),\n },\n encoding: {\n x: {\n isRequired: true,\n type: ['time', 'number', 'string'],\n default: 'primary[0]',\n },\n y: {\n isRequired: true,\n type: ['number', 'string'],\n default: 'primary[1:]',\n },\n y2: {\n isRequired: false,\n type: ['number', 'string'],\n },\n },\n};\n\n/**\n * Bar parse function\n * @param {object} dataSources\n * @param {object} userDefinedEncoding\n * @return {object} props that dashboard/react visualizations can be used.\n * @public\n */\nexport const parse = (dataSources, userDefinedEncoding) => {\n if (isEmpty(dataSources)) {\n throw new Error(ErrorMsgs.NO_DATA_SOURCES);\n }\n\n const encoding = mergeEncoding(dataContract.encoding, userDefinedEncoding);\n const parsedProps = baseParse(dataSources, encoding);\n\n return {\n x: parsedProps.x,\n y: parsedProps.y,\n y2: parsedProps.y2,\n xFieldName: parsedProps['_meta'].fieldNames.x, // eslint-disable-line dot-notation\n yFieldName: parsedProps['_meta'].fieldNames.y, // eslint-disable-line dot-notation\n y2FieldName: parsedProps['_meta'].fieldNames.y2, // eslint-disable-line dot-notation\n };\n};\n","import { _ } from '@splunk/ui-utils/i18n';\n\nexport const ErrorMsgs = {\n NO_DATA_SOURCES: _('No valid dataSources.'),\n NO_ENCODING: _('No valid encoding.'),\n ERROR_PARSE: _('Can not parse data correctly.'),\n};\n","module.exports = require(\"lodash/isEmpty\");"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualization-encoding-parsers/Base\"","webpack:///./src/BarParser.js","webpack:///./src/errorMsgs.js","webpack:///external \"lodash/isEmpty\""],"names":["dataContract","requiredDataSources","name","description","initialRequestParams","primary","options","offset","count","requestTotalCount","pageable","encoding","x","isRequired","type","default","y","y2","parse","isEmpty","ErrorMsgs","mergeEncoding","parsedProps","baseParse","xFieldName","yFieldName","y2FieldName","NO_DATA_SOURCES","_","NO_ENCODING","ERROR_PARSE"],"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,kD;;;;;;;ACAA,wE;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEO,IAAMA,YAAY,GAAG;AACxBC,qBAAmB,EAAE,CACjB;AACIC,QAAI,EADR;AAEIC,eAAW,EAAE;AAFjB,GADiB,CADG;AAOxBC,sBAAoB,EAAE;AAClBC,WAAO,EAAE;AAAA,UAACC,OAAD;AAAA,aAAmB;AACxBC,cAAM,EADkB;AAExBC,aAAK,EAAEF,OAAO,CAAPA,SAFiB;AAGxBG,yBAAiB,EAAEH,OAAO,CAACI;AAHH,OAAnB;AAAA;AADS,GAPE;AAcxBC,UAAQ,EAAE;AACNC,KAAC,EAAE;AACCC,gBAAU,EADX;AAECC,UAAI,EAAE,mBAFP,QAEO,CAFP;AAGCC,aAAO,EAAE;AAHV,KADG;AAMNC,KAAC,EAAE;AACCH,gBAAU,EADX;AAECC,UAAI,EAAE,WAFP,QAEO,CAFP;AAGCC,aAAO,EAAE;AAHV,KANG;AAWNE,MAAE,EAAE;AACAJ,gBAAU,EADV;AAEAC,UAAI,EAAE;AAFN;AAXE;AAdc,CAArB;AAgCP;AACA;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMI,KAAK,GAAG,SAARA,KAAQ,mCAAsC;AACvD,MAAIC,qDAAO,CAAX,WAAW,CAAX,EAA0B;AACtB,UAAM,UAAUC,oDAAS,CAAzB,eAAM,CAAN;AACH;;AAED,MAAMT,QAAQ,GAAGU,iGAAa,CAACrB,YAAY,CAAb,UAA9B,mBAA8B,CAA9B;AACA,MAAMsB,WAAW,GAAGC,yFAAS,cAA7B,QAA6B,CAA7B;AAEA,SAAO;AACHX,KAAC,EAAEU,WAAW,CADX;AAEHN,KAAC,EAAEM,WAAW,CAFX;AAGHL,MAAE,EAAEK,WAAW,CAHZ;AAIHE,cAAU,EAAEF,WAAW,CAAXA,OAAW,CAAXA,YAJT;AAI4C;AAC/CG,cAAU,EAAEH,WAAW,CAAXA,OAAW,CAAXA,YALT;AAK4C;AAC/CI,eAAW,EAAEJ,WAAW,CAAXA,OAAW,CAAXA,YANV,GAM8C;;AAN9C,GAAP;AARG,E;;;;;;;;AC3CP;AAAA;AAAA;AAAA;AAAA;AAEO,IAAMF,SAAS,GAAG;AACrBO,iBAAe,EAAEC,+DAAC,CADG,uBACH,CADG;AAErBC,aAAW,EAAED,+DAAC,CAFO,oBAEP,CAFO;AAGrBE,aAAW,EAAEF,+DAAC;AAHO,CAAlB,C;;;;;;;ACFP,2C","file":"BarParser.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 = 17);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualization-encoding-parsers/Base\");","import { parse as baseParse, mergeEncoding } from '@splunk/visualization-encoding-parsers/Base';\nimport isEmpty from 'lodash/isEmpty';\nimport { ErrorMsgs } from './errorMsgs';\n\nexport const dataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n initialRequestParams: {\n primary: (options = {}) => ({\n offset: 0,\n count: options.count || 1000,\n requestTotalCount: options.pageable,\n }),\n },\n encoding: {\n x: {\n isRequired: true,\n type: ['time', 'number', 'string'],\n default: 'primary[0]',\n },\n y: {\n isRequired: true,\n type: ['number', 'string'],\n default: 'primary[1:]',\n },\n y2: {\n isRequired: false,\n type: ['number', 'string'],\n },\n },\n};\n\n/**\n * Bar parse function\n * @param {object} dataSources\n * @param {object} userDefinedEncoding\n * @return {object} props that dashboard/react visualizations can be used.\n * @public\n */\nexport const parse = (dataSources, userDefinedEncoding) => {\n if (isEmpty(dataSources)) {\n throw new Error(ErrorMsgs.NO_DATA_SOURCES);\n }\n\n const encoding = mergeEncoding(dataContract.encoding, userDefinedEncoding);\n const parsedProps = baseParse(dataSources, encoding);\n\n return {\n x: parsedProps.x,\n y: parsedProps.y,\n y2: parsedProps.y2,\n xFieldName: parsedProps['_meta'].fieldNames.x, // eslint-disable-line dot-notation\n yFieldName: parsedProps['_meta'].fieldNames.y, // eslint-disable-line dot-notation\n y2FieldName: parsedProps['_meta'].fieldNames.y2, // eslint-disable-line dot-notation\n };\n};\n","import { _ } from '@splunk/ui-utils/i18n';\n\nexport const ErrorMsgs = {\n NO_DATA_SOURCES: _('No valid dataSources.'),\n NO_ENCODING: _('No valid encoding.'),\n ERROR_PARSE: _('Can not parse data correctly.'),\n};\n","module.exports = require(\"lodash/isEmpty\");"],"sourceRoot":""}