bfg-common 1.3.232 → 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.
- package/assets/scss/common/normalize.scss +0 -4
- package/components/atoms/alert/Alert.vue +96 -95
- package/components/atoms/alert/Notification.vue +171 -170
- package/components/atoms/autocomplete/Autocomplete.vue +3 -0
- package/components/atoms/collapse/CollapseNav.vue +1 -1
- package/components/atoms/collapse/CollapseNavItem.vue +17 -13
- package/components/atoms/combobox/Combobox.vue +5 -0
- package/components/atoms/datepicker/Datepicker.vue +19 -1
- package/components/atoms/datepicker/lib/models/interfaces.ts +1 -0
- package/components/atoms/dropdown/Portlet.vue +10 -7
- package/components/atoms/dropdown/dropdown/Dropdown.vue +10 -2
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +1 -0
- package/components/atoms/dropdown/tree/Tree.vue +2 -0
- package/components/atoms/dropdown/tree/lib/models/interfaces.ts +1 -0
- package/components/atoms/lib/models/interfaces.ts +2 -0
- package/components/atoms/list/SelectList.vue +1 -0
- package/components/atoms/modal/Modal.vue +3 -0
- package/components/atoms/modal/bySteps/BySteps.vue +56 -51
- package/components/atoms/modal/byStepsSecond/ByStepsSecond.vue +10 -1
- package/components/atoms/nav/VerticalNavBar.vue +1 -0
- package/components/atoms/nav/lib/models/interfaces.ts +1 -0
- package/components/atoms/notificationBar/NotificationBar.vue +9 -1
- package/components/atoms/perPage/PerPage.vue +1 -0
- package/components/atoms/popover/Popover.vue +5 -1
- package/components/atoms/popup/SimplePopup.vue +1 -0
- package/components/atoms/select/TheSelect.vue +2 -0
- package/components/atoms/select/lib/models/interfaces.ts +1 -0
- package/components/atoms/stack/StackBlock.vue +3 -0
- package/components/atoms/step/VerticalStep.vue +1 -0
- package/components/atoms/switch/Switch.vue +111 -111
- package/components/atoms/table/compact/Compact.vue +526 -526
- package/components/atoms/table/dataGrid/DataGrid.vue +13 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +10 -2
- package/components/atoms/table/dataGrid/DataGridPage.vue +5 -0
- package/components/atoms/table/dataGrid/lib/models/interfaces.ts +2 -0
- package/components/atoms/table/simpleInfo/SimpleInfo.vue +7 -2
- package/components/atoms/table/simpleInfo/lib/models/interfaces.ts +1 -0
- package/components/atoms/table/simpleTable/SimpleTable.vue +5 -1
- package/components/atoms/table/simpleTable/lib/models/interfaces.ts +2 -0
- package/components/atoms/tabs/VerticalTabs.vue +1 -0
- package/components/atoms/tabs/lib/models/interfaces.ts +3 -2
- package/components/atoms/tooltip/Signpost.vue +226 -225
- package/components/atoms/wizard/Wizard.vue +5 -0
- package/components/atoms/wizard/step/Step.vue +1 -0
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +4 -1
- package/components/common/mainNavigationPanel/lib/models/interfaces.ts +1 -0
- package/components/common/pages/Tasks.vue +120 -120
- package/components/common/recursionTree/RecursionTree.vue +203 -203
- package/components/common/tools/Actions.vue +2 -1
- package/components/common/tools/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/Add.vue +575 -575
- package/components/common/vm/actions/clone/Clone.vue +518 -518
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +269 -269
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +693 -693
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +59 -59
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +294 -294
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
- package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
- package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
- package/components/common/weekSelect/WeekSelect.vue +112 -112
- package/components/common/weekSelect/lib/config/options.ts +10 -10
- package/composables/useAppVersion.ts +21 -21
- package/composables/useEnvLanguage.ts +20 -20
- package/lib/utils/sendTask.ts +72 -72
- package/minify.js +146 -146
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/store/main/lib/interfaces.ts +9 -9
- package/store/tasks/actions.ts +133 -133
- package/store/tasks/getters.ts +25 -25
- package/store/tasks/lib/models/interfaces.ts +18 -18
- package/store/tasks/mutations.ts +58 -58
- package/store/tasks/state.ts +16 -16
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
>
|
|
17
17
|
<atoms-the-icon class="filter-icon" name="filter" />
|
|
18
18
|
<input
|
|
19
|
-
v-model.trim="mainFilter"
|
|
20
19
|
:id="`${props.testId}-main-filter-input`"
|
|
20
|
+
v-model.trim="mainFilter"
|
|
21
|
+
:data-id="`${props.testId}-main-filter-input`"
|
|
21
22
|
:placeholder="props.mainFilterPlaceholder"
|
|
22
23
|
type="text"
|
|
23
24
|
@input="emits('main-filter', mainFilter)"
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
<input
|
|
53
54
|
:id="`${props.testId}-${inputId}-all`"
|
|
54
55
|
v-model="selectedAll"
|
|
56
|
+
:data-id="`${props.testId}-filter-all`"
|
|
55
57
|
type="checkbox"
|
|
56
58
|
class="checkbox-btn"
|
|
57
59
|
:value="-1"
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
<div class="datagrid-column-flex">
|
|
91
93
|
<button
|
|
92
94
|
:id="`${props.testId}-sort-column-${key}`"
|
|
95
|
+
:data-id="`${item.testId}-sort-column`"
|
|
93
96
|
:class="[
|
|
94
97
|
'datagrid-column-title',
|
|
95
98
|
{
|
|
@@ -127,6 +130,7 @@
|
|
|
127
130
|
<button
|
|
128
131
|
v-if="item.hasFilter"
|
|
129
132
|
:id="`${props.testId}-filter-icon-${key}`"
|
|
133
|
+
:data-id="`${item.testId}-filter-icon`"
|
|
130
134
|
class="datagrid-filter-toggle clr-anchor clr-smart-open-close"
|
|
131
135
|
@click="filterShow[key] = !filterShow[key]"
|
|
132
136
|
>
|
|
@@ -152,6 +156,7 @@
|
|
|
152
156
|
<input
|
|
153
157
|
:id="`${props.testId}-filter-input-${key}`"
|
|
154
158
|
v-model="filterTerm[key]"
|
|
159
|
+
:data-id="`${item.testId}-filter-input`"
|
|
155
160
|
type="text"
|
|
156
161
|
@input="filtering"
|
|
157
162
|
/>
|
|
@@ -203,6 +208,7 @@
|
|
|
203
208
|
>
|
|
204
209
|
<div>
|
|
205
210
|
<div
|
|
211
|
+
:data-id="`${item.testId}-select-row`"
|
|
206
212
|
class="datagrid-row-master datagrid-row-flex"
|
|
207
213
|
@click.stop="selectRowById(item[0])"
|
|
208
214
|
>
|
|
@@ -233,6 +239,7 @@
|
|
|
233
239
|
>
|
|
234
240
|
<button
|
|
235
241
|
:id="`${props.testId}-toggle-icon-${key}`"
|
|
242
|
+
:data-id="`${item.testId}-toggle-button`"
|
|
236
243
|
class="datagrid-expandable-caret-button reset-btn"
|
|
237
244
|
@click="toggle(key)"
|
|
238
245
|
>
|
|
@@ -264,6 +271,7 @@
|
|
|
264
271
|
:id="`${props.testId}-${inputId}-${item[0].id}`"
|
|
265
272
|
:key="item[0].id"
|
|
266
273
|
v-model="selectedRowLocal"
|
|
274
|
+
:data-id="`${item.testId}-row-selection-input`"
|
|
267
275
|
:type="props.type"
|
|
268
276
|
:class="`${props.type}-btn`"
|
|
269
277
|
:value="item[0].id"
|
|
@@ -289,6 +297,7 @@
|
|
|
289
297
|
<div class="flex-align-center">
|
|
290
298
|
<button
|
|
291
299
|
:id="`${props.testId}-toggle-icon-${key}`"
|
|
300
|
+
:date-id="`${item.testId}-toggle-row-button`"
|
|
292
301
|
class="datagrid-expandable-caret-button reset-btn"
|
|
293
302
|
@click="toggle(key)"
|
|
294
303
|
>
|
|
@@ -338,6 +347,7 @@
|
|
|
338
347
|
<div
|
|
339
348
|
v-if="item2.data?.name === 'doubleArrows'"
|
|
340
349
|
:id="`show-info-${item[0].data.id}`"
|
|
350
|
+
:data-id="`${item[0].testId}-double-arrow`"
|
|
341
351
|
:class="[
|
|
342
352
|
'double-arrow-wrap',
|
|
343
353
|
{
|
|
@@ -415,6 +425,7 @@
|
|
|
415
425
|
<div class="clr-checkbox-wrapper">
|
|
416
426
|
<input
|
|
417
427
|
:id="`${props.testId}-check-all`"
|
|
428
|
+
:data-id="`${props.testId}-check-all`"
|
|
418
429
|
type="checkbox"
|
|
419
430
|
checked
|
|
420
431
|
/>
|
|
@@ -470,6 +481,7 @@
|
|
|
470
481
|
<slot name="hiddenInfoHeader" :item="showedInfoCol" />
|
|
471
482
|
<button
|
|
472
483
|
:id="`${props.testId}-hidden-info-toggle-icon-${showedInfoRow?.key}-${showedInfoRow?.data.name}`"
|
|
484
|
+
:data-id="`${props.testId}-hidden-info-toggle-icon`"
|
|
473
485
|
class="signpost-action close"
|
|
474
486
|
@click="isShowHiddenInfo = false"
|
|
475
487
|
>
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="column-switch-wrap flex-align-center relative" @click.stop>
|
|
3
|
-
<button
|
|
3
|
+
<button
|
|
4
|
+
:id="columnSwitchId"
|
|
5
|
+
:data-id="`${props.testId}-toggle-button`"
|
|
6
|
+
class="column-switch-btn"
|
|
7
|
+
@click.stop="toggle"
|
|
8
|
+
>
|
|
4
9
|
<atoms-the-icon
|
|
5
10
|
name="column-switch"
|
|
6
11
|
width="16px"
|
|
@@ -50,7 +55,10 @@
|
|
|
50
55
|
</template>
|
|
51
56
|
|
|
52
57
|
<script setup lang="ts">
|
|
53
|
-
import {
|
|
58
|
+
import {
|
|
59
|
+
UI_I_HTMLSelectElement,
|
|
60
|
+
UI_I_Localization,
|
|
61
|
+
} from '~/lib/models/interfaces'
|
|
54
62
|
import { UI_I_ColumnKey } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
55
63
|
|
|
56
64
|
const props = withDefaults(
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div v-show="props.totalPages > 1" class="pagination-list">
|
|
3
3
|
<button
|
|
4
4
|
:id="`${props.testId}-first-button`"
|
|
5
|
+
:data-id="`${props.testId}-first-button`"
|
|
5
6
|
class="pagination-first"
|
|
6
7
|
:disabled="currentPage === 1"
|
|
7
8
|
@click="changeCurrentPage(1)"
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
</button>
|
|
16
17
|
<button
|
|
17
18
|
:id="`${props.testId}-prev-button`"
|
|
19
|
+
:data-id="`${props.testId}-prev-button`"
|
|
18
20
|
class="pagination-previous"
|
|
19
21
|
:disabled="currentPage === 1"
|
|
20
22
|
@click="changeCurrentPage(currentPage - 1)"
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
<input
|
|
31
33
|
:id="`${props.testId}-page-input`"
|
|
32
34
|
v-model="currentPageLazy"
|
|
35
|
+
:data-id="`${props.testId}-page-input`"
|
|
33
36
|
type="text"
|
|
34
37
|
class="pagination-current clr-input"
|
|
35
38
|
@blur="changeCurrentPageManual"
|
|
@@ -39,6 +42,7 @@
|
|
|
39
42
|
|
|
40
43
|
<button
|
|
41
44
|
:id="`${props.testId}-next-button`"
|
|
45
|
+
:data-id="`${props.testId}-next-button`"
|
|
42
46
|
class="pagination-next"
|
|
43
47
|
:disabled="currentPage === props.totalPages"
|
|
44
48
|
@click="changeCurrentPage(currentPage + 1)"
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
</button>
|
|
53
57
|
<button
|
|
54
58
|
:id="`${props.testId}-last-button`"
|
|
59
|
+
:data-id="`${props.testId}-last-button`"
|
|
55
60
|
class="pagination-last"
|
|
56
61
|
:disabled="currentPage === props.totalPages"
|
|
57
62
|
@click="changeCurrentPage(props.totalPages)"
|
|
@@ -13,6 +13,7 @@ export interface UI_I_BodyItem {
|
|
|
13
13
|
data?: any
|
|
14
14
|
dataId?: string
|
|
15
15
|
disabled?: boolean
|
|
16
|
+
testId?: string
|
|
16
17
|
}
|
|
17
18
|
export interface UI_I_HeadItem {
|
|
18
19
|
key: string
|
|
@@ -23,6 +24,7 @@ export interface UI_I_HeadItem {
|
|
|
23
24
|
filter: string
|
|
24
25
|
width: string
|
|
25
26
|
iconName?: string
|
|
27
|
+
testId?: string
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
export interface UI_I_ColumnKey {
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
<tr>
|
|
6
6
|
<td v-for="item in props.headItems" :key="item.text" class="row">
|
|
7
7
|
<span> {{ item.text }}</span>
|
|
8
|
-
<span
|
|
8
|
+
<span
|
|
9
|
+
class="underlined"
|
|
10
|
+
:data-id="`${item.testId}-select-node`"
|
|
11
|
+
@click="selectNode(item.value)"
|
|
12
|
+
>
|
|
9
13
|
{{ item.value }}
|
|
10
14
|
</span>
|
|
11
15
|
</td>
|
|
@@ -19,7 +23,8 @@
|
|
|
19
23
|
import { UI_I_TableInfo } from '~/components/atoms/table/simpleInfo/lib/models/interfaces'
|
|
20
24
|
|
|
21
25
|
const props = defineProps<{
|
|
22
|
-
headItems: UI_I_TableInfo
|
|
26
|
+
headItems: UI_I_TableInfo[]
|
|
27
|
+
testId?: string
|
|
23
28
|
}>()
|
|
24
29
|
const emits = defineEmits(['select-node'])
|
|
25
30
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
v-for="(item, index) in headItems"
|
|
8
8
|
:key="item.text"
|
|
9
9
|
:style="{ width: `${100 / headItems.length}%` }"
|
|
10
|
+
:data-id="item.testId"
|
|
10
11
|
@click="sortByIndex(index)"
|
|
11
12
|
>
|
|
12
13
|
<span class="sort-arrow-wrap">
|
|
@@ -31,11 +32,13 @@
|
|
|
31
32
|
:class="{
|
|
32
33
|
selected: props.selectedRowKey === key || selectedRowKey === key,
|
|
33
34
|
}"
|
|
35
|
+
:data-id="`${props.testId}-row-${key}`"
|
|
34
36
|
@click="selectRow(key, item)"
|
|
35
37
|
>
|
|
36
38
|
<td
|
|
37
39
|
v-for="(item2, key2) in item"
|
|
38
40
|
:key="key2"
|
|
41
|
+
:data-id="item2.testId"
|
|
39
42
|
@click="changeItemEditStatus(item2)"
|
|
40
43
|
>
|
|
41
44
|
<span v-if="!item2.isEdit">{{ item2.text }}</span>
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
v-else
|
|
44
47
|
:id="`${props.testId}-edit-input-${key}-${key2}`"
|
|
45
48
|
v-model="item2.text"
|
|
49
|
+
:data-id="`${item2.testId}-edit-input`"
|
|
46
50
|
type="text"
|
|
47
51
|
@blur="resetEditStatus"
|
|
48
52
|
/>
|
|
@@ -69,7 +73,7 @@ import type {
|
|
|
69
73
|
|
|
70
74
|
const props = withDefaults(
|
|
71
75
|
defineProps<{
|
|
72
|
-
headItems: UI_I_TableHeadItem
|
|
76
|
+
headItems: UI_I_TableHeadItem[]
|
|
73
77
|
bodyItems: UI_I_TableBodyItem[][]
|
|
74
78
|
editable?: boolean
|
|
75
79
|
testId?: string
|