bfg-common 1.2.84 → 1.2.86
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/localization/local_be.json +17 -1
- package/assets/localization/local_en.json +1 -1
- package/assets/localization/local_hy.json +17 -1
- package/assets/localization/local_kk.json +17 -1
- package/assets/localization/local_ru.json +17 -1
- package/assets/localization/local_zh.json +17 -1
- package/components/atoms/alert/Alert.vue +1 -1
- package/components/atoms/alert/Notification.vue +2 -2
- package/components/atoms/alert/models/interfaces.ts +3 -3
- package/components/atoms/autocomplete/Autocomplete.vue +5 -5
- package/components/atoms/collapse/CollapseNav.vue +2 -2
- package/components/atoms/collapse/CollapseNavItem.vue +1 -1
- package/components/atoms/combobox/Combobox.vue +2 -2
- package/components/atoms/datepicker/Datepicker.vue +6 -6
- package/components/atoms/dropdown/Portlet.vue +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +1 -1
- package/components/atoms/dropdown/tree/Tree.vue +2 -2
- package/components/atoms/list/SelectList.vue +1 -1
- package/components/atoms/list/dragDropList/DragDropList.vue +9 -9
- package/components/atoms/loader/BarLoader.vue +9 -3
- package/components/atoms/loader/PreLoader.vue +5 -4
- package/components/atoms/modal/Modal.vue +4 -1
- package/components/atoms/modal/bySteps/BySteps.vue +51 -51
- package/components/atoms/modal/byStepsSecond/ByStepsSecond.vue +4 -3
- package/components/atoms/nav/NavBar.vue +3 -3
- package/components/atoms/nav/VerticalNavBar.vue +1 -1
- package/components/atoms/notificationBar/NotificationBar.vue +7 -12
- package/components/atoms/perPage/PerPage.vue +3 -3
- package/components/atoms/popup/SimplePopup.vue +3 -3
- package/components/atoms/select/TheSelect.vue +5 -5
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/stack/StackContent.vue +9 -6
- package/components/atoms/step/VerticalStep.vue +2 -2
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +5 -5
- package/components/atoms/table/dataGrid/DataGridPage.vue +7 -5
- package/components/atoms/table/simpleEvent/SimpleEvent.vue +3 -3
- package/components/atoms/table/simpleTable/SimpleTable.vue +6 -4
- package/components/atoms/tabs/Tabs.vue +5 -5
- package/components/atoms/tooltip/Signpost.vue +5 -4
- package/components/atoms/tooltip/Text.vue +12 -14
- package/components/common/accordion/Recursion.vue +2 -2
- package/package.json +1 -1
|
@@ -2077,5 +2077,21 @@
|
|
|
2077
2077
|
"browserOutDateDesc": "Гэта можа прывесці да павольнай працы {0} або ўзнікнення памылак. Абнавіце свой браўзэр або ўсталюйце адно з наступных:",
|
|
2078
2078
|
"browserOutDateDesc2": "Вы таксама можаце выкарыстоўваць",
|
|
2079
2079
|
"browserOutDateDesc3": "мабільная версія вэб-сайта",
|
|
2080
|
-
"theDateOnHostAndBrowserDifferent": "Дата на хасце і ў вэб-браўзеры адрозніваецца"
|
|
2080
|
+
"theDateOnHostAndBrowserDifferent": "Дата на хасце і ў вэб-браўзеры адрозніваецца",
|
|
2081
|
+
"selectMigrationType": "Выберыце тып міграцыі",
|
|
2082
|
+
"selectMigrationTypeDesc": "Змяніце вылічальны рэсурс, сховішча або абодва віртуальных машыны.",
|
|
2083
|
+
"selectComputeResourceDesc": "Выберыце кластар, хост, vApp або пул рэсурсаў для запуску віртуальных машын.",
|
|
2084
|
+
"selectNetworks": "Выберыце Сеткі",
|
|
2085
|
+
"selectNetworksDesc": "Выберыце сеткі прызначэння для міграцыі віртуальнай машыны.",
|
|
2086
|
+
"selectStorageDesc": "Выберыце месца прызначэння для міграцыі віртуальнай машыны.",
|
|
2087
|
+
"selectVMotionPriority": "Выберыце прыярытэт vMotion",
|
|
2088
|
+
"selectVMotionPriorityDesc": "Абараніце прадукцыйнасць вашых запушчаных віртуальных машын шляхам прыярытэтнага размеркавання рэсурсаў ЦП.",
|
|
2089
|
+
"selectTargetVCenterSer": "Выберыце мэтавы vCenter Ser",
|
|
2090
|
+
"changeComputeResourceOnlyDesc": "Перанясіце віртуальныя машыны на іншы хост або кластар.",
|
|
2091
|
+
"changeStorageOnlyDesc": "Перанясіце сховішча віртуальных машын у сумяшчальнае сховішча або кластар сховішча даных.",
|
|
2092
|
+
"changeBothComputeResourceStorageDesc": "Перанясіце віртуальныя машыны на пэўны хост або кластар, а іх захоўванне - у пэўнае сховішча або кластар сховішча дадзеных.",
|
|
2093
|
+
"crossVCenterServerExport": "Экспарт крос-сервера vCenter",
|
|
2094
|
+
"crossVCenterServerExportDesc": "Перанясіце віртуальныя машыны на сервер vCenter, не звязаны з бягучым даменам SSO.",
|
|
2095
|
+
"batchConfigure": "Пакетная канфігурацыя",
|
|
2096
|
+
"configurePerDisk": "Наладзіць для кожнага дыска"
|
|
2081
2097
|
}
|
|
@@ -2095,6 +2095,6 @@
|
|
|
2095
2095
|
"changeBothComputeResourceStorageDesc": "Migrate the virtual machines to a specific host or cluster and their storage to a specific datastore or datastore cluster.",
|
|
2096
2096
|
"crossVCenterServerExport": "Cross vCenter Server export",
|
|
2097
2097
|
"crossVCenterServerExportDesc": "Migrate the virtual machines to a vCenter Server not linked to the current SSO domain.",
|
|
2098
|
-
"
|
|
2098
|
+
"batchConfigure": "Batch Configure",
|
|
2099
2099
|
"configurePerDisk": "Configure Per Disk"
|
|
2100
2100
|
}
|
|
@@ -2080,5 +2080,21 @@
|
|
|
2080
2080
|
"browserOutDateDesc": "Սա կարող է հանգեցնել {0}-ի դանդաղ աշխատանքի կամ սխալների: Թարմացրեք ձեր բրաուզերը կամ տեղադրեք հետևյալներից մեկը.",
|
|
2081
2081
|
"browserOutDateDesc2": "Կարող եք նաև օգտագործել",
|
|
2082
2082
|
"browserOutDateDesc3": "կայքի բջջային տարբերակ",
|
|
2083
|
-
"theDateOnHostAndBrowserDifferent": "Հոսթի և վեբ բրաուզերի ամսաթիվը տարբեր է"
|
|
2083
|
+
"theDateOnHostAndBrowserDifferent": "Հոսթի և վեբ բրաուզերի ամսաթիվը տարբեր է",
|
|
2084
|
+
"selectMigrationType": "Ընտրեք միգրացիայի տեսակը",
|
|
2085
|
+
"selectMigrationTypeDesc": "Փոխեք վիրտուալ մեքենաների հաշվողական ռեսուրսը, պահեստը կամ երկուսն էլ:",
|
|
2086
|
+
"selectComputeResourceDesc": "Ընտրեք կլաստեր, հոսթ, vApp կամ ռեսուրսային լողավազան՝ վիրտուալ մեքենաները գործարկելու համար:",
|
|
2087
|
+
"selectNetworks": "Ընտրեք Ցանցեր",
|
|
2088
|
+
"selectNetworksDesc": "Ընտրեք նպատակակետ ցանցեր վիրտուալ մեքենայի միգրացիայի համար:",
|
|
2089
|
+
"selectStorageDesc": "Ընտրեք նպատակակետ պահեստը վիրտուալ մեքենայի միգրացիայի համար:",
|
|
2090
|
+
"selectVMotionPriority": "Ընտրեք vMotion առաջնահերթությունը",
|
|
2091
|
+
"selectVMotionPriorityDesc": "Պաշտպանեք ձեր գործող վիրտուալ մեքենաների աշխատանքը՝ առաջնահերթություն տալով պրոցեսորի ռեսուրսների բաշխմանը:",
|
|
2092
|
+
"selectTargetVCenterSer": "Ընտրեք թիրախային vCenter Ser-ը",
|
|
2093
|
+
"changeComputeResourceOnlyDesc": "Տեղափոխեք վիրտուալ մեքենաները մեկ այլ հոսթ կամ կլաստեր:",
|
|
2094
|
+
"changeStorageOnlyDesc": "Տեղափոխեք վիրտուալ մեքենաների պահեստը համատեղելի տվյալների պահեստ կամ տվյալների պահեստի կլաստեր:",
|
|
2095
|
+
"changeBothComputeResourceStorageDesc": "Տեղափոխեք վիրտուալ մեքենաները կոնկրետ հոսթ կամ կլաստեր, և դրանց պահեստավորումը դեպի հատուկ տվյալների պահեստ կամ տվյալների պահեստի կլաստեր:",
|
|
2096
|
+
"crossVCenterServerExport": "Cross vCenter Server-ի արտահանում",
|
|
2097
|
+
"crossVCenterServerExportDesc": "Տեղափոխեք վիրտուալ մեքենաները դեպի vCenter սերվեր, որը կապված չէ ներկայիս SSO տիրույթին:",
|
|
2098
|
+
"batchConfigure": "Խմբաքանակի կազմաձևում",
|
|
2099
|
+
"configurePerDisk": "Կարգավորել մեկ սկավառակի համար"
|
|
2084
2100
|
}
|
|
@@ -2080,5 +2080,21 @@
|
|
|
2080
2080
|
"browserOutDateDesc": "Бұл {0} баяу жұмыс істеуіне немесе қателіктерге әкелуі мүмкін. Браузерді жаңартыңыз немесе келесілердің бірін орнатыңыз:",
|
|
2081
2081
|
"browserOutDateDesc2": "Сіз сондай-ақ пайдалана аласыз",
|
|
2082
2082
|
"browserOutDateDesc3": "веб-сайттың мобильді нұсқасы",
|
|
2083
|
-
"theDateOnHostAndBrowserDifferent": "Хосттағы және веб-шолғыштағы күн әртүрлі"
|
|
2083
|
+
"theDateOnHostAndBrowserDifferent": "Хосттағы және веб-шолғыштағы күн әртүрлі",
|
|
2084
|
+
"selectMigrationType": "Тасымалдау түрін таңдаңыз",
|
|
2085
|
+
"selectMigrationTypeDesc": "Виртуалды машиналардың есептеу ресурсын, жадын немесе екеуін де өзгертіңіз.",
|
|
2086
|
+
"selectComputeResourceDesc": "Виртуалды машиналарды іске қосу үшін кластерді, хостты, vApp немесе ресурс пулын таңдаңыз.",
|
|
2087
|
+
"selectNetworks": "Желілерді таңдаңыз",
|
|
2088
|
+
"selectNetworksDesc": "Виртуалды машинаны тасымалдау үшін тағайындалған желілерді таңдаңыз.",
|
|
2089
|
+
"selectStorageDesc": "Виртуалды машинаны тасымалдау үшін тағайындалған сақтау орнын таңдаңыз.",
|
|
2090
|
+
"selectVMotionPriority": "vMotion басымдылығын таңдаңыз",
|
|
2091
|
+
"selectVMotionPriorityDesc": "CPU ресурстарын бөлуге басымдық беру арқылы іске қосылған виртуалды машиналарыңыздың өнімділігін қорғаңыз.",
|
|
2092
|
+
"selectTargetVCenterSer": "Мақсатты vCenter серверін таңдаңыз",
|
|
2093
|
+
"changeComputeResourceOnlyDesc": "Виртуалды машиналарды басқа хостқа немесе кластерге көшіріңіз.",
|
|
2094
|
+
"changeStorageOnlyDesc": "Виртуалды машиналар қоймасын үйлесімді деректер қоймасына немесе деректер қоймасының кластеріне көшіріңіз.",
|
|
2095
|
+
"changeBothComputeResourceStorageDesc": "Виртуалды машиналарды белгілі бір хостқа немесе кластерге және оларды сақтауды белгілі бір деректер қоймасына немесе деректер қоймасының кластеріне көшіріңіз.",
|
|
2096
|
+
"crossVCenterServerExport": "vCenter сервері арқылы экспорттау",
|
|
2097
|
+
"crossVCenterServerExportDesc": "Виртуалды машиналарды ағымдағы SSO доменімен байланыспаған vCenter серверіне тасымалдаңыз.",
|
|
2098
|
+
"batchConfigure": "Пакеттік конфигурация",
|
|
2099
|
+
"configurePerDisk": "Әр дискіні конфигурациялау"
|
|
2084
2100
|
}
|
|
@@ -2080,5 +2080,21 @@
|
|
|
2080
2080
|
"browserOutDateDesc": "Это может привести к медленной работе {0} или возникновению ошибок. Обновите свой браузер или установите одно из следующих:",
|
|
2081
2081
|
"browserOutDateDesc2": "Вы также можете использовать",
|
|
2082
2082
|
"browserOutDateDesc3": "мобильная версия веб-сайта",
|
|
2083
|
-
"theDateOnHostAndBrowserDifferent": "Дата на хосте и в веб-браузере различается"
|
|
2083
|
+
"theDateOnHostAndBrowserDifferent": "Дата на хосте и в веб-браузере различается",
|
|
2084
|
+
"selectMigrationType": "Выберите тип миграции",
|
|
2085
|
+
"selectMigrationTypeDesc": "Измените вычислительный ресурс, хранилище или и то, и другое виртуальных машин.",
|
|
2086
|
+
"selectComputeResourceDesc": "Выберите кластер, хост, vApp или пул ресурсов для запуска виртуальных машин.",
|
|
2087
|
+
"selectNetworks": "Выберите сети",
|
|
2088
|
+
"selectNetworksDesc": "Выберите целевые сети для миграции виртуальной машины.",
|
|
2089
|
+
"selectStorageDesc": "Выберите целевое хранилище для миграции виртуальной машины.",
|
|
2090
|
+
"selectVMotionPriority": "Выберите приоритет vMotion",
|
|
2091
|
+
"selectVMotionPriorityDesc": "Защитите производительность работающих виртуальных машин, расставив приоритеты при выделении ресурсов ЦП.",
|
|
2092
|
+
"selectTargetVCenterSer": "Выберите целевой vCenter Ser",
|
|
2093
|
+
"changeComputeResourceOnlyDesc": "Перенесите виртуальные машины на другой хост или кластер.",
|
|
2094
|
+
"changeStorageOnlyDesc": "Перенесите хранилище виртуальных машин в совместимое хранилище данных или кластер хранилища данных.",
|
|
2095
|
+
"changeBothComputeResourceStorageDesc": "Перенесите виртуальные машины на определенный хост или кластер, а их хранилище — в определенное хранилище данных или кластер хранилищ данных.",
|
|
2096
|
+
"crossVCenterServerExport": "Межсерверный экспорт vCenter",
|
|
2097
|
+
"crossVCenterServerExportDesc": "Перенесите виртуальные машины на сервер vCenter, не связанный с текущим доменом единого входа.",
|
|
2098
|
+
"batchConfigure": "Пакетная настройка",
|
|
2099
|
+
"configurePerDisk": "Настройка для каждого диска"
|
|
2084
2100
|
}
|
|
@@ -2080,5 +2080,21 @@
|
|
|
2080
2080
|
"browserOutDateDesc": "这可能会导致 {0} 运行缓慢或出现错误。 更新您的浏览器或安装以下其中一项:",
|
|
2081
2081
|
"browserOutDateDesc2": "您还可以使用",
|
|
2082
2082
|
"browserOutDateDesc3": "网站的移动版本",
|
|
2083
|
-
"theDateOnHostAndBrowserDifferent": "主机上的日期和网络浏览器中的日期不同"
|
|
2083
|
+
"theDateOnHostAndBrowserDifferent": "主机上的日期和网络浏览器中的日期不同",
|
|
2084
|
+
"selectMigrationType": "选择迁移类型",
|
|
2085
|
+
"selectMigrationTypeDesc": "更改虚拟机的计算资源、存储或两者。",
|
|
2086
|
+
"selectComputeResourceDesc": "选择集群、主机、vApp 或资源池来运行虚拟机。",
|
|
2087
|
+
"selectNetworks": "选择网络",
|
|
2088
|
+
"selectNetworksDesc": "选择虚拟机迁移的目标网络。",
|
|
2089
|
+
"selectStorageDesc": "选择虚拟机迁移的目标存储。",
|
|
2090
|
+
"selectVMotionPriority": "选择 vMotion 优先级",
|
|
2091
|
+
"selectVMotionPriorityDesc": "通过优先分配 CPU 资源来保护正在运行的虚拟机的性能。",
|
|
2092
|
+
"selectTargetVCenterSer": "选择目标 vCenter Server",
|
|
2093
|
+
"changeComputeResourceOnlyDesc": "将虚拟机迁移到另一台主机或群集。",
|
|
2094
|
+
"changeStorageOnlyDesc": "将虚拟机的存储迁移到兼容的数据存储或数据存储群集。",
|
|
2095
|
+
"changeBothComputeResourceStorageDesc": "将虚拟机迁移到特定主机或集群,并将其存储迁移到特定数据存储或数据存储集群。",
|
|
2096
|
+
"crossVCenterServerExport": "跨 vCenter Server 导出",
|
|
2097
|
+
"crossVCenterServerExportDesc": "将虚拟机迁移到未链接到当前 SSO 域的 vCenter Server。",
|
|
2098
|
+
"batchConfigure": "批量配置",
|
|
2099
|
+
"configurePerDisk": "配置每个磁盘"
|
|
2084
2100
|
}
|
|
@@ -43,7 +43,7 @@ const emits = defineEmits<{
|
|
|
43
43
|
const removeAlert = (): void => {
|
|
44
44
|
emits('remove')
|
|
45
45
|
}
|
|
46
|
-
const iconName = computed(() => UI_E_IconsByStatus[props.status])
|
|
46
|
+
const iconName = computed<string>(() => UI_E_IconsByStatus[props.status])
|
|
47
47
|
</script>
|
|
48
48
|
|
|
49
49
|
<style scoped lang="scss">
|
|
@@ -41,12 +41,12 @@ import { UI_T_Status } from '~/components/atoms/alert/models/types'
|
|
|
41
41
|
|
|
42
42
|
const props = withDefaults(
|
|
43
43
|
defineProps<{
|
|
44
|
-
testId?: string
|
|
45
44
|
status: UI_T_Status
|
|
46
45
|
id: number
|
|
47
46
|
show: boolean
|
|
48
47
|
title: string
|
|
49
48
|
description: string
|
|
49
|
+
testId?: string
|
|
50
50
|
}>(),
|
|
51
51
|
{ testId: 'ui-notification' }
|
|
52
52
|
)
|
|
@@ -55,7 +55,7 @@ const emits = defineEmits<{
|
|
|
55
55
|
}>()
|
|
56
56
|
|
|
57
57
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
58
|
-
const hide = () => {
|
|
58
|
+
const hide = (): void => {
|
|
59
59
|
isActive.value = false
|
|
60
60
|
|
|
61
61
|
setTimeout(() => {
|
|
@@ -6,12 +6,12 @@ interface UI_I_NotificationMessageItem {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export interface UI_I_NotificationMessage {
|
|
9
|
+
status: UI_T_Status
|
|
10
|
+
messages: UI_I_NotificationMessageItem[]
|
|
11
|
+
headline: string
|
|
9
12
|
id?: number
|
|
10
13
|
isShow?: boolean
|
|
11
|
-
headline: string
|
|
12
14
|
timeout?: number
|
|
13
|
-
status: UI_T_Status
|
|
14
|
-
messages: UI_I_NotificationMessageItem[]
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface UI_I_NotificationHide {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
<script setup lang="ts">
|
|
49
49
|
const props = withDefaults(
|
|
50
50
|
defineProps<{
|
|
51
|
-
testId?: string
|
|
52
51
|
placeholder: string
|
|
53
52
|
items: string[]
|
|
54
53
|
loading: boolean
|
|
54
|
+
testId?: string
|
|
55
55
|
ms?: number
|
|
56
56
|
}>(),
|
|
57
57
|
{
|
|
@@ -134,15 +134,15 @@ const prevTabItem = (): void => {
|
|
|
134
134
|
|
|
135
135
|
watch(
|
|
136
136
|
() => props.items,
|
|
137
|
-
(
|
|
138
|
-
if (
|
|
137
|
+
(newValue) => {
|
|
138
|
+
if (newValue.length) {
|
|
139
139
|
isHide.value = false
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
)
|
|
143
143
|
window.addEventListener('keydown', onKeyDown, true)
|
|
144
|
-
watch(isHide, (
|
|
145
|
-
if (!
|
|
144
|
+
watch(isHide, (newValue) => {
|
|
145
|
+
if (!newValue) {
|
|
146
146
|
window.addEventListener('keydown', onKeyDown, true)
|
|
147
147
|
} else {
|
|
148
148
|
window.removeEventListener('keydown', onKeyDown, true)
|
|
@@ -113,10 +113,10 @@ const hideMenu = (force?: boolean): void => {
|
|
|
113
113
|
open.value = false
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
const windowClick = () => {
|
|
116
|
+
const windowClick = (): void => {
|
|
117
117
|
hideMenu()
|
|
118
118
|
}
|
|
119
|
-
const windowResize = () => {
|
|
119
|
+
const windowResize = (): void => {
|
|
120
120
|
hideMenu(true)
|
|
121
121
|
}
|
|
122
122
|
onMounted(() => {
|
|
@@ -58,8 +58,8 @@ import { UI_I_CollapseNavItem } from '~/components/atoms/collapse/models/interfa
|
|
|
58
58
|
|
|
59
59
|
const props = withDefaults(
|
|
60
60
|
defineProps<{
|
|
61
|
-
testId?: string
|
|
62
61
|
item: UI_I_CollapseNavItem
|
|
62
|
+
testId?: string
|
|
63
63
|
value?: number | string
|
|
64
64
|
isLink?: boolean
|
|
65
65
|
btnClass?: string
|
|
@@ -92,9 +92,9 @@ const clear = (): void => {
|
|
|
92
92
|
emits('update:model-value', '')
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const isOpen = ref(false)
|
|
95
|
+
const isOpen = ref<boolean>(false)
|
|
96
96
|
|
|
97
|
-
const onFocusInput = (event: Event) => {
|
|
97
|
+
const onFocusInput = (event: Event): void => {
|
|
98
98
|
const target = event.target as HTMLElement
|
|
99
99
|
target && target.nextSibling && target.nextSibling.focus()
|
|
100
100
|
}
|
|
@@ -162,15 +162,15 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
162
162
|
|
|
163
163
|
const props = withDefaults(
|
|
164
164
|
defineProps<{
|
|
165
|
-
testId?: string
|
|
166
165
|
modelValue: number
|
|
167
166
|
lang: string
|
|
167
|
+
testId?: string
|
|
168
168
|
}>(),
|
|
169
169
|
{ testId: 'ui-datepicker' }
|
|
170
170
|
)
|
|
171
171
|
const emits = defineEmits<{
|
|
172
|
-
(event: 'update:model-value',
|
|
173
|
-
(event: 'update',
|
|
172
|
+
(event: 'update:model-value', value: number): void
|
|
173
|
+
(event: 'update', value: number): void
|
|
174
174
|
}>()
|
|
175
175
|
|
|
176
176
|
const interfaceLang = computed<string>(() => props.lang)
|
|
@@ -206,7 +206,7 @@ const weekdays = computed<string[]>(() => {
|
|
|
206
206
|
return getWeekdaysFunc(localization.value, language)
|
|
207
207
|
})
|
|
208
208
|
|
|
209
|
-
const renderCalendar = () => {
|
|
209
|
+
const renderCalendar = (): void => {
|
|
210
210
|
checkingDate.value.setDate(1)
|
|
211
211
|
days.value = []
|
|
212
212
|
|
|
@@ -397,8 +397,8 @@ onUnmounted(() => {
|
|
|
397
397
|
window.removeEventListener('scroll', windowClick)
|
|
398
398
|
})
|
|
399
399
|
|
|
400
|
-
watch(isShowCalendar, (
|
|
401
|
-
if (
|
|
400
|
+
watch(isShowCalendar, (newValue) => {
|
|
401
|
+
if (newValue) {
|
|
402
402
|
checkingDate.value.setMonth(new Date(props.modelValue).getMonth())
|
|
403
403
|
checkingDate.value.setFullYear(new Date(props.modelValue).getFullYear())
|
|
404
404
|
renderCalendar()
|
|
@@ -28,14 +28,14 @@ const props = defineProps<{
|
|
|
28
28
|
disabled?: boolean
|
|
29
29
|
}>()
|
|
30
30
|
|
|
31
|
-
const isOpen = ref(false)
|
|
31
|
+
const isOpen = ref<boolean>(false)
|
|
32
32
|
|
|
33
33
|
const portletCollapsed = computed<boolean>(() => {
|
|
34
34
|
if (props.disabled) { return true }
|
|
35
35
|
return isOpen.value
|
|
36
36
|
})
|
|
37
37
|
|
|
38
|
-
const togglePortlet = () => (isOpen.value = !isOpen.value)
|
|
38
|
+
const togglePortlet = (): boolean => (isOpen.value = !isOpen.value)
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
41
|
<style scoped lang="scss">
|
|
@@ -43,9 +43,9 @@ import { UI_I_DropMenu } from '~/components/atoms/dropdown/dropdown/models/inter
|
|
|
43
43
|
const emits = defineEmits(['select'])
|
|
44
44
|
const props = withDefaults(
|
|
45
45
|
defineProps<{
|
|
46
|
+
dropMenu: UI_I_DropMenu<string>[]
|
|
46
47
|
testId?: string
|
|
47
48
|
title?: string
|
|
48
|
-
dropMenu: UI_I_DropMenu<string>[]
|
|
49
49
|
}>(),
|
|
50
50
|
{ testId: 'ui-dropdown' }
|
|
51
51
|
)
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
|
|
34
34
|
const props = withDefaults(
|
|
35
35
|
defineProps<{
|
|
36
|
-
testId?: string
|
|
37
36
|
items: UI_I_DropdownTreeItem[]
|
|
38
37
|
title: string
|
|
38
|
+
testId?: string
|
|
39
39
|
}>(),
|
|
40
40
|
{ testId: 'ui-dropdown-tree' }
|
|
41
41
|
)
|
|
@@ -45,7 +45,7 @@ const select = (item: UI_I_DropdownTreeItemChild): void => {
|
|
|
45
45
|
emits('select', item)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const open = ref(false)
|
|
48
|
+
const open = ref<boolean>(false)
|
|
49
49
|
const toggle = (): void => {
|
|
50
50
|
open.value = !open.value
|
|
51
51
|
if (open.value) {
|
|
@@ -24,9 +24,9 @@ import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
|
24
24
|
|
|
25
25
|
const props = withDefaults(
|
|
26
26
|
defineProps<{
|
|
27
|
-
testId?: string
|
|
28
27
|
items: UI_I_OptionItem[]
|
|
29
28
|
modelValue: string
|
|
29
|
+
testId?: string
|
|
30
30
|
}>(),
|
|
31
31
|
{ testId: 'ui-select-list' }
|
|
32
32
|
)
|
|
@@ -34,7 +34,7 @@ const props = defineProps<{
|
|
|
34
34
|
grabItemKey: string
|
|
35
35
|
}>()
|
|
36
36
|
const emits = defineEmits<{
|
|
37
|
-
( event: 'drop',
|
|
37
|
+
( event: 'drop', value: UI_I_DropEvent ): void
|
|
38
38
|
}>()
|
|
39
39
|
|
|
40
40
|
const presentItems = computed(() => props.items)
|
|
@@ -42,28 +42,28 @@ const presentItems = computed(() => props.items)
|
|
|
42
42
|
const dragDropItemGrab = computed(() => grabItem.value?.[props.grabItemKey])
|
|
43
43
|
let dragDropItemGrabElem: HTMLElement
|
|
44
44
|
|
|
45
|
-
const hoveredItemPosition = ref(-1)
|
|
45
|
+
const hoveredItemPosition = ref<number>(-1)
|
|
46
46
|
const isGrab = ref<boolean>(false)
|
|
47
47
|
const grabItem = ref(null)
|
|
48
|
-
const grab = (item: any,
|
|
48
|
+
const grab = (item: any, event: Event): void => {
|
|
49
49
|
isGrab.value = true
|
|
50
50
|
grabItem.value = item
|
|
51
51
|
|
|
52
|
-
setDragDropItemGrabElemPosition(
|
|
52
|
+
setDragDropItemGrabElemPosition(event)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
let setDragDropItemGrabElemPosition = (
|
|
55
|
+
let setDragDropItemGrabElemPosition = (event: any): void => {
|
|
56
56
|
if (!dragDropItemGrabElem) return
|
|
57
57
|
|
|
58
|
-
dragDropItemGrabElem.style.top = `${
|
|
59
|
-
dragDropItemGrabElem.style.left = `${
|
|
58
|
+
dragDropItemGrabElem.style.top = `${event.clientY + 2}px`
|
|
59
|
+
dragDropItemGrabElem.style.left = `${event.clientX + 2}px`
|
|
60
60
|
}
|
|
61
61
|
setDragDropItemGrabElemPosition = useThrottle(setDragDropItemGrabElemPosition)
|
|
62
62
|
|
|
63
|
-
const windowMousemove = (
|
|
63
|
+
const windowMousemove = (event: Event): void => {
|
|
64
64
|
if (!isGrab.value) { return }
|
|
65
65
|
|
|
66
|
-
setDragDropItemGrabElemPosition(
|
|
66
|
+
setDragDropItemGrabElemPosition(event)
|
|
67
67
|
}
|
|
68
68
|
const windowMouseup = (): void => {
|
|
69
69
|
if (!isGrab.value) { return }
|
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
<div class="loader"></div>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
|
-
<script setup>
|
|
6
|
-
</script>
|
|
5
|
+
<script setup></script>
|
|
7
6
|
|
|
8
7
|
<style scoped lang="scss">
|
|
9
8
|
.loader {
|
|
10
9
|
width: 100%;
|
|
11
10
|
height: 100%;
|
|
12
|
-
background: repeating-linear-gradient(
|
|
11
|
+
background: repeating-linear-gradient(
|
|
12
|
+
-45deg,
|
|
13
|
+
rgba(1, 157, 255, 0.5) 1.88% 6%,
|
|
14
|
+
rgba(179, 217, 243, 0.5) 0 5%,
|
|
15
|
+
rgba(179, 217, 243, 0.5) 5% 10%,
|
|
16
|
+
rgba(1, 157, 255, 0.5) 5% 10%
|
|
17
|
+
)
|
|
18
|
+
left/400% 100%;
|
|
13
19
|
animation: i3 10s infinite linear;
|
|
14
20
|
}
|
|
15
21
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="loading-container" :hidden="!props.show">
|
|
3
|
-
<div class="spinner spinner-inverse">
|
|
4
|
-
{{ localization.loading }}...
|
|
5
|
-
</div>
|
|
3
|
+
<div class="spinner spinner-inverse">{{ localization.loading }}...</div>
|
|
6
4
|
</div>
|
|
7
5
|
</template>
|
|
8
6
|
|
|
9
7
|
<script setup lang="ts">
|
|
10
|
-
|
|
8
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
9
|
+
|
|
11
10
|
const props = defineProps<{
|
|
12
11
|
show: boolean
|
|
13
12
|
}>()
|
|
13
|
+
|
|
14
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
14
15
|
</script>
|
|
15
16
|
|
|
16
17
|
<style scoped lang="scss">
|
|
@@ -75,6 +75,8 @@
|
|
|
75
75
|
</template>
|
|
76
76
|
|
|
77
77
|
<script setup lang="ts">
|
|
78
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
79
|
+
|
|
78
80
|
const props = withDefaults(
|
|
79
81
|
defineProps<{
|
|
80
82
|
show: boolean
|
|
@@ -106,7 +108,8 @@ const emits = defineEmits<{
|
|
|
106
108
|
(event: 'submit'): void
|
|
107
109
|
(event: 'hide'): void
|
|
108
110
|
}>()
|
|
109
|
-
|
|
111
|
+
|
|
112
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
110
113
|
const hide = (): void => {
|
|
111
114
|
emits('hide')
|
|
112
115
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
{{ props.title }}
|
|
8
8
|
</h1>
|
|
9
9
|
<atoms-step-vertical-step
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
:test-id="props.testId"
|
|
11
|
+
:items="props.stepItems"
|
|
12
|
+
:step-position="props.stepPosition"
|
|
13
|
+
@change="changeStep"
|
|
14
14
|
/>
|
|
15
15
|
</nav>
|
|
16
16
|
<div class="modal-content">
|
|
@@ -23,51 +23,51 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
</slot>
|
|
25
25
|
<button
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
:id="`${props.testId}-close-icon`"
|
|
27
|
+
class="close"
|
|
28
|
+
@click="hide"
|
|
29
29
|
>
|
|
30
30
|
<atoms-the-icon class="close-icon" name="close" />
|
|
31
31
|
</button>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="modal-body">
|
|
34
34
|
<slot
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
name="modalBody"
|
|
36
|
+
:title="heading"
|
|
37
|
+
:description="stepDescription"
|
|
38
38
|
/>
|
|
39
39
|
</div>
|
|
40
40
|
<div class="modal-footer">
|
|
41
41
|
<slot name="modalFooter">
|
|
42
42
|
<button
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
:id="`${props.testId}-cancel-button`"
|
|
44
|
+
class="btn btn-link"
|
|
45
|
+
@click="hide"
|
|
46
46
|
>
|
|
47
47
|
{{ localization.cancel }}
|
|
48
48
|
</button>
|
|
49
49
|
<button
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
v-show="props.stepPosition > 0"
|
|
51
|
+
:id="`${props.testId}-back-button`"
|
|
52
|
+
class="btn btn-outline"
|
|
53
|
+
@click="back"
|
|
54
54
|
>
|
|
55
55
|
{{ localization.back }}
|
|
56
56
|
</button>
|
|
57
57
|
<button
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
v-if="props.stepPosition === props.stepItems.length - 1"
|
|
59
|
+
:id="`${props.testId}-finish-button`"
|
|
60
|
+
class="btn btn-success"
|
|
61
|
+
@click="finish"
|
|
62
62
|
>
|
|
63
63
|
{{ localization.finish }}
|
|
64
64
|
</button>
|
|
65
65
|
<button
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
v-else
|
|
67
|
+
:id="`${props.testId}-next-button`"
|
|
68
|
+
:disabled="props.disabledNext"
|
|
69
|
+
class="btn btn-primary"
|
|
70
|
+
@click="next"
|
|
71
71
|
>
|
|
72
72
|
{{ localization.next }}
|
|
73
73
|
</button>
|
|
@@ -88,20 +88,20 @@
|
|
|
88
88
|
import { UI_I_VerticalStepItem } from '~/components/atoms/models/interfaces'
|
|
89
89
|
|
|
90
90
|
const props = withDefaults(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
91
|
+
defineProps<{
|
|
92
|
+
show: boolean
|
|
93
|
+
title: string
|
|
94
|
+
stepItems: UI_I_VerticalStepItem[]
|
|
95
|
+
stepPosition: number
|
|
96
|
+
secondTitle?: string
|
|
97
|
+
testId?: string
|
|
98
|
+
loading?: boolean
|
|
99
|
+
disabledNext?: boolean
|
|
100
|
+
}>(),
|
|
101
|
+
{
|
|
102
|
+
testId: 'ui-modal-by-steps',
|
|
103
|
+
disabledNext: false,
|
|
104
|
+
}
|
|
105
105
|
)
|
|
106
106
|
const emits = defineEmits<{
|
|
107
107
|
(event: 'finish'): void
|
|
@@ -133,18 +133,18 @@ const changeStep = (key: number): void => {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
watch(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
() => props.stepPosition,
|
|
137
|
+
(value) => {
|
|
138
|
+
const { stepItems, secondTitle } = props
|
|
139
|
+
if (secondTitle) {
|
|
140
|
+
heading.value = secondTitle
|
|
141
|
+
return
|
|
142
|
+
}
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
heading.value = stepItems[value].text
|
|
145
|
+
stepDescription.value = stepItems[value]?.description || ''
|
|
146
|
+
},
|
|
147
|
+
{ immediate: true }
|
|
148
148
|
)
|
|
149
149
|
</script>
|
|
150
150
|
|
|
@@ -64,15 +64,16 @@
|
|
|
64
64
|
</template>
|
|
65
65
|
|
|
66
66
|
<script setup lang="ts">
|
|
67
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
67
68
|
import { UI_I_VerticalStepItem } from '~/components/atoms/models/interfaces'
|
|
68
69
|
|
|
69
70
|
const props = withDefaults(
|
|
70
71
|
defineProps<{
|
|
71
|
-
testId?: string
|
|
72
72
|
show: boolean
|
|
73
73
|
title: string
|
|
74
74
|
stepItems: UI_I_VerticalStepItem
|
|
75
75
|
stepPosition: number
|
|
76
|
+
testId?: string
|
|
76
77
|
}>(),
|
|
77
78
|
{ testId: 'ui-modal-by-steps' }
|
|
78
79
|
)
|
|
@@ -81,10 +82,10 @@ const emits = defineEmits<{
|
|
|
81
82
|
(event: 'next'): void
|
|
82
83
|
(event: 'back'): void
|
|
83
84
|
(event: 'hide'): void
|
|
84
|
-
(event: 'change-step',
|
|
85
|
+
(event: 'change-step', value: number): void
|
|
85
86
|
}>()
|
|
86
87
|
|
|
87
|
-
const localization = computed(() => useLocal())
|
|
88
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
88
89
|
const hide = (): void => emits('hide')
|
|
89
90
|
|
|
90
91
|
const finish = (): void => {
|
|
@@ -37,8 +37,8 @@ const props = withDefaults(
|
|
|
37
37
|
{ testId: 'ui-nav-bar' }
|
|
38
38
|
)
|
|
39
39
|
const emits = defineEmits<{
|
|
40
|
-
(event: 'update:model-value',
|
|
41
|
-
(event: 'change',
|
|
40
|
+
(event: 'update:model-value', value: number): void
|
|
41
|
+
(event: 'change', value: number): void
|
|
42
42
|
}>()
|
|
43
43
|
|
|
44
44
|
const change = (value: number): void => {
|
|
@@ -46,7 +46,7 @@ const change = (value: number): void => {
|
|
|
46
46
|
emits('change', value)
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
const visibleCount = ref(props.items.length)
|
|
49
|
+
const visibleCount = ref<number>(props.items.length)
|
|
50
50
|
const collapsedItems = computed<UI_I_CollapseNavItem[]>(() => {
|
|
51
51
|
return props.items.filter((_, index) => {
|
|
52
52
|
return index >= visibleCount.value
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="notification-bar">
|
|
3
3
|
<div class="alerts" :style="{ 'background-color': color }">
|
|
4
|
-
<div
|
|
5
|
-
v-if="props.items.length > 1"
|
|
6
|
-
class="alerts-pager ng-star-inserted"
|
|
7
|
-
>
|
|
4
|
+
<div v-if="props.items.length > 1" class="alerts-pager ng-star-inserted">
|
|
8
5
|
<div class="alerts-pager-control page-control">
|
|
9
6
|
<div class="alerts-page-down">
|
|
10
7
|
<button
|
|
@@ -125,20 +122,18 @@ const actionText = computed<string>(
|
|
|
125
122
|
() => currentNotification.value?.action || ''
|
|
126
123
|
)
|
|
127
124
|
|
|
128
|
-
const message = computed<string>(
|
|
129
|
-
() => currentNotification.value?.message || ''
|
|
130
|
-
)
|
|
125
|
+
const message = computed<string>(() => currentNotification.value?.message || '')
|
|
131
126
|
const isShowAction = computed<boolean>(
|
|
132
127
|
() => !!currentNotification.value?.action
|
|
133
128
|
)
|
|
134
129
|
|
|
135
|
-
const iconName = computed<string>(
|
|
136
|
-
|
|
130
|
+
const iconName = computed<string>(() =>
|
|
131
|
+
currentNotification.value
|
|
132
|
+
? UI_E_IconsByStatus[currentNotification.value.status]
|
|
133
|
+
: ''
|
|
137
134
|
)
|
|
138
135
|
|
|
139
|
-
const color = computed<string>(
|
|
140
|
-
() => UI_E_ColorsPageControl[status.value]
|
|
141
|
-
)
|
|
136
|
+
const color = computed<string>(() => UI_E_ColorsPageControl[status.value])
|
|
142
137
|
</script>
|
|
143
138
|
|
|
144
139
|
<style lang="scss" scoped>
|
|
@@ -38,14 +38,14 @@ const props = withDefaults(
|
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
const emits = defineEmits<{
|
|
41
|
-
(event: 'change',
|
|
41
|
+
(event: 'change', value: number): void
|
|
42
42
|
}>()
|
|
43
43
|
|
|
44
44
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
45
45
|
const selectLabel = computed<string>(() => localization.value[props.label])
|
|
46
46
|
|
|
47
|
-
const change = (
|
|
48
|
-
emits('change', +(
|
|
47
|
+
const change = (event: InputEvent): void => {
|
|
48
|
+
emits('change', +(event.target as HTMLInputElement).value)
|
|
49
49
|
}
|
|
50
50
|
</script>
|
|
51
51
|
|
|
@@ -31,7 +31,7 @@ const props = withDefaults(
|
|
|
31
31
|
{ testId: 'ui-simple-popup' }
|
|
32
32
|
)
|
|
33
33
|
const emits = defineEmits<{
|
|
34
|
-
(event: 'update:model-value',
|
|
34
|
+
(event: 'update:model-value', value: boolean): void
|
|
35
35
|
}>()
|
|
36
36
|
const hide = (): void => {
|
|
37
37
|
emits('update:model-value', false)
|
|
@@ -39,8 +39,8 @@ const hide = (): void => {
|
|
|
39
39
|
|
|
40
40
|
watch(
|
|
41
41
|
() => props.modelValue,
|
|
42
|
-
(
|
|
43
|
-
if (
|
|
42
|
+
(newValue) => {
|
|
43
|
+
if (newValue) {
|
|
44
44
|
setTimeout(() => {
|
|
45
45
|
window.addEventListener('click', hide)
|
|
46
46
|
}, 0)
|
|
@@ -43,11 +43,11 @@ const props = withDefaults(
|
|
|
43
43
|
)
|
|
44
44
|
|
|
45
45
|
const emits = defineEmits<{
|
|
46
|
-
(event: 'update:model-value',
|
|
46
|
+
(event: 'update:model-value', value: string | number): void
|
|
47
47
|
}>()
|
|
48
48
|
|
|
49
|
-
const open = ref(false)
|
|
50
|
-
const hover = ref(false)
|
|
49
|
+
const open = ref<boolean>(false)
|
|
50
|
+
const hover = ref<boolean>(false)
|
|
51
51
|
const selectMenuStyles = ref({})
|
|
52
52
|
|
|
53
53
|
const selectedItem = computed<UI_I_Option | undefined>(() => {
|
|
@@ -83,10 +83,10 @@ const hideMenu = (force?: boolean): void => {
|
|
|
83
83
|
open.value = false
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
const windowClick = () => {
|
|
86
|
+
const windowClick = (): void => {
|
|
87
87
|
hideMenu()
|
|
88
88
|
}
|
|
89
|
-
const windowScroll = () => {
|
|
89
|
+
const windowScroll = (): void => {
|
|
90
90
|
hideMenu()
|
|
91
91
|
}
|
|
92
92
|
onMounted(() => {
|
|
@@ -61,7 +61,7 @@ const emits = defineEmits<{
|
|
|
61
61
|
(event: 'roll-back'): void
|
|
62
62
|
}>()
|
|
63
63
|
|
|
64
|
-
const open = ref(props.openByDefault || false)
|
|
64
|
+
const open = ref<boolean>(props.openByDefault || false)
|
|
65
65
|
const toggle = (): void => {
|
|
66
66
|
open.value = !open.value
|
|
67
67
|
emits('toggle', open.value)
|
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
|
-
const props = withDefaults(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const props = withDefaults(
|
|
14
|
+
defineProps<{
|
|
15
|
+
value: number | string
|
|
16
|
+
state: 'normal' | 'warning' | 'danger'
|
|
17
|
+
}>(),
|
|
18
|
+
{
|
|
19
|
+
value: 0,
|
|
20
|
+
}
|
|
21
|
+
)
|
|
19
22
|
</script>
|
|
20
23
|
|
|
21
24
|
<style scoped lang="scss">
|
|
@@ -45,10 +45,10 @@ const props = withDefaults(
|
|
|
45
45
|
{ testId: 'ui-vertical-step' }
|
|
46
46
|
)
|
|
47
47
|
const emits = defineEmits<{
|
|
48
|
-
(event: 'change',
|
|
48
|
+
(event: 'change', value: number): void
|
|
49
49
|
}>()
|
|
50
50
|
|
|
51
|
-
const changeStep = (key: number) => {
|
|
51
|
+
const changeStep = (key: number): void => {
|
|
52
52
|
emits('change', key)
|
|
53
53
|
}
|
|
54
54
|
</script>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</template>
|
|
51
51
|
|
|
52
52
|
<script setup lang="ts">
|
|
53
|
-
import { UI_I_HTMLSelectElement } from '~/models/interfaces'
|
|
53
|
+
import { UI_I_HTMLSelectElement, UI_I_Localization } from '~/models/interfaces'
|
|
54
54
|
import { UI_I_ColumnKey } from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
55
55
|
|
|
56
56
|
const props = withDefaults(
|
|
@@ -70,9 +70,9 @@ const columnKeysPresent = computed<UI_I_ColumnKey[]>(() => {
|
|
|
70
70
|
})
|
|
71
71
|
})
|
|
72
72
|
|
|
73
|
-
const localization = computed(() => useLocal())
|
|
73
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
74
74
|
|
|
75
|
-
const columnSwitchId = ref('')
|
|
75
|
+
const columnSwitchId = ref<string>('')
|
|
76
76
|
|
|
77
77
|
const isLast = computed<boolean>(
|
|
78
78
|
() => props.columnKeys.filter((columnKey) => columnKey.show).length === 1
|
|
@@ -97,7 +97,7 @@ const selectAll = (): void => {
|
|
|
97
97
|
emits('update:column-keys', newColumnKeys)
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
const windowClick = () => {
|
|
100
|
+
const windowClick = (): void => {
|
|
101
101
|
hide()
|
|
102
102
|
}
|
|
103
103
|
onMounted(() => {
|
|
@@ -109,7 +109,7 @@ onUnmounted(() => {
|
|
|
109
109
|
window.removeEventListener('click', windowClick)
|
|
110
110
|
})
|
|
111
111
|
|
|
112
|
-
const open = ref(false)
|
|
112
|
+
const open = ref<boolean>(false)
|
|
113
113
|
const hide = (): void => {
|
|
114
114
|
open.value = false
|
|
115
115
|
}
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
<script setup lang="ts">
|
|
70
70
|
import { UI_I_HTMLSelectElement } from '~/models/interfaces'
|
|
71
|
+
|
|
71
72
|
const props = withDefaults(
|
|
72
73
|
defineProps<{
|
|
73
74
|
page: number
|
|
@@ -78,12 +79,13 @@ const props = withDefaults(
|
|
|
78
79
|
}>(),
|
|
79
80
|
{ testId: 'ui-data-grid-page' }
|
|
80
81
|
)
|
|
82
|
+
|
|
81
83
|
const emits = defineEmits<{
|
|
82
|
-
(event: 'change',
|
|
84
|
+
(event: 'change', value: number): void
|
|
83
85
|
}>()
|
|
84
86
|
|
|
85
|
-
const currentPage = ref(1)
|
|
86
|
-
const currentPageLazy = ref(1)
|
|
87
|
+
const currentPage = ref<number>(1)
|
|
88
|
+
const currentPageLazy = ref<number>(1)
|
|
87
89
|
const changePageAndLazy = (page: number): void => {
|
|
88
90
|
currentPage.value = currentPageLazy.value = page
|
|
89
91
|
emits('change', page)
|
|
@@ -98,8 +100,8 @@ const changePageAndLazy = (page: number): void => {
|
|
|
98
100
|
// })
|
|
99
101
|
watch(
|
|
100
102
|
() => props.page,
|
|
101
|
-
(
|
|
102
|
-
changePageAndLazy(Math.min(props.totalPages,
|
|
103
|
+
(newValue) => {
|
|
104
|
+
changePageAndLazy(Math.min(props.totalPages, newValue))
|
|
103
105
|
},
|
|
104
106
|
{ immediate: true }
|
|
105
107
|
)
|
|
@@ -33,11 +33,11 @@ const props = defineProps<{
|
|
|
33
33
|
bodyItems: UI_I_TableBodyItem[][]
|
|
34
34
|
}>()
|
|
35
35
|
|
|
36
|
-
const presentBodyItems = ref([])
|
|
36
|
+
const presentBodyItems = ref<UI_I_TableBodyItem[][]>([])
|
|
37
37
|
watch(
|
|
38
38
|
() => props.bodyItems,
|
|
39
|
-
(
|
|
40
|
-
presentBodyItems.value = useDeepCopy(
|
|
39
|
+
(newValue) => {
|
|
40
|
+
presentBodyItems.value = useDeepCopy(newValue)
|
|
41
41
|
},
|
|
42
42
|
{ immediate: true, deep: true }
|
|
43
43
|
)
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<script setup lang="ts">
|
|
62
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
62
63
|
import type {
|
|
63
64
|
UI_I_TableHeadItem,
|
|
64
65
|
UI_I_TableBodyItem,
|
|
@@ -66,9 +67,9 @@ import type {
|
|
|
66
67
|
|
|
67
68
|
const props = withDefaults(
|
|
68
69
|
defineProps<{
|
|
69
|
-
editable?: boolean
|
|
70
70
|
headItems: UI_I_TableHeadItem
|
|
71
71
|
bodyItems: UI_I_TableBodyItem[][]
|
|
72
|
+
editable?: boolean
|
|
72
73
|
testId?: string
|
|
73
74
|
}>(),
|
|
74
75
|
{ testId: 'ui-simple-table' }
|
|
@@ -77,7 +78,7 @@ const emits = defineEmits<{
|
|
|
77
78
|
(event: 'select', value1: number, value2: UI_I_TableBodyItem[]): void
|
|
78
79
|
(event: 'change', value: UI_I_TableBodyItem[][]): void
|
|
79
80
|
}>()
|
|
80
|
-
const localization = computed(() => useLocal())
|
|
81
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
81
82
|
|
|
82
83
|
let sorting = ref<[number, boolean]>([0, true])
|
|
83
84
|
const sortByIndex = (index: number): void => {
|
|
@@ -156,9 +157,10 @@ const resetEditStatus = (): void => {
|
|
|
156
157
|
})
|
|
157
158
|
})
|
|
158
159
|
}
|
|
159
|
-
watch(presentBodyItems, (
|
|
160
|
+
watch(presentBodyItems, (newValue) => {
|
|
160
161
|
if (pauseChangeEmit) return
|
|
161
|
-
|
|
162
|
+
|
|
163
|
+
emits('change', newValue)
|
|
162
164
|
})
|
|
163
165
|
</script>
|
|
164
166
|
|
|
@@ -60,7 +60,7 @@ const detectButtonRemainderCount = computed<number>(() => {
|
|
|
60
60
|
return props.items.length - collapsedItems.value.length - 1
|
|
61
61
|
})
|
|
62
62
|
|
|
63
|
-
const visibleCount = ref(props.items.length)
|
|
63
|
+
const visibleCount = ref<number>(props.items.length)
|
|
64
64
|
const collapsedItems = computed<UI_I_CollapseNavItem[]>(() => {
|
|
65
65
|
return props.items
|
|
66
66
|
.filter((_, index) => {
|
|
@@ -127,16 +127,16 @@ const outputSize = (): void => {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
const id = ref(`tabs-${useUniqueId()}`)
|
|
130
|
+
const id = ref<string>(`tabs-${useUniqueId()}`)
|
|
131
131
|
const setResizeObserve = (): void => {
|
|
132
|
-
const
|
|
132
|
+
const element = document.getElementById(id.value)
|
|
133
133
|
|
|
134
|
-
if (!
|
|
134
|
+
if (!element) {
|
|
135
135
|
setTimeout(setResizeObserve, 0)
|
|
136
136
|
return
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
new ResizeObserver(outputSize).observe(
|
|
139
|
+
new ResizeObserver(outputSize).observe(element)
|
|
140
140
|
}
|
|
141
141
|
onMounted(() => {
|
|
142
142
|
setResizeObserve()
|
|
@@ -44,9 +44,10 @@ const hide = (): void => {
|
|
|
44
44
|
const signpostStyles = ref<UI_I_ElPosition | null>(null)
|
|
45
45
|
watch(
|
|
46
46
|
() => props.elemId,
|
|
47
|
-
(
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
(newValue: string) => {
|
|
48
|
+
const element =
|
|
49
|
+
(document.getElementById(newValue) as HTMLDivElement) || null
|
|
50
|
+
const { width, x, y } = element.getBoundingClientRect()
|
|
50
51
|
|
|
51
52
|
signpostStyles.value = {
|
|
52
53
|
top: `${y}px`,
|
|
@@ -85,7 +86,7 @@ const setSignpostPosition = (): void => {
|
|
|
85
86
|
signpostClass.value.push('show')
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
const hovered = ref(false)
|
|
89
|
+
const hovered = ref<boolean>(false)
|
|
89
90
|
const windowClick = (): void => {
|
|
90
91
|
hide()
|
|
91
92
|
}
|
|
@@ -17,23 +17,21 @@ const props = defineProps<{
|
|
|
17
17
|
}>()
|
|
18
18
|
|
|
19
19
|
const hoverClass = ref<boolean>(false)
|
|
20
|
-
|
|
21
20
|
</script>
|
|
22
21
|
<style lang="scss">
|
|
23
|
-
|
|
24
22
|
.tooltip {
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
position: relative;
|
|
24
|
+
display: inline-block;
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
& .tooltiptext {
|
|
27
|
+
text-align: center;
|
|
28
|
+
padding: 5px 2px;
|
|
29
|
+
border-radius: 2px;
|
|
30
|
+
border: 1px solid var(--global-font-color);
|
|
31
|
+
color: var(--global-font-color);
|
|
32
|
+
background-color: var(--global-bg-color);
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
}
|
|
38
36
|
}
|
|
39
37
|
</style>
|
|
@@ -99,8 +99,8 @@ const toggle = (): void => {
|
|
|
99
99
|
const start = (element: any): void => {
|
|
100
100
|
element.style.height = 'auto'
|
|
101
101
|
}
|
|
102
|
-
const end = (
|
|
103
|
-
|
|
102
|
+
const end = (element: any): void => {
|
|
103
|
+
element.style.height = 0
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
const headingClass = computed<UI_I_HeadingClass>(() => {
|