bfg-common 1.4.236 → 1.4.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import {
3
3
  frequencyOnOrdinalNumberFunc,
4
4
  } from '~/components/common/pages/scheduledTasks/modals/common/frequency/on/lib/config/options'
5
5
 
6
- export type T_FrequencyWeeksDays = ReturnType<
6
+ export type UI_T_FrequencyWeeksDays = ReturnType<
7
7
  typeof frequencyOnWeeksDaysFunc
8
8
  >[number]['value']
9
9
 
@@ -1,6 +1,5 @@
1
1
  import type {
2
2
  UI_I_ScheduleNewTasksForm,
3
- I_TakeSnapshotForm,
4
3
  } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
5
4
 
6
5
  export const scheduledTaskDefaultFormFunc = (): UI_I_ScheduleNewTasksForm => {
@@ -19,10 +18,3 @@ export const scheduledTaskDefaultFormFunc = (): UI_I_ScheduleNewTasksForm => {
19
18
  frg_on_week_days: [],
20
19
  }
21
20
  }
22
-
23
- export const scheduledTaskSnapshotDefaultFormFunc = (): I_TakeSnapshotForm => {
24
- return {
25
- name: '',
26
- description: '',
27
- }
28
- }
@@ -1,4 +1,4 @@
1
- import type { T_FrequencyWeeksDays } from '~/components/common/pages/scheduledTasks/modals/common/frequency/on/lib/models/types'
1
+ import type { UI_T_FrequencyWeeksDays } from '~/components/common/pages/scheduledTasks/modals/common/frequency/on/lib/models/types'
2
2
 
3
3
  export interface UI_I_ScheduleNewTasksForm {
4
4
  task_name: string
@@ -10,12 +10,7 @@ export interface UI_I_ScheduleNewTasksForm {
10
10
  frg_start_on_time: number | null
11
11
  frg_monthly_day: number
12
12
  frq_ordinal_number: string
13
- frq_week_day: T_FrequencyWeeksDays
13
+ frq_week_day: UI_T_FrequencyWeeksDays
14
14
  frg_on_time: number | null
15
15
  frg_on_week_days: number[]
16
16
  }
17
-
18
- export interface I_TakeSnapshotForm {
19
- name: string
20
- description: string
21
- }
@@ -1,16 +1,4 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
1
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
3
- export const defineScheduleTaskModalTitle = (
4
- title: string,
5
- isEdit: boolean
6
- ): string => {
7
- const localization: UI_I_Localization = useLocal()
8
-
9
- const { scheduleNewTasks, scheduleTaskEdit } = localization.common
10
- const modalMode = isEdit ? scheduleTaskEdit : scheduleNewTasks
11
-
12
- return `${modalMode} (${title})`
13
- }
14
2
 
15
3
  export const buttonDisabled = (form: UI_I_ScheduleNewTasksForm): boolean => {
16
4
  const { task_name, frequency } = form
@@ -13,7 +13,6 @@
13
13
  <template #modalBody="{ selectedStep }">
14
14
  <atoms-loader v-show="!vmSettings" id="loader" />
15
15
  <div v-if="vmSettings" class="vm-context">
16
- <!-- TODO refactoring-->
17
16
  <common-pages-scheduled-tasks-modals-common-new-task-form
18
17
  v-show="selectedStep.id === dynamicSteps.scheduledTasks"
19
18
  v-model="newTaskForm"
@@ -136,7 +135,9 @@ import {
136
135
  } from '~/components/common/vm/actions/clone/lib/config/steps'
137
136
  import Wizard from '~/components/atoms/wizard/lib/utils/utils'
138
137
  import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
139
- import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/lib/config/createScheduledTask'
138
+ import {
139
+ scheduledTaskDefaultFormFunc
140
+ } from "~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask";
140
141
 
141
142
  const props = defineProps<{
142
143
  project: UI_T_Project
@@ -13,7 +13,6 @@
13
13
  @submit="onFinish"
14
14
  >
15
15
  <template #modalBody="{ selectedStep }">
16
- <!-- TODO refactoring move to common-->
17
16
  <common-pages-scheduled-tasks-modals-common-new-task-form
18
17
  v-if="selectedStep.id === 0"
19
18
  v-model="newScheduledTaskForm"
@@ -96,10 +95,12 @@ import type { UI_I_VmSettings } from '~/lib/models/store/vm/interfaces'
96
95
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
97
96
  import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
98
97
  import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
99
- import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
98
+ import type {UI_I_ScheduleNewTasksForm} from "~/components/common/pages/scheduledTasks/modals/lib/models/interfaces";
100
99
  import { constructDataReadyViewFunc } from '~/components/common/wizards/vm/migrate/lib/config/constructDataReady'
101
- import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/lib/config/createScheduledTask'
102
100
  import * as validation from '~/components/common/wizards/vm/migrate/lib/validations'
101
+ import {
102
+ scheduledTaskDefaultFormFunc
103
+ } from "~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask";
103
104
 
104
105
  const props = defineProps<{
105
106
  project: UI_T_Project
@@ -1,5 +1,5 @@
1
- import { UI_I_Localization } from '~/lib/models/interfaces'
2
- import { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
3
  import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
4
4
 
5
5
  export const stepsFunc = (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.236",
4
+ "version": "1.4.237",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -1,18 +0,0 @@
1
- import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
2
-
3
- export const scheduledTaskDefaultFormFunc = (): UI_I_ScheduleNewTasksForm => {
4
- return {
5
- task_name: '',
6
- description: '',
7
- frequency: '',
8
- frg_after_startup: 0,
9
- frg_interval: 1,
10
- frg_end_time: null,
11
- frg_start_on_time: null,
12
- frg_monthly_day: 0,
13
- frq_week_day: '',
14
- frq_ordinal_number: '',
15
- frg_on_time: null,
16
- frg_on_week_days: [],
17
- }
18
- }
@@ -1,14 +0,0 @@
1
- export interface UI_I_ScheduleNewTasksForm {
2
- task_name: string
3
- description: string
4
- frequency: string
5
- frg_after_startup: number
6
- frg_interval: number
7
- frg_end_time: number | null
8
- frg_start_on_time: number | null
9
- frg_monthly_day: number
10
- frq_ordinal_number: string
11
- frq_week_day: string
12
- frg_on_time: number | null
13
- frg_on_week_days: number[]
14
- }