@agnos-ui/angular-bootstrap 0.4.0-next.0 → 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/README.md +1 -1
- package/components/accordion/accordion.component.d.ts +38 -1
- package/components/accordion/accordion.gen.d.ts +77 -5
- package/components/accordion/index.d.ts +1 -1
- package/components/alert/alert.component.d.ts +32 -1
- package/components/alert/alert.gen.d.ts +61 -7
- package/components/alert/index.d.ts +1 -1
- package/components/modal/index.d.ts +1 -1
- package/components/modal/modal.component.d.ts +61 -9
- package/components/modal/modal.gen.d.ts +131 -31
- package/components/modal/modal.service.d.ts +1 -1
- package/components/pagination/index.d.ts +1 -1
- package/components/pagination/pagination.component.d.ts +113 -27
- package/components/pagination/pagination.gen.d.ts +204 -34
- package/components/progressbar/index.d.ts +1 -1
- package/components/progressbar/progressbar.component.d.ts +27 -3
- package/components/progressbar/progressbar.gen.d.ts +56 -3
- package/components/rating/index.d.ts +1 -1
- package/components/rating/rating.component.d.ts +46 -1
- package/components/rating/rating.gen.d.ts +84 -1
- package/components/select/index.d.ts +1 -1
- package/components/select/select.component.d.ts +67 -1
- package/components/select/select.gen.d.ts +121 -1
- package/components/slider/index.d.ts +1 -1
- package/components/slider/slider.component.d.ts +49 -1
- package/components/slider/slider.gen.d.ts +98 -3
- package/components/toast/index.d.ts +1 -1
- package/components/toast/toast.component.d.ts +35 -1
- package/components/toast/toast.gen.d.ts +65 -7
- package/esm2022/components/accordion/accordion.component.mjs +12 -2
- package/esm2022/components/accordion/accordion.gen.mjs +33 -2
- package/esm2022/components/accordion/index.mjs +2 -2
- package/esm2022/components/alert/alert.component.mjs +17 -2
- package/esm2022/components/alert/alert.gen.mjs +15 -2
- package/esm2022/components/alert/index.mjs +2 -2
- package/esm2022/components/modal/index.mjs +2 -2
- package/esm2022/components/modal/modal.component.mjs +55 -30
- package/esm2022/components/modal/modal.gen.mjs +27 -2
- package/esm2022/components/modal/modal.service.mjs +1 -1
- package/esm2022/components/pagination/index.mjs +2 -2
- package/esm2022/components/pagination/pagination.component.mjs +49 -45
- package/esm2022/components/pagination/pagination.gen.mjs +15 -2
- package/esm2022/components/progressbar/index.mjs +2 -2
- package/esm2022/components/progressbar/progressbar.component.mjs +9 -9
- package/esm2022/components/progressbar/progressbar.gen.mjs +15 -2
- package/esm2022/components/rating/index.mjs +2 -2
- package/esm2022/components/rating/rating.component.mjs +17 -2
- package/esm2022/components/rating/rating.gen.mjs +15 -2
- package/esm2022/components/select/index.mjs +2 -2
- package/esm2022/components/select/select.component.mjs +19 -2
- package/esm2022/components/select/select.gen.mjs +15 -2
- package/esm2022/components/slider/index.mjs +2 -2
- package/esm2022/components/slider/slider.component.mjs +7 -2
- package/esm2022/components/slider/slider.gen.mjs +15 -2
- package/esm2022/components/toast/index.mjs +2 -2
- package/esm2022/components/toast/toast.component.mjs +17 -2
- package/esm2022/components/toast/toast.gen.mjs +15 -2
- package/esm2022/index.mjs +3 -3
- package/fesm2022/agnos-ui-angular-bootstrap.mjs +328 -117
- package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +5 -5
- package/components/accordion/accordion.d.ts +0 -6
- package/components/alert/alert.d.ts +0 -5
- package/components/modal/modal.d.ts +0 -6
- package/components/pagination/pagination.d.ts +0 -5
- package/components/progressbar/progressbar.d.ts +0 -5
- package/components/rating/rating.d.ts +0 -5
- package/components/select/select.d.ts +0 -5
- package/components/slider/slider.d.ts +0 -5
- package/components/toast/toast.d.ts +0 -5
- package/esm2022/components/accordion/accordion.mjs +0 -5
- package/esm2022/components/alert/alert.mjs +0 -4
- package/esm2022/components/modal/modal.mjs +0 -5
- package/esm2022/components/pagination/pagination.mjs +0 -4
- package/esm2022/components/progressbar/progressbar.mjs +0 -4
- package/esm2022/components/rating/rating.mjs +0 -4
- package/esm2022/components/select/select.mjs +0 -4
- package/esm2022/components/slider/slider.mjs +0 -4
- package/esm2022/components/toast/toast.mjs +0 -4
|
@@ -1,26 +1,44 @@
|
|
|
1
1
|
import { widgetsConfigFactory, SlotDirective, UseDirective, ComponentTemplate, BaseWidgetDirective, auBooleanAttribute, UseMultiDirective, ContentAsSlotDirective, auNumberAttribute, useDirectiveForHost } from '@agnos-ui/angular-headless';
|
|
2
2
|
export * from '@agnos-ui/angular-headless';
|
|
3
|
-
export { modalCloseButtonClick, modalOutsideClick } from '@agnos-ui/angular-headless';
|
|
4
3
|
import * as i0 from '@angular/core';
|
|
5
4
|
import { InjectionToken, inject, TemplateRef, Directive, Component, ChangeDetectionStrategy, ViewChild, EventEmitter, Input, ContentChild, Output, ViewEncapsulation, forwardRef, NgZone, NgModule, Injector, ApplicationRef, createComponent, EnvironmentInjector, Injectable } from '@angular/core';
|
|
6
|
-
import {
|
|
5
|
+
import { getModalDefaultConfig, createModal, modalOutsideClick, modalCloseButtonClick } from '@agnos-ui/core-bootstrap/components/modal';
|
|
7
6
|
import { writable } from '@amadeus-it-group/tansu';
|
|
8
|
-
import {
|
|
7
|
+
import { getPaginationDefaultConfig, createPagination } from '@agnos-ui/core-bootstrap/components/pagination';
|
|
9
8
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { getRatingDefaultConfig, createRating } from '@agnos-ui/core-bootstrap/components/rating';
|
|
10
|
+
import { getSelectDefaultConfig, createSelect } from '@agnos-ui/core-bootstrap/components/select';
|
|
11
|
+
import { getAlertDefaultConfig, createAlert } from '@agnos-ui/core-bootstrap/components/alert';
|
|
13
12
|
import { NgTemplateOutlet, NgClass } from '@angular/common';
|
|
14
|
-
import {
|
|
13
|
+
import { getAccordionDefaultConfig, createAccordionItem, createAccordion, factoryCreateAccordion } from '@agnos-ui/core-bootstrap/components/accordion';
|
|
15
14
|
import { take } from 'rxjs';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { getSliderDefaultConfig, createSlider } from '@agnos-ui/core-bootstrap/components/slider';
|
|
16
|
+
import { getProgressbarDefaultConfig, createProgressbar } from '@agnos-ui/core-bootstrap/components/progressbar';
|
|
17
|
+
import { getToastDefaultConfig, createToast } from '@agnos-ui/core-bootstrap/components/toast';
|
|
19
18
|
export * from '@agnos-ui/core-bootstrap/services/transitions';
|
|
20
19
|
export * from '@agnos-ui/core-bootstrap/types';
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve a shallow copy of the default modal config
|
|
23
|
+
* @returns the default modal config
|
|
24
|
+
*/
|
|
25
|
+
const export_getModalDefaultConfig = getModalDefaultConfig;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new modal widget instance.
|
|
28
|
+
* @param config - config of the modal, either as a store or as an object containing values or stores.
|
|
29
|
+
* @returns a new modal widget instance
|
|
30
|
+
*/
|
|
31
|
+
const export_createModal = createModal;
|
|
32
|
+
/**
|
|
33
|
+
* Value present in the {@link ModalBeforeCloseEvent.result|result} property of the {@link ModalProps.onBeforeClose|onBeforeClose} event
|
|
34
|
+
* and returned by the {@link ModalApi.open|open} method, when the modal is closed by a click inside the viewport but outside the modal.
|
|
35
|
+
*/
|
|
36
|
+
const export_modalOutsideClick = modalOutsideClick;
|
|
37
|
+
/**
|
|
38
|
+
* Value present in the {@link ModalBeforeCloseEvent.result|result} property of the {@link ModalProps.onBeforeClose|onBeforeClose} event
|
|
39
|
+
* and returned by the {@link ModalApi.open|open} method, when the modal is closed by a click on the close button.
|
|
40
|
+
*/
|
|
41
|
+
const export_modalCloseButtonClick = modalCloseButtonClick;
|
|
24
42
|
|
|
25
43
|
const widgetFactories = widgetsConfigFactory(new InjectionToken('bootstrapWidgetsConfig'));
|
|
26
44
|
const { widgetsConfigInjectionToken, provideWidgetsConfig, injectWidgetConfig, injectWidgetsConfig, callWidgetFactory } = widgetFactories;
|
|
@@ -44,7 +62,7 @@ function ModalDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1
|
|
|
44
62
|
const state_r2 = ctx.state;
|
|
45
63
|
const widget_r1 = ctx.widget;
|
|
46
64
|
i0.ɵɵadvance();
|
|
47
|
-
i0.ɵɵproperty("auSlot", state_r2.
|
|
65
|
+
i0.ɵɵproperty("auSlot", state_r2.title)("auSlotProps", i0.ɵɵpureFunction2(3, _c2$8, state_r2, widget_r1));
|
|
48
66
|
i0.ɵɵadvance();
|
|
49
67
|
i0.ɵɵconditional(state_r2.closeButton ? 2 : -1);
|
|
50
68
|
} }
|
|
@@ -58,7 +76,7 @@ function ModalDefaultSlotsComponent_ng_template_2_Conditional_0_Template(rf, ctx
|
|
|
58
76
|
const state_r4 = ctx_r2.state;
|
|
59
77
|
const widget_r5 = ctx_r2.widget;
|
|
60
78
|
i0.ɵɵadvance();
|
|
61
|
-
i0.ɵɵproperty("auSlot", state_r4.
|
|
79
|
+
i0.ɵɵproperty("auSlot", state_r4.header)("auSlotProps", i0.ɵɵpureFunction2(2, _c2$8, state_r4, widget_r5));
|
|
62
80
|
} }
|
|
63
81
|
function ModalDefaultSlotsComponent_ng_template_2_ng_template_2_Template(rf, ctx) { }
|
|
64
82
|
function ModalDefaultSlotsComponent_ng_template_2_Conditional_3_ng_template_1_Template(rf, ctx) { }
|
|
@@ -71,7 +89,7 @@ function ModalDefaultSlotsComponent_ng_template_2_Conditional_3_Template(rf, ctx
|
|
|
71
89
|
const state_r4 = ctx_r2.state;
|
|
72
90
|
const widget_r5 = ctx_r2.widget;
|
|
73
91
|
i0.ɵɵadvance();
|
|
74
|
-
i0.ɵɵproperty("auSlot", state_r4.
|
|
92
|
+
i0.ɵɵproperty("auSlot", state_r4.footer)("auSlotProps", i0.ɵɵpureFunction2(2, _c2$8, state_r4, widget_r5));
|
|
75
93
|
} }
|
|
76
94
|
function ModalDefaultSlotsComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
77
95
|
i0.ɵɵtemplate(0, ModalDefaultSlotsComponent_ng_template_2_Conditional_0_Template, 2, 5, "div", 7);
|
|
@@ -82,11 +100,11 @@ function ModalDefaultSlotsComponent_ng_template_2_Template(rf, ctx) { if (rf & 1
|
|
|
82
100
|
} if (rf & 2) {
|
|
83
101
|
const state_r4 = ctx.state;
|
|
84
102
|
const widget_r5 = ctx.widget;
|
|
85
|
-
i0.ɵɵconditional(state_r4.
|
|
103
|
+
i0.ɵɵconditional(state_r4.title ? 0 : -1);
|
|
86
104
|
i0.ɵɵadvance(2);
|
|
87
105
|
i0.ɵɵproperty("auSlot", state_r4.children)("auSlotProps", i0.ɵɵpureFunction2(4, _c2$8, state_r4, widget_r5));
|
|
88
106
|
i0.ɵɵadvance();
|
|
89
|
-
i0.ɵɵconditional(state_r4.
|
|
107
|
+
i0.ɵɵconditional(state_r4.footer ? 3 : -1);
|
|
90
108
|
} }
|
|
91
109
|
const _c3$7 = ["auModal", ""];
|
|
92
110
|
const _c4$3 = ["*"];
|
|
@@ -111,7 +129,7 @@ function ModalComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
111
129
|
i0.ɵɵadvance();
|
|
112
130
|
i0.ɵɵclassMapInterpolate1("modal-dialog ", ctx_r0.state().fullscreen ? "modal-fullscreen" : "", "");
|
|
113
131
|
i0.ɵɵadvance(2);
|
|
114
|
-
i0.ɵɵproperty("auSlot", ctx_r0.state().
|
|
132
|
+
i0.ɵɵproperty("auSlot", ctx_r0.state().structure)("auSlotProps", i0.ɵɵpureFunction2(9, _c2$8, ctx_r0.state(), ctx_r0.widget));
|
|
115
133
|
} }
|
|
116
134
|
/**
|
|
117
135
|
* Directive to provide the slot structure for the modal widget.
|
|
@@ -223,24 +241,24 @@ class ModalDefaultSlotsComponent {
|
|
|
223
241
|
template: `
|
|
224
242
|
<ng-template auModalHeader #header let-state="state" let-widget="widget">
|
|
225
243
|
<h5 class="modal-title">
|
|
226
|
-
<ng-template [auSlot]="state.
|
|
244
|
+
<ng-template [auSlot]="state.title" [auSlotProps]="{state, widget}"></ng-template>
|
|
227
245
|
</h5>
|
|
228
246
|
@if (state.closeButton) {
|
|
229
247
|
<button class="btn-close" [auUse]="widget.directives.closeButtonDirective"></button>
|
|
230
248
|
}
|
|
231
249
|
</ng-template>
|
|
232
250
|
<ng-template auModalStructure #structure let-state="state" let-widget="widget">
|
|
233
|
-
@if (state.
|
|
251
|
+
@if (state.title) {
|
|
234
252
|
<div class="modal-header">
|
|
235
|
-
<ng-template [auSlot]="state.
|
|
253
|
+
<ng-template [auSlot]="state.header" [auSlotProps]="{state, widget}"></ng-template>
|
|
236
254
|
</div>
|
|
237
255
|
}
|
|
238
256
|
<div class="modal-body">
|
|
239
257
|
<ng-template [auSlot]="state.children" [auSlotProps]="{state, widget}"></ng-template>
|
|
240
258
|
</div>
|
|
241
|
-
@if (state.
|
|
259
|
+
@if (state.footer) {
|
|
242
260
|
<div class="modal-footer">
|
|
243
|
-
<ng-template [auSlot]="state.
|
|
261
|
+
<ng-template [auSlot]="state.footer" [auSlotProps]="{state, widget}"></ng-template>
|
|
244
262
|
</div>
|
|
245
263
|
}
|
|
246
264
|
</ng-template>
|
|
@@ -263,8 +281,8 @@ const modalDefaultSlotHeader = new ComponentTemplate(ModalDefaultSlotsComponent,
|
|
|
263
281
|
*/
|
|
264
282
|
const modalDefaultSlotStructure = new ComponentTemplate(ModalDefaultSlotsComponent, 'structure');
|
|
265
283
|
const defaultConfig$6 = {
|
|
266
|
-
|
|
267
|
-
|
|
284
|
+
header: modalDefaultSlotHeader,
|
|
285
|
+
structure: modalDefaultSlotStructure,
|
|
268
286
|
};
|
|
269
287
|
/**
|
|
270
288
|
* Modal component.
|
|
@@ -274,23 +292,48 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
274
292
|
super(...arguments);
|
|
275
293
|
/**
|
|
276
294
|
* Event to be triggered when the visible property changes.
|
|
295
|
+
*
|
|
296
|
+
* @param visible - new value of the visible propery
|
|
297
|
+
*
|
|
298
|
+
* @defaultValue
|
|
299
|
+
* ```ts
|
|
300
|
+
* () => {}
|
|
301
|
+
* ```
|
|
277
302
|
*/
|
|
278
303
|
this.visibleChange = new EventEmitter();
|
|
279
304
|
/**
|
|
280
|
-
* Event to be triggered when the modal is about to be closed (i.e. the ModalApi.
|
|
305
|
+
* Event to be triggered when the modal is about to be closed (i.e. the {@link ModalApi.close|close} method was called).
|
|
306
|
+
*
|
|
307
|
+
* @param event - event giving access to the argument given to the {@link ModalApi.close|close} method and allowing
|
|
308
|
+
* to cancel the close process.
|
|
309
|
+
*
|
|
310
|
+
* @defaultValue
|
|
311
|
+
* ```ts
|
|
312
|
+
* () => {}
|
|
313
|
+
* ```
|
|
281
314
|
*/
|
|
282
315
|
this.beforeClose = new EventEmitter();
|
|
283
316
|
/**
|
|
284
317
|
* Event to be triggered when the transition is completed and the modal is not visible.
|
|
318
|
+
*
|
|
319
|
+
* @defaultValue
|
|
320
|
+
* ```ts
|
|
321
|
+
* () => {}
|
|
322
|
+
* ```
|
|
285
323
|
*/
|
|
286
324
|
this.hidden = new EventEmitter();
|
|
287
325
|
/**
|
|
288
326
|
* Event to be triggered when the transition is completed and the modal is visible.
|
|
327
|
+
*
|
|
328
|
+
* @defaultValue
|
|
329
|
+
* ```ts
|
|
330
|
+
* () => {}
|
|
331
|
+
* ```
|
|
289
332
|
*/
|
|
290
333
|
this.shown = new EventEmitter();
|
|
291
334
|
this.defaultSlots = writable(defaultConfig$6);
|
|
292
335
|
this._widget = callWidgetFactory({
|
|
293
|
-
factory:
|
|
336
|
+
factory: export_createModal,
|
|
294
337
|
widgetName: 'modal',
|
|
295
338
|
defaultConfig: this.defaultSlots,
|
|
296
339
|
events: {
|
|
@@ -304,10 +347,10 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
304
347
|
ngAfterContentChecked() {
|
|
305
348
|
this._widget.patchSlots({
|
|
306
349
|
children: this.slotDefaultFromContent?.templateRef,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
350
|
+
footer: this.slotFooterFromContent?.templateRef,
|
|
351
|
+
header: this.slotHeaderFromContent?.templateRef,
|
|
352
|
+
structure: this.slotStructureFromContent?.templateRef,
|
|
353
|
+
title: this.slotTitleFromContent?.templateRef,
|
|
311
354
|
});
|
|
312
355
|
}
|
|
313
356
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵModalComponent_BaseFactory; return function ModalComponent_Factory(t) { return (ɵModalComponent_BaseFactory || (ɵModalComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ModalComponent)))(t || ModalComponent); }; })(); }
|
|
@@ -324,7 +367,7 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
324
367
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotTitleFromContent = _t.first);
|
|
325
368
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
|
|
326
369
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotFooterFromContent = _t.first);
|
|
327
|
-
} }, inputs: { animated: [2, "auAnimated", "animated", auBooleanAttribute], backdropTransition: [0, "auBackdropTransition", "backdropTransition"], modalTransition: [0, "auModalTransition", "modalTransition"], visible: [2, "auVisible", "visible", auBooleanAttribute], backdrop: [2, "auBackdrop", "backdrop", auBooleanAttribute], closeOnOutsideClick: [2, "auCloseOnOutsideClick", "closeOnOutsideClick", auBooleanAttribute], container: [0, "auContainer", "container"], ariaCloseButtonLabel: [0, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], backdropClass: [0, "auBackdropClass", "backdropClass"], closeButton: [2, "auCloseButton", "closeButton", auBooleanAttribute], className: [0, "auClassName", "className"], fullscreen: [2, "auFullscreen", "fullscreen", auBooleanAttribute],
|
|
370
|
+
} }, inputs: { animated: [2, "auAnimated", "animated", auBooleanAttribute], backdropTransition: [0, "auBackdropTransition", "backdropTransition"], modalTransition: [0, "auModalTransition", "modalTransition"], visible: [2, "auVisible", "visible", auBooleanAttribute], backdrop: [2, "auBackdrop", "backdrop", auBooleanAttribute], closeOnOutsideClick: [2, "auCloseOnOutsideClick", "closeOnOutsideClick", auBooleanAttribute], container: [0, "auContainer", "container"], ariaCloseButtonLabel: [0, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], backdropClass: [0, "auBackdropClass", "backdropClass"], closeButton: [2, "auCloseButton", "closeButton", auBooleanAttribute], className: [0, "auClassName", "className"], fullscreen: [2, "auFullscreen", "fullscreen", auBooleanAttribute], structure: [0, "auStructure", "structure"], header: [0, "auHeader", "header"], title: [0, "auTitle", "title"], children: [0, "auChildren", "children"], footer: [0, "auFooter", "footer"], contentData: [0, "auContentData", "contentData"] }, outputs: { visibleChange: "auVisibleChange", beforeClose: "auBeforeClose", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c3$7, ngContentSelectors: _c4$3, decls: 3, vars: 3, consts: [[3, "auContentAsSlot"], [1, "modal-backdrop", 3, "auUseMulti"], [1, "modal", "d-block", 3, "auUseMulti"], [1, "modal-content"], [3, "auSlot", "auSlotProps"]], template: function ModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
328
371
|
i0.ɵɵprojectionDef();
|
|
329
372
|
i0.ɵɵtemplate(0, ModalComponent_ng_template_0_Template, 1, 0, "ng-template", 0)(1, ModalComponent_Conditional_1_Template, 1, 4, "div", 1)(2, ModalComponent_Conditional_2_Template, 4, 12, "div", 2);
|
|
330
373
|
} if (rf & 2) {
|
|
@@ -351,7 +394,7 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
351
394
|
<div class="modal d-block" [auUseMulti]="[widget.directives.modalPortalDirective, widget.directives.modalDirective]">
|
|
352
395
|
<div class="modal-dialog {{ state().fullscreen ? 'modal-fullscreen' : '' }}">
|
|
353
396
|
<div class="modal-content">
|
|
354
|
-
<ng-template [auSlot]="state().
|
|
397
|
+
<ng-template [auSlot]="state().structure" [auSlotProps]="{state: state(), widget}"></ng-template>
|
|
355
398
|
</div>
|
|
356
399
|
</div>
|
|
357
400
|
</div>
|
|
@@ -394,21 +437,21 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
394
437
|
}], fullscreen: [{
|
|
395
438
|
type: Input,
|
|
396
439
|
args: [{ alias: 'auFullscreen', transform: auBooleanAttribute }]
|
|
397
|
-
}],
|
|
440
|
+
}], structure: [{
|
|
398
441
|
type: Input,
|
|
399
|
-
args: ['
|
|
442
|
+
args: ['auStructure']
|
|
400
443
|
}], slotStructureFromContent: [{
|
|
401
444
|
type: ContentChild,
|
|
402
445
|
args: [ModalStructureDirective, { static: false }]
|
|
403
|
-
}],
|
|
446
|
+
}], header: [{
|
|
404
447
|
type: Input,
|
|
405
|
-
args: ['
|
|
448
|
+
args: ['auHeader']
|
|
406
449
|
}], slotHeaderFromContent: [{
|
|
407
450
|
type: ContentChild,
|
|
408
451
|
args: [ModalHeaderDirective, { static: false }]
|
|
409
|
-
}],
|
|
452
|
+
}], title: [{
|
|
410
453
|
type: Input,
|
|
411
|
-
args: ['
|
|
454
|
+
args: ['auTitle']
|
|
412
455
|
}], slotTitleFromContent: [{
|
|
413
456
|
type: ContentChild,
|
|
414
457
|
args: [ModalTitleDirective, { static: false }]
|
|
@@ -418,9 +461,9 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
418
461
|
}], slotDefaultFromContent: [{
|
|
419
462
|
type: ContentChild,
|
|
420
463
|
args: [ModalBodyDirective, { static: false }]
|
|
421
|
-
}],
|
|
464
|
+
}], footer: [{
|
|
422
465
|
type: Input,
|
|
423
|
-
args: ['
|
|
466
|
+
args: ['auFooter']
|
|
424
467
|
}], slotFooterFromContent: [{
|
|
425
468
|
type: ContentChild,
|
|
426
469
|
args: [ModalFooterDirective, { static: false }]
|
|
@@ -442,8 +485,17 @@ class ModalComponent extends BaseWidgetDirective {
|
|
|
442
485
|
}] }); })();
|
|
443
486
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalComponent, { className: "ModalComponent", filePath: "components/modal/modal.component.ts", lineNumber: 161 }); })();
|
|
444
487
|
|
|
445
|
-
|
|
446
|
-
|
|
488
|
+
/**
|
|
489
|
+
* Retrieve a shallow copy of the default Pagination config
|
|
490
|
+
* @returns the default Pagination config
|
|
491
|
+
*/
|
|
492
|
+
const export_getPaginationDefaultConfig = getPaginationDefaultConfig;
|
|
493
|
+
/**
|
|
494
|
+
* Create a PaginationWidget with given config props
|
|
495
|
+
* @param config - an optional alert config
|
|
496
|
+
* @returns a PaginationWidget
|
|
497
|
+
*/
|
|
498
|
+
const export_createPagination = createPagination;
|
|
447
499
|
|
|
448
500
|
const _c0$7 = ["pages"];
|
|
449
501
|
const _c1$7 = ["structure"];
|
|
@@ -465,7 +517,7 @@ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_1_Templ
|
|
|
465
517
|
const state_r2 = ctx_r0.state;
|
|
466
518
|
const widget_r3 = ctx_r0.widget;
|
|
467
519
|
i0.ɵɵadvance();
|
|
468
|
-
i0.ɵɵproperty("auSlot", state_r2.
|
|
520
|
+
i0.ɵɵproperty("auSlot", state_r2.ellipsisLabel)("auSlotProps", i0.ɵɵpureFunction2(3, _c2$7, state_r2, widget_r3));
|
|
469
521
|
i0.ɵɵadvance(2);
|
|
470
522
|
i0.ɵɵtextInterpolate(state_r2.ariaEllipsisLabel);
|
|
471
523
|
} }
|
|
@@ -490,7 +542,7 @@ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_Templ
|
|
|
490
542
|
const widget_r3 = ctx_r0.widget;
|
|
491
543
|
i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(6, _c4$2, widget_r3.directives.pageLink, i0.ɵɵpureFunction1(4, _c3$6, page_r4)));
|
|
492
544
|
i0.ɵɵadvance();
|
|
493
|
-
i0.ɵɵproperty("auSlot", state_r2.
|
|
545
|
+
i0.ɵɵproperty("auSlot", state_r2.numberLabel)("auSlotProps", i0.ɵɵpureFunction3(9, _c5$1, state_r2, widget_r3, page_r4));
|
|
494
546
|
i0.ɵɵadvance();
|
|
495
547
|
i0.ɵɵconditional(state_r2.page === page_r4 ? 2 : -1);
|
|
496
548
|
} }
|
|
@@ -524,7 +576,7 @@ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_1_Template(rf
|
|
|
524
576
|
i0.ɵɵadvance();
|
|
525
577
|
i0.ɵɵproperty("auUse", widget_r7.directives.pageFirst);
|
|
526
578
|
i0.ɵɵadvance(2);
|
|
527
|
-
i0.ɵɵproperty("auSlot", state_r6.
|
|
579
|
+
i0.ɵɵproperty("auSlot", state_r6.firstPageLabel)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
|
|
528
580
|
} }
|
|
529
581
|
function PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_ng_template_3_Template(rf, ctx) { }
|
|
530
582
|
function PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -539,7 +591,7 @@ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_Template(rf
|
|
|
539
591
|
i0.ɵɵadvance();
|
|
540
592
|
i0.ɵɵproperty("auUse", widget_r7.directives.pagePrev);
|
|
541
593
|
i0.ɵɵadvance(2);
|
|
542
|
-
i0.ɵɵproperty("auSlot", state_r6.
|
|
594
|
+
i0.ɵɵproperty("auSlot", state_r6.previousPageLabel)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
|
|
543
595
|
} }
|
|
544
596
|
function PaginationDefaultSlotsComponent_ng_template_2_ng_template_3_Template(rf, ctx) { }
|
|
545
597
|
function PaginationDefaultSlotsComponent_ng_template_2_Conditional_4_ng_template_3_Template(rf, ctx) { }
|
|
@@ -555,7 +607,7 @@ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_4_Template(rf
|
|
|
555
607
|
i0.ɵɵadvance();
|
|
556
608
|
i0.ɵɵproperty("auUse", widget_r7.directives.pageNext);
|
|
557
609
|
i0.ɵɵadvance(2);
|
|
558
|
-
i0.ɵɵproperty("auSlot", state_r6.
|
|
610
|
+
i0.ɵɵproperty("auSlot", state_r6.nextPageLabel)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
|
|
559
611
|
} }
|
|
560
612
|
function PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_ng_template_3_Template(rf, ctx) { }
|
|
561
613
|
function PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -570,7 +622,7 @@ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_Template(rf
|
|
|
570
622
|
i0.ɵɵadvance();
|
|
571
623
|
i0.ɵɵproperty("auUse", widget_r7.directives.pageLast);
|
|
572
624
|
i0.ɵɵadvance(2);
|
|
573
|
-
i0.ɵɵproperty("auSlot", state_r6.
|
|
625
|
+
i0.ɵɵproperty("auSlot", state_r6.lastPageLabel)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
|
|
574
626
|
} }
|
|
575
627
|
function PaginationDefaultSlotsComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
576
628
|
i0.ɵɵelementStart(0, "ul");
|
|
@@ -588,7 +640,7 @@ function PaginationDefaultSlotsComponent_ng_template_2_Template(rf, ctx) { if (r
|
|
|
588
640
|
i0.ɵɵadvance();
|
|
589
641
|
i0.ɵɵconditional(state_r6.directionLinks ? 2 : -1);
|
|
590
642
|
i0.ɵɵadvance();
|
|
591
|
-
i0.ɵɵproperty("auSlot", state_r6.
|
|
643
|
+
i0.ɵɵproperty("auSlot", state_r6.pagesDisplay)("auSlotProps", i0.ɵɵpureFunction2(9, _c6$1, widget_r7, state_r6));
|
|
592
644
|
i0.ɵɵadvance();
|
|
593
645
|
i0.ɵɵconditional(state_r6.directionLinks ? 4 : -1);
|
|
594
646
|
i0.ɵɵadvance();
|
|
@@ -759,12 +811,12 @@ class PaginationDefaultSlotsComponent {
|
|
|
759
811
|
<li class="page-item" [class.active]="page === state.page" [class.disabled]="page === -1 || state.disabled">
|
|
760
812
|
@if (page === -1) {
|
|
761
813
|
<div class="page-link au-ellipsis" aria-hidden="true">
|
|
762
|
-
<ng-template [auSlot]="state.
|
|
814
|
+
<ng-template [auSlot]="state.ellipsisLabel" [auSlotProps]="{state, widget}"></ng-template>
|
|
763
815
|
</div>
|
|
764
816
|
<span class="visually-hidden">{{ state.ariaEllipsisLabel }}</span>
|
|
765
817
|
} @else {
|
|
766
818
|
<a class="page-link" [auUse]="[widget.directives.pageLink, {page}]">
|
|
767
|
-
<ng-template [auSlot]="state.
|
|
819
|
+
<ng-template [auSlot]="state.numberLabel" [auSlotProps]="{state, widget, displayedPage: page}"></ng-template>
|
|
768
820
|
@if (state.page === page) {
|
|
769
821
|
<span class="visually-hidden">{{ state.activeLabel }}</span>
|
|
770
822
|
}
|
|
@@ -779,7 +831,7 @@ class PaginationDefaultSlotsComponent {
|
|
|
779
831
|
<li class="page-item" [class.disabled]="state.previousDisabled">
|
|
780
832
|
<a class="page-link" [auUse]="widget.directives.pageFirst">
|
|
781
833
|
<span aria-hidden="true">
|
|
782
|
-
<ng-template [auSlot]="state.
|
|
834
|
+
<ng-template [auSlot]="state.firstPageLabel" [auSlotProps]="{widget, state}"></ng-template>
|
|
783
835
|
</span>
|
|
784
836
|
</a>
|
|
785
837
|
</li>
|
|
@@ -788,17 +840,17 @@ class PaginationDefaultSlotsComponent {
|
|
|
788
840
|
<li class="page-item" [class.disabled]="state.previousDisabled">
|
|
789
841
|
<a class="page-link" [auUse]="widget.directives.pagePrev">
|
|
790
842
|
<span aria-hidden="true">
|
|
791
|
-
<ng-template [auSlot]="state.
|
|
843
|
+
<ng-template [auSlot]="state.previousPageLabel" [auSlotProps]="{widget, state}"></ng-template>
|
|
792
844
|
</span>
|
|
793
845
|
</a>
|
|
794
846
|
</li>
|
|
795
847
|
}
|
|
796
|
-
<ng-template [auSlot]="state.
|
|
848
|
+
<ng-template [auSlot]="state.pagesDisplay" [auSlotProps]="{widget, state}"></ng-template>
|
|
797
849
|
@if (state.directionLinks) {
|
|
798
850
|
<li class="page-item" [class.disabled]="state.nextDisabled">
|
|
799
851
|
<a class="page-link" [auUse]="widget.directives.pageNext">
|
|
800
852
|
<span aria-hidden="true">
|
|
801
|
-
<ng-template [auSlot]="state.
|
|
853
|
+
<ng-template [auSlot]="state.nextPageLabel" [auSlotProps]="{widget, state}"></ng-template>
|
|
802
854
|
</span>
|
|
803
855
|
</a>
|
|
804
856
|
</li>
|
|
@@ -807,7 +859,7 @@ class PaginationDefaultSlotsComponent {
|
|
|
807
859
|
<li class="page-item" [class.disabled]="state.nextDisabled">
|
|
808
860
|
<a class="page-link" [auUse]="widget.directives.pageLast">
|
|
809
861
|
<span aria-hidden="true">
|
|
810
|
-
<ng-template [auSlot]="state.
|
|
862
|
+
<ng-template [auSlot]="state.lastPageLabel" [auSlotProps]="{widget, state}"></ng-template>
|
|
811
863
|
</span>
|
|
812
864
|
</a>
|
|
813
865
|
</li>
|
|
@@ -834,14 +886,14 @@ const paginationDefaultSlotPages = new ComponentTemplate(PaginationDefaultSlotsC
|
|
|
834
886
|
*/
|
|
835
887
|
const paginationDefaultSlotStructure = new ComponentTemplate(PaginationDefaultSlotsComponent, 'structure');
|
|
836
888
|
const defaultConfig$5 = {
|
|
837
|
-
|
|
838
|
-
|
|
889
|
+
structure: paginationDefaultSlotStructure,
|
|
890
|
+
pagesDisplay: paginationDefaultSlotPages,
|
|
839
891
|
};
|
|
840
892
|
class PaginationComponent extends BaseWidgetDirective {
|
|
841
893
|
constructor() {
|
|
842
894
|
super(...arguments);
|
|
843
895
|
this._widget = callWidgetFactory({
|
|
844
|
-
factory:
|
|
896
|
+
factory: export_createPagination,
|
|
845
897
|
widgetName: 'pagination',
|
|
846
898
|
defaultConfig: defaultConfig$5,
|
|
847
899
|
events: {
|
|
@@ -854,19 +906,23 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
854
906
|
* Event payload is the number of the newly selected page.
|
|
855
907
|
*
|
|
856
908
|
* Page numbers start with `1`.
|
|
909
|
+
* @defaultValue
|
|
910
|
+
* ```ts
|
|
911
|
+
* () => {}
|
|
912
|
+
* ```
|
|
857
913
|
*/
|
|
858
914
|
this.pageChange = new EventEmitter();
|
|
859
915
|
}
|
|
860
916
|
ngAfterContentChecked() {
|
|
861
917
|
this._widget.patchSlots({
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
918
|
+
structure: this.slotStructureFromContent?.templateRef,
|
|
919
|
+
ellipsisLabel: this.slotEllipsisFromContent?.templateRef,
|
|
920
|
+
firstPageLabel: this.slotFirstFromContent?.templateRef,
|
|
921
|
+
previousPageLabel: this.slotPreviousFromContent?.templateRef,
|
|
922
|
+
nextPageLabel: this.slotNextFromContent?.templateRef,
|
|
923
|
+
lastPageLabel: this.slotLastFromContent?.templateRef,
|
|
924
|
+
pagesDisplay: this.slotPagesFromContent?.templateRef,
|
|
925
|
+
numberLabel: this.slotNumberLabelFromContent?.templateRef,
|
|
870
926
|
});
|
|
871
927
|
}
|
|
872
928
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵPaginationComponent_BaseFactory; return function PaginationComponent_Factory(t) { return (ɵPaginationComponent_BaseFactory || (ɵPaginationComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PaginationComponent)))(t || PaginationComponent); }; })(); }
|
|
@@ -891,10 +947,10 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
891
947
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
892
948
|
} }, hostVars: 1, hostBindings: function PaginationComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
893
949
|
i0.ɵɵattribute("aria-label", ctx.state().ariaLabel);
|
|
894
|
-
} }, inputs: { ariaPageLabel: [0, "auAriaPageLabel", "ariaPageLabel"], ariaLiveLabel: [0, "auAriaLiveLabel", "ariaLiveLabel"], ariaLabel: [0, "auAriaLabel", "ariaLabel"], activeLabel: [0, "auActiveLabel", "activeLabel"], ariaFirstLabel: [0, "auAriaFirstLabel", "ariaFirstLabel"], ariaPreviousLabel: [0, "auAriaPreviousLabel", "ariaPreviousLabel"], ariaNextLabel: [0, "auAriaNextLabel", "ariaNextLabel"], ariaLastLabel: [0, "auAriaLastLabel", "ariaLastLabel"], ariaEllipsisLabel: [0, "auAriaEllipsisLabel", "ariaEllipsisLabel"], pageLink: [0, "auPageLink", "pageLink"],
|
|
950
|
+
} }, inputs: { ariaPageLabel: [0, "auAriaPageLabel", "ariaPageLabel"], ariaLiveLabel: [0, "auAriaLiveLabel", "ariaLiveLabel"], ariaLabel: [0, "auAriaLabel", "ariaLabel"], activeLabel: [0, "auActiveLabel", "activeLabel"], ariaFirstLabel: [0, "auAriaFirstLabel", "ariaFirstLabel"], ariaPreviousLabel: [0, "auAriaPreviousLabel", "ariaPreviousLabel"], ariaNextLabel: [0, "auAriaNextLabel", "ariaNextLabel"], ariaLastLabel: [0, "auAriaLastLabel", "ariaLastLabel"], ariaEllipsisLabel: [0, "auAriaEllipsisLabel", "ariaEllipsisLabel"], pageLink: [0, "auPageLink", "pageLink"], ellipsisLabel: [0, "auEllipsisLabel", "ellipsisLabel"], firstPageLabel: [0, "auFirstPageLabel", "firstPageLabel"], previousPageLabel: [0, "auPreviousPageLabel", "previousPageLabel"], nextPageLabel: [0, "auNextPageLabel", "nextPageLabel"], lastPageLabel: [0, "auLastPageLabel", "lastPageLabel"], pagesDisplay: [0, "auPagesDisplay", "pagesDisplay"], numberLabel: [0, "auNumberLabel", "numberLabel"], structure: [0, "auStructure", "structure"], disabled: [2, "auDisabled", "disabled", auBooleanAttribute], boundaryLinks: [2, "auBoundaryLinks", "boundaryLinks", auBooleanAttribute], directionLinks: [2, "auDirectionLinks", "directionLinks", auBooleanAttribute], collectionSize: [2, "auCollectionSize", "collectionSize", auNumberAttribute], page: [2, "auPage", "page", auNumberAttribute], pageSize: [2, "auPageSize", "pageSize", auNumberAttribute], size: [0, "auSize", "size"], pagesFactory: [0, "auPagesFactory", "pagesFactory"], className: [0, "auClassName", "className"] }, outputs: { pageChange: "auPageChange" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c7$1, decls: 1, vars: 5, consts: [[3, "auSlotProps", "auSlot"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
895
951
|
i0.ɵɵtemplate(0, PaginationComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
896
952
|
} if (rf & 2) {
|
|
897
|
-
i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction2(2, _c2$7, ctx.state(), ctx.widget))("auSlot", ctx.state().
|
|
953
|
+
i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction2(2, _c2$7, ctx.state(), ctx.widget))("auSlot", ctx.state().structure);
|
|
898
954
|
} }, dependencies: [SlotDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
899
955
|
}
|
|
900
956
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
@@ -908,7 +964,7 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
908
964
|
'[attr.aria-label]': 'state().ariaLabel',
|
|
909
965
|
},
|
|
910
966
|
encapsulation: ViewEncapsulation.None,
|
|
911
|
-
template: `<ng-template [auSlotProps]="{state: state(), widget}" [auSlot]="state().
|
|
967
|
+
template: `<ng-template [auSlotProps]="{state: state(), widget}" [auSlot]="state().structure"></ng-template>`,
|
|
912
968
|
}]
|
|
913
969
|
}], null, { ariaPageLabel: [{
|
|
914
970
|
type: Input,
|
|
@@ -940,51 +996,51 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
940
996
|
}], pageLink: [{
|
|
941
997
|
type: Input,
|
|
942
998
|
args: ['auPageLink']
|
|
943
|
-
}],
|
|
999
|
+
}], ellipsisLabel: [{
|
|
944
1000
|
type: Input,
|
|
945
|
-
args: ['
|
|
1001
|
+
args: ['auEllipsisLabel']
|
|
946
1002
|
}], slotEllipsisFromContent: [{
|
|
947
1003
|
type: ContentChild,
|
|
948
1004
|
args: [PaginationEllipsisDirective, { static: false }]
|
|
949
|
-
}],
|
|
1005
|
+
}], firstPageLabel: [{
|
|
950
1006
|
type: Input,
|
|
951
|
-
args: ['
|
|
1007
|
+
args: ['auFirstPageLabel']
|
|
952
1008
|
}], slotFirstFromContent: [{
|
|
953
1009
|
type: ContentChild,
|
|
954
1010
|
args: [PaginationFirstDirective, { static: false }]
|
|
955
|
-
}],
|
|
1011
|
+
}], previousPageLabel: [{
|
|
956
1012
|
type: Input,
|
|
957
|
-
args: ['
|
|
1013
|
+
args: ['auPreviousPageLabel']
|
|
958
1014
|
}], slotPreviousFromContent: [{
|
|
959
1015
|
type: ContentChild,
|
|
960
1016
|
args: [PaginationPreviousDirective, { static: false }]
|
|
961
|
-
}],
|
|
1017
|
+
}], nextPageLabel: [{
|
|
962
1018
|
type: Input,
|
|
963
|
-
args: ['
|
|
1019
|
+
args: ['auNextPageLabel']
|
|
964
1020
|
}], slotNextFromContent: [{
|
|
965
1021
|
type: ContentChild,
|
|
966
1022
|
args: [PaginationNextDirective, { static: false }]
|
|
967
|
-
}],
|
|
1023
|
+
}], lastPageLabel: [{
|
|
968
1024
|
type: Input,
|
|
969
|
-
args: ['
|
|
1025
|
+
args: ['auLastPageLabel']
|
|
970
1026
|
}], slotLastFromContent: [{
|
|
971
1027
|
type: ContentChild,
|
|
972
1028
|
args: [PaginationLastDirective, { static: false }]
|
|
973
|
-
}],
|
|
1029
|
+
}], pagesDisplay: [{
|
|
974
1030
|
type: Input,
|
|
975
|
-
args: ['
|
|
1031
|
+
args: ['auPagesDisplay']
|
|
976
1032
|
}], slotPagesFromContent: [{
|
|
977
1033
|
type: ContentChild,
|
|
978
1034
|
args: [PaginationPagesDirective, { static: false }]
|
|
979
|
-
}],
|
|
1035
|
+
}], numberLabel: [{
|
|
980
1036
|
type: Input,
|
|
981
|
-
args: ['
|
|
1037
|
+
args: ['auNumberLabel']
|
|
982
1038
|
}], slotNumberLabelFromContent: [{
|
|
983
1039
|
type: ContentChild,
|
|
984
1040
|
args: [PaginationNumberDirective, { static: false }]
|
|
985
|
-
}],
|
|
1041
|
+
}], structure: [{
|
|
986
1042
|
type: Input,
|
|
987
|
-
args: ['
|
|
1043
|
+
args: ['auStructure']
|
|
988
1044
|
}], slotStructureFromContent: [{
|
|
989
1045
|
type: ContentChild,
|
|
990
1046
|
args: [PaginationStructureDirective, { static: false }]
|
|
@@ -1021,8 +1077,17 @@ class PaginationComponent extends BaseWidgetDirective {
|
|
|
1021
1077
|
}] }); })();
|
|
1022
1078
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 206 }); })();
|
|
1023
1079
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1080
|
+
/**
|
|
1081
|
+
* Retrieve a shallow copy of the default Rating config
|
|
1082
|
+
* @returns the default Rating config
|
|
1083
|
+
*/
|
|
1084
|
+
const export_getRatingDefaultConfig = getRatingDefaultConfig;
|
|
1085
|
+
/**
|
|
1086
|
+
* Create a RatingWidget with given config props
|
|
1087
|
+
* @param config - an optional rating config
|
|
1088
|
+
* @returns a RatingWidget
|
|
1089
|
+
*/
|
|
1090
|
+
const export_createRating = createRating;
|
|
1026
1091
|
|
|
1027
1092
|
const _c0$6 = ["auRating", ""];
|
|
1028
1093
|
const _c1$6 = a0 => ({ index: a0 });
|
|
@@ -1063,7 +1128,7 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1063
1128
|
constructor() {
|
|
1064
1129
|
super(...arguments);
|
|
1065
1130
|
this._widget = callWidgetFactory({
|
|
1066
|
-
factory:
|
|
1131
|
+
factory: export_createRating,
|
|
1067
1132
|
widgetName: 'rating',
|
|
1068
1133
|
events: {
|
|
1069
1134
|
onHover: (event) => this.hover.emit(event),
|
|
@@ -1083,18 +1148,33 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1083
1148
|
* An event emitted when the user is hovering over a given rating.
|
|
1084
1149
|
*
|
|
1085
1150
|
* Event payload is equal to the rating being hovered over.
|
|
1151
|
+
*
|
|
1152
|
+
* @defaultValue
|
|
1153
|
+
* ```ts
|
|
1154
|
+
* () => {}
|
|
1155
|
+
* ```
|
|
1086
1156
|
*/
|
|
1087
1157
|
this.hover = new EventEmitter();
|
|
1088
1158
|
/**
|
|
1089
1159
|
* An event emitted when the user stops hovering over a given rating.
|
|
1090
1160
|
*
|
|
1091
1161
|
* Event payload is equal to the rating of the last item being hovered over.
|
|
1162
|
+
*
|
|
1163
|
+
* @defaultValue
|
|
1164
|
+
* ```ts
|
|
1165
|
+
* () => {}
|
|
1166
|
+
* ```
|
|
1092
1167
|
*/
|
|
1093
1168
|
this.leave = new EventEmitter();
|
|
1094
1169
|
/**
|
|
1095
1170
|
* An event emitted when the rating is changed.
|
|
1096
1171
|
*
|
|
1097
1172
|
* Event payload is equal to the newly selected rating.
|
|
1173
|
+
*
|
|
1174
|
+
* @defaultValue
|
|
1175
|
+
* ```ts
|
|
1176
|
+
* () => {}
|
|
1177
|
+
* ```
|
|
1098
1178
|
*/
|
|
1099
1179
|
this.ratingChange = new EventEmitter();
|
|
1100
1180
|
}
|
|
@@ -1202,8 +1282,17 @@ class RatingComponent extends BaseWidgetDirective {
|
|
|
1202
1282
|
}] }); })();
|
|
1203
1283
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RatingComponent, { className: "RatingComponent", filePath: "components/rating/rating.component.ts", lineNumber: 58 }); })();
|
|
1204
1284
|
|
|
1205
|
-
|
|
1206
|
-
|
|
1285
|
+
/**
|
|
1286
|
+
* Retrieve a shallow copy of the default Select config
|
|
1287
|
+
* @returns the default Select config
|
|
1288
|
+
*/
|
|
1289
|
+
const export_getSelectDefaultConfig = getSelectDefaultConfig;
|
|
1290
|
+
/**
|
|
1291
|
+
* Creates a new select widget instance.
|
|
1292
|
+
* @param config - config of the modal, either as a store or as an object containing values or stores.
|
|
1293
|
+
* @returns a new select widget instance
|
|
1294
|
+
*/
|
|
1295
|
+
const export_createSelect = createSelect;
|
|
1207
1296
|
|
|
1208
1297
|
const _c0$5 = ["auSelect", ""];
|
|
1209
1298
|
const _c1$5 = (a0, a1) => [a0, a1];
|
|
@@ -1306,18 +1395,35 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1306
1395
|
super(...arguments);
|
|
1307
1396
|
/**
|
|
1308
1397
|
* Callback called when the text filter change
|
|
1398
|
+
* @param text - Filtered text
|
|
1399
|
+
*
|
|
1400
|
+
* @defaultValue
|
|
1401
|
+
* ```ts
|
|
1402
|
+
* () => {}
|
|
1403
|
+
* ```
|
|
1309
1404
|
*/
|
|
1310
1405
|
this.filterTextChange = new EventEmitter();
|
|
1311
1406
|
/**
|
|
1312
1407
|
* Callback called when the selection change
|
|
1408
|
+
*
|
|
1409
|
+
* @defaultValue
|
|
1410
|
+
* ```ts
|
|
1411
|
+
* () => {}
|
|
1412
|
+
* ```
|
|
1313
1413
|
*/
|
|
1314
1414
|
this.selectedChange = new EventEmitter();
|
|
1315
1415
|
/**
|
|
1316
1416
|
* Callback called dropdown open state change
|
|
1417
|
+
* @param isOpen - updated open state
|
|
1418
|
+
*
|
|
1419
|
+
* @defaultValue
|
|
1420
|
+
* ```ts
|
|
1421
|
+
* () => {}
|
|
1422
|
+
* ```
|
|
1317
1423
|
*/
|
|
1318
1424
|
this.openChange = new EventEmitter();
|
|
1319
1425
|
this._widget = callWidgetFactory({
|
|
1320
|
-
factory:
|
|
1426
|
+
factory: export_createSelect,
|
|
1321
1427
|
widgetName: 'select',
|
|
1322
1428
|
events: {
|
|
1323
1429
|
onOpenChange: (event) => this.openChange.emit(event),
|
|
@@ -1480,8 +1586,17 @@ class SelectComponent extends BaseWidgetDirective {
|
|
|
1480
1586
|
}] }); })();
|
|
1481
1587
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "components/select/select.component.ts", lineNumber: 87 }); })();
|
|
1482
1588
|
|
|
1483
|
-
|
|
1484
|
-
|
|
1589
|
+
/**
|
|
1590
|
+
* Retrieve a shallow copy of the default Alert config
|
|
1591
|
+
* @returns the default Alert config
|
|
1592
|
+
*/
|
|
1593
|
+
const export_getAlertDefaultConfig = getAlertDefaultConfig;
|
|
1594
|
+
/**
|
|
1595
|
+
* Create an AlertWidget with given config props
|
|
1596
|
+
* @param config - an optional alert config
|
|
1597
|
+
* @returns an AlertWidget
|
|
1598
|
+
*/
|
|
1599
|
+
const export_createAlert = createAlert;
|
|
1485
1600
|
|
|
1486
1601
|
const _c0$4 = ["structure"];
|
|
1487
1602
|
const _c1$4 = (a0, a1) => ({ state: a0, widget: a1 });
|
|
@@ -1593,19 +1708,34 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1593
1708
|
super(...arguments);
|
|
1594
1709
|
/**
|
|
1595
1710
|
* Callback called when the alert visibility changed.
|
|
1711
|
+
*
|
|
1712
|
+
* @defaultValue
|
|
1713
|
+
* ```ts
|
|
1714
|
+
* () => {}
|
|
1715
|
+
* ```
|
|
1596
1716
|
*/
|
|
1597
1717
|
this.visibleChange = new EventEmitter();
|
|
1598
1718
|
/**
|
|
1599
1719
|
* Callback called when the alert is hidden.
|
|
1720
|
+
*
|
|
1721
|
+
* @defaultValue
|
|
1722
|
+
* ```ts
|
|
1723
|
+
* () => {}
|
|
1724
|
+
* ```
|
|
1600
1725
|
*/
|
|
1601
1726
|
this.hidden = new EventEmitter();
|
|
1602
1727
|
/**
|
|
1603
1728
|
* Callback called when the alert is shown.
|
|
1729
|
+
*
|
|
1730
|
+
* @defaultValue
|
|
1731
|
+
* ```ts
|
|
1732
|
+
* () => {}
|
|
1733
|
+
* ```
|
|
1604
1734
|
*/
|
|
1605
1735
|
this.shown = new EventEmitter();
|
|
1606
1736
|
this.defaultSlots = writable(defaultConfig$4);
|
|
1607
1737
|
this._widget = callWidgetFactory({
|
|
1608
|
-
factory:
|
|
1738
|
+
factory: export_createAlert,
|
|
1609
1739
|
widgetName: 'alert',
|
|
1610
1740
|
defaultConfig: this.defaultSlots,
|
|
1611
1741
|
events: {
|
|
@@ -1707,9 +1837,33 @@ class AlertComponent extends BaseWidgetDirective {
|
|
|
1707
1837
|
}] }); })();
|
|
1708
1838
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/alert/alert.component.ts", lineNumber: 87 }); })();
|
|
1709
1839
|
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1840
|
+
/**
|
|
1841
|
+
* Retrieve a shallow copy of the default accordion config
|
|
1842
|
+
* @returns the default accordion config
|
|
1843
|
+
*/
|
|
1844
|
+
const export_getAccordionDefaultConfig = getAccordionDefaultConfig;
|
|
1845
|
+
/**
|
|
1846
|
+
* Create an AccordionItemWidget with given config props
|
|
1847
|
+
* @param config - an optional AccordionItem config
|
|
1848
|
+
* @returns an AccordionItemWidget
|
|
1849
|
+
*/
|
|
1850
|
+
const export_createAccordionItem = createAccordionItem;
|
|
1851
|
+
/**
|
|
1852
|
+
* Create an AccordionWidget with given config props
|
|
1853
|
+
* @param config - an optional accordion config
|
|
1854
|
+
* @returns an AccordionWidget
|
|
1855
|
+
*/
|
|
1856
|
+
const export_createAccordion = createAccordion;
|
|
1857
|
+
/**
|
|
1858
|
+
* Create an accordion WidgetFactory based on a item factory and the list of item props that should inherit from the parent accordion
|
|
1859
|
+
*
|
|
1860
|
+
* @param itemFactory - the item factory
|
|
1861
|
+
* @param accordionItemProps - the list of item props
|
|
1862
|
+
* @param accordionConfig - the default accordion config
|
|
1863
|
+
* @param accordionValidator - the validator of props
|
|
1864
|
+
* @returns the accordion widget factory
|
|
1865
|
+
*/
|
|
1866
|
+
const export_factoryCreateAccordion = factoryCreateAccordion;
|
|
1713
1867
|
|
|
1714
1868
|
const _c0$3 = ["structure"];
|
|
1715
1869
|
const _c1$3 = (a0, a1) => ({ state: a0, widget: a1 });
|
|
@@ -2172,16 +2326,26 @@ class AccordionDirective extends BaseWidgetDirective {
|
|
|
2172
2326
|
* An event fired when an item is shown.
|
|
2173
2327
|
*
|
|
2174
2328
|
* Event payload is the id of the item.
|
|
2329
|
+
*
|
|
2330
|
+
* @defaultValue
|
|
2331
|
+
* ```ts
|
|
2332
|
+
* () => {}
|
|
2333
|
+
* ```
|
|
2175
2334
|
*/
|
|
2176
2335
|
this.itemShown = new EventEmitter();
|
|
2177
2336
|
/**
|
|
2178
2337
|
* An event fired when an item is hidden.
|
|
2179
2338
|
*
|
|
2180
2339
|
* Event payload is the id of the item.
|
|
2340
|
+
*
|
|
2341
|
+
* @defaultValue
|
|
2342
|
+
* ```ts
|
|
2343
|
+
* () => {}
|
|
2344
|
+
* ```
|
|
2181
2345
|
*/
|
|
2182
2346
|
this.itemHidden = new EventEmitter();
|
|
2183
2347
|
this._widget = callWidgetFactory({
|
|
2184
|
-
factory:
|
|
2348
|
+
factory: export_createAccordion,
|
|
2185
2349
|
widgetName: 'accordion',
|
|
2186
2350
|
events: {
|
|
2187
2351
|
onItemShown: (id) => this.itemShown.emit(id),
|
|
@@ -2249,8 +2413,17 @@ class AccordionDirective extends BaseWidgetDirective {
|
|
|
2249
2413
|
args: ['auItemHeadingTag']
|
|
2250
2414
|
}] }); })();
|
|
2251
2415
|
|
|
2252
|
-
|
|
2253
|
-
|
|
2416
|
+
/**
|
|
2417
|
+
* Retrieve a shallow copy of the default Slider config
|
|
2418
|
+
* @returns the default Slider config
|
|
2419
|
+
*/
|
|
2420
|
+
const export_getSliderDefaultConfig = getSliderDefaultConfig;
|
|
2421
|
+
/**
|
|
2422
|
+
* Create a Slider with given config props
|
|
2423
|
+
* @param config - an optional slider config
|
|
2424
|
+
* @returns a SliderWidget
|
|
2425
|
+
*/
|
|
2426
|
+
const export_createSlider = createSlider;
|
|
2254
2427
|
|
|
2255
2428
|
const _c0$2 = ["handle"];
|
|
2256
2429
|
const _c1$2 = a0 => ({ item: a0 });
|
|
@@ -2533,7 +2706,7 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2533
2706
|
super(...arguments);
|
|
2534
2707
|
this.defaultSlots = writable(defaultConfig$2);
|
|
2535
2708
|
this._widget = callWidgetFactory({
|
|
2536
|
-
factory:
|
|
2709
|
+
factory: export_createSlider,
|
|
2537
2710
|
widgetName: 'slider',
|
|
2538
2711
|
defaultConfig: this.defaultSlots,
|
|
2539
2712
|
events: {
|
|
@@ -2551,6 +2724,11 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2551
2724
|
* An event emitted when slider values are changed
|
|
2552
2725
|
*
|
|
2553
2726
|
* Event payload equals to the updated slider values
|
|
2727
|
+
*
|
|
2728
|
+
* @defaultValue
|
|
2729
|
+
* ```ts
|
|
2730
|
+
* () => {}
|
|
2731
|
+
* ```
|
|
2554
2732
|
*/
|
|
2555
2733
|
this.valuesChange = new EventEmitter();
|
|
2556
2734
|
/**
|
|
@@ -2687,8 +2865,17 @@ class SliderComponent extends BaseWidgetDirective {
|
|
|
2687
2865
|
}] }); })();
|
|
2688
2866
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber: 147 }); })();
|
|
2689
2867
|
|
|
2690
|
-
|
|
2691
|
-
|
|
2868
|
+
/**
|
|
2869
|
+
* Retrieve a shallow copy of the default Progressbar config
|
|
2870
|
+
* @returns the default Progressbar config
|
|
2871
|
+
*/
|
|
2872
|
+
const export_getProgressbarDefaultConfig = getProgressbarDefaultConfig;
|
|
2873
|
+
/**
|
|
2874
|
+
* Create a Progressbar with given config props
|
|
2875
|
+
* @param config - an optional progressbar config
|
|
2876
|
+
* @returns a ProgressbarWidget
|
|
2877
|
+
*/
|
|
2878
|
+
const export_createProgressbar = createProgressbar;
|
|
2692
2879
|
|
|
2693
2880
|
const _c0$1 = ["structure"];
|
|
2694
2881
|
const _c1$1 = (a0, a1) => ({ state: a0, widget: a1 });
|
|
@@ -2768,14 +2955,14 @@ class ProgressbarDefaultSlotsComponent {
|
|
|
2768
2955
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarDefaultSlotsComponent, { className: "ProgressbarDefaultSlotsComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 49 }); })();
|
|
2769
2956
|
const progressbarDefaultSlotStructure = new ComponentTemplate(ProgressbarDefaultSlotsComponent, 'structure');
|
|
2770
2957
|
const defaultConfig$1 = {
|
|
2771
|
-
|
|
2958
|
+
structure: progressbarDefaultSlotStructure,
|
|
2772
2959
|
};
|
|
2773
2960
|
class ProgressbarComponent extends BaseWidgetDirective {
|
|
2774
2961
|
constructor() {
|
|
2775
2962
|
super(...arguments);
|
|
2776
2963
|
this.defaultSlots = writable(defaultConfig$1);
|
|
2777
2964
|
this._widget = callWidgetFactory({
|
|
2778
|
-
factory:
|
|
2965
|
+
factory: export_createProgressbar,
|
|
2779
2966
|
widgetName: 'progressbar',
|
|
2780
2967
|
defaultConfig: this.defaultSlots,
|
|
2781
2968
|
afterInit: () => {
|
|
@@ -2786,7 +2973,7 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
2786
2973
|
ngAfterContentChecked() {
|
|
2787
2974
|
this._widget.patchSlots({
|
|
2788
2975
|
children: undefined,
|
|
2789
|
-
|
|
2976
|
+
structure: this.slotStructureFromContent?.templateRef,
|
|
2790
2977
|
});
|
|
2791
2978
|
}
|
|
2792
2979
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵProgressbarComponent_BaseFactory; return function ProgressbarComponent_Factory(t) { return (ɵProgressbarComponent_BaseFactory || (ɵProgressbarComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ProgressbarComponent)))(t || ProgressbarComponent); }; })(); }
|
|
@@ -2797,13 +2984,13 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
2797
2984
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
|
|
2798
2985
|
} }, hostVars: 2, hostBindings: function ProgressbarComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
2799
2986
|
i0.ɵɵclassMap(ctx.state().className);
|
|
2800
|
-
} }, inputs: { ariaLabel: [0, "auAriaLabel", "ariaLabel"], min: [2, "auMin", "min", auNumberAttribute], max: [2, "auMax", "max", auNumberAttribute], value: [2, "auValue", "value", auNumberAttribute], className: [0, "auClassName", "className"], children: [0, "auChildren", "children"],
|
|
2987
|
+
} }, inputs: { ariaLabel: [0, "auAriaLabel", "ariaLabel"], min: [2, "auMin", "min", auNumberAttribute], max: [2, "auMax", "max", auNumberAttribute], value: [2, "auValue", "value", auNumberAttribute], className: [0, "auClassName", "className"], children: [0, "auChildren", "children"], structure: [0, "auStructure", "structure"], height: [0, "auHeight", "height"], animated: [2, "auAnimated", "animated", auBooleanAttribute], striped: [2, "auStriped", "striped", auBooleanAttribute], ariaValueTextFn: [0, "auAriaValueTextFn", "ariaValueTextFn"], type: [0, "auType", "type"] }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c2$1, ngContentSelectors: _c3$1, decls: 2, vars: 6, consts: [[3, "auContentAsSlot"], [3, "auSlot", "auSlotProps"]], template: function ProgressbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2801
2988
|
i0.ɵɵprojectionDef();
|
|
2802
2989
|
i0.ɵɵtemplate(0, ProgressbarComponent_ng_template_0_Template, 1, 0, "ng-template", 0)(1, ProgressbarComponent_ng_template_1_Template, 0, 0, "ng-template", 1);
|
|
2803
2990
|
} if (rf & 2) {
|
|
2804
2991
|
i0.ɵɵproperty("auContentAsSlot", ctx.defaultSlots);
|
|
2805
2992
|
i0.ɵɵadvance();
|
|
2806
|
-
i0.ɵɵproperty("auSlot", ctx.state().
|
|
2993
|
+
i0.ɵɵproperty("auSlot", ctx.state().structure)("auSlotProps", i0.ɵɵpureFunction2(3, _c1$1, ctx.state(), ctx.widget));
|
|
2807
2994
|
} }, dependencies: [SlotDirective, ContentAsSlotDirective], encapsulation: 2, changeDetection: 0 }); }
|
|
2808
2995
|
}
|
|
2809
2996
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarComponent, [{
|
|
@@ -2818,7 +3005,7 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
2818
3005
|
},
|
|
2819
3006
|
template: `
|
|
2820
3007
|
<ng-template [auContentAsSlot]="defaultSlots"><ng-content></ng-content></ng-template>
|
|
2821
|
-
<ng-template [auSlot]="state().
|
|
3008
|
+
<ng-template [auSlot]="state().structure" [auSlotProps]="{state: state(), widget}"></ng-template>
|
|
2822
3009
|
`,
|
|
2823
3010
|
}]
|
|
2824
3011
|
}], null, { ariaLabel: [{
|
|
@@ -2839,9 +3026,9 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
2839
3026
|
}], children: [{
|
|
2840
3027
|
type: Input,
|
|
2841
3028
|
args: ['auChildren']
|
|
2842
|
-
}],
|
|
3029
|
+
}], structure: [{
|
|
2843
3030
|
type: Input,
|
|
2844
|
-
args: ['
|
|
3031
|
+
args: ['auStructure']
|
|
2845
3032
|
}], slotStructureFromContent: [{
|
|
2846
3033
|
type: ContentChild,
|
|
2847
3034
|
args: [ProgressbarStructureDirective, { static: false }]
|
|
@@ -2863,8 +3050,17 @@ class ProgressbarComponent extends BaseWidgetDirective {
|
|
|
2863
3050
|
}] }); })();
|
|
2864
3051
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarComponent, { className: "ProgressbarComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 73 }); })();
|
|
2865
3052
|
|
|
2866
|
-
|
|
2867
|
-
|
|
3053
|
+
/**
|
|
3054
|
+
* Retrieve a shallow copy of the default Toast config
|
|
3055
|
+
* @returns the default Toast config
|
|
3056
|
+
*/
|
|
3057
|
+
const export_getToastDefaultConfig = getToastDefaultConfig;
|
|
3058
|
+
/**
|
|
3059
|
+
* Create an ToastWidget with given config props
|
|
3060
|
+
* @param config - an optional alert config
|
|
3061
|
+
* @returns an ToastWidget
|
|
3062
|
+
*/
|
|
3063
|
+
const export_createToast = createToast;
|
|
2868
3064
|
|
|
2869
3065
|
const _c0 = ["structure"];
|
|
2870
3066
|
const _c1 = (a0, a1) => ({ state: a0, widget: a1 });
|
|
@@ -3018,19 +3214,34 @@ class ToastComponent extends BaseWidgetDirective {
|
|
|
3018
3214
|
super(...arguments);
|
|
3019
3215
|
/**
|
|
3020
3216
|
* Callback called when the alert visibility changed.
|
|
3217
|
+
*
|
|
3218
|
+
* @defaultValue
|
|
3219
|
+
* ```ts
|
|
3220
|
+
* () => {}
|
|
3221
|
+
* ```
|
|
3021
3222
|
*/
|
|
3022
3223
|
this.visibleChange = new EventEmitter();
|
|
3023
3224
|
/**
|
|
3024
3225
|
* Callback called when the alert is hidden.
|
|
3226
|
+
*
|
|
3227
|
+
* @defaultValue
|
|
3228
|
+
* ```ts
|
|
3229
|
+
* () => {}
|
|
3230
|
+
* ```
|
|
3025
3231
|
*/
|
|
3026
3232
|
this.hidden = new EventEmitter();
|
|
3027
3233
|
/**
|
|
3028
3234
|
* Callback called when the alert is shown.
|
|
3235
|
+
*
|
|
3236
|
+
* @defaultValue
|
|
3237
|
+
* ```ts
|
|
3238
|
+
* () => {}
|
|
3239
|
+
* ```
|
|
3029
3240
|
*/
|
|
3030
3241
|
this.shown = new EventEmitter();
|
|
3031
3242
|
this.defaultSlots = writable(defaultConfig);
|
|
3032
3243
|
this._widget = callWidgetFactory({
|
|
3033
|
-
factory:
|
|
3244
|
+
factory: export_createToast,
|
|
3034
3245
|
widgetName: 'toast',
|
|
3035
3246
|
defaultConfig: this.defaultSlots,
|
|
3036
3247
|
events: {
|
|
@@ -3335,5 +3546,5 @@ class ModalService {
|
|
|
3335
3546
|
* Generated bundle index. Do not edit.
|
|
3336
3547
|
*/
|
|
3337
3548
|
|
|
3338
|
-
export { AccordionBodyDirective, AccordionDirective, AccordionHeaderDirective, AccordionItemComponent, AccordionItemDefaultSlotsComponent, AccordionItemStructureDirective, AgnosUIAngularModule, AlertBodyDirective, AlertComponent, AlertDefaultSlotsComponent, AlertStructureDirective, ModalBodyDirective, ModalComponent, ModalDefaultSlotsComponent, ModalFooterDirective, ModalHeaderDirective, ModalService, ModalStructureDirective, ModalTitleDirective, PaginationComponent, PaginationDefaultSlotsComponent, PaginationEllipsisDirective, PaginationFirstDirective, PaginationLastDirective, PaginationNextDirective, PaginationNumberDirective, PaginationPagesDirective, PaginationPreviousDirective, PaginationStructureDirective, ProgressbarComponent, ProgressbarDefaultSlotsComponent, ProgressbarStructureDirective, RatingComponent, RatingStarDirective, SelectBadgeLabelDirective, SelectComponent, SelectItemLabelDirective, SliderComponent, SliderDefaultHandleSlotComponent, SliderDefaultStructureSlotComponent, SliderHandleDirective, SliderLabelDirective, SliderStructureDirective, ToastBodyDirective, ToastComponent, ToastDefaultSlotsComponent, ToastHeaderDirective, ToastStructureDirective, accordionItemDefaultSlotItemStructure, alertDefaultSlotStructure, callWidgetFactory, createAccordion, createAccordionItem, createAlert, createModal, createPagination, createProgressbar, createRating, createSelect, createSlider, createToast, getAccordionDefaultConfig, getAlertDefaultConfig, getModalDefaultConfig, getPaginationDefaultConfig, getProgressbarDefaultConfig, getRatingDefaultConfig, getSelectDefaultConfig, getSliderDefaultConfig, getToastDefaultConfig, injectWidgetConfig, injectWidgetsConfig, modalDefaultSlotHeader, modalDefaultSlotStructure, paginationDefaultSlotPages, paginationDefaultSlotStructure, progressbarDefaultSlotStructure, provideWidgetsConfig, sliderDefaultSlotHandle, sliderDefaultSlotStructure, toastDefaultSlotStructure, widgetsConfigInjectionToken };
|
|
3549
|
+
export { AccordionBodyDirective, AccordionDirective, AccordionHeaderDirective, AccordionItemComponent, AccordionItemDefaultSlotsComponent, AccordionItemStructureDirective, AgnosUIAngularModule, AlertBodyDirective, AlertComponent, AlertDefaultSlotsComponent, AlertStructureDirective, ModalBodyDirective, ModalComponent, ModalDefaultSlotsComponent, ModalFooterDirective, ModalHeaderDirective, ModalService, ModalStructureDirective, ModalTitleDirective, PaginationComponent, PaginationDefaultSlotsComponent, PaginationEllipsisDirective, PaginationFirstDirective, PaginationLastDirective, PaginationNextDirective, PaginationNumberDirective, PaginationPagesDirective, PaginationPreviousDirective, PaginationStructureDirective, ProgressbarComponent, ProgressbarDefaultSlotsComponent, ProgressbarStructureDirective, RatingComponent, RatingStarDirective, SelectBadgeLabelDirective, SelectComponent, SelectItemLabelDirective, SliderComponent, SliderDefaultHandleSlotComponent, SliderDefaultStructureSlotComponent, SliderHandleDirective, SliderLabelDirective, SliderStructureDirective, ToastBodyDirective, ToastComponent, ToastDefaultSlotsComponent, ToastHeaderDirective, ToastStructureDirective, accordionItemDefaultSlotItemStructure, alertDefaultSlotStructure, callWidgetFactory, export_createAccordion as createAccordion, export_createAccordionItem as createAccordionItem, export_createAlert as createAlert, export_createModal as createModal, export_createPagination as createPagination, export_createProgressbar as createProgressbar, export_createRating as createRating, export_createSelect as createSelect, export_createSlider as createSlider, export_createToast as createToast, export_factoryCreateAccordion as factoryCreateAccordion, export_getAccordionDefaultConfig as getAccordionDefaultConfig, export_getAlertDefaultConfig as getAlertDefaultConfig, export_getModalDefaultConfig as getModalDefaultConfig, export_getPaginationDefaultConfig as getPaginationDefaultConfig, export_getProgressbarDefaultConfig as getProgressbarDefaultConfig, export_getRatingDefaultConfig as getRatingDefaultConfig, export_getSelectDefaultConfig as getSelectDefaultConfig, export_getSliderDefaultConfig as getSliderDefaultConfig, export_getToastDefaultConfig as getToastDefaultConfig, injectWidgetConfig, injectWidgetsConfig, export_modalCloseButtonClick as modalCloseButtonClick, modalDefaultSlotHeader, modalDefaultSlotStructure, export_modalOutsideClick as modalOutsideClick, paginationDefaultSlotPages, paginationDefaultSlotStructure, progressbarDefaultSlotStructure, provideWidgetsConfig, sliderDefaultSlotHandle, sliderDefaultSlotStructure, toastDefaultSlotStructure, widgetsConfigInjectionToken };
|
|
3339
3550
|
//# sourceMappingURL=agnos-ui-angular-bootstrap.mjs.map
|