pukaad-ui-lib 1.359.0 → 1.360.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/input/input-autocomplete.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-link.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-link.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-suggest.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-suggest.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-text-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-text-field.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-typed-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-typed-field.vue.d.ts +1 -1
- package/dist/runtime/components/timeline.d.vue.ts +26 -0
- package/dist/runtime/components/timeline.vue +48 -0
- package/dist/runtime/components/timeline.vue.d.ts +26 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -52,10 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
52
52
|
placeholder: string;
|
|
53
53
|
options: AutocompleteOption[] | string[] | number[];
|
|
54
54
|
description: string;
|
|
55
|
+
limit: number;
|
|
55
56
|
disabledErrorMessage: boolean;
|
|
56
57
|
disabledBorder: boolean;
|
|
57
58
|
showCounter: boolean;
|
|
58
|
-
limit: number;
|
|
59
59
|
returnObject: boolean;
|
|
60
60
|
freeText: boolean;
|
|
61
61
|
valueKey: string;
|
|
@@ -52,10 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
52
52
|
placeholder: string;
|
|
53
53
|
options: AutocompleteOption[] | string[] | number[];
|
|
54
54
|
description: string;
|
|
55
|
+
limit: number;
|
|
55
56
|
disabledErrorMessage: boolean;
|
|
56
57
|
disabledBorder: boolean;
|
|
57
58
|
showCounter: boolean;
|
|
58
|
-
limit: number;
|
|
59
59
|
returnObject: boolean;
|
|
60
60
|
freeText: boolean;
|
|
61
61
|
valueKey: string;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
34
34
|
name: string;
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
|
-
disabledErrorMessage: boolean;
|
|
38
37
|
limit: number;
|
|
38
|
+
disabledErrorMessage: boolean;
|
|
39
39
|
accept: string;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
34
34
|
name: string;
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
|
-
disabledErrorMessage: boolean;
|
|
38
37
|
limit: number;
|
|
38
|
+
disabledErrorMessage: boolean;
|
|
39
39
|
accept: string;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
}>, {
|
|
13
13
|
name: string;
|
|
14
14
|
modelValue: InputLinkItem[] | ContactChannel[];
|
|
15
|
-
showCounter: boolean;
|
|
16
15
|
limit: number;
|
|
16
|
+
showCounter: boolean;
|
|
17
17
|
format: "legacy" | "contact_channel";
|
|
18
18
|
defaultFirst: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
}>, {
|
|
13
13
|
name: string;
|
|
14
14
|
modelValue: InputLinkItem[] | ContactChannel[];
|
|
15
|
-
showCounter: boolean;
|
|
16
15
|
limit: number;
|
|
16
|
+
showCounter: boolean;
|
|
17
17
|
format: "legacy" | "contact_channel";
|
|
18
18
|
defaultFirst: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
placeholder: string;
|
|
15
15
|
options: InputSelectItem[];
|
|
16
|
-
showCounter: boolean;
|
|
17
16
|
limit: number;
|
|
17
|
+
showCounter: boolean;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
placeholder: string;
|
|
15
15
|
options: InputSelectItem[];
|
|
16
|
-
showCounter: boolean;
|
|
17
16
|
limit: number;
|
|
17
|
+
showCounter: boolean;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -22,10 +22,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
labelKey: string;
|
|
23
23
|
placeholder: string;
|
|
24
24
|
description: string;
|
|
25
|
+
limit: number;
|
|
25
26
|
disabledErrorMessage: boolean;
|
|
26
27
|
disabledBorder: boolean;
|
|
27
28
|
showCounter: boolean;
|
|
28
|
-
limit: number;
|
|
29
29
|
descriptionKey: string;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -22,10 +22,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
labelKey: string;
|
|
23
23
|
placeholder: string;
|
|
24
24
|
description: string;
|
|
25
|
+
limit: number;
|
|
25
26
|
disabledErrorMessage: boolean;
|
|
26
27
|
disabledBorder: boolean;
|
|
27
28
|
showCounter: boolean;
|
|
28
|
-
limit: number;
|
|
29
29
|
descriptionKey: string;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
|
+
limit: number;
|
|
62
63
|
disabledErrorMessage: boolean;
|
|
63
64
|
disabledBorder: boolean;
|
|
64
65
|
showCounter: boolean;
|
|
65
|
-
limit: number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
|
+
limit: number;
|
|
62
63
|
disabledErrorMessage: boolean;
|
|
63
64
|
disabledBorder: boolean;
|
|
64
65
|
showCounter: boolean;
|
|
65
|
-
limit: number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -47,10 +47,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
fullHeight: boolean;
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
rows: number;
|
|
50
|
+
limit: number;
|
|
50
51
|
disabledErrorMessage: boolean;
|
|
51
52
|
disabledBorder: boolean;
|
|
52
53
|
showCounter: boolean;
|
|
53
|
-
limit: number;
|
|
54
54
|
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
@@ -47,10 +47,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
fullHeight: boolean;
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
rows: number;
|
|
50
|
+
limit: number;
|
|
50
51
|
disabledErrorMessage: boolean;
|
|
51
52
|
disabledBorder: boolean;
|
|
52
53
|
showCounter: boolean;
|
|
53
|
-
limit: number;
|
|
54
54
|
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
22
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
23
|
-
showCounter: boolean;
|
|
24
23
|
limit: number;
|
|
24
|
+
showCounter: boolean;
|
|
25
25
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
26
26
|
resetOnTypeChange: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
22
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
23
|
-
showCounter: boolean;
|
|
24
23
|
limit: number;
|
|
24
|
+
showCounter: boolean;
|
|
25
25
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
26
26
|
resetOnTypeChange: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface TimelineItem {
|
|
2
|
+
id?: string | number;
|
|
3
|
+
avatar?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
time?: string | Date;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
items: TimelineItem[];
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {
|
|
12
|
+
item: TimelineItem;
|
|
13
|
+
index: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
content?: (props: typeof __VLS_1) => any;
|
|
17
|
+
};
|
|
18
|
+
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>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col">
|
|
3
|
+
<div
|
|
4
|
+
v-for="(item, index) in props.items"
|
|
5
|
+
:key="item.id ?? index"
|
|
6
|
+
class="flex gap-[8px]"
|
|
7
|
+
>
|
|
8
|
+
<!-- dot + connecting line (โครงของ component เอง) -->
|
|
9
|
+
<div class="flex flex-col items-center w-[8px]">
|
|
10
|
+
<div class="w-[20px] h-[26px] flex items-center justify-center">
|
|
11
|
+
<div class="w-[10px] h-[10px] rounded-full bg-black shrink-0" />
|
|
12
|
+
</div>
|
|
13
|
+
<div class="w-[2px] flex-1 bg-bright" />
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<!-- เนื้อหา — ปล่อยให้ผู้ใช้ครอบเองผ่าน slot ได้ ถ้าไม่ส่งมาใช้ default นี้ -->
|
|
17
|
+
<div
|
|
18
|
+
class="flex flex-col gap-[8px]"
|
|
19
|
+
:class="index < props.items.length - 1 ? 'pb-[16px]' : ''"
|
|
20
|
+
>
|
|
21
|
+
<slot name="content" :item="item" :index="index">
|
|
22
|
+
<div class="flex gap-[8px]">
|
|
23
|
+
<Avatar :src="item.avatar" :alt="item.name" :size="30" />
|
|
24
|
+
<div class="flex flex-col gap-[8px]">
|
|
25
|
+
<div class="flex flex-col gap-[4px]">
|
|
26
|
+
<span class="font-body-large text-gray">{{ item.name }}</span>
|
|
27
|
+
<span class="font-body-small text-gray"
|
|
28
|
+
>{{ convertDateTime(item.time) }} น.</span
|
|
29
|
+
>
|
|
30
|
+
</div>
|
|
31
|
+
<p class="font-body-large text-gray">
|
|
32
|
+
{{ item.description }}
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</slot>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup>
|
|
43
|
+
import { useConvert } from "#pukaad-ui/runtime/composables/useConvert";
|
|
44
|
+
const props = defineProps({
|
|
45
|
+
items: { type: Array, required: true }
|
|
46
|
+
});
|
|
47
|
+
const { convertDateTime } = useConvert();
|
|
48
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface TimelineItem {
|
|
2
|
+
id?: string | number;
|
|
3
|
+
avatar?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
time?: string | Date;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
items: TimelineItem[];
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {
|
|
12
|
+
item: TimelineItem;
|
|
13
|
+
index: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
content?: (props: typeof __VLS_1) => any;
|
|
17
|
+
};
|
|
18
|
+
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>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|