bfg-common 1.4.598 → 1.4.600
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/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/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/atoms/TheIcon3.vue +50 -50
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
- package/components/common/browse/BrowseNew.vue +237 -237
- package/components/common/browse/BrowseOld.vue +217 -217
- package/components/common/browse/blocks/contents/Files.vue +37 -37
- package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
- package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
- package/components/common/pages/home/widgets/services/ServicesNew.vue +0 -1
- package/components/common/pages/home/widgets/warnings/WarningsNew.vue +0 -1
- package/components/common/portlets/customAttributes/Portlet.vue +0 -2
- package/components/common/portlets/tag/Portlet.vue +0 -2
- package/components/common/portlets/tag/TagAddNew.vue +5 -4
- package/components/common/portlets/tag/lib/config/config.ts +199 -199
- package/components/common/spiceConsole/Drawer.vue +370 -370
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/split/vertical/Vertical.vue +160 -160
- package/components/common/vm/actions/add/Add.vue +617 -617
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +264 -264
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
- 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 +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +281 -272
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
- 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/NvidiaGridNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
- package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
- package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -19
- package/components/common/vm/actions/editSettings/EditSettings.vue +214 -214
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +182 -182
- package/components/common/vm/actions/editSettings/new/New.vue +176 -176
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/composables/productNameLocal.ts +30 -30
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
|
@@ -1,200 +1,200 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_DataTableOptions,
|
|
3
|
-
UI_I_DataTableBody,
|
|
4
|
-
UI_I_DataTableHeader,
|
|
5
|
-
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
6
|
-
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
7
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
8
|
-
import type { UI_I_CreateCategoryData } from '~/components/common/portlets/tag/lib/models/interfaces'
|
|
9
|
-
import type { UI_T_CreateCategoryTypes } from '~/components/common/portlets/tag/lib/models/types'
|
|
10
|
-
export const createCategoryData: UI_I_CreateCategoryData = {
|
|
11
|
-
categoryName: '',
|
|
12
|
-
description: '',
|
|
13
|
-
tagsPerObject: '0',
|
|
14
|
-
types: {
|
|
15
|
-
folder: false,
|
|
16
|
-
datacenter: false,
|
|
17
|
-
datastoreCluster: false,
|
|
18
|
-
distributedSwitch: false,
|
|
19
|
-
contentLibrary: false,
|
|
20
|
-
network: false,
|
|
21
|
-
vApp: false,
|
|
22
|
-
cluster: false,
|
|
23
|
-
datastore: false,
|
|
24
|
-
distributedPortGroup: false,
|
|
25
|
-
host: false,
|
|
26
|
-
libraryItem: false,
|
|
27
|
-
resourcePool: false,
|
|
28
|
-
virtualMachine: false,
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const createCategoryTypes: Readonly<UI_T_CreateCategoryTypes> = [
|
|
33
|
-
'folder',
|
|
34
|
-
'datacenter',
|
|
35
|
-
'datastoreCluster',
|
|
36
|
-
'distributedSwitch',
|
|
37
|
-
'contentLibrary',
|
|
38
|
-
'network',
|
|
39
|
-
'vApp',
|
|
40
|
-
'cluster',
|
|
41
|
-
'datastore',
|
|
42
|
-
'distributedPortGroup',
|
|
43
|
-
'host',
|
|
44
|
-
'libraryItem',
|
|
45
|
-
'resourcePool',
|
|
46
|
-
'virtualMachine',
|
|
47
|
-
] as const
|
|
48
|
-
|
|
49
|
-
export const tagTableHeaderOptions: UI_I_DataTableOptions = {
|
|
50
|
-
perPageOptions: [],
|
|
51
|
-
isSelectable: true,
|
|
52
|
-
selectType: 'checkbox',
|
|
53
|
-
showPagination: false,
|
|
54
|
-
showPageInfo: false,
|
|
55
|
-
isSortable: true,
|
|
56
|
-
server: false,
|
|
57
|
-
isResizable: false,
|
|
58
|
-
showSearch: false,
|
|
59
|
-
showColumnManager: false,
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const temporaryCategories: UI_I_Dropdown[] = [
|
|
63
|
-
{
|
|
64
|
-
text: 'Category1',
|
|
65
|
-
value: 'Category1',
|
|
66
|
-
selected: false,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
text: 'Category2',
|
|
70
|
-
value: 'Category2',
|
|
71
|
-
selected: false,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
text: 'Category3',
|
|
75
|
-
value: 'Category3',
|
|
76
|
-
selected: false,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
text: 'Category4',
|
|
80
|
-
value: 'Category4',
|
|
81
|
-
selected: false,
|
|
82
|
-
},
|
|
83
|
-
]
|
|
84
|
-
|
|
85
|
-
export const makeNewTagCreateActionRowFunc = (
|
|
86
|
-
row: number
|
|
87
|
-
): UI_I_DataTableBody => ({
|
|
88
|
-
row,
|
|
89
|
-
isSelected: false,
|
|
90
|
-
actionRow: true,
|
|
91
|
-
data: [
|
|
92
|
-
{
|
|
93
|
-
col: 0,
|
|
94
|
-
text: '',
|
|
95
|
-
key: 'icon',
|
|
96
|
-
data: {
|
|
97
|
-
type: 'tagName',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
col: 1,
|
|
102
|
-
text: '',
|
|
103
|
-
key: 'icon',
|
|
104
|
-
data: {
|
|
105
|
-
type: 'category',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
col: 2,
|
|
110
|
-
text: '',
|
|
111
|
-
key: 'icon',
|
|
112
|
-
data: {
|
|
113
|
-
type: 'description',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
col: 3,
|
|
118
|
-
text: '',
|
|
119
|
-
key: 'icon',
|
|
120
|
-
data: {
|
|
121
|
-
type: 'actions',
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
export const tagTableHeaderDataFunc = (
|
|
128
|
-
localization: UI_I_Localization
|
|
129
|
-
): UI_I_DataTableHeader[] => [
|
|
130
|
-
{
|
|
131
|
-
col: 0,
|
|
132
|
-
colName: 'Tag Name',
|
|
133
|
-
text: localization.common.tagName,
|
|
134
|
-
isSortable: true,
|
|
135
|
-
sort: 'asc',
|
|
136
|
-
width: '31%',
|
|
137
|
-
show: true,
|
|
138
|
-
filter: false,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
col: 1,
|
|
142
|
-
colName: 'Category',
|
|
143
|
-
text: localization.common.category,
|
|
144
|
-
isSortable: true,
|
|
145
|
-
sort: 'asc',
|
|
146
|
-
width: '31%',
|
|
147
|
-
show: true,
|
|
148
|
-
filter: false,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
col: 2,
|
|
152
|
-
colName: 'Description',
|
|
153
|
-
text: localization.common.description,
|
|
154
|
-
isSortable: true,
|
|
155
|
-
sort: 'asc',
|
|
156
|
-
width: '31%',
|
|
157
|
-
show: true,
|
|
158
|
-
filter: false,
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
col: 3,
|
|
162
|
-
colName: '',
|
|
163
|
-
text: '',
|
|
164
|
-
width: '7%',
|
|
165
|
-
show: true,
|
|
166
|
-
},
|
|
167
|
-
]
|
|
168
|
-
|
|
169
|
-
export const tagsAssignBodyItemsTemporary: UI_I_DataTableBody[] = [
|
|
170
|
-
{
|
|
171
|
-
row: 0,
|
|
172
|
-
isSelected: false,
|
|
173
|
-
data: [
|
|
174
|
-
{ col: 0, text: 'test1' },
|
|
175
|
-
{ col: 1, text: 'test1' },
|
|
176
|
-
{ col: 2, text: 'test1' },
|
|
177
|
-
{ col: 3, text: '' },
|
|
178
|
-
],
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
row: 1,
|
|
182
|
-
isSelected: false,
|
|
183
|
-
data: [
|
|
184
|
-
{ col: 0, text: 'test2' },
|
|
185
|
-
{ col: 1, text: 'test2' },
|
|
186
|
-
{ col: 2, text: 'test2' },
|
|
187
|
-
{ col: 3, text: '' },
|
|
188
|
-
],
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
row: 2,
|
|
192
|
-
isSelected: false,
|
|
193
|
-
data: [
|
|
194
|
-
{ col: 0, text: 'test3' },
|
|
195
|
-
{ col: 1, text: 'test3' },
|
|
196
|
-
{ col: 2, text: 'test3' },
|
|
197
|
-
{ col: 3, text: '' },
|
|
198
|
-
],
|
|
199
|
-
},
|
|
1
|
+
import type {
|
|
2
|
+
UI_I_DataTableOptions,
|
|
3
|
+
UI_I_DataTableBody,
|
|
4
|
+
UI_I_DataTableHeader,
|
|
5
|
+
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
6
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
7
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
8
|
+
import type { UI_I_CreateCategoryData } from '~/components/common/portlets/tag/lib/models/interfaces'
|
|
9
|
+
import type { UI_T_CreateCategoryTypes } from '~/components/common/portlets/tag/lib/models/types'
|
|
10
|
+
export const createCategoryData: UI_I_CreateCategoryData = {
|
|
11
|
+
categoryName: '',
|
|
12
|
+
description: '',
|
|
13
|
+
tagsPerObject: '0',
|
|
14
|
+
types: {
|
|
15
|
+
folder: false,
|
|
16
|
+
datacenter: false,
|
|
17
|
+
datastoreCluster: false,
|
|
18
|
+
distributedSwitch: false,
|
|
19
|
+
contentLibrary: false,
|
|
20
|
+
network: false,
|
|
21
|
+
vApp: false,
|
|
22
|
+
cluster: false,
|
|
23
|
+
datastore: false,
|
|
24
|
+
distributedPortGroup: false,
|
|
25
|
+
host: false,
|
|
26
|
+
libraryItem: false,
|
|
27
|
+
resourcePool: false,
|
|
28
|
+
virtualMachine: false,
|
|
29
|
+
},
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const createCategoryTypes: Readonly<UI_T_CreateCategoryTypes> = [
|
|
33
|
+
'folder',
|
|
34
|
+
'datacenter',
|
|
35
|
+
'datastoreCluster',
|
|
36
|
+
'distributedSwitch',
|
|
37
|
+
'contentLibrary',
|
|
38
|
+
'network',
|
|
39
|
+
'vApp',
|
|
40
|
+
'cluster',
|
|
41
|
+
'datastore',
|
|
42
|
+
'distributedPortGroup',
|
|
43
|
+
'host',
|
|
44
|
+
'libraryItem',
|
|
45
|
+
'resourcePool',
|
|
46
|
+
'virtualMachine',
|
|
47
|
+
] as const
|
|
48
|
+
|
|
49
|
+
export const tagTableHeaderOptions: UI_I_DataTableOptions = {
|
|
50
|
+
perPageOptions: [],
|
|
51
|
+
isSelectable: true,
|
|
52
|
+
selectType: 'checkbox',
|
|
53
|
+
showPagination: false,
|
|
54
|
+
showPageInfo: false,
|
|
55
|
+
isSortable: true,
|
|
56
|
+
server: false,
|
|
57
|
+
isResizable: false,
|
|
58
|
+
showSearch: false,
|
|
59
|
+
showColumnManager: false,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const temporaryCategories: UI_I_Dropdown[] = [
|
|
63
|
+
{
|
|
64
|
+
text: 'Category1',
|
|
65
|
+
value: 'Category1',
|
|
66
|
+
selected: false,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
text: 'Category2',
|
|
70
|
+
value: 'Category2',
|
|
71
|
+
selected: false,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
text: 'Category3',
|
|
75
|
+
value: 'Category3',
|
|
76
|
+
selected: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
text: 'Category4',
|
|
80
|
+
value: 'Category4',
|
|
81
|
+
selected: false,
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
export const makeNewTagCreateActionRowFunc = (
|
|
86
|
+
row: number
|
|
87
|
+
): UI_I_DataTableBody => ({
|
|
88
|
+
row,
|
|
89
|
+
isSelected: false,
|
|
90
|
+
actionRow: true,
|
|
91
|
+
data: [
|
|
92
|
+
{
|
|
93
|
+
col: 0,
|
|
94
|
+
text: '',
|
|
95
|
+
key: 'icon',
|
|
96
|
+
data: {
|
|
97
|
+
type: 'tagName',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
col: 1,
|
|
102
|
+
text: '',
|
|
103
|
+
key: 'icon',
|
|
104
|
+
data: {
|
|
105
|
+
type: 'category',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
col: 2,
|
|
110
|
+
text: '',
|
|
111
|
+
key: 'icon',
|
|
112
|
+
data: {
|
|
113
|
+
type: 'description',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
col: 3,
|
|
118
|
+
text: '',
|
|
119
|
+
key: 'icon',
|
|
120
|
+
data: {
|
|
121
|
+
type: 'actions',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
export const tagTableHeaderDataFunc = (
|
|
128
|
+
localization: UI_I_Localization
|
|
129
|
+
): UI_I_DataTableHeader[] => [
|
|
130
|
+
{
|
|
131
|
+
col: 0,
|
|
132
|
+
colName: 'Tag Name',
|
|
133
|
+
text: localization.common.tagName,
|
|
134
|
+
isSortable: true,
|
|
135
|
+
sort: 'asc',
|
|
136
|
+
width: '31%',
|
|
137
|
+
show: true,
|
|
138
|
+
filter: false,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
col: 1,
|
|
142
|
+
colName: 'Category',
|
|
143
|
+
text: localization.common.category,
|
|
144
|
+
isSortable: true,
|
|
145
|
+
sort: 'asc',
|
|
146
|
+
width: '31%',
|
|
147
|
+
show: true,
|
|
148
|
+
filter: false,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
col: 2,
|
|
152
|
+
colName: 'Description',
|
|
153
|
+
text: localization.common.description,
|
|
154
|
+
isSortable: true,
|
|
155
|
+
sort: 'asc',
|
|
156
|
+
width: '31%',
|
|
157
|
+
show: true,
|
|
158
|
+
filter: false,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
col: 3,
|
|
162
|
+
colName: '',
|
|
163
|
+
text: '',
|
|
164
|
+
width: '7%',
|
|
165
|
+
show: true,
|
|
166
|
+
},
|
|
167
|
+
]
|
|
168
|
+
|
|
169
|
+
export const tagsAssignBodyItemsTemporary: UI_I_DataTableBody[] = [
|
|
170
|
+
{
|
|
171
|
+
row: 0,
|
|
172
|
+
isSelected: false,
|
|
173
|
+
data: [
|
|
174
|
+
{ col: 0, text: 'test1' },
|
|
175
|
+
{ col: 1, text: 'test1' },
|
|
176
|
+
{ col: 2, text: 'test1' },
|
|
177
|
+
{ col: 3, text: '' },
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
row: 1,
|
|
182
|
+
isSelected: false,
|
|
183
|
+
data: [
|
|
184
|
+
{ col: 0, text: 'test2' },
|
|
185
|
+
{ col: 1, text: 'test2' },
|
|
186
|
+
{ col: 2, text: 'test2' },
|
|
187
|
+
{ col: 3, text: '' },
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
row: 2,
|
|
192
|
+
isSelected: false,
|
|
193
|
+
data: [
|
|
194
|
+
{ col: 0, text: 'test3' },
|
|
195
|
+
{ col: 1, text: 'test3' },
|
|
196
|
+
{ col: 2, text: 'test3' },
|
|
197
|
+
{ col: 3, text: '' },
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
200
|
]
|