pukaad-ui-lib 1.450.0 → 1.450.2

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.
Files changed (60) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/card/card-blog.vue +2 -2
  3. package/dist/runtime/components/card/card-review.vue +2 -2
  4. package/dist/runtime/components/card/card-user/card-user-blog.vue +2 -2
  5. package/dist/runtime/components/comment.vue +3 -3
  6. package/dist/runtime/components/data-table.d.vue.ts +2 -2
  7. package/dist/runtime/components/data-table.vue.d.ts +2 -2
  8. package/dist/runtime/components/display/display-video.d.vue.ts +1 -1
  9. package/dist/runtime/components/display/display-video.vue.d.ts +1 -1
  10. package/dist/runtime/components/input/input-address.d.vue.ts +2 -2
  11. package/dist/runtime/components/input/input-address.vue.d.ts +2 -2
  12. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
  13. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  14. package/dist/runtime/components/input/input-birth-date.d.vue.ts +1 -1
  15. package/dist/runtime/components/input/input-birth-date.vue.d.ts +1 -1
  16. package/dist/runtime/components/input/input-chat.d.vue.ts +1 -1
  17. package/dist/runtime/components/input/input-chat.vue.d.ts +1 -1
  18. package/dist/runtime/components/input/input-date-picker.d.vue.ts +1 -1
  19. package/dist/runtime/components/input/input-date-picker.vue.d.ts +1 -1
  20. package/dist/runtime/components/input/input-file.d.vue.ts +2 -2
  21. package/dist/runtime/components/input/input-file.vue.d.ts +2 -2
  22. package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
  23. package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
  24. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  25. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  26. package/dist/runtime/components/input/input-radio.d.vue.ts +1 -1
  27. package/dist/runtime/components/input/input-radio.vue.d.ts +1 -1
  28. package/dist/runtime/components/input/input-tag-modal.d.vue.ts +1 -1
  29. package/dist/runtime/components/input/input-tag-modal.vue.d.ts +1 -1
  30. package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
  31. package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
  32. package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
  33. package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
  34. package/dist/runtime/components/modal/modal-media-view.vue +3 -3
  35. package/dist/runtime/components/table.d.vue.ts +1 -1
  36. package/dist/runtime/components/table.vue.d.ts +1 -1
  37. package/dist/runtime/components/video.d.vue.ts +1 -1
  38. package/dist/runtime/components/video.vue.d.ts +1 -1
  39. package/dist/runtime/composables/store-notification.d.ts +1 -1
  40. package/dist/runtime/composables/useConvert.d.ts +2 -1
  41. package/dist/runtime/composables/useConvert.js +2 -1
  42. package/package.json +1 -1
  43. package/dist/runtime/components/data-list.d.vue.ts +0 -55
  44. package/dist/runtime/components/data-list.vue +0 -78
  45. package/dist/runtime/components/data-list.vue.d.ts +0 -55
  46. package/dist/runtime/components/input/input-media.d.vue.ts +0 -22
  47. package/dist/runtime/components/input/input-media.vue +0 -141
  48. package/dist/runtime/components/input/input-media.vue.d.ts +0 -22
  49. package/dist/runtime/components/list/list-menu.d.vue.ts +0 -93
  50. package/dist/runtime/components/list/list-menu.vue +0 -33
  51. package/dist/runtime/components/list/list-menu.vue.d.ts +0 -93
  52. package/dist/runtime/components/modal/modal-review-detail.d.vue.ts +0 -21
  53. package/dist/runtime/components/modal/modal-review-detail.vue +0 -192
  54. package/dist/runtime/components/modal/modal-review-detail.vue.d.ts +0 -21
  55. package/dist/runtime/components/profile-cover.d.vue.ts +0 -3
  56. package/dist/runtime/components/profile-cover.vue +0 -86
  57. package/dist/runtime/components/profile-cover.vue.d.ts +0 -3
  58. package/dist/runtime/components/tab_old.d.vue.ts +0 -48
  59. package/dist/runtime/components/tab_old.vue +0 -176
  60. package/dist/runtime/components/tab_old.vue.d.ts +0 -48
@@ -1,78 +0,0 @@
1
- <script setup>
2
- import {
3
- Table as ShadTable,
4
- TableBody as ShadTableBody,
5
- TableRow as ShadTableRow,
6
- TableCell as ShadTableCell,
7
- TableEmpty as ShadTableEmpty
8
- } from "#pukaad-ui/runtime/components/ui/table";
9
- const emit = defineEmits(["select-page", "change-page", "click-row", "change-item-per-page"]);
10
- const props = defineProps({
11
- items: { type: Array, required: false, default: () => [] },
12
- height: { type: [Number, String], required: false },
13
- maxHeight: { type: [Number, String], required: false },
14
- fullHeight: { type: Boolean, required: false, default: false },
15
- disabledPagination: { type: Boolean, required: false, default: false },
16
- totalPage: { type: Number, required: false, default: 1 }
17
- });
18
- const page = defineModel("page", { type: Number, ...{
19
- default: 1
20
- } });
21
- </script>
22
-
23
- <template>
24
- <div class="bg-white rounded-lg flex flex-col">
25
- <!-- List Container -->
26
- <div
27
- class="flex-1 overflow-auto"
28
- :style="{
29
- height: props.fullHeight ? '100%' : props.height ? `${props.height}px` : 'auto',
30
- maxHeight: props.maxHeight ? `${props.maxHeight}px` : void 0
31
- }"
32
- >
33
- <ShadTable>
34
- <slot name="body" :items="props.items">
35
- <ShadTableBody>
36
- <template v-if="props.items.length > 0">
37
- <ShadTableRow
38
- v-for="(item, index) in props.items"
39
- :key="index"
40
- class="cursor-pointer"
41
- @click="emit('click-row', item, index)"
42
- >
43
- <ShadTableCell class="w-full">
44
- <slot name="item" :item="item" :index="index">
45
- {{ item }}
46
- </slot>
47
- </ShadTableCell>
48
- </ShadTableRow>
49
- </template>
50
-
51
- <!-- Empty State -->
52
- <template v-else>
53
- <slot name="empty">
54
- <ShadTableEmpty :colspan="1">
55
- <slot name="empty-content" />
56
- </ShadTableEmpty>
57
- </slot>
58
- </template>
59
- </ShadTableBody>
60
- </slot>
61
- </ShadTable>
62
- </div>
63
-
64
- <!-- Pagination -->
65
- <div
66
- v-if="props.items.length > 0 && !props.disabledPagination"
67
- class="p-4 flex justify-center items-center border-t"
68
- >
69
- <Pagination
70
- :totalPage="props.totalPage"
71
- v-model="page"
72
- @change-item-per-page="
73
- (val) => emit('change-item-per-page', val)
74
- "
75
- />
76
- </div>
77
- </div>
78
- </template>
@@ -1,55 +0,0 @@
1
- export interface DataListProps {
2
- items?: Record<string, any>[];
3
- height?: number | string;
4
- maxHeight?: number | string;
5
- fullHeight?: boolean;
6
- disabledPagination?: boolean;
7
- totalPage?: number;
8
- }
9
- type __VLS_Props = DataListProps;
10
- type __VLS_ModelProps = {
11
- "page"?: number;
12
- };
13
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_7: {
15
- items: Record<string, any>[];
16
- }, __VLS_29: {
17
- item: Record<string, any>;
18
- index: number;
19
- }, __VLS_31: {}, __VLS_39: {};
20
- type __VLS_Slots = {} & {
21
- body?: (props: typeof __VLS_7) => any;
22
- } & {
23
- item?: (props: typeof __VLS_29) => any;
24
- } & {
25
- empty?: (props: typeof __VLS_31) => any;
26
- } & {
27
- 'empty-content'?: (props: typeof __VLS_39) => any;
28
- };
29
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- "update:page": (value: number) => any;
31
- } & {
32
- "select-page": (value: number) => any;
33
- "change-page": (value: number) => any;
34
- "click-row": (item: Record<string, any>, index: number) => any;
35
- "change-item-per-page": (value: number) => any;
36
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
- "onSelect-page"?: ((value: number) => any) | undefined;
38
- "onChange-page"?: ((value: number) => any) | undefined;
39
- "onClick-row"?: ((item: Record<string, any>, index: number) => any) | undefined;
40
- "onChange-item-per-page"?: ((value: number) => any) | undefined;
41
- "onUpdate:page"?: ((value: number) => any) | undefined;
42
- }>, {
43
- items: Record<string, any>[];
44
- fullHeight: boolean;
45
- disabledPagination: boolean;
46
- totalPage: number;
47
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
- declare const _default: typeof __VLS_export;
50
- export default _default;
51
- type __VLS_WithSlots<T, S> = T & {
52
- new (): {
53
- $slots: S;
54
- };
55
- };
@@ -1,22 +0,0 @@
1
- import type { InputMediaProps } from "#pukaad-ui/types/components/input/input-media";
2
- type __VLS_Props = InputMediaProps;
3
- type __VLS_ModelProps = {
4
- modelValue?: Array<File>;
5
- "thumbnail"?: File | undefined;
6
- };
7
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- "update:modelValue": (value: File[]) => any;
10
- "update:thumbnail": (value: File | undefined) => any;
11
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
- "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
13
- "onUpdate:thumbnail"?: ((value: File | undefined) => any) | undefined;
14
- }>, {
15
- name: string;
16
- fullHeight: boolean;
17
- fullWidth: boolean;
18
- limitImage: number;
19
- limitVideo: number;
20
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
- declare const _default: typeof __VLS_export;
22
- export default _default;
@@ -1,141 +0,0 @@
1
- <template>
2
- <InputFile
3
- v-if="files.length == 0"
4
- :name="props.name"
5
- :accept="`${acceptImage},${acceptVideo}`"
6
- full-width
7
- full-height
8
- :limit="
9
- props.limitImage > props.limitVideo ? props.limitImage : props.limitVideo
10
- "
11
- @select="onSelect"
12
- v-model="files"
13
- >
14
- <div
15
- class="flex flex-col justify-center items-center gap-[4px] p-[10px]"
16
- :style="{
17
- width: props.fullWidth ? '100%' : props.width,
18
- height: props.fullHeight ? '100%' : props.height
19
- }"
20
- >
21
- <Icon name="fa6-solid:cloud-arrow-up" size="24" />
22
- <div class="font-body-large">เพิ่มรูปภาพ/วิดีโอ</div>
23
- <div class="font-body-small">หรือลากและวาง</div>
24
- </div>
25
- </InputFile>
26
-
27
- <template v-else>
28
- <InputFile
29
- v-if="fileType == 'image'"
30
- :name="props.name"
31
- :accept="acceptImage"
32
- :limit="props.limitImage"
33
- v-model="files"
34
- />
35
- <InputFile
36
- v-if="fileType == 'video'"
37
- :name="props.name"
38
- :accept="acceptVideo"
39
- :limit="props.limitVideo"
40
- v-model="files"
41
- />
42
- </template>
43
- </template>
44
-
45
- <script setup>
46
- import { ref, watch } from "vue";
47
- import { useNuxtApp } from "nuxt/app";
48
- const { $alert } = useNuxtApp();
49
- const props = defineProps({
50
- name: { type: String, required: false, default: "input-media" },
51
- width: { type: [Number, String], required: false },
52
- height: { type: [Number, String], required: false },
53
- fullWidth: { type: Boolean, required: false, default: true },
54
- fullHeight: { type: Boolean, required: false, default: true },
55
- limitImage: { type: Number, required: false, default: 4 },
56
- limitVideo: { type: Number, required: false, default: 1 }
57
- });
58
- const acceptImage = "image/jpg,image/jpeg,image/png,image/webp,image/bmp,image/gif";
59
- const acceptVideo = "video/mp4,video/quicktime,video/x-ms-wmv";
60
- const files = defineModel({ type: Array, ...{
61
- default: []
62
- } });
63
- const thumbnail = defineModel("thumbnail", { type: null, ...{
64
- default: null
65
- } });
66
- const fileType = ref();
67
- const onSelect = async (files2) => {
68
- let countImageFile = 0;
69
- let countVideoFile = 0;
70
- let countNotAllowedFile = 0;
71
- for (const file of files2) {
72
- if (acceptImage.includes(file.type)) {
73
- countImageFile++;
74
- } else if (acceptVideo.includes(file.type)) {
75
- countVideoFile++;
76
- } else {
77
- countNotAllowedFile++;
78
- }
79
- }
80
- if (countNotAllowedFile > 0 || countImageFile > 0 && countVideoFile > 0) {
81
- files2.splice(0, files2.length);
82
- $alert.show({
83
- variant: "error",
84
- title: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14 \u0E2B\u0E23\u0E37\u0E2D\u0E27\u0E34\u0E14\u0E35\u0E42\u0E2D\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E44\u0E1F\u0E25\u0E4C\u0E40\u0E14\u0E35\u0E22\u0E27\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19"
85
- });
86
- } else {
87
- if (countImageFile > 0 && countVideoFile == 0) {
88
- fileType.value = "image";
89
- thumbnail.value = files2[0];
90
- }
91
- if (countVideoFile > 0 && countImageFile == 0) {
92
- fileType.value = "video";
93
- thumbnail.value = await getVideoThumbnailVideo(files2[0]);
94
- }
95
- }
96
- };
97
- function getVideoThumbnailVideo(file, atSecond = 1) {
98
- return new Promise((resolve, reject) => {
99
- const video = document.createElement("video");
100
- video.preload = "metadata";
101
- video.muted = true;
102
- video.playsInline = true;
103
- video.src = URL.createObjectURL(file);
104
- video.addEventListener("loadeddata", () => {
105
- video.currentTime = atSecond;
106
- });
107
- video.addEventListener("seeked", () => {
108
- const canvas = document.createElement("canvas");
109
- canvas.width = video.videoWidth;
110
- canvas.height = video.videoHeight;
111
- const ctx = canvas.getContext("2d");
112
- ctx?.drawImage(video, 0, 0, canvas.width, canvas.height);
113
- canvas.toBlob((blob) => {
114
- if (!blob) {
115
- reject(new Error("Failed to create thumbnail blob"));
116
- return;
117
- }
118
- const thumbnailFile = new File([blob], "thumbnail.png", {
119
- type: "image/png"
120
- });
121
- URL.revokeObjectURL(video.src);
122
- resolve(thumbnailFile);
123
- }, "image/png");
124
- });
125
- video.addEventListener("error", () => {
126
- reject(new Error("Failed to load video"));
127
- });
128
- });
129
- }
130
- watch(
131
- files,
132
- async (v) => {
133
- if (fileType.value === "image") {
134
- thumbnail.value = v[0];
135
- }
136
- },
137
- {
138
- deep: true
139
- }
140
- );
141
- </script>
@@ -1,22 +0,0 @@
1
- import type { InputMediaProps } from "#pukaad-ui/types/components/input/input-media";
2
- type __VLS_Props = InputMediaProps;
3
- type __VLS_ModelProps = {
4
- modelValue?: Array<File>;
5
- "thumbnail"?: File | undefined;
6
- };
7
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- "update:modelValue": (value: File[]) => any;
10
- "update:thumbnail": (value: File | undefined) => any;
11
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
- "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
13
- "onUpdate:thumbnail"?: ((value: File | undefined) => any) | undefined;
14
- }>, {
15
- name: string;
16
- fullHeight: boolean;
17
- fullWidth: boolean;
18
- limitImage: number;
19
- limitVideo: number;
20
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
- declare const _default: typeof __VLS_export;
22
- export default _default;
@@ -1,93 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- items: {
3
- (arrayLength: number): {
4
- icon: string;
5
- label: string;
6
- to: string;
7
- action: string | Function;
8
- }[];
9
- (...items: {
10
- icon: string;
11
- label: string;
12
- to: string;
13
- action: string | Function;
14
- }[]): {
15
- icon: string;
16
- label: string;
17
- to: string;
18
- action: string | Function;
19
- }[];
20
- new (arrayLength: number): {
21
- icon: string;
22
- label: string;
23
- to: string;
24
- action: string | Function;
25
- }[];
26
- new (...items: {
27
- icon: string;
28
- label: string;
29
- to: string;
30
- action: string | Function;
31
- }[]): {
32
- icon: string;
33
- label: string;
34
- to: string;
35
- action: string | Function;
36
- }[];
37
- isArray(arg: any): arg is any[];
38
- readonly prototype: any[];
39
- from<T>(arrayLike: ArrayLike<T>): T[];
40
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
41
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
42
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
- of<T>(...items: T[]): T[];
44
- readonly [Symbol.species]: ArrayConstructor;
45
- };
46
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
- items: {
48
- (arrayLength: number): {
49
- icon: string;
50
- label: string;
51
- to: string;
52
- action: string | Function;
53
- }[];
54
- (...items: {
55
- icon: string;
56
- label: string;
57
- to: string;
58
- action: string | Function;
59
- }[]): {
60
- icon: string;
61
- label: string;
62
- to: string;
63
- action: string | Function;
64
- }[];
65
- new (arrayLength: number): {
66
- icon: string;
67
- label: string;
68
- to: string;
69
- action: string | Function;
70
- }[];
71
- new (...items: {
72
- icon: string;
73
- label: string;
74
- to: string;
75
- action: string | Function;
76
- }[]): {
77
- icon: string;
78
- label: string;
79
- to: string;
80
- action: string | Function;
81
- }[];
82
- isArray(arg: any): arg is any[];
83
- readonly prototype: any[];
84
- from<T>(arrayLike: ArrayLike<T>): T[];
85
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
86
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
87
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
88
- of<T>(...items: T[]): T[];
89
- readonly [Symbol.species]: ArrayConstructor;
90
- };
91
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
- declare const _default: typeof __VLS_export;
93
- export default _default;
@@ -1,33 +0,0 @@
1
- <template>
2
- <ul class="bg-white space-y-[4px]">
3
- <li
4
- v-for="(menu, i_menu) in props.items"
5
- :key="i_menu"
6
- :class="[
7
- 'flex items-center h-[44px] gap-[12px]',
8
- 'rounded-[8px] p-[16px] font-body-large-prominent cursor-pointer',
9
- menu.to === route.path ? 'bg-info text-primary' : 'hover:bg-smoke'
10
- ]"
11
- @click="onAction(menu.to, menu.action)"
12
- >
13
- <Icon size="24" :name="menu.icon" />
14
- <div>
15
- {{ menu.label }}
16
- </div>
17
- </li>
18
- </ul>
19
- </template>
20
-
21
- <script setup>
22
- import { useRoute, useRouter } from "vue-router";
23
- const route = useRoute();
24
- const router = useRouter();
25
- const props = defineProps({
26
- items: Array
27
- });
28
- const onAction = (to, act) => {
29
- if (act instanceof Function) return act();
30
- if (to.startsWith("http") || to.startsWith("https")) return window.open(to);
31
- router.push(to);
32
- };
33
- </script>
@@ -1,93 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- items: {
3
- (arrayLength: number): {
4
- icon: string;
5
- label: string;
6
- to: string;
7
- action: string | Function;
8
- }[];
9
- (...items: {
10
- icon: string;
11
- label: string;
12
- to: string;
13
- action: string | Function;
14
- }[]): {
15
- icon: string;
16
- label: string;
17
- to: string;
18
- action: string | Function;
19
- }[];
20
- new (arrayLength: number): {
21
- icon: string;
22
- label: string;
23
- to: string;
24
- action: string | Function;
25
- }[];
26
- new (...items: {
27
- icon: string;
28
- label: string;
29
- to: string;
30
- action: string | Function;
31
- }[]): {
32
- icon: string;
33
- label: string;
34
- to: string;
35
- action: string | Function;
36
- }[];
37
- isArray(arg: any): arg is any[];
38
- readonly prototype: any[];
39
- from<T>(arrayLike: ArrayLike<T>): T[];
40
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
41
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
42
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
- of<T>(...items: T[]): T[];
44
- readonly [Symbol.species]: ArrayConstructor;
45
- };
46
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
- items: {
48
- (arrayLength: number): {
49
- icon: string;
50
- label: string;
51
- to: string;
52
- action: string | Function;
53
- }[];
54
- (...items: {
55
- icon: string;
56
- label: string;
57
- to: string;
58
- action: string | Function;
59
- }[]): {
60
- icon: string;
61
- label: string;
62
- to: string;
63
- action: string | Function;
64
- }[];
65
- new (arrayLength: number): {
66
- icon: string;
67
- label: string;
68
- to: string;
69
- action: string | Function;
70
- }[];
71
- new (...items: {
72
- icon: string;
73
- label: string;
74
- to: string;
75
- action: string | Function;
76
- }[]): {
77
- icon: string;
78
- label: string;
79
- to: string;
80
- action: string | Function;
81
- }[];
82
- isArray(arg: any): arg is any[];
83
- readonly prototype: any[];
84
- from<T>(arrayLike: ArrayLike<T>): T[];
85
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
86
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
87
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
88
- of<T>(...items: T[]): T[];
89
- readonly [Symbol.species]: ArrayConstructor;
90
- };
91
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
- declare const _default: typeof __VLS_export;
93
- export default _default;
@@ -1,21 +0,0 @@
1
- import type { ModalReviewDetailProps } from "#pukaad-ui/types/components/modal/modal-review-detail";
2
- type __VLS_Props = ModalReviewDetailProps;
3
- type __VLS_ModelProps = {
4
- modelValue?: boolean;
5
- };
6
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "update:modelValue": (value: boolean) => any;
9
- "toggle-like": (reviewId: string, liked: boolean) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
- "onToggle-like"?: ((reviewId: string, liked: boolean) => any) | undefined;
13
- }>, {
14
- title: string;
15
- items: string[];
16
- selectIndex: number;
17
- isProfile: boolean;
18
- review: import("../../../types/components/card/card-review.js").CardReviewProps;
19
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
- declare const _default: typeof __VLS_export;
21
- export default _default;