bfg-common 1.5.93 → 1.5.95

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 (146) hide show
  1. package/assets/scss/common/normalize.scss +9 -1
  2. package/components/atoms/alert/Notification.vue +2 -4
  3. package/components/atoms/autocomplete/Autocomplete.vue +5 -6
  4. package/components/atoms/collapse/CollapseNav.vue +7 -3
  5. package/components/atoms/collapse/CollapseNavItem.vue +1 -1
  6. package/components/atoms/comboDropdownMenu/ComboDropdownMenu.vue +1 -1
  7. package/components/atoms/combobox/Combobox.vue +4 -4
  8. package/components/atoms/datepicker/Datepicker.vue +10 -10
  9. package/components/atoms/dropdown/Portlet.vue +1 -2
  10. package/components/atoms/dropdown/dropdown/Dropdown.vue +3 -3
  11. package/components/atoms/dropdown/tree/Tree.vue +3 -3
  12. package/components/atoms/list/SelectList.vue +1 -1
  13. package/components/atoms/list/dragDropList/DragDropList.vue +18 -9
  14. package/components/atoms/modal/Modal.vue +5 -3
  15. package/components/atoms/modal/bySteps/BySteps.vue +8 -8
  16. package/components/atoms/nav/NavBar.vue +1 -1
  17. package/components/atoms/nav/VerticalNavBar.vue +1 -1
  18. package/components/atoms/notificationBar/NotificationBar.vue +2 -2
  19. package/components/atoms/popover/Popover.vue +3 -5
  20. package/components/atoms/popover/lib/models/interfaces.ts +4 -0
  21. package/components/atoms/select/TheSelect.vue +5 -4
  22. package/components/atoms/stack/StackBlock.vue +1 -1
  23. package/components/atoms/stack/StackContent.vue +1 -1
  24. package/components/atoms/step/VerticalStep.vue +1 -1
  25. package/components/atoms/step/lib/models/verticalStepItem.ts +1 -3
  26. package/components/atoms/switch/Switch.vue +6 -6
  27. package/components/atoms/table/compact/Compact.vue +23 -20
  28. package/components/atoms/table/dataGrid/DataGrid.vue +27 -24
  29. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +5 -5
  30. package/components/atoms/table/dataGrid/DataGridPage.vue +6 -8
  31. package/components/atoms/table/info/Info.vue +2 -2
  32. package/components/atoms/table/simpleEvent/SimpleEvent.vue +1 -1
  33. package/components/atoms/table/simpleInfo/SimpleInfo.vue +1 -1
  34. package/components/atoms/tabs/Tabs.vue +4 -2
  35. package/components/atoms/tooltip/Signpost.vue +1 -0
  36. package/components/atoms/tooltip/Tooltip.vue +1 -1
  37. package/components/atoms/tooltip/TooltipError.vue +1 -0
  38. package/components/atoms/wizard/Wizard.vue +1 -1
  39. package/components/atoms/wizard/step/Step.vue +1 -1
  40. package/components/common/accordion/Recursion.vue +2 -2
  41. package/components/common/adapterManager/AddAdapterModal.vue +2 -2
  42. package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +1 -1
  43. package/components/common/adapterManager/ui/table/Adapters.vue +1 -1
  44. package/components/common/adapterManager/ui/table/Header.vue +1 -1
  45. package/components/common/adapterManager/ui/table/Table.vue +4 -4
  46. package/components/common/browse/Browse.vue +1 -1
  47. package/components/common/browse/BrowseNew.vue +3 -3
  48. package/components/common/browse/BrowseOld.vue +3 -3
  49. package/components/common/browse/blocks/TitleNew.vue +4 -4
  50. package/components/common/browse/blocks/TitleOld.vue +5 -5
  51. package/components/common/browse/blocks/contents/Files.vue +1 -1
  52. package/components/common/browse/blocks/contents/FilesOld.vue +2 -2
  53. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +1 -1
  54. package/components/common/browse/blocks/info/Date.vue +1 -0
  55. package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +1 -1
  56. package/components/common/context/Context.vue +1 -1
  57. package/components/common/context/recursion/RecursionOld.vue +2 -2
  58. package/components/common/details/DetailsItem.vue +1 -1
  59. package/components/common/details/lib/models/interfaces.ts +1 -0
  60. package/components/common/feedback/Buttons.vue +1 -1
  61. package/components/common/feedback/Feedback.vue +4 -2
  62. package/components/common/feedback/Message.vue +5 -5
  63. package/components/common/feedback/VisitPortal.vue +1 -0
  64. package/components/common/graph/graphNew/GraphNew.vue +2 -2
  65. package/components/common/graph/lib/utils/renderGraph.ts +1 -1
  66. package/components/common/layout/theHeader/feedback/new/New.vue +1 -1
  67. package/components/common/layout/theHeader/feedback/new/additionalDetails/AdditionalDetails.vue +9 -7
  68. package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +2 -3
  69. package/components/common/layout/theHeader/feedback/new/description/Description.vue +1 -1
  70. package/components/common/layout/theHeader/feedback/new/email/Email.vue +1 -1
  71. package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +2 -3
  72. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +2 -2
  73. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +2 -7
  74. package/components/common/layout/theHeader/helpMenu/helpMenuOld/HelpMenuOld.vue +1 -1
  75. package/components/common/layout/theHeader/modals/Reconnect.vue +2 -2
  76. package/components/common/layout/theHeader/modals/RedirectLogin.vue +3 -3
  77. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +1 -1
  78. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +8 -8
  79. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordOld.vue +3 -3
  80. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +1 -1
  81. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesOld.vue +1 -1
  82. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +1 -1
  83. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguageNew.vue +1 -1
  84. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguageOld.vue +2 -5
  85. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsoleOld.vue +1 -1
  86. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/InventoryNew.vue +1 -1
  87. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +2 -2
  88. package/components/common/layout/theHeader/userMenu/userMenuNew/lib/config/dropMenu.ts +1 -1
  89. package/components/common/layout/theHeader/userMenu/userMenuOld/UserMenuOld.vue +1 -1
  90. package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +2 -2
  91. package/components/common/modals/Rename.vue +2 -2
  92. package/components/common/modals/confirmByInput/ConfirmByInput.vue +2 -3
  93. package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +3 -3
  94. package/components/common/modals/confirmation/ConfirmationOld.vue +1 -1
  95. package/components/common/modals/unsavedChanges/UnsavedChanges.vue +1 -1
  96. package/components/common/monitor/advanced/Advanced.vue +1 -1
  97. package/components/common/monitor/advanced/AdvancedNew.vue +1 -1
  98. package/components/common/monitor/advanced/AdvancedOld.vue +1 -1
  99. package/components/common/monitor/advanced/graphView/GraphViewNew.vue +1 -1
  100. package/components/common/monitor/advanced/graphView/GraphViewOld.vue +1 -1
  101. package/components/common/monitor/advanced/table/Table.vue +1 -1
  102. package/components/common/monitor/advanced/table/tableNew/TableNew.vue +2 -2
  103. package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +2 -2
  104. package/components/common/monitor/advanced/tools/ToolsOld.vue +2 -2
  105. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +1 -1
  106. package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +1 -1
  107. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +1 -1
  108. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
  109. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +1 -1
  110. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig.ts +2 -2
  111. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +10 -3
  112. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +1 -1
  113. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +2 -2
  114. package/components/common/monitor/advanced/tools/lib/utils/countCores.ts +1 -1
  115. package/components/common/monitor/lib/models/interfaces.ts +1 -1
  116. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalOld.vue +3 -3
  117. package/components/common/monitor/overview/filters/customIntervalModal/customIntervalModalNew/CustomIntervalModalNew.vue +4 -3
  118. package/components/common/monitor/resourceAllocation/lib/models/interfaces.ts +8 -8
  119. package/components/common/monitor/resourceAllocation/resourceAllocation.vue +2 -2
  120. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +1 -1
  121. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/Notification.vue +1 -1
  122. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
  123. package/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable.ts +1 -1
  124. package/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable.ts +5 -5
  125. package/components/common/wizards/datastore/add/Add.vue +0 -1
  126. package/components/common/wizards/datastore/add/New.vue +1 -16
  127. package/components/common/wizards/datastore/add/lib/models/interfaces.ts +1 -1
  128. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces.ts +0 -10
  129. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +78 -223
  130. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +19 -188
  131. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +199 -12
  132. package/components/common/wizards/datastore/add/steps/nameAndDevice/lib/config/selectOptions.ts +6 -3
  133. package/components/common/wizards/datastore/add/steps/nameAndDevice/lib/models/interfaces.ts +1 -11
  134. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/Table.vue +22 -33
  135. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/lib/models/interfaces.ts +14 -0
  136. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/new/New.vue +118 -0
  137. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/new/lib/config/lunDiskTable.ts +86 -0
  138. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +133 -0
  139. package/components/common/wizards/datastore/add/steps/readyComplete/ReadyCompleteNew.vue +1 -0
  140. package/components/common/wizards/datastore/add/steps/readyComplete/lib/config/propertiesDetails.ts +9 -3
  141. package/package.json +1 -1
  142. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/types.ts +0 -1
  143. package/components/common/wizards/datastore/add/steps/nameAndDevice/lib/models/types.ts +0 -1
  144. /package/components/common/wizards/datastore/add/steps/nameAndDevice/table/{lib → old/lib}/config/lunDiskTable.ts +0 -0
  145. /package/components/common/wizards/datastore/add/steps/nameAndDevice/table/{lib → old/lib}/config/tableKeys.ts +0 -0
  146. /package/components/common/wizards/datastore/add/steps/nameAndDevice/table/{lib → old/lib}/models/types.ts +0 -0
@@ -21,9 +21,9 @@
21
21
  <button
22
22
  :id="`${props.testId}-step-button-${key}`"
23
23
  :data-id="`${item.testId}-step-button`"
24
- class="btn btn-link clr-wizard-stepnav-link"
25
24
  :style="{ 'margin-left': '8px' }"
26
25
  :disabled="item.disabled"
26
+ class="btn btn-link clr-wizard-stepnav-link"
27
27
  @click="changeStep(key)"
28
28
  >
29
29
  <span class="clr-wizard-stepnav-link-title">{{ item.text }}</span>
@@ -1,7 +1,5 @@
1
- interface UI_I_VerticalStepItem {
1
+ export interface UI_I_VerticalStepItem {
2
2
  text: string
3
3
  disabled: boolean
4
4
  complete: boolean
5
5
  }
6
-
7
- export default UI_I_VerticalStepItem
@@ -2,7 +2,7 @@
2
2
  <div class="flex-align-center">
3
3
  <div class="switch-body">
4
4
  <input :id="props.testId" v-model="value" type="checkbox" />
5
- <label class="switch-label" :for="props.testId"></label>
5
+ <label :for="props.testId" class="switch-label"></label>
6
6
  </div>
7
7
  <label :for="props.testId"><slot></slot></label>
8
8
  </div>
@@ -10,11 +10,11 @@
10
10
 
11
11
  <script setup lang="ts">
12
12
  const props = withDefaults(
13
- defineProps<{
14
- modelValue: boolean
15
- testId?: string
16
- }>(),
17
- { testId: 'ui-switch' }
13
+ defineProps<{
14
+ modelValue: boolean
15
+ testId?: string
16
+ }>(),
17
+ { testId: 'ui-switch' }
18
18
  )
19
19
 
20
20
  const emits = defineEmits<{
@@ -10,12 +10,12 @@
10
10
  <div class="datagrid-row-master datagrid-row-flex">
11
11
  <div class="datagrid-row-scrollable">
12
12
  <div
13
- v-for="(item, key) in props.headItems"
14
- :key="key"
15
- :style="{
13
+ v-for="(item, key) in props.headItems"
14
+ :key="key"
15
+ :style="{
16
16
  width: columnsWidth[key],
17
17
  }"
18
- class="datagrid-column datagrid-fixed-width"
18
+ class="datagrid-column datagrid-fixed-width"
19
19
  >
20
20
  <div class="datagrid-column-flex">
21
21
  <div class="datagrid-column-title">
@@ -34,21 +34,21 @@
34
34
  </div>
35
35
  <template v-if="props.bodyItems.length">
36
36
  <div
37
- v-for="(item, key) in props.bodyItems"
38
- :key="key"
39
- :class="['datagrid-body-row datagrid-row animation']"
37
+ v-for="(item, key) in props.bodyItems"
38
+ :key="key"
39
+ :class="['datagrid-body-row datagrid-row animation']"
40
40
  >
41
41
  <div>
42
42
  <div class="datagrid-row-master datagrid-row-flex">
43
43
  <div class="datagrid-row-scrollable">
44
44
  <div class="datagrid-scrolling-cells">
45
45
  <div
46
- v-for="(item2, key2) in item"
47
- :key="item2"
48
- class="datagrid-cell datagrid-fixed-width"
49
- :style="{
46
+ v-for="(item2, key2) in item"
47
+ :key="item2"
48
+ :style="{
50
49
  width: `${columnsWidth[key2]}`,
51
50
  }"
51
+ class="datagrid-cell datagrid-fixed-width"
52
52
  >
53
53
  <div class="flex-align-center h-100">
54
54
  <slot :name="item2.key" :item="item2">
@@ -87,14 +87,14 @@
87
87
  import type { UI_I_HeadItem } from '~/components/atoms/table/compact/lib/models/interfaces'
88
88
 
89
89
  const props = withDefaults(
90
- defineProps<{
91
- headItems: UI_I_HeadItem[]
92
- bodyItems: any // don't know what array fields will be
93
- loading?: boolean
94
- }>(),
95
- {
96
- loading: false,
97
- }
90
+ defineProps<{
91
+ headItems: UI_I_HeadItem[]
92
+ bodyItems: any // don't know what array fields will be
93
+ loading?: boolean
94
+ }>(),
95
+ {
96
+ loading: false,
97
+ }
98
98
  )
99
99
 
100
100
  const columnsWidth = ref<string[]>([])
@@ -111,7 +111,10 @@ const setDataGridWidth = (): void => {
111
111
  }
112
112
 
113
113
  const emptyWidthCount = props.headItems.filter((item) => !item.width).length
114
- const existWidthsSum = props.headItems.reduce((acum, item) => acum += item.width, 0)
114
+ const existWidthsSum = props.headItems.reduce(
115
+ (acum, item) => (acum += item.width),
116
+ 0
117
+ )
115
118
  const equalGridWidth = (dataGridWidth - existWidthsSum) / emptyWidthCount
116
119
  props.headItems.forEach((item) => {
117
120
  const elementMax = Math.max(equalGridWidth, item.width)
@@ -54,9 +54,9 @@
54
54
  :id="`${props.testId}-${inputId}-all`"
55
55
  v-model="selectedAll"
56
56
  :data-id="`${props.testId}-filter-all`"
57
+ :value="-1"
57
58
  type="checkbox"
58
59
  class="checkbox-btn"
59
- :value="-1"
60
60
  @change="changeAll"
61
61
  />
62
62
  <label
@@ -149,9 +149,9 @@
149
149
  <atoms-popup-simple-popup
150
150
  v-model="filterShow[key]"
151
151
  :test-id="`${props.testId}-filter`"
152
- top="100%"
153
152
  :left="key === 0 ? '0' : ''"
154
153
  :right="key !== 0 ? '0' : ''"
154
+ top="100%"
155
155
  >
156
156
  <input
157
157
  :id="`${props.testId}-filter-input-${key}`"
@@ -257,8 +257,8 @@
257
257
  <slot
258
258
  v-if="props.type"
259
259
  :key="key"
260
- name="type"
261
260
  :item="item"
261
+ name="type"
262
262
  >
263
263
  <div
264
264
  :class="
@@ -313,7 +313,10 @@
313
313
  </div>
314
314
  </div>
315
315
  </div>
316
- <div class="datagrid-row-scrollable">
316
+ <div
317
+ :data-id="`${item[0].testId}-select-row-scrollable`"
318
+ class="datagrid-row-scrollable"
319
+ >
317
320
  <div class="datagrid-scrolling-cells">
318
321
  <div
319
322
  v-for="(item2, key2) in item"
@@ -487,8 +490,8 @@
487
490
 
488
491
  <atoms-loader
489
492
  v-show="props.loading"
490
- class="datagrid-spinner"
491
493
  :test-id="`${props.testId}-spinner`"
494
+ class="datagrid-spinner"
492
495
  />
493
496
  </div>
494
497
  </div>
@@ -621,9 +624,9 @@ const columnKeysLocal = computed<UI_T_ColumnKeys>({
621
624
  })
622
625
 
623
626
  const selectedAll = ref<boolean>(false)
624
- const changeAll = (e: UI_I_HTMLSelectElement): void => {
627
+ const changeAll = (event: UI_I_HTMLSelectElement): void => {
625
628
  const newSelectedRow: (number | string)[] = []
626
- if (e.target.checked) {
629
+ if (event.target.checked) {
627
630
  bodyItemsPresent.value.forEach((row) => {
628
631
  if (row[0]?.disabled) return
629
632
 
@@ -642,7 +645,7 @@ let memoryWidth = '0'
642
645
  const showedInfoRow = ref<UI_I_BodyItem | null>(null)
643
646
  const showedInfoCol = ref<UI_I_BodyItem[] | null>(null)
644
647
 
645
- const isShowInfo = computed(
648
+ const isShowInfo = computed<boolean>(
646
649
  () =>
647
650
  showedInfoRow.value &&
648
651
  showedInfoRow.value.id === props.selectedRow &&
@@ -719,7 +722,7 @@ const selectRowById = (item: UI_I_BodyItem): void => {
719
722
  emits('update:selected-row', id)
720
723
  }
721
724
  const changeSelectedRow = (
722
- e: UI_I_HTMLSelectElement,
725
+ event: UI_I_HTMLSelectElement,
723
726
  id: number | string
724
727
  ): void => {
725
728
  if (props.type === 'checkbox' && Array.isArray(selectedRowLocal.value)) {
@@ -727,7 +730,7 @@ const changeSelectedRow = (
727
730
  emits('change', newSelectedRow)
728
731
  emits('update:selected-row', newSelectedRow)
729
732
 
730
- changeSelectedAll(e.target.checked)
733
+ changeSelectedAll(event.target.checked)
731
734
  return
732
735
  }
733
736
 
@@ -819,7 +822,7 @@ const bodyItemsPresent = computed<UI_I_BodyItem[][]>(() => {
819
822
  return {
820
823
  ...item,
821
824
  // Если текст пустой нужно поставить '--' для экспорта
822
- text: item.text !== '' ? item.text : '--'
825
+ text: item.text !== '' ? item.text : '--',
823
826
  }
824
827
  })
825
828
  })
@@ -972,15 +975,15 @@ watch(
972
975
 
973
976
  const grabColumn = ref<number>(-1)
974
977
  const grabStartX = ref<number>(0)
975
- const setGrab = (key: number, e: MouseEvent): void => {
978
+ const setGrab = (key: number, event: MouseEvent): void => {
976
979
  if (props.withInfo && key === 0) return
977
980
 
978
981
  if (!isShowHiddenInfo.value) {
979
982
  grabColumn.value = key
980
983
  const currentWidth = parseInt(columnsWidth.value[grabColumn.value][0])
981
- grabStartX.value = e.clientX - currentWidth
984
+ grabStartX.value = event.clientX - currentWidth
982
985
  if (isRtl.value) {
983
- grabStartX.value = e.clientX + currentWidth
986
+ grabStartX.value = event.clientX + currentWidth
984
987
  }
985
988
  }
986
989
  }
@@ -997,17 +1000,17 @@ const mouseup = (): void => {
997
1000
  }
998
1001
 
999
1002
  let resizeObserve: ResizeObserver
1000
- let mousemove = (e: MouseEvent): void => {
1003
+ let mousemove = (event: MouseEvent): void => {
1001
1004
  if (grabColumn.value === -1) return
1002
1005
 
1003
- e.preventDefault()
1006
+ event.preventDefault()
1004
1007
  isDrag.value = true
1005
1008
  resizeObserve.disconnect()
1006
1009
 
1007
1010
  const minWidth = parseInt(columnsWidth.value[grabColumn.value][1])
1008
- let changeX = Math.max(e.clientX - grabStartX.value, minWidth)
1011
+ let changeX = Math.max(event.clientX - grabStartX.value, minWidth)
1009
1012
  if (isRtl.value) {
1010
- changeX = Math.max(grabStartX.value - e.clientX, minWidth)
1013
+ changeX = Math.max(grabStartX.value - event.clientX, minWidth)
1011
1014
  }
1012
1015
 
1013
1016
  columnsWidth.value[grabColumn.value] = [`${changeX}px`, `${minWidth}px`]
@@ -1015,15 +1018,15 @@ let mousemove = (e: MouseEvent): void => {
1015
1018
  mousemove = useThrottle(mousemove)
1016
1019
 
1017
1020
  const setResizeObserve = (): void => {
1018
- const el = document.getElementById(outerWrapper)
1021
+ const element = document.getElementById(outerWrapper)
1019
1022
 
1020
- if (!el) {
1023
+ if (!element) {
1021
1024
  setTimeout(setResizeObserve, 0)
1022
1025
  return
1023
1026
  }
1024
1027
 
1025
1028
  resizeObserve = new ResizeObserver(setColumnWidth)
1026
- resizeObserve.observe(el)
1029
+ resizeObserve.observe(element)
1027
1030
  }
1028
1031
 
1029
1032
  let resizeObserveWithInfo: ResizeObserver
@@ -1038,15 +1041,15 @@ const setColumnWidthWithInfo = (ent: ResizeObserverEntry[]): void => {
1038
1041
  }
1039
1042
 
1040
1043
  const setResizeObserveWithInfo = (): void => {
1041
- const el = document.querySelector('.datagrid')
1044
+ const element = document.querySelector('.datagrid')
1042
1045
 
1043
- if (!el) {
1046
+ if (!element) {
1044
1047
  setTimeout(setResizeObserveWithInfo, 0)
1045
1048
  return
1046
1049
  }
1047
1050
 
1048
1051
  resizeObserveWithInfo = new ResizeObserver(setColumnWidthWithInfo)
1049
- resizeObserveWithInfo.observe(el)
1052
+ resizeObserveWithInfo.observe(element)
1050
1053
  }
1051
1054
 
1052
1055
  // Export
@@ -94,13 +94,13 @@ const isLast = computed<boolean>(
94
94
  () => props.columnKeys.filter((columnKey) => columnKey.show).length === 1
95
95
  )
96
96
 
97
- const change = (e: UI_I_HTMLSelectElement, key: number): void => {
98
- const newColumnKeys = props.columnKeys.map((columnKey, i) => {
99
- if (i !== key) {
97
+ const change = (event: UI_I_HTMLSelectElement, key: number): void => {
98
+ const newColumnKeys = props.columnKeys.map((columnKey, item) => {
99
+ if (item !== key) {
100
100
  return columnKey
101
101
  }
102
102
 
103
- columnKey.show = e.target.checked
103
+ columnKey.show = event.target.checked
104
104
  return columnKey
105
105
  })
106
106
  emits('update:column-keys', newColumnKeys)
@@ -138,7 +138,7 @@ const toggle = (): void => {
138
138
  setDropdownStyle()
139
139
  }
140
140
 
141
- const dropdownStyles = ref({})
141
+ const dropdownStyles = ref<any>({})
142
142
  const setDropdownStyle = (): void => {
143
143
  const elem = document.getElementById(columnSwitchId.value)
144
144
  if (!elem) {
@@ -3,8 +3,8 @@
3
3
  <button
4
4
  :id="`${props.testId}-first-button`"
5
5
  :data-id="`${props.testId}-first-button`"
6
- class="pagination-first"
7
6
  :disabled="currentPage === 1"
7
+ class="pagination-first"
8
8
  @click="changeCurrentPage(1)"
9
9
  >
10
10
  <atoms-the-icon
@@ -17,8 +17,8 @@
17
17
  <button
18
18
  :id="`${props.testId}-prev-button`"
19
19
  :data-id="`${props.testId}-prev-button`"
20
- class="pagination-previous"
21
20
  :disabled="currentPage === 1"
21
+ class="pagination-previous"
22
22
  @click="changeCurrentPage(currentPage - 1)"
23
23
  >
24
24
  <atoms-the-icon
@@ -44,8 +44,8 @@
44
44
  <button
45
45
  :id="`${props.testId}-next-button`"
46
46
  :data-id="`${props.testId}-next-button`"
47
- class="pagination-next"
48
47
  :disabled="currentPage === props.totalPages"
48
+ class="pagination-next"
49
49
  @click="changeCurrentPage(currentPage + 1)"
50
50
  >
51
51
  <atoms-the-icon
@@ -58,8 +58,8 @@
58
58
  <button
59
59
  :id="`${props.testId}-last-button`"
60
60
  :data-id="`${props.testId}-last-button`"
61
- class="pagination-last"
62
61
  :disabled="currentPage === props.totalPages"
62
+ class="pagination-last"
63
63
  @click="changeCurrentPage(props.totalPages)"
64
64
  >
65
65
  <atoms-the-icon
@@ -73,8 +73,6 @@
73
73
  </template>
74
74
 
75
75
  <script setup lang="ts">
76
- import type { UI_I_HTMLSelectElement } from '~/lib/models/interfaces'
77
-
78
76
  const props = withDefaults(
79
77
  defineProps<{
80
78
  page: number
@@ -115,8 +113,8 @@ const changeCurrentPage = (page: number): void => {
115
113
  if (page > props.totalPages || page < 1) return
116
114
  changePageAndLazy(page)
117
115
  }
118
- const changeCurrentPageManual = (e: any): void => {
119
- const newVal = parseInt(e.target.value)
116
+ const changeCurrentPageManual = (event: any): void => {
117
+ const newVal = parseInt(event.target.value)
120
118
 
121
119
  if (typeof newVal !== 'number' || isNaN(newVal)) {
122
120
  currentPageLazy.value = currentPage.value
@@ -2,14 +2,14 @@
2
2
  <!-- TODO refactoring-->
3
3
  <table :data-id="props.testId" class="table table-vertical">
4
4
  <tbody>
5
- <tr v-for="item in list" :key="item.id">
5
+ <tr v-for="(item, index) in list" :key="item.id">
6
6
  <th
7
7
  scope="row"
8
8
  :class="['vm-name-label', item.isProperty && 'hard-disk-properties']"
9
9
  >
10
10
  {{ item.label }}
11
11
  </th>
12
- <td class="vm-name">
12
+ <td :data-id="`${props.testId}-td-${index}-content`" class="vm-name">
13
13
  <slot :name="item.key">
14
14
  {{ item.value }}
15
15
  </slot>
@@ -23,7 +23,7 @@
23
23
  </template>
24
24
 
25
25
  <script setup lang="ts">
26
- import {
26
+ import type {
27
27
  UI_I_TableHeadItem,
28
28
  UI_I_TableBodyItem,
29
29
  } from '~/components/atoms/table/simpleEvent/lib/models/interfaces'
@@ -6,8 +6,8 @@
6
6
  <td v-for="item in props.headItems" :key="item.text" class="row">
7
7
  <span> {{ item.text }}</span>
8
8
  <span
9
- class="underlined"
10
9
  :data-id="`${item.testId}-select-node`"
10
+ class="underlined"
11
11
  @click="selectNode(item.value)"
12
12
  >
13
13
  {{ item.value }}
@@ -4,8 +4,10 @@
4
4
  <li
5
5
  v-for="(item, key) in props.items"
6
6
  :key="item.path"
7
- class="nav-item"
8
- :class="detectButtonRemainderCount === key && 'last-button'"
7
+ :class="[
8
+ 'nav-item',
9
+ detectButtonRemainderCount === key && 'last-button',
10
+ ]"
9
11
  >
10
12
  <atoms-collapse-nav-item
11
13
  :is-link="props.isLink"
@@ -29,6 +29,7 @@
29
29
 
30
30
  <script setup lang="ts">
31
31
  import type { UI_I_ElPosition } from '~/components/atoms/tooltip/lib/models/interfaces'
32
+
32
33
  const props = withDefaults(
33
34
  defineProps<{
34
35
  elemId: string
@@ -12,8 +12,8 @@
12
12
  <Teleport to="body">
13
13
  <div
14
14
  v-show="show"
15
- class="tooltip-top-right tooltip-content"
16
15
  :style="tooltipStyles"
16
+ class="tooltip-top-right tooltip-content"
17
17
  >
18
18
  <slot name="content" />
19
19
  </div>
@@ -26,6 +26,7 @@
26
26
 
27
27
  <script setup lang="ts">
28
28
  import type { UI_I_ElPosition } from '~/components/atoms/tooltip/lib/models/interfaces'
29
+
29
30
  const props = defineProps<{
30
31
  hasError: boolean
31
32
  selector?: string
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div v-if="props.show" class="modal clr-wizard wizard-xl">
3
3
  <div
4
- class="modal-dialog modal-xl relative"
5
4
  :style="{ 'max-height': props.maxHeight }"
5
+ class="modal-dialog modal-xl relative"
6
6
  >
7
7
  <div class="modal-content-wrapper">
8
8
  <nav class="modal-nav clr-wizard-stepnav-wrapper">
@@ -16,9 +16,9 @@
16
16
  props.selectedScheme[key]?.dataId) ||
17
17
  step.testId
18
18
  }-step-button`"
19
- class="btn btn-link clr-wizard-stepnav-link"
20
19
  :style="{ 'margin-left': '8px' }"
21
20
  :disabled="step.status.disabled"
21
+ class="btn btn-link clr-wizard-stepnav-link"
22
22
  @click="changeStep(step)"
23
23
  >
24
24
  <span class="clr-wizard-stepnav-link-title">
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <div class="accordion" :class="{ disabled: props.accordion.disabled }">
2
+ <div :class="['accordion', { disabled: props.accordion.disabled }]">
3
3
  <nuxt-link
4
4
  v-development="props.accordion.development"
5
- class="accordion-item"
6
5
  :to="accordionLocal.path"
7
6
  :data-id="accordionLocal.testId"
7
+ class="accordion-item"
8
8
  active-class="active"
9
9
  @click.prevent="onSelect(accordionLocal)"
10
10
  >
@@ -34,11 +34,11 @@
34
34
  </template>
35
35
 
36
36
  <script setup lang="ts">
37
- import {
37
+ import type {
38
38
  UI_I_Localization,
39
39
  UI_I_ItemsWithTotalCounts,
40
40
  } from '~/lib/models/interfaces'
41
- import {
41
+ import type {
42
42
  UI_I_Adapter,
43
43
  UI_I_SwitchAdapterItem,
44
44
  } from '~/components/common/diagramMain/lib/models/interfaces'
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <li v-if="props.fullMode">
3
3
  <span
4
- class="action-link-container"
5
4
  :title="localization.common.addAdapters"
5
+ class="action-link-container"
6
6
  data-id="add-adapter-button"
7
7
  @click="onShowAddAdapterModal"
8
8
  >
@@ -32,7 +32,7 @@ const props = withDefaults(
32
32
  )
33
33
 
34
34
  const emits = defineEmits<{
35
- (event: 'select-adapter', id: string): void
35
+ (event: 'select-adapter', value: string): void
36
36
  }>()
37
37
 
38
38
  const onSelectAdapter = (id: string) => emits('select-adapter', id)
@@ -35,7 +35,7 @@ const title = computed<string>(
35
35
  )
36
36
 
37
37
  const emits = defineEmits<{
38
- (event: 'select-header', id: string): void
38
+ (event: 'select-header', value: string): void
39
39
  }>()
40
40
 
41
41
  // const onSelectAdapter = () => emits('select-header', props.id)
@@ -58,7 +58,7 @@
58
58
  </template>
59
59
 
60
60
  <script setup lang="ts">
61
- import {
61
+ import type {
62
62
  UI_I_Adapter,
63
63
  UI_I_AdapterStatus,
64
64
  UI_I_SwitchAdapterItem,
@@ -94,9 +94,9 @@ const props = withDefaults(
94
94
  )
95
95
 
96
96
  const emits = defineEmits<{
97
- (event: 'click-empty-space', ev: Event): void
98
- (event: 'select-add-adapter', id: string): void
99
- (event: 'select-adapter', id: string): void
97
+ (event: 'click-empty-space', value: Event): void
98
+ (event: 'select-add-adapter', value: string): void
99
+ (event: 'select-adapter', value: string): void
100
100
  }>()
101
101
 
102
102
  const onClickEmptySpace = (event: Event): void => {
@@ -96,7 +96,7 @@ const nodesLocal = computed<any[]>(() => {
96
96
 
97
97
  const loadingNodeId = ref<string>('')
98
98
 
99
- const nodesLocalWithLoading = computed(() => {
99
+ const nodesLocalWithLoading = computed<any>(() => {
100
100
  const nodesWithLoading = setLoadingOnNodeById(
101
101
  nodesLocal.value,
102
102
  loadingNodeId.value
@@ -2,12 +2,12 @@
2
2
  <ui-modal
3
3
  v-if="props.show"
4
4
  :title="localization.common.selectFile"
5
+ :texts="modalButtonsText"
6
+ :is-disabled-accept="!props.selectedFile"
5
7
  test-id="browse"
6
8
  size="md"
7
- show
8
9
  width="864px"
9
- :texts="modalButtonsText"
10
- :is-disabled-accept="!props.selectedFile"
10
+ show
11
11
  @submit="emits('submit')"
12
12
  @hide="emits('hide')"
13
13
  >
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <atoms-modal
3
3
  test-id="browse"
4
- width="864px"
5
- height="586px"
6
4
  :show="props.show"
7
5
  :title="localization.common.selectFile"
8
6
  :disabled-submit="!props.selectedFile"
7
+ width="864px"
8
+ height="586px"
9
9
  @submit="emits('submit')"
10
10
  @hide="emits('hide')"
11
11
  >
@@ -18,9 +18,9 @@
18
18
  fill="#666"
19
19
  />
20
20
  <input
21
+ :placeholder="localization.common.filter"
21
22
  type="text"
22
23
  data-id="browse-filter-input"
23
- :placeholder="localization.common.filter"
24
24
  />
25
25
  </div>
26
26
  <common-browse-blocks-container
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="title-block" :style="blockWidth">
2
+ <div :style="blockWidth" class="title-block">
3
3
  <div
4
4
  :class="[
5
5
  'title-block__container',
@@ -8,8 +8,8 @@
8
8
  :style="blockWidth"
9
9
  >
10
10
  <div
11
- class="title-block__title pointer"
12
11
  :style="blockTitleWidth"
12
+ class="title-block__title pointer"
13
13
  @click="emits('sort')"
14
14
  >
15
15
  <b>{{ props.title }}</b>
@@ -47,8 +47,8 @@ const emits = defineEmits<{
47
47
  (event: 'sort'): void
48
48
  }>()
49
49
 
50
- const blockWidth = computed(() => ({ width: `${props.width}px` }))
51
- const blockTitleWidth = computed(() => ({
50
+ const blockWidth = computed<any>(() => ({ width: `${props.width}px` }))
51
+ const blockTitleWidth = computed<any>(() => ({
52
52
  width: `${
53
53
  props.width -
54
54
  (props.position === 'first-block' || props.position === 'third-block'