bfg-common 1.4.198 → 1.4.199

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 (48) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +407 -407
  2. package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
  3. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
  5. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  6. package/assets/img/icons/icons-sprite-dark-6.svg +83 -83
  7. package/assets/img/icons/icons-sprite-light-1.svg +407 -407
  8. package/assets/img/icons/icons-sprite-light-2.svg +343 -343
  9. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  10. package/assets/img/icons/icons-sprite-light-4.svg +255 -255
  11. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  12. package/assets/img/icons/icons-sprite-light-6.svg +83 -83
  13. package/components/atoms/DiagramIcon.vue +29 -0
  14. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  15. package/components/atoms/stack/StackBlock.vue +185 -185
  16. package/components/common/browse/blocks/Title.vue +91 -91
  17. package/components/common/browse/blocks/info/Date.vue +21 -21
  18. package/components/common/context/lib/models/interfaces.ts +30 -30
  19. package/components/common/context/recursion/Recursion.vue +86 -86
  20. package/components/common/context/recursion/RecursionNew.vue +199 -199
  21. package/components/common/context/recursion/RecursionOld.vue +213 -213
  22. package/components/common/diagramMain/adapter/AdapterItem.vue +17 -4
  23. package/components/common/diagramMain/lib/models/interfaces.ts +24 -1
  24. package/components/common/diagramMain/lib/models/types.ts +7 -2
  25. package/components/common/diagramMain/lib/utils/utils.ts +331 -278
  26. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +1 -1
  27. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +1 -1
  28. package/components/common/vm/actions/add/Add.vue +609 -609
  29. package/components/common/vm/actions/clone/Clone.vue +522 -522
  30. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  31. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  32. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  33. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
  34. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  35. package/components/common/wizards/network/add/Add.vue +18 -7
  36. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  37. package/components/common/wizards/network/add/modals/SelectNetwork.vue +1 -1
  38. package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +1 -1
  39. package/components/common/wizards/network/add/modals/SelectSwitch.vue +1 -1
  40. package/components/common/wizards/network/add/steps/ConnectionSettings.vue +1 -1
  41. package/components/common/wizards/network/add/steps/PortProperties.vue +1 -1
  42. package/composables/productNameLocal.ts +30 -30
  43. package/package.json +1 -1
  44. package/plugins/recursion.ts +311 -311
  45. package/public/spice-console/lib/images/bitmap.js +203 -203
  46. package/store/tasks/mappers/recentTasks.ts +45 -45
  47. /package/components/common/wizards/network/add/lib/config/{index.ts → config.ts} +0 -0
  48. /package/components/common/wizards/network/add/lib/utils/{index.ts → utils.ts} +0 -0
@@ -67,7 +67,7 @@ import type {
67
67
  UI_I_NetworkForAdding,
68
68
  UI_I_SelectedNetwork,
69
69
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
70
- import { selectStandardSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config'
70
+ import { selectStandardSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
71
71
 
72
72
  const props = withDefaults(
73
73
  defineProps<{
@@ -51,7 +51,7 @@ import type {
51
51
  UI_I_SelectedSwitch,
52
52
  UI_I_BodyItems,
53
53
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
54
- import { selectStandardSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config'
54
+ import { selectStandardSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
55
55
 
56
56
  interface I_SelectSwitchModalProps {
57
57
  show: boolean
@@ -51,7 +51,7 @@ import type {
51
51
  UI_I_SelectedSwitch,
52
52
  UI_I_BodyItems,
53
53
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
54
- import { selectSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config'
54
+ import { selectSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
55
55
 
56
56
  interface I_SelectSwitchModalProps {
57
57
  show: boolean
@@ -93,7 +93,7 @@ import type {
93
93
  UI_I_Localization,
94
94
  } from '~/lib/models/interfaces'
95
95
  import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
96
- import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config'
96
+ import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config/config'
97
97
  import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
98
98
  import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
99
99
  import {
@@ -226,7 +226,7 @@ import {
226
226
  servicesInitial,
227
227
  vlanIdSelectData,
228
228
  portPropertiesEnabledServicesFunc,
229
- } from '~/components/common/wizards/network/add/lib/config'
229
+ } from '~/components/common/wizards/network/add/lib/config/config'
230
230
  import type {
231
231
  UI_I_PortProperties,
232
232
  UI_I_TCPStack,
@@ -1,30 +1,30 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_T_LanguageKey } from '~/lib/models/types'
3
-
4
- export function productNameLocal(
5
- localization: UI_I_Localization
6
- ): UI_I_Localization {
7
- const config = useRuntimeConfig()
8
-
9
- const productName =
10
- config.public.LOCALIZATION_CODE === 'ru'
11
- ? config.public.PRODUCT_NAME_RU
12
- : config.public.PRODUCT_NAME_EN
13
-
14
- return replaceProductNameRecursion(localization, productName)
15
- }
16
-
17
- const replaceProductNameRecursion = (
18
- localization: UI_I_Localization,
19
- productName: any
20
- ): UI_I_Localization => {
21
- for (const key of Object.keys(localization)) {
22
- let item = localization[key as UI_T_LanguageKey]
23
-
24
- for (const key2 of Object.keys(item)) {
25
- item[key2] = item[key2].replaceAll('{productName}', productName)
26
- }
27
- }
28
-
29
- return localization
30
- }
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type { UI_T_LanguageKey } from '~/lib/models/types'
3
+
4
+ export function productNameLocal(
5
+ localization: UI_I_Localization
6
+ ): UI_I_Localization {
7
+ const config = useRuntimeConfig()
8
+
9
+ const productName =
10
+ config.public.LOCALIZATION_CODE === 'ru'
11
+ ? config.public.PRODUCT_NAME_RU
12
+ : config.public.PRODUCT_NAME_EN
13
+
14
+ return replaceProductNameRecursion(localization, productName)
15
+ }
16
+
17
+ const replaceProductNameRecursion = (
18
+ localization: UI_I_Localization,
19
+ productName: any
20
+ ): UI_I_Localization => {
21
+ for (const key of Object.keys(localization)) {
22
+ let item = localization[key as UI_T_LanguageKey]
23
+
24
+ for (const key2 of Object.keys(item)) {
25
+ item[key2] = item[key2].replaceAll('{productName}', productName)
26
+ }
27
+ }
28
+
29
+ return localization
30
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.198",
4
+ "version": "1.4.199",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",