@kepler.gl/components 3.0.0-alpha.2 → 3.1.0-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.
- package/package.json +26 -27
- package/dist/bottom-widget.d.ts +0 -19
- package/dist/bottom-widget.js +0 -166
- package/dist/common/action-panel.d.ts +0 -27
- package/dist/common/action-panel.js +0 -132
- package/dist/common/animation-control/animation-control.d.ts +0 -25
- package/dist/common/animation-control/animation-control.js +0 -113
- package/dist/common/animation-control/animation-controller.d.ts +0 -19
- package/dist/common/animation-control/animation-controller.js +0 -318
- package/dist/common/animation-control/animation-speed-slider.d.ts +0 -12
- package/dist/common/animation-control/animation-speed-slider.js +0 -100
- package/dist/common/animation-control/animation-window-control.d.ts +0 -20
- package/dist/common/animation-control/animation-window-control.js +0 -68
- package/dist/common/animation-control/floating-time-display.d.ts +0 -9
- package/dist/common/animation-control/floating-time-display.js +0 -161
- package/dist/common/animation-control/play-control.d.ts +0 -12
- package/dist/common/animation-control/play-control.js +0 -63
- package/dist/common/animation-control/playback-controls.d.ts +0 -55
- package/dist/common/animation-control/playback-controls.js +0 -182
- package/dist/common/animation-control/reset-control.d.ts +0 -9
- package/dist/common/animation-control/reset-control.js +0 -53
- package/dist/common/animation-control/speed-control.d.ts +0 -12
- package/dist/common/animation-control/speed-control.js +0 -68
- package/dist/common/animation-control/window-action-control.d.ts +0 -11
- package/dist/common/animation-control/window-action-control.js +0 -69
- package/dist/common/checkbox.d.ts +0 -35
- package/dist/common/checkbox.js +0 -139
- package/dist/common/color-legend.d.ts +0 -39
- package/dist/common/color-legend.js +0 -231
- package/dist/common/data-table/button.d.ts +0 -8
- package/dist/common/data-table/button.js +0 -46
- package/dist/common/data-table/canvas.d.ts +0 -2
- package/dist/common/data-table/canvas.js +0 -32
- package/dist/common/data-table/cell-size.d.ts +0 -43
- package/dist/common/data-table/cell-size.js +0 -206
- package/dist/common/data-table/display-format.d.ts +0 -25
- package/dist/common/data-table/display-format.js +0 -149
- package/dist/common/data-table/grid.d.ts +0 -10
- package/dist/common/data-table/grid.js +0 -139
- package/dist/common/data-table/header-cell.d.ts +0 -28
- package/dist/common/data-table/header-cell.js +0 -169
- package/dist/common/data-table/index.d.ts +0 -101
- package/dist/common/data-table/index.js +0 -523
- package/dist/common/data-table/option-dropdown.d.ts +0 -28
- package/dist/common/data-table/option-dropdown.js +0 -195
- package/dist/common/dataset-label.d.ts +0 -10
- package/dist/common/dataset-label.js +0 -36
- package/dist/common/error-boundary.d.ts +0 -16
- package/dist/common/error-boundary.js +0 -83
- package/dist/common/field-selector.d.ts +0 -50
- package/dist/common/field-selector.js +0 -202
- package/dist/common/field-token.d.ts +0 -58
- package/dist/common/field-token.js +0 -54
- package/dist/common/file-uploader/file-drop.d.ts +0 -54
- package/dist/common/file-uploader/file-drop.js +0 -232
- package/dist/common/file-uploader/file-upload-progress.d.ts +0 -8
- package/dist/common/file-uploader/file-upload-progress.js +0 -103
- package/dist/common/file-uploader/file-upload.d.ts +0 -23
- package/dist/common/file-uploader/file-upload.js +0 -304
- package/dist/common/file-uploader/upload-button.d.ts +0 -8
- package/dist/common/file-uploader/upload-button.js +0 -74
- package/dist/common/flex-container.d.ts +0 -3
- package/dist/common/flex-container.js +0 -23
- package/dist/common/histogram-plot.d.ts +0 -3
- package/dist/common/histogram-plot.js +0 -120
- package/dist/common/icon-button.d.ts +0 -13
- package/dist/common/icon-button.js +0 -32
- package/dist/common/icons/add.d.ts +0 -9
- package/dist/common/icons/add.js +0 -58
- package/dist/common/icons/anchor_window.d.ts +0 -11
- package/dist/common/icons/anchor_window.js +0 -39
- package/dist/common/icons/arrow-down-alt.d.ts +0 -9
- package/dist/common/icons/arrow-down-alt.js +0 -58
- package/dist/common/icons/arrow-down-small.d.ts +0 -14
- package/dist/common/icons/arrow-down-small.js +0 -72
- package/dist/common/icons/arrow-down-solid.d.ts +0 -9
- package/dist/common/icons/arrow-down-solid.js +0 -58
- package/dist/common/icons/arrow-down.d.ts +0 -9
- package/dist/common/icons/arrow-down.js +0 -58
- package/dist/common/icons/arrow-left.d.ts +0 -9
- package/dist/common/icons/arrow-left.js +0 -61
- package/dist/common/icons/arrow-right.d.ts +0 -9
- package/dist/common/icons/arrow-right.js +0 -58
- package/dist/common/icons/arrow-up-alt.d.ts +0 -9
- package/dist/common/icons/arrow-up-alt.js +0 -59
- package/dist/common/icons/arrow-up-solid.d.ts +0 -9
- package/dist/common/icons/arrow-up-solid.js +0 -58
- package/dist/common/icons/arrow-up.d.ts +0 -9
- package/dist/common/icons/arrow-up.js +0 -58
- package/dist/common/icons/base.d.ts +0 -29
- package/dist/common/icons/base.js +0 -96
- package/dist/common/icons/bug.d.ts +0 -9
- package/dist/common/icons/bug.js +0 -60
- package/dist/common/icons/calendar.d.ts +0 -10
- package/dist/common/icons/calendar.js +0 -66
- package/dist/common/icons/cancel.d.ts +0 -9
- package/dist/common/icons/cancel.js +0 -58
- package/dist/common/icons/checkmark.d.ts +0 -10
- package/dist/common/icons/checkmark.js +0 -65
- package/dist/common/icons/clipboard.d.ts +0 -9
- package/dist/common/icons/clipboard.js +0 -59
- package/dist/common/icons/clock.d.ts +0 -9
- package/dist/common/icons/clock.js +0 -60
- package/dist/common/icons/close.d.ts +0 -9
- package/dist/common/icons/close.js +0 -63
- package/dist/common/icons/code-alt.d.ts +0 -9
- package/dist/common/icons/code-alt.js +0 -62
- package/dist/common/icons/copy.d.ts +0 -9
- package/dist/common/icons/copy.js +0 -64
- package/dist/common/icons/crosshairs.d.ts +0 -9
- package/dist/common/icons/crosshairs.js +0 -62
- package/dist/common/icons/cube-3d.d.ts +0 -9
- package/dist/common/icons/cube-3d.js +0 -62
- package/dist/common/icons/cursor-click.d.ts +0 -9
- package/dist/common/icons/cursor-click.js +0 -62
- package/dist/common/icons/cursor-point.d.ts +0 -14
- package/dist/common/icons/cursor-point.js +0 -69
- package/dist/common/icons/data-table.d.ts +0 -10
- package/dist/common/icons/data-table.js +0 -59
- package/dist/common/icons/db.d.ts +0 -10
- package/dist/common/icons/db.js +0 -59
- package/dist/common/icons/delete.d.ts +0 -9
- package/dist/common/icons/delete.js +0 -60
- package/dist/common/icons/docs.d.ts +0 -9
- package/dist/common/icons/docs.js +0 -74
- package/dist/common/icons/drag-n-drop.d.ts +0 -9
- package/dist/common/icons/drag-n-drop.js +0 -60
- package/dist/common/icons/draw-polygon.d.ts +0 -10
- package/dist/common/icons/draw-polygon.js +0 -78
- package/dist/common/icons/effects/brightness-contrast.d.ts +0 -14
- package/dist/common/icons/effects/brightness-contrast.js +0 -88
- package/dist/common/icons/effects/color-halftone.d.ts +0 -14
- package/dist/common/icons/effects/color-halftone.js +0 -127
- package/dist/common/icons/effects/dot-screen.d.ts +0 -14
- package/dist/common/icons/effects/dot-screen.js +0 -122
- package/dist/common/icons/effects/edge-work.d.ts +0 -14
- package/dist/common/icons/effects/edge-work.js +0 -81
- package/dist/common/icons/effects/hexagonal-pixelate.d.ts +0 -14
- package/dist/common/icons/effects/hexagonal-pixelate.js +0 -148
- package/dist/common/icons/effects/hue-saturation.d.ts +0 -14
- package/dist/common/icons/effects/hue-saturation.js +0 -79
- package/dist/common/icons/effects/ink.d.ts +0 -14
- package/dist/common/icons/effects/ink.js +0 -78
- package/dist/common/icons/effects/light-and-shadow.d.ts +0 -14
- package/dist/common/icons/effects/light-and-shadow.js +0 -67
- package/dist/common/icons/effects/magic-wand.d.ts +0 -14
- package/dist/common/icons/effects/magic-wand.js +0 -79
- package/dist/common/icons/effects/magnify.d.ts +0 -14
- package/dist/common/icons/effects/magnify.js +0 -86
- package/dist/common/icons/effects/noise.d.ts +0 -14
- package/dist/common/icons/effects/noise.js +0 -132
- package/dist/common/icons/effects/sepia.d.ts +0 -14
- package/dist/common/icons/effects/sepia.js +0 -79
- package/dist/common/icons/effects/tilt-shift.d.ts +0 -14
- package/dist/common/icons/effects/tilt-shift.js +0 -88
- package/dist/common/icons/effects/triangle-blur.d.ts +0 -14
- package/dist/common/icons/effects/triangle-blur.js +0 -83
- package/dist/common/icons/effects/vibrance.d.ts +0 -14
- package/dist/common/icons/effects/vibrance.js +0 -79
- package/dist/common/icons/effects/vignette.d.ts +0 -14
- package/dist/common/icons/effects/vignette.js +0 -72
- package/dist/common/icons/effects/zoom-blur.d.ts +0 -14
- package/dist/common/icons/effects/zoom-blur.js +0 -107
- package/dist/common/icons/email.d.ts +0 -9
- package/dist/common/icons/email.js +0 -62
- package/dist/common/icons/expand.d.ts +0 -9
- package/dist/common/icons/expand.js +0 -60
- package/dist/common/icons/eye-seen.d.ts +0 -9
- package/dist/common/icons/eye-seen.js +0 -60
- package/dist/common/icons/eye-unseen.d.ts +0 -9
- package/dist/common/icons/eye-unseen.js +0 -60
- package/dist/common/icons/file-type.d.ts +0 -8
- package/dist/common/icons/file-type.js +0 -45
- package/dist/common/icons/file.d.ts +0 -9
- package/dist/common/icons/file.js +0 -58
- package/dist/common/icons/files.d.ts +0 -9
- package/dist/common/icons/files.js +0 -60
- package/dist/common/icons/filter-funnel.d.ts +0 -9
- package/dist/common/icons/filter-funnel.js +0 -58
- package/dist/common/icons/free-window.d.ts +0 -11
- package/dist/common/icons/free-window.js +0 -39
- package/dist/common/icons/gear.d.ts +0 -9
- package/dist/common/icons/gear.js +0 -60
- package/dist/common/icons/globe.d.ts +0 -15
- package/dist/common/icons/globe.js +0 -72
- package/dist/common/icons/hash.d.ts +0 -9
- package/dist/common/icons/hash.js +0 -58
- package/dist/common/icons/histogram.d.ts +0 -9
- package/dist/common/icons/histogram.js +0 -59
- package/dist/common/icons/index.d.ts +0 -102
- package/dist/common/icons/index.js +0 -812
- package/dist/common/icons/info.d.ts +0 -12
- package/dist/common/icons/info.js +0 -72
- package/dist/common/icons/layers.d.ts +0 -9
- package/dist/common/icons/layers.js +0 -58
- package/dist/common/icons/left-arrow.d.ts +0 -9
- package/dist/common/icons/left-arrow.js +0 -62
- package/dist/common/icons/legend.d.ts +0 -9
- package/dist/common/icons/legend.js +0 -58
- package/dist/common/icons/line-chart.d.ts +0 -9
- package/dist/common/icons/line-chart.js +0 -58
- package/dist/common/icons/location-marker.d.ts +0 -14
- package/dist/common/icons/location-marker.js +0 -77
- package/dist/common/icons/login.d.ts +0 -9
- package/dist/common/icons/login.js +0 -61
- package/dist/common/icons/logout.d.ts +0 -9
- package/dist/common/icons/logout.js +0 -60
- package/dist/common/icons/map-icon.d.ts +0 -11
- package/dist/common/icons/map-icon.js +0 -66
- package/dist/common/icons/map.d.ts +0 -11
- package/dist/common/icons/map.js +0 -66
- package/dist/common/icons/messages.d.ts +0 -9
- package/dist/common/icons/messages.js +0 -58
- package/dist/common/icons/minus.d.ts +0 -9
- package/dist/common/icons/minus.js +0 -58
- package/dist/common/icons/moon.d.ts +0 -14
- package/dist/common/icons/moon.js +0 -77
- package/dist/common/icons/order-by-dataset.d.ts +0 -12
- package/dist/common/icons/order-by-dataset.js +0 -39
- package/dist/common/icons/order-by-list.d.ts +0 -12
- package/dist/common/icons/order-by-list.js +0 -31
- package/dist/common/icons/pause.d.ts +0 -9
- package/dist/common/icons/pause.js +0 -58
- package/dist/common/icons/picture.d.ts +0 -9
- package/dist/common/icons/picture.js +0 -60
- package/dist/common/icons/pin.d.ts +0 -9
- package/dist/common/icons/pin.js +0 -66
- package/dist/common/icons/play.d.ts +0 -9
- package/dist/common/icons/play.js +0 -58
- package/dist/common/icons/polygon.d.ts +0 -10
- package/dist/common/icons/polygon.js +0 -80
- package/dist/common/icons/rectangle.d.ts +0 -10
- package/dist/common/icons/rectangle.js +0 -81
- package/dist/common/icons/reduce.d.ts +0 -9
- package/dist/common/icons/reduce.js +0 -61
- package/dist/common/icons/reset.d.ts +0 -9
- package/dist/common/icons/reset.js +0 -58
- package/dist/common/icons/rocket.d.ts +0 -9
- package/dist/common/icons/rocket.js +0 -58
- package/dist/common/icons/save.d.ts +0 -9
- package/dist/common/icons/save.js +0 -60
- package/dist/common/icons/save2.d.ts +0 -9
- package/dist/common/icons/save2.js +0 -64
- package/dist/common/icons/search.d.ts +0 -9
- package/dist/common/icons/search.js +0 -60
- package/dist/common/icons/settings.d.ts +0 -9
- package/dist/common/icons/settings.js +0 -60
- package/dist/common/icons/share.d.ts +0 -9
- package/dist/common/icons/share.js +0 -58
- package/dist/common/icons/split.d.ts +0 -9
- package/dist/common/icons/split.js +0 -86
- package/dist/common/icons/square-select.d.ts +0 -9
- package/dist/common/icons/square-select.js +0 -60
- package/dist/common/icons/sun.d.ts +0 -14
- package/dist/common/icons/sun.js +0 -93
- package/dist/common/icons/sunrise.d.ts +0 -14
- package/dist/common/icons/sunrise.js +0 -89
- package/dist/common/icons/sunset.d.ts +0 -14
- package/dist/common/icons/sunset.js +0 -89
- package/dist/common/icons/trash.d.ts +0 -9
- package/dist/common/icons/trash.js +0 -60
- package/dist/common/icons/vert-dots.d.ts +0 -9
- package/dist/common/icons/vert-dots.js +0 -96
- package/dist/common/icons/vert-three-dots.d.ts +0 -9
- package/dist/common/icons/vert-three-dots.js +0 -71
- package/dist/common/icons/warning-sign.d.ts +0 -15
- package/dist/common/icons/warning-sign.js +0 -80
- package/dist/common/icons/warning.d.ts +0 -10
- package/dist/common/icons/warning.js +0 -73
- package/dist/common/image-preview.d.ts +0 -15
- package/dist/common/image-preview.js +0 -71
- package/dist/common/index.d.ts +0 -3
- package/dist/common/index.js +0 -273
- package/dist/common/info-helper.d.ts +0 -10
- package/dist/common/info-helper.js +0 -75
- package/dist/common/item-selector/accessor.d.ts +0 -7
- package/dist/common/item-selector/accessor.js +0 -39
- package/dist/common/item-selector/chickleted-input.d.ts +0 -22
- package/dist/common/item-selector/chickleted-input.js +0 -176
- package/dist/common/item-selector/dropdown-list.d.ts +0 -72
- package/dist/common/item-selector/dropdown-list.js +0 -295
- package/dist/common/item-selector/item-selector.d.ts +0 -47
- package/dist/common/item-selector/item-selector.js +0 -351
- package/dist/common/item-selector/typeahead.d.ts +0 -117
- package/dist/common/item-selector/typeahead.js +0 -498
- package/dist/common/line-chart.d.ts +0 -34
- package/dist/common/line-chart.js +0 -126
- package/dist/common/loading-spinner.d.ts +0 -9
- package/dist/common/loading-spinner.js +0 -56
- package/dist/common/logo.d.ts +0 -8
- package/dist/common/logo.js +0 -82
- package/dist/common/map-layer-selector.d.ts +0 -13
- package/dist/common/map-layer-selector.js +0 -48
- package/dist/common/modal.d.ts +0 -64
- package/dist/common/modal.js +0 -208
- package/dist/common/portaled.d.ts +0 -578
- package/dist/common/portaled.js +0 -340
- package/dist/common/progress-bar.d.ts +0 -12
- package/dist/common/progress-bar.js +0 -54
- package/dist/common/range-brush.d.ts +0 -19
- package/dist/common/range-brush.js +0 -326
- package/dist/common/range-plot.d.ts +0 -39
- package/dist/common/range-plot.js +0 -137
- package/dist/common/range-slider.d.ts +0 -34
- package/dist/common/range-slider.js +0 -329
- package/dist/common/slider/mouse-event.d.ts +0 -27
- package/dist/common/slider/mouse-event.js +0 -129
- package/dist/common/slider/slider-bar-handle.d.ts +0 -29
- package/dist/common/slider/slider-bar-handle.js +0 -115
- package/dist/common/slider/slider-handle.d.ts +0 -33
- package/dist/common/slider/slider-handle.js +0 -162
- package/dist/common/slider/slider.d.ts +0 -72
- package/dist/common/slider/slider.js +0 -247
- package/dist/common/styled-components.d.ts +0 -128
- package/dist/common/styled-components.js +0 -531
- package/dist/common/switch.d.ts +0 -16
- package/dist/common/switch.js +0 -30
- package/dist/common/time-range-slider-time-title.d.ts +0 -9
- package/dist/common/time-range-slider-time-title.js +0 -74
- package/dist/common/time-range-slider.d.ts +0 -35
- package/dist/common/time-range-slider.js +0 -131
- package/dist/common/time-slider-marker.d.ts +0 -21
- package/dist/common/time-slider-marker.js +0 -141
- package/dist/common/timeline-slider.d.ts +0 -13
- package/dist/common/timeline-slider.js +0 -153
- package/dist/common/tippy-tooltip.d.ts +0 -6
- package/dist/common/tippy-tooltip.js +0 -134
- package/dist/common/toolbar-item.d.ts +0 -14
- package/dist/common/toolbar-item.js +0 -73
- package/dist/common/toolbar.d.ts +0 -5
- package/dist/common/toolbar.js +0 -33
- package/dist/common/vertical-toolbar.d.ts +0 -3
- package/dist/common/vertical-toolbar.js +0 -22
- package/dist/connect/keplergl-connect.d.ts +0 -9
- package/dist/connect/keplergl-connect.js +0 -51
- package/dist/connect/with-local-selector.d.ts +0 -6
- package/dist/connect/with-local-selector.js +0 -110
- package/dist/container.d.ts +0 -39
- package/dist/container.js +0 -222
- package/dist/context.d.ts +0 -27
- package/dist/context.js +0 -49
- package/dist/dnd-context.d.ts +0 -13
- package/dist/dnd-context.js +0 -157
- package/dist/editor/editor.d.ts +0 -31
- package/dist/editor/editor.js +0 -253
- package/dist/editor/feature-action-panel.d.ts +0 -32
- package/dist/editor/feature-action-panel.js +0 -171
- package/dist/effects/compact-color-picker.d.ts +0 -10
- package/dist/effects/compact-color-picker.js +0 -130
- package/dist/effects/effect-configurator.d.ts +0 -17
- package/dist/effects/effect-configurator.js +0 -302
- package/dist/effects/effect-list.d.ts +0 -15
- package/dist/effects/effect-list.js +0 -153
- package/dist/effects/effect-manager.d.ts +0 -22
- package/dist/effects/effect-manager.js +0 -142
- package/dist/effects/effect-panel-header.d.ts +0 -45
- package/dist/effects/effect-panel-header.js +0 -206
- package/dist/effects/effect-panel.d.ts +0 -24
- package/dist/effects/effect-panel.js +0 -149
- package/dist/effects/effect-time-configurator.d.ts +0 -20
- package/dist/effects/effect-time-configurator.js +0 -340
- package/dist/effects/effect-time-selector.d.ts +0 -16
- package/dist/effects/effect-time-selector.js +0 -181
- package/dist/effects/effect-time-slider.d.ts +0 -34
- package/dist/effects/effect-time-slider.js +0 -220
- package/dist/effects/effect-type-dropdown-list.d.ts +0 -18
- package/dist/effects/effect-type-dropdown-list.js +0 -77
- package/dist/effects/effect-type-list-item.d.ts +0 -22
- package/dist/effects/effect-type-list-item.js +0 -105
- package/dist/effects/effect-type-selector.d.ts +0 -30
- package/dist/effects/effect-type-selector.js +0 -92
- package/dist/effects/side-panel-title.d.ts +0 -7
- package/dist/effects/side-panel-title.js +0 -47
- package/dist/effects/timezone-selector.d.ts +0 -19
- package/dist/effects/timezone-selector.js +0 -71
- package/dist/filter-animation-controller.d.ts +0 -17
- package/dist/filter-animation-controller.js +0 -73
- package/dist/filters/components.d.ts +0 -3
- package/dist/filters/components.js +0 -20
- package/dist/filters/filter-panels/filter-panel-with-field-select.d.ts +0 -10
- package/dist/filters/filter-panels/filter-panel-with-field-select.js +0 -90
- package/dist/filters/filter-panels/multi-select-filter-panel.d.ts +0 -9
- package/dist/filters/filter-panels/multi-select-filter-panel.js +0 -56
- package/dist/filters/filter-panels/new-filter-panel.d.ts +0 -12
- package/dist/filters/filter-panels/new-filter-panel.js +0 -78
- package/dist/filters/filter-panels/polygon-filter-panel.d.ts +0 -9
- package/dist/filters/filter-panels/polygon-filter-panel.js +0 -80
- package/dist/filters/filter-panels/range-filter-panel.d.ts +0 -9
- package/dist/filters/filter-panels/range-filter-panel.js +0 -56
- package/dist/filters/filter-panels/single-select-filter-panel.d.ts +0 -9
- package/dist/filters/filter-panels/single-select-filter-panel.js +0 -56
- package/dist/filters/filter-panels/time-range-filter-panel.d.ts +0 -8
- package/dist/filters/filter-panels/time-range-filter-panel.js +0 -84
- package/dist/filters/filter-panels/types.d.ts +0 -36
- package/dist/filters/filter-panels/types.js +0 -6
- package/dist/filters/index.d.ts +0 -7
- package/dist/filters/index.js +0 -64
- package/dist/filters/multi-select-filter.d.ts +0 -3
- package/dist/filters/multi-select-filter.js +0 -37
- package/dist/filters/polygon-filter.d.ts +0 -4
- package/dist/filters/polygon-filter.js +0 -88
- package/dist/filters/range-filter.d.ts +0 -8
- package/dist/filters/range-filter.js +0 -38
- package/dist/filters/single-select-filter.d.ts +0 -3
- package/dist/filters/single-select-filter.js +0 -46
- package/dist/filters/time-range-filter.d.ts +0 -29
- package/dist/filters/time-range-filter.js +0 -72
- package/dist/filters/time-widget-top.d.ts +0 -8
- package/dist/filters/time-widget-top.js +0 -103
- package/dist/filters/time-widget.d.ts +0 -10
- package/dist/filters/time-widget.js +0 -115
- package/dist/filters/types.d.ts +0 -58
- package/dist/filters/types.js +0 -6
- package/dist/geocoder/geocoder.d.ts +0 -31
- package/dist/geocoder/geocoder.js +0 -319
- package/dist/geocoder-panel.d.ts +0 -31
- package/dist/geocoder-panel.js +0 -232
- package/dist/hooks/use-cloud-list-provider.d.ts +0 -11
- package/dist/hooks/use-cloud-list-provider.js +0 -57
- package/dist/hooks/use-dnd-effects.d.ts +0 -9
- package/dist/hooks/use-dnd-effects.js +0 -88
- package/dist/hooks/use-dnd-layers.d.ts +0 -9
- package/dist/hooks/use-dnd-layers.js +0 -95
- package/dist/hooks/use-feature-flags.d.ts +0 -5
- package/dist/hooks/use-feature-flags.js +0 -21
- package/dist/index.d.ts +0 -233
- package/dist/index.js +0 -2514
- package/dist/injector.d.ts +0 -29
- package/dist/injector.js +0 -178
- package/dist/kepler-gl.d.ts +0 -323
- package/dist/kepler-gl.js +0 -603
- package/dist/layer-animation-controller.d.ts +0 -13
- package/dist/layer-animation-controller.js +0 -58
- package/dist/map/coordinate-info.d.ts +0 -7
- package/dist/map/coordinate-info.js +0 -51
- package/dist/map/effects/effect-control.d.ts +0 -16
- package/dist/map/effects/effect-control.js +0 -63
- package/dist/map/layer-hover-info.d.ts +0 -13
- package/dist/map/layer-hover-info.js +0 -224
- package/dist/map/layer-selector-panel.d.ts +0 -21
- package/dist/map/layer-selector-panel.js +0 -98
- package/dist/map/lazy-tippy.d.ts +0 -7
- package/dist/map/lazy-tippy.js +0 -74
- package/dist/map/locale-panel.d.ts +0 -16
- package/dist/map/locale-panel.js +0 -91
- package/dist/map/map-control-panel.d.ts +0 -19
- package/dist/map/map-control-panel.js +0 -152
- package/dist/map/map-control-toolbar.d.ts +0 -2
- package/dist/map/map-control-toolbar.js +0 -25
- package/dist/map/map-control-tooltip.d.ts +0 -8
- package/dist/map/map-control-tooltip.js +0 -41
- package/dist/map/map-control.d.ts +0 -53
- package/dist/map/map-control.js +0 -80
- package/dist/map/map-draw-panel.d.ts +0 -20
- package/dist/map/map-draw-panel.js +0 -114
- package/dist/map/map-legend-panel.d.ts +0 -35
- package/dist/map/map-legend-panel.js +0 -178
- package/dist/map/map-legend.d.ts +0 -55
- package/dist/map/map-legend.js +0 -254
- package/dist/map/map-popover-content.d.ts +0 -28
- package/dist/map/map-popover-content.js +0 -35
- package/dist/map/map-popover.d.ts +0 -33
- package/dist/map/map-popover.js +0 -276
- package/dist/map/split-map-button.d.ts +0 -20
- package/dist/map/split-map-button.js +0 -76
- package/dist/map/toggle-3d-button.d.ts +0 -17
- package/dist/map/toggle-3d-button.js +0 -65
- package/dist/map-container.d.ts +0 -72
- package/dist/map-container.js +0 -1003
- package/dist/map-view-state-context.d.ts +0 -17
- package/dist/map-view-state-context.js +0 -117
- package/dist/maps-layout.d.ts +0 -12
- package/dist/maps-layout.js +0 -64
- package/dist/modal-container.d.ts +0 -59
- package/dist/modal-container.js +0 -473
- package/dist/modals/add-map-style-modal.d.ts +0 -16
- package/dist/modals/add-map-style-modal.js +0 -242
- package/dist/modals/cloud-components/cloud-header.d.ts +0 -8
- package/dist/modals/cloud-components/cloud-header.js +0 -65
- package/dist/modals/cloud-components/cloud-item.d.ts +0 -5
- package/dist/modals/cloud-components/cloud-item.js +0 -72
- package/dist/modals/cloud-components/cloud-item.spec.d.ts +0 -1
- package/dist/modals/cloud-components/cloud-item.spec.js +0 -105
- package/dist/modals/cloud-components/cloud-maps.d.ts +0 -8
- package/dist/modals/cloud-components/cloud-maps.js +0 -63
- package/dist/modals/cloud-components/cloud-maps.spec.d.ts +0 -1
- package/dist/modals/cloud-components/cloud-maps.spec.js +0 -112
- package/dist/modals/cloud-components/provider-loading.d.ts +0 -2
- package/dist/modals/cloud-components/provider-loading.js +0 -29
- package/dist/modals/cloud-components/provider-select.d.ts +0 -7
- package/dist/modals/cloud-components/provider-select.js +0 -40
- package/dist/modals/cloud-tile.d.ts +0 -15
- package/dist/modals/cloud-tile.js +0 -253
- package/dist/modals/data-table-modal.d.ts +0 -37
- package/dist/modals/data-table-modal.js +0 -316
- package/dist/modals/delete-data-modal.d.ts +0 -10
- package/dist/modals/delete-data-modal.js +0 -54
- package/dist/modals/error-display.d.ts +0 -6
- package/dist/modals/error-display.js +0 -39
- package/dist/modals/export-data-modal.d.ts +0 -23
- package/dist/modals/export-data-modal.js +0 -212
- package/dist/modals/export-image-modal.d.ts +0 -16
- package/dist/modals/export-image-modal.js +0 -136
- package/dist/modals/export-map-modal/components.d.ts +0 -8
- package/dist/modals/export-map-modal/components.js +0 -51
- package/dist/modals/export-map-modal/export-html-map.d.ts +0 -12
- package/dist/modals/export-map-modal/export-html-map.js +0 -138
- package/dist/modals/export-map-modal/export-json-map.d.ts +0 -9
- package/dist/modals/export-map-modal/export-json-map.js +0 -100
- package/dist/modals/export-map-modal/export-map-modal.d.ts +0 -27
- package/dist/modals/export-map-modal/export-map-modal.js +0 -103
- package/dist/modals/image-modal-container.d.ts +0 -16
- package/dist/modals/image-modal-container.js +0 -64
- package/dist/modals/load-data-modal.d.ts +0 -36
- package/dist/modals/load-data-modal.js +0 -98
- package/dist/modals/load-storage-map.d.ts +0 -5
- package/dist/modals/load-storage-map.js +0 -95
- package/dist/modals/load-storage-map.spec.d.ts +0 -1
- package/dist/modals/load-storage-map.spec.js +0 -237
- package/dist/modals/loading-dialog.d.ts +0 -7
- package/dist/modals/loading-dialog.js +0 -48
- package/dist/modals/modal-dialog.d.ts +0 -2
- package/dist/modals/modal-dialog.js +0 -20
- package/dist/modals/modal-tabs.d.ts +0 -27
- package/dist/modals/modal-tabs.js +0 -99
- package/dist/modals/overwrite-map-modal.d.ts +0 -16
- package/dist/modals/overwrite-map-modal.js +0 -107
- package/dist/modals/save-map-modal.d.ts +0 -28
- package/dist/modals/save-map-modal.js +0 -206
- package/dist/modals/save-map-modal.spec.d.ts +0 -1
- package/dist/modals/save-map-modal.spec.js +0 -218
- package/dist/modals/share-map-modal.d.ts +0 -26
- package/dist/modals/share-map-modal.js +0 -195
- package/dist/modals/share-map-modal.spec.d.ts +0 -1
- package/dist/modals/share-map-modal.spec.js +0 -202
- package/dist/modals/status-panel.d.ts +0 -13
- package/dist/modals/status-panel.js +0 -83
- package/dist/modals/storage-map-viewer.d.ts +0 -21
- package/dist/modals/storage-map-viewer.js +0 -127
- package/dist/notification-panel/notification-item.d.ts +0 -67
- package/dist/notification-panel/notification-item.js +0 -185
- package/dist/notification-panel.d.ts +0 -13
- package/dist/notification-panel.js +0 -86
- package/dist/plot-container.d.ts +0 -24
- package/dist/plot-container.js +0 -268
- package/dist/side-panel/add-by-dataset-button.d.ts +0 -12
- package/dist/side-panel/add-by-dataset-button.js +0 -153
- package/dist/side-panel/cloud-storage-dropdown.d.ts +0 -6
- package/dist/side-panel/cloud-storage-dropdown.js +0 -46
- package/dist/side-panel/common/dataset-info.d.ts +0 -10
- package/dist/side-panel/common/dataset-info.js +0 -43
- package/dist/side-panel/common/dataset-tag.d.ts +0 -17
- package/dist/side-panel/common/dataset-tag.js +0 -72
- package/dist/side-panel/common/dataset-title.d.ts +0 -22
- package/dist/side-panel/common/dataset-title.js +0 -171
- package/dist/side-panel/common/source-data-catalog.d.ts +0 -28
- package/dist/side-panel/common/source-data-catalog.js +0 -62
- package/dist/side-panel/common/source-data-selector.d.ts +0 -8
- package/dist/side-panel/common/source-data-selector.js +0 -80
- package/dist/side-panel/common/types.d.ts +0 -43
- package/dist/side-panel/common/types.js +0 -6
- package/dist/side-panel/custom-panel.d.ts +0 -8
- package/dist/side-panel/custom-panel.js +0 -43
- package/dist/side-panel/filter-manager.d.ts +0 -32
- package/dist/side-panel/filter-manager.js +0 -223
- package/dist/side-panel/filter-panel/add-filter-button.d.ts +0 -8
- package/dist/side-panel/filter-panel/add-filter-button.js +0 -34
- package/dist/side-panel/filter-panel/filter-panel-header.d.ts +0 -24
- package/dist/side-panel/filter-panel/filter-panel-header.js +0 -67
- package/dist/side-panel/filter-panel/filter-panel.d.ts +0 -23
- package/dist/side-panel/filter-panel/filter-panel.js +0 -131
- package/dist/side-panel/interaction-manager.d.ts +0 -18
- package/dist/side-panel/interaction-manager.js +0 -54
- package/dist/side-panel/interaction-panel/brush-config.d.ts +0 -15
- package/dist/side-panel/interaction-panel/brush-config.js +0 -54
- package/dist/side-panel/interaction-panel/interaction-panel.d.ts +0 -21
- package/dist/side-panel/interaction-panel/interaction-panel.js +0 -143
- package/dist/side-panel/interaction-panel/tooltip-config/tooltip-chicklet.d.ts +0 -30
- package/dist/side-panel/interaction-panel/tooltip-config/tooltip-chicklet.js +0 -266
- package/dist/side-panel/interaction-panel/tooltip-config.d.ts +0 -37
- package/dist/side-panel/interaction-panel/tooltip-config.js +0 -176
- package/dist/side-panel/layer-manager.d.ts +0 -42
- package/dist/side-panel/layer-manager.js +0 -240
- package/dist/side-panel/layer-panel/add-layer-button.d.ts +0 -8
- package/dist/side-panel/layer-panel/add-layer-button.js +0 -34
- package/dist/side-panel/layer-panel/color-palette.d.ts +0 -11
- package/dist/side-panel/layer-panel/color-palette.js +0 -71
- package/dist/side-panel/layer-panel/color-range-selector.d.ts +0 -47
- package/dist/side-panel/layer-panel/color-range-selector.js +0 -270
- package/dist/side-panel/layer-panel/color-selector.d.ts +0 -33
- package/dist/side-panel/layer-panel/color-selector.js +0 -253
- package/dist/side-panel/layer-panel/column-selector.d.ts +0 -22
- package/dist/side-panel/layer-panel/column-selector.js +0 -65
- package/dist/side-panel/layer-panel/custom-palette.d.ts +0 -43
- package/dist/side-panel/layer-panel/custom-palette.js +0 -293
- package/dist/side-panel/layer-panel/custom-picker.d.ts +0 -24
- package/dist/side-panel/layer-panel/custom-picker.js +0 -116
- package/dist/side-panel/layer-panel/dataset-layer-group.d.ts +0 -22
- package/dist/side-panel/layer-panel/dataset-layer-group.js +0 -71
- package/dist/side-panel/layer-panel/dataset-layer-section.d.ts +0 -24
- package/dist/side-panel/layer-panel/dataset-layer-section.js +0 -70
- package/dist/side-panel/layer-panel/dataset-section.d.ts +0 -23
- package/dist/side-panel/layer-panel/dataset-section.js +0 -91
- package/dist/side-panel/layer-panel/dimension-scale-selector.d.ts +0 -10
- package/dist/side-panel/layer-panel/dimension-scale-selector.js +0 -44
- package/dist/side-panel/layer-panel/how-to-button.d.ts +0 -6
- package/dist/side-panel/layer-panel/how-to-button.js +0 -38
- package/dist/side-panel/layer-panel/layer-color-selector.d.ts +0 -42
- package/dist/side-panel/layer-panel/layer-color-selector.js +0 -118
- package/dist/side-panel/layer-panel/layer-column-config.d.ts +0 -25
- package/dist/side-panel/layer-panel/layer-column-config.js +0 -109
- package/dist/side-panel/layer-panel/layer-config-group.d.ts +0 -44
- package/dist/side-panel/layer-panel/layer-config-group.js +0 -176
- package/dist/side-panel/layer-panel/layer-configurator.d.ts +0 -75
- package/dist/side-panel/layer-panel/layer-configurator.js +0 -735
- package/dist/side-panel/layer-panel/layer-error-message.d.ts +0 -6
- package/dist/side-panel/layer-panel/layer-error-message.js +0 -38
- package/dist/side-panel/layer-panel/layer-list.d.ts +0 -20
- package/dist/side-panel/layer-panel/layer-list.js +0 -191
- package/dist/side-panel/layer-panel/layer-panel-header.d.ts +0 -75
- package/dist/side-panel/layer-panel/layer-panel-header.js +0 -310
- package/dist/side-panel/layer-panel/layer-panel.d.ts +0 -38
- package/dist/side-panel/layer-panel/layer-panel.js +0 -194
- package/dist/side-panel/layer-panel/layer-type-dropdown-list.d.ts +0 -22
- package/dist/side-panel/layer-panel/layer-type-dropdown-list.js +0 -89
- package/dist/side-panel/layer-panel/layer-type-list-item.d.ts +0 -22
- package/dist/side-panel/layer-panel/layer-type-list-item.js +0 -77
- package/dist/side-panel/layer-panel/layer-type-selector.d.ts +0 -22
- package/dist/side-panel/layer-panel/layer-type-selector.js +0 -73
- package/dist/side-panel/layer-panel/single-color-palette.d.ts +0 -9
- package/dist/side-panel/layer-panel/single-color-palette.js +0 -61
- package/dist/side-panel/layer-panel/text-label-panel.d.ts +0 -17
- package/dist/side-panel/layer-panel/text-label-panel.js +0 -198
- package/dist/side-panel/layer-panel/vis-config-by-field-selector.d.ts +0 -27
- package/dist/side-panel/layer-panel/vis-config-by-field-selector.js +0 -117
- package/dist/side-panel/layer-panel/vis-config-slider.d.ts +0 -20
- package/dist/side-panel/layer-panel/vis-config-slider.js +0 -190
- package/dist/side-panel/layer-panel/vis-config-switch.d.ts +0 -16
- package/dist/side-panel/layer-panel/vis-config-switch.js +0 -71
- package/dist/side-panel/map-manager.d.ts +0 -27
- package/dist/side-panel/map-manager.js +0 -159
- package/dist/side-panel/map-style-panel/map-layer-group-color-picker.d.ts +0 -14
- package/dist/side-panel/map-style-panel/map-layer-group-color-picker.js +0 -96
- package/dist/side-panel/map-style-panel/map-layer-group-item.d.ts +0 -29
- package/dist/side-panel/map-style-panel/map-layer-group-item.js +0 -111
- package/dist/side-panel/map-style-panel/map-layer-selector.d.ts +0 -23
- package/dist/side-panel/map-style-panel/map-layer-selector.js +0 -91
- package/dist/side-panel/map-style-panel/map-style-selector.d.ts +0 -23
- package/dist/side-panel/map-style-panel/map-style-selector.js +0 -112
- package/dist/side-panel/panel-dropdown.d.ts +0 -18
- package/dist/side-panel/panel-dropdown.js +0 -79
- package/dist/side-panel/panel-header-action.d.ts +0 -22
- package/dist/side-panel/panel-header-action.js +0 -87
- package/dist/side-panel/panel-header.d.ts +0 -84
- package/dist/side-panel/panel-header.js +0 -341
- package/dist/side-panel/panel-tab.d.ts +0 -20
- package/dist/side-panel/panel-tab.js +0 -68
- package/dist/side-panel/panel-title.d.ts +0 -7
- package/dist/side-panel/panel-title.js +0 -51
- package/dist/side-panel/panel-toggle.d.ts +0 -13
- package/dist/side-panel/panel-toggle.js +0 -60
- package/dist/side-panel/panel-view-list-toggle.d.ts +0 -47
- package/dist/side-panel/panel-view-list-toggle.js +0 -123
- package/dist/side-panel/side-bar.d.ts +0 -78
- package/dist/side-panel/side-bar.js +0 -159
- package/dist/side-panel.d.ts +0 -19
- package/dist/side-panel.js +0 -239
- package/dist/types.d.ts +0 -47
- package/dist/types.js +0 -6
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Provider } from '@kepler.gl/cloud-providers';
|
|
3
|
-
declare type CloudListProviderProps = PropsWithChildren<{
|
|
4
|
-
providers: Provider[];
|
|
5
|
-
}>;
|
|
6
|
-
export declare const CloudListProvider: React.FC<CloudListProviderProps>;
|
|
7
|
-
/**
|
|
8
|
-
* this hook provides access the CloudList provider context
|
|
9
|
-
*/
|
|
10
|
-
export declare const useCloudListProvider: () => import("../context").CloudProviderContextType;
|
|
11
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.useCloudListProvider = exports.CloudListProvider = void 0;
|
|
11
|
-
|
|
12
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _context = require("../context");
|
|
17
|
-
|
|
18
|
-
// SPDX-License-Identifier: MIT
|
|
19
|
-
// Copyright contributors to the kepler.gl project
|
|
20
|
-
var CloudListProvider = function CloudListProvider(_ref) {
|
|
21
|
-
var children = _ref.children,
|
|
22
|
-
_ref$providers = _ref.providers,
|
|
23
|
-
providers = _ref$providers === void 0 ? [] : _ref$providers;
|
|
24
|
-
|
|
25
|
-
var _useState = (0, _react.useState)(null),
|
|
26
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
27
|
-
currentCloudProvider = _useState2[0],
|
|
28
|
-
setCurrentCloudProvider = _useState2[1];
|
|
29
|
-
|
|
30
|
-
var cloudProviders = (0, _react.useRef)(providers);
|
|
31
|
-
var setProvider = (0, _react.useCallback)(function (provider) {
|
|
32
|
-
setCurrentCloudProvider(currentCloudProvider === provider ? null : provider);
|
|
33
|
-
}, [currentCloudProvider]);
|
|
34
|
-
var value = (0, _react.useMemo)(function () {
|
|
35
|
-
return {
|
|
36
|
-
provider: currentCloudProvider,
|
|
37
|
-
setProvider: setProvider,
|
|
38
|
-
cloudProviders: cloudProviders.current
|
|
39
|
-
};
|
|
40
|
-
}, [currentCloudProvider, setCurrentCloudProvider]);
|
|
41
|
-
return /*#__PURE__*/_react["default"].createElement(_context.CloudProviderContext.Provider, {
|
|
42
|
-
value: value
|
|
43
|
-
}, children);
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* this hook provides access the CloudList provider context
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
exports.CloudListProvider = CloudListProvider;
|
|
51
|
-
|
|
52
|
-
var useCloudListProvider = function useCloudListProvider() {
|
|
53
|
-
return (0, _react.useContext)(_context.CloudProviderContext);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.useCloudListProvider = useCloudListProvider;
|
|
57
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rcy91c2UtY2xvdWQtbGlzdC1wcm92aWRlci50c3giXSwibmFtZXMiOlsiQ2xvdWRMaXN0UHJvdmlkZXIiLCJjaGlsZHJlbiIsInByb3ZpZGVycyIsImN1cnJlbnRDbG91ZFByb3ZpZGVyIiwic2V0Q3VycmVudENsb3VkUHJvdmlkZXIiLCJjbG91ZFByb3ZpZGVycyIsInNldFByb3ZpZGVyIiwicHJvdmlkZXIiLCJ2YWx1ZSIsImN1cnJlbnQiLCJ1c2VDbG91ZExpc3RQcm92aWRlciIsIkNsb3VkUHJvdmlkZXJDb250ZXh0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBR0E7O0FBQ0E7O0FBSkE7QUFDQTtBQVVPLElBQU1BLGlC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GNvbnN0IHZhbHVlID0gdXNlTWVtbyhcbiAgICAoKSA9PiAoe1xuICAgICAgcHJvdmlkZXI6IGN1cnJlbnRDbG91ZFByb3ZpZGVyLFxuICAgICAgc2V0UHJvdmlkZXI6IHNldFByb3ZpZGVyLFxuICAgICAgY2xvdWRQcm92aWRlcnM6IGNsb3VkUHJvdmlkZXJzLmN1cnJlbnRcbiAgICB9KSxcbiAgICBbY3VycmVudENsb3VkUHJvdmlkZXIsIHNldEN1cnJlbnRDbG91ZFByb3ZpZGVyXVxuICApO1xuXG4gIHJldHVybiA8Q2xvdWRQcm92aWRlckNvbnRleHQuUHJvdmlkZXIgdmFsdWU9e3ZhbHVlfT57Y2hpbGRyZW59PC9DbG91ZFByb3ZpZGVyQ29udGV4dC5Qcm92aWRlcj47XG59O1xuXG4vKipcbiAqIHRoaXMgaG9vayBwcm92aWRlcyBhY2Nlc3MgdGhlIENsb3VkTGlzdCBwcm92aWRlciBjb250ZXh0XG4gKi9cbmV4cG9ydCBjb25zdCB1c2VDbG91ZExpc3RQcm92aWRlciA9ICgpID0+IHVzZUNvbnRleHQoQ2xvdWRQcm92aWRlckNvbnRleHQpO1xuIl19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
2
|
-
import { Effect } from '@kepler.gl/types';
|
|
3
|
-
declare type DndEffectsHook = {
|
|
4
|
-
activeEffect: Effect | undefined;
|
|
5
|
-
onDragStart: (event: DragStartEvent) => void;
|
|
6
|
-
onDragEnd: (event: DragEndEvent) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const useDndEffects: (effects: Effect[], effectOrder: string[]) => DndEffectsHook;
|
|
9
|
-
export default useDndEffects;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _react = require("react");
|
|
13
|
-
|
|
14
|
-
var _reactRedux = require("react-redux");
|
|
15
|
-
|
|
16
|
-
var _actions = require("@kepler.gl/actions");
|
|
17
|
-
|
|
18
|
-
var _constants = require("@kepler.gl/constants");
|
|
19
|
-
|
|
20
|
-
var _utils = require("@kepler.gl/utils");
|
|
21
|
-
|
|
22
|
-
// SPDX-License-Identifier: MIT
|
|
23
|
-
// Copyright contributors to the kepler.gl project
|
|
24
|
-
var useDndEffects = function useDndEffects(effects, effectOrder) {
|
|
25
|
-
var dispatch = (0, _reactRedux.useDispatch)();
|
|
26
|
-
|
|
27
|
-
var _useState = (0, _react.useState)(),
|
|
28
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
29
|
-
activeEffect = _useState2[0],
|
|
30
|
-
setActiveEffect = _useState2[1];
|
|
31
|
-
|
|
32
|
-
var onEffectDragStart = (0, _react.useCallback)(function (event) {
|
|
33
|
-
var active = event.active;
|
|
34
|
-
var newActiveEffect = effects.find(function (effect) {
|
|
35
|
-
return effect.id === active.id;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
if (newActiveEffect) {
|
|
39
|
-
setActiveEffect(newActiveEffect);
|
|
40
|
-
|
|
41
|
-
if (newActiveEffect.isConfigActive) {
|
|
42
|
-
dispatch((0, _actions.updateEffect)(newActiveEffect.id, {
|
|
43
|
-
isConfigActive: false
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [dispatch, effects]);
|
|
48
|
-
var onEffectDragEnd = (0, _react.useCallback)(function (event) {
|
|
49
|
-
var _over$data, _over$data$current;
|
|
50
|
-
|
|
51
|
-
var active = event.active,
|
|
52
|
-
over = event.over;
|
|
53
|
-
var activeEffectId = active.id;
|
|
54
|
-
var overType = over === null || over === void 0 ? void 0 : (_over$data = over.data) === null || _over$data === void 0 ? void 0 : (_over$data$current = _over$data.current) === null || _over$data$current === void 0 ? void 0 : _over$data$current.type;
|
|
55
|
-
|
|
56
|
-
if (!overType) {
|
|
57
|
-
setActiveEffect(undefined);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
switch (overType) {
|
|
62
|
-
// swaping effects
|
|
63
|
-
case _constants.SORTABLE_EFFECT_TYPE:
|
|
64
|
-
dispatch((0, _actions.reorderEffect)((0, _utils.reorderEffectOrder)(effectOrder, activeEffectId, over.id)));
|
|
65
|
-
break;
|
|
66
|
-
// moving effects within side panel
|
|
67
|
-
|
|
68
|
-
case _constants.SORTABLE_EFFECT_PANEL_TYPE:
|
|
69
|
-
// move effect to the end of the list
|
|
70
|
-
dispatch((0, _actions.reorderEffect)((0, _utils.reorderEffectOrder)(effectOrder, activeEffectId, effectOrder[effectOrder.length - 1])));
|
|
71
|
-
break;
|
|
72
|
-
|
|
73
|
-
default:
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
setActiveEffect(undefined);
|
|
78
|
-
}, [dispatch, effectOrder]);
|
|
79
|
-
return {
|
|
80
|
-
activeEffect: activeEffect,
|
|
81
|
-
onDragStart: onEffectDragStart,
|
|
82
|
-
onDragEnd: onEffectDragEnd
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
var _default = useDndEffects;
|
|
87
|
-
exports["default"] = _default;
|
|
88
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rcy91c2UtZG5kLWVmZmVjdHMudHN4Il0sIm5hbWVzIjpbInVzZURuZEVmZmVjdHMiLCJlZmZlY3RzIiwiZWZmZWN0T3JkZXIiLCJkaXNwYXRjaCIsImFjdGl2ZUVmZmVjdCIsInNld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RpdmVFZmZlY3RJZCwgZWZmZWN0T3JkZXJbZWZmZWN0T3JkZXIubGVuZ3RoIC0gMV0pXG4gICAgICAgICAgICApXG4gICAgICAgICAgKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICBicmVhaztcbiAgICAgIH1cblxuICAgICAgc2V0QWN0aXZlRWZmZWN0KHVuZGVmaW5lZCk7XG4gICAgfSxcbiAgICBbZGlzcGF0Y2gsIGVmZmVjdE9yZGVyXVxuICApO1xuXG4gIHJldHVybiB7YWN0aXZlRWZmZWN0LCBvbkRyYWdTdGFydDogb25FZmZlY3REcmFnU3RhcnQsIG9uRHJhZ0VuZDogb25FZmZlY3REcmFnRW5kfTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHVzZURuZEVmZmVjdHM7XG4iXX0=
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
2
|
-
import { Layer } from '@kepler.gl/layers';
|
|
3
|
-
declare type DndEffectsHook = {
|
|
4
|
-
activeLayer: Layer | undefined;
|
|
5
|
-
onDragStart: (event: DragStartEvent) => void;
|
|
6
|
-
onDragEnd: (event: DragEndEvent) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const useDndLayers: (layers: Layer[], layerOrder: string[]) => DndEffectsHook;
|
|
9
|
-
export default useDndLayers;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _react = require("react");
|
|
13
|
-
|
|
14
|
-
var _reactRedux = require("react-redux");
|
|
15
|
-
|
|
16
|
-
var _actions = require("@kepler.gl/actions");
|
|
17
|
-
|
|
18
|
-
var _constants = require("@kepler.gl/constants");
|
|
19
|
-
|
|
20
|
-
var _reducers = require("@kepler.gl/reducers");
|
|
21
|
-
|
|
22
|
-
// SPDX-License-Identifier: MIT
|
|
23
|
-
// Copyright contributors to the kepler.gl project
|
|
24
|
-
var useDndLayers = function useDndLayers(layers, layerOrder) {
|
|
25
|
-
var dispatch = (0, _reactRedux.useDispatch)();
|
|
26
|
-
|
|
27
|
-
var _useState = (0, _react.useState)(),
|
|
28
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
29
|
-
activeLayer = _useState2[0],
|
|
30
|
-
setActiveLayer = _useState2[1];
|
|
31
|
-
|
|
32
|
-
var onDragStart = (0, _react.useCallback)(function (event) {
|
|
33
|
-
var active = event.active;
|
|
34
|
-
var newActiveLayer = layers.find(function (layer) {
|
|
35
|
-
return layer.id === active.id;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
if (newActiveLayer) {
|
|
39
|
-
setActiveLayer(newActiveLayer);
|
|
40
|
-
|
|
41
|
-
if (newActiveLayer !== null && newActiveLayer !== void 0 && newActiveLayer.config.isConfigActive) {
|
|
42
|
-
dispatch((0, _actions.layerConfigChange)(newActiveLayer, {
|
|
43
|
-
isConfigActive: false
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [dispatch, layers]);
|
|
48
|
-
var onDragEnd = (0, _react.useCallback)(function (event) {
|
|
49
|
-
var _over$data, _over$data$current, _over$data$current$in, _over$data$current2;
|
|
50
|
-
|
|
51
|
-
var active = event.active,
|
|
52
|
-
over = event.over;
|
|
53
|
-
var activeLayerId = active.id;
|
|
54
|
-
var overType = over === null || over === void 0 ? void 0 : (_over$data = over.data) === null || _over$data === void 0 ? void 0 : (_over$data$current = _over$data.current) === null || _over$data$current === void 0 ? void 0 : _over$data$current.type;
|
|
55
|
-
|
|
56
|
-
if (!overType) {
|
|
57
|
-
setActiveLayer(undefined);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
switch (overType) {
|
|
62
|
-
// moving layers into maps
|
|
63
|
-
case _constants.DROPPABLE_MAP_CONTAINER_TYPE:
|
|
64
|
-
var mapIndex = (_over$data$current$in = (_over$data$current2 = over.data.current) === null || _over$data$current2 === void 0 ? void 0 : _over$data$current2.index) !== null && _over$data$current$in !== void 0 ? _over$data$current$in : 0;
|
|
65
|
-
dispatch((0, _actions.toggleLayerForMap)(mapIndex, activeLayerId));
|
|
66
|
-
break;
|
|
67
|
-
// swaping layers
|
|
68
|
-
|
|
69
|
-
case _constants.SORTABLE_LAYER_TYPE:
|
|
70
|
-
var newLayerOrder = (0, _reducers.reorderLayerOrder)(layerOrder, activeLayerId, over.id);
|
|
71
|
-
dispatch((0, _actions.reorderLayer)(newLayerOrder));
|
|
72
|
-
break;
|
|
73
|
-
// moving layers within side panel
|
|
74
|
-
|
|
75
|
-
case _constants.SORTABLE_SIDE_PANEL_TYPE:
|
|
76
|
-
// move layer to the end of the list
|
|
77
|
-
dispatch((0, _actions.reorderLayer)((0, _reducers.reorderLayerOrder)(layerOrder, activeLayerId, layerOrder[layerOrder.length - 1])));
|
|
78
|
-
break;
|
|
79
|
-
|
|
80
|
-
default:
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
setActiveLayer(undefined);
|
|
85
|
-
}, [dispatch, layerOrder]);
|
|
86
|
-
return {
|
|
87
|
-
activeLayer: activeLayer,
|
|
88
|
-
onDragStart: onDragStart,
|
|
89
|
-
onDragEnd: onDragEnd
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
var _default = useDndLayers;
|
|
94
|
-
exports["default"] = _default;
|
|
95
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rc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1N0YXJ0LCBvbkRyYWdFbmR9O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgdXNlRG5kTGF5ZXJzO1xuIl19
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _context = require("../context");
|
|
11
|
-
|
|
12
|
-
// SPDX-License-Identifier: MIT
|
|
13
|
-
// Copyright contributors to the kepler.gl project
|
|
14
|
-
// @ts-expect-error FeatureFlagsContext is typed as object
|
|
15
|
-
var useFeatureFlags = function useFeatureFlags() {
|
|
16
|
-
return (0, _react.useContext)(_context.FeatureFlagsContext);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
var _default = useFeatureFlags;
|
|
20
|
-
exports["default"] = _default;
|
|
21
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rcy91c2UtZmVhdHVyZS1mbGFncy50c3giXSwibmFtZXMiOlsidXNlRmVhdHVyZUZsYWdzIiwiRmVhdHVyZUZsYWdzQ29udGV4dCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUdBOztBQUNBOztBQUpBO0FBQ0E7QUFVQTtBQUNBLElBQU1BLGVBQWUsR0FBRyxTQUFsQkEsZUFBa0I7QUFBQSxTQUFNLHVCQUF5QkMsNEJBQXpCLENBQU47QUFBQSxDQUF4Qjs7ZUFFZUQsZSIsInNvdXJjZXNDb250ZW50IjpbIi8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBNSVRcbi8vIENvcHlyaWdodCBjb250cmlidXRvcnMgdG8gdGhlIGtlcGxlci5nbCBwcm9qZWN0XG5cbmltcG9ydCB7dXNlQ29udGV4dH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHtGZWF0dXJlRmxhZ3NDb250ZXh0fSBmcm9tICcuLi9jb250ZXh0JztcblxudHlwZSBGZWF0dXJlRmxhZ3MgPSB7XG4gIC8vIERlZmluZSB5b3VyIGZlYXR1cmUgZmxhZ3MgaGVyZVxuICBbZmxhZ05hbWU6IHN0cmluZ106IGJvb2xlYW47XG59O1xuXG4vLyBAdHMtZXhwZWN0LWVycm9yIEZlYXR1cmVGbGFnc0NvbnRleHQgaXMgdHlwZWQgYXMgb2JqZWN0XG5jb25zdCB1c2VGZWF0dXJlRmxhZ3MgPSAoKSA9PiB1c2VDb250ZXh0PEZlYXR1cmVGbGFncz4oRmVhdHVyZUZsYWdzQ29udGV4dCk7XG5cbmV4cG9ydCBkZWZhdWx0IHVzZUZlYXR1cmVGbGFncztcbiJdfQ==
|
package/dist/index.d.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
export { default as KeplerGlContext, RootContext } from './context';
|
|
2
|
-
import TimeRangeSliderFactory from './common/time-range-slider';
|
|
3
|
-
import RangeSliderFactory from './common/range-slider';
|
|
4
|
-
import VisConfigSliderFactory from './side-panel/layer-panel/vis-config-slider';
|
|
5
|
-
import VisConfigSwitchFactory from './side-panel/layer-panel/vis-config-switch';
|
|
6
|
-
import LayerConfigGroupFactory from './side-panel/layer-panel/layer-config-group';
|
|
7
|
-
import LayerColumnConfigFactory from './side-panel/layer-panel/layer-column-config';
|
|
8
|
-
import LayerTypeListItemFactory from './side-panel/layer-panel/layer-type-list-item';
|
|
9
|
-
import { ChannelByValueSelectorFactory } from './side-panel/layer-panel/layer-configurator';
|
|
10
|
-
import { FieldListItemFactoryFactory } from './common/field-selector';
|
|
11
|
-
import InfoHelperFactory from './common/info-helper';
|
|
12
|
-
import ColorSelectorFactory from './side-panel/layer-panel/color-selector';
|
|
13
|
-
import { LayerColorSelectorFactory, LayerColorRangeSelectorFactory, ArcLayerColorSelectorFactory } from './side-panel/layer-panel/layer-color-selector';
|
|
14
|
-
import { appInjector } from './container';
|
|
15
|
-
export { default as KeplerGl, default, injectComponents, ContainerFactory, ERROR_MSG } from './container';
|
|
16
|
-
export { default as KeplerGlFactory, DEFAULT_KEPLER_GL_PROPS, getVisibleDatasets, makeGetActionCreators, mapFieldsSelector, plotContainerSelector } from './kepler-gl';
|
|
17
|
-
export { default as SidePanelFactory } from './side-panel';
|
|
18
|
-
export { default as PanelTitleFactory } from './side-panel/panel-title';
|
|
19
|
-
export { default as MapContainerFactory, Attribution } from './map-container';
|
|
20
|
-
export { default as MapsLayoutFactory } from './maps-layout';
|
|
21
|
-
export { default as BottomWidgetFactory } from './bottom-widget';
|
|
22
|
-
export { default as LayerAnimationControllerFactory } from './layer-animation-controller';
|
|
23
|
-
export { default as FilterAnimationControllerFactory } from './filter-animation-controller';
|
|
24
|
-
export { default as ModalContainerFactory } from './modal-container';
|
|
25
|
-
export { default as PlotContainerFactory } from './plot-container';
|
|
26
|
-
export { default as GeocoderPanelFactory, getUpdateVisDataPayload } from './geocoder-panel';
|
|
27
|
-
export { testForCoordinates } from './geocoder/geocoder';
|
|
28
|
-
export { default as PanelHeaderFactory, SaveExportDropdownFactory, PanelHeaderDropdownFactory, CloudStorageDropdownFactory, PanelAction } from './side-panel/panel-header';
|
|
29
|
-
export { default as PanelHeaderActionFactory } from './side-panel/panel-header-action';
|
|
30
|
-
export { CollapseButtonFactory, default as SidebarFactory } from './side-panel/side-bar';
|
|
31
|
-
export { default as PanelToggleFactory } from './side-panel/panel-toggle';
|
|
32
|
-
export { default as PanelTabFactory } from './side-panel/panel-tab';
|
|
33
|
-
export { default as LayerManagerFactory, LayerBlendingSelector } from './side-panel/layer-manager';
|
|
34
|
-
export { ColorSelectorInput, ColorBlock } from './side-panel/layer-panel/color-selector';
|
|
35
|
-
export { default as CustomSelector } from './side-panel/layer-panel/color-selector';
|
|
36
|
-
export { default as ColorPalette } from './side-panel/layer-panel/color-palette';
|
|
37
|
-
export { default as ColorRangeSelector, PaletteConfig, ColorPaletteGroup, ALL_TYPES } from './side-panel/layer-panel/color-range-selector';
|
|
38
|
-
export { default as LayerPanelFactory } from './side-panel/layer-panel/layer-panel';
|
|
39
|
-
export { default as SingleColorPalette } from './side-panel/layer-panel/single-color-palette';
|
|
40
|
-
export { default as LayerConfiguratorFactory, getLayerConfiguratorProps, getLayerDataset, getVisConfiguratorProps, } from './side-panel/layer-panel/layer-configurator';
|
|
41
|
-
export { default as TextLabelPanelFactory } from './side-panel/layer-panel/text-label-panel';
|
|
42
|
-
export { AddDataButtonFactory, default as DatasetSectionFactory } from './side-panel/layer-panel/dataset-section';
|
|
43
|
-
export { default as DatasetLayerSectionFactory } from './side-panel/layer-panel/dataset-layer-section';
|
|
44
|
-
export { default as DatasetLayerGroupFactory } from './side-panel/layer-panel/dataset-layer-group';
|
|
45
|
-
export { default as PanelViewListToggleFactory } from './side-panel/panel-view-list-toggle';
|
|
46
|
-
export { default as AddLayerButtonFactory } from './side-panel/layer-panel/add-layer-button';
|
|
47
|
-
export { default as LayerListFactory } from './side-panel/layer-panel/layer-list';
|
|
48
|
-
export { default as CustomPicker } from './side-panel/layer-panel/custom-picker';
|
|
49
|
-
export { default as CustomPalette } from './side-panel/layer-panel/custom-palette';
|
|
50
|
-
export * from './side-panel/layer-panel/custom-palette';
|
|
51
|
-
export { default as SourceDataCatalogFactory } from './side-panel/common/source-data-catalog';
|
|
52
|
-
export { default as SourceDataSelectorFactory } from './side-panel/common/source-data-selector';
|
|
53
|
-
export { default as DatasetTitleFactory } from './side-panel/common/dataset-title';
|
|
54
|
-
export { default as DatasetInfoFactory } from './side-panel/common/dataset-info';
|
|
55
|
-
export { default as DatasetTagFactory } from './side-panel/common/dataset-tag';
|
|
56
|
-
export { default as FilterManagerFactory } from './side-panel/filter-manager';
|
|
57
|
-
export { default as FilterPanelFactory } from './side-panel/filter-panel/filter-panel';
|
|
58
|
-
export { default as AddFilterButtonFactory } from './side-panel/filter-panel/add-filter-button';
|
|
59
|
-
export { default as InteractionManagerFactory } from './side-panel/interaction-manager';
|
|
60
|
-
export { default as BrushConfigFactory } from './side-panel/interaction-panel/brush-config';
|
|
61
|
-
export { default as TooltipConfigFactory } from './side-panel/interaction-panel/tooltip-config';
|
|
62
|
-
export { default as MapManagerFactory } from './side-panel/map-manager';
|
|
63
|
-
export { default as LayerGroupSelectorFactory } from './side-panel/map-style-panel/map-layer-selector';
|
|
64
|
-
export { default as MapStyleSelectorFactory } from './side-panel/map-style-panel/map-style-selector';
|
|
65
|
-
export { default as LayerGroupColorPickerFactory } from './side-panel/map-style-panel/map-layer-group-color-picker';
|
|
66
|
-
export { default as CustomPanelsFactory } from './side-panel/custom-panel';
|
|
67
|
-
export { default as DndContextFactory } from './dnd-context';
|
|
68
|
-
export { default as MapPopoverFactory } from './map/map-popover';
|
|
69
|
-
export { default as MapPopoverContentFactory } from './map/map-popover-content';
|
|
70
|
-
export { default as MapControlFactory } from './map/map-control';
|
|
71
|
-
export { default as LayerHoverInfoFactory } from './map/layer-hover-info';
|
|
72
|
-
export { default as CoordinateInfoFactory } from './map/coordinate-info';
|
|
73
|
-
export { default as LayerSelectorPanelFactory } from './map/layer-selector-panel';
|
|
74
|
-
export { default as LocalePanelFactory } from './map/locale-panel';
|
|
75
|
-
export { default as MapControlPanelFactory } from './map/map-control-panel';
|
|
76
|
-
export { default as MapControlTooltipFactory } from './map/map-control-tooltip';
|
|
77
|
-
export { default as MapLegendFactory, LayerLegendHeaderFactory, LayerLegendContentFactory, StyledMapControlLegend, LayerColorLegend, VisualChannelMetric, LayerSizeLegend, SingleColorLegend } from './map/map-legend';
|
|
78
|
-
export { default as MapDrawPanelFactory } from './map/map-draw-panel';
|
|
79
|
-
export { default as SplitMapButtonFactory } from './map/split-map-button';
|
|
80
|
-
export { default as MapLegendPanelFactory } from './map/map-legend-panel';
|
|
81
|
-
export { default as Toggle3dButtonFactory } from './map/toggle-3d-button';
|
|
82
|
-
export { default as LazzyTippy } from './map/lazy-tippy';
|
|
83
|
-
export { default as MapControlToolbarFactory } from './map/map-control-toolbar';
|
|
84
|
-
export { default as ModalDialogFactory } from './modals/modal-dialog';
|
|
85
|
-
export { default as DeleteDatasetModalFactory } from './modals/delete-data-modal';
|
|
86
|
-
export { default as DataTableModalFactory, DatasetTabs, DatasetModalTab } from './modals/data-table-modal';
|
|
87
|
-
export { default as LoadDataModalFactory } from './modals/load-data-modal';
|
|
88
|
-
export { default as SaveMapModalFactory } from './modals/save-map-modal';
|
|
89
|
-
export { default as StatusPanel } from './modals/status-panel';
|
|
90
|
-
export { default as ExportImageModalFactory } from './modals/export-image-modal';
|
|
91
|
-
export { default as ExportDataModalFactory } from './modals/export-data-modal';
|
|
92
|
-
export { default as AddMapStyleModalFactory } from './modals/add-map-style-modal';
|
|
93
|
-
export { default as ExportMapModalFactory } from './modals/export-map-modal/export-map-modal';
|
|
94
|
-
export { default as ModalTabsFactory, ModalTabItem } from './modals/modal-tabs';
|
|
95
|
-
export { default as LoadStorageMapFactory } from './modals/load-storage-map';
|
|
96
|
-
export { default as ExportJsonMapFactory } from './modals/export-map-modal/export-json-map';
|
|
97
|
-
export { default as ExportHtmlMapFactory } from './modals/export-map-modal/export-html-map';
|
|
98
|
-
export { default as NotificationPanelFactory } from './notification-panel';
|
|
99
|
-
export { default as NotificationItemFactory } from './notification-panel/notification-item';
|
|
100
|
-
export { default as AnimationControlFactory } from './common/animation-control/animation-control';
|
|
101
|
-
export { default as AnimationControllerFactory } from './common/animation-control/animation-controller';
|
|
102
|
-
export { default as PlaybackControlsFactory } from './common/animation-control/playback-controls';
|
|
103
|
-
export { default as WindowActionControlFactory } from './common/animation-control/window-action-control';
|
|
104
|
-
export { default as PlayControlFactory } from './common/animation-control/play-control';
|
|
105
|
-
export { default as ResetControlFactory } from './common/animation-control/reset-control';
|
|
106
|
-
export { default as SpeedControlFactory } from './common/animation-control/speed-control';
|
|
107
|
-
export { default as AnimationWindowControlFactory } from './common/animation-control/animation-window-control';
|
|
108
|
-
export { default as FloatingTimeDisplayFactory } from './common/animation-control/floating-time-display';
|
|
109
|
-
export { default as AnimationSpeedSliderFactory } from './common/animation-control/animation-speed-slider';
|
|
110
|
-
export { default as RangePlotFactory } from './common/range-plot';
|
|
111
|
-
export { default as ImagePreview } from './common/image-preview';
|
|
112
|
-
export { default as HistogramPlotFactory } from './common/histogram-plot';
|
|
113
|
-
export { default as LineChartFactory } from './common/line-chart';
|
|
114
|
-
export { default as RangeBrushFactory } from './common/range-brush';
|
|
115
|
-
export { default as TimeSliderMarkerFactory, getTickFormat, getXAxis, updateAxis } from './common/time-slider-marker';
|
|
116
|
-
export { default as TimeRangeSliderTimeTitleFactory } from './common/time-range-slider-time-title';
|
|
117
|
-
export { default as IconButton } from './common/icon-button';
|
|
118
|
-
export { default as TimeWidgetFactory } from './filters/time-widget';
|
|
119
|
-
export { default as TimeWidgetTopFactory } from './filters/time-widget-top';
|
|
120
|
-
export { default as SingleSelectFilterFactory } from './filters/single-select-filter';
|
|
121
|
-
export { default as MultiSelectFilterFactory } from './filters/multi-select-filter';
|
|
122
|
-
export { default as NewFilterPanelFactory } from './filters/filter-panels/new-filter-panel';
|
|
123
|
-
export { timeRangeSliderFieldsSelector, default as TimeRangeFilterFactory } from './filters/time-range-filter';
|
|
124
|
-
export { default as RangeFilterFactory } from './filters/range-filter';
|
|
125
|
-
export { default as EditorFactory } from './editor/editor';
|
|
126
|
-
export { default as FeatureActionPanelFactory, PureFeatureActionPanelFactory } from './editor/feature-action-panel';
|
|
127
|
-
export { injector, provideRecipesToInjector, withState } from './injector';
|
|
128
|
-
export { default as CloudTile } from './modals/cloud-tile';
|
|
129
|
-
export { default as FileUploadFactory, FileUpload, WarningMsg } from './common/file-uploader/file-upload';
|
|
130
|
-
export { default as FileDrop } from './common/file-uploader/file-drop';
|
|
131
|
-
export { default as UploadButton } from './common/file-uploader/upload-button';
|
|
132
|
-
export { default as DatasetLabel } from './common/dataset-label';
|
|
133
|
-
export { default as Accessor } from './common/item-selector/accessor';
|
|
134
|
-
export { default as ChickletedInput, ChickletButton } from './common/item-selector/chickleted-input';
|
|
135
|
-
export { default as ItemSelector } from './common/item-selector/item-selector';
|
|
136
|
-
export { default as Typeahead } from './common/item-selector/typeahead';
|
|
137
|
-
export { default as DropdownList, ListItem, classList as dropdownListClassList } from './common/item-selector/dropdown-list';
|
|
138
|
-
export { default as FieldSelectorFactory } from './common/field-selector';
|
|
139
|
-
export { default as Modal, ModalFooter, ModalTitle } from './common/modal';
|
|
140
|
-
export { default as AppLogo } from './common/logo';
|
|
141
|
-
export { default as Switch } from './common/switch';
|
|
142
|
-
export { default as Checkbox } from './common/checkbox';
|
|
143
|
-
export { default as ColorLegend, LegendRow } from './common/color-legend';
|
|
144
|
-
export { default as EffectControlFactory } from './map/effects/effect-control';
|
|
145
|
-
export { default as LoadingSpinner } from './common/loading-spinner';
|
|
146
|
-
export { default as LoadingDialog } from './modals/loading-dialog';
|
|
147
|
-
export { MapViewStateContext, MapViewStateContextProvider } from './map-view-state-context';
|
|
148
|
-
export { default as FieldTokenFactory } from './common/field-token';
|
|
149
|
-
export { default as Portaled } from './common/portaled';
|
|
150
|
-
export { default as ProgressBar } from './common/progress-bar';
|
|
151
|
-
export { default as FileUploadProgress } from './common/file-uploader/file-upload-progress';
|
|
152
|
-
export { default as Slider } from './common/slider/slider';
|
|
153
|
-
export { default as SliderHandle } from './common/slider/slider-handle';
|
|
154
|
-
export { default as SliderBarHandle } from './common/slider/slider-bar-handle';
|
|
155
|
-
export { default as ActionPanel, ActionPanelItem } from './common/action-panel';
|
|
156
|
-
export { default as HeaderCellFactory } from './common/data-table/header-cell';
|
|
157
|
-
export { default as DataTableConfigFactory, NumberFormatConfig } from './common/data-table/display-format';
|
|
158
|
-
export { default as DataTableFactory } from './common/data-table';
|
|
159
|
-
export { default as CanvasHack } from './common/data-table/canvas';
|
|
160
|
-
export { default as OptionDropdown, FormatterDropdown } from './common/data-table/option-dropdown';
|
|
161
|
-
export { default as MapLayerSelector } from './common/map-layer-selector';
|
|
162
|
-
export { default as VerticalToolbar } from './common/vertical-toolbar';
|
|
163
|
-
export { default as ToolbarItem } from './common/toolbar-item';
|
|
164
|
-
export { default as ShareMapUrlModalFactory, SharingUrl } from './modals/share-map-modal';
|
|
165
|
-
export { default as TippyTooltip } from './common/tippy-tooltip';
|
|
166
|
-
export { default as LayerTypeSelectorFactory } from './side-panel/layer-panel/layer-type-selector';
|
|
167
|
-
export { default as LayerTypeDropdownListFactory } from './side-panel/layer-panel/layer-type-dropdown-list';
|
|
168
|
-
export { ConfigGroupCollapsibleContent, StyledConfigGroupHeader, LayerConfigGroupLabelFactory } from './side-panel/layer-panel/layer-config-group';
|
|
169
|
-
export { default as ColumnSelectorFactory } from './side-panel/layer-panel/column-selector';
|
|
170
|
-
export { default as StyledDropdownSelect } from './common/item-selector/item-selector';
|
|
171
|
-
export { DragHandle, LayerLabelEditor, LayerTitleSectionFactory, LayerPanelHeaderActionSectionFactory, default as LayerPanelHeaderFactory } from './side-panel/layer-panel/layer-panel-header';
|
|
172
|
-
export { default as FilterPanelHeaderFactory } from './side-panel/filter-panel/filter-panel-header';
|
|
173
|
-
export { default as EffectManagerFactory } from './effects/effect-manager';
|
|
174
|
-
export { default as EffectListFactory } from './effects/effect-list';
|
|
175
|
-
export { default as SidePanelTitleFactory } from './effects/side-panel-title';
|
|
176
|
-
export { default as EffectTypeSelectorFactory } from './effects/effect-type-selector';
|
|
177
|
-
export { default as EffectConfiguratorFactory } from './effects/effect-configurator';
|
|
178
|
-
export { default as EffectTimeConfiguratorFactory } from './effects/effect-time-configurator';
|
|
179
|
-
export { default as HowToButton } from './side-panel/layer-panel/how-to-button';
|
|
180
|
-
export type { ButtonProps, StyledPanelHeaderProps, StyledExportSectionProps } from './common';
|
|
181
|
-
export type { CollapseButtonProps } from './side-panel/side-bar';
|
|
182
|
-
export type { PanelTabProps } from './side-panel/panel-tab';
|
|
183
|
-
export type { MapStyleSelectorProps } from './side-panel/map-style-panel/map-style-selector';
|
|
184
|
-
export type { LayerGroupSelectorProps } from './side-panel/map-style-panel/map-layer-selector';
|
|
185
|
-
export type { MapManagerProps } from './side-panel/map-manager';
|
|
186
|
-
export type { SourceDataSelectorProps } from './side-panel/common/types';
|
|
187
|
-
export type { DatasetTitleProps } from './side-panel/common/dataset-title';
|
|
188
|
-
export type { SourceDataCatalogProps } from './side-panel/common/source-data-catalog';
|
|
189
|
-
export type { DatasetInfoProps } from './side-panel/common/dataset-info';
|
|
190
|
-
export type { DatasetTagProps } from './side-panel/common/dataset-tag';
|
|
191
|
-
export type { CustomPanelsProps } from './side-panel/custom-panel';
|
|
192
|
-
export type { LayerTypeListItemProps, LayerTypeListItemType } from './side-panel/layer-panel/layer-type-list-item';
|
|
193
|
-
export type { LayerGroupColorPickerProps } from './side-panel/map-style-panel/map-layer-group-color-picker';
|
|
194
|
-
export type { MapLegendPanelProps, MapLegendPanelFactoryDeps } from './map/map-legend-panel';
|
|
195
|
-
export type { OptionDropdownProps, FormatterDropdownProps } from './common/data-table/option-dropdown';
|
|
196
|
-
export type { LayerListProps, LayerListFactoryDeps } from './side-panel/layer-panel/layer-list';
|
|
197
|
-
export type { MapContainerProps } from './map-container';
|
|
198
|
-
export type { MapControlProps } from './map/map-control';
|
|
199
|
-
export type { MapDrawPanelProps } from './map/map-draw-panel';
|
|
200
|
-
export type { PanelHeaderProps } from './side-panel/panel-header';
|
|
201
|
-
export type { LayerLabelEditorProps, LayerTitleSectionProps, LayerPanelHeaderProps, LayerPanelHeaderActionSectionProps } from './side-panel/layer-panel/layer-panel-header';
|
|
202
|
-
export type { FilterPanelHeaderProps } from './side-panel/filter-panel/filter-panel-header';
|
|
203
|
-
export type { LayerTypeOption } from './side-panel/layer-panel/layer-type-dropdown-list';
|
|
204
|
-
export type { LayerConfigGroupLabelProps, LayerConfigGroupProps } from './side-panel/layer-panel/layer-config-group';
|
|
205
|
-
export type { FilterManagerProps } from './side-panel/filter-manager';
|
|
206
|
-
export type { PanelMeta } from './side-panel/common/types';
|
|
207
|
-
export type { SideBarProps } from './side-panel/side-bar';
|
|
208
|
-
export type { FeatureActionPanelProps } from './editor/feature-action-panel';
|
|
209
|
-
export type { SingleColorPaletteProps } from './side-panel/layer-panel/single-color-palette';
|
|
210
|
-
export type { DndContextProps, DndContextComponent } from './dnd-context';
|
|
211
|
-
export { Icons, SelectText, SelectTextBold, IconRoundSmall, CenterFlexbox, CenterVerticalFlexbox, SpaceBetweenFlexbox, SBFlexboxItem, SBFlexboxNoMargin, PanelLabel, PanelLabelWrapper, PanelLabelBold, PanelHeaderTitle, PanelHeaderContent, PanelContent, SidePanelSection, SidePanelDivider, Tooltip, Button, Input, InputLight, TextArea, TextAreaLight, InlineInput, StyledPanelHeader, StyledPanelDropdown, ButtonGroup, DatasetSquare, SelectionButton, StyledModalContent, StyledModalVerticalPanel, StyledModalSection, StyledModalInputFootnote, StyledMapContainer, StyledAttrbution, StyledExportSection, StyledFilteredOption, StyledType, WidgetContainer, BottomWidgetInner, MapControlButton, StyledFilterContent, TruncatedTitleText, CheckMark } from './common';
|
|
212
|
-
export declare const TimeRangeSlider: any;
|
|
213
|
-
export declare const RangeSlider: any;
|
|
214
|
-
export declare const VisConfigSlider: any;
|
|
215
|
-
export declare const VisConfigSwitch: any;
|
|
216
|
-
export declare const LayerConfigGroup: any;
|
|
217
|
-
export declare const LayerColumnConfig: any;
|
|
218
|
-
export declare const ChannelByValueSelector: any;
|
|
219
|
-
export declare const FieldSelector: any;
|
|
220
|
-
export declare const FieldToken: any;
|
|
221
|
-
export declare const PanelHeaderAction: any;
|
|
222
|
-
export declare const FieldListItemFactory: any;
|
|
223
|
-
export declare const LayerTypeListItem: any;
|
|
224
|
-
export declare const InfoHelper: any;
|
|
225
|
-
export declare const ColorSelector: any;
|
|
226
|
-
export declare const LayerColorSelector: any;
|
|
227
|
-
export declare const LayerColorRangeSelector: any;
|
|
228
|
-
export declare const ArcLayerColorSelector: any;
|
|
229
|
-
export { appInjector, TimeRangeSliderFactory, RangeSliderFactory, VisConfigSliderFactory, VisConfigSwitchFactory, LayerConfigGroupFactory, LayerColumnConfigFactory, LayerTypeListItemFactory, ChannelByValueSelectorFactory, FieldListItemFactoryFactory, InfoHelperFactory, ColorSelectorFactory, LayerColorSelectorFactory, LayerColorRangeSelectorFactory, ArcLayerColorSelectorFactory };
|
|
230
|
-
export { default as useFeatureFlags } from './hooks/use-feature-flags';
|
|
231
|
-
export { default as useDndLayers } from './hooks/use-dnd-layers';
|
|
232
|
-
export { default as useDndEffects } from './hooks/use-dnd-effects';
|
|
233
|
-
export { CloudListProvider, useCloudListProvider } from './hooks/use-cloud-list-provider';
|