bfg-common 1.5.926 → 1.5.927
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.
- package/components/common/pages/scheduledTasks/modals/common/frequency/Frequency.vue +1 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/New.vue +1 -1
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/New.vue +34 -1
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/StartOn.vue +5 -0
- package/components/common/pages/scheduledTasks/modals/common/taskForm/New.vue +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
v-model="scheduledTaskFormLocal"
|
|
11
11
|
/>
|
|
12
12
|
|
|
13
|
-
<div v-if="props.type === 'month'" class="frequency-monthly-days">
|
|
13
|
+
<div v-if="props.type === 'month'" class="frequency-monthly-days w-full">
|
|
14
14
|
<div class="frequency-on-date__radios">
|
|
15
15
|
<ui-radio
|
|
16
16
|
v-for="(option, key) in props.frequencyMonthlyMode"
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="frequency-start-on"
|
|
4
|
+
:class="props.templateViewMode === 'horizontal' && 'horizontal'"
|
|
5
|
+
>
|
|
3
6
|
<h2>{{ localization.common.start }}</h2>
|
|
4
7
|
<ui-input-with-datepicker
|
|
5
8
|
id="frequency-start-on-date"
|
|
@@ -17,10 +20,14 @@
|
|
|
17
20
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
18
21
|
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
|
19
22
|
import { getUiDatepickerFormatByLanguage } from '~/lib/utils/date'
|
|
23
|
+
import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
|
|
20
24
|
|
|
21
25
|
const modelFrequencyLocal = defineModel<UI_I_ScheduleNewTasksForm>({
|
|
22
26
|
required: true,
|
|
23
27
|
})
|
|
28
|
+
const props = defineProps<{
|
|
29
|
+
templateViewMode: 'horizontal' | 'vertical'
|
|
30
|
+
}>()
|
|
24
31
|
|
|
25
32
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
26
33
|
|
|
@@ -42,5 +49,31 @@ const datepickerFormat = computed<string>(
|
|
|
42
49
|
line-height: 18px;
|
|
43
50
|
margin-bottom: 12px;
|
|
44
51
|
}
|
|
52
|
+
|
|
53
|
+
&.horizontal {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
align-items: center;
|
|
57
|
+
column-gap: 16px;
|
|
58
|
+
border-top: 0;
|
|
59
|
+
padding-top: 0;
|
|
60
|
+
|
|
61
|
+
h2 {
|
|
62
|
+
font-family: 'Inter', sans-serif;
|
|
63
|
+
width: 100%;
|
|
64
|
+
max-width: 240px;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
column-gap: 8px;
|
|
68
|
+
color: var(--wizard-content-title);
|
|
69
|
+
font-size: 13px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
line-height: 20px;
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
45
78
|
}
|
|
46
79
|
</style>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- Аргумент (:template-view-mode) используется только для нового интерфейса -->
|
|
2
3
|
<component
|
|
3
4
|
:is="currentComponent"
|
|
4
5
|
v-model="modelFrequencyLocal"
|
|
6
|
+
:template-view-mode="props.templateViewMode"
|
|
5
7
|
@vue:mounted="onSetDefaultDateTime"
|
|
6
8
|
/>
|
|
7
9
|
</template>
|
|
@@ -14,6 +16,9 @@ import { validateDate } from '~/components/common/pages/scheduledTasks/modals/co
|
|
|
14
16
|
const modelFrequencyLocal = defineModel<UI_I_ScheduleNewTasksForm>({
|
|
15
17
|
required: true,
|
|
16
18
|
})
|
|
19
|
+
const props = defineProps<{
|
|
20
|
+
templateViewMode: 'horizontal' | 'vertical'
|
|
21
|
+
}>()
|
|
17
22
|
|
|
18
23
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
19
24
|
const { $formattedDatetime }: any = useNuxtApp()
|