@unsource/ui 2.6.0 → 2.7.1
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/dist/module.json +1 -1
- package/dist/runtime/components/UnAuth.vue +0 -4
- package/dist/runtime/components/UnNavbar.d.vue.ts +8 -1
- package/dist/runtime/components/UnNavbar.vue +21 -29
- package/dist/runtime/components/UnNavbar.vue.d.ts +8 -1
- package/dist/runtime/components/UnProfile.d.vue.ts +7 -2
- package/dist/runtime/components/UnProfile.vue +44 -43
- package/dist/runtime/components/UnProfile.vue.d.ts +7 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
routeName: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
9
|
declare const _default: typeof __VLS_export;
|
|
3
10
|
export default _default;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
class="flex justify-between items-center fixed bg-white bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-120 px-4 py-2 shadow-header z-1 rounded-t-xl"
|
|
4
|
+
>
|
|
5
|
+
<NuxtLink
|
|
6
|
+
v-for="item in items"
|
|
7
|
+
:key="item.routeName"
|
|
8
|
+
:to="{ name: item.routeName }"
|
|
9
|
+
class="flex flex-col items-center gap-1"
|
|
10
|
+
>
|
|
11
|
+
<UnNuxtIcon
|
|
12
|
+
:name="item.icon"
|
|
13
|
+
:class="route.name === item.routeName ? 'text-primary-500' : 'text-gray-500'"
|
|
14
|
+
/>
|
|
15
|
+
<p
|
|
16
|
+
v-if="item.title"
|
|
17
|
+
class="text-xs font-medium"
|
|
18
|
+
:class="route.name === item.routeName ? 'text-primary-500' : 'text-gray-600'"
|
|
19
|
+
>
|
|
10
20
|
{{ item.title }}
|
|
11
21
|
</p>
|
|
12
22
|
</NuxtLink>
|
|
@@ -14,27 +24,9 @@
|
|
|
14
24
|
</template>
|
|
15
25
|
|
|
16
26
|
<script setup>
|
|
27
|
+
import { useRoute } from "#imports";
|
|
17
28
|
const route = useRoute();
|
|
18
|
-
const
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
routeName: "index",
|
|
22
|
-
icon: "solar:home-2-bold-duotone"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: "\u0645\u0639\u0627\u0645\u0644\u0647 \u06AF\u0631",
|
|
26
|
-
routeName: "trade",
|
|
27
|
-
icon: "solar:chart-square-bold-duotone"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: " \u0645\u0639\u0627\u0645\u0644\u0627\u062A",
|
|
31
|
-
routeName: "trades-list",
|
|
32
|
-
icon: "solar:document-text-bold-duotone"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: "\u062D\u0633\u0627\u0628 \u0645\u0646",
|
|
36
|
-
routeName: "profile",
|
|
37
|
-
icon: "solar:user-bold-duotone"
|
|
38
|
-
}
|
|
39
|
-
]);
|
|
29
|
+
const {} = defineProps({
|
|
30
|
+
items: { type: Array, required: true }
|
|
31
|
+
});
|
|
40
32
|
</script>
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
routeName: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
9
|
declare const _default: typeof __VLS_export;
|
|
3
10
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CardCustomClass } from './UnCard.vue.js';
|
|
2
|
+
import type { CardItem } from '~/src/runtime/components/UnCard.vue';
|
|
2
3
|
export type ProfileItem = {
|
|
3
4
|
head?: string;
|
|
4
5
|
label: string;
|
|
@@ -12,8 +13,12 @@ export type ProfileCustomClass = Partial<Record<'items' | 'appendIcon', unknown>
|
|
|
12
13
|
item?: CardCustomClass;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Props = {
|
|
15
|
-
items:
|
|
16
|
-
|
|
16
|
+
items: (CardItem & {
|
|
17
|
+
disable?: boolean;
|
|
18
|
+
appendIcon?: string;
|
|
19
|
+
to?: string;
|
|
20
|
+
})[];
|
|
21
|
+
version?: string;
|
|
17
22
|
developer?: string;
|
|
18
23
|
developerLink?: string;
|
|
19
24
|
developerIcon?: string;
|
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex flex-col
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<div class="grow flex flex-col gap-3">
|
|
3
|
+
<div class="flex flex-col items-stretch gap-3 grow-1 p-4">
|
|
4
|
+
<UnCard
|
|
5
|
+
v-for="(item, index) in items.filter((e) => !e.disable)"
|
|
6
|
+
:key="index"
|
|
7
|
+
:custom-class="_mergeWith(customClass.item, {
|
|
7
8
|
logo: '!w-8 !h-8 !border-none !rounded-0',
|
|
8
9
|
body: '!items-center'
|
|
9
10
|
}, merge)"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</
|
|
46
|
-
</
|
|
11
|
+
:class="customClass.items"
|
|
12
|
+
:to="item.to"
|
|
13
|
+
:item="item"
|
|
14
|
+
>
|
|
15
|
+
<template #header>
|
|
16
|
+
<UnNuxtIcon
|
|
17
|
+
:class="customClass.appendIcon"
|
|
18
|
+
:name="item.appendIcon || 'solar:alt-arrow-left-line-duotone'"
|
|
19
|
+
class="text-sm"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
</UnCard>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="grow" />
|
|
25
|
+
<div class="flex flex-col gap-2 text-sm text-center self-stretch">
|
|
26
|
+
<slot>
|
|
27
|
+
<NuxtLink
|
|
28
|
+
v-if="developer"
|
|
29
|
+
:to="developerLink || '#'"
|
|
30
|
+
target="_blank"
|
|
31
|
+
class="flex justify-center gap-1 self-center"
|
|
32
|
+
>طراحی و توسعه توسط <span class="text-blue-6 font-bold">{{ developer }}</span>
|
|
33
|
+
<UnNuxtIcon
|
|
34
|
+
v-if="developerIcon"
|
|
35
|
+
:name="developerIcon"
|
|
36
|
+
class="!text-xl"
|
|
37
|
+
/>
|
|
38
|
+
</NuxtLink>
|
|
39
|
+
<p v-if="owner">
|
|
40
|
+
کلیه حقوق مادی و معنوی این نرمافزار متعلق به شرکت <span class="text-primary-500 font-bold">{{ owner }}</span>
|
|
41
|
+
میباشد.
|
|
42
|
+
</p>
|
|
43
|
+
<p v-if="version">
|
|
44
|
+
V{{ version }}
|
|
45
|
+
</p>
|
|
46
|
+
</slot>
|
|
47
|
+
</div>
|
|
47
48
|
</div>
|
|
48
49
|
</template>
|
|
49
50
|
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
import { _mergeWith, merge } from "#imports";
|
|
52
53
|
const { customClass = {} } = defineProps({
|
|
53
54
|
items: { type: Array, required: true },
|
|
54
|
-
version: { type: String, required:
|
|
55
|
+
version: { type: String, required: false },
|
|
55
56
|
developer: { type: String, required: false },
|
|
56
57
|
developerLink: { type: String, required: false },
|
|
57
58
|
developerIcon: { type: String, required: false },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CardCustomClass } from './UnCard.vue.js';
|
|
2
|
+
import type { CardItem } from '~/src/runtime/components/UnCard.vue';
|
|
2
3
|
export type ProfileItem = {
|
|
3
4
|
head?: string;
|
|
4
5
|
label: string;
|
|
@@ -12,8 +13,12 @@ export type ProfileCustomClass = Partial<Record<'items' | 'appendIcon', unknown>
|
|
|
12
13
|
item?: CardCustomClass;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Props = {
|
|
15
|
-
items:
|
|
16
|
-
|
|
16
|
+
items: (CardItem & {
|
|
17
|
+
disable?: boolean;
|
|
18
|
+
appendIcon?: string;
|
|
19
|
+
to?: string;
|
|
20
|
+
})[];
|
|
21
|
+
version?: string;
|
|
17
22
|
developer?: string;
|
|
18
23
|
developerLink?: string;
|
|
19
24
|
developerIcon?: string;
|