bfg-common 1.4.365 → 1.4.367
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/img/icons/icons-sprite-dark-1.svg +407 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
- package/assets/img/icons/icons-sprite-light-1.svg +407 -407
- package/assets/img/icons/icons-sprite-light-2.svg +343 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -94
- package/assets/localization/local_en.json +1 -1
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/modals/confirmation/Confirmation.vue +65 -65
- package/components/common/vm/actions/add/Add.vue +617 -617
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/{location/Location.vue → Location.vue} +173 -172
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/components/common/vm/actions/common/select/storage/Storage.vue +198 -202
- package/components/common/vm/actions/editSettings/EditSettings.vue +1 -1
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/date.ts +181 -181
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +0 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/StorageModalNew.vue +0 -175
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/lib/config/table.ts +0 -167
|
@@ -1,213 +1,213 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul class="context-wrap">
|
|
3
|
-
<span v-if="props.isLoading">
|
|
4
|
-
<atoms-loader-pre-loader
|
|
5
|
-
id="loader"
|
|
6
|
-
class="absolute-center context-menu__loading"
|
|
7
|
-
:show="true"
|
|
8
|
-
/>
|
|
9
|
-
</span>
|
|
10
|
-
<li
|
|
11
|
-
v-for="(item, key) in props.items"
|
|
12
|
-
:key="key"
|
|
13
|
-
:class="[
|
|
14
|
-
'menu-item',
|
|
15
|
-
{ disabled: item.disabled || isLoading },
|
|
16
|
-
{ 'item-header': item.isHeader },
|
|
17
|
-
{ 'has-border-top': item.hasBorderTop },
|
|
18
|
-
]"
|
|
19
|
-
@mouseenter="emits('toggle-items', [item, true, $event])"
|
|
20
|
-
@mouseleave="emits('toggle-items', [item, false, $event])"
|
|
21
|
-
>
|
|
22
|
-
<span
|
|
23
|
-
class="context-link"
|
|
24
|
-
:style="item.style"
|
|
25
|
-
:data-id="`${item.testId}-context-link`"
|
|
26
|
-
@mousedown="emits('select-item', item)"
|
|
27
|
-
>
|
|
28
|
-
<span :class="['context-icon', item.iconClassName]" />
|
|
29
|
-
<span class="menu-item-text">{{ item.name }}</span>
|
|
30
|
-
<span v-if="item.items.length" class="arrow-icon" />
|
|
31
|
-
<span v-if="item.shortcut" class="shortcut">{{ item.shortcut }}</span>
|
|
32
|
-
</span>
|
|
33
|
-
|
|
34
|
-
<div class="context-children">
|
|
35
|
-
<common-context-recursion
|
|
36
|
-
v-show="item.isShowItems"
|
|
37
|
-
:action-loading="props.actionLoading"
|
|
38
|
-
:class="[{ 'child-show': item.isShowItems }]"
|
|
39
|
-
:items="item.items"
|
|
40
|
-
@select-item="emits('select-item', $event)"
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
</li>
|
|
44
|
-
</ul>
|
|
45
|
-
</template>
|
|
46
|
-
|
|
47
|
-
<script setup lang="ts">
|
|
48
|
-
import type { UI_I_ContextMenuItem } from '~/components/common/context/lib/models/interfaces'
|
|
49
|
-
import type { I_HTMLLiElement } from '~/components/common/context/recursion/lib/models/interfaces'
|
|
50
|
-
|
|
51
|
-
const props = defineProps<{
|
|
52
|
-
items: UI_I_ContextMenuItem[]
|
|
53
|
-
actionLoading: string | null
|
|
54
|
-
isLoading: boolean
|
|
55
|
-
testId?: string
|
|
56
|
-
}>()
|
|
57
|
-
|
|
58
|
-
const emits = defineEmits<{
|
|
59
|
-
(event: 'select-item', value: UI_I_ContextMenuItem): void
|
|
60
|
-
(
|
|
61
|
-
event: 'toggle-items',
|
|
62
|
-
value: [UI_I_ContextMenuItem, boolean, I_HTMLLiElement]
|
|
63
|
-
): void
|
|
64
|
-
}>()
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<style scoped lang="scss">
|
|
68
|
-
.loader-wrapper {
|
|
69
|
-
width: 100%;
|
|
70
|
-
height: 100%;
|
|
71
|
-
z-index: 100;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.context-menu__loading {
|
|
75
|
-
:deep(.spinner) {
|
|
76
|
-
width: 45px;
|
|
77
|
-
height: 45px;
|
|
78
|
-
min-width: 45px;
|
|
79
|
-
min-height: 45px;
|
|
80
|
-
z-index: 1000;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
.context-wrap {
|
|
84
|
-
width: auto;
|
|
85
|
-
max-width: 400px;
|
|
86
|
-
background: var(--global-bg-color);
|
|
87
|
-
border-radius: 0;
|
|
88
|
-
color: #333;
|
|
89
|
-
border: 1px solid var(--context-menu-border-color);
|
|
90
|
-
user-select: none;
|
|
91
|
-
list-style: none;
|
|
92
|
-
max-height: 100vh;
|
|
93
|
-
overflow-y: auto;
|
|
94
|
-
|
|
95
|
-
.menu-item {
|
|
96
|
-
position: relative;
|
|
97
|
-
color: #565656;
|
|
98
|
-
border-bottom: 1px solid transparent;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
padding: 5px 0 3px;
|
|
101
|
-
|
|
102
|
-
&.has-border-top {
|
|
103
|
-
border-top: 1px solid var(--context-menu-inset-border-color);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.item-header {
|
|
107
|
-
font-size: 11px;
|
|
108
|
-
background-color: var(--context-menu-item-header-color);
|
|
109
|
-
cursor: default;
|
|
110
|
-
}
|
|
111
|
-
&:not(.item-header):not(.disabled):hover {
|
|
112
|
-
background-color: var(--context-menu-hover-bg-color);
|
|
113
|
-
color: #454545;
|
|
114
|
-
border-bottom: 1px solid var(--context-menu-hover-border-color);
|
|
115
|
-
}
|
|
116
|
-
&.disabled {
|
|
117
|
-
opacity: 0.5;
|
|
118
|
-
user-select: none;
|
|
119
|
-
cursor: default;
|
|
120
|
-
}
|
|
121
|
-
&.left {
|
|
122
|
-
:deep(.context-children) {
|
|
123
|
-
left: 0;
|
|
124
|
-
background: red;
|
|
125
|
-
|
|
126
|
-
.context-wrap {
|
|
127
|
-
transform: translateX(-100%);
|
|
128
|
-
left: auto;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.context-link {
|
|
134
|
-
position: relative;
|
|
135
|
-
overflow: hidden;
|
|
136
|
-
text-overflow: ellipsis;
|
|
137
|
-
white-space: nowrap;
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
user-select: none;
|
|
141
|
-
padding: 3px 20px 4px 10px;
|
|
142
|
-
|
|
143
|
-
.menu-item-text {
|
|
144
|
-
flex: 1 1 0;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.context-icon {
|
|
148
|
-
display: inline-block;
|
|
149
|
-
margin: -2px 4px 0 0;
|
|
150
|
-
vertical-align: middle;
|
|
151
|
-
width: 18px;
|
|
152
|
-
height: 18px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.arrow-icon {
|
|
156
|
-
position: absolute;
|
|
157
|
-
top: 50%;
|
|
158
|
-
margin-top: -8px;
|
|
159
|
-
right: 4px;
|
|
160
|
-
background-image: url('assets/img/icons/sprite.png');
|
|
161
|
-
display: inline-block;
|
|
162
|
-
width: 16px;
|
|
163
|
-
height: 16px;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
background-repeat: no-repeat;
|
|
166
|
-
font-size: 0;
|
|
167
|
-
line-height: 0;
|
|
168
|
-
text-align: center;
|
|
169
|
-
transform: rotate(90deg);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.shortcut {
|
|
173
|
-
padding-left: 10px;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.context-children {
|
|
178
|
-
position: absolute;
|
|
179
|
-
top: 0;
|
|
180
|
-
left: 100%;
|
|
181
|
-
|
|
182
|
-
.context-wrap {
|
|
183
|
-
position: fixed;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
.context-menu__loading {
|
|
189
|
-
:deep(.spinner) {
|
|
190
|
-
width: 45px;
|
|
191
|
-
height: 45px;
|
|
192
|
-
min-width: 45px;
|
|
193
|
-
min-height: 45px;
|
|
194
|
-
z-index: 1000;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
</style>
|
|
198
|
-
<style>
|
|
199
|
-
:root {
|
|
200
|
-
--context-menu-hover-bg-color: #e8e8e8;
|
|
201
|
-
--context-menu-border-color: #949494;
|
|
202
|
-
--context-menu-inset-border-color: #d4d5d6;
|
|
203
|
-
--context-menu-item-header-color: #eceff2;
|
|
204
|
-
--context-menu-hover-border-color: #666;
|
|
205
|
-
}
|
|
206
|
-
:root.dark-theme {
|
|
207
|
-
--context-menu-hover-bg-color: #324f61;
|
|
208
|
-
--context-menu-border-color: #495865;
|
|
209
|
-
--context-menu-inset-border-color: #485764;
|
|
210
|
-
--context-menu-item-header-color: #29414e;
|
|
211
|
-
--context-menu-hover-border-color: #fff;
|
|
212
|
-
}
|
|
213
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<ul class="context-wrap">
|
|
3
|
+
<span v-if="props.isLoading">
|
|
4
|
+
<atoms-loader-pre-loader
|
|
5
|
+
id="loader"
|
|
6
|
+
class="absolute-center context-menu__loading"
|
|
7
|
+
:show="true"
|
|
8
|
+
/>
|
|
9
|
+
</span>
|
|
10
|
+
<li
|
|
11
|
+
v-for="(item, key) in props.items"
|
|
12
|
+
:key="key"
|
|
13
|
+
:class="[
|
|
14
|
+
'menu-item',
|
|
15
|
+
{ disabled: item.disabled || isLoading },
|
|
16
|
+
{ 'item-header': item.isHeader },
|
|
17
|
+
{ 'has-border-top': item.hasBorderTop },
|
|
18
|
+
]"
|
|
19
|
+
@mouseenter="emits('toggle-items', [item, true, $event])"
|
|
20
|
+
@mouseleave="emits('toggle-items', [item, false, $event])"
|
|
21
|
+
>
|
|
22
|
+
<span
|
|
23
|
+
class="context-link"
|
|
24
|
+
:style="item.style"
|
|
25
|
+
:data-id="`${item.testId}-context-link`"
|
|
26
|
+
@mousedown="emits('select-item', item)"
|
|
27
|
+
>
|
|
28
|
+
<span :class="['context-icon', item.iconClassName]" />
|
|
29
|
+
<span class="menu-item-text">{{ item.name }}</span>
|
|
30
|
+
<span v-if="item.items.length" class="arrow-icon" />
|
|
31
|
+
<span v-if="item.shortcut" class="shortcut">{{ item.shortcut }}</span>
|
|
32
|
+
</span>
|
|
33
|
+
|
|
34
|
+
<div class="context-children">
|
|
35
|
+
<common-context-recursion
|
|
36
|
+
v-show="item.isShowItems"
|
|
37
|
+
:action-loading="props.actionLoading"
|
|
38
|
+
:class="[{ 'child-show': item.isShowItems }]"
|
|
39
|
+
:items="item.items"
|
|
40
|
+
@select-item="emits('select-item', $event)"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</li>
|
|
44
|
+
</ul>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script setup lang="ts">
|
|
48
|
+
import type { UI_I_ContextMenuItem } from '~/components/common/context/lib/models/interfaces'
|
|
49
|
+
import type { I_HTMLLiElement } from '~/components/common/context/recursion/lib/models/interfaces'
|
|
50
|
+
|
|
51
|
+
const props = defineProps<{
|
|
52
|
+
items: UI_I_ContextMenuItem[]
|
|
53
|
+
actionLoading: string | null
|
|
54
|
+
isLoading: boolean
|
|
55
|
+
testId?: string
|
|
56
|
+
}>()
|
|
57
|
+
|
|
58
|
+
const emits = defineEmits<{
|
|
59
|
+
(event: 'select-item', value: UI_I_ContextMenuItem): void
|
|
60
|
+
(
|
|
61
|
+
event: 'toggle-items',
|
|
62
|
+
value: [UI_I_ContextMenuItem, boolean, I_HTMLLiElement]
|
|
63
|
+
): void
|
|
64
|
+
}>()
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<style scoped lang="scss">
|
|
68
|
+
.loader-wrapper {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
z-index: 100;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.context-menu__loading {
|
|
75
|
+
:deep(.spinner) {
|
|
76
|
+
width: 45px;
|
|
77
|
+
height: 45px;
|
|
78
|
+
min-width: 45px;
|
|
79
|
+
min-height: 45px;
|
|
80
|
+
z-index: 1000;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.context-wrap {
|
|
84
|
+
width: auto;
|
|
85
|
+
max-width: 400px;
|
|
86
|
+
background: var(--global-bg-color);
|
|
87
|
+
border-radius: 0;
|
|
88
|
+
color: #333;
|
|
89
|
+
border: 1px solid var(--context-menu-border-color);
|
|
90
|
+
user-select: none;
|
|
91
|
+
list-style: none;
|
|
92
|
+
max-height: 100vh;
|
|
93
|
+
overflow-y: auto;
|
|
94
|
+
|
|
95
|
+
.menu-item {
|
|
96
|
+
position: relative;
|
|
97
|
+
color: #565656;
|
|
98
|
+
border-bottom: 1px solid transparent;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
padding: 5px 0 3px;
|
|
101
|
+
|
|
102
|
+
&.has-border-top {
|
|
103
|
+
border-top: 1px solid var(--context-menu-inset-border-color);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.item-header {
|
|
107
|
+
font-size: 11px;
|
|
108
|
+
background-color: var(--context-menu-item-header-color);
|
|
109
|
+
cursor: default;
|
|
110
|
+
}
|
|
111
|
+
&:not(.item-header):not(.disabled):hover {
|
|
112
|
+
background-color: var(--context-menu-hover-bg-color);
|
|
113
|
+
color: #454545;
|
|
114
|
+
border-bottom: 1px solid var(--context-menu-hover-border-color);
|
|
115
|
+
}
|
|
116
|
+
&.disabled {
|
|
117
|
+
opacity: 0.5;
|
|
118
|
+
user-select: none;
|
|
119
|
+
cursor: default;
|
|
120
|
+
}
|
|
121
|
+
&.left {
|
|
122
|
+
:deep(.context-children) {
|
|
123
|
+
left: 0;
|
|
124
|
+
background: red;
|
|
125
|
+
|
|
126
|
+
.context-wrap {
|
|
127
|
+
transform: translateX(-100%);
|
|
128
|
+
left: auto;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.context-link {
|
|
134
|
+
position: relative;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
user-select: none;
|
|
141
|
+
padding: 3px 20px 4px 10px;
|
|
142
|
+
|
|
143
|
+
.menu-item-text {
|
|
144
|
+
flex: 1 1 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.context-icon {
|
|
148
|
+
display: inline-block;
|
|
149
|
+
margin: -2px 4px 0 0;
|
|
150
|
+
vertical-align: middle;
|
|
151
|
+
width: 18px;
|
|
152
|
+
height: 18px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.arrow-icon {
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 50%;
|
|
158
|
+
margin-top: -8px;
|
|
159
|
+
right: 4px;
|
|
160
|
+
background-image: url('assets/img/icons/sprite.png');
|
|
161
|
+
display: inline-block;
|
|
162
|
+
width: 16px;
|
|
163
|
+
height: 16px;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
background-repeat: no-repeat;
|
|
166
|
+
font-size: 0;
|
|
167
|
+
line-height: 0;
|
|
168
|
+
text-align: center;
|
|
169
|
+
transform: rotate(90deg);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.shortcut {
|
|
173
|
+
padding-left: 10px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.context-children {
|
|
178
|
+
position: absolute;
|
|
179
|
+
top: 0;
|
|
180
|
+
left: 100%;
|
|
181
|
+
|
|
182
|
+
.context-wrap {
|
|
183
|
+
position: fixed;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
.context-menu__loading {
|
|
189
|
+
:deep(.spinner) {
|
|
190
|
+
width: 45px;
|
|
191
|
+
height: 45px;
|
|
192
|
+
min-width: 45px;
|
|
193
|
+
min-height: 45px;
|
|
194
|
+
z-index: 1000;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
</style>
|
|
198
|
+
<style>
|
|
199
|
+
:root {
|
|
200
|
+
--context-menu-hover-bg-color: #e8e8e8;
|
|
201
|
+
--context-menu-border-color: #949494;
|
|
202
|
+
--context-menu-inset-border-color: #d4d5d6;
|
|
203
|
+
--context-menu-item-header-color: #eceff2;
|
|
204
|
+
--context-menu-hover-border-color: #666;
|
|
205
|
+
}
|
|
206
|
+
:root.dark-theme {
|
|
207
|
+
--context-menu-hover-bg-color: #324f61;
|
|
208
|
+
--context-menu-border-color: #495865;
|
|
209
|
+
--context-menu-inset-border-color: #485764;
|
|
210
|
+
--context-menu-item-header-color: #29414e;
|
|
211
|
+
--context-menu-hover-border-color: #fff;
|
|
212
|
+
}
|
|
213
|
+
</style>
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-modals-confirmation-new
|
|
3
|
-
v-if="props.isNewView"
|
|
4
|
-
:headline="props.headline"
|
|
5
|
-
:description="props.description"
|
|
6
|
-
:modal-texts="props.modalTexts"
|
|
7
|
-
:test-id="props.testId"
|
|
8
|
-
@hide-modal="emits('hide-modal')"
|
|
9
|
-
@confirm="emits('confirm')"
|
|
10
|
-
/>
|
|
11
|
-
<common-modals-confirmation-old
|
|
12
|
-
v-else
|
|
13
|
-
:description="props.description"
|
|
14
|
-
:headline="props.headline"
|
|
15
|
-
:sub-title="props.subTitle"
|
|
16
|
-
:test-id="props.testId"
|
|
17
|
-
:type="props.type"
|
|
18
|
-
:loading="props.loading"
|
|
19
|
-
:variant-text-button="props.variantTextButton"
|
|
20
|
-
:width="props.width"
|
|
21
|
-
@hide-modal="emits('hide-modal')"
|
|
22
|
-
@confirm="emits('confirm')"
|
|
23
|
-
/>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script setup lang="ts">
|
|
27
|
-
import type { UI_I_ModalTexts } from 'bfg-uikit/components/ui/modal/models/interfaces'
|
|
28
|
-
|
|
29
|
-
const props = withDefaults(
|
|
30
|
-
defineProps<{
|
|
31
|
-
isNewView?: boolean
|
|
32
|
-
description?: string
|
|
33
|
-
headline?: string
|
|
34
|
-
subTitle?: string
|
|
35
|
-
testId?: string
|
|
36
|
-
type?: 'confirm' | 'remove'
|
|
37
|
-
loading?: boolean
|
|
38
|
-
variantTextButton?: 'ok' | 'confirm' | 'remove'
|
|
39
|
-
width?: string
|
|
40
|
-
modalTexts?: UI_I_ModalTexts
|
|
41
|
-
}>(),
|
|
42
|
-
{
|
|
43
|
-
isNewView: false,
|
|
44
|
-
testId: 'common-confirmation',
|
|
45
|
-
headline: '',
|
|
46
|
-
subTitle: '',
|
|
47
|
-
type: 'confirm',
|
|
48
|
-
description: '',
|
|
49
|
-
variantTextButton: 'ok',
|
|
50
|
-
width: '580px',
|
|
51
|
-
loading: false,
|
|
52
|
-
modalTexts: {
|
|
53
|
-
resetToDefault: 'Reset To Default',
|
|
54
|
-
button1: 'Cancel',
|
|
55
|
-
button2: 'Confirm',
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
const emits = defineEmits<{
|
|
60
|
-
(event: 'hide-modal'): void
|
|
61
|
-
(event: 'confirm'): void
|
|
62
|
-
}>()
|
|
63
|
-
</script>
|
|
64
|
-
|
|
65
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-modals-confirmation-new
|
|
3
|
+
v-if="props.isNewView"
|
|
4
|
+
:headline="props.headline"
|
|
5
|
+
:description="props.description"
|
|
6
|
+
:modal-texts="props.modalTexts"
|
|
7
|
+
:test-id="props.testId"
|
|
8
|
+
@hide-modal="emits('hide-modal')"
|
|
9
|
+
@confirm="emits('confirm')"
|
|
10
|
+
/>
|
|
11
|
+
<common-modals-confirmation-old
|
|
12
|
+
v-else
|
|
13
|
+
:description="props.description"
|
|
14
|
+
:headline="props.headline"
|
|
15
|
+
:sub-title="props.subTitle"
|
|
16
|
+
:test-id="props.testId"
|
|
17
|
+
:type="props.type"
|
|
18
|
+
:loading="props.loading"
|
|
19
|
+
:variant-text-button="props.variantTextButton"
|
|
20
|
+
:width="props.width"
|
|
21
|
+
@hide-modal="emits('hide-modal')"
|
|
22
|
+
@confirm="emits('confirm')"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script setup lang="ts">
|
|
27
|
+
import type { UI_I_ModalTexts } from 'bfg-uikit/components/ui/modal/models/interfaces'
|
|
28
|
+
|
|
29
|
+
const props = withDefaults(
|
|
30
|
+
defineProps<{
|
|
31
|
+
isNewView?: boolean
|
|
32
|
+
description?: string
|
|
33
|
+
headline?: string
|
|
34
|
+
subTitle?: string
|
|
35
|
+
testId?: string
|
|
36
|
+
type?: 'confirm' | 'remove'
|
|
37
|
+
loading?: boolean
|
|
38
|
+
variantTextButton?: 'ok' | 'confirm' | 'remove'
|
|
39
|
+
width?: string
|
|
40
|
+
modalTexts?: UI_I_ModalTexts
|
|
41
|
+
}>(),
|
|
42
|
+
{
|
|
43
|
+
isNewView: false,
|
|
44
|
+
testId: 'common-confirmation',
|
|
45
|
+
headline: '',
|
|
46
|
+
subTitle: '',
|
|
47
|
+
type: 'confirm',
|
|
48
|
+
description: '',
|
|
49
|
+
variantTextButton: 'ok',
|
|
50
|
+
width: '580px',
|
|
51
|
+
loading: false,
|
|
52
|
+
modalTexts: {
|
|
53
|
+
resetToDefault: 'Reset To Default',
|
|
54
|
+
button1: 'Cancel',
|
|
55
|
+
button2: 'Confirm',
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
const emits = defineEmits<{
|
|
60
|
+
(event: 'hide-modal'): void
|
|
61
|
+
(event: 'confirm'): void
|
|
62
|
+
}>()
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<style scoped lang="scss"></style>
|