bfg-common 1.5.392 → 1.5.394
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 +1 -16
- package/assets/localization/local_en.json +1 -16
- package/assets/localization/local_hy.json +1 -16
- package/assets/localization/local_kk.json +1 -16
- package/assets/localization/local_ru.json +1 -16
- package/assets/localization/local_zh.json +1 -16
- package/components/common/backup/storage/actions/add/Add.vue +248 -250
- package/components/common/backup/storage/actions/add/New.vue +304 -305
- package/components/common/backup/storage/actions/add/Old.vue +0 -1
- package/components/common/backup/storage/actions/add/lib/validations.ts +242 -234
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +42 -44
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +276 -272
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +331 -328
- package/package.json +1 -1
package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue
CHANGED
@@ -1,272 +1,276 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="basics-step">
|
3
|
-
<ui-alert
|
4
|
-
v-show="isShowAlertInfo"
|
5
|
-
:messages="[localization.common.nameAndConfigurationAlertInfo]"
|
6
|
-
test-id="configure-information-alert"
|
7
|
-
type="info"
|
8
|
-
class="mb-4"
|
9
|
-
size="md"
|
10
|
-
@remove="isShowAlertInfo = false"
|
11
|
-
/>
|
12
|
-
|
13
|
-
<div class="basics-step-row">
|
14
|
-
<div class="basics-step-row-title">
|
15
|
-
<span class="basics-step-row-title-text">
|
16
|
-
{{ localization.common.name }}
|
17
|
-
</span>
|
18
|
-
</div>
|
19
|
-
<div class="basics-step-row-content">
|
20
|
-
<ui-input
|
21
|
-
id="configuration-name-input"
|
22
|
-
v-model="formModelLocal.name"
|
23
|
-
:placeholder="localization.common.name"
|
24
|
-
:error="nameErrorText"
|
25
|
-
:disabled="props.isDisabledNameField"
|
26
|
-
test-id="configuration-name-input"
|
27
|
-
is-focused
|
28
|
-
/>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div class="basics-step-line"></div>
|
33
|
-
|
34
|
-
<div class="basics-step-row">
|
35
|
-
<div class="basics-step-row-title">
|
36
|
-
<span class="basics-step-row-title-text">
|
37
|
-
{{ localization.common.folder }}
|
38
|
-
</span>
|
39
|
-
<common-tooltip-help
|
40
|
-
test-id="backup-storage-tooltip-info-folder"
|
41
|
-
help-id="backup-storage-tooltip-info-folder-icon"
|
42
|
-
:title="localization.common.information"
|
43
|
-
:help-text="localization.backup.specifyFolderPathExample"
|
44
|
-
dropdown-width="272px"
|
45
|
-
dropdown-left
|
46
|
-
dropdown-top
|
47
|
-
/>
|
48
|
-
</div>
|
49
|
-
<div class="basics-step-row-content">
|
50
|
-
<ui-input
|
51
|
-
id="configuration-folder-input"
|
52
|
-
v-model="formModelLocal.folder"
|
53
|
-
:placeholder="localization.backup.folderPlaceholder"
|
54
|
-
:error="folderErrorText"
|
55
|
-
:disabled="props.isDisabledNameField"
|
56
|
-
test-id="configuration-folder-input"
|
57
|
-
/>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
|
61
|
-
<div class="basics-step-line"></div>
|
62
|
-
|
63
|
-
<div class="basics-step-row">
|
64
|
-
<div class="basics-step-row-title">
|
65
|
-
<span class="basics-step-row-title-text">
|
66
|
-
{{ localization.common.server }}
|
67
|
-
</span>
|
68
|
-
<common-tooltip-help
|
69
|
-
test-id="backup-storage-tooltip-info-server"
|
70
|
-
help-id="backup-storage-tooltip-info-server-icon"
|
71
|
-
:title="localization.common.information"
|
72
|
-
:help-text="localization.backup.specifyServerAddressExample"
|
73
|
-
dropdown-width="272px"
|
74
|
-
dropdown-left
|
75
|
-
dropdown-top
|
76
|
-
/>
|
77
|
-
</div>
|
78
|
-
<div class="basics-step-row-content">
|
79
|
-
<ui-input
|
80
|
-
id="configuration-server-input"
|
81
|
-
v-model="formModelLocal.server"
|
82
|
-
:placeholder="localization.backup.serverPlaceholder"
|
83
|
-
:error="serverErrorText"
|
84
|
-
:disabled="props.isDisabledNameField"
|
85
|
-
test-id="configuration-server-input"
|
86
|
-
/>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<div class="basics-step-row
|
94
|
-
<
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
</div
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<div class="basics-step-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
</
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
import type {
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
const
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
const
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
return
|
162
|
-
}
|
163
|
-
|
164
|
-
}
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
}
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
}
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
}
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
1
|
+
<template>
|
2
|
+
<div class="basics-step">
|
3
|
+
<ui-alert
|
4
|
+
v-show="isShowAlertInfo"
|
5
|
+
:messages="[localization.common.nameAndConfigurationAlertInfo]"
|
6
|
+
test-id="configure-information-alert"
|
7
|
+
type="info"
|
8
|
+
class="mb-4"
|
9
|
+
size="md"
|
10
|
+
@remove="isShowAlertInfo = false"
|
11
|
+
/>
|
12
|
+
|
13
|
+
<div class="basics-step-row">
|
14
|
+
<div class="basics-step-row-title">
|
15
|
+
<span class="basics-step-row-title-text">
|
16
|
+
{{ localization.common.name }}
|
17
|
+
</span>
|
18
|
+
</div>
|
19
|
+
<div class="basics-step-row-content">
|
20
|
+
<ui-input
|
21
|
+
id="configuration-name-input"
|
22
|
+
v-model="formModelLocal.name"
|
23
|
+
:placeholder="localization.common.name"
|
24
|
+
:error="nameErrorText"
|
25
|
+
:disabled="props.isDisabledNameField"
|
26
|
+
test-id="configuration-name-input"
|
27
|
+
is-focused
|
28
|
+
/>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="basics-step-line"></div>
|
33
|
+
|
34
|
+
<div class="basics-step-row">
|
35
|
+
<div class="basics-step-row-title">
|
36
|
+
<span class="basics-step-row-title-text">
|
37
|
+
{{ localization.common.folder }}
|
38
|
+
</span>
|
39
|
+
<common-tooltip-help
|
40
|
+
test-id="backup-storage-tooltip-info-folder"
|
41
|
+
help-id="backup-storage-tooltip-info-folder-icon"
|
42
|
+
:title="localization.common.information"
|
43
|
+
:help-text="localization.backup.specifyFolderPathExample"
|
44
|
+
dropdown-width="272px"
|
45
|
+
dropdown-left
|
46
|
+
dropdown-top
|
47
|
+
/>
|
48
|
+
</div>
|
49
|
+
<div class="basics-step-row-content">
|
50
|
+
<ui-input
|
51
|
+
id="configuration-folder-input"
|
52
|
+
v-model="formModelLocal.folder"
|
53
|
+
:placeholder="localization.backup.folderPlaceholder"
|
54
|
+
:error="folderErrorText"
|
55
|
+
:disabled="props.isDisabledNameField"
|
56
|
+
test-id="configuration-folder-input"
|
57
|
+
/>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
|
61
|
+
<div class="basics-step-line"></div>
|
62
|
+
|
63
|
+
<div class="basics-step-row">
|
64
|
+
<div class="basics-step-row-title">
|
65
|
+
<span class="basics-step-row-title-text">
|
66
|
+
{{ localization.common.server }}
|
67
|
+
</span>
|
68
|
+
<common-tooltip-help
|
69
|
+
test-id="backup-storage-tooltip-info-server"
|
70
|
+
help-id="backup-storage-tooltip-info-server-icon"
|
71
|
+
:title="localization.common.information"
|
72
|
+
:help-text="localization.backup.specifyServerAddressExample"
|
73
|
+
dropdown-width="272px"
|
74
|
+
dropdown-left
|
75
|
+
dropdown-top
|
76
|
+
/>
|
77
|
+
</div>
|
78
|
+
<div class="basics-step-row-content">
|
79
|
+
<ui-input
|
80
|
+
id="configuration-server-input"
|
81
|
+
v-model="formModelLocal.server"
|
82
|
+
:placeholder="localization.backup.serverPlaceholder"
|
83
|
+
:error="serverErrorText"
|
84
|
+
:disabled="props.isDisabledNameField"
|
85
|
+
test-id="configuration-server-input"
|
86
|
+
/>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
<!-- PC-2542-->
|
91
|
+
<!-- <div class="basics-step-line"></div>-->
|
92
|
+
|
93
|
+
<!-- <div class="basics-step-row">-->
|
94
|
+
<!-- <div class="basics-step-row-title">-->
|
95
|
+
<!-- <span class="basics-step-row-title-text">-->
|
96
|
+
<!-- {{ localization.auth.username }}-->
|
97
|
+
<!-- </span>-->
|
98
|
+
<!-- </div>-->
|
99
|
+
<!-- <div class="basics-step-row-content">-->
|
100
|
+
<!-- <ui-input-->
|
101
|
+
<!-- id="configuration-username-input"-->
|
102
|
+
<!-- v-model="formModelLocal.user"-->
|
103
|
+
<!-- :placeholder="localization.auth.username"-->
|
104
|
+
<!-- :error="usernameErrorText"-->
|
105
|
+
<!-- :disabled="props.isDisabledNameField"-->
|
106
|
+
<!-- test-id="configuration-username-input"-->
|
107
|
+
<!-- />-->
|
108
|
+
<!-- </div>-->
|
109
|
+
<!-- </div>-->
|
110
|
+
|
111
|
+
<!-- PC-2542-->
|
112
|
+
<!-- <div class="basics-step-line"></div>-->
|
113
|
+
|
114
|
+
<!-- <div class="basics-step-row">-->
|
115
|
+
<!-- <div class="basics-step-row-title">-->
|
116
|
+
<!-- <span class="basics-step-row-title-text">-->
|
117
|
+
<!-- {{ localization.auth.password }}-->
|
118
|
+
<!-- </span>-->
|
119
|
+
<!-- </div>-->
|
120
|
+
<!-- <div class="basics-step-row-content">-->
|
121
|
+
<!-- <ui-input-->
|
122
|
+
<!-- id="configuration-password-input"-->
|
123
|
+
<!-- v-model="formModelLocal.password"-->
|
124
|
+
<!-- :placeholder="localization.auth.password"-->
|
125
|
+
<!-- :error="passwordErrorText"-->
|
126
|
+
<!-- :disabled="props.isDisabledNameField"-->
|
127
|
+
<!-- type="password"-->
|
128
|
+
<!-- test-id="configuration-password-input"-->
|
129
|
+
<!-- />-->
|
130
|
+
<!-- </div>-->
|
131
|
+
<!-- </div>-->
|
132
|
+
</div>
|
133
|
+
</template>
|
134
|
+
|
135
|
+
<script setup lang="ts">
|
136
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
137
|
+
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
138
|
+
import type { UI_I_CreateDatastoreForm } from '~/components/common/backup/storage/actions/add/lib/models/interfaces'
|
139
|
+
|
140
|
+
const formModelLocal = defineModel<UI_I_CreateDatastoreForm>({ required: true })
|
141
|
+
const isShowAlertInfo = defineModel<boolean>('alertInfo', { required: true })
|
142
|
+
|
143
|
+
const props = defineProps<{
|
144
|
+
alertMessages: string[]
|
145
|
+
messagesFields: UI_I_WizardStep['fields']
|
146
|
+
isDisabledNameField?: boolean
|
147
|
+
}>()
|
148
|
+
|
149
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
150
|
+
|
151
|
+
const isEmptyAlertMessages = computed<boolean>(() => {
|
152
|
+
return (
|
153
|
+
!props.alertMessages?.length ||
|
154
|
+
(props.alertMessages && !props.alertMessages.flat().length)
|
155
|
+
)
|
156
|
+
})
|
157
|
+
|
158
|
+
/* Validation error text for Name input field */
|
159
|
+
const nameErrorText = computed<string>(() => {
|
160
|
+
if (isEmptyAlertMessages.value && props.messagesFields?.name?.field) {
|
161
|
+
return props.messagesFields.name.field
|
162
|
+
} else if (!formModelLocal.value.name) {
|
163
|
+
return localization.value.common.fieldRequired
|
164
|
+
}
|
165
|
+
return ''
|
166
|
+
})
|
167
|
+
|
168
|
+
/* Validation error text for Folder input field */
|
169
|
+
const folderErrorText = computed<string>(() => {
|
170
|
+
if (isEmptyAlertMessages.value && props.messagesFields.folder?.field) {
|
171
|
+
return props.messagesFields.folder.field
|
172
|
+
}
|
173
|
+
return ''
|
174
|
+
})
|
175
|
+
|
176
|
+
/* Validation error text for Server input field */
|
177
|
+
const serverErrorText = computed<string>(() => {
|
178
|
+
if (isEmptyAlertMessages.value && props.messagesFields.server?.field) {
|
179
|
+
return props.messagesFields.server.field
|
180
|
+
}
|
181
|
+
return ''
|
182
|
+
})
|
183
|
+
|
184
|
+
/* Validation error text for Username input field */
|
185
|
+
// PC-2542
|
186
|
+
// const usernameErrorText = computed<string>(() => {
|
187
|
+
// if (isEmptyAlertMessages.value && props.messagesFields.user?.field) {
|
188
|
+
// return props.messagesFields.user.field
|
189
|
+
// }
|
190
|
+
// return ''
|
191
|
+
// })
|
192
|
+
|
193
|
+
/* Validation error text for Password input field */
|
194
|
+
// PC-2542
|
195
|
+
// const passwordErrorText = computed<string>(() => {
|
196
|
+
// if (isEmptyAlertMessages.value && props.messagesFields.password?.field) {
|
197
|
+
// return props.messagesFields.password.field
|
198
|
+
// }
|
199
|
+
// return ''
|
200
|
+
// })
|
201
|
+
</script>
|
202
|
+
|
203
|
+
<style scoped lang="scss">
|
204
|
+
.basics-step {
|
205
|
+
padding: 16px 0 16px;
|
206
|
+
|
207
|
+
&-row {
|
208
|
+
min-height: 36px;
|
209
|
+
width: 100%;
|
210
|
+
display: flex;
|
211
|
+
column-gap: 16px;
|
212
|
+
align-items: center;
|
213
|
+
|
214
|
+
&-title {
|
215
|
+
padding-top: 8px;
|
216
|
+
max-width: 240px;
|
217
|
+
width: 100%;
|
218
|
+
display: flex;
|
219
|
+
align-items: center;
|
220
|
+
column-gap: 8px;
|
221
|
+
font-weight: 400;
|
222
|
+
font-size: 13px;
|
223
|
+
line-height: 20px;
|
224
|
+
letter-spacing: 0;
|
225
|
+
vertical-align: middle;
|
226
|
+
align-self: flex-start;
|
227
|
+
color: var(--wizard-content-title);
|
228
|
+
white-space: nowrap;
|
229
|
+
text-overflow: ellipsis;
|
230
|
+
overflow: hidden;
|
231
|
+
|
232
|
+
&-text {
|
233
|
+
display: block;
|
234
|
+
white-space: nowrap;
|
235
|
+
text-overflow: ellipsis;
|
236
|
+
overflow: hidden;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
&-content {
|
241
|
+
max-width: 480px;
|
242
|
+
width: 100%;
|
243
|
+
font-weight: 400;
|
244
|
+
font-size: 13px;
|
245
|
+
line-height: 20px;
|
246
|
+
letter-spacing: 0;
|
247
|
+
vertical-align: middle;
|
248
|
+
color: var(--wizard-content-value);
|
249
|
+
|
250
|
+
&-text {
|
251
|
+
display: flex;
|
252
|
+
column-gap: 8px;
|
253
|
+
align-items: center;
|
254
|
+
|
255
|
+
&-icon {
|
256
|
+
width: 20px;
|
257
|
+
min-width: 20px;
|
258
|
+
height: 20px;
|
259
|
+
min-height: 20px;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
&-switch-container {
|
264
|
+
width: fit-content;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
&-line {
|
270
|
+
height: 0;
|
271
|
+
width: 100%;
|
272
|
+
border-bottom: 1px solid var(--wizard-content-line);
|
273
|
+
margin: 16px 0;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
</style>
|