pukaad-ui-lib 1.218.0 → 1.220.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.218.0",
4
+ "version": "1.220.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir, installModule, addPlugin } from '@nuxt/kit';
2
+ import { createRequire } from 'module';
2
3
  import tailwindcss from '@tailwindcss/vite';
3
4
 
4
5
  const module$1 = defineNuxtModule({
@@ -244,6 +245,8 @@ const module$1 = defineNuxtModule({
244
245
  });
245
246
  });
246
247
  _nuxt.options.alias["@"] = resolver.resolve(".");
248
+ const _require = createRequire(import.meta.url);
249
+ _nuxt.options.css.push(_require.resolve("leaflet/dist/leaflet.css"));
247
250
  _nuxt.options.css.push(resolver.resolve("./runtime/assets/css/main.css"));
248
251
  _nuxt.hook("vite:extendConfig", (config) => {
249
252
  config.plugins.push(tailwindcss());
@@ -1,4 +1,3 @@
1
- import "leaflet/dist/leaflet.css";
2
1
  type __VLS_Props = {
3
2
  provinceId?: number;
4
3
  amphurId?: number;
@@ -8,7 +8,6 @@
8
8
 
9
9
  <script setup>
10
10
  import { ref, onMounted, watch } from "vue";
11
- import "leaflet/dist/leaflet.css";
12
11
  import { useThaiAddress } from "@/runtime/composables/useThaiAddress";
13
12
  import provincesGeoJson from "@/runtime/geo/provinces.json";
14
13
  import mapPinSvg from "@/runtime/assets/svg/map-pin.svg?raw";
@@ -39,6 +38,12 @@ onMounted(async () => {
39
38
  emits("update:latLng", { lat: e.latlng.lat, lng: e.latlng.lng });
40
39
  }
41
40
  });
41
+ const resizeObserver = new ResizeObserver(() => {
42
+ if (map) {
43
+ map.invalidateSize();
44
+ }
45
+ });
46
+ resizeObserver.observe(mapContainer.value);
42
47
  drawPolygon(L);
43
48
  }
44
49
  });
@@ -1,4 +1,3 @@
1
- import "leaflet/dist/leaflet.css";
2
1
  type __VLS_Props = {
3
2
  provinceId?: number;
4
3
  amphurId?: number;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.218.0",
3
+ "version": "1.220.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",