bfg-common 1.4.284 → 1.4.286

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.
@@ -2210,7 +2210,8 @@
2210
2210
  "theValueTooLarge": "Значэнне можа быць занадта вялікім",
2211
2211
  "theValueTooSmall": "Значэнне можа быць занадта малым",
2212
2212
  "theValueLargeThanStartTime": "Значэнне павінна быць больш, чым час пачатку",
2213
- "closed": "Закрыты"
2213
+ "closed": "Закрыты",
2214
+ "noItemsFound": "Элементы не знойдзены"
2214
2215
  },
2215
2216
  "auth": {
2216
2217
  "welcomeTo": "Сардэчна запрашаем у",
@@ -2214,7 +2214,8 @@
2214
2214
  "theValueTooLarge": "The value may be too large",
2215
2215
  "theValueTooSmall": "The value may be too small",
2216
2216
  "theValueLargeThanStartTime": "The value should be large than start time",
2217
- "closed": "Closed"
2217
+ "closed": "Closed",
2218
+ "noItemsFound": "No items found"
2218
2219
  },
2219
2220
  "auth": {
2220
2221
  "welcomeTo": "Welcome to",
@@ -2214,7 +2214,8 @@
2214
2214
  "theValueTooLarge": "Արժեքը կարող է չափազանց մեծ լինել",
2215
2215
  "theValueTooSmall": "Արժեքը կարող է չափազանց փոքր լինել",
2216
2216
  "theValueLargeThanStartTime": "Արժեքը պետք է մեծ լինի, քան մեկնարկի ժամանակը",
2217
- "closed": "Փակված է"
2217
+ "closed": "Փակված է",
2218
+ "noItemsFound": "Նյութեր չեն գտնվել"
2218
2219
  },
2219
2220
  "auth": {
2220
2221
  "welcomeTo": "Բարի գալուստ",
@@ -2213,7 +2213,8 @@
2213
2213
  "theValueTooLarge": "Мән тым үлкен болуы мүмкін",
2214
2214
  "theValueTooSmall": "Мән тым аз болуы мүмкін",
2215
2215
  "theValueLargeThanStartTime": "Мән басталу уақытынан үлкен болуы керек",
2216
- "closed": "Жабық"
2216
+ "closed": "Жабық",
2217
+ "noItemsFound": "Ешбір элемент табылмады"
2217
2218
  },
2218
2219
  "auth": {
2219
2220
  "welcomeTo": "Қош келдіңіз",
@@ -2216,7 +2216,8 @@
2216
2216
  "theValueTooLarge": "Значение может быть слишком большим",
2217
2217
  "theValueTooSmall": "Значение может быть слишком маленьким",
2218
2218
  "theValueLargeThanStartTime": "Значение должно быть больше времени начала.",
2219
- "closed": "Закрыто"
2219
+ "closed": "Закрыто",
2220
+ "noItemsFound": "Элементы не найдены"
2220
2221
  },
2221
2222
  "auth": {
2222
2223
  "welcomeTo": "Добро пожаловать в",
@@ -2212,7 +2212,8 @@
2212
2212
  "theValueTooLarge": "该值可能太大",
2213
2213
  "theValueTooSmall": "该值可能太小",
2214
2214
  "theValueLargeThanStartTime": "该值应该大于开始时间",
2215
- "closed": "关闭"
2215
+ "closed": "关闭",
2216
+ "noItemsFound": "没有找到物品"
2216
2217
  },
2217
2218
  "auth": {
2218
2219
  "welcomeTo": "欢迎来到",
@@ -0,0 +1,65 @@
1
+ <template>
2
+ <common-modals-confirmation-new
3
+ v-if="props.isNewView"
4
+ :headline="props.headline"
5
+ :description="props.description"
6
+ :modal-texts="props.modalTexts"
7
+ :test-id="props.testId"
8
+ @hide-modal="emits('hide-modal')"
9
+ @confirm="emits('confirm')"
10
+ />
11
+ <common-modals-confirmation-old
12
+ v-else
13
+ :description="props.description"
14
+ :headline="props.headline"
15
+ :sub-title="props.subTitle"
16
+ :test-id="props.testId"
17
+ :type="props.type"
18
+ :loading="props.loading"
19
+ :variant-text-button="props.variantTextButton"
20
+ :width="props.width"
21
+ @hide-modal="emits('hide-modal')"
22
+ @confirm="emits('confirm')"
23
+ />
24
+ </template>
25
+
26
+ <script setup lang="ts">
27
+ import type { UI_I_ModalTexts } from 'bfg-uikit/components/ui/modal/models/interfaces'
28
+
29
+ const props = withDefaults(
30
+ defineProps<{
31
+ isNewView?: boolean
32
+ description?: string
33
+ headline?: string
34
+ subTitle?: string
35
+ testId?: string
36
+ type?: 'confirm' | 'remove'
37
+ loading?: boolean
38
+ variantTextButton?: 'ok' | 'confirm' | 'remove'
39
+ width?: string
40
+ modalTexts?: UI_I_ModalTexts
41
+ }>(),
42
+ {
43
+ isNewView: false,
44
+ testId: 'common-confirmation',
45
+ headline: '',
46
+ subTitle: '',
47
+ type: 'confirm',
48
+ description: '',
49
+ variantTextButton: 'ok',
50
+ width: '580px',
51
+ loading: false,
52
+ modalTexts: {
53
+ resetToDefault: 'Reset To Default',
54
+ button1: 'Cancel',
55
+ button2: 'Confirm',
56
+ },
57
+ }
58
+ )
59
+ const emits = defineEmits<{
60
+ (event: 'hide-modal'): void
61
+ (event: 'confirm'): void
62
+ }>()
63
+ </script>
64
+
65
+ <style scoped lang="scss"></style>
@@ -0,0 +1,86 @@
1
+ <template>
2
+ <ui-modal
3
+ show
4
+ :test-id="props.testId"
5
+ size="sm"
6
+ width="480px"
7
+ :texts="modalTextsLocal"
8
+ @hide="onHide"
9
+ @submit="onSubmit"
10
+ >
11
+ <template #header>
12
+ <div class="justify-between flex w-100">
13
+ <span></span>
14
+
15
+ <ui-icon-icon4 name="info-status" width="48px" height="48px" />
16
+ <ui-icon
17
+ name="close"
18
+ width="24"
19
+ height="24"
20
+ class="pointer"
21
+ @click="onHide"
22
+ />
23
+ </div>
24
+ </template>
25
+ <template #content>
26
+ <h4 class="logout-title">
27
+ {{ props.headline }}
28
+ </h4>
29
+ <p class="logout-description">
30
+ {{ props.description }}
31
+ </p>
32
+ </template>
33
+ <template #footerLeftContent>
34
+ <span></span>
35
+ </template>
36
+ </ui-modal>
37
+ </template>
38
+
39
+ <script setup lang="ts">
40
+ import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
41
+
42
+ const props = defineProps<{
43
+ testId: string
44
+ headline: string
45
+ description: string
46
+ modalTexts: UI_I_ModalTexts
47
+ }>()
48
+ const emits = defineEmits<{
49
+ (event: 'submit'): void
50
+ (event: 'hide'): void
51
+ }>()
52
+
53
+ const modalTextsLocal = computed<UI_I_ModalTexts>(() => props.modalTexts)
54
+
55
+ const onHide = (): void => {
56
+ emits('hide')
57
+ }
58
+ const onSubmit = (): void => {
59
+ emits('submit')
60
+ }
61
+ </script>
62
+
63
+ <style scoped lang="scss">
64
+ :deep(.modal-footer-container) {
65
+ justify-content: center;
66
+ }
67
+ :deep(.modal-footer-transparent-block) {
68
+ display: none;
69
+ }
70
+
71
+ .logout-title {
72
+ font-size: 20px;
73
+ font-weight: 500;
74
+ line-height: 24.2px;
75
+ color: #4d5d69;
76
+ margin-bottom: 8px;
77
+ text-align: center;
78
+ }
79
+ .logout-description {
80
+ font-size: 14px;
81
+ font-weight: 400;
82
+ line-height: 16.94px;
83
+ color: #9da6ad;
84
+ text-align: center;
85
+ }
86
+ </style>
@@ -48,7 +48,7 @@ const tabs = computed<UI_I_SelectWeekDayTab[]>(() =>
48
48
  watch(
49
49
  modelFrequency,
50
50
  (newValue: UI_I_ScheduleNewTasksForm) => {
51
- modelFrequency.value.isValid = !!newValue.frg_on_week_days.length
51
+ modelFrequency.value.isValid = !newValue.frg_on_week_days.length
52
52
  },
53
53
  {
54
54
  deep: true,
@@ -155,6 +155,7 @@ const props = defineProps<{
155
155
  vmNameInWizard: string
156
156
  capabilities?: UI_I_Capabilities
157
157
  isScheduledTasks?: boolean
158
+ isEditScheduledTasks?: boolean
158
159
  selectedVirtualMachine?: UI_I_Capabilities
159
160
  }>()
160
161
 
@@ -489,7 +490,8 @@ const onFinish = (): void => {
489
490
  localization.value,
490
491
  false,
491
492
  newTaskForm.value,
492
- props.isScheduledTasks
493
+ props.isScheduledTasks,
494
+ props.isEditScheduledTasks
493
495
  )
494
496
  .then(() => {
495
497
  onHideModal()
@@ -94,6 +94,7 @@ export interface UI_I_CloneVmPayload {
94
94
  data: UI_I_CloneVmData
95
95
  schedulerForm: UI_I_ScheduleNewTasksForm
96
96
  isScheduledTasks: boolean
97
+ isEditScheduledTasks: boolean
97
98
  }
98
99
 
99
100
  export interface UI_I_EditVmPayload {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.284",
4
+ "version": "1.4.286",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
37
  "bfg-nuxt-3-graph": "1.0.15",
38
- "bfg-uikit": "1.0.135",
38
+ "bfg-uikit": "1.0.138",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }