@fy-/fws-vue 0.9.5 → 0.9.6
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.
|
@@ -156,6 +156,43 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
156
156
|
@blur="handleBlur"
|
|
157
157
|
/>
|
|
158
158
|
</div>
|
|
159
|
+
<div v-if="type == 'datepicker'">
|
|
160
|
+
<label
|
|
161
|
+
:for="id"
|
|
162
|
+
v-if="label || placeholder"
|
|
163
|
+
class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
|
|
164
|
+
>{{ label ? label : placeholder }}
|
|
165
|
+
</label>
|
|
166
|
+
<div class="relative max-w-sm">
|
|
167
|
+
<div
|
|
168
|
+
class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none"
|
|
169
|
+
>
|
|
170
|
+
<svg
|
|
171
|
+
class="w-4 h-4 text-fv-neutral-500 dark:text-fv-neutral-400"
|
|
172
|
+
aria-hidden="true"
|
|
173
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
174
|
+
fill="currentColor"
|
|
175
|
+
viewBox="0 0 20 20"
|
|
176
|
+
>
|
|
177
|
+
<path
|
|
178
|
+
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"
|
|
179
|
+
/>
|
|
180
|
+
</svg>
|
|
181
|
+
</div>
|
|
182
|
+
<input
|
|
183
|
+
datepicker
|
|
184
|
+
type="text"
|
|
185
|
+
class="bg-fv-neutral-50 border border-fv-neutral-300 text-fv-neutral-900 text-sm rounded-lg focus:ring-fv-primary-500 focus:border-fv-primary-500 block w-full ps-10 p-2.5 dark:bg-fv-neutral-700 dark:border-fv-neutral-600 dark:placeholder-fv-neutral-400 dark:text-white dark:focus:ring-fv-primary-500 dark:focus:border-fv-primary-500"
|
|
186
|
+
:placeholder="placeholder"
|
|
187
|
+
:disabled="disabled"
|
|
188
|
+
:aria-describedby="help ? `${id}-help` : id"
|
|
189
|
+
:required="req"
|
|
190
|
+
@focus="handleFocus"
|
|
191
|
+
@blur="handleBlur"
|
|
192
|
+
v-model="model"
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
159
196
|
<div v-if="type == 'chips' || type == 'tags'">
|
|
160
197
|
<label
|
|
161
198
|
:for="id"
|