bfg-common 1.2.45 → 1.2.46

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 (77) hide show
  1. package/components/atoms/alert/Notification.vue +167 -167
  2. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  3. package/components/atoms/datepicker/Datepicker.vue +612 -612
  4. package/components/atoms/list/SelectList.vue +62 -62
  5. package/components/atoms/nav/NavBar.vue +116 -116
  6. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  7. package/components/atoms/notificationBar/NotificationBar.vue +175 -175
  8. package/components/atoms/perPage/PerPage.vue +52 -52
  9. package/components/atoms/popup/SimplePopup.vue +90 -90
  10. package/components/atoms/step/VerticalStep.vue +104 -104
  11. package/components/atoms/switch/Switch.vue +107 -107
  12. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
  13. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  14. package/components/atoms/tabs/Tabs.vue +189 -189
  15. package/components/atoms/tooltip/Signpost.vue +224 -224
  16. package/components/common/BadBrowser.vue +114 -114
  17. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  18. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  19. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  20. package/components/common/browse/Browse.vue +182 -182
  21. package/components/common/browse/blocks/Title.vue +66 -66
  22. package/components/common/diagramMain/Diagram.vue +186 -186
  23. package/components/common/diagramMain/DiagramMain.vue +986 -986
  24. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  25. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  26. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  27. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  28. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  29. package/components/common/diagramMain/network/Contents.vue +238 -238
  30. package/components/common/feedback/Buttons.vue +232 -232
  31. package/components/common/feedback/Message.vue +468 -468
  32. package/components/common/feedback/VisitPortal.vue +54 -54
  33. package/components/common/help/navbar/left/Left.vue +159 -159
  34. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  35. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  36. package/components/common/modals/Rename.vue +165 -165
  37. package/components/common/perPage/PerPage.vue +51 -51
  38. package/components/common/recursionTree/RecursionTree.vue +201 -201
  39. package/components/common/vm/actions/add/config/capabilities.ts +338 -338
  40. package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +657 -657
  41. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  42. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
  43. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  44. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  45. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  46. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  47. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  48. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
  49. package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  50. package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
  51. package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  52. package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
  53. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  54. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  55. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  56. package/components/common/vm/actions/add/select/models/types.ts +2 -0
  57. package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
  58. package/components/common/vm/actions/clone/Clone.vue +545 -545
  59. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  60. package/components/common/vm/actions/clone/utils.ts +43 -43
  61. package/components/common/wizards/datastore/add/nfs/Nfs.vue +94 -94
  62. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +377 -377
  63. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  64. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  65. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  66. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  67. package/composables/useLocal.ts +38 -38
  68. package/minify.js +146 -146
  69. package/models/store/interfaces.ts +37 -37
  70. package/models/store/storage/interfaces.ts +32 -32
  71. package/models/store/types.ts +32 -32
  72. package/modules/fixContentBuild/utils/methods.ts +114 -114
  73. package/package.json +1 -1
  74. package/public/spice-console/application/codec.js +257 -257
  75. package/public/spice-console/lib/rasterEngine.js +907 -907
  76. package/public/spice-console/network/spicechannel.js +369 -369
  77. package/utils/contentBuild.ts +34 -34
@@ -1,182 +1,182 @@
1
- <template>
2
- <atoms-modal
3
- test-id="browse"
4
- width="864px"
5
- height="586px"
6
- :show="props.show"
7
- :title="localization.selectFile"
8
- :disabled-submit="!props.selectedFile"
9
- >
10
- <template #modalBody>
11
- <common-browse-blocks-container
12
- type="horizontal"
13
- :blocks-width="blocksWidth"
14
- @change-widths="onChangeWidths"
15
- >
16
- <template #firstBlock>
17
- <common-browse-blocks-title
18
- :width="blocksWidth[0]"
19
- :title="localization.datastores"
20
- >
21
- <template #content>
22
- <div class="">
23
- <common-recursion-tree
24
- :nodes="props.nodes"
25
- class="recursion-tree"
26
- @get-nodes="onShowNodes"
27
- @select-node="onSelectNode"
28
- />
29
- </div>
30
- </template>
31
- </common-browse-blocks-title>
32
- </template>
33
- <template #secondBlock>
34
- <common-browse-blocks-title
35
- :width="blocksWidth[1]"
36
- :title="localization.contents"
37
- >
38
- <template #content>
39
- <common-browse-blocks-contents-files
40
- :selected-folder-files="props.files"
41
- :selected-file="props.selectedFile"
42
- @select-file="onSelectFile"
43
- />
44
- </template>
45
- </common-browse-blocks-title>
46
- </template>
47
- <template #thirdBlock>
48
- <common-browse-blocks-title
49
- :width="blocksWidth[2]"
50
- :title="localization.information"
51
- >
52
- <template v-if="info" #content>
53
- <div
54
- v-for="item in info"
55
- :key="item.title"
56
- class="info-container"
57
- >
58
- <common-browse-blocks-info-text
59
- v-if="item.type === 'text'"
60
- :title="item.title"
61
- :value="item.value"
62
- />
63
- <common-browse-blocks-info-size
64
- v-if="item.type === 'size'"
65
- :title="item.title"
66
- :value="item.value"
67
- />
68
- <common-browse-blocks-info-date
69
- v-if="item.type === 'date'"
70
- :title="item.title"
71
- :value="item.value"
72
- />
73
- </div>
74
- </template>
75
- </common-browse-blocks-title>
76
- </template>
77
- </common-browse-blocks-container>
78
- <div v-if="props.fileTypes" class="ptm">
79
- <b>{{ localization.fileType }}:</b>
80
- <select v-model="selectedFileTypeLocal">
81
- <option
82
- v-for="item in props.fileTypes"
83
- :key="item.value"
84
- :value="item.value"
85
- >
86
- {{ item.text }}
87
- </option>
88
- </select>
89
- </div>
90
- </template>
91
- </atoms-modal>
92
- </template>
93
-
94
- <script setup lang="ts">
95
- import { UI_I_Localization } from '~/models/interfaces'
96
- import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
97
- import { UI_T_BlocksWidth } from '~/components/common/browse/blocks/models/types'
98
- import { UI_I_FileInfo } from '~/components/common/browse/models/interfaces'
99
-
100
- const props = defineProps<{
101
- show: boolean
102
- nodes: any[]
103
- files: any[]
104
- info: UI_I_FileInfo[] | null
105
- selectedFile: any | null
106
- fileTypes?: UI_I_OptionItem[]
107
- selectedFileType?: any
108
- }>()
109
- const emits = defineEmits<{
110
- (
111
- event: 'get-nodes',
112
- value: {
113
- node: any | null
114
- cb: () => void
115
- }
116
- ): void
117
- (event: 'select-node', value: any): void
118
- (event: 'update:selected-file', value: any): void
119
- (event: 'update:selected-file-type', value: any): void
120
- }>()
121
-
122
- const localization = computed<UI_I_Localization>(() => useLocal())
123
-
124
- const blocksWidth = ref<UI_T_BlocksWidth>([272, 272, 256])
125
-
126
- const onChangeWidths = (width: number, index: number) => {
127
- blocksWidth.value[index] = width
128
- }
129
- const onSelectFile = (file: any) => {
130
- emits('update:selected-file', file)
131
- }
132
- const onSelectNode = (node: any): void => {
133
- emits('select-node', node)
134
- }
135
- const onShowNodes = (data: { node: any | null; cb: () => void }): void => {
136
- emits('get-nodes', data)
137
- }
138
-
139
- const selectedFileTypeLocal = computed<any>({
140
- get() {
141
- return props.selectedFileType
142
- },
143
- set(newValue) {
144
- emits('update:selected-file-type', newValue)
145
- },
146
- })
147
- </script>
148
-
149
- <style scoped lang="scss">
150
- :deep(.recursion-tree) {
151
- .tree-node-text-drag {
152
- border-radius: 3px 0 0 3px;
153
- }
154
- }
155
-
156
- :deep(.modal-body) {
157
- overflow: hidden;
158
- min-height: 430px;
159
- }
160
-
161
- .info-container {
162
- padding: 3px;
163
- div {
164
- line-height: 17px;
165
- span {
166
- font-size: 13px;
167
- font-weight: 400;
168
- }
169
- }
170
- }
171
-
172
- .ptm {
173
- padding-top: 5px;
174
-
175
- select {
176
- outline: none;
177
- border-color: rgb(118, 118, 118);
178
- color: rgb(133, 133, 133);
179
- margin-left: 5px;
180
- }
181
- }
182
- </style>
1
+ <template>
2
+ <atoms-modal
3
+ test-id="browse"
4
+ width="864px"
5
+ height="586px"
6
+ :show="props.show"
7
+ :title="localization.selectFile"
8
+ :disabled-submit="!props.selectedFile"
9
+ >
10
+ <template #modalBody>
11
+ <common-browse-blocks-container
12
+ type="horizontal"
13
+ :blocks-width="blocksWidth"
14
+ @change-widths="onChangeWidths"
15
+ >
16
+ <template #firstBlock>
17
+ <common-browse-blocks-title
18
+ :width="blocksWidth[0]"
19
+ :title="localization.datastores"
20
+ >
21
+ <template #content>
22
+ <div class="">
23
+ <common-recursion-tree
24
+ :nodes="props.nodes"
25
+ class="recursion-tree"
26
+ @get-nodes="onShowNodes"
27
+ @select-node="onSelectNode"
28
+ />
29
+ </div>
30
+ </template>
31
+ </common-browse-blocks-title>
32
+ </template>
33
+ <template #secondBlock>
34
+ <common-browse-blocks-title
35
+ :width="blocksWidth[1]"
36
+ :title="localization.contents"
37
+ >
38
+ <template #content>
39
+ <common-browse-blocks-contents-files
40
+ :selected-folder-files="props.files"
41
+ :selected-file="props.selectedFile"
42
+ @select-file="onSelectFile"
43
+ />
44
+ </template>
45
+ </common-browse-blocks-title>
46
+ </template>
47
+ <template #thirdBlock>
48
+ <common-browse-blocks-title
49
+ :width="blocksWidth[2]"
50
+ :title="localization.information"
51
+ >
52
+ <template v-if="info" #content>
53
+ <div
54
+ v-for="item in info"
55
+ :key="item.title"
56
+ class="info-container"
57
+ >
58
+ <common-browse-blocks-info-text
59
+ v-if="item.type === 'text'"
60
+ :title="item.title"
61
+ :value="item.value"
62
+ />
63
+ <common-browse-blocks-info-size
64
+ v-if="item.type === 'size'"
65
+ :title="item.title"
66
+ :value="item.value"
67
+ />
68
+ <common-browse-blocks-info-date
69
+ v-if="item.type === 'date'"
70
+ :title="item.title"
71
+ :value="item.value"
72
+ />
73
+ </div>
74
+ </template>
75
+ </common-browse-blocks-title>
76
+ </template>
77
+ </common-browse-blocks-container>
78
+ <div v-if="props.fileTypes" class="ptm">
79
+ <b>{{ localization.fileType }}:</b>
80
+ <select v-model="selectedFileTypeLocal">
81
+ <option
82
+ v-for="item in props.fileTypes"
83
+ :key="item.value"
84
+ :value="item.value"
85
+ >
86
+ {{ item.text }}
87
+ </option>
88
+ </select>
89
+ </div>
90
+ </template>
91
+ </atoms-modal>
92
+ </template>
93
+
94
+ <script setup lang="ts">
95
+ import { UI_I_Localization } from '~/models/interfaces'
96
+ import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
97
+ import { UI_T_BlocksWidth } from '~/components/common/browse/blocks/models/types'
98
+ import { UI_I_FileInfo } from '~/components/common/browse/models/interfaces'
99
+
100
+ const props = defineProps<{
101
+ show: boolean
102
+ nodes: any[]
103
+ files: any[]
104
+ info: UI_I_FileInfo[] | null
105
+ selectedFile: any | null
106
+ fileTypes?: UI_I_OptionItem[]
107
+ selectedFileType?: any
108
+ }>()
109
+ const emits = defineEmits<{
110
+ (
111
+ event: 'get-nodes',
112
+ value: {
113
+ node: any | null
114
+ cb: () => void
115
+ }
116
+ ): void
117
+ (event: 'select-node', value: any): void
118
+ (event: 'update:selected-file', value: any): void
119
+ (event: 'update:selected-file-type', value: any): void
120
+ }>()
121
+
122
+ const localization = computed<UI_I_Localization>(() => useLocal())
123
+
124
+ const blocksWidth = ref<UI_T_BlocksWidth>([272, 272, 256])
125
+
126
+ const onChangeWidths = (width: number, index: number) => {
127
+ blocksWidth.value[index] = width
128
+ }
129
+ const onSelectFile = (file: any) => {
130
+ emits('update:selected-file', file)
131
+ }
132
+ const onSelectNode = (node: any): void => {
133
+ emits('select-node', node)
134
+ }
135
+ const onShowNodes = (data: { node: any | null; cb: () => void }): void => {
136
+ emits('get-nodes', data)
137
+ }
138
+
139
+ const selectedFileTypeLocal = computed<any>({
140
+ get() {
141
+ return props.selectedFileType
142
+ },
143
+ set(newValue) {
144
+ emits('update:selected-file-type', newValue)
145
+ },
146
+ })
147
+ </script>
148
+
149
+ <style scoped lang="scss">
150
+ :deep(.recursion-tree) {
151
+ .tree-node-text-drag {
152
+ border-radius: 3px 0 0 3px;
153
+ }
154
+ }
155
+
156
+ :deep(.modal-body) {
157
+ overflow: hidden;
158
+ min-height: 430px;
159
+ }
160
+
161
+ .info-container {
162
+ padding: 3px;
163
+ div {
164
+ line-height: 17px;
165
+ span {
166
+ font-size: 13px;
167
+ font-weight: 400;
168
+ }
169
+ }
170
+ }
171
+
172
+ .ptm {
173
+ padding-top: 5px;
174
+
175
+ select {
176
+ outline: none;
177
+ border-color: rgb(118, 118, 118);
178
+ color: rgb(133, 133, 133);
179
+ margin-left: 5px;
180
+ }
181
+ }
182
+ </style>
@@ -1,66 +1,66 @@
1
- <template>
2
- <div class="title-block" :style="blockWidth">
3
- <div class="title-block__container" :style="blockWidth">
4
- <div class="title-block__title" :style="blockTitleWidth">
5
- <b>{{ props.title }}</b>
6
- </div>
7
- <div class="title-block__body">
8
- <slot name="content"></slot>
9
- </div>
10
- </div>
11
- </div>
12
- </template>
13
-
14
- <script setup lang="ts">
15
- const props = defineProps<{
16
- title: string
17
- width: number
18
- }>()
19
-
20
- const blockWidth = computed(() => ({ width: `${props.width}px` }))
21
- const blockTitleWidth = computed(() => ({ width: `${props.width - 2}px` }))
22
- </script>
23
-
24
- <style scoped lang="scss">
25
- .title-block {
26
- width: 100%;
27
- min-height: 400px;
28
- position: relative;
29
-
30
- &__container {
31
- position: absolute;
32
- top: 0;
33
- height: 400px;
34
- left: 0;
35
- display: flex;
36
- flex-direction: column;
37
- border-width: 1px;
38
- border-style: solid;
39
- border-color: rgb(204, 204, 204);
40
- border-image: initial;
41
- background: rgb(255, 255, 255);
42
- }
43
- &__title {
44
- background-color: rgb(231, 235, 239);
45
- flex: 0 0 auto;
46
- padding: 8px;
47
- border-bottom: 1px solid rgb(204, 204, 204);
48
- display: inline-block;
49
- white-space: nowrap;
50
- overflow: hidden !important;
51
- text-overflow: ellipsis;
52
-
53
- b {
54
- font-weight: bolder;
55
- font-size: 13px;
56
- letter-spacing: normal;
57
- font-family: Metropolis, Avenir Next, Helvetica Neue, Arial, sans-serif;
58
- color: #666;
59
- }
60
- }
61
- &__body {
62
- flex: 1 1 auto;
63
- overflow-y: auto;
64
- }
65
- }
66
- </style>
1
+ <template>
2
+ <div class="title-block" :style="blockWidth">
3
+ <div class="title-block__container" :style="blockWidth">
4
+ <div class="title-block__title" :style="blockTitleWidth">
5
+ <b>{{ props.title }}</b>
6
+ </div>
7
+ <div class="title-block__body">
8
+ <slot name="content"></slot>
9
+ </div>
10
+ </div>
11
+ </div>
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ const props = defineProps<{
16
+ title: string
17
+ width: number
18
+ }>()
19
+
20
+ const blockWidth = computed(() => ({ width: `${props.width}px` }))
21
+ const blockTitleWidth = computed(() => ({ width: `${props.width - 2}px` }))
22
+ </script>
23
+
24
+ <style scoped lang="scss">
25
+ .title-block {
26
+ width: 100%;
27
+ min-height: 400px;
28
+ position: relative;
29
+
30
+ &__container {
31
+ position: absolute;
32
+ top: 0;
33
+ height: 400px;
34
+ left: 0;
35
+ display: flex;
36
+ flex-direction: column;
37
+ border-width: 1px;
38
+ border-style: solid;
39
+ border-color: rgb(204, 204, 204);
40
+ border-image: initial;
41
+ background: rgb(255, 255, 255);
42
+ }
43
+ &__title {
44
+ background-color: rgb(231, 235, 239);
45
+ flex: 0 0 auto;
46
+ padding: 8px;
47
+ border-bottom: 1px solid rgb(204, 204, 204);
48
+ display: inline-block;
49
+ white-space: nowrap;
50
+ overflow: hidden !important;
51
+ text-overflow: ellipsis;
52
+
53
+ b {
54
+ font-weight: bolder;
55
+ font-size: 13px;
56
+ letter-spacing: normal;
57
+ font-family: Metropolis, Avenir Next, Helvetica Neue, Arial, sans-serif;
58
+ color: #666;
59
+ }
60
+ }
61
+ &__body {
62
+ flex: 1 1 auto;
63
+ overflow-y: auto;
64
+ }
65
+ }
66
+ </style>