@voicenter-team/voicenter-ui-plus 0.3.3 → 0.3.4
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/library/super.mjs +217 -253
- package/library/super.mjs.map +1 -1
- package/library/super.umd.js +12 -12
- package/library/super.umd.js.map +1 -1
- package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +82 -89
- package/library/types/types/generic.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,96 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type ConfigGroupType = {
|
|
8
|
-
labelKey?: string;
|
|
9
|
-
valueKey?: string;
|
|
10
|
-
disabledKey?: string;
|
|
11
|
-
colorKey?: string;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: import("vue").DefineComponent<{
|
|
14
|
-
modelValue: {
|
|
15
|
-
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
16
|
-
default: undefined;
|
|
17
|
-
};
|
|
18
|
-
disabled: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
radios: {
|
|
23
|
-
type: PropType<RadioGroupRadiosItemType[]>;
|
|
24
|
-
default: () => never[];
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
1
|
+
import { IsObjectWithKeys } from '../../types/generic.types';
|
|
2
|
+
declare const _default: <Model extends string | number | boolean, Option>(__VLS_props: {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
modelValue: Model;
|
|
5
|
+
onChange?: ((payload: Model) => any) | undefined;
|
|
6
|
+
"onUpdate:modelValue"?: ((payload: Model) => any) | undefined;
|
|
27
7
|
config: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
bordered: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
}, unknown, unknown, {
|
|
40
|
-
groupModel: {
|
|
41
|
-
get(): string | number | boolean | undefined;
|
|
42
|
-
set(value: string | number | boolean): void;
|
|
43
|
-
};
|
|
44
|
-
valueKey(): string;
|
|
45
|
-
labelKey(): string;
|
|
46
|
-
colorKey(): string;
|
|
47
|
-
disabledKey(): string;
|
|
48
|
-
radiosMapped(): {
|
|
49
|
-
value: RadioItemValueType;
|
|
50
|
-
label: RadioItemValueType;
|
|
51
|
-
}[];
|
|
52
|
-
}, {
|
|
53
|
-
isDisabled(data: {
|
|
54
|
-
[key: string]: RadioItemValueType;
|
|
55
|
-
}): boolean;
|
|
56
|
-
getColor(data: {
|
|
57
|
-
[key: string]: RadioItemValueType;
|
|
58
|
-
}): VcInputColor;
|
|
59
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
-
modelValue: {
|
|
61
|
-
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
62
|
-
default: undefined;
|
|
8
|
+
labelKey?: IsObjectWithKeys<Option> | undefined;
|
|
9
|
+
valueKey?: IsObjectWithKeys<Option> | undefined;
|
|
10
|
+
disabledKey?: IsObjectWithKeys<Option> | undefined;
|
|
11
|
+
colorKey?: IsObjectWithKeys<Option> | undefined;
|
|
63
12
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
13
|
+
inline: boolean;
|
|
14
|
+
radios: Option[];
|
|
15
|
+
bordered: boolean;
|
|
16
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
17
|
+
slots: {
|
|
18
|
+
"radio-label"?(_: {
|
|
19
|
+
data: Record<"value" | "label", unknown> | (Record<"value" | "label", unknown> & Option);
|
|
20
|
+
}): any;
|
|
72
21
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
22
|
+
emit: {
|
|
23
|
+
(e: 'update:modelValue', payload: Model): void;
|
|
24
|
+
(e: 'change', payload: Model): void;
|
|
76
25
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
26
|
+
attrs: any;
|
|
27
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
28
|
+
props: {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
modelValue: Model;
|
|
31
|
+
onChange?: ((payload: Model) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((payload: Model) => any) | undefined;
|
|
33
|
+
config: {
|
|
34
|
+
labelKey?: IsObjectWithKeys<Option> | undefined;
|
|
35
|
+
valueKey?: IsObjectWithKeys<Option> | undefined;
|
|
36
|
+
disabledKey?: IsObjectWithKeys<Option> | undefined;
|
|
37
|
+
colorKey?: IsObjectWithKeys<Option> | undefined;
|
|
38
|
+
};
|
|
39
|
+
inline: boolean;
|
|
40
|
+
radios: Option[];
|
|
41
|
+
bordered: boolean;
|
|
42
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
43
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
44
|
+
attrs: any;
|
|
45
|
+
slots: {
|
|
46
|
+
"radio-label"?(_: {
|
|
47
|
+
data: Record<"value" | "label", unknown> | (Record<"value" | "label", unknown> & Option);
|
|
48
|
+
}): any;
|
|
80
49
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
50
|
+
emit: {
|
|
51
|
+
(e: 'update:modelValue', payload: Model): void;
|
|
52
|
+
(e: 'change', payload: Model): void;
|
|
84
53
|
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
54
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}> & {
|
|
57
|
+
__ctx?: {
|
|
58
|
+
props: {
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
modelValue: Model;
|
|
61
|
+
onChange?: ((payload: Model) => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: ((payload: Model) => any) | undefined;
|
|
63
|
+
config: {
|
|
64
|
+
labelKey?: IsObjectWithKeys<Option> | undefined;
|
|
65
|
+
valueKey?: IsObjectWithKeys<Option> | undefined;
|
|
66
|
+
disabledKey?: IsObjectWithKeys<Option> | undefined;
|
|
67
|
+
colorKey?: IsObjectWithKeys<Option> | undefined;
|
|
68
|
+
};
|
|
69
|
+
inline: boolean;
|
|
70
|
+
radios: Option[];
|
|
71
|
+
bordered: boolean;
|
|
72
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
73
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
74
|
+
attrs: any;
|
|
75
|
+
slots: {
|
|
76
|
+
"radio-label"?(_: {
|
|
77
|
+
data: Record<"value" | "label", unknown> | (Record<"value" | "label", unknown> & Option);
|
|
78
|
+
}): any;
|
|
79
|
+
};
|
|
80
|
+
emit: {
|
|
81
|
+
(e: 'update:modelValue', payload: Model): void;
|
|
82
|
+
(e: 'change', payload: Model): void;
|
|
83
|
+
};
|
|
84
|
+
} | undefined;
|
|
85
|
+
};
|
|
96
86
|
export default _default;
|
|
87
|
+
type __VLS_Prettify<T> = {
|
|
88
|
+
[K in keyof T]: T[K];
|
|
89
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IsObjectWithKeys<T> = T extends object ? keyof T : never;
|