bfg-common 1.5.232 → 1.5.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.
@@ -93,7 +93,7 @@
93
93
  background-position: 0 98.7%;
94
94
  }
95
95
  .storage-ui-icon-increase_datastore {
96
- background-position: 0 94.96%;
96
+ background-position: 0 94.9%;
97
97
  }
98
98
  .storage-ui-icon-datastore-unmount {
99
99
  background-position: 0 100%;
@@ -114,7 +114,7 @@
114
114
  background-position: 0 43.0379746835%;
115
115
  }
116
116
  .storage-ui-icon-browse-file {
117
- background-position: 0 30.44%;
117
+ background-position: 0 30.3797468354%;
118
118
  }
119
119
  .clone-to-template {
120
120
  background-position: 0 46.8%;
@@ -13,7 +13,7 @@
13
13
  background-position: 0 7.59%;
14
14
  }
15
15
  .vx-icon-vmMigrate {
16
- background-position: 0 1.29%;
16
+ background-position: 0 1.3%;
17
17
  }
18
18
  .network-lib-ui-icon-vswitch {
19
19
  background-position: 0 24.05%;
@@ -59,16 +59,16 @@
59
59
  background-position: 0 40.5%;
60
60
  }
61
61
  .icon-web-terminal {
62
- background-position: 0 41.79%;
62
+ background-position: 0 41.8%;
63
63
  }
64
64
  .icon-move {
65
- background-position: 0 43.06%;
65
+ background-position: 0 43%;
66
66
  }
67
67
  .icon-settings {
68
68
  background-position: 0 44.3%;
69
69
  }
70
70
  .icon-remove {
71
- background-position: 0 45.59%;
71
+ background-position: 0 45.6%;
72
72
  }
73
73
  .icon-backup-storage {
74
74
  background-position: 0 46.8%;
@@ -113,7 +113,7 @@
113
113
  background-position: 0 68.3%;
114
114
  }
115
115
  .icon-edit {
116
- background-position: 0 69.65%;
116
+ background-position: 0 69.6%;
117
117
  }
118
118
  .icon-backup {
119
119
  background-position: 0 62%;
@@ -69,7 +69,7 @@
69
69
  background-position: 0 91.8%;
70
70
  }
71
71
  .icon-add-permission {
72
- background-position: 0 100%;
72
+ background-position: 0 99.8%;
73
73
  }
74
74
 
75
75
  /* _____BACKGROUND IMAGE_____ */
@@ -66,6 +66,8 @@ const setTriggerElementWidth = (): void => {
66
66
  : 0
67
67
  }
68
68
 
69
+ const spaceForCollapseBtn = ref<number>(60)
70
+
69
71
  let outputSize = (): void => {
70
72
  const el = document.getElementById(id.value)
71
73
  if (!el) return
@@ -78,7 +80,7 @@ let outputSize = (): void => {
78
80
  const elItemsMarginRight = parseInt(getComputedStyle(elItems[0]).marginRight)
79
81
  const childrenMarginY = elItemsMarginLeft + elItemsMarginRight
80
82
 
81
- let childrenWidth = 0
83
+ let childrenWidth = spaceForCollapseBtn.value
82
84
  let count = 0
83
85
  for (let i = 0; i < elItems.length; i++) {
84
86
  childrenWidth += elItems[i].clientWidth + childrenMarginY
@@ -94,7 +96,7 @@ let outputSize = (): void => {
94
96
  if (element) {
95
97
  element.style.paddingRight =
96
98
  collapsedItems.value.length && !props.notCollapse
97
- ? `${triggerElementWidth}px`
99
+ ? `${spaceForCollapseBtn.value}px`
98
100
  : ''
99
101
  }
100
102
  }
@@ -819,10 +819,11 @@ const headItemsPresent = computed<UI_I_HeadItem[]>(() => {
819
819
  const bodyItemsPresent = computed<UI_I_BodyItem[][]>(() => {
820
820
  let items: UI_I_BodyItem[][] = props.bodyItems.map((row) => {
821
821
  return row.map((item) => {
822
+ const text = item.text.toString()
822
823
  return {
823
824
  ...item,
824
825
  // Если текст пустой нужно поставить '--' для экспорта
825
- text: item.text !== '' ? item.text : '--',
826
+ text: text.trim() !== '' ? text : '--',
826
827
  }
827
828
  })
828
829
  })
@@ -1,10 +1,10 @@
1
- export interface UI_I_TableInfoItem {
2
- label: string
3
- value: any
4
- isProperty?: boolean
5
- key?: string
6
- localization?: string
7
- localizationTemplate?: string
8
- isCapital?: boolean
9
- iconName?: string
10
- }
1
+ export interface UI_I_TableInfoItem {
2
+ label: string
3
+ value: any
4
+ isProperty?: boolean
5
+ key?: string
6
+ localization?: string
7
+ localizationTemplate?: string
8
+ isCapital?: boolean
9
+ iconName?: string
10
+ }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <nav :id="id" class="btn-group">
3
- <ul class="nav">
3
+ <ul class="nav" :style="{ paddingRight: spaceForCollapseBtn + 'px' }">
4
4
  <li
5
5
  v-for="(item, key) in props.items"
6
6
  :key="item.path"
@@ -94,6 +94,8 @@ const setTriggerElementWidth = (): void => {
94
94
  }
95
95
  }
96
96
 
97
+ const spaceForCollapseBtn = ref<number>(60)
98
+
97
99
  const outputSize = (): void => {
98
100
  const el = document.getElementById(id.value)
99
101
  if (!el) return
@@ -104,7 +106,7 @@ const outputSize = (): void => {
104
106
  const elItemsMarginRight = parseInt(getComputedStyle(elItems[0]).marginRight)
105
107
  const childrenMarginY = elItemsMarginLeft + elItemsMarginRight
106
108
 
107
- let childrenWidth = 0
109
+ let childrenWidth = spaceForCollapseBtn.value
108
110
  let count = 0
109
111
  setTriggerElementWidth()
110
112
  for (let i = 0; i < elItems.length; i++) {
@@ -119,12 +121,12 @@ const outputSize = (): void => {
119
121
 
120
122
  visibleCount.value = count
121
123
 
122
- const element = document.querySelector(`#${id.value} ul`)
123
- if (element) {
124
- element.style.paddingRight = collapsedItems.value.length
125
- ? `${triggerElementWidth}px`
126
- : ''
127
- }
124
+ // const element = document.querySelector(`#${id.value} ul`)
125
+ // if (element) {
126
+ // element.style.paddingRight = collapsedItems.value.length
127
+ // ? `${triggerElementWidth}px`
128
+ // : ''
129
+ // }
128
130
  }
129
131
 
130
132
  const id = ref<string>(`tabs-${useUniqueId()}`)
@@ -130,7 +130,7 @@ const outputSize = (): void => {
130
130
  const el = document.getElementById(id.value)
131
131
  if (!el) return
132
132
 
133
- const elWidth = el.clientWidth
133
+ const elWidth = el.clientWidth + 1
134
134
  // const elItems = el.children
135
135
  const elItems = Array.from(el.children).filter(
136
136
  (item) => !item.classList.contains('nav-tabs')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.232",
4
+ "version": "1.5.233",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",