@unsource/ui 2.4.9 → 2.5.0
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/UnCard.d.vue.ts +4 -1
- package/dist/runtime/components/UnCard.vue.d.ts +4 -1
- package/dist/runtime/components/UnList.d.vue.ts +1 -1
- package/dist/runtime/components/UnList.vue.d.ts +1 -1
- package/dist/runtime/components/UnProfile.d.vue.ts +35 -0
- package/dist/runtime/components/UnProfile.vue +61 -0
- package/dist/runtime/components/UnProfile.vue.d.ts +35 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar', string>>;
|
|
1
|
+
export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar' | 'nameDesc', string>>;
|
|
2
2
|
export type TagItem = {
|
|
3
3
|
value?: string;
|
|
4
4
|
icon?: string;
|
|
@@ -7,6 +7,9 @@ export type TagItem = {
|
|
|
7
7
|
export type CardItem = {
|
|
8
8
|
title?: string;
|
|
9
9
|
description?: string;
|
|
10
|
+
logo?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
desc?: string;
|
|
10
13
|
image?: string;
|
|
11
14
|
avatar?: string;
|
|
12
15
|
images?: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar', string>>;
|
|
1
|
+
export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar' | 'nameDesc', string>>;
|
|
2
2
|
export type TagItem = {
|
|
3
3
|
value?: string;
|
|
4
4
|
icon?: string;
|
|
@@ -7,6 +7,9 @@ export type TagItem = {
|
|
|
7
7
|
export type CardItem = {
|
|
8
8
|
title?: string;
|
|
9
9
|
description?: string;
|
|
10
|
+
logo?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
desc?: string;
|
|
10
13
|
image?: string;
|
|
11
14
|
avatar?: string;
|
|
12
15
|
images?: string[];
|
|
@@ -2,7 +2,7 @@ import type { CardCustomClass, CardItem } from './UnCard.vue.js';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
title?: string;
|
|
4
4
|
items?: CardItem[];
|
|
5
|
-
customClass?: Record<'title' | 'header' | 'items' | 'collapsibleIcon', unknown
|
|
5
|
+
customClass?: Partial<Record<'title' | 'header' | 'items' | 'collapsibleIcon', unknown>> & {
|
|
6
6
|
item?: CardCustomClass;
|
|
7
7
|
};
|
|
8
8
|
collapsible?: boolean;
|
|
@@ -2,7 +2,7 @@ import type { CardCustomClass, CardItem } from './UnCard.vue.js';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
title?: string;
|
|
4
4
|
items?: CardItem[];
|
|
5
|
-
customClass?: Record<'title' | 'header' | 'items' | 'collapsibleIcon', unknown
|
|
5
|
+
customClass?: Partial<Record<'title' | 'header' | 'items' | 'collapsibleIcon', unknown>> & {
|
|
6
6
|
item?: CardCustomClass;
|
|
7
7
|
};
|
|
8
8
|
collapsible?: boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CardCustomClass } from './UnCard.vue.js';
|
|
2
|
+
export type ProfileItem = {
|
|
3
|
+
head?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
appendIcon?: string;
|
|
7
|
+
handler?: () => unknown;
|
|
8
|
+
link: string;
|
|
9
|
+
disable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ProfileCustomClass = Partial<Record<'items' | 'appendIcon', unknown>> & {
|
|
12
|
+
item?: CardCustomClass;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
items: ProfileItem[];
|
|
16
|
+
version: string;
|
|
17
|
+
developer?: string;
|
|
18
|
+
developerLink?: string;
|
|
19
|
+
developerIcon?: string;
|
|
20
|
+
owner?: string;
|
|
21
|
+
customClass?: ProfileCustomClass;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_12: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_12) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_base: 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>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col items-stretch gap-3 grow-1 p-4">
|
|
3
|
+
<UnCard
|
|
4
|
+
v-for="(item, index) in items.filter((e) => !e.disable)"
|
|
5
|
+
:key="index"
|
|
6
|
+
:custom-class="_mergeWith(customClass.item, {
|
|
7
|
+
logo: '!w-8 !h-8 !border-none !rounded-0',
|
|
8
|
+
body: '!items-center'
|
|
9
|
+
}, merge)"
|
|
10
|
+
:class="customClass.items"
|
|
11
|
+
:to="item.link"
|
|
12
|
+
:item="{
|
|
13
|
+
logo: item.icon,
|
|
14
|
+
name: item.head,
|
|
15
|
+
desc: item.label
|
|
16
|
+
}"
|
|
17
|
+
>
|
|
18
|
+
<template #header>
|
|
19
|
+
<UnNuxtIcon
|
|
20
|
+
:class="customClass.appendIcon"
|
|
21
|
+
:name="item.appendIcon || 'solar:alt-arrow-left-line-duotone'"
|
|
22
|
+
class="text-sm"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
25
|
+
</UnCard>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="grow" />
|
|
28
|
+
<div class="flex flex-col gap-2 text-sm text-center self-stretch">
|
|
29
|
+
<slot>
|
|
30
|
+
<NuxtLink
|
|
31
|
+
v-if="developer"
|
|
32
|
+
:to="developerLink || '#'"
|
|
33
|
+
target="_blank"
|
|
34
|
+
class="flex justify-center gap-1 self-center"
|
|
35
|
+
>طراحی و توسعه توسط <span class="text-blue-6 font-bold">{{ developer }}</span><UnNuxtIcon
|
|
36
|
+
v-if="developerIcon"
|
|
37
|
+
:name="developerIcon"
|
|
38
|
+
class="!text-xl"
|
|
39
|
+
/></NuxtLink>
|
|
40
|
+
<p v-if="owner">
|
|
41
|
+
کلیه حقوق مادی و معنوی این نرمافزار متعلق به شرکت <span class="text-primary-500 font-bold">{{ owner }}</span> میباشد.
|
|
42
|
+
</p>
|
|
43
|
+
<p v-if="version">
|
|
44
|
+
V{{ version }}
|
|
45
|
+
</p>
|
|
46
|
+
</slot>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
<script setup>
|
|
51
|
+
import { _mergeWith, merge } from "#imports";
|
|
52
|
+
const { customClass = {} } = defineProps({
|
|
53
|
+
items: { type: Array, required: true },
|
|
54
|
+
version: { type: String, required: true },
|
|
55
|
+
developer: { type: String, required: false },
|
|
56
|
+
developerLink: { type: String, required: false },
|
|
57
|
+
developerIcon: { type: String, required: false },
|
|
58
|
+
owner: { type: String, required: false },
|
|
59
|
+
customClass: { type: Object, required: false }
|
|
60
|
+
});
|
|
61
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CardCustomClass } from './UnCard.vue.js';
|
|
2
|
+
export type ProfileItem = {
|
|
3
|
+
head?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
appendIcon?: string;
|
|
7
|
+
handler?: () => unknown;
|
|
8
|
+
link: string;
|
|
9
|
+
disable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ProfileCustomClass = Partial<Record<'items' | 'appendIcon', unknown>> & {
|
|
12
|
+
item?: CardCustomClass;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
items: ProfileItem[];
|
|
16
|
+
version: string;
|
|
17
|
+
developer?: string;
|
|
18
|
+
developerLink?: string;
|
|
19
|
+
developerIcon?: string;
|
|
20
|
+
owner?: string;
|
|
21
|
+
customClass?: ProfileCustomClass;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_12: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_12) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_base: 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>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|