pukaad-ui-lib 1.105.0 → 1.106.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
CHANGED
|
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
64
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
|
+
background: boolean;
|
|
68
|
+
modal: boolean;
|
|
67
69
|
responsive: boolean;
|
|
68
70
|
restore: boolean;
|
|
69
71
|
checkCrossOrigin: boolean;
|
|
70
72
|
checkOrientation: boolean;
|
|
71
73
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
-
modal: boolean;
|
|
73
74
|
guides: boolean;
|
|
74
75
|
highlight: boolean;
|
|
75
|
-
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
64
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
|
+
background: boolean;
|
|
68
|
+
modal: boolean;
|
|
67
69
|
responsive: boolean;
|
|
68
70
|
restore: boolean;
|
|
69
71
|
checkCrossOrigin: boolean;
|
|
70
72
|
checkOrientation: boolean;
|
|
71
73
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
-
modal: boolean;
|
|
73
74
|
guides: boolean;
|
|
74
75
|
highlight: boolean;
|
|
75
|
-
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -33,7 +33,14 @@
|
|
|
33
33
|
>
|
|
34
34
|
<span v-if="modelValue">{{ formattedDate }}</span>
|
|
35
35
|
<span v-else class="text-cloud">{{ placeholder }}</span>
|
|
36
|
-
<Icon
|
|
36
|
+
<Icon
|
|
37
|
+
v-if="modelValue"
|
|
38
|
+
name="lucide:x"
|
|
39
|
+
:size="16"
|
|
40
|
+
class="!pointer-events-auto cursor-pointer"
|
|
41
|
+
@click.stop.prevent="clearDate"
|
|
42
|
+
/>
|
|
43
|
+
<Icon v-else name="lucide:calendar" :size="16" />
|
|
37
44
|
</Button>
|
|
38
45
|
</PopoverTrigger>
|
|
39
46
|
<PopoverContent class="w-auto p-0" align="start">
|
|
@@ -180,8 +187,6 @@ const calendarValue = computed({
|
|
|
180
187
|
if (!props.showTime) {
|
|
181
188
|
isPopoverOpen.value = false;
|
|
182
189
|
}
|
|
183
|
-
} else {
|
|
184
|
-
modelValue.value = void 0;
|
|
185
190
|
}
|
|
186
191
|
}
|
|
187
192
|
});
|
|
@@ -210,6 +215,10 @@ const defaultRules = (v) => {
|
|
|
210
215
|
const setErrors = (errMsg) => {
|
|
211
216
|
fieldRef.value?.setErrors(errMsg);
|
|
212
217
|
};
|
|
218
|
+
const clearDate = () => {
|
|
219
|
+
modelValue.value = void 0;
|
|
220
|
+
isPopoverOpen.value = false;
|
|
221
|
+
};
|
|
213
222
|
defineExpose({
|
|
214
223
|
setErrors
|
|
215
224
|
});
|