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,222 +1,222 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="['accordion', { disabled: props.accordion.disabled }]">
|
|
3
|
-
<nuxt-link
|
|
4
|
-
v-development="props.accordion.development"
|
|
5
|
-
:to="accordionLocal.path"
|
|
6
|
-
:data-id="accordionLocal.testId"
|
|
7
|
-
class="accordion-item"
|
|
8
|
-
active-class="active"
|
|
9
|
-
@click.prevent="onSelect(accordionLocal)"
|
|
10
|
-
>
|
|
11
|
-
<div
|
|
12
|
-
:class="['heading-wrap', { group: props.accordion.hasChild }]"
|
|
13
|
-
:style="{ paddingLeft: `${props.level * 24 || 10}px` }"
|
|
14
|
-
>
|
|
15
|
-
<div class="flex-align-center heading">
|
|
16
|
-
<div
|
|
17
|
-
v-if="props.accordion.iconClassName"
|
|
18
|
-
:class="['icon', props.accordion.iconClassName]"
|
|
19
|
-
></div>
|
|
20
|
-
<div
|
|
21
|
-
:class="['text text-ellipsis', headingClass]"
|
|
22
|
-
:data-id="`${accordionLocal.testId}`"
|
|
23
|
-
>
|
|
24
|
-
{{ props.accordion.name }}
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<button
|
|
28
|
-
v-if="props.accordion.hasChild"
|
|
29
|
-
:id="`${props.testId}-trigger-button`"
|
|
30
|
-
:data-id="`${accordionLocal.testId}-toggle-button`"
|
|
31
|
-
class="btn-trigger max-width"
|
|
32
|
-
@click="toggle"
|
|
33
|
-
>
|
|
34
|
-
<atoms-the-icon
|
|
35
|
-
:class="[
|
|
36
|
-
'trigger-icon',
|
|
37
|
-
{
|
|
38
|
-
isOpen: accordionLocal.isOpen,
|
|
39
|
-
},
|
|
40
|
-
]"
|
|
41
|
-
name="angle"
|
|
42
|
-
/>
|
|
43
|
-
</button>
|
|
44
|
-
</div>
|
|
45
|
-
</nuxt-link>
|
|
46
|
-
|
|
47
|
-
<transition
|
|
48
|
-
v-if="props.accordion.hasChild"
|
|
49
|
-
name="accordion"
|
|
50
|
-
@before-enter="end"
|
|
51
|
-
@enter="start"
|
|
52
|
-
@before-leave="start"
|
|
53
|
-
@leave="end"
|
|
54
|
-
>
|
|
55
|
-
<div v-show="accordionLocal.isOpen" class="accordion__content">
|
|
56
|
-
<common-accordion-recursion
|
|
57
|
-
v-for="(item, key) in props.accordion.children"
|
|
58
|
-
:key="item.id"
|
|
59
|
-
:test-id="`${props.testId}-${key}`"
|
|
60
|
-
:accordion="item"
|
|
61
|
-
:level="props.level + 1"
|
|
62
|
-
@change="onSelect"
|
|
63
|
-
/>
|
|
64
|
-
</div>
|
|
65
|
-
</transition>
|
|
66
|
-
</div>
|
|
67
|
-
</template>
|
|
68
|
-
|
|
69
|
-
<script setup lang="ts">
|
|
70
|
-
import type {
|
|
71
|
-
UI_I_AccordionRecursion,
|
|
72
|
-
UI_I_HeadingClass,
|
|
73
|
-
} from '~/components/common/accordion/lib/models/interfaces'
|
|
74
|
-
|
|
75
|
-
const props = withDefaults(
|
|
76
|
-
defineProps<{
|
|
77
|
-
accordion: UI_I_AccordionRecursion
|
|
78
|
-
testId: string
|
|
79
|
-
level?: number
|
|
80
|
-
}>(),
|
|
81
|
-
{ level: 0 }
|
|
82
|
-
)
|
|
83
|
-
const emits = defineEmits<{
|
|
84
|
-
(event: 'change', value: UI_I_AccordionRecursion): void
|
|
85
|
-
}>()
|
|
86
|
-
|
|
87
|
-
const accordionLocal = ref<UI_I_AccordionRecursion>(props.accordion)
|
|
88
|
-
|
|
89
|
-
// TODO CHANGE
|
|
90
|
-
watch(
|
|
91
|
-
accordionLocal,
|
|
92
|
-
() => {
|
|
93
|
-
if (accordionLocal.value.isOpen !== false)
|
|
94
|
-
accordionLocal.value.isOpen = true
|
|
95
|
-
},
|
|
96
|
-
{ immediate: true }
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
const toggle = (): void => {
|
|
100
|
-
if (!props.accordion.hasChild) return
|
|
101
|
-
|
|
102
|
-
accordionLocal.value.isOpen = !accordionLocal.value.isOpen
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const start = (element: any): void => {
|
|
106
|
-
element.style.height = 'auto'
|
|
107
|
-
}
|
|
108
|
-
const end = (element: any): void => {
|
|
109
|
-
element.style.height = 0
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const headingClass = computed<UI_I_HeadingClass>(() => {
|
|
113
|
-
return {
|
|
114
|
-
'text-normal': !props.accordion.hasChild,
|
|
115
|
-
disabled: props.accordion.disabled && !props.accordion.hasChild,
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
const onSelect = (item: UI_I_AccordionRecursion): void => {
|
|
120
|
-
emits('change', item)
|
|
121
|
-
}
|
|
122
|
-
</script>
|
|
123
|
-
|
|
124
|
-
<style lang="scss">
|
|
125
|
-
@import '~/assets/scss/common/mixins';
|
|
126
|
-
|
|
127
|
-
%hover-effect {
|
|
128
|
-
margin-bottom: -1px;
|
|
129
|
-
border-bottom: 1px solid var(--row-hover-border-color);
|
|
130
|
-
background-color: var(--row-hover-bg-color);
|
|
131
|
-
cursor: pointer;
|
|
132
|
-
}
|
|
133
|
-
%active-mode {
|
|
134
|
-
background-color: var(--row-selected-bg-color);
|
|
135
|
-
color: var(--row-selected-text-color);
|
|
136
|
-
}
|
|
137
|
-
.accordion {
|
|
138
|
-
.accordion-item {
|
|
139
|
-
display: block;
|
|
140
|
-
text-decoration: none;
|
|
141
|
-
color: var(--global-font-color);
|
|
142
|
-
|
|
143
|
-
&.active {
|
|
144
|
-
background-color: #29414e;
|
|
145
|
-
color: #fff;
|
|
146
|
-
border-bottom: 1px solid transparent;
|
|
147
|
-
cursor: default;
|
|
148
|
-
%hover-effect {
|
|
149
|
-
margin-bottom: unset;
|
|
150
|
-
border-bottom: unset;
|
|
151
|
-
background-color: unset;
|
|
152
|
-
cursor: unset;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.heading-wrap {
|
|
157
|
-
width: 100%;
|
|
158
|
-
@include flex($align: center, $just: space-between);
|
|
159
|
-
|
|
160
|
-
&:not(.group) {
|
|
161
|
-
display: block;
|
|
162
|
-
padding-right: 14px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&.group .heading {
|
|
166
|
-
width: calc(100% - 30px);
|
|
167
|
-
}
|
|
168
|
-
.heading {
|
|
169
|
-
margin-right: 10px;
|
|
170
|
-
//overflow: hidden;
|
|
171
|
-
.icon {
|
|
172
|
-
margin: 1px 4px 0 0;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.text {
|
|
176
|
-
font-weight: 600;
|
|
177
|
-
|
|
178
|
-
&.text-normal {
|
|
179
|
-
font-weight: 400;
|
|
180
|
-
|
|
181
|
-
&.disabled {
|
|
182
|
-
opacity: 0.3;
|
|
183
|
-
cursor: not-allowed;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
&:hover:not(:has(> .disabled)) {
|
|
190
|
-
@extend %hover-effect;
|
|
191
|
-
}
|
|
192
|
-
&:has(> .disabled) {
|
|
193
|
-
cursor: not-allowed;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
&__content {
|
|
197
|
-
transition: 0.1s ease-in-out;
|
|
198
|
-
overflow: hidden;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.btn-trigger {
|
|
203
|
-
flex: auto;
|
|
204
|
-
margin-right: 10px;
|
|
205
|
-
|
|
206
|
-
&.max-width {
|
|
207
|
-
width: max-content;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
//padding-right: 10px;
|
|
211
|
-
.trigger-icon {
|
|
212
|
-
width: 16px;
|
|
213
|
-
height: 16px;
|
|
214
|
-
transform: rotate(90deg);
|
|
215
|
-
margin-left: auto;
|
|
216
|
-
fill: var(--triger-icon-color);
|
|
217
|
-
&.isOpen {
|
|
218
|
-
transform: rotate(180deg);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="['accordion', { disabled: props.accordion.disabled }]">
|
|
3
|
+
<nuxt-link
|
|
4
|
+
v-development="props.accordion.development"
|
|
5
|
+
:to="accordionLocal.path"
|
|
6
|
+
:data-id="accordionLocal.testId"
|
|
7
|
+
class="accordion-item"
|
|
8
|
+
active-class="active"
|
|
9
|
+
@click.prevent="onSelect(accordionLocal)"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
:class="['heading-wrap', { group: props.accordion.hasChild }]"
|
|
13
|
+
:style="{ paddingLeft: `${props.level * 24 || 10}px` }"
|
|
14
|
+
>
|
|
15
|
+
<div class="flex-align-center heading">
|
|
16
|
+
<div
|
|
17
|
+
v-if="props.accordion.iconClassName"
|
|
18
|
+
:class="['icon', props.accordion.iconClassName]"
|
|
19
|
+
></div>
|
|
20
|
+
<div
|
|
21
|
+
:class="['text text-ellipsis', headingClass]"
|
|
22
|
+
:data-id="`${accordionLocal.testId}`"
|
|
23
|
+
>
|
|
24
|
+
{{ props.accordion.name }}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<button
|
|
28
|
+
v-if="props.accordion.hasChild"
|
|
29
|
+
:id="`${props.testId}-trigger-button`"
|
|
30
|
+
:data-id="`${accordionLocal.testId}-toggle-button`"
|
|
31
|
+
class="btn-trigger max-width"
|
|
32
|
+
@click="toggle"
|
|
33
|
+
>
|
|
34
|
+
<atoms-the-icon
|
|
35
|
+
:class="[
|
|
36
|
+
'trigger-icon',
|
|
37
|
+
{
|
|
38
|
+
isOpen: accordionLocal.isOpen,
|
|
39
|
+
},
|
|
40
|
+
]"
|
|
41
|
+
name="angle"
|
|
42
|
+
/>
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
</nuxt-link>
|
|
46
|
+
|
|
47
|
+
<transition
|
|
48
|
+
v-if="props.accordion.hasChild"
|
|
49
|
+
name="accordion"
|
|
50
|
+
@before-enter="end"
|
|
51
|
+
@enter="start"
|
|
52
|
+
@before-leave="start"
|
|
53
|
+
@leave="end"
|
|
54
|
+
>
|
|
55
|
+
<div v-show="accordionLocal.isOpen" class="accordion__content">
|
|
56
|
+
<common-accordion-recursion
|
|
57
|
+
v-for="(item, key) in props.accordion.children"
|
|
58
|
+
:key="item.id"
|
|
59
|
+
:test-id="`${props.testId}-${key}`"
|
|
60
|
+
:accordion="item"
|
|
61
|
+
:level="props.level + 1"
|
|
62
|
+
@change="onSelect"
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</transition>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script setup lang="ts">
|
|
70
|
+
import type {
|
|
71
|
+
UI_I_AccordionRecursion,
|
|
72
|
+
UI_I_HeadingClass,
|
|
73
|
+
} from '~/components/common/accordion/lib/models/interfaces'
|
|
74
|
+
|
|
75
|
+
const props = withDefaults(
|
|
76
|
+
defineProps<{
|
|
77
|
+
accordion: UI_I_AccordionRecursion
|
|
78
|
+
testId: string
|
|
79
|
+
level?: number
|
|
80
|
+
}>(),
|
|
81
|
+
{ level: 0 }
|
|
82
|
+
)
|
|
83
|
+
const emits = defineEmits<{
|
|
84
|
+
(event: 'change', value: UI_I_AccordionRecursion): void
|
|
85
|
+
}>()
|
|
86
|
+
|
|
87
|
+
const accordionLocal = ref<UI_I_AccordionRecursion>(props.accordion)
|
|
88
|
+
|
|
89
|
+
// TODO CHANGE
|
|
90
|
+
watch(
|
|
91
|
+
accordionLocal,
|
|
92
|
+
() => {
|
|
93
|
+
if (accordionLocal.value.isOpen !== false)
|
|
94
|
+
accordionLocal.value.isOpen = true
|
|
95
|
+
},
|
|
96
|
+
{ immediate: true }
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
const toggle = (): void => {
|
|
100
|
+
if (!props.accordion.hasChild) return
|
|
101
|
+
|
|
102
|
+
accordionLocal.value.isOpen = !accordionLocal.value.isOpen
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const start = (element: any): void => {
|
|
106
|
+
element.style.height = 'auto'
|
|
107
|
+
}
|
|
108
|
+
const end = (element: any): void => {
|
|
109
|
+
element.style.height = 0
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const headingClass = computed<UI_I_HeadingClass>(() => {
|
|
113
|
+
return {
|
|
114
|
+
'text-normal': !props.accordion.hasChild,
|
|
115
|
+
disabled: props.accordion.disabled && !props.accordion.hasChild,
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
|
|
119
|
+
const onSelect = (item: UI_I_AccordionRecursion): void => {
|
|
120
|
+
emits('change', item)
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<style lang="scss">
|
|
125
|
+
@import '~/assets/scss/common/mixins';
|
|
126
|
+
|
|
127
|
+
%hover-effect {
|
|
128
|
+
margin-bottom: -1px;
|
|
129
|
+
border-bottom: 1px solid var(--row-hover-border-color);
|
|
130
|
+
background-color: var(--row-hover-bg-color);
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
%active-mode {
|
|
134
|
+
background-color: var(--row-selected-bg-color);
|
|
135
|
+
color: var(--row-selected-text-color);
|
|
136
|
+
}
|
|
137
|
+
.accordion {
|
|
138
|
+
.accordion-item {
|
|
139
|
+
display: block;
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
color: var(--global-font-color);
|
|
142
|
+
|
|
143
|
+
&.active {
|
|
144
|
+
background-color: #29414e;
|
|
145
|
+
color: #fff;
|
|
146
|
+
border-bottom: 1px solid transparent;
|
|
147
|
+
cursor: default;
|
|
148
|
+
%hover-effect {
|
|
149
|
+
margin-bottom: unset;
|
|
150
|
+
border-bottom: unset;
|
|
151
|
+
background-color: unset;
|
|
152
|
+
cursor: unset;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.heading-wrap {
|
|
157
|
+
width: 100%;
|
|
158
|
+
@include flex($align: center, $just: space-between);
|
|
159
|
+
|
|
160
|
+
&:not(.group) {
|
|
161
|
+
display: block;
|
|
162
|
+
padding-right: 14px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.group .heading {
|
|
166
|
+
width: calc(100% - 30px);
|
|
167
|
+
}
|
|
168
|
+
.heading {
|
|
169
|
+
margin-right: 10px;
|
|
170
|
+
//overflow: hidden;
|
|
171
|
+
.icon {
|
|
172
|
+
margin: 1px 4px 0 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.text {
|
|
176
|
+
font-weight: 600;
|
|
177
|
+
|
|
178
|
+
&.text-normal {
|
|
179
|
+
font-weight: 400;
|
|
180
|
+
|
|
181
|
+
&.disabled {
|
|
182
|
+
opacity: 0.3;
|
|
183
|
+
cursor: not-allowed;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
&:hover:not(:has(> .disabled)) {
|
|
190
|
+
@extend %hover-effect;
|
|
191
|
+
}
|
|
192
|
+
&:has(> .disabled) {
|
|
193
|
+
cursor: not-allowed;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
&__content {
|
|
197
|
+
transition: 0.1s ease-in-out;
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.btn-trigger {
|
|
203
|
+
flex: auto;
|
|
204
|
+
margin-right: 10px;
|
|
205
|
+
|
|
206
|
+
&.max-width {
|
|
207
|
+
width: max-content;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
//padding-right: 10px;
|
|
211
|
+
.trigger-icon {
|
|
212
|
+
width: 16px;
|
|
213
|
+
height: 16px;
|
|
214
|
+
transform: rotate(90deg);
|
|
215
|
+
margin-left: auto;
|
|
216
|
+
fill: var(--triger-icon-color);
|
|
217
|
+
&.isOpen {
|
|
218
|
+
transform: rotate(180deg);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
</style>
|