diff --git a/superset-frontend/src/explore/controlPanels/DeckArc.js b/superset-frontend/src/explore/controlPanels/DeckArc.js deleted file mode 100644 index c7e88639a8..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckArc.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core'; -import timeGrainSqlaAnimationOverrides from 'src/explore/controlPanels/timeGrainSqlaAnimationOverrides'; -import { columnChoices, PRIMARY_COLOR } from 'src/explore/controls'; -import { formatSelectOptions } from 'src/modules/utils'; -import { - filterNulls, - autozoom, - dimension, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - legendFormat, - legendPosition, - viewport, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [ - { - name: 'start_spatial', - config: { - type: 'SpatialControl', - label: t('Start Longitude & Latitude'), - validators: [validateNonEmpty], - description: t('Point to your spatial columns'), - mapStateToProps: state => ({ - choices: columnChoices(state.datasource), - }), - }, - }, - { - name: 'end_spatial', - config: { - type: 'SpatialControl', - label: t('End Longitude & Latitude'), - validators: [validateNonEmpty], - description: t('Point to your spatial columns'), - mapStateToProps: state => ({ - choices: columnChoices(state.datasource), - }), - }, - }, - ], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - controlSetRows: [ - [mapboxStyle, viewport], - [autozoom, null], - ], - }, - { - label: t('Arc'), - controlSetRows: [ - [ - 'color_picker', - { - name: 'target_color_picker', - config: { - label: t('Target Color'), - description: t('Color of the target location'), - type: 'ColorPickerControl', - default: PRIMARY_COLOR, - renderTrigger: true, - }, - }, - ], - [ - { - name: 'dimension', - config: { - ...dimension.config, - label: t('Categorical Color'), - description: t( - 'Pick a dimension from which categorical colors are defined', - ), - }, - }, - ], - ['color_scheme', 'label_colors'], - [ - { - name: 'stroke_width', - color: { - type: 'SelectControl', - freeForm: true, - label: t('Stroke Width'), - validators: [legacyValidateInteger], - default: null, - renderTrigger: true, - choices: formatSelectOptions([1, 2, 3, 4, 5]), - }, - }, - legendPosition, - ], - [legendFormat, null], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], - controlOverrides: { - size: { - validators: [], - }, - time_grain_sqla: timeGrainSqlaAnimationOverrides, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckGeojson.js b/superset-frontend/src/explore/controlPanels/DeckGeojson.js deleted file mode 100644 index f676526146..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckGeojson.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t, validateNonEmpty, legacyValidateInteger } from '@superset-ui/core'; -import { formatSelectOptions } from 'src/modules/utils'; -import { columnChoices } from 'src/explore/controls'; -import { - filterNulls, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - fillColorPicker, - strokeColorPicker, - filled, - stroked, - extruded, - viewport, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [ - { - name: 'geojson', - config: { - type: 'SelectControl', - label: t('GeoJson Column'), - validators: [validateNonEmpty], - description: t('Select the geojson column'), - mapStateToProps: state => ({ - choices: columnChoices(state.datasource), - }), - }, - }, - null, - ], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - controlSetRows: [ - [mapboxStyle, viewport], - // TODO [autozoom, null], // import { autozoom } from './Shared_DeckGL' - ], - }, - { - label: t('GeoJson Settings'), - controlSetRows: [ - [fillColorPicker, strokeColorPicker], - [filled, stroked], - [extruded, null], - [ - { - name: 'point_radius_scale', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Point Radius Scale'), - validators: [legacyValidateInteger], - default: null, - choices: formatSelectOptions([0, 100, 200, 300, 500]), - }, - }, - null, - ], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckGrid.js b/superset-frontend/src/explore/controlPanels/DeckGrid.js deleted file mode 100644 index 9c076e400e..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckGrid.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t, validateNonEmpty } from '@superset-ui/core'; -import { - filterNulls, - autozoom, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - extruded, - gridSize, - viewport, - spatial, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [spatial, 'size'], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - controlSetRows: [ - [mapboxStyle, viewport], - ['color_picker', autozoom], - [gridSize, extruded], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], - controlOverrides: { - size: { - label: t('Height'), - description: t('Metric used to control height'), - validators: [validateNonEmpty], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckHex.js b/superset-frontend/src/explore/controlPanels/DeckHex.js deleted file mode 100644 index b6794c716e..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckHex.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/core'; -import { formatSelectOptions } from 'src/modules/utils'; -import { - filterNulls, - autozoom, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - extruded, - gridSize, - viewport, - spatial, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [spatial, 'size'], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - controlSetRows: [ - [mapboxStyle, viewport], - ['color_picker', autozoom], - [gridSize, extruded], - [ - { - name: 'js_agg_function', - config: { - type: 'SelectControl', - label: t('Dynamic Aggregation Function'), - description: t( - 'The function to use when aggregating points into groups', - ), - default: 'sum', - clearable: false, - renderTrigger: true, - choices: formatSelectOptions([ - 'sum', - 'min', - 'max', - 'mean', - 'median', - 'count', - 'variance', - 'deviation', - 'p1', - 'p5', - 'p95', - 'p99', - ]), - }, - }, - null, - ], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], - controlOverrides: { - size: { - label: t('Height'), - description: t('Metric used to control height'), - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckMulti.js b/superset-frontend/src/explore/controlPanels/DeckMulti.js deleted file mode 100644 index 0b367fce13..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckMulti.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t, validateNonEmpty } from '@superset-ui/core'; -import { viewport, mapboxStyle } from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Map'), - expanded: true, - controlSetRows: [ - [mapboxStyle, viewport], - [ - { - name: 'deck_slices', - config: { - type: 'SelectAsyncControl', - multi: true, - label: t('deck.gl charts'), - validators: [validateNonEmpty], - default: [], - description: t( - 'Pick a set of deck.gl charts to layer on top of one another', - ), - dataEndpoint: - '/sliceasync/api/read?_flt_0_viz_type=deck_&_flt_7_viz_type=deck_multi', - placeholder: t('Select charts'), - onAsyncErrorMessage: t('Error while fetching charts'), - mutator: data => { - if (!data || !data.result) { - return []; - } - return data.result.map(o => ({ - value: o.id, - label: o.slice_name, - })); - }, - }, - }, - null, - ], - ], - }, - { - label: t('Query'), - expanded: true, - controlSetRows: [['adhoc_filters']], - }, - ], -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckPath.js b/superset-frontend/src/explore/controlPanels/DeckPath.js deleted file mode 100644 index 24bc230cc3..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckPath.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/core'; -import { - filterNulls, - autozoom, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - lineColumn, - viewport, - lineWidth, - lineType, - reverseLongLat, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [ - lineColumn, - { - ...lineType, - choices: [ - ['polyline', 'Polyline'], - ['json', 'JSON'], - ], - }, - ], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - expanded: true, - controlSetRows: [ - [mapboxStyle, viewport], - ['color_picker', lineWidth], - [reverseLongLat, autozoom], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckPolygon.js b/superset-frontend/src/explore/controlPanels/DeckPolygon.js deleted file mode 100644 index dd39e7454a..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckPolygon.js +++ /dev/null @@ -1,166 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/core'; -import { formatSelectOptions } from 'src/modules/utils'; -import timeGrainSqlaAnimationOverrides from './timeGrainSqlaAnimationOverrides'; -import { - filterNulls, - autozoom, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - legendFormat, - legendPosition, - lineColumn, - fillColorPicker, - strokeColorPicker, - filled, - stroked, - extruded, - viewport, - pointRadiusFixed, - multiplier, - lineWidth, - lineType, - reverseLongLat, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [ - { ...lineColumn, label: t('Polygon Column') }, - { ...lineType, label: t('Polygon Encoding') }, - ], - ['adhoc_filters'], - ['metric', { ...pointRadiusFixed, label: t('Elevation') }], - ['row_limit', null], - [reverseLongLat, filterNulls], - ], - }, - { - label: t('Map'), - expanded: true, - controlSetRows: [ - [mapboxStyle, viewport], - [autozoom, null], - ], - }, - { - label: t('Polygon Settings'), - expanded: true, - controlSetRows: [ - [fillColorPicker, strokeColorPicker], - [filled, stroked], - [extruded, multiplier], - [lineWidth, null], - [ - 'linear_color_scheme', - { - name: 'opacity', - config: { - type: 'SliderControl', - label: t('Opacity'), - default: 80, - step: 1, - min: 0, - max: 100, - renderTrigger: true, - description: t('Opacity, expects values between 0 and 100'), - }, - }, - ], - [ - { - name: 'num_buckets', - config: { - type: 'SelectControl', - multi: false, - freeForm: true, - label: t('Number of buckets to group data'), - default: 5, - choices: formatSelectOptions([2, 3, 5, 10]), - description: t('How many buckets should the data be grouped in.'), - renderTrigger: true, - }, - }, - { - name: 'break_points', - config: { - type: 'SelectControl', - multi: true, - freeForm: true, - label: t('Bucket break points'), - choices: formatSelectOptions([]), - description: t( - 'List of n+1 values for bucketing metric into n buckets.', - ), - renderTrigger: true, - }, - }, - ], - [ - { - name: 'table_filter', - config: { - type: 'CheckboxControl', - label: t('Emit Filter Events'), - renderTrigger: true, - default: false, - description: t('Whether to apply filter when items are clicked'), - }, - }, - { - name: 'toggle_polygons', - config: { - type: 'CheckboxControl', - label: t('Multiple filtering'), - renderTrigger: true, - default: true, - description: t( - 'Allow sending multiple polygons as a filter event', - ), - }, - }, - ], - [legendPosition, legendFormat], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], - controlOverrides: { - metric: { - validators: [], - }, - time_grain_sqla: timeGrainSqlaAnimationOverrides, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckScatter.js b/superset-frontend/src/explore/controlPanels/DeckScatter.js deleted file mode 100644 index 957376c25a..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckScatter.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t, validateNonEmpty } from '@superset-ui/core'; -import timeGrainSqlaAnimationOverrides from './timeGrainSqlaAnimationOverrides'; -import { - filterNulls, - autozoom, - dimension, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - legendFormat, - legendPosition, - viewport, - spatial, - pointRadiusFixed, - multiplier, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - onInit: controlState => ({ - ...controlState, - time_grain_sqla: { - ...controlState.time_grain_sqla, - value: null, - }, - granularity: { - ...controlState.granularity, - value: null, - }, - }), - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [spatial, null], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - expanded: true, - controlSetRows: [ - [mapboxStyle, viewport], - [autozoom, null], - ], - }, - { - label: t('Point Size'), - controlSetRows: [ - [ - pointRadiusFixed, - { - name: 'point_unit', - config: { - type: 'SelectControl', - label: t('Point Unit'), - default: 'square_m', - clearable: false, - choices: [ - ['square_m', 'Square meters'], - ['square_km', 'Square kilometers'], - ['square_miles', 'Square miles'], - ['radius_m', 'Radius in meters'], - ['radius_km', 'Radius in kilometers'], - ['radius_miles', 'Radius in miles'], - ], - description: t( - 'The unit of measure for the specified point radius', - ), - }, - }, - ], - [ - { - name: 'min_radius', - config: { - type: 'TextControl', - label: t('Minimum Radius'), - isFloat: true, - validators: [validateNonEmpty], - renderTrigger: true, - default: 2, - description: t( - 'Minimum radius size of the circle, in pixels. As the zoom level changes, this ' + - 'insures that the circle respects this minimum radius.', - ), - }, - }, - { - name: 'max_radius', - config: { - type: 'TextControl', - label: t('Maximum Radius'), - isFloat: true, - validators: [validateNonEmpty], - renderTrigger: true, - default: 250, - description: t( - 'Maxium radius size of the circle, in pixels. As the zoom level changes, this ' + - 'insures that the circle respects this maximum radius.', - ), - }, - }, - ], - [multiplier, null], - ], - }, - { - label: t('Point Color'), - controlSetRows: [ - ['color_picker', legendPosition], - [null, legendFormat], - [ - { - name: 'dimension', - config: { - ...dimension.config, - label: t('Categorical Color'), - description: t( - 'Pick a dimension from which categorical colors are defined', - ), - }, - }, - ], - ['color_scheme', 'label_colors'], - ], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], - controlOverrides: { - size: { - validators: [], - }, - time_grain_sqla: timeGrainSqlaAnimationOverrides, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DeckScreengrid.js b/superset-frontend/src/explore/controlPanels/DeckScreengrid.js deleted file mode 100644 index 3879621ebd..0000000000 --- a/superset-frontend/src/explore/controlPanels/DeckScreengrid.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t, validateNonEmpty } from '@superset-ui/core'; -import timeGrainSqlaAnimationOverrides from './timeGrainSqlaAnimationOverrides'; -import { - filterNulls, - autozoom, - jsColumns, - jsDataMutator, - jsTooltip, - jsOnclickHref, - gridSize, - viewport, - spatial, - mapboxStyle, -} from './Shared_DeckGL'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - [spatial, 'size'], - ['row_limit', filterNulls], - ['adhoc_filters'], - ], - }, - { - label: t('Map'), - controlSetRows: [ - [mapboxStyle, viewport], - [autozoom, null], - ], - }, - { - label: t('Grid'), - expanded: true, - controlSetRows: [[gridSize, 'color_picker']], - }, - { - label: t('Advanced'), - controlSetRows: [ - [jsColumns], - [jsDataMutator], - [jsTooltip], - [jsOnclickHref], - ], - }, - ], - controlOverrides: { - size: { - label: t('Weight'), - description: t("Metric used as a weight for the grid's coloring"), - validators: [validateNonEmpty], - }, - time_grain_sqla: timeGrainSqlaAnimationOverrides, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Shared_DeckGL.jsx b/superset-frontend/src/explore/controlPanels/Shared_DeckGL.jsx deleted file mode 100644 index 7578b4ddd9..0000000000 --- a/superset-frontend/src/explore/controlPanels/Shared_DeckGL.jsx +++ /dev/null @@ -1,377 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -// These are control configurations that are shared ONLY within the DeckGL viz plugin repo. - -import React from 'react'; -import { t, validateNonEmpty } from '@superset-ui/core'; -import { - sharedControls, - D3_FORMAT_OPTIONS, - columnChoices, -} from '@superset-ui/chart-controls'; -import { PRIMARY_COLOR } from '../controls'; -import { DEFAULT_VIEWPORT } from '../components/controls/ViewportControl'; - -const sandboxUrl = - 'https://github.com/apache/incubator-superset/' + - 'blob/master/superset-frontend/src/modules/sandbox.js'; -const jsFunctionInfo = ( -
{description}
-{jsFunctionInfo}
- {extraDescr} -