@agnos-ui/angular-bootstrap 0.3.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/README.md +15 -0
- package/agnos-ui-angular.module.d.ts +16 -0
- package/components/accordion/accordion.component.d.ts +239 -0
- package/components/accordion/accordion.d.ts +11 -0
- package/components/accordion/index.d.ts +2 -0
- package/components/alert/alert.component.d.ts +95 -0
- package/components/alert/alert.d.ts +7 -0
- package/components/alert/index.d.ts +2 -0
- package/components/modal/index.d.ts +3 -0
- package/components/modal/modal.component.d.ts +164 -0
- package/components/modal/modal.d.ts +9 -0
- package/components/modal/modal.service.d.ts +13 -0
- package/components/pagination/index.d.ts +2 -0
- package/components/pagination/pagination.component.d.ts +252 -0
- package/components/pagination/pagination.d.ts +8 -0
- package/components/progressbar/index.d.ts +2 -0
- package/components/progressbar/progressbar.component.d.ts +77 -0
- package/components/progressbar/progressbar.d.ts +7 -0
- package/components/rating/index.d.ts +2 -0
- package/components/rating/rating.component.d.ts +95 -0
- package/components/rating/rating.d.ts +6 -0
- package/components/select/index.d.ts +2 -0
- package/components/select/select.component.d.ts +107 -0
- package/components/select/select.d.ts +8 -0
- package/components/slider/index.d.ts +2 -0
- package/components/slider/slider.component.d.ts +130 -0
- package/components/slider/slider.d.ts +9 -0
- package/components/toast/index.d.ts +2 -0
- package/components/toast/toast.component.d.ts +106 -0
- package/components/toast/toast.d.ts +7 -0
- package/config.d.ts +18 -0
- package/esm2022/agnos-ui-angular-bootstrap.mjs +5 -0
- package/esm2022/agnos-ui-angular.module.mjs +151 -0
- package/esm2022/components/accordion/accordion.component.mjs +579 -0
- package/esm2022/components/accordion/accordion.mjs +4 -0
- package/esm2022/components/accordion/index.mjs +3 -0
- package/esm2022/components/alert/alert.component.mjs +230 -0
- package/esm2022/components/alert/alert.mjs +4 -0
- package/esm2022/components/alert/index.mjs +3 -0
- package/esm2022/components/modal/index.mjs +4 -0
- package/esm2022/components/modal/modal.component.mjs +423 -0
- package/esm2022/components/modal/modal.mjs +4 -0
- package/esm2022/components/modal/modal.service.mjs +47 -0
- package/esm2022/components/pagination/index.mjs +3 -0
- package/esm2022/components/pagination/pagination.component.mjs +581 -0
- package/esm2022/components/pagination/pagination.mjs +4 -0
- package/esm2022/components/progressbar/index.mjs +3 -0
- package/esm2022/components/progressbar/progressbar.component.mjs +180 -0
- package/esm2022/components/progressbar/progressbar.mjs +4 -0
- package/esm2022/components/rating/index.mjs +3 -0
- package/esm2022/components/rating/rating.component.mjs +185 -0
- package/esm2022/components/rating/rating.mjs +4 -0
- package/esm2022/components/select/index.mjs +3 -0
- package/esm2022/components/select/select.component.mjs +280 -0
- package/esm2022/components/select/select.mjs +4 -0
- package/esm2022/components/slider/index.mjs +3 -0
- package/esm2022/components/slider/slider.component.mjs +443 -0
- package/esm2022/components/slider/slider.mjs +4 -0
- package/esm2022/components/toast/index.mjs +3 -0
- package/esm2022/components/toast/toast.component.mjs +284 -0
- package/esm2022/components/toast/toast.mjs +4 -0
- package/esm2022/config.mjs +5 -0
- package/esm2022/index.mjs +27 -0
- package/fesm2022/agnos-ui-angular-bootstrap.mjs +3382 -0
- package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -0
- package/index.d.ts +33 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @agnos-ui/angular
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@agnos-ui/angular-bootstrap)
|
|
4
|
+
|
|
5
|
+
[Bootstrap](https://getbootstrap.com/)-based widget library for [Angular](https://angular.io/).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @agnos-ui/angular-bootstrap
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Please check [our demo site](https://amadeusitgroup.github.io/AgnosUI/latest/) to see all the available widgets and how to use them.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@agnos-ui/angular-headless";
|
|
3
|
+
import * as i2 from "./components/select/select.component";
|
|
4
|
+
import * as i3 from "./components/rating/rating.component";
|
|
5
|
+
import * as i4 from "./components/pagination/pagination.component";
|
|
6
|
+
import * as i5 from "./components/modal/modal.component";
|
|
7
|
+
import * as i6 from "./components/alert/alert.component";
|
|
8
|
+
import * as i7 from "./components/accordion/accordion.component";
|
|
9
|
+
import * as i8 from "./components/slider/slider.component";
|
|
10
|
+
import * as i9 from "./components/progressbar/progressbar.component";
|
|
11
|
+
import * as i10 from "./components/toast/toast.component";
|
|
12
|
+
export declare class AgnosUIAngularModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AgnosUIAngularModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AgnosUIAngularModule, never, [typeof i1.SlotDirective, typeof i2.SelectComponent, typeof i2.SelectBadgeLabelDirective, typeof i2.SelectItemDirective, typeof i1.UseDirective, typeof i1.UseMultiDirective, typeof i3.RatingComponent, typeof i3.RatingStarDirective, typeof i4.PaginationComponent, typeof i4.PaginationEllipsisDirective, typeof i4.PaginationFirstDirective, typeof i4.PaginationLastDirective, typeof i4.PaginationNextDirective, typeof i4.PaginationNumberDirective, typeof i4.PaginationPreviousDirective, typeof i4.PaginationPagesDirective, typeof i4.PaginationStructureDirective, typeof i5.ModalComponent, typeof i5.ModalStructureDirective, typeof i5.ModalHeaderDirective, typeof i5.ModalTitleDirective, typeof i5.ModalBodyDirective, typeof i5.ModalFooterDirective, typeof i6.AlertComponent, typeof i6.AlertStructureDirective, typeof i6.AlertBodyDirective, typeof i7.AccordionDirective, typeof i7.AccordionItemComponent, typeof i7.AccordionHeaderDirective, typeof i7.AccordionBodyDirective, typeof i7.AccordionItemStructureDirective, typeof i8.SliderComponent, typeof i8.SliderHandleDirective, typeof i8.SliderLabelDirective, typeof i8.SliderStructureDirective, typeof i9.ProgressbarComponent, typeof i9.ProgressbarStructureDirective, typeof i10.ToastComponent, typeof i10.ToastStructureDirective, typeof i10.ToastBodyDirective, typeof i10.ToastHeaderDirective], [typeof i1.SlotDirective, typeof i2.SelectComponent, typeof i2.SelectBadgeLabelDirective, typeof i2.SelectItemDirective, typeof i1.UseDirective, typeof i1.UseMultiDirective, typeof i3.RatingComponent, typeof i3.RatingStarDirective, typeof i4.PaginationComponent, typeof i4.PaginationEllipsisDirective, typeof i4.PaginationFirstDirective, typeof i4.PaginationLastDirective, typeof i4.PaginationNextDirective, typeof i4.PaginationNumberDirective, typeof i4.PaginationPreviousDirective, typeof i4.PaginationPagesDirective, typeof i4.PaginationStructureDirective, typeof i5.ModalComponent, typeof i5.ModalStructureDirective, typeof i5.ModalHeaderDirective, typeof i5.ModalTitleDirective, typeof i5.ModalBodyDirective, typeof i5.ModalFooterDirective, typeof i6.AlertComponent, typeof i6.AlertStructureDirective, typeof i6.AlertBodyDirective, typeof i7.AccordionDirective, typeof i7.AccordionItemComponent, typeof i7.AccordionHeaderDirective, typeof i7.AccordionBodyDirective, typeof i7.AccordionItemStructureDirective, typeof i8.SliderComponent, typeof i8.SliderHandleDirective, typeof i8.SliderLabelDirective, typeof i8.SliderStructureDirective, typeof i9.ProgressbarComponent, typeof i9.ProgressbarStructureDirective, typeof i10.ToastComponent, typeof i10.ToastStructureDirective, typeof i10.ToastBodyDirective, typeof i10.ToastHeaderDirective]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AgnosUIAngularModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import type { SlotContent, TransitionFn } from '@agnos-ui/angular-headless';
|
|
2
|
+
import { BaseWidgetDirective, ComponentTemplate } from '@agnos-ui/angular-headless';
|
|
3
|
+
import type { AfterContentChecked, AfterViewInit } from '@angular/core';
|
|
4
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
5
|
+
import type { AccordionItemContext, AccordionItemWidget, AccordionWidget } from './accordion';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AccordionBodyDirective {
|
|
8
|
+
templateRef: TemplateRef<any>;
|
|
9
|
+
static ngTemplateContextGuard(dir: AccordionBodyDirective, context: unknown): context is AccordionItemContext;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionBodyDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionBodyDirective, "ng-template[auAccordionItemBody]", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class AccordionHeaderDirective {
|
|
14
|
+
templateRef: TemplateRef<any>;
|
|
15
|
+
static ngTemplateContextGuard(dir: AccordionHeaderDirective, context: unknown): context is AccordionItemContext;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionHeaderDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionHeaderDirective, "ng-template[auAccordionItemHeader]", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
export declare class AccordionItemStructureDirective {
|
|
20
|
+
templateRef: TemplateRef<any>;
|
|
21
|
+
static ngTemplateContextGuard(dir: AccordionItemStructureDirective, context: unknown): context is AccordionItemContext;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemStructureDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemStructureDirective, "ng-template[auAccordionItemStructure]", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
export declare class AccordionItemDefaultSlotsComponent {
|
|
26
|
+
structure: TemplateRef<AccordionItemContext>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemDefaultSlotsComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemDefaultSlotsComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
export declare const accordionItemDefaultSlotItemStructure: ComponentTemplate<unknown, "structure", AccordionItemDefaultSlotsComponent>;
|
|
31
|
+
export declare class AccordionItemComponent extends BaseWidgetDirective<AccordionItemWidget> implements AfterContentChecked, AfterViewInit {
|
|
32
|
+
slotItemHeader: SlotContent<AccordionItemContext>;
|
|
33
|
+
slotItemHeaderFromContent: AccordionHeaderDirective | null;
|
|
34
|
+
slotItemBody: SlotContent<AccordionItemContext>;
|
|
35
|
+
slotItemBodyFromContent: AccordionBodyDirective | null;
|
|
36
|
+
slotItemStructure: SlotContent<AccordionItemContext>;
|
|
37
|
+
slotItemStructureFromContent: AccordionItemStructureDirective | null;
|
|
38
|
+
/**
|
|
39
|
+
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api.
|
|
40
|
+
*/
|
|
41
|
+
itemId: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
44
|
+
*/
|
|
45
|
+
itemTransition: TransitionFn | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* CSS classes to add on the accordion-item DOM element.
|
|
48
|
+
*/
|
|
49
|
+
itemClass: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* 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.
|
|
52
|
+
*/
|
|
53
|
+
itemDestroyOnHide: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* If `true`, the accordion-item will be disabled.
|
|
56
|
+
* It will not react to user's clicks, but still will be possible to toggle programmatically.
|
|
57
|
+
*/
|
|
58
|
+
itemDisabled: boolean | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
61
|
+
*/
|
|
62
|
+
itemVisible: boolean | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* If `true`, accordion-item will be animated.
|
|
65
|
+
*/
|
|
66
|
+
itemAnimated: boolean | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* CSS classes to add on the accordion-item header DOM element.
|
|
69
|
+
*/
|
|
70
|
+
itemHeaderClass: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* CSS classes to add on the accordion-item collapse DOM element.
|
|
73
|
+
*/
|
|
74
|
+
itemButtonClass: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* CSS classes to add on the accordion-item body container DOM element.
|
|
77
|
+
* The accordion-item body container is the DOM element on what the itemTransition is applied.
|
|
78
|
+
*/
|
|
79
|
+
itemBodyContainerClass: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* CSS classes to add on the accordion-item body DOM element.
|
|
82
|
+
*/
|
|
83
|
+
itemBodyClass: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* The html tag to use for the accordion-item-header.
|
|
86
|
+
*/
|
|
87
|
+
itemHeadingTag: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* An event fired when an item is shown.
|
|
90
|
+
*/
|
|
91
|
+
itemShown: EventEmitter<void>;
|
|
92
|
+
/**
|
|
93
|
+
* An event fired when an item is hidden.
|
|
94
|
+
*/
|
|
95
|
+
itemHidden: EventEmitter<void>;
|
|
96
|
+
/**
|
|
97
|
+
* An event fired when the `visible` value changes.
|
|
98
|
+
*
|
|
99
|
+
* Event payload is the new value of visible.
|
|
100
|
+
*/
|
|
101
|
+
itemVisibleChange: EventEmitter<boolean>;
|
|
102
|
+
readonly ad: AccordionDirective;
|
|
103
|
+
readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<AccordionItemWidget>;
|
|
104
|
+
ngAfterContentChecked(): void;
|
|
105
|
+
ngAfterViewInit(): void;
|
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "[auAccordionItem]", ["auAccordionItem"], { "slotItemHeader": { "alias": "auSlotItemHeader"; "required": false; }; "slotItemBody": { "alias": "auSlotItemBody"; "required": false; }; "slotItemStructure": { "alias": "auSlotItemStructure"; "required": false; }; "itemId": { "alias": "auItemId"; "required": false; }; "itemTransition": { "alias": "auItemTransition"; "required": false; }; "itemClass": { "alias": "auItemClass"; "required": false; }; "itemDestroyOnHide": { "alias": "auItemDestroyOnHide"; "required": false; }; "itemDisabled": { "alias": "auItemDisabled"; "required": false; }; "itemVisible": { "alias": "auItemVisible"; "required": false; }; "itemAnimated": { "alias": "auItemAnimated"; "required": false; }; "itemHeaderClass": { "alias": "auItemHeaderClass"; "required": false; }; "itemButtonClass": { "alias": "auItemButtonClass"; "required": false; }; "itemBodyContainerClass": { "alias": "auItemBodyContainerClass"; "required": false; }; "itemBodyClass": { "alias": "auItemBodyClass"; "required": false; }; "itemHeadingTag": { "alias": "auItemHeadingTag"; "required": false; }; }, { "itemShown": "auItemShown"; "itemHidden": "auItemHidden"; "itemVisibleChange": "auItemVisibleChange"; }, ["slotItemHeaderFromContent", "slotItemBodyFromContent", "slotItemStructureFromContent"], never, true, never>;
|
|
108
|
+
static ngAcceptInputType_itemDestroyOnHide: unknown;
|
|
109
|
+
static ngAcceptInputType_itemDisabled: unknown;
|
|
110
|
+
static ngAcceptInputType_itemVisible: unknown;
|
|
111
|
+
static ngAcceptInputType_itemAnimated: unknown;
|
|
112
|
+
}
|
|
113
|
+
export declare class AccordionDirective extends BaseWidgetDirective<AccordionWidget> {
|
|
114
|
+
/**
|
|
115
|
+
* If `true`, only one accordion-item at the time can stay open.
|
|
116
|
+
*/
|
|
117
|
+
closeOthers: boolean | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* CSS classes to be applied on the widget main container
|
|
120
|
+
*/
|
|
121
|
+
className: string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* An event fired when an item is shown.
|
|
124
|
+
*
|
|
125
|
+
* Event payload is the id of the item.
|
|
126
|
+
*/
|
|
127
|
+
shown: EventEmitter<string>;
|
|
128
|
+
/**
|
|
129
|
+
* An event fired when an item is hidden.
|
|
130
|
+
*
|
|
131
|
+
* Event payload is the id of the item.
|
|
132
|
+
*/
|
|
133
|
+
hidden: EventEmitter<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api.
|
|
136
|
+
*
|
|
137
|
+
* It is a prop of the accordion-item.
|
|
138
|
+
*/
|
|
139
|
+
itemId: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* 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.
|
|
142
|
+
*
|
|
143
|
+
* It is a prop of the accordion-item.
|
|
144
|
+
*/
|
|
145
|
+
itemDestroyOnHide: boolean | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* If `true`, the accordion-item will be disabled.
|
|
148
|
+
* It will not react to user's clicks, but still will be possible to toggle programmatically.
|
|
149
|
+
*
|
|
150
|
+
* It is a prop of the accordion-item.
|
|
151
|
+
*/
|
|
152
|
+
itemDisabled: boolean | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed).
|
|
155
|
+
*
|
|
156
|
+
* It is a prop of the accordion-item.
|
|
157
|
+
*/
|
|
158
|
+
itemVisible: boolean | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* If `true`, accordion-item will be animated.
|
|
161
|
+
*
|
|
162
|
+
* It is a prop of the accordion-item.
|
|
163
|
+
*/
|
|
164
|
+
itemAnimated: boolean | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* The transition to use for the accordion-item body-container when the accordion-item is toggled.
|
|
167
|
+
*
|
|
168
|
+
* It is a prop of the accordion-item.
|
|
169
|
+
*/
|
|
170
|
+
itemTransition: TransitionFn | undefined;
|
|
171
|
+
slotItemStructure: SlotContent<AccordionItemContext>;
|
|
172
|
+
slotItemBody: SlotContent<AccordionItemContext>;
|
|
173
|
+
slotItemHeader: SlotContent<AccordionItemContext>;
|
|
174
|
+
/**
|
|
175
|
+
* CSS classes to add on the accordion-item DOM element.
|
|
176
|
+
*
|
|
177
|
+
* It is a prop of the accordion-item.
|
|
178
|
+
*/
|
|
179
|
+
itemClass: string | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* CSS classes to add on the accordion-item header DOM element.
|
|
182
|
+
*
|
|
183
|
+
* It is a prop of the accordion-item.
|
|
184
|
+
*/
|
|
185
|
+
itemHeaderClass: string | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* CSS classes to add on the accordion-item toggle button DOM element.
|
|
188
|
+
*
|
|
189
|
+
* It is a prop of the accordion-item.
|
|
190
|
+
*/
|
|
191
|
+
itemButtonClass: string | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* CSS classes to add on the accordion-item body container DOM element.
|
|
194
|
+
* The accordion-item body container is the DOM element on what the itemTransition is applied.
|
|
195
|
+
*
|
|
196
|
+
* It is a prop of the accordion-item.
|
|
197
|
+
*/
|
|
198
|
+
itemBodyContainerClass: string | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* CSS classes to add on the accordion-item body DOM element.
|
|
201
|
+
*
|
|
202
|
+
* It is a prop of the accordion-item.
|
|
203
|
+
*/
|
|
204
|
+
itemBodyClass: string | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* The html tag to use for the accordion-item-header.
|
|
207
|
+
*
|
|
208
|
+
* It is a prop of the accordion-item.
|
|
209
|
+
*/
|
|
210
|
+
itemHeadingTag: string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* An event fired when an item is shown.
|
|
213
|
+
*
|
|
214
|
+
* It is a prop of the accordion-item.
|
|
215
|
+
*/
|
|
216
|
+
itemShown: EventEmitter<void>;
|
|
217
|
+
/**
|
|
218
|
+
* An event fired when an item is hidden.
|
|
219
|
+
*
|
|
220
|
+
* It is a prop of the accordion-item.
|
|
221
|
+
*/
|
|
222
|
+
itemHidden: EventEmitter<void>;
|
|
223
|
+
/**
|
|
224
|
+
* An event fired when the `visible` value changes.
|
|
225
|
+
*
|
|
226
|
+
* Event payload is the new value of visible.
|
|
227
|
+
*
|
|
228
|
+
* It is a prop of the accordion-item.
|
|
229
|
+
*/
|
|
230
|
+
itemVisibleChange: EventEmitter<boolean>;
|
|
231
|
+
readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<AccordionWidget>;
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionDirective, never>;
|
|
233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionDirective, "[auAccordion]", ["auAccordion"], { "closeOthers": { "alias": "auCloseOthers"; "required": false; }; "className": { "alias": "auClassName"; "required": false; }; "itemId": { "alias": "auItemId"; "required": false; }; "itemDestroyOnHide": { "alias": "auItemDestroyOnHide"; "required": false; }; "itemDisabled": { "alias": "auItemDisabled"; "required": false; }; "itemVisible": { "alias": "auItemVisible"; "required": false; }; "itemAnimated": { "alias": "auItemAnimated"; "required": false; }; "itemTransition": { "alias": "auItemTransition"; "required": false; }; "slotItemStructure": { "alias": "auSlotItemStructure"; "required": false; }; "slotItemBody": { "alias": "auSlotItemBody"; "required": false; }; "slotItemHeader": { "alias": "auSlotItemHeader"; "required": false; }; "itemClass": { "alias": "auItemClass"; "required": false; }; "itemHeaderClass": { "alias": "auItemHeaderClass"; "required": false; }; "itemButtonClass": { "alias": "auItemButtonClass"; "required": false; }; "itemBodyContainerClass": { "alias": "auItemBodyContainerClass"; "required": false; }; "itemBodyClass": { "alias": "auItemBodyClass"; "required": false; }; "itemHeadingTag": { "alias": "auItemHeadingTag"; "required": false; }; }, { "shown": "auShown"; "hidden": "auHidden"; "itemShown": "auItemShown"; "itemHidden": "auItemHidden"; "itemVisibleChange": "auItemVisibleChange"; }, never, never, true, never>;
|
|
234
|
+
static ngAcceptInputType_closeOthers: unknown;
|
|
235
|
+
static ngAcceptInputType_itemDestroyOnHide: unknown;
|
|
236
|
+
static ngAcceptInputType_itemDisabled: unknown;
|
|
237
|
+
static ngAcceptInputType_itemVisible: unknown;
|
|
238
|
+
static ngAcceptInputType_itemAnimated: unknown;
|
|
239
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdaptWidgetSlots, WidgetProps, WidgetState, AdaptSlotContentProps, WidgetFactory } from '@agnos-ui/angular-headless';
|
|
2
|
+
export * from '@agnos-ui/core-bootstrap/components/accordion';
|
|
3
|
+
export type AccordionWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/accordion').AccordionWidget>;
|
|
4
|
+
export type AccordionProps = WidgetProps<AccordionWidget>;
|
|
5
|
+
export type AccordionState = WidgetState<AccordionWidget>;
|
|
6
|
+
export type AccordionApi = AccordionWidget['api'];
|
|
7
|
+
export type AccordionItemWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/accordion').AccordionItemWidget>;
|
|
8
|
+
export type AccordionItemProps = WidgetProps<AccordionItemWidget>;
|
|
9
|
+
export type AccordionItemState = WidgetState<AccordionItemWidget>;
|
|
10
|
+
export type AccordionItemContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/accordion').AccordionItemContext>;
|
|
11
|
+
export declare const createAccordion: WidgetFactory<AccordionWidget>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { SlotContent, TransitionFn } from '@agnos-ui/angular-headless';
|
|
2
|
+
import { BaseWidgetDirective, ComponentTemplate } from '@agnos-ui/angular-headless';
|
|
3
|
+
import type { AlertContext, AlertProps, AlertWidget } from './alert';
|
|
4
|
+
import { type WritableSignal } from '@amadeus-it-group/tansu';
|
|
5
|
+
import type { AfterContentChecked } from '@angular/core';
|
|
6
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
7
|
+
import type { BSContextualClass } from '@agnos-ui/core-bootstrap/types';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class AlertBodyDirective {
|
|
10
|
+
templateRef: TemplateRef<any>;
|
|
11
|
+
static ngTemplateContextGuard(dir: AlertBodyDirective, context: unknown): context is AlertContext;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertBodyDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertBodyDirective, "ng-template[auAlertBody]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
export declare class AlertStructureDirective {
|
|
16
|
+
templateRef: TemplateRef<any>;
|
|
17
|
+
static ngTemplateContextGuard(dir: AlertStructureDirective, context: unknown): context is AlertContext;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertStructureDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertStructureDirective, "ng-template[auAlertStructure]", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
export declare class AlertDefaultSlotsComponent {
|
|
22
|
+
structure: TemplateRef<AlertContext>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDefaultSlotsComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertDefaultSlotsComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
export declare const alertDefaultSlotStructure: ComponentTemplate<unknown, "structure", AlertDefaultSlotsComponent>;
|
|
27
|
+
export type PartialAlertProps = Partial<AlertProps>;
|
|
28
|
+
export declare class AlertComponent extends BaseWidgetDirective<AlertWidget> implements AfterContentChecked {
|
|
29
|
+
/**
|
|
30
|
+
* Type of the alert, following bootstrap types.
|
|
31
|
+
*/
|
|
32
|
+
type: BSContextualClass | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, alert can be dismissed by the user.
|
|
35
|
+
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
36
|
+
*/
|
|
37
|
+
dismissible: boolean | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The transition function will be executed when the alert is displayed or hidden.
|
|
40
|
+
*
|
|
41
|
+
* Depending on the value of CommonAlertProps.animatedOnInit, the animation can be optionally skipped during the showing process.
|
|
42
|
+
*/
|
|
43
|
+
transition: TransitionFn | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* If `true` the alert is visible to the user
|
|
46
|
+
*/
|
|
47
|
+
visible: boolean | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* If `true`, alert opening will be animated.
|
|
50
|
+
*
|
|
51
|
+
* Animation is triggered when the `.open()` function is called
|
|
52
|
+
* or the visible prop is changed
|
|
53
|
+
*/
|
|
54
|
+
animatedOnInit: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* If `true`, alert closing will be animated.
|
|
57
|
+
*
|
|
58
|
+
* Animation is triggered when clicked on the close button (×),
|
|
59
|
+
* via the `.close()` function or the visible prop is changed
|
|
60
|
+
*/
|
|
61
|
+
animated: boolean | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Accessibility close button label
|
|
64
|
+
*/
|
|
65
|
+
ariaCloseButtonLabel: string | undefined;
|
|
66
|
+
slotDefault: SlotContent<AlertContext>;
|
|
67
|
+
slotDefaultFromContent: AlertBodyDirective | null;
|
|
68
|
+
slotStructure: SlotContent<AlertContext>;
|
|
69
|
+
slotStructureFromContent: AlertStructureDirective | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Callback called when the alert visibility changed.
|
|
72
|
+
*/
|
|
73
|
+
visibleChange: EventEmitter<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* Callback called when the alert is hidden.
|
|
76
|
+
*/
|
|
77
|
+
hidden: EventEmitter<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Callback called when the alert is shown.
|
|
80
|
+
*/
|
|
81
|
+
shown: EventEmitter<void>;
|
|
82
|
+
readonly defaultSlots: WritableSignal<PartialAlertProps>;
|
|
83
|
+
/**
|
|
84
|
+
* CSS classes to be applied on the widget main container
|
|
85
|
+
*/
|
|
86
|
+
className: string | undefined;
|
|
87
|
+
readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<AlertWidget>;
|
|
88
|
+
ngAfterContentChecked(): void;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "[auAlert]", never, { "type": { "alias": "auType"; "required": false; }; "dismissible": { "alias": "auDismissible"; "required": false; }; "transition": { "alias": "auTransition"; "required": false; }; "visible": { "alias": "auVisible"; "required": false; }; "animatedOnInit": { "alias": "auAnimatedOnInit"; "required": false; }; "animated": { "alias": "auAnimated"; "required": false; }; "ariaCloseButtonLabel": { "alias": "auAriaCloseButtonLabel"; "required": false; }; "slotDefault": { "alias": "auSlotDefault"; "required": false; }; "slotStructure": { "alias": "auSlotStructure"; "required": false; }; "className": { "alias": "auClassName"; "required": false; }; }, { "visibleChange": "auVisibleChange"; "hidden": "auHidden"; "shown": "auShown"; }, ["slotDefaultFromContent", "slotStructureFromContent"], ["*"], true, never>;
|
|
91
|
+
static ngAcceptInputType_dismissible: unknown;
|
|
92
|
+
static ngAcceptInputType_visible: unknown;
|
|
93
|
+
static ngAcceptInputType_animatedOnInit: unknown;
|
|
94
|
+
static ngAcceptInputType_animated: unknown;
|
|
95
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AdaptWidgetSlots, WidgetProps, WidgetState, AdaptSlotContentProps, WidgetFactory } from '@agnos-ui/angular-headless';
|
|
2
|
+
export * from '@agnos-ui/core-bootstrap/components/alert';
|
|
3
|
+
export type AlertWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/alert').AlertWidget>;
|
|
4
|
+
export type AlertProps = WidgetProps<AlertWidget>;
|
|
5
|
+
export type AlertState = WidgetState<AlertWidget>;
|
|
6
|
+
export type AlertContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/alert').AlertContext>;
|
|
7
|
+
export declare const createAlert: WidgetFactory<AlertWidget>;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { SlotContent, TransitionFn } from '@agnos-ui/angular-headless';
|
|
2
|
+
import { BaseWidgetDirective, ComponentTemplate } from '@agnos-ui/angular-headless';
|
|
3
|
+
import type { ModalContext, ModalProps, ModalWidget, ModalBeforeCloseEvent } from './modal';
|
|
4
|
+
import type { AfterContentChecked } from '@angular/core';
|
|
5
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Directive to provide the slot structure for the modal widget.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ModalStructureDirective<Data> {
|
|
11
|
+
templateRef: TemplateRef<any>;
|
|
12
|
+
static ngTemplateContextGuard<Data>(dir: ModalStructureDirective<Data>, context: unknown): context is ModalContext<Data>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalStructureDirective<any>, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalStructureDirective<any>, "ng-template[auModalStructure]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Directive to provide the slot header for the modal widget.
|
|
18
|
+
*/
|
|
19
|
+
export declare class ModalHeaderDirective<Data> {
|
|
20
|
+
templateRef: TemplateRef<any>;
|
|
21
|
+
static ngTemplateContextGuard<Data>(_dir: ModalHeaderDirective<Data>, context: unknown): context is ModalContext<Data>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeaderDirective<any>, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalHeaderDirective<any>, "ng-template[auModalHeader]", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Directive to provide the slot title for the modal widget.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ModalTitleDirective<Data> {
|
|
29
|
+
templateRef: TemplateRef<any>;
|
|
30
|
+
static ngTemplateContextGuard<Data>(_dir: ModalTitleDirective<Data>, context: unknown): context is ModalContext<Data>;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalTitleDirective<any>, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalTitleDirective<any>, "ng-template[auModalTitle]", never, {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Directive to provide the default slot for the modal widget.
|
|
36
|
+
*/
|
|
37
|
+
export declare class ModalBodyDirective<Data> {
|
|
38
|
+
templateRef: TemplateRef<any>;
|
|
39
|
+
static ngTemplateContextGuard<Data>(_dir: ModalBodyDirective<Data>, context: unknown): context is ModalContext<Data>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalBodyDirective<any>, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalBodyDirective<any>, "ng-template[auModalBody]", never, {}, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Directive to provide the slot footer for the modal widget.
|
|
45
|
+
*/
|
|
46
|
+
export declare class ModalFooterDirective<Data> {
|
|
47
|
+
templateRef: TemplateRef<any>;
|
|
48
|
+
static ngTemplateContextGuard<Data>(_dir: ModalFooterDirective<Data>, context: unknown): context is ModalContext<Data>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalFooterDirective<any>, never>;
|
|
50
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalFooterDirective<any>, "ng-template[auModalFooter]", never, {}, {}, never, never, true, never>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Component containing the default slots for the modal.
|
|
54
|
+
*/
|
|
55
|
+
export declare class ModalDefaultSlotsComponent<Data> {
|
|
56
|
+
header: TemplateRef<ModalContext<Data>>;
|
|
57
|
+
structure: TemplateRef<ModalContext<Data>>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalDefaultSlotsComponent<any>, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalDefaultSlotsComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Default slot for modal header.
|
|
63
|
+
*/
|
|
64
|
+
export declare const modalDefaultSlotHeader: ComponentTemplate<unknown, "header", ModalDefaultSlotsComponent<unknown>>;
|
|
65
|
+
/**
|
|
66
|
+
* Default slot for modal structure.
|
|
67
|
+
*/
|
|
68
|
+
export declare const modalDefaultSlotStructure: ComponentTemplate<unknown, "structure", ModalDefaultSlotsComponent<unknown>>;
|
|
69
|
+
/**
|
|
70
|
+
* Modal component.
|
|
71
|
+
*/
|
|
72
|
+
export declare class ModalComponent<Data> extends BaseWidgetDirective<ModalWidget<Data>> implements AfterContentChecked {
|
|
73
|
+
/**
|
|
74
|
+
* Whether the modal and its backdrop (if present) should be animated when shown or hidden.
|
|
75
|
+
*/
|
|
76
|
+
animated: boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The transition to use for the backdrop behind the modal (if present).
|
|
79
|
+
*/
|
|
80
|
+
backdropTransition: TransitionFn | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* The transition to use for the modal.
|
|
83
|
+
*/
|
|
84
|
+
modalTransition: TransitionFn | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the modal should be visible when the transition is completed.
|
|
87
|
+
*/
|
|
88
|
+
visible: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Whether a backdrop should be created behind the modal.
|
|
91
|
+
*/
|
|
92
|
+
backdrop: boolean | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the modal should be closed when clicking on the viewport outside the modal.
|
|
95
|
+
*/
|
|
96
|
+
closeOnOutsideClick: boolean | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Which element should contain the modal and backdrop DOM elements.
|
|
99
|
+
* If it is not null, the modal and backdrop DOM elements are moved to the specified container.
|
|
100
|
+
* Otherwise, they stay where the widget is located.
|
|
101
|
+
*/
|
|
102
|
+
container: HTMLElement | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Value of the aria-label attribute to put on the close button.
|
|
105
|
+
*/
|
|
106
|
+
ariaCloseButtonLabel: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Classes to add on the backdrop DOM element.
|
|
109
|
+
*/
|
|
110
|
+
backdropClass: string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Whether to display the close button.
|
|
113
|
+
*/
|
|
114
|
+
closeButton: boolean | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* CSS classes to be applied on the widget main container
|
|
117
|
+
*/
|
|
118
|
+
className: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Option to create a fullscreen modal, according to the bootstrap documentation.
|
|
121
|
+
*/
|
|
122
|
+
fullscreen: boolean | undefined;
|
|
123
|
+
slotStructure: SlotContent<ModalContext<Data>>;
|
|
124
|
+
slotStructureFromContent: ModalStructureDirective<Data> | null;
|
|
125
|
+
slotHeader: SlotContent<ModalContext<Data>>;
|
|
126
|
+
slotHeaderFromContent: ModalHeaderDirective<Data> | null;
|
|
127
|
+
slotTitle: SlotContent<ModalContext<Data>>;
|
|
128
|
+
slotTitleFromContent: ModalTitleDirective<Data> | null;
|
|
129
|
+
slotDefault: SlotContent<ModalContext<Data>>;
|
|
130
|
+
slotDefaultFromContent: ModalBodyDirective<Data> | null;
|
|
131
|
+
slotFooter: SlotContent<ModalContext<Data>>;
|
|
132
|
+
slotFooterFromContent: ModalFooterDirective<Data> | null;
|
|
133
|
+
/**
|
|
134
|
+
* Data to use in content slots
|
|
135
|
+
*/
|
|
136
|
+
contentData: Data | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Event to be triggered when the visible property changes.
|
|
139
|
+
*/
|
|
140
|
+
visibleChange: EventEmitter<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* Event to be triggered when the modal is about to be closed (i.e. the close method was called).
|
|
143
|
+
*/
|
|
144
|
+
beforeClose: EventEmitter<ModalBeforeCloseEvent>;
|
|
145
|
+
/**
|
|
146
|
+
* Event to be triggered when the transition is completed and the modal is not visible.
|
|
147
|
+
*/
|
|
148
|
+
hidden: EventEmitter<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Event to be triggered when the transition is completed and the modal is visible.
|
|
151
|
+
*/
|
|
152
|
+
shown: EventEmitter<void>;
|
|
153
|
+
readonly defaultSlots: import("@amadeus-it-group/tansu").WritableSignal<Partial<ModalProps<any>>, Partial<ModalProps<any>>>;
|
|
154
|
+
readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<ModalWidget<Data>>;
|
|
155
|
+
ngAfterContentChecked(): void;
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent<any>, never>;
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent<any>, "[auModal]", never, { "animated": { "alias": "auAnimated"; "required": false; }; "backdropTransition": { "alias": "auBackdropTransition"; "required": false; }; "modalTransition": { "alias": "auModalTransition"; "required": false; }; "visible": { "alias": "auVisible"; "required": false; }; "backdrop": { "alias": "auBackdrop"; "required": false; }; "closeOnOutsideClick": { "alias": "auCloseOnOutsideClick"; "required": false; }; "container": { "alias": "auContainer"; "required": false; }; "ariaCloseButtonLabel": { "alias": "auAriaCloseButtonLabel"; "required": false; }; "backdropClass": { "alias": "auBackdropClass"; "required": false; }; "closeButton": { "alias": "auCloseButton"; "required": false; }; "className": { "alias": "auClassName"; "required": false; }; "fullscreen": { "alias": "auFullscreen"; "required": false; }; "slotStructure": { "alias": "auSlotStructure"; "required": false; }; "slotHeader": { "alias": "auSlotHeader"; "required": false; }; "slotTitle": { "alias": "auSlotTitle"; "required": false; }; "slotDefault": { "alias": "auSlotDefault"; "required": false; }; "slotFooter": { "alias": "auSlotFooter"; "required": false; }; "contentData": { "alias": "auContentData"; "required": false; }; }, { "visibleChange": "auVisibleChange"; "beforeClose": "auBeforeClose"; "hidden": "auHidden"; "shown": "auShown"; }, ["slotStructureFromContent", "slotHeaderFromContent", "slotTitleFromContent", "slotDefaultFromContent", "slotFooterFromContent"], ["*"], true, never>;
|
|
158
|
+
static ngAcceptInputType_animated: unknown;
|
|
159
|
+
static ngAcceptInputType_visible: unknown;
|
|
160
|
+
static ngAcceptInputType_backdrop: unknown;
|
|
161
|
+
static ngAcceptInputType_closeOnOutsideClick: unknown;
|
|
162
|
+
static ngAcceptInputType_closeButton: unknown;
|
|
163
|
+
static ngAcceptInputType_fullscreen: unknown;
|
|
164
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AdaptWidgetSlots, WidgetProps, WidgetState, AdaptSlotContentProps, PropsConfig } from '@agnos-ui/angular-headless';
|
|
2
|
+
export * from '@agnos-ui/core-bootstrap/components/modal';
|
|
3
|
+
export interface ModalWidget<Data> extends AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/modal').ModalWidget<Data>> {
|
|
4
|
+
}
|
|
5
|
+
export type ModalProps<Data> = WidgetProps<ModalWidget<Data>>;
|
|
6
|
+
export type ModalState<Data> = WidgetState<ModalWidget<Data>>;
|
|
7
|
+
export interface ModalContext<Data> extends AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/modal').ModalContext<Data>> {
|
|
8
|
+
}
|
|
9
|
+
export declare const createModal: <Data>(config?: PropsConfig<ModalProps<Data>>) => ModalWidget<Data>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModalProps } from './modal';
|
|
2
|
+
import { Injector } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ModalServiceOpenOptions {
|
|
5
|
+
injector?: Injector;
|
|
6
|
+
}
|
|
7
|
+
export declare class ModalService {
|
|
8
|
+
private readonly _injector;
|
|
9
|
+
private readonly _applicationRef;
|
|
10
|
+
open<Data>(options: Partial<ModalProps<Data>>, { injector }?: ModalServiceOpenOptions): Promise<any>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
13
|
+
}
|