@fy-/fws-vue 2.0.42 → 2.0.44
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.
|
@@ -205,7 +205,34 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
207
|
-->
|
|
208
|
-
|
|
208
|
+
<div v-if="type == 'textrea-grow'">
|
|
209
|
+
<label
|
|
210
|
+
:for="id"
|
|
211
|
+
v-if="label"
|
|
212
|
+
class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
|
|
213
|
+
>{{ label }}
|
|
214
|
+
</label>
|
|
215
|
+
<div class="grow-wrap">
|
|
216
|
+
<input
|
|
217
|
+
ref="inputRef"
|
|
218
|
+
type="textarea"
|
|
219
|
+
:id="id"
|
|
220
|
+
:name="id"
|
|
221
|
+
:class="{
|
|
222
|
+
error: checkErrors,
|
|
223
|
+
}"
|
|
224
|
+
v-model="model"
|
|
225
|
+
:autocomplete="autocomplete"
|
|
226
|
+
:placeholder="placeholder"
|
|
227
|
+
:disabled="disabled"
|
|
228
|
+
: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
|
+
:required="req"
|
|
231
|
+
@focus="handleFocus"
|
|
232
|
+
@blur="handleBlur"
|
|
233
|
+
/>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
209
236
|
<div v-if="type == 'chips' || type == 'tags'">
|
|
210
237
|
<label
|
|
211
238
|
:for="id"
|
|
@@ -224,7 +251,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
224
251
|
:max-lenght-per-tag="maxLengthPerTag"
|
|
225
252
|
/>
|
|
226
253
|
</div>
|
|
227
|
-
<div class="group relative" v-else-if="type == 'textarea'">
|
|
254
|
+
<div class="group relative" v-else-if="type == 'textarea-g'">
|
|
228
255
|
<label
|
|
229
256
|
v-if="label"
|
|
230
257
|
:for="id"
|
|
@@ -248,6 +275,16 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
248
275
|
@blur="handleBlur"
|
|
249
276
|
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"
|
|
250
277
|
></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>
|
|
251
288
|
</div>
|
|
252
289
|
<div class="relative" v-else-if="type == 'select'">
|
|
253
290
|
<label
|