bfg-common 1.5.869 → 1.5.871

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.
Files changed (53) hide show
  1. package/assets/img/icons/icons-sprite-dark-5.svg +15 -2
  2. package/assets/img/icons/icons-sprite-light-5.svg +18 -5
  3. package/assets/localization/local_be.json +4 -1
  4. package/assets/localization/local_en.json +7 -4
  5. package/assets/localization/local_hy.json +4 -1
  6. package/assets/localization/local_kk.json +4 -1
  7. package/assets/localization/local_ru.json +10 -7
  8. package/assets/localization/local_zh.json +4 -1
  9. package/components/common/adapterManager/AdapterManagerNew.vue +39 -5
  10. package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +3 -2
  11. package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +3 -3
  12. package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +1 -0
  13. package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +1 -0
  14. package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +10 -4
  15. package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +15 -0
  16. package/components/common/adapterManager/ui/table/TableNew.vue +3 -2
  17. package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +69 -36
  18. package/components/common/adapterManager/ui/table/header/HeaderNew.vue +5 -1
  19. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +218 -218
  20. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
  21. package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +17 -0
  22. package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +13 -8
  23. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +1 -1
  24. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +6 -1
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +20 -4
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +2 -1
  27. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Old.vue +3 -2
  28. package/components/common/wizards/network/add/Add.vue +872 -872
  29. package/components/common/wizards/network/add/AddNew.vue +483 -476
  30. package/components/common/wizards/network/add/lib/config/initialData.ts +86 -86
  31. package/components/common/wizards/network/add/lib/config/selectSwitch.ts +237 -237
  32. package/components/common/wizards/network/add/lib/utils/utils.ts +9 -9
  33. package/components/common/wizards/network/add/mappers/mappers.ts +199 -199
  34. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +89 -84
  35. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +3 -0
  36. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +126 -126
  37. package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +81 -81
  38. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +144 -144
  39. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +48 -9
  40. package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +196 -193
  41. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +312 -294
  42. package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +24 -24
  43. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +34 -34
  44. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +187 -187
  45. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +455 -455
  46. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +63 -63
  47. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +63 -63
  48. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +63 -63
  49. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +180 -180
  50. package/components/common/wizards/network/add/validations/common.ts +30 -30
  51. package/components/common/wizards/network/add/validations/networkValidation.ts +2 -2
  52. package/components/common/wizards/network/add/validations/portProperties.ts +115 -115
  53. package/package.json +2 -2
@@ -1,86 +1,86 @@
1
- import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
2
- import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- import type {
4
- UI_I_ConnectionSettings,
5
- UI_I_IpFourSettings,
6
- UI_I_PortProperties,
7
- UI_I_Services,
8
- UI_I_TargetDevice,
9
- UI_I_VlanIdData,
10
- } from '~/components/common/wizards/network/add/lib/models/interfaces'
11
-
12
- export const servicesInitial: UI_I_Services = {
13
- vMotion: false,
14
- provisioning: false,
15
- faultToleranceLogging: false,
16
- management: false,
17
- replication: false,
18
- replicationNFC: false,
19
- vSAN: false,
20
- backupNFC: false,
21
- nVMeOverTCP: false,
22
- nVMeOverRDMA: false,
23
- }
24
-
25
- export const targetDeviceInitialFunc = (
26
- updateSwitchPermission: boolean
27
- ): UI_I_TargetDevice => ({
28
- selected:
29
- updateSwitchPermission === undefined || updateSwitchPermission ? '1' : '3',
30
- network: '',
31
- switch: '',
32
- standardSwitch: '',
33
- mtu: 1500,
34
- })
35
-
36
- export const portPropertiesInitial = (
37
- localization: UI_I_Localization
38
- ): UI_I_PortProperties => ({
39
- networkLabel: '',
40
- vlanId: `${localization.common.none} (0)`,
41
- mtu: {
42
- option: '0',
43
- size: 1500,
44
- },
45
- tcp: '',
46
- services: { ...servicesInitial },
47
- })
48
-
49
- export const ipFourSettingsInitial: UI_I_IpFourSettings = {
50
- ipSettings: '0',
51
- static: {
52
- ipFourAddress: '10.10.123.1',
53
- subnetMask: '255.255.255.0',
54
- defaultGateway: {
55
- override: false,
56
- value: '255.255.255.255',
57
- },
58
- },
59
- }
60
-
61
- export const connectionSettingsInitial = (
62
- localization: UI_I_Localization
63
- ): UI_I_ConnectionSettings => ({
64
- networkLabel: 'VM Network',
65
- vlanId: `${localization.common.none} (0)`,
66
- })
67
-
68
- export const vlanIdSelectDataFunc = (
69
- localization: UI_I_Localization
70
- ): UI_I_VlanIdData[] => [
71
- {
72
- text: `${localization.common.none} (0)`,
73
- value: `${localization.common.none} (0)`,
74
- },
75
- {
76
- text: `${localization.common.all} (4095)`,
77
- value: `${localization.common.all} (4095)`,
78
- },
79
- ]
80
-
81
- export const mtuItemsFunc = (
82
- localization: UI_I_Localization
83
- ): UI_I_Dropdown[] => [
84
- { text: localization.common.getMtuFromSwitch, value: '0' },
85
- { text: localization.common.custom, value: '1' },
86
- ]
1
+ import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
2
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
3
+ import type {
4
+ UI_I_ConnectionSettings,
5
+ UI_I_IpFourSettings,
6
+ UI_I_PortProperties,
7
+ UI_I_Services,
8
+ UI_I_TargetDevice,
9
+ UI_I_VlanIdData,
10
+ } from '~/components/common/wizards/network/add/lib/models/interfaces'
11
+
12
+ export const servicesInitial: UI_I_Services = {
13
+ vMotion: false,
14
+ provisioning: false,
15
+ faultToleranceLogging: false,
16
+ management: false,
17
+ replication: false,
18
+ replicationNFC: false,
19
+ vSAN: false,
20
+ backupNFC: false,
21
+ nVMeOverTCP: false,
22
+ nVMeOverRDMA: false,
23
+ }
24
+
25
+ export const targetDeviceInitialFunc = (
26
+ updateSwitchPermission: boolean
27
+ ): UI_I_TargetDevice => ({
28
+ selected:
29
+ updateSwitchPermission === undefined || updateSwitchPermission ? '1' : '3',
30
+ network: '',
31
+ switch: '',
32
+ standardSwitch: '',
33
+ mtu: 1500,
34
+ })
35
+
36
+ export const portPropertiesInitial = (
37
+ localization: UI_I_Localization
38
+ ): UI_I_PortProperties => ({
39
+ networkLabel: '',
40
+ vlanId: `${localization.common.none} (0)`,
41
+ mtu: {
42
+ option: '0',
43
+ size: 1500,
44
+ },
45
+ tcp: '',
46
+ services: { ...servicesInitial },
47
+ })
48
+
49
+ export const ipFourSettingsInitial: UI_I_IpFourSettings = {
50
+ ipSettings: '0',
51
+ static: {
52
+ ipFourAddress: '10.10.123.1',
53
+ subnetMask: '255.255.255.0',
54
+ defaultGateway: {
55
+ override: false,
56
+ value: '255.255.255.255',
57
+ },
58
+ },
59
+ }
60
+
61
+ export const connectionSettingsInitial = (
62
+ localization: UI_I_Localization
63
+ ): UI_I_ConnectionSettings => ({
64
+ networkLabel: 'VM Network',
65
+ vlanId: `${localization.common.none} (0)`,
66
+ })
67
+
68
+ export const vlanIdSelectDataFunc = (
69
+ localization: UI_I_Localization
70
+ ): UI_I_VlanIdData[] => [
71
+ {
72
+ text: `${localization.common.none} (0)`,
73
+ value: `${localization.common.none} (0)`,
74
+ },
75
+ {
76
+ text: `${localization.common.all} (4095)`,
77
+ value: `${localization.common.all} (4095)`,
78
+ },
79
+ ]
80
+
81
+ export const mtuItemsFunc = (
82
+ localization: UI_I_Localization
83
+ ): UI_I_Dropdown[] => [
84
+ { text: localization.common.getMtuFromSwitch, value: '0' },
85
+ { text: localization.common.custom, value: '1' },
86
+ ]
@@ -1,237 +1,237 @@
1
- import type {
2
- UI_I_DataTableOptions,
3
- UI_I_DataTableHeader,
4
- UI_I_DataTableBody,
5
- } from '~/node_modules/bfg-uikit/components/ui/dataTable/lib/models/interfaces'
6
- import type { UI_I_Localization } from '~/lib/models/interfaces'
7
- import type { UI_I_TableHead } from '~/components/common/wizards/network/add/lib/models/interfaces'
8
- import type {
9
- UI_I_Switch,
10
- UI_I_NetworkForAdding,
11
- } from '~/components/common/wizards/network/add/lib/models/interfaces'
12
-
13
- export const selectNetworkTableHeadFunc = (
14
- localization: UI_I_Localization
15
- ): UI_I_TableHead[] => [
16
- { text: localization.common.name },
17
- { text: localization.common.nsxPortGroupId },
18
- { text: localization.common.discoveredIssues },
19
- ]
20
-
21
- export const selectNetworkTableHeadNewFunc = (
22
- localization: UI_I_Localization
23
- ): UI_I_DataTableHeader[] => [
24
- {
25
- col: 0,
26
- colName: 'name',
27
- text: localization.common.name,
28
- isSortable: true,
29
- sort: 'asc',
30
- sortColumn: true,
31
- width: '',
32
- show: true,
33
- filter: true,
34
- },
35
- {
36
- col: 1,
37
- colName: 'nsx-port-group-id',
38
- text: localization.common.nsxPortGroupId,
39
- isSortable: true,
40
- sort: 'asc',
41
- sortColumn: false,
42
- width: '',
43
- show: true,
44
- filter: true,
45
- },
46
- {
47
- col: 2,
48
- colName: 'distributed-switch',
49
- text: localization.common.distributedSwitch,
50
- isSortable: true,
51
- sort: 'asc',
52
- sortColumn: false,
53
- width: '',
54
- show: true,
55
- filter: true,
56
- },
57
- ]
58
-
59
- export const selectNetworkTableBodyNewFunc = (
60
- data: UI_I_NetworkForAdding[]
61
- ): UI_I_DataTableBody[] =>
62
- data.map(
63
- (item: UI_I_NetworkForAdding, index: number): UI_I_DataTableBody[] => {
64
- return {
65
- row: index,
66
- collapse: false,
67
- isHiddenCollapse: false,
68
- collapseToggle: false,
69
- data: [
70
- {
71
- col: 0,
72
- key: 'icon',
73
- text: item.name,
74
- icon: 'vsphere-icon-network',
75
- },
76
- {
77
- col: 1,
78
- key: '',
79
- text: '--',
80
- },
81
- ,
82
- {
83
- col: 2,
84
- key: '',
85
- text: '--',
86
- },
87
- ],
88
- }
89
- }
90
- )
91
-
92
- export const selectSwitchTableHeadFunc = (
93
- localization: UI_I_Localization
94
- ): UI_I_TableHead[] => [
95
- { text: localization.common.switch },
96
- { text: localization.common.discoveredIssues },
97
- ]
98
-
99
- export const selectSwitchTableHeadNewFunc = (
100
- localization: UI_I_Localization
101
- ): UI_I_DataTableHeader[] => [
102
- {
103
- col: 0,
104
- colName: 'name',
105
- text: localization.common.name,
106
- isSortable: true,
107
- sort: 'asc',
108
- sortColumn: true,
109
- width: '200px',
110
- show: true,
111
- filter: true,
112
- },
113
- {
114
- col: 1,
115
- colName: 'discovered-issues',
116
- text: localization.common.discoveredIssues,
117
- isSortable: true,
118
- sort: 'asc',
119
- sortColumn: false,
120
- width: '',
121
- show: true,
122
- filter: true,
123
- },
124
- ]
125
-
126
- export const selectSwitchTableBodyNewFunc = (
127
- data: UI_I_Switch[]
128
- ): UI_I_DataTableBody[] =>
129
- data.map((item: UI_I_Switch, index: number): UI_I_DataTableBody[] => {
130
- return {
131
- row: index,
132
- collapse: false,
133
- isHiddenCollapse: false,
134
- collapseToggle: false,
135
- data: [
136
- {
137
- col: 0,
138
- key: 'icon',
139
- text: item.name,
140
- icon: 'network-lib-ui-icon-vswitch',
141
- },
142
- {
143
- col: 1,
144
- key: '',
145
- text: '--',
146
- },
147
- ],
148
- }
149
- })
150
-
151
- export const selectStandardSwitchTableHeadFunc = (
152
- localization: UI_I_Localization
153
- ): UI_I_TableHead[] => [{ text: localization.common.switch }]
154
-
155
- export const selectStandardSwitchTableHeadNewFunc = (
156
- localization: UI_I_Localization
157
- ): UI_I_DataTableHeader[] => [
158
- {
159
- col: 0,
160
- colName: 'name',
161
- text: localization.common.name,
162
- isSortable: true,
163
- sort: 'asc',
164
- sortColumn: true,
165
- width: '',
166
- show: true,
167
- filter: true,
168
- },
169
- ]
170
-
171
- export const selectStandardSwitchTableBodyNewFunc = (
172
- data: UI_I_Switch[]
173
- ): UI_I_DataTableBody[] =>
174
- data.map((item: UI_I_Switch, index: number): UI_I_DataTableBody[] => {
175
- return {
176
- row: index,
177
- collapse: false,
178
- isHiddenCollapse: false,
179
- collapseToggle: false,
180
- data: [
181
- {
182
- col: 0,
183
- key: 'icon',
184
- text: item.name,
185
- icon: 'network-lib-ui-icon-vswitch',
186
- },
187
- ],
188
- }
189
- })
190
-
191
- export const tableOptionsNew: UI_I_DataTableOptions = {
192
- perPageOptions: [
193
- { text: '10', value: 10 },
194
- { text: '25', value: 25 },
195
- { text: '50', value: 50 },
196
- { text: '100', value: 100, default: true },
197
- ],
198
- isSelectable: true,
199
- selectType: 'radio',
200
- showPagination: false,
201
- showPageInfo: false,
202
- isSortable: true,
203
- server: false,
204
- isResizable: true,
205
- showSearch: false,
206
- showColumnManager: false,
207
- withActions: false,
208
- inBlock: false,
209
- inModal: false,
210
- showExport: false,
211
- withCollapse: false,
212
- showPaginationOnTop: false,
213
- }
214
-
215
- export const tableNetworkOptionsNew: UI_I_DataTableOptions = {
216
- perPageOptions: [
217
- { text: '10', value: 10 },
218
- { text: '25', value: 25 },
219
- { text: '50', value: 50 },
220
- { text: '100', value: 100, default: true },
221
- ],
222
- isSelectable: true,
223
- selectType: 'radio',
224
- showPagination: false,
225
- showPageInfo: false,
226
- isSortable: true,
227
- server: false,
228
- isResizable: true,
229
- showSearch: false,
230
- showColumnManager: true,
231
- withActions: false,
232
- inBlock: false,
233
- inModal: false,
234
- showExport: false,
235
- withCollapse: false,
236
- showPaginationOnTop: false,
237
- }
1
+ import type {
2
+ UI_I_DataTableOptions,
3
+ UI_I_DataTableHeader,
4
+ UI_I_DataTableBody,
5
+ } from '~/node_modules/bfg-uikit/components/ui/dataTable/lib/models/interfaces'
6
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
7
+ import type { UI_I_TableHead } from '~/components/common/wizards/network/add/lib/models/interfaces'
8
+ import type {
9
+ UI_I_Switch,
10
+ UI_I_NetworkForAdding,
11
+ } from '~/components/common/wizards/network/add/lib/models/interfaces'
12
+
13
+ export const selectNetworkTableHeadFunc = (
14
+ localization: UI_I_Localization
15
+ ): UI_I_TableHead[] => [
16
+ { text: localization.common.name },
17
+ { text: localization.common.nsxPortGroupId },
18
+ { text: localization.common.discoveredIssues },
19
+ ]
20
+
21
+ export const selectNetworkTableHeadNewFunc = (
22
+ localization: UI_I_Localization
23
+ ): UI_I_DataTableHeader[] => [
24
+ {
25
+ col: 0,
26
+ colName: 'name',
27
+ text: localization.common.name,
28
+ isSortable: true,
29
+ sort: 'asc',
30
+ sortColumn: true,
31
+ width: '',
32
+ show: true,
33
+ filter: true,
34
+ },
35
+ {
36
+ col: 1,
37
+ colName: 'nsx-port-group-id',
38
+ text: localization.common.nsxPortGroupId,
39
+ isSortable: true,
40
+ sort: 'asc',
41
+ sortColumn: false,
42
+ width: '',
43
+ show: true,
44
+ filter: true,
45
+ },
46
+ {
47
+ col: 2,
48
+ colName: 'distributed-switch',
49
+ text: localization.common.distributedSwitch,
50
+ isSortable: true,
51
+ sort: 'asc',
52
+ sortColumn: false,
53
+ width: '',
54
+ show: true,
55
+ filter: true,
56
+ },
57
+ ]
58
+
59
+ export const selectNetworkTableBodyNewFunc = (
60
+ data: UI_I_NetworkForAdding[]
61
+ ): UI_I_DataTableBody[] =>
62
+ data.map(
63
+ (item: UI_I_NetworkForAdding, index: number): UI_I_DataTableBody[] => {
64
+ return {
65
+ row: index,
66
+ collapse: false,
67
+ isHiddenCollapse: false,
68
+ collapseToggle: false,
69
+ data: [
70
+ {
71
+ col: 0,
72
+ key: 'icon',
73
+ text: item.name,
74
+ icon: 'vsphere-icon-network',
75
+ },
76
+ {
77
+ col: 1,
78
+ key: '',
79
+ text: '--',
80
+ },
81
+ ,
82
+ {
83
+ col: 2,
84
+ key: '',
85
+ text: '--',
86
+ },
87
+ ],
88
+ }
89
+ }
90
+ )
91
+
92
+ export const selectSwitchTableHeadFunc = (
93
+ localization: UI_I_Localization
94
+ ): UI_I_TableHead[] => [
95
+ { text: localization.common.switch },
96
+ { text: localization.common.discoveredIssues },
97
+ ]
98
+
99
+ export const selectSwitchTableHeadNewFunc = (
100
+ localization: UI_I_Localization
101
+ ): UI_I_DataTableHeader[] => [
102
+ {
103
+ col: 0,
104
+ colName: 'name',
105
+ text: localization.common.name,
106
+ isSortable: true,
107
+ sort: 'asc',
108
+ sortColumn: true,
109
+ width: '200px',
110
+ show: true,
111
+ filter: true,
112
+ },
113
+ {
114
+ col: 1,
115
+ colName: 'discovered-issues',
116
+ text: localization.common.discoveredIssues,
117
+ isSortable: true,
118
+ sort: 'asc',
119
+ sortColumn: false,
120
+ width: '',
121
+ show: true,
122
+ filter: true,
123
+ },
124
+ ]
125
+
126
+ export const selectSwitchTableBodyNewFunc = (
127
+ data: UI_I_Switch[]
128
+ ): UI_I_DataTableBody[] =>
129
+ data.map((item: UI_I_Switch, index: number): UI_I_DataTableBody[] => {
130
+ return {
131
+ row: index,
132
+ collapse: false,
133
+ isHiddenCollapse: false,
134
+ collapseToggle: false,
135
+ data: [
136
+ {
137
+ col: 0,
138
+ key: 'icon',
139
+ text: item.name,
140
+ icon: 'network-lib-ui-icon-vswitch',
141
+ },
142
+ {
143
+ col: 1,
144
+ key: '',
145
+ text: '--',
146
+ },
147
+ ],
148
+ }
149
+ })
150
+
151
+ export const selectStandardSwitchTableHeadFunc = (
152
+ localization: UI_I_Localization
153
+ ): UI_I_TableHead[] => [{ text: localization.common.switch }]
154
+
155
+ export const selectStandardSwitchTableHeadNewFunc = (
156
+ localization: UI_I_Localization
157
+ ): UI_I_DataTableHeader[] => [
158
+ {
159
+ col: 0,
160
+ colName: 'name',
161
+ text: localization.common.name,
162
+ isSortable: true,
163
+ sort: 'asc',
164
+ sortColumn: true,
165
+ width: '',
166
+ show: true,
167
+ filter: true,
168
+ },
169
+ ]
170
+
171
+ export const selectStandardSwitchTableBodyNewFunc = (
172
+ data: UI_I_Switch[]
173
+ ): UI_I_DataTableBody[] =>
174
+ data.map((item: UI_I_Switch, index: number): UI_I_DataTableBody[] => {
175
+ return {
176
+ row: index,
177
+ collapse: false,
178
+ isHiddenCollapse: false,
179
+ collapseToggle: false,
180
+ data: [
181
+ {
182
+ col: 0,
183
+ key: 'icon',
184
+ text: item.name,
185
+ icon: 'network-lib-ui-icon-vswitch',
186
+ },
187
+ ],
188
+ }
189
+ })
190
+
191
+ export const tableOptionsNew: UI_I_DataTableOptions = {
192
+ perPageOptions: [
193
+ { text: '10', value: 10 },
194
+ { text: '25', value: 25 },
195
+ { text: '50', value: 50 },
196
+ { text: '100', value: 100, default: true },
197
+ ],
198
+ isSelectable: true,
199
+ selectType: 'radio',
200
+ showPagination: false,
201
+ showPageInfo: false,
202
+ isSortable: true,
203
+ server: false,
204
+ isResizable: true,
205
+ showSearch: false,
206
+ showColumnManager: false,
207
+ withActions: false,
208
+ inBlock: false,
209
+ inModal: false,
210
+ showExport: false,
211
+ withCollapse: false,
212
+ showPaginationOnTop: false,
213
+ }
214
+
215
+ export const tableNetworkOptionsNew: UI_I_DataTableOptions = {
216
+ perPageOptions: [
217
+ { text: '10', value: 10 },
218
+ { text: '25', value: 25 },
219
+ { text: '50', value: 50 },
220
+ { text: '100', value: 100, default: true },
221
+ ],
222
+ isSelectable: true,
223
+ selectType: 'radio',
224
+ showPagination: false,
225
+ showPageInfo: false,
226
+ isSortable: true,
227
+ server: false,
228
+ isResizable: true,
229
+ showSearch: false,
230
+ showColumnManager: true,
231
+ withActions: false,
232
+ inBlock: false,
233
+ inModal: false,
234
+ showExport: false,
235
+ withCollapse: false,
236
+ showPaginationOnTop: false,
237
+ }
@@ -1,9 +1,9 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
-
3
- export const getVlanId = (
4
- vlanId: string,
5
- localization: UI_I_Localization
6
- ): string =>
7
- (vlanId === `${localization.common.all} (4095)` && '4095') ||
8
- (vlanId === `${localization.common.none} (0)` && '0') ||
9
- vlanId
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+
3
+ export const getVlanId = (
4
+ vlanId: string,
5
+ localization: UI_I_Localization
6
+ ): string =>
7
+ (vlanId === `${localization.common.all} (4095)` && '4095') ||
8
+ (vlanId === `${localization.common.none} (0)` && '0') ||
9
+ vlanId