260326_01_ENH: 일부 설정 파일들 리펙토링
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import {ChartData, DataColumn, DataTable, HorizontalBar, LeftChartTable, SignStyle} from "@/components/lge-dashboard";
|
||||
import {BannerKey, BannerRow} from "@/types/lg";
|
||||
import {BannerKey, BannerRow} from "@/types/lg.types";
|
||||
import {formatRowLabel, isGapRow, wrapSampleRow} from "@/lib/lg-dashboard";
|
||||
import {useEffect, useMemo} from "react";
|
||||
import {
|
||||
BANNER_GROUP,
|
||||
BANNER_KEY_MAP,
|
||||
GRID_Y_NOT_PADDING,
|
||||
SITE_TITLE,
|
||||
} from "@/const/lgConst";
|
||||
import {BANNER_GROUP} from "@/const/lg-banner.const";
|
||||
import {BANNER_KEY_MAP} from "@/const/lg-schema.const";
|
||||
import {SITE_TITLE} from "@/const/lg-common.const";
|
||||
import { GRID_Y_NOT_PADDING } from "@/components/lge-dashboard/chart/chart.config";
|
||||
import {parseNumber} from "@/lib/utils";
|
||||
import {
|
||||
buildHeader_DataColumn,
|
||||
@@ -16,7 +14,7 @@ import {
|
||||
} from "@/lib/lg-export-excel";
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
import {CategoryFilterValue} from "@/components/layout/CategoryFilter";
|
||||
import {CategoryTargetData} from "@/config/filter.types";
|
||||
import {CategoryTargetData} from "@/types/filter.types";
|
||||
import {useDebouncedValue} from "@/hooks/useDebouncedValue";
|
||||
|
||||
|
||||
@@ -215,4 +213,4 @@ const BannerSummary = ({ data, useChart, useYear }: BannerSummaryProps) => {
|
||||
);
|
||||
}
|
||||
|
||||
export default BannerSummary;
|
||||
export default BannerSummary;
|
||||
|
||||
@@ -6,16 +6,17 @@ import {
|
||||
StackBar
|
||||
} from "@/components/lge-dashboard";
|
||||
import BannerButtons from "@/components/lge-dashboard/BannerButtons";
|
||||
import {categoryByDataBanner, totalFilters} from "@/config/filter.data";
|
||||
import {categoryByDataBanner, totalFilters} from "@/const/filter.const";
|
||||
import React, {useMemo, useState} from "react";
|
||||
import {BannerGroupKey, CategoryChartMode, BannerRow, LegendOption} from "@/types/lg";
|
||||
import {BannerGroupKey, CategoryChartMode, BannerRow, LegendOption} from "@/types/lg.types";
|
||||
import {
|
||||
buildRowLabelSeriesChartData,
|
||||
buildYearSeriesChartData, formatRowLabel,
|
||||
isBannerGroupKey, isGapRow,
|
||||
wrapSampleRow
|
||||
} from "@/lib/lg-dashboard";
|
||||
import {BANNER_GROUP, BANNER_KEY_MAP} from "@/const/lgConst";
|
||||
import {BANNER_GROUP} from "@/const/lg-banner.const";
|
||||
import {BANNER_KEY_MAP} from "@/const/lg-schema.const";
|
||||
import {createDefaultGrid, reverseCategories} from "@/lib/chart-options";
|
||||
|
||||
type CategoryByDataProps = {
|
||||
@@ -171,4 +172,4 @@ const CategoryByData = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default CategoryByData;
|
||||
export default CategoryByData;
|
||||
|
||||
@@ -4,9 +4,9 @@ import React, { useMemo } from "react";
|
||||
import { cn, parseNumber } from "@/lib/utils";
|
||||
import type { DataColumn, SignStyle } from "../types";
|
||||
import SectionTitle from "../SectionTitle";
|
||||
import { TABLE_DIMENSIONS } from "@/const/chartConst";
|
||||
import { TABLE_DIMENSIONS } from "@/components/lge-dashboard/chart/chart.config";
|
||||
import {isSampleRow, roundNumber} from "@/lib/lg-dashboard";
|
||||
import {SAMPLE_SIZE_NOTICE, UNIT_TEXT, VIEW_DECIMAL_POINT} from "@/const/lgConst";
|
||||
import {SAMPLE_SIZE_NOTICE, UNIT_TEXT, VIEW_DECIMAL_POINT} from "@/const/lg-common.const";
|
||||
|
||||
type MergedChartCell<T> = {
|
||||
/** 차트를 삽입할 컬럼 key(해당 컬럼 td는 startRow에서만 렌더되고 rowSpan 적용) */
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import GaugeCardTable from "./GaugeCardTable";
|
||||
import {LIFE_STAGE_COLUMNS, UNIT_TEXT} from "@/const/lgConst";
|
||||
import {LifeStageGroup} from "@/types/lg";
|
||||
import {LIFE_STAGE_COLUMNS} from "@/const/lg-product.const";
|
||||
import {UNIT_TEXT} from "@/const/lg-common.const";
|
||||
import {LifeStageGroup} from "@/types/lg.types";
|
||||
import SectionTitle from "../SectionTitle";
|
||||
import React from "react";
|
||||
|
||||
@@ -48,4 +49,4 @@ const LifeStageDiv = ({lifeStageRowsByGroup}:lifeStageDivProps) => {
|
||||
);
|
||||
}
|
||||
|
||||
export default LifeStageDiv;
|
||||
export default LifeStageDiv;
|
||||
|
||||
@@ -4,8 +4,8 @@ import React, { useMemo } from "react";
|
||||
import { cn, parseNumber } from "@/lib/utils";
|
||||
import type { ChartData, SignStyle, TopChartTableRow } from "../types";
|
||||
import SectionTitle from "../SectionTitle";
|
||||
import { CHART_HEIGHTS, TABLE_DIMENSIONS } from "@/const/chartConst";
|
||||
import {UNIT_TEXT} from "@/const/lgConst";
|
||||
import { CHART_HEIGHTS, TABLE_DIMENSIONS } from "@/components/lge-dashboard/chart/chart.config";
|
||||
import {UNIT_TEXT} from "@/const/lg-common.const";
|
||||
import {isCagrRow, roundNumber} from "@/lib/lg-dashboard";
|
||||
|
||||
export type TopChartTableProps = {
|
||||
@@ -171,4 +171,4 @@ export default function TopChartTable(props: TopChartTableProps) {
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user