bfg-common 1.2.60 → 1.2.61

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 (78) 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/DataGrid.vue +1471 -1482
  13. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
  14. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  15. package/components/atoms/tabs/Tabs.vue +189 -189
  16. package/components/atoms/tooltip/Signpost.vue +224 -224
  17. package/components/common/BadBrowser.vue +114 -114
  18. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  19. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  20. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  21. package/components/common/browse/Browse.vue +182 -182
  22. package/components/common/browse/blocks/Title.vue +66 -66
  23. package/components/common/diagramMain/Diagram.vue +186 -186
  24. package/components/common/diagramMain/DiagramMain.vue +986 -986
  25. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  26. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  27. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  28. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  29. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  30. package/components/common/diagramMain/network/Contents.vue +238 -238
  31. package/components/common/feedback/Buttons.vue +232 -232
  32. package/components/common/feedback/Feedback.vue +260 -260
  33. package/components/common/feedback/Message.vue +480 -479
  34. package/components/common/feedback/VisitPortal.vue +54 -54
  35. package/components/common/help/navbar/left/Left.vue +159 -159
  36. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  37. package/components/common/modals/Rename.vue +165 -165
  38. package/components/common/perPage/PerPage.vue +51 -51
  39. package/components/common/recursionTree/RecursionTree.vue +201 -201
  40. package/components/common/vm/actions/clone/Clone.vue +545 -545
  41. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  42. package/components/common/vm/actions/clone/utils.ts +43 -43
  43. package/components/common/vm/actions/common/config/capabilities.ts +338 -338
  44. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +678 -678
  45. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  46. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
  47. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  48. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  49. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  51. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  52. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
  55. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  56. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
  57. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  58. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  59. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  60. package/components/common/vm/actions/common/select/storage/Storage.vue +194 -194
  61. package/components/common/vm/actions/common/select/storage/config/config.ts +154 -154
  62. package/components/common/wizards/datastore/add/nfs/Nfs.vue +94 -94
  63. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +377 -377
  64. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  65. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  66. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  67. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  68. package/composables/useLocal.ts +38 -38
  69. package/minify.js +146 -146
  70. package/models/store/interfaces.ts +37 -37
  71. package/models/store/storage/interfaces.ts +32 -32
  72. package/models/store/types.ts +32 -32
  73. package/modules/fixContentBuild/utils/methods.ts +114 -114
  74. package/package.json +1 -1
  75. package/public/spice-console/application/codec.js +257 -257
  76. package/public/spice-console/lib/rasterEngine.js +907 -907
  77. package/public/spice-console/network/spicechannel.js +369 -369
  78. package/utils/contentBuild.ts +34 -34
@@ -1,260 +1,260 @@
1
- <template>
2
- <div v-if="props.show" id="feedbackId" class="modal">
3
- <div
4
- id="feedback-modal-dialog-Id"
5
- :class="['modal-dialog', { imageDrawn: isFeedbackImageDrawn }]"
6
- :style="{
7
- width: computeWidth,
8
- height: computeHeight,
9
- }"
10
- >
11
- <div class="modal-content">
12
- <div class="modal-header">
13
- <div class="flex-align-center">
14
- <h3 class="modal-title">
15
- {{ props.title }}
16
- </h3>
17
- </div>
18
- <button
19
- v-if="!props.isHideCloseIcon"
20
- id="feedback-modal-close-icon"
21
- class="close"
22
- @click="hide"
23
- >
24
- <atoms-the-icon class="close-icon" name="close" />
25
- </button>
26
- </div>
27
-
28
- <common-feedback-buttons v-model:select="type" :items="tabsItems" />
29
- <div class="modal-body">
30
- <common-feedback-message
31
- v-show="type !== 2"
32
- v-model:description="description"
33
- v-model:email="email"
34
- :selected-tab="type"
35
- @screen-shot="onScreenShot"
36
- />
37
- <common-feedback-visit-portal v-show="type === 2" />
38
- </div>
39
- <div
40
- :class="{
41
- 'modal-footer': type !== 2,
42
- 'modal-no-footer': type === 2,
43
- }"
44
- >
45
- <button
46
- id="feedback-modal-cancel-button"
47
- class="btn btn-outline"
48
- @click="hide"
49
- >
50
- {{ localization.cancel }}
51
- </button>
52
- <button
53
- class="btn btn-outline"
54
- :class="props.loading && 'modal-dialog__loader'"
55
- :disabled="!description"
56
- @click="submit"
57
- >
58
- <atoms-loader-pre-loader
59
- v-if="props.loading"
60
- id="loader"
61
- class="absolute-center button__loading"
62
- :show="props.loading"
63
- />
64
- <span v-else>
65
- {{ localization.send }}
66
- </span>
67
- </button>
68
- </div>
69
- </div>
70
- </div>
71
- <div class="modal-backdrop" />
72
- </div>
73
- </template>
74
-
75
- <script setup lang="ts">
76
- import { UI_I_Localization } from '~/models/interfaces'
77
- import {
78
- UI_I_FeedbackButtonsItem,
79
- UI_I_FeedbackForm,
80
- UI_I_MessageImg,
81
- } from '~/components/common/feedback/models/interfaces'
82
- import { UI_T_FeedbackType } from '~/components/common/feedback/models/types'
83
- import { feedbackTabs } from '~/components/common/feedback/config/feedbackTabs'
84
-
85
- const props = defineProps<{
86
- show: boolean
87
- title: string
88
- width?: string
89
- height?: string
90
- submitText?: string
91
- loading?: boolean
92
- isHideCloseIcon?: boolean
93
- }>()
94
- const emits = defineEmits<{
95
- (event: 'submit', value: UI_I_FeedbackForm): void
96
- (event: 'hide'): void
97
- }>()
98
-
99
- const localization = computed<UI_I_Localization>(() => useLocal())
100
-
101
- const tabsItems = computed<UI_I_FeedbackButtonsItem[]>(() =>
102
- feedbackTabs(localization.value)
103
- )
104
- const reset = (): void => {
105
- email.value = ''
106
- description.value = ''
107
- type.value = undefined
108
- }
109
- const hide = (): void => {
110
- emits('hide')
111
-
112
- reset()
113
- }
114
-
115
- const submit = (): void => {
116
- if (type.value !== 0 && type.value !== 1) return
117
-
118
- const canvas = document.getElementById('feedbackImg') as HTMLCanvasElement
119
-
120
- const image = canvas?.toDataURL().match(/base64,(.+)/)?.[1] || ''
121
- emits('submit', {
122
- image,
123
- type: type.value,
124
- description: description.value,
125
- email: email.value,
126
- })
127
-
128
- reset()
129
- }
130
- const computeWidth = computed<string | undefined>(() =>
131
- isFeedbackImageDrawn.value && type.value !== 2
132
- ? feedbackImageDrawnWidth.value
133
- : props.width
134
- )
135
- const computeHeight = computed<string>(() =>
136
- !isFeedbackImageDrawn.value && type.value !== 2
137
- ? ''
138
- : type.value !== 2
139
- ? '100%'
140
- : '420px'
141
- )
142
- const isFeedbackImageDrawn = ref<boolean>(false)
143
- const feedbackImageDrawnWidth = ref<string>('')
144
- const type = ref<UI_T_FeedbackType>(undefined)
145
- const description = ref<string>('')
146
- const email = ref<string>('')
147
-
148
- const onScreenShot = (value: UI_I_MessageImg): void => {
149
- isFeedbackImageDrawn.value = value.hasTakeScreenshot
150
- feedbackImageDrawnWidth.value = value.width
151
- }
152
- </script>
153
-
154
- <style scoped lang="scss">
155
- .modal {
156
- position: fixed;
157
- top: 0;
158
- bottom: 0;
159
- right: 0;
160
- left: 0;
161
- z-index: 1050;
162
- display: flex;
163
- flex-direction: column;
164
- justify-content: center;
165
- align-items: center;
166
- padding: 48px;
167
- overflow-y: auto;
168
- overflow-x: auto;
169
-
170
- .modal-dialog {
171
- .modal-content {
172
- position: relative;
173
- display: flex;
174
- flex-direction: column;
175
- background-color: var(--modal-bg-color);
176
- box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
177
- border: 1px solid rgba(0, 0, 0, 0.2);
178
- border-radius: 3px;
179
- background-clip: padding-box;
180
- padding: 24px;
181
- height: 100%;
182
- -webkit-animation-name: animateTop;
183
- -webkit-animation-duration: 0.4s;
184
- animation-name: animateTop;
185
- animation-duration: 0.4s;
186
- overflow-x: auto;
187
-
188
- .modal-header {
189
- display: flex;
190
- justify-content: space-between;
191
- align-items: flex-start;
192
-
193
- .modal-title {
194
- color: var(--main-color-mode);
195
- }
196
-
197
- .close-icon {
198
- fill: var(--close-icon);
199
- width: 24px;
200
- height: 24px;
201
- }
202
- }
203
- .modal-info {
204
- display: flex;
205
- flex-direction: row;
206
- align-items: center;
207
- margin-bottom: 20px;
208
-
209
- :deep(.icon-info-standart) {
210
- width: 20px !important;
211
- min-width: 20px !important;
212
- height: 20px;
213
- min-height: 20px;
214
- }
215
- .info-icon {
216
- height: 24px;
217
- }
218
- .info-text {
219
- margin-left: 5px;
220
- }
221
- }
222
- .modal-footer {
223
- align-items: flex-end;
224
- margin-top: auto;
225
- .btn:last-child {
226
- margin-left: 5px;
227
- }
228
- }
229
- .modal-no-footer {
230
- opacity: 0;
231
- width: 200px;
232
- height: 60px;
233
- }
234
- }
235
- &__loader {
236
- position: relative;
237
- pointer-events: none;
238
- }
239
- }
240
-
241
- .modal-backdrop {
242
- opacity: 1;
243
- background-color: rgba(0, 0, 0, 0.6);
244
- }
245
- .button {
246
- &__loading {
247
- display: flex;
248
- :deep(.spinner) {
249
- width: 25px;
250
- height: 25px;
251
- min-width: 25px;
252
- min-height: 25px;
253
- }
254
- }
255
- }
256
- }
257
- .imageDrawn {
258
- width: auto;
259
- }
260
- </style>
1
+ <template>
2
+ <div v-if="props.show" id="feedbackId" class="modal">
3
+ <div
4
+ id="feedback-modal-dialog-Id"
5
+ :class="['modal-dialog', { imageDrawn: isFeedbackImageDrawn }]"
6
+ :style="{
7
+ width: computeWidth,
8
+ height: computeHeight,
9
+ }"
10
+ >
11
+ <div class="modal-content">
12
+ <div class="modal-header">
13
+ <div class="flex-align-center">
14
+ <h3 class="modal-title">
15
+ {{ props.title }}
16
+ </h3>
17
+ </div>
18
+ <button
19
+ v-if="!props.isHideCloseIcon"
20
+ id="feedback-modal-close-icon"
21
+ class="close"
22
+ @click="hide"
23
+ >
24
+ <atoms-the-icon class="close-icon" name="close" />
25
+ </button>
26
+ </div>
27
+
28
+ <common-feedback-buttons v-model:select="type" :items="tabsItems" />
29
+ <div class="modal-body">
30
+ <common-feedback-message
31
+ v-show="type !== 2"
32
+ v-model:description="description"
33
+ v-model:email="email"
34
+ :selected-tab="type"
35
+ @screen-shot="onScreenShot"
36
+ />
37
+ <common-feedback-visit-portal v-show="type === 2" />
38
+ </div>
39
+ <div
40
+ :class="{
41
+ 'modal-footer': type !== 2,
42
+ 'modal-no-footer': type === 2,
43
+ }"
44
+ >
45
+ <button
46
+ id="feedback-modal-cancel-button"
47
+ class="btn btn-outline"
48
+ @click="hide"
49
+ >
50
+ {{ localization.cancel }}
51
+ </button>
52
+ <button
53
+ class="btn btn-outline"
54
+ :class="props.loading && 'modal-dialog__loader'"
55
+ :disabled="!description"
56
+ @click="submit"
57
+ >
58
+ <atoms-loader-pre-loader
59
+ v-if="props.loading"
60
+ id="loader"
61
+ class="absolute-center button__loading"
62
+ :show="props.loading"
63
+ />
64
+ <span v-else>
65
+ {{ localization.send }}
66
+ </span>
67
+ </button>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div class="modal-backdrop" />
72
+ </div>
73
+ </template>
74
+
75
+ <script setup lang="ts">
76
+ import { UI_I_Localization } from '~/models/interfaces'
77
+ import {
78
+ UI_I_FeedbackButtonsItem,
79
+ UI_I_FeedbackForm,
80
+ UI_I_MessageImg,
81
+ } from '~/components/common/feedback/models/interfaces'
82
+ import { UI_T_FeedbackType } from '~/components/common/feedback/models/types'
83
+ import { feedbackTabs } from '~/components/common/feedback/config/feedbackTabs'
84
+
85
+ const props = defineProps<{
86
+ show: boolean
87
+ title: string
88
+ width?: string
89
+ height?: string
90
+ submitText?: string
91
+ loading?: boolean
92
+ isHideCloseIcon?: boolean
93
+ }>()
94
+ const emits = defineEmits<{
95
+ (event: 'submit', value: UI_I_FeedbackForm): void
96
+ (event: 'hide'): void
97
+ }>()
98
+
99
+ const localization = computed<UI_I_Localization>(() => useLocal())
100
+
101
+ const tabsItems = computed<UI_I_FeedbackButtonsItem[]>(() =>
102
+ feedbackTabs(localization.value)
103
+ )
104
+ const reset = (): void => {
105
+ email.value = ''
106
+ description.value = ''
107
+ type.value = undefined
108
+ }
109
+ const hide = (): void => {
110
+ emits('hide')
111
+
112
+ reset()
113
+ }
114
+
115
+ const submit = (): void => {
116
+ if (type.value !== 0 && type.value !== 1) return
117
+
118
+ const canvas = document.getElementById('feedbackImg') as HTMLCanvasElement
119
+
120
+ const image = canvas?.toDataURL().match(/base64,(.+)/)?.[1] || ''
121
+ emits('submit', {
122
+ image,
123
+ type: type.value,
124
+ description: description.value,
125
+ email: email.value,
126
+ })
127
+
128
+ reset()
129
+ }
130
+ const computeWidth = computed<string | undefined>(() =>
131
+ isFeedbackImageDrawn.value && type.value !== 2
132
+ ? feedbackImageDrawnWidth.value
133
+ : props.width
134
+ )
135
+ const computeHeight = computed<string>(() =>
136
+ !isFeedbackImageDrawn.value && type.value !== 2
137
+ ? ''
138
+ : type.value !== 2
139
+ ? '100%'
140
+ : '420px'
141
+ )
142
+ const isFeedbackImageDrawn = ref<boolean>(false)
143
+ const feedbackImageDrawnWidth = ref<string>('')
144
+ const type = ref<UI_T_FeedbackType>(undefined)
145
+ const description = ref<string>('')
146
+ const email = ref<string>('')
147
+
148
+ const onScreenShot = (value: UI_I_MessageImg): void => {
149
+ isFeedbackImageDrawn.value = value.hasTakeScreenshot
150
+ feedbackImageDrawnWidth.value = value.width
151
+ }
152
+ </script>
153
+
154
+ <style scoped lang="scss">
155
+ .modal {
156
+ position: fixed;
157
+ top: 0;
158
+ bottom: 0;
159
+ right: 0;
160
+ left: 0;
161
+ z-index: 1050;
162
+ display: flex;
163
+ flex-direction: column;
164
+ justify-content: center;
165
+ align-items: center;
166
+ padding: 48px;
167
+ overflow-y: auto;
168
+ overflow-x: auto;
169
+
170
+ .modal-dialog {
171
+ .modal-content {
172
+ position: relative;
173
+ display: flex;
174
+ flex-direction: column;
175
+ background-color: var(--modal-bg-color);
176
+ box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
177
+ border: 1px solid rgba(0, 0, 0, 0.2);
178
+ border-radius: 3px;
179
+ background-clip: padding-box;
180
+ padding: 24px;
181
+ height: 100%;
182
+ -webkit-animation-name: animateTop;
183
+ -webkit-animation-duration: 0.4s;
184
+ animation-name: animateTop;
185
+ animation-duration: 0.4s;
186
+ overflow-x: auto;
187
+
188
+ .modal-header {
189
+ display: flex;
190
+ justify-content: space-between;
191
+ align-items: flex-start;
192
+
193
+ .modal-title {
194
+ color: var(--main-color-mode);
195
+ }
196
+
197
+ .close-icon {
198
+ fill: var(--close-icon);
199
+ width: 24px;
200
+ height: 24px;
201
+ }
202
+ }
203
+ .modal-info {
204
+ display: flex;
205
+ flex-direction: row;
206
+ align-items: center;
207
+ margin-bottom: 20px;
208
+
209
+ :deep(.icon-info-standart) {
210
+ width: 20px !important;
211
+ min-width: 20px !important;
212
+ height: 20px;
213
+ min-height: 20px;
214
+ }
215
+ .info-icon {
216
+ height: 24px;
217
+ }
218
+ .info-text {
219
+ margin-left: 5px;
220
+ }
221
+ }
222
+ .modal-footer {
223
+ align-items: flex-end;
224
+ margin-top: auto;
225
+ .btn:last-child {
226
+ margin-left: 5px;
227
+ }
228
+ }
229
+ .modal-no-footer {
230
+ opacity: 0;
231
+ width: 200px;
232
+ height: 60px;
233
+ }
234
+ }
235
+ &__loader {
236
+ position: relative;
237
+ pointer-events: none;
238
+ }
239
+ }
240
+
241
+ .modal-backdrop {
242
+ opacity: 1;
243
+ background-color: rgba(0, 0, 0, 0.6);
244
+ }
245
+ .button {
246
+ &__loading {
247
+ display: flex;
248
+ :deep(.spinner) {
249
+ width: 25px;
250
+ height: 25px;
251
+ min-width: 25px;
252
+ min-height: 25px;
253
+ }
254
+ }
255
+ }
256
+ }
257
+ .imageDrawn {
258
+ width: auto;
259
+ }
260
+ </style>