bfg-common 1.5.225 → 1.5.227
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 +15 -1
- package/assets/localization/local_en.json +17 -3
- package/assets/localization/local_hy.json +15 -1
- package/assets/localization/local_kk.json +15 -1
- package/assets/localization/local_ru.json +15 -1
- package/assets/localization/local_zh.json +15 -1
- package/components/atoms/table/info/Info.vue +4 -0
- package/components/common/backup/storage/actions/add/Add.vue +36 -22
- package/components/common/backup/storage/actions/add/New.vue +2 -50
- package/components/common/backup/storage/actions/add/Old.vue +24 -81
- package/components/common/backup/storage/actions/add/lib/config/steps.ts +9 -9
- package/components/common/backup/storage/actions/add/lib/models/interfaces.ts +1 -0
- package/components/common/backup/storage/actions/add/lib/utils.ts +1 -34
- package/components/common/backup/storage/actions/add/lib/validations.ts +70 -14
- package/components/common/backup/storage/actions/add/steps/common/tooltipInfo/TooltipInfo.vue +94 -0
- package/components/common/backup/storage/actions/add/steps/name/New.vue +4 -4
- package/components/common/backup/storage/actions/add/steps/name/Old.vue +9 -28
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +41 -41
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +294 -279
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +13 -10
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/lib/models/interfaces.ts +2 -0
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/lib/models/types.ts +1 -0
- package/components/common/backup/storage/actions/add/steps/readyComplete/ReadyComplete.vue +6 -5
- package/components/common/backup/storage/actions/add/steps/readyComplete/ReadyCompleteOld.vue +0 -11
- package/components/common/backup/storage/actions/add/steps/readyComplete/lib/config/propertiesDetails.ts +36 -100
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeMode.vue +0 -3
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeNew.vue +0 -3
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeOld.vue +0 -5
- package/components/common/pages/scheduledTasks/modals/common/frequency/Frequency.vue +1 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/End.vue +9 -1
- package/components/common/pages/scheduledTasks/modals/common/frequency/lib/utils.ts +24 -7
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +2 -1
- package/lib/models/interfaces.ts +3 -0
- package/package.json +2 -2
- package/components/common/backup/storage/actions/add/lib/models/enums.ts +0 -5
- package/components/common/backup/storage/actions/add/temp/Add.vue +0 -527
- package/components/common/backup/storage/actions/add/temp/lib/config/stepItems.ts +0 -236
- package/components/common/backup/storage/actions/add/temp/lib/models/interfaces.ts +0 -58
- package/components/common/backup/storage/actions/add/temp/lib/models/types.ts +0 -14
- package/components/common/backup/storage/actions/add/temp/lib/utils.ts +0 -71
- package/components/common/backup/storage/actions/add/temp/local/Local.vue +0 -83
- package/components/common/backup/storage/actions/add/temp/local/accessibility/Accessibility.vue +0 -104
- package/components/common/backup/storage/actions/add/temp/local/accessibility/lib/config/tabsPannel.ts +0 -25
- package/components/common/backup/storage/actions/add/temp/local/accessibility/lib/models/interfaces.ts +0 -9
- package/components/common/backup/storage/actions/add/temp/local/accessibility/lib/models/types.ts +0 -5
- package/components/common/backup/storage/actions/add/temp/local/accessibility/tablesView/TablesView.vue +0 -141
- package/components/common/backup/storage/actions/add/temp/local/accessibility/tablesView/lib/config/compatibleTable.ts +0 -62
- package/components/common/backup/storage/actions/add/temp/local/accessibility/tablesView/lib/config/hostsTableItems.ts +0 -27
- package/components/common/backup/storage/actions/add/temp/local/accessibility/tablesView/lib/config/incompatibleTable.ts +0 -68
- package/components/common/backup/storage/actions/add/temp/local/accessibility/tablesView/lib/config/tableKeys.ts +0 -15
- package/components/common/backup/storage/actions/add/temp/local/createName/CreateName.vue +0 -160
- package/components/common/backup/storage/actions/add/temp/local/createName/lib/config/defaultForm.ts +0 -15
- package/components/common/backup/storage/actions/add/temp/nfs/Nfs.vue +0 -106
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/Accessibility.vue +0 -104
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/lib/config/tabsPannel.ts +0 -25
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/lib/models/interfaces.ts +0 -9
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/lib/models/types.ts +0 -5
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/TablesView.vue +0 -141
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +0 -62
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +0 -27
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/incompatibleTable.ts +0 -68
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/tableKeys.ts +0 -15
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/Configuration.vue +0 -469
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/lib/config/defaultForm.ts +0 -51
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/lib/models/interfaces.ts +0 -14
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/DeletePopover.vue +0 -99
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/ServersList.vue +0 -125
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/config/serversListConfig.ts +0 -40
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/config/tableKeys.ts +0 -3
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/models/interfaces.ts +0 -13
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/models/types.ts +0 -1
- package/components/common/backup/storage/actions/add/temp/nfs/kerberosAuthentication/KerberosAuthentication.vue +0 -55
- package/components/common/backup/storage/actions/add/temp/nfs/kerberosAuthentication/lib/config/radioOptions.ts +0 -27
- package/components/common/backup/storage/actions/add/temp/nfs/version/Version.vue +0 -42
- package/components/common/backup/storage/actions/add/temp/nfs/version/lib/config/versionOptions.ts +0 -22
- package/components/common/backup/storage/actions/add/temp/readyComplete/ReadyComplete.vue +0 -85
- package/components/common/backup/storage/actions/add/temp/readyComplete/lib/config/propertiesDetails.ts +0 -165
- package/components/common/backup/storage/actions/add/temp/readyComplete/lib/models/interfaces.ts +0 -4
- package/components/common/backup/storage/actions/add/temp/samba/Samba.vue +0 -95
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/Accessibility.vue +0 -104
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/lib/config/tabsPannel.ts +0 -25
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/lib/models/interfaces.ts +0 -9
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/lib/models/types.ts +0 -5
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/TablesView.vue +0 -141
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/compatibleTable.ts +0 -62
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/hostsTableItems.ts +0 -53
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/incompatibleTable.ts +0 -68
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/tableKeys.ts +0 -15
- package/components/common/backup/storage/actions/add/temp/samba/configuration/Configuration.vue +0 -470
- package/components/common/backup/storage/actions/add/temp/samba/configuration/lib/config/defaultForm.ts +0 -51
- package/components/common/backup/storage/actions/add/temp/samba/configuration/lib/models/interfaces.ts +0 -14
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/DeletePopover.vue +0 -99
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/ServersList.vue +0 -124
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/config/serversListConfig.ts +0 -40
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/config/tableKeys.ts +0 -3
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/models/interfaces.ts +0 -13
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/models/types.ts +0 -1
- package/components/common/backup/storage/actions/add/temp/samba/kerberosAuthentication/KerberosAuthentication.vue +0 -55
- package/components/common/backup/storage/actions/add/temp/samba/kerberosAuthentication/lib/config/radioOptions.ts +0 -27
- package/components/common/backup/storage/actions/add/temp/sharedStorm/SharedStorm.vue +0 -106
- package/components/common/backup/storage/actions/add/temp/sharedStorm/storage/Storage.vue +0 -71
- package/components/common/backup/storage/actions/add/temp/sharedStorm/storage/lib/config/defaultForm.ts +0 -15
- package/components/common/backup/storage/actions/add/temp/types/Types.vue +0 -79
- package/components/common/backup/storage/actions/add/temp/types/lib/config/typeOptions.ts +0 -62
package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue
CHANGED
|
@@ -1,279 +1,294 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="basics-step">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<div class="basics-step-row-
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<div class="basics-step-row-
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basics-step">
|
|
3
|
+
<ui-alert
|
|
4
|
+
v-show="isShowAlertInfo"
|
|
5
|
+
test-id="configure-information-alert"
|
|
6
|
+
:messages="[localization.common.nameAndConfigurationAlertInfo]"
|
|
7
|
+
type="info"
|
|
8
|
+
class="mb-4"
|
|
9
|
+
@remove="isShowAlertInfo = false"
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
<div class="basics-step-row">
|
|
13
|
+
<div class="basics-step-row-title">
|
|
14
|
+
<span class="basics-step-row-title-text">
|
|
15
|
+
{{ localization.common.name }}
|
|
16
|
+
</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="basics-step-row-content">
|
|
19
|
+
<ui-input
|
|
20
|
+
id="configuration-name-input"
|
|
21
|
+
v-model="formModelLocal.name"
|
|
22
|
+
test-id="configuration-name-input"
|
|
23
|
+
is-focused
|
|
24
|
+
:placeholder="localization.common.name"
|
|
25
|
+
:error="nameErrorText"
|
|
26
|
+
@blur="initValidation(true, ['name'])"
|
|
27
|
+
@input="initValidation(false, ['name'])"
|
|
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-backup-storage-actions-add-steps-common-tooltip-info
|
|
40
|
+
:id="'option.testId'"
|
|
41
|
+
:description="'Specify the folder path - for example, /vols/vol0/datastore-001'"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="basics-step-row-content">
|
|
45
|
+
<ui-input
|
|
46
|
+
id="configuration-folder-input"
|
|
47
|
+
v-model="formModelLocal.folder"
|
|
48
|
+
test-id="configuration-folder-input"
|
|
49
|
+
placeholder="E.g: /vols/vol0/datastore-001"
|
|
50
|
+
:error="folderErrorText"
|
|
51
|
+
@blur="initValidation(true, ['folder'])"
|
|
52
|
+
@input="initValidation(false, ['folder'])"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="basics-step-line"></div>
|
|
58
|
+
|
|
59
|
+
<div class="basics-step-row">
|
|
60
|
+
<div class="basics-step-row-title">
|
|
61
|
+
<span class="basics-step-row-title-text">
|
|
62
|
+
{{ localization.common.server }}
|
|
63
|
+
</span>
|
|
64
|
+
<common-backup-storage-actions-add-steps-common-tooltip-info
|
|
65
|
+
:id="'option.testIdserver'"
|
|
66
|
+
:description="'Specify the server address - for example, nas, nas.it.com or 192.168.0.1.'"
|
|
67
|
+
/>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="basics-step-row-content">
|
|
70
|
+
<ui-input
|
|
71
|
+
id="configuration-server-input"
|
|
72
|
+
v-model="formModelLocal.server"
|
|
73
|
+
test-id="configuration-server-input"
|
|
74
|
+
placeholder="E.g: nas, nas.it.com or 192.168.0.1"
|
|
75
|
+
:error="serverErrorText"
|
|
76
|
+
@blur="initValidation(true, ['server'])"
|
|
77
|
+
@input="initValidation(false, ['server'])"
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div class="basics-step-line"></div>
|
|
83
|
+
|
|
84
|
+
<div class="basics-step-row">
|
|
85
|
+
<div class="basics-step-row-title">
|
|
86
|
+
<span class="basics-step-row-title-text">
|
|
87
|
+
{{ localization.auth.username }}
|
|
88
|
+
</span>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="basics-step-row-content">
|
|
91
|
+
<ui-input
|
|
92
|
+
id="configuration-username-input"
|
|
93
|
+
v-model="formModelLocal.user"
|
|
94
|
+
test-id="configuration-username-input"
|
|
95
|
+
:placeholder="localization.auth.username"
|
|
96
|
+
:error="usernameErrorText"
|
|
97
|
+
@blur="initValidation(true, ['user'])"
|
|
98
|
+
@input="initValidation(false, ['user'])"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<div class="basics-step-line"></div>
|
|
104
|
+
|
|
105
|
+
<div class="basics-step-row">
|
|
106
|
+
<div class="basics-step-row-title">
|
|
107
|
+
<span class="basics-step-row-title-text">
|
|
108
|
+
{{ localization.auth.password }}
|
|
109
|
+
</span>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="basics-step-row-content">
|
|
112
|
+
<ui-input
|
|
113
|
+
id="configuration-password-input"
|
|
114
|
+
v-model="formModelLocal.password"
|
|
115
|
+
type="password"
|
|
116
|
+
test-id="configuration-password-input"
|
|
117
|
+
:placeholder="localization.auth.password"
|
|
118
|
+
:error="passwordErrorText"
|
|
119
|
+
@blur="initValidation(true, ['password'])"
|
|
120
|
+
@input="initValidation(false, ['password'])"
|
|
121
|
+
/>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</template>
|
|
126
|
+
|
|
127
|
+
<script setup lang="ts">
|
|
128
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
129
|
+
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
130
|
+
import type { UI_I_CreateDatastoreForm } from '~/components/common/backup/storage/actions/add/lib/models/interfaces'
|
|
131
|
+
import type { UI_I_InitialValidationFields } from '~/components/common/backup/storage/actions/add/steps/nameAndConfigure/lib/models/interfaces'
|
|
132
|
+
import type { UI_T_InitialValidationFields } from '~/components/common/backup/storage/actions/add/steps/nameAndConfigure/lib/models/types'
|
|
133
|
+
|
|
134
|
+
const formModelLocal = defineModel<UI_I_CreateDatastoreForm>({ required: true })
|
|
135
|
+
const isShowAlertInfo = defineModel<boolean>('alertInfo', { required: true })
|
|
136
|
+
|
|
137
|
+
const props = defineProps<{
|
|
138
|
+
messagesFields: UI_I_WizardStep['fields']
|
|
139
|
+
}>()
|
|
140
|
+
const emits = defineEmits<{
|
|
141
|
+
(event: 'remove-errors'): void
|
|
142
|
+
}>()
|
|
143
|
+
|
|
144
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
145
|
+
|
|
146
|
+
const initValidationFields = ref<UI_I_InitialValidationFields>({
|
|
147
|
+
name: false,
|
|
148
|
+
folder: false,
|
|
149
|
+
server: false,
|
|
150
|
+
user: false,
|
|
151
|
+
password: false,
|
|
152
|
+
})
|
|
153
|
+
const initValidation = (
|
|
154
|
+
onlyBlur = false,
|
|
155
|
+
types: UI_T_InitialValidationFields[]
|
|
156
|
+
): void => {
|
|
157
|
+
onlyBlur && types.forEach((type) => (initValidationFields.value[type] = true))
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Validation error text for Name input field */
|
|
161
|
+
const nameErrorText = computed<string>(() => {
|
|
162
|
+
if (props.messagesFields?.name?.field && !formModelLocal.value.name) {
|
|
163
|
+
return props.messagesFields.name.field
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (!initValidationFields.value.name) return ''
|
|
167
|
+
return !formModelLocal.value.name
|
|
168
|
+
? localization.value.common.fieldRequired
|
|
169
|
+
: ''
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
/* Validation error text for Folder input field */
|
|
173
|
+
const folderErrorText = computed<string>(() => {
|
|
174
|
+
if (props.messagesFields.folder?.field && !formModelLocal.value.folder) {
|
|
175
|
+
return props.messagesFields.folder.field
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (!initValidationFields.value.folder) return ''
|
|
179
|
+
return !formModelLocal.value.folder
|
|
180
|
+
? localization.value.common.fieldRequired
|
|
181
|
+
: ''
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
/* Validation error text for Server input field */
|
|
185
|
+
const serverErrorText = computed<string>(() => {
|
|
186
|
+
if (props.messagesFields.server?.field && !formModelLocal.value.server) {
|
|
187
|
+
return props.messagesFields.server.field
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (!initValidationFields.value.server) return ''
|
|
191
|
+
return !formModelLocal.value.server
|
|
192
|
+
? localization.value.common.fieldRequired
|
|
193
|
+
: ''
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
/* Validation error text for Username input field */
|
|
197
|
+
const usernameErrorText = computed<string>(() => {
|
|
198
|
+
if (props.messagesFields.user?.field && !formModelLocal.value.user) {
|
|
199
|
+
return props.messagesFields.user.field
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (!initValidationFields.value.user) return ''
|
|
203
|
+
return !formModelLocal.value.user
|
|
204
|
+
? localization.value.common.fieldRequired
|
|
205
|
+
: ''
|
|
206
|
+
})
|
|
207
|
+
|
|
208
|
+
/* Validation error text for Password input field */
|
|
209
|
+
const passwordErrorText = computed<string>(() => {
|
|
210
|
+
if (props.messagesFields.password?.field && !formModelLocal.value.password) {
|
|
211
|
+
return props.messagesFields.password.field
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (!initValidationFields.value.password) return ''
|
|
215
|
+
return !formModelLocal.value.password
|
|
216
|
+
? localization.value.common.fieldRequired
|
|
217
|
+
: ''
|
|
218
|
+
})
|
|
219
|
+
</script>
|
|
220
|
+
|
|
221
|
+
<style scoped lang="scss">
|
|
222
|
+
.basics-step {
|
|
223
|
+
padding: 16px 0 16px;
|
|
224
|
+
|
|
225
|
+
&-row {
|
|
226
|
+
min-height: 36px;
|
|
227
|
+
width: 100%;
|
|
228
|
+
display: flex;
|
|
229
|
+
column-gap: 16px;
|
|
230
|
+
align-items: center;
|
|
231
|
+
|
|
232
|
+
&-title {
|
|
233
|
+
padding-top: 8px;
|
|
234
|
+
max-width: 240px;
|
|
235
|
+
width: 100%;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
column-gap: 8px;
|
|
239
|
+
font-weight: 400;
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
line-height: 20px;
|
|
242
|
+
letter-spacing: 0;
|
|
243
|
+
vertical-align: middle;
|
|
244
|
+
align-self: flex-start;
|
|
245
|
+
color: var(--wizard-content-title);
|
|
246
|
+
white-space: nowrap;
|
|
247
|
+
text-overflow: ellipsis;
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
|
|
250
|
+
&-text {
|
|
251
|
+
display: block;
|
|
252
|
+
white-space: nowrap;
|
|
253
|
+
text-overflow: ellipsis;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&-content {
|
|
259
|
+
max-width: 480px;
|
|
260
|
+
width: 100%;
|
|
261
|
+
font-weight: 400;
|
|
262
|
+
font-size: 13px;
|
|
263
|
+
line-height: 20px;
|
|
264
|
+
letter-spacing: 0;
|
|
265
|
+
vertical-align: middle;
|
|
266
|
+
color: var(--wizard-content-value);
|
|
267
|
+
|
|
268
|
+
&-text {
|
|
269
|
+
display: flex;
|
|
270
|
+
column-gap: 8px;
|
|
271
|
+
align-items: center;
|
|
272
|
+
|
|
273
|
+
&-icon {
|
|
274
|
+
width: 20px;
|
|
275
|
+
min-width: 20px;
|
|
276
|
+
height: 20px;
|
|
277
|
+
min-height: 20px;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&-switch-container {
|
|
282
|
+
width: fit-content;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&-line {
|
|
288
|
+
height: 0;
|
|
289
|
+
width: 100%;
|
|
290
|
+
border-bottom: 1px solid var(--wizard-content-line);
|
|
291
|
+
margin: 16px 0;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
</style>
|
package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue
CHANGED
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
<div class="flex-align-center input-action-wrapper">
|
|
124
124
|
<input
|
|
125
125
|
id="configuration-username-input"
|
|
126
|
-
v-model="formModelLocal.
|
|
126
|
+
v-model="formModelLocal.user"
|
|
127
127
|
data-id="configuration-username-input"
|
|
128
128
|
type="text"
|
|
129
129
|
class="clr-input"
|
|
130
|
-
@blur="initValidation(true, ['
|
|
131
|
-
@input="initValidation(false, ['
|
|
130
|
+
@blur="initValidation(true, ['user'])"
|
|
131
|
+
@input="initValidation(false, ['user'])"
|
|
132
132
|
/>
|
|
133
133
|
<atoms-the-icon class="error-icon" name="info-circle" />
|
|
134
134
|
</div>
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
id="configuration-password-input"
|
|
157
157
|
v-model="formModelLocal.password"
|
|
158
158
|
data-id="configuration-password-input"
|
|
159
|
-
type="
|
|
159
|
+
type="password"
|
|
160
160
|
class="clr-input"
|
|
161
161
|
@blur="initValidation(true, ['password'])"
|
|
162
162
|
@input="initValidation(false, ['password'])"
|
|
@@ -181,6 +181,9 @@ import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/inter
|
|
|
181
181
|
import type { UI_I_InitialValidationFields } from '~/components/common/backup/storage/actions/add/steps/nameAndConfigure/lib/models/interfaces'
|
|
182
182
|
import type { UI_I_CreateDatastoreForm } from '~/components/common/backup/storage/actions/add/lib/models/interfaces'
|
|
183
183
|
import { dynamicSteps } from '~/components/common/backup/storage/actions/add/lib/config/steps'
|
|
184
|
+
import type {
|
|
185
|
+
UI_T_InitialValidationFields
|
|
186
|
+
} from "~/components/common/backup/storage/actions/add/steps/nameAndConfigure/lib/models/types";
|
|
184
187
|
|
|
185
188
|
const formModelLocal = defineModel<UI_I_CreateDatastoreForm>({ required: true })
|
|
186
189
|
const isShowAlertInfo = defineModel<boolean>('alertInfo', { required: true })
|
|
@@ -199,10 +202,10 @@ const initValidationFields = ref<UI_I_InitialValidationFields>({
|
|
|
199
202
|
name: false,
|
|
200
203
|
folder: false,
|
|
201
204
|
server: false,
|
|
202
|
-
|
|
205
|
+
user: false,
|
|
203
206
|
password: false,
|
|
204
207
|
})
|
|
205
|
-
const initValidation = (onlyBlur = false, types:
|
|
208
|
+
const initValidation = (onlyBlur = false, types: UI_T_InitialValidationFields[]): void => {
|
|
206
209
|
onlyBlur && types.forEach((type) => (initValidationFields.value[type] = true))
|
|
207
210
|
}
|
|
208
211
|
|
|
@@ -244,12 +247,12 @@ const serverErrorText = computed<string>(() => {
|
|
|
244
247
|
|
|
245
248
|
/* Validation error text for Username input field */
|
|
246
249
|
const usernameErrorText = computed<string>(() => {
|
|
247
|
-
if (props.messagesFields.
|
|
248
|
-
return props.messagesFields.
|
|
250
|
+
if (props.messagesFields.user?.field && !formModelLocal.value.user) {
|
|
251
|
+
return props.messagesFields.user.field
|
|
249
252
|
}
|
|
250
253
|
|
|
251
|
-
if (!initValidationFields.value.
|
|
252
|
-
return !formModelLocal.value.
|
|
254
|
+
if (!initValidationFields.value.user) return ''
|
|
255
|
+
return !formModelLocal.value.user
|
|
253
256
|
? localization.value.common.fieldRequired
|
|
254
257
|
: ''
|
|
255
258
|
})
|