@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
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"@splunk/react-docs/DockingTabBar\"","webpack:///external \"@babel/runtime/helpers/extends\"","webpack:///external \"@splunk/react-docs/API\"","webpack:///external \"@splunk/visualizations-shared/previewVizMessage\"","webpack:///./src/VisualizationDocPage.jsx"],"names":["ComponentPage","args","selectedTabId","activeSection","top","window","target","currentSection","encodingSection","optionSection","overviewSection","conceptsSection","examplesSection","eventSection","themeSection","createComponentURL","headerOffset","sourceURL","basePageProps","pick","body","handleSectionChange","padding","marginTop","handleBodyMount","Component","T","dependsOnSplunk","status","description","title","isRequired"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;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DoB;AAClBe,oBADkB,gCACG,CADH;AAElBC,cAAY,EAAE;AAFI,C;;AA+G1B,8E","file":"VisualizationDocPage.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 49);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"@splunk/react-docs/DockingTabBar\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@splunk/react-docs/API\");","module.exports = require(\"@splunk/visualizations-shared/previewVizMessage\");","import React, { Component } from 'react';\nimport T from 'prop-types';\nimport { pick } from 'lodash';\nimport DockingTabBar, { Tab } from '@splunk/react-docs/DockingTabBar';\nimport APIPage from '@splunk/react-docs/API';\nimport previewVizMessage from '@splunk/visualizations-shared/previewVizMessage';\n\nclass ComponentPage extends Component {\n static currentSection = 'overview';\n\n static propTypes = {\n createComponentURL: T.func,\n dependsOnSplunk: T.bool,\n /**\n * If status is `preview`, a message is prepended to the description reflecting this visualization is new\n * and minor changes may be made soon.\n */\n status: T.string,\n description: T.string,\n /**\n * The \"overview\" section of the doc page.\n */\n overviewSection: T.node,\n /**\n * The \"concepts\" section of the doc page.\n */\n conceptsSection: T.node,\n /**\n * The \"examples\" section of the doc page.\n */\n examplesSection: T.node.isRequired,\n /**\n * The \"options\" section of the doc page.\n */\n optionSection: T.node.isRequired,\n /**\n * The \"encoding\" section of the doc page.\n */\n encodingSection: T.node,\n /**\n * The \"event\" section of the doc page.\n */\n eventSection: T.node,\n /**\n * The \"theme\" section of the doc page\n */\n themeSection: T.node,\n headerOffset: T.number,\n /**\n * Overrides the (otherwise automatically generated) source code url.\n */\n sourceURL: T.string,\n title: T.string.isRequired,\n };\n\n static defaultProps = {\n createComponentURL() {},\n headerOffset: 0,\n };\n\n constructor(...args) {\n super(...args);\n this.state = { activeSection: ComponentPage.currentSection };\n }\n\n handleBodyMount = el => {\n this.bodyEl = el;\n };\n\n handleSectionChange = (e, { selectedTabId }) => {\n ComponentPage.currentSection = selectedTabId;\n this.setState({ activeSection: selectedTabId }, () => {\n // After the new section loads, scroll to the top of the section.\n const { top } = this.bodyEl.getBoundingClientRect();\n if (top < window.scrollY) {\n const target = top + window.scrollY - 90;\n window.scroll(0, target);\n }\n });\n };\n\n renderBody() {\n const {\n encodingSection,\n optionSection,\n overviewSection,\n conceptsSection,\n examplesSection,\n eventSection,\n themeSection,\n } = this.props;\n const { activeSection } = this.state;\n switch (activeSection) {\n case 'concepts':\n return conceptsSection;\n case 'overview':\n return overviewSection;\n case 'examples':\n return examplesSection;\n case 'encoding':\n return encodingSection;\n case 'option':\n return optionSection;\n case 'event':\n return eventSection;\n case 'theme':\n return themeSection;\n default:\n return null;\n }\n }\n\n render() {\n const {\n createComponentURL,\n conceptsSection,\n overviewSection,\n examplesSection,\n encodingSection,\n eventSection,\n themeSection,\n headerOffset,\n sourceURL,\n } = this.props;\n const basePageProps = pick(this.props, 'dependsOnSplunk', 'description', 'title');\n\n if (this.props.status === 'preview') {\n basePageProps.description = `#### ${previewVizMessage} \\n ${basePageProps.description || ''}`;\n }\n\n let { activeSection } = this.state;\n let body = this.renderBody();\n\n if (!body) {\n body = examplesSection;\n activeSection = 'examples';\n }\n return (\n <APIPage sourceURL={sourceURL || createComponentURL(window.location.pathname)} {...basePageProps}>\n <DockingTabBar\n activeTabId={activeSection}\n offset={headerOffset}\n onChange={this.handleSectionChange}\n >\n {overviewSection && <Tab label=\"Overview\" tabId=\"overview\" />}\n <Tab label=\"Examples\" tabId=\"examples\" />\n {encodingSection && <Tab label=\"Encoding\" tabId=\"encoding\" />}\n <Tab label=\"Options\" tabId=\"option\" />\n {eventSection && <Tab label=\"Events\" tabId=\"event\" />}\n {themeSection && <Tab label=\"Themes\" tabId=\"theme\" />}\n {conceptsSection && <Tab label=\"Concepts\" tabId=\"concepts\" />}\n </DockingTabBar>\n <div\n style={{\n padding: '0 30px 30px',\n marginTop: '20px',\n }}\n ref={this.handleBodyMount}\n >\n {body}\n </div>\n </APIPage>\n );\n }\n}\n\nexport default ComponentPage;\n"],"sourceRoot":""}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/VisualizationDocPage.jsx", "esm-externals:react", "esm-externals:prop-types", "esm-externals:lodash", "esm-externals:@splunk/react-docs/DockingTabBar", "esm-externals:@splunk/react-docs/API", "esm-externals:@splunk/visualizations-shared/previewVizMessage"],
|
|
4
|
+
"sourcesContent": ["import React, { Component } from 'react';\nimport T from 'prop-types';\nimport { pick } from 'lodash';\nimport DockingTabBar, { Tab } from '@splunk/react-docs/DockingTabBar';\nimport APIPage from '@splunk/react-docs/API';\nimport previewVizMessage from '@splunk/visualizations-shared/previewVizMessage';\n\nclass ComponentPage extends Component {\n static currentSection = 'overview';\n\n static propTypes = {\n createComponentURL: T.func,\n dependsOnSplunk: T.bool,\n /**\n * If status is `preview`, a message is prepended to the description reflecting this visualization is new\n * and minor changes may be made soon.\n */\n status: T.string,\n description: T.string,\n /**\n * The \"overview\" section of the doc page.\n */\n overviewSection: T.node,\n /**\n * The \"concepts\" section of the doc page.\n */\n conceptsSection: T.node,\n /**\n * The \"examples\" section of the doc page.\n */\n examplesSection: T.node.isRequired,\n /**\n * The \"options\" section of the doc page.\n */\n optionSection: T.node.isRequired,\n /**\n * The \"encoding\" section of the doc page.\n */\n encodingSection: T.node,\n /**\n * The \"event\" section of the doc page.\n */\n eventSection: T.node,\n /**\n * The \"theme\" section of the doc page\n */\n themeSection: T.node,\n headerOffset: T.number,\n /**\n * Overrides the (otherwise automatically generated) source code url.\n */\n sourceURL: T.string,\n title: T.string.isRequired,\n };\n\n static defaultProps = {\n createComponentURL() {},\n headerOffset: 0,\n };\n\n constructor(...args) {\n super(...args);\n this.state = { activeSection: ComponentPage.currentSection };\n }\n\n handleBodyMount = el => {\n this.bodyEl = el;\n };\n\n handleSectionChange = (e, { selectedTabId }) => {\n ComponentPage.currentSection = selectedTabId;\n this.setState({ activeSection: selectedTabId }, () => {\n // After the new section loads, scroll to the top of the section.\n const { top } = this.bodyEl.getBoundingClientRect();\n if (top < window.scrollY) {\n const target = top + window.scrollY - 90;\n window.scroll(0, target);\n }\n });\n };\n\n renderBody() {\n const {\n encodingSection,\n optionSection,\n overviewSection,\n conceptsSection,\n examplesSection,\n eventSection,\n themeSection,\n } = this.props;\n const { activeSection } = this.state;\n switch (activeSection) {\n case 'concepts':\n return conceptsSection;\n case 'overview':\n return overviewSection;\n case 'examples':\n return examplesSection;\n case 'encoding':\n return encodingSection;\n case 'option':\n return optionSection;\n case 'event':\n return eventSection;\n case 'theme':\n return themeSection;\n default:\n return null;\n }\n }\n\n render() {\n const {\n createComponentURL,\n conceptsSection,\n overviewSection,\n examplesSection,\n encodingSection,\n eventSection,\n themeSection,\n headerOffset,\n sourceURL,\n } = this.props;\n const basePageProps = pick(this.props, 'dependsOnSplunk', 'description', 'title');\n\n if (this.props.status === 'preview') {\n basePageProps.description = `#### ${previewVizMessage} \\n ${basePageProps.description || ''}`;\n }\n\n let { activeSection } = this.state;\n let body = this.renderBody();\n\n if (!body) {\n body = examplesSection;\n activeSection = 'examples';\n }\n return (\n <APIPage sourceURL={sourceURL || createComponentURL(window.location.pathname)} {...basePageProps}>\n <DockingTabBar\n activeTabId={activeSection}\n offset={headerOffset}\n onChange={this.handleSectionChange}\n >\n {overviewSection && <Tab label=\"Overview\" tabId=\"overview\" />}\n <Tab label=\"Examples\" tabId=\"examples\" />\n {encodingSection && <Tab label=\"Encoding\" tabId=\"encoding\" />}\n <Tab label=\"Options\" tabId=\"option\" />\n {eventSection && <Tab label=\"Events\" tabId=\"event\" />}\n {themeSection && <Tab label=\"Themes\" tabId=\"theme\" />}\n {conceptsSection && <Tab label=\"Concepts\" tabId=\"concepts\" />}\n </DockingTabBar>\n <div\n style={{\n padding: '0 30px 30px',\n marginTop: '20px',\n }}\n ref={this.handleBodyMount}\n >\n {body}\n </div>\n </APIPage>\n );\n }\n}\n\nexport default ComponentPage;\n", "\nimport * as defaultImport from \"react\";\nexport * from \"react\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"prop-types\";\nexport * from \"prop-types\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"lodash\";\nexport * from \"lodash\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/react-docs/DockingTabBar\";\nexport * from \"@splunk/react-docs/DockingTabBar\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/react-docs/API\";\nexport * from \"@splunk/react-docs/API\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n", "\nimport * as defaultImport from \"@splunk/visualizations-shared/previewVizMessage\";\nexport * from \"@splunk/visualizations-shared/previewVizMessage\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;A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|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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 = 50);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ({
|
|
94
|
-
|
|
95
|
-
/***/ 36:
|
|
96
|
-
/***/ (function(module, exports) {
|
|
97
|
-
|
|
98
|
-
module.exports = require("@splunk/themes/getTheme");
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ 50:
|
|
103
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
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);
|
|
104
32
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
33
|
+
// src/colorConstants.js
|
|
34
|
+
var colorConstants_exports = {};
|
|
35
|
+
__export(colorConstants_exports, {
|
|
36
|
+
COLOR_EDITOR_PALETTE: () => COLOR_EDITOR_PALETTE,
|
|
37
|
+
DELTA_GREEN: () => DELTA_GREEN,
|
|
38
|
+
DELTA_RED: () => DELTA_RED,
|
|
39
|
+
RADIAL_BACKGROUND_COLOR: () => RADIAL_BACKGROUND_COLOR,
|
|
40
|
+
RADIAL_SEVERITY_COLORS: () => RADIAL_SEVERITY_COLORS,
|
|
41
|
+
RADIAL_STROKE_COLOR: () => RADIAL_STROKE_COLOR,
|
|
42
|
+
SEMANTIC_ERROR: () => SEMANTIC_ERROR,
|
|
43
|
+
SEMANTIC_SUCCESS: () => SEMANTIC_SUCCESS,
|
|
44
|
+
SEMANTIC_WARNING: () => SEMANTIC_WARNING,
|
|
45
|
+
SPARKLINE_FILL_COLOR: () => SPARKLINE_FILL_COLOR,
|
|
46
|
+
SPARKLINE_STROKE_COLOR: () => SPARKLINE_STROKE_COLOR,
|
|
47
|
+
SPARKLINE_WHITE: () => SPARKLINE_WHITE
|
|
48
|
+
});
|
|
49
|
+
module.exports = __toCommonJS(colorConstants_exports);
|
|
121
50
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
51
|
+
// esm-externals:@splunk/themes/getTheme
|
|
52
|
+
var getTheme_exports = {};
|
|
53
|
+
__export(getTheme_exports, {
|
|
54
|
+
default: () => getTheme_default
|
|
126
55
|
});
|
|
56
|
+
var defaultImport = __toESM(require("@splunk/themes/getTheme"));
|
|
57
|
+
__reExport(getTheme_exports, require("@splunk/themes/getTheme"));
|
|
58
|
+
var getTheme_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
59
|
+
|
|
60
|
+
// src/colorConstants.js
|
|
61
|
+
var themeEnterprise = getTheme_default({ family: "enterprise", colorScheme: "light", density: "comfortable" });
|
|
127
62
|
var DELTA_GREEN = themeEnterprise.successColor;
|
|
128
63
|
var DELTA_RED = themeEnterprise.errorColor;
|
|
129
|
-
var SEMANTIC_SUCCESS =
|
|
130
|
-
var SEMANTIC_WARNING =
|
|
131
|
-
var SEMANTIC_ERROR =
|
|
64
|
+
var SEMANTIC_SUCCESS = "#53a051";
|
|
65
|
+
var SEMANTIC_WARNING = "#f8be34";
|
|
66
|
+
var SEMANTIC_ERROR = "#dc4e41";
|
|
132
67
|
var SPARKLINE_FILL_COLOR = themeEnterprise.gray60;
|
|
133
68
|
var SPARKLINE_STROKE_COLOR = themeEnterprise.gray20;
|
|
134
69
|
var SPARKLINE_WHITE = themeEnterprise.white;
|
|
@@ -160,9 +95,23 @@ var RADIAL_SEVERITY_COLORS = {
|
|
|
160
95
|
stroke: themeEnterprise.errorColorD50
|
|
161
96
|
}
|
|
162
97
|
};
|
|
163
|
-
var COLOR_EDITOR_PALETTE = [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
98
|
+
var COLOR_EDITOR_PALETTE = [
|
|
99
|
+
"transparent",
|
|
100
|
+
"#000000",
|
|
101
|
+
"#ffffff",
|
|
102
|
+
"#dc4e41",
|
|
103
|
+
"#f1813f",
|
|
104
|
+
"#f8be34",
|
|
105
|
+
"#53a051",
|
|
106
|
+
"#0877a6",
|
|
107
|
+
"#ec9960",
|
|
108
|
+
"#af575a",
|
|
109
|
+
"#62b3b2",
|
|
110
|
+
"#4fa484",
|
|
111
|
+
"#f8be44",
|
|
112
|
+
"#5a4575",
|
|
113
|
+
"#708794",
|
|
114
|
+
"#294e70",
|
|
115
|
+
"#b6c75a"
|
|
116
|
+
];
|
|
117
|
+
//# sourceMappingURL=colorConstants.js.map
|
package/colorConstants.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/colorConstants.js", "esm-externals:@splunk/themes/getTheme"],
|
|
4
|
+
"sourcesContent": ["import getTheme from '@splunk/themes/getTheme';\n\nconst themeEnterprise = getTheme({ family: 'enterprise', colorScheme: 'light', density: 'comfortable' });\n\nexport const DELTA_GREEN = themeEnterprise.successColor;\nexport const DELTA_RED = themeEnterprise.errorColor;\n\nexport const SEMANTIC_SUCCESS = '#53a051';\nexport const SEMANTIC_WARNING = '#f8be34';\nexport const SEMANTIC_ERROR = '#dc4e41';\n\nexport const SPARKLINE_FILL_COLOR = themeEnterprise.gray60;\nexport const SPARKLINE_STROKE_COLOR = themeEnterprise.gray20;\nexport const SPARKLINE_WHITE = themeEnterprise.white;\n\nexport const RADIAL_BACKGROUND_COLOR = themeEnterprise.gray92;\nexport const RADIAL_STROKE_COLOR = themeEnterprise.gray60;\n\nexport const RADIAL_SEVERITY_COLORS = {\n none: {\n background: themeEnterprise.gray92,\n stroke: themeEnterprise.gray60,\n },\n low: {\n background: themeEnterprise.successColorL40,\n stroke: themeEnterprise.successColorD50,\n },\n guarded: {\n background: themeEnterprise.infoColorL40,\n stroke: themeEnterprise.infoColorD50,\n },\n elevated: {\n background: themeEnterprise.warningColorL40,\n stroke: themeEnterprise.warningColorD50,\n },\n high: {\n background: themeEnterprise.alertColorL40,\n stroke: themeEnterprise.alertColorD50,\n },\n severe: {\n background: themeEnterprise.errorColorL40,\n stroke: themeEnterprise.errorColorD50,\n },\n};\n\nexport const COLOR_EDITOR_PALETTE = [\n 'transparent',\n '#000000',\n '#ffffff',\n '#dc4e41',\n '#f1813f',\n '#f8be34',\n '#53a051',\n '#0877a6',\n '#ec9960',\n '#af575a',\n '#62b3b2',\n '#4fa484',\n '#f8be44',\n '#5a4575',\n '#708794',\n '#294e70',\n '#b6c75a',\n];\n", "\nimport * as defaultImport from \"@splunk/themes/getTheme\";\nexport * from \"@splunk/themes/getTheme\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,6BAAc;AACd,IAAO,mBAAS,aAAa,gBAA8B,wBAAU;;;ADDrE,IAAM,kBAAkB,iBAAS,EAAE,QAAQ,cAAc,aAAa,SAAS,SAAS,cAAc,CAAC;AAEhG,IAAM,cAAc,gBAAgB;AACpC,IAAM,YAAY,gBAAgB;AAElC,IAAM,mBAAmB;AACzB,IAAM,mBAAmB;AACzB,IAAM,iBAAiB;AAEvB,IAAM,uBAAuB,gBAAgB;AAC7C,IAAM,yBAAyB,gBAAgB;AAC/C,IAAM,kBAAkB,gBAAgB;AAExC,IAAM,0BAA0B,gBAAgB;AAChD,IAAM,sBAAsB,gBAAgB;AAE5C,IAAM,yBAAyB;AAAA,EAClC,MAAM;AAAA,IACF,YAAY,gBAAgB;AAAA,IAC5B,QAAQ,gBAAgB;AAAA,EAC5B;AAAA,EACA,KAAK;AAAA,IACD,YAAY,gBAAgB;AAAA,IAC5B,QAAQ,gBAAgB;AAAA,EAC5B;AAAA,EACA,SAAS;AAAA,IACL,YAAY,gBAAgB;AAAA,IAC5B,QAAQ,gBAAgB;AAAA,EAC5B;AAAA,EACA,UAAU;AAAA,IACN,YAAY,gBAAgB;AAAA,IAC5B,QAAQ,gBAAgB;AAAA,EAC5B;AAAA,EACA,MAAM;AAAA,IACF,YAAY,gBAAgB;AAAA,IAC5B,QAAQ,gBAAgB;AAAA,EAC5B;AAAA,EACA,QAAQ;AAAA,IACJ,YAAY,gBAAgB;AAAA,IAC5B,QAAQ,gBAAgB;AAAA,EAC5B;AACJ;AAEO,IAAM,uBAAuB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/colorUtils.js
CHANGED
|
@@ -1,137 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 = 25);
|
|
91
|
-
/******/ })
|
|
92
|
-
/************************************************************************/
|
|
93
|
-
/******/ ({
|
|
94
|
-
|
|
95
|
-
/***/ 25:
|
|
96
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
97
|
-
|
|
98
|
-
"use strict";
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Object.defineProperty(exports, "__esModule", {
|
|
102
|
-
value: true
|
|
103
|
-
});
|
|
104
|
-
exports.sanitizeArrayOfColors = exports.isArrayOfColors = exports.isColor = void 0;
|
|
105
|
-
|
|
106
|
-
var colorUtils_1 = __webpack_require__(26);
|
|
107
|
-
|
|
108
|
-
Object.defineProperty(exports, "isColor", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function get() {
|
|
111
|
-
return colorUtils_1.isColor;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "isArrayOfColors", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function get() {
|
|
117
|
-
return colorUtils_1.isArrayOfColors;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "sanitizeArrayOfColors", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return colorUtils_1.sanitizeArrayOfColors;
|
|
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 });
|
|
124
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/colorUtils.ts
|
|
34
|
+
var colorUtils_exports2 = {};
|
|
35
|
+
__export(colorUtils_exports2, {
|
|
36
|
+
isArrayOfColors: () => colorUtils_exports.isArrayOfColors,
|
|
37
|
+
isColor: () => colorUtils_exports.isColor,
|
|
38
|
+
sanitizeArrayOfColors: () => colorUtils_exports.sanitizeArrayOfColors
|
|
125
39
|
});
|
|
40
|
+
module.exports = __toCommonJS(colorUtils_exports2);
|
|
126
41
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/******/ });
|
|
137
|
-
//# sourceMappingURL=colorUtils.js.map
|
|
42
|
+
// esm-externals:@splunk/visualization-encoding/utils/colorUtils
|
|
43
|
+
var colorUtils_exports = {};
|
|
44
|
+
__export(colorUtils_exports, {
|
|
45
|
+
default: () => colorUtils_default
|
|
46
|
+
});
|
|
47
|
+
var defaultImport = __toESM(require("@splunk/visualization-encoding/utils/colorUtils"));
|
|
48
|
+
__reExport(colorUtils_exports, require("@splunk/visualization-encoding/utils/colorUtils"));
|
|
49
|
+
var colorUtils_default = "default" in defaultImport ? defaultImport.default : defaultImport;
|
|
50
|
+
//# sourceMappingURL=colorUtils.js.map
|
package/colorUtils.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/colorUtils.ts", "esm-externals:@splunk/visualization-encoding/utils/colorUtils"],
|
|
4
|
+
"sourcesContent": ["export {\n isColor,\n isArrayOfColors,\n sanitizeArrayOfColors,\n} from '@splunk/visualization-encoding/utils/colorUtils';\n", "\nimport * as defaultImport from \"@splunk/visualization-encoding/utils/colorUtils\";\nexport * from \"@splunk/visualization-encoding/utils/colorUtils\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,sBAAA;AAAA,SAAAA,qBAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,+BAAc;AACd,IAAO,qBAAS,aAAa,gBAA8B,wBAAU;",
|
|
6
|
+
"names": ["colorUtils_exports"]
|
|
7
|
+
}
|