From 9e006c7059148fe2d1807d636d1735545fae99ab Mon Sep 17 00:00:00 2001 From: Yongtae Park Date: Tue, 17 Dec 2024 02:37:18 +0900 Subject: [PATCH] chore: small fix Signed-off-by: samuel.park --- .../widgets/_constants/widget-field-components-constant.ts | 6 +----- .../src/common/modules/widgets/types/widget-display-type.ts | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/web/src/common/modules/widgets/_constants/widget-field-components-constant.ts b/apps/web/src/common/modules/widgets/_constants/widget-field-components-constant.ts index 9e5ae1f033..dd8ef64b36 100644 --- a/apps/web/src/common/modules/widgets/_constants/widget-field-components-constant.ts +++ b/apps/web/src/common/modules/widgets/_constants/widget-field-components-constant.ts @@ -1,6 +1,6 @@ import type { Component } from 'vue'; -import advancedFormatRules from '@/common/modules/widgets/_widget-fields/advanced-format-rules/WidgetFieldAdvancedFormatRules.vue'; +import formatRules from '@/common/modules/widgets/_widget-fields/advanced-format-rules/WidgetFieldFormatRules.vue'; import categoryBy from '@/common/modules/widgets/_widget-fields/category-by/WidgetFieldCategoryBy.vue'; import colorSchema from '@/common/modules/widgets/_widget-fields/color-schema/WidgetFieldColorSchema.vue'; import comparison from '@/common/modules/widgets/_widget-fields/comparison/WidgetFieldComparison.vue'; @@ -11,7 +11,6 @@ import dateFormat from '@/common/modules/widgets/_widget-fields/date-format/Widg import dateRange from '@/common/modules/widgets/_widget-fields/date-range/WidgetFieldDateRange.vue'; import displayAnnotation from '@/common/modules/widgets/_widget-fields/display-annotation/WidgetFieldDisplayAnnotation.vue'; import displaySeriesLabel from '@/common/modules/widgets/_widget-fields/display-series-label/WidgetFieldDisplaySeriesLabel.vue'; -import formatRules from '@/common/modules/widgets/_widget-fields/format-rules/WidgetFieldFormatRules.vue'; import granularity from '@/common/modules/widgets/_widget-fields/granularity/WidgetFieldGranularity.vue'; import groupBy from '@/common/modules/widgets/_widget-fields/group-by/WidgetFieldGroupBy.vue'; import icon from '@/common/modules/widgets/_widget-fields/icon/WidgetFieldIcon.vue'; @@ -24,7 +23,6 @@ import pieChartType from '@/common/modules/widgets/_widget-fields/pie-chart-type import stackBy from '@/common/modules/widgets/_widget-fields/stack-by/WidgetFieldStackBy.vue'; import subTotal from '@/common/modules/widgets/_widget-fields/sub-total/WidgetFieldSubTotal.vue'; import tableColumnWidth from '@/common/modules/widgets/_widget-fields/table-column-width/WidgetFieldTableColumnWidth.vue'; -import tableDataField from '@/common/modules/widgets/_widget-fields/table-data-field/WidgetFieldTableDataField.vue'; import textWrap from '@/common/modules/widgets/_widget-fields/text-wrap/WidgetFieldTextWrap.vue'; import tooltipNumberFormat from '@/common/modules/widgets/_widget-fields/tooltip-number-format/WidgetFieldTooltipNumberFormat.vue'; import total from '@/common/modules/widgets/_widget-fields/total/WidgetFieldTotal.vue'; @@ -37,7 +35,6 @@ import type { WidgetFieldName } from '@/common/modules/widgets/types/widget-fiel export const WIDGET_FIELD_COMPONENTS: Record, Component> = { dateRange, dataField, - tableDataField, xAxis, yAxis, stackBy, @@ -46,7 +43,6 @@ export const WIDGET_FIELD_COMPONENTS: Record, Component min, max, formatRules, - advancedFormatRules, legend, icon, subTotal, diff --git a/apps/web/src/common/modules/widgets/types/widget-display-type.ts b/apps/web/src/common/modules/widgets/types/widget-display-type.ts index b134a50a8d..4481589319 100644 --- a/apps/web/src/common/modules/widgets/types/widget-display-type.ts +++ b/apps/web/src/common/modules/widgets/types/widget-display-type.ts @@ -5,6 +5,7 @@ import type { import type { APIErrorToast } from '@/common/composables/error/errorHandler'; import type { WIDGET_SIZE } from '@/common/modules/widgets/_constants/widget-display-constant'; +import type { WidgetFieldValue } from '@/common/modules/widgets/_widget-field-value-manager/type'; import type { WidgetFieldName } from '@/common/modules/widgets/types/widget-field-type'; import type { WidgetFieldValues } from '@/common/modules/widgets/types/widget-field-value-type'; import type { WidgetState } from '@/common/modules/widgets/types/widget-model'; @@ -23,7 +24,7 @@ export interface WidgetProps { description?: string; size?: WidgetSize; width?: number; - widgetOptions?: Record; + widgetOptions?: Record>; // mode?: 'overlay'|'view'; // from dashboard