@fy-/fws-vue 1.3.3 → 1.3.5
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 {
|
|
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";
|
|
@@ -95,14 +102,6 @@ const modelCheckbox = computed({
|
|
|
95
102
|
},
|
|
96
103
|
});
|
|
97
104
|
defineExpose({ focus, blur, getInputRef });
|
|
98
|
-
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
105
|
</script>
|
|
107
106
|
<template>
|
|
108
107
|
<div>
|
|
@@ -168,41 +167,7 @@ onMounted(async () => {
|
|
|
168
167
|
@blur="handleBlur"
|
|
169
168
|
/>
|
|
170
169
|
</div>
|
|
171
|
-
|
|
172
|
-
<label
|
|
173
|
-
:for="id"
|
|
174
|
-
v-if="label || placeholder"
|
|
175
|
-
class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
|
|
176
|
-
>{{ label ? label : placeholder }}
|
|
177
|
-
</label>
|
|
178
|
-
<div class="relative max-w-xl">
|
|
179
|
-
<div
|
|
180
|
-
class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none"
|
|
181
|
-
>
|
|
182
|
-
<svg
|
|
183
|
-
class="w-4 h-4 text-fv-neutral-500 dark:text-fv-neutral-400"
|
|
184
|
-
aria-hidden="true"
|
|
185
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
186
|
-
fill="currentColor"
|
|
187
|
-
viewBox="0 0 20 20"
|
|
188
|
-
>
|
|
189
|
-
<path
|
|
190
|
-
d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"
|
|
191
|
-
/>
|
|
192
|
-
</svg>
|
|
193
|
-
</div>
|
|
194
|
-
<component
|
|
195
|
-
:is="dpComponent"
|
|
196
|
-
v-if="dpComponent"
|
|
197
|
-
v-model="model"
|
|
198
|
-
auto-apply
|
|
199
|
-
:placeholder="placeholder"
|
|
200
|
-
year-first
|
|
201
|
-
dark
|
|
202
|
-
:enable-time-picker="false"
|
|
203
|
-
></component>
|
|
204
|
-
</div>
|
|
205
|
-
</div>
|
|
170
|
+
|
|
206
171
|
<div v-if="type == 'chips' || type == 'tags'">
|
|
207
172
|
<label
|
|
208
173
|
:for="id"
|