adata-ui 2.1.40-beta.7 → 2.1.40-beta.9
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/components/elements/a-select-row/ASelectRowV2.vue +1 -1
- package/components/elements/select/ASelectV2.vue +1 -1
- package/components/forms/input/AInputV2.vue +4 -4
- package/components/modals/AnotherDeviceModal.vue +6 -1
- package/components/overlays/modal/AModalV2.vue +1 -2
- package/composables/useHeaderNavigationLinks.ts +2 -2
- package/lang/en.ts +3 -3
- package/lang/kk.ts +3 -3
- package/lang/ru.ts +3 -3
- package/package.json +1 -1
|
@@ -150,7 +150,7 @@ defineExpose({ onClear })
|
|
|
150
150
|
<button
|
|
151
151
|
v-if="clearable && hasValue && !disabled"
|
|
152
152
|
type="button"
|
|
153
|
-
class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5
|
|
153
|
+
class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5 transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
|
|
154
154
|
@click.stop="onClear"
|
|
155
155
|
>
|
|
156
156
|
<a-icon-x-mark class="!m-0 size-3.5" />
|
|
@@ -388,7 +388,7 @@ const isDefaultSelection = computed(() => {
|
|
|
388
388
|
|
|
389
389
|
<button
|
|
390
390
|
v-if="valueToShow && clearable && !isDefaultSelection"
|
|
391
|
-
class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.
|
|
391
|
+
class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
|
|
392
392
|
@click.stop="onClear"
|
|
393
393
|
>
|
|
394
394
|
<a-icon-x-mark class="!m-0 size-3.5" />
|
|
@@ -262,7 +262,7 @@ const layoutClass = computed(() => {
|
|
|
262
262
|
|
|
263
263
|
const iconOffsetClass = computed(() => {
|
|
264
264
|
if (!props.label) return ''
|
|
265
|
-
return props.size === 'md' ? '-translate-y-[
|
|
265
|
+
return props.size === 'md' ? '-translate-y-[7px]' : '-translate-y-[5px]'
|
|
266
266
|
})
|
|
267
267
|
|
|
268
268
|
const showClearButton = computed(() =>
|
|
@@ -308,11 +308,11 @@ function rowDisplay(item: T): unknown {
|
|
|
308
308
|
>
|
|
309
309
|
<div
|
|
310
310
|
ref="fieldRef"
|
|
311
|
-
class="input-v2__field text-deepblue-900 relative flex w-full cursor-text items-center gap-2 rounded-[10px] border border-solid
|
|
311
|
+
class="input-v2__field text-deepblue-900 relative flex w-full cursor-text items-center gap-2 rounded-[10px] border border-solid transition-colors duration-200 focus-within:border-blue-600 focus-within:ring-2 focus-within:ring-blue-600/20 hover:border-blue-500 dark:text-gray-200 dark:focus-within:border-blue-400 dark:focus-within:ring-blue-400/20 dark:hover:border-blue-400"
|
|
312
312
|
:class="[
|
|
313
313
|
layoutClass,
|
|
314
314
|
fieldClass,
|
|
315
|
-
startIcon ? 'pl-3' : '',
|
|
315
|
+
startIcon ? 'pl-3' : 'pl-4',
|
|
316
316
|
clearable || endIcon || loading || $slots.endButton ? 'pr-3' : 'pr-4',
|
|
317
317
|
{ 'input-v2__field--error': hasError, 'input-v2__field--disabled': disabled },
|
|
318
318
|
]"
|
|
@@ -366,7 +366,7 @@ function rowDisplay(item: T): unknown {
|
|
|
366
366
|
v-else-if="showClearButton"
|
|
367
367
|
type="button"
|
|
368
368
|
tabindex="-1"
|
|
369
|
-
class="flex shrink-0 items-center justify-center rounded-full p-0.5
|
|
369
|
+
class="flex shrink-0 items-center justify-center rounded-full p-0.5 transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
|
|
370
370
|
:class="iconOffsetClass"
|
|
371
371
|
@mousedown.prevent
|
|
372
372
|
@click.stop="onClear"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
3
|
+
import { navigateToLocalizedPage } from '#adata-ui/utils/localizedNavigation'
|
|
3
4
|
|
|
4
5
|
const { t, locale } = useI18n()
|
|
5
6
|
const localePath = useLocalePath()
|
|
@@ -11,6 +12,10 @@ function onClose() {
|
|
|
11
12
|
isOpen.value = false
|
|
12
13
|
return navigateTo(localePath('/'))
|
|
13
14
|
}
|
|
15
|
+
|
|
16
|
+
function onToMain() {
|
|
17
|
+
return navigateToLocalizedPage({ locale, projectUrl: landing, target: '_self' })
|
|
18
|
+
}
|
|
14
19
|
</script>
|
|
15
20
|
|
|
16
21
|
<template>
|
|
@@ -47,7 +52,7 @@ function onClose() {
|
|
|
47
52
|
</a-button-v2>
|
|
48
53
|
<a-button-v2
|
|
49
54
|
block
|
|
50
|
-
|
|
55
|
+
@click="onToMain"
|
|
51
56
|
>
|
|
52
57
|
{{ t('modals.buttons.toMain') }}
|
|
53
58
|
</a-button-v2>
|
|
@@ -310,10 +310,9 @@ function onTouchEnd() {
|
|
|
310
310
|
{{ title }}
|
|
311
311
|
</h2>
|
|
312
312
|
</slot>
|
|
313
|
-
<!-- Кнопка закрытия не зависит от title и слота header — рендерится всегда (если header не скрыт). -->
|
|
314
313
|
<button
|
|
315
314
|
type="button"
|
|
316
|
-
class="ml-auto rounded-md p-1
|
|
315
|
+
class="ml-auto rounded-md p-1 transition hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-200"
|
|
317
316
|
@click="closeIfAllowed"
|
|
318
317
|
>
|
|
319
318
|
<a-icon-x-mark class="size-4" />
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
AIconSearch,
|
|
41
41
|
AIconAkimat,
|
|
42
42
|
AIconCurrencyTenge,
|
|
43
|
-
AIconExcelIcon,
|
|
43
|
+
AIconExcelIcon, AIconFile,
|
|
44
44
|
} from '#components'
|
|
45
45
|
import MapPinRect from '#adata-ui/icons/map/map-pin-rect.vue'
|
|
46
46
|
import MapPaper from '#adata-ui/icons/map-paper.vue'
|
|
@@ -264,7 +264,7 @@ export const useHeaderNavigationLinks = () => {
|
|
|
264
264
|
is_new: true,
|
|
265
265
|
name: t('header.products.edo.label'),
|
|
266
266
|
link: buildLocalizedUrl(locale, urls.edo_docs , ''),
|
|
267
|
-
icon:
|
|
267
|
+
icon: AIconFile,
|
|
268
268
|
data_attribute: 'navigation-menu-edo-block',
|
|
269
269
|
items: [
|
|
270
270
|
{
|
package/lang/en.ts
CHANGED
|
@@ -209,10 +209,10 @@ const EnLocale: RuLocale = {
|
|
|
209
209
|
},
|
|
210
210
|
},
|
|
211
211
|
fea: {
|
|
212
|
-
label: '
|
|
212
|
+
label: 'Import and customs',
|
|
213
213
|
items: {
|
|
214
214
|
i: {
|
|
215
|
-
t: '
|
|
215
|
+
t: 'Foreign trade in goods',
|
|
216
216
|
st: 'Information service of foreign trade turnover by foreign economic activity participants',
|
|
217
217
|
},
|
|
218
218
|
o: {
|
|
@@ -275,7 +275,7 @@ const EnLocale: RuLocale = {
|
|
|
275
275
|
},
|
|
276
276
|
},
|
|
277
277
|
edo: {
|
|
278
|
-
label: '
|
|
278
|
+
label: 'Documents',
|
|
279
279
|
heroSubtitle: 'Templates · AI assistant · Signatures · Voice input',
|
|
280
280
|
heroCta: 'Open EDO',
|
|
281
281
|
items: {
|
package/lang/kk.ts
CHANGED
|
@@ -209,10 +209,10 @@ const KkLocale: RuLocale = {
|
|
|
209
209
|
},
|
|
210
210
|
},
|
|
211
211
|
fea: {
|
|
212
|
-
label: '
|
|
212
|
+
label: 'Импорт және кеден',
|
|
213
213
|
items: {
|
|
214
214
|
i: {
|
|
215
|
-
t: '
|
|
215
|
+
t: 'Тауарлармен сыртқы сауда',
|
|
216
216
|
st: 'Сыртқы экономикалық қызметке қатысушылардың сыртқы сауда айналымының ақпараттық қызметі',
|
|
217
217
|
},
|
|
218
218
|
o: {
|
|
@@ -275,7 +275,7 @@ const KkLocale: RuLocale = {
|
|
|
275
275
|
},
|
|
276
276
|
},
|
|
277
277
|
edo: {
|
|
278
|
-
label: '
|
|
278
|
+
label: 'Құжаттар',
|
|
279
279
|
heroSubtitle: 'Үлгілер · AI-ассистент · ЭЦҚ · Дауыспен енгізу',
|
|
280
280
|
heroCta: 'EDO-ды ашу',
|
|
281
281
|
items: {
|
package/lang/ru.ts
CHANGED
|
@@ -210,10 +210,10 @@ const RuLocale = {
|
|
|
210
210
|
},
|
|
211
211
|
},
|
|
212
212
|
fea: {
|
|
213
|
-
label: '
|
|
213
|
+
label: 'Импорт и таможня',
|
|
214
214
|
items: {
|
|
215
215
|
i: {
|
|
216
|
-
t: '
|
|
216
|
+
t: 'Внешняя торговля товарами',
|
|
217
217
|
st: 'Информационный сервис внешнеторгового оборота в разрезе участников ВЭД',
|
|
218
218
|
},
|
|
219
219
|
o: {
|
|
@@ -276,7 +276,7 @@ const RuLocale = {
|
|
|
276
276
|
},
|
|
277
277
|
},
|
|
278
278
|
edo: {
|
|
279
|
-
label: '
|
|
279
|
+
label: 'Документы',
|
|
280
280
|
heroSubtitle: 'Шаблоны · AI-ассистент · ЭЦП · Голосовой ввод',
|
|
281
281
|
heroCta: 'Открыть EDO',
|
|
282
282
|
items: {
|