bfg-common 1.5.92 → 1.5.94
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/assets/scss/common/normalize.scss +347 -347
- package/components/atoms/alert/Notification.vue +169 -169
- package/components/atoms/autocomplete/Autocomplete.vue +361 -362
- package/components/atoms/collapse/CollapseNav.vue +169 -169
- package/components/atoms/comboDropdownMenu/ComboDropdownMenu.vue +357 -357
- package/components/atoms/combobox/Combobox.vue +154 -154
- package/components/atoms/datepicker/Datepicker.vue +639 -639
- package/components/atoms/dropdown/Portlet.vue +113 -113
- package/components/atoms/dropdown/dropdown/Dropdown.vue +168 -168
- package/components/atoms/dropdown/tree/Tree.vue +137 -137
- package/components/atoms/list/SelectList.vue +63 -63
- package/components/atoms/list/dragDropList/DragDropList.vue +148 -148
- package/components/atoms/modal/Modal.vue +250 -250
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/notificationBar/NotificationBar.vue +178 -178
- package/components/atoms/popover/Popover.vue +58 -58
- package/components/atoms/popover/lib/models/interfaces.ts +4 -4
- package/components/atoms/select/TheSelect.vue +187 -187
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/stack/StackContent.vue +63 -63
- package/components/atoms/step/lib/models/verticalStepItem.ts +5 -5
- package/components/atoms/switch/Switch.vue +111 -111
- package/components/atoms/table/compact/Compact.vue +529 -529
- package/components/atoms/table/dataGrid/DataGrid.vue +1716 -1713
- package/components/atoms/table/dataGrid/DataGridPage.vue +195 -195
- package/components/atoms/table/info/Info.vue +2 -2
- package/components/atoms/table/simpleEvent/SimpleEvent.vue +98 -98
- package/components/atoms/table/simpleInfo/SimpleInfo.vue +73 -73
- package/components/atoms/tabs/Tabs.vue +217 -217
- package/components/atoms/wizard/Wizard.vue +341 -341
- package/components/common/accordion/Recursion.vue +222 -222
- package/components/common/adapterManager/AddAdapterModal.vue +561 -561
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +30 -30
- package/components/common/adapterManager/ui/table/Table.vue +162 -162
- package/components/common/browse/BrowseNew.vue +237 -237
- package/components/common/browse/BrowseOld.vue +217 -217
- package/components/common/browse/blocks/TitleNew.vue +145 -145
- package/components/common/browse/blocks/TitleOld.vue +91 -91
- package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
- package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +262 -262
- package/components/common/context/Context.vue +111 -111
- package/components/common/context/recursion/RecursionOld.vue +228 -228
- package/components/common/details/DetailsItem.vue +109 -109
- package/components/common/feedback/Buttons.vue +229 -229
- package/components/common/feedback/Feedback.vue +270 -270
- package/components/common/feedback/Message.vue +519 -519
- package/components/common/graph/graphNew/GraphNew.vue +194 -194
- package/components/common/graph/lib/utils/renderGraph.ts +389 -389
- package/components/common/layout/theHeader/feedback/new/New.vue +227 -227
- package/components/common/layout/theHeader/feedback/new/additionalDetails/AdditionalDetails.vue +606 -606
- package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +98 -98
- package/components/common/layout/theHeader/feedback/new/description/Description.vue +59 -59
- package/components/common/layout/theHeader/feedback/new/email/Email.vue +43 -43
- package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +103 -103
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +112 -112
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +80 -80
- package/components/common/layout/theHeader/helpMenu/helpMenuOld/HelpMenuOld.vue +1 -1
- package/components/common/layout/theHeader/modals/Reconnect.vue +2 -2
- package/components/common/layout/theHeader/modals/RedirectLogin.vue +3 -3
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +8 -8
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordOld.vue +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesOld.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguageNew.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguageOld.vue +2 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsoleOld.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/InventoryNew.vue +1 -1
- package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +2 -2
- package/components/common/layout/theHeader/userMenu/userMenuNew/lib/config/dropMenu.ts +1 -1
- package/components/common/layout/theHeader/userMenu/userMenuOld/UserMenuOld.vue +1 -1
- package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +2 -2
- package/components/common/modals/Rename.vue +2 -2
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +2 -3
- package/components/common/modals/confirmByInput/ConfirmByInputOld.vue +3 -3
- package/components/common/modals/confirmation/ConfirmationOld.vue +1 -1
- package/components/common/modals/unsavedChanges/UnsavedChanges.vue +1 -1
- package/components/common/monitor/advanced/Advanced.vue +1 -1
- package/components/common/monitor/advanced/AdvancedNew.vue +1 -1
- package/components/common/monitor/advanced/AdvancedOld.vue +1 -1
- package/components/common/monitor/advanced/graphView/GraphViewNew.vue +1 -1
- package/components/common/monitor/advanced/graphView/GraphViewOld.vue +1 -1
- package/components/common/monitor/advanced/table/Table.vue +1 -1
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +2 -2
- package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +2 -2
- package/components/common/monitor/advanced/tools/ToolsOld.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig.ts +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +10 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +2 -2
- package/components/common/monitor/advanced/tools/lib/utils/countCores.ts +1 -1
- package/components/common/monitor/lib/models/interfaces.ts +1 -1
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalOld.vue +3 -3
- package/components/common/monitor/overview/filters/customIntervalModal/customIntervalModalNew/CustomIntervalModalNew.vue +4 -3
- package/components/common/monitor/resourceAllocation/lib/models/interfaces.ts +8 -8
- package/components/common/monitor/resourceAllocation/resourceAllocation.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/Notification.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
- package/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable.ts +5 -5
- package/components/common/wizards/vm/migrate/Migrate.vue +39 -2
- package/components/common/wizards/vm/migrate/vmOrigin/VmOrigin.vue +92 -0
- package/components/common/wizards/vm/migrate/vmOrigin/lib/models/interfaces.ts +19 -0
- package/components/common/wizards/vm/migrate/vmOrigin/lib/utils/constructItems.ts +62 -0
- package/package.json +1 -1
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="notification-bar">
|
|
3
|
-
<div :style="{ 'background-color': color }" class="alerts">
|
|
4
|
-
<div v-if="props.items.length > 1" class="alerts-pager ng-star-inserted">
|
|
5
|
-
<div class="alerts-pager-control page-control">
|
|
6
|
-
<div class="alerts-page-down">
|
|
7
|
-
<button
|
|
8
|
-
:id="`${props.testId}-prev-button`"
|
|
9
|
-
:data-id="`${props.testId}-prev-button`"
|
|
10
|
-
class="alerts-pager-button"
|
|
11
|
-
@click="onPrev"
|
|
12
|
-
>
|
|
13
|
-
<atoms-the-icon class="page-control__prev" name="angle" />
|
|
14
|
-
</button>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div class="alerts-pager-text">
|
|
18
|
-
{{ stepPosition }} / {{ props.items.length }}
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="alerts-page-up">
|
|
22
|
-
<button
|
|
23
|
-
:id="`${props.testId}-next-button`"
|
|
24
|
-
:data-id="`${props.testId}-next-button`"
|
|
25
|
-
class="alerts-pager-button"
|
|
26
|
-
@click="onNext"
|
|
27
|
-
>
|
|
28
|
-
<atoms-the-icon class="page-control__next" name="angle" />
|
|
29
|
-
</button>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div class="alert-text-truncate">
|
|
35
|
-
<div :class="['alert alert-app-level', currentNotification.status]">
|
|
36
|
-
<div class="alert-items">
|
|
37
|
-
<div class="alert-item">
|
|
38
|
-
<div class="alert-icon-wrapper">
|
|
39
|
-
<atoms-the-icon
|
|
40
|
-
:class="['alert-icon', iconName]"
|
|
41
|
-
:name="iconName"
|
|
42
|
-
stroke="none"
|
|
43
|
-
fill="#fff"
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<span class="alert-text">{{ message }}</span>
|
|
48
|
-
|
|
49
|
-
<div
|
|
50
|
-
v-if="isShowAction"
|
|
51
|
-
:data-id="`${props.testId}-alert-actions`"
|
|
52
|
-
class="alert-actions"
|
|
53
|
-
@click="onAction"
|
|
54
|
-
>
|
|
55
|
-
<button
|
|
56
|
-
:id="`${props.testId}-action-button`"
|
|
57
|
-
class="btn alert-action"
|
|
58
|
-
>
|
|
59
|
-
{{ actionText }}
|
|
60
|
-
</button>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<button
|
|
66
|
-
:id="`${props.testId}-remove-button`"
|
|
67
|
-
:data-id="`${props.testId}-remove-button`"
|
|
68
|
-
class="close"
|
|
69
|
-
@click="removeCurrentNotification"
|
|
70
|
-
>
|
|
71
|
-
<atoms-the-icon name="close" fill="#fff" />
|
|
72
|
-
</button>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
|
-
<script setup lang="ts">
|
|
80
|
-
import type { UI_I_NotificationItem } from '~/components/atoms/notificationBar/lib/models/interfaces'
|
|
81
|
-
import {
|
|
82
|
-
UI_E_ColorsPageControl,
|
|
83
|
-
UI_E_IconsByStatus,
|
|
84
|
-
} from '~/components/atoms/notificationBar/lib/models/enums'
|
|
85
|
-
import type { UI_T_ColorsPageControlKey } from '~/components/atoms/notificationBar/lib/models/types'
|
|
86
|
-
|
|
87
|
-
const props = withDefaults(
|
|
88
|
-
defineProps<{
|
|
89
|
-
items: UI_I_NotificationItem[]
|
|
90
|
-
testId?: string
|
|
91
|
-
}>(),
|
|
92
|
-
{ testId: 'ui-notification-bar' }
|
|
93
|
-
)
|
|
94
|
-
const emits = defineEmits<{
|
|
95
|
-
(event: 'action'): void
|
|
96
|
-
(event: 'remove', value: number): void
|
|
97
|
-
}>()
|
|
98
|
-
|
|
99
|
-
const stepPosition = ref<number>(1)
|
|
100
|
-
|
|
101
|
-
const removeCurrentNotification = (): void => {
|
|
102
|
-
currentNotification.value && emits('remove', currentNotification.value.id)
|
|
103
|
-
}
|
|
104
|
-
const onPrev = (): void => {
|
|
105
|
-
if (stepPosition.value === 1) {
|
|
106
|
-
stepPosition.value = props.items.length
|
|
107
|
-
} else {
|
|
108
|
-
stepPosition.value--
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const onNext = (): void => {
|
|
112
|
-
if (stepPosition.value === props.items.length) {
|
|
113
|
-
stepPosition.value = 1
|
|
114
|
-
} else {
|
|
115
|
-
stepPosition.value++
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const onAction = (): void => {
|
|
119
|
-
emits('action')
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const currentNotification = computed<UI_I_NotificationItem | undefined>(() => {
|
|
123
|
-
return props.items.find((_, i) => i + 1 === stepPosition.value)
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
const status = computed<UI_T_ColorsPageControlKey>(
|
|
127
|
-
() => currentNotification.value?.status || 'alert-success'
|
|
128
|
-
)
|
|
129
|
-
const actionText = computed<string>(
|
|
130
|
-
() => currentNotification.value?.action || ''
|
|
131
|
-
)
|
|
132
|
-
|
|
133
|
-
const message = computed<string>(() => currentNotification.value?.message || '')
|
|
134
|
-
const isShowAction = computed<boolean>(
|
|
135
|
-
() => !!currentNotification.value?.action
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
const iconName = computed<string>(() =>
|
|
139
|
-
currentNotification.value
|
|
140
|
-
? UI_E_IconsByStatus[currentNotification.value.status]
|
|
141
|
-
: ''
|
|
142
|
-
)
|
|
143
|
-
|
|
144
|
-
const color = computed<string>(() => UI_E_ColorsPageControl[status.value])
|
|
145
|
-
</script>
|
|
146
|
-
|
|
147
|
-
<style lang="scss" scoped>
|
|
148
|
-
@import '~/assets/scss/common/mixins';
|
|
149
|
-
.notification-bar {
|
|
150
|
-
.alert {
|
|
151
|
-
&-app-level {
|
|
152
|
-
.close {
|
|
153
|
-
&:focus {
|
|
154
|
-
box-shadow: none;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
.page-control {
|
|
161
|
-
:is(.alerts-page-down, .alerts-page-up) {
|
|
162
|
-
@include flex($align: center, $just: center);
|
|
163
|
-
}
|
|
164
|
-
.alerts-pager-button {
|
|
165
|
-
@include flex($align: center);
|
|
166
|
-
}
|
|
167
|
-
svg {
|
|
168
|
-
width: 15px;
|
|
169
|
-
fill: #fff;
|
|
170
|
-
}
|
|
171
|
-
&__prev {
|
|
172
|
-
transform: rotate(-90deg);
|
|
173
|
-
}
|
|
174
|
-
&__next {
|
|
175
|
-
transform: rotate(90deg);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="notification-bar">
|
|
3
|
+
<div :style="{ 'background-color': color }" class="alerts">
|
|
4
|
+
<div v-if="props.items.length > 1" class="alerts-pager ng-star-inserted">
|
|
5
|
+
<div class="alerts-pager-control page-control">
|
|
6
|
+
<div class="alerts-page-down">
|
|
7
|
+
<button
|
|
8
|
+
:id="`${props.testId}-prev-button`"
|
|
9
|
+
:data-id="`${props.testId}-prev-button`"
|
|
10
|
+
class="alerts-pager-button"
|
|
11
|
+
@click="onPrev"
|
|
12
|
+
>
|
|
13
|
+
<atoms-the-icon class="page-control__prev" name="angle" />
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="alerts-pager-text">
|
|
18
|
+
{{ stepPosition }} / {{ props.items.length }}
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="alerts-page-up">
|
|
22
|
+
<button
|
|
23
|
+
:id="`${props.testId}-next-button`"
|
|
24
|
+
:data-id="`${props.testId}-next-button`"
|
|
25
|
+
class="alerts-pager-button"
|
|
26
|
+
@click="onNext"
|
|
27
|
+
>
|
|
28
|
+
<atoms-the-icon class="page-control__next" name="angle" />
|
|
29
|
+
</button>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="alert-text-truncate">
|
|
35
|
+
<div :class="['alert alert-app-level', currentNotification.status]">
|
|
36
|
+
<div class="alert-items">
|
|
37
|
+
<div class="alert-item">
|
|
38
|
+
<div class="alert-icon-wrapper">
|
|
39
|
+
<atoms-the-icon
|
|
40
|
+
:class="['alert-icon', iconName]"
|
|
41
|
+
:name="iconName"
|
|
42
|
+
stroke="none"
|
|
43
|
+
fill="#fff"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<span class="alert-text">{{ message }}</span>
|
|
48
|
+
|
|
49
|
+
<div
|
|
50
|
+
v-if="isShowAction"
|
|
51
|
+
:data-id="`${props.testId}-alert-actions`"
|
|
52
|
+
class="alert-actions"
|
|
53
|
+
@click="onAction"
|
|
54
|
+
>
|
|
55
|
+
<button
|
|
56
|
+
:id="`${props.testId}-action-button`"
|
|
57
|
+
class="btn alert-action"
|
|
58
|
+
>
|
|
59
|
+
{{ actionText }}
|
|
60
|
+
</button>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<button
|
|
66
|
+
:id="`${props.testId}-remove-button`"
|
|
67
|
+
:data-id="`${props.testId}-remove-button`"
|
|
68
|
+
class="close"
|
|
69
|
+
@click="removeCurrentNotification"
|
|
70
|
+
>
|
|
71
|
+
<atoms-the-icon name="close" fill="#fff" />
|
|
72
|
+
</button>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script setup lang="ts">
|
|
80
|
+
import type { UI_I_NotificationItem } from '~/components/atoms/notificationBar/lib/models/interfaces'
|
|
81
|
+
import {
|
|
82
|
+
UI_E_ColorsPageControl,
|
|
83
|
+
UI_E_IconsByStatus,
|
|
84
|
+
} from '~/components/atoms/notificationBar/lib/models/enums'
|
|
85
|
+
import type { UI_T_ColorsPageControlKey } from '~/components/atoms/notificationBar/lib/models/types'
|
|
86
|
+
|
|
87
|
+
const props = withDefaults(
|
|
88
|
+
defineProps<{
|
|
89
|
+
items: UI_I_NotificationItem[]
|
|
90
|
+
testId?: string
|
|
91
|
+
}>(),
|
|
92
|
+
{ testId: 'ui-notification-bar' }
|
|
93
|
+
)
|
|
94
|
+
const emits = defineEmits<{
|
|
95
|
+
(event: 'action'): void
|
|
96
|
+
(event: 'remove', value: number): void
|
|
97
|
+
}>()
|
|
98
|
+
|
|
99
|
+
const stepPosition = ref<number>(1)
|
|
100
|
+
|
|
101
|
+
const removeCurrentNotification = (): void => {
|
|
102
|
+
currentNotification.value && emits('remove', currentNotification.value.id)
|
|
103
|
+
}
|
|
104
|
+
const onPrev = (): void => {
|
|
105
|
+
if (stepPosition.value === 1) {
|
|
106
|
+
stepPosition.value = props.items.length
|
|
107
|
+
} else {
|
|
108
|
+
stepPosition.value--
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const onNext = (): void => {
|
|
112
|
+
if (stepPosition.value === props.items.length) {
|
|
113
|
+
stepPosition.value = 1
|
|
114
|
+
} else {
|
|
115
|
+
stepPosition.value++
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const onAction = (): void => {
|
|
119
|
+
emits('action')
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const currentNotification = computed<UI_I_NotificationItem | undefined>(() => {
|
|
123
|
+
return props.items.find((_, i) => i + 1 === stepPosition.value)
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
const status = computed<UI_T_ColorsPageControlKey>(
|
|
127
|
+
() => currentNotification.value?.status || 'alert-success'
|
|
128
|
+
)
|
|
129
|
+
const actionText = computed<string>(
|
|
130
|
+
() => currentNotification.value?.action || ''
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
const message = computed<string>(() => currentNotification.value?.message || '')
|
|
134
|
+
const isShowAction = computed<boolean>(
|
|
135
|
+
() => !!currentNotification.value?.action
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
const iconName = computed<string>(() =>
|
|
139
|
+
currentNotification.value
|
|
140
|
+
? UI_E_IconsByStatus[currentNotification.value.status]
|
|
141
|
+
: ''
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
const color = computed<string>(() => UI_E_ColorsPageControl[status.value])
|
|
145
|
+
</script>
|
|
146
|
+
|
|
147
|
+
<style lang="scss" scoped>
|
|
148
|
+
@import '~/assets/scss/common/mixins';
|
|
149
|
+
.notification-bar {
|
|
150
|
+
.alert {
|
|
151
|
+
&-app-level {
|
|
152
|
+
.close {
|
|
153
|
+
&:focus {
|
|
154
|
+
box-shadow: none;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
.page-control {
|
|
161
|
+
:is(.alerts-page-down, .alerts-page-up) {
|
|
162
|
+
@include flex($align: center, $just: center);
|
|
163
|
+
}
|
|
164
|
+
.alerts-pager-button {
|
|
165
|
+
@include flex($align: center);
|
|
166
|
+
}
|
|
167
|
+
svg {
|
|
168
|
+
width: 15px;
|
|
169
|
+
fill: #fff;
|
|
170
|
+
}
|
|
171
|
+
&__prev {
|
|
172
|
+
transform: rotate(-90deg);
|
|
173
|
+
}
|
|
174
|
+
&__next {
|
|
175
|
+
transform: rotate(90deg);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
</style>
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="popover">
|
|
3
|
-
<div
|
|
4
|
-
:id="id"
|
|
5
|
-
:data-id="`${props.testId}-click-handler`"
|
|
6
|
-
@click="handleClick"
|
|
7
|
-
>
|
|
8
|
-
<slot name="elem" />
|
|
9
|
-
</div>
|
|
10
|
-
<Teleport to="body">
|
|
11
|
-
<div :style="popoverPosition" class="popover__content">
|
|
12
|
-
<slot name="content" />
|
|
13
|
-
</div>
|
|
14
|
-
</Teleport>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script setup lang="ts">
|
|
19
|
-
import type { UI_I_PositionEl } from '~/components/atoms/popover/lib/models/interfaces'
|
|
20
|
-
|
|
21
|
-
const props = withDefaults(
|
|
22
|
-
defineProps<{
|
|
23
|
-
testId?: string | number
|
|
24
|
-
}>(),
|
|
25
|
-
{
|
|
26
|
-
testId: '',
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
const emits = defineEmits<{
|
|
31
|
-
(event: 'click'): void
|
|
32
|
-
}>()
|
|
33
|
-
|
|
34
|
-
const popoverPosition = ref<UI_I_PositionEl | null>(null)
|
|
35
|
-
|
|
36
|
-
const id = ref<string>(`popover${useUniqueId()}`)
|
|
37
|
-
|
|
38
|
-
const handleClick = (): void => {
|
|
39
|
-
emits('click')
|
|
40
|
-
|
|
41
|
-
const elem = document.getElementById(id.value) as HTMLDivElement
|
|
42
|
-
const { x, y, height, width } = elem.getBoundingClientRect()
|
|
43
|
-
|
|
44
|
-
popoverPosition.value = {
|
|
45
|
-
top: `${y + height / 2}px`,
|
|
46
|
-
left: `${x + width}px`,
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style lang="scss" scoped>
|
|
52
|
-
.popover {
|
|
53
|
-
&__content {
|
|
54
|
-
position: fixed;
|
|
55
|
-
z-index: var(--z-popover);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="popover">
|
|
3
|
+
<div
|
|
4
|
+
:id="id"
|
|
5
|
+
:data-id="`${props.testId}-click-handler`"
|
|
6
|
+
@click="handleClick"
|
|
7
|
+
>
|
|
8
|
+
<slot name="elem" />
|
|
9
|
+
</div>
|
|
10
|
+
<Teleport to="body">
|
|
11
|
+
<div :style="popoverPosition" class="popover__content">
|
|
12
|
+
<slot name="content" />
|
|
13
|
+
</div>
|
|
14
|
+
</Teleport>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import type { UI_I_PositionEl } from '~/components/atoms/popover/lib/models/interfaces'
|
|
20
|
+
|
|
21
|
+
const props = withDefaults(
|
|
22
|
+
defineProps<{
|
|
23
|
+
testId?: string | number
|
|
24
|
+
}>(),
|
|
25
|
+
{
|
|
26
|
+
testId: '',
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
const emits = defineEmits<{
|
|
31
|
+
(event: 'click'): void
|
|
32
|
+
}>()
|
|
33
|
+
|
|
34
|
+
const popoverPosition = ref<UI_I_PositionEl | null>(null)
|
|
35
|
+
|
|
36
|
+
const id = ref<string>(`popover${useUniqueId()}`)
|
|
37
|
+
|
|
38
|
+
const handleClick = (): void => {
|
|
39
|
+
emits('click')
|
|
40
|
+
|
|
41
|
+
const elem = document.getElementById(id.value) as HTMLDivElement
|
|
42
|
+
const { x, y, height, width } = elem.getBoundingClientRect()
|
|
43
|
+
|
|
44
|
+
popoverPosition.value = {
|
|
45
|
+
top: `${y + height / 2}px`,
|
|
46
|
+
left: `${x + width}px`,
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style lang="scss" scoped>
|
|
52
|
+
.popover {
|
|
53
|
+
&__content {
|
|
54
|
+
position: fixed;
|
|
55
|
+
z-index: var(--z-popover);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface UI_I_PositionEl {
|
|
2
|
-
top: string
|
|
3
|
-
left: string
|
|
4
|
-
}
|
|
1
|
+
export interface UI_I_PositionEl {
|
|
2
|
+
top: string
|
|
3
|
+
left: string
|
|
4
|
+
}
|