@fy-/fws-vue 2.0.44 → 2.0.47
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/components/ui/DefaultInput.vue +17 -18
- package/package.json +1 -1
|
@@ -205,7 +205,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
207
|
-->
|
|
208
|
-
<div v-if="type == 'textrea-grow'">
|
|
208
|
+
<div v-if="type == 'textrea-grow'" class="group relative">
|
|
209
209
|
<label
|
|
210
210
|
:for="id"
|
|
211
211
|
v-if="label"
|
|
@@ -213,24 +213,33 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
213
213
|
>{{ label }}
|
|
214
214
|
</label>
|
|
215
215
|
<div class="grow-wrap">
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
type="textarea"
|
|
216
|
+
<!-- @vue-skip -->
|
|
217
|
+
<textarea
|
|
219
218
|
:id="id"
|
|
220
219
|
:name="id"
|
|
220
|
+
ref="inputRef"
|
|
221
221
|
:class="{
|
|
222
222
|
error: checkErrors,
|
|
223
223
|
}"
|
|
224
224
|
v-model="model"
|
|
225
|
-
:autocomplete="autocomplete"
|
|
226
225
|
:placeholder="placeholder"
|
|
227
226
|
:disabled="disabled"
|
|
228
227
|
:aria-describedby="help ? `${id}-help` : id"
|
|
229
|
-
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 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"
|
|
230
228
|
:required="req"
|
|
231
229
|
@focus="handleFocus"
|
|
232
230
|
@blur="handleBlur"
|
|
233
|
-
|
|
231
|
+
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"
|
|
232
|
+
></textarea>
|
|
233
|
+
</div>
|
|
234
|
+
<div
|
|
235
|
+
v-if="dpOptions.counterMax && model"
|
|
236
|
+
class="-mt-2 text-sm text-fv-neutral-500 dark:text-fv-neutral-400"
|
|
237
|
+
:class="{
|
|
238
|
+
'text-red-500 dark:text-red-300':
|
|
239
|
+
model?.toString().length > dpOptions.counterMax,
|
|
240
|
+
}"
|
|
241
|
+
>
|
|
242
|
+
{{ model?.toString().length }} / {{ dpOptions.counterMax }}
|
|
234
243
|
</div>
|
|
235
244
|
</div>
|
|
236
245
|
<div v-if="type == 'chips' || type == 'tags'">
|
|
@@ -251,7 +260,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
251
260
|
:max-lenght-per-tag="maxLengthPerTag"
|
|
252
261
|
/>
|
|
253
262
|
</div>
|
|
254
|
-
<div class="group relative" v-else-if="type == 'textarea
|
|
263
|
+
<div class="group relative" v-else-if="type == 'textarea'">
|
|
255
264
|
<label
|
|
256
265
|
v-if="label"
|
|
257
266
|
:for="id"
|
|
@@ -275,16 +284,6 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
275
284
|
@blur="handleBlur"
|
|
276
285
|
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"
|
|
277
286
|
></textarea>
|
|
278
|
-
<div
|
|
279
|
-
v-if="dpOptions.counterMax && model"
|
|
280
|
-
class="-mt-2 text-sm text-fv-neutral-500 dark:text-fv-neutral-400"
|
|
281
|
-
:class="{
|
|
282
|
-
'text-red-500 dark:text-red-300':
|
|
283
|
-
model?.toString().length > dpOptions.counterMax,
|
|
284
|
-
}"
|
|
285
|
-
>
|
|
286
|
-
{{ model?.toString().length }} / {{ dpOptions.counterMax }}
|
|
287
|
-
</div>
|
|
288
287
|
</div>
|
|
289
288
|
<div class="relative" v-else-if="type == 'select'">
|
|
290
289
|
<label
|