bfg-common 1.4.881 → 1.4.882

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.
@@ -2999,7 +2999,7 @@
2999
2999
  "removeConfirmationDesc": "Вы уверены, что хотите удалить узел “{node}” из кластера? Для подтверждения введите “{node}” в поле ниже.",
3000
3000
  "nodeIPAddress": "IP -адрес узла",
3001
3001
  "addNode": "Добавить узел",
3002
- "hostHelp": "Хозяева",
3002
+ "hostHelp": "Помощь узла",
3003
3003
  "hostHelpTooltipContent": "Выберите целевой вычислительный ресурс для этой операции. ",
3004
3004
  "selectValidHostComputeResource": "Выберите действительный хост в качестве ресурса вычисления",
3005
3005
  "syncData": "Синхронизированные данные",
@@ -29,6 +29,7 @@
29
29
  v-for="(item, key) in items"
30
30
  :key="key"
31
31
  class="navbar-dropdown-menu-item"
32
+ :title="item.title"
32
33
  @mousedown.stop
33
34
  >
34
35
  <div
@@ -8,4 +8,5 @@ export interface UI_I_CollapseNavItem {
8
8
  uploaded?: boolean
9
9
  testId?: string
10
10
  iconName?: string
11
+ title?: string
11
12
  }
@@ -7,6 +7,7 @@
7
7
  :item="item"
8
8
  :value="props.modelValue"
9
9
  btn-class="btn btn-link nav-link"
10
+ :title="item.title"
10
11
  @change="change"
11
12
  />
12
13
  </li>
@@ -1,93 +1,105 @@
1
- <template>
2
- <nav class="sidenav vertical-groups-sidenav">
3
- <ul class="sidenav-content">
4
- <li
5
- v-for="(item, key) in props.items"
6
- :id="`${props.testId}-item-${key}`"
7
- :data-id="item.testId"
8
- :key="item.value"
9
- :class="[
10
- 'vertical-nav-link group-nav-link',
11
- { active: item.value === props.modelValue },
12
- ]"
13
- :title="item.text"
14
- @click="selectItem(item.value)"
15
- >
16
- {{ item.text }}
17
- </li>
18
- </ul>
19
- </nav>
20
- </template>
21
- <script setup lang="ts">
22
- import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
23
-
24
- const props = withDefaults(
25
- defineProps<{
26
- modelValue: string | number
27
- items: UI_I_VerticalTabs[]
28
- hasErrorMessages?: number | boolean
29
- testId?: string
30
- }>(),
31
- { testId: 'ui-vertical-tabs' }
32
- )
33
-
34
- const emits = defineEmits<{
35
- (event: 'update:model-value', value: string): void
36
- (event: 'set-alert'): void
37
- }>()
38
-
39
- const selectItem = (value: string): void => {
40
- if (
41
- props.hasErrorMessages === undefined ||
42
- props.hasErrorMessages === 0 ||
43
- props.hasErrorMessages === false
44
- ) {
45
- emits('update:model-value', value)
46
- return
47
- }
48
- emits('set-alert')
49
- }
50
- </script>
51
-
52
- <style>
53
- :root {
54
- --vertical-tabs-nav-link: --grey-100;
55
- --vertical-tabs-bg-color: #fafafa;
56
- }
57
- :root.dark-theme {
58
- --vertical-tabs-nav-link: #ffffff;
59
- --vertical-tabs-bg-color: transparent;
60
- }
61
- </style>
62
- <style lang="scss" scoped>
63
-
64
- .vertical-groups-sidenav {
65
- min-height: 94%;
66
- background-color: var(--vertical-tabs-bg-color);
67
-
68
- .vertical-nav-link {
69
- display: inline-block;
70
- width: 100%;
71
- margin-top: 5px;
72
- padding-left: 12px;
73
- color: var(--vertical-tabs-nav-link);
74
- border-bottom: 1px solid transparent;
75
- text-decoration: none;
76
- font-size: 14px;
77
- cursor: pointer;
78
- border-radius: 2.5px 0 0 2.5px;
79
-
80
- &.active {
81
- color: var(--vertical-nav-active-item-color);
82
- background: var(--vertical-nav-active-bg-color);
83
- border-bottom: 1px solid transparent;
84
- }
85
-
86
- &:hover:not(.active) {
87
- background: var(--vertical-nav-hover-bg-color);
88
- color: var(--blue-950);
89
- border-bottom: 1px solid #666;
90
- }
91
- }
92
- }
93
- </style>
1
+ <template>
2
+ <nav class="sidenav vertical-groups-sidenav">
3
+ <ul class="sidenav-content">
4
+ <li
5
+ v-for="(item, key) in props.items"
6
+ :id="`${props.testId}-item-${key}`"
7
+ :data-id="item.testId"
8
+ :key="item.value"
9
+ :class="[
10
+ 'vertical-nav-link group-nav-link',
11
+ { active: item.value === props.modelValue },
12
+ { disabled: item.disabled },
13
+ ]"
14
+ :title="item.title || item.text"
15
+ @click="selectItem(item)"
16
+ >
17
+ {{ item.text }}
18
+ </li>
19
+ </ul>
20
+ </nav>
21
+ </template>
22
+ <script setup lang="ts">
23
+ import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
24
+
25
+ const props = withDefaults(
26
+ defineProps<{
27
+ modelValue: string | number
28
+ items: UI_I_VerticalTabs[]
29
+ hasErrorMessages?: number | boolean
30
+ testId?: string
31
+ }>(),
32
+ { testId: 'ui-vertical-tabs' }
33
+ )
34
+
35
+ const emits = defineEmits<{
36
+ (event: 'update:model-value', value: string): void
37
+ (event: 'set-alert'): void
38
+ }>()
39
+
40
+ const selectItem = ({
41
+ value,
42
+ disabled,
43
+ }: {
44
+ value: string
45
+ disabled: boolean
46
+ }): void => {
47
+ if (disabled) return
48
+ if (
49
+ props.hasErrorMessages === undefined ||
50
+ props.hasErrorMessages === 0 ||
51
+ props.hasErrorMessages === false
52
+ ) {
53
+ emits('update:model-value', value)
54
+ return
55
+ }
56
+ emits('set-alert')
57
+ }
58
+ </script>
59
+
60
+ <style>
61
+ :root {
62
+ --vertical-tabs-nav-link: --grey-100;
63
+ --vertical-tabs-bg-color: #fafafa;
64
+ }
65
+ :root.dark-theme {
66
+ --vertical-tabs-nav-link: #ffffff;
67
+ --vertical-tabs-bg-color: transparent;
68
+ }
69
+ </style>
70
+ <style lang="scss" scoped>
71
+ .vertical-groups-sidenav {
72
+ min-height: 94%;
73
+ background-color: var(--vertical-tabs-bg-color);
74
+
75
+ .vertical-nav-link {
76
+ display: inline-block;
77
+ width: 100%;
78
+ margin-top: 5px;
79
+ padding-left: 12px;
80
+ color: var(--vertical-tabs-nav-link);
81
+ border-bottom: 1px solid transparent;
82
+ text-decoration: none;
83
+ font-size: 14px;
84
+ cursor: pointer;
85
+ border-radius: 2.5px 0 0 2.5px;
86
+
87
+ &.active {
88
+ color: var(--vertical-nav-active-item-color);
89
+ background: var(--vertical-nav-active-bg-color);
90
+ border-bottom: 1px solid transparent;
91
+ }
92
+
93
+ &.disabled {
94
+ cursor: not-allowed;
95
+ opacity: 0.6;
96
+ }
97
+
98
+ &:hover:not(.active) {
99
+ background: var(--vertical-nav-hover-bg-color);
100
+ color: var(--blue-950);
101
+ border-bottom: 1px solid #666;
102
+ }
103
+ }
104
+ }
105
+ </style>
@@ -3,4 +3,5 @@ export interface UI_I_VerticalTabs {
3
3
  value: string | number
4
4
  testId?: string
5
5
  disabled?: boolean
6
+ title?: string
6
7
  }
@@ -43,9 +43,7 @@
43
43
  <span
44
44
  :class="['clr-flex-shrink-0 category-icon', item2.iconName]"
45
45
  />
46
- <span class="category-text" :title="item2.title">{{
47
- item2.title
48
- }}</span>
46
+ <span class="category-text">{{ item2.title }}</span>
49
47
  </span>
50
48
  </nuxt-link>
51
49
  <div