@agnos-ui/svelte-bootstrap 0.4.0-next.1 → 0.4.1
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/components/accordion/Accordion.svelte.d.ts +1 -1
- package/components/accordion/Item.svelte.d.ts +1 -1
- package/components/accordion/accordion.d.ts +3 -6
- package/components/accordion/accordion.gen.d.ts +77 -5
- package/components/accordion/accordion.gen.js +32 -1
- package/components/accordion/accordion.js +1 -4
- package/components/alert/Alert.svelte.d.ts +1 -1
- package/components/alert/alert.d.ts +3 -5
- package/components/alert/alert.gen.d.ts +61 -7
- package/components/alert/alert.gen.js +14 -1
- package/components/alert/alert.js +1 -3
- package/components/modal/modal.d.ts +3 -6
- package/components/modal/modal.gen.d.ts +123 -23
- package/components/modal/modal.gen.js +26 -1
- package/components/modal/modal.js +1 -4
- package/components/pagination/Pagination.svelte.d.ts +1 -1
- package/components/pagination/pagination.d.ts +3 -5
- package/components/pagination/pagination.gen.d.ts +188 -18
- package/components/pagination/pagination.gen.js +14 -1
- package/components/pagination/pagination.js +1 -3
- package/components/progressbar/Progressbar.svelte.d.ts +1 -1
- package/components/progressbar/progressbar.d.ts +3 -5
- package/components/progressbar/progressbar.gen.d.ts +54 -1
- package/components/progressbar/progressbar.gen.js +14 -1
- package/components/progressbar/progressbar.js +1 -3
- package/components/rating/rating.d.ts +3 -5
- package/components/rating/rating.gen.d.ts +84 -1
- package/components/rating/rating.gen.js +14 -1
- package/components/rating/rating.js +1 -3
- package/components/select/select.d.ts +3 -5
- package/components/select/select.gen.d.ts +121 -1
- package/components/select/select.gen.js +14 -1
- package/components/select/select.js +1 -3
- package/components/slider/Slider.svelte.d.ts +1 -1
- package/components/slider/slider.d.ts +3 -5
- package/components/slider/slider.gen.d.ts +98 -3
- package/components/slider/slider.gen.js +14 -1
- package/components/slider/slider.js +1 -3
- package/components/toast/Toast.svelte.d.ts +1 -1
- package/components/toast/toast.d.ts +3 -5
- package/components/toast/toast.gen.d.ts +65 -7
- package/components/toast/toast.gen.js +14 -1
- package/components/toast/toast.js +1 -3
- package/config.d.ts +1 -1
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { AccordionApi, AccordionProps, AccordionSlots } from './accordion';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
api?: AccordionApi
|
|
5
|
+
api?: AccordionApi;
|
|
6
6
|
} & Partial<AccordionProps>;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import type { AccordionItemApi, AccordionItemProps, AccordionItemSlots } from './accordion';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
api?: AccordionItemApi
|
|
5
|
+
api?: AccordionItemApi;
|
|
6
6
|
} & Partial<AccordionItemProps>;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
4
|
-
export declare const createAccordion: WidgetFactory<AccordionWidget>;
|
|
5
|
-
export declare const getAccordionDefaultConfig: () => AccordionProps;
|
|
6
|
-
export declare const createAccordionItem: WidgetFactory<AccordionItemWidget>;
|
|
1
|
+
import type { WidgetPropsSlots } from '@agnos-ui/svelte-headless/types';
|
|
2
|
+
import type { AccordionApi, AccordionItemProps, AccordionProps } from './accordion.gen';
|
|
3
|
+
export * from './accordion.gen';
|
|
7
4
|
export interface AccordionSlots extends WidgetPropsSlots<AccordionProps> {
|
|
8
5
|
}
|
|
9
6
|
export interface AccordionItemSlots extends WidgetPropsSlots<AccordionItemProps> {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import type { WidgetSlotContext, SlotContent, Widget, PropsConfig, Directive } from '@agnos-ui/svelte-headless/types';
|
|
1
|
+
import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, ConfigValidator, PropsConfig, Directive } from '@agnos-ui/svelte-headless/types';
|
|
2
2
|
import type { TransitionFn } from '@agnos-ui/svelte-headless/services/transitions/baseTransitions';
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve a shallow copy of the default accordion config
|
|
5
|
+
* @returns the default accordion config
|
|
6
|
+
*/
|
|
7
|
+
declare const export_getAccordionDefaultConfig: () => AccordionProps;
|
|
8
|
+
export { export_getAccordionDefaultConfig as getAccordionDefaultConfig };
|
|
3
9
|
export type AccordionItemContext = WidgetSlotContext<AccordionItemWidget>;
|
|
4
10
|
export interface AccordionState {
|
|
5
11
|
/**
|
|
@@ -8,6 +14,8 @@ export interface AccordionState {
|
|
|
8
14
|
itemWidgets: AccordionItemWidget[];
|
|
9
15
|
/**
|
|
10
16
|
* CSS classes to be applied on the widget main container
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue `''`
|
|
11
19
|
*/
|
|
12
20
|
className: string;
|
|
13
21
|
/**
|
|
@@ -21,61 +29,96 @@ export interface AccordionState {
|
|
|
21
29
|
itemStructure: SlotContent<AccordionItemContext>;
|
|
22
30
|
}
|
|
23
31
|
export interface AccordionProps {
|
|
32
|
+
/**
|
|
33
|
+
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue
|
|
36
|
+
* ```ts
|
|
37
|
+
* collapseVerticalTransition
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
itemTransition: TransitionFn;
|
|
24
41
|
/**
|
|
25
42
|
* If `true`, only one accordion-item at the time can stay open.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue `false`
|
|
26
45
|
*/
|
|
27
46
|
closeOthers: boolean;
|
|
28
47
|
/**
|
|
29
48
|
* An event fired when an item is shown.
|
|
30
49
|
*
|
|
31
50
|
* Event payload is the id of the item.
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue
|
|
53
|
+
* ```ts
|
|
54
|
+
* () => {}
|
|
55
|
+
* ```
|
|
32
56
|
*/
|
|
33
57
|
onItemShown: (itemId: string) => void;
|
|
34
58
|
/**
|
|
35
59
|
* An event fired when an item is hidden.
|
|
36
60
|
*
|
|
37
61
|
* Event payload is the id of the item.
|
|
62
|
+
*
|
|
63
|
+
* @defaultValue
|
|
64
|
+
* ```ts
|
|
65
|
+
* () => {}
|
|
66
|
+
* ```
|
|
38
67
|
*/
|
|
39
68
|
onItemHidden: (itemId: string) => void;
|
|
40
69
|
/**
|
|
41
70
|
* 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.
|
|
71
|
+
*
|
|
72
|
+
* @defaultValue `true`
|
|
42
73
|
*/
|
|
43
74
|
itemDestroyOnHide: boolean;
|
|
44
75
|
/**
|
|
45
76
|
* If `true`, accordion-item will be animated.
|
|
77
|
+
*
|
|
78
|
+
* @defaultValue `true`
|
|
46
79
|
*/
|
|
47
80
|
itemAnimated: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
50
|
-
*/
|
|
51
|
-
itemTransition: TransitionFn;
|
|
52
81
|
/**
|
|
53
82
|
* CSS classes to add on the accordion-item DOM element.
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue `''`
|
|
54
85
|
*/
|
|
55
86
|
itemClassName: string;
|
|
56
87
|
/**
|
|
57
88
|
* CSS classes to add on the accordion-item header DOM element.
|
|
89
|
+
*
|
|
90
|
+
* @defaultValue `''`
|
|
58
91
|
*/
|
|
59
92
|
itemHeaderClassName: string;
|
|
60
93
|
/**
|
|
61
94
|
* CSS classes to add on the accordion-item toggle button DOM element.
|
|
95
|
+
*
|
|
96
|
+
* @defaultValue `''`
|
|
62
97
|
*/
|
|
63
98
|
itemButtonClassName: string;
|
|
64
99
|
/**
|
|
65
100
|
* CSS classes to add on the accordion-item body container DOM element.
|
|
66
101
|
* The accordion-item body container is the DOM element on what the itemTransition is applied.
|
|
102
|
+
*
|
|
103
|
+
* @defaultValue `''`
|
|
67
104
|
*/
|
|
68
105
|
itemBodyContainerClassName: string;
|
|
69
106
|
/**
|
|
70
107
|
* CSS classes to add on the accordion-item body DOM element.
|
|
108
|
+
*
|
|
109
|
+
* @defaultValue `''`
|
|
71
110
|
*/
|
|
72
111
|
itemBodyClassName: string;
|
|
73
112
|
/**
|
|
74
113
|
* The html tag to use for the accordion-item-header.
|
|
114
|
+
*
|
|
115
|
+
* @defaultValue `''`
|
|
75
116
|
*/
|
|
76
117
|
itemHeadingTag: string;
|
|
77
118
|
/**
|
|
78
119
|
* CSS classes to be applied on the widget main container
|
|
120
|
+
*
|
|
121
|
+
* @defaultValue `''`
|
|
79
122
|
*/
|
|
80
123
|
className: string;
|
|
81
124
|
/**
|
|
@@ -131,6 +174,8 @@ export interface AccordionItemState {
|
|
|
131
174
|
headingTag: string;
|
|
132
175
|
/**
|
|
133
176
|
* CSS classes to be applied on the widget main container
|
|
177
|
+
*
|
|
178
|
+
* @defaultValue `''`
|
|
134
179
|
*/
|
|
135
180
|
className: string;
|
|
136
181
|
/**
|
|
@@ -218,6 +263,8 @@ export interface AccordionItemProps {
|
|
|
218
263
|
headingTag: string;
|
|
219
264
|
/**
|
|
220
265
|
* CSS classes to be applied on the widget main container
|
|
266
|
+
*
|
|
267
|
+
* @defaultValue `''`
|
|
221
268
|
*/
|
|
222
269
|
className: string;
|
|
223
270
|
/**
|
|
@@ -243,6 +290,31 @@ export interface AccordionItemProps {
|
|
|
243
290
|
header: SlotContent<AccordionItemContext>;
|
|
244
291
|
}
|
|
245
292
|
export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState, AccordionItemApi, AccordionItemActions, AccordionItemDirectives>;
|
|
293
|
+
/**
|
|
294
|
+
* Create an AccordionItemWidget with given config props
|
|
295
|
+
* @param config - an optional AccordionItem config
|
|
296
|
+
* @returns an AccordionItemWidget
|
|
297
|
+
*/
|
|
298
|
+
declare const export_createAccordionItem: WidgetFactory<AccordionItemWidget>;
|
|
299
|
+
export { export_createAccordionItem as createAccordionItem };
|
|
300
|
+
/**
|
|
301
|
+
* Create an AccordionWidget with given config props
|
|
302
|
+
* @param config - an optional accordion config
|
|
303
|
+
* @returns an AccordionWidget
|
|
304
|
+
*/
|
|
305
|
+
declare const export_createAccordion: WidgetFactory<AccordionWidget>;
|
|
306
|
+
export { export_createAccordion as createAccordion };
|
|
307
|
+
/**
|
|
308
|
+
* Create an accordion WidgetFactory based on a item factory and the list of item props that should inherit from the parent accordion
|
|
309
|
+
*
|
|
310
|
+
* @param itemFactory - the item factory
|
|
311
|
+
* @param accordionItemProps - the list of item props
|
|
312
|
+
* @param accordionConfig - the default accordion config
|
|
313
|
+
* @param accordionValidator - the validator of props
|
|
314
|
+
* @returns the accordion widget factory
|
|
315
|
+
*/
|
|
316
|
+
declare const export_factoryCreateAccordion: (itemFactory?: WidgetFactory<AccordionItemWidget>, accordionItemProps?: string[], accordionConfig?: AccordionProps, accordionValidator?: ConfigValidator<AccordionProps>) => WidgetFactory<AccordionWidget>;
|
|
317
|
+
export { export_factoryCreateAccordion as factoryCreateAccordion };
|
|
246
318
|
export interface AccordionApi {
|
|
247
319
|
/**
|
|
248
320
|
* Given the itemId, will expand the corresponding accordion-item.
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { getAccordionDefaultConfig, createAccordionItem, createAccordion, factoryCreateAccordion } from '@agnos-ui/core-bootstrap/components/accordion';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve a shallow copy of the default accordion config
|
|
4
|
+
* @returns the default accordion config
|
|
5
|
+
*/
|
|
6
|
+
const export_getAccordionDefaultConfig = getAccordionDefaultConfig;
|
|
7
|
+
export { export_getAccordionDefaultConfig as getAccordionDefaultConfig };
|
|
8
|
+
/**
|
|
9
|
+
* Create an AccordionItemWidget with given config props
|
|
10
|
+
* @param config - an optional AccordionItem config
|
|
11
|
+
* @returns an AccordionItemWidget
|
|
12
|
+
*/
|
|
13
|
+
const export_createAccordionItem = createAccordionItem;
|
|
14
|
+
export { export_createAccordionItem as createAccordionItem };
|
|
15
|
+
/**
|
|
16
|
+
* Create an AccordionWidget with given config props
|
|
17
|
+
* @param config - an optional accordion config
|
|
18
|
+
* @returns an AccordionWidget
|
|
19
|
+
*/
|
|
20
|
+
const export_createAccordion = createAccordion;
|
|
21
|
+
export { export_createAccordion as createAccordion };
|
|
22
|
+
/**
|
|
23
|
+
* Create an accordion WidgetFactory based on a item factory and the list of item props that should inherit from the parent accordion
|
|
24
|
+
*
|
|
25
|
+
* @param itemFactory - the item factory
|
|
26
|
+
* @param accordionItemProps - the list of item props
|
|
27
|
+
* @param accordionConfig - the default accordion config
|
|
28
|
+
* @param accordionValidator - the validator of props
|
|
29
|
+
* @returns the accordion widget factory
|
|
30
|
+
*/
|
|
31
|
+
const export_factoryCreateAccordion = factoryCreateAccordion;
|
|
32
|
+
export { export_factoryCreateAccordion as factoryCreateAccordion };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export const createAccordion = coreCreateAccordion;
|
|
3
|
-
export const getAccordionDefaultConfig = coreGetAccordionDefaultConfig;
|
|
4
|
-
export const createAccordionItem = coreCreateAccordionItem;
|
|
1
|
+
export * from './accordion.gen';
|
|
5
2
|
// context
|
|
6
3
|
import { getContext, setContext } from 'svelte';
|
|
7
4
|
const contextInjectionKey = Symbol('accordion-api');
|
|
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type AlertApi, type AlertProps, type AlertSlots } from './alert';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
api?: AlertApi
|
|
5
|
+
api?: AlertApi;
|
|
6
6
|
} & Partial<AlertProps>;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { WidgetPropsSlots
|
|
2
|
-
import type { AlertProps
|
|
3
|
-
export
|
|
4
|
-
export declare const createAlert: WidgetFactory<AlertWidget>;
|
|
5
|
-
export declare const getAlertDefaultConfig: () => AlertProps;
|
|
1
|
+
import type { WidgetPropsSlots } from '@agnos-ui/svelte-headless/types';
|
|
2
|
+
import type { AlertProps } from './alert.gen';
|
|
3
|
+
export * from './alert.gen';
|
|
6
4
|
export interface AlertSlots extends WidgetPropsSlots<AlertProps> {
|
|
7
5
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/svelte-headless/types';
|
|
1
|
+
import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/svelte-headless/types';
|
|
2
2
|
import type { BSContextualClass } from '@agnos-ui/core-bootstrap/types';
|
|
3
3
|
import type { TransitionFn } from '@agnos-ui/svelte-headless/services/transitions/baseTransitions';
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve a shallow copy of the default Alert config
|
|
6
|
+
* @returns the default Alert config
|
|
7
|
+
*/
|
|
8
|
+
declare const export_getAlertDefaultConfig: () => AlertProps;
|
|
9
|
+
export { export_getAlertDefaultConfig as getAlertDefaultConfig };
|
|
4
10
|
export type AlertContext = WidgetSlotContext<AlertWidget>;
|
|
5
11
|
export interface AlertState {
|
|
6
12
|
/**
|
|
@@ -10,18 +16,26 @@ export interface AlertState {
|
|
|
10
16
|
/**
|
|
11
17
|
* If `true`, alert can be dismissed by the user.
|
|
12
18
|
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue `true`
|
|
13
21
|
*/
|
|
14
22
|
dismissible: boolean;
|
|
15
23
|
/**
|
|
16
24
|
* If `true` the alert is visible to the user
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue `true`
|
|
17
27
|
*/
|
|
18
28
|
visible: boolean;
|
|
19
29
|
/**
|
|
20
30
|
* Accessibility close button label
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue `'Close'`
|
|
21
33
|
*/
|
|
22
34
|
ariaCloseButtonLabel: string;
|
|
23
35
|
/**
|
|
24
36
|
* CSS classes to be applied on the widget main container
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue `''`
|
|
25
39
|
*/
|
|
26
40
|
className: string;
|
|
27
41
|
/**
|
|
@@ -34,33 +48,54 @@ export interface AlertState {
|
|
|
34
48
|
children: SlotContent<AlertContext>;
|
|
35
49
|
/**
|
|
36
50
|
* Type of the alert, following bootstrap types.
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue `'primary'`
|
|
37
53
|
*/
|
|
38
54
|
type: BSContextualClass;
|
|
39
55
|
}
|
|
40
56
|
export interface AlertProps {
|
|
57
|
+
/**
|
|
58
|
+
* The transition function will be executed when the alert is displayed or hidden.
|
|
59
|
+
*
|
|
60
|
+
* Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
|
|
61
|
+
*
|
|
62
|
+
* @defaultValue `fadeTransition`
|
|
63
|
+
*/
|
|
64
|
+
transition: TransitionFn;
|
|
41
65
|
/**
|
|
42
66
|
* Callback called when the alert visibility changed.
|
|
67
|
+
*
|
|
68
|
+
* @defaultValue
|
|
69
|
+
* ```ts
|
|
70
|
+
* () => {}
|
|
71
|
+
* ```
|
|
43
72
|
*/
|
|
44
73
|
onVisibleChange: (visible: boolean) => void;
|
|
45
74
|
/**
|
|
46
75
|
* Callback called when the alert is hidden.
|
|
76
|
+
*
|
|
77
|
+
* @defaultValue
|
|
78
|
+
* ```ts
|
|
79
|
+
* () => {}
|
|
80
|
+
* ```
|
|
47
81
|
*/
|
|
48
82
|
onHidden: () => void;
|
|
49
83
|
/**
|
|
50
84
|
* Callback called when the alert is shown.
|
|
51
|
-
*/
|
|
52
|
-
onShown: () => void;
|
|
53
|
-
/**
|
|
54
|
-
* The transition function will be executed when the alert is displayed or hidden.
|
|
55
85
|
*
|
|
56
|
-
*
|
|
86
|
+
* @defaultValue
|
|
87
|
+
* ```ts
|
|
88
|
+
* () => {}
|
|
89
|
+
* ```
|
|
57
90
|
*/
|
|
58
|
-
|
|
91
|
+
onShown: () => void;
|
|
59
92
|
/**
|
|
60
93
|
* If `true`, alert opening will be animated.
|
|
61
94
|
*
|
|
62
95
|
* Animation is triggered when the `.open()` function is called
|
|
63
96
|
* or the visible prop is changed
|
|
97
|
+
*
|
|
98
|
+
* @defaultValue `false`
|
|
64
99
|
*/
|
|
65
100
|
animatedOnInit: boolean;
|
|
66
101
|
/**
|
|
@@ -68,23 +103,33 @@ export interface AlertProps {
|
|
|
68
103
|
*
|
|
69
104
|
* Animation is triggered when clicked on the close button (×),
|
|
70
105
|
* via the `.close()` function or the visible prop is changed
|
|
106
|
+
*
|
|
107
|
+
* @defaultValue `true`
|
|
71
108
|
*/
|
|
72
109
|
animated: boolean;
|
|
73
110
|
/**
|
|
74
111
|
* If `true`, alert can be dismissed by the user.
|
|
75
112
|
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
113
|
+
*
|
|
114
|
+
* @defaultValue `true`
|
|
76
115
|
*/
|
|
77
116
|
dismissible: boolean;
|
|
78
117
|
/**
|
|
79
118
|
* If `true` the alert is visible to the user
|
|
119
|
+
*
|
|
120
|
+
* @defaultValue `true`
|
|
80
121
|
*/
|
|
81
122
|
visible: boolean;
|
|
82
123
|
/**
|
|
83
124
|
* Accessibility close button label
|
|
125
|
+
*
|
|
126
|
+
* @defaultValue `'Close'`
|
|
84
127
|
*/
|
|
85
128
|
ariaCloseButtonLabel: string;
|
|
86
129
|
/**
|
|
87
130
|
* CSS classes to be applied on the widget main container
|
|
131
|
+
*
|
|
132
|
+
* @defaultValue `''`
|
|
88
133
|
*/
|
|
89
134
|
className: string;
|
|
90
135
|
/**
|
|
@@ -97,10 +142,19 @@ export interface AlertProps {
|
|
|
97
142
|
children: SlotContent<AlertContext>;
|
|
98
143
|
/**
|
|
99
144
|
* Type of the alert, following bootstrap types.
|
|
145
|
+
*
|
|
146
|
+
* @defaultValue `'primary'`
|
|
100
147
|
*/
|
|
101
148
|
type: BSContextualClass;
|
|
102
149
|
}
|
|
103
150
|
export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, object, AlertDirectives>;
|
|
151
|
+
/**
|
|
152
|
+
* Create an AlertWidget with given config props
|
|
153
|
+
* @param config - an optional alert config
|
|
154
|
+
* @returns an AlertWidget
|
|
155
|
+
*/
|
|
156
|
+
declare const export_createAlert: WidgetFactory<AlertWidget>;
|
|
157
|
+
export { export_createAlert as createAlert };
|
|
104
158
|
export interface AlertApi {
|
|
105
159
|
/**
|
|
106
160
|
* Triggers alert closing programmatically (same as clicking on the close button (×)).
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { getAlertDefaultConfig, createAlert } from '@agnos-ui/core-bootstrap/components/alert';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve a shallow copy of the default Alert config
|
|
4
|
+
* @returns the default Alert config
|
|
5
|
+
*/
|
|
6
|
+
const export_getAlertDefaultConfig = getAlertDefaultConfig;
|
|
7
|
+
export { export_getAlertDefaultConfig as getAlertDefaultConfig };
|
|
8
|
+
/**
|
|
9
|
+
* Create an AlertWidget with given config props
|
|
10
|
+
* @param config - an optional alert config
|
|
11
|
+
* @returns an AlertWidget
|
|
12
|
+
*/
|
|
13
|
+
const export_createAlert = createAlert;
|
|
14
|
+
export { export_createAlert as createAlert };
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const createAlert = coreCreateAlert;
|
|
3
|
-
export const getAlertDefaultConfig = coreGetAlertDefaultConfig;
|
|
1
|
+
export * from './alert.gen';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type { WidgetPropsSlots
|
|
2
|
-
import type { ModalProps
|
|
3
|
-
export
|
|
4
|
-
export declare const createModal: <Data>(propsConfig?: PropsConfig<ModalProps<Data>>) => ModalWidget<Data>;
|
|
5
|
-
export { modalCloseButtonClick, modalOutsideClick } from '@agnos-ui/core-bootstrap/components/modal';
|
|
6
|
-
export declare const getModalDefaultConfig: () => ModalProps<any>;
|
|
1
|
+
import type { WidgetPropsSlots } from '@agnos-ui/svelte-headless/types';
|
|
2
|
+
import type { ModalProps } from './modal.gen';
|
|
3
|
+
export * from './modal.gen';
|
|
7
4
|
export interface ModalSlots extends WidgetPropsSlots<ModalProps<any>> {
|
|
8
5
|
}
|