@fy-/fws-vue 1.3.3 → 1.3.4

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.
@@ -1,6 +1,13 @@
1
1
  <script setup lang="ts">
2
2
  import { LinkIcon } from "@heroicons/vue/24/solid";
3
- import { computed, onMounted, onUnmounted, ref, toRef } from "vue";
3
+ import {
4
+ computed,
5
+ defineAsyncComponent,
6
+ onMounted,
7
+ onUnmounted,
8
+ ref,
9
+ toRef,
10
+ } from "vue";
4
11
  import type { ErrorObject } from "@vuelidate/core";
5
12
  import { useTranslation } from "../../composables/translations";
6
13
  import DefaultTagInput from "./DefaultTagInput.vue";
@@ -96,13 +103,12 @@ const modelCheckbox = computed({
96
103
  });
97
104
  defineExpose({ focus, blur, getInputRef });
98
105
  const dpComponent = ref<any | null>(null);
99
- onMounted(async () => {
100
- if (!import.meta.env.SSR) {
101
- // Dynamically import VueDatePicker only on the client side
102
- const { default: VueDatePicker } = await import("@vuepic/vue-datepicker");
103
- dpComponent.value = VueDatePicker;
104
- }
105
- });
106
+
107
+ if (!import.meta.env.SSR) {
108
+ dpComponent.value = defineAsyncComponent(
109
+ () => import("@vuepic/vue-datepicker"),
110
+ );
111
+ }
106
112
  </script>
107
113
  <template>
108
114
  <div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {