bfg-common 1.4.838 → 1.4.839

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 (76) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/assets/localization/local_be.json +5 -16
  6. package/assets/localization/local_en.json +7 -19
  7. package/assets/localization/local_hy.json +5 -16
  8. package/assets/localization/local_kk.json +5 -16
  9. package/assets/localization/local_ru.json +6 -17
  10. package/assets/localization/local_zh.json +5 -16
  11. package/components/atoms/collapse/CollapseNav.vue +4 -4
  12. package/components/atoms/dropdown/dropdown/Dropdown.vue +0 -12
  13. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
  14. package/components/atoms/table/dataGrid/lib/utils/export.ts +1 -1
  15. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  16. package/components/common/browse/lib/models/interfaces.ts +5 -5
  17. package/components/common/diagramMain/Header.vue +211 -211
  18. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  19. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  20. package/components/common/diagramMain/lib/models/types.ts +21 -21
  21. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  22. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  23. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  24. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  25. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  26. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  27. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  28. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  29. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  30. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  31. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  32. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  33. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  34. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  35. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  36. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  37. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  38. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  39. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  40. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  41. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  42. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  43. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  44. package/components/common/diagramMain/port/Ports.vue +47 -47
  45. package/components/common/graph/GraphNew.vue +176 -144
  46. package/components/common/modals/confirmByInput/ConfirmByInput.vue +177 -57
  47. package/components/common/monitor/advanced/Advanced.vue +170 -244
  48. package/components/common/monitor/advanced/AdvancedNew.vue +206 -0
  49. package/components/common/monitor/advanced/AdvancedOld.vue +243 -0
  50. package/components/common/monitor/advanced/{GraphView.vue → graphView/GraphView.vue} +170 -180
  51. package/components/common/monitor/advanced/graphView/GraphViewNew.vue +35 -0
  52. package/components/common/monitor/advanced/graphView/GraphViewOld.vue +56 -0
  53. package/components/common/monitor/advanced/table/Table.vue +31 -93
  54. package/components/common/monitor/advanced/table/tableNew/TableNew.vue +85 -0
  55. package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +139 -0
  56. package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +27 -0
  57. package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -0
  58. package/components/common/monitor/advanced/tools/Tools.vue +163 -447
  59. package/components/common/monitor/advanced/tools/ToolsNew.vue +366 -0
  60. package/components/common/monitor/advanced/tools/ToolsOld.vue +447 -0
  61. package/components/common/pages/tasks/Tasks.vue +1 -3
  62. package/components/common/pages/tasks/table/Table.vue +0 -1
  63. package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +7 -23
  64. package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +0 -1
  65. package/components/common/pages/tasks/table/lib/config/config.ts +2 -2
  66. package/components/common/portlets/customAttributes/Portlet.vue +2 -9
  67. package/components/common/portlets/customAttributes/lib/config/config.ts +0 -7
  68. package/components/common/portlets/tag/Portlet.vue +2 -9
  69. package/components/common/portlets/tag/lib/config/config.ts +0 -7
  70. package/components/common/tools/Actions.vue +2 -5
  71. package/lib/config/uiTable.ts +20 -0
  72. package/lib/models/store/interfaces.ts +0 -1
  73. package/package.json +3 -3
  74. package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +0 -103
  75. package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +0 -204
  76. /package/components/common/monitor/advanced/table/{lib → tableOld/lib}/config/performanceDatatable.ts +0 -0
@@ -2,7 +2,6 @@ import type {
2
2
  UI_I_DataTableOptions,
3
3
  UI_I_DataTableBody,
4
4
  UI_I_DataTableHeader,
5
- UI_I_DataTableSkeleton,
6
5
  } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
7
6
  import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
8
7
  import type { UI_I_Localization } from '~/lib/models/interfaces'
@@ -200,9 +199,3 @@ export const tagsAssignBodyItemsTemporary: UI_I_DataTableBody[] = [
200
199
  ],
201
200
  },
202
201
  ]
203
-
204
- export const skeletonData: UI_I_DataTableSkeleton = {
205
- columnsCount: 3,
206
- withoutPagination: true,
207
- withoutHeader: true,
208
- }
@@ -20,7 +20,7 @@
20
20
  :disabled="button.disabled"
21
21
  :multiple="button?.multiple || false"
22
22
  class="btn-group__file"
23
- @change="(event) => onSelectFiles(event, button.type, key)"
23
+ @change="(event) => onSelectFiles(event, button.type)"
24
24
  />
25
25
  </label>
26
26
 
@@ -69,11 +69,8 @@ const onClickButton = (type: string): void => {
69
69
  emits('click', type)
70
70
  }
71
71
 
72
- const onSelectFiles = (event: Event, type: string, key: number): void => {
72
+ const onSelectFiles = (event: Event, type: string): void => {
73
73
  emits('click', type, event)
74
-
75
- const input = document.getElementById(`select-file-button-${key}`) as HTMLInputElement | null
76
- input && (input.value = '')
77
74
  }
78
75
 
79
76
  const visibleCount = ref<number>(props.actions.length)
@@ -0,0 +1,20 @@
1
+ import type { UI_I_TableTexts } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
2
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
3
+
4
+ // TODO поменять все :texts для таблицы нового дизайна
5
+ export const tableTextsFunc = (
6
+ localization: UI_I_Localization
7
+ ): UI_I_TableTexts => {
8
+ return {
9
+ rowsPerPage: localization.common.rowsPerPage,
10
+ of: localization.common.of,
11
+ searchHere: localization.common.searchHere,
12
+ selected: localization.common.selected,
13
+ columns: localization.common.columns,
14
+ previous: localization.common.previous,
15
+ next: localization.common.next,
16
+ noItemsFound: localization.common.noItemsFound,
17
+ exportSelected: localization.common.exportSelected,
18
+ exportAll: localization.common.exportAll,
19
+ }
20
+ }
@@ -8,7 +8,6 @@ export interface UI_I_ErrorValidationField<T = string> {
8
8
  export interface API_UI_I_Response<T> {
9
9
  response: {
10
10
  _data: T
11
- status: number
12
11
  }
13
12
  }
14
13
  export interface API_UI_I_Error {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.838",
4
+ "version": "1.4.839",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -34,8 +34,8 @@
34
34
  "@nuxtjs/eslint-config-typescript": "^12.0.0",
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
- "bfg-nuxt-3-graph": "1.0.17",
38
- "bfg-uikit": "1.0.348",
37
+ "bfg-nuxt-3-graph": "1.0.20",
38
+ "bfg-uikit": "1.0.347",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }
@@ -1,103 +0,0 @@
1
- <template>
2
- <ui-popup
3
- :test-id="props.testId"
4
- icon-name="info-status"
5
- :message="props.description"
6
- :texts="modalTextsLocal"
7
- @submit="onSubmit"
8
- @hide="onHide"
9
- >
10
- <template #content>
11
- <div class="confirm-modal__body-content">
12
- <span>{{ props.title }}</span>
13
- <span>{{ props.description }}</span>
14
-
15
- <ui-input
16
- v-model="confirmationFormLocal"
17
- :test-id="`${props.testId}-confirm-input`"
18
- :placeholder="localization.vsphereNa.nodeIPAddress"
19
- :error="confirmInputErrorText"
20
- class="confirm-modal__input"
21
- input-style="rounded"
22
- size="md"
23
- />
24
- </div>
25
- </template>
26
- </ui-popup>
27
- </template>
28
-
29
- <script setup lang="ts">
30
- import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
31
- import type { UI_I_Localization } from '~/lib/models/interfaces'
32
-
33
- const props = defineProps<{
34
- testId: string
35
- title: string
36
- description: string
37
- subTitle: string
38
- isValid: boolean
39
- modalTexts: UI_I_ModalTexts
40
- }>()
41
- const confirmationFormLocal = defineModel<string>({ required: true })
42
- const emits = defineEmits<{
43
- (event: 'confirm'): void
44
- (event: 'hide-modal'): void
45
- }>()
46
-
47
- const localization = computed<UI_I_Localization>(() => useLocal())
48
-
49
- const modalTextsLocal = computed<UI_I_ModalTexts>(() => props.modalTexts)
50
-
51
- const isShowConfirmError = ref<boolean>(false)
52
-
53
- const confirmInputErrorText = computed<string>(() => {
54
- if (!isShowConfirmError.value) return ''
55
-
56
- const { fieldRequired, incorrectConfirmation } = localization.value.common
57
-
58
- return !confirmationFormLocal.value
59
- ? fieldRequired
60
- : !props.isValid
61
- ? incorrectConfirmation.replace('{0}', props.subTitle)
62
- : ''
63
- })
64
- const onHide = (): void => {
65
- emits('hide-modal')
66
- }
67
- const onSubmit = (): void => {
68
- isShowConfirmError.value = true
69
-
70
- if (!confirmationFormLocal.value) {
71
- return
72
- }
73
-
74
- emits('confirm')
75
- }
76
- </script>
77
-
78
- <style scoped lang="scss">
79
- .confirm-modal {
80
- &__body-content {
81
- padding: 16px 32px;
82
- span {
83
- display: block;
84
- font-size: 14px;
85
- font-weight: 400;
86
- line-height: 16.94px;
87
- text-align: center;
88
- color: #9da6ad;
89
-
90
- &:first-of-type {
91
- font-size: 20px;
92
- font-weight: 500;
93
- line-height: 24.2px;
94
- color: var(--modal-title);
95
- margin-bottom: 8px;
96
- }
97
- }
98
- }
99
- &__input {
100
- margin-top: 16px;
101
- }
102
- }
103
- </style>
@@ -1,204 +0,0 @@
1
- <template>
2
- <atoms-modal
3
- show
4
- :test-id="`${props.testId}-modal`"
5
- :width="props.width"
6
- class="confirm-by-input"
7
- :title="props.title"
8
- :second-title="props.subTitle"
9
- :loading="props.loading"
10
- is-hide-close-icon
11
- @submit="onConfirm"
12
- >
13
- <template #modalBody>
14
- <div class="confirm-by-input__body">
15
- <atoms-the-icon
16
- name="exclamation-triangle"
17
- class="confirm-by-input__icon"
18
- />
19
-
20
- <div>
21
- <slot name="content"></slot>
22
-
23
- <div class="form-group">
24
- <label class="no-selection" for="confirmation">
25
- {{ confirmationText }}
26
- </label>
27
- <div class="form-group__input">
28
- <input
29
- id="confirmation"
30
- v-model="confirmationFormLocal"
31
- data-id="confirmation-input"
32
- type="text"
33
- autocomplete="off"
34
- @keyup.enter="onConfirm"
35
- />
36
- <div
37
- v-show="!props.isValid && confirmationFormLocal"
38
- class="form-validate"
39
- >
40
- <atoms-tooltip :test-id="`${props.testId}-tooltip`">
41
- <template #elem>
42
- <atoms-the-icon
43
- class="is-error tooltip-trigger"
44
- name="info"
45
- width="28px"
46
- height="28px"
47
- />
48
- </template>
49
- <template #content>
50
- {{ confirmDeletionInputError }}
51
- </template>
52
- </atoms-tooltip>
53
- </div>
54
- </div>
55
- </div>
56
- </div>
57
- </div>
58
- </template>
59
- <template #modalFooter>
60
- <button
61
- id="confirm-by-input-modal-close-button"
62
- :data-id="`${props.testId}-modal-close-button`"
63
- class="btn btn-outline"
64
- @click="onHide"
65
- >
66
- {{ localization.common.no }}
67
- </button>
68
- <button
69
- id="confirm-by-input-modal-apply-button"
70
- :data-id="`${props.testId}-modal-apply-button`"
71
- class="btn btn-primary"
72
- :class="props.loading && 'modal-dialog__loader'"
73
- :disabled="!props.isValid || props.loading"
74
- @click="onConfirm"
75
- >
76
- <atoms-loader-pre-loader
77
- v-if="props.loading"
78
- id="loader"
79
- :show="props.loading"
80
- class="button__loading"
81
- :test-id="`${props.testId}-spinner`"
82
- />
83
- <span v-else>
84
- {{ localization.common.yes }}
85
- </span>
86
- </button>
87
- </template>
88
- </atoms-modal>
89
- </template>
90
-
91
- <script setup lang="ts">
92
- import type { UI_I_Localization } from '~/lib/models/interfaces'
93
-
94
- const props = defineProps<{
95
- title: string
96
- subTitle: string
97
- isValid: boolean
98
- testId: string
99
- width: string
100
- loading?: boolean
101
- }>()
102
- const confirmationFormLocal = defineModel<string>({ required: true })
103
- const emits = defineEmits<{
104
- (event: 'confirm'): void
105
- (event: 'hide'): void
106
- }>()
107
-
108
- const localization = computed<UI_I_Localization>(() => useLocal())
109
-
110
- const confirmationText = localization.value.common.confirmDeletionInput.replace(
111
- '{title}',
112
- props.subTitle
113
- )
114
- const confirmDeletionInputError =
115
- localization.value.common.confirmDeletionInputError.replace(
116
- '{title}',
117
- props.subTitle
118
- )
119
-
120
- const onConfirm = (): void => {
121
- emits('confirm')
122
- }
123
-
124
- const onHide = (): void => {
125
- emits('hide')
126
- }
127
- </script>
128
-
129
- <style lang="scss" scoped>
130
- @import 'assets/scss/common/mixins.scss';
131
- .confirm-by-input {
132
- :deep(.modal-header) {
133
- display: flex;
134
- justify-content: space-between;
135
- align-items: flex-start;
136
-
137
- .modal-title {
138
- color: var(--main-color-mode);
139
- font-size: 24px;
140
- max-width: 65%;
141
- }
142
- .secondary-title {
143
- color: var(--modal-secondary-title);
144
- font-size: 0.75rem;
145
- font-weight: lighter;
146
- user-select: none;
147
- }
148
- .separator {
149
- content: '';
150
- border-left: 1px solid #ccc;
151
- margin: 0 18px;
152
- height: 22px;
153
- }
154
-
155
- .close-icon {
156
- fill: var(--close-icon);
157
- width: 24px;
158
- height: 24px;
159
- }
160
- }
161
-
162
- &__body {
163
- @include flex($align: flex-start);
164
-
165
- .form-group {
166
- margin-top: 20px;
167
-
168
- label {
169
- font-weight: bold;
170
- font-size: 0.6rem;
171
- user-select: none;
172
- }
173
-
174
- &:not(:first-child) input {
175
- width: 100%;
176
- }
177
- &__input {
178
- display: flex;
179
- width: 100%;
180
- min-height: 30px;
181
- }
182
- }
183
- }
184
-
185
- &__icon {
186
- min-width: 48px;
187
- height: 48px;
188
- margin-right: 20px;
189
- fill: #c27b00;
190
- }
191
-
192
- .button {
193
- &__loading {
194
- :deep(.spinner) {
195
- width: 25px;
196
- height: 25px;
197
- min-width: 25px;
198
- min-height: 25px;
199
- margin-top: 5px;
200
- }
201
- }
202
- }
203
- }
204
- </style>