@agnos-ui/core 0.4.0-next.1 → 0.4.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/{alert-C-V64Qcs.cjs → alert-CEFbEgvG.cjs} +1 -1
- package/{alert-8ilqhLst.js → alert-DdGuK__c.js} +1 -1
- package/{common-BCEqowKw.js → common-CO5b5G_J.js} +1 -3
- package/{common-Kb96q7i4.cjs → common-nxv_hKNE.cjs} +0 -2
- package/components/accordion/accordion.d.ts +35 -1
- package/components/alert/common.d.ts +31 -3
- package/components/alert/index.cjs +1 -6
- package/components/alert/index.d.ts +0 -1
- package/components/alert/index.js +3 -8
- package/components/commonProps.d.ts +2 -0
- package/components/modal/modal.d.ts +101 -2
- package/components/pagination/pagination.d.ts +114 -47
- package/components/progressbar/progressbar.d.ts +15 -4
- package/components/rating/rating.d.ts +74 -1
- package/components/select/index.cjs +1 -2
- package/components/select/index.js +1 -2
- package/components/select/select.d.ts +103 -3
- package/components/slider/slider.d.ts +72 -1
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -1
- package/components/toast/toast.d.ts +7 -2
- package/index.cjs +5 -9
- package/index.d.ts +1 -1
- package/index.js +37 -41
- package/package.json +1 -1
- package/{select-CBlGWfZY.cjs → select-BBiF-m3N.cjs} +0 -1
- package/{select-BS0mh7Qk.js → select-jUrt_lSn.js} +0 -1
- package/services/extendWidget.d.ts +1 -1
- package/services/navManager.d.ts +8 -8
- package/{toast-DN0HwUbs.js → toast-BzxextBQ.js} +1 -1
- package/{toast-DR8b0zpm.cjs → toast-Dy3ck2cM.cjs} +1 -1
- package/types.d.ts +1 -1
- package/utils/stores.d.ts +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getCommonAlertDefaultConfig,
|
|
1
|
+
import { g as getCommonAlertDefaultConfig, c as createCommonAlert } from "./common-CO5b5G_J.js";
|
|
2
2
|
function getAlertDefaultConfig() {
|
|
3
3
|
return { ...getCommonAlertDefaultConfig() };
|
|
4
4
|
}
|
|
@@ -69,7 +69,5 @@ function createCommonAlert(config) {
|
|
|
69
69
|
actions: {}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
exports.commonAlertConfigValidator = commonAlertConfigValidator;
|
|
73
72
|
exports.createCommonAlert = createCommonAlert;
|
|
74
|
-
exports.defaultCommonAlertConfig = defaultCommonAlertConfig;
|
|
75
73
|
exports.getCommonAlertDefaultConfig = getCommonAlertDefaultConfig;
|
|
@@ -4,55 +4,88 @@ import type { WidgetsCommonPropsAndState } from '../commonProps';
|
|
|
4
4
|
export interface AccordionProps extends WidgetsCommonPropsAndState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, only one accordion-item at the time can stay open.
|
|
7
|
+
*
|
|
8
|
+
* @defaultValue `false`
|
|
7
9
|
*/
|
|
8
10
|
closeOthers: boolean;
|
|
9
11
|
/**
|
|
10
12
|
* An event fired when an item is shown.
|
|
11
13
|
*
|
|
12
14
|
* Event payload is the id of the item.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue
|
|
17
|
+
* ```ts
|
|
18
|
+
* () => {}
|
|
19
|
+
* ```
|
|
13
20
|
*/
|
|
14
21
|
onItemShown: (itemId: string) => void;
|
|
15
22
|
/**
|
|
16
23
|
* An event fired when an item is hidden.
|
|
17
24
|
*
|
|
18
25
|
* Event payload is the id of the item.
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue
|
|
28
|
+
* ```ts
|
|
29
|
+
* () => {}
|
|
30
|
+
* ```
|
|
19
31
|
*/
|
|
20
32
|
onItemHidden: (itemId: string) => void;
|
|
21
33
|
/**
|
|
22
34
|
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue `true`
|
|
23
37
|
*/
|
|
24
38
|
itemDestroyOnHide: boolean;
|
|
25
39
|
/**
|
|
26
40
|
* If `true`, accordion-item will be animated.
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue `true`
|
|
27
43
|
*/
|
|
28
44
|
itemAnimated: boolean;
|
|
29
45
|
/**
|
|
30
46
|
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue
|
|
49
|
+
* ```ts
|
|
50
|
+
* async () => {}
|
|
51
|
+
* ```
|
|
31
52
|
*/
|
|
32
53
|
itemTransition: TransitionFn;
|
|
33
54
|
/**
|
|
34
55
|
* CSS classes to add on the accordion-item DOM element.
|
|
56
|
+
*
|
|
57
|
+
* @defaultValue `''`
|
|
35
58
|
*/
|
|
36
59
|
itemClassName: string;
|
|
37
60
|
/**
|
|
38
61
|
* CSS classes to add on the accordion-item header DOM element.
|
|
62
|
+
*
|
|
63
|
+
* @defaultValue `''`
|
|
39
64
|
*/
|
|
40
65
|
itemHeaderClassName: string;
|
|
41
66
|
/**
|
|
42
67
|
* CSS classes to add on the accordion-item toggle button DOM element.
|
|
68
|
+
*
|
|
69
|
+
* @defaultValue `''`
|
|
43
70
|
*/
|
|
44
71
|
itemButtonClassName: string;
|
|
45
72
|
/**
|
|
46
73
|
* CSS classes to add on the accordion-item body container DOM element.
|
|
47
74
|
* The accordion-item body container is the DOM element on what the itemTransition is applied.
|
|
75
|
+
*
|
|
76
|
+
* @defaultValue `''`
|
|
48
77
|
*/
|
|
49
78
|
itemBodyContainerClassName: string;
|
|
50
79
|
/**
|
|
51
80
|
* CSS classes to add on the accordion-item body DOM element.
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue `''`
|
|
52
83
|
*/
|
|
53
84
|
itemBodyClassName: string;
|
|
54
85
|
/**
|
|
55
86
|
* The html tag to use for the accordion-item-header.
|
|
87
|
+
*
|
|
88
|
+
* @defaultValue `''`
|
|
56
89
|
*/
|
|
57
90
|
itemHeadingTag: string;
|
|
58
91
|
}
|
|
@@ -161,7 +194,7 @@ export interface AccordionItemDirectives {
|
|
|
161
194
|
*/
|
|
162
195
|
itemDirective: Directive;
|
|
163
196
|
}
|
|
164
|
-
|
|
197
|
+
interface AccordionItemCommonPropsAndState extends WidgetsCommonPropsAndState {
|
|
165
198
|
/**
|
|
166
199
|
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
167
200
|
*/
|
|
@@ -260,3 +293,4 @@ export declare function factoryCreateAccordion(itemFactory?: WidgetFactory<Accor
|
|
|
260
293
|
* @returns a new accordion widget instance
|
|
261
294
|
*/
|
|
262
295
|
export declare const createAccordion: WidgetFactory<AccordionWidget>;
|
|
296
|
+
export {};
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import type { TransitionFn } from '../../services/transitions/baseTransitions';
|
|
2
2
|
import type { WidgetsCommonPropsAndState } from '../commonProps';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Directive, PropsConfig, Widget } from '../../types';
|
|
4
4
|
export interface CommonAlertCommonPropsAndState extends WidgetsCommonPropsAndState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, alert can be dismissed by the user.
|
|
7
7
|
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
8
|
+
*
|
|
9
|
+
* @defaultValue `true`
|
|
8
10
|
*/
|
|
9
11
|
dismissible: boolean;
|
|
10
12
|
/**
|
|
11
13
|
* If `true` the alert is visible to the user
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue `true`
|
|
12
16
|
*/
|
|
13
17
|
visible: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* Accessibility close button label
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue `'Close'`
|
|
16
22
|
*/
|
|
17
23
|
ariaCloseButtonLabel: string;
|
|
18
24
|
}
|
|
@@ -25,20 +31,40 @@ export interface CommonAlertState extends CommonAlertCommonPropsAndState {
|
|
|
25
31
|
export interface CommonAlertProps extends CommonAlertCommonPropsAndState {
|
|
26
32
|
/**
|
|
27
33
|
* Callback called when the alert visibility changed.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue
|
|
36
|
+
* ```ts
|
|
37
|
+
* () => {}
|
|
38
|
+
* ```
|
|
28
39
|
*/
|
|
29
40
|
onVisibleChange: (visible: boolean) => void;
|
|
30
41
|
/**
|
|
31
42
|
* Callback called when the alert is hidden.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue
|
|
45
|
+
* ```ts
|
|
46
|
+
* () => {}
|
|
47
|
+
* ```
|
|
32
48
|
*/
|
|
33
49
|
onHidden: () => void;
|
|
34
50
|
/**
|
|
35
51
|
* Callback called when the alert is shown.
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue
|
|
54
|
+
* ```ts
|
|
55
|
+
* () => {}
|
|
56
|
+
* ```
|
|
36
57
|
*/
|
|
37
58
|
onShown: () => void;
|
|
38
59
|
/**
|
|
39
60
|
* The transition function will be executed when the alert is displayed or hidden.
|
|
40
61
|
*
|
|
41
62
|
* Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue
|
|
65
|
+
* ```ts
|
|
66
|
+
* async () => {}
|
|
67
|
+
* ```
|
|
42
68
|
*/
|
|
43
69
|
transition: TransitionFn;
|
|
44
70
|
/**
|
|
@@ -46,6 +72,8 @@ export interface CommonAlertProps extends CommonAlertCommonPropsAndState {
|
|
|
46
72
|
*
|
|
47
73
|
* Animation is triggered when the `.open()` function is called
|
|
48
74
|
* or the visible prop is changed
|
|
75
|
+
*
|
|
76
|
+
* @defaultValue `false`
|
|
49
77
|
*/
|
|
50
78
|
animatedOnInit: boolean;
|
|
51
79
|
/**
|
|
@@ -53,6 +81,8 @@ export interface CommonAlertProps extends CommonAlertCommonPropsAndState {
|
|
|
53
81
|
*
|
|
54
82
|
* Animation is triggered when clicked on the close button (×),
|
|
55
83
|
* via the `.close()` function or the visible prop is changed
|
|
84
|
+
*
|
|
85
|
+
* @defaultValue `true`
|
|
56
86
|
*/
|
|
57
87
|
animated: boolean;
|
|
58
88
|
}
|
|
@@ -73,13 +103,11 @@ export interface CommonAlertDirectives {
|
|
|
73
103
|
transitionDirective: Directive;
|
|
74
104
|
}
|
|
75
105
|
export type CommonAlertWidget = Widget<CommonAlertProps, CommonAlertState, CommonAlertApi, object, CommonAlertDirectives>;
|
|
76
|
-
export declare const defaultCommonAlertConfig: CommonAlertProps;
|
|
77
106
|
/**
|
|
78
107
|
* Retrieve a shallow copy of the default alert config
|
|
79
108
|
* @returns the default alert config
|
|
80
109
|
*/
|
|
81
110
|
export declare function getCommonAlertDefaultConfig(): CommonAlertProps;
|
|
82
|
-
export declare const commonAlertConfigValidator: ConfigValidator<CommonAlertProps>;
|
|
83
111
|
/**
|
|
84
112
|
* Create an AlertWidget with given config props
|
|
85
113
|
* @param config - an optional alert config
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const alert = require("../../alert-C-V64Qcs.cjs");
|
|
5
|
-
exports.commonAlertConfigValidator = common.commonAlertConfigValidator;
|
|
6
|
-
exports.createCommonAlert = common.createCommonAlert;
|
|
7
|
-
exports.defaultCommonAlertConfig = common.defaultCommonAlertConfig;
|
|
8
|
-
exports.getCommonAlertDefaultConfig = common.getCommonAlertDefaultConfig;
|
|
3
|
+
const alert = require("../../alert-CEFbEgvG.cjs");
|
|
9
4
|
exports.createAlert = alert.createAlert;
|
|
10
5
|
exports.getAlertDefaultConfig = alert.getAlertDefaultConfig;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { c,
|
|
2
|
-
import { c as c2, g as g2 } from "../../alert-8ilqhLst.js";
|
|
1
|
+
import { c, g } from "../../alert-DdGuK__c.js";
|
|
3
2
|
export {
|
|
4
|
-
c as
|
|
5
|
-
|
|
6
|
-
a as createCommonAlert,
|
|
7
|
-
d as defaultCommonAlertConfig,
|
|
8
|
-
g2 as getAlertDefaultConfig,
|
|
9
|
-
g as getCommonAlertDefaultConfig
|
|
3
|
+
c as createAlert,
|
|
4
|
+
g as getAlertDefaultConfig
|
|
10
5
|
};
|
|
@@ -14,27 +14,40 @@ export declare const modalCloseButtonClick: unique symbol;
|
|
|
14
14
|
/**
|
|
15
15
|
* Properties of the modal widget that are also in the state of the modal.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
interface ModalCommonPropsAndState extends WidgetsCommonPropsAndState {
|
|
18
18
|
/**
|
|
19
19
|
* Value of the aria-label attribute to put on the close button.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue `'Close'`
|
|
20
22
|
*/
|
|
21
23
|
ariaCloseButtonLabel: string;
|
|
22
24
|
/**
|
|
23
25
|
* Classes to add on the backdrop DOM element.
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue `''`
|
|
24
28
|
*/
|
|
25
29
|
backdropClass: string;
|
|
26
30
|
/**
|
|
27
31
|
* Whether to display the close button.
|
|
32
|
+
*
|
|
33
|
+
* @defaultValue `true`
|
|
28
34
|
*/
|
|
29
35
|
closeButton: boolean;
|
|
30
36
|
/**
|
|
31
37
|
* Which element should contain the modal and backdrop DOM elements.
|
|
32
38
|
* If it is not null, the modal and backdrop DOM elements are moved to the specified container.
|
|
33
39
|
* Otherwise, they stay where the widget is located.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue
|
|
42
|
+
* ```ts
|
|
43
|
+
* typeof window !== 'undefined' ? document.body : null
|
|
44
|
+
* ```
|
|
34
45
|
*/
|
|
35
46
|
container: HTMLElement | null;
|
|
36
47
|
/**
|
|
37
48
|
* Whether the modal should be visible when the transition is completed.
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue `false`
|
|
38
51
|
*/
|
|
39
52
|
visible: boolean;
|
|
40
53
|
}
|
|
@@ -60,22 +73,38 @@ export interface ModalBeforeCloseEvent {
|
|
|
60
73
|
export interface ModalProps extends ModalCommonPropsAndState {
|
|
61
74
|
/**
|
|
62
75
|
* Whether the modal and its backdrop (if present) should be animated when shown or hidden.
|
|
76
|
+
*
|
|
77
|
+
* @defaultValue `true`
|
|
63
78
|
*/
|
|
64
79
|
animated: boolean;
|
|
65
80
|
/**
|
|
66
81
|
* Whether a backdrop should be created behind the modal.
|
|
82
|
+
*
|
|
83
|
+
* @defaultValue `true`
|
|
67
84
|
*/
|
|
68
85
|
backdrop: boolean;
|
|
69
86
|
/**
|
|
70
87
|
* The transition to use for the backdrop behind the modal (if present).
|
|
88
|
+
*
|
|
89
|
+
* @defaultValue
|
|
90
|
+
* ```ts
|
|
91
|
+
* async () => {}
|
|
92
|
+
* ```
|
|
71
93
|
*/
|
|
72
94
|
backdropTransition: TransitionFn;
|
|
73
95
|
/**
|
|
74
96
|
* Whether the modal should be closed when clicking on the viewport outside the modal.
|
|
97
|
+
*
|
|
98
|
+
* @defaultValue `true`
|
|
75
99
|
*/
|
|
76
100
|
closeOnOutsideClick: boolean;
|
|
77
101
|
/**
|
|
78
102
|
* The transition to use for the modal.
|
|
103
|
+
*
|
|
104
|
+
* @defaultValue
|
|
105
|
+
* ```ts
|
|
106
|
+
* async () => {}
|
|
107
|
+
* ```
|
|
79
108
|
*/
|
|
80
109
|
modalTransition: TransitionFn;
|
|
81
110
|
/**
|
|
@@ -83,20 +112,40 @@ export interface ModalProps extends ModalCommonPropsAndState {
|
|
|
83
112
|
*
|
|
84
113
|
* @param event - event giving access to the argument given to the {@link ModalApi.close|close} method and allowing
|
|
85
114
|
* to cancel the close process.
|
|
115
|
+
*
|
|
116
|
+
* @defaultValue
|
|
117
|
+
* ```ts
|
|
118
|
+
* () => {}
|
|
119
|
+
* ```
|
|
86
120
|
*/
|
|
87
121
|
onBeforeClose: (event: ModalBeforeCloseEvent) => void;
|
|
88
122
|
/**
|
|
89
123
|
* Event to be triggered when the visible property changes.
|
|
90
124
|
*
|
|
91
125
|
* @param visible - new value of the visible propery
|
|
126
|
+
*
|
|
127
|
+
* @defaultValue
|
|
128
|
+
* ```ts
|
|
129
|
+
* () => {}
|
|
130
|
+
* ```
|
|
92
131
|
*/
|
|
93
132
|
onVisibleChange: (visible: boolean) => void;
|
|
94
133
|
/**
|
|
95
134
|
* Event to be triggered when the transition is completed and the modal is not visible.
|
|
135
|
+
*
|
|
136
|
+
* @defaultValue
|
|
137
|
+
* ```ts
|
|
138
|
+
* () => {}
|
|
139
|
+
* ```
|
|
96
140
|
*/
|
|
97
141
|
onHidden: () => void;
|
|
98
142
|
/**
|
|
99
143
|
* Event to be triggered when the transition is completed and the modal is visible.
|
|
144
|
+
*
|
|
145
|
+
* @defaultValue
|
|
146
|
+
* ```ts
|
|
147
|
+
* () => {}
|
|
148
|
+
* ```
|
|
100
149
|
*/
|
|
101
150
|
onShown: () => void;
|
|
102
151
|
}
|
|
@@ -106,7 +155,7 @@ export interface ModalProps extends ModalCommonPropsAndState {
|
|
|
106
155
|
export interface ModalState extends ModalCommonPropsAndState {
|
|
107
156
|
/**
|
|
108
157
|
* Whether the backdrop is fully hidden. This can be true either because {@link ModalProps.backdrop|backdrop} is false or
|
|
109
|
-
* because {@link
|
|
158
|
+
* because {@link ModalProps.visible|visible} is false and there is no current transition.
|
|
110
159
|
*/
|
|
111
160
|
backdropHidden: boolean;
|
|
112
161
|
/**
|
|
@@ -202,22 +251,38 @@ export type ModalWidget = Widget<ModalProps, ModalState, ModalApi, ModalActions,
|
|
|
202
251
|
export declare function getModalDefaultConfig(): {
|
|
203
252
|
/**
|
|
204
253
|
* Whether the modal and its backdrop (if present) should be animated when shown or hidden.
|
|
254
|
+
*
|
|
255
|
+
* @defaultValue `true`
|
|
205
256
|
*/
|
|
206
257
|
animated: boolean;
|
|
207
258
|
/**
|
|
208
259
|
* Whether a backdrop should be created behind the modal.
|
|
260
|
+
*
|
|
261
|
+
* @defaultValue `true`
|
|
209
262
|
*/
|
|
210
263
|
backdrop: boolean;
|
|
211
264
|
/**
|
|
212
265
|
* The transition to use for the backdrop behind the modal (if present).
|
|
266
|
+
*
|
|
267
|
+
* @defaultValue
|
|
268
|
+
* ```ts
|
|
269
|
+
* async () => {}
|
|
270
|
+
* ```
|
|
213
271
|
*/
|
|
214
272
|
backdropTransition: TransitionFn;
|
|
215
273
|
/**
|
|
216
274
|
* Whether the modal should be closed when clicking on the viewport outside the modal.
|
|
275
|
+
*
|
|
276
|
+
* @defaultValue `true`
|
|
217
277
|
*/
|
|
218
278
|
closeOnOutsideClick: boolean;
|
|
219
279
|
/**
|
|
220
280
|
* The transition to use for the modal.
|
|
281
|
+
*
|
|
282
|
+
* @defaultValue
|
|
283
|
+
* ```ts
|
|
284
|
+
* async () => {}
|
|
285
|
+
* ```
|
|
221
286
|
*/
|
|
222
287
|
modalTransition: TransitionFn;
|
|
223
288
|
/**
|
|
@@ -225,42 +290,75 @@ export declare function getModalDefaultConfig(): {
|
|
|
225
290
|
*
|
|
226
291
|
* @param event - event giving access to the argument given to the {@link ModalApi.close|close} method and allowing
|
|
227
292
|
* to cancel the close process.
|
|
293
|
+
*
|
|
294
|
+
* @defaultValue
|
|
295
|
+
* ```ts
|
|
296
|
+
* () => {}
|
|
297
|
+
* ```
|
|
228
298
|
*/
|
|
229
299
|
onBeforeClose: (event: ModalBeforeCloseEvent) => void;
|
|
230
300
|
/**
|
|
231
301
|
* Event to be triggered when the visible property changes.
|
|
232
302
|
*
|
|
233
303
|
* @param visible - new value of the visible propery
|
|
304
|
+
*
|
|
305
|
+
* @defaultValue
|
|
306
|
+
* ```ts
|
|
307
|
+
* () => {}
|
|
308
|
+
* ```
|
|
234
309
|
*/
|
|
235
310
|
onVisibleChange: (visible: boolean) => void;
|
|
236
311
|
/**
|
|
237
312
|
* Event to be triggered when the transition is completed and the modal is not visible.
|
|
313
|
+
*
|
|
314
|
+
* @defaultValue
|
|
315
|
+
* ```ts
|
|
316
|
+
* () => {}
|
|
317
|
+
* ```
|
|
238
318
|
*/
|
|
239
319
|
onHidden: () => void;
|
|
240
320
|
/**
|
|
241
321
|
* Event to be triggered when the transition is completed and the modal is visible.
|
|
322
|
+
*
|
|
323
|
+
* @defaultValue
|
|
324
|
+
* ```ts
|
|
325
|
+
* () => {}
|
|
326
|
+
* ```
|
|
242
327
|
*/
|
|
243
328
|
onShown: () => void;
|
|
244
329
|
/**
|
|
245
330
|
* Value of the aria-label attribute to put on the close button.
|
|
331
|
+
*
|
|
332
|
+
* @defaultValue `'Close'`
|
|
246
333
|
*/
|
|
247
334
|
ariaCloseButtonLabel: string;
|
|
248
335
|
/**
|
|
249
336
|
* Classes to add on the backdrop DOM element.
|
|
337
|
+
*
|
|
338
|
+
* @defaultValue `''`
|
|
250
339
|
*/
|
|
251
340
|
backdropClass: string;
|
|
252
341
|
/**
|
|
253
342
|
* Whether to display the close button.
|
|
343
|
+
*
|
|
344
|
+
* @defaultValue `true`
|
|
254
345
|
*/
|
|
255
346
|
closeButton: boolean;
|
|
256
347
|
/**
|
|
257
348
|
* Which element should contain the modal and backdrop DOM elements.
|
|
258
349
|
* If it is not null, the modal and backdrop DOM elements are moved to the specified container.
|
|
259
350
|
* Otherwise, they stay where the widget is located.
|
|
351
|
+
*
|
|
352
|
+
* @defaultValue
|
|
353
|
+
* ```ts
|
|
354
|
+
* typeof window !== 'undefined' ? document.body : null
|
|
355
|
+
* ```
|
|
260
356
|
*/
|
|
261
357
|
container: HTMLElement | null;
|
|
262
358
|
/**
|
|
263
359
|
* Whether the modal should be visible when the transition is completed.
|
|
360
|
+
*
|
|
361
|
+
* @defaultValue `false`
|
|
264
362
|
*/
|
|
265
363
|
visible: boolean;
|
|
266
364
|
className: string;
|
|
@@ -271,3 +369,4 @@ export declare function getModalDefaultConfig(): {
|
|
|
271
369
|
* @returns a new modal widget instance
|
|
272
370
|
*/
|
|
273
371
|
export declare function createModal(config$?: PropsConfig<ModalProps>): ModalWidget;
|
|
372
|
+
export {};
|