@rebilly/revel 6.30.29 → 6.30.30
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/CHANGELOG.md +1 -6
- package/dist/components/r-radio/r-radio.vue.d.ts +60 -102
- package/dist/revel.mjs +620 -681
- package/dist/revel.umd.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
## [6.30.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **revel:** use onBeforeUnmount instead of onBeforeMount to fix a serious bug ([#6720](https://github.com/Rebilly/rebilly/issues/6720)) ([d8176e8](https://github.com/Rebilly/rebilly/commit/d8176e84b69b0c780d5be6027e98d20286747886))
|
|
1
|
+
## [6.30.30](https://github.com/Rebilly/rebilly/compare/revel-v6.30.29...revel-v6.30.30) (2024-07-23)
|
|
@@ -1,132 +1,90 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
1
|
import type { ValidationState } from '../../types';
|
|
3
|
-
|
|
2
|
+
type Value = string | number | boolean | Array<string | number | boolean>;
|
|
3
|
+
interface Props {
|
|
4
4
|
/**
|
|
5
5
|
* Label for radio input
|
|
6
6
|
*/
|
|
7
|
-
label
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
7
|
+
label?: string;
|
|
11
8
|
/**
|
|
12
9
|
* Radio input id attribute. Defaults to nano ID
|
|
13
10
|
*/
|
|
14
|
-
id
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: () => string;
|
|
17
|
-
};
|
|
11
|
+
id?: string;
|
|
18
12
|
/**
|
|
19
13
|
* Radio input name attribute. Defaults to nano ID.
|
|
20
14
|
*/
|
|
21
|
-
name
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: () => string;
|
|
24
|
-
};
|
|
15
|
+
name?: string;
|
|
25
16
|
/**
|
|
26
17
|
* Caption to appear below the radio input
|
|
27
18
|
*/
|
|
28
|
-
caption
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
default: null;
|
|
31
|
-
};
|
|
19
|
+
caption?: string;
|
|
32
20
|
/**
|
|
33
21
|
* Radio input value
|
|
34
22
|
*/
|
|
35
|
-
value:
|
|
36
|
-
type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
23
|
+
value: Value;
|
|
39
24
|
/**
|
|
40
|
-
* Disable radio
|
|
25
|
+
* Disable radio input
|
|
41
26
|
*/
|
|
42
|
-
disabled
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
27
|
+
disabled?: boolean;
|
|
46
28
|
/**
|
|
47
|
-
* Vuelidate
|
|
29
|
+
* Pass validation state to the radio input (Vuelidate)
|
|
48
30
|
*/
|
|
49
|
-
validate
|
|
50
|
-
type: PropType<ValidationState>;
|
|
51
|
-
default: null;
|
|
52
|
-
};
|
|
53
|
-
modelValue: {
|
|
54
|
-
type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
55
|
-
default: null;
|
|
56
|
-
};
|
|
57
|
-
}, unknown, unknown, {
|
|
58
|
-
classes(): {
|
|
59
|
-
'r-is-error': boolean;
|
|
60
|
-
};
|
|
61
|
-
labelClasses(): {
|
|
62
|
-
'r-is-disabled': boolean;
|
|
63
|
-
'r-is-checked': boolean;
|
|
64
|
-
};
|
|
65
|
-
isInvalid(): boolean;
|
|
66
|
-
isChecked(): boolean;
|
|
67
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
validate?: Nullable<ValidationState>;
|
|
68
32
|
/**
|
|
69
|
-
*
|
|
33
|
+
* Radio input model value
|
|
70
34
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
default: null;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Radio input value
|
|
98
|
-
*/
|
|
99
|
-
value: {
|
|
100
|
-
type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
101
|
-
required: true;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Disable radio
|
|
105
|
-
*/
|
|
106
|
-
disabled: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
default: boolean;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Vuelidate object
|
|
112
|
-
*/
|
|
113
|
-
validate: {
|
|
114
|
-
type: PropType<ValidationState>;
|
|
115
|
-
default: null;
|
|
116
|
-
};
|
|
117
|
-
modelValue: {
|
|
118
|
-
type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
119
|
-
default: null;
|
|
120
|
-
};
|
|
121
|
-
}>> & {
|
|
122
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
modelValue: Nullable<Value>;
|
|
36
|
+
}
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
38
|
+
label: string;
|
|
39
|
+
id: () => string;
|
|
40
|
+
name: () => string;
|
|
41
|
+
caption: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
validate: null;
|
|
44
|
+
modelValue: null;
|
|
45
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
"update:modelValue": (value: Value) => void;
|
|
47
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
48
|
+
label: string;
|
|
49
|
+
id: () => string;
|
|
50
|
+
name: () => string;
|
|
51
|
+
caption: string;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
validate: null;
|
|
54
|
+
modelValue: null;
|
|
55
|
+
}>>> & {
|
|
56
|
+
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
|
123
57
|
}, {
|
|
124
58
|
id: string;
|
|
125
59
|
caption: string;
|
|
126
60
|
label: string;
|
|
127
61
|
disabled: boolean;
|
|
128
62
|
name: string;
|
|
129
|
-
modelValue:
|
|
130
|
-
validate: ValidationState
|
|
63
|
+
modelValue: Nullable<Value>;
|
|
64
|
+
validate: Nullable<ValidationState>;
|
|
65
|
+
}>, {
|
|
66
|
+
label?(_: {}): any;
|
|
131
67
|
}>;
|
|
132
68
|
export default _default;
|
|
69
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
70
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
72
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
73
|
+
} : {
|
|
74
|
+
type: import('vue').PropType<T[K]>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type __VLS_WithDefaults<P, D> = {
|
|
79
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
80
|
+
default: D[K];
|
|
81
|
+
}> : P[K];
|
|
82
|
+
};
|
|
83
|
+
type __VLS_Prettify<T> = {
|
|
84
|
+
[K in keyof T]: T[K];
|
|
85
|
+
} & {};
|
|
86
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|