chore: Reference GenericDataType from @apache-superset/core (#35214)

This commit is contained in:
Michael S. Molina
2025-09-23 14:12:18 -03:00
committed by GitHub
parent 4027bad1d6
commit 78faaee685
80 changed files with 109 additions and 154 deletions

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t, GenericDataType } from '@superset-ui/core';
import { t } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
ControlPanelConfig,
getStandardizedControls,

View File

@@ -16,7 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { GenericDataType, SMART_DATE_ID, t } from '@superset-ui/core';
import { SMART_DATE_ID, t } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
ControlPanelConfig,
D3_FORMAT_DOCS,

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { GenericDataType } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { getColorFormatters } from '@superset-ui/chart-controls';
import { BigNumberTotalChartProps } from '../types';
import transformProps from './transformProps';

View File

@@ -22,12 +22,12 @@ import {
Metric,
} from '@superset-ui/chart-controls';
import {
GenericDataType,
getMetricLabel,
extractTimegrain,
QueryFormData,
getValueFormatter,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { BigNumberTotalChartProps, BigNumberVizProps } from '../types';
import { getDateFormatter, getOriginalLabel, parseMetricValue } from '../utils';
import { Refs } from '../../types';

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { GenericDataType } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import transformProps from './transformProps';
import { BigNumberWithTrendlineChartProps, BigNumberDatum } from '../types';

View File

@@ -20,7 +20,6 @@ import {
extractTimegrain,
getNumberFormatter,
NumberFormats,
GenericDataType,
getMetricLabel,
getXAxisLabel,
Metric,
@@ -28,6 +27,7 @@ import {
t,
tooltipHtml,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { EChartsCoreOption, graphic } from 'echarts/core';
import { aggregationChoices } from '@superset-ui/chart-controls';
import {

View File

@@ -22,7 +22,8 @@ import {
sections,
sharedControls,
} from '@superset-ui/chart-controls';
import { GenericDataType, t } from '@superset-ui/core';
import { t } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
legendSection,
showExtraControls,

View File

@@ -27,13 +27,13 @@ import {
CategoricalColorNamespace,
DataRecord,
DataRecordValue,
GenericDataType,
getColumnLabel,
getNumberFormatter,
t,
tooltipHtml,
} from '@superset-ui/core';
import { extendedDayjs as dayjs } from '@superset-ui/core/utils/dates';
import { GenericDataType } from '@apache-superset/core/api/core';
import { CallbackDataParams } from 'echarts/types/src/util/types';
import {
Cartesian2dCoordSys,

View File

@@ -17,7 +17,6 @@
* under the License.
*/
import {
GenericDataType,
NumberFormats,
QueryFormColumn,
getColumnLabel,
@@ -29,6 +28,7 @@ import {
addAlpha,
tooltipHtml,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import memoizeOne from 'memoize-one';
import { maxBy, minBy } from 'lodash';
import type { ComposeOption } from 'echarts/core';

View File

@@ -16,12 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import {
GenericDataType,
t,
validateInteger,
validateNonEmpty,
} from '@superset-ui/core';
import { t, validateInteger, validateNonEmpty } from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
ControlPanelConfig,
formatSelectOptionsForRange,

View File

@@ -25,7 +25,6 @@ import {
CategoricalColorNamespace,
CurrencyFormatter,
ensureIsArray,
GenericDataType,
getCustomFormatter,
getNumberFormatter,
getXAxisLabel,
@@ -42,6 +41,7 @@ import {
tooltipHtml,
ValueFormatter,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { getOriginalSeries } from '@superset-ui/chart-controls';
import type { EChartsCoreOption } from 'echarts/core';
import type { SeriesOption } from 'echarts';

View File

@@ -18,11 +18,11 @@
*/
import {
ChartDataResponseResult,
GenericDataType,
QueryFormMetric,
t,
validateNumber,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
ControlPanelConfig,
ControlSubSectionHeader,

View File

@@ -26,7 +26,6 @@ import {
CurrencyFormatter,
ensureIsArray,
tooltipHtml,
GenericDataType,
getCustomFormatter,
getMetricLabel,
getNumberFormatter,
@@ -41,6 +40,7 @@ import {
TimeseriesChartDataResponseResult,
NumberFormats,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
extractExtraMetrics,
getOriginalSeries,

View File

@@ -20,7 +20,6 @@ import {
CurrencyFormatter,
DataRecord,
ensureIsArray,
GenericDataType,
getMetricLabel,
getNumberFormatter,
getTimeFormatter,
@@ -29,6 +28,7 @@ import {
rgbToHex,
tooltipHtml,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import type { ComposeOption } from 'echarts/core';
import type { BarSeriesOption } from 'echarts/charts';
import {

View File

@@ -24,7 +24,6 @@ import {
DataRecordValue,
DTTM_ALIAS,
ensureIsArray,
GenericDataType,
LegendState,
normalizeTimestamp,
NumberFormats,
@@ -33,6 +32,7 @@ import {
TimeFormatter,
ValueFormatter,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { SortSeriesType, LegendPaddingType } from '@superset-ui/chart-controls';
import { format } from 'echarts/core';
import type { LegendComponentOption } from 'echarts/components';

View File

@@ -20,11 +20,11 @@ import { SortSeriesType } from '@superset-ui/chart-controls';
import {
AxisType,
DataRecord,
GenericDataType,
getNumberFormatter,
getTimeFormatter,
supersetTheme as theme,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import {
calculateLowerLogTick,
dedupSeries,