@carto/kepler.gl 0.0.15 → 0.0.18-alpha.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 (823) hide show
  1. package/actions.js +1 -1
  2. package/cloud-providers.js +1 -1
  3. package/components.js +1 -1
  4. package/constants.js +1 -1
  5. package/dist/actions/action-wrapper.js +2 -2
  6. package/dist/actions/actions.js +2 -2
  7. package/dist/actions/identity-actions.js +2 -2
  8. package/dist/actions/index.js +1 -1
  9. package/dist/actions/map-state-actions.js +2 -2
  10. package/dist/actions/map-style-actions.js +2 -2
  11. package/dist/actions/provider-actions.js +2 -2
  12. package/dist/actions/ui-state-actions.js +2 -2
  13. package/dist/actions/vis-state-actions.js +2 -2
  14. package/dist/cloud-providers/index.js +1 -1
  15. package/dist/cloud-providers/provider.js +2 -2
  16. package/dist/components/bottom-widget.js +1 -1
  17. package/dist/components/common/action-panel.js +1 -1
  18. package/dist/components/common/animation-control/animation-control.js +1 -1
  19. package/dist/components/common/animation-control/animation-controller.js +1 -1
  20. package/dist/components/common/animation-control/animation-speed-slider.js +1 -1
  21. package/dist/components/common/animation-control/floating-time-display.js +1 -1
  22. package/dist/components/common/animation-control/playback-controls.js +1 -1
  23. package/dist/components/common/animation-control/speed-control.js +1 -1
  24. package/dist/components/common/checkbox.js +1 -1
  25. package/dist/components/common/color-legend.js +1 -1
  26. package/dist/components/common/data-table/button.js +1 -1
  27. package/dist/components/common/data-table/canvas.js +1 -1
  28. package/dist/components/common/data-table/cell-size.js +1 -1
  29. package/dist/components/common/data-table/grid.js +1 -1
  30. package/dist/components/common/data-table/index.js +1 -1
  31. package/dist/components/common/data-table/option-dropdown.js +1 -1
  32. package/dist/components/common/dataset-label.js +1 -1
  33. package/dist/components/common/error-boundary.js +1 -1
  34. package/dist/components/common/field-selector.js +1 -1
  35. package/dist/components/common/field-token.js +1 -1
  36. package/dist/components/common/file-uploader/file-drop.js +1 -1
  37. package/dist/components/common/file-uploader/file-upload-progress.js +1 -1
  38. package/dist/components/common/file-uploader/file-upload.js +1 -1
  39. package/dist/components/common/file-uploader/upload-button.js +1 -1
  40. package/dist/components/common/histogram-plot.js +1 -1
  41. package/dist/components/common/icons/add.js +1 -1
  42. package/dist/components/common/icons/anchor_window.js +2 -2
  43. package/dist/components/common/icons/arrow-down-alt.js +1 -1
  44. package/dist/components/common/icons/arrow-down-solid .js +1 -1
  45. package/dist/components/common/icons/arrow-down.js +1 -1
  46. package/dist/components/common/icons/arrow-left.js +1 -1
  47. package/dist/components/common/icons/arrow-right.js +1 -1
  48. package/dist/components/common/icons/arrow-up-alt.js +1 -1
  49. package/dist/components/common/icons/arrow-up-solid.js +1 -1
  50. package/dist/components/common/icons/arrow-up.js +1 -1
  51. package/dist/components/common/icons/base.js +1 -1
  52. package/dist/components/common/icons/bug.js +1 -1
  53. package/dist/components/common/icons/cancel.js +1 -1
  54. package/dist/components/common/icons/checkmark.js +1 -1
  55. package/dist/components/common/icons/clipboard.js +1 -1
  56. package/dist/components/common/icons/clock.js +1 -1
  57. package/dist/components/common/icons/close.js +1 -1
  58. package/dist/components/common/icons/code-alt.js +1 -1
  59. package/dist/components/common/icons/copy.js +1 -1
  60. package/dist/components/common/icons/crosshairs.js +1 -1
  61. package/dist/components/common/icons/cube-3d.js +1 -1
  62. package/dist/components/common/icons/cursor-click.js +1 -1
  63. package/dist/components/common/icons/data-table.js +1 -1
  64. package/dist/components/common/icons/db.js +1 -1
  65. package/dist/components/common/icons/delete.js +1 -1
  66. package/dist/components/common/icons/docs.js +1 -1
  67. package/dist/components/common/icons/drag-n-drop.js +1 -1
  68. package/dist/components/common/icons/draw-polygon.js +1 -1
  69. package/dist/components/common/icons/email.js +1 -1
  70. package/dist/components/common/icons/expand.js +1 -1
  71. package/dist/components/common/icons/eye-seen.js +1 -1
  72. package/dist/components/common/icons/eye-unseen.js +1 -1
  73. package/dist/components/common/icons/file-type.js +1 -1
  74. package/dist/components/common/icons/file.js +1 -1
  75. package/dist/components/common/icons/files.js +1 -1
  76. package/dist/components/common/icons/filter-funnel.js +1 -1
  77. package/dist/components/common/icons/free-window.js +2 -2
  78. package/dist/components/common/icons/gear.js +1 -1
  79. package/dist/components/common/icons/hash.js +1 -1
  80. package/dist/components/common/icons/histogram.js +1 -1
  81. package/dist/components/common/icons/index.js +9 -1
  82. package/dist/components/common/icons/info.js +1 -1
  83. package/dist/components/common/icons/layers.js +1 -1
  84. package/dist/components/common/icons/left-arrow.js +1 -1
  85. package/dist/components/common/icons/legend.js +1 -1
  86. package/dist/components/common/icons/line-chart.js +1 -1
  87. package/dist/components/common/icons/login.js +1 -1
  88. package/dist/components/common/icons/logout.js +1 -1
  89. package/dist/components/common/icons/map-icon.js +1 -1
  90. package/dist/components/common/icons/map.js +1 -1
  91. package/dist/components/common/icons/messages.js +1 -1
  92. package/dist/components/common/icons/minus.js +1 -1
  93. package/dist/components/common/icons/pause.js +1 -1
  94. package/dist/components/common/icons/picture.js +1 -1
  95. package/dist/components/common/icons/pin.js +1 -1
  96. package/dist/components/common/icons/play.js +1 -1
  97. package/dist/components/common/icons/polygon.js +1 -1
  98. package/dist/components/common/icons/rectangle.js +1 -1
  99. package/dist/components/common/icons/reduce.js +1 -1
  100. package/dist/components/common/icons/reset.js +1 -1
  101. package/dist/components/common/icons/rocket.js +1 -1
  102. package/dist/components/common/icons/save.js +1 -1
  103. package/dist/components/common/icons/save2.js +1 -1
  104. package/dist/components/common/icons/search.js +1 -1
  105. package/dist/components/common/icons/settings.js +1 -1
  106. package/dist/components/common/icons/share.js +1 -1
  107. package/dist/components/common/icons/split.js +1 -1
  108. package/dist/components/common/icons/square-select.js +1 -1
  109. package/dist/components/common/icons/swap-horizontal.js +68 -0
  110. package/dist/components/common/icons/table.js +1 -1
  111. package/dist/components/common/icons/trash.js +1 -1
  112. package/dist/components/common/icons/upload.js +1 -1
  113. package/dist/components/common/icons/vert-dots.js +1 -1
  114. package/dist/components/common/icons/vert-three-dots.js +1 -1
  115. package/dist/components/common/icons/warning.js +1 -1
  116. package/dist/components/common/image-preview.js +1 -1
  117. package/dist/components/common/info-helper.js +1 -1
  118. package/dist/components/common/item-selector/accessor.js +2 -2
  119. package/dist/components/common/item-selector/chickleted-input.js +1 -1
  120. package/dist/components/common/item-selector/dropdown-list.js +1 -1
  121. package/dist/components/common/item-selector/item-selector.js +1 -1
  122. package/dist/components/common/item-selector/typeahead.js +1 -1
  123. package/dist/components/common/line-chart.js +1 -1
  124. package/dist/components/common/loading-spinner.js +1 -1
  125. package/dist/components/common/logo.js +1 -1
  126. package/dist/components/common/map-layer-selector.js +1 -1
  127. package/dist/components/common/modal.js +1 -1
  128. package/dist/components/common/portaled.js +1 -1
  129. package/dist/components/common/progress-bar.js +1 -1
  130. package/dist/components/common/range-brush.js +1 -1
  131. package/dist/components/common/range-plot.js +1 -1
  132. package/dist/components/common/range-slider.js +1 -1
  133. package/dist/components/common/slider/mouse-event.js +2 -2
  134. package/dist/components/common/slider/slider-bar-handle.js +1 -1
  135. package/dist/components/common/slider/slider-handle.js +1 -1
  136. package/dist/components/common/slider/slider.js +1 -1
  137. package/dist/components/common/styled-components.js +1 -1
  138. package/dist/components/common/switch.js +1 -1
  139. package/dist/components/common/time-range-slider-time-title.js +1 -1
  140. package/dist/components/common/time-range-slider.js +1 -1
  141. package/dist/components/common/time-slider-marker.js +1 -1
  142. package/dist/components/common/toolbar-item.js +1 -1
  143. package/dist/components/common/toolbar.js +1 -1
  144. package/dist/components/common/vertical-toolbar.js +1 -1
  145. package/dist/components/container.js +1 -1
  146. package/dist/components/context.js +2 -2
  147. package/dist/components/editor/constants.js +2 -2
  148. package/dist/components/editor/editor.js +1 -1
  149. package/dist/components/editor/feature-action-panel.js +1 -1
  150. package/dist/components/editor/feature-styles.js +1 -1
  151. package/dist/components/editor/handle-style.js +1 -1
  152. package/dist/components/filters/components.js +1 -1
  153. package/dist/components/filters/filter-panels/filter-panel-with-field-select.js +2 -2
  154. package/dist/components/filters/filter-panels/multi-select-filter-panel.js +2 -2
  155. package/dist/components/filters/filter-panels/new-filter-panel.js +2 -2
  156. package/dist/components/filters/filter-panels/polygon-filter-panel.js +2 -2
  157. package/dist/components/filters/filter-panels/range-filter-panel.js +2 -2
  158. package/dist/components/filters/filter-panels/single-select-filter-panel.js +2 -2
  159. package/dist/components/filters/filter-panels/time-range-filter-panel.js +2 -2
  160. package/dist/components/filters/index.js +1 -1
  161. package/dist/components/filters/multi-select-filter.js +2 -2
  162. package/dist/components/filters/polygon-filter.js +2 -2
  163. package/dist/components/filters/range-filter.js +2 -2
  164. package/dist/components/filters/single-select-filter.js +2 -2
  165. package/dist/components/filters/time-range-filter.js +2 -2
  166. package/dist/components/filters/time-widget.js +1 -1
  167. package/dist/components/geocoder/geocoder.js +1 -1
  168. package/dist/components/geocoder-panel.js +1 -1
  169. package/dist/components/index.js +2 -2
  170. package/dist/components/injector.js +1 -1
  171. package/dist/components/kepler-gl.js +1 -1
  172. package/dist/components/map/coordinate-info.js +2 -2
  173. package/dist/components/map/layer-hover-info.js +1 -1
  174. package/dist/components/map/layer-selector-panel.js +2 -2
  175. package/dist/components/map/locale-panel.js +2 -2
  176. package/dist/components/map/map-control-panel.js +1 -1
  177. package/dist/components/map/map-control-toolbar.js +1 -1
  178. package/dist/components/map/map-control-tooltip.js +2 -2
  179. package/dist/components/map/map-control.js +1 -1
  180. package/dist/components/map/map-draw-panel.js +2 -2
  181. package/dist/components/map/map-legend-panel.js +2 -2
  182. package/dist/components/map/map-legend.js +1 -1
  183. package/dist/components/map/map-popover.js +1 -1
  184. package/dist/components/map/split-map-button.js +2 -2
  185. package/dist/components/map/toggle-3d-button.js +2 -2
  186. package/dist/components/map-container.js +12 -3
  187. package/dist/components/maps-layout.js +1 -1
  188. package/dist/components/modal-container.js +1 -1
  189. package/dist/components/modals/add-map-style-modal.js +1 -1
  190. package/dist/components/modals/cloud-tile.js +1 -1
  191. package/dist/components/modals/data-table-modal.js +1 -1
  192. package/dist/components/modals/delete-data-modal.js +1 -1
  193. package/dist/components/modals/error-display.js +2 -2
  194. package/dist/components/modals/export-data-modal.js +1 -1
  195. package/dist/components/modals/export-image-modal.js +1 -1
  196. package/dist/components/modals/export-map-modal/components.js +1 -1
  197. package/dist/components/modals/export-map-modal/export-html-map.js +1 -1
  198. package/dist/components/modals/export-map-modal/export-json-map.js +1 -1
  199. package/dist/components/modals/export-map-modal/export-map-modal.js +2 -2
  200. package/dist/components/modals/image-modal-container.js +2 -2
  201. package/dist/components/modals/load-data-modal.js +1 -1
  202. package/dist/components/modals/load-storage-map.js +1 -1
  203. package/dist/components/modals/loading-dialog.js +1 -1
  204. package/dist/components/modals/modal-dialog.js +2 -2
  205. package/dist/components/modals/modal-tabs.js +1 -1
  206. package/dist/components/modals/overwrite-map-modal.js +1 -1
  207. package/dist/components/modals/provider-modal-container.js +1 -1
  208. package/dist/components/modals/save-map-modal.js +1 -1
  209. package/dist/components/modals/share-map-modal.js +1 -1
  210. package/dist/components/modals/status-panel.js +1 -1
  211. package/dist/components/modals/storage-map-viewer.js +1 -1
  212. package/dist/components/notification-panel/notification-item.js +1 -1
  213. package/dist/components/notification-panel.js +1 -1
  214. package/dist/components/plot-container.js +1 -1
  215. package/dist/components/side-panel/cloud-storage-dropdown.js +2 -2
  216. package/dist/components/side-panel/common/dataset-info.js +1 -1
  217. package/dist/components/side-panel/common/dataset-tag.js +1 -1
  218. package/dist/components/side-panel/common/dataset-title.js +1 -1
  219. package/dist/components/side-panel/common/source-data-catalog.js +1 -1
  220. package/dist/components/side-panel/common/source-data-selector.js +1 -1
  221. package/dist/components/side-panel/custom-panel.js +2 -2
  222. package/dist/components/side-panel/filter-manager.js +2 -2
  223. package/dist/components/side-panel/filter-panel/filter-panel-header.js +1 -1
  224. package/dist/components/side-panel/filter-panel/filter-panel.js +1 -1
  225. package/dist/components/side-panel/interaction-manager.js +2 -2
  226. package/dist/components/side-panel/interaction-panel/brush-config.js +1 -1
  227. package/dist/components/side-panel/interaction-panel/interaction-panel.js +1 -1
  228. package/dist/components/side-panel/interaction-panel/tooltip-config/tooltip-chicklet.js +1 -1
  229. package/dist/components/side-panel/interaction-panel/tooltip-config.js +1 -1
  230. package/dist/components/side-panel/layer-manager.js +1 -1
  231. package/dist/components/side-panel/layer-panel/color-palette.js +12 -6
  232. package/dist/components/side-panel/layer-panel/color-range-selector.js +51 -17
  233. package/dist/components/side-panel/layer-panel/color-selector.js +1 -1
  234. package/dist/components/side-panel/layer-panel/column-selector.js +1 -1
  235. package/dist/components/side-panel/layer-panel/custom-palette.js +22 -8
  236. package/dist/components/side-panel/layer-panel/custom-picker.js +1 -1
  237. package/dist/components/side-panel/layer-panel/dimension-scale-selector.js +2 -2
  238. package/dist/components/side-panel/layer-panel/layer-column-config.js +1 -1
  239. package/dist/components/side-panel/layer-panel/layer-config-group.js +19 -10
  240. package/dist/components/side-panel/layer-panel/layer-configurator.js +4 -4
  241. package/dist/components/side-panel/layer-panel/layer-panel-header.js +1 -1
  242. package/dist/components/side-panel/layer-panel/layer-panel.js +1 -1
  243. package/dist/components/side-panel/layer-panel/layer-type-dropdown-list.js +1 -1
  244. package/dist/components/side-panel/layer-panel/layer-type-list-item.js +1 -1
  245. package/dist/components/side-panel/layer-panel/layer-type-selector.js +1 -1
  246. package/dist/components/side-panel/layer-panel/single-color-palette.js +1 -1
  247. package/dist/components/side-panel/layer-panel/text-label-panel.js +18 -10
  248. package/dist/components/side-panel/layer-panel/vis-config-by-field-selector.js +1 -1
  249. package/dist/components/side-panel/layer-panel/vis-config-slider.js +2 -2
  250. package/dist/components/side-panel/layer-panel/vis-config-switch.js +1 -1
  251. package/dist/components/side-panel/map-manager.js +1 -1
  252. package/dist/components/side-panel/map-style-panel/map-layer-selector.js +1 -1
  253. package/dist/components/side-panel/map-style-panel/map-style-selector.js +1 -1
  254. package/dist/components/side-panel/panel-dropdown.js +1 -1
  255. package/dist/components/side-panel/panel-header-action.js +1 -1
  256. package/dist/components/side-panel/panel-header.js +1 -1
  257. package/dist/components/side-panel/panel-tab.js +1 -1
  258. package/dist/components/side-panel/panel-title.js +1 -1
  259. package/dist/components/side-panel/panel-toggle.js +1 -1
  260. package/dist/components/side-panel/side-bar.js +1 -1
  261. package/dist/components/side-panel.js +1 -1
  262. package/dist/connect/keplergl-connect.js +2 -2
  263. package/dist/connect/with-local-selector.js +1 -1
  264. package/dist/constants/action-types.js +2 -2
  265. package/dist/constants/color-palette.js +2 -2
  266. package/dist/constants/color-ranges.js +1 -1
  267. package/dist/constants/custom-color-ranges.js +2 -2
  268. package/dist/constants/default-settings.js +2 -2
  269. package/dist/constants/index.js +1 -1
  270. package/dist/constants/keyevent.js +2 -2
  271. package/dist/constants/tooltip.js +2 -2
  272. package/dist/constants/user-feedbacks.js +2 -2
  273. package/dist/constants/user-guides.js +2 -2
  274. package/dist/deckgl-layers/3d-building-layer/3d-building-layer.js +1 -1
  275. package/dist/deckgl-layers/3d-building-layer/3d-building-utils.js +2 -2
  276. package/dist/deckgl-layers/cluster-layer/cluster-layer.js +1 -1
  277. package/dist/deckgl-layers/column-layer/enhanced-column-layer.js +1 -1
  278. package/dist/deckgl-layers/grid-layer/enhanced-cpu-grid-layer.js +1 -1
  279. package/dist/deckgl-layers/hexagon-layer/enhanced-hexagon-layer.js +1 -1
  280. package/dist/deckgl-layers/layer-utils/cluster-utils.js +2 -2
  281. package/dist/deckgl-layers/layer-utils/cpu-aggregator.js +1 -1
  282. package/dist/deckgl-layers/layer-utils/shader-utils.js +2 -2
  283. package/dist/deckgl-layers/line-layer/line-layer.js +1 -1
  284. package/dist/deckgl-layers/svg-icon-layer/scatterplot-icon-layer.js +1 -1
  285. package/dist/deckgl-layers/svg-icon-layer/svg-icon-layer.js +1 -1
  286. package/dist/index.js +1 -1
  287. package/dist/layers/aggregation-layer.js +1 -1
  288. package/dist/layers/arc-layer/arc-layer-icon.js +1 -1
  289. package/dist/layers/arc-layer/arc-layer.js +1 -1
  290. package/dist/layers/base-layer.js +1 -1
  291. package/dist/layers/cluster-layer/cluster-layer-icon.js +1 -1
  292. package/dist/layers/cluster-layer/cluster-layer.js +1 -1
  293. package/dist/layers/default-layer-icon.js +1 -1
  294. package/dist/layers/geojson-layer/geojson-layer-icon.js +1 -1
  295. package/dist/layers/geojson-layer/geojson-layer.js +1 -1
  296. package/dist/layers/geojson-layer/geojson-utils.js +1 -1
  297. package/dist/layers/grid-layer/grid-layer-icon.js +1 -1
  298. package/dist/layers/grid-layer/grid-layer.js +1 -1
  299. package/dist/layers/grid-layer/grid-utils.js +2 -2
  300. package/dist/layers/h3-hexagon-layer/h3-hexagon-layer-icon.js +1 -1
  301. package/dist/layers/h3-hexagon-layer/h3-hexagon-layer.js +1 -1
  302. package/dist/layers/h3-hexagon-layer/h3-utils.js +2 -2
  303. package/dist/layers/heatmap-layer/heatmap-layer-icon.js +1 -1
  304. package/dist/layers/heatmap-layer/heatmap-layer.js +1 -1
  305. package/dist/layers/hexagon-layer/hexagon-layer-icon.js +1 -1
  306. package/dist/layers/hexagon-layer/hexagon-layer.js +1 -1
  307. package/dist/layers/hexagon-layer/hexagon-utils.js +2 -2
  308. package/dist/layers/icon-layer/icon-info-modal.js +1 -1
  309. package/dist/layers/icon-layer/icon-layer-icon.js +1 -1
  310. package/dist/layers/icon-layer/icon-layer.js +1 -1
  311. package/dist/layers/index.js +1 -1
  312. package/dist/layers/layer-factory.js +2 -2
  313. package/dist/layers/layer-text-label.js +2 -2
  314. package/dist/layers/layer-update.js +2 -2
  315. package/dist/layers/line-layer/line-layer-icon.js +1 -1
  316. package/dist/layers/line-layer/line-layer.js +1 -1
  317. package/dist/layers/mapbox-utils.js +1 -1
  318. package/dist/layers/mapboxgl-layer.js +1 -1
  319. package/dist/layers/point-layer/point-layer-icon.js +1 -1
  320. package/dist/layers/point-layer/point-layer.js +1 -1
  321. package/dist/layers/s2-geometry-layer/s2-geometry-layer.js +1 -1
  322. package/dist/layers/s2-geometry-layer/s2-layer-icon.js +1 -1
  323. package/dist/layers/s2-geometry-layer/s2-utils.js +2 -2
  324. package/dist/layers/scenegraph-layer/scenegraph-info-modal.js +1 -1
  325. package/dist/layers/scenegraph-layer/scenegraph-layer-icon.js +1 -1
  326. package/dist/layers/scenegraph-layer/scenegraph-layer.js +1 -1
  327. package/dist/layers/trip-layer/trip-info-modal.js +1 -1
  328. package/dist/layers/trip-layer/trip-layer-icon.js +1 -1
  329. package/dist/layers/trip-layer/trip-layer.js +1 -1
  330. package/dist/layers/trip-layer/trip-utils.js +2 -2
  331. package/dist/layers/types.js +2 -2
  332. package/dist/localization/ca.js +1 -1
  333. package/dist/localization/cn.js +1 -1
  334. package/dist/localization/en.js +6 -1
  335. package/dist/localization/es.js +1 -1
  336. package/dist/localization/fi.js +1 -1
  337. package/dist/localization/formatted-message.js +2 -2
  338. package/dist/localization/index.js +1 -1
  339. package/dist/localization/ja.js +1 -1
  340. package/dist/localization/locales.js +2 -2
  341. package/dist/localization/pt.js +1 -1
  342. package/dist/localization/ru.js +1 -1
  343. package/dist/middleware/index.js +2 -2
  344. package/dist/processors/data-processor.js +1 -1
  345. package/dist/processors/file-handler.js +1 -1
  346. package/dist/processors/index.js +1 -1
  347. package/dist/reducers/combined-updaters.js +1 -1
  348. package/dist/reducers/composer-helpers.js +1 -1
  349. package/dist/reducers/composers.js +1 -1
  350. package/dist/reducers/core.js +2 -2
  351. package/dist/reducers/index.js +1 -1
  352. package/dist/reducers/map-state-updaters.js +1 -1
  353. package/dist/reducers/map-state.js +1 -1
  354. package/dist/reducers/map-style-updaters.js +1 -1
  355. package/dist/reducers/map-style.js +1 -1
  356. package/dist/reducers/provider-state-updaters.js +1 -1
  357. package/dist/reducers/provider-state.js +1 -1
  358. package/dist/reducers/root.js +1 -1
  359. package/dist/reducers/ui-state-updaters.js +1 -1
  360. package/dist/reducers/ui-state.js +1 -1
  361. package/dist/reducers/vis-state-merger.js +1 -1
  362. package/dist/reducers/vis-state-selectors.js +2 -2
  363. package/dist/reducers/vis-state-updaters.js +1 -1
  364. package/dist/reducers/vis-state.js +1 -1
  365. package/dist/schemas/dataset-schema.js +1 -1
  366. package/dist/schemas/index.js +1 -1
  367. package/dist/schemas/map-state-schema.js +1 -1
  368. package/dist/schemas/map-style-schema.js +1 -1
  369. package/dist/schemas/schema-manager.js +1 -1
  370. package/dist/schemas/schema-utils.js +2 -2
  371. package/dist/schemas/schema.js +1 -1
  372. package/dist/schemas/versions.js +2 -2
  373. package/dist/schemas/vis-state-schema.js +1 -1
  374. package/dist/styles/base.js +1 -1
  375. package/dist/styles/index.js +1 -1
  376. package/dist/styles/media-breakpoints.js +1 -1
  377. package/dist/tasks/tasks.js +2 -2
  378. package/dist/templates/export-map-html.js +2 -2
  379. package/dist/utils/aggregate-utils.js +1 -1
  380. package/dist/utils/color-utils.js +2 -2
  381. package/dist/utils/data-scale-utils.js +2 -2
  382. package/dist/utils/data-utils.js +1 -1
  383. package/dist/utils/dataset-utils.js +1 -1
  384. package/dist/utils/dom-to-image.js +2 -2
  385. package/dist/utils/dom-utils.js +2 -2
  386. package/dist/utils/export-utils.js +1 -1
  387. package/dist/utils/filter-utils.js +1 -1
  388. package/dist/utils/gl-utils.js +1 -1
  389. package/dist/utils/gpu-filter-utils.js +1 -1
  390. package/dist/utils/index.js +1 -1
  391. package/dist/utils/interaction-utils.js +2 -2
  392. package/dist/utils/layer-utils.js +1 -1
  393. package/dist/utils/locale-utils.js +1 -1
  394. package/dist/utils/map-info-utils.js +2 -2
  395. package/dist/utils/map-style-utils/mapbox-gl-style-editor.js +1 -1
  396. package/dist/utils/map-style-utils/mapbox-utils.js +2 -2
  397. package/dist/utils/mapbox-utils.js +2 -2
  398. package/dist/utils/notifications-utils.js +1 -1
  399. package/dist/utils/observe-dimensions.js +1 -1
  400. package/dist/utils/projection-utils.js +2 -2
  401. package/dist/utils/searcher-utils.js +2 -2
  402. package/dist/utils/split-map-utils.js +1 -1
  403. package/dist/utils/table-utils/data-container-utils.js +1 -1
  404. package/dist/utils/table-utils/data-row.js +2 -2
  405. package/dist/utils/table-utils/index.js +1 -1
  406. package/dist/utils/table-utils/indexed-data-container.js +1 -1
  407. package/dist/utils/table-utils/kepler-table.js +1 -1
  408. package/dist/utils/table-utils/row-data-container.js +1 -1
  409. package/dist/utils/utils.js +1 -1
  410. package/layers.js +1 -1
  411. package/localization.js +1 -1
  412. package/middleware.js +1 -1
  413. package/package.json +1 -1
  414. package/processors.js +1 -1
  415. package/reducers.js +1 -1
  416. package/schemas.js +1 -1
  417. package/src/actions/action-wrapper.js +1 -1
  418. package/src/actions/actions.js +1 -1
  419. package/src/actions/identity-actions.js +1 -1
  420. package/src/actions/index.js +1 -1
  421. package/src/actions/map-state-actions.js +1 -1
  422. package/src/actions/map-style-actions.js +1 -1
  423. package/src/actions/provider-actions.js +1 -1
  424. package/src/actions/ui-state-actions.js +1 -1
  425. package/src/actions/vis-state-actions.js +1 -1
  426. package/src/cloud-providers/index.js +1 -1
  427. package/src/cloud-providers/provider.js +1 -1
  428. package/src/components/bottom-widget.js +1 -1
  429. package/src/components/common/action-panel.js +1 -1
  430. package/src/components/common/animation-control/animation-control.js +1 -1
  431. package/src/components/common/animation-control/animation-controller.js +1 -1
  432. package/src/components/common/animation-control/animation-speed-slider.js +1 -1
  433. package/src/components/common/animation-control/floating-time-display.js +1 -1
  434. package/src/components/common/animation-control/playback-controls.js +1 -1
  435. package/src/components/common/animation-control/speed-control.js +1 -1
  436. package/src/components/common/checkbox.js +1 -1
  437. package/src/components/common/color-legend.js +1 -1
  438. package/src/components/common/data-table/button.js +1 -1
  439. package/src/components/common/data-table/canvas.js +1 -1
  440. package/src/components/common/data-table/cell-size.js +1 -1
  441. package/src/components/common/data-table/grid.js +1 -1
  442. package/src/components/common/data-table/index.js +1 -1
  443. package/src/components/common/data-table/option-dropdown.js +1 -1
  444. package/src/components/common/dataset-label.js +1 -1
  445. package/src/components/common/error-boundary.js +1 -1
  446. package/src/components/common/field-selector.js +1 -1
  447. package/src/components/common/field-token.js +1 -1
  448. package/src/components/common/file-uploader/file-drop.js +1 -1
  449. package/src/components/common/file-uploader/file-upload-progress.js +1 -1
  450. package/src/components/common/file-uploader/file-upload.js +1 -1
  451. package/src/components/common/file-uploader/upload-button.js +1 -1
  452. package/src/components/common/histogram-plot.js +1 -1
  453. package/src/components/common/icons/add.js +1 -1
  454. package/src/components/common/icons/anchor_window.js +1 -1
  455. package/src/components/common/icons/arrow-down-alt.js +1 -1
  456. package/src/components/common/icons/arrow-down-solid .js +1 -1
  457. package/src/components/common/icons/arrow-down.js +1 -1
  458. package/src/components/common/icons/arrow-left.js +1 -1
  459. package/src/components/common/icons/arrow-right.js +1 -1
  460. package/src/components/common/icons/arrow-up-alt.js +1 -1
  461. package/src/components/common/icons/arrow-up-solid.js +1 -1
  462. package/src/components/common/icons/arrow-up.js +1 -1
  463. package/src/components/common/icons/base.js +1 -1
  464. package/src/components/common/icons/bug.js +1 -1
  465. package/src/components/common/icons/cancel.js +1 -1
  466. package/src/components/common/icons/checkmark.js +1 -1
  467. package/src/components/common/icons/clipboard.js +1 -1
  468. package/src/components/common/icons/clock.js +1 -1
  469. package/src/components/common/icons/close.js +1 -1
  470. package/src/components/common/icons/code-alt.js +1 -1
  471. package/src/components/common/icons/copy.js +1 -1
  472. package/src/components/common/icons/crosshairs.js +1 -1
  473. package/src/components/common/icons/cube-3d.js +1 -1
  474. package/src/components/common/icons/cursor-click.js +1 -1
  475. package/src/components/common/icons/data-table.js +1 -1
  476. package/src/components/common/icons/db.js +1 -1
  477. package/src/components/common/icons/delete.js +1 -1
  478. package/src/components/common/icons/docs.js +1 -1
  479. package/src/components/common/icons/drag-n-drop.js +1 -1
  480. package/src/components/common/icons/draw-polygon.js +1 -1
  481. package/src/components/common/icons/email.js +1 -1
  482. package/src/components/common/icons/expand.js +1 -1
  483. package/src/components/common/icons/eye-seen.js +1 -1
  484. package/src/components/common/icons/eye-unseen.js +1 -1
  485. package/src/components/common/icons/file-type.js +1 -1
  486. package/src/components/common/icons/file.js +1 -1
  487. package/src/components/common/icons/files.js +1 -1
  488. package/src/components/common/icons/filter-funnel.js +1 -1
  489. package/src/components/common/icons/free-window.js +1 -1
  490. package/src/components/common/icons/gear.js +1 -1
  491. package/src/components/common/icons/hash.js +1 -1
  492. package/src/components/common/icons/histogram.js +1 -1
  493. package/src/components/common/icons/index.js +2 -1
  494. package/src/components/common/icons/info.js +1 -1
  495. package/src/components/common/icons/layers.js +1 -1
  496. package/src/components/common/icons/left-arrow.js +1 -1
  497. package/src/components/common/icons/legend.js +1 -1
  498. package/src/components/common/icons/line-chart.js +1 -1
  499. package/src/components/common/icons/login.js +1 -1
  500. package/src/components/common/icons/logout.js +1 -1
  501. package/src/components/common/icons/map-icon.js +1 -1
  502. package/src/components/common/icons/map.js +1 -1
  503. package/src/components/common/icons/messages.js +1 -1
  504. package/src/components/common/icons/minus.js +1 -1
  505. package/src/components/common/icons/pause.js +1 -1
  506. package/src/components/common/icons/picture.js +1 -1
  507. package/src/components/common/icons/pin.js +1 -1
  508. package/src/components/common/icons/play.js +1 -1
  509. package/src/components/common/icons/polygon.js +1 -1
  510. package/src/components/common/icons/rectangle.js +1 -1
  511. package/src/components/common/icons/reduce.js +1 -1
  512. package/src/components/common/icons/reset.js +1 -1
  513. package/src/components/common/icons/rocket.js +1 -1
  514. package/src/components/common/icons/save.js +1 -1
  515. package/src/components/common/icons/save2.js +1 -1
  516. package/src/components/common/icons/search.js +1 -1
  517. package/src/components/common/icons/settings.js +1 -1
  518. package/src/components/common/icons/share.js +1 -1
  519. package/src/components/common/icons/split.js +1 -1
  520. package/src/components/common/icons/square-select.js +1 -1
  521. package/src/components/common/icons/swap-horizontal.js +43 -0
  522. package/src/components/common/icons/table.js +1 -1
  523. package/src/components/common/icons/trash.js +1 -1
  524. package/src/components/common/icons/upload.js +1 -1
  525. package/src/components/common/icons/vert-dots.js +1 -1
  526. package/src/components/common/icons/vert-three-dots.js +1 -1
  527. package/src/components/common/icons/warning.js +1 -1
  528. package/src/components/common/image-preview.js +1 -1
  529. package/src/components/common/info-helper.js +1 -1
  530. package/src/components/common/item-selector/accessor.js +1 -1
  531. package/src/components/common/item-selector/chickleted-input.js +1 -1
  532. package/src/components/common/item-selector/dropdown-list.js +1 -1
  533. package/src/components/common/item-selector/item-selector.js +1 -1
  534. package/src/components/common/item-selector/typeahead.js +1 -1
  535. package/src/components/common/line-chart.js +1 -1
  536. package/src/components/common/loading-spinner.js +1 -1
  537. package/src/components/common/logo.js +1 -1
  538. package/src/components/common/map-layer-selector.js +1 -1
  539. package/src/components/common/modal.js +1 -1
  540. package/src/components/common/portaled.js +1 -1
  541. package/src/components/common/progress-bar.js +1 -1
  542. package/src/components/common/range-brush.js +1 -1
  543. package/src/components/common/range-plot.js +1 -1
  544. package/src/components/common/range-slider.js +1 -1
  545. package/src/components/common/slider/mouse-event.js +1 -1
  546. package/src/components/common/slider/slider-bar-handle.js +1 -1
  547. package/src/components/common/slider/slider-handle.js +1 -1
  548. package/src/components/common/slider/slider.js +1 -1
  549. package/src/components/common/styled-components.js +1 -1
  550. package/src/components/common/switch.js +1 -1
  551. package/src/components/common/time-range-slider-time-title.js +1 -1
  552. package/src/components/common/time-range-slider.js +1 -1
  553. package/src/components/common/time-slider-marker.js +1 -1
  554. package/src/components/common/toolbar-item.js +1 -1
  555. package/src/components/common/toolbar.js +1 -1
  556. package/src/components/common/vertical-toolbar.js +1 -1
  557. package/src/components/container.js +1 -1
  558. package/src/components/context.js +1 -1
  559. package/src/components/editor/constants.js +1 -1
  560. package/src/components/editor/editor.js +1 -1
  561. package/src/components/editor/feature-action-panel.js +1 -1
  562. package/src/components/editor/feature-styles.js +1 -1
  563. package/src/components/editor/handle-style.js +1 -1
  564. package/src/components/filters/components.js +1 -1
  565. package/src/components/filters/filter-panels/filter-panel-with-field-select.js +1 -1
  566. package/src/components/filters/filter-panels/multi-select-filter-panel.js +1 -1
  567. package/src/components/filters/filter-panels/new-filter-panel.js +1 -1
  568. package/src/components/filters/filter-panels/polygon-filter-panel.js +1 -1
  569. package/src/components/filters/filter-panels/range-filter-panel.js +1 -1
  570. package/src/components/filters/filter-panels/single-select-filter-panel.js +1 -1
  571. package/src/components/filters/filter-panels/time-range-filter-panel.js +1 -1
  572. package/src/components/filters/index.js +1 -1
  573. package/src/components/filters/multi-select-filter.js +1 -1
  574. package/src/components/filters/polygon-filter.js +1 -1
  575. package/src/components/filters/range-filter.js +1 -1
  576. package/src/components/filters/single-select-filter.js +1 -1
  577. package/src/components/filters/time-range-filter.js +1 -1
  578. package/src/components/filters/time-widget.js +1 -1
  579. package/src/components/geocoder/geocoder.js +1 -1
  580. package/src/components/geocoder-panel.js +1 -1
  581. package/src/components/index.js +1 -1
  582. package/src/components/injector.js +1 -1
  583. package/src/components/kepler-gl.js +1 -1
  584. package/src/components/map/coordinate-info.js +1 -1
  585. package/src/components/map/layer-hover-info.js +1 -1
  586. package/src/components/map/layer-selector-panel.js +1 -1
  587. package/src/components/map/locale-panel.js +1 -1
  588. package/src/components/map/map-control-panel.js +1 -1
  589. package/src/components/map/map-control-toolbar.js +1 -1
  590. package/src/components/map/map-control-tooltip.js +1 -1
  591. package/src/components/map/map-control.js +1 -1
  592. package/src/components/map/map-draw-panel.js +1 -1
  593. package/src/components/map/map-legend-panel.js +1 -1
  594. package/src/components/map/map-legend.js +1 -1
  595. package/src/components/map/map-popover.js +1 -1
  596. package/src/components/map/split-map-button.js +1 -1
  597. package/src/components/map/toggle-3d-button.js +1 -1
  598. package/src/components/map-container.js +7 -2
  599. package/src/components/maps-layout.js +1 -1
  600. package/src/components/modal-container.js +1 -1
  601. package/src/components/modals/add-map-style-modal.js +1 -1
  602. package/src/components/modals/cloud-tile.js +1 -1
  603. package/src/components/modals/data-table-modal.js +1 -1
  604. package/src/components/modals/delete-data-modal.js +1 -1
  605. package/src/components/modals/error-display.js +1 -1
  606. package/src/components/modals/export-data-modal.js +1 -1
  607. package/src/components/modals/export-image-modal.js +1 -1
  608. package/src/components/modals/export-map-modal/components.js +1 -1
  609. package/src/components/modals/export-map-modal/export-html-map.js +1 -1
  610. package/src/components/modals/export-map-modal/export-json-map.js +1 -1
  611. package/src/components/modals/export-map-modal/export-map-modal.js +1 -1
  612. package/src/components/modals/image-modal-container.js +1 -1
  613. package/src/components/modals/load-data-modal.js +1 -1
  614. package/src/components/modals/load-storage-map.js +1 -1
  615. package/src/components/modals/loading-dialog.js +1 -1
  616. package/src/components/modals/modal-dialog.js +1 -1
  617. package/src/components/modals/modal-tabs.js +1 -1
  618. package/src/components/modals/overwrite-map-modal.js +1 -1
  619. package/src/components/modals/provider-modal-container.js +1 -1
  620. package/src/components/modals/save-map-modal.js +1 -1
  621. package/src/components/modals/share-map-modal.js +1 -1
  622. package/src/components/modals/status-panel.js +1 -1
  623. package/src/components/modals/storage-map-viewer.js +1 -1
  624. package/src/components/notification-panel/notification-item.js +1 -1
  625. package/src/components/notification-panel.js +1 -1
  626. package/src/components/plot-container.js +1 -1
  627. package/src/components/side-panel/cloud-storage-dropdown.js +1 -1
  628. package/src/components/side-panel/common/dataset-info.js +1 -1
  629. package/src/components/side-panel/common/dataset-tag.js +1 -1
  630. package/src/components/side-panel/common/dataset-title.js +1 -1
  631. package/src/components/side-panel/common/source-data-catalog.js +1 -1
  632. package/src/components/side-panel/common/source-data-selector.js +1 -1
  633. package/src/components/side-panel/custom-panel.js +1 -1
  634. package/src/components/side-panel/filter-manager.js +1 -1
  635. package/src/components/side-panel/filter-panel/filter-panel-header.js +1 -1
  636. package/src/components/side-panel/filter-panel/filter-panel.js +1 -1
  637. package/src/components/side-panel/interaction-manager.js +1 -1
  638. package/src/components/side-panel/interaction-panel/brush-config.js +1 -1
  639. package/src/components/side-panel/interaction-panel/interaction-panel.js +1 -1
  640. package/src/components/side-panel/interaction-panel/tooltip-config/tooltip-chicklet.js +1 -1
  641. package/src/components/side-panel/interaction-panel/tooltip-config.js +1 -1
  642. package/src/components/side-panel/layer-manager.js +1 -1
  643. package/src/components/side-panel/layer-panel/color-palette.js +11 -4
  644. package/src/components/side-panel/layer-panel/color-range-selector.js +69 -29
  645. package/src/components/side-panel/layer-panel/color-selector.js +1 -1
  646. package/src/components/side-panel/layer-panel/column-selector.js +1 -1
  647. package/src/components/side-panel/layer-panel/custom-palette.js +24 -18
  648. package/src/components/side-panel/layer-panel/custom-picker.js +1 -1
  649. package/src/components/side-panel/layer-panel/dimension-scale-selector.js +1 -1
  650. package/src/components/side-panel/layer-panel/layer-column-config.js +1 -1
  651. package/src/components/side-panel/layer-panel/layer-config-group.js +17 -8
  652. package/src/components/side-panel/layer-panel/layer-configurator.js +21 -13
  653. package/src/components/side-panel/layer-panel/layer-panel-header.js +1 -1
  654. package/src/components/side-panel/layer-panel/layer-panel.js +1 -1
  655. package/src/components/side-panel/layer-panel/layer-type-dropdown-list.js +1 -1
  656. package/src/components/side-panel/layer-panel/layer-type-list-item.js +1 -1
  657. package/src/components/side-panel/layer-panel/layer-type-selector.js +1 -1
  658. package/src/components/side-panel/layer-panel/single-color-palette.js +1 -1
  659. package/src/components/side-panel/layer-panel/text-label-panel.js +16 -7
  660. package/src/components/side-panel/layer-panel/vis-config-by-field-selector.js +1 -1
  661. package/src/components/side-panel/layer-panel/vis-config-slider.js +1 -1
  662. package/src/components/side-panel/layer-panel/vis-config-switch.js +1 -1
  663. package/src/components/side-panel/map-manager.js +1 -1
  664. package/src/components/side-panel/map-style-panel/map-layer-selector.js +1 -1
  665. package/src/components/side-panel/map-style-panel/map-style-selector.js +1 -1
  666. package/src/components/side-panel/panel-dropdown.js +1 -1
  667. package/src/components/side-panel/panel-header-action.js +1 -1
  668. package/src/components/side-panel/panel-header.js +1 -1
  669. package/src/components/side-panel/panel-tab.js +1 -1
  670. package/src/components/side-panel/panel-title.js +1 -1
  671. package/src/components/side-panel/panel-toggle.js +1 -1
  672. package/src/components/side-panel/side-bar.js +1 -1
  673. package/src/components/side-panel.js +1 -1
  674. package/src/connect/keplergl-connect.js +1 -1
  675. package/src/connect/with-local-selector.js +1 -1
  676. package/src/constants/action-types.js +1 -1
  677. package/src/constants/color-palette.js +1 -1
  678. package/src/constants/color-ranges.js +1 -1
  679. package/src/constants/custom-color-ranges.js +1 -1
  680. package/src/constants/default-settings.js +1 -1
  681. package/src/constants/index.js +1 -1
  682. package/src/constants/keyevent.js +1 -1
  683. package/src/constants/tooltip.js +1 -1
  684. package/src/constants/user-feedbacks.js +1 -1
  685. package/src/constants/user-guides.js +1 -1
  686. package/src/deckgl-layers/3d-building-layer/3d-building-layer.js +1 -1
  687. package/src/deckgl-layers/3d-building-layer/3d-building-utils.js +1 -1
  688. package/src/deckgl-layers/cluster-layer/cluster-layer.js +1 -1
  689. package/src/deckgl-layers/column-layer/enhanced-column-layer.js +1 -1
  690. package/src/deckgl-layers/grid-layer/enhanced-cpu-grid-layer.js +1 -1
  691. package/src/deckgl-layers/hexagon-layer/enhanced-hexagon-layer.js +1 -1
  692. package/src/deckgl-layers/layer-utils/cluster-utils.js +1 -1
  693. package/src/deckgl-layers/layer-utils/cpu-aggregator.js +1 -1
  694. package/src/deckgl-layers/layer-utils/shader-utils.js +1 -1
  695. package/src/deckgl-layers/line-layer/line-layer.js +1 -1
  696. package/src/deckgl-layers/svg-icon-layer/scatterplot-icon-layer.js +1 -1
  697. package/src/deckgl-layers/svg-icon-layer/svg-icon-layer.js +1 -1
  698. package/src/index.js +1 -1
  699. package/src/layers/aggregation-layer.js +1 -1
  700. package/src/layers/arc-layer/arc-layer-icon.js +1 -1
  701. package/src/layers/arc-layer/arc-layer.js +1 -1
  702. package/src/layers/base-layer.js +1 -1
  703. package/src/layers/cluster-layer/cluster-layer-icon.js +1 -1
  704. package/src/layers/cluster-layer/cluster-layer.js +1 -1
  705. package/src/layers/default-layer-icon.js +1 -1
  706. package/src/layers/geojson-layer/geojson-layer-icon.js +1 -1
  707. package/src/layers/geojson-layer/geojson-layer.js +1 -1
  708. package/src/layers/geojson-layer/geojson-utils.js +1 -1
  709. package/src/layers/grid-layer/grid-layer-icon.js +1 -1
  710. package/src/layers/grid-layer/grid-layer.js +1 -1
  711. package/src/layers/grid-layer/grid-utils.js +1 -1
  712. package/src/layers/h3-hexagon-layer/h3-hexagon-layer-icon.js +1 -1
  713. package/src/layers/h3-hexagon-layer/h3-hexagon-layer.js +1 -1
  714. package/src/layers/h3-hexagon-layer/h3-utils.js +1 -1
  715. package/src/layers/heatmap-layer/heatmap-layer-icon.js +1 -1
  716. package/src/layers/heatmap-layer/heatmap-layer.js +1 -1
  717. package/src/layers/hexagon-layer/hexagon-layer-icon.js +1 -1
  718. package/src/layers/hexagon-layer/hexagon-layer.js +1 -1
  719. package/src/layers/hexagon-layer/hexagon-utils.js +1 -1
  720. package/src/layers/icon-layer/icon-info-modal.js +1 -1
  721. package/src/layers/icon-layer/icon-layer-icon.js +1 -1
  722. package/src/layers/icon-layer/icon-layer.js +1 -1
  723. package/src/layers/index.js +1 -1
  724. package/src/layers/layer-factory.js +1 -1
  725. package/src/layers/layer-text-label.js +1 -1
  726. package/src/layers/layer-update.js +1 -1
  727. package/src/layers/line-layer/line-layer-icon.js +1 -1
  728. package/src/layers/line-layer/line-layer.js +1 -1
  729. package/src/layers/mapbox-utils.js +1 -1
  730. package/src/layers/mapboxgl-layer.js +1 -1
  731. package/src/layers/point-layer/point-layer-icon.js +1 -1
  732. package/src/layers/point-layer/point-layer.js +1 -1
  733. package/src/layers/s2-geometry-layer/s2-geometry-layer.js +1 -1
  734. package/src/layers/s2-geometry-layer/s2-layer-icon.js +1 -1
  735. package/src/layers/s2-geometry-layer/s2-utils.js +1 -1
  736. package/src/layers/scenegraph-layer/scenegraph-info-modal.js +1 -1
  737. package/src/layers/scenegraph-layer/scenegraph-layer-icon.js +1 -1
  738. package/src/layers/scenegraph-layer/scenegraph-layer.js +1 -1
  739. package/src/layers/trip-layer/trip-info-modal.js +1 -1
  740. package/src/layers/trip-layer/trip-layer-icon.js +1 -1
  741. package/src/layers/trip-layer/trip-layer.js +1 -1
  742. package/src/layers/trip-layer/trip-utils.js +1 -1
  743. package/src/layers/types.js +1 -1
  744. package/src/localization/ca.js +1 -1
  745. package/src/localization/cn.js +1 -1
  746. package/src/localization/en.js +6 -1
  747. package/src/localization/es.js +1 -1
  748. package/src/localization/fi.js +1 -1
  749. package/src/localization/formatted-message.js +1 -1
  750. package/src/localization/index.js +1 -1
  751. package/src/localization/ja.js +1 -1
  752. package/src/localization/locales.js +1 -1
  753. package/src/localization/pt.js +1 -1
  754. package/src/localization/ru.js +1 -1
  755. package/src/middleware/index.js +1 -1
  756. package/src/processors/data-processor.js +1 -1
  757. package/src/processors/file-handler.js +1 -1
  758. package/src/processors/index.js +1 -1
  759. package/src/reducers/combined-updaters.js +1 -1
  760. package/src/reducers/composer-helpers.js +1 -1
  761. package/src/reducers/composers.js +1 -1
  762. package/src/reducers/core.js +1 -1
  763. package/src/reducers/index.js +1 -1
  764. package/src/reducers/map-state-updaters.js +1 -1
  765. package/src/reducers/map-state.js +1 -1
  766. package/src/reducers/map-style-updaters.js +1 -1
  767. package/src/reducers/map-style.js +1 -1
  768. package/src/reducers/provider-state-updaters.js +1 -1
  769. package/src/reducers/provider-state.js +1 -1
  770. package/src/reducers/root.js +1 -1
  771. package/src/reducers/ui-state-updaters.js +1 -1
  772. package/src/reducers/ui-state.js +1 -1
  773. package/src/reducers/vis-state-merger.js +1 -1
  774. package/src/reducers/vis-state-selectors.js +1 -1
  775. package/src/reducers/vis-state-updaters.js +1 -1
  776. package/src/reducers/vis-state.js +1 -1
  777. package/src/schemas/dataset-schema.js +1 -1
  778. package/src/schemas/index.js +1 -1
  779. package/src/schemas/map-state-schema.js +1 -1
  780. package/src/schemas/map-style-schema.js +1 -1
  781. package/src/schemas/schema-manager.js +1 -1
  782. package/src/schemas/schema-utils.js +1 -1
  783. package/src/schemas/schema.js +1 -1
  784. package/src/schemas/versions.js +1 -1
  785. package/src/schemas/vis-state-schema.js +1 -1
  786. package/src/styles/base.js +1 -1
  787. package/src/styles/index.js +1 -1
  788. package/src/styles/media-breakpoints.js +1 -1
  789. package/src/tasks/tasks.js +1 -1
  790. package/src/templates/export-map-html.js +1 -1
  791. package/src/utils/aggregate-utils.js +1 -1
  792. package/src/utils/color-utils.js +1 -1
  793. package/src/utils/data-scale-utils.js +1 -1
  794. package/src/utils/data-utils.js +1 -1
  795. package/src/utils/dataset-utils.js +1 -1
  796. package/src/utils/dom-to-image.js +1 -1
  797. package/src/utils/dom-utils.js +1 -1
  798. package/src/utils/export-utils.js +1 -1
  799. package/src/utils/filter-utils.js +1 -1
  800. package/src/utils/gl-utils.js +1 -1
  801. package/src/utils/gpu-filter-utils.js +1 -1
  802. package/src/utils/index.js +1 -1
  803. package/src/utils/interaction-utils.js +1 -1
  804. package/src/utils/layer-utils.js +1 -1
  805. package/src/utils/locale-utils.js +1 -1
  806. package/src/utils/map-info-utils.js +1 -1
  807. package/src/utils/map-style-utils/mapbox-gl-style-editor.js +1 -1
  808. package/src/utils/map-style-utils/mapbox-utils.js +1 -1
  809. package/src/utils/mapbox-utils.js +1 -1
  810. package/src/utils/notifications-utils.js +1 -1
  811. package/src/utils/observe-dimensions.js +1 -1
  812. package/src/utils/projection-utils.js +1 -1
  813. package/src/utils/searcher-utils.js +1 -1
  814. package/src/utils/split-map-utils.js +1 -1
  815. package/src/utils/table-utils/data-container-utils.js +1 -1
  816. package/src/utils/table-utils/data-row.js +1 -1
  817. package/src/utils/table-utils/index.js +1 -1
  818. package/src/utils/table-utils/indexed-data-container.js +1 -1
  819. package/src/utils/table-utils/kepler-table.js +1 -1
  820. package/src/utils/table-utils/row-data-container.js +1 -1
  821. package/src/utils/utils.js +1 -1
  822. package/styles.js +1 -1
  823. package/umd/keplergl.min.js +26 -26
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -418,6 +418,10 @@ export default function MapContainerFactory(MapPopover, MapControl, Editor) {
418
418
  deckGlLayers = deckGlLayers.concat(dataLayers);
419
419
  }
420
420
 
421
+ if (this.props.deckGlProps?.layersOnTop) {
422
+ deckGlLayers = deckGlLayers.concat(this.props.deckGlProps.layersOnTop);
423
+ }
424
+
421
425
  if (mapStyle.visibleLayerGroups['3d building']) {
422
426
  deckGlLayers.push(
423
427
  new ThreeDBuildingLayer({
@@ -436,6 +440,8 @@ export default function MapContainerFactory(MapPopover, MapControl, Editor) {
436
440
  <DeckGL
437
441
  {...this.props.deckGlProps}
438
442
  viewState={mapState}
443
+ controller={true}
444
+ onViewStateChange={({viewState}) => this._onViewportChange(viewState)}
439
445
  id="default-deckgl-overlay"
440
446
  layers={deckGlLayers}
441
447
  onBeforeRender={this._onBeforeRender}
@@ -526,7 +532,6 @@ export default function MapContainerFactory(MapPopover, MapControl, Editor) {
526
532
  preserveDrawingBuffer: true,
527
533
  mapboxApiAccessToken,
528
534
  mapboxApiUrl,
529
- onViewportChange: this._onViewportChange,
530
535
  transformRequest
531
536
  };
532
537
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,9 @@ const propTypes = {
27
27
  height: PropTypes.number,
28
28
  className: PropTypes.string,
29
29
  isSelected: PropTypes.bool,
30
- isReversed: PropTypes.bool
30
+ isReversed: PropTypes.bool,
31
+ children: PropTypes.node,
32
+ rootProps: PropTypes.object
31
33
  };
32
34
 
33
35
  const defaultProps = {
@@ -67,13 +69,18 @@ const StyledColorBlock = styled.div.attrs({
67
69
  flex-grow: 1;
68
70
  `;
69
71
 
70
- const ColorPalette = ({colors, height, className, isSelected, isReversed}) => (
71
- <PaletteContainer className={className} isSelected={isSelected}>
72
+ const ColorPalette = ({colors, height, className, isSelected, isReversed, children, rootProps}) => (
73
+ <PaletteContainer
74
+ className={className}
75
+ isSelected={isSelected}
76
+ {...(Boolean(rootProps) && rootProps)}
77
+ >
72
78
  <PaletteWrapper style={{height, transform: `scale(${isReversed ? -1 : 1}, 1)`}}>
73
79
  {colors.map((color, index) => (
74
80
  <StyledColorBlock key={`${color}-${index}`} style={{backgroundColor: color}} />
75
81
  ))}
76
82
  </PaletteWrapper>
83
+ {Boolean(children) && children}
77
84
  </PaletteContainer>
78
85
  );
79
86
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@ import styled from 'styled-components';
25
25
  import {createSelector} from 'reselect';
26
26
 
27
27
  import ItemSelector from 'components/common/item-selector/item-selector';
28
- import {PanelLabel} from 'components/common/styled-components';
28
+ import {PanelLabel, Button, Tooltip} from 'components/common/styled-components';
29
29
  import Switch from 'components/common/switch';
30
30
  import ColorPalette from './color-palette';
31
31
  import CustomPalette from './custom-palette';
@@ -33,12 +33,13 @@ import {COLOR_RANGES} from 'constants/color-ranges';
33
33
  import {numberSort} from 'utils/data-utils';
34
34
  import {reverseColorRange} from 'utils/color-utils';
35
35
  import {FormattedMessage} from 'localization';
36
+ import {SwapHorizontal} from 'components/common/icons';
36
37
 
37
- export const ALL_TYPES = uniq(
38
- COLOR_RANGES.map(c => c.type)
39
- .filter(ctype => ctype)
40
- .concat(['all', 'custom'])
41
- );
38
+ export const ALL_TYPES = uniq([
39
+ 'all',
40
+ ...COLOR_RANGES.map(c => c.type).filter(ctype => ctype),
41
+ 'custom'
42
+ ]);
42
43
 
43
44
  export const ALL_STEPS = uniq(COLOR_RANGES.map(d => d.colors.length)).sort(numberSort);
44
45
 
@@ -66,8 +67,15 @@ const StyledPaletteConfig = styled.div`
66
67
  .item-selector .item-selector__dropdown {
67
68
  ${props => props.theme.secondaryInput};
68
69
  }
70
+ .color-palette__config__button {
71
+ svg {
72
+ margin: 0;
73
+ }
74
+ }
69
75
  `;
70
76
 
77
+ const CONFIG_SETTINGS_CUSTOM_REVERSED_BUTTON_TYPE = 'custom-reversed-button';
78
+
71
79
  const CONFIG_SETTINGS = {
72
80
  type: {
73
81
  type: 'select',
@@ -78,12 +86,7 @@ const CONFIG_SETTINGS = {
78
86
  options: ALL_STEPS
79
87
  },
80
88
  reversed: {
81
- type: 'switch',
82
- options: [true, false]
83
- },
84
- custom: {
85
- label: 'customPalette',
86
- type: 'switch',
89
+ type: CONFIG_SETTINGS_CUSTOM_REVERSED_BUTTON_TYPE,
87
90
  options: [true, false]
88
91
  }
89
92
  };
@@ -122,7 +125,10 @@ export default class ColorRangeSelect extends Component {
122
125
  );
123
126
 
124
127
  _updateConfig = ({key, value}) => {
125
- this._setColorRangeConfig({[key]: value});
128
+ this._setColorRangeConfig({
129
+ [key]: value,
130
+ ...(key === 'type' && {custom: value === 'custom'})
131
+ });
126
132
  };
127
133
 
128
134
  _onSetCustomPalette = config => {
@@ -157,16 +163,21 @@ export default class ColorRangeSelect extends Component {
157
163
 
158
164
  return (
159
165
  <StyledColorRangeSelector>
160
- <StyledColorConfig>
161
- {(colorRangeConfig.custom ? ['custom'] : Object.keys(colorRangeConfig)).map(key => (
162
- <PaletteConfig
163
- key={key}
164
- label={CONFIG_SETTINGS[key].label || key}
165
- config={CONFIG_SETTINGS[key]}
166
- value={colorRangeConfig[key]}
167
- onChange={value => this._updateConfig({key, value})}
168
- />
169
- ))}
166
+ <StyledColorConfig className="color-range-selector__config">
167
+ {Object.keys(colorRangeConfig)
168
+ .filter(
169
+ key =>
170
+ Boolean(CONFIG_SETTINGS[key]) && (colorRangeConfig.custom ? key === 'type' : true)
171
+ )
172
+ .map(key => (
173
+ <PaletteConfig
174
+ key={key}
175
+ label={CONFIG_SETTINGS[key].label || key}
176
+ config={CONFIG_SETTINGS[key]}
177
+ value={colorRangeConfig[key]}
178
+ onChange={value => this._updateConfig({key, value})}
179
+ />
180
+ ))}
170
181
  </StyledColorConfig>
171
182
 
172
183
  {colorRangeConfig.custom ? (
@@ -193,11 +204,16 @@ export default class ColorRangeSelect extends Component {
193
204
  }
194
205
 
195
206
  export const PaletteConfig = ({label, value, config: {type, options}, onChange}) => (
196
- <StyledPaletteConfig className="color-palette__config" onClick={e => e.stopPropagation()}>
207
+ <StyledPaletteConfig
208
+ className={`color-palette__config color-palette__config--${label}`}
209
+ onClick={e => e.stopPropagation()}
210
+ >
197
211
  <div className="color-palette__config__label">
198
- <PanelLabel>
199
- <FormattedMessage id={`color.${label}`} />
200
- </PanelLabel>
212
+ {type !== CONFIG_SETTINGS_CUSTOM_REVERSED_BUTTON_TYPE && (
213
+ <PanelLabel>
214
+ <FormattedMessage id={`color.${label}`} />
215
+ </PanelLabel>
216
+ )}
201
217
  </div>
202
218
  {type === 'select' && (
203
219
  <div className="color-palette__config__select">
@@ -213,6 +229,22 @@ export const PaletteConfig = ({label, value, config: {type, options}, onChange})
213
229
  {type === 'switch' && (
214
230
  <Switch checked={value} id={`${label}-toggle`} onChange={() => onChange(!value)} secondary />
215
231
  )}
232
+ {type === CONFIG_SETTINGS_CUSTOM_REVERSED_BUTTON_TYPE && (
233
+ <Button
234
+ className={`color-palette__config__button ${
235
+ value ? 'color-palette__config__button--active' : ''
236
+ }`}
237
+ data-tip
238
+ data-for={`${label}-tooltip`}
239
+ {...(!value && {link: true})}
240
+ onClick={() => onChange(!value)}
241
+ >
242
+ <SwapHorizontal />
243
+ <Tooltip id={`${label}-tooltip`} effect="solid" place="top">
244
+ {label}
245
+ </Tooltip>
246
+ </Button>
247
+ )}
216
248
  </StyledPaletteConfig>
217
249
  );
218
250
 
@@ -237,7 +269,15 @@ export const ColorPaletteGroup = ({reversed, onSelect, selected, colorRanges}) =
237
269
  colors={colorRange.colors}
238
270
  isReversed={reversed}
239
271
  isSelected={colorRange.name === selected.name && reversed === Boolean(selected.reversed)}
240
- />
272
+ rootProps={{
273
+ 'data-tip': true,
274
+ 'data-for': `color-range-${i}-tooltip`
275
+ }}
276
+ >
277
+ <Tooltip id={`color-range-${i}-tooltip`} effect="solid" place="top">
278
+ {colorRange.name}
279
+ </Tooltip>
280
+ </ColorPalette>
241
281
  </StyledColorRange>
242
282
  ))}
243
283
  </div>
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2021 Uber Technologies, Inc.
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
2
  //
3
3
  // Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  // of this software and associated documentation files (the "Software"), to deal