bfg-common 1.5.743 → 1.5.744

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 (26) hide show
  1. package/assets/localization/local_be.json +61 -1
  2. package/assets/localization/local_en.json +61 -1
  3. package/assets/localization/local_hy.json +61 -1
  4. package/assets/localization/local_kk.json +61 -1
  5. package/assets/localization/local_ru.json +61 -1
  6. package/assets/localization/local_zh.json +61 -1
  7. package/assets/scss/common/global.scss +5 -5
  8. package/components/atoms/table/dataGrid/DataGrid.vue +10 -9
  9. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  10. package/components/common/browse/lib/models/interfaces.ts +5 -5
  11. package/components/common/diagramMain/lib/models/interfaces.ts +2 -0
  12. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  13. package/components/common/diagramMain/modals/viewSettings/info/Info.vue +5 -1
  14. package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +16 -0
  15. package/components/common/diagramMain/network/Contents.vue +497 -497
  16. package/components/common/diagramMain/port/Port.vue +580 -580
  17. package/components/common/vm/snapshots/modals/confirm/New.vue +1 -1
  18. package/components/common/wizards/network/add/Add.vue +870 -870
  19. package/package.json +1 -1
  20. package/plugins/time.ts +58 -58
  21. package/components/common/vm/snapshots/lib/models/interfaces.ts +0 -5
  22. package/components/common/vm/snapshots/modals/takeOrEdit/Old.vue +0 -220
  23. package/components/common/vm/snapshots/modals/takeOrEdit/TakeOrEdit.vue +0 -51
  24. package/components/common/vm/snapshots/modals/takeOrEdit/new/New.vue +0 -168
  25. package/components/common/vm/snapshots/modals/takeOrEdit/new/lib/utils/getSnapshotsName.ts +0 -15
  26. /package/components/common/vm/snapshots/modals/{lib → confirm/lib}/config/modalTexts.ts +0 -0
@@ -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
+ ]
@@ -17,7 +17,11 @@
17
17
  :full-mode="props.fullMode"
18
18
  :height="props.height"
19
19
  :with-collapse="props.withCollapse"
20
- />
20
+ >
21
+ <template #dynamic="{ dynamicName, data }">
22
+ <slot :name="dynamicName" :data="data" />
23
+ </template>
24
+ </common-diagram-main-modals-view-settings-info-old>
21
25
  </template>
22
26
 
23
27
  <script setup lang="ts">
@@ -18,7 +18,15 @@
18
18
  v-for="viewSettingsField in viewSettingsTabContent(tab.value)"
19
19
  :key="viewSettingsField.id"
20
20
  >
21
+ <template v-if="viewSettingsField.slot">
22
+ <slot
23
+ name="dynamic"
24
+ :dynamic-name="viewSettingsField.slot"
25
+ :data="viewSettingsField.data"
26
+ />
27
+ </template>
21
28
  <common-diagram-main-modals-view-settings-view-settings
29
+ v-else
22
30
  :view-name="props.viewName"
23
31
  :view-settings-field="viewSettingsField"
24
32
  :with-collapse="props.withCollapse"
@@ -34,7 +42,15 @@
34
42
  v-for="viewSettingsField in props.viewSettingsFields"
35
43
  :key="viewSettingsField.id"
36
44
  >
45
+ <template v-if="viewSettingsField.slot">
46
+ <slot
47
+ name="dynamic"
48
+ :dynamic-name="viewSettingsField.slot"
49
+ :data="viewSettingsField.data"
50
+ />
51
+ </template>
37
52
  <common-diagram-main-modals-view-settings-view-settings
53
+ v-else
38
54
  :view-name="props.viewName"
39
55
  :view-settings-field="viewSettingsField"
40
56
  />