-
-
-
-
-
{{ emptyState.title }}
diff --git a/apps/web/src/common/modules/widgets/_components/WidgetFormOverlayStep2.vue b/apps/web/src/common/modules/widgets/_components/WidgetFormOverlayStep2.vue
index 107624b7d7..3cce04411c 100644
--- a/apps/web/src/common/modules/widgets/_components/WidgetFormOverlayStep2.vue
+++ b/apps/web/src/common/modules/widgets/_components/WidgetFormOverlayStep2.vue
@@ -1,6 +1,6 @@
@@ -245,6 +243,7 @@ onUnmounted(() => {
:class="{ 'full-size': state.selectedWidgetSize === 'FULL' || widgetGenerateState.overlayType === 'EXPAND' }"
>
{
/>
-
();
const widgetGenerateStore = useWidgetGenerateStore();
const widgetGenerateState = widgetGenerateStore.state;
const widgetGenerateGetters = widgetGenerateStore.getters;
-const dashboardDetailStore = useDashboardDetailInfoStore();
-const dashboardDetailState = dashboardDetailStore.state;
const state = reactive({
chartTypeMenuItems: computed
+
+
+ {{ item.label }}
+
+
-
{
@@ -307,16 +282,9 @@ onMounted(() => {
@@ -342,13 +310,9 @@ onMounted(() => {
@@ -363,9 +327,6 @@ onMounted(() => {
{{ $t('DASHBOARDS.WIDGET.OVERLAY.STEP_2.VALIDATION_MODAL.GEO_MAP_DESC') }}
-
- {{ $t('DASHBOARDS.WIDGET.OVERLAY.STEP_2.VALIDATION_MODAL.PROGRESS_CARD_DESC') }}
-
{{ $t('DASHBOARDS.WIDGET.OVERLAY.STEP_2.VALIDATION_MODAL.DESC', {
number: state.formErrorModalValue ?? state.defaultValidationConfig?.defaultMaxCount,
diff --git a/apps/web/src/common/modules/widgets/_components/WidgetFrame.vue b/apps/web/src/common/modules/widgets/_components/WidgetFrame.vue
index 661a826446..a8c10d12b5 100644
--- a/apps/web/src/common/modules/widgets/_components/WidgetFrame.vue
+++ b/apps/web/src/common/modules/widgets/_components/WidgetFrame.vue
@@ -16,12 +16,13 @@ import { i18n } from '@/translations';
import { WIDGET_WIDTH_STR_MAP } from '@/common/modules/widgets/_constants/widget-display-constant';
import { WIDGET_HEIGHT } from '@/common/modules/widgets/_constants/widget-field-constant';
-import type { WidgetFrameEmit } from '@/common/modules/widgets/types/widget-display-type';
+import type { WidgetHeightValue } from '@/common/modules/widgets/_widget-fields/widget-height/type';
+import type { WidgetEmit } from '@/common/modules/widgets/types/widget-display-type';
import type { WidgetFrameProps } from '@/common/modules/widgets/types/widget-frame-type';
const props = defineProps();
-const emit = defineEmits();
+const emit = defineEmits();
const router = useRouter();
const state = reactive({
isFull: computed(() => props.size === WIDGET_SIZE.full),
@@ -55,6 +56,10 @@ const state = reactive({
label: WIDGET_WIDTH_STR_MAP[size],
}))),
unitText: computed(() => Object.values(props.unitMap || {}).join(', ') || '--'),
+ widgetHeight: computed(() => {
+ const widgetHeight = props.widgetOptions?.widgetHeight?.value as WidgetHeightValue;
+ return widgetHeight?.type ?? WIDGET_HEIGHT.default;
+ }),
});
/* Event */
@@ -96,7 +101,7 @@ watch(() => state.etcMenuVisible, (_etcMenuVisible) => {
:class="{
full: state.isFull,
[props.size]: props.size,
- [`widget-height-${props.widgetOptions?.widgetHeight?.value ?? WIDGET_HEIGHT.default}`]: true,
+ [`widget-height-${state.widgetHeight}`]: true,
}"
:style="{ width: (props.width && !state.isFull) ? `${props.width}px` : '100%'}"
>
diff --git a/apps/web/src/common/modules/widgets/_components/__WidgetFieldDropdownAndMax.vue b/apps/web/src/common/modules/widgets/_components/__WidgetFieldDropdownAndMax.vue
new file mode 100644
index 0000000000..4288a2e7fc
--- /dev/null
+++ b/apps/web/src/common/modules/widgets/_components/__WidgetFieldDropdownAndMax.vue
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
diff --git a/apps/web/src/common/modules/widgets/_composables/use-granularity-menu-items.ts b/apps/web/src/common/modules/widgets/_composables/use-granularity-menu-items.ts
deleted file mode 100644
index 52f14a948f..0000000000
--- a/apps/web/src/common/modules/widgets/_composables/use-granularity-menu-items.ts
+++ /dev/null
@@ -1,122 +0,0 @@
-import type { ComputedRef, UnwrapRef } from 'vue';
-import {
- computed, reactive, toRefs, watch,
-} from 'vue';
-
-import { get } from 'lodash';
-
-import type { MenuItem } from '@cloudforet/mirinae/types/controls/context-menu/type';
-
-import type { Granularity } from '@/schema/dashboard/_types/widget-type';
-
-import { DATE_FIELD } from '@/common/modules/widgets/_constants/widget-constant';
-import { sortWidgetTableFields } from '@/common/modules/widgets/_helpers/widget-helper';
-import type { WidgetFieldComponentProps, WidgetFieldOptions, WidgetFieldName } from '@/common/modules/widgets/types/widget-field-type';
-import type { WidgetFieldValues } from '@/common/modules/widgets/types/widget-field-value-type';
-import type { LabelsInfo } from '@/common/modules/widgets/types/widget-model';
-
-interface UseGranularityMenuItemState {
- selectedValue: ComputedRef;
- granularity: UnwrapRef;
- labelInfo: ComputedRef;
- isDateSeparated: ComputedRef;
- labelsMenuItem: ComputedRef