736RIeUjmb#1a2V#@%;tEM7Bz-@S6?fwAeZ(y&m12Do8&RXBec`
zSy{05)D=3Mj<0dLY>`!Zq1k9Cl95XAxYr^rGjJ_9O|Vtk^!wzsTPB8B%cOvox$tAI
z*nLU-ElyQoyILt%yjnVVw8sEc(;~u1;Mjg<2LAH{Bmswo<(t4__M2_wT+;xG_l1ft
zcQ7QFf!b40`+Z|6h5$nn{GmJek%7vw8Uu=z_J*pt5NiZmDTt9Wh!8*z8r>a}>*6w(
zgU#)w^sQ;zD~<|>S6DF?y0x$DiuqN4{j~}k)m)vP>1>Bq;OzG%IJ0KbT7u;(tSisCvZ
z_5t6t*R0#4Qlgu)iomzLF{5&!qIJ@G1w<2cuWVrVPO#0QB6hX$WAZ{h*hZkO)@6l>
z{A|BM`Vn?d2lQ@3#XwU^Jl;}?(x?9~sH1c$z@epA&?
z{8&CzpLLPS$P9O42T7>+%MM|d;2W1;?`!E=IR#BtsO)!>-&N9FR`t?(##6$5>yW$`
z64nJ5PcOf3QZ{6hQiQVAibT27cWnwB
z;ob(Ws`j6tM~=GdDXQKir-v-wf9ZzkHq-wy_*Tg7_V+70|GL@XG?=@7_nv!yU-umU
w-G!e2ecKbk={Emna{q2sc{u$!YkZMEzvNu&_|}5$_LVNm(A=Q-Jo?7}1CNbcfB*mh
diff --git a/plugins/plugin-filter-antd/src/Range/index.ts b/plugins/plugin-filter-antd/src/Range/index.ts
deleted file mode 100644
index 4a77fbb97c..0000000000
--- a/plugins/plugin-filter-antd/src/Range/index.ts
+++ /dev/null
@@ -1,42 +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, ChartMetadata, ChartPlugin } from '@superset-ui/core';
-import buildQuery from './buildQuery';
-import controlPanel from './controlPanel';
-import transformProps from './transformProps';
-import thumbnail from './images/thumbnail.png';
-
-export default class AntdRangeFilterPlugin extends ChartPlugin {
- constructor() {
- const metadata = new ChartMetadata({
- name: t('Range Filter Plugin'),
- description: 'Range Filter Plugin using AntD',
- isNativeFilter: true,
- thumbnail,
- });
-
- super({
- buildQuery,
- controlPanel,
- loadChart: () => import('./AntdRangeFilter'),
- metadata,
- transformProps,
- });
- }
-}
diff --git a/plugins/plugin-filter-antd/src/Range/transformProps.ts b/plugins/plugin-filter-antd/src/Range/transformProps.ts
deleted file mode 100644
index 20b81b58ac..0000000000
--- a/plugins/plugin-filter-antd/src/Range/transformProps.ts
+++ /dev/null
@@ -1,33 +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 { ChartProps, DataRecord } from '@superset-ui/core';
-
-export default function transformProps(chartProps: ChartProps) {
- const { formData, height, hooks, queriesData, width } = chartProps;
- const { setExtraFormData } = hooks;
- const data = queriesData[0].data as DataRecord[];
-
- return {
- data,
- formData,
- height,
- setExtraFormData,
- width,
- };
-}
diff --git a/plugins/plugin-filter-antd/src/Range/types.ts b/plugins/plugin-filter-antd/src/Range/types.ts
deleted file mode 100644
index e095c364b2..0000000000
--- a/plugins/plugin-filter-antd/src/Range/types.ts
+++ /dev/null
@@ -1,35 +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 { DataRecord, QueryFormData, SetExtraFormDataHook } from '@superset-ui/core';
-import { AntdPluginFilterStylesProps } from '../types';
-
-interface AntdPluginFilterSelectCustomizeProps {
- max?: number;
- min?: number;
-}
-
-export type PluginFilterRangeQueryFormData = QueryFormData &
- AntdPluginFilterStylesProps &
- AntdPluginFilterSelectCustomizeProps;
-
-export type AntdPluginFilterRangeProps = AntdPluginFilterStylesProps & {
- data: DataRecord[];
- formData: PluginFilterRangeQueryFormData;
- setExtraFormData: SetExtraFormDataHook;
-};
diff --git a/plugins/plugin-filter-antd/src/Select/AntdSelectFilter.tsx b/plugins/plugin-filter-antd/src/Select/AntdSelectFilter.tsx
deleted file mode 100644
index 4df3a1ff97..0000000000
--- a/plugins/plugin-filter-antd/src/Select/AntdSelectFilter.tsx
+++ /dev/null
@@ -1,103 +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 { styled } from '@superset-ui/core';
-import React, { useEffect, useState } from 'react';
-import { Select } from 'antd';
-import { DEFAULT_FORM_DATA, AntdPluginFilterSelectProps } from './types';
-import { AntdPluginFilterStylesProps } from '../types';
-
-const Styles = styled.div`
- height: ${({ height }) => height};
- width: ${({ width }) => width};
-`;
-
-const { Option } = Select;
-
-export default function AntdPluginFilterSelect(props: AntdPluginFilterSelectProps) {
- const [values, setValues] = useState<(string | number)[]>([]);
- const DELIMITER = '!^&@%#*!@';
- const { data, formData, height, width, setExtraFormData } = props;
- const { defaultValues, enableEmptyFilter, multiSelect, showSearch, inverseSelection } = {
- ...DEFAULT_FORM_DATA,
- ...formData,
- };
-
- useEffect(() => {
- setValues(defaultValues || []);
- }, [defaultValues]);
-
- let { groupby = [] } = formData;
- groupby = Array.isArray(groupby) ? groupby : [groupby];
-
- function handleChange(value?: number[] | string[] | null) {
- setValues(value || []);
- const [col] = groupby;
- const emptyFilter =
- enableEmptyFilter &&
- !inverseSelection &&
- (value === undefined || value === null || value.length === 0);
- setExtraFormData({
- append_form_data: emptyFilter
- ? {
- extras: {
- where: '1 = 0',
- },
- }
- : {
- filters:
- value === undefined || value === null || value.length === 0
- ? []
- : [
- {
- col,
- op: inverseSelection ? 'NOT IN' : 'IN',
- val: value,
- },
- ],
- },
- });
- }
- const placeholderText =
- (data || []).length === 0 ? 'No data' : `${data.length} option${data.length > 1 ? 's' : 0}`;
- return (
-
-
-
- );
-}
diff --git a/plugins/plugin-filter-antd/src/Select/buildQuery.ts b/plugins/plugin-filter-antd/src/Select/buildQuery.ts
deleted file mode 100644
index ba82222b91..0000000000
--- a/plugins/plugin-filter-antd/src/Select/buildQuery.ts
+++ /dev/null
@@ -1,41 +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 { buildQueryContext, QueryFormData } from '@superset-ui/core';
-
-/**
- * The buildQuery function is used to create an instance of QueryContext that's
- * sent to the chart data endpoint. In addition to containing information of which
- * datasource to use, it specifies the type (e.g. full payload, samples, query) and
- * format (e.g. CSV or JSON) of the result and whether or not to force refresh the data from
- * the datasource as opposed to using a cached copy of the data, if available.
- *
- * More importantly though, QueryContext contains a property `queries`, which is an array of
- * QueryObjects specifying individual data requests to be made. A QueryObject specifies which
- * columns, metrics and filters, among others, to use during the query. Usually it will be enough
- * to specify just one query based on the baseQueryObject, but for some more advanced use cases
- * it is possible to define post processing operations in the QueryObject, or multiple queries
- * if a viz needs multiple different result sets.
- */
-export default function buildQuery(formData: QueryFormData) {
- return buildQueryContext(formData, baseQueryObject => [
- {
- ...baseQueryObject,
- },
- ]);
-}
diff --git a/plugins/plugin-filter-antd/src/Select/controlPanel.ts b/plugins/plugin-filter-antd/src/Select/controlPanel.ts
deleted file mode 100644
index b3ca6cc836..0000000000
--- a/plugins/plugin-filter-antd/src/Select/controlPanel.ts
+++ /dev/null
@@ -1,113 +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 { ControlPanelConfig, sections } from '@superset-ui/chart-controls';
-import { DEFAULT_FORM_DATA } from './types';
-
-const {
- enableEmptyFilter,
- fetchPredicate,
- inverseSelection,
- multiSelect,
- showSearch,
-} = DEFAULT_FORM_DATA;
-
-const config: ControlPanelConfig = {
- controlPanelSections: [
- sections.legacyRegularTime,
- {
- label: t('Query'),
- expanded: true,
- controlSetRows: [
- ['groupby'],
- ['metrics'],
- ['adhoc_filters'],
- [
- {
- name: 'multiSelect',
- config: {
- type: 'CheckboxControl',
- label: t('Multiple Select'),
- default: multiSelect,
- description: t('Allow selecting multiple values'),
- },
- },
- ],
- [
- {
- name: 'enableEmptyFilter',
- config: {
- type: 'CheckboxControl',
- label: t('Enable Empty Filter'),
- default: enableEmptyFilter,
- description: t(
- 'When selection is empty, should an always false filter event be emitted',
- ),
- },
- },
- ],
- [
- {
- name: 'inverseSelection',
- config: {
- type: 'CheckboxControl',
- label: t('Inverse Selection'),
- default: inverseSelection,
- description: t('Exclude selected values'),
- },
- },
- ],
- [
- {
- name: 'showSearch',
- config: {
- type: 'CheckboxControl',
- label: t('Search Field'),
- default: showSearch,
- description: t('Allow typing search terms'),
- },
- },
- ],
- [
- {
- name: 'fetchPredicate',
- config: {
- type: 'TextControl',
- label: t('Fetch predicate'),
- default: fetchPredicate,
- description: t(
- 'Predicate applied when fetching distinct value to populate the filter control component.',
- ),
- },
- },
- null,
- ],
- ['row_limit', null],
- ],
- },
- ],
- controlOverrides: {
- groupby: {
- multi: false,
- validators: [validateNonEmpty],
- },
- },
-};
-
-export default config;
diff --git a/plugins/plugin-filter-antd/src/Select/images/thumbnail.png b/plugins/plugin-filter-antd/src/Select/images/thumbnail.png
deleted file mode 100644
index 7afef30bd4e6e4f85723208bf9f429647d03d3e5..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 5658
zcmaKQc|4SB*u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4Qlgu)iomzLF{5&!qIJ@G1w<2cuWVrVPO#0QB6hX$WAZ{h*hZkO)@6l>
z{A|BM`Vn?d2lQ@3#XwU^Jl;}?(x?9~sH1c$z@epA&?
z{8&CzpLLPS$P9O42T7>+%MM|d;2W1;?`!E=IR#BtsO)!>-&N9FR`t?(##6$5>yW$`
z64nJ5PcOf3QZ{6hQiQVAibT27cWnwB
z;ob(Ws`j6tM~=GdDXQKir-v-wf9ZzkHq-wy_*Tg7_V+70|GL@XG?=@7_nv!yU-umU
w-G!e2ecKbk={Emna{q2sc{u$!YkZMEzvNu&_|}5$_LVNm(A=Q-Jo?7}1CNbcfB*mh
diff --git a/plugins/plugin-filter-antd/src/Select/index.ts b/plugins/plugin-filter-antd/src/Select/index.ts
deleted file mode 100644
index f0d05c3739..0000000000
--- a/plugins/plugin-filter-antd/src/Select/index.ts
+++ /dev/null
@@ -1,42 +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, ChartMetadata, ChartPlugin } from '@superset-ui/core';
-import buildQuery from './buildQuery';
-import controlPanel from './controlPanel';
-import transformProps from './transformProps';
-import thumbnail from './images/thumbnail.png';
-
-export default class AntdFilterSelectPlugin extends ChartPlugin {
- constructor() {
- const metadata = new ChartMetadata({
- name: t('Select Filter Plugin'),
- description: 'Select Filter Plugin using AntD',
- isNativeFilter: true,
- thumbnail,
- });
-
- super({
- buildQuery,
- controlPanel,
- loadChart: () => import('./AntdSelectFilter'),
- metadata,
- transformProps,
- });
- }
-}
diff --git a/plugins/plugin-filter-antd/src/Select/transformProps.ts b/plugins/plugin-filter-antd/src/Select/transformProps.ts
deleted file mode 100644
index 935f49f2dc..0000000000
--- a/plugins/plugin-filter-antd/src/Select/transformProps.ts
+++ /dev/null
@@ -1,35 +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 { ChartProps, DataRecord } from '@superset-ui/core';
-import { DEFAULT_FORM_DATA } from './types';
-
-export default function transformProps(chartProps: ChartProps) {
- const { formData, height, hooks, queriesData, width } = chartProps;
- const newFormData = { ...DEFAULT_FORM_DATA, ...formData };
- const { setExtraFormData = () => {} } = hooks;
- const data = queriesData[0].data as DataRecord[];
-
- return {
- width,
- height,
- data,
- formData: newFormData,
- setExtraFormData,
- };
-}
diff --git a/plugins/plugin-filter-antd/src/Select/types.ts b/plugins/plugin-filter-antd/src/Select/types.ts
deleted file mode 100644
index f485685f95..0000000000
--- a/plugins/plugin-filter-antd/src/Select/types.ts
+++ /dev/null
@@ -1,48 +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 { QueryFormData, DataRecord, SetExtraFormDataHook } from '@superset-ui/core';
-import { AntdPluginFilterStylesProps } from '../types';
-
-interface AntdPluginFilterSelectCustomizeProps {
- defaultValues?: (string | number)[];
- enableEmptyFilter: boolean;
- fetchPredicate?: string;
- inverseSelection: boolean;
- multiSelect: boolean;
- showSearch: boolean;
-}
-
-export type AntdPluginFilterSelectQueryFormData = QueryFormData &
- AntdPluginFilterStylesProps &
- AntdPluginFilterSelectCustomizeProps;
-
-export type AntdPluginFilterSelectProps = AntdPluginFilterStylesProps & {
- data: DataRecord[];
- setExtraFormData: SetExtraFormDataHook;
- formData: AntdPluginFilterSelectQueryFormData;
-};
-
-export const DEFAULT_FORM_DATA: AntdPluginFilterSelectCustomizeProps = {
- defaultValues: [],
- enableEmptyFilter: false,
- fetchPredicate: '',
- inverseSelection: false,
- multiSelect: true,
- showSearch: true,
-};
diff --git a/plugins/plugin-filter-antd/src/index.ts b/plugins/plugin-filter-antd/src/index.ts
deleted file mode 100644
index fadaf1cdec..0000000000
--- a/plugins/plugin-filter-antd/src/index.ts
+++ /dev/null
@@ -1,20 +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.
- */
-export { default as AntdSelectFilterPlugin } from './Select';
-export { default as AntdRangeFilterPlugin } from './Range';
diff --git a/plugins/plugin-filter-antd/src/types.ts b/plugins/plugin-filter-antd/src/types.ts
deleted file mode 100644
index 869dc79e32..0000000000
--- a/plugins/plugin-filter-antd/src/types.ts
+++ /dev/null
@@ -1,22 +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.
- */
-export interface AntdPluginFilterStylesProps {
- height: number;
- width: number;
-}
diff --git a/plugins/plugin-filter-antd/test/index.test.ts b/plugins/plugin-filter-antd/test/index.test.ts
deleted file mode 100644
index 72fcfba903..0000000000
--- a/plugins/plugin-filter-antd/test/index.test.ts
+++ /dev/null
@@ -1,34 +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 { AntdSelectFilterPlugin, AntdRangeFilterPlugin } from '../src';
-
-/**
- * The example tests in this file act as a starting point, and
- * we encourage you to build more. These tests check that the
- * plugin loads properly, and focus on `transformProps`
- * to ake sure that data, controls, and props are all
- * treated correctly (e.g. formData from plugin controls
- * properly transform the data and/or any resulting props).
- */
-describe('@superset-ui/plugin-filter-antd', () => {
- it('exists', () => {
- expect(AntdSelectFilterPlugin).toBeDefined();
- expect(AntdRangeFilterPlugin).toBeDefined();
- });
-});
diff --git a/plugins/plugin-filter-antd/tsconfig.json b/plugins/plugin-filter-antd/tsconfig.json
deleted file mode 100644
index f164c58060..0000000000
--- a/plugins/plugin-filter-antd/tsconfig.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "compilerOptions": {
- "declarationDir": "lib",
- "outDir": "lib",
- "rootDir": "src"
- },
- "exclude": [
- "lib",
- "test"
- ],
- "extends": "../../tsconfig.options.json",
- "include": [
- "src/**/*",
- "types/**/*",
- "../../types/**/*"
- ],
- "references": [
- {
- "path": "../../packages/superset-ui-chart-controls"
- },
- {
- "path": "../../packages/superset-ui-core"
- }
- ]
-}
diff --git a/plugins/plugin-filter-antd/types/external.d.ts b/plugins/plugin-filter-antd/types/external.d.ts
deleted file mode 100644
index 0935dbbd80..0000000000
--- a/plugins/plugin-filter-antd/types/external.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare module '*.png' {
- const value: any;
- export default value;
-}