@webitel/ui-sdk 25.8.51 → 25.8.53
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/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1849 -1802
- package/dist/ui-sdk.umd.cjs +37 -37
- package/package.json +1 -1
- package/src/components/wt-label/wt-label.vue +2 -2
- package/src/components/wt-tree/wt-tree.vue +3 -0
- package/src/components/wt-tree-line/wt-tree-line.vue +15 -0
- package/types/components/wt-tree/wt-tree.vue.d.ts +2 -0
- package/types/components/wt-tree-line/wt-tree-line.vue.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.8.
|
|
3
|
+
"version": "25.8.53",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
>
|
|
10
10
|
<slot />
|
|
11
11
|
|
|
12
|
-
<
|
|
12
|
+
<wt-hint v-if="hint">{{ hint }} </wt-hint>
|
|
13
13
|
</label>
|
|
14
14
|
</template>
|
|
15
15
|
|
|
@@ -34,8 +34,8 @@ defineProps<{
|
|
|
34
34
|
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: center;
|
|
37
|
-
transition: var(--transition);
|
|
38
37
|
cursor: text;
|
|
38
|
+
transition: var(--transition);
|
|
39
39
|
color: var(--wt-label-color);
|
|
40
40
|
//padding: var(--wt-label-padding);
|
|
41
41
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:data="item"
|
|
14
14
|
:children-prop="childrenProp"
|
|
15
15
|
:multiple="multiple"
|
|
16
|
+
:allow-parent="allowParent"
|
|
16
17
|
@update:model-value="emit('update:modelValue', $event)"
|
|
17
18
|
/>
|
|
18
19
|
</div>
|
|
@@ -77,10 +78,12 @@ const props = withDefaults(
|
|
|
77
78
|
*/
|
|
78
79
|
childrenProp?: string;
|
|
79
80
|
multiple?: boolean;
|
|
81
|
+
allowParent?: boolean
|
|
80
82
|
}>(),
|
|
81
83
|
{
|
|
82
84
|
childrenProp: 'children',
|
|
83
85
|
mode: WtTreeMode.Tree,
|
|
86
|
+
allowParent: false,
|
|
84
87
|
},
|
|
85
88
|
);
|
|
86
89
|
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
:nested-icons="displayIcons"
|
|
48
48
|
:last-child="index === data[childrenProp].length - 1"
|
|
49
49
|
:multiple="multiple"
|
|
50
|
+
:allow-parent="allowParent"
|
|
50
51
|
@open-parent="onOpenParent"
|
|
51
52
|
@update:model-value="emit('update:modelValue', $event)"
|
|
52
53
|
/>
|
|
@@ -74,6 +75,7 @@ const props = withDefaults(
|
|
|
74
75
|
nestedIcons?: WtTreeNestedIcons[];
|
|
75
76
|
nextElement?: boolean;
|
|
76
77
|
multiple?: boolean;
|
|
78
|
+
allowParent?: boolean;
|
|
77
79
|
/**
|
|
78
80
|
* 'It's a key in data object, which contains field what display searched elements. By this field, table will be opened to elements with this field value. '
|
|
79
81
|
*/
|
|
@@ -86,6 +88,7 @@ const props = withDefaults(
|
|
|
86
88
|
nextElement: false,
|
|
87
89
|
selectedParent: false,
|
|
88
90
|
multiple: false,
|
|
91
|
+
allowParent: false,
|
|
89
92
|
searchedProp: 'searched',
|
|
90
93
|
},
|
|
91
94
|
);
|
|
@@ -174,6 +177,18 @@ const selectElement = () => {
|
|
|
174
177
|
return;
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
if (props.allowParent) {
|
|
181
|
+
return emit(
|
|
182
|
+
'update:modelValue',
|
|
183
|
+
props.itemData ? props.data[props.itemData] : props.data,
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (props.data[props.childrenProp]?.length) {
|
|
188
|
+
collapsed.value = !collapsed.value;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
|
|
177
192
|
emit(
|
|
178
193
|
'update:modelValue',
|
|
179
194
|
props.itemData ? props.data[props.itemData] : props.data,
|
|
@@ -25,6 +25,7 @@ type __VLS_Props = {
|
|
|
25
25
|
*/
|
|
26
26
|
childrenProp?: string;
|
|
27
27
|
multiple?: boolean;
|
|
28
|
+
allowParent?: boolean;
|
|
28
29
|
};
|
|
29
30
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
31
|
select: (data: any) => any;
|
|
@@ -35,5 +36,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
35
36
|
}>, {
|
|
36
37
|
mode: string;
|
|
37
38
|
childrenProp: string;
|
|
39
|
+
allowParent: boolean;
|
|
38
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
41
|
export default _default;
|
|
@@ -11,6 +11,7 @@ type __VLS_Props = {
|
|
|
11
11
|
nestedIcons?: WtTreeNestedIcons[];
|
|
12
12
|
nextElement?: boolean;
|
|
13
13
|
multiple?: boolean;
|
|
14
|
+
allowParent?: boolean;
|
|
14
15
|
/**
|
|
15
16
|
* 'It's a key in data object, which contains field what display searched elements. By this field, table will be opened to elements with this field value. '
|
|
16
17
|
*/
|
|
@@ -29,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
29
30
|
nestedLevel: number;
|
|
30
31
|
selectedParent: boolean;
|
|
31
32
|
nextElement: boolean;
|
|
33
|
+
allowParent: boolean;
|
|
32
34
|
searchedProp: string;
|
|
33
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
36
|
export default _default;
|