pukaad-ui-lib 1.220.0 → 1.222.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/module.mjs +1 -0
- package/dist/runtime/components/drawer/drawer-suggest-place/drawer-suggest-place.vue +1 -1
- package/dist/runtime/components/drawer/drawer-suggest-place/suggest-place-map.vue +7 -2
- package/dist/runtime/components/image/image-cropper.d.vue.ts +2 -2
- package/dist/runtime/components/image/image-cropper.vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -253,6 +253,7 @@ const module$1 = defineNuxtModule({
|
|
|
253
253
|
config.optimizeDeps = config.optimizeDeps || {};
|
|
254
254
|
config.optimizeDeps.include = config.optimizeDeps.include || [];
|
|
255
255
|
config.optimizeDeps.include.push(
|
|
256
|
+
"leaflet",
|
|
256
257
|
"quill",
|
|
257
258
|
"quill-delta",
|
|
258
259
|
"dayjs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Drawer class="w-[888px]" :title="drawerTitle" :loading="loading" v-model="isOpen">
|
|
3
3
|
<!-- backoffice: แสดงแบบมี tabs -->
|
|
4
|
-
<ShadTabs v-if="props.state === 'backoffice'">
|
|
4
|
+
<ShadTabs v-if="props.state === 'backoffice'" default-value="business-info">
|
|
5
5
|
<ShadTabsList>
|
|
6
6
|
<ShadTabsTrigger value="business-info">ข้อมูลธุรกิจ</ShadTabsTrigger>
|
|
7
7
|
<ShadTabsTrigger value="image">รูปภาพ</ShadTabsTrigger>
|
|
@@ -23,7 +23,8 @@ let polygonLayer = null;
|
|
|
23
23
|
let marker = null;
|
|
24
24
|
const { getProvinceById } = useThaiAddress();
|
|
25
25
|
onMounted(async () => {
|
|
26
|
-
const
|
|
26
|
+
const leafletModule = await import("leaflet");
|
|
27
|
+
const L = leafletModule.default ?? leafletModule;
|
|
27
28
|
if (mapContainer.value) {
|
|
28
29
|
map = L.map(mapContainer.value, {
|
|
29
30
|
zoomControl: false,
|
|
@@ -44,6 +45,9 @@ onMounted(async () => {
|
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
resizeObserver.observe(mapContainer.value);
|
|
48
|
+
setTimeout(() => {
|
|
49
|
+
if (map) map.invalidateSize();
|
|
50
|
+
}, 550);
|
|
47
51
|
drawPolygon(L);
|
|
48
52
|
}
|
|
49
53
|
});
|
|
@@ -51,7 +55,8 @@ watch(
|
|
|
51
55
|
() => [props.provinceId, props.amphurId, props.tambonId],
|
|
52
56
|
async () => {
|
|
53
57
|
if (typeof window !== "undefined") {
|
|
54
|
-
const
|
|
58
|
+
const leafletModule = await import("leaflet");
|
|
59
|
+
const L = leafletModule.default ?? leafletModule;
|
|
55
60
|
drawPolygon(L);
|
|
56
61
|
}
|
|
57
62
|
}
|
|
@@ -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;
|
|
69
67
|
responsive: boolean;
|
|
70
68
|
restore: boolean;
|
|
71
69
|
checkCrossOrigin: boolean;
|
|
72
70
|
checkOrientation: boolean;
|
|
73
71
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
+
modal: boolean;
|
|
74
73
|
guides: boolean;
|
|
75
74
|
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;
|
|
69
67
|
responsive: boolean;
|
|
70
68
|
restore: boolean;
|
|
71
69
|
checkCrossOrigin: boolean;
|
|
72
70
|
checkOrientation: boolean;
|
|
73
71
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
+
modal: boolean;
|
|
74
73
|
guides: boolean;
|
|
75
74
|
highlight: boolean;
|
|
75
|
+
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|