@splunk/visualizations 25.3.2 → 25.3.3
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_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_FieldSummaryTooltip_Actions_for_Numeric_Field_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/Area.js +2 -2
- package/Bar.js +2 -2
- package/Bubble.js +2 -2
- package/ChoroplethSvg.config.js +6 -6
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +8 -8
- package/ChoroplethSvg.js.map +1 -1
- package/Column.js +2 -2
- package/Ellipse.config.js +38 -41
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +40 -43
- package/Ellipse.js.map +1 -1
- package/Events.js +3 -2
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +8 -8
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +10 -10
- package/FillerGauge.js.map +1 -1
- package/Image.js +2 -2
- package/Line.js +2 -2
- package/LinkGraph.config.js +13 -13
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +15 -15
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +3 -3
- package/Map.config.js.map +1 -1
- package/Map.js +5 -5
- package/Map.js.map +1 -1
- package/Markdown.config.js +6 -6
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +8 -8
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +5 -5
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +7 -7
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +3 -3
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +5 -5
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +10 -16
- package/Pie.config.js.map +1 -1
- package/Pie.js +12 -18
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +23 -24
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +25 -26
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +41 -44
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +43 -46
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +6 -6
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +8 -8
- package/Sankey.js.map +1 -1
- package/Scatter.js +2 -2
- package/SingleValue.config.js +17 -17
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +19 -19
- package/SingleValue.js.map +1 -1
- package/SingleValueIcon.config.js +20 -20
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +22 -22
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +15 -15
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +17 -17
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +11 -11
- package/Table.config.js.map +1 -1
- package/Table.js +22 -13
- package/Table.js.map +1 -1
- package/common/withDashboardViz.js +2 -2
- package/package.json +10 -10
package/Table.config.js
CHANGED
|
@@ -559,7 +559,7 @@ var defaultContext = {
|
|
|
559
559
|
tableAltRowBackgroundColorsByBackgroundColor: ['> backgroundColor', '> backgroundColor | setColorChannel(tableRowBackgroundColorEvenConfig)']
|
|
560
560
|
};
|
|
561
561
|
var unitPositionConfig = {
|
|
562
|
-
label: i18n_1._('Units
|
|
562
|
+
label: i18n_1._('Units position'),
|
|
563
563
|
editor: 'editor.select',
|
|
564
564
|
option: 'unitPosition',
|
|
565
565
|
editorProps: {
|
|
@@ -573,12 +573,12 @@ var unitPositionConfig = {
|
|
|
573
573
|
}
|
|
574
574
|
};
|
|
575
575
|
var unitLabelConfig = {
|
|
576
|
-
label: i18n_1._('Unit
|
|
576
|
+
label: i18n_1._('Unit label'),
|
|
577
577
|
option: 'unit',
|
|
578
578
|
editor: 'editor.text'
|
|
579
579
|
};
|
|
580
580
|
var timeFormattingConfig = {
|
|
581
|
-
label: i18n_1._('Date & Time
|
|
581
|
+
label: i18n_1._('Date & Time formatting'),
|
|
582
582
|
option: 'format',
|
|
583
583
|
editor: 'editor.text',
|
|
584
584
|
editorProps: {
|
|
@@ -953,9 +953,9 @@ var backgroundColorPaletteSet = new Set([].concat(_toConsumableArray(colorConsta
|
|
|
953
953
|
}))));
|
|
954
954
|
var EDITOR_LABEL_WIDTH = 100;
|
|
955
955
|
var editorConfig = [{
|
|
956
|
-
label: i18n_1._('Global
|
|
956
|
+
label: i18n_1._('Global formatting'),
|
|
957
957
|
layout: [[{
|
|
958
|
-
label: i18n_1._('Rows
|
|
958
|
+
label: i18n_1._('Rows displayed'),
|
|
959
959
|
option: 'count',
|
|
960
960
|
editor: 'editor.number',
|
|
961
961
|
editorProps: {
|
|
@@ -964,7 +964,7 @@ var editorConfig = [{
|
|
|
964
964
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
965
965
|
}
|
|
966
966
|
}], [{
|
|
967
|
-
label: i18n_1._('Row
|
|
967
|
+
label: i18n_1._('Row numbers'),
|
|
968
968
|
option: 'showRowNumbers',
|
|
969
969
|
editor: 'editor.toggle',
|
|
970
970
|
editorProps: {
|
|
@@ -972,7 +972,7 @@ var editorConfig = [{
|
|
|
972
972
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
973
973
|
}
|
|
974
974
|
}], [{
|
|
975
|
-
label: i18n_1._('Internal
|
|
975
|
+
label: i18n_1._('Internal fields'),
|
|
976
976
|
option: 'showInternalFields',
|
|
977
977
|
editor: 'editor.toggle',
|
|
978
978
|
editorProps: {
|
|
@@ -989,7 +989,7 @@ var editorConfig = [{
|
|
|
989
989
|
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
990
990
|
}
|
|
991
991
|
}], [{
|
|
992
|
-
label: i18n_1._('Header
|
|
992
|
+
label: i18n_1._('Header row'),
|
|
993
993
|
option: 'headerVisibility',
|
|
994
994
|
editor: 'editor.select',
|
|
995
995
|
editorProps: {
|
|
@@ -1022,7 +1022,7 @@ var editorConfig = [{
|
|
|
1022
1022
|
}
|
|
1023
1023
|
}], [{
|
|
1024
1024
|
option: 'fontSize',
|
|
1025
|
-
label: i18n_1._('Font
|
|
1025
|
+
label: i18n_1._('Font size'),
|
|
1026
1026
|
editor: 'editor.select',
|
|
1027
1027
|
editorProps: {
|
|
1028
1028
|
values: [{
|
|
@@ -1043,7 +1043,7 @@ var editorConfig = [{
|
|
|
1043
1043
|
}
|
|
1044
1044
|
}]]
|
|
1045
1045
|
}, {
|
|
1046
|
-
label: i18n_1._('Column
|
|
1046
|
+
label: i18n_1._('Column formatting'),
|
|
1047
1047
|
layout: [[{
|
|
1048
1048
|
label: i18n_1._('Column-specific formatting'),
|
|
1049
1049
|
editor: 'editor.tableColumnFormatter',
|
|
@@ -1093,7 +1093,7 @@ var editorConfig = [{
|
|
|
1093
1093
|
values: configUtils_1.generatePrecisionValues(20)
|
|
1094
1094
|
}
|
|
1095
1095
|
}, {
|
|
1096
|
-
label: i18n_1._('Thousand
|
|
1096
|
+
label: i18n_1._('Thousand separators'),
|
|
1097
1097
|
option: 'thousandSeparated',
|
|
1098
1098
|
editor: 'editor.radioBar',
|
|
1099
1099
|
editorProps: {
|
package/Table.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons/placeholders\"","webpack:///external \"@splunk/visualization-icons\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/colorConstants\"","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/Table/config.ts","webpack:///./src/Table/consts.ts","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@splunk/themes/pick\""],"names":[],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;Q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1B;AAEA,0BAAkB,CAAC,MAAD,EAAS,QAAT,EAAmB,OAAnB,CAAlB;AAEA,6BAAqB,CAAC,UAAD,EAAa,YAAb,EAA2B,UAA3B,CAArB;AAEA,yBAAiB,CAAC,YAAD,EAAe,OAAf,EAAwB,SAAxB,EAAmC,OAAnC,CAAjB,C;;;;;;;;;;;;;;ACVb,IAAY,WAAZ;;AAAA,WAAY,WAAZ,EAAuB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACH,CAbD,EAAY,WAAW,GAAX,8CAAW,EAAX,CAAZ,E;;;;;;;ACAA,gD","file":"Table.config.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 = 76);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons/placeholders\");","module.exports = require(\"@splunk/visualization-icons\");","export enum VizBehavior {\n /**\n * Dynamic Options Behavior.\n * This allows visualization options to be powered by data\n *\n * **Example**\n *\n * sparklineValues: \">primary|seriesByIndex(0)\"\n * would configure sparklineValues with an array of data points\n * coming from the first series in the primary datasource\n *\n */\n DYNAMIC_OPTIONS = 'dynamic-options',\n EVENTS = 'events',\n /**\n * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is\n * missing.\n * @type {string}\n */\n PLACEHOLDER = 'placeholder',\n PAGE_AND_SORT = 'page-and-sort',\n}\n","module.exports = require(\"@splunk/visualizations-shared/colorConstants\");","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport type { JSONSchema7Definition } from 'json-schema';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\nimport { EditorLayoutConfig, EditorConfig } from '../interfaces/Editor';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\n}\n\nconst dynamicOptionsDSLType = {\n type: 'string',\n pattern: DYNAMIC_OPTIONS_DSL_PATTERN,\n} as const;\n\n/**\n * Helper function to extend an options schema with dynamic options DSL\n * @param optionsSchema a visualization's options schema\n * @returns an updated options schema that additionally allows strings starting with > for each option\n */\nfunction enhanceOptionsSchemaWithDynamicOptions(\n optionsSchema: OptionsSchema | JSONSchema7Definition\n): OptionsSchema {\n const enhancedOptionsSchema: OptionsSchema = {};\n Object.keys(optionsSchema).forEach((key): void => {\n const {\n // The next a few are schema annotations, we should leave them as is.\n // Note: in reality we don't use `readOnly`, `writeOnly` or `examples`, but they are listed here for completeness.\n // Ref: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01\n title,\n description,\n readOnly,\n writeOnly,\n examples,\n default: defaultValue,\n // The next a few need special care\n type,\n properties,\n patternProperties,\n // The rest should be handled together\n ...remainingSchemaEntry\n } = optionsSchema[key];\n\n const annotations = {\n ...(title !== undefined && { title }),\n ...(description !== undefined && { description }),\n ...(readOnly !== undefined && { readOnly }),\n ...(writeOnly !== undefined && { writeOnly }),\n ...(examples !== undefined && { examples }),\n ...(defaultValue !== undefined && { default: defaultValue }),\n };\n\n if (type === 'object') {\n enhancedOptionsSchema[key] = {\n ...remainingSchemaEntry,\n ...annotations,\n type,\n ...(properties && { properties: enhanceOptionsSchemaWithDynamicOptions(properties) }),\n };\n if (patternProperties) {\n let enhancedPatternProperties = {};\n Object.keys(patternProperties).forEach((opt): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [opt]: patternProperties[opt] }),\n };\n });\n enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;\n }\n } else {\n enhancedOptionsSchema[key] = {\n ...annotations,\n anyOf: [\n // we can't assume `type` is always there because there are `enum` and `const`.\n { ...(type !== undefined && { type }), ...remainingSchemaEntry },\n dynamicOptionsDSLType,\n ],\n };\n }\n });\n return enhancedOptionsSchema;\n}\n\n/**\n * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block\n * this function also collapse all editor panels\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n * and containing `open: false` for all editor panels in editorConfig\n */\nfunction enhanceConfig(vizConfig: VizConfig): VizConfig {\n const enhancedConfig: VizConfig = { ...vizConfig };\n if (vizConfig.supports.indexOf(VizBehavior.DYNAMIC_OPTIONS) !== -1) {\n enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);\n }\n enhancedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: config.open || false };\n }\n );\n return enhancedConfig;\n}\n\n/**\n * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig\n * Created for editor unit tests\n * @param vizConfig a Visualization Config\n * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig\n */\nfunction uncollapseEditorConfig(vizConfig: VizConfig): VizConfig {\n const editorPanelUncollapsedConfig: VizConfig = { ...vizConfig };\n editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: true };\n }\n );\n return editorPanelUncollapsedConfig;\n}\n\nfunction isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\n// private helpers to improve readability of getInitialPreset\n// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset\n\n/**\n * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset\n * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset\n * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext\n * the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up\n *\n * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values\n */\nfunction hasCompatibleContexts(\n vizContext: { [configKey: string]: any },\n presetContext: { [configKey: string]: any }\n): boolean {\n const presetContextKeys = Object.keys(presetContext);\n return presetContextKeys.every(\n (contextKey): boolean =>\n (presetContext[contextKey] === undefined && vizContext[contextKey] === undefined) ||\n (presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined)\n );\n}\n\n/**\n * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions\n */\nfunction hasCompatibleOptions(\n vizOptions: { [configKey: string]: any },\n presetOptions: { [configKey: string]: any }\n): boolean {\n const presetOptionKeys = Object.keys(presetOptions);\n return presetOptionKeys.every(\n (optionKey): boolean =>\n isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey])\n );\n}\n\n/**\n * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions\n * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure\n *\n * @param {Object} vizContext - the current vizContext definition\n * @param {Object} vizOptions - the current vizOptions definition\n * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset\n */\nfunction getInitialPreset(\n vizContext: { [configKey: string]: any },\n vizOptions: { [configKey: string]: any },\n presets: PresetEntry[]\n): PresetEntry | null {\n return presets.find((preset): boolean => {\n const presetContext = get(preset, ['value', 'context'], {});\n const presetOptions = get(preset, ['value', 'options'], {});\n const presetContextKeys = Object.keys(presetContext);\n const presetOptionKeys = Object.keys(presetOptions);\n\n // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)\n // if not, then the preset is invalid in config.ts\n if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;\n\n return (\n hasCompatibleContexts(vizContext, presetContext) &&\n hasCompatibleOptions(vizOptions, presetOptions)\n );\n });\n}\n\ninterface PrecisionOption {\n label: string;\n value: number;\n}\n\n/**\n * generates number precision values for a Select editor\n *\n * @param {Number} numPrecisionValues - number of integer precision values to generate\n * @returns {{ label: string; value; string }[]} array of { label, value } tuples\n */\nfunction generatePrecisionValues(numPrecisionValues: number): PrecisionOption[] {\n return range(0, numPrecisionValues + 1).map(\n (i): PrecisionOption => ({\n label: `${i} (0${i > 0 ? '.' : ''}${'0'.repeat(i)})`, // e.g. 0.000 for numPrecisionValues = 3\n value: i,\n })\n );\n}\n\nexport {\n enhanceConfig,\n enhanceOptionsSchemaWithDynamicOptions,\n getInitialPreset,\n generatePrecisionValues,\n uncollapseEditorConfig,\n isDynamicOption,\n};\n\n/**\n * insert layout in layout array, return a new layout array instead of updating the original\n *\n * @param {EditorLayoutConfig[][]} layout - editor layout\n * @param {Number} index - the index to insert layout item(s)\n * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert\n * @returns {EditorLayoutConfig[][]} new editor layout with insertion\n */\nexport const insertLayout = (\n layout: EditorLayoutConfig[][],\n index: number,\n ...layoutItems: EditorLayoutConfig[][]\n): EditorLayoutConfig[][] => [\n // copy part of the array before the specified index\n ...layout.slice(0, index),\n // inserted layout item\n ...layoutItems,\n // copy part of the array after the specified index\n ...layout.slice(index),\n];\n","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { map, get } from 'lodash';\nimport { COLOR_OR_TOKEN_PATTERN_WITH_RGBA, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport { COLOR_EDITOR_PALETTE } from '@splunk/visualizations-shared/colorConstants';\nimport { Table as TableIcon } from '@splunk/visualization-icons';\nimport { Table as TablePlaceholderIcon } from '@splunk/visualization-icons/placeholders';\nimport variables from '@splunk/themes/variables';\nimport pick from '@splunk/themes/pick';\nimport { enhanceConfig, generatePrecisionValues } from '../common/utils/configUtils';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport {\n validHeaderVisibilities,\n validAlignments,\n validTextOverflows,\n validCellRenderers,\n validSparklineTypes,\n validFontSizes,\n} from './consts';\nimport { VizCategory } from '../common/interfaces/VizCategory';\n\nconst dataContract: DataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [],\n initialRequestParams: {\n primary: (options: { count?: number } = {}): Record<string, unknown> => ({\n offset: 0,\n count: options.count ? options.count : 10,\n requestTotalCount: true,\n }),\n },\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {\n tableAlignByType: [\n { match: 'string', value: 'left' },\n { match: 'number', value: 'right' },\n { match: 'time', value: 'left' },\n { match: 'color', value: 'left' },\n { match: 'array', value: 'left' },\n { match: 'sparkline', value: 'center' },\n { match: 'unknown', value: 'left' },\n { match: 'null', value: 'left' },\n ],\n tableCellTypeByType: [\n { match: 'string', value: 'TextCell' },\n { match: 'number', value: 'TextCell' },\n { match: 'time', value: 'TextCell' },\n { match: 'color', value: 'TextCell' },\n { match: 'array', value: 'ArrayCell' },\n { match: 'sparkline', value: 'SparklineCell' },\n { match: 'unknown', value: 'TextCell' },\n { match: 'null', value: 'TextCell' },\n ],\n\n // NOTE: These contexts are used by the table background color editor.\n // Please be careful removing/renaming/altering them.\n // There are unit tests and visual test that will capture breakages.\n tableRowColorMaxContrast: {\n colors: ['> themes.textColor', '> themes.inverseTextColor'],\n default: '> themes.textColor',\n },\n tableRowBackgroundColorEvenConfig: {\n channel: 'hsv.v',\n value: '*0.96',\n },\n tableHeaderBackgroundColorConfig: {\n channel: 'hsv.v',\n value: '*0.9',\n },\n tableRowBackgroundColorsByTheme: ['> themes.rowBackgroundColorOdd'],\n tableAltRowBackgroundColorsByTheme: ['> themes.rowBackgroundColorOdd', '> themes.rowBackgroundColorEven'],\n tableRowBackgroundColorsByBackgroundColor: ['> backgroundColor'],\n tableAltRowBackgroundColorsByBackgroundColor: [\n '> backgroundColor',\n '> backgroundColor | setColorChannel(tableRowBackgroundColorEvenConfig)',\n ],\n};\n\nconst unitPositionConfig = {\n label: _('Units Position'),\n editor: 'editor.select',\n option: 'unitPosition',\n editorProps: {\n values: [\n { label: _('Before'), value: 'before' },\n { label: _('After'), value: 'after' },\n ],\n },\n};\n\nconst unitLabelConfig = {\n label: _('Unit Label'),\n option: 'unit',\n editor: 'editor.text',\n};\n\nconst timeFormattingConfig = {\n label: _('Date & Time Formatting'),\n option: 'format',\n editor: 'editor.text',\n editorProps: {\n tooltip: _('For example: DD-MM-YYYY'),\n },\n};\n\nconst sequentialColorConfig = [\n { to: 20, value: '#D41F1F' },\n { from: 20, to: 40, value: '#D94E17' },\n { from: 40, to: 60, value: '#CBA700' },\n { from: 60, to: 80, value: '#669922' },\n { from: 80, value: '#118832' },\n];\n\nconst matchColorConfig = [{ match: '', value: '#5C33FF' }];\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color for the background. You might use a data source to apply the color. The default for enterprise light is \"#FFFFFF\". The default for enterprise dark is \"#000000\". The default for prisma dark is \"#0B0C0E\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n columnFormat: {\n description:\n 'Lets you format an individual column in a table. Specify a column in a table as a field, followed by a property. For more information, see the Column Format Align - Left example on the Examples page.',\n type: 'object',\n patternProperties: {\n '.*': {\n description: 'Customization for column property',\n type: 'object',\n properties: {\n align: {\n description:\n 'Specify the alignment for each cell in a column. Valid alignments include \"left\", \"center\", and \"right\".',\n type: 'array',\n items: {\n type: 'string',\n enum: validAlignments.concat(),\n },\n },\n cellTypes: {\n description:\n 'Specify how to render data in cells. Valid cell renders include \"TextCell\", \"ArrayCell\", \"SparklineCell\".',\n type: 'array',\n items: {\n type: 'string',\n enum: validCellRenderers.concat(),\n },\n },\n data: {\n description: 'Specify data points to be displayed in the cells of a column.',\n type: 'array',\n items: {\n oneOf: [\n { type: 'string' },\n { type: 'number' },\n { type: 'array', items: { type: ['string', 'number'] } },\n ],\n },\n },\n rowBackgroundColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the background color of each column of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n rowColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the text color of the cells of a column. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n sparklineAreaColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline area of each column. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n sparklineColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each column. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n sparklineTypes: {\n description:\n 'Choose either area or line formatting for the Sparkline. Valid sparkline types include \"line\" and \"area\".',\n type: 'array',\n items: {\n type: 'string',\n enum: validSparklineTypes.concat(),\n },\n },\n textOverflow: {\n description:\n 'Controls how the text should be truncated within a particular column. Valid types include \"anywhere\", \"break-word\", \"ellipsis\". Defaults width for ellipsis is 100px.',\n type: 'string',\n pattern: getPattern(validTextOverflows),\n enum: validTextOverflows.concat(),\n },\n width: {\n description:\n 'Controls how wide in pixels (where 1 px = 1/96th of 1 in) the column should be displayed.',\n type: 'number',\n minimum: 30,\n },\n },\n },\n },\n },\n count: {\n description: 'Specify the maximum number of rows to display.',\n type: 'number',\n default: 10,\n },\n font: {\n default: 'proportional',\n description: 'Specify the font style to use for table content.',\n type: 'string',\n pattern: getPattern(['proportional', 'monospace']),\n },\n fontSize: {\n default: 'default',\n description:\n 'Specify the font size to use for table content. Font sizes range from extra small (10px) to large (16px) with the default being 14px.',\n type: 'string',\n pattern: getPattern(validFontSizes),\n },\n headers: {\n default: '> table | getField()',\n description:\n \"Specify an array of headers to display on the table. Though these can be statically listed, it's best to use the dynamic default, as it will return the fields of your search.\",\n type: 'array',\n items: {\n type: 'string',\n },\n },\n headerVisibility: {\n default: 'inline',\n description: 'Specify how to display the table header row.',\n pattern: getPattern(validHeaderVisibilities),\n enum: validHeaderVisibilities.concat(),\n type: 'string',\n },\n paginateDataSourceKey: {\n default: 'primary',\n description: 'Specify the data source key for pagination and sorting.',\n type: 'string',\n },\n showInternalFields: {\n default: true,\n description:\n 'Specify whether to show internal fields that start with an underscore. The _time field will still be shown if false.',\n type: 'boolean',\n },\n showRowNumbers: {\n default: false,\n description: 'Show row numbers in the first column.',\n type: 'boolean',\n },\n table: {\n default: '> primary',\n description: 'Two dimensional array of data to be displayed in the table.',\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n { type: 'string' },\n { type: 'number' },\n { type: 'array', items: { type: ['string', 'number'] } },\n ],\n },\n },\n },\n tableFormat: {\n description: 'Lets you set global options for a table.',\n type: 'object',\n properties: {\n align: {\n default: '> table | type() | matchValue(tableAlignByType)',\n description:\n 'Specify alignment for each cell in the table. Valid alignments include \"left\", \"center\", and \"right\".',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n enum: validAlignments.concat(),\n },\n },\n },\n cellTypes: {\n default: '> table | type() | matchValue(tableCellTypeByType)',\n description:\n 'Specify how to render data in cells. Valid cell renders include \"TextCell\", \"ArrayCell\", \"SparklineCell\".',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n enum: validCellRenderers.concat(),\n },\n },\n },\n data: {\n description:\n 'Two dimensional data to be displayed in the table. This is usually formatted data instead of raw data from search.',\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n { type: 'string' },\n { type: 'number' },\n { type: 'array', items: { type: ['string', 'number'] } },\n ],\n },\n },\n },\n headerBackgroundColor: {\n default: '> themes.defaultHeaderBackgroundColor',\n description:\n 'Specify the table header background color using a hexadecimal code. For example, \"#FFFFFF\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n headerColor: {\n description:\n 'Specify the table header text color using a hexadecimal code. For example, \"#FFFFFF\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n rowBackgroundColors: {\n default: '> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByTheme)',\n description:\n 'Specify a list of colors, in hexadecimal code, for the background color of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n rowColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the text color of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n sparklineAreaColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline area of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n sparklineColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n sparklineTypes: {\n description: 'Choose either area or line formatting for the Sparkline.',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n enum: validSparklineTypes.concat(),\n },\n },\n },\n },\n },\n};\n\nconst themes: ThemedDefaults = {\n defaultBackgroundColor: props =>\n pick({\n enterprise: {\n dark: variables.black(props),\n light: variables.backgroundColor(props),\n },\n prisma: variables.backgroundColorSidebar(props),\n })(props),\n defaultHeaderBackgroundColor: props =>\n pick({\n enterprise: {\n dark: variables.gray20(props),\n light: variables.gray92(props),\n },\n prisma: variables.backgroundColor(props),\n })(props),\n rowBackgroundColorEven: props =>\n pick({\n enterprise: {\n dark: variables.black(props),\n light: variables.gray96(props),\n },\n prisma: variables.backgroundColorPage(props),\n })(props),\n rowBackgroundColorOdd: props =>\n pick({\n enterprise: {\n dark: '#0D1012',\n light: variables.backgroundColor(props),\n },\n prisma: variables.backgroundColorSidebar(props),\n })(props),\n textColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: variables.contentColorDefault(props),\n })(props),\n inverseTextColor: props =>\n pick({\n enterprise: {\n dark: variables.contentColorInverted(props), // equal to textColor in enterprise\n light: variables.white(props), // equal to textColor in enterpriseDark\n },\n prisma: variables.contentColorInverted(props),\n })(props),\n};\n\nconst backgroundColorPaletteSet = new Set([\n ...COLOR_EDITOR_PALETTE,\n ...map(themes, (t): string => get(t, 'defaultBackgroundColor')),\n]);\nconst EDITOR_LABEL_WIDTH = 100;\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Global Formatting'),\n layout: [\n [\n {\n label: _('Rows Displayed'),\n option: 'count',\n editor: 'editor.number',\n editorProps: {\n labelPosition: 'left',\n min: 0,\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n label: _('Row Numbers'),\n option: 'showRowNumbers',\n editor: 'editor.toggle',\n editorProps: {\n labelPosition: 'left',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n label: _('Internal Fields'),\n option: 'showInternalFields',\n editor: 'editor.toggle',\n editorProps: {\n labelPosition: 'left',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n key: 'backgroundColor',\n editor: 'editor.tableBackgroundColor',\n editorProps: {\n themes,\n labelPosition: 'left',\n labelWidth: EDITOR_LABEL_WIDTH,\n palette: [...backgroundColorPaletteSet],\n },\n },\n ],\n [\n {\n label: _('Header Row'),\n option: 'headerVisibility',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Inline'), value: 'inline' },\n { label: _('Fixed'), value: 'fixed' },\n { label: _('Hidden'), value: 'none' },\n ],\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n option: 'font',\n label: _('Font'),\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Proportional (Default)'), value: 'proportional' },\n { label: _('Monospace'), value: 'monospace' },\n ],\n labelPosition: 'top',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n option: 'fontSize',\n label: _('Font Size'),\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Extra Small (font 10px, row 24px)'), value: 'extraSmall' },\n { label: _('Small (font 12px, row 24px)'), value: 'small' },\n { label: _('Default (font 14px, row 32px)'), value: 'default' },\n { label: _('Large (font 16px, row 36px)'), value: 'large' },\n ],\n labelPosition: 'top',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n ],\n },\n {\n label: _('Column Formatting'),\n layout: [\n [\n {\n label: _('Column-specific formatting'),\n editor: 'editor.tableColumnFormatter',\n editorProps: {\n // Table column coloring does not adhere to same DSL structure as other dynamically colored options\n // we use the FormatterEditor directly and not the DynamicColorEditor's provided DSL builders\n columnColoringConfig: {\n coloringTypes: [\n {\n label: _('Text'),\n value: 'rowColors',\n },\n {\n label: _('Background'),\n value: 'rowBackgroundColors',\n },\n ],\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n rowBackgroundColors: sequentialColorConfig,\n rowColors: sequentialColorConfig,\n },\n },\n {\n label: _('Matches'),\n value: 'matchValue',\n defaults: {\n rowBackgroundColors: matchColorConfig,\n rowColors: matchColorConfig,\n },\n },\n ],\n themes,\n },\n defaultOptionsByType: {\n number: {\n thousandSeparated: false,\n unitPosition: 'after',\n },\n string: {\n unitPosition: 'after',\n },\n },\n flyoutConfig: {\n number: [\n [\n {\n ...unitPositionConfig,\n },\n {\n ...unitLabelConfig,\n },\n ],\n [\n {\n label: _('Precision'),\n option: 'precision',\n editor: 'editor.select',\n editorProps: {\n values: generatePrecisionValues(20),\n },\n },\n {\n label: _('Thousand Separators'),\n option: 'thousandSeparated',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Off'), value: false },\n { label: _('On'), value: true },\n ],\n },\n },\n ],\n ],\n // TODO(fkurniawan): fill in with proper editor components\n sparkline: [],\n string: [\n [\n {\n ...unitPositionConfig,\n },\n {\n ...unitLabelConfig,\n },\n ],\n ],\n time: [\n [\n {\n ...timeFormattingConfig,\n },\n ],\n ],\n },\n value: ({ context, options }) => {\n return {\n context,\n columnFormat: options.columnFormat,\n tableFormat: options.tableFormat,\n };\n },\n },\n key: 'TableColumnFormatterEditor',\n },\n ],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.table',\n /**\n * viz name\n */\n name: 'Table',\n category: VizCategory.TABLE,\n /**\n * viz icon\n */\n icon: TableIcon,\n placeholderIcon: TablePlaceholderIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'cell.click': {\n description: 'triggered when user clicks a table cell',\n },\n },\n supports: [\n VizBehavior.DYNAMIC_OPTIONS,\n VizBehavior.EVENTS,\n VizBehavior.PAGE_AND_SORT,\n VizBehavior.PLACEHOLDER,\n ],\n themes,\n};\n\nexport default enhanceConfig(config);\n","export const validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'] as const;\nexport type CellRenderers = typeof validCellRenderers[number];\nexport const validSparklineTypes = ['line', 'area'] as const;\nexport type SparklineType = typeof validSparklineTypes[number];\nexport const validHeaderVisibilities = ['none', 'fixed', 'inline'] as const;\nexport type TableHeaderVisibility = typeof validHeaderVisibilities[number];\nexport const validAlignments = ['left', 'center', 'right'] as const;\nexport type TableAlignment = typeof validAlignments[number];\nexport const validTextOverflows = ['anywhere', 'break-word', 'ellipsis'] as const;\nexport type TextOverflow = typeof validTextOverflows[number];\nexport const validFontSizes = ['extraSmall', 'small', 'default', 'large'] as const;\nexport type FontSize = typeof validFontSizes[number];\n","export enum VizCategory {\n SINGLE_VALUE = 'Single Value',\n TRENDS = 'Trends',\n COMPARISONS = 'Comparisons',\n TABLE = 'Table',\n GAUGE = 'Gauge',\n DISTRIBUTIONS = 'Distributions',\n CHOROPLETH = 'Choropleth Maps',\n SHAPES = 'Shapes',\n MISC = 'misc',\n FLOW = 'Flow',\n CORRELATION = 'Correlation',\n SPATIAL = 'Spatial',\n}\n","module.exports = require(\"@splunk/themes/pick\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons/placeholders\"","webpack:///external \"@splunk/visualization-icons\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/colorConstants\"","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/Table/config.ts","webpack:///./src/Table/consts.ts","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@splunk/themes/pick\""],"names":[],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,kD;;;;;;;ACAA,qE;;;;;;;ACAA,qD;;;;;;;ACAA,qE;;;;;;;ACAA,wD;;;;;;;;;;;;;;ACAA,IAAY,WAAZ;;AAAA,WAAY,WAAZ,EAAuB;AACnB;;;;;;;;;;AAUG;AACH;AACA;AACA;;;;AAIG;;AACH;AACA;AACH,CArBD,EAAY,WAAW,GAAX,8CAAW,EAAX,CAAZ,E;;;;;;;ACAA,yE;;;;;;;ACAA,sE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;AACA;;AAGA;;AAWA,IAAM,qBAAqB,GAAG;AAC1B,MAAI,EAAE,QADoB;AAE1B,SAAO,EAAE;AAFiB,CAA9B;AAKA;;;;AAIG;;AACH,SAAS,sCAAT,CACI,aADJ,EACwD;AAEpD,MAAM,qBAAqB,GAAkB,EAA7C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AAkBtB,eAAa,EAAb,aAlBsB;AAmBtB,cAAY,EAAZ,YAnBsB;AAoBtB,QAAM,EAAE;AACJ,kBAAc;AACV,iBAAW,EAAE;AADH;AADV,GApBc;AAyBtB,UAAQ,EAAE,CACN,0BAAY,eADN,EAEN,0BAAY,MAFN,EAGN,0BAAY,aAHN,EAIN,0BAAY,WAJN,CAzBY;AA+BtB,QAAM,EAAN;AA/BsB,CAA1B;AAkCA,kBAAe,4BAAc,MAAd,CAAf,C;;;;;;;;;;;;;;AC7tBa,6BAAqB,CAAC,UAAD,EAAa,WAAb,EAA0B,eAA1B,CAArB;AAEA,8BAAsB,CAAC,MAAD,EAAS,MAAT,CAAtB;AAEA,kCAA0B,CAAC,MAAD,EAAS,OAAT,EAAkB,QAAlB,CAA1B;AAEA,0BAAkB,CAAC,MAAD,EAAS,QAAT,EAAmB,OAAnB,CAAlB;AAEA,6BAAqB,CAAC,UAAD,EAAa,YAAb,EAA2B,UAA3B,CAArB;AAEA,yBAAiB,CAAC,YAAD,EAAe,OAAf,EAAwB,SAAxB,EAAmC,OAAnC,CAAjB,C;;;;;;;;;;;;;;ACVb,IAAY,WAAZ;;AAAA,WAAY,WAAZ,EAAuB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACH,CAbD,EAAY,WAAW,GAAX,8CAAW,EAAX,CAAZ,E;;;;;;;ACAA,gD","file":"Table.config.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 = 76);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons/placeholders\");","module.exports = require(\"@splunk/visualization-icons\");","export enum VizBehavior {\n /**\n * Dynamic Options Behavior.\n * This allows visualization options to be powered by data\n *\n * **Example**\n *\n * sparklineValues: \">primary|seriesByIndex(0)\"\n * would configure sparklineValues with an array of data points\n * coming from the first series in the primary datasource\n *\n */\n DYNAMIC_OPTIONS = 'dynamic-options',\n EVENTS = 'events',\n /**\n * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is\n * missing.\n * @type {string}\n */\n PLACEHOLDER = 'placeholder',\n PAGE_AND_SORT = 'page-and-sort',\n}\n","module.exports = require(\"@splunk/visualizations-shared/colorConstants\");","module.exports = require(\"@splunk/visualizations-shared/schemaUtils\");","import { get, range } from 'lodash';\nimport { DYNAMIC_OPTIONS_DSL_PATTERN } from '@splunk/visualizations-shared/schemaUtils';\nimport type { JSONSchema7Definition } from 'json-schema';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\nimport { VizBehavior } from '../interfaces/VizBehavior';\nimport { VizConfig } from '../interfaces/VizConfig';\nimport { OptionsSchema } from '../interfaces/OptionsSchema';\nimport { EditorLayoutConfig, EditorConfig } from '../interfaces/Editor';\n\nexport interface PresetEntry {\n name: string;\n value: any;\n label: string;\n}\n\nconst dynamicOptionsDSLType = {\n type: 'string',\n pattern: DYNAMIC_OPTIONS_DSL_PATTERN,\n} as const;\n\n/**\n * Helper function to extend an options schema with dynamic options DSL\n * @param optionsSchema a visualization's options schema\n * @returns an updated options schema that additionally allows strings starting with > for each option\n */\nfunction enhanceOptionsSchemaWithDynamicOptions(\n optionsSchema: OptionsSchema | JSONSchema7Definition\n): OptionsSchema {\n const enhancedOptionsSchema: OptionsSchema = {};\n Object.keys(optionsSchema).forEach((key): void => {\n const {\n // The next a few are schema annotations, we should leave them as is.\n // Note: in reality we don't use `readOnly`, `writeOnly` or `examples`, but they are listed here for completeness.\n // Ref: https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01\n title,\n description,\n readOnly,\n writeOnly,\n examples,\n default: defaultValue,\n // The next a few need special care\n type,\n properties,\n patternProperties,\n // The rest should be handled together\n ...remainingSchemaEntry\n } = optionsSchema[key];\n\n const annotations = {\n ...(title !== undefined && { title }),\n ...(description !== undefined && { description }),\n ...(readOnly !== undefined && { readOnly }),\n ...(writeOnly !== undefined && { writeOnly }),\n ...(examples !== undefined && { examples }),\n ...(defaultValue !== undefined && { default: defaultValue }),\n };\n\n if (type === 'object') {\n enhancedOptionsSchema[key] = {\n ...remainingSchemaEntry,\n ...annotations,\n type,\n ...(properties && { properties: enhanceOptionsSchemaWithDynamicOptions(properties) }),\n };\n if (patternProperties) {\n let enhancedPatternProperties = {};\n Object.keys(patternProperties).forEach((opt): void => {\n enhancedPatternProperties = {\n ...enhancedPatternProperties,\n ...enhanceOptionsSchemaWithDynamicOptions({ [opt]: patternProperties[opt] }),\n };\n });\n enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;\n }\n } else {\n enhancedOptionsSchema[key] = {\n ...annotations,\n anyOf: [\n // we can't assume `type` is always there because there are `enum` and `const`.\n { ...(type !== undefined && { type }), ...remainingSchemaEntry },\n dynamicOptionsDSLType,\n ],\n };\n }\n });\n return enhancedOptionsSchema;\n}\n\n/**\n * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block\n * this function also collapse all editor panels\n * @param vizConfig a Visualization Config\n * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports\n * and containing `open: false` for all editor panels in editorConfig\n */\nfunction enhanceConfig(vizConfig: VizConfig): VizConfig {\n const enhancedConfig: VizConfig = { ...vizConfig };\n if (vizConfig.supports.indexOf(VizBehavior.DYNAMIC_OPTIONS) !== -1) {\n enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);\n }\n enhancedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: config.open || false };\n }\n );\n return enhancedConfig;\n}\n\n/**\n * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig\n * Created for editor unit tests\n * @param vizConfig a Visualization Config\n * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig\n */\nfunction uncollapseEditorConfig(vizConfig: VizConfig): VizConfig {\n const editorPanelUncollapsedConfig: VizConfig = { ...vizConfig };\n editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(\n (config: EditorConfig): EditorConfig => {\n return { ...config, open: true };\n }\n );\n return editorPanelUncollapsedConfig;\n}\n\nfunction isDynamicOption(option?: string): boolean {\n return (option && typeof option === 'string' && option.trim().startsWith('>')) || false;\n}\n\n// private helpers to improve readability of getInitialPreset\n// this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset\n\n/**\n * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset\n * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset\n * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext\n * the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up\n *\n * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values\n */\nfunction hasCompatibleContexts(\n vizContext: { [configKey: string]: any },\n presetContext: { [configKey: string]: any }\n): boolean {\n const presetContextKeys = Object.keys(presetContext);\n return presetContextKeys.every(\n (contextKey): boolean =>\n (presetContext[contextKey] === undefined && vizContext[contextKey] === undefined) ||\n (presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined)\n );\n}\n\n/**\n * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions\n */\nfunction hasCompatibleOptions(\n vizOptions: { [configKey: string]: any },\n presetOptions: { [configKey: string]: any }\n): boolean {\n const presetOptionKeys = Object.keys(presetOptions);\n return presetOptionKeys.every(\n (optionKey): boolean =>\n isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey])\n );\n}\n\n/**\n * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions\n * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure\n *\n * @param {Object} vizContext - the current vizContext definition\n * @param {Object} vizOptions - the current vizOptions definition\n * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset\n */\nfunction getInitialPreset(\n vizContext: { [configKey: string]: any },\n vizOptions: { [configKey: string]: any },\n presets: PresetEntry[]\n): PresetEntry | null {\n return presets.find((preset): boolean => {\n const presetContext = get(preset, ['value', 'context'], {});\n const presetOptions = get(preset, ['value', 'options'], {});\n const presetContextKeys = Object.keys(presetContext);\n const presetOptionKeys = Object.keys(presetOptions);\n\n // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)\n // if not, then the preset is invalid in config.ts\n if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;\n\n return (\n hasCompatibleContexts(vizContext, presetContext) &&\n hasCompatibleOptions(vizOptions, presetOptions)\n );\n });\n}\n\ninterface PrecisionOption {\n label: string;\n value: number;\n}\n\n/**\n * generates number precision values for a Select editor\n *\n * @param {Number} numPrecisionValues - number of integer precision values to generate\n * @returns {{ label: string; value; string }[]} array of { label, value } tuples\n */\nfunction generatePrecisionValues(numPrecisionValues: number): PrecisionOption[] {\n return range(0, numPrecisionValues + 1).map(\n (i): PrecisionOption => ({\n label: `${i} (0${i > 0 ? '.' : ''}${'0'.repeat(i)})`, // e.g. 0.000 for numPrecisionValues = 3\n value: i,\n })\n );\n}\n\nexport {\n enhanceConfig,\n enhanceOptionsSchemaWithDynamicOptions,\n getInitialPreset,\n generatePrecisionValues,\n uncollapseEditorConfig,\n isDynamicOption,\n};\n\n/**\n * insert layout in layout array, return a new layout array instead of updating the original\n *\n * @param {EditorLayoutConfig[][]} layout - editor layout\n * @param {Number} index - the index to insert layout item(s)\n * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert\n * @returns {EditorLayoutConfig[][]} new editor layout with insertion\n */\nexport const insertLayout = (\n layout: EditorLayoutConfig[][],\n index: number,\n ...layoutItems: EditorLayoutConfig[][]\n): EditorLayoutConfig[][] => [\n // copy part of the array before the specified index\n ...layout.slice(0, index),\n // inserted layout item\n ...layoutItems,\n // copy part of the array after the specified index\n ...layout.slice(index),\n];\n","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { map, get } from 'lodash';\nimport { COLOR_OR_TOKEN_PATTERN_WITH_RGBA, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport { COLOR_EDITOR_PALETTE } from '@splunk/visualizations-shared/colorConstants';\nimport { Table as TableIcon } from '@splunk/visualization-icons';\nimport { Table as TablePlaceholderIcon } from '@splunk/visualization-icons/placeholders';\nimport variables from '@splunk/themes/variables';\nimport pick from '@splunk/themes/pick';\nimport { enhanceConfig, generatePrecisionValues } from '../common/utils/configUtils';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport {\n validHeaderVisibilities,\n validAlignments,\n validTextOverflows,\n validCellRenderers,\n validSparklineTypes,\n validFontSizes,\n} from './consts';\nimport { VizCategory } from '../common/interfaces/VizCategory';\n\nconst dataContract: DataContract = {\n requiredDataSources: [\n {\n name: 'primary',\n description: 'DataSource that powers the visualization',\n },\n ],\n optionalDataSources: [],\n initialRequestParams: {\n primary: (options: { count?: number } = {}): Record<string, unknown> => ({\n offset: 0,\n count: options.count ? options.count : 10,\n requestTotalCount: true,\n }),\n },\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {\n tableAlignByType: [\n { match: 'string', value: 'left' },\n { match: 'number', value: 'right' },\n { match: 'time', value: 'left' },\n { match: 'color', value: 'left' },\n { match: 'array', value: 'left' },\n { match: 'sparkline', value: 'center' },\n { match: 'unknown', value: 'left' },\n { match: 'null', value: 'left' },\n ],\n tableCellTypeByType: [\n { match: 'string', value: 'TextCell' },\n { match: 'number', value: 'TextCell' },\n { match: 'time', value: 'TextCell' },\n { match: 'color', value: 'TextCell' },\n { match: 'array', value: 'ArrayCell' },\n { match: 'sparkline', value: 'SparklineCell' },\n { match: 'unknown', value: 'TextCell' },\n { match: 'null', value: 'TextCell' },\n ],\n\n // NOTE: These contexts are used by the table background color editor.\n // Please be careful removing/renaming/altering them.\n // There are unit tests and visual test that will capture breakages.\n tableRowColorMaxContrast: {\n colors: ['> themes.textColor', '> themes.inverseTextColor'],\n default: '> themes.textColor',\n },\n tableRowBackgroundColorEvenConfig: {\n channel: 'hsv.v',\n value: '*0.96',\n },\n tableHeaderBackgroundColorConfig: {\n channel: 'hsv.v',\n value: '*0.9',\n },\n tableRowBackgroundColorsByTheme: ['> themes.rowBackgroundColorOdd'],\n tableAltRowBackgroundColorsByTheme: ['> themes.rowBackgroundColorOdd', '> themes.rowBackgroundColorEven'],\n tableRowBackgroundColorsByBackgroundColor: ['> backgroundColor'],\n tableAltRowBackgroundColorsByBackgroundColor: [\n '> backgroundColor',\n '> backgroundColor | setColorChannel(tableRowBackgroundColorEvenConfig)',\n ],\n};\n\nconst unitPositionConfig = {\n label: _('Units position'),\n editor: 'editor.select',\n option: 'unitPosition',\n editorProps: {\n values: [\n { label: _('Before'), value: 'before' },\n { label: _('After'), value: 'after' },\n ],\n },\n};\n\nconst unitLabelConfig = {\n label: _('Unit label'),\n option: 'unit',\n editor: 'editor.text',\n};\n\nconst timeFormattingConfig = {\n label: _('Date & Time formatting'),\n option: 'format',\n editor: 'editor.text',\n editorProps: {\n tooltip: _('For example: DD-MM-YYYY'),\n },\n};\n\nconst sequentialColorConfig = [\n { to: 20, value: '#D41F1F' },\n { from: 20, to: 40, value: '#D94E17' },\n { from: 40, to: 60, value: '#CBA700' },\n { from: 60, to: 80, value: '#669922' },\n { from: 80, value: '#118832' },\n];\n\nconst matchColorConfig = [{ match: '', value: '#5C33FF' }];\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color for the background. You might use a data source to apply the color. The default for enterprise light is \"#FFFFFF\". The default for enterprise dark is \"#000000\". The default for prisma dark is \"#0B0C0E\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n columnFormat: {\n description:\n 'Lets you format an individual column in a table. Specify a column in a table as a field, followed by a property. For more information, see the Column Format Align - Left example on the Examples page.',\n type: 'object',\n patternProperties: {\n '.*': {\n description: 'Customization for column property',\n type: 'object',\n properties: {\n align: {\n description:\n 'Specify the alignment for each cell in a column. Valid alignments include \"left\", \"center\", and \"right\".',\n type: 'array',\n items: {\n type: 'string',\n enum: validAlignments.concat(),\n },\n },\n cellTypes: {\n description:\n 'Specify how to render data in cells. Valid cell renders include \"TextCell\", \"ArrayCell\", \"SparklineCell\".',\n type: 'array',\n items: {\n type: 'string',\n enum: validCellRenderers.concat(),\n },\n },\n data: {\n description: 'Specify data points to be displayed in the cells of a column.',\n type: 'array',\n items: {\n oneOf: [\n { type: 'string' },\n { type: 'number' },\n { type: 'array', items: { type: ['string', 'number'] } },\n ],\n },\n },\n rowBackgroundColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the background color of each column of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n rowColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the text color of the cells of a column. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n sparklineAreaColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline area of each column. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n sparklineColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each column. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n sparklineTypes: {\n description:\n 'Choose either area or line formatting for the Sparkline. Valid sparkline types include \"line\" and \"area\".',\n type: 'array',\n items: {\n type: 'string',\n enum: validSparklineTypes.concat(),\n },\n },\n textOverflow: {\n description:\n 'Controls how the text should be truncated within a particular column. Valid types include \"anywhere\", \"break-word\", \"ellipsis\". Defaults width for ellipsis is 100px.',\n type: 'string',\n pattern: getPattern(validTextOverflows),\n enum: validTextOverflows.concat(),\n },\n width: {\n description:\n 'Controls how wide in pixels (where 1 px = 1/96th of 1 in) the column should be displayed.',\n type: 'number',\n minimum: 30,\n },\n },\n },\n },\n },\n count: {\n description: 'Specify the maximum number of rows to display.',\n type: 'number',\n default: 10,\n },\n font: {\n default: 'proportional',\n description: 'Specify the font style to use for table content.',\n type: 'string',\n pattern: getPattern(['proportional', 'monospace']),\n },\n fontSize: {\n default: 'default',\n description:\n 'Specify the font size to use for table content. Font sizes range from extra small (10px) to large (16px) with the default being 14px.',\n type: 'string',\n pattern: getPattern(validFontSizes),\n },\n headers: {\n default: '> table | getField()',\n description:\n \"Specify an array of headers to display on the table. Though these can be statically listed, it's best to use the dynamic default, as it will return the fields of your search.\",\n type: 'array',\n items: {\n type: 'string',\n },\n },\n headerVisibility: {\n default: 'inline',\n description: 'Specify how to display the table header row.',\n pattern: getPattern(validHeaderVisibilities),\n enum: validHeaderVisibilities.concat(),\n type: 'string',\n },\n paginateDataSourceKey: {\n default: 'primary',\n description: 'Specify the data source key for pagination and sorting.',\n type: 'string',\n },\n showInternalFields: {\n default: true,\n description:\n 'Specify whether to show internal fields that start with an underscore. The _time field will still be shown if false.',\n type: 'boolean',\n },\n showRowNumbers: {\n default: false,\n description: 'Show row numbers in the first column.',\n type: 'boolean',\n },\n table: {\n default: '> primary',\n description: 'Two dimensional array of data to be displayed in the table.',\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n { type: 'string' },\n { type: 'number' },\n { type: 'array', items: { type: ['string', 'number'] } },\n ],\n },\n },\n },\n tableFormat: {\n description: 'Lets you set global options for a table.',\n type: 'object',\n properties: {\n align: {\n default: '> table | type() | matchValue(tableAlignByType)',\n description:\n 'Specify alignment for each cell in the table. Valid alignments include \"left\", \"center\", and \"right\".',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n enum: validAlignments.concat(),\n },\n },\n },\n cellTypes: {\n default: '> table | type() | matchValue(tableCellTypeByType)',\n description:\n 'Specify how to render data in cells. Valid cell renders include \"TextCell\", \"ArrayCell\", \"SparklineCell\".',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n enum: validCellRenderers.concat(),\n },\n },\n },\n data: {\n description:\n 'Two dimensional data to be displayed in the table. This is usually formatted data instead of raw data from search.',\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n { type: 'string' },\n { type: 'number' },\n { type: 'array', items: { type: ['string', 'number'] } },\n ],\n },\n },\n },\n headerBackgroundColor: {\n default: '> themes.defaultHeaderBackgroundColor',\n description:\n 'Specify the table header background color using a hexadecimal code. For example, \"#FFFFFF\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n headerColor: {\n description:\n 'Specify the table header text color using a hexadecimal code. For example, \"#FFFFFF\".',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n type: 'string',\n },\n rowBackgroundColors: {\n default: '> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByTheme)',\n description:\n 'Specify a list of colors, in hexadecimal code, for the background color of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n rowColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the text color of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n sparklineAreaColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline area of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n sparklineColors: {\n description:\n 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each row of the table. For example, [\"#2C333B\", \"32373D\"].',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,\n },\n },\n },\n sparklineTypes: {\n description: 'Choose either area or line formatting for the Sparkline.',\n type: 'array',\n items: {\n type: 'array',\n items: {\n type: 'string',\n enum: validSparklineTypes.concat(),\n },\n },\n },\n },\n },\n};\n\nconst themes: ThemedDefaults = {\n defaultBackgroundColor: props =>\n pick({\n enterprise: {\n dark: variables.black(props),\n light: variables.backgroundColor(props),\n },\n prisma: variables.backgroundColorSidebar(props),\n })(props),\n defaultHeaderBackgroundColor: props =>\n pick({\n enterprise: {\n dark: variables.gray20(props),\n light: variables.gray92(props),\n },\n prisma: variables.backgroundColor(props),\n })(props),\n rowBackgroundColorEven: props =>\n pick({\n enterprise: {\n dark: variables.black(props),\n light: variables.gray96(props),\n },\n prisma: variables.backgroundColorPage(props),\n })(props),\n rowBackgroundColorOdd: props =>\n pick({\n enterprise: {\n dark: '#0D1012',\n light: variables.backgroundColor(props),\n },\n prisma: variables.backgroundColorSidebar(props),\n })(props),\n textColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: variables.contentColorDefault(props),\n })(props),\n inverseTextColor: props =>\n pick({\n enterprise: {\n dark: variables.contentColorInverted(props), // equal to textColor in enterprise\n light: variables.white(props), // equal to textColor in enterpriseDark\n },\n prisma: variables.contentColorInverted(props),\n })(props),\n};\n\nconst backgroundColorPaletteSet = new Set([\n ...COLOR_EDITOR_PALETTE,\n ...map(themes, (t): string => get(t, 'defaultBackgroundColor')),\n]);\nconst EDITOR_LABEL_WIDTH = 100;\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Global formatting'),\n layout: [\n [\n {\n label: _('Rows displayed'),\n option: 'count',\n editor: 'editor.number',\n editorProps: {\n labelPosition: 'left',\n min: 0,\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n label: _('Row numbers'),\n option: 'showRowNumbers',\n editor: 'editor.toggle',\n editorProps: {\n labelPosition: 'left',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n label: _('Internal fields'),\n option: 'showInternalFields',\n editor: 'editor.toggle',\n editorProps: {\n labelPosition: 'left',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n key: 'backgroundColor',\n editor: 'editor.tableBackgroundColor',\n editorProps: {\n themes,\n labelPosition: 'left',\n labelWidth: EDITOR_LABEL_WIDTH,\n palette: [...backgroundColorPaletteSet],\n },\n },\n ],\n [\n {\n label: _('Header row'),\n option: 'headerVisibility',\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Inline'), value: 'inline' },\n { label: _('Fixed'), value: 'fixed' },\n { label: _('Hidden'), value: 'none' },\n ],\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n option: 'font',\n label: _('Font'),\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Proportional (Default)'), value: 'proportional' },\n { label: _('Monospace'), value: 'monospace' },\n ],\n labelPosition: 'top',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n [\n {\n option: 'fontSize',\n label: _('Font size'),\n editor: 'editor.select',\n editorProps: {\n values: [\n { label: _('Extra Small (font 10px, row 24px)'), value: 'extraSmall' },\n { label: _('Small (font 12px, row 24px)'), value: 'small' },\n { label: _('Default (font 14px, row 32px)'), value: 'default' },\n { label: _('Large (font 16px, row 36px)'), value: 'large' },\n ],\n labelPosition: 'top',\n labelWidth: EDITOR_LABEL_WIDTH,\n },\n },\n ],\n ],\n },\n {\n label: _('Column formatting'),\n layout: [\n [\n {\n label: _('Column-specific formatting'),\n editor: 'editor.tableColumnFormatter',\n editorProps: {\n // Table column coloring does not adhere to same DSL structure as other dynamically colored options\n // we use the FormatterEditor directly and not the DynamicColorEditor's provided DSL builders\n columnColoringConfig: {\n coloringTypes: [\n {\n label: _('Text'),\n value: 'rowColors',\n },\n {\n label: _('Background'),\n value: 'rowBackgroundColors',\n },\n ],\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n rowBackgroundColors: sequentialColorConfig,\n rowColors: sequentialColorConfig,\n },\n },\n {\n label: _('Matches'),\n value: 'matchValue',\n defaults: {\n rowBackgroundColors: matchColorConfig,\n rowColors: matchColorConfig,\n },\n },\n ],\n themes,\n },\n defaultOptionsByType: {\n number: {\n thousandSeparated: false,\n unitPosition: 'after',\n },\n string: {\n unitPosition: 'after',\n },\n },\n flyoutConfig: {\n number: [\n [\n {\n ...unitPositionConfig,\n },\n {\n ...unitLabelConfig,\n },\n ],\n [\n {\n label: _('Precision'),\n option: 'precision',\n editor: 'editor.select',\n editorProps: {\n values: generatePrecisionValues(20),\n },\n },\n {\n label: _('Thousand separators'),\n option: 'thousandSeparated',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Off'), value: false },\n { label: _('On'), value: true },\n ],\n },\n },\n ],\n ],\n // TODO(fkurniawan): fill in with proper editor components\n sparkline: [],\n string: [\n [\n {\n ...unitPositionConfig,\n },\n {\n ...unitLabelConfig,\n },\n ],\n ],\n time: [\n [\n {\n ...timeFormattingConfig,\n },\n ],\n ],\n },\n value: ({ context, options }) => {\n return {\n context,\n columnFormat: options.columnFormat,\n tableFormat: options.tableFormat,\n };\n },\n },\n key: 'TableColumnFormatterEditor',\n },\n ],\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.table',\n /**\n * viz name\n */\n name: 'Table',\n category: VizCategory.TABLE,\n /**\n * viz icon\n */\n icon: TableIcon,\n placeholderIcon: TablePlaceholderIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n events: {\n 'cell.click': {\n description: 'triggered when user clicks a table cell',\n },\n },\n supports: [\n VizBehavior.DYNAMIC_OPTIONS,\n VizBehavior.EVENTS,\n VizBehavior.PAGE_AND_SORT,\n VizBehavior.PLACEHOLDER,\n ],\n themes,\n};\n\nexport default enhanceConfig(config);\n","export const validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'] as const;\nexport type CellRenderers = typeof validCellRenderers[number];\nexport const validSparklineTypes = ['line', 'area'] as const;\nexport type SparklineType = typeof validSparklineTypes[number];\nexport const validHeaderVisibilities = ['none', 'fixed', 'inline'] as const;\nexport type TableHeaderVisibility = typeof validHeaderVisibilities[number];\nexport const validAlignments = ['left', 'center', 'right'] as const;\nexport type TableAlignment = typeof validAlignments[number];\nexport const validTextOverflows = ['anywhere', 'break-word', 'ellipsis'] as const;\nexport type TextOverflow = typeof validTextOverflows[number];\nexport const validFontSizes = ['extraSmall', 'small', 'default', 'large'] as const;\nexport type FontSize = typeof validFontSizes[number];\n","export enum VizCategory {\n SINGLE_VALUE = 'Single Value',\n TRENDS = 'Trends',\n COMPARISONS = 'Comparisons',\n TABLE = 'Table',\n GAUGE = 'Gauge',\n DISTRIBUTIONS = 'Distributions',\n CHOROPLETH = 'Choropleth Maps',\n SHAPES = 'Shapes',\n MISC = 'misc',\n FLOW = 'Flow',\n CORRELATION = 'Correlation',\n SPATIAL = 'Spatial',\n}\n","module.exports = require(\"@splunk/themes/pick\");"],"sourceRoot":""}
|
package/Table.js
CHANGED
|
@@ -221,7 +221,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
221
221
|
|
|
222
222
|
return React.createElement(FixSizeItem, {
|
|
223
223
|
"data-test": "fix-size-item",
|
|
224
|
-
"data-splunk-visualization-version": "25.3.
|
|
224
|
+
"data-splunk-visualization-version": "25.3.3 - a0cdd353c",
|
|
225
225
|
width: width,
|
|
226
226
|
height: height,
|
|
227
227
|
backgroundColor: backgroundColor
|
|
@@ -1587,7 +1587,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
1587
1587
|
componentId: "sc-1gsbnxb-0"
|
|
1588
1588
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1589
1589
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1590
|
-
'data-splunk-visualization-version': "25.3.
|
|
1590
|
+
'data-splunk-visualization-version': "25.3.3 - a0cdd353c"
|
|
1591
1591
|
}).withConfig({
|
|
1592
1592
|
displayName: "withEditModeCover__Blocker",
|
|
1593
1593
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1872,7 +1872,7 @@ var defaultContext = {
|
|
|
1872
1872
|
tableAltRowBackgroundColorsByBackgroundColor: ['> backgroundColor', '> backgroundColor | setColorChannel(tableRowBackgroundColorEvenConfig)']
|
|
1873
1873
|
};
|
|
1874
1874
|
var unitPositionConfig = {
|
|
1875
|
-
label: i18n_1._('Units
|
|
1875
|
+
label: i18n_1._('Units position'),
|
|
1876
1876
|
editor: 'editor.select',
|
|
1877
1877
|
option: 'unitPosition',
|
|
1878
1878
|
editorProps: {
|
|
@@ -1886,12 +1886,12 @@ var unitPositionConfig = {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
};
|
|
1888
1888
|
var unitLabelConfig = {
|
|
1889
|
-
label: i18n_1._('Unit
|
|
1889
|
+
label: i18n_1._('Unit label'),
|
|
1890
1890
|
option: 'unit',
|
|
1891
1891
|
editor: 'editor.text'
|
|
1892
1892
|
};
|
|
1893
1893
|
var timeFormattingConfig = {
|
|
1894
|
-
label: i18n_1._('Date & Time
|
|
1894
|
+
label: i18n_1._('Date & Time formatting'),
|
|
1895
1895
|
option: 'format',
|
|
1896
1896
|
editor: 'editor.text',
|
|
1897
1897
|
editorProps: {
|
|
@@ -2266,9 +2266,9 @@ var backgroundColorPaletteSet = new Set([].concat(_toConsumableArray(colorConsta
|
|
|
2266
2266
|
}))));
|
|
2267
2267
|
var EDITOR_LABEL_WIDTH = 100;
|
|
2268
2268
|
var editorConfig = [{
|
|
2269
|
-
label: i18n_1._('Global
|
|
2269
|
+
label: i18n_1._('Global formatting'),
|
|
2270
2270
|
layout: [[{
|
|
2271
|
-
label: i18n_1._('Rows
|
|
2271
|
+
label: i18n_1._('Rows displayed'),
|
|
2272
2272
|
option: 'count',
|
|
2273
2273
|
editor: 'editor.number',
|
|
2274
2274
|
editorProps: {
|
|
@@ -2277,7 +2277,7 @@ var editorConfig = [{
|
|
|
2277
2277
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2278
2278
|
}
|
|
2279
2279
|
}], [{
|
|
2280
|
-
label: i18n_1._('Row
|
|
2280
|
+
label: i18n_1._('Row numbers'),
|
|
2281
2281
|
option: 'showRowNumbers',
|
|
2282
2282
|
editor: 'editor.toggle',
|
|
2283
2283
|
editorProps: {
|
|
@@ -2285,7 +2285,7 @@ var editorConfig = [{
|
|
|
2285
2285
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2286
2286
|
}
|
|
2287
2287
|
}], [{
|
|
2288
|
-
label: i18n_1._('Internal
|
|
2288
|
+
label: i18n_1._('Internal fields'),
|
|
2289
2289
|
option: 'showInternalFields',
|
|
2290
2290
|
editor: 'editor.toggle',
|
|
2291
2291
|
editorProps: {
|
|
@@ -2302,7 +2302,7 @@ var editorConfig = [{
|
|
|
2302
2302
|
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
2303
2303
|
}
|
|
2304
2304
|
}], [{
|
|
2305
|
-
label: i18n_1._('Header
|
|
2305
|
+
label: i18n_1._('Header row'),
|
|
2306
2306
|
option: 'headerVisibility',
|
|
2307
2307
|
editor: 'editor.select',
|
|
2308
2308
|
editorProps: {
|
|
@@ -2335,7 +2335,7 @@ var editorConfig = [{
|
|
|
2335
2335
|
}
|
|
2336
2336
|
}], [{
|
|
2337
2337
|
option: 'fontSize',
|
|
2338
|
-
label: i18n_1._('Font
|
|
2338
|
+
label: i18n_1._('Font size'),
|
|
2339
2339
|
editor: 'editor.select',
|
|
2340
2340
|
editorProps: {
|
|
2341
2341
|
values: [{
|
|
@@ -2356,7 +2356,7 @@ var editorConfig = [{
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}]]
|
|
2358
2358
|
}, {
|
|
2359
|
-
label: i18n_1._('Column
|
|
2359
|
+
label: i18n_1._('Column formatting'),
|
|
2360
2360
|
layout: [[{
|
|
2361
2361
|
label: i18n_1._('Column-specific formatting'),
|
|
2362
2362
|
editor: 'editor.tableColumnFormatter',
|
|
@@ -2406,7 +2406,7 @@ var editorConfig = [{
|
|
|
2406
2406
|
values: configUtils_1.generatePrecisionValues(20)
|
|
2407
2407
|
}
|
|
2408
2408
|
}, {
|
|
2409
|
-
label: i18n_1._('Thousand
|
|
2409
|
+
label: i18n_1._('Thousand separators'),
|
|
2410
2410
|
option: 'thousandSeparated',
|
|
2411
2411
|
editor: 'editor.radioBar',
|
|
2412
2412
|
editorProps: {
|
|
@@ -2885,6 +2885,14 @@ var PureTable = function PureTable(props) {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
2887
|
|
|
2888
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
2889
|
+
if (e.keyCode !== 13) {
|
|
2890
|
+
return;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
drilldownHandler(e);
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2888
2896
|
var recalculateTempColumnWidths = function recalculateTempColumnWidths() {
|
|
2889
2897
|
setTempColumns({});
|
|
2890
2898
|
setRemainingWidth(0);
|
|
@@ -2923,6 +2931,7 @@ var PureTable = function PureTable(props) {
|
|
|
2923
2931
|
cursor: onCellClick ? 'pointer' : 'unset'
|
|
2924
2932
|
},
|
|
2925
2933
|
onClick: onCellClick ? drilldownHandler : lodash_1.noop,
|
|
2934
|
+
onKeyDown: onCellClick ? handleKeyDown : lodash_1.noop,
|
|
2926
2935
|
onRequestResizeColumn: handleResizeColumn
|
|
2927
2936
|
}, React.createElement(TableHead, null, tableHeader.cells.filter(function (c) {
|
|
2928
2937
|
return c.showCell;
|