bfg-common 1.6.111 → 1.6.113
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/img/icons/icons-sprite-dark-4.svg +17 -38
- package/assets/img/icons/icons-sprite-light-4.svg +17 -49
- package/assets/localization/local_be.json +4 -33
- package/assets/localization/local_en.json +4 -33
- package/assets/localization/local_hy.json +4 -33
- package/assets/localization/local_kk.json +4 -33
- package/assets/localization/local_ru.json +7 -36
- package/assets/localization/local_zh.json +4 -33
- package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +17 -25
- package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +4 -4
- package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +23 -42
- package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +3 -5
- package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +2 -27
- package/components/common/configure/advancedSystemSettings/tableView/new/New.vue +130 -60
- package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/hostTable.ts +308 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +41 -14
- package/components/common/configure/advancedSystemSettings/tableView/{field → old/field}/Field.vue +50 -20
- package/components/common/configure/advancedSystemSettings/tableView/old/field/lib/models/enums.ts +14 -0
- package/components/common/configure/advancedSystemSettings/tools/New.vue +3 -64
- package/components/common/configure/advancedSystemSettings/tools/Old.vue +2 -2
- package/components/common/configure/advancedSystemSettings/tools/Tools.vue +2 -2
- package/components/common/graph/Graph.vue +8 -19
- package/components/common/graph/{new/New.vue → graphNew/GraphNew.vue} +3 -3
- package/components/common/graph/lib/utils/renderGraph.ts +393 -0
- package/components/common/modals/confirmation/Confirmation.vue +0 -1
- package/components/common/monitor/advanced/Advanced.vue +49 -9
- package/components/common/monitor/advanced/graphView/GraphView.vue +12 -8
- package/components/common/monitor/advanced/graphView/{New.vue → GraphViewNew.vue} +1 -1
- package/components/common/monitor/advanced/table/Table.vue +8 -9
- package/components/common/monitor/advanced/table/{new/New.vue → tableNew/TableNew.vue} +5 -6
- package/components/common/monitor/advanced/table/{new → tableNew}/lib/config/options.ts +1 -1
- package/components/common/monitor/advanced/table/{old/Old.vue → tableOld/TableOld.vue} +3 -6
- package/components/common/monitor/advanced/tools/Tools.vue +53 -11
- package/components/common/monitor/advanced/tools/{New.vue → ToolsNew.vue} +0 -4
- package/components/common/monitor/advanced/tools/{Old.vue → ToolsOld.vue} +0 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +569 -569
- package/components/common/monitor/advanced/tools/chartOptionsModal/{notification/Notification.vue → Notification.vue} +6 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/{notification/New.vue → NotificationNew.vue} +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/{notification/Old.vue → NotificationOld.vue} +5 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +13 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/{New.vue → ActionsNew.vue} +3 -6
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +44 -12
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +7 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new/New.vue → tableNew/TableNew.vue} +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new → tableNew}/config/tableData.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{old/Old.vue → tableOld/TableOld.vue} +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{old → tableOld}/lib/config/tableConfig.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +36 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +9 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new/New.vue → objectNew/ObjectNew.vue} +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new → objectNew}/lib/config/tableData.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{old/Old.vue → objectOld/ObjectOld.vue} +2 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +7 -8
- package/components/common/monitor/overview/OverviewNew.vue +1 -1
- package/components/common/monitor/overview/OverviewOld.vue +1 -1
- package/components/common/monitor/overview/filters/FiltersNew.vue +0 -1
- package/components/common/monitor/overview/filters/FiltersOld.vue +0 -1
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +2 -2
- package/lib/models/interfaces.ts +0 -1
- package/package.json +1 -1
- package/components/common/configure/advancedSystemSettings/New.vue +0 -37
- package/components/common/configure/advancedSystemSettings/Old.vue +0 -36
- package/components/common/configure/advancedSystemSettings/tableView/field/New.vue +0 -88
- package/components/common/configure/advancedSystemSettings/tableView/field/Old.vue +0 -73
- package/components/common/configure/advancedSystemSettings/tableView/field/lib/config/index.ts +0 -10
- package/components/common/configure/advancedSystemSettings/tableView/field/lib/models/enums.ts +0 -14
- package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/index.ts +0 -112
- /package/components/common/graph/{Old.vue → GraphOld.vue} +0 -0
- /package/components/common/graph/{new → graphNew}/EmptyBlock.vue +0 -0
- /package/components/common/graph/{new → graphNew}/lib/models/enums.ts +0 -0
- /package/components/common/monitor/advanced/{New.vue → AdvancedNew.vue} +0 -0
- /package/components/common/monitor/advanced/{Old.vue → AdvancedOld.vue} +0 -0
- /package/components/common/monitor/advanced/graphView/{Old.vue → GraphViewOld.vue} +0 -0
- /package/components/common/monitor/advanced/table/{new → tableNew}/lib/utils/constructBody.ts +0 -0
- /package/components/common/monitor/advanced/table/{old → tableOld}/lib/config/performanceDatatable.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/{New.vue → ChartOptionsModalNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/{Old.vue → ChartOptionsModalOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/actions/{Old.vue → ActionsOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/{New.vue → CountersNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/{Old.vue → CountersOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new → tableNew}/config/options.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{new → tableNew}/utils/constructTable.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{old → tableOld}/lib/models/types.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/{New.vue → TimespanNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/{Old.vue → TimespanOld.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new → objectNew}/lib/config/options.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/{new → objectNew}/lib/utils/constructTable.ts +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/{New.vue → MetricsNew.vue} +0 -0
- /package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/{Old.vue → MetricsOld.vue} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="w-full">
|
|
3
|
-
<ui-input
|
|
4
|
-
v-if="props.data.type === 'number'"
|
|
5
|
-
v-model="valueLocal"
|
|
6
|
-
:class="['w-full', { 'has-error': props.invalid }]"
|
|
7
|
-
:test-id="`advanced-system-settings-${props.data.key}`"
|
|
8
|
-
:error="props.errorMessage"
|
|
9
|
-
error-type="tooltip"
|
|
10
|
-
type="number"
|
|
11
|
-
size="sm"
|
|
12
|
-
@input="emits('change', $event)"
|
|
13
|
-
/>
|
|
14
|
-
<ui-input
|
|
15
|
-
v-if="props.data.type === 'string'"
|
|
16
|
-
v-model="valueLocal"
|
|
17
|
-
:class="['w-full', { 'has-error': props.invalid }]"
|
|
18
|
-
:test-id="`advanced-system-settings-${props.data.key}`"
|
|
19
|
-
type="text"
|
|
20
|
-
size="sm"
|
|
21
|
-
@input="emits('change', $event)"
|
|
22
|
-
/>
|
|
23
|
-
<ui-select
|
|
24
|
-
v-if="props.data.type === 'boolean'"
|
|
25
|
-
v-model="currentSelectValue"
|
|
26
|
-
:items="selectItems"
|
|
27
|
-
:test-id="`advanced-system-settings-${props.data.key}`"
|
|
28
|
-
select-width="100%"
|
|
29
|
-
size="sm"
|
|
30
|
-
@input="emits('change', $event)"
|
|
31
|
-
/>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<!-- <div v-if="props.data.type === 'select'" class="select">-->
|
|
35
|
-
<!-- <select-->
|
|
36
|
-
<!-- v-model="valueLocal"-->
|
|
37
|
-
<!-- @change="onChangeSetting($event)"-->
|
|
38
|
-
<!-- :class="{ 'has-error': invalid }"-->
|
|
39
|
-
<!-- >-->
|
|
40
|
-
<!-- <option-->
|
|
41
|
-
<!-- v-for="item2 in props.data.options"-->
|
|
42
|
-
<!-- :key="item2.key"-->
|
|
43
|
-
<!-- :value="item2.key"-->
|
|
44
|
-
<!-- >-->
|
|
45
|
-
<!-- {{ item2.value }}-->
|
|
46
|
-
<!-- </option>-->
|
|
47
|
-
<!-- </select>-->
|
|
48
|
-
<!-- </div>-->
|
|
49
|
-
</template>
|
|
50
|
-
|
|
51
|
-
<script setup lang="ts">
|
|
52
|
-
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
53
|
-
import type { UI_I_AdvancedSystemSettingsEditData } from '~/components/common/configure/advancedSystemSettings/tableView/old/lib/models/interfaces'
|
|
54
|
-
import { selectOptions } from '~/components/common/configure/advancedSystemSettings/tableView/field/lib/config'
|
|
55
|
-
|
|
56
|
-
const valueLocal = defineModel<any>('value', {
|
|
57
|
-
required: true,
|
|
58
|
-
})
|
|
59
|
-
const props = defineProps<{
|
|
60
|
-
data: UI_I_AdvancedSystemSettingsEditData
|
|
61
|
-
invalid: boolean
|
|
62
|
-
errorMessage: string
|
|
63
|
-
}>()
|
|
64
|
-
|
|
65
|
-
const emits = defineEmits<{
|
|
66
|
-
(event: 'change', value: UI_I_AdvancedSystemSettingsEditData['value']): void
|
|
67
|
-
}>()
|
|
68
|
-
|
|
69
|
-
const currentSelectValue = computed<number[] | null>({
|
|
70
|
-
get() {
|
|
71
|
-
return {
|
|
72
|
-
text: String(valueLocal.value),
|
|
73
|
-
value: String(valueLocal.value),
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
set(newValue: UI_I_Dropdown) {
|
|
77
|
-
valueLocal.value = newValue.value.toLowerCase() === 'true'
|
|
78
|
-
},
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
const selectItems = ref<UI_I_Dropdown[]>(selectOptions)
|
|
82
|
-
</script>
|
|
83
|
-
|
|
84
|
-
<style scoped lang="scss">
|
|
85
|
-
.has-error {
|
|
86
|
-
border: 1px solid #db2100;
|
|
87
|
-
}
|
|
88
|
-
</style>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<atoms-tooltip-error :has-error="props.invalid">
|
|
3
|
-
<template #elem>
|
|
4
|
-
<div v-if="props.data.type === 'number'">
|
|
5
|
-
<input
|
|
6
|
-
v-model="valueLocal"
|
|
7
|
-
type="number"
|
|
8
|
-
:class="{ 'has-error': props.invalid }"
|
|
9
|
-
@input="emits('change', $event)"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
<div v-if="props.data.type === 'string'">
|
|
13
|
-
<input
|
|
14
|
-
v-model="valueLocal"
|
|
15
|
-
type="text"
|
|
16
|
-
:class="{ 'has-error': props.invalid }"
|
|
17
|
-
@input="emits('change', $event)"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
<div v-if="props.data.type === 'boolean'" class="select">
|
|
21
|
-
<select
|
|
22
|
-
v-model="valueLocal"
|
|
23
|
-
:class="{ 'has-error': props.invalid }"
|
|
24
|
-
@input="emits('change', $event)"
|
|
25
|
-
>
|
|
26
|
-
<option value="false">false</option>
|
|
27
|
-
<option value="true">true</option>
|
|
28
|
-
</select>
|
|
29
|
-
</div>
|
|
30
|
-
<!-- <div v-if="props.data.type === 'select'" class="select">-->
|
|
31
|
-
<!-- <select-->
|
|
32
|
-
<!-- v-model="valueLocal"-->
|
|
33
|
-
<!-- @change="onChangeSetting($event)"-->
|
|
34
|
-
<!-- :class="{ 'has-error': invalid }"-->
|
|
35
|
-
<!-- >-->
|
|
36
|
-
<!-- <option-->
|
|
37
|
-
<!-- v-for="item2 in props.data.options"-->
|
|
38
|
-
<!-- :key="item2.key"-->
|
|
39
|
-
<!-- :value="item2.key"-->
|
|
40
|
-
<!-- >-->
|
|
41
|
-
<!-- {{ item2.value }}-->
|
|
42
|
-
<!-- </option>-->
|
|
43
|
-
<!-- </select>-->
|
|
44
|
-
<!-- </div>-->
|
|
45
|
-
</template>
|
|
46
|
-
<template #content>
|
|
47
|
-
{{ props.errorMessage }}
|
|
48
|
-
</template>
|
|
49
|
-
</atoms-tooltip-error>
|
|
50
|
-
</template>
|
|
51
|
-
|
|
52
|
-
<script setup lang="ts">
|
|
53
|
-
import type { UI_I_AdvancedSystemSettingsEditData } from '~/components/common/configure/advancedSystemSettings/tableView/old/lib/models/interfaces'
|
|
54
|
-
|
|
55
|
-
const valueLocal = defineModel<any>('value', {
|
|
56
|
-
required: true,
|
|
57
|
-
})
|
|
58
|
-
const props = defineProps<{
|
|
59
|
-
data: UI_I_AdvancedSystemSettingsEditData
|
|
60
|
-
invalid: boolean
|
|
61
|
-
errorMessage: string
|
|
62
|
-
}>()
|
|
63
|
-
|
|
64
|
-
const emits = defineEmits<{
|
|
65
|
-
(event: 'change', value: UI_I_AdvancedSystemSettingsEditData['value']): void
|
|
66
|
-
}>()
|
|
67
|
-
</script>
|
|
68
|
-
|
|
69
|
-
<style scoped lang="scss">
|
|
70
|
-
.has-error {
|
|
71
|
-
border: 1px solid #db2100;
|
|
72
|
-
}
|
|
73
|
-
</style>
|
package/components/common/configure/advancedSystemSettings/tableView/field/lib/models/enums.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export enum UI_E_Format {
|
|
2
|
-
'unix path' = 'unixPath',
|
|
3
|
-
'win path' = 'winPath',
|
|
4
|
-
'mac' = 'mac',
|
|
5
|
-
'ip4' = 'ip4',
|
|
6
|
-
'ip6' = 'ip6',
|
|
7
|
-
'url' = 'url',
|
|
8
|
-
'uuid' = 'uuid',
|
|
9
|
-
'semver' = 'semver',
|
|
10
|
-
'domain' = 'domain',
|
|
11
|
-
'base64' = 'base64',
|
|
12
|
-
'regex' = 'regex',
|
|
13
|
-
'hex color' = 'hexColor',
|
|
14
|
-
}
|
package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/index.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_DataTableBody,
|
|
3
|
-
UI_I_DataTableOptions,
|
|
4
|
-
UI_I_DataTableHeader,
|
|
5
|
-
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
6
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
|
-
import type { UI_I_AdvancedSystemSetting } from '~/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces'
|
|
8
|
-
|
|
9
|
-
export const getHeaderDataFunc = (
|
|
10
|
-
localization: UI_I_Localization,
|
|
11
|
-
isEdit: boolean
|
|
12
|
-
): UI_I_DataTableHeader[] => [
|
|
13
|
-
{
|
|
14
|
-
col: 'col0',
|
|
15
|
-
colName: 'key',
|
|
16
|
-
text: localization.advancedSystemSettings.key,
|
|
17
|
-
isSortable: true,
|
|
18
|
-
sort: 'asc',
|
|
19
|
-
width: isEdit ? '50%' : '15%',
|
|
20
|
-
show: true,
|
|
21
|
-
filter: false,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
col: 'col1',
|
|
25
|
-
colName: 'value',
|
|
26
|
-
text: localization.advancedSystemSettings.value,
|
|
27
|
-
isSortable: true,
|
|
28
|
-
sort: 'asc',
|
|
29
|
-
width: isEdit ? '50%' : '15%',
|
|
30
|
-
show: true,
|
|
31
|
-
filter: false,
|
|
32
|
-
},
|
|
33
|
-
...(!isEdit
|
|
34
|
-
? [
|
|
35
|
-
{
|
|
36
|
-
col: 'col2',
|
|
37
|
-
colName: 'summary',
|
|
38
|
-
text: localization.advancedSystemSettings.summary,
|
|
39
|
-
isSortable: true,
|
|
40
|
-
sort: 'asc',
|
|
41
|
-
width: '70%',
|
|
42
|
-
show: true,
|
|
43
|
-
filter: false,
|
|
44
|
-
},
|
|
45
|
-
]
|
|
46
|
-
: []),
|
|
47
|
-
]
|
|
48
|
-
export const optionsFunc = (isEdit: boolean): UI_I_DataTableOptions => ({
|
|
49
|
-
selectType: 'checkbox',
|
|
50
|
-
perPageOptions: [
|
|
51
|
-
{ text: '20', value: 20, default: true },
|
|
52
|
-
{ text: '50', value: 50 },
|
|
53
|
-
{ text: '100', value: 100 },
|
|
54
|
-
],
|
|
55
|
-
inBlock: !isEdit,
|
|
56
|
-
isSelectable: false,
|
|
57
|
-
showPagination: !isEdit,
|
|
58
|
-
showPageInfo: !isEdit,
|
|
59
|
-
isSortable: true,
|
|
60
|
-
server: false,
|
|
61
|
-
isResizable: true,
|
|
62
|
-
showSearch: false,
|
|
63
|
-
showColumnManager: !isEdit,
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
export const getBodyDataFunc = (
|
|
67
|
-
items: UI_I_AdvancedSystemSetting[],
|
|
68
|
-
isEdit: boolean
|
|
69
|
-
): UI_I_DataTableBody[] => {
|
|
70
|
-
const result: UI_I_DataTableBody[] = []
|
|
71
|
-
|
|
72
|
-
items.forEach((item: UI_I_AdvancedSystemSetting, key: number) => {
|
|
73
|
-
const editData = {
|
|
74
|
-
key: item.key,
|
|
75
|
-
type: item.type,
|
|
76
|
-
value: item.value,
|
|
77
|
-
validation: item.validation,
|
|
78
|
-
// options: item.options,
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
result.push({
|
|
82
|
-
row: key,
|
|
83
|
-
data: [
|
|
84
|
-
{
|
|
85
|
-
key: 'col0',
|
|
86
|
-
col: 'col0',
|
|
87
|
-
text: item.key,
|
|
88
|
-
testId: `advanced-system-settings-table-item-${key}`,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
key: isEdit ? 'value' : 'col1',
|
|
92
|
-
col: 'col1',
|
|
93
|
-
text: item.value,
|
|
94
|
-
testId: `advanced-system-settings-table-item-${key}`,
|
|
95
|
-
data: isEdit ? editData : null,
|
|
96
|
-
},
|
|
97
|
-
...(!isEdit
|
|
98
|
-
? [
|
|
99
|
-
{
|
|
100
|
-
key: 'col2',
|
|
101
|
-
col: 'col2',
|
|
102
|
-
text: item.summary,
|
|
103
|
-
testId: `advanced-system-settings-table-item-${key}`,
|
|
104
|
-
},
|
|
105
|
-
]
|
|
106
|
-
: []),
|
|
107
|
-
],
|
|
108
|
-
})
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
return result
|
|
112
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/components/common/monitor/advanced/table/{new → tableNew}/lib/utils/constructBody.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|