@fy-/fws-vue 0.3.1 → 0.3.2
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.
|
@@ -122,6 +122,8 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
122
122
|
'search',
|
|
123
123
|
'url',
|
|
124
124
|
'mask',
|
|
125
|
+
'date',
|
|
126
|
+
'datetime',
|
|
125
127
|
].includes(type)
|
|
126
128
|
"
|
|
127
129
|
class="relative"
|
|
@@ -171,50 +173,6 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
171
173
|
class="block p-2.5 w-full text-sm text-fv-neutral-900 bg-fv-neutral-50 rounded-lg border border-fv-neutral-300 focus:ring-fv-primary-500 focus:border-fv-primary-500 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"
|
|
172
174
|
></textarea>
|
|
173
175
|
</div>
|
|
174
|
-
<div
|
|
175
|
-
class="relative max-w-sm"
|
|
176
|
-
v-else-if="type == 'datetime' || type == 'date'"
|
|
177
|
-
>
|
|
178
|
-
<div
|
|
179
|
-
class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none"
|
|
180
|
-
>
|
|
181
|
-
<svg
|
|
182
|
-
class="w-4 h-4 text-fv-neutral-500 dark:text-fv-neutral-400"
|
|
183
|
-
aria-hidden="true"
|
|
184
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
185
|
-
fill="currentColor"
|
|
186
|
-
viewBox="0 0 20 20"
|
|
187
|
-
>
|
|
188
|
-
<path
|
|
189
|
-
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"
|
|
190
|
-
/>
|
|
191
|
-
</svg>
|
|
192
|
-
</div>
|
|
193
|
-
<label
|
|
194
|
-
:for="id"
|
|
195
|
-
v-if="label"
|
|
196
|
-
class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
|
|
197
|
-
>{{ label }}</label
|
|
198
|
-
>
|
|
199
|
-
|
|
200
|
-
<input
|
|
201
|
-
datepicker
|
|
202
|
-
ref="inputRef"
|
|
203
|
-
type="text"
|
|
204
|
-
:class="{
|
|
205
|
-
error: checkErrors,
|
|
206
|
-
}"
|
|
207
|
-
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"
|
|
208
|
-
:id="id"
|
|
209
|
-
:name="id"
|
|
210
|
-
:disabled="disabled"
|
|
211
|
-
:aria-describedby="help ? `${id}-help` : id"
|
|
212
|
-
:required="req"
|
|
213
|
-
@focus="handleFocus"
|
|
214
|
-
@blur="handleBlur"
|
|
215
|
-
:placeholder="placeholder"
|
|
216
|
-
/>
|
|
217
|
-
</div>
|
|
218
176
|
<div class="relative" v-else-if="type == 'select'">
|
|
219
177
|
<label
|
|
220
178
|
:for="id"
|