-
Notifications
You must be signed in to change notification settings - Fork 7
/
public_api.ts
536 lines (521 loc) · 22.8 KB
/
public_api.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
import { IButton, IColorTypes, IDispatch, IGlobalUserConfig } from './ngx-awesome-popup/core/global-interfaces';
import { ConfirmBoxInitializer } from './ngx-awesome-popup/types/confirm-box/core/classes';
import {
IConfirmBoxCoreConfig,
IConfirmBoxPublicResponse,
IConfirmBoxUserConfig
} from './ngx-awesome-popup/types/confirm-box/core/interfaces';
import { DialogBelonging, DialogInitializer } from './ngx-awesome-popup/types/dialog/core/classes';
import {
IDialogCoreConfig,
IDialogeventsController,
IDialogPublicResponse,
IDialogUserConfig
} from './ngx-awesome-popup/types/dialog/core/interfaces';
import { ResetToastGlobalSettings, ToastNotificationInitializer } from './ngx-awesome-popup/types/toast-notification/core/classes';
import {
IGlobalToastSettings,
IToastCoreConfig,
IToastNotificationPublicResponse,
IToastNotificationUserConfig
} from './ngx-awesome-popup/types/toast-notification/core/interfaces';
// region *** Interface ***
export { IGlobalUserConfig };
export { IButton };
export { IDispatch };
export { IColorTypes };
export { IConfirmBoxUserConfig };
export { IConfirmBoxCoreConfig };
export { IConfirmBoxPublicResponse };
export { IGlobalToastSettings };
export { IToastCoreConfig };
export { IToastNotificationUserConfig };
export { IToastNotificationPublicResponse };
export { IDialogUserConfig };
export { IDialogCoreConfig };
export { IDialogPublicResponse };
export { IDialogeventsController };
// endregion
export { ButtonLayoutDisplay } from './ngx-awesome-popup/core/enums';
export { DialogLayoutDisplay } from './ngx-awesome-popup/core/enums';
export { VerticalPosition } from './ngx-awesome-popup/core/enums';
export { ToastPositionEnum } from './ngx-awesome-popup/types/toast-notification/core/enums';
export { ToastProgressBarEnum } from './ngx-awesome-popup/types/toast-notification/core/enums';
export { ToastUserViewTypeEnum } from './ngx-awesome-popup/types/toast-notification/core/enums';
/**
*
* ## Choose between many appearing animations that are available
*/
export { AppearanceAnimation } from './ngx-awesome-popup/core/enums';
/**
*
* ## Choose between many disappearing animations that are available
*/
export { DisappearanceAnimation } from './ngx-awesome-popup/core/enums';
/**
* @returns It will return custom button object ready to be used in child component layout.
*/
export { ButtonMaker } from './ngx-awesome-popup/core/global-classes';
/**
*```typescript
* // Instantiate config object as example below to change global settings on-fly it takes IGlobalUserConfig as the argument.
* new ResetGlobalConfig({
* colorList: {
* primary : '#ff9e00', // optional shade of the overlay color
* secondary: '#989ea5', // optional
* info : '#2f8ee5', // optional
* success : '#3caea3', // optional
* warning : '#ffc107', // optional
* danger : '#e46464', // optional
* light : '#fbfbfb', // optional
* dark : '#343a40' // optional
* }
* })
* ```
*/
export { ResetGlobalConfig } from './ngx-awesome-popup/core/global-config.service';
/**
*```typescript
* // Instantiate toast global config object as example below to change global settings on-fly it takes IGlobalToastSettings as the argument.
* new ResetToastGlobalSettings({
* allowedNotificationsAtOnce: 2
* })
* ```
*/
export { ResetToastGlobalSettings };
/**
* This is the class that needs to be added as DI in the constructor of a child component that will be
* opened dynamically with {@link DialogInitializer}. It contains various information or
* event controllers, and listeners that can be used in a child component. Also, there is custom data
* that is sent from component where the {@link DialogInitializer} is. User can set specific type of
* custom data that child component will receive by including it as generic type.
*
*
* Example:
* ```typescript
*import {DialogBelonging} from 'ngx-awesome-popup';
*@Component({
* selector : 'app-dynamic',
* templateUrl: './dynamic.component.html',
* styleUrls : ['./dynamic.component.scss']
*})
* export class DynamicComponent implements OnInit, OnDestroy {
*
* subscriptions: Subscription = new Subscription();
*
* constructor(@Inject('dialogBelonging') private dialogBelonging: DialogBelonging) {}
*
* ngOnInit(): void {
* console.log(this.dialogBelonging);
*
* this.subscriptions.add(
* this.dialogBelonging.eventsController.onButtonClick$.subscribe((_Button) => {
* if (_Button.ID === 'ok') {
* // Do some logic and close popup.
* this.dialogBelonging.eventsController.close();
* } else if (_Button.ID === 'cancel') {
* // Do some logic and close popup.
* this.dialogBelonging.eventsController.close();
* }
* })
* );
*
* setTimeout(() => {
* // Close loader after async data is ready.
* this.dialogBelonging.eventsController.closeLoader();
* }, 1000);
* }
*}
ngOnDestroy(): void {
// Close all subscriptions.
this.subscriptions.unsubscribe();
}
* ```
* @category child dynamic component data & event controller
*/
export { DialogBelonging };
// region *** Observable response after closing popup ***
/**
* Regular description
*
* @category Observable response after closing popup
*/
export { IToastNotificationPublicResponse as IToastNotificationResponse };
/**
* Regular description
*
* @category Observable response after closing popup
*/
export { IConfirmBoxPublicResponse as IConfirmBoxResponse };
/**
* Regular description
*
* @category Observable response after closing popup
*/
export { IDialogPublicResponse as IDialogResponse };
// endregion
// region *** Popup open ***
/**
* This is the class that needs to be instantiated to set up and ignite a ToastNotification,
* its purpose is to show short notification to end-user, or even interact with user.
* It can be evoked from any angular typescript file.
*
* Below is the example with (some optional) user configuration,
* it will override default configuration from app.module.
*
*
* Example:
* ```typescript
* // Create the initializer.
*const newToastNotification = new ToastNotificationInitializer();
*
* // Set desired Title.
*newToastNotification.setTitle('Warning!');
*
* // Set desired Message.
*newToastNotification.setMessage('Form is not valid!');
*
* // Set desired configuration.
*newToastNotification.setConfig({
* layoutType: DialogLayoutDisplay.WARNING
* });
* // Open a ToastNotification.
* newConfirmBox.openConfirmBox$().subscribe(resp => {
* console.log('confirmBox response: ', resp);
* });
* ```
* * IToastCoreConfig: {@link IToastCoreConfig}
* * layoutType: {@link DialogLayoutDisplay}
* * IToastNotificationPublicResponse: {@link IToastNotificationPublicResponse}
* @category Popup open
*/
export { ToastNotificationInitializer };
/**
* This is the class that needs to be instantiated to set up and ignite a ConfirmBox and create content.
* Its purpose is to get confirmation response from end-user. It can be called from any angular
* typescript file.
*
* Below is example with (some optional) user configuration,
* it will override default configuration from app.module.
*
*
* Example:
* ```typescript
* // Create the initializer.
*const newConfirmBox = new ConfirmBoxInitializer();
*
* // Set desired dispatch: _Title: string, _Message: string.
*newConfirmBox.setDispatch('Are you sure?', 'That action will delete user!');
*
* // Set desired configuration.
*newConfirmBox.setConfig({
* layoutType: DialogLayoutDisplay.DANGER
* });
*
* // Set button labels.
* newConfirmBox.setButtonLabels('YES', 'NO');
*
* // Open a ConfirmBox, and get clicked button-id in response.
* newConfirmBox.openConfirmBox$().subscribe(resp => {
* // IConfirmBoxPublicResponse
* console.log('confirmBox response: ', resp);
* });
* ```
* * IConfirmBoxCoreConfig: {@link IConfirmBoxCoreConfig}
* * layoutType: {@link DialogLayoutDisplay}
* * IConfirmBoxPublicResponse: {@link IConfirmBoxPublicResponse}
* @category Popup open
*/
export { ConfirmBoxInitializer };
/**
* This is the class that needs to be instantiated to set up and ignite a Dialog and create dynamic component,
* its purpose is to render any angular component view with specific configuration from any angular typescript file.
* Dynamic component means that user can evoke the popup from typescript and component view
* is dynamically created with the Awesome Popup engine. There is no need to call any selector in HTML to create component view.
*
* DialogInitializer can send data to child component (dynamic component) where data will be accessible with {@link DialogBelonging}.
*
* Below is the example with (some optional) user configuration,
* it will override default configuration from app.module.
*
*
* Example:
* ```typescript
* import {DialogInitializer, DialogLayoutDisplay, ButtonMaker, ButtonLayoutDisplay} from 'ngx-awesome-popup';
* import {DynamicComponent} from './dynamic/dynamic.component';
*
* const newDialogPopup = new DialogInitializer(DynamicComponent); // Any Angular component.
*
* // Custom data will be sent to dynamic component available in dialogBelonging object.
* newDialogPopup.setCustomData({name: 'John', surname: 'Doe', id: 1});
*
* // Local config settings IDialogCoreConfig.
* newDialogPopup.setConfig({
* layoutType: DialogLayoutDisplay.INFO, // SUCCESS | INFO | NONE | DANGER | WARNING
* height: '500px', // optional
* // maxHeight: '600px', // optional
* // minHeight: '200px', // optional
* // width: '500px', // optional
* // maxWidth: '600px', // optional
* // minWidth: '200px', // optional
* // hideScrollbar: true, // optional, default is false
* // fullScreen: true, // optional, default is false
* // escapeKeyClose: true, // optional, default is false
* // buttonPosition: "left", // optional, default is "right"
* // loaderComponent: Any Angular component,
* // customStyles: {
* // buttonSectionCSS: 'background: #333',
* // buttonCSS: 'font-size: 30px;',
* // wrapperCSS: 'background: #333;'
* // }
* });
*
* // Custom buttons, listener is available in child component in dialogBelonging object.
* newDialogPopup.setButtons([
* new ButtonMaker('Ok', 'ok', ButtonLayoutDisplay.PRIMARY),
* new ButtonMaker('Cancel', 'cancel', ButtonLayoutDisplay.SECONDARY) // SUCCESS | INFO | NONE | DANGER | WARNING | PRIMARY | SECONDARY | LINK | DARK | LIGHT
* ]);
*
* // Command to open dialog, it returns observable.
* newDialogPopup.openDialog$<any>().subscribe(resp => {
* console.log('response: ', resp.Payload);
* });
* ```
* * IDialogCoreConfig: {@link IDialogCoreConfig}
* * layoutType: {@link DialogLayoutDisplay}
* * ButtonLayoutDisplay: {@link ButtonLayoutDisplay}
* * ButtonMaker: {@link ButtonMaker}
* * IDialogPublicResponse: {@link IDialogPublicResponse}
* @category Popup open
*/
export { DialogInitializer };
// endregion
// region *** Imports for angular app.module ***
/**
* This is the main module of the library, it is crucial to be added within angular.app
* imports as an example with optional argument, look: {@link IGlobalUserConfig}
* Style your application by adding a color list like in this example.
*
* ```typescript
* // app.module imports:
* NgxAwesomePopupModule.forRoot({
* colorList: {
* primary : '#ff9e00', // optional
* secondary: '#989ea5', // optional
* info : '#2f8ee5', // optional
* success : '#3caea3', // optional
* warning : '#ffc107', // optional
* danger : '#e46464', // optional
* light : '#fbfbfb', // optional
* dark : '#343a40' // optional
* }
* })
* ```
* @category Imports for angular app.module
*/
export { NgxAwesomePopupModule } from './ngx-awesome-popup/ngx-awesome-popup.module';
/**
* This is the module that ignites dynamic dialog modal, its purpose is to load any angular component in
* dialog window. Dynamic component means that user can evoke any Angular component in the popup just from typescript. Component view
* is dynamically created with the library engine and there is no need to call any selector in HTML to create component view.
*
* It is crucial for user to add this module in angular.app imports.
* Below is the example with (optional) default user configuration, that is what will be in setup if there is no
* local config when popup is evoked, that means it can be overridden directly when popup is called.
* That mean it's predefined config, so it doesn't need to be configured each time when dialog is evoked.
* For implementation look: {@link IDialogUserConfig}.
*
* Example:
* ```typescript
* // app.module imports:
*DialogConfigModule.forRoot({
* dialogCoreConfig: {
* width : '500px',
* // minWidth : '300px', // example
* // maxWidth : '700px', // example
* height : '500px',
* // minHeight : '100vh', // example
* // maxHeight : '100px', // example
* buttonPosition: 'right', // optional ' center', 'left', 'right'
* layoutType: DialogLayoutDisplay.INFO, // SUCCESS | INFO | NONE | DANGER | WARNING
* // loaderComponent: // Any angular component class name can be included as a loader.
* hideScrollbar : true,
* escapeKeyClose : true,
* // FullScreen : true,
* buttonPosition : 'right',
* layoutType: DialogLayoutDisplay.INFO,
* // LoaderComponent: // Any Angular component class name can be included as a loader.
* displayLoader: false // This will override LoaderComponent.
* animationIn: AppearanceAnimation.BOUNCE_IN, // BOUNCE_IN | SWING | ZOOM_IN | ZOOM_IN_ROTATE | ELASTIC | JELLO | FADE_IN | SLIDE_IN_UP | SLIDE_IN_DOWN | SLIDE_IN_LEFT | SLIDE_IN_RIGHT | NONE
* animationOut: DisappearanceAnimation.BOUNCE_OUT, // BOUNCE_OUT | ZOOM_OUT | ZOOM_OUT_WIND | ZOOM_OUT_ROTATE | FLIP_OUT | SLIDE_OUT_UP | SLIDE_OUT_DOWN | SLIDE_OUT_LEFT | SLIDE_OUT_RIGHT | NONE
* customStyles: {
* buttonSectionCSS: 'background: #333',
* buttonCSS: 'font-size: 30px;',
* wrapperCSS: 'background: #333;'
* }
* },
* // optional predefined custom default buttons
* buttons: [
* new ButtonMaker('Ok', 'ok', ButtonLayoutDisplay.PRIMARY),
* new ButtonMaker('Cancel', 'cancel', ButtonLayoutDisplay.SECONDARY)
* ],
* })
* ```
* * dialogCoreConfig.layoutType: {@link DialogLayoutDisplay}
* * ButtonLayoutDisplay: {@link ButtonLayoutDisplay}
* * ButtonMaker: {@link ButtonMaker}
* @category Imports for angular app.module
*/
export { DialogConfigModule } from './ngx-awesome-popup/ngx-awesome-popup.module';
/**
* This is the module that ignites Confirm box dialog, its purpose is to show popup in a
* small dialog window in the middle of the screen. User can provide title, message and include buttons.
* Confirm box is available in predefined layout types (enums): {@link DialogLayoutDisplay}.
*
* It is crucial for user to add this module in angular.app imports.
* Below is the example with (optional) default user configuration, that's what will be used if there is no
* local config when popup is evoked, that means it can be overridden directly when popup is evoked.
* That mean it's predefined config, so it doesn't need to be configured each time when confirm box is evoked.
* For implementation look: {@link IConfirmBoxUserConfig}.
*
* Example:
* ```typescript
* // app.module imports:
*ConfirmBoxConfigModule.forRoot({
* confirmBoxCoreConfig: {
* width: '700px',
* layoutType: DialogLayoutDisplay.DANGER,
* buttonPosition: 'center', // optional ' center', 'left', 'right'
* layoutType: DialogLayoutDisplay.SUCCESS, // SUCCESS | INFO | NONE | DANGER | WARNING
* animationIn: AppearanceAnimation.BOUNCE_IN, // BOUNCE_IN | SWING | ZOOM_IN | ZOOM_IN_ROTATE | ELASTIC | JELLO | FADE_IN | SLIDE_IN_UP | SLIDE_IN_DOWN | SLIDE_IN_LEFT | SLIDE_IN_RIGHT | NONE
* animationOut: DisappearanceAnimation.BOUNCE_OUT, // BOUNCE_OUT | ZOOM_OUT | ZOOM_OUT_WIND | ZOOM_OUT_ROTATE | FLIP_OUT | SLIDE_OUT_UP | SLIDE_OUT_DOWN | SLIDE_OUT_LEFT | SLIDE_OUT_RIGHT | NONE
* allowHtmlMessage: true, // default false
* disableIcon: true, // default false
* customStyles: {
* titleCSS: 'color: #ddd; background: #333; font-size: 20px; padding: 20px',
* buttonSectionCSS: 'background: #333',
* buttonCSS: 'font-size: 14px;',
* textCSS: 'color: #ddd; font-size: 16px; background: #333;',
* wrapperCSS: 'background: #333;'
* }
* },
* dispatch: { // Optional default dispatch object.
* title: 'Default title',
* message: 'Default message'
* },
* // optional predefined custom default buttons
* buttons : [
* new ButtonMaker('Ok', 'ok', ButtonLayoutDisplay.PRIMARY),
* new ButtonMaker('Cancel', 'cancel', ButtonLayoutDisplay.SECONDARY)
* ]
* })
* ```
* * confirmBoxCoreConfig: {@link IConfirmBoxCoreConfig}
* * dispatch: {@link IDispatch}
* * buttons: {@link IButton}
* * ButtonMaker: {@link ButtonMaker}
* @category Imports for angular app.module
*/
export { ConfirmBoxConfigModule } from './ngx-awesome-popup/ngx-awesome-popup.module';
/**
* This is the module that ignites Toast notifications dialog, its purpose is to show toast popup in a
* small dialog window in the corner of the screen. User can provide title and message and include buttons, or setup auto disappearing.
* Toast notifications are available in predefined layout types (enums): {@link DialogLayoutDisplay}.
*
* It is crucial for user to add this module in angular.app imports.
* Below is the example with (optional) default user configuration, that's what will be used if there is no
* local config when popup is evoked, that means it can be overridden directly when popup is evoked.
* That mean it's predefined config, so it doesn't need to be configured each time when toast is evoked.
* For implementation look: {@link IToastNotificationUserConfig}.
*
* Example:
* ```typescript
* // app.module imports:
*ToastNotificationConfigModule.forRoot({
* toastCoreConfig: {
* // AutoClose it will be ignored if buttons are included.
* autoCloseDelay: 3000, // milliseconds, optional set 0 to never expires
* textPosition: 'right', // optional ' center', 'left', 'right'
* layoutType: DialogLayoutDisplay.SUCCESS, // SUCCESS | INFO | NONE | DANGER | WARNING
* progressBar: ToastProgressBarEnum.INCREASE, // INCREASE | DECREASE | NONE
* toastUserViewType: ToastUserViewTypeEnum.SIMPLE, // STANDARD | SIMPLE
* animationIn: AppearanceAnimation.BOUNCE_IN, // BOUNCE_IN | SWING | ZOOM_IN | ZOOM_IN_ROTATE | ELASTIC | JELLO | FADE_IN | SLIDE_IN_UP | SLIDE_IN_DOWN | SLIDE_IN_LEFT | SLIDE_IN_RIGHT | NONE
* animationOut: DisappearanceAnimation.BOUNCE_OUT, // BOUNCE_OUT | ZOOM_OUT | ZOOM_OUT_WIND | ZOOM_OUT_ROTATE | FLIP_OUT | SLIDE_OUT_UP | SLIDE_OUT_DOWN | SLIDE_OUT_LEFT | SLIDE_OUT_RIGHT | NONE
* toastPosition: ToastPositionEnum.TOP_RIGHT, // TOP_LEFT | TOP_CENTER | TOP_RIGHT | TOP_FULL_WIDTH | BOTTOM_LEFT | BOTTOM_CENTER | BOTTOM_RIGHT | BOTTOM_FULL_WIDTH
* allowHtmlMessage: true, // default false
* disableIcon: true, // default false
* buttonPosition: 'right', // optional ' center', 'left', 'right'
* customStyles: {
* titleCSS: 'background: rgba(0,0,0, .7); font-size: 20px; padding: 20px',
* buttonSectionCSS: 'background: #333',
* buttonCSS: 'font-size: 14px;',
* textCSS: 'color: #ddd; font-size: 16px; background: #333;'
* }
* },
* globalSettings: {
* // The number of toast notifications that can be shown at once.
* allowedNotificationsAtOnce: 4
* },
* // Optional default dispatch object.
* dispatch: {
* title: 'Default title',
* message: 'Default message'
* },
* // optional predefined custom default buttons
* buttons: [
* new ButtonMaker('Ok', 'ok', ButtonLayoutDisplay.PRIMARY),
* new ButtonMaker('Cancel', 'cancel', ButtonLayoutDisplay.SECONDARY)
* ]
*})
* ```
* * toastCoreConfig: {@link IToastCoreConfig}
* * globalSettings: {@link IGlobalToastSettings}
* * dispatch: {@link IDispatch}
* * buttons: {@link IButton}
* * ButtonMaker: {@link ButtonMaker}
* @category Imports for angular app.module
*/
export { ToastNotificationConfigModule } from './ngx-awesome-popup/ngx-awesome-popup.module';
// endregion
/**
* Global styles set in app.module.ts will affect the instance. See <a href="https://costlydeveloper.github.io/ngx-awesome-popup/#/documentation/class-ToastEvokeService">Global Config</a> setup.
*```typescript
* // Inject this service as Dependency Injection in a constructor like example below,
* // and evoke the popup simply calling one of its methods.
*
*
* constructor(private confirmBoxEvokeService: ConfirmBoxEvokeService) {}
*
* // evoke it anywhere, no need to unsubscribe, it has an auto unsubscribe.
* // Type SUCCESS
* this.confirmBoxEvokeService.success('I am title!', 'I am a message!', 'Confirm', 'Decline').subscribe(resp => console.log('resp', resp));
* // Type INFO
* this.confirmBoxEvokeService.info('I am title!', 'I am a message!', 'Confirm', 'Decline').subscribe(resp => console.log('resp', resp));
* // Type WARNING
* this.confirmBoxEvokeService.warning('I am title!', 'I am a message!', 'Confirm', 'Decline').subscribe(resp => console.log('resp', resp));
* // Type ERROR
* this.confirmBoxEvokeService.danger('I am title!', 'I am a message!', 'Confirm', 'Decline').subscribe(resp => console.log('resp', resp));
* ```
*/
export { ConfirmBoxEvokeService } from './ngx-awesome-popup/types/confirm-box/core/confirm-box-evoke.service';
/**
* Global styles set in app.module.ts will affect the instance. See <a href="https://costlydeveloper.github.io/ngx-awesome-popup/#/documentation/class-ToastEvokeService">Global Config</a> setup.
*```typescript
* // Inject this service as Dependency Injection in a constructor like example below,
* // and evoke the popup simply calling one of its methods.
*
*
* constructor(private toastEvokeService: ToastEvokeService) {}
*
* // evoke it anywhere, no need to unsubscribe, it has an auto unsubscribe.
* // Type SUCCESS
* this.toastEvokeService.success('I am title!', 'I am a message!').subscribe();
* // Type INFO
* this.toastEvokeService.info('I am title!', 'I am a message!').subscribe();
* // Type WARNING
* this.toastEvokeService.warning('I am title!', 'I am a message!').subscribe();
* // Type ERROR
* this.toastEvokeService.danger('I am title!', 'I am a message!').subscribe();
* ```
*/
export { ToastEvokeService } from './ngx-awesome-popup/types/toast-notification/core/toast-evoke.service';