bfg-common 1.5.930 → 1.5.932
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/assets/localization/local_be.json +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -1
- package/components/common/pages/scheduledTasks/modals/common/taskForm/New.vue +53 -160
- package/package.json +1 -1
|
@@ -3410,7 +3410,8 @@
|
|
|
3410
3410
|
"delayMinutes": "Затрымка (хвілін)",
|
|
3411
3411
|
"selectPosition": "Выберыце пазіцыю",
|
|
3412
3412
|
"selectDay": "Выберыце дзень",
|
|
3413
|
-
"emails": "Электронныя лісты"
|
|
3413
|
+
"emails": "Электронныя лісты",
|
|
3414
|
+
"taskDetails": "Падрабязнасці задання"
|
|
3414
3415
|
},
|
|
3415
3416
|
"license": {
|
|
3416
3417
|
"limits": "Мяжа",
|
|
@@ -3414,7 +3414,8 @@
|
|
|
3414
3414
|
"delayMinutes": "Delay (Minutes)",
|
|
3415
3415
|
"selectPosition": "Select Position",
|
|
3416
3416
|
"selectDay": "Select Day",
|
|
3417
|
-
"emails": "Emails"
|
|
3417
|
+
"emails": "Emails",
|
|
3418
|
+
"taskDetails": "Task Details"
|
|
3418
3419
|
},
|
|
3419
3420
|
"license": {
|
|
3420
3421
|
"limits": "Limits",
|
|
@@ -3414,7 +3414,8 @@
|
|
|
3414
3414
|
"delayMinutes": "Ժամանակաձգում (րոպե)",
|
|
3415
3415
|
"selectPosition": "Ընտրեք դիրքը",
|
|
3416
3416
|
"selectDay": "Ընտրեք օրը",
|
|
3417
|
-
"emails": "Էլեկտրոնային նամակներ"
|
|
3417
|
+
"emails": "Էլեկտրոնային նամակներ",
|
|
3418
|
+
"taskDetails": "Առաջադրանքի մանրամասներ"
|
|
3418
3419
|
},
|
|
3419
3420
|
"license": {
|
|
3420
3421
|
"limits": "Սահմանները",
|
|
@@ -3413,7 +3413,8 @@
|
|
|
3413
3413
|
"delayMinutes": "Кешігу (минут)",
|
|
3414
3414
|
"selectPosition": "Орынды таңдаңыз",
|
|
3415
3415
|
"selectDay": "Күнді таңдаңыз",
|
|
3416
|
-
"emails": "Электрондық хаттар"
|
|
3416
|
+
"emails": "Электрондық хаттар",
|
|
3417
|
+
"taskDetails": "Тапсырма мәліметтері"
|
|
3417
3418
|
},
|
|
3418
3419
|
"license": {
|
|
3419
3420
|
"limits": "Шектеулер",
|
|
@@ -3413,7 +3413,8 @@
|
|
|
3413
3413
|
"delayMinutes": "Задержка (минут)",
|
|
3414
3414
|
"selectPosition": "Выберите позицию",
|
|
3415
3415
|
"selectDay": "Выберите день",
|
|
3416
|
-
"emails": "Электронные письма"
|
|
3416
|
+
"emails": "Электронные письма",
|
|
3417
|
+
"taskDetails": "Сведения о задании"
|
|
3417
3418
|
},
|
|
3418
3419
|
"license": {
|
|
3419
3420
|
"limits": "Пределы",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<form class="form" @submit.prevent>
|
|
3
|
+
<h2 v-if="!isHideFormLeftCol" class="task-details">
|
|
4
|
+
{{ localization.scheduledTasks.taskDetails }}
|
|
5
|
+
</h2>
|
|
3
6
|
<section class="form__section" :class="!isHideFormLeftCol && 'horizontal'">
|
|
4
7
|
<!-- Используем, когда форма применяется внутри модалки -->
|
|
5
8
|
<div
|
|
@@ -38,7 +41,7 @@
|
|
|
38
41
|
</div>
|
|
39
42
|
</div>
|
|
40
43
|
|
|
41
|
-
<div class="form__row">
|
|
44
|
+
<div class="form__row description">
|
|
42
45
|
<div v-if="!isHideFormLeftCol" class="form__row-title">
|
|
43
46
|
<span class="text-ellipsis">
|
|
44
47
|
{{ textareaLabel }}
|
|
@@ -84,28 +87,40 @@
|
|
|
84
87
|
</div>
|
|
85
88
|
</div>
|
|
86
89
|
|
|
87
|
-
<
|
|
90
|
+
<h2>{{ localization.common.run }}</h2>
|
|
91
|
+
<div class="form__row" :class="isHideFormLeftCol && 'vertical'">
|
|
88
92
|
<div v-if="!isHideFormLeftCol" class="form__row-title">
|
|
89
93
|
<span class="text-ellipsis">
|
|
90
94
|
{{ localization.scheduledTasks.frequency }}
|
|
91
95
|
</span>
|
|
92
96
|
</div>
|
|
93
|
-
<div
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
<div
|
|
98
|
+
class="form__row-content frequency-run"
|
|
99
|
+
:class="{
|
|
100
|
+
'grid-single-col': !model.frequency || model.frequency === 'once',
|
|
101
|
+
}"
|
|
102
|
+
>
|
|
103
|
+
<div>
|
|
104
|
+
<h2 v-if="isHideFormLeftCol" class="frequency">
|
|
105
|
+
{{ localization.scheduledTasks.frequency }}
|
|
106
|
+
</h2>
|
|
107
|
+
|
|
108
|
+
<ui-select
|
|
109
|
+
v-model="model.frequency"
|
|
110
|
+
:items="frequencyMethodOptionsLocal"
|
|
111
|
+
test-id="schedule-task-frequency-select"
|
|
112
|
+
:placeholder="localization.scheduledTasks.selectFrequency"
|
|
113
|
+
size="md"
|
|
114
|
+
select-width="100%"
|
|
115
|
+
/>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<common-pages-scheduled-tasks-modals-common-frequency
|
|
119
|
+
v-if="isHideFormLeftCol && model.frequency"
|
|
120
|
+
v-model="model"
|
|
121
|
+
:type="model.frequency"
|
|
122
|
+
:template-view-mode="props.templateViewMode"
|
|
101
123
|
/>
|
|
102
|
-
|
|
103
|
-
<!-- <common-pages-scheduled-tasks-modals-common-frequency-->
|
|
104
|
-
<!-- v-if="model.frequency"-->
|
|
105
|
-
<!-- v-model="model"-->
|
|
106
|
-
<!-- :type="model.frequency"-->
|
|
107
|
-
<!-- :template-view-mode="props.templateViewMode"-->
|
|
108
|
-
<!-- />-->
|
|
109
124
|
</div>
|
|
110
125
|
</div>
|
|
111
126
|
|
|
@@ -122,41 +137,8 @@
|
|
|
122
137
|
/>
|
|
123
138
|
</div>
|
|
124
139
|
|
|
125
|
-
<!-- <div class="form__run">-->
|
|
126
|
-
<!-- <h2>{{ localization.common.run }}</h2>-->
|
|
127
|
-
|
|
128
|
-
<!-- <div-->
|
|
129
|
-
<!-- class="form__run-frequency"-->
|
|
130
|
-
<!-- :class="{-->
|
|
131
|
-
<!-- 'grid-single-col': !model.frequency || model.frequency === 'once',-->
|
|
132
|
-
<!-- }"-->
|
|
133
|
-
<!-- >-->
|
|
134
|
-
<!-- <div>-->
|
|
135
|
-
<!-- <h2 class="frequency">-->
|
|
136
|
-
<!-- {{ localization.scheduledTasks.frequency }}-->
|
|
137
|
-
<!-- </h2>-->
|
|
138
|
-
<!-- <ui-select-->
|
|
139
|
-
<!-- v-model="model.frequency"-->
|
|
140
|
-
<!-- :items="frequencyMethodOptionsLocal"-->
|
|
141
|
-
<!-- test-id="schedule-task-frequency-select"-->
|
|
142
|
-
<!-- :placeholder="localization.scheduledTasks.selectFrequency"-->
|
|
143
|
-
<!-- size="md"-->
|
|
144
|
-
<!-- select-width="100%"-->
|
|
145
|
-
<!-- class="mt-3"-->
|
|
146
|
-
<!-- />-->
|
|
147
|
-
<!-- </div>-->
|
|
148
|
-
|
|
149
|
-
<!-- <common-pages-scheduled-tasks-modals-common-frequency-->
|
|
150
|
-
<!-- v-if="model.frequency"-->
|
|
151
|
-
<!-- v-model="model"-->
|
|
152
|
-
<!-- :type="model.frequency"-->
|
|
153
|
-
<!-- :template-view-mode="props.templateViewMode"-->
|
|
154
|
-
<!-- />-->
|
|
155
|
-
<!-- </div>-->
|
|
156
|
-
<!-- </div>-->
|
|
157
|
-
|
|
158
140
|
<h2>{{ emailCompletionLabel }}</h2>
|
|
159
|
-
<div class="form__row">
|
|
141
|
+
<div class="form__row email">
|
|
160
142
|
<div v-if="!isHideFormLeftCol" class="form__row-title">
|
|
161
143
|
<span class="text-ellipsis">
|
|
162
144
|
{{ emailTextareaLabel }}
|
|
@@ -172,100 +154,10 @@
|
|
|
172
154
|
/>
|
|
173
155
|
</div>
|
|
174
156
|
</div>
|
|
175
|
-
|
|
176
|
-
<!-- <div class="form__email"></div>-->
|
|
177
157
|
</section>
|
|
178
158
|
</form>
|
|
179
159
|
</template>
|
|
180
160
|
|
|
181
|
-
<!--<template>-->
|
|
182
|
-
<!-- <form class="form" @submit.prevent>-->
|
|
183
|
-
<!-- <section class="flex flex-direction-column row-gap-6">-->
|
|
184
|
-
<!-- <div-->
|
|
185
|
-
<!-- v-if="isHideFormLeftCol"-->
|
|
186
|
-
<!-- class="flex justify-between column-gap-4 form__target"-->
|
|
187
|
-
<!-- >-->
|
|
188
|
-
<!-- <div class="flex items-center column-gap-2 text-ellipsis">-->
|
|
189
|
-
<!-- <p class="text">{{ localization.common.target }}:</p>-->
|
|
190
|
-
<!-- <span class="icon vsphere-icon-vm"></span>-->
|
|
191
|
-
<!-- <span class="text">{{ props.target }}</span>-->
|
|
192
|
-
<!-- </div>-->
|
|
193
|
-
<!-- <div class="flex items-center column-gap-3">-->
|
|
194
|
-
<!-- <p class="text">{{ localization.common.active }}</p>-->
|
|
195
|
-
<!-- <ui-switch-->
|
|
196
|
-
<!-- v-model="model.toggle"-->
|
|
197
|
-
<!-- test-id="scheduled-task-active-switch-input"-->
|
|
198
|
-
<!-- />-->
|
|
199
|
-
<!-- </div>-->
|
|
200
|
-
<!-- </div>-->
|
|
201
|
-
|
|
202
|
-
<!-- <ui-input-->
|
|
203
|
-
<!-- id="schedule-task-name-field"-->
|
|
204
|
-
<!-- v-model="model.task_name"-->
|
|
205
|
-
<!-- :label="localization.common.taskName"-->
|
|
206
|
-
<!-- :error="props.taskNameErrorText"-->
|
|
207
|
-
<!-- test-id="schedule-task-name-field"-->
|
|
208
|
-
<!-- class="form__user-name"-->
|
|
209
|
-
<!-- @input="onInitValidation(['taskName'])"-->
|
|
210
|
-
<!-- />-->
|
|
211
|
-
|
|
212
|
-
<!-- <ui-textarea-->
|
|
213
|
-
<!-- id="description"-->
|
|
214
|
-
<!-- v-model="model.description"-->
|
|
215
|
-
<!-- :label="textareaLabel"-->
|
|
216
|
-
<!-- test-id="schedule-task-description-field"-->
|
|
217
|
-
<!-- height="84"-->
|
|
218
|
-
<!-- class="form__description"-->
|
|
219
|
-
<!-- />-->
|
|
220
|
-
|
|
221
|
-
<!-- <div class="form__run">-->
|
|
222
|
-
<!-- <h2>{{ localization.common.run }}</h2>-->
|
|
223
|
-
|
|
224
|
-
<!-- <div-->
|
|
225
|
-
<!-- class="form__run-frequency"-->
|
|
226
|
-
<!-- :class="{-->
|
|
227
|
-
<!-- 'grid-single-col': !model.frequency || model.frequency === 'once',-->
|
|
228
|
-
<!-- }"-->
|
|
229
|
-
<!-- >-->
|
|
230
|
-
<!-- <div>-->
|
|
231
|
-
<!-- <h2 class="frequency">-->
|
|
232
|
-
<!-- {{ localization.scheduledTasks.frequency }}-->
|
|
233
|
-
<!-- </h2>-->
|
|
234
|
-
<!-- <ui-select-->
|
|
235
|
-
<!-- v-model="model.frequency"-->
|
|
236
|
-
<!-- :items="frequencyMethodOptionsLocal"-->
|
|
237
|
-
<!-- test-id="schedule-task-frequency-select"-->
|
|
238
|
-
<!-- :placeholder="localization.scheduledTasks.selectFrequency"-->
|
|
239
|
-
<!-- size="md"-->
|
|
240
|
-
<!-- select-width="100%"-->
|
|
241
|
-
<!-- class="mt-3"-->
|
|
242
|
-
<!-- />-->
|
|
243
|
-
<!-- </div>-->
|
|
244
|
-
|
|
245
|
-
<!-- <common-pages-scheduled-tasks-modals-common-frequency-->
|
|
246
|
-
<!-- v-if="model.frequency"-->
|
|
247
|
-
<!-- v-model="model"-->
|
|
248
|
-
<!-- :type="model.frequency"-->
|
|
249
|
-
<!-- :template-view-mode="props.templateViewMode"-->
|
|
250
|
-
<!-- />-->
|
|
251
|
-
<!-- </div>-->
|
|
252
|
-
<!-- </div>-->
|
|
253
|
-
|
|
254
|
-
<!-- <div class="form__email">-->
|
|
255
|
-
<!-- <h2>{{ emailCompletionLabel }}</h2>-->
|
|
256
|
-
<!-- <ui-textarea-->
|
|
257
|
-
<!-- id="email-completion"-->
|
|
258
|
-
<!-- v-model="model.ntfn_target"-->
|
|
259
|
-
<!-- placeholder="example1@email.com,example2@email.com"-->
|
|
260
|
-
<!-- test-id="schedule-task-email-completion-field"-->
|
|
261
|
-
<!-- height="84"-->
|
|
262
|
-
<!-- class="form__description"-->
|
|
263
|
-
<!-- />-->
|
|
264
|
-
<!-- </div>-->
|
|
265
|
-
<!-- </section>-->
|
|
266
|
-
<!-- </form>-->
|
|
267
|
-
<!--</template>-->
|
|
268
|
-
|
|
269
161
|
<script lang="ts" setup>
|
|
270
162
|
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
271
163
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
@@ -365,30 +257,15 @@ const frequencyMethodOptionsLocal = computed<UI_I_Dropdown[]>(() =>
|
|
|
365
257
|
}
|
|
366
258
|
}
|
|
367
259
|
|
|
368
|
-
//&__run,
|
|
369
|
-
//&__email {
|
|
370
|
-
// border-top: 1px solid var(--horizontal-line);
|
|
371
|
-
// padding-top: 16px;
|
|
372
|
-
//}
|
|
373
|
-
|
|
374
|
-
&__run {
|
|
375
|
-
&-frequency {
|
|
376
|
-
display: grid;
|
|
377
|
-
grid-template-columns: 1fr 1fr;
|
|
378
|
-
grid-gap: 16px;
|
|
379
|
-
&.grid-single-col {
|
|
380
|
-
grid-template-columns: 1fr;
|
|
381
|
-
column-gap: 0;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
260
|
h2 {
|
|
387
261
|
font-family: 'Inter', sans-serif;
|
|
388
262
|
color: var(--title-form-first-color);
|
|
389
263
|
font-size: 16px;
|
|
390
264
|
font-weight: 500;
|
|
391
|
-
margin
|
|
265
|
+
margin: -8px 0;
|
|
266
|
+
&.task-details {
|
|
267
|
+
margin: 0 0 16px 0;
|
|
268
|
+
}
|
|
392
269
|
&.frequency {
|
|
393
270
|
font-size: 14px;
|
|
394
271
|
margin-bottom: 12px;
|
|
@@ -401,6 +278,10 @@ const frequencyMethodOptionsLocal = computed<UI_I_Dropdown[]>(() =>
|
|
|
401
278
|
display: flex;
|
|
402
279
|
align-items: center;
|
|
403
280
|
column-gap: 16px;
|
|
281
|
+
&.email,
|
|
282
|
+
&.description {
|
|
283
|
+
align-items: baseline;
|
|
284
|
+
}
|
|
404
285
|
.horizontal &:not(:last-child) {
|
|
405
286
|
border-bottom: 1px solid var(--wizard-content-line);
|
|
406
287
|
padding-bottom: 16px;
|
|
@@ -440,6 +321,18 @@ const frequencyMethodOptionsLocal = computed<UI_I_Dropdown[]>(() =>
|
|
|
440
321
|
letter-spacing: 0;
|
|
441
322
|
vertical-align: middle;
|
|
442
323
|
}
|
|
324
|
+
|
|
325
|
+
&.vertical {
|
|
326
|
+
.frequency-run {
|
|
327
|
+
display: grid;
|
|
328
|
+
grid-template-columns: 1fr 1fr;
|
|
329
|
+
grid-gap: 16px;
|
|
330
|
+
&.grid-single-col {
|
|
331
|
+
grid-template-columns: 1fr;
|
|
332
|
+
column-gap: 0;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
443
336
|
}
|
|
444
337
|
}
|
|
445
338
|
</style>
|