bfg-common 1.5.485 → 1.5.487

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 (31) hide show
  1. package/assets/localization/local_be.json +2 -1
  2. package/assets/localization/local_en.json +2 -1
  3. package/assets/localization/local_hy.json +2 -1
  4. package/assets/localization/local_kk.json +2 -1
  5. package/assets/localization/local_ru.json +2 -1
  6. package/assets/localization/local_zh.json +2 -1
  7. package/assets/scss/common/theme.scss +2 -2
  8. package/components/atoms/window/Window.vue +460 -460
  9. package/components/common/layout/theHeader/feedback/new/New.vue +2 -2
  10. package/components/common/layout/theHeader/feedback/new/description/Description.vue +3 -3
  11. package/components/common/layout/theHeader/feedback/new/tabs/Tabs.vue +4 -2
  12. package/components/common/layout/theHeader/feedback/new/tabs/lib/config/tabs.ts +3 -2
  13. package/components/common/layout/theHeader/feedback/new/tabs/lib/models/interfaces.ts +5 -0
  14. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +96 -95
  15. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +1 -2
  16. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +9 -0
  17. package/components/common/layout/theHeader/userMenu/modals/preferences/view/ViewNew.vue +6 -2
  18. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +1 -0
  19. package/components/common/monitor/overview/OverviewNew.vue +4 -1
  20. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +0 -2
  21. package/components/common/monitor/overview/filters/customIntervalModal/customIntervalModalNew/CustomIntervalModalNew.vue +6 -6
  22. package/components/common/pages/backups/modals/Modals.vue +1 -1
  23. package/components/common/pages/tasks/table/Table.vue +8 -9
  24. package/components/common/vm/actions/add/Add.vue +877 -850
  25. package/components/common/vm/actions/add/New.vue +8 -2
  26. package/components/common/vm/actions/add/Old.vue +8 -2
  27. package/components/common/vm/actions/add/lib/config/steps.ts +14 -3
  28. package/components/common/vm/actions/common/select/name/Name.vue +3 -0
  29. package/components/common/vm/actions/common/select/name/Old.vue +131 -124
  30. package/components/common/vmt/actions/add/Add.vue +549 -548
  31. package/package.json +1 -1
@@ -7,8 +7,8 @@
7
7
  <ui-modal
8
8
  :width="!options.isAnnotateImage ? '560px' : '880px'"
9
9
  :title="title"
10
+ :texts="{}"
10
11
  test-id="feedback-modal"
11
- class="feedback"
12
12
  show
13
13
  @hide="onHideModal"
14
14
  >
@@ -106,7 +106,7 @@ const emits = defineEmits<{
106
106
 
107
107
  const localization = computed<UI_I_Localization>(() => useLocal())
108
108
 
109
- const selectedTab = ref<UI_T_FeedbackTab>()
109
+ const selectedTab = ref<UI_T_FeedbackTab | null>(null)
110
110
  const isValidForm = ref<boolean>(true)
111
111
  const options = ref<UI_I_FeedbackCanvasOptions>({
112
112
  isAnnotateImage: false,
@@ -7,9 +7,9 @@
7
7
  :disabled="!selectedTab"
8
8
  :placeholder="descriptionTextPlaceholder"
9
9
  :error="descriptionErrorText"
10
+ height=""
10
11
  test-id="feedback-description"
11
- >
12
- </ui-textarea>
12
+ />
13
13
  </div>
14
14
  </template>
15
15
 
@@ -18,7 +18,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
18
18
  import type { UI_T_FeedbackTab } from '~/components/common/layout/theHeader/feedback/new/tabs/lib/models/types'
19
19
 
20
20
  const props = defineProps<{
21
- selectedTab: UI_T_FeedbackTab
21
+ selectedTab: UI_T_FeedbackTab | null
22
22
  }>()
23
23
  const descriptionModelLocal = defineModel<string>({ required: true })
24
24
  const isValidModel = defineModel<boolean>('isValid', { required: true })
@@ -21,12 +21,14 @@
21
21
  <script setup lang="ts">
22
22
  import type { UI_I_Localization } from '~/lib/models/interfaces'
23
23
  import type { UI_T_FeedbackTab } from '~/components/common/layout/theHeader/feedback/new/tabs/lib/models/types'
24
+ import type { UI_I_Tabs } from '~/components/common/layout/theHeader/feedback/new/tabs/lib/models/interfaces'
24
25
  import { tabsFunc } from '~/components/common/layout/theHeader/feedback/new/tabs/lib/config/tabs'
25
26
 
26
27
  const localization = computed<UI_I_Localization>(() => useLocal())
27
28
 
28
- const selectedTab = defineModel<UI_T_FeedbackTab>({ required: true })
29
- const tabs = computed<any[]>(() =>
29
+ const selectedTab = defineModel<UI_T_FeedbackTab | null>({ required: true })
30
+
31
+ const tabs = computed<UI_I_Tabs[]>(() =>
30
32
  tabsFunc(localization.value, selectedTab.value)
31
33
  )
32
34
  </script>
@@ -1,10 +1,11 @@
1
1
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
2
  import type { UI_T_FeedbackTab } from '~/components/common/layout/theHeader/feedback/new/tabs/lib/models/types'
3
+ import type { UI_I_Tabs } from '~/components/common/layout/theHeader/feedback/new/tabs/lib/models/interfaces'
3
4
 
4
5
  export const tabsFunc = (
5
6
  localization: UI_I_Localization,
6
- selectedTab: UI_T_FeedbackTab
7
- ): any[] => {
7
+ selectedTab: UI_T_FeedbackTab | null
8
+ ): UI_I_Tabs[] => {
8
9
  return [
9
10
  {
10
11
  iconName: 'warning-outline',
@@ -0,0 +1,5 @@
1
+ export interface UI_I_Tabs {
2
+ iconName: string
3
+ label: string
4
+ isSelected: boolean
5
+ }
@@ -1,95 +1,96 @@
1
- <template>
2
- <ui-modal
3
- :title="props.title"
4
- :subtitle="props.subtitle"
5
- test-id="about-modal"
6
- width="720px"
7
- class="about-modal"
8
- @hide="onHideModal"
9
- >
10
- <template #content>
11
- <ui-modal-block-standard>
12
- <div class="about-modal__text">
13
- <p>{{ aboutHeadingText }}</p>
14
-
15
- <p>{{ localization.layout.aboutSubtitle }}</p>
16
- </div>
17
-
18
- <div class="about-modal__description">
19
- {{ props.aboutDescOne }}<a
20
- id="about-description-link"
21
- :href="url"
22
- data-id="about-description-link"
23
- target="_blank"
24
- class="about-modal__description-link"
25
- >
26
- {{ props.url }}
27
- </a>{{ props.aboutDescSecond }}
28
- </div>
29
- </ui-modal-block-standard>
30
- </template>
31
- <template #footer><div class="modal-footer-block"></div></template>
32
- </ui-modal>
33
- </template>
34
-
35
- <script lang="ts" setup>
36
- import type { UI_I_Localization } from '~/lib/models/interfaces'
37
-
38
- const props = defineProps<{
39
- title: string
40
- subtitle: string
41
- aboutHeadingText: string
42
- aboutDescOne: string
43
- aboutDescSecond: string
44
- projectName: string
45
- url: string
46
- }>()
47
- const emits = defineEmits<{
48
- (event: 'hide'): void
49
- }>()
50
-
51
- const localization = computed<UI_I_Localization>(() => useLocal())
52
-
53
- const onHideModal = (): void => {
54
- emits('hide')
55
- }
56
- </script>
57
-
58
- <style lang="scss" scoped>
59
- .modal-container-standard {
60
- padding-top: 12px;
61
- padding-bottom: 12px;
62
-
63
- .about-modal {
64
- &__text {
65
- color: var(--about-text-color);
66
- font-size: 13px;
67
- font-weight: 400;
68
- line-height: 15.73px;
69
-
70
- p:last-child {
71
- margin: 16px 0;
72
- }
73
- }
74
- &__description {
75
- color: var(--about-text-color);
76
- font-size: 13px;
77
- font-weight: 400;
78
- line-height: 15.73px;
79
-
80
- &-link {
81
- color: var(--about-text-link-color);
82
- &:hover {
83
- color: var(--about-text-link-hover-color);
84
- }
85
- }
86
- }
87
- }
88
- }
89
- .modal-footer-block {
90
- height: 32px;
91
- }
92
- :deep(.title-wrapper__subtitle) {
93
- max-width: 400px;
94
- }
95
- </style>
1
+ <template>
2
+ <ui-modal
3
+ :title="props.title"
4
+ :subtitle="props.subtitle"
5
+ :texts="{}"
6
+ test-id="about-modal"
7
+ width="720px"
8
+ show
9
+ @hide="onHideModal"
10
+ >
11
+ <template #content>
12
+ <ui-modal-block-standard>
13
+ <div class="about-modal__text">
14
+ <p>{{ aboutHeadingText }}</p>
15
+
16
+ <p>{{ localization.layout.aboutSubtitle }}</p>
17
+ </div>
18
+
19
+ <div class="about-modal__description">
20
+ {{ props.aboutDescOne }}<a
21
+ id="about-description-link"
22
+ :href="url"
23
+ data-id="about-description-link"
24
+ target="_blank"
25
+ class="about-modal__description-link"
26
+ >
27
+ {{ props.url }}
28
+ </a>{{ props.aboutDescSecond }}
29
+ </div>
30
+ </ui-modal-block-standard>
31
+ </template>
32
+ <template #footer><div class="modal-footer-block"></div></template>
33
+ </ui-modal>
34
+ </template>
35
+
36
+ <script lang="ts" setup>
37
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
38
+
39
+ const props = defineProps<{
40
+ title: string
41
+ subtitle: string
42
+ aboutHeadingText: string
43
+ aboutDescOne: string
44
+ aboutDescSecond: string
45
+ projectName: string
46
+ url: string
47
+ }>()
48
+ const emits = defineEmits<{
49
+ (event: 'hide'): void
50
+ }>()
51
+
52
+ const localization = computed<UI_I_Localization>(() => useLocal())
53
+
54
+ const onHideModal = (): void => {
55
+ emits('hide')
56
+ }
57
+ </script>
58
+
59
+ <style lang="scss" scoped>
60
+ .modal-container-standard {
61
+ padding-top: 12px;
62
+ padding-bottom: 12px;
63
+
64
+ .about-modal {
65
+ &__text {
66
+ color: var(--about-text-color);
67
+ font-size: 13px;
68
+ font-weight: 400;
69
+ line-height: 15.73px;
70
+
71
+ p:last-child {
72
+ margin: 16px 0;
73
+ }
74
+ }
75
+ &__description {
76
+ color: var(--about-text-color);
77
+ font-size: 13px;
78
+ font-weight: 400;
79
+ line-height: 15.73px;
80
+
81
+ &-link {
82
+ color: var(--about-text-link-color);
83
+ &:hover {
84
+ color: var(--about-text-link-hover-color);
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ .modal-footer-block {
91
+ height: 32px;
92
+ }
93
+ :deep(.title-wrapper__subtitle) {
94
+ max-width: 400px;
95
+ }
96
+ </style>
@@ -5,7 +5,6 @@
5
5
  :subtitle="props.subtitle"
6
6
  width="560px"
7
7
  test-id="change-password-modal"
8
- class="change-password"
9
8
  show
10
9
  @submit="onSubmit"
11
10
  @hide="onHideModal"
@@ -17,8 +16,8 @@
17
16
  :messages="[alertErrorText]"
18
17
  test-id="change-password-error-alert"
19
18
  type="error"
20
- hide-close-button
21
19
  class="change-password__alert"
20
+ hide-close-button
22
21
  />
23
22
 
24
23
  <p class="change-password__description">
@@ -1,8 +1,10 @@
1
1
  <template>
2
2
  <ui-modal
3
3
  :title="localization.common.preferences"
4
+ :texts="modalTexts"
4
5
  test-id="user-preferences-modal"
5
6
  width="580px"
7
+ show
6
8
  @reset="emits('reset')"
7
9
  @submit="emits('submit')"
8
10
  @hide="onHide"
@@ -57,6 +59,7 @@
57
59
 
58
60
  <script setup lang="ts">
59
61
  import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
62
+ import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
60
63
  import type { UI_I_Localization } from '~/lib/models/interfaces'
61
64
  import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
62
65
  import type { UI_T_TimeValue } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/models/types'
@@ -85,6 +88,12 @@ const emits = defineEmits<{
85
88
 
86
89
  const localization = computed<UI_I_Localization>(() => useLocal())
87
90
 
91
+ const modalTexts = ref<UI_I_ModalTexts>({
92
+ resetToDefault: localization.value.common.resetToDefault,
93
+ button1: localization.value.common.cancel,
94
+ button2: localization.value.common.save,
95
+ })
96
+
88
97
  const isSphere = ref<boolean>(props.project === 'sphere')
89
98
 
90
99
  const onHide = (): void => {
@@ -14,7 +14,11 @@
14
14
  </div>
15
15
 
16
16
  <div class="flex-align-center">
17
- <ui-switch v-model="newViewLocal" :label="localization.common.newView" />
17
+ <ui-switch
18
+ v-model="newViewLocal"
19
+ :label="localization.common.newView"
20
+ test-id="view-switch"
21
+ />
18
22
  </div>
19
23
  </div>
20
24
  </div>
@@ -31,4 +35,4 @@ const props = defineProps<{
31
35
  const newViewLocal = defineModel<boolean>()
32
36
 
33
37
  const localization = computed<UI_I_Localization>(() => useLocal())
34
- </script>
38
+ </script>
@@ -4,6 +4,7 @@
4
4
  :texts="modalTexts"
5
5
  test-id="chart-options-modal"
6
6
  width="1120px"
7
+ show
7
8
  @hide="emits('hide-main-modal')"
8
9
  @submit="emits('submit-main-modal')"
9
10
  >
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div ref="chartsView" :class="['charts-view', { 'has-scroll': isHasScroll }]">
3
- <template v-for="(chartData, key) in props.allData" :key="chartData.title">
3
+ <template
4
+ v-for="(chartData, key) in props.allData"
5
+ :key="chartData.title || key"
6
+ >
4
7
  <div :class="['chart-container', `graph-${chartData.title}`]">
5
8
  <ui-skeleton-long-metric v-if="chartData.loader" height="336px" />
6
9
  <common-graph
@@ -4,10 +4,8 @@
4
4
  v-if="isNewView"
5
5
  v-model:alert-show="alertShow"
6
6
  v-model:current-date-from="currentDateFrom"
7
- v-model:date-from="dateFrom"
8
7
  v-model:current-time-from="currentTimeFrom"
9
8
  v-model:current-date-to="currentDateTo"
10
- v-model:date-to="dateTo"
11
9
  v-model:current-time-to="currentTimeTo"
12
10
  :title-interval-modal="titleIntervalModal"
13
11
  :selected-node-name="props.selectedNodeName"
@@ -27,9 +27,9 @@
27
27
  </p>
28
28
 
29
29
  <div class="filed-wrap from">
30
- <lable for="date-from" class="filed-lable">{{
30
+ <label for="date-from" class="filed-label">{{
31
31
  localization.inventoryMonitor.from
32
- }}</lable>
32
+ }}</label>
33
33
  <ui-input-with-datepicker
34
34
  id="date-from"
35
35
  v-model="currentDateFromLocal"
@@ -45,9 +45,9 @@
45
45
  </div>
46
46
 
47
47
  <div class="filed-wrap">
48
- <lable for="date-to" class="filed-lable">{{
48
+ <label for="date-to" class="filed-label">{{
49
49
  localization.common.on2
50
- }}</lable>
50
+ }}</label>
51
51
  <ui-input-with-datepicker
52
52
  id="date-to"
53
53
  v-model="currentDateToLocal"
@@ -217,11 +217,11 @@ const onHide = (): void => {
217
217
  &.from {
218
218
  margin-bottom: 24px;
219
219
  }
220
- .filed-lable {
220
+ .filed-label {
221
221
  display: block;
222
222
  font-size: 16px;
223
223
  font-weight: 500;
224
- color: var(--overview-time-range-lable-color);
224
+ color: var(--overview-time-range-label-color);
225
225
  margin: 16px 0;
226
226
  text-transform: capitalize;
227
227
  }
@@ -94,7 +94,6 @@ const { $store }: any = useNuxtApp()
94
94
  const backupForm = ref<UI_I_CreateBackupForm>(
95
95
  useDeepCopy(backupDefaultFormFunc())
96
96
  )
97
- backupForm.value.target = props.target
98
97
 
99
98
  const schedulerTaskForm = ref<UI_I_ScheduleNewTasksForm>(
100
99
  useDeepCopy(scheduledTaskDefaultFormFunc())
@@ -123,6 +122,7 @@ const isShowRestoreModal = ref<boolean>(false)
123
122
 
124
123
  const onCreateBackup = (): void => {
125
124
  // TODO
125
+ backupForm.value.target = props.target
126
126
  const backupTask: UI_I_SendTaskParams = {
127
127
  method:
128
128
  props.project === 'sphere'
@@ -8,7 +8,6 @@
8
8
  :texts="texts"
9
9
  :skeleton="skeletonData"
10
10
  test-id="task-table"
11
- class="task-table"
12
11
  @sort="onSorting"
13
12
  @pagination="onPagination"
14
13
  @column-filter="onColumnFilter"
@@ -40,14 +39,14 @@
40
39
 
41
40
  <div v-if="item.data.error" class="task-table__tooltip">
42
41
  <common-tooltip-help
43
- :test-id="item.data.testId"
44
- :help-id="item.data.testId + 'icon'"
45
- :title="localization.common.failureReason"
46
- :help-text="item.data.error"
47
- status="error"
48
- dropdown-width="232px"
49
- dropdown-left
50
- dropdown-top
42
+ :test-id="item.data.testId"
43
+ :help-id="item.data.testId + 'icon'"
44
+ :title="localization.common.failureReason"
45
+ :help-text="item.data.error"
46
+ status="error"
47
+ dropdown-width="232px"
48
+ dropdown-left
49
+ dropdown-top
51
50
  />
52
51
  </div>
53
52
  </template>