pukaad-ui-lib 1.284.0 → 1.286.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.284.0",
4
+ "version": "1.286.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -25,8 +25,8 @@
25
25
  placeholder="คำอธิบายเกี่ยวกับสถานที่ (สูงสุด 220 ตัวอักษร)" :limit="220" show-counter />
26
26
  <InputDateOpening name="openingHours" v-model="modelValue.openingHours" />
27
27
  <div class="flex flex-col gap-[8px]">
28
- <InputPhone name="phone" v-model="modelValue.phone" label="เบอร์โทรศัพท์" placeholder="กรอกเบอร์โทรศัพท์" />
29
- <InputPhone v-for="(item, index) in modelValue.extraPhones" :key="index" :name="`extraPhone-${index}`"
28
+ <InputTextField name="phone" v-model="modelValue.phone" label="เบอร์โทรศัพท์" placeholder="กรอกเบอร์โทรศัพท์" />
29
+ <InputTextField v-for="(item, index) in modelValue.extraPhones" :key="index" :name="`extraPhone-${index}`"
30
30
  label="เบอร์โทรศัพท์" placeholder="กรอกเบอร์โทรศัพท์" v-model="modelValue.extraPhones[index]" />
31
31
  <Button variant="text" color="primary" class="w-[145px]" @click="modelValue.extraPhones.push('')">
32
32
  <Icon name="lucide:plus" />
@@ -22,8 +22,7 @@ let marker = null;
22
22
  let L = null;
23
23
  let drawDebounceTimer = null;
24
24
  const geoFeatureCache = /* @__PURE__ */ new Map();
25
- const config = useRuntimeConfig();
26
- const appBaseURL = config.app.baseURL.endsWith("/") ? config.app.baseURL.slice(0, -1) : config.app.baseURL;
25
+ let appBaseURL = "";
27
26
  const normalizeCode = (id) => String(id);
28
27
  const getProvinceCode = (provinceId, amphurId) => provinceId ? normalizeCode(provinceId) : amphurId ? normalizeCode(amphurId).slice(0, 2) : "";
29
28
  const getDistrictCode = (amphurId, tambonId) => amphurId ? normalizeCode(amphurId) : tambonId ? normalizeCode(tambonId).slice(0, 4) : "";
@@ -58,6 +57,13 @@ const findFeature = (geoJson, key, value) => {
58
57
  ) ?? null;
59
58
  };
60
59
  onMounted(async () => {
60
+ try {
61
+ const config = useRuntimeConfig();
62
+ const baseURL = config?.app?.baseURL ?? "";
63
+ appBaseURL = baseURL.endsWith("/") ? baseURL.slice(0, -1) : baseURL;
64
+ } catch {
65
+ appBaseURL = "";
66
+ }
61
67
  const leafletModule = await import("leaflet");
62
68
  L = leafletModule.default ?? leafletModule;
63
69
  if (mapContainer.value) {
@@ -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.284.0",
3
+ "version": "1.286.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",