@fy-/fws-vue 0.1.6 → 0.1.8
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.
|
@@ -9,6 +9,7 @@ import Calendar from "primevue/calendar";
|
|
|
9
9
|
import Password from "primevue/password";
|
|
10
10
|
import Checkbox from "primevue/checkbox";
|
|
11
11
|
import Dropdown from "primevue/dropdown";
|
|
12
|
+
import Chips from "primevue/chips";
|
|
12
13
|
|
|
13
14
|
type modelValueType = string | number | string[] | number[] | undefined;
|
|
14
15
|
|
|
@@ -101,6 +102,7 @@ defineExpose({ focus, getInputRef });
|
|
|
101
102
|
'textarea',
|
|
102
103
|
'select',
|
|
103
104
|
'phone',
|
|
105
|
+
'chips',
|
|
104
106
|
].includes(type)
|
|
105
107
|
"
|
|
106
108
|
>
|
|
@@ -162,7 +164,7 @@ defineExpose({ focus, getInputRef });
|
|
|
162
164
|
showTime
|
|
163
165
|
hourFormat="24"
|
|
164
166
|
showIcon
|
|
165
|
-
|
|
167
|
+
dateFormat="dd/mm/yy"
|
|
166
168
|
:aria-describedby="
|
|
167
169
|
help && !['checkbox', 'radio'].includes(type)
|
|
168
170
|
? `${id}-help`
|
|
@@ -200,19 +202,26 @@ defineExpose({ focus, getInputRef });
|
|
|
200
202
|
"
|
|
201
203
|
v-if="type == 'select'"
|
|
202
204
|
/>
|
|
205
|
+
<!-- @vue-skip -->
|
|
206
|
+
<Chips
|
|
207
|
+
:id="id"
|
|
208
|
+
v-model="model"
|
|
209
|
+
:placeholder="placeholder"
|
|
210
|
+
separator=","
|
|
211
|
+
:invalid="checkErrors ? true : false"
|
|
212
|
+
:aria-describedby="
|
|
213
|
+
help && !['checkbox', 'radio'].includes(type)
|
|
214
|
+
? `${id}-help`
|
|
215
|
+
: undefined
|
|
216
|
+
"
|
|
217
|
+
v-if="type == 'chips'"
|
|
218
|
+
/>
|
|
203
219
|
<small
|
|
204
220
|
:id="`${id}-help`"
|
|
205
221
|
v-if="help && !['checkbox', 'radio'].includes(type)"
|
|
206
222
|
>
|
|
207
223
|
{{ help }}
|
|
208
224
|
</small>
|
|
209
|
-
<small
|
|
210
|
-
:id="`${id}-error`"
|
|
211
|
-
v-if="checkErrors"
|
|
212
|
-
class="mt-2 text-xs fws-error-text"
|
|
213
|
-
>
|
|
214
|
-
{{ checkErrors }}
|
|
215
|
-
</small>
|
|
216
225
|
</div>
|
|
217
226
|
</template>
|
|
218
227
|
|
|
@@ -237,7 +246,7 @@ defineExpose({ focus, getInputRef });
|
|
|
237
246
|
</label>
|
|
238
247
|
</div>
|
|
239
248
|
</template>
|
|
240
|
-
<p v-if="checkErrors" class="mt-
|
|
249
|
+
<p v-if="checkErrors" class="mt-0.5 text-xs fws-error-text">
|
|
241
250
|
{{ checkErrors }}
|
|
242
251
|
</p>
|
|
243
252
|
|