bfg-common 1.4.196 → 1.4.197

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 (33) 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/modal/bySteps/BySteps.vue +253 -253
  14. package/components/atoms/stack/StackBlock.vue +185 -185
  15. package/components/common/browse/blocks/Title.vue +91 -91
  16. package/components/common/browse/blocks/info/Date.vue +21 -21
  17. package/components/common/context/lib/models/interfaces.ts +30 -30
  18. package/components/common/context/recursion/Recursion.vue +86 -86
  19. package/components/common/context/recursion/RecursionNew.vue +199 -199
  20. package/components/common/context/recursion/RecursionOld.vue +213 -213
  21. package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +2 -0
  22. package/components/common/vm/actions/add/Add.vue +609 -609
  23. package/components/common/vm/actions/clone/Clone.vue +522 -522
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  27. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
  28. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  29. package/composables/productNameLocal.ts +30 -30
  30. package/package.json +1 -1
  31. package/plugins/recursion.ts +311 -311
  32. package/public/spice-console/lib/images/bitmap.js +203 -203
  33. package/store/tasks/mappers/recentTasks.ts +45 -45
@@ -1,85 +1,85 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.streamingMode }}
6
- </template>
7
- <template #stackBlockContent>
8
- <atoms-tooltip-error
9
- :has-error="!!apiError"
10
- selector="#vm-wizard-streaming-mode-field"
11
- @remove="onRemoveValidationError"
12
- >
13
- <template #elem>
14
- <div class="select">
15
- <select
16
- id="vm-wizard-streaming-mode-field"
17
- v-model="streamingModeLocal"
18
- data-id="vm-wizard-streaming-mode-select"
19
- :disabled="props.disabled"
20
- >
21
- <option
22
- v-for="(item, key) in streamingModeOptions"
23
- :key="key"
24
- :value="item.value"
25
- >
26
- {{ item.text }}
27
- </option>
28
- </select>
29
- </div>
30
- </template>
31
- <template #content>
32
- {{ apiError }}
33
- </template>
34
- </atoms-tooltip-error>
35
- </template>
36
- </atoms-stack-block>
37
- </div>
38
- </template>
39
-
40
- <script setup lang="ts">
41
- import type { UI_I_Localization } from '~/lib/models/interfaces'
42
- import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
43
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
44
- import { streamingModeOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config'
45
-
46
- const localization = computed<UI_I_Localization>(() => useLocal())
47
-
48
- const props = defineProps<{
49
- streamingMode: string
50
- errorValidationFields: UI_I_ErrorValidationField[]
51
- disabled: boolean
52
- }>()
53
- const emits = defineEmits<{
54
- (event: 'update:streaming-mode', value: string): void
55
- (event: 'remove-error-by-title', value: string): void
56
- }>()
57
-
58
- const streamingModeOptions = ref<UI_I_OptionItem[]>(
59
- streamingModeOptionsFunc(localization.value)
60
- )
61
-
62
- const streamingModeLocal = computed<string>({
63
- get() {
64
- return props.streamingMode
65
- },
66
- set(newValue) {
67
- emits('update:streaming-mode', newValue)
68
- },
69
- })
70
-
71
- const typeError = 'options.remote_console.spice.streaming_mode'
72
-
73
- const apiError = computed<string>(() => {
74
- return (
75
- props.errorValidationFields?.find((message) => message.field === typeError)
76
- ?.error_message || ''
77
- )
78
- })
79
-
80
- const onRemoveValidationError = (): void => {
81
- emits('remove-error-by-title', typeError)
82
- }
83
- </script>
84
-
85
- <style scoped></style>
1
+ <template>
2
+ <div class="">
3
+ <atoms-stack-block :has-children="false">
4
+ <template #stackBlockKey>
5
+ {{ localization.common.streamingMode }}
6
+ </template>
7
+ <template #stackBlockContent>
8
+ <atoms-tooltip-error
9
+ :has-error="!!apiError"
10
+ selector="#vm-wizard-streaming-mode-field"
11
+ @remove="onRemoveValidationError"
12
+ >
13
+ <template #elem>
14
+ <div class="select">
15
+ <select
16
+ id="vm-wizard-streaming-mode-field"
17
+ v-model="streamingModeLocal"
18
+ data-id="vm-wizard-streaming-mode-select"
19
+ :disabled="props.disabled"
20
+ >
21
+ <option
22
+ v-for="(item, key) in streamingModeOptions"
23
+ :key="key"
24
+ :value="item.value"
25
+ >
26
+ {{ item.text }}
27
+ </option>
28
+ </select>
29
+ </div>
30
+ </template>
31
+ <template #content>
32
+ {{ apiError }}
33
+ </template>
34
+ </atoms-tooltip-error>
35
+ </template>
36
+ </atoms-stack-block>
37
+ </div>
38
+ </template>
39
+
40
+ <script setup lang="ts">
41
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
42
+ import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
43
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
44
+ import { streamingModeOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config'
45
+
46
+ const localization = computed<UI_I_Localization>(() => useLocal())
47
+
48
+ const props = defineProps<{
49
+ streamingMode: string
50
+ errorValidationFields: UI_I_ErrorValidationField[]
51
+ disabled: boolean
52
+ }>()
53
+ const emits = defineEmits<{
54
+ (event: 'update:streaming-mode', value: string): void
55
+ (event: 'remove-error-by-title', value: string): void
56
+ }>()
57
+
58
+ const streamingModeOptions = ref<UI_I_OptionItem[]>(
59
+ streamingModeOptionsFunc(localization.value)
60
+ )
61
+
62
+ const streamingModeLocal = computed<string>({
63
+ get() {
64
+ return props.streamingMode
65
+ },
66
+ set(newValue) {
67
+ emits('update:streaming-mode', newValue)
68
+ },
69
+ })
70
+
71
+ const typeError = 'options.remote_console.spice.streaming_mode'
72
+
73
+ const apiError = computed<string>(() => {
74
+ return (
75
+ props.errorValidationFields?.find((message) => message.field === typeError)
76
+ ?.error_message || ''
77
+ )
78
+ })
79
+
80
+ const onRemoveValidationError = (): void => {
81
+ emits('remove-error-by-title', typeError)
82
+ }
83
+ </script>
84
+
85
+ <style scoped></style>
@@ -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.196",
4
+ "version": "1.4.197",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",