bfg-common 1.4.873 → 1.4.875

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.
@@ -120,8 +120,8 @@ const fieldErrorText = computed<string>(() => {
120
120
  })
121
121
  const items = computed<any[]>(() => {
122
122
  return [...props.items].map((text) => {
123
- const term = search.value.toLowerCase()
124
- const texts = text.toLowerCase().split(term)
123
+ const term = text.match(new RegExp(search.value, 'i'))?.[0]
124
+ const texts = term ? text.split(term) : text
125
125
  return {
126
126
  firstText: texts[0],
127
127
  secondText: term,
@@ -796,7 +796,7 @@ const changePageSize = (value: number): void => {
796
796
  emits('update:page-size', value)
797
797
  }
798
798
  const changePage = (value: number): void => {
799
- emits('update:selected-row', [])
799
+ emits('update:selected-row', props.type === 'radio' ? null : [])
800
800
  emits('update:page', value)
801
801
  }
802
802
 
@@ -1046,7 +1046,7 @@ const exportItems = computed<UI_I_DropdownButtonItem[]>(() =>
1046
1046
  localization.value,
1047
1047
  bodyItemsPresent.value.length || 0,
1048
1048
  props.selectedRow?.length || 0,
1049
- props.testId || ''
1049
+ props.testId || ''
1050
1050
  )
1051
1051
  )
1052
1052
  const onExport = (type: '0' | '1'): void => {
@@ -223,7 +223,10 @@ import {
223
223
  UI_I_SelectedPort,
224
224
  UI_I_NetworksWithPositions,
225
225
  } from '~/components/common/diagramMain/lib/models/interfaces'
226
- import type { UI_I_Localization, UI_I_ArbitraryObject } from '~/lib/models/interfaces'
226
+ import type {
227
+ UI_I_Localization,
228
+ UI_I_ArbitraryObject,
229
+ } from '~/lib/models/interfaces'
227
230
  import {
228
231
  adapterPopupFieldsFunc,
229
232
  adapterPopupFieldsNewFunc,
@@ -263,7 +266,9 @@ const adapterPopupFields = computed(() =>
263
266
  : adapterPopupFieldsFunc(localization.value, props.adapter.testId)
264
267
  )
265
268
 
266
- const adapterProperties = dataForSelectedAdapterFunc(props.adapter)
269
+ const adapterProperties = computed<UI_I_ModalsInitialData>(() =>
270
+ dataForSelectedAdapterFunc(props.adapter)
271
+ )
267
272
 
268
273
  const adapterSelectionPosition = computed<number>(
269
274
  () => props.adapter.adapterPosition - 1.5
@@ -77,15 +77,15 @@ export interface UI_I_Sysx {
77
77
  services: {
78
78
  // New interface
79
79
  Management: boolean
80
- VMotion: boolean
80
+ // VMotion: boolean
81
81
  Provisioning: boolean
82
82
  VSAN: boolean
83
- FaultToleranceLogging: boolean
84
- VSphereReplication: boolean
85
- VSphereReplicationNFC: boolean
86
- VSphereBackupNFC: boolean
87
- NVMeOverTCP: boolean
88
- NVMeOverRDMA: boolean
83
+ // FaultToleranceLogging: boolean
84
+ // VSphereReplication: boolean
85
+ // VSphereReplicationNFC: boolean
86
+ // VSphereBackupNFC: boolean
87
+ // NVMeOverTCP: boolean
88
+ // NVMeOverRDMA: boolean
89
89
 
90
90
  // management: boolean
91
91
  // vmotion: boolean
@@ -105,7 +105,7 @@ export interface UI_I_Sysx {
105
105
  mask: number | string
106
106
  gateway_override: boolean
107
107
  gateway: number | string
108
- routing_table: number
108
+ routing_table?: number
109
109
  }
110
110
  }
111
111
 
@@ -12,11 +12,11 @@ const filePath = path.join(
12
12
  'setLastUpdateTime.ts'
13
13
  )
14
14
 
15
- const npmDev = (): void => {
16
- const searchString = /window\.lastUpdateTimeRun = \d+/
17
- const replacementString = `window.lastUpdateTimeRun = ${new Date().getTime()}`
18
- replaceFileContent(filePath, searchString, replacementString)
19
- }
15
+ // const npmDev = (): void => {
16
+ // const searchString = /window\.lastUpdateTimeRun = \d+/
17
+ // const replacementString = `window.lastUpdateTimeRun = ${new Date().getTime()}`
18
+ // replaceFileContent(filePath, searchString, replacementString)
19
+ // }
20
20
  const npmGenerate = (): void => {
21
21
  const searchString = /window\.lastUpdateTimeBuild = \d+/
22
22
  const replacementString = `window.lastUpdateTimeBuild = ${new Date().getTime()}`
@@ -27,7 +27,7 @@ const npmGenerate = (): void => {
27
27
  export default defineNuxtModule(() => {
28
28
  switch (process.env.npm_command) {
29
29
  case 'run-script':
30
- npmDev()
30
+ // npmDev()
31
31
  break
32
32
  case 'exec':
33
33
  npmGenerate()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.873",
4
+ "version": "1.4.875",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",