refactor(core): reorganize superset-core packages into feature-based structure (#38448)

This commit is contained in:
Michael S. Molina
2026-03-05 17:41:15 -03:00
committed by GitHub
parent 5f0efd2be9
commit 357e35dc62
1182 changed files with 2468 additions and 2054 deletions

View File

@@ -22,7 +22,7 @@ import {
type MouseEvent as ReactMouseEvent,
} from 'react';
import { MinusSquareOutlined, PlusSquareOutlined } from '@ant-design/icons';
import { t } from '@apache-superset/core';
import { t } from '@apache-superset/core/translation';
import {
AdhocMetric,
BinaryQueryObjectFilterClause,
@@ -40,7 +40,7 @@ import {
normalizeCurrency,
NumberFormatter,
} from '@superset-ui/core';
import { styled, useTheme } from '@apache-superset/core/ui';
import { styled, useTheme } from '@apache-superset/core/theme';
import { aggregatorTemplates, PivotTable, sortAs } from './react-pivottable';
import {
FilterType,

View File

@@ -23,7 +23,7 @@ import {
getStandardizedControls,
sharedControls,
} from '@superset-ui/chart-controls';
import { t } from '@apache-superset/core';
import { t } from '@apache-superset/core/translation';
import {
ensureIsArray,
isAdhocColumn,

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@apache-superset/core';
import { t } from '@apache-superset/core/translation';
import {
Behavior,
ChartMetadata,

View File

@@ -26,7 +26,7 @@ import {
SMART_DATE_ID,
TimeFormats,
} from '@superset-ui/core';
import { GenericDataType } from '@apache-superset/core/api/core';
import { GenericDataType } from '@apache-superset/core/common';
import { getColorFormatters } from '@superset-ui/chart-controls';
import { DateFormatter } from '../types';

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
export const Styles = styled.div<{ isDashboardEditMode: boolean }>`
${({ theme, isDashboardEditMode }) => css`

View File

@@ -19,7 +19,7 @@
import { Component, ReactNode, MouseEvent } from 'react';
import { safeHtmlSpan } from '@superset-ui/core';
import { t } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
import PropTypes from 'prop-types';
import { FaSort } from 'react-icons/fa';
import { FaSortDown as FaSortDesc } from 'react-icons/fa';

View File

@@ -18,7 +18,7 @@
*/
import PropTypes from 'prop-types';
import { t } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
type SortFunction = (
a: string | number | null,

View File

@@ -18,7 +18,7 @@
*/
import { ChartProps, QueryFormData } from '@superset-ui/core';
import { supersetTheme } from '@apache-superset/core/ui';
import { supersetTheme } from '@apache-superset/core/theme';
import transformProps from '../../src/plugin/transformProps';
import { MetricsLayoutEnum } from '../../src/types';