bfg-common 1.5.241 → 1.5.243
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/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/scss/common/icons/icons-1.scss +2 -2
- package/assets/scss/common/icons/icons-5.scss +5 -5
- package/assets/scss/common/icons/icons-6.scss +1 -1
- package/assets/scss/common/theme.scss +0 -6
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGrid.vue +1717 -1717
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/atoms/tabs/VerticalTabs.vue +105 -105
- package/components/common/backup/storage/actions/add/Add.vue +247 -247
- package/components/common/backup/storage/actions/add/New.vue +292 -281
- package/components/common/backup/storage/actions/add/Old.vue +114 -114
- package/components/common/backup/storage/actions/add/lib/config/steps.ts +168 -168
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +41 -41
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +314 -294
- package/components/common/backup/storage/actions/add/steps/readyComplete/ReadyComplete.vue +45 -45
- package/components/common/backup/storage/actions/add/steps/readyComplete/lib/config/propertiesDetails.ts +242 -242
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeNew.vue +18 -3
- package/components/common/backup/storage/actions/delete/Delete.vue +65 -65
- package/components/common/browse/BrowseNew.vue +2 -8
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/context/lib/models/interfaces.ts +31 -31
- package/components/common/diagramMain/DiagramMain.vue +897 -897
- package/components/common/diagramMain/Header.vue +214 -214
- package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +76 -66
- package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +80 -70
- package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/ViewOld.vue +112 -112
- package/components/common/monitor/overview/OverviewOld.vue +139 -139
- package/components/common/pages/home/headline/Headline.vue +45 -45
- package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/Widgets.vue +49 -49
- package/components/common/pages/home/widgets/WidgetsNew.vue +86 -86
- package/components/common/pages/home/widgets/WidgetsOld.vue +34 -34
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/packages/Packages.vue +208 -208
- package/components/common/pages/shortcuts/block/BlockOld.vue +68 -68
- package/components/common/pages/tasks/table/Table.vue +25 -7
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +27 -9
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/recursionTree/RecursionTree.vue +223 -223
- package/components/common/select/button/ButtonDropdown.vue +108 -108
- package/components/common/spiceConsole/Drawer.vue +377 -377
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tooltip/Help.vue +181 -0
- package/components/common/tooltip/lib/models/types.ts +1 -0
- package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
- package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
- package/components/common/vm/actions/add/folderTreeView/Old.vue +50 -50
- package/components/common/vm/actions/clone/lib/config/steps.ts +291 -291
- package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +116 -116
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +2 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +7 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +319 -319
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +100 -100
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +104 -95
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +232 -232
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +0 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +168 -168
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +78 -78
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +59 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +132 -109
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +1 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/TooltipNew.vue +154 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +307 -307
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryNew.vue +1 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +2 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +382 -382
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +0 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +3 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +151 -151
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationNew.vue +73 -73
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +4 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +1 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +1 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +3 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +94 -94
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +205 -205
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +2 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +40 -40
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +2 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +2 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +1 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +0 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +2 -8
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +128 -128
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +1 -5
- package/components/common/vm/actions/common/lib/utils/capabilities.ts +52 -52
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/computeResource/treeView/New.vue +44 -44
- package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +118 -118
- package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/name/New.vue +52 -69
- package/components/common/vm/actions/common/select/os/Old.vue +152 -152
- package/components/common/vm/actions/common/select/os/Os.vue +139 -139
- package/components/common/vm/actions/common/select/storage/new/New.vue +1 -5
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +1 -2
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/datastore/add/New.vue +14 -3
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +27 -6
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +15 -3
- package/components/common/wizards/datastore/add/steps/typeMode/TypeModeNew.vue +14 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +220 -220
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +157 -157
- package/components/common/wizards/vm/migrate/lib/validations.ts +68 -68
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +137 -135
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/advancedTable.ts +91 -91
- package/composables/productNameLocal.ts +30 -30
- package/composables/useAppVersion.ts +21 -21
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/text.ts +48 -59
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +387 -387
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +64 -64
- package/components/common/backup/actions/deleteBackup/DeleteBackup.vue +0 -38
- package/plugins/cron.ts +0 -75
- package/plugins/helpers.ts +0 -18
- package/plugins/number.ts +0 -18
- package/plugins/panelStates.ts +0 -70
- package/plugins/time.ts +0 -17
- /package/{lib/models/plugins/panelStates → components/common/split/horizontal/lib/models}/interfaces.ts +0 -0
|
@@ -1,281 +1,292 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-wizard
|
|
3
|
-
show
|
|
4
|
-
:steps="props.wizard.steps"
|
|
5
|
-
:selected-scheme="props.selectedScheme"
|
|
6
|
-
:is-loading="props.wizard.wizardLoader.status"
|
|
7
|
-
:title="props.title"
|
|
8
|
-
:texts="texts"
|
|
9
|
-
test-id="add-datastore-wizard"
|
|
10
|
-
@change-steps="onChangeSteps"
|
|
11
|
-
@hide="onHideModal"
|
|
12
|
-
@submit="onCreateDatastore"
|
|
13
|
-
>
|
|
14
|
-
<template #content="{ selectedStep }">
|
|
15
|
-
<ui-wizard-block
|
|
16
|
-
v-if="selectedStep.id === dynamicSteps.type"
|
|
17
|
-
:sub-title-height="height0"
|
|
18
|
-
>
|
|
19
|
-
<template #subTitle>
|
|
20
|
-
<div ref="subTitleBlock0">
|
|
21
|
-
<div class="subtitle-block flex-row">
|
|
22
|
-
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
23
|
-
|
|
24
|
-
<common-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
<ui-
|
|
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
|
-
import {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const
|
|
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
|
-
const
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<ui-wizard
|
|
3
|
+
show
|
|
4
|
+
:steps="props.wizard.steps"
|
|
5
|
+
:selected-scheme="props.selectedScheme"
|
|
6
|
+
:is-loading="props.wizard.wizardLoader.status"
|
|
7
|
+
:title="props.title"
|
|
8
|
+
:texts="texts"
|
|
9
|
+
test-id="add-datastore-wizard"
|
|
10
|
+
@change-steps="onChangeSteps"
|
|
11
|
+
@hide="onHideModal"
|
|
12
|
+
@submit="onCreateDatastore"
|
|
13
|
+
>
|
|
14
|
+
<template #content="{ selectedStep }">
|
|
15
|
+
<ui-wizard-block
|
|
16
|
+
v-if="selectedStep.id === dynamicSteps.type"
|
|
17
|
+
:sub-title-height="height0"
|
|
18
|
+
>
|
|
19
|
+
<template #subTitle>
|
|
20
|
+
<div ref="subTitleBlock0">
|
|
21
|
+
<div class="subtitle-block flex-row">
|
|
22
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
23
|
+
|
|
24
|
+
<common-tooltip-help
|
|
25
|
+
test-id="datastore-type-subtitle"
|
|
26
|
+
help-id="datastore-type-subtitle-icon"
|
|
27
|
+
:title="localization.common.information"
|
|
28
|
+
:help-text="localization.common.datastoreTypeHelpDesc"
|
|
29
|
+
dropdown-width="272px"
|
|
30
|
+
dropdown-left
|
|
31
|
+
dropdown-top
|
|
32
|
+
/>
|
|
33
|
+
<!-- // TODO Удалить компонент если не используется? -->
|
|
34
|
+
|
|
35
|
+
<!-- <common-wizards-datastore-add-steps-common-tooltip-info-->
|
|
36
|
+
<!-- id="datastore-type-subtitle-tooltip"-->
|
|
37
|
+
<!-- :description="localization.common.datastoreTypeHelpDesc"-->
|
|
38
|
+
<!-- />-->
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
<template #content>
|
|
43
|
+
<common-backup-storage-actions-add-steps-type-mode
|
|
44
|
+
v-if="selectedStep.id === dynamicSteps.type"
|
|
45
|
+
v-model="formModelLocal.type_code"
|
|
46
|
+
/>
|
|
47
|
+
</template>
|
|
48
|
+
</ui-wizard-block>
|
|
49
|
+
|
|
50
|
+
<ui-wizard-block
|
|
51
|
+
v-if="selectedStep.id === dynamicSteps.name"
|
|
52
|
+
:sub-title-height="height1"
|
|
53
|
+
>
|
|
54
|
+
<template #subTitle>
|
|
55
|
+
<div ref="subTitleBlock1">
|
|
56
|
+
<div class="subtitle-block">
|
|
57
|
+
<ui-alert
|
|
58
|
+
v-if="props.alertMessages[dynamicSteps.name].length"
|
|
59
|
+
test-id="add-host-connection-settings-error-alert"
|
|
60
|
+
type="error"
|
|
61
|
+
size="md"
|
|
62
|
+
:messages="props.alertMessages[dynamicSteps.name]"
|
|
63
|
+
class="subtitle-block__alert"
|
|
64
|
+
/>
|
|
65
|
+
|
|
66
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</template>
|
|
70
|
+
<template #content>
|
|
71
|
+
<common-backup-storage-actions-add-steps-name
|
|
72
|
+
v-if="selectedStep.id === dynamicSteps.name"
|
|
73
|
+
v-model="formModelLocal"
|
|
74
|
+
:project="props.project"
|
|
75
|
+
:messages-fields="selectedStep.fields"
|
|
76
|
+
/>
|
|
77
|
+
</template>
|
|
78
|
+
</ui-wizard-block>
|
|
79
|
+
|
|
80
|
+
<ui-wizard-block
|
|
81
|
+
v-if="selectedStep.id === dynamicSteps.nameAndConfigure"
|
|
82
|
+
:sub-title-height="height2"
|
|
83
|
+
>
|
|
84
|
+
<template #subTitle>
|
|
85
|
+
<div ref="subTitleBlock2">
|
|
86
|
+
<div class="subtitle-block">
|
|
87
|
+
<ui-alert
|
|
88
|
+
v-if="props.alertMessages[dynamicSteps.nameAndConfigure].length"
|
|
89
|
+
test-id="add-host-connection-settings-error-alert"
|
|
90
|
+
type="error"
|
|
91
|
+
size="md"
|
|
92
|
+
:messages="props.alertMessages[dynamicSteps.nameAndConfigure]"
|
|
93
|
+
class="subtitle-block__alert"
|
|
94
|
+
/>
|
|
95
|
+
|
|
96
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
<template #content>
|
|
101
|
+
<common-backup-storage-actions-add-steps-name-and-configure
|
|
102
|
+
v-if="selectedStep.id === dynamicSteps.nameAndConfigure"
|
|
103
|
+
v-model="formModelLocal"
|
|
104
|
+
:project="props.project"
|
|
105
|
+
:messages-fields="selectedStep.fields"
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
</ui-wizard-block>
|
|
109
|
+
|
|
110
|
+
<ui-wizard-block
|
|
111
|
+
v-if="selectedStep.id === dynamicSteps.storage"
|
|
112
|
+
:sub-title-height="height3"
|
|
113
|
+
>
|
|
114
|
+
<template #subTitle>
|
|
115
|
+
<div ref="subTitleBlock3">
|
|
116
|
+
<div class="subtitle-block">
|
|
117
|
+
<ui-alert
|
|
118
|
+
v-if="props.alertMessages[dynamicSteps.storage].length"
|
|
119
|
+
test-id="add-host-accessibility-error-alert"
|
|
120
|
+
type="error"
|
|
121
|
+
size="md"
|
|
122
|
+
:messages="props.alertMessages[dynamicSteps.storage]"
|
|
123
|
+
class="subtitle-block__alert"
|
|
124
|
+
/>
|
|
125
|
+
|
|
126
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</template>
|
|
130
|
+
<template #content>
|
|
131
|
+
<common-vm-actions-common-select-storage
|
|
132
|
+
:datastore="props.datastore"
|
|
133
|
+
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
134
|
+
hide-compatibility
|
|
135
|
+
hide-alert
|
|
136
|
+
class="storage-datatable h-full"
|
|
137
|
+
@change-storage="onChangeStorage"
|
|
138
|
+
/>
|
|
139
|
+
</template>
|
|
140
|
+
</ui-wizard-block>
|
|
141
|
+
|
|
142
|
+
<ui-wizard-block
|
|
143
|
+
v-if="selectedStep.id === dynamicSteps.hostAccessibility"
|
|
144
|
+
:sub-title-height="height4"
|
|
145
|
+
>
|
|
146
|
+
<template #subTitle>
|
|
147
|
+
<div ref="subTitleBlock4">
|
|
148
|
+
<div class="subtitle-block">
|
|
149
|
+
<ui-alert
|
|
150
|
+
v-if="
|
|
151
|
+
props.alertMessages[dynamicSteps.hostAccessibility].length
|
|
152
|
+
"
|
|
153
|
+
test-id="add-host-accessibility-error-alert"
|
|
154
|
+
type="error"
|
|
155
|
+
size="md"
|
|
156
|
+
:messages="props.alertMessages[dynamicSteps.hostAccessibility]"
|
|
157
|
+
class="subtitle-block__alert"
|
|
158
|
+
/>
|
|
159
|
+
|
|
160
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</template>
|
|
164
|
+
<template #content>
|
|
165
|
+
<common-backup-storage-actions-add-steps-host-accessibility
|
|
166
|
+
v-if="selectedStep.id === dynamicSteps.hostAccessibility"
|
|
167
|
+
v-model="formModelLocal.hosts"
|
|
168
|
+
:alert-messages="
|
|
169
|
+
props.alertMessages[dynamicSteps.hostAccessibility]
|
|
170
|
+
"
|
|
171
|
+
:hosts="props.hosts"
|
|
172
|
+
/>
|
|
173
|
+
</template>
|
|
174
|
+
</ui-wizard-block>
|
|
175
|
+
|
|
176
|
+
<ui-wizard-block
|
|
177
|
+
v-if="selectedStep.id === dynamicSteps.readyComplete"
|
|
178
|
+
:sub-title-height="height5"
|
|
179
|
+
>
|
|
180
|
+
<template #subTitle>
|
|
181
|
+
<div ref="subTitleBlock5">
|
|
182
|
+
<div class="subtitle-block">
|
|
183
|
+
<ui-wizard-subtitle :sub-title="selectedStep.subTitle" />
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</template>
|
|
187
|
+
<template #content>
|
|
188
|
+
<common-backup-storage-actions-add-steps-ready-complete
|
|
189
|
+
v-if="selectedStep.id === dynamicSteps.readyComplete"
|
|
190
|
+
:form="formModelLocal"
|
|
191
|
+
:project="props.project"
|
|
192
|
+
:hosts="props.hosts"
|
|
193
|
+
:datastore="props.datastore"
|
|
194
|
+
/>
|
|
195
|
+
</template>
|
|
196
|
+
</ui-wizard-block>
|
|
197
|
+
</template>
|
|
198
|
+
</ui-wizard>
|
|
199
|
+
</template>
|
|
200
|
+
|
|
201
|
+
<script setup lang="ts">
|
|
202
|
+
import { useElementSize } from '@vueuse/core'
|
|
203
|
+
import type {
|
|
204
|
+
UI_I_WizardStep,
|
|
205
|
+
UI_I_WizardTexts,
|
|
206
|
+
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
207
|
+
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
|
208
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
209
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
210
|
+
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
|
211
|
+
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
212
|
+
import type { UI_I_CreateDatastoreForm } from '~/components/common/backup/storage/actions/add/lib/models/interfaces'
|
|
213
|
+
import { dynamicSteps } from '~/components/common/backup/storage/actions/add/lib/config/steps'
|
|
214
|
+
|
|
215
|
+
const formModelLocal = defineModel<UI_I_CreateDatastoreForm>({ required: true })
|
|
216
|
+
const props = defineProps<{
|
|
217
|
+
project: UI_T_Project
|
|
218
|
+
wizard: Wizard
|
|
219
|
+
selectedScheme: number[]
|
|
220
|
+
alertMessages: string[][]
|
|
221
|
+
title: string
|
|
222
|
+
datastore: UI_I_DatastoreTableItem[]
|
|
223
|
+
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
224
|
+
hosts?: any[]
|
|
225
|
+
}>()
|
|
226
|
+
const emits = defineEmits<{
|
|
227
|
+
(event: 'change-steps', value: UI_I_WizardStep[]): void
|
|
228
|
+
(event: 'change-storage', value: UI_I_WizardStep[]): void
|
|
229
|
+
(event: 'hide'): void
|
|
230
|
+
(event: 'submit', value: any): void
|
|
231
|
+
}>()
|
|
232
|
+
|
|
233
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
234
|
+
|
|
235
|
+
const texts = computed<UI_I_WizardTexts>(() => ({
|
|
236
|
+
cancel: localization.value.common.cancel,
|
|
237
|
+
back: localization.value.common.backCap,
|
|
238
|
+
processing: localization.value.common.processing,
|
|
239
|
+
next: localization.value.common.next,
|
|
240
|
+
finish: localization.value.common.add,
|
|
241
|
+
incompleteTitle: localization.value.common.incompleteProcess,
|
|
242
|
+
incompleteMessage: localization.value.common.incompleteProcessMessage,
|
|
243
|
+
incompleteCancel: localization.value.common.cancel,
|
|
244
|
+
incompleteLeave: localization.value.common.leave,
|
|
245
|
+
step: localization.value.common.step,
|
|
246
|
+
of: localization.value.common.of2,
|
|
247
|
+
}))
|
|
248
|
+
|
|
249
|
+
const subTitleBlock0 = ref<HTMLElement | null>(null)
|
|
250
|
+
const { height: height0 } = useElementSize(subTitleBlock0)
|
|
251
|
+
|
|
252
|
+
const subTitleBlock1 = ref<HTMLElement | null>(null)
|
|
253
|
+
const { height: height1 } = useElementSize(subTitleBlock1)
|
|
254
|
+
|
|
255
|
+
const subTitleBlock2 = ref<HTMLElement | null>(null)
|
|
256
|
+
const { height: height2 } = useElementSize(subTitleBlock2)
|
|
257
|
+
|
|
258
|
+
const subTitleBlock3 = ref<HTMLElement | null>(null)
|
|
259
|
+
const { height: height3 } = useElementSize(subTitleBlock3)
|
|
260
|
+
|
|
261
|
+
const subTitleBlock4 = ref<HTMLElement | null>(null)
|
|
262
|
+
const { height: height4 } = useElementSize(subTitleBlock4)
|
|
263
|
+
|
|
264
|
+
const subTitleBlock5 = ref<HTMLElement | null>(null)
|
|
265
|
+
const { height: height5 } = useElementSize(subTitleBlock5)
|
|
266
|
+
|
|
267
|
+
const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> =>
|
|
268
|
+
emits('change-steps', value)
|
|
269
|
+
const onChangeStorage = async (value: UI_I_WizardStep[]): Promise<void> =>
|
|
270
|
+
emits('change-storage', value)
|
|
271
|
+
|
|
272
|
+
const onHideModal = (): void => emits('hide')
|
|
273
|
+
const onCreateDatastore = (): void => emits('submit')
|
|
274
|
+
</script>
|
|
275
|
+
|
|
276
|
+
<style scoped lang="scss">
|
|
277
|
+
.subtitle-block {
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
row-gap: 16px;
|
|
281
|
+
border-bottom: 1px solid var(--wizard-line);
|
|
282
|
+
padding-bottom: 12px;
|
|
283
|
+
|
|
284
|
+
&.flex-row {
|
|
285
|
+
flex-direction: row;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
:deep(&__alert) {
|
|
289
|
+
padding: 10px 12px;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
</style>
|