@rebilly/revel 6.30.27 → 6.30.28
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 -1
- package/dist/components/r-modal/r-modal.vue.d.ts +85 -112
- package/dist/revel.mjs +2273 -2341
- package/dist/revel.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [6.30.
|
|
1
|
+
## [6.30.28](https://github.com/Rebilly/rebilly/compare/revel-v6.30.27...revel-v6.30.28) (2024-07-19)
|
|
@@ -1,134 +1,107 @@
|
|
|
1
|
-
|
|
1
|
+
type ModalSize = 'large' | 'extra-large' | 'fluid';
|
|
2
|
+
interface Props {
|
|
2
3
|
/**
|
|
3
|
-
* Use this prop to conditionally show the modal from the outside
|
|
4
|
+
* Use this prop to conditionally show the modal from the outside
|
|
4
5
|
*/
|
|
5
|
-
show:
|
|
6
|
-
type: BooleanConstructor;
|
|
7
|
-
default: boolean;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* TBD
|
|
11
|
-
*/
|
|
12
|
-
title: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: null;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* TBD
|
|
18
|
-
*/
|
|
19
|
-
cancelLabel: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* large, extra-large or fluid
|
|
25
|
-
*/
|
|
26
|
-
size: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: null;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* TBD
|
|
32
|
-
*/
|
|
33
|
-
scroll: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* TBD
|
|
39
|
-
*/
|
|
40
|
-
scrollContent: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Transition duration
|
|
46
|
-
*/
|
|
47
|
-
duration: {
|
|
48
|
-
type: NumberConstructor;
|
|
49
|
-
default: number;
|
|
50
|
-
};
|
|
51
|
-
}, {
|
|
52
|
-
containerElement: import("vue").Ref<HTMLDivElement | null>;
|
|
53
|
-
}, unknown, {
|
|
54
|
-
transitionDuration(): {
|
|
55
|
-
'transition-duration': string;
|
|
56
|
-
};
|
|
57
|
-
classes(): Record<string, boolean>;
|
|
58
|
-
}, {
|
|
59
|
-
submit(data?: object): void;
|
|
60
|
-
close(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Assures that the modal container is focused Or at least
|
|
63
|
-
* an element inside it. So key events can be captured.
|
|
64
|
-
* The focus works on the DIV because tabindex attribute see:
|
|
65
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
|
|
66
|
-
*/
|
|
67
|
-
focus(): void;
|
|
68
|
-
enter(): void;
|
|
69
|
-
leave(): void;
|
|
70
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "submit" | "leave" | "enter")[], "close" | "submit" | "leave" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
-
/**
|
|
72
|
-
* Use this prop to conditionally show the modal from the outside (BREAKING CHANGE)
|
|
73
|
-
*/
|
|
74
|
-
show: {
|
|
75
|
-
type: BooleanConstructor;
|
|
76
|
-
default: boolean;
|
|
77
|
-
};
|
|
6
|
+
show: boolean;
|
|
78
7
|
/**
|
|
79
|
-
*
|
|
8
|
+
* Adds a title to the modal
|
|
80
9
|
*/
|
|
81
|
-
title
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
default: null;
|
|
84
|
-
};
|
|
10
|
+
title?: Nullable<string>;
|
|
85
11
|
/**
|
|
86
|
-
*
|
|
12
|
+
* Adds a label to the cancel button
|
|
87
13
|
*/
|
|
88
|
-
cancelLabel
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
default: string;
|
|
91
|
-
};
|
|
14
|
+
cancelLabel?: string;
|
|
92
15
|
/**
|
|
93
|
-
*
|
|
16
|
+
* Adds a size to the modal
|
|
94
17
|
*/
|
|
95
|
-
size
|
|
96
|
-
type: StringConstructor;
|
|
97
|
-
default: null;
|
|
98
|
-
};
|
|
18
|
+
size?: Nullable<ModalSize>;
|
|
99
19
|
/**
|
|
100
|
-
*
|
|
20
|
+
* Adds a scroll to the modal
|
|
101
21
|
*/
|
|
102
|
-
scroll
|
|
103
|
-
type: BooleanConstructor;
|
|
104
|
-
default: boolean;
|
|
105
|
-
};
|
|
22
|
+
scroll?: boolean;
|
|
106
23
|
/**
|
|
107
|
-
*
|
|
24
|
+
* Adds a scroll to the content of the modal. Only works when using it with the `content` slot
|
|
108
25
|
*/
|
|
109
|
-
scrollContent
|
|
110
|
-
type: BooleanConstructor;
|
|
111
|
-
default: boolean;
|
|
112
|
-
};
|
|
26
|
+
scrollContent?: boolean;
|
|
113
27
|
/**
|
|
114
|
-
*
|
|
28
|
+
* Adds a duration to the modal transition
|
|
115
29
|
*/
|
|
116
|
-
duration
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
30
|
+
duration?: number;
|
|
31
|
+
}
|
|
32
|
+
declare function submit(data?: object): void;
|
|
33
|
+
declare function close(): void;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
35
|
+
show: boolean;
|
|
36
|
+
title: null;
|
|
37
|
+
cancelLabel: string;
|
|
38
|
+
size: null;
|
|
39
|
+
scroll: boolean;
|
|
40
|
+
scrollContent: boolean;
|
|
41
|
+
duration: number;
|
|
42
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
close: () => void;
|
|
44
|
+
submit: (data?: object | undefined) => void;
|
|
45
|
+
leave: () => void;
|
|
46
|
+
enter: () => void;
|
|
47
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
48
|
+
show: boolean;
|
|
49
|
+
title: null;
|
|
50
|
+
cancelLabel: string;
|
|
51
|
+
size: null;
|
|
52
|
+
scroll: boolean;
|
|
53
|
+
scrollContent: boolean;
|
|
54
|
+
duration: number;
|
|
55
|
+
}>>> & {
|
|
56
|
+
onSubmit?: ((data?: object | undefined) => any) | undefined;
|
|
57
|
+
onClose?: (() => any) | undefined;
|
|
58
|
+
onLeave?: (() => any) | undefined;
|
|
59
|
+
onEnter?: (() => any) | undefined;
|
|
125
60
|
}, {
|
|
126
|
-
title: string
|
|
127
|
-
size:
|
|
61
|
+
title: Nullable<string>;
|
|
62
|
+
size: Nullable<ModalSize>;
|
|
128
63
|
scroll: boolean;
|
|
129
64
|
show: boolean;
|
|
130
65
|
duration: number;
|
|
131
66
|
cancelLabel: string;
|
|
132
67
|
scrollContent: boolean;
|
|
68
|
+
}>, {
|
|
69
|
+
"header-actions"?(_: {}): any;
|
|
70
|
+
contents?(_: {}): any;
|
|
71
|
+
content?(_: {}): any;
|
|
72
|
+
"left-actions"?(_: {
|
|
73
|
+
submit: typeof submit;
|
|
74
|
+
close: typeof close;
|
|
75
|
+
}): any;
|
|
76
|
+
"right-actions"?(_: {
|
|
77
|
+
submit: typeof submit;
|
|
78
|
+
close: typeof close;
|
|
79
|
+
}): any;
|
|
80
|
+
actions?(_: {
|
|
81
|
+
submit: typeof submit;
|
|
82
|
+
close: typeof close;
|
|
83
|
+
}): any;
|
|
133
84
|
}>;
|
|
134
85
|
export default _default;
|
|
86
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
87
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
88
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
89
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
90
|
+
} : {
|
|
91
|
+
type: import('vue').PropType<T[K]>;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
type __VLS_WithDefaults<P, D> = {
|
|
96
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
97
|
+
default: D[K];
|
|
98
|
+
}> : P[K];
|
|
99
|
+
};
|
|
100
|
+
type __VLS_Prettify<T> = {
|
|
101
|
+
[K in keyof T]: T[K];
|
|
102
|
+
} & {};
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|