bfg-common 1.0.95 → 1.0.97

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.
Files changed (66) hide show
  1. package/components/atoms/alert/Notification.vue +167 -167
  2. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  3. package/components/atoms/datepicker/Datepicker.vue +612 -612
  4. package/components/atoms/list/SelectList.vue +62 -62
  5. package/components/atoms/nav/NavBar.vue +116 -116
  6. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  7. package/components/atoms/notificationBar/NotificationBar.vue +174 -174
  8. package/components/atoms/perPage/PerPage.vue +52 -52
  9. package/components/atoms/popup/SimplePopup.vue +90 -90
  10. package/components/atoms/step/VerticalStep.vue +104 -104
  11. package/components/atoms/switch/Switch.vue +107 -107
  12. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
  13. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  14. package/components/atoms/tabs/Tabs.vue +189 -189
  15. package/components/atoms/tooltip/Signpost.vue +224 -224
  16. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  17. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  18. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  19. package/components/common/browse/Browse.vue +182 -182
  20. package/components/common/browse/blocks/Title.vue +66 -66
  21. package/components/common/content/navbar/left/Left.vue +139 -139
  22. package/components/common/content/navbar/left/utils/constructAccordion.ts +27 -27
  23. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  24. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  25. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  26. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  27. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  28. package/components/common/diagramMain/network/Contents.vue +238 -238
  29. package/components/common/feedback/Buttons.vue +232 -232
  30. package/components/common/feedback/Message.vue +468 -468
  31. package/components/common/feedback/VisitPortal.vue +54 -54
  32. package/components/common/home/Card.vue +63 -0
  33. package/components/common/home/ResourceBlock.vue +117 -0
  34. package/components/common/home/StatusContent.vue +47 -0
  35. package/components/common/home/alertsTable/AlertsTable.vue +105 -0
  36. package/components/common/home/alertsTable/config/config.ts +61 -0
  37. package/components/common/home/alertsTable/models/enums.ts +11 -0
  38. package/components/common/home/alertsTable/models/interfaces.ts +19 -0
  39. package/components/common/home/alertsTable/models/types.ts +17 -0
  40. package/components/common/home/config/configResourceMeterBlock.ts +25 -0
  41. package/components/common/home/models/interfaces.ts +59 -0
  42. package/components/common/home/models/types.ts +18 -0
  43. package/components/common/home/servicesTable/ServicesTable.vue +79 -0
  44. package/components/common/home/servicesTable/config/config.ts +62 -0
  45. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  46. package/components/common/modals/Rename.vue +165 -165
  47. package/components/common/perPage/PerPage.vue +51 -51
  48. package/components/common/recursionTree/RecursionTree.vue +201 -201
  49. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
  50. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  51. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  52. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  53. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  54. package/models/store/storage/interfaces.ts +32 -32
  55. package/modules/fixContentBuild/index.ts +117 -65
  56. package/package.json +1 -1
  57. package/public/spice-console/application/codec.js +257 -257
  58. package/public/spice-console/lib/rasterEngine.js +907 -907
  59. package/public/spice-console/network/spicechannel.js +369 -369
  60. package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
  61. package/public/spice-console-minify/lib/jgestures.min.js +24 -24
  62. package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
  63. package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
  64. package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
  65. package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
  66. package/utils/contentBuild.ts +0 -34
@@ -0,0 +1,79 @@
1
+ <template>
2
+ <div class="most-alert">
3
+ <atoms-table-data-grid
4
+ v-model:selected-row="selectedRow"
5
+ v-model:page-size="pageSize"
6
+ v-model:page="page"
7
+ class="data-table"
8
+ :head-items="headItems"
9
+ :body-items="bodyItems"
10
+ :total-items="bodyItems.length"
11
+ :total-pages="1"
12
+ off-select-by-row
13
+ hide-page-size
14
+ show-page-info
15
+ server-off
16
+ >
17
+ <template #icon="{ item }">
18
+ <span :class="['datagrid-cell-icon', item.data.iconClassName]" />
19
+ <span class="text-ellipsis">
20
+ {{ item.text }}
21
+ </span>
22
+ </template>
23
+ </atoms-table-data-grid>
24
+ </div>
25
+ </template>
26
+
27
+ <script setup lang="ts">
28
+ import type {
29
+ UI_I_HeadItem,
30
+ UI_I_BodyItem,
31
+ } from '~/components/atoms/table/dataGrid/models/interfaces'
32
+ import type { UI_T_SelectedRow } from '~/components/atoms/table/dataGrid/models/types'
33
+ import type { UI_I_Localization } from '~/models/interfaces'
34
+ import type { UI_I_Service } from '~/components/common/home/models/interfaces'
35
+ import * as table from '~/components/common/home/servicesTable/config/config'
36
+
37
+ const props = defineProps<{
38
+ dataTable: UI_I_Service[]
39
+ }>()
40
+
41
+ const localization = computed<UI_I_Localization>(() => useLocal())
42
+
43
+ const selectedRow = ref<UI_T_SelectedRow>(null)
44
+ const headItems = computed<UI_I_HeadItem[]>(() =>
45
+ table.headItems(localization.value)
46
+ )
47
+ const bodyItems = ref<UI_I_BodyItem[][]>([])
48
+ watch(
49
+ () => props.dataTable,
50
+ (newValue) => {
51
+ if (!newValue?.length) {
52
+ bodyItems.value = []
53
+ return
54
+ }
55
+
56
+ bodyItems.value = table.bodyItems(newValue)
57
+ },
58
+ { deep: true, immediate: true }
59
+ )
60
+ const page = ref<number>(1)
61
+ const pageSize = ref<number>(1)
62
+ </script>
63
+
64
+ <style lang="scss" scoped>
65
+ .most-alert {
66
+ margin: 0;
67
+ border: none;
68
+
69
+ :deep(.datagrid-outer-wrapper) {
70
+ padding: 0;
71
+
72
+ .datagrid {
73
+ margin: 0;
74
+ border: unset;
75
+ min-height: 200px;
76
+ }
77
+ }
78
+ }
79
+ </style>
@@ -0,0 +1,62 @@
1
+ import type {
2
+ UI_I_BodyItem,
3
+ UI_I_HeadItem,
4
+ } from '~/components/atoms/table/dataGrid/models/interfaces'
5
+ import type { UI_I_Localization } from '~/models/interfaces'
6
+ import { constructHeadItem } from '~/components/atoms/table/dataGrid/utils/constructDataTable'
7
+ import type { UI_T_ServiceColumnKeys } from '~/components/common/home/models/types'
8
+ import type { UI_I_Service } from '~/components/common/home/models/interfaces'
9
+
10
+ export const servicesTableKeys: UI_T_ServiceColumnKeys[] = [
11
+ 'item',
12
+ 'statusText',
13
+ 'statusIcon',
14
+ 'version',
15
+ ]
16
+
17
+ const getItems = (
18
+ localization: UI_I_Localization
19
+ ): [string, boolean, string, string][] => {
20
+ return [
21
+ [localization.item, true, '34%', servicesTableKeys[0]],
22
+ [localization.status, true, '33%', servicesTableKeys[1]],
23
+ [localization.version, true, '33%', servicesTableKeys[2]],
24
+ ]
25
+ }
26
+
27
+ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
28
+ const result: UI_I_HeadItem[] = []
29
+ getItems(localization).forEach((item, i) => {
30
+ const col = i === 1 ? 'icon' : `col${i + 1}`
31
+ result.push(constructHeadItem(col, item[0], item[3], true, item[2]))
32
+ })
33
+ return result
34
+ }
35
+
36
+ export const bodyItems = (data: UI_I_Service[]): UI_I_BodyItem[][] => {
37
+ const bodyItems: UI_I_BodyItem[][] = []
38
+ data.forEach((service: UI_I_Service, key) => {
39
+ const statusData = {
40
+ iconClassName: `vsphere-icon-status-${service.statusIcon}`,
41
+ }
42
+ bodyItems.push([
43
+ {
44
+ key: 'col1',
45
+ text: service[servicesTableKeys[0]].toString(),
46
+ id: key,
47
+ },
48
+ {
49
+ key: 'icon',
50
+ text: service[servicesTableKeys[1]].toString(),
51
+ data: statusData,
52
+ id: key,
53
+ },
54
+ {
55
+ key: 'col3',
56
+ text: service[servicesTableKeys[2]].toString(),
57
+ id: key,
58
+ },
59
+ ])
60
+ })
61
+ return bodyItems
62
+ }