pukaad-ui-lib 1.365.0 → 1.366.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/drawer/drawer-notification.vue +146 -146
- package/dist/runtime/components/drawer/drawer-suggest-place/drawer-suggest-place.vue +2 -1
- package/dist/runtime/components/drawer/drawer-suggest-place/suggest-place-form.d.vue.ts +1 -0
- package/dist/runtime/components/drawer/drawer-suggest-place/suggest-place-form.vue +4 -1
- package/dist/runtime/components/drawer/drawer-suggest-place/suggest-place-form.vue.d.ts +1 -0
- package/dist/runtime/components/google-translate.client.vue +1 -1
- package/dist/runtime/components/input/input-address.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-address.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 +3 -1
- package/dist/runtime/components/input/input-link.vue +2 -0
- package/dist/runtime/components/input/input-link.vue.d.ts +3 -1
- package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-password-verify.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-password-verify.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal.vue +17 -6
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,152 +1,152 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Drawer v-model="modelValue" title="การแจ้งเตือน" class="w-[748px]">
|
|
3
|
-
<div class="flex justify-between items-center mb-[16px]">
|
|
4
|
-
<ShadTabs v-model="selectedTab" class="w-full">
|
|
5
|
-
<div class="flex justify-between items-center w-full">
|
|
6
|
-
<ShadTabsList>
|
|
7
|
-
<ShadTabsTrigger
|
|
8
|
-
v-for="tab in tabs"
|
|
9
|
-
:key="tab.value"
|
|
10
|
-
:value="tab.value"
|
|
11
|
-
class="px-4 py-2"
|
|
12
|
-
>
|
|
13
|
-
<Icon name="lucide:layers" />
|
|
14
|
-
<div class="flex">
|
|
15
|
-
{{ tab.label }}
|
|
16
|
-
<div
|
|
2
|
+
<Drawer v-model="modelValue" title="การแจ้งเตือน" class="w-[748px]">
|
|
3
|
+
<div class="flex justify-between items-center mb-[16px]">
|
|
4
|
+
<ShadTabs v-model="selectedTab" class="w-full">
|
|
5
|
+
<div class="flex justify-between items-center w-full">
|
|
6
|
+
<ShadTabsList>
|
|
7
|
+
<ShadTabsTrigger
|
|
8
|
+
v-for="tab in tabs"
|
|
9
|
+
:key="tab.value"
|
|
10
|
+
:value="tab.value"
|
|
11
|
+
class="px-4 py-2"
|
|
12
|
+
>
|
|
13
|
+
<Icon name="lucide:layers" />
|
|
14
|
+
<div class="flex">
|
|
15
|
+
{{ tab.label }}
|
|
16
|
+
<div
|
|
17
17
|
v-if="
|
|
18
18
|
tab.value === 'general' ? hasUnreadGeneral : hasUnreadSystem
|
|
19
|
-
"
|
|
20
|
-
class="bg-destructive rounded-full w-[10px] h-[10px] m-[2px] shrink-0"
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
</ShadTabsTrigger>
|
|
24
|
-
</ShadTabsList>
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
v-if="notifications.length > 0"
|
|
28
|
-
class="text-primary font-body-medium cursor-pointer"
|
|
29
|
-
@click="markAllRead"
|
|
30
|
-
>
|
|
31
|
-
อ่านทั้งหมด
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<ShadTabsContent value="general" class="flex flex-col gap-[8px]">
|
|
36
|
-
<template v-if="isLoading && notifications.length === 0">
|
|
37
|
-
<div class="flex justify-center py-[40px]">
|
|
38
|
-
<Icon
|
|
39
|
-
name="lucide:loader-2"
|
|
40
|
-
size="24"
|
|
41
|
-
class="animate-spin text-gray"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<template v-else-if="notifications.length === 0">
|
|
47
|
-
<div
|
|
48
|
-
class="flex flex-col items-center justify-center py-[40px] gap-[8px]"
|
|
49
|
-
>
|
|
50
|
-
<Icon name="lucide:bell-off" size="40" class="text-gray" />
|
|
51
|
-
<div class="font-body-medium text-gray">ยังไม่มีการแจ้งเตือน</div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
|
|
55
|
-
<template v-else>
|
|
56
|
-
<Card
|
|
57
|
-
v-for="item in notifications"
|
|
58
|
-
:key="item.id"
|
|
59
|
-
variant="outline"
|
|
60
|
-
class="cursor-pointer transition-colors"
|
|
61
|
-
:class="{ 'bg-bright': !item.is_read }"
|
|
62
|
-
@click="onClickNotification(item)"
|
|
63
|
-
>
|
|
64
|
-
<div class="flex gap-[8px] items-center">
|
|
65
|
-
<div class="flex gap-[8px] items-center w-full">
|
|
66
|
-
<Avatar :size="30" :src="item.actor?.avatar ?? void 0" />
|
|
67
|
-
<div class="flex flex-col gap-[4px]">
|
|
68
|
-
<div class="font-body-medium">
|
|
69
|
-
<span
|
|
70
|
-
v-if="item.actor"
|
|
71
|
-
class="font-body-medium-prominent"
|
|
72
|
-
>
|
|
73
|
-
{{ item.actor.name }}
|
|
74
|
-
</span>
|
|
75
|
-
{{ item.message }}
|
|
76
|
-
<span
|
|
77
|
-
v-if="item.grouped_count && item.grouped_count > 1"
|
|
78
|
-
class="text-gray font-body-small"
|
|
79
|
-
>
|
|
80
|
-
({{ item.grouped_count }} คน)
|
|
81
|
-
</span>
|
|
82
|
-
</div>
|
|
83
|
-
<div class="text-gray font-body-small">
|
|
84
|
-
{{ formatRelativeTime(item.created_at) }}
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
<div
|
|
89
|
-
v-if="!item.is_read"
|
|
90
|
-
class="bg-primary rounded-full w-[10px] h-[10px] shrink-0"
|
|
91
|
-
/>
|
|
92
|
-
</div>
|
|
93
|
-
</Card>
|
|
94
|
-
</template>
|
|
95
|
-
</ShadTabsContent>
|
|
96
|
-
|
|
97
|
-
<ShadTabsContent value="system" class="flex flex-col gap-[8px]">
|
|
98
|
-
<template v-if="isLoading && notifications.length === 0">
|
|
99
|
-
<div class="flex justify-center py-[40px]">
|
|
100
|
-
<Icon
|
|
101
|
-
name="lucide:loader-2"
|
|
102
|
-
size="24"
|
|
103
|
-
class="animate-spin text-gray"
|
|
104
|
-
/>
|
|
105
|
-
</div>
|
|
106
|
-
</template>
|
|
107
|
-
|
|
108
|
-
<template v-else-if="notifications.length === 0">
|
|
109
|
-
<div
|
|
110
|
-
class="flex flex-col items-center justify-center py-[40px] gap-[8px]"
|
|
111
|
-
>
|
|
112
|
-
<Icon name="lucide:bell-off" size="40" class="text-gray" />
|
|
113
|
-
<div class="font-body-medium text-gray">ยังไม่มีการแจ้งเตือนระบบ</div>
|
|
114
|
-
</div>
|
|
115
|
-
</template>
|
|
116
|
-
|
|
117
|
-
<template v-else>
|
|
118
|
-
<Card
|
|
119
|
-
v-for="item in notifications"
|
|
120
|
-
:key="item.id"
|
|
121
|
-
variant="outline"
|
|
122
|
-
class="cursor-pointer transition-colors"
|
|
123
|
-
:class="{ 'bg-bright': !item.is_read }"
|
|
124
|
-
@click="onClickNotification(item)"
|
|
125
|
-
>
|
|
126
|
-
<div class="flex gap-[8px] items-center">
|
|
127
|
-
<div class="flex gap-[8px] items-center w-full">
|
|
128
|
-
<Icon
|
|
129
|
-
name="pukaad:memsg-square"
|
|
130
|
-
class="w-[40px] h-[40px] shrink-0"
|
|
131
|
-
/>
|
|
132
|
-
<div class="flex flex-col gap-[4px]">
|
|
133
|
-
<div class="font-body-medium">{{ item.message }}</div>
|
|
134
|
-
<div class="text-gray font-body-small">
|
|
135
|
-
{{ formatRelativeTime(item.created_at) }}
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<div
|
|
140
|
-
v-if="!item.is_read"
|
|
141
|
-
class="bg-primary rounded-full w-[10px] h-[10px] shrink-0"
|
|
142
|
-
/>
|
|
143
|
-
</div>
|
|
144
|
-
</Card>
|
|
145
|
-
</template>
|
|
146
|
-
</ShadTabsContent>
|
|
147
|
-
</ShadTabs>
|
|
148
|
-
</div>
|
|
149
|
-
</Drawer>
|
|
19
|
+
"
|
|
20
|
+
class="bg-destructive rounded-full w-[10px] h-[10px] m-[2px] shrink-0"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</ShadTabsTrigger>
|
|
24
|
+
</ShadTabsList>
|
|
25
|
+
|
|
26
|
+
<div
|
|
27
|
+
v-if="notifications.length > 0"
|
|
28
|
+
class="text-primary font-body-medium cursor-pointer"
|
|
29
|
+
@click="markAllRead"
|
|
30
|
+
>
|
|
31
|
+
อ่านทั้งหมด
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<ShadTabsContent value="general" class="flex flex-col gap-[8px]">
|
|
36
|
+
<template v-if="isLoading && notifications.length === 0">
|
|
37
|
+
<div class="flex justify-center py-[40px]">
|
|
38
|
+
<Icon
|
|
39
|
+
name="lucide:loader-2"
|
|
40
|
+
size="24"
|
|
41
|
+
class="animate-spin text-gray"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<template v-else-if="notifications.length === 0">
|
|
47
|
+
<div
|
|
48
|
+
class="flex flex-col items-center justify-center py-[40px] gap-[8px]"
|
|
49
|
+
>
|
|
50
|
+
<Icon name="lucide:bell-off" size="40" class="text-gray" />
|
|
51
|
+
<div class="font-body-medium text-gray">ยังไม่มีการแจ้งเตือน</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<template v-else>
|
|
56
|
+
<Card
|
|
57
|
+
v-for="item in notifications"
|
|
58
|
+
:key="item.id"
|
|
59
|
+
variant="outline"
|
|
60
|
+
class="cursor-pointer transition-colors"
|
|
61
|
+
:class="{ 'bg-bright': !item.is_read }"
|
|
62
|
+
@click="onClickNotification(item)"
|
|
63
|
+
>
|
|
64
|
+
<div class="flex gap-[8px] items-center">
|
|
65
|
+
<div class="flex gap-[8px] items-center w-full">
|
|
66
|
+
<Avatar :size="30" :src="item.actor?.avatar ?? void 0" />
|
|
67
|
+
<div class="flex flex-col gap-[4px]">
|
|
68
|
+
<div class="font-body-medium">
|
|
69
|
+
<span
|
|
70
|
+
v-if="item.actor"
|
|
71
|
+
class="font-body-medium-prominent"
|
|
72
|
+
>
|
|
73
|
+
{{ item.actor.name }}
|
|
74
|
+
</span>
|
|
75
|
+
{{ item.message }}
|
|
76
|
+
<span
|
|
77
|
+
v-if="item.grouped_count && item.grouped_count > 1"
|
|
78
|
+
class="text-gray font-body-small"
|
|
79
|
+
>
|
|
80
|
+
({{ item.grouped_count }} คน)
|
|
81
|
+
</span>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="text-gray font-body-small">
|
|
84
|
+
{{ formatRelativeTime(item.created_at) }}
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div
|
|
89
|
+
v-if="!item.is_read"
|
|
90
|
+
class="bg-primary rounded-full w-[10px] h-[10px] shrink-0"
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
</Card>
|
|
94
|
+
</template>
|
|
95
|
+
</ShadTabsContent>
|
|
96
|
+
|
|
97
|
+
<ShadTabsContent value="system" class="flex flex-col gap-[8px]">
|
|
98
|
+
<template v-if="isLoading && notifications.length === 0">
|
|
99
|
+
<div class="flex justify-center py-[40px]">
|
|
100
|
+
<Icon
|
|
101
|
+
name="lucide:loader-2"
|
|
102
|
+
size="24"
|
|
103
|
+
class="animate-spin text-gray"
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
|
|
108
|
+
<template v-else-if="notifications.length === 0">
|
|
109
|
+
<div
|
|
110
|
+
class="flex flex-col items-center justify-center py-[40px] gap-[8px]"
|
|
111
|
+
>
|
|
112
|
+
<Icon name="lucide:bell-off" size="40" class="text-gray" />
|
|
113
|
+
<div class="font-body-medium text-gray">ยังไม่มีการแจ้งเตือนระบบ</div>
|
|
114
|
+
</div>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<template v-else>
|
|
118
|
+
<Card
|
|
119
|
+
v-for="item in notifications"
|
|
120
|
+
:key="item.id"
|
|
121
|
+
variant="outline"
|
|
122
|
+
class="cursor-pointer transition-colors"
|
|
123
|
+
:class="{ 'bg-bright': !item.is_read }"
|
|
124
|
+
@click="onClickNotification(item)"
|
|
125
|
+
>
|
|
126
|
+
<div class="flex gap-[8px] items-center">
|
|
127
|
+
<div class="flex gap-[8px] items-center w-full">
|
|
128
|
+
<Icon
|
|
129
|
+
name="pukaad:memsg-square"
|
|
130
|
+
class="w-[40px] h-[40px] shrink-0"
|
|
131
|
+
/>
|
|
132
|
+
<div class="flex flex-col gap-[4px]">
|
|
133
|
+
<div class="font-body-medium">{{ item.message }}</div>
|
|
134
|
+
<div class="text-gray font-body-small">
|
|
135
|
+
{{ formatRelativeTime(item.created_at) }}
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<div
|
|
140
|
+
v-if="!item.is_read"
|
|
141
|
+
class="bg-primary rounded-full w-[10px] h-[10px] shrink-0"
|
|
142
|
+
/>
|
|
143
|
+
</div>
|
|
144
|
+
</Card>
|
|
145
|
+
</template>
|
|
146
|
+
</ShadTabsContent>
|
|
147
|
+
</ShadTabs>
|
|
148
|
+
</div>
|
|
149
|
+
</Drawer>
|
|
150
150
|
</template>
|
|
151
151
|
|
|
152
152
|
<script setup>
|
|
@@ -180,7 +180,8 @@ const isFormValid = computed(() => {
|
|
|
180
180
|
const hasLatLng = !!d.latLng;
|
|
181
181
|
const hasBusinessName = !!d.businessName;
|
|
182
182
|
const hasCategories = !!(d.categories && d.categories.length > 0);
|
|
183
|
-
|
|
183
|
+
const contactChannelsValid = !(formRef.value?.hasContactChannelsError?.() ?? false);
|
|
184
|
+
return addressComplete && hasLatLng && hasBusinessName && hasCategories && contactChannelsValid;
|
|
184
185
|
});
|
|
185
186
|
const endpointMap = {
|
|
186
187
|
personal: "/personal/suggest-places",
|
|
@@ -46,6 +46,7 @@ type __VLS_ModelProps = {
|
|
|
46
46
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
47
47
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
48
48
|
checkDuplicate: () => Promise<boolean>;
|
|
49
|
+
hasContactChannelsError: () => any;
|
|
49
50
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
51
|
"update:modelValue": (value: SuggestPlaceData) => any;
|
|
51
52
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
เพิ่มเบอร์โทรศัพท์
|
|
82
82
|
</Button>
|
|
83
83
|
<InputLink
|
|
84
|
+
ref="contactChannelsRef"
|
|
84
85
|
name="contactChannels"
|
|
85
86
|
format="contact_channel"
|
|
86
87
|
default-first
|
|
@@ -165,6 +166,7 @@ const props = defineProps({
|
|
|
165
166
|
});
|
|
166
167
|
const api = useApi();
|
|
167
168
|
const { $alert } = useNuxtApp();
|
|
169
|
+
const contactChannelsRef = ref(null);
|
|
168
170
|
const _model = defineModel({ type: Object, ...{ default: () => ({}) } });
|
|
169
171
|
const modelValue = reactive({
|
|
170
172
|
address: {},
|
|
@@ -283,7 +285,8 @@ const checkDuplicate = async () => {
|
|
|
283
285
|
}
|
|
284
286
|
return false;
|
|
285
287
|
};
|
|
286
|
-
|
|
288
|
+
const hasContactChannelsError = () => contactChannelsRef.value?.hasError?.() ?? false;
|
|
289
|
+
defineExpose({ checkDuplicate, hasContactChannelsError });
|
|
287
290
|
const categoryOptions = ref([]);
|
|
288
291
|
onMounted(async () => {
|
|
289
292
|
try {
|
|
@@ -46,6 +46,7 @@ type __VLS_ModelProps = {
|
|
|
46
46
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
47
47
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
48
48
|
checkDuplicate: () => Promise<boolean>;
|
|
49
|
+
hasContactChannelsError: () => any;
|
|
49
50
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
51
|
"update:modelValue": (value: SuggestPlaceData) => any;
|
|
51
52
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -50,10 +50,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
name: string;
|
|
51
51
|
required: boolean;
|
|
52
52
|
placeholder: string;
|
|
53
|
+
gap: string;
|
|
53
54
|
labelDetail: string;
|
|
54
55
|
placeholderDetail: string;
|
|
55
56
|
requiredDetail: boolean;
|
|
56
|
-
gap: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -50,10 +50,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
name: string;
|
|
51
51
|
required: boolean;
|
|
52
52
|
placeholder: string;
|
|
53
|
+
gap: string;
|
|
53
54
|
labelDetail: string;
|
|
54
55
|
placeholderDetail: string;
|
|
55
56
|
requiredDetail: boolean;
|
|
56
|
-
gap: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
37
|
limit: number;
|
|
38
|
-
disabledErrorMessage: boolean;
|
|
39
38
|
accept: string;
|
|
39
|
+
disabledErrorMessage: boolean;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
42
42
|
column: boolean;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
37
|
limit: number;
|
|
38
|
-
disabledErrorMessage: boolean;
|
|
39
38
|
accept: string;
|
|
39
|
+
disabledErrorMessage: boolean;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
42
42
|
column: boolean;
|
|
@@ -5,7 +5,9 @@ type __VLS_Props = InputLinkProps & {
|
|
|
5
5
|
showCounter?: boolean;
|
|
6
6
|
limit?: number;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
9
|
+
hasError: () => boolean;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
11
|
"update:modelValue": (value: InputLinkItem[] | ContactChannel[]) => any;
|
|
10
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
13
|
"onUpdate:modelValue"?: ((value: InputLinkItem[] | ContactChannel[]) => any) | undefined;
|
|
@@ -214,4 +214,6 @@ const onChangeLink = (option, index) => {
|
|
|
214
214
|
linkValue.value = linkValue.value.filter((_, i) => i !== index);
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
+
const hasError = () => linkValue.value.some((item) => rules(item.link ?? "", item.name) !== true);
|
|
218
|
+
defineExpose({ hasError });
|
|
217
219
|
</script>
|
|
@@ -5,7 +5,9 @@ type __VLS_Props = InputLinkProps & {
|
|
|
5
5
|
showCounter?: boolean;
|
|
6
6
|
limit?: number;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
9
|
+
hasError: () => boolean;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
11
|
"update:modelValue": (value: InputLinkItem[] | ContactChannel[]) => any;
|
|
10
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
13
|
"onUpdate:modelValue"?: ((value: InputLinkItem[] | ContactChannel[]) => any) | undefined;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
disabledForgotPassword: boolean;
|
|
28
27
|
confirmText: string;
|
|
28
|
+
disabledForgotPassword: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
disabledForgotPassword: boolean;
|
|
28
27
|
confirmText: string;
|
|
28
|
+
disabledForgotPassword: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
title: string;
|
|
34
34
|
mode: "login" | "secure";
|
|
35
|
-
disabledForgotPassword: boolean;
|
|
36
35
|
confirmText: string;
|
|
36
|
+
disabledForgotPassword: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
title: string;
|
|
34
34
|
mode: "login" | "secure";
|
|
35
|
-
disabledForgotPassword: boolean;
|
|
36
35
|
confirmText: string;
|
|
36
|
+
disabledForgotPassword: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ShadDialog v-model:open="isOpen">
|
|
3
|
-
<ShadDialogContent
|
|
4
|
-
:
|
|
5
|
-
|
|
3
|
+
<ShadDialogContent
|
|
4
|
+
:class="props.class"
|
|
5
|
+
:disabled-close-btn="props.disabledCloseBtn"
|
|
6
|
+
:no-padding="props.disablePadding"
|
|
7
|
+
:disable-outside-pointer-events="false"
|
|
8
|
+
v-slot="{ meta }"
|
|
9
|
+
@submit="onSubmit"
|
|
10
|
+
@close="onClose"
|
|
11
|
+
>
|
|
6
12
|
<Loading :loading="props.loading" :text="props.loadingText" />
|
|
7
|
-
<ShadDialogHeader
|
|
13
|
+
<ShadDialogHeader
|
|
14
|
+
:class="[props.disablePadding ? 'bg-background' : '', 'min-h-[58px]']"
|
|
15
|
+
>
|
|
8
16
|
<slot name="header">
|
|
9
17
|
<ShadDialogTitle>
|
|
10
18
|
<slot name="title">
|
|
@@ -18,9 +26,12 @@
|
|
|
18
26
|
</ShadDialogDescription>
|
|
19
27
|
</slot>
|
|
20
28
|
</ShadDialogHeader>
|
|
21
|
-
<div
|
|
29
|
+
<div
|
|
30
|
+
:class="props.contentMaxHeight ? '-mx-6 px-6' : void 0"
|
|
31
|
+
:style="
|
|
22
32
|
props.contentMaxHeight ? { maxHeight: `${props.contentMaxHeight}px`, overflowY: 'auto' } : void 0
|
|
23
|
-
"
|
|
33
|
+
"
|
|
34
|
+
>
|
|
24
35
|
<slot name="default" :meta="meta" />
|
|
25
36
|
</div>
|
|
26
37
|
<ShadDialogFooter v-if="$slots.footer">
|