bfg-common 1.4.58 → 1.4.60
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/components/common/wizards/datastore/add/Add.vue +232 -362
- package/components/common/wizards/{datastoreNew → datastore}/add/lib/config/steps.ts +3 -0
- package/components/common/wizards/datastore/add/lib/models/interfaces.ts +11 -30
- package/components/common/wizards/datastore/add/lib/models/types.ts +0 -7
- package/components/common/wizards/datastore/add/lib/utils.ts +14 -54
- package/components/common/wizards/{datastoreNew → datastore}/add/lib/validations.ts +2 -2
- package/components/common/wizards/datastore/add/local/Local.vue +19 -45
- package/components/common/wizards/datastore/add/local/createName/CreateName.vue +31 -81
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +25 -74
- package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +15 -56
- package/components/common/wizards/datastore/add/nfs/accessibility/lib/models/interfaces.ts +0 -4
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/TablesView.vue +9 -66
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +1 -1
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +57 -214
- package/components/common/wizards/datastore/add/nfs/configuration/lib/models/interfaces.ts +4 -11
- package/components/common/wizards/datastore/add/nfs/version/Version.vue +3 -19
- package/components/common/wizards/datastore/add/nfs/version/lib/config/versionOptions.ts +4 -4
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +3 -10
- package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +37 -95
- package/components/common/wizards/datastore/add/sharedStorm/SharedStorm.vue +32 -45
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +64 -267
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/config/selectOptions.ts +5 -5
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces.ts +1 -11
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/types.ts +1 -14
- package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/Table.vue +2 -2
- package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/lib/config/lunDiskTable.ts +1 -1
- package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/lib/config/tableKeys.ts +1 -1
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +13 -13
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/lib/config/selectOptions.ts +8 -8
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/sizeGraphic/sizeGraphic.vue +2 -2
- package/components/common/wizards/datastore/add/types/Types.vue +18 -17
- package/components/common/wizards/datastore/add/types/lib/config/typeOptions.ts +7 -16
- package/lib/models/enums.ts +1 -0
- package/package.json +1 -1
- package/components/common/wizards/datastore/add/lib/config/stepItems.ts +0 -225
- package/components/common/wizards/datastore/add/local/createName/lib/config/defaultForm.ts +0 -15
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +0 -53
- package/components/common/wizards/datastore/add/nfs/configuration/lib/config/defaultForm.ts +0 -33
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/DeletePopover.vue +0 -100
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +0 -124
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/serversListConfig.ts +0 -40
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/tableKeys.ts +0 -3
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/models/interfaces.ts +0 -11
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +0 -55
- package/components/common/wizards/datastore/add/readyComplete/lib/models/interfaces.ts +0 -4
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +0 -144
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/hostsTable.ts +0 -87
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/tableKeys.ts +0 -11
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/config/defaultForm.ts +0 -18
- package/components/common/wizards/datastore/add/sharedStorm/version/Version.vue +0 -39
- package/components/common/wizards/datastoreNew/add/Add.vue +0 -307
- package/components/common/wizards/datastoreNew/add/lib/models/interfaces.ts +0 -19
- package/components/common/wizards/datastoreNew/add/lib/models/types.ts +0 -7
- package/components/common/wizards/datastoreNew/add/lib/utils.ts +0 -64
- package/components/common/wizards/datastoreNew/add/local/Local.vue +0 -45
- package/components/common/wizards/datastoreNew/add/local/createName/CreateName.vue +0 -116
- package/components/common/wizards/datastoreNew/add/nfs/Nfs.vue +0 -63
- package/components/common/wizards/datastoreNew/add/nfs/_kerberosAuthentication/lib/config/radioOptions.ts +0 -27
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/Accessibility.vue +0 -63
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/lib/config/tabsPannel.ts +0 -24
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/lib/models/interfaces.ts +0 -9
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/lib/models/types.ts +0 -5
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/TablesView.vue +0 -85
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +0 -62
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/lib/config/incompatibleTable.ts +0 -68
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/lib/config/tableKeys.ts +0 -15
- package/components/common/wizards/datastoreNew/add/nfs/configuration/Configuration.vue +0 -236
- package/components/common/wizards/datastoreNew/add/nfs/configuration/_serversList/lib/models/types.ts +0 -1
- package/components/common/wizards/datastoreNew/add/nfs/configuration/lib/models/interfaces.ts +0 -5
- package/components/common/wizards/datastoreNew/add/nfs/version/Version.vue +0 -26
- package/components/common/wizards/datastoreNew/add/nfs/version/lib/config/versionOptions.ts +0 -22
- package/components/common/wizards/datastoreNew/add/readyComplete/ReadyComplete.vue +0 -88
- package/components/common/wizards/datastoreNew/add/readyComplete/lib/config/propertiesDetails.ts +0 -140
- package/components/common/wizards/datastoreNew/add/sharedStorm/SharedStorm.vue +0 -84
- package/components/common/wizards/datastoreNew/add/sharedStorm/_version/lib/config/versionOptions.ts +0 -21
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/DeviceSelection.vue +0 -276
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/lib/config/selectOptions.ts +0 -23
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/lib/models/interfaces.ts +0 -48
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/lib/models/types.ts +0 -1
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +0 -236
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/graphicTooltip/graphicTooltip.vue +0 -64
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/lib/config/selectOptions.ts +0 -46
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/sizeGraphic/sizeGraphic.vue +0 -225
- package/components/common/wizards/datastoreNew/add/types/Types.vue +0 -83
- package/components/common/wizards/datastoreNew/add/types/lib/config/typeOptions.ts +0 -41
- /package/components/common/wizards/{datastoreNew → datastore}/add/lib/models/enums.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/_kerberosAuthentication/KerberosAuthentication.vue +0 -0
- /package/components/common/wizards/datastore/add/nfs/{kerberosAuthentication → _kerberosAuthentication}/lib/config/radioOptions.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/accessibility/tablesView/lib/models/interfaces.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/DeletePopover.vue +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/ServersList.vue +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/lib/config/serversListConfig.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/lib/config/tableKeys.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/lib/models/interfaces.ts +0 -0
- /package/components/common/wizards/datastore/add/nfs/configuration/{serversList → _serversList}/lib/models/types.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/_version/Version.vue +0 -0
- /package/components/common/wizards/datastore/add/sharedStorm/{version → _version}/lib/config/versionOptions.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/lib/models/types.ts +0 -0
package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="servers-list">
|
|
3
|
-
<atoms-table-data-grid
|
|
4
|
-
v-model:selected-row="selectedDisk"
|
|
5
|
-
v-model:page-size="pagination.pageSize"
|
|
6
|
-
v-model:page="pagination.page"
|
|
7
|
-
type="any"
|
|
8
|
-
class="data-table"
|
|
9
|
-
test-id="servers-list-table"
|
|
10
|
-
:head-items="headItems"
|
|
11
|
-
:body-items="bodyItems"
|
|
12
|
-
:total-items="1"
|
|
13
|
-
:total-pages="1"
|
|
14
|
-
off-select-by-row
|
|
15
|
-
:loading="loading"
|
|
16
|
-
hide-footer
|
|
17
|
-
>
|
|
18
|
-
<template #type="{ item }">
|
|
19
|
-
<div class="data-table__action-icon">
|
|
20
|
-
<atoms-popover
|
|
21
|
-
test-id="servers-list"
|
|
22
|
-
@click="onShowTooltipForRemove(item)"
|
|
23
|
-
>
|
|
24
|
-
<template #elem>
|
|
25
|
-
<atoms-the-icon name="ellipsis-vertical" />
|
|
26
|
-
</template>
|
|
27
|
-
<template #content>
|
|
28
|
-
<common-wizards-datastore-add-nfs-configuration-servers-list-delete-popover
|
|
29
|
-
v-if="showTooltip && item[0].id === selectedServerForRemove"
|
|
30
|
-
class="data-table__popover"
|
|
31
|
-
@hide="showTooltip = false"
|
|
32
|
-
@click-item="onRemoveServerFromList(item)"
|
|
33
|
-
/>
|
|
34
|
-
</template>
|
|
35
|
-
</atoms-popover>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
</atoms-table-data-grid>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script lang="ts" setup>
|
|
43
|
-
import type {
|
|
44
|
-
UI_I_HeadItem,
|
|
45
|
-
UI_I_BodyItem,
|
|
46
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
47
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
48
|
-
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
49
|
-
import type { UI_I_DataServersListItem } from '~/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/models/interfaces'
|
|
50
|
-
import * as serversTable from '~/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/serversListConfig'
|
|
51
|
-
|
|
52
|
-
const props = defineProps<{
|
|
53
|
-
dataTable: UI_I_DataServersListItem[] | []
|
|
54
|
-
loading?: boolean
|
|
55
|
-
}>()
|
|
56
|
-
const emits = defineEmits<{
|
|
57
|
-
(event: 'update:data-table', value: UI_I_DataServersListItem[]): void
|
|
58
|
-
}>()
|
|
59
|
-
|
|
60
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
61
|
-
|
|
62
|
-
const selectedDisk = ref<number | null>(null)
|
|
63
|
-
|
|
64
|
-
const pagination = ref<UI_I_Pagination>({
|
|
65
|
-
page: 1,
|
|
66
|
-
pageSize: 34,
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
// const columnKeys = ref<UI_I_ColumnKey[]>(serversTable.columnKeys(localization.value))
|
|
70
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
71
|
-
serversTable.headItems(localization.value)
|
|
72
|
-
)
|
|
73
|
-
|
|
74
|
-
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
75
|
-
watch(
|
|
76
|
-
() => props.dataTable,
|
|
77
|
-
(newValue) => {
|
|
78
|
-
if (!newValue?.length) {
|
|
79
|
-
bodyItems.value = []
|
|
80
|
-
return
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
bodyItems.value = serversTable.bodyItems(newValue)
|
|
84
|
-
},
|
|
85
|
-
{ deep: true, immediate: true }
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
const selectedServerForRemove = ref<number | null>(null)
|
|
89
|
-
const showTooltip = ref<boolean>(false)
|
|
90
|
-
const onShowTooltipForRemove = (server: UI_I_BodyItem[]): void => {
|
|
91
|
-
selectedServerForRemove.value = server[0].id
|
|
92
|
-
showTooltip.value = true
|
|
93
|
-
}
|
|
94
|
-
const onRemoveServerFromList = (removeItem: UI_I_BodyItem[]): void => {
|
|
95
|
-
const { text } = removeItem[0]
|
|
96
|
-
|
|
97
|
-
const serverList = props.dataTable.filter(
|
|
98
|
-
(server: UI_I_DataServersListItem) => server.server_name !== text
|
|
99
|
-
)
|
|
100
|
-
emits('update:data-table', serverList)
|
|
101
|
-
showTooltip.value = false
|
|
102
|
-
}
|
|
103
|
-
</script>
|
|
104
|
-
|
|
105
|
-
<style lang="scss" scoped>
|
|
106
|
-
.servers-list {
|
|
107
|
-
height: inherit;
|
|
108
|
-
.data-table {
|
|
109
|
-
&__action-icon {
|
|
110
|
-
width: 16px;
|
|
111
|
-
height: 16px;
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
position: relative;
|
|
114
|
-
fill: var(--ellipsis-vertical-icon-color);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
height: inherit;
|
|
118
|
-
:deep(.datagrid-outer-wrapper) {
|
|
119
|
-
height: inherit;
|
|
120
|
-
padding-top: 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
</style>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_HeadItem,
|
|
3
|
-
UI_I_BodyItem,
|
|
4
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
5
|
-
import {
|
|
6
|
-
constructHeadItem,
|
|
7
|
-
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
8
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
9
|
-
import { serversTableItemsKeys } from '~/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/tableKeys'
|
|
10
|
-
|
|
11
|
-
const getItems = (
|
|
12
|
-
localization: UI_I_Localization
|
|
13
|
-
): [string, boolean, string, string][] => {
|
|
14
|
-
return [
|
|
15
|
-
[localization.common.serversToBeAdded, true, '96px', serversTableItemsKeys[0]],
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
20
|
-
const result: UI_I_HeadItem[] = []
|
|
21
|
-
getItems(localization).forEach((item) => {
|
|
22
|
-
const col = 'type'
|
|
23
|
-
result.push(constructHeadItem(col, item[0], item[3], false, item[2]))
|
|
24
|
-
})
|
|
25
|
-
return result
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const bodyItems = (data: any[]): UI_I_BodyItem[][] => {
|
|
29
|
-
const bodyItems: UI_I_BodyItem[][] = []
|
|
30
|
-
data.forEach((server, key) => {
|
|
31
|
-
bodyItems.push([
|
|
32
|
-
{
|
|
33
|
-
key: 'col0',
|
|
34
|
-
text: server[serversTableItemsKeys[0]],
|
|
35
|
-
id: key,
|
|
36
|
-
},
|
|
37
|
-
])
|
|
38
|
-
})
|
|
39
|
-
return bodyItems
|
|
40
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Validation } from '~/lib/models/plugins/validation/interfaces'
|
|
2
|
-
|
|
3
|
-
export interface UI_I_FormValidationConfiguration {
|
|
4
|
-
name: UI_I_Validation
|
|
5
|
-
folder: UI_I_Validation
|
|
6
|
-
server: UI_I_Validation
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface UI_I_DataServersListItem {
|
|
10
|
-
server_name: string
|
|
11
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="kerberos-auth">
|
|
3
|
-
<atoms-alert
|
|
4
|
-
v-show="isShowAlert"
|
|
5
|
-
test-id="kerberos-authentication"
|
|
6
|
-
status="alert-warning"
|
|
7
|
-
:items="[localization.common.kerberosAuthenticationAlert]"
|
|
8
|
-
@remove="isShowAlert = false"
|
|
9
|
-
/>
|
|
10
|
-
|
|
11
|
-
<div class="kerberos-auth__inner">
|
|
12
|
-
<div v-for="item in kerberosTypes" :key="item.value" class="radio">
|
|
13
|
-
<input
|
|
14
|
-
:id="item.label"
|
|
15
|
-
v-model="kerberosType"
|
|
16
|
-
:data-id="item.testId"
|
|
17
|
-
type="radio"
|
|
18
|
-
:value="item.value"
|
|
19
|
-
/>
|
|
20
|
-
<label :for="item.label">
|
|
21
|
-
{{ item.label }}
|
|
22
|
-
</label>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script lang="ts" setup>
|
|
29
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
30
|
-
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
|
31
|
-
import type { UI_T_KerberosAuthentication } from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
32
|
-
import { kerberosOptionsFunc } from '~/components/common/wizards/datastore/add/nfs/kerberosAuthentication/lib/config/radioOptions'
|
|
33
|
-
|
|
34
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
35
|
-
|
|
36
|
-
const kerberosType = ref<UI_T_KerberosAuthentication>('dont-use')
|
|
37
|
-
const isShowAlert = ref<boolean>(true)
|
|
38
|
-
|
|
39
|
-
const kerberosTypes = readonly<UI_I_RadioOption[]>(
|
|
40
|
-
kerberosOptionsFunc(localization.value)
|
|
41
|
-
)
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<style lang="scss" scoped>
|
|
45
|
-
.kerberos-auth {
|
|
46
|
-
&__inner {
|
|
47
|
-
margin-top: 12px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
input[type='radio']:focus:checked + label::before,
|
|
52
|
-
input[type='radio']:focus + label::before {
|
|
53
|
-
box-shadow: inset 0 0 0 0.25rem #0094d2;
|
|
54
|
-
}
|
|
55
|
-
</style>
|
package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="data-table-view">
|
|
3
|
-
<atoms-table-data-grid
|
|
4
|
-
v-model:selected-row="selectedDisk"
|
|
5
|
-
v-model:column-keys="columnKeys"
|
|
6
|
-
v-model:page-size="pagination.pageSize"
|
|
7
|
-
v-model:page="pagination.page"
|
|
8
|
-
type="checkbox"
|
|
9
|
-
class="data-table"
|
|
10
|
-
test-id="device-selection-lun-disk-table"
|
|
11
|
-
:head-items="headItems"
|
|
12
|
-
:body-items="bodyItems"
|
|
13
|
-
:total-items="props.totalItems"
|
|
14
|
-
:total-pages="props.totalPages"
|
|
15
|
-
:loading="loading"
|
|
16
|
-
:is-main-filter="props.isMainFilter"
|
|
17
|
-
:main-filter-placeholder="localization.common.filter"
|
|
18
|
-
hide-page-size
|
|
19
|
-
@filtering="filtering"
|
|
20
|
-
@main-filter="onMainFiltering"
|
|
21
|
-
@sorting="sorting"
|
|
22
|
-
>
|
|
23
|
-
<template #icon="{ item }">
|
|
24
|
-
<span :class="['datagrid-cell-icon', item.data.iconClassName]" />
|
|
25
|
-
<span class="text-ellipsis">
|
|
26
|
-
{{ item.text }}
|
|
27
|
-
</span>
|
|
28
|
-
</template>
|
|
29
|
-
</atoms-table-data-grid>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script lang="ts" setup>
|
|
34
|
-
import { useDebounceFn } from '@vueuse/core'
|
|
35
|
-
import type {
|
|
36
|
-
UI_I_HeadItem,
|
|
37
|
-
UI_I_ColumnKey,
|
|
38
|
-
UI_I_BodyItem,
|
|
39
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
40
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
41
|
-
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
42
|
-
// import { optionsDefault as itemsPerPage } from '~/node_modules/nuxt-3-uikit/components/atoms/table/dataGrid/config'
|
|
43
|
-
import type { UI_I_CreateStorageLunDiskItem } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
44
|
-
import * as hostsTable from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/hostsTable'
|
|
45
|
-
|
|
46
|
-
const props = defineProps<{
|
|
47
|
-
dataTable: UI_I_CreateStorageLunDiskItem[]
|
|
48
|
-
selected: number[] | null
|
|
49
|
-
loading: boolean
|
|
50
|
-
totalItems: number
|
|
51
|
-
totalPages: number
|
|
52
|
-
pagination: UI_I_Pagination
|
|
53
|
-
isMainFilter?: boolean
|
|
54
|
-
}>()
|
|
55
|
-
const emits = defineEmits<{
|
|
56
|
-
(event: 'update:selected', value: number[] | null): void
|
|
57
|
-
(event: 'pagination', value: UI_I_Pagination): void
|
|
58
|
-
(event: 'sort', value: string): void
|
|
59
|
-
(event: 'main-filter', value: string): void
|
|
60
|
-
}>()
|
|
61
|
-
|
|
62
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
63
|
-
|
|
64
|
-
const selectedDisk = computed<number[] | null>({
|
|
65
|
-
get() {
|
|
66
|
-
return props.selected
|
|
67
|
-
},
|
|
68
|
-
set(value) {
|
|
69
|
-
emits('update:selected', value)
|
|
70
|
-
},
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
const filtering = (e: [string, string][]): void => {
|
|
74
|
-
console.log(e, 111)
|
|
75
|
-
}
|
|
76
|
-
const sorting = (e: [number, boolean]): void => {
|
|
77
|
-
const [column, status] = e
|
|
78
|
-
const direction = status ? 'desc' : 'asc'
|
|
79
|
-
|
|
80
|
-
const sort = `${column}.${direction}`
|
|
81
|
-
|
|
82
|
-
emits('sort', sort)
|
|
83
|
-
}
|
|
84
|
-
const sendFilter = useDebounceFn((searchText: string) => {
|
|
85
|
-
emits('main-filter', searchText)
|
|
86
|
-
}, 1000)
|
|
87
|
-
const onMainFiltering = (data: string): void => {
|
|
88
|
-
sendFilter(data)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const pagination = ref<UI_I_Pagination>({
|
|
92
|
-
page: 1,
|
|
93
|
-
pageSize: 1,
|
|
94
|
-
})
|
|
95
|
-
watch(
|
|
96
|
-
() => props.pagination,
|
|
97
|
-
(newValue) => {
|
|
98
|
-
pagination.value = newValue
|
|
99
|
-
},
|
|
100
|
-
{ immediate: true }
|
|
101
|
-
)
|
|
102
|
-
watch(
|
|
103
|
-
pagination,
|
|
104
|
-
(newValue) => {
|
|
105
|
-
emits('pagination', newValue)
|
|
106
|
-
},
|
|
107
|
-
{ deep: true, immediate: true }
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
const columnKeys = ref<UI_I_ColumnKey[]>(
|
|
111
|
-
hostsTable.columnKeys(localization.value)
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
115
|
-
hostsTable.headItems(localization.value)
|
|
116
|
-
)
|
|
117
|
-
|
|
118
|
-
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
119
|
-
watch(
|
|
120
|
-
() => props.dataTable,
|
|
121
|
-
(newValue) => {
|
|
122
|
-
if (!newValue?.length) {
|
|
123
|
-
bodyItems.value = []
|
|
124
|
-
return
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
bodyItems.value = hostsTable.bodyItems(newValue)
|
|
128
|
-
},
|
|
129
|
-
{ deep: true, immediate: true }
|
|
130
|
-
)
|
|
131
|
-
</script>
|
|
132
|
-
|
|
133
|
-
<style lang="scss" scoped>
|
|
134
|
-
.data-table-view {
|
|
135
|
-
height: inherit;
|
|
136
|
-
overflow: hidden;
|
|
137
|
-
.data-table {
|
|
138
|
-
height: inherit;
|
|
139
|
-
:deep(.datagrid-outer-wrapper) {
|
|
140
|
-
height: inherit;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
</style>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_HeadItem,
|
|
3
|
-
UI_I_ColumnKey,
|
|
4
|
-
UI_I_BodyItem,
|
|
5
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
6
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
|
-
import {
|
|
8
|
-
constructHeadItem,
|
|
9
|
-
constructColumnKey,
|
|
10
|
-
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
11
|
-
import type { UI_I_CreateStorageLunDiskItem } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
12
|
-
import { hostTableItemsKeys } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/tableKeys'
|
|
13
|
-
|
|
14
|
-
const getItems = (
|
|
15
|
-
localization: UI_I_Localization
|
|
16
|
-
): [string, boolean, string, string][] => {
|
|
17
|
-
return [
|
|
18
|
-
[localization.common.name, true, '180px', hostTableItemsKeys[0]],
|
|
19
|
-
[localization.common.identifier, false, '96px', hostTableItemsKeys[1]],
|
|
20
|
-
[localization.common.lun, true, '96px', hostTableItemsKeys[2]],
|
|
21
|
-
[localization.common.capacity, true, '96px', hostTableItemsKeys[3]],
|
|
22
|
-
[localization.common.hardwareAcceleration, true, '96px', hostTableItemsKeys[4]],
|
|
23
|
-
[localization.common.driveType, true, '96px', hostTableItemsKeys[5]],
|
|
24
|
-
[localization.common.sectorFormat, true, '96px', hostTableItemsKeys[6]],
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
export const columnKeys = (localization: UI_I_Localization): UI_I_ColumnKey[] => {
|
|
28
|
-
const result: UI_I_ColumnKey[] = []
|
|
29
|
-
getItems(localization).forEach((item, i) => {
|
|
30
|
-
const col = `col${i}`
|
|
31
|
-
result.push(constructColumnKey(col, item[0], item[1]))
|
|
32
|
-
})
|
|
33
|
-
return result
|
|
34
|
-
}
|
|
35
|
-
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
36
|
-
const result: UI_I_HeadItem[] = []
|
|
37
|
-
getItems(localization).forEach((item, i) => {
|
|
38
|
-
const col = `col${i}`
|
|
39
|
-
result.push(constructHeadItem(col, item[0], item[3], false, item[2]))
|
|
40
|
-
})
|
|
41
|
-
return result
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const bodyItems = (data: UI_I_CreateStorageLunDiskItem[]): UI_I_BodyItem[][] => {
|
|
45
|
-
const bodyItems: UI_I_BodyItem[][] = []
|
|
46
|
-
const { $binary } = useNuxtApp()
|
|
47
|
-
data.forEach((host: UI_I_CreateStorageLunDiskItem, key) => {
|
|
48
|
-
bodyItems.push([
|
|
49
|
-
{
|
|
50
|
-
key: 'col0',
|
|
51
|
-
text: host[hostTableItemsKeys[0]],
|
|
52
|
-
id: key,
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
key: 'col1',
|
|
56
|
-
text: host[hostTableItemsKeys[1]],
|
|
57
|
-
id: key,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: 'col2',
|
|
61
|
-
text: host[hostTableItemsKeys[2]],
|
|
62
|
-
id: key,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
key: 'col3',
|
|
66
|
-
text: $binary.round(host[hostTableItemsKeys[3]]),
|
|
67
|
-
id: key,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
key: 'col4',
|
|
71
|
-
text: host[hostTableItemsKeys[4]],
|
|
72
|
-
id: key,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
key: 'col5',
|
|
76
|
-
text: host[hostTableItemsKeys[5]],
|
|
77
|
-
id: key,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
key: 'col6',
|
|
81
|
-
text: host[hostTableItemsKeys[6]],
|
|
82
|
-
id: key,
|
|
83
|
-
},
|
|
84
|
-
])
|
|
85
|
-
})
|
|
86
|
-
return bodyItems
|
|
87
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { UI_T_HostTableItemsKey } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/types'
|
|
2
|
-
|
|
3
|
-
export const hostTableItemsKeys: UI_T_HostTableItemsKey[] = [
|
|
4
|
-
'name',
|
|
5
|
-
'identifier',
|
|
6
|
-
'lun',
|
|
7
|
-
'capacity_mb',
|
|
8
|
-
'hardware_acceleration',
|
|
9
|
-
'drive_type',
|
|
10
|
-
'sector_format',
|
|
11
|
-
]
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_FormValidationDataStore } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
3
|
-
|
|
4
|
-
export const defaultFormFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_FormValidationDataStore => {
|
|
7
|
-
return {
|
|
8
|
-
name: {
|
|
9
|
-
value: 'Datastore',
|
|
10
|
-
validations: [
|
|
11
|
-
{
|
|
12
|
-
value: 'required',
|
|
13
|
-
errorText: localization.common.specifyDatastoreName,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="nfs-version">
|
|
3
|
-
<common-select-radio-group
|
|
4
|
-
v-model="selectedVersion"
|
|
5
|
-
:options="vmfsVersion"
|
|
6
|
-
/>
|
|
7
|
-
</section>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script lang="ts" setup>
|
|
11
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
12
|
-
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
|
13
|
-
import type { UI_T_VmfsType } from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
14
|
-
import { vmfsVersionFunc } from '~/components/common/wizards/datastore/add/sharedStorm/version/lib/config/versionOptions'
|
|
15
|
-
|
|
16
|
-
const props = defineProps<{
|
|
17
|
-
version: UI_T_VmfsType
|
|
18
|
-
}>()
|
|
19
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
20
|
-
const emits = defineEmits<{
|
|
21
|
-
(event: 'update:version', value: UI_T_VmfsType): void
|
|
22
|
-
}>()
|
|
23
|
-
|
|
24
|
-
const vmfsVersion = ref<UI_I_RadioOption[]>(vmfsVersionFunc(localization.value))
|
|
25
|
-
|
|
26
|
-
const selectedVersion = computed<UI_T_VmfsType>({
|
|
27
|
-
get() {
|
|
28
|
-
return props.version
|
|
29
|
-
},
|
|
30
|
-
set(newValue) {
|
|
31
|
-
emits('update:version', newValue)
|
|
32
|
-
},
|
|
33
|
-
})
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<style lang="scss" scoped>
|
|
37
|
-
.nfs-version {
|
|
38
|
-
}
|
|
39
|
-
</style>
|