bfg-common 1.0.53 → 1.0.55
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/components/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/modal/bySteps/BySteps.vue +234 -234
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +174 -174
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/table/dataGrid/DataGridPagination.vue +83 -83
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/accordion/Accordion.vue +186 -176
- package/components/common/accordion/Recursion.vue +202 -195
- package/components/common/accordion/models/interfaces.ts +1 -0
- package/components/common/accordion/utils/accordion.ts +31 -0
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/modals/viewSettings/Info.vue +94 -94
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/tools/Actions.vue +163 -141
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/models/store/storage/interfaces.ts +32 -32
- 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/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
- package/public/spice-console-minify/lib/jgestures.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
- package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
|
@@ -1,141 +1,163 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
emits('click', type
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:id="id"
|
|
4
|
+
class="btn-group"
|
|
5
|
+
:style="{ 'padding-right': rightSpace + 'px' }"
|
|
6
|
+
>
|
|
7
|
+
<div v-for="(button, key) in props.actions" :key="button.type">
|
|
8
|
+
<label v-if="button.uploaded">
|
|
9
|
+
<span :class="[`btn btn-link ${props.size}`]">
|
|
10
|
+
{{ button.text }}
|
|
11
|
+
</span>
|
|
12
|
+
<input
|
|
13
|
+
:id="`select-file-button-${key}`"
|
|
14
|
+
type="file"
|
|
15
|
+
:disabled="button.disabled"
|
|
16
|
+
:multiple="false"
|
|
17
|
+
class="btn-group__file"
|
|
18
|
+
@change="(event) => onSelectFiles(event, button.type)"
|
|
19
|
+
/>
|
|
20
|
+
</label>
|
|
21
|
+
|
|
22
|
+
<button
|
|
23
|
+
v-else
|
|
24
|
+
:id="`actions-button-${key}`"
|
|
25
|
+
:class="[`btn btn-link ${props.size}`]"
|
|
26
|
+
:disabled="button.disabled"
|
|
27
|
+
@click="onClickButton(button.type)"
|
|
28
|
+
>
|
|
29
|
+
{{ button.text }}
|
|
30
|
+
</button>
|
|
31
|
+
</div>
|
|
32
|
+
<atoms-collapse-nav
|
|
33
|
+
v-show="collapsedItems.length"
|
|
34
|
+
:test-id="`${props.testId}-item`"
|
|
35
|
+
:items="collapsedItems"
|
|
36
|
+
@change="onClickButton"
|
|
37
|
+
@select-file="onSelectFiles"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script lang="ts" setup>
|
|
43
|
+
import type { UI_I_Button } from '~/components/common/tools/models/interfaces'
|
|
44
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/models/interfaces'
|
|
45
|
+
|
|
46
|
+
const props = withDefaults(
|
|
47
|
+
defineProps<{
|
|
48
|
+
actions: UI_I_Button[]
|
|
49
|
+
testId: string
|
|
50
|
+
size?: 'btn-sm' | ''
|
|
51
|
+
}>(),
|
|
52
|
+
{
|
|
53
|
+
size: 'btn-sm',
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
const emits = defineEmits<{
|
|
57
|
+
(event: 'click', value1: string, value2?: Event | null): void
|
|
58
|
+
}>()
|
|
59
|
+
|
|
60
|
+
const onClickButton = (type: string): void => {
|
|
61
|
+
emits('click', type)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const onSelectFiles = (event: Event, type: string): void => {
|
|
65
|
+
emits('click', type, event)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const visibleCount = ref(props.actions.length)
|
|
69
|
+
const collapsedItems = computed<UI_I_CollapseNavItem[]>(() => {
|
|
70
|
+
return props.actions
|
|
71
|
+
.filter((_, index) => {
|
|
72
|
+
return index >= visibleCount.value
|
|
73
|
+
})
|
|
74
|
+
.map((item) => {
|
|
75
|
+
return {
|
|
76
|
+
text: item.text,
|
|
77
|
+
value: item.type,
|
|
78
|
+
disabled: item.disabled,
|
|
79
|
+
uploaded: item.uploaded,
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
const rightSpace = ref<number>(0)
|
|
85
|
+
watch(
|
|
86
|
+
collapsedItems,
|
|
87
|
+
(newValue) => {
|
|
88
|
+
let space = 0
|
|
89
|
+
const element: any = document.getElementById(id.value)
|
|
90
|
+
if (!element || !newValue.length) space = 0
|
|
91
|
+
else if (element.lastChild?.className?.includes('tabs-overflow')) {
|
|
92
|
+
space =
|
|
93
|
+
element.getBoundingClientRect().right -
|
|
94
|
+
element.lastChild.getBoundingClientRect().left
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
rightSpace.value = space
|
|
98
|
+
},
|
|
99
|
+
{ deep: true }
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
const outputSize = (): void => {
|
|
103
|
+
const el = document.getElementById(id.value)
|
|
104
|
+
if (!el) return
|
|
105
|
+
|
|
106
|
+
const elWidth = el.clientWidth
|
|
107
|
+
const elItems = el.children
|
|
108
|
+
const elItemsMarginLeft = parseInt(getComputedStyle(elItems[0]).marginLeft)
|
|
109
|
+
const elItemsMarginRight = parseInt(getComputedStyle(elItems[0]).marginRight)
|
|
110
|
+
const childrenMarginY = elItemsMarginLeft + elItemsMarginRight
|
|
111
|
+
|
|
112
|
+
let childrenWidth = 0
|
|
113
|
+
let count = 0
|
|
114
|
+
for (let i = 0; i < elItems.length; i++) {
|
|
115
|
+
childrenWidth += elItems[i].clientWidth + childrenMarginY
|
|
116
|
+
const isWrap = elWidth - rightSpace.value < childrenWidth
|
|
117
|
+
|
|
118
|
+
if (isWrap) break
|
|
119
|
+
count++
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
visibleCount.value = count
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const setResizeObserve = (): void => {
|
|
126
|
+
const el = document.getElementById(id.value)
|
|
127
|
+
|
|
128
|
+
if (!el) {
|
|
129
|
+
setTimeout(setResizeObserve, 0)
|
|
130
|
+
return
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
new ResizeObserver(outputSize).observe(el)
|
|
134
|
+
}
|
|
135
|
+
const id = ref<string>('')
|
|
136
|
+
onMounted(() => {
|
|
137
|
+
id.value = `tool-actions-${useUniqueId()}`
|
|
138
|
+
setResizeObserve()
|
|
139
|
+
})
|
|
140
|
+
</script>
|
|
141
|
+
|
|
142
|
+
<style lang="scss" scoped>
|
|
143
|
+
.btn {
|
|
144
|
+
&:disabled {
|
|
145
|
+
color: var(--btn-link-disabled);
|
|
146
|
+
}
|
|
147
|
+
&-group {
|
|
148
|
+
margin-top: 10px;
|
|
149
|
+
box-shadow: none;
|
|
150
|
+
position: relative;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-wrap: wrap;
|
|
154
|
+
min-height: 25px;
|
|
155
|
+
height: 25px;
|
|
156
|
+
box-sizing: content-box;
|
|
157
|
+
|
|
158
|
+
&__file {
|
|
159
|
+
display: none;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
</style>
|