@splunk/visualizations 25.13.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +216 -216
- package/Area.config.js.map +1 -1
- package/Area.js +529 -561
- package/Area.js.map +1 -1
- package/Bar.config.js +213 -213
- package/Bar.config.js.map +1 -1
- package/Bar.js +394 -386
- package/Bar.js.map +1 -1
- package/Bubble.config.js +140 -140
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +313 -305
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +15 -15
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +149 -144
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +205 -205
- package/Column.config.js.map +1 -1
- package/Column.js +387 -379
- package/Column.js.map +1 -1
- package/Ellipse.config.js +45 -45
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +157 -144
- package/Ellipse.js.map +1 -1
- package/Events.config.js +11 -11
- package/Events.config.js.map +1 -1
- package/Events.js +274 -262
- package/Events.js.map +1 -1
- package/FillerGauge.config.js +46 -46
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +267 -262
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +8 -8
- package/Image.config.js.map +1 -1
- package/Image.js +110 -104
- package/Image.js.map +1 -1
- package/Line.config.js +220 -220
- package/Line.config.js.map +1 -1
- package/Line.js +404 -396
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +27 -27
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +557 -548
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +71 -71
- package/Map.config.js.map +1 -1
- package/Map.js +472 -466
- package/Map.js.map +1 -1
- package/Markdown.config.js +23 -23
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +151 -145
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +84 -84
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +295 -289
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +23 -23
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +164 -162
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +24 -24
- package/Pie.config.js.map +1 -1
- package/Pie.js +233 -228
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +33 -33
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +278 -279
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +46 -46
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +154 -142
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +19 -19
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +281 -275
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +135 -135
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +304 -299
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +119 -119
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +359 -341
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +14 -14
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +117 -117
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +373 -371
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +157 -115
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1114 -540
- package/SingleValueRadial.js.map +1 -1
- package/SparkLine.js +50 -20
- package/SparkLine.js.map +1 -1
- package/Table.config.js +54 -54
- package/Table.config.js.map +1 -1
- package/Table.js +302 -286
- package/Table.js.map +1 -1
- package/common/Charting.js +41 -41
- package/common/Charting.js.map +1 -1
- package/common/EventsDoc.js +15 -14
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +2 -2
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +22 -22
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +32 -27
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +14 -14
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +12 -12
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +112 -112
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +21 -15
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/configUtils.js +10 -9
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +3 -3
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/layoutUtils.js +2 -2
- package/common/utils/layoutUtils.js.map +1 -1
- package/common/utils/mapUtils.js +84 -80
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +2 -2
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +27 -9
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +26 -26
- package/common/utils/trellisUtils.js.map +1 -1
- package/common/utils/urlUtils.js +2 -2
- package/common/utils/urlUtils.js.map +1 -1
- package/common/withDashboardViz.js +107 -104
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +19 -19
package/FillerGauge.config.js
CHANGED
|
@@ -305,8 +305,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
|
|
|
305
305
|
*/
|
|
306
306
|
function getInitialPreset(vizContext, vizOptions, presets) {
|
|
307
307
|
return presets.find(function (preset) {
|
|
308
|
-
var presetContext = lodash_1.get(preset, ['value', 'context'], {});
|
|
309
|
-
var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
|
|
308
|
+
var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
|
|
309
|
+
var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
|
|
310
310
|
var presetContextKeys = Object.keys(presetContext);
|
|
311
311
|
var presetOptionKeys = Object.keys(presetOptions);
|
|
312
312
|
// all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
|
|
@@ -323,7 +323,7 @@ exports.getInitialPreset = getInitialPreset;
|
|
|
323
323
|
* @returns {{ label: string; value; string }[]} array of { label, value } tuples
|
|
324
324
|
*/
|
|
325
325
|
function generatePrecisionValues(numPrecisionValues) {
|
|
326
|
-
return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
|
|
326
|
+
return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
|
|
327
327
|
return {
|
|
328
328
|
label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
|
|
329
329
|
value: i
|
|
@@ -427,7 +427,7 @@ var background = function background(_ref) {
|
|
|
427
427
|
themes = _ref.themes,
|
|
428
428
|
labelPosition = _ref.labelPosition;
|
|
429
429
|
return [{
|
|
430
|
-
label: i18n_1._(label || 'Background'),
|
|
430
|
+
label: (0, i18n_1._)(label || 'Background'),
|
|
431
431
|
option: 'backgroundColor',
|
|
432
432
|
editor: 'editor.color',
|
|
433
433
|
editorProps: {
|
|
@@ -474,8 +474,7 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
|
|
|
474
474
|
/* 36 */,
|
|
475
475
|
/* 37 */,
|
|
476
476
|
/* 38 */,
|
|
477
|
-
/* 39
|
|
478
|
-
/* 40 */
|
|
477
|
+
/* 39 */
|
|
479
478
|
/***/ (function(module, exports, __webpack_require__) {
|
|
480
479
|
|
|
481
480
|
"use strict";
|
|
@@ -486,49 +485,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
486
485
|
});
|
|
487
486
|
var i18n_1 = __webpack_require__(0);
|
|
488
487
|
var gauge = {
|
|
489
|
-
label: i18n_1._('Data display'),
|
|
488
|
+
label: (0, i18n_1._)('Data display'),
|
|
490
489
|
layout: [[{
|
|
491
|
-
label: i18n_1._('Value display'),
|
|
490
|
+
label: (0, i18n_1._)('Value display'),
|
|
492
491
|
option: 'valueDisplay',
|
|
493
492
|
editor: 'editor.radioBar',
|
|
494
493
|
editorProps: {
|
|
495
494
|
values: [{
|
|
496
|
-
label: i18n_1._('Number'),
|
|
495
|
+
label: (0, i18n_1._)('Number'),
|
|
497
496
|
value: 'number'
|
|
498
497
|
}, {
|
|
499
|
-
label: i18n_1._('Percentage'),
|
|
498
|
+
label: (0, i18n_1._)('Percentage'),
|
|
500
499
|
value: 'percentage'
|
|
501
500
|
}, {
|
|
502
|
-
label: i18n_1._('Off'),
|
|
501
|
+
label: (0, i18n_1._)('Off'),
|
|
503
502
|
value: 'off'
|
|
504
503
|
}]
|
|
505
504
|
}
|
|
506
505
|
}], [{
|
|
507
|
-
label: i18n_1._('Label display'),
|
|
506
|
+
label: (0, i18n_1._)('Label display'),
|
|
508
507
|
option: 'labelDisplay',
|
|
509
508
|
editor: 'editor.radioBar',
|
|
510
509
|
editorProps: {
|
|
511
510
|
values: [{
|
|
512
|
-
label: i18n_1._('Numbers'),
|
|
511
|
+
label: (0, i18n_1._)('Numbers'),
|
|
513
512
|
value: 'number'
|
|
514
513
|
}, {
|
|
515
|
-
label: i18n_1._('Percentages'),
|
|
514
|
+
label: (0, i18n_1._)('Percentages'),
|
|
516
515
|
value: 'percentage'
|
|
517
516
|
}, {
|
|
518
|
-
label: i18n_1._('Off'),
|
|
517
|
+
label: (0, i18n_1._)('Off'),
|
|
519
518
|
value: 'off'
|
|
520
519
|
}]
|
|
521
520
|
}
|
|
522
521
|
}], [{
|
|
523
|
-
label: i18n_1._('Orientation'),
|
|
522
|
+
label: (0, i18n_1._)('Orientation'),
|
|
524
523
|
option: 'orientation',
|
|
525
524
|
editor: 'editor.radioBar',
|
|
526
525
|
editorProps: {
|
|
527
526
|
values: [{
|
|
528
|
-
label: i18n_1._('Vertical'),
|
|
527
|
+
label: (0, i18n_1._)('Vertical'),
|
|
529
528
|
value: 'vertical'
|
|
530
529
|
}, {
|
|
531
|
-
label: i18n_1._('Horizontal'),
|
|
530
|
+
label: (0, i18n_1._)('Horizontal'),
|
|
532
531
|
value: 'horizontal'
|
|
533
532
|
}]
|
|
534
533
|
}
|
|
@@ -537,6 +536,7 @@ var gauge = {
|
|
|
537
536
|
exports.default = gauge;
|
|
538
537
|
|
|
539
538
|
/***/ }),
|
|
539
|
+
/* 40 */,
|
|
540
540
|
/* 41 */,
|
|
541
541
|
/* 42 */,
|
|
542
542
|
/* 43 */,
|
|
@@ -565,7 +565,7 @@ var placeholders_1 = __webpack_require__(11);
|
|
|
565
565
|
var VizBehavior_1 = __webpack_require__(2);
|
|
566
566
|
var VizCategory_1 = __webpack_require__(8);
|
|
567
567
|
var configUtils_1 = __webpack_require__(4);
|
|
568
|
-
var Gauge_1 = __webpack_require__(
|
|
568
|
+
var Gauge_1 = __webpack_require__(39);
|
|
569
569
|
var BackgroundColor_1 = __webpack_require__(13);
|
|
570
570
|
var DynamicGaugeColorEditor_1 = __webpack_require__(51);
|
|
571
571
|
var StaticGaugeColorEditor_1 = __webpack_require__(52);
|
|
@@ -622,7 +622,7 @@ var optionsSchema = {
|
|
|
622
622
|
labelDisplay: {
|
|
623
623
|
default: 'number',
|
|
624
624
|
description: 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',
|
|
625
|
-
pattern: schemaUtils_1.getPattern(['number', 'percentage', 'off']),
|
|
625
|
+
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
|
|
626
626
|
type: 'string'
|
|
627
627
|
},
|
|
628
628
|
majorTickInterval: {
|
|
@@ -633,7 +633,7 @@ var optionsSchema = {
|
|
|
633
633
|
orientation: {
|
|
634
634
|
default: 'vertical',
|
|
635
635
|
description: 'Specify the axis orientation of the gauge.',
|
|
636
|
-
pattern: schemaUtils_1.getPattern(['vertical', 'horizontal']),
|
|
636
|
+
pattern: (0, schemaUtils_1.getPattern)(['vertical', 'horizontal']),
|
|
637
637
|
type: 'string'
|
|
638
638
|
},
|
|
639
639
|
value: {
|
|
@@ -644,13 +644,13 @@ var optionsSchema = {
|
|
|
644
644
|
valueDisplay: {
|
|
645
645
|
default: 'number',
|
|
646
646
|
description: 'Specify whether to display the value as a number, percentage, or off.',
|
|
647
|
-
pattern: schemaUtils_1.getPattern(['number', 'percentage', 'off']),
|
|
647
|
+
pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
|
|
648
648
|
type: 'string'
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
651
|
var themes = {
|
|
652
652
|
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
653
|
-
return pick_1.default({
|
|
653
|
+
return (0, pick_1.default)({
|
|
654
654
|
enterprise: {
|
|
655
655
|
dark: variables_1.default.black(props),
|
|
656
656
|
light: variables_1.default.backgroundColor(props)
|
|
@@ -659,7 +659,7 @@ var themes = {
|
|
|
659
659
|
})(props);
|
|
660
660
|
},
|
|
661
661
|
defaultBackgroundBarFillColor: function defaultBackgroundBarFillColor(props) {
|
|
662
|
-
return pick_1.default({
|
|
662
|
+
return (0, pick_1.default)({
|
|
663
663
|
enterprise: variables_1.default.backgroundColorHover(props),
|
|
664
664
|
prisma: {
|
|
665
665
|
light: variables_1.default.contentColorActive(props),
|
|
@@ -668,7 +668,7 @@ var themes = {
|
|
|
668
668
|
})(props);
|
|
669
669
|
},
|
|
670
670
|
majorTickFillColor: function majorTickFillColor(props) {
|
|
671
|
-
return pick_1.default({
|
|
671
|
+
return (0, pick_1.default)({
|
|
672
672
|
enterprise: {
|
|
673
673
|
light: variables_1.default.gray30(props),
|
|
674
674
|
dark: variables_1.default.textGray(props) // was #D7DAE0
|
|
@@ -682,7 +682,7 @@ var themes = {
|
|
|
682
682
|
})(props);
|
|
683
683
|
},
|
|
684
684
|
majorTickStrokeColor: function majorTickStrokeColor(props) {
|
|
685
|
-
return pick_1.default({
|
|
685
|
+
return (0, pick_1.default)({
|
|
686
686
|
enterprise: {
|
|
687
687
|
light: variables_1.default.textGray(props),
|
|
688
688
|
dark: variables_1.default.contentColorMuted(props)
|
|
@@ -691,7 +691,7 @@ var themes = {
|
|
|
691
691
|
})(props);
|
|
692
692
|
},
|
|
693
693
|
valueMarkerFillColor: function valueMarkerFillColor(props) {
|
|
694
|
-
return pick_1.default({
|
|
694
|
+
return (0, pick_1.default)({
|
|
695
695
|
enterprise: variables_1.default.textColor(props),
|
|
696
696
|
prisma: {
|
|
697
697
|
dark: variables_1.default.white(props),
|
|
@@ -700,7 +700,7 @@ var themes = {
|
|
|
700
700
|
})(props);
|
|
701
701
|
},
|
|
702
702
|
valueMarkerLabelFillColor: function valueMarkerLabelFillColor(props) {
|
|
703
|
-
return pick_1.default({
|
|
703
|
+
return (0, pick_1.default)({
|
|
704
704
|
enterprise: {
|
|
705
705
|
light: variables_1.default.gray96(props),
|
|
706
706
|
dark: variables_1.default.black(props)
|
|
@@ -717,14 +717,14 @@ var basePresetOptions = {
|
|
|
717
717
|
};
|
|
718
718
|
var presets = [{
|
|
719
719
|
// dummy context variables to allow for resetting of unused context states
|
|
720
|
-
label: i18n_1._('None'),
|
|
720
|
+
label: (0, i18n_1._)('None'),
|
|
721
721
|
name: 'fillerGauge.none',
|
|
722
722
|
value: {
|
|
723
723
|
context: Object.assign({}, basePresetContext),
|
|
724
724
|
options: Object.assign({}, basePresetOptions)
|
|
725
725
|
}
|
|
726
726
|
}, {
|
|
727
|
-
label: i18n_1._('Gauge'),
|
|
727
|
+
label: (0, i18n_1._)('Gauge'),
|
|
728
728
|
name: 'fillerGauge.gauge',
|
|
729
729
|
value: {
|
|
730
730
|
context: {
|
|
@@ -736,9 +736,9 @@ var presets = [{
|
|
|
736
736
|
}
|
|
737
737
|
}];
|
|
738
738
|
var editorConfig = [{
|
|
739
|
-
label: i18n_1._('Data configurations'),
|
|
739
|
+
label: (0, i18n_1._)('Data configurations'),
|
|
740
740
|
layout: [[{
|
|
741
|
-
label: i18n_1._('Value'),
|
|
741
|
+
label: (0, i18n_1._)('Value'),
|
|
742
742
|
editor: 'editor.columnSelector',
|
|
743
743
|
option: 'value',
|
|
744
744
|
context: 'defaultContext',
|
|
@@ -756,9 +756,9 @@ var editorConfig = [{
|
|
|
756
756
|
}
|
|
757
757
|
}]]
|
|
758
758
|
}, Gauge_1.default, {
|
|
759
|
-
label: i18n_1._('Color and style'),
|
|
759
|
+
label: (0, i18n_1._)('Color and style'),
|
|
760
760
|
layout: [[{
|
|
761
|
-
label: i18n_1._('Dynamic elements'),
|
|
761
|
+
label: (0, i18n_1._)('Dynamic elements'),
|
|
762
762
|
key: 'presetSelector',
|
|
763
763
|
editor: 'editor.presetSelector',
|
|
764
764
|
editorProps: {
|
|
@@ -766,18 +766,18 @@ var editorConfig = [{
|
|
|
766
766
|
value: function value(_ref) {
|
|
767
767
|
var context = _ref.context,
|
|
768
768
|
options = _ref.options;
|
|
769
|
-
var initialPreset = configUtils_1.getInitialPreset(context, options, presets);
|
|
769
|
+
var initialPreset = (0, configUtils_1.getInitialPreset)(context, options, presets);
|
|
770
770
|
return initialPreset && initialPreset.label || null;
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
}], [DynamicGaugeColorEditor_1.getDynamicGaugeColorEditor({
|
|
773
|
+
}], [(0, DynamicGaugeColorEditor_1.getDynamicGaugeColorEditor)({
|
|
774
774
|
defaultContext: defaultContext,
|
|
775
775
|
defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
|
|
776
776
|
})], [Object.assign(Object.assign({}, StaticGaugeColorEditor_1.default), {
|
|
777
777
|
editorProps: {
|
|
778
778
|
themes: themes
|
|
779
779
|
}
|
|
780
|
-
})], BackgroundColor_1.default({
|
|
780
|
+
})], (0, BackgroundColor_1.default)({
|
|
781
781
|
themes: themes
|
|
782
782
|
})]
|
|
783
783
|
}];
|
|
@@ -792,7 +792,7 @@ var config = {
|
|
|
792
792
|
/**
|
|
793
793
|
* viz name
|
|
794
794
|
*/
|
|
795
|
-
name: i18n_1._('Filler gauge'),
|
|
795
|
+
name: (0, i18n_1._)('Filler gauge'),
|
|
796
796
|
category: VizCategory_1.VizCategory.GAUGE,
|
|
797
797
|
/**
|
|
798
798
|
* viz icon
|
|
@@ -807,7 +807,7 @@ var config = {
|
|
|
807
807
|
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
|
|
808
808
|
themes: themes
|
|
809
809
|
};
|
|
810
|
-
exports.default = configUtils_1.enhanceConfig(config);
|
|
810
|
+
exports.default = (0, configUtils_1.enhanceConfig)(config);
|
|
811
811
|
|
|
812
812
|
/***/ }),
|
|
813
813
|
/* 50 */
|
|
@@ -832,26 +832,26 @@ var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
|
|
|
832
832
|
var defaultContext = _ref.defaultContext,
|
|
833
833
|
defaultPalettesConfig = _ref.defaultPalettesConfig;
|
|
834
834
|
return {
|
|
835
|
-
label: i18n_1._('Gauge'),
|
|
835
|
+
label: (0, i18n_1._)('Gauge'),
|
|
836
836
|
option: 'gaugeColor',
|
|
837
837
|
context: 'gaugeColorConfig',
|
|
838
838
|
editor: 'editor.dynamicColor',
|
|
839
839
|
showEditor: function showEditor(_ref2) {
|
|
840
840
|
var options = _ref2.options;
|
|
841
|
-
return configUtils_1.isDynamicOption(options.gaugeColor);
|
|
841
|
+
return (0, configUtils_1.isDynamicOption)(options.gaugeColor);
|
|
842
842
|
},
|
|
843
843
|
editorProps: {
|
|
844
844
|
labelPosition: 'top',
|
|
845
|
-
flyoutTitle: i18n_1._('Dynamic coloring: gauge'),
|
|
845
|
+
flyoutTitle: (0, i18n_1._)('Dynamic coloring: gauge'),
|
|
846
846
|
formatters: [{
|
|
847
|
-
label: i18n_1._('Ranges'),
|
|
847
|
+
label: (0, i18n_1._)('Ranges'),
|
|
848
848
|
value: 'rangeValue',
|
|
849
849
|
defaults: {
|
|
850
850
|
value: defaultContext.gaugeColorConfig
|
|
851
851
|
}
|
|
852
852
|
}],
|
|
853
853
|
dataSelectors: [{
|
|
854
|
-
label: i18n_1._('Value'),
|
|
854
|
+
label: (0, i18n_1._)('Value'),
|
|
855
855
|
value: 'value'
|
|
856
856
|
}],
|
|
857
857
|
defaultPalettesConfig: defaultPalettesConfig
|
|
@@ -873,12 +873,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
873
873
|
var i18n_1 = __webpack_require__(0);
|
|
874
874
|
var configUtils_1 = __webpack_require__(5);
|
|
875
875
|
var StaticGaugeColorEditor = {
|
|
876
|
-
label: i18n_1._('Gauge'),
|
|
876
|
+
label: (0, i18n_1._)('Gauge'),
|
|
877
877
|
option: 'gaugeColor',
|
|
878
878
|
editor: 'editor.color',
|
|
879
879
|
showEditor: function showEditor(_ref) {
|
|
880
880
|
var options = _ref.options;
|
|
881
|
-
return !configUtils_1.isDynamicOption(options.gaugeColor);
|
|
881
|
+
return !(0, configUtils_1.isDynamicOption)(options.gaugeColor);
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
884
|
exports.default = StaticGaugeColorEditor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///external \"@splunk/visualizations-shared/configUtils\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons/placeholders\"","webpack:///./src/common/editorConfig/BackgroundColor.ts","webpack:///external \"@splunk/visualization-color-palettes\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///./src/common/editorConfig/Gauge.ts","webpack:///./src/FillerGauge/config.ts","webpack:///external \"@splunk/react-icons/enterprise/GaugeFiller\"","webpack:///./src/common/editorConfig/DynamicGaugeColorEditor.ts","webpack:///./src/common/editorConfig/StaticGaugeColorEditor.ts"],"names":["VizBehavior","exports","lodash_1","require","schemaUtils_1","VizBehavior_1","dynamicOptionsDSLType","type","pattern","DYNAMIC_OPTIONS_DSL_PATTERN","enhanceOptionsSchemaWithDynamicOptions","optionsSchema","enhancedOptionsSchema","Object","keys","forEach","key","_a","title","description","readOnly","writeOnly","examples","defaultValue","default","properties","patternProperties","remainingSchemaEntry","__rest","annotations","assign","undefined","enhancedPatternProperties","opt","_defineProperty","anyOf","enhanceConfig","vizConfig","enhancedConfig","supports","indexOf","DYNAMIC_OPTIONS","editorConfig","map","config","open","uncollapseEditorConfig","editorPanelUncollapsedConfig","isDynamicOption","option","trim","startsWith","hasCompatibleContexts","vizContext","presetContext","presetContextKeys","every","contextKey","hasCompatibleOptions","vizOptions","presetOptions","presetOptionKeys","optionKey","getInitialPreset","presets","find","preset","get","length","generatePrecisionValues","numPrecisionValues","range","i","label","concat","repeat","value","insertLayout","layout","index","_len","arguments","layoutItems","Array","_key","_toConsumableArray","slice","VizCategory","i18n_1","background","_ref","themes","labelPosition","_","editor","editorProps","gauge","values","pick_1","variables_1","visualization_color_palettes_1","PresetPalettes_1","GaugeFiller_1","placeholders_1","VizCategory_1","configUtils_1","Gauge_1","BackgroundColor_1","DynamicGaugeColorEditor_1","StaticGaugeColorEditor_1","dataContract","requiredDataSources","name","optionalDataSources","initialRequestParams","primary","offset","count","size","initialWidth","initialHeight","defaultContext","gaugeColorConfig","to","from","backgroundColor","COLOR_OR_TOKEN_PATTERN_WITH_RGBA","gaugeColor","CATEGORICAL","labelDisplay","getPattern","majorTickInterval","orientation","valueDisplay","defaultBackgroundColor","props","enterprise","dark","black","light","prisma","backgroundColorSidebar","defaultBackgroundBarFillColor","backgroundColorHover","contentColorActive","neutral100","majorTickFillColor","gray30","textGray","contentColorMuted","majorTickStrokeColor","valueMarkerFillColor","textColor","white","valueMarkerLabelFillColor","gray96","basePresetContext","gaugeColorEditorConfig","basePresetOptions","context","options","dataSourceKey","prepareValue","definition","initialPreset","getDynamicGaugeColorEditor","defaultPalettesConfig","category","GAUGE","icon","placeholderIcon","FillerGauge","PLACEHOLDER","showEditor","_ref2","flyoutTitle","formatters","defaults","dataSelectors","StaticGaugeColorEditor"],"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,IAAYA,WAsBX;AAtBD,WAAYA,WAAW;EACnB;;;;;;;;;;;EAWAA,WAAA,uCAAmC;EACnCA,WAAA,qBAAiB;EACjB;;;;;EAKAA,WAAA,+BAA2B;EAC3BA,WAAA,mCAA+B;EAC/BA,WAAA,uBAAmB;AACvB,CAAC,EAtBWA,WAAW,GAAXC,OAAA,CAAAD,WAAW,KAAXC,OAAA,CAAAD,WAAW,Q;;;;;;ACAvB,sE;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAE,QAA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,qBAAqB,EAArBA;;GAEP;AAAA,CAAC;AA1BWrK,OAAA,CAAAoK,0BAA0B,GAAAA,0BAAA,C;;;;;;;;;;;;ACHvC,IAAA7E,MAAA,GAAArF,mBAAA;AACA,IAAAsG,aAAA,GAAAtG,mBAAA;AAEA,IAAMgL,sBAAsB,GAAG;EAC3B1G,KAAK,EAAEe,MAAA,CAAAK,CAAC,CAAC,OAAO,CAAC;EACjB5C,MAAM,EAAE,YAAY;EACpB6C,MAAM,EAAE,cAAc;EACtB+E,UAAU,EAAE,SAAAA,WAAAnF,IAAA;IAAA,IAAGsE,OAAO,GAAAtE,IAAA,CAAPsE,OAAO;IAAA,OAAO,CAACvD,aAAA,CAAAzD,eAAe,CAACgH,OAAO,CAACjC,UAAU,CAAC;EAAA;CACpE;AAED9H,OAAA,CAAAuB,OAAA,GAAe2J,sBAAsB,C","file":"FillerGauge.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 = 49);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","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 TRELLIS = 'trellis',\n}\n","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(\"@splunk/visualizations-shared/configUtils\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","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\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons/placeholders\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorLayoutConfig } from '../interfaces/Editor';\nimport { ThemedDefaults } from '../interfaces/ThemedDefaults';\n\ninterface backgroundEditorProps {\n label?: string;\n themes: ThemedDefaults;\n labelPosition?: string;\n}\n\nconst background: ({ label, themes, labelPosition }: backgroundEditorProps) => EditorLayoutConfig[] = ({\n label,\n themes,\n labelPosition,\n}) => [\n {\n label: _(label || 'Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: labelPosition || 'top',\n themes,\n },\n },\n];\n\nexport default background;\n","module.exports = require(\"@splunk/visualization-color-palettes\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorConfig } from '../interfaces/Editor';\n\nconst gauge: EditorConfig = {\n label: _('Data display'),\n layout: [\n [\n {\n label: _('Value display'),\n option: 'valueDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Number'), value: 'number' },\n { label: _('Percentage'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Label display'),\n option: 'labelDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Numbers'), value: 'number' },\n { label: _('Percentages'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Orientation'),\n option: 'orientation',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Vertical'), value: 'vertical' },\n { label: _('Horizontal'), value: 'horizontal' },\n ],\n },\n },\n ],\n ],\n};\n\nexport default gauge;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_OR_TOKEN_PATTERN_WITH_RGBA, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { CATEGORICAL } from '@splunk/visualization-color-palettes';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\n\nimport SuiGaugeFillerIcon from '@splunk/react-icons/enterprise/GaugeFiller';\nimport { FillerGauge as FillerGaugePlaceholderIcon } from '@splunk/visualization-icons/placeholders';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { VizCategory } from '../common/interfaces/VizCategory';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { PresetEntry, enhanceConfig, getInitialPreset } from '../common/utils/configUtils';\nimport GaugeConfig from '../common/editorConfig/Gauge';\nimport getBackgroundColorEditor from '../common/editorConfig/BackgroundColor';\nimport { getDynamicGaugeColorEditor } from '../common/editorConfig/DynamicGaugeColorEditor';\nimport StaticGaugeColorEditor from '../common/editorConfig/StaticGaugeColorEditor';\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: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {\n gaugeColorConfig: [\n { to: 9, value: '#118832' },\n { from: 10, to: 29, value: '#669922' },\n { from: 30, to: 49, value: '#CBA700' },\n { from: 50, to: 69, value: '#D94E17' },\n { from: 70, value: '#D41F1F' },\n ],\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color used for the background. 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 gaugeColor: {\n default: CATEGORICAL[0],\n description:\n 'Specify the color for the gauge color of the filler gauge. You may use a dataSource to apply the color. The hex value format should be \"#FFFFFF\".',\n type: 'string',\n },\n labelDisplay: {\n default: 'number',\n description:\n 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\n },\n majorTickInterval: {\n description: 'Specify, in pixels, the spacing between major tick marks.',\n default: 'auto',\n type: ['string', 'number'],\n },\n orientation: {\n default: 'vertical',\n description: 'Specify the axis orientation of the gauge.',\n pattern: getPattern(['vertical', 'horizontal']),\n type: 'string',\n },\n value: {\n default: '> primary | seriesByType(\"number\") | lastPoint()',\n description: 'Specify the dataSource applied to the value of the filler gauge.',\n type: 'number',\n },\n valueDisplay: {\n default: 'number',\n description: 'Specify whether to display the value as a number, percentage, or off.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\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 defaultBackgroundBarFillColor: props =>\n pick({\n enterprise: variables.backgroundColorHover(props),\n prisma: {\n light: variables.contentColorActive(props),\n dark: variables.neutral100(props),\n },\n })(props),\n majorTickFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray30(props), // was '#33343B'\n dark: variables.textGray(props), // was #D7DAE0\n },\n prisma: {\n // TODO: missed colors :(\n light: variables.neutral100(props), // TBD\n dark: variables.contentColorMuted(props), // was #D7DAE0; contentColor\n },\n })(props),\n majorTickStrokeColor: props =>\n pick({\n enterprise: {\n light: variables.textGray(props),\n dark: variables.contentColorMuted(props),\n },\n prisma: variables.contentColorMuted(props),\n })(props),\n valueMarkerFillColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: {\n dark: variables.white(props),\n light: variables.black(props),\n },\n })(props),\n valueMarkerLabelFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray96(props),\n dark: variables.black(props),\n },\n prisma: variables.black(props),\n })(props),\n};\n\nconst basePresetContext = {\n gaugeColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n gaugeColor: CATEGORICAL[0],\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'fillerGauge.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Gauge'),\n name: 'fillerGauge.gauge',\n value: {\n context: {\n gaugeColorEditorConfig: defaultContext.gaugeColorConfig,\n },\n options: {\n gaugeColor: '> value | rangeValue(gaugeColorEditorConfig)',\n },\n },\n },\n];\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Data configurations'),\n layout: [\n [\n {\n label: _('Value'),\n editor: 'editor.columnSelector',\n option: 'value',\n context: 'defaultContext',\n editorProps: {\n dataSourceKey: 'primary',\n prepareValue: (\n definition\n ): { context: Record<string, any>; options: Record<string, any> } => {\n const {\n options: { value },\n } = definition;\n return {\n context: {},\n options: {\n value: `${value} | lastPoint()`,\n },\n };\n },\n },\n },\n ],\n ],\n },\n GaugeConfig,\n {\n label: _('Color and style'),\n layout: [\n [\n {\n label: _('Dynamic elements'),\n key: 'presetSelector',\n editor: 'editor.presetSelector',\n editorProps: {\n presets,\n value: ({ context, options }) => {\n const initialPreset = getInitialPreset(context, options, presets);\n return (initialPreset && initialPreset.label) || null;\n },\n },\n },\n ],\n [getDynamicGaugeColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticGaugeColorEditor,\n editorProps: {\n themes,\n },\n },\n ],\n getBackgroundColorEditor({ themes }),\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.fillergauge',\n /**\n * viz name\n */\n name: _('Filler gauge'),\n category: VizCategory.GAUGE,\n /**\n * viz icon\n */\n icon: SuiGaugeFillerIcon,\n placeholderIcon: FillerGaugePlaceholderIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.PLACEHOLDER],\n themes,\n};\n\nexport default enhanceConfig(config);\n","module.exports = require(\"@splunk/react-icons/enterprise/GaugeFiller\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nexport const getDynamicGaugeColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Gauge'),\n option: 'gaugeColor',\n context: 'gaugeColorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.gaugeColor),\n editorProps: {\n labelPosition: 'top',\n flyoutTitle: _('Dynamic coloring: gauge'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n value: defaultContext.gaugeColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Value'),\n value: 'value',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nconst StaticGaugeColorEditor = {\n label: _('Gauge'),\n option: 'gaugeColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.gaugeColor),\n};\n\nexport default StaticGaugeColorEditor;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@babel/runtime/helpers/toConsumableArray\"","webpack:///./src/common/interfaces/VizBehavior.ts","webpack:///external \"@splunk/visualizations-shared/schemaUtils\"","webpack:///./src/common/utils/configUtils.ts","webpack:///external \"@splunk/visualizations-shared/configUtils\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///./src/common/interfaces/VizCategory.ts","webpack:///external \"@splunk/themes/pick\"","webpack:///external \"@splunk/themes/variables\"","webpack:///external \"@splunk/visualization-icons/placeholders\"","webpack:///./src/common/editorConfig/BackgroundColor.ts","webpack:///external \"@splunk/visualization-color-palettes\"","webpack:///external \"@splunk/visualization-color-palettes/editors/PresetPalettes\"","webpack:///./src/common/editorConfig/Gauge.ts","webpack:///./src/FillerGauge/config.ts","webpack:///external \"@splunk/react-icons/enterprise/GaugeFiller\"","webpack:///./src/common/editorConfig/DynamicGaugeColorEditor.ts","webpack:///./src/common/editorConfig/StaticGaugeColorEditor.ts"],"names":["VizBehavior","exports","lodash_1","require","schemaUtils_1","VizBehavior_1","dynamicOptionsDSLType","type","pattern","DYNAMIC_OPTIONS_DSL_PATTERN","enhanceOptionsSchemaWithDynamicOptions","optionsSchema","enhancedOptionsSchema","Object","keys","forEach","key","_a","title","description","readOnly","writeOnly","examples","defaultValue","default","properties","patternProperties","remainingSchemaEntry","__rest","annotations","assign","undefined","enhancedPatternProperties","opt","_defineProperty","anyOf","enhanceConfig","vizConfig","enhancedConfig","supports","indexOf","DYNAMIC_OPTIONS","editorConfig","map","config","open","uncollapseEditorConfig","editorPanelUncollapsedConfig","isDynamicOption","option","trim","startsWith","hasCompatibleContexts","vizContext","presetContext","presetContextKeys","every","contextKey","hasCompatibleOptions","vizOptions","presetOptions","presetOptionKeys","optionKey","getInitialPreset","presets","find","preset","get","length","generatePrecisionValues","numPrecisionValues","range","i","label","concat","repeat","value","insertLayout","layout","index","_len","arguments","layoutItems","Array","_key","_toConsumableArray","slice","VizCategory","i18n_1","background","_ref","themes","labelPosition","_","editor","editorProps","gauge","values","pick_1","variables_1","visualization_color_palettes_1","PresetPalettes_1","GaugeFiller_1","placeholders_1","VizCategory_1","configUtils_1","Gauge_1","BackgroundColor_1","DynamicGaugeColorEditor_1","StaticGaugeColorEditor_1","dataContract","requiredDataSources","name","optionalDataSources","initialRequestParams","primary","offset","count","size","initialWidth","initialHeight","defaultContext","gaugeColorConfig","to","from","backgroundColor","COLOR_OR_TOKEN_PATTERN_WITH_RGBA","gaugeColor","CATEGORICAL","labelDisplay","getPattern","majorTickInterval","orientation","valueDisplay","defaultBackgroundColor","props","enterprise","dark","black","light","prisma","backgroundColorSidebar","defaultBackgroundBarFillColor","backgroundColorHover","contentColorActive","neutral100","majorTickFillColor","gray30","textGray","contentColorMuted","majorTickStrokeColor","valueMarkerFillColor","textColor","white","valueMarkerLabelFillColor","gray96","basePresetContext","gaugeColorEditorConfig","basePresetOptions","context","options","dataSourceKey","prepareValue","definition","initialPreset","getDynamicGaugeColorEditor","defaultPalettesConfig","category","GAUGE","icon","placeholderIcon","FillerGauge","PLACEHOLDER","showEditor","_ref2","flyoutTitle","formatters","defaults","dataSelectors","StaticGaugeColorEditor"],"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;;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B;IAC7B+E,UAAU,EAAE,SAAAA,WAAAC,KAAA;MAAA,IAAGd,OAAO,GAAAc,KAAA,CAAPd,OAAO;MAAA,OAAO,IAAAvD,aAAA,CAAAzD,eAAe,EAACgH,OAAO,CAACjC,UAAU,CAAC;IAAA;IAChEhC,WAAW,EAAE;MACTH,aAAa,EAAE,KAAK;MACpBmF,WAAW,EAAE,IAAAvF,MAAA,CAAAK,CAAC,EAAC,yBAAyB,CAAC;MACzCmF,UAAU,EAAE,CACR;QACIvG,KAAK,EAAE,IAAAe,MAAA,CAAAK,CAAC,EAAC,QAAQ,CAAC;QAClBjB,KAAK,EAAE,YAAY;QACnBqG,QAAQ,EAAE;UACNrG,KAAK,EAAE6C,cAAc,CAACC;;OAE7B,CACJ;MACDwD,aAAa,EAAE,CACX;QACIzG,KAAK,EAAE,IAAAe,MAAA,CAAAK,CAAC,EAAC,OAAO,CAAC;QACjBjB,KAAK,EAAE;OACV,CACJ;MACD0F,qBAAqB,EAArBA;;GAEP;AAAA,CAAC;AA1BWrK,OAAA,CAAAoK,0BAA0B,GAAAA,0BAAA,C;;;;;;;;;;;;ACHvC,IAAA7E,MAAA,GAAArF,mBAAA;AACA,IAAAsG,aAAA,GAAAtG,mBAAA;AAEA,IAAMgL,sBAAsB,GAAG;EAC3B1G,KAAK,EAAE,IAAAe,MAAA,CAAAK,CAAC,EAAC,OAAO,CAAC;EACjB5C,MAAM,EAAE,YAAY;EACpB6C,MAAM,EAAE,cAAc;EACtB+E,UAAU,EAAE,SAAAA,WAAAnF,IAAA;IAAA,IAAGsE,OAAO,GAAAtE,IAAA,CAAPsE,OAAO;IAAA,OAAO,CAAC,IAAAvD,aAAA,CAAAzD,eAAe,EAACgH,OAAO,CAACjC,UAAU,CAAC;EAAA;CACpE;AAED9H,OAAA,CAAAuB,OAAA,GAAe2J,sBAAsB,C","file":"FillerGauge.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 = 49);\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@babel/runtime/helpers/toConsumableArray\");","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 TRELLIS = 'trellis',\n}\n","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(\"@splunk/visualizations-shared/configUtils\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","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\");","module.exports = require(\"@splunk/themes/variables\");","module.exports = require(\"@splunk/visualization-icons/placeholders\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorLayoutConfig } from '../interfaces/Editor';\nimport { ThemedDefaults } from '../interfaces/ThemedDefaults';\n\ninterface backgroundEditorProps {\n label?: string;\n themes: ThemedDefaults;\n labelPosition?: string;\n}\n\nconst background: ({ label, themes, labelPosition }: backgroundEditorProps) => EditorLayoutConfig[] = ({\n label,\n themes,\n labelPosition,\n}) => [\n {\n label: _(label || 'Background'),\n option: 'backgroundColor',\n editor: 'editor.color',\n editorProps: {\n labelPosition: labelPosition || 'top',\n themes,\n },\n },\n];\n\nexport default background;\n","module.exports = require(\"@splunk/visualization-color-palettes\");","module.exports = require(\"@splunk/visualization-color-palettes/editors/PresetPalettes\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { EditorConfig } from '../interfaces/Editor';\n\nconst gauge: EditorConfig = {\n label: _('Data display'),\n layout: [\n [\n {\n label: _('Value display'),\n option: 'valueDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Number'), value: 'number' },\n { label: _('Percentage'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Label display'),\n option: 'labelDisplay',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Numbers'), value: 'number' },\n { label: _('Percentages'), value: 'percentage' },\n { label: _('Off'), value: 'off' },\n ],\n },\n },\n ],\n [\n {\n label: _('Orientation'),\n option: 'orientation',\n editor: 'editor.radioBar',\n editorProps: {\n values: [\n { label: _('Vertical'), value: 'vertical' },\n { label: _('Horizontal'), value: 'horizontal' },\n ],\n },\n },\n ],\n ],\n};\n\nexport default gauge;\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { COLOR_OR_TOKEN_PATTERN_WITH_RGBA, getPattern } from '@splunk/visualizations-shared/schemaUtils';\nimport pick from '@splunk/themes/pick';\nimport variables from '@splunk/themes/variables';\nimport { CATEGORICAL } from '@splunk/visualization-color-palettes';\nimport { defaultPalettesConfig } from '@splunk/visualization-color-palettes/editors/PresetPalettes';\n\nimport SuiGaugeFillerIcon from '@splunk/react-icons/enterprise/GaugeFiller';\nimport { FillerGauge as FillerGaugePlaceholderIcon } from '@splunk/visualization-icons/placeholders';\nimport { DataContract } from '../common/interfaces/DataContract';\nimport { DefaultContext } from '../common/interfaces/DefaultContext';\nimport { EditorConfig } from '../common/interfaces/Editor';\nimport { OptionsSchema } from '../common/interfaces/OptionsSchema';\nimport { ThemedDefaults } from '../common/interfaces/ThemedDefaults';\nimport { VizBehavior } from '../common/interfaces/VizBehavior';\nimport { VizCategory } from '../common/interfaces/VizCategory';\nimport { VizConfig } from '../common/interfaces/VizConfig';\nimport { VizSize } from '../common/interfaces/VizSize';\nimport { PresetEntry, enhanceConfig, getInitialPreset } from '../common/utils/configUtils';\nimport GaugeConfig from '../common/editorConfig/Gauge';\nimport getBackgroundColorEditor from '../common/editorConfig/BackgroundColor';\nimport { getDynamicGaugeColorEditor } from '../common/editorConfig/DynamicGaugeColorEditor';\nimport StaticGaugeColorEditor from '../common/editorConfig/StaticGaugeColorEditor';\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: { offset: 0, count: 10000 },\n },\n};\n\nconst size: VizSize = {\n initialWidth: 300,\n initialHeight: 300,\n};\n\nconst defaultContext: DefaultContext = {\n gaugeColorConfig: [\n { to: 9, value: '#118832' },\n { from: 10, to: 29, value: '#669922' },\n { from: 30, to: 49, value: '#CBA700' },\n { from: 50, to: 69, value: '#D94E17' },\n { from: 70, value: '#D41F1F' },\n ],\n};\n\nconst optionsSchema: OptionsSchema = {\n backgroundColor: {\n default: '> themes.defaultBackgroundColor',\n description:\n 'Specify the color used for the background. 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 gaugeColor: {\n default: CATEGORICAL[0],\n description:\n 'Specify the color for the gauge color of the filler gauge. You may use a dataSource to apply the color. The hex value format should be \"#FFFFFF\".',\n type: 'string',\n },\n labelDisplay: {\n default: 'number',\n description:\n 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\n },\n majorTickInterval: {\n description: 'Specify, in pixels, the spacing between major tick marks.',\n default: 'auto',\n type: ['string', 'number'],\n },\n orientation: {\n default: 'vertical',\n description: 'Specify the axis orientation of the gauge.',\n pattern: getPattern(['vertical', 'horizontal']),\n type: 'string',\n },\n value: {\n default: '> primary | seriesByType(\"number\") | lastPoint()',\n description: 'Specify the dataSource applied to the value of the filler gauge.',\n type: 'number',\n },\n valueDisplay: {\n default: 'number',\n description: 'Specify whether to display the value as a number, percentage, or off.',\n pattern: getPattern(['number', 'percentage', 'off']),\n type: 'string',\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 defaultBackgroundBarFillColor: props =>\n pick({\n enterprise: variables.backgroundColorHover(props),\n prisma: {\n light: variables.contentColorActive(props),\n dark: variables.neutral100(props),\n },\n })(props),\n majorTickFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray30(props), // was '#33343B'\n dark: variables.textGray(props), // was #D7DAE0\n },\n prisma: {\n // TODO: missed colors :(\n light: variables.neutral100(props), // TBD\n dark: variables.contentColorMuted(props), // was #D7DAE0; contentColor\n },\n })(props),\n majorTickStrokeColor: props =>\n pick({\n enterprise: {\n light: variables.textGray(props),\n dark: variables.contentColorMuted(props),\n },\n prisma: variables.contentColorMuted(props),\n })(props),\n valueMarkerFillColor: props =>\n pick({\n enterprise: variables.textColor(props),\n prisma: {\n dark: variables.white(props),\n light: variables.black(props),\n },\n })(props),\n valueMarkerLabelFillColor: props =>\n pick({\n enterprise: {\n light: variables.gray96(props),\n dark: variables.black(props),\n },\n prisma: variables.black(props),\n })(props),\n};\n\nconst basePresetContext = {\n gaugeColorEditorConfig: undefined,\n};\n\nconst basePresetOptions = {\n gaugeColor: CATEGORICAL[0],\n};\n\nconst presets: PresetEntry[] = [\n {\n // dummy context variables to allow for resetting of unused context states\n label: _('None'),\n name: 'fillerGauge.none',\n value: {\n context: { ...basePresetContext },\n options: { ...basePresetOptions },\n },\n },\n {\n label: _('Gauge'),\n name: 'fillerGauge.gauge',\n value: {\n context: {\n gaugeColorEditorConfig: defaultContext.gaugeColorConfig,\n },\n options: {\n gaugeColor: '> value | rangeValue(gaugeColorEditorConfig)',\n },\n },\n },\n];\n\nconst editorConfig: EditorConfig[] = [\n {\n label: _('Data configurations'),\n layout: [\n [\n {\n label: _('Value'),\n editor: 'editor.columnSelector',\n option: 'value',\n context: 'defaultContext',\n editorProps: {\n dataSourceKey: 'primary',\n prepareValue: (\n definition\n ): { context: Record<string, any>; options: Record<string, any> } => {\n const {\n options: { value },\n } = definition;\n return {\n context: {},\n options: {\n value: `${value} | lastPoint()`,\n },\n };\n },\n },\n },\n ],\n ],\n },\n GaugeConfig,\n {\n label: _('Color and style'),\n layout: [\n [\n {\n label: _('Dynamic elements'),\n key: 'presetSelector',\n editor: 'editor.presetSelector',\n editorProps: {\n presets,\n value: ({ context, options }) => {\n const initialPreset = getInitialPreset(context, options, presets);\n return (initialPreset && initialPreset.label) || null;\n },\n },\n },\n ],\n [getDynamicGaugeColorEditor({ defaultContext, defaultPalettesConfig })],\n [\n {\n ...StaticGaugeColorEditor,\n editorProps: {\n themes,\n },\n },\n ],\n getBackgroundColorEditor({ themes }),\n ],\n },\n];\n\n/**\n * visualization configuration\n */\nconst config: VizConfig = {\n /**\n * unique viz key\n */\n key: 'splunk.fillergauge',\n /**\n * viz name\n */\n name: _('Filler gauge'),\n category: VizCategory.GAUGE,\n /**\n * viz icon\n */\n icon: SuiGaugeFillerIcon,\n placeholderIcon: FillerGaugePlaceholderIcon,\n dataContract,\n size,\n defaultContext,\n optionsSchema,\n editorConfig,\n supports: [VizBehavior.DYNAMIC_OPTIONS, VizBehavior.PLACEHOLDER],\n themes,\n};\n\nexport default enhanceConfig(config);\n","module.exports = require(\"@splunk/react-icons/enterprise/GaugeFiller\");","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nexport const getDynamicGaugeColorEditor = ({ defaultContext, defaultPalettesConfig }) => ({\n label: _('Gauge'),\n option: 'gaugeColor',\n context: 'gaugeColorConfig',\n editor: 'editor.dynamicColor',\n showEditor: ({ options }) => isDynamicOption(options.gaugeColor),\n editorProps: {\n labelPosition: 'top',\n flyoutTitle: _('Dynamic coloring: gauge'),\n formatters: [\n {\n label: _('Ranges'),\n value: 'rangeValue',\n defaults: {\n value: defaultContext.gaugeColorConfig,\n },\n },\n ],\n dataSelectors: [\n {\n label: _('Value'),\n value: 'value',\n },\n ],\n defaultPalettesConfig,\n },\n});\n","import { _ } from '@splunk/ui-utils/i18n';\nimport { isDynamicOption } from '@splunk/visualizations-shared/configUtils';\n\nconst StaticGaugeColorEditor = {\n label: _('Gauge'),\n option: 'gaugeColor',\n editor: 'editor.color',\n showEditor: ({ options }) => !isDynamicOption(options.gaugeColor),\n};\n\nexport default StaticGaugeColorEditor;\n"],"sourceRoot":""}
|