@splunk/visualizations 25.13.1 → 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.
Files changed (147) hide show
  1. package/Area.config.js +216 -216
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +529 -561
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +213 -213
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +394 -386
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +140 -140
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +313 -305
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +15 -15
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +149 -144
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +205 -205
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +387 -379
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +45 -45
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +157 -144
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +11 -11
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +273 -261
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +46 -46
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -262
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +8 -8
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +110 -104
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +220 -220
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +404 -396
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +27 -27
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +557 -548
  44. package/LinkGraph.js.map +1 -1
  45. package/Map.config.js +71 -71
  46. package/Map.config.js.map +1 -1
  47. package/Map.js +471 -465
  48. package/Map.js.map +1 -1
  49. package/Markdown.config.js +23 -23
  50. package/Markdown.config.js.map +1 -1
  51. package/Markdown.js +151 -145
  52. package/Markdown.js.map +1 -1
  53. package/MarkerGauge.config.js +84 -84
  54. package/MarkerGauge.config.js.map +1 -1
  55. package/MarkerGauge.js +295 -289
  56. package/MarkerGauge.js.map +1 -1
  57. package/ParallelCoordinates.config.js +23 -23
  58. package/ParallelCoordinates.config.js.map +1 -1
  59. package/ParallelCoordinates.js +164 -162
  60. package/ParallelCoordinates.js.map +1 -1
  61. package/Pie.config.js +24 -24
  62. package/Pie.config.js.map +1 -1
  63. package/Pie.js +233 -228
  64. package/Pie.js.map +1 -1
  65. package/Punchcard.config.js +33 -33
  66. package/Punchcard.config.js.map +1 -1
  67. package/Punchcard.js +278 -279
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +46 -46
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +154 -142
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.config.js +19 -19
  74. package/Sankey.config.js.map +1 -1
  75. package/Sankey.js +281 -275
  76. package/Sankey.js.map +1 -1
  77. package/Scatter.config.js +135 -135
  78. package/Scatter.config.js.map +1 -1
  79. package/Scatter.js +304 -299
  80. package/Scatter.js.map +1 -1
  81. package/SingleValue.config.js +119 -119
  82. package/SingleValue.config.js.map +1 -1
  83. package/SingleValue.js +359 -341
  84. package/SingleValue.js.map +1 -1
  85. package/SingleValueBasic.js +14 -14
  86. package/SingleValueBasic.js.map +1 -1
  87. package/SingleValueIcon.config.js +117 -117
  88. package/SingleValueIcon.config.js.map +1 -1
  89. package/SingleValueIcon.js +373 -371
  90. package/SingleValueIcon.js.map +1 -1
  91. package/SingleValueRadial.config.js +157 -115
  92. package/SingleValueRadial.config.js.map +1 -1
  93. package/SingleValueRadial.js +1114 -540
  94. package/SingleValueRadial.js.map +1 -1
  95. package/SparkLine.js +50 -20
  96. package/SparkLine.js.map +1 -1
  97. package/Table.config.js +54 -54
  98. package/Table.config.js.map +1 -1
  99. package/Table.js +302 -286
  100. package/Table.js.map +1 -1
  101. package/common/Charting.js +41 -41
  102. package/common/Charting.js.map +1 -1
  103. package/common/EventsDoc.js +15 -14
  104. package/common/EventsDoc.js.map +1 -1
  105. package/common/GaugeMajorTicks.js +2 -2
  106. package/common/GaugeMajorTicks.js.map +1 -1
  107. package/common/GaugeValueMarker.js +2 -2
  108. package/common/GaugeValueMarker.js.map +1 -1
  109. package/common/OptionsDoc.js +22 -22
  110. package/common/OptionsDoc.js.map +1 -1
  111. package/common/OverviewDoc.js +32 -27
  112. package/common/OverviewDoc.js.map +1 -1
  113. package/common/SplunkVisualization.js +4 -4
  114. package/common/SplunkVisualization.js.map +1 -1
  115. package/common/SplunkVisualizationApi.js +2 -2
  116. package/common/SplunkVisualizationApi.js.map +1 -1
  117. package/common/ThemesDoc.js +14 -14
  118. package/common/ThemesDoc.js.map +1 -1
  119. package/common/chartingUtils.js +12 -12
  120. package/common/chartingUtils.js.map +1 -1
  121. package/common/docUtils.js +4 -4
  122. package/common/docUtils.js.map +1 -1
  123. package/common/gaugeUtils.js +112 -112
  124. package/common/gaugeUtils.js.map +1 -1
  125. package/common/shapeUtils.js +21 -15
  126. package/common/shapeUtils.js.map +1 -1
  127. package/common/utils/configUtils.js +10 -9
  128. package/common/utils/configUtils.js.map +1 -1
  129. package/common/utils/dataUtils.js +2 -2
  130. package/common/utils/dataUtils.js.map +1 -1
  131. package/common/utils/hocUtils.js +2 -2
  132. package/common/utils/hocUtils.js.map +1 -1
  133. package/common/utils/layoutUtils.js +2 -2
  134. package/common/utils/layoutUtils.js.map +1 -1
  135. package/common/utils/mapUtils.js +84 -80
  136. package/common/utils/mapUtils.js.map +1 -1
  137. package/common/utils/singleValueUtils.js +2 -2
  138. package/common/utils/singleValueUtils.js.map +1 -1
  139. package/common/utils/testHelper.js +27 -9
  140. package/common/utils/testHelper.js.map +1 -1
  141. package/common/utils/trellisUtils.js +26 -26
  142. package/common/utils/trellisUtils.js.map +1 -1
  143. package/common/utils/urlUtils.js +2 -2
  144. package/common/utils/urlUtils.js.map +1 -1
  145. package/common/withDashboardViz.js +107 -104
  146. package/common/withDashboardViz.js.map +1 -1
  147. package/package.json +19 -19
package/Map.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
@@ -417,7 +417,7 @@ var background = function background(_ref) {
417
417
  themes = _ref.themes,
418
418
  labelPosition = _ref.labelPosition;
419
419
  return [{
420
- label: i18n_1._(label || 'Background'),
420
+ label: (0, i18n_1._)(label || 'Background'),
421
421
  option: 'backgroundColor',
422
422
  editor: 'editor.color',
423
423
  editorProps: {
@@ -553,7 +553,7 @@ var optionsSchema = {
553
553
  baseLayerTileServerType: {
554
554
  type: 'string',
555
555
  description: 'Specify the type of tile set for the base map.',
556
- pattern: schemaUtils_1.getPattern(['vector', 'raster'])
556
+ pattern: (0, schemaUtils_1.getPattern)(['vector', 'raster'])
557
557
  },
558
558
  center: {
559
559
  type: 'array',
@@ -600,7 +600,7 @@ var optionsSchema = {
600
600
  type: {
601
601
  description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
602
602
  type: 'string',
603
- pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
603
+ pattern: (0, schemaUtils_1.getPattern)([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
604
604
  default: MapUtils_1.LAYER_TYPE.Marker
605
605
  },
606
606
  latitude: {
@@ -655,7 +655,7 @@ var optionsSchema = {
655
655
  type: {
656
656
  description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
657
657
  type: 'string',
658
- pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
658
+ pattern: (0, schemaUtils_1.getPattern)([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
659
659
  default: MapUtils_1.LAYER_TYPE.Choropleth
660
660
  },
661
661
  areaIds: {
@@ -697,7 +697,7 @@ var optionsSchema = {
697
697
  },
698
698
  source: {
699
699
  description: 'Source for the geodata for choropleth layer: "us" or "world", and will override data specified in the SPL geom command.',
700
- pattern: schemaUtils_1.getPattern(['geo://default/us', 'geo://default/world']),
700
+ pattern: (0, schemaUtils_1.getPattern)(['geo://default/us', 'geo://default/world']),
701
701
  type: 'string'
702
702
  },
703
703
  choroplethEmptyAreaColor: {
@@ -724,7 +724,7 @@ var optionsSchema = {
724
724
  type: {
725
725
  description: 'Specify the type of data layer method to display points on the map. For example, “bubble”, “marker”, or "choropleth".',
726
726
  type: 'string',
727
- pattern: schemaUtils_1.getPattern([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
727
+ pattern: (0, schemaUtils_1.getPattern)([MapUtils_1.LAYER_TYPE.Marker, MapUtils_1.LAYER_TYPE.Bubble, MapUtils_1.LAYER_TYPE.Choropleth]),
728
728
  default: MapUtils_1.LAYER_TYPE.Bubble
729
729
  },
730
730
  bubbleSize: {
@@ -788,7 +788,7 @@ var optionsSchema = {
788
788
  default: 'metric',
789
789
  type: 'string',
790
790
  description: 'Specify the scale unit to use.',
791
- pattern: schemaUtils_1.getPattern(['metric', 'imperial'])
791
+ pattern: (0, schemaUtils_1.getPattern)(['metric', 'imperial'])
792
792
  },
793
793
  showBaseLayer: {
794
794
  default: true,
@@ -812,7 +812,7 @@ var optionsSchema = {
812
812
  };
813
813
  var themes = {
814
814
  defaultBackgroundColor: function defaultBackgroundColor(props) {
815
- return themes_1.pick({
815
+ return (0, themes_1.pick)({
816
816
  enterprise: {
817
817
  dark: themes_1.variables.black(props),
818
818
  light: themes_1.variables.backgroundColor(props)
@@ -821,7 +821,7 @@ var themes = {
821
821
  })(props);
822
822
  },
823
823
  controlBackgroundColor: function controlBackgroundColor(props) {
824
- return themes_1.pick({
824
+ return (0, themes_1.pick)({
825
825
  enterprise: {
826
826
  dark: themes_1.variables.gray22(props),
827
827
  light: themes_1.variables.white(props)
@@ -830,13 +830,13 @@ var themes = {
830
830
  })(props);
831
831
  },
832
832
  controlForegroundColor: function controlForegroundColor(props) {
833
- return themes_1.pick({
833
+ return (0, themes_1.pick)({
834
834
  enterprise: themes_1.variables.textColor(props),
835
835
  prisma: themes_1.variables.contentColorDefault(props)
836
836
  })(props);
837
837
  },
838
838
  defaultChoroplethEmptyAreaColor: function defaultChoroplethEmptyAreaColor(props) {
839
- return themes_1.pick({
839
+ return (0, themes_1.pick)({
840
840
  enterprise: {
841
841
  dark: themes_1.variables.gray22(props),
842
842
  light: themes_1.variables.gray92(props)
@@ -848,7 +848,7 @@ var themes = {
848
848
  })(props);
849
849
  },
850
850
  defaultGradientMigrationConfig: function defaultGradientMigrationConfig(props) {
851
- return themes_1.pick({
851
+ return (0, themes_1.pick)({
852
852
  enterprise: {
853
853
  dark: ['#4D4A5D', themes_1.variables.syntaxPurple(props)],
854
854
  light: ['#D2CFDC', themes_1.variables.syntaxPurple(props)]
@@ -868,25 +868,25 @@ var checkTypeIsLocalChoropleth = function checkTypeIsLocalChoropleth(options) {
868
868
  };
869
869
  var EDITOR_LABEL_WIDTH = 140;
870
870
  var editorConfig = [{
871
- label: i18n_1._('Data configurations'),
871
+ label: (0, i18n_1._)('Data configurations'),
872
872
  layout: [[{
873
- label: i18n_1._('Layer type'),
873
+ label: (0, i18n_1._)('Layer type'),
874
874
  option: 'layers[0].type',
875
875
  editor: 'editor.select',
876
876
  editorProps: {
877
877
  values: [{
878
- label: i18n_1._('Bubble'),
878
+ label: (0, i18n_1._)('Bubble'),
879
879
  value: MapUtils_1.LAYER_TYPE.Bubble
880
880
  }, {
881
- label: i18n_1._('Marker'),
881
+ label: (0, i18n_1._)('Marker'),
882
882
  value: MapUtils_1.LAYER_TYPE.Marker
883
883
  }, {
884
- label: i18n_1._('Choropleth'),
884
+ label: (0, i18n_1._)('Choropleth'),
885
885
  value: MapUtils_1.LAYER_TYPE.Choropleth
886
886
  }]
887
887
  }
888
888
  }], [{
889
- label: i18n_1._('Area IDs'),
889
+ label: (0, i18n_1._)('Area IDs'),
890
890
  option: 'layers[0].areaIds',
891
891
  editor: 'editor.columnSelector',
892
892
  showEditor: function showEditor(_ref) {
@@ -899,7 +899,7 @@ var editorConfig = [{
899
899
  filterByTypes: ['string']
900
900
  }
901
901
  }], [{
902
- label: i18n_1._('Area values'),
902
+ label: (0, i18n_1._)('Area values'),
903
903
  option: 'layers[0].areaValues',
904
904
  editor: 'editor.columnSelector',
905
905
  showEditor: function showEditor(_ref2) {
@@ -912,7 +912,7 @@ var editorConfig = [{
912
912
  filterByTypes: ['number']
913
913
  }
914
914
  }], [{
915
- label: i18n_1._('Latitude'),
915
+ label: (0, i18n_1._)('Latitude'),
916
916
  option: 'layers[0].latitude',
917
917
  editor: 'editor.columnSelector',
918
918
  showEditor: function showEditor(_ref3) {
@@ -924,7 +924,7 @@ var editorConfig = [{
924
924
  shouldShowInternalFields: false
925
925
  }
926
926
  }], [{
927
- label: i18n_1._('Longitude'),
927
+ label: (0, i18n_1._)('Longitude'),
928
928
  option: 'layers[0].longitude',
929
929
  editor: 'editor.columnSelector',
930
930
  showEditor: function showEditor(_ref4) {
@@ -936,7 +936,7 @@ var editorConfig = [{
936
936
  shouldShowInternalFields: false
937
937
  }
938
938
  }], [{
939
- label: i18n_1._('Bubble size'),
939
+ label: (0, i18n_1._)('Bubble size'),
940
940
  option: 'layers[0].bubbleSize',
941
941
  editor: 'editor.columnMultiSelector',
942
942
  showEditor: function showEditor(_ref5) {
@@ -949,11 +949,11 @@ var editorConfig = [{
949
949
  excludeByNames: ['latitude', 'longitude', 'geobin']
950
950
  }
951
951
  }], [{
952
- label: i18n_1._('Additional tooltip fields'),
952
+ label: (0, i18n_1._)('Additional tooltip fields'),
953
953
  option: 'layers[0].additionalTooltipFields',
954
954
  editor: 'editor.columnMultiSelectionByFieldNameEditor'
955
955
  }], [{
956
- label: i18n_1._('Result limit'),
956
+ label: (0, i18n_1._)('Result limit'),
957
957
  option: 'layers[0].resultLimit',
958
958
  editor: 'editor.number',
959
959
  showEditor: function showEditor(_ref6) {
@@ -967,9 +967,9 @@ var editorConfig = [{
967
967
  }
968
968
  }]]
969
969
  }, {
970
- label: i18n_1._('Data display'),
970
+ label: (0, i18n_1._)('Data display'),
971
971
  layout: [[{
972
- label: i18n_1._('Latitude (initial map location)'),
972
+ label: (0, i18n_1._)('Latitude (initial map location)'),
973
973
  option: 'center[0]',
974
974
  editor: 'editor.number',
975
975
  editorProps: {
@@ -979,7 +979,7 @@ var editorConfig = [{
979
979
  max: 90
980
980
  }
981
981
  }], [{
982
- label: i18n_1._('Longitude (initial map location)'),
982
+ label: (0, i18n_1._)('Longitude (initial map location)'),
983
983
  option: 'center[1]',
984
984
  editor: 'editor.number',
985
985
  editorProps: {
@@ -989,7 +989,7 @@ var editorConfig = [{
989
989
  max: 180
990
990
  }
991
991
  }], [{
992
- label: i18n_1._('Zoom (initial map location)'),
992
+ label: (0, i18n_1._)('Zoom (initial map location)'),
993
993
  option: 'zoom',
994
994
  editor: 'editor.number',
995
995
  editorProps: {
@@ -998,7 +998,7 @@ var editorConfig = [{
998
998
  min: 0
999
999
  }
1000
1000
  }], [{
1001
- label: i18n_1._('Show zoom controls'),
1001
+ label: (0, i18n_1._)('Show zoom controls'),
1002
1002
  option: 'showZoomControls',
1003
1003
  editor: 'editor.checkbox',
1004
1004
  editorProps: {
@@ -1006,7 +1006,7 @@ var editorConfig = [{
1006
1006
  labelWidth: EDITOR_LABEL_WIDTH
1007
1007
  }
1008
1008
  }], [{
1009
- label: i18n_1._('Show scale'),
1009
+ label: (0, i18n_1._)('Show scale'),
1010
1010
  option: 'showScale',
1011
1011
  editor: 'editor.toggle',
1012
1012
  editorProps: {
@@ -1014,7 +1014,7 @@ var editorConfig = [{
1014
1014
  labelWidth: EDITOR_LABEL_WIDTH
1015
1015
  }
1016
1016
  }], [{
1017
- label: i18n_1._('Scale unit'),
1017
+ label: (0, i18n_1._)('Scale unit'),
1018
1018
  option: 'scaleUnit',
1019
1019
  editor: 'editor.radioBar',
1020
1020
  showEditor: function showEditor(_ref7) {
@@ -1023,16 +1023,16 @@ var editorConfig = [{
1023
1023
  },
1024
1024
  editorProps: {
1025
1025
  values: [{
1026
- label: i18n_1._('Metric'),
1026
+ label: (0, i18n_1._)('Metric'),
1027
1027
  value: 'metric'
1028
1028
  }, {
1029
- label: i18n_1._('Imperial'),
1029
+ label: (0, i18n_1._)('Imperial'),
1030
1030
  value: 'imperial'
1031
1031
  }]
1032
1032
  }
1033
1033
  }]]
1034
1034
  }, {
1035
- label: i18n_1._('Color and style'),
1035
+ label: (0, i18n_1._)('Color and style'),
1036
1036
  layout: [
1037
1037
  // TODO: add support for color mode option and its corresponding editor
1038
1038
  // [
@@ -1049,7 +1049,7 @@ var editorConfig = [{
1049
1049
  // },
1050
1050
  // ],
1051
1051
  [{
1052
- label: i18n_1._('Series colors'),
1052
+ label: (0, i18n_1._)('Series colors'),
1053
1053
  option: 'layers[0].seriesColors',
1054
1054
  editor: 'editor.seriesColors',
1055
1055
  showEditor: function showEditor(_ref8) {
@@ -1070,7 +1070,7 @@ var editorConfig = [{
1070
1070
  // },
1071
1071
  // ],
1072
1072
  [{
1073
- label: i18n_1._('Choropleth empty area'),
1073
+ label: (0, i18n_1._)('Choropleth empty area'),
1074
1074
  option: 'layers[0].choroplethEmptyAreaColor',
1075
1075
  editor: 'editor.color',
1076
1076
  showEditor: function showEditor(_ref9) {
@@ -1081,7 +1081,7 @@ var editorConfig = [{
1081
1081
  themes: themes
1082
1082
  }
1083
1083
  }], [{
1084
- label: i18n_1._('Choropleth stroke'),
1084
+ label: (0, i18n_1._)('Choropleth stroke'),
1085
1085
  option: 'layers[0].choroplethStrokeColor',
1086
1086
  editor: 'editor.color',
1087
1087
  showEditor: function showEditor(_ref10) {
@@ -1092,7 +1092,7 @@ var editorConfig = [{
1092
1092
  themes: themes
1093
1093
  }
1094
1094
  }], [{
1095
- label: i18n_1._('Choropleth opacity (%)'),
1095
+ label: (0, i18n_1._)('Choropleth opacity (%)'),
1096
1096
  option: 'layers[0].choroplethOpacity',
1097
1097
  editor: 'editor.percent',
1098
1098
  showEditor: function showEditor(_ref11) {
@@ -1112,14 +1112,14 @@ var editorConfig = [{
1112
1112
  // editor: 'editor.seriesColorsByField',
1113
1113
  // },
1114
1114
  // ],
1115
- BackgroundColor_1.default({
1115
+ (0, BackgroundColor_1.default)({
1116
1116
  themes: themes
1117
1117
  }), [{
1118
- label: i18n_1._('Show base layer'),
1118
+ label: (0, i18n_1._)('Show base layer'),
1119
1119
  option: 'showBaseLayer',
1120
1120
  editor: 'editor.toggle'
1121
1121
  }], [{
1122
- label: i18n_1._('Base layer tile server'),
1122
+ label: (0, i18n_1._)('Base layer tile server'),
1123
1123
  option: 'baseLayerTileServer',
1124
1124
  editor: 'editor.text',
1125
1125
  showEditor: function showEditor(_ref12) {
@@ -1127,7 +1127,7 @@ var editorConfig = [{
1127
1127
  return options.showBaseLayer !== false;
1128
1128
  }
1129
1129
  }], [{
1130
- label: i18n_1._('Base layer tile server type'),
1130
+ label: (0, i18n_1._)('Base layer tile server type'),
1131
1131
  option: 'baseLayerTileServerType',
1132
1132
  editor: 'editor.radioBar',
1133
1133
  showEditor: function showEditor(_ref13) {
@@ -1136,10 +1136,10 @@ var editorConfig = [{
1136
1136
  },
1137
1137
  editorProps: {
1138
1138
  values: [{
1139
- label: i18n_1._('Vector'),
1139
+ label: (0, i18n_1._)('Vector'),
1140
1140
  value: 'vector'
1141
1141
  }, {
1142
- label: i18n_1._('Raster'),
1142
+ label: (0, i18n_1._)('Raster'),
1143
1143
  value: 'raster'
1144
1144
  }]
1145
1145
  }
@@ -1156,7 +1156,7 @@ var config = {
1156
1156
  /**
1157
1157
  * viz name
1158
1158
  */
1159
- name: i18n_1._('Map'),
1159
+ name: (0, i18n_1._)('Map'),
1160
1160
  category: VizCategory_1.VizCategory.SPATIAL,
1161
1161
  status: 'preview',
1162
1162
  /**
@@ -1181,7 +1181,7 @@ var config = {
1181
1181
  themes: themes,
1182
1182
  requiredProps: []
1183
1183
  };
1184
- exports.default = configUtils_1.enhanceConfig(config);
1184
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
1185
1185
 
1186
1186
  /***/ }),
1187
1187
  /* 57 */
@@ -1243,7 +1243,7 @@ var getTilePreset = function getTilePreset(_ref) {
1243
1243
  var defaultTileLight = {};
1244
1244
  var defaultTileDark = {};
1245
1245
  var tileConfigs = [].concat(defaultTileConfig).concat(customTileConfig);
1246
- lodash_1.forEach(tileConfigs, function (tileConfig) {
1246
+ (0, lodash_1.forEach)(tileConfigs, function (tileConfig) {
1247
1247
  var key = tileConfig === null || tileConfig === void 0 ? void 0 : tileConfig.key;
1248
1248
  var updatedConfig = Object.assign(Object.assign({
1249
1249
  theme: 'all'
@@ -1376,7 +1376,7 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
1376
1376
  if (baseLayerTileServer && sources[sourceKeys[i]].tiles.indexOf(baseLayerTileServer) !== -1) {
1377
1377
  matchedBaseLayerTileServer = true;
1378
1378
  }
1379
- if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(minzoom) && lodash_1.isNumber(maxzoom)) {
1379
+ if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && (0, lodash_1.isNumber)(minzoom) && (0, lodash_1.isNumber)(maxzoom)) {
1380
1380
  return {
1381
1381
  minZoom: minzoom,
1382
1382
  maxZoom: maxzoom
@@ -1388,7 +1388,7 @@ var getZoomConstraintsFromTileConfig = function getZoomConstraintsFromTileConfig
1388
1388
  var _layers$_i = layers[_i],
1389
1389
  _minzoom = _layers$_i.minzoom,
1390
1390
  _maxzoom = _layers$_i.maxzoom;
1391
- if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && lodash_1.isNumber(_minzoom) && lodash_1.isNumber(_maxzoom)) {
1391
+ if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && (0, lodash_1.isNumber)(_minzoom) && (0, lodash_1.isNumber)(_maxzoom)) {
1392
1392
  return {
1393
1393
  minZoom: _minzoom,
1394
1394
  maxZoom: _maxzoom
@@ -1426,13 +1426,13 @@ var getStaticColors = function getStaticColors(colorCount, colorArray) {
1426
1426
  // loop through colorArray to pick the first $colorCount colors
1427
1427
  // start from begining again if colorCount > colorArray.length
1428
1428
  return _toConsumableArray(Array(colorCount).keys()).map(function (i) {
1429
- return colorUtils_1.isColor(colorArray[i % colorArray.length]) ? colorArray[i % colorArray.length] : exports.DEFAULT_CLUSTER_COLOR;
1429
+ return (0, colorUtils_1.isColor)(colorArray[i % colorArray.length]) ? colorArray[i % colorArray.length] : exports.DEFAULT_CLUSTER_COLOR;
1430
1430
  });
1431
1431
  };
1432
1432
  exports.getStaticColors = getStaticColors;
1433
1433
  // Bubble size
1434
1434
  var matchBubbleSize = function matchBubbleSize(dataRange, data) {
1435
- var size = d3_scale_1.scalePow().exponent(0.2).domain(dataRange).range([exports.MIN_BUBBLE_RADIUS, exports.MAX_BUBBLE_RADIUS])(data);
1435
+ var size = (0, d3_scale_1.scalePow)().exponent(0.2).domain(dataRange).range([exports.MIN_BUBBLE_RADIUS, exports.MAX_BUBBLE_RADIUS])(data);
1436
1436
  if (size > exports.MAX_BUBBLE_RADIUS) {
1437
1437
  return exports.MAX_BUBBLE_RADIUS;
1438
1438
  }
@@ -1465,7 +1465,7 @@ var sanitizeValues = function sanitizeValues(values) {
1465
1465
  }
1466
1466
  // array
1467
1467
  return values.map(function (arr) {
1468
- return exports.sanitizeValues(arr);
1468
+ return (0, exports.sanitizeValues)(arr);
1469
1469
  });
1470
1470
  };
1471
1471
  exports.sanitizeValues = sanitizeValues;
@@ -1477,7 +1477,7 @@ var bakeBubbleData = function bakeBubbleData(layer) {
1477
1477
  // if bubbleSize is passed as an array of single number array (data series)
1478
1478
  // e.g. [value0, value1, ...]
1479
1479
  // format each value as an array to unify data operations for data series and frames
1480
- var sanitizedBubbleSize = exports.sanitizeValues(layer.bubbleSize);
1480
+ var sanitizedBubbleSize = (0, exports.sanitizeValues)(layer.bubbleSize);
1481
1481
  var transposedBubbleSize;
1482
1482
  var transposedSanitizedBubbleSize;
1483
1483
  var isPie = false;
@@ -1490,8 +1490,8 @@ var bakeBubbleData = function bakeBubbleData(layer) {
1490
1490
  // to [[column0data]]
1491
1491
  // for easy access of values at each geo location,
1492
1492
  // and min max pie size computation
1493
- transposedBubbleSize = exports.transposeArray(layer.bubbleSize);
1494
- transposedSanitizedBubbleSize = exports.transposeArray(sanitizedBubbleSize);
1493
+ transposedBubbleSize = (0, exports.transposeArray)(layer.bubbleSize);
1494
+ transposedSanitizedBubbleSize = (0, exports.transposeArray)(sanitizedBubbleSize);
1495
1495
  // if multiple series in the dataframe, set isPie to true
1496
1496
  if (layer.bubbleSize.length > 1) {
1497
1497
  isPie = true;
@@ -1509,7 +1509,7 @@ var bakeBubbleData = function bakeBubbleData(layer) {
1509
1509
  }
1510
1510
  var data = layer.latitude.map(function (lat, i) {
1511
1511
  return {
1512
- zoom: exports.getZoomLevelFromGeobin(layer.geobin[i]),
1512
+ zoom: (0, exports.getZoomLevelFromGeobin)(layer.geobin[i]),
1513
1513
  values: transposedBubbleSize[i],
1514
1514
  sanitizedValues: transposedSanitizedBubbleSize[i],
1515
1515
  coordinates: [layer.longitude[i], lat],
@@ -1519,10 +1519,10 @@ var bakeBubbleData = function bakeBubbleData(layer) {
1519
1519
  return Boolean(d.values);
1520
1520
  });
1521
1521
  // compute the min/max value to encode min/max pie or bubble size
1522
- var min = lodash_1.sum(transposedSanitizedBubbleSize[0]);
1523
- var max = lodash_1.sum(transposedSanitizedBubbleSize[1]);
1522
+ var min = (0, lodash_1.sum)(transposedSanitizedBubbleSize[0]);
1523
+ var max = (0, lodash_1.sum)(transposedSanitizedBubbleSize[1]);
1524
1524
  transposedSanitizedBubbleSize.forEach(function (row) {
1525
- var bubbleSize = lodash_1.sum(row);
1525
+ var bubbleSize = (0, lodash_1.sum)(row);
1526
1526
  max = bubbleSize > max ? bubbleSize : max;
1527
1527
  min = bubbleSize < min ? bubbleSize : min;
1528
1528
  });
@@ -1542,10 +1542,10 @@ var isValidLatLon = function isValidLatLon(latlon) {
1542
1542
  var _latlon = _slicedToArray(latlon, 2),
1543
1543
  lat = _latlon[0],
1544
1544
  lon = _latlon[1];
1545
- if (!types_1.isNumber(lat) || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
1545
+ if (!(0, types_1.isNumber)(lat) || !(lat >= exports.MIN_LATITUDE && lat <= exports.MAX_LATITUDE)) {
1546
1546
  return false;
1547
1547
  }
1548
- if (!types_1.isNumber(lon) || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
1548
+ if (!(0, types_1.isNumber)(lon) || !(lon >= exports.MIN_LONGITUDE && lon <= exports.MAX_LONGITUDE)) {
1549
1549
  return false;
1550
1550
  }
1551
1551
  return true;
@@ -1559,7 +1559,7 @@ exports.isValidLatLon = isValidLatLon;
1559
1559
  */
1560
1560
  var getLatOrLonCoordinates = function getLatOrLonCoordinates(layer, field) {
1561
1561
  var getClusterValues = function getClusterValues(clusterLayer) {
1562
- return lodash_1.get(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
1562
+ return (0, lodash_1.get)(clusterLayer, field, []).slice(0, clusterLayer.type === LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : exports.DEFAULT_RESULT_LIMIT);
1563
1563
  };
1564
1564
  var getChoroplethValues = function getChoroplethValues(choroplethLayer) {
1565
1565
  var slicedGeomList = choroplethLayer.geom.slice(0, choroplethLayer.resultLimit);
@@ -1600,7 +1600,7 @@ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
1600
1600
  var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(function (x) {
1601
1601
  return +x;
1602
1602
  });
1603
- return lodash_1.min([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
1603
+ return (0, lodash_1.min)([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
1604
1604
  }, getDefaultMax(field));
1605
1605
  };
1606
1606
  var getMax = function getMax(field) {
@@ -1609,7 +1609,7 @@ var getGlobalLayerBoundaries = function getGlobalLayerBoundaries(layers) {
1609
1609
  }
1610
1610
  return layers.reduce(function (prevVal, layer) {
1611
1611
  var coordinatesNumArr = getLatOrLonCoordinates(layer, field).map(Number);
1612
- return lodash_1.max([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
1612
+ return (0, lodash_1.max)([prevVal].concat(_toConsumableArray(coordinatesNumArr)));
1613
1613
  }, getDefaultMin(field));
1614
1614
  };
1615
1615
  return [[getMin(LONGITUDE), getMin(LATITUDE)], [getMax(LONGITUDE), getMax(LATITUDE)]];
@@ -1635,12 +1635,12 @@ var compareBaseStyles = function compareBaseStyles(curr, next) {
1635
1635
  var nextBaseLayer = (_b = next === null || next === void 0 ? void 0 : next.layers) === null || _b === void 0 ? void 0 : _b.find(function (layer) {
1636
1636
  return (layer === null || layer === void 0 ? void 0 : layer.id) === 'base-layer';
1637
1637
  });
1638
- var currBaseSource = lodash_1.get(curr === null || curr === void 0 ? void 0 : curr.sources, (_c = currBaseLayer === null || currBaseLayer === void 0 ? void 0 : currBaseLayer.source) !== null && _c !== void 0 ? _c : '');
1639
- var nextBaseSource = lodash_1.get(next === null || next === void 0 ? void 0 : next.sources, (_d = nextBaseLayer === null || nextBaseLayer === void 0 ? void 0 : nextBaseLayer.source) !== null && _d !== void 0 ? _d : '');
1638
+ var currBaseSource = (0, lodash_1.get)(curr === null || curr === void 0 ? void 0 : curr.sources, (_c = currBaseLayer === null || currBaseLayer === void 0 ? void 0 : currBaseLayer.source) !== null && _c !== void 0 ? _c : '');
1639
+ var nextBaseSource = (0, lodash_1.get)(next === null || next === void 0 ? void 0 : next.sources, (_d = nextBaseLayer === null || nextBaseLayer === void 0 ? void 0 : nextBaseLayer.source) !== null && _d !== void 0 ? _d : '');
1640
1640
  if (!currBaseLayer || !nextBaseLayer || !currBaseSource || !nextBaseSource) {
1641
1641
  return false;
1642
1642
  }
1643
- return lodash_1.isEqual(currBaseLayer, nextBaseLayer) && lodash_1.isEqual(currBaseSource, nextBaseSource);
1643
+ return (0, lodash_1.isEqual)(currBaseLayer, nextBaseLayer) && (0, lodash_1.isEqual)(currBaseSource, nextBaseSource);
1644
1644
  };
1645
1645
  exports.compareBaseStyles = compareBaseStyles;
1646
1646
  var formatMetadata = function formatMetadata(choroplethLayer, i) {
@@ -1655,7 +1655,7 @@ var formatMetadata = function formatMetadata(choroplethLayer, i) {
1655
1655
  };
1656
1656
  return Object.keys(metadata).reduce(function (result, curr) {
1657
1657
  var key = "row.".concat(curr, ".value");
1658
- var val = lodash_1.isObject(metadata[curr]) ? JSON.stringify(metadata[curr]) : String(metadata[curr]);
1658
+ var val = (0, lodash_1.isObject)(metadata[curr]) ? JSON.stringify(metadata[curr]) : String(metadata[curr]);
1659
1659
  return Object.assign(Object.assign({}, result), _defineProperty({}, key, val));
1660
1660
  }, base);
1661
1661
  };