bfg-common 1.4.904 → 1.5.1
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/localization/local_en.json +1 -1
- package/components/common/tools/Actions.vue +30 -21
- package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +14 -17
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/TablesView.vue +1 -0
- package/package.json +1 -1
|
@@ -2095,7 +2095,7 @@
|
|
|
2095
2095
|
"deleteBackupDescription": "Do you want to remove backup?",
|
|
2096
2096
|
"removeDatastoreDescription": "Do you want to remove datastore?",
|
|
2097
2097
|
"useUnidirectionalChap": "Use unidirectional CHAP",
|
|
2098
|
-
"useBiderectionalChap": "Use
|
|
2098
|
+
"useBiderectionalChap": "Use bidirectional CHAP",
|
|
2099
2099
|
"usernameIsRequired": "Username is required",
|
|
2100
2100
|
"passwordIsRequired": "Password is required",
|
|
2101
2101
|
"source": "Source",
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class="btn-group"
|
|
5
|
-
:style="{ 'padding-right': rightSpace + 'px' }"
|
|
6
|
-
>
|
|
2
|
+
<!-- :style="{ 'padding-right': rightSpace + 'px' }"-->
|
|
3
|
+
<div :id="id" class="btn-group">
|
|
7
4
|
<div v-for="(button, key) in props.actions" :key="button.type">
|
|
8
5
|
<label v-if="button.uploaded" v-development="button.development">
|
|
9
6
|
<span
|
|
@@ -42,6 +39,7 @@
|
|
|
42
39
|
:test-id="`${props.testId}-item`"
|
|
43
40
|
:items="collapsedItems"
|
|
44
41
|
close-after-click
|
|
42
|
+
class="nav-tabs"
|
|
45
43
|
@change="onClickButton"
|
|
46
44
|
@select-file="onSelectFiles"
|
|
47
45
|
/>
|
|
@@ -96,40 +94,51 @@ const collapsedItems = computed<UI_I_CollapseNavItem[]>(() => {
|
|
|
96
94
|
}
|
|
97
95
|
})
|
|
98
96
|
})
|
|
99
|
-
|
|
100
|
-
const rightSpace = ref<number>(0)
|
|
101
97
|
watch(
|
|
102
|
-
|
|
98
|
+
() => props.actions,
|
|
103
99
|
(newValue) => {
|
|
104
|
-
|
|
105
|
-
const element: any = document.getElementById(id.value)
|
|
106
|
-
if (!element || !newValue.length) space = 0
|
|
107
|
-
else if (element.lastChild?.className?.includes('tabs-overflow')) {
|
|
108
|
-
space =
|
|
109
|
-
element.getBoundingClientRect().right -
|
|
110
|
-
element.lastChild.getBoundingClientRect().left
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
rightSpace.value = space
|
|
100
|
+
visibleCount.value = newValue.length
|
|
114
101
|
},
|
|
115
102
|
{ deep: true }
|
|
116
103
|
)
|
|
117
104
|
|
|
105
|
+
// const rightSpace = ref<number>(0)
|
|
106
|
+
// watch(
|
|
107
|
+
// collapsedItems,
|
|
108
|
+
// (newValue) => {
|
|
109
|
+
// let space = 0
|
|
110
|
+
// const element: any = document.getElementById(id.value)
|
|
111
|
+
// if (!element || !newValue.length) space = 0
|
|
112
|
+
// else if (element.lastChild?.className?.includes('tabs-overflow')) {
|
|
113
|
+
// space =
|
|
114
|
+
// element.getBoundingClientRect().right -
|
|
115
|
+
// element.lastChild.getBoundingClientRect().left
|
|
116
|
+
// }
|
|
117
|
+
//
|
|
118
|
+
// rightSpace.value = space
|
|
119
|
+
// },
|
|
120
|
+
// { deep: true }
|
|
121
|
+
// )
|
|
122
|
+
|
|
118
123
|
const outputSize = (): void => {
|
|
119
124
|
const el = document.getElementById(id.value)
|
|
120
125
|
if (!el) return
|
|
121
126
|
|
|
122
127
|
const elWidth = el.clientWidth
|
|
123
|
-
const elItems = el.children
|
|
128
|
+
// const elItems = el.children
|
|
129
|
+
const elItems = Array.from(el.children).filter(
|
|
130
|
+
(item) => !item.classList.contains('nav-tabs')
|
|
131
|
+
)
|
|
124
132
|
const elItemsMarginLeft = parseInt(getComputedStyle(elItems[0]).marginLeft)
|
|
125
133
|
const elItemsMarginRight = parseInt(getComputedStyle(elItems[0]).marginRight)
|
|
126
134
|
const childrenMarginY = elItemsMarginLeft + elItemsMarginRight
|
|
127
135
|
|
|
128
|
-
let childrenWidth =
|
|
136
|
+
let childrenWidth = -10 // TODO Найти способ лучше. Не всегда совпадает ширина элементов с шириной родительского элемента
|
|
129
137
|
let count = 0
|
|
130
138
|
for (let i = 0; i < elItems.length; i++) {
|
|
131
139
|
childrenWidth += elItems[i].clientWidth + childrenMarginY
|
|
132
|
-
const isWrap = elWidth - rightSpace.value < childrenWidth
|
|
140
|
+
// const isWrap = elWidth - rightSpace.value < childrenWidth
|
|
141
|
+
const isWrap = elWidth < childrenWidth
|
|
133
142
|
|
|
134
143
|
if (isWrap) break
|
|
135
144
|
count++
|
|
@@ -8,23 +8,20 @@
|
|
|
8
8
|
@remove="onHideAlert"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
:table-type="activeTab"
|
|
26
|
-
/>
|
|
27
|
-
</div>
|
|
11
|
+
<atoms-tabs
|
|
12
|
+
v-model="activeTab"
|
|
13
|
+
test-id="accessibility"
|
|
14
|
+
:items="tabs"
|
|
15
|
+
size="small"
|
|
16
|
+
class="w-100"
|
|
17
|
+
/>
|
|
18
|
+
<common-wizards-datastore-add-nfs-accessibility-tables-view
|
|
19
|
+
v-model="modelHosts"
|
|
20
|
+
:data-table="dataTable?.items || []"
|
|
21
|
+
:total-items="dataTable?.total_items || 0"
|
|
22
|
+
:total-pages="dataTable?.total_pages || 1"
|
|
23
|
+
:table-type="activeTab"
|
|
24
|
+
/>
|
|
28
25
|
</div>
|
|
29
26
|
</template>
|
|
30
27
|
|