bfg-common 1.5.812 → 1.5.813

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 (105) hide show
  1. package/CODE_STYLE.md +109 -109
  2. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  3. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  4. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  5. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  6. package/components/atoms/TheIcon3.vue +50 -50
  7. package/components/atoms/collapse/CollapseNav.vue +170 -170
  8. package/components/atoms/perPage/PerPage.vue +58 -58
  9. package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
  10. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  11. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  12. package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
  13. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  14. package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +47 -47
  15. package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +78 -78
  16. package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +56 -56
  17. package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +66 -66
  18. package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +40 -40
  19. package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +122 -122
  20. package/components/common/configure/advancedSystemSettings/tableView/old/field/Field.vue +139 -139
  21. package/components/common/configure/advancedSystemSettings/tableView/old/field/lib/models/enums.ts +13 -13
  22. package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/table.ts +131 -131
  23. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  24. package/components/common/diagramMain/port/Port.vue +580 -580
  25. package/components/common/layout/theHeader/userMenu/UserMenu.vue +116 -116
  26. package/components/common/layout/theHeader/userMenu/modals/preferences/lib/models/types.ts +7 -7
  27. package/components/common/layout/topNotification/TopNotification.vue +37 -37
  28. package/components/common/layout/topNotification/lib/models/enums.ts +3 -3
  29. package/components/common/pages/backups/DetailView.vue +52 -52
  30. package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
  31. package/components/common/pages/backups/modals/Modals.vue +243 -243
  32. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
  33. package/components/common/pages/backups/modals/restore/disks/tableView/old/Table.vue +117 -117
  34. package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +96 -96
  35. package/components/common/pages/backups/modals/restore/lib/config/steps.ts +134 -134
  36. package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
  37. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  38. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  39. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  40. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  41. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  42. package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
  43. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  44. package/components/common/select/radio/RadioGroup.vue +137 -137
  45. package/components/common/spiceConsole/Drawer.vue +420 -420
  46. package/components/common/spiceConsole/SpiceConsole.vue +184 -184
  47. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  48. package/components/common/tools/Actions.vue +207 -207
  49. package/components/common/treeView/TreeView.vue +52 -52
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  51. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +283 -283
  52. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/New.vue +340 -340
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +511 -502
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/Old.vue +279 -279
  55. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/vmStoragePolicy/New.vue +53 -53
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/vmStoragePolicy/Old.vue +45 -45
  57. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/vmStoragePolicy/VmStoragePolicy.vue +31 -31
  58. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/vmStoragePolicy/lib/config/options.ts +12 -12
  59. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +156 -156
  60. package/components/common/vm/actions/common/lib/models/interfaces.ts +192 -192
  61. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  62. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  63. package/components/common/vm/actions/common/select/options/Options.vue +58 -58
  64. package/components/common/vm/actions/common/select/storage/Old.vue +125 -125
  65. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  66. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  67. package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
  68. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  69. package/components/common/wizards/common/compatibility/Compatibility.vue +35 -35
  70. package/components/common/wizards/common/steps/name/Old.vue +121 -121
  71. package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
  72. package/components/common/wizards/common/steps/name/location/New.vue +40 -40
  73. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
  74. package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +192 -192
  75. package/composables/useAppVersion.ts +21 -21
  76. package/composables/useLocal.ts +6 -6
  77. package/composables/useLocalCommon.ts +39 -39
  78. package/lib/config/regExp.ts +53 -53
  79. package/package.json +1 -1
  80. package/plugins/console.ts +21 -21
  81. package/plugins/helpers.ts +34 -34
  82. package/plugins/mouse.ts +21 -21
  83. package/plugins/panelStates.ts +70 -70
  84. package/plugins/text.ts +59 -59
  85. package/public/spice-console/application/clientgui.js +854 -854
  86. package/public/spice-console/application/packetfactory.js +211 -211
  87. package/public/spice-console/application/virtualmouse.js +147 -147
  88. package/public/spice-console/lib/images/bitmap.js +203 -203
  89. package/public/spice-console/network/spicechannel.js +440 -440
  90. package/public/spice-console/process/cursorprocess.js +128 -128
  91. package/public/spice-console/process/inputprocess.js +227 -227
  92. package/public/spice-console/process/mainprocess.js +212 -212
  93. package/public/spice-console/run.js +210 -210
  94. package/store/inventory/modules/configure/advancedSystemSettings/actions.ts +92 -92
  95. package/store/inventory/modules/configure/advancedSystemSettings/getters.ts +17 -17
  96. package/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces.ts +45 -45
  97. package/store/inventory/modules/configure/advancedSystemSettings/lib/models/types.ts +30 -30
  98. package/store/inventory/modules/configure/advancedSystemSettings/mappers/mapSettings.ts +50 -50
  99. package/store/main/actions.ts +28 -28
  100. package/store/main/getters.ts +14 -14
  101. package/store/main/lib/interfaces.ts +18 -18
  102. package/store/main/mutations.ts +28 -28
  103. package/store/main/state.ts +9 -9
  104. package/store/tasks/mappers/recentTasks.ts +123 -123
  105. package/store/tasks/mutations.ts +82 -82
@@ -1,131 +1,131 @@
1
- import type {
2
- UI_I_ColumnKey,
3
- UI_I_HeadItem,
4
- UI_I_BodyItem,
5
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
6
- import type { UI_I_Localization } from '~/lib/models/interfaces'
7
- import type { UI_I_AdvancedSystemSetting } from '~/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces'
8
- import {
9
- constructColumnKey,
10
- constructHeadItem,
11
- } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
12
- import { tableItemKeys } from '~/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys'
13
-
14
- const getItems = (
15
- localization: UI_I_Localization,
16
- isEdit = false
17
- ): [string, boolean, string, string][] => {
18
- const items: [string, boolean, string, string][] = [
19
- [
20
- localization.advancedSystemSettings.key,
21
- true,
22
- '280px',
23
- !isEdit ? tableItemKeys[0] : '',
24
- ],
25
- [
26
- localization.advancedSystemSettings.value,
27
- true,
28
- '280px',
29
- !isEdit ? tableItemKeys[1] : '',
30
- ],
31
- ]
32
- if (!isEdit) {
33
- items.push([
34
- localization.advancedSystemSettings.summary,
35
- true,
36
- '280px',
37
- tableItemKeys[2],
38
- ])
39
- }
40
- return items
41
- }
42
-
43
- export const columnKeys = (
44
- localization: UI_I_Localization,
45
- isEdit = false
46
- ): UI_I_ColumnKey[] => {
47
- const result: UI_I_ColumnKey[] = []
48
- getItems(localization, isEdit).forEach((item, i) => {
49
- const col = isEdit && i === 1 ? 'value' : `col${i}`
50
- result.push(constructColumnKey(col, item[0], item[1]))
51
- })
52
- return result
53
- }
54
-
55
- export const headItems = (
56
- localization: UI_I_Localization,
57
- isEdit = false
58
- ): UI_I_HeadItem[] => {
59
- const result: UI_I_HeadItem[] = []
60
- getItems(localization, isEdit).forEach((item, i) => {
61
- const col = isEdit && i === 1 ? 'value' : `col${i}`
62
- result.push(
63
- constructHeadItem(
64
- col,
65
- item[0],
66
- item[3],
67
- false,
68
- item[2],
69
- '',
70
- `advanced-system-settings-table-head-item-${item[3]}${
71
- isEdit ? '-edit' : ''
72
- }`
73
- )
74
- )
75
- })
76
- return result
77
- }
78
-
79
- export const bodyItems = (
80
- data: UI_I_AdvancedSystemSetting[],
81
- isEdit = false
82
- ): UI_I_BodyItem[][] => {
83
- const bodyItems: UI_I_BodyItem[][] = []
84
- data.forEach((item, key) => {
85
- const editData = {
86
- key: item.key,
87
- type: item.type,
88
- value: item.value,
89
- validation: item.validation,
90
- // options: item.options,
91
- }
92
-
93
- // let valueText = item[tableItemKeys[1]]
94
- // if (item.type === 'select') {
95
- // valueText =
96
- // item.options.find((option) => option.key === valueText)?.value ||
97
- // valueText
98
- // }
99
- const cols = [
100
- {
101
- key: 'col0',
102
- text: item[tableItemKeys[0]],
103
- id: key,
104
- testId: `advanced-system-settings-table-item-${key}${
105
- isEdit ? '-edit' : ''
106
- }`,
107
- },
108
- {
109
- key: isEdit ? 'value' : 'col1',
110
- text: item[tableItemKeys[1]],
111
- id: key,
112
- testId: `advanced-system-settings-table-item-${key}${
113
- isEdit ? '-edit' : ''
114
- }`,
115
- data: isEdit ? editData : null,
116
- },
117
- ]
118
- if (!isEdit) {
119
- cols.push({
120
- key: 'col2',
121
- text: item[tableItemKeys[2]],
122
- id: key,
123
- testId: `advanced-system-settings-table-item-${key}${
124
- isEdit ? '-edit' : ''
125
- }`,
126
- })
127
- }
128
- bodyItems.push(cols)
129
- })
130
- return bodyItems
131
- }
1
+ import type {
2
+ UI_I_ColumnKey,
3
+ UI_I_HeadItem,
4
+ UI_I_BodyItem,
5
+ } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
6
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
7
+ import type { UI_I_AdvancedSystemSetting } from '~/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces'
8
+ import {
9
+ constructColumnKey,
10
+ constructHeadItem,
11
+ } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
12
+ import { tableItemKeys } from '~/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys'
13
+
14
+ const getItems = (
15
+ localization: UI_I_Localization,
16
+ isEdit = false
17
+ ): [string, boolean, string, string][] => {
18
+ const items: [string, boolean, string, string][] = [
19
+ [
20
+ localization.advancedSystemSettings.key,
21
+ true,
22
+ '280px',
23
+ !isEdit ? tableItemKeys[0] : '',
24
+ ],
25
+ [
26
+ localization.advancedSystemSettings.value,
27
+ true,
28
+ '280px',
29
+ !isEdit ? tableItemKeys[1] : '',
30
+ ],
31
+ ]
32
+ if (!isEdit) {
33
+ items.push([
34
+ localization.advancedSystemSettings.summary,
35
+ true,
36
+ '280px',
37
+ tableItemKeys[2],
38
+ ])
39
+ }
40
+ return items
41
+ }
42
+
43
+ export const columnKeys = (
44
+ localization: UI_I_Localization,
45
+ isEdit = false
46
+ ): UI_I_ColumnKey[] => {
47
+ const result: UI_I_ColumnKey[] = []
48
+ getItems(localization, isEdit).forEach((item, i) => {
49
+ const col = isEdit && i === 1 ? 'value' : `col${i}`
50
+ result.push(constructColumnKey(col, item[0], item[1]))
51
+ })
52
+ return result
53
+ }
54
+
55
+ export const headItems = (
56
+ localization: UI_I_Localization,
57
+ isEdit = false
58
+ ): UI_I_HeadItem[] => {
59
+ const result: UI_I_HeadItem[] = []
60
+ getItems(localization, isEdit).forEach((item, i) => {
61
+ const col = isEdit && i === 1 ? 'value' : `col${i}`
62
+ result.push(
63
+ constructHeadItem(
64
+ col,
65
+ item[0],
66
+ item[3],
67
+ false,
68
+ item[2],
69
+ '',
70
+ `advanced-system-settings-table-head-item-${item[3]}${
71
+ isEdit ? '-edit' : ''
72
+ }`
73
+ )
74
+ )
75
+ })
76
+ return result
77
+ }
78
+
79
+ export const bodyItems = (
80
+ data: UI_I_AdvancedSystemSetting[],
81
+ isEdit = false
82
+ ): UI_I_BodyItem[][] => {
83
+ const bodyItems: UI_I_BodyItem[][] = []
84
+ data.forEach((item, key) => {
85
+ const editData = {
86
+ key: item.key,
87
+ type: item.type,
88
+ value: item.value,
89
+ validation: item.validation,
90
+ // options: item.options,
91
+ }
92
+
93
+ // let valueText = item[tableItemKeys[1]]
94
+ // if (item.type === 'select') {
95
+ // valueText =
96
+ // item.options.find((option) => option.key === valueText)?.value ||
97
+ // valueText
98
+ // }
99
+ const cols = [
100
+ {
101
+ key: 'col0',
102
+ text: item[tableItemKeys[0]],
103
+ id: key,
104
+ testId: `advanced-system-settings-table-item-${key}${
105
+ isEdit ? '-edit' : ''
106
+ }`,
107
+ },
108
+ {
109
+ key: isEdit ? 'value' : 'col1',
110
+ text: item[tableItemKeys[1]],
111
+ id: key,
112
+ testId: `advanced-system-settings-table-item-${key}${
113
+ isEdit ? '-edit' : ''
114
+ }`,
115
+ data: isEdit ? editData : null,
116
+ },
117
+ ]
118
+ if (!isEdit) {
119
+ cols.push({
120
+ key: 'col2',
121
+ text: item[tableItemKeys[2]],
122
+ id: key,
123
+ testId: `advanced-system-settings-table-item-${key}${
124
+ isEdit ? '-edit' : ''
125
+ }`,
126
+ })
127
+ }
128
+ bodyItems.push(cols)
129
+ })
130
+ return bodyItems
131
+ }
@@ -1,48 +1,48 @@
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 { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
4
- import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
5
-
6
- export const vCenterViewSettingsFunc = (
7
- localization: UI_I_Localization,
8
- initialData: UI_I_ModalsInitialData
9
- ) => [
10
- {
11
- title: 'Network adapter 1',
12
- id: 1,
13
- type: 1,
14
- rows: [
15
- {
16
- name: localization.common.macAddress,
17
- value: initialData.macAddress,
18
- },
19
- {
20
- name: localization.common.adapterType,
21
- value: initialData.adapter,
22
- },
23
- ],
24
- },
25
- ]
26
-
27
- export const vCenterPopupFieldsFunc = (
28
- localization: UI_I_Localization,
29
- testId: string
30
- ): UI_I_CollapseNavItem[] => [
31
- {
32
- text: localization.common.viewSettings,
33
- value: 'v-center-view-settings',
34
- testId: `${testId}-view`,
35
- },
36
- ]
37
-
38
- export const vCenterPopupFieldsNewFunc = (
39
- localization: UI_I_Localization,
40
- testId: string
41
- ): UI_I_Dropdown[] => [
42
- {
43
- text: localization.common.viewSettings,
44
- value: 'v-center-view-settings',
45
- iconName: 'password-hide',
46
- testId: `${testId}-view`,
47
- },
48
- ]
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 { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
4
+ import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
5
+
6
+ export const vCenterViewSettingsFunc = (
7
+ localization: UI_I_Localization,
8
+ initialData: UI_I_ModalsInitialData
9
+ ) => [
10
+ {
11
+ title: 'Network adapter 1',
12
+ id: 1,
13
+ type: 1,
14
+ rows: [
15
+ {
16
+ name: localization.common.macAddress,
17
+ value: initialData.macAddress,
18
+ },
19
+ {
20
+ name: localization.common.adapterType,
21
+ value: initialData.adapter,
22
+ },
23
+ ],
24
+ },
25
+ ]
26
+
27
+ export const vCenterPopupFieldsFunc = (
28
+ localization: UI_I_Localization,
29
+ testId: string
30
+ ): UI_I_CollapseNavItem[] => [
31
+ {
32
+ text: localization.common.viewSettings,
33
+ value: 'v-center-view-settings',
34
+ testId: `${testId}-view`,
35
+ },
36
+ ]
37
+
38
+ export const vCenterPopupFieldsNewFunc = (
39
+ localization: UI_I_Localization,
40
+ testId: string
41
+ ): UI_I_Dropdown[] => [
42
+ {
43
+ text: localization.common.viewSettings,
44
+ value: 'v-center-view-settings',
45
+ iconName: 'password-hide',
46
+ testId: `${testId}-view`,
47
+ },
48
+ ]