bfg-common 1.3.231 → 1.3.233

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 (75) hide show
  1. package/components/atoms/alert/Alert.vue +96 -95
  2. package/components/atoms/alert/Notification.vue +171 -170
  3. package/components/atoms/autocomplete/Autocomplete.vue +3 -0
  4. package/components/atoms/collapse/CollapseNav.vue +1 -1
  5. package/components/atoms/collapse/CollapseNavItem.vue +17 -13
  6. package/components/atoms/combobox/Combobox.vue +5 -0
  7. package/components/atoms/datepicker/Datepicker.vue +19 -1
  8. package/components/atoms/datepicker/lib/models/interfaces.ts +1 -0
  9. package/components/atoms/dropdown/Portlet.vue +10 -7
  10. package/components/atoms/dropdown/dropdown/Dropdown.vue +10 -2
  11. package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +1 -0
  12. package/components/atoms/dropdown/tree/Tree.vue +2 -0
  13. package/components/atoms/dropdown/tree/lib/models/interfaces.ts +1 -0
  14. package/components/atoms/lib/models/interfaces.ts +2 -0
  15. package/components/atoms/list/SelectList.vue +1 -0
  16. package/components/atoms/modal/Modal.vue +3 -0
  17. package/components/atoms/modal/bySteps/BySteps.vue +56 -51
  18. package/components/atoms/modal/byStepsSecond/ByStepsSecond.vue +10 -1
  19. package/components/atoms/nav/VerticalNavBar.vue +1 -0
  20. package/components/atoms/nav/lib/models/interfaces.ts +1 -0
  21. package/components/atoms/notificationBar/NotificationBar.vue +9 -1
  22. package/components/atoms/perPage/PerPage.vue +1 -0
  23. package/components/atoms/popover/Popover.vue +5 -1
  24. package/components/atoms/popup/SimplePopup.vue +1 -0
  25. package/components/atoms/select/TheSelect.vue +2 -0
  26. package/components/atoms/select/lib/models/interfaces.ts +1 -0
  27. package/components/atoms/stack/StackBlock.vue +3 -0
  28. package/components/atoms/step/VerticalStep.vue +1 -0
  29. package/components/atoms/switch/Switch.vue +111 -111
  30. package/components/atoms/table/compact/Compact.vue +526 -526
  31. package/components/atoms/table/dataGrid/DataGrid.vue +13 -1
  32. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +10 -2
  33. package/components/atoms/table/dataGrid/DataGridPage.vue +5 -0
  34. package/components/atoms/table/dataGrid/lib/models/interfaces.ts +2 -0
  35. package/components/atoms/table/simpleInfo/SimpleInfo.vue +7 -2
  36. package/components/atoms/table/simpleInfo/lib/models/interfaces.ts +1 -0
  37. package/components/atoms/table/simpleTable/SimpleTable.vue +5 -1
  38. package/components/atoms/table/simpleTable/lib/models/interfaces.ts +2 -0
  39. package/components/atoms/tabs/VerticalTabs.vue +1 -0
  40. package/components/atoms/tabs/lib/models/interfaces.ts +3 -2
  41. package/components/atoms/tooltip/Signpost.vue +226 -225
  42. package/components/atoms/wizard/Wizard.vue +5 -0
  43. package/components/atoms/wizard/step/Step.vue +1 -0
  44. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +4 -1
  45. package/components/common/mainNavigationPanel/lib/models/interfaces.ts +1 -0
  46. package/components/common/pages/Tasks.vue +120 -120
  47. package/components/common/recursionTree/RecursionTree.vue +203 -203
  48. package/components/common/tools/Actions.vue +2 -1
  49. package/components/common/tools/lib/models/interfaces.ts +1 -0
  50. package/components/common/vm/actions/add/Add.vue +575 -575
  51. package/components/common/vm/actions/clone/Clone.vue +518 -518
  52. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +269 -269
  53. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +693 -693
  54. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
  55. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +59 -59
  56. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +294 -294
  57. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
  58. package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
  59. package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
  60. package/components/common/weekSelect/WeekSelect.vue +112 -112
  61. package/components/common/weekSelect/lib/config/options.ts +10 -10
  62. package/composables/useAppVersion.ts +21 -21
  63. package/composables/useEnvLanguage.ts +20 -20
  64. package/lib/utils/sendTask.ts +72 -72
  65. package/minify.js +146 -146
  66. package/package.json +1 -1
  67. package/public/spice-console/application/codec.js +257 -257
  68. package/public/spice-console/lib/rasterEngine.js +907 -907
  69. package/public/spice-console/network/spicechannel.js +369 -369
  70. package/store/main/lib/interfaces.ts +9 -9
  71. package/store/tasks/actions.ts +133 -133
  72. package/store/tasks/getters.ts +25 -25
  73. package/store/tasks/lib/models/interfaces.ts +18 -18
  74. package/store/tasks/mutations.ts +58 -58
  75. package/store/tasks/state.ts +16 -16
@@ -1,225 +1,226 @@
1
- <template>
2
- <div
3
- id="signpost"
4
- :class="['signpost', signpostClass]"
5
- :style="signpostStyles"
6
- @click.stop
7
- @mouseenter="hovered = true"
8
- @mouseleave="hovered = false"
9
- >
10
- <div class="signpost-wrap">
11
- <div class="popover-pointer" />
12
- <div class="signpost-content-header">
13
- <button
14
- :id="`${props.testId}-close-icon`"
15
- class="signpost-action close"
16
- @click="hide"
17
- >
18
- <atoms-the-icon class="close-icon" name="close" />
19
- </button>
20
- </div>
21
- <div class="signpost-content-body">
22
- <slot />
23
- </div>
24
- </div>
25
- </div>
26
- </template>
27
-
28
- <script setup lang="ts">
29
- import { UI_I_ElPosition } from '~/components/atoms/tooltip/lib/models/interfaces'
30
- const props = withDefaults(
31
- defineProps<{
32
- elemId: string
33
- testId?: string
34
- }>(),
35
- { testId: 'ui-signpost' }
36
- )
37
- const emits = defineEmits<{
38
- (event: 'hide'): void
39
- }>()
40
- const hide = (): void => {
41
- emits('hide')
42
- }
43
-
44
- const signpostStyles = ref<UI_I_ElPosition | null>(null)
45
- watch(
46
- () => props.elemId,
47
- (newValue: string) => {
48
- const element =
49
- (document.getElementById(newValue) as HTMLDivElement) || null
50
- const { width, x, y } = element.getBoundingClientRect()
51
-
52
- signpostStyles.value = {
53
- top: `${y}px`,
54
- left: `${x + width / 2}px`,
55
- }
56
- setTimeout(() => {
57
- setSignpostPosition()
58
- }, 0)
59
- },
60
- { immediate: true }
61
- )
62
- const signpostClass = ref<string[]>([])
63
- const setSignpostPosition = (): void => {
64
- const signpost =
65
- (document.getElementById('signpost') as HTMLDivElement) || null
66
- const signpostRect = (signpost?.getBoundingClientRect() as DOMRect) || null
67
-
68
- type PositionX = 'right' | 'left'
69
- let positionX: PositionX = 'right'
70
-
71
- type PositionY = 'top' | 'middle'
72
- let positionY: PositionY = 'middle'
73
-
74
- const isOutRight = signpostRect.left + signpostRect.width > window.innerWidth
75
- const isOutTop = signpostRect.top < 0
76
-
77
- if (isOutTop) {
78
- positionY = 'top'
79
- }
80
- if (isOutRight) {
81
- positionX = 'left'
82
- }
83
-
84
- signpostClass.value.push(positionY)
85
- signpostClass.value.push(positionX)
86
- signpostClass.value.push('show')
87
- }
88
-
89
- const hovered = ref<boolean>(false)
90
- const windowClick = (): void => {
91
- hide()
92
- }
93
- const windowScroll = (): void => {
94
- if (hovered.value) {
95
- return
96
- }
97
- hide()
98
- }
99
- onMounted(() => {
100
- setTimeout(() => {
101
- window.addEventListener('click', windowClick)
102
- window.addEventListener('scroll', windowScroll, true)
103
- })
104
- })
105
- onUnmounted(() => {
106
- window.removeEventListener('click', windowClick)
107
- window.removeEventListener('scroll', windowScroll, true)
108
- })
109
- </script>
110
-
111
- <style scoped lang="scss">
112
- .signpost {
113
- opacity: 0;
114
- position: fixed;
115
- cursor: default;
116
- transform: translateY(calc(-50% + 14px)) translateX(20px);
117
- z-index: 1000000000;
118
-
119
- &.show {
120
- opacity: 1;
121
- }
122
- &.left {
123
- transform: translateY(calc(-50% + 14px)) translateX(calc(-100% - 20px));
124
-
125
- .signpost-wrap {
126
- .popover-pointer {
127
- left: 100%;
128
- border-right: unset;
129
- border-left: 12px solid var(--signpost-border-color);
130
-
131
- &::before {
132
- border-right: unset;
133
- border-left: 12px solid var(--signpost-bgcolor);
134
- left: unset;
135
- right: 2px;
136
- }
137
- }
138
- }
139
- }
140
- &.top {
141
- transform: translateY(calc(0% + 10px)) translateX(20px);
142
-
143
- &.left {
144
- transform: translateY(calc(0% + 10px)) translateX(calc(-100% - 20px));
145
-
146
- .popover-pointer {
147
- top: 5px;
148
- }
149
- }
150
-
151
- .signpost-wrap {
152
- .popover-pointer {
153
- top: 5px;
154
- }
155
- }
156
- }
157
-
158
- .signpost-wrap {
159
- border-radius: 3px;
160
- border: 1px solid var(--signpost-border-color);
161
- background-color: var(--signpost-bgcolor);
162
- position: relative;
163
-
164
- .popover-pointer {
165
- border-bottom: 12px solid transparent;
166
- top: 50%;
167
- transform: translateY(-50%);
168
- border-right: 12px solid var(--signpost-border-color);
169
- left: -12px;
170
- height: 0;
171
- width: 0;
172
- position: absolute;
173
-
174
- &::before {
175
- border-bottom: 12px solid transparent;
176
- top: 1px;
177
- border-right: 12px solid var(--signpost-bgcolor);
178
- left: 2px;
179
- content: '';
180
- height: 0;
181
- width: 0;
182
- position: absolute;
183
- }
184
- }
185
-
186
- .signpost-content-header {
187
- display: flex;
188
- justify-content: flex-end;
189
- position: absolute;
190
- width: 100%;
191
- background-color: inherit;
192
- top: 0;
193
-
194
- button {
195
- line-height: 24px;
196
-
197
- .close-icon {
198
- width: 16px;
199
- height: 16px;
200
- }
201
- }
202
- }
203
-
204
- .signpost-content-body {
205
- padding: 24px;
206
- max-height: 480px;
207
- overflow-y: auto;
208
- text-transform: none;
209
- }
210
- }
211
- }
212
- </style>
213
-
214
- <style>
215
- :root {
216
- --signpost-bgcolor: #fff;
217
- --signpost-border-color: #b3b3b3;
218
- --signpost-color: #acbac3;
219
- }
220
- :root.dark-theme {
221
- --signpost-bgcolor: #21333b;
222
- --signpost-border-color: #000;
223
- --signpost-color: #acbac3;
224
- }
225
- </style>
1
+ <template>
2
+ <div
3
+ id="signpost"
4
+ :class="['signpost', signpostClass]"
5
+ :style="signpostStyles"
6
+ @click.stop
7
+ @mouseenter="hovered = true"
8
+ @mouseleave="hovered = false"
9
+ >
10
+ <div class="signpost-wrap">
11
+ <div class="popover-pointer" />
12
+ <div class="signpost-content-header">
13
+ <button
14
+ :id="`${props.testId}-close-icon`"
15
+ :data-id="`${props.testId}-close-icon`"
16
+ class="signpost-action close"
17
+ @click="hide"
18
+ >
19
+ <atoms-the-icon class="close-icon" name="close" />
20
+ </button>
21
+ </div>
22
+ <div class="signpost-content-body">
23
+ <slot />
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script setup lang="ts">
30
+ import { UI_I_ElPosition } from '~/components/atoms/tooltip/lib/models/interfaces'
31
+ const props = withDefaults(
32
+ defineProps<{
33
+ elemId: string
34
+ testId?: string
35
+ }>(),
36
+ { testId: 'ui-signpost' }
37
+ )
38
+ const emits = defineEmits<{
39
+ (event: 'hide'): void
40
+ }>()
41
+ const hide = (): void => {
42
+ emits('hide')
43
+ }
44
+
45
+ const signpostStyles = ref<UI_I_ElPosition | null>(null)
46
+ watch(
47
+ () => props.elemId,
48
+ (newValue: string) => {
49
+ const element =
50
+ (document.getElementById(newValue) as HTMLDivElement) || null
51
+ const { width, x, y } = element.getBoundingClientRect()
52
+
53
+ signpostStyles.value = {
54
+ top: `${y}px`,
55
+ left: `${x + width / 2}px`,
56
+ }
57
+ setTimeout(() => {
58
+ setSignpostPosition()
59
+ }, 0)
60
+ },
61
+ { immediate: true }
62
+ )
63
+ const signpostClass = ref<string[]>([])
64
+ const setSignpostPosition = (): void => {
65
+ const signpost =
66
+ (document.getElementById('signpost') as HTMLDivElement) || null
67
+ const signpostRect = (signpost?.getBoundingClientRect() as DOMRect) || null
68
+
69
+ type PositionX = 'right' | 'left'
70
+ let positionX: PositionX = 'right'
71
+
72
+ type PositionY = 'top' | 'middle'
73
+ let positionY: PositionY = 'middle'
74
+
75
+ const isOutRight = signpostRect.left + signpostRect.width > window.innerWidth
76
+ const isOutTop = signpostRect.top < 0
77
+
78
+ if (isOutTop) {
79
+ positionY = 'top'
80
+ }
81
+ if (isOutRight) {
82
+ positionX = 'left'
83
+ }
84
+
85
+ signpostClass.value.push(positionY)
86
+ signpostClass.value.push(positionX)
87
+ signpostClass.value.push('show')
88
+ }
89
+
90
+ const hovered = ref<boolean>(false)
91
+ const windowClick = (): void => {
92
+ hide()
93
+ }
94
+ const windowScroll = (): void => {
95
+ if (hovered.value) {
96
+ return
97
+ }
98
+ hide()
99
+ }
100
+ onMounted(() => {
101
+ setTimeout(() => {
102
+ window.addEventListener('click', windowClick)
103
+ window.addEventListener('scroll', windowScroll, true)
104
+ })
105
+ })
106
+ onUnmounted(() => {
107
+ window.removeEventListener('click', windowClick)
108
+ window.removeEventListener('scroll', windowScroll, true)
109
+ })
110
+ </script>
111
+
112
+ <style scoped lang="scss">
113
+ .signpost {
114
+ opacity: 0;
115
+ position: fixed;
116
+ cursor: default;
117
+ transform: translateY(calc(-50% + 14px)) translateX(20px);
118
+ z-index: 1000000000;
119
+
120
+ &.show {
121
+ opacity: 1;
122
+ }
123
+ &.left {
124
+ transform: translateY(calc(-50% + 14px)) translateX(calc(-100% - 20px));
125
+
126
+ .signpost-wrap {
127
+ .popover-pointer {
128
+ left: 100%;
129
+ border-right: unset;
130
+ border-left: 12px solid var(--signpost-border-color);
131
+
132
+ &::before {
133
+ border-right: unset;
134
+ border-left: 12px solid var(--signpost-bgcolor);
135
+ left: unset;
136
+ right: 2px;
137
+ }
138
+ }
139
+ }
140
+ }
141
+ &.top {
142
+ transform: translateY(calc(0% + 10px)) translateX(20px);
143
+
144
+ &.left {
145
+ transform: translateY(calc(0% + 10px)) translateX(calc(-100% - 20px));
146
+
147
+ .popover-pointer {
148
+ top: 5px;
149
+ }
150
+ }
151
+
152
+ .signpost-wrap {
153
+ .popover-pointer {
154
+ top: 5px;
155
+ }
156
+ }
157
+ }
158
+
159
+ .signpost-wrap {
160
+ border-radius: 3px;
161
+ border: 1px solid var(--signpost-border-color);
162
+ background-color: var(--signpost-bgcolor);
163
+ position: relative;
164
+
165
+ .popover-pointer {
166
+ border-bottom: 12px solid transparent;
167
+ top: 50%;
168
+ transform: translateY(-50%);
169
+ border-right: 12px solid var(--signpost-border-color);
170
+ left: -12px;
171
+ height: 0;
172
+ width: 0;
173
+ position: absolute;
174
+
175
+ &::before {
176
+ border-bottom: 12px solid transparent;
177
+ top: 1px;
178
+ border-right: 12px solid var(--signpost-bgcolor);
179
+ left: 2px;
180
+ content: '';
181
+ height: 0;
182
+ width: 0;
183
+ position: absolute;
184
+ }
185
+ }
186
+
187
+ .signpost-content-header {
188
+ display: flex;
189
+ justify-content: flex-end;
190
+ position: absolute;
191
+ width: 100%;
192
+ background-color: inherit;
193
+ top: 0;
194
+
195
+ button {
196
+ line-height: 24px;
197
+
198
+ .close-icon {
199
+ width: 16px;
200
+ height: 16px;
201
+ }
202
+ }
203
+ }
204
+
205
+ .signpost-content-body {
206
+ padding: 24px;
207
+ max-height: 480px;
208
+ overflow-y: auto;
209
+ text-transform: none;
210
+ }
211
+ }
212
+ }
213
+ </style>
214
+
215
+ <style>
216
+ :root {
217
+ --signpost-bgcolor: #fff;
218
+ --signpost-border-color: #b3b3b3;
219
+ --signpost-color: #acbac3;
220
+ }
221
+ :root.dark-theme {
222
+ --signpost-bgcolor: #21333b;
223
+ --signpost-border-color: #000;
224
+ --signpost-color: #acbac3;
225
+ }
226
+ </style>
@@ -29,6 +29,7 @@
29
29
  </slot>
30
30
  <button
31
31
  :id="`${props.testId}-close-icon`"
32
+ :data-id="`${props.testId}-close-button`"
32
33
  class="close"
33
34
  @click="onHide"
34
35
  >
@@ -48,6 +49,7 @@
48
49
  <slot name="modalFooter">
49
50
  <button
50
51
  :id="`${props.testId}-cancel-button`"
52
+ :data-id="`${props.testId}-cancel-button`"
51
53
  class="btn btn-link"
52
54
  @click="onHide"
53
55
  >
@@ -56,6 +58,7 @@
56
58
  <button
57
59
  v-if="!isFirstStep"
58
60
  :id="`${props.testId}-back-button`"
61
+ :data-id="`${props.testId}-back-button`"
59
62
  class="btn btn-outline"
60
63
  @click="onPreviousStep"
61
64
  >
@@ -64,6 +67,7 @@
64
67
  <button
65
68
  v-if="isLastStep"
66
69
  :id="`${props.testId}-finish-button`"
70
+ :data-id="`${props.testId}-finish-button`"
67
71
  class="btn btn-success"
68
72
  @click="emits('submit')"
69
73
  >
@@ -72,6 +76,7 @@
72
76
  <button
73
77
  v-else
74
78
  :id="`${props.testId}-next-button`"
79
+ :data-id="`${props.testId}-next-button`"
75
80
  :disabled="props.isDisabledFinish"
76
81
  class="btn btn-primary"
77
82
  @click="onNextStep"
@@ -11,6 +11,7 @@
11
11
  >
12
12
  <button
13
13
  :id="`${props.testId}-step-button-${key}`"
14
+ :data-id="`${props.testId}-step-button`"
14
15
  class="btn btn-link clr-wizard-stepnav-link"
15
16
  :style="{ 'margin-left': '8px' }"
16
17
  :disabled="step.status.disabled"
@@ -13,6 +13,7 @@
13
13
  <button
14
14
  v-if="menuPined"
15
15
  id="nav-trigger"
16
+ data-id="navigation-panel-trigger"
16
17
  class="nav-trigger"
17
18
  @click="collapseMenu"
18
19
  >
@@ -26,6 +27,7 @@
26
27
  v-for="(item2, key2) in item"
27
28
  :id="`nav-item-${key}-${key2}`"
28
29
  :key="item2.id"
30
+ :data-id="item2.testId"
29
31
  class="nav-link"
30
32
  active-class="active"
31
33
  :to="item2.to"
@@ -55,6 +57,7 @@
55
57
  <input
56
58
  id="pin-menu-control"
57
59
  v-model="menuPined"
60
+ data-id="navigation-panel-pin-menu-control"
58
61
  type="checkbox"
59
62
  :disabled="props.disabledPin"
60
63
  @change="changeMenuPin"
@@ -81,7 +84,7 @@ const emits = defineEmits<{
81
84
  (event: 'toggle', value: boolean): void
82
85
  }>()
83
86
 
84
- const { $store } = useNuxtApp()
87
+ // const { $store } = useNuxtApp()
85
88
 
86
89
  const localization = computed<UI_I_Localization>(() => useLocal())
87
90
  const route = useRoute()
@@ -3,4 +3,5 @@ export interface UI_I_NavigationItem {
3
3
  to: string
4
4
  title: string
5
5
  iconName: string
6
+ testId?: string
6
7
  }