bfg-common 1.5.476 → 1.5.478

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.
@@ -82,7 +82,8 @@
82
82
 
83
83
  &-inner {
84
84
  position: relative;
85
- width: 660px;
85
+ max-width: 650px;
86
+ width: 100%;
86
87
  height: 545px;
87
88
  background-image: url('/login_bg1.png');
88
89
  background-size: contain;
@@ -90,11 +91,11 @@
90
91
  background-repeat: no-repeat;
91
92
  @media (max-width: 1170px) {
92
93
  background-image: url('/login_bg1024.png');
93
- width: 420px;
94
+ max-width: 420px;
94
95
  height: 376px;
95
96
  }
96
97
  @media (max-width: 768px) {
97
- width: 320px;
98
+ max-width: 320px;
98
99
  height: 265px;
99
100
  }
100
101
  }
@@ -313,6 +313,8 @@ const globalWindowResize = (): void => {
313
313
  }
314
314
  onMounted(() => {
315
315
  window.addEventListener('resize', globalWindowResize)
316
+ fixSize()
317
+ fixPosition()
316
318
  })
317
319
  onUnmounted(() => {
318
320
  window.removeEventListener('resize', globalWindowResize)
@@ -11,7 +11,7 @@
11
11
  id="tooltip-theme-mode-toggle-button"
12
12
  class="popped tooltip inline-block"
13
13
  >
14
- <ui-switch v-model="model" size="md" dark>
14
+ <ui-switch v-model="model" test-id="switch-theme-mode" size="md" dark>
15
15
  <template #rightIcon>
16
16
  <ui-icon name="light-theme" width="14" height="14" />
17
17
  </template>
@@ -75,7 +75,7 @@
75
75
  :id="`nav-item-${key}-${key2}`"
76
76
  :data-id="item2.testId"
77
77
  :class="['nav-link', { disabled: item2.disabled }]"
78
- :to="!item2.disabled && item2.to"
78
+ :to="!item2.disabled ? item2.to : ''"
79
79
  :title="
80
80
  item2.disabled ? localization.common.inDevelopment : ''
81
81
  "
@@ -3,7 +3,7 @@
3
3
  :class="['category-block-item', { disabled: props.item.disabled }]"
4
4
  >
5
5
  <nuxt-link
6
- :to="!props.item.disabled && navigate"
6
+ :to="!props.item.disabled ? navigate : ''"
7
7
  :title="
8
8
  props.item.disabled
9
9
  ? localization.common.inDevelopment
@@ -27,14 +27,16 @@
27
27
  </template>
28
28
 
29
29
  <script setup lang="ts">
30
+ import type { UI_I_SplitVerticalStyle } from '~/components/common/split/vertical/lib/models/interfaces'
31
+
30
32
  const isGrab = defineModel<boolean>('isGrab')
31
33
  const isFocus = defineModel<boolean>('isFocus')
32
34
 
33
35
  const props = defineProps<{
34
- elementId: number
35
- isDrag: number
36
- topPanelStyle: number
37
- bottomPanelStyle: number
36
+ elementId: string
37
+ isDrag: boolean
38
+ topPanelStyle: UI_I_SplitVerticalStyle
39
+ bottomPanelStyle: UI_I_SplitVerticalStyle
38
40
  }>()
39
41
  </script>
40
42
 
@@ -104,6 +104,7 @@ const bodyItems = computed<UI_I_BodyItems[][]>(() =>
104
104
  editable: false,
105
105
  text: networkData.name,
106
106
  id: networkData.id,
107
+ testId: `select-network-${networkData.id}`,
107
108
  },
108
109
  {
109
110
  editable: false,
@@ -87,6 +87,7 @@ const bodyItems = computed<UI_I_BodyItems[][]>(() =>
87
87
  editable: false,
88
88
  text: switchData.name,
89
89
  id: switchData.id,
90
+ testId: `select-standard-switch-name-${switchData.id}`
90
91
  },
91
92
  ])
92
93
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.476",
4
+ "version": "1.5.478",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -28,14 +28,14 @@
28
28
  "xterm-addon-serialize": "^0.9.0",
29
29
  "xterm-addon-unicode11": "^0.5.0",
30
30
  "xterm-addon-web-links": "^0.8.0",
31
- "eslint-plugin-myrules": "file:./eslint"
31
+ "eslint-plugin-myrules": "file:./eslint",
32
+ "bfg-nuxt-3-graph": "1.0.26",
33
+ "bfg-uikit": "1.0.516"
32
34
  },
33
35
  "dependencies": {
34
36
  "@nuxtjs/eslint-config-typescript": "^12.0.0",
35
37
  "@vueuse/components": "^10.1.2",
36
38
  "date-fns": "^2.29.3",
37
- "bfg-nuxt-3-graph": "1.0.26",
38
- "bfg-uikit": "1.0.510",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }