@webitel/ui-sdk 25.6.37 → 25.8.0
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/types/components/wt-input/wt-input.vue.d.ts +100 -41
- package/dist/types/components/wt-search-bar/wt-search-bar.vue.d.ts +3 -3
- package/dist/types/components/wt-select/wt-select.vue.d.ts +23 -1
- package/dist/types/mixins/validationMixin/regle/useRegleValidation.d.ts +10 -0
- package/dist/types/mixins/validationMixin/useValidation.d.ts +11 -0
- package/dist/types/mixins/validationMixin/vuelidate/useVuelidateValidation.d.ts +16 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2658 -2667
- package/dist/ui-sdk.umd.cjs +43 -43
- package/package.json +2 -1
- package/src/api/clients/caseSources/caseSources.ts +8 -3
- package/src/components/wt-datepicker/wt-datepicker.vue +1 -1
- package/src/components/wt-input/wt-input.vue +44 -101
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +1 -1
- package/src/components/wt-select/mixins/multiselectMixin.js +1 -1
- package/src/components/wt-select/wt-select.vue +29 -0
- package/src/components/wt-tags-input/wt-tags-input.vue +2 -0
- package/src/locale/en/en.js +8 -1
- package/src/mixins/validationMixin/regle/useRegleValidation.ts +29 -0
- package/src/mixins/validationMixin/useValidation.ts +59 -0
- package/src/mixins/validationMixin/{useValidation.js → vuelidate/useVuelidateValidation.ts} +13 -5
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +1 -1
|
@@ -1,53 +1,112 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { RegleFieldStatus } from '@regle/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
modelValue?: string | number;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
hasShowPassword?: boolean;
|
|
12
|
+
numberMin?: number;
|
|
13
|
+
numberMax?: number;
|
|
14
|
+
labelProps?: Record<string, unknown>;
|
|
15
|
+
preventTrim?: boolean;
|
|
16
|
+
v?: Record<string, unknown>;
|
|
17
|
+
regleValidation?: RegleFieldStatus<string>;
|
|
18
|
+
customValidators?: unknown[];
|
|
19
|
+
};
|
|
20
|
+
declare const isValidation: import("vue").ComputedRef<boolean>, invalid: import("vue").ComputedRef<boolean>, validationText: import("vue").ComputedRef<string>;
|
|
21
|
+
declare const inputType: import("vue").Ref<string, string>;
|
|
22
|
+
declare const AfterWrapper: import("vue").Ref<any, any>;
|
|
23
|
+
declare const WtInput: import("vue").Ref<any, any>;
|
|
24
|
+
declare const isPasswordVisible: import("vue").Ref<boolean, boolean>;
|
|
25
|
+
declare const inputValue: import("vue").ComputedRef<string | number>;
|
|
26
|
+
declare const hasLabel: import("vue").ComputedRef<boolean>;
|
|
27
|
+
declare const requiredLabel: import("vue").ComputedRef<string>;
|
|
28
|
+
declare const isPassword: import("vue").ComputedRef<boolean>;
|
|
29
|
+
declare const showPasswordIcon: import("vue").ComputedRef<"eye--closed" | "eye--opened">;
|
|
30
|
+
declare function inputHandler(event: any): void;
|
|
31
|
+
declare function switchVisibilityPassword(): void;
|
|
32
|
+
declare function focus(): void;
|
|
33
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
34
|
+
declare var __VLS_5: {
|
|
35
|
+
label: string;
|
|
36
|
+
}, __VLS_7: {}, __VLS_9: {
|
|
37
|
+
isPasswordVisible: boolean;
|
|
38
|
+
switchVisibilityPassword: typeof switchVisibilityPassword;
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
41
|
+
label?: (props: typeof __VLS_5) => any;
|
|
42
|
+
} & {
|
|
43
|
+
'after-input'?: (props: typeof __VLS_7) => any;
|
|
44
|
+
} & {
|
|
45
|
+
'show-password'?: (props: typeof __VLS_9) => any;
|
|
46
|
+
}>;
|
|
47
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
48
|
+
isValidation: typeof isValidation;
|
|
49
|
+
invalid: typeof invalid;
|
|
50
|
+
validationText: typeof validationText;
|
|
51
|
+
inputType: typeof inputType;
|
|
52
|
+
AfterWrapper: typeof AfterWrapper;
|
|
53
|
+
WtInput: typeof WtInput;
|
|
54
|
+
isPasswordVisible: typeof isPasswordVisible;
|
|
55
|
+
inputValue: typeof inputValue;
|
|
56
|
+
hasLabel: typeof hasLabel;
|
|
57
|
+
requiredLabel: typeof requiredLabel;
|
|
58
|
+
isPassword: typeof isPassword;
|
|
59
|
+
showPasswordIcon: typeof showPasswordIcon;
|
|
60
|
+
inputHandler: typeof inputHandler;
|
|
61
|
+
switchVisibilityPassword: typeof switchVisibilityPassword;
|
|
62
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
input: (...args: any[]) => void;
|
|
64
|
+
"update:modelValue": (...args: any[]) => void;
|
|
65
|
+
keyup: (...args: any[]) => void;
|
|
66
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
+
onInput?: (...args: any[]) => any;
|
|
68
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
69
|
+
onKeyup?: (...args: any[]) => any;
|
|
70
|
+
}>, {
|
|
71
|
+
name: string;
|
|
72
|
+
type: string;
|
|
73
|
+
required: boolean;
|
|
74
|
+
label: string;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
v: Record<string, unknown>;
|
|
77
|
+
customValidators: unknown[];
|
|
78
|
+
regleValidation: RegleFieldStatus<string>;
|
|
79
|
+
hasShowPassword: boolean;
|
|
80
|
+
numberMin: number;
|
|
81
|
+
preventTrim: boolean;
|
|
82
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
7
84
|
focus: typeof focus;
|
|
8
|
-
|
|
85
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
input: (...args: any[]) => void;
|
|
87
|
+
"update:modelValue": (...args: any[]) => void;
|
|
88
|
+
keyup: (...args: any[]) => void;
|
|
89
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
90
|
+
onInput?: (...args: any[]) => any;
|
|
91
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
92
|
+
onKeyup?: (...args: any[]) => any;
|
|
93
|
+
}>, {
|
|
9
94
|
name: string;
|
|
10
95
|
type: string;
|
|
11
96
|
required: boolean;
|
|
12
97
|
label: string;
|
|
13
98
|
disabled: boolean;
|
|
99
|
+
v: Record<string, unknown>;
|
|
14
100
|
customValidators: unknown[];
|
|
101
|
+
regleValidation: RegleFieldStatus<string>;
|
|
15
102
|
hasShowPassword: boolean;
|
|
16
103
|
numberMin: number;
|
|
17
104
|
preventTrim: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$props: {
|
|
25
|
-
readonly name?: string;
|
|
26
|
-
readonly type?: string;
|
|
27
|
-
readonly required?: boolean;
|
|
28
|
-
readonly label?: string;
|
|
29
|
-
readonly disabled?: boolean;
|
|
30
|
-
readonly customValidators?: unknown[];
|
|
31
|
-
readonly hasShowPassword?: boolean;
|
|
32
|
-
readonly numberMin?: number;
|
|
33
|
-
readonly preventTrim?: boolean;
|
|
34
|
-
readonly value?: string | number;
|
|
35
|
-
readonly v?: Record<string, any>;
|
|
36
|
-
readonly modelValue?: string | number;
|
|
37
|
-
readonly labelProps?: Record<string, any>;
|
|
38
|
-
readonly placeholder?: string;
|
|
39
|
-
readonly numberMax?: number;
|
|
105
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
106
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
107
|
+
export default _default;
|
|
108
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
109
|
+
new (): {
|
|
110
|
+
$slots: S;
|
|
40
111
|
};
|
|
41
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
-
type __VLS_Slots = {
|
|
43
|
-
label?: (props: {
|
|
44
|
-
label: string;
|
|
45
|
-
}) => any;
|
|
46
|
-
'after-input'?: (props: {}) => any;
|
|
47
|
-
'show-password'?: (props: {
|
|
48
|
-
isPasswordVisible: boolean;
|
|
49
|
-
switchVisibilityPassword: typeof switchVisibilityPassword;
|
|
50
|
-
}) => any;
|
|
51
112
|
};
|
|
52
|
-
declare function focus(): void;
|
|
53
|
-
declare function switchVisibilityPassword(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const invalid:
|
|
1
|
+
declare const invalid: import("vue").ComputedRef<boolean>;
|
|
2
2
|
declare const invalidColorProvider: import("vue").ComputedRef<"error" | "default">;
|
|
3
3
|
declare function handleInput(value: any): void;
|
|
4
4
|
declare function handleKeyup(event: any): void;
|
|
@@ -7,10 +7,10 @@ declare function updateSearchMode({ option }: {
|
|
|
7
7
|
}): void;
|
|
8
8
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
9
|
declare var __VLS_1: {
|
|
10
|
-
invalid:
|
|
10
|
+
invalid: boolean;
|
|
11
11
|
searchMode: string | Record<string, any>;
|
|
12
12
|
}, __VLS_39: {
|
|
13
|
-
invalid:
|
|
13
|
+
invalid: boolean;
|
|
14
14
|
};
|
|
15
15
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
16
16
|
'search-icon'?: (props: typeof __VLS_1) => any;
|
|
@@ -18,7 +18,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
18
|
default: boolean;
|
|
19
19
|
description: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
v: {
|
|
22
|
+
type: ObjectConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
regleValidation: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
}>, {
|
|
30
|
+
isValidation: import("vue").ComputedRef<boolean>;
|
|
31
|
+
invalid: import("vue").ComputedRef<boolean>;
|
|
32
|
+
validationText: import("vue").ComputedRef<string>;
|
|
33
|
+
}, {
|
|
22
34
|
isOpened: boolean;
|
|
23
35
|
items: any[];
|
|
24
36
|
}, {
|
|
@@ -51,6 +63,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
63
|
default: boolean;
|
|
52
64
|
description: string;
|
|
53
65
|
};
|
|
66
|
+
v: {
|
|
67
|
+
type: ObjectConstructor;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
regleValidation: {
|
|
71
|
+
type: ObjectConstructor;
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
54
74
|
}>> & Readonly<{
|
|
55
75
|
onInput?: (...args: any[]) => any;
|
|
56
76
|
onReset?: (...args: any[]) => any;
|
|
@@ -59,8 +79,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
79
|
"onSearch-change"?: (...args: any[]) => any;
|
|
60
80
|
"onCustom-value"?: (...args: any[]) => any;
|
|
61
81
|
}>, {
|
|
82
|
+
v: Record<string, any>;
|
|
62
83
|
clearable: boolean;
|
|
63
84
|
multiple: boolean;
|
|
85
|
+
regleValidation: Record<string, any>;
|
|
64
86
|
allowCustomValues: boolean;
|
|
65
87
|
handleCustomValuesAdditionManually: boolean;
|
|
66
88
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RegleFieldStatus } from '@regle/core';
|
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
export type UseFieldValidationParams = {
|
|
4
|
+
field: Ref<RegleFieldStatus<string>>;
|
|
5
|
+
};
|
|
6
|
+
export type UseFieldValidationReturn = {
|
|
7
|
+
invalid: ComputedRef<boolean | null>;
|
|
8
|
+
validationText?: ComputedRef<string>;
|
|
9
|
+
};
|
|
10
|
+
export declare const useFieldValidation: ({ field: fieldRef, }: UseFieldValidationParams) => UseFieldValidationReturn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseFieldValidationParams as UseRegleFieldValidationParams } from "./regle/useRegleValidation";
|
|
2
|
+
import { UseFieldValidationParams as UseVuelidateFieldValidationParams } from "./vuelidate/useVuelidateValidation";
|
|
3
|
+
type CompatVuelidateParams = {
|
|
4
|
+
v: UseVuelidateFieldValidationParams['field'];
|
|
5
|
+
};
|
|
6
|
+
export declare const useValidation: ({ v: vuelidateValidation, customValidators: inputCustomValidators, regleValidation, }: UseRegleFieldValidationParams | CompatVuelidateParams) => {
|
|
7
|
+
isValidation: import("vue").ComputedRef<boolean>;
|
|
8
|
+
invalid: import("vue").ComputedRef<boolean>;
|
|
9
|
+
validationText: import("vue").ComputedRef<string>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { Validation } from '@vuelidate/core';
|
|
3
|
+
export type UseFieldValidationParams = {
|
|
4
|
+
field: Ref<Validation>;
|
|
5
|
+
customValidators?: Array<object>;
|
|
6
|
+
};
|
|
7
|
+
export declare const useFieldValidation: ({ field: inputV, customValidators: inputCustomValidators, }: UseFieldValidationParams) => {
|
|
8
|
+
isValidation: import("vue").ComputedRef<boolean>;
|
|
9
|
+
invalid: import("vue").ComputedRef<boolean>;
|
|
10
|
+
validationText: import("vue").ComputedRef<string>;
|
|
11
|
+
};
|
|
12
|
+
export declare const useVuelidateFieldValidation: ({ field: inputV, customValidators: inputCustomValidators, }: UseFieldValidationParams) => {
|
|
13
|
+
isValidation: import("vue").ComputedRef<boolean>;
|
|
14
|
+
invalid: import("vue").ComputedRef<boolean>;
|
|
15
|
+
validationText: import("vue").ComputedRef<string>;
|
|
16
|
+
};
|