@webitel/ui-datalist 1.1.24 → 1.1.26
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
4
4
|
"description": "Toolkit for building data lists in webitel ui system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && ( npm run lint:fix || true) && (npm run build:types || true) && npm run lint:package && npm run utils:publish",
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
v-model:model-value="model"
|
|
5
5
|
:field="props.filterConfig.field"
|
|
6
6
|
:required="false"
|
|
7
|
+
:v="v$.model"
|
|
7
8
|
>
|
|
8
9
|
<template #[WtTypeExtensionFieldKind.Boolean]="{ defaultProps }">
|
|
9
|
-
<has-option-filter-value-field v-model:model-value="model"
|
|
10
|
+
<has-option-filter-value-field v-bind="defaultProps" v-model:model-value="model"/>
|
|
10
11
|
</template>
|
|
11
12
|
<template #[WtTypeExtensionFieldKind.Select]="{ defaultProps }">
|
|
12
13
|
<wt-select
|
|
13
14
|
v-bind="defaultProps"
|
|
15
|
+
:v="v$.model"
|
|
14
16
|
:value="
|
|
15
17
|
model ??
|
|
16
18
|
[] /* so that component won't break when model is nullish at init */
|
|
@@ -18,6 +20,7 @@
|
|
|
18
20
|
:search-method="
|
|
19
21
|
(...params) => props.filterConfig.searchRecords(...params)
|
|
20
22
|
"
|
|
23
|
+
:required="false /* https://github.com/webitel/webitel-ui-sdk/pull/1359#discussion_r3180877255 */"
|
|
21
24
|
use-value-from-options-by-prop="id"
|
|
22
25
|
@input="model = $event"
|
|
23
26
|
/>
|
|
@@ -25,6 +28,7 @@
|
|
|
25
28
|
<template #[WtTypeExtensionFieldKind.Multiselect]="{ defaultProps }">
|
|
26
29
|
<wt-select
|
|
27
30
|
v-bind="defaultProps"
|
|
31
|
+
:v="v$.model"
|
|
28
32
|
:value="
|
|
29
33
|
model ??
|
|
30
34
|
[] /* so that component won't break when model is nullish at init */
|
|
@@ -32,6 +36,8 @@
|
|
|
32
36
|
:search-method="
|
|
33
37
|
(...params) => props.filterConfig.searchRecords(...params)
|
|
34
38
|
"
|
|
39
|
+
|
|
40
|
+
:required="false /* https://github.com/webitel/webitel-ui-sdk/pull/1359#discussion_r3180877255 */""
|
|
35
41
|
use-value-from-options-by-prop="id"
|
|
36
42
|
@input="model = $event"
|
|
37
43
|
/>
|
|
@@ -50,7 +56,8 @@ import {
|
|
|
50
56
|
WtTypeExtensionValueInput,
|
|
51
57
|
} from '@webitel/ui-sdk/components';
|
|
52
58
|
import { WtTypeExtensionFieldKind } from '@webitel/ui-sdk/enums'; // DO NOT REMOVE THIS IMPORT!! : Webstorm lies you, import is used for dynamic slot computation
|
|
53
|
-
import { computed, useAttrs, watch } from 'vue';
|
|
59
|
+
import { computed, onMounted, useAttrs, watch } from 'vue';
|
|
60
|
+
import { WebitelProtoDataTypeKind } from 'webitel-sdk';
|
|
54
61
|
|
|
55
62
|
import DateTimeOptionsFilterValueField from '../_shared/date-time-filter/date-time-options/date-time-options-filter-value-field.vue';
|
|
56
63
|
import HasOptionFilterValueField from '../_shared/has-options/has-option-filter-value-field.vue';
|
|
@@ -83,7 +90,7 @@ const v$ = useVuelidate(
|
|
|
83
90
|
$autoDirty: true,
|
|
84
91
|
},
|
|
85
92
|
);
|
|
86
|
-
|
|
93
|
+
v$.value.$touch();
|
|
87
94
|
watch(
|
|
88
95
|
() => v$.value.$invalid,
|
|
89
96
|
(invalid) => {
|