@splunk/visualizations-shared 26.4.1 → 27.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/.loki/reference/chrome_docker_SizeAwareWrapper_50_parent.png +0 -0
- package/.loki/reference/chrome_docker_SizeAwareWrapper_Fix_size_container.png +0 -0
- package/.loki/reference/chrome_docker_SizeAwareWrapper_Flex_layout_container.png +0 -0
- package/.loki/reference/chrome_docker_SizeAwareWrapper_Flex_layout_container_with_extra_wrapper.png +0 -0
- package/Downloader.js +164 -403
- package/Downloader.js.map +7 -1
- package/FileDownloader.js +121 -557
- package/FileDownloader.js.map +7 -1
- package/JSONSchemaUtils.js +58 -134
- package/JSONSchemaUtils.js.map +7 -1
- package/Message.js +105 -270
- package/Message.js.map +7 -1
- package/RemoteIcon.js +272 -736
- package/RemoteIcon.js.map +7 -1
- package/RemoteImage.js +190 -458
- package/RemoteImage.js.map +7 -1
- package/SanitizeProps.js +117 -238
- package/SanitizeProps.js.map +7 -1
- package/SizeAwareWrapper.js +108 -306
- package/SizeAwareWrapper.js.map +7 -1
- package/SizeAwareWrapperDeprecated.js +117 -326
- package/SizeAwareWrapperDeprecated.js.map +7 -1
- package/VisualizationDocPage.js +212 -461
- package/VisualizationDocPage.js.map +7 -1
- package/colorConstants.js +81 -132
- package/colorConstants.js.map +7 -1
- package/colorUtils.js +47 -134
- package/colorUtils.js.map +7 -1
- package/configUtils.js +28 -112
- package/configUtils.js.map +7 -1
- package/console.js +45 -183
- package/console.js.map +7 -1
- package/dataSourceUtils.js +45 -140
- package/dataSourceUtils.js.map +7 -1
- package/domUtils.js +58 -122
- package/domUtils.js.map +7 -1
- package/hocUtils.js +45 -122
- package/hocUtils.js.map +7 -1
- package/i18n.js +168 -323
- package/i18n.js.map +7 -1
- package/iconUtils.js +47 -178
- package/iconUtils.js.map +7 -1
- package/mapUtils.js +45 -122
- package/mapUtils.js.map +7 -1
- package/numberUtils.js +101 -275
- package/numberUtils.js.map +7 -1
- package/package.json +18 -22
- package/previewVizMessage.js +28 -108
- package/previewVizMessage.js.map +7 -1
- package/propUtils.js +88 -212
- package/propUtils.js.map +7 -1
- package/schemaUtils.js +58 -185
- package/schemaUtils.js.map +7 -1
- package/simpleXMLOptions.js +142 -225
- package/simpleXMLOptions.js.map +7 -1
- package/style.js +65 -168
- package/style.js.map +7 -1
- package/testHelper.js +247 -303
- package/testHelper.js.map +7 -1
- package/themeUtils.js +63 -142
- package/themeUtils.js.map +7 -1
- package/trellisUtils.js +108 -276
- package/trellisUtils.js.map +7 -1
package/previewVizMessage.js
CHANGED
|
@@ -1,110 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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 = 61);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ({
|
|
1
|
+
/* Copyright © 2020 Splunk Inc.
|
|
2
|
+
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
+
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
94
21
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Object.defineProperty(exports, "__esModule", {
|
|
102
|
-
value: true
|
|
22
|
+
// src/previewVizMessage.ts
|
|
23
|
+
var previewVizMessage_exports = {};
|
|
24
|
+
__export(previewVizMessage_exports, {
|
|
25
|
+
default: () => previewVizMessage_default
|
|
103
26
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/******/ });
|
|
110
|
-
//# sourceMappingURL=previewVizMessage.js.map
|
|
27
|
+
module.exports = __toCommonJS(previewVizMessage_exports);
|
|
28
|
+
var previewVizMessage = "\u26A0\uFE0F This is a preview of a new visualization component. Minor updates and bug fixes should be expected.";
|
|
29
|
+
var previewVizMessage_default = previewVizMessage;
|
|
30
|
+
//# sourceMappingURL=previewVizMessage.js.map
|
package/previewVizMessage.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/previewVizMessage.ts"],
|
|
4
|
+
"sourcesContent": ["const previewVizMessage =\n '\u26A0\uFE0F This is a preview of a new visualization component. Minor updates and bug fixes should be expected.';\n\nexport default previewVizMessage;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,oBACF;AAEJ,IAAO,4BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/propUtils.js
CHANGED
|
@@ -1,237 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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 = 62);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ({
|
|
94
|
-
|
|
95
|
-
/***/ 4:
|
|
96
|
-
/***/ (function(module, exports) {
|
|
97
|
-
|
|
98
|
-
module.exports = require("lodash");
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 62:
|
|
103
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
104
|
-
|
|
105
|
-
"use strict";
|
|
106
|
-
__webpack_require__.r(__webpack_exports__);
|
|
107
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertPropsToString", function() { return convertPropsToString; });
|
|
108
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatColor", function() { return formatColor; });
|
|
109
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToSCProperties", function() { return convertToSCProperties; });
|
|
110
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustOptionsToSchema", function() { return adjustOptionsToSchema; });
|
|
111
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
112
|
-
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* convert props of type 'array/object' to 'string', based on the list of props to be converted in vizProps
|
|
116
|
-
* @method convertPropsToString
|
|
117
|
-
* @param {Object} vizProps
|
|
118
|
-
* @param {Array} propNames
|
|
119
|
-
* @return {Object} convertedVizProps
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
var convertPropsToString = function convertPropsToString(_ref) {
|
|
123
|
-
var _ref$vizProps = _ref.vizProps,
|
|
124
|
-
vizProps = _ref$vizProps === void 0 ? {} : _ref$vizProps,
|
|
125
|
-
_ref$propNames = _ref.propNames,
|
|
126
|
-
propNames = _ref$propNames === void 0 ? [] : _ref$propNames;
|
|
127
|
-
var convertedVizProps = {};
|
|
128
|
-
propNames.forEach(function (propName) {
|
|
129
|
-
var propValue = vizProps[propName];
|
|
130
|
-
|
|
131
|
-
if (Array.isArray(propValue) || Object(lodash__WEBPACK_IMPORTED_MODULE_0__["isPlainObject"])(propValue)) {
|
|
1
|
+
/* Copyright © 2020 Splunk Inc.
|
|
2
|
+
SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
3
|
+
in part without a valid written license from Splunk Inc. is PROHIBITED. */
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
|
|
33
|
+
// src/propUtils.js
|
|
34
|
+
var propUtils_exports = {};
|
|
35
|
+
__export(propUtils_exports, {
|
|
36
|
+
adjustOptionsToSchema: () => adjustOptionsToSchema,
|
|
37
|
+
convertPropsToString: () => convertPropsToString,
|
|
38
|
+
convertToSCProperties: () => convertToSCProperties,
|
|
39
|
+
formatColor: () => formatColor
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(propUtils_exports);
|
|
42
|
+
|
|
43
|
+
// esm-externals:lodash
|
|
44
|
+
var lodash_exports = {};
|
|
45
|
+
__export(lodash_exports, {
|
|
46
|
+
default: () => lodash_default
|
|
47
|
+
});
|
|
48
|
+
var defaultImport = __toESM(require("lodash"));
|
|
49
|
+
__reExport(lodash_exports, require("lodash"));
|
|
50
|
+
var lodash_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
51
|
+
|
|
52
|
+
// src/propUtils.js
|
|
53
|
+
var convertPropsToString = ({ vizProps = {}, propNames = [] }) => {
|
|
54
|
+
const convertedVizProps = {};
|
|
55
|
+
propNames.forEach((propName) => {
|
|
56
|
+
const propValue = vizProps[propName];
|
|
57
|
+
if (Array.isArray(propValue) || (0, lodash_exports.isPlainObject)(propValue)) {
|
|
132
58
|
convertedVizProps[propName] = JSON.stringify(propValue);
|
|
133
|
-
} else if (propValue && typeof propValue ===
|
|
134
|
-
|
|
135
|
-
console.warn("The option type 'string' for '".concat(propName, "' has been deprecated."));
|
|
59
|
+
} else if (propValue && typeof propValue === "string") {
|
|
60
|
+
console.warn(`The option type 'string' for '${propName}' has been deprecated.`);
|
|
136
61
|
}
|
|
137
62
|
});
|
|
138
63
|
return convertedVizProps;
|
|
139
64
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
* @param {String} color
|
|
144
|
-
* @returns {String}
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
var formatColor = function formatColor(color) {
|
|
148
|
-
if (!color || typeof color !== 'string') {
|
|
149
|
-
return '';
|
|
65
|
+
var formatColor = (color) => {
|
|
66
|
+
if (!color || typeof color !== "string") {
|
|
67
|
+
return "";
|
|
150
68
|
}
|
|
151
|
-
|
|
152
|
-
return color.replace('0x', '#');
|
|
69
|
+
return color.replace("0x", "#");
|
|
153
70
|
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
* @param {Object} originalOptions
|
|
160
|
-
* @param {Object} optionsSCMapping
|
|
161
|
-
* @param {Object} optionValuesSCMapping
|
|
162
|
-
* @param {Array} stringValues
|
|
163
|
-
* @returns {Object}
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
var convertToSCProperties = function convertToSCProperties(originalOptions, optionsSCMapping, optionValuesSCMapping, stringValues) {
|
|
167
|
-
var returnOptions = {};
|
|
168
|
-
var y2Fields = originalOptions.y2Fields,
|
|
169
|
-
overlayFields = originalOptions.overlayFields; // mapToOldKey
|
|
170
|
-
|
|
171
|
-
Object.keys(originalOptions).forEach(function (key) {
|
|
172
|
-
var newKey = optionsSCMapping[key] ? optionsSCMapping[key] : key;
|
|
71
|
+
var convertToSCProperties = (originalOptions, optionsSCMapping, optionValuesSCMapping, stringValues) => {
|
|
72
|
+
const returnOptions = {};
|
|
73
|
+
const { y2Fields, overlayFields } = originalOptions;
|
|
74
|
+
Object.keys(originalOptions).forEach((key) => {
|
|
75
|
+
const newKey = optionsSCMapping[key] ? optionsSCMapping[key] : key;
|
|
173
76
|
returnOptions[newKey] = originalOptions[key];
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (!Object(lodash__WEBPACK_IMPORTED_MODULE_0__["isUndefined"])(updatedValue)) {
|
|
77
|
+
});
|
|
78
|
+
Object.keys(optionValuesSCMapping).forEach((key) => {
|
|
79
|
+
if ((0, lodash_exports.has)(returnOptions, key)) {
|
|
80
|
+
const updatedValue = optionValuesSCMapping[key][returnOptions[key]];
|
|
81
|
+
if (!(0, lodash_exports.isUndefined)(updatedValue)) {
|
|
181
82
|
returnOptions[key] = updatedValue;
|
|
182
83
|
}
|
|
183
84
|
}
|
|
184
|
-
});
|
|
185
|
-
|
|
85
|
+
});
|
|
186
86
|
if (y2Fields) {
|
|
187
87
|
delete returnOptions.y2Fields;
|
|
188
|
-
returnOptions[
|
|
189
|
-
returnOptions[
|
|
190
|
-
|
|
191
|
-
}).join(',') : y2Fields;
|
|
192
|
-
} // convertOverlayFields
|
|
193
|
-
|
|
194
|
-
|
|
88
|
+
returnOptions["axisY2.enabled"] = true;
|
|
89
|
+
returnOptions["axisY2.fields"] = Array.isArray(y2Fields) ? y2Fields.filter((name) => name).join(",") : y2Fields;
|
|
90
|
+
}
|
|
195
91
|
if (overlayFields) {
|
|
196
|
-
returnOptions.overlayFields = Array.isArray(overlayFields) ? overlayFields.filter(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
} // convertToStringValues
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
stringValues.forEach(function (propName) {
|
|
205
|
-
var propValue = returnOptions[propName];
|
|
206
|
-
|
|
207
|
-
if (Array.isArray(propValue) || Object(lodash__WEBPACK_IMPORTED_MODULE_0__["isPlainObject"])(propValue)) {
|
|
92
|
+
returnOptions.overlayFields = Array.isArray(overlayFields) ? overlayFields.filter((field) => field).map((field) => field.trim()).join(",") : overlayFields;
|
|
93
|
+
}
|
|
94
|
+
stringValues.forEach((propName) => {
|
|
95
|
+
const propValue = returnOptions[propName];
|
|
96
|
+
if (Array.isArray(propValue) || (0, lodash_exports.isPlainObject)(propValue)) {
|
|
208
97
|
returnOptions[propName] = JSON.stringify(propValue);
|
|
209
|
-
} else if (propValue && typeof propValue ===
|
|
210
|
-
|
|
211
|
-
console.warn("The option type 'string' for '".concat(propName, "' has been deprecated."));
|
|
98
|
+
} else if (propValue && typeof propValue === "string") {
|
|
99
|
+
console.warn(`The option type 'string' for '${propName}' has been deprecated.`);
|
|
212
100
|
}
|
|
213
101
|
});
|
|
214
102
|
return returnOptions;
|
|
215
103
|
};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
* @param {Object} originalOptions
|
|
220
|
-
* @param {Object} optionsSchema
|
|
221
|
-
* @returns {Object}
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
var adjustOptionsToSchema = function adjustOptionsToSchema(originalOptions, optionsSchema) {
|
|
225
|
-
var returnOptions = {};
|
|
226
|
-
Object.keys(optionsSchema).forEach(function (key) {
|
|
104
|
+
var adjustOptionsToSchema = (originalOptions, optionsSchema) => {
|
|
105
|
+
const returnOptions = {};
|
|
106
|
+
Object.keys(optionsSchema).forEach((key) => {
|
|
227
107
|
if (Object.hasOwn(originalOptions, key)) {
|
|
228
108
|
returnOptions[key] = originalOptions[key];
|
|
229
109
|
}
|
|
230
110
|
});
|
|
231
111
|
return returnOptions;
|
|
232
112
|
};
|
|
233
|
-
|
|
234
|
-
/***/ })
|
|
235
|
-
|
|
236
|
-
/******/ });
|
|
237
|
-
//# sourceMappingURL=propUtils.js.map
|
|
113
|
+
//# sourceMappingURL=propUtils.js.map
|
package/propUtils.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"lodash\"","webpack:///./src/propUtils.js"],"names":["convertPropsToString","vizProps","propNames","convertedVizProps","propValue","Array","isPlainObject","JSON","console","formatColor","color","convertToSCProperties","returnOptions","y2Fields","originalOptions","overlayFields","Object","newKey","optionsSCMapping","has","updatedValue","optionValuesSCMapping","isUndefined","field","stringValues","adjustOptionsToSchema"],"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,mC;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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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BJ,GAWDI,EAXC,CAoBD;;AACA,gBAAc;AACV,WAAOJ,aAAa,CAApB;AACAA,iBAAa,CAAbA,gBAAa,CAAbA;AACAA,iBAAa,CAAbA,eAAa,CAAbA,GAAiC,KAAK,CAAL,oBAC3B,QAAQ,CAAR,OAAgB,gBAAI;AAAA;AAApB,YAD2B,GAC3B,CAD2B,GAAjCA;AAxBH,IA6BD;;;AACA,qBAAmB;AACfA,iBAAa,CAAbA,gBAA8B,KAAK,CAAL,yBACxB,aAAa,CAAb,OACY,iBAAK;AAAA;AADjB,WAES,iBAAK;AAAA,aAAIW,KAAK,CAAT,IAAIA,EAAJ;AAFd,YADwB,GACxB,CADwB,GAA9BX;AA/BH,IAuCD;;;AACAY,cAAY,CAAZA,QAAqB,oBAAY;AAC7B,QAAMpB,SAAS,GAAGQ,aAAa,CAA/B,QAA+B,CAA/B;;AACA,QAAIP,KAAK,CAALA,sBAA4BC,4DAAa,CAA7C,SAA6C,CAA7C,EAA0D;AACtDM,mBAAa,CAAbA,QAAa,CAAbA,GAA0BL,IAAI,CAAJA,UAA1BK,SAA0BL,CAA1BK;AADJ,WAEO,IAAIR,SAAS,IAAI,qBAAjB,UAAgD;AACnD;AACAI,aAAO,CAAPA;AACH;AAPLgB;AASA;AAtDG;AAyDP;AACA;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAwB,iCAAoC;AACrE,MAAMb,aAAa,GAAnB;AACAI,QAAM,CAANA,4BAAmC,eAAO;AACtC,QAAIA,MAAM,CAANA,wBAAJ,GAAIA,CAAJ,EAAyC;AACrCJ,mBAAa,CAAbA,GAAa,CAAbA,GAAqBE,eAAe,CAApCF,GAAoC,CAApCA;AACH;AAHLI;AAKA;AAPG,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 = 62);\n","module.exports = require(\"lodash\");","import { isPlainObject, has, isUndefined } from 'lodash';\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 // eslint-disable-next-line no-console\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\n/**\n * Helper for mapping the option properties (and values) we expose in config.ts into property values that splunk-charting accepts\n * This is for options that has new key name and can not directly be mapped with SimpleXML or\n * don't have a 1-1 mapping in SimpleXML (i.e. a straightforward name mapping where values are preserved)\n * @method convertToAreaSCProperties\n * @param {Object} originalOptions\n * @param {Object} optionsSCMapping\n * @param {Object} optionValuesSCMapping\n * @param {Array} stringValues\n * @returns {Object}\n */\nexport const convertToSCProperties = (\n originalOptions,\n optionsSCMapping,\n optionValuesSCMapping,\n stringValues\n) => {\n const returnOptions = {};\n const { y2Fields, overlayFields } = originalOptions;\n\n // mapToOldKey\n Object.keys(originalOptions).forEach(key => {\n const newKey = optionsSCMapping[key] ? optionsSCMapping[key] : key;\n returnOptions[newKey] = originalOptions[key];\n });\n\n // mapToValues\n Object.keys(optionValuesSCMapping).forEach(key => {\n if (has(returnOptions, key)) {\n const updatedValue = optionValuesSCMapping[key][returnOptions[key]];\n if (!isUndefined(updatedValue)) {\n returnOptions[key] = updatedValue;\n }\n }\n });\n\n // convertY2AxisOptions\n if (y2Fields) {\n delete returnOptions.y2Fields;\n returnOptions['axisY2.enabled'] = true;\n returnOptions['axisY2.fields'] = Array.isArray(y2Fields)\n ? y2Fields.filter(name => name).join(',')\n : y2Fields;\n }\n\n // convertOverlayFields\n if (overlayFields) {\n returnOptions.overlayFields = Array.isArray(overlayFields)\n ? overlayFields\n .filter(field => field)\n .map(field => field.trim())\n .join(',')\n : overlayFields;\n }\n\n // convertToStringValues\n stringValues.forEach(propName => {\n const propValue = returnOptions[propName];\n if (Array.isArray(propValue) || isPlainObject(propValue)) {\n returnOptions[propName] = JSON.stringify(propValue);\n } else if (propValue && typeof propValue === 'string') {\n // eslint-disable-next-line no-console\n console.warn(`The option type 'string' for '${propName}' has been deprecated.`);\n }\n });\n return returnOptions;\n};\n\n/**\n * Helper for removing the option properties (and values) that are not part of schema\n * @method adjustOptionsToSchema\n * @param {Object} originalOptions\n * @param {Object} optionsSchema\n * @returns {Object}\n */\nexport const adjustOptionsToSchema = (originalOptions, optionsSchema) => {\n const returnOptions = {};\n Object.keys(optionsSchema).forEach(key => {\n if (Object.hasOwn(originalOptions, key)) {\n returnOptions[key] = originalOptions[key];\n }\n });\n return returnOptions;\n};\n"],"sourceRoot":""}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/propUtils.js", "esm-externals:lodash"],
|
|
4
|
+
"sourcesContent": ["import { isPlainObject, has, isUndefined } from 'lodash';\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 // eslint-disable-next-line no-console\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\n/**\n * Helper for mapping the option properties (and values) we expose in config.ts into property values that splunk-charting accepts\n * This is for options that has new key name and can not directly be mapped with SimpleXML or\n * don't have a 1-1 mapping in SimpleXML (i.e. a straightforward name mapping where values are preserved)\n * @method convertToAreaSCProperties\n * @param {Object} originalOptions\n * @param {Object} optionsSCMapping\n * @param {Object} optionValuesSCMapping\n * @param {Array} stringValues\n * @returns {Object}\n */\nexport const convertToSCProperties = (\n originalOptions,\n optionsSCMapping,\n optionValuesSCMapping,\n stringValues\n) => {\n const returnOptions = {};\n const { y2Fields, overlayFields } = originalOptions;\n\n // mapToOldKey\n Object.keys(originalOptions).forEach(key => {\n const newKey = optionsSCMapping[key] ? optionsSCMapping[key] : key;\n returnOptions[newKey] = originalOptions[key];\n });\n\n // mapToValues\n Object.keys(optionValuesSCMapping).forEach(key => {\n if (has(returnOptions, key)) {\n const updatedValue = optionValuesSCMapping[key][returnOptions[key]];\n if (!isUndefined(updatedValue)) {\n returnOptions[key] = updatedValue;\n }\n }\n });\n\n // convertY2AxisOptions\n if (y2Fields) {\n delete returnOptions.y2Fields;\n returnOptions['axisY2.enabled'] = true;\n returnOptions['axisY2.fields'] = Array.isArray(y2Fields)\n ? y2Fields.filter(name => name).join(',')\n : y2Fields;\n }\n\n // convertOverlayFields\n if (overlayFields) {\n returnOptions.overlayFields = Array.isArray(overlayFields)\n ? overlayFields\n .filter(field => field)\n .map(field => field.trim())\n .join(',')\n : overlayFields;\n }\n\n // convertToStringValues\n stringValues.forEach(propName => {\n const propValue = returnOptions[propName];\n if (Array.isArray(propValue) || isPlainObject(propValue)) {\n returnOptions[propName] = JSON.stringify(propValue);\n } else if (propValue && typeof propValue === 'string') {\n // eslint-disable-next-line no-console\n console.warn(`The option type 'string' for '${propName}' has been deprecated.`);\n }\n });\n return returnOptions;\n};\n\n/**\n * Helper for removing the option properties (and values) that are not part of schema\n * @method adjustOptionsToSchema\n * @param {Object} originalOptions\n * @param {Object} optionsSchema\n * @returns {Object}\n */\nexport const adjustOptionsToSchema = (originalOptions, optionsSchema) => {\n const returnOptions = {};\n Object.keys(optionsSchema).forEach(key => {\n if (Object.hasOwn(originalOptions, key)) {\n returnOptions[key] = originalOptions[key];\n }\n });\n return returnOptions;\n};\n", "\nimport * as defaultImport from \"lodash\";\nexport * from \"lodash\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,2BAAc;AACd,IAAO,iBAAS,aAAa,gBAA8B,wBAAU;;;ADM9D,IAAM,uBAAuB,CAAC,EAAE,WAAW,CAAC,GAAG,YAAY,CAAC,EAAE,MAAM;AACvE,QAAM,oBAAoB,CAAC;AAE3B,YAAU,QAAQ,cAAY;AAC1B,UAAM,YAAY,SAAS,QAAQ;AACnC,QAAI,MAAM,QAAQ,SAAS,SAAK,8BAAc,SAAS,GAAG;AACtD,wBAAkB,QAAQ,IAAI,KAAK,UAAU,SAAS;AAAA,IAC1D,WAAW,aAAa,OAAO,cAAc,UAAU;AAEnD,cAAQ,KAAK,iCAAiC,QAAQ,wBAAwB;AAAA,IAClF;AAAA,EACJ,CAAC;AAED,SAAO;AACX;AAQO,IAAM,cAAc,WAA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