@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.
Files changed (67) hide show
  1. package/README.md +15 -0
  2. package/agnos-ui-angular.module.d.ts +16 -0
  3. package/components/accordion/accordion.component.d.ts +239 -0
  4. package/components/accordion/accordion.d.ts +11 -0
  5. package/components/accordion/index.d.ts +2 -0
  6. package/components/alert/alert.component.d.ts +95 -0
  7. package/components/alert/alert.d.ts +7 -0
  8. package/components/alert/index.d.ts +2 -0
  9. package/components/modal/index.d.ts +3 -0
  10. package/components/modal/modal.component.d.ts +164 -0
  11. package/components/modal/modal.d.ts +9 -0
  12. package/components/modal/modal.service.d.ts +13 -0
  13. package/components/pagination/index.d.ts +2 -0
  14. package/components/pagination/pagination.component.d.ts +252 -0
  15. package/components/pagination/pagination.d.ts +8 -0
  16. package/components/progressbar/index.d.ts +2 -0
  17. package/components/progressbar/progressbar.component.d.ts +77 -0
  18. package/components/progressbar/progressbar.d.ts +7 -0
  19. package/components/rating/index.d.ts +2 -0
  20. package/components/rating/rating.component.d.ts +95 -0
  21. package/components/rating/rating.d.ts +6 -0
  22. package/components/select/index.d.ts +2 -0
  23. package/components/select/select.component.d.ts +107 -0
  24. package/components/select/select.d.ts +8 -0
  25. package/components/slider/index.d.ts +2 -0
  26. package/components/slider/slider.component.d.ts +130 -0
  27. package/components/slider/slider.d.ts +9 -0
  28. package/components/toast/index.d.ts +2 -0
  29. package/components/toast/toast.component.d.ts +106 -0
  30. package/components/toast/toast.d.ts +7 -0
  31. package/config.d.ts +18 -0
  32. package/esm2022/agnos-ui-angular-bootstrap.mjs +5 -0
  33. package/esm2022/agnos-ui-angular.module.mjs +151 -0
  34. package/esm2022/components/accordion/accordion.component.mjs +579 -0
  35. package/esm2022/components/accordion/accordion.mjs +4 -0
  36. package/esm2022/components/accordion/index.mjs +3 -0
  37. package/esm2022/components/alert/alert.component.mjs +230 -0
  38. package/esm2022/components/alert/alert.mjs +4 -0
  39. package/esm2022/components/alert/index.mjs +3 -0
  40. package/esm2022/components/modal/index.mjs +4 -0
  41. package/esm2022/components/modal/modal.component.mjs +423 -0
  42. package/esm2022/components/modal/modal.mjs +4 -0
  43. package/esm2022/components/modal/modal.service.mjs +47 -0
  44. package/esm2022/components/pagination/index.mjs +3 -0
  45. package/esm2022/components/pagination/pagination.component.mjs +581 -0
  46. package/esm2022/components/pagination/pagination.mjs +4 -0
  47. package/esm2022/components/progressbar/index.mjs +3 -0
  48. package/esm2022/components/progressbar/progressbar.component.mjs +180 -0
  49. package/esm2022/components/progressbar/progressbar.mjs +4 -0
  50. package/esm2022/components/rating/index.mjs +3 -0
  51. package/esm2022/components/rating/rating.component.mjs +185 -0
  52. package/esm2022/components/rating/rating.mjs +4 -0
  53. package/esm2022/components/select/index.mjs +3 -0
  54. package/esm2022/components/select/select.component.mjs +280 -0
  55. package/esm2022/components/select/select.mjs +4 -0
  56. package/esm2022/components/slider/index.mjs +3 -0
  57. package/esm2022/components/slider/slider.component.mjs +443 -0
  58. package/esm2022/components/slider/slider.mjs +4 -0
  59. package/esm2022/components/toast/index.mjs +3 -0
  60. package/esm2022/components/toast/toast.component.mjs +284 -0
  61. package/esm2022/components/toast/toast.mjs +4 -0
  62. package/esm2022/config.mjs +5 -0
  63. package/esm2022/index.mjs +27 -0
  64. package/fesm2022/agnos-ui-angular-bootstrap.mjs +3382 -0
  65. package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -0
  66. package/index.d.ts +33 -0
  67. package/package.json +48 -0
@@ -0,0 +1,3382 @@
1
+ import { widgetsConfigFactory, SlotDirective, UseDirective, ComponentTemplate, BaseWidgetDirective, auBooleanAttribute, UseMultiDirective, SlotDefaultDirective, auNumberAttribute, useDirectiveForHost } from '@agnos-ui/angular-headless';
2
+ export * from '@agnos-ui/angular-headless';
3
+ import * as i0 from '@angular/core';
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';
5
+ import { createModal as createModal$1 } from '@agnos-ui/core-bootstrap/components/modal';
6
+ export * from '@agnos-ui/core-bootstrap/components/modal';
7
+ export { getModalDefaultConfig } from '@agnos-ui/core-bootstrap/components/modal';
8
+ import { writable } from '@amadeus-it-group/tansu';
9
+ import { createPagination as createPagination$1 } from '@agnos-ui/core-bootstrap/components/pagination';
10
+ export * from '@agnos-ui/core-bootstrap/components/pagination';
11
+ export { getPaginationDefaultConfig } from '@agnos-ui/core-bootstrap/components/pagination';
12
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
13
+ import { createRating as createRating$1 } from '@agnos-ui/core-bootstrap/components/rating';
14
+ export * from '@agnos-ui/core-bootstrap/components/rating';
15
+ export { getRatingDefaultConfig } from '@agnos-ui/core-bootstrap/components/rating';
16
+ import { createSelect as createSelect$1 } from '@agnos-ui/core-bootstrap/components/select';
17
+ export * from '@agnos-ui/core-bootstrap/components/select';
18
+ export { getSelectDefaultConfig } from '@agnos-ui/core-bootstrap/components/select';
19
+ import { createAlert as createAlert$1 } from '@agnos-ui/core-bootstrap/components/alert';
20
+ export * from '@agnos-ui/core-bootstrap/components/alert';
21
+ export { getAlertDefaultConfig } from '@agnos-ui/core-bootstrap/components/alert';
22
+ import { NgTemplateOutlet, NgClass } from '@angular/common';
23
+ import { createAccordion as createAccordion$1 } from '@agnos-ui/core-bootstrap/components/accordion';
24
+ export * from '@agnos-ui/core-bootstrap/components/accordion';
25
+ export { createAccordionItem, getAccordionDefaultConfig } from '@agnos-ui/core-bootstrap/components/accordion';
26
+ import { take } from 'rxjs';
27
+ import { createSlider as createSlider$1 } from '@agnos-ui/core-bootstrap/components/slider';
28
+ export * from '@agnos-ui/core-bootstrap/components/slider';
29
+ export { getSliderDefaultConfig } from '@agnos-ui/core-bootstrap/components/slider';
30
+ import { createProgressbar as createProgressbar$1 } from '@agnos-ui/core-bootstrap/components/progressbar';
31
+ export * from '@agnos-ui/core-bootstrap/components/progressbar';
32
+ export { getProgressbarDefaultConfig } from '@agnos-ui/core-bootstrap/components/progressbar';
33
+ import { createToast as createToast$1 } from '@agnos-ui/core-bootstrap/components/toast';
34
+ export * from '@agnos-ui/core-bootstrap/components/toast';
35
+ export { getToastDefaultConfig } from '@agnos-ui/core-bootstrap/components/toast';
36
+ export * from '@agnos-ui/core-bootstrap/services/transitions';
37
+ export * from '@agnos-ui/core-bootstrap/types';
38
+
39
+ const createModal = createModal$1;
40
+
41
+ const widgetFactories = widgetsConfigFactory(new InjectionToken('bootstrapWidgetsConfig'));
42
+ const { widgetsConfigInjectionToken, provideWidgetsConfig, injectWidgetConfig, injectWidgetsConfig, callWidgetFactory } = widgetFactories;
43
+
44
+ const _c0$8 = ["header"];
45
+ const _c1$8 = ["structure"];
46
+ const _c2$8 = (a0, a1) => ({ state: a0, widget: a1 });
47
+ function ModalDefaultSlotsComponent_ng_template_0_ng_template_1_Template(rf, ctx) { }
48
+ function ModalDefaultSlotsComponent_ng_template_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
49
+ i0.ɵɵelement(0, "button", 6);
50
+ } if (rf & 2) {
51
+ const widget_r1 = i0.ɵɵnextContext().widget;
52
+ i0.ɵɵproperty("auUse", widget_r1.directives.closeButtonDirective);
53
+ } }
54
+ function ModalDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
55
+ i0.ɵɵelementStart(0, "h5", 4);
56
+ i0.ɵɵtemplate(1, ModalDefaultSlotsComponent_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 5);
57
+ i0.ɵɵelementEnd();
58
+ i0.ɵɵtemplate(2, ModalDefaultSlotsComponent_ng_template_0_Conditional_2_Template, 1, 1, "button", 6);
59
+ } if (rf & 2) {
60
+ const state_r2 = ctx.state;
61
+ const widget_r1 = ctx.widget;
62
+ i0.ɵɵadvance();
63
+ i0.ɵɵproperty("auSlot", state_r2.slotTitle)("auSlotProps", i0.ɵɵpureFunction2(3, _c2$8, state_r2, widget_r1));
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵconditional(2, state_r2.closeButton ? 2 : -1);
66
+ } }
67
+ function ModalDefaultSlotsComponent_ng_template_2_Conditional_0_ng_template_1_Template(rf, ctx) { }
68
+ function ModalDefaultSlotsComponent_ng_template_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
69
+ i0.ɵɵelementStart(0, "div", 7);
70
+ i0.ɵɵtemplate(1, ModalDefaultSlotsComponent_ng_template_2_Conditional_0_ng_template_1_Template, 0, 0, "ng-template", 5);
71
+ i0.ɵɵelementEnd();
72
+ } if (rf & 2) {
73
+ const ctx_r2 = i0.ɵɵnextContext();
74
+ const state_r4 = ctx_r2.state;
75
+ const widget_r5 = ctx_r2.widget;
76
+ i0.ɵɵadvance();
77
+ i0.ɵɵproperty("auSlot", state_r4.slotHeader)("auSlotProps", i0.ɵɵpureFunction2(2, _c2$8, state_r4, widget_r5));
78
+ } }
79
+ function ModalDefaultSlotsComponent_ng_template_2_ng_template_2_Template(rf, ctx) { }
80
+ function ModalDefaultSlotsComponent_ng_template_2_Conditional_3_ng_template_1_Template(rf, ctx) { }
81
+ function ModalDefaultSlotsComponent_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
82
+ i0.ɵɵelementStart(0, "div", 9);
83
+ i0.ɵɵtemplate(1, ModalDefaultSlotsComponent_ng_template_2_Conditional_3_ng_template_1_Template, 0, 0, "ng-template", 5);
84
+ i0.ɵɵelementEnd();
85
+ } if (rf & 2) {
86
+ const ctx_r2 = i0.ɵɵnextContext();
87
+ const state_r4 = ctx_r2.state;
88
+ const widget_r5 = ctx_r2.widget;
89
+ i0.ɵɵadvance();
90
+ i0.ɵɵproperty("auSlot", state_r4.slotFooter)("auSlotProps", i0.ɵɵpureFunction2(2, _c2$8, state_r4, widget_r5));
91
+ } }
92
+ function ModalDefaultSlotsComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
93
+ i0.ɵɵtemplate(0, ModalDefaultSlotsComponent_ng_template_2_Conditional_0_Template, 2, 5, "div", 7);
94
+ i0.ɵɵelementStart(1, "div", 8);
95
+ i0.ɵɵtemplate(2, ModalDefaultSlotsComponent_ng_template_2_ng_template_2_Template, 0, 0, "ng-template", 5);
96
+ i0.ɵɵelementEnd();
97
+ i0.ɵɵtemplate(3, ModalDefaultSlotsComponent_ng_template_2_Conditional_3_Template, 2, 5, "div", 9);
98
+ } if (rf & 2) {
99
+ const state_r4 = ctx.state;
100
+ const widget_r5 = ctx.widget;
101
+ i0.ɵɵconditional(0, state_r4.slotTitle ? 0 : -1);
102
+ i0.ɵɵadvance(2);
103
+ i0.ɵɵproperty("auSlot", state_r4.slotDefault)("auSlotProps", i0.ɵɵpureFunction2(4, _c2$8, state_r4, widget_r5));
104
+ i0.ɵɵadvance();
105
+ i0.ɵɵconditional(3, state_r4.slotFooter ? 3 : -1);
106
+ } }
107
+ const _c3$6 = ["auModal", ""];
108
+ const _c4$3 = ["*"];
109
+ const _c5$2 = (a0, a1) => [a0, a1];
110
+ function ModalComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
111
+ i0.ɵɵprojection(0);
112
+ } }
113
+ function ModalComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
114
+ i0.ɵɵelement(0, "div", 1);
115
+ } if (rf & 2) {
116
+ const ctx_r0 = i0.ɵɵnextContext();
117
+ i0.ɵɵproperty("auUseMulti", i0.ɵɵpureFunction2(1, _c5$2, ctx_r0.widget.directives.backdropPortalDirective, ctx_r0.widget.directives.backdropDirective));
118
+ } }
119
+ function ModalComponent_Conditional_2_ng_template_3_Template(rf, ctx) { }
120
+ function ModalComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
121
+ i0.ɵɵelementStart(0, "div", 2)(1, "div")(2, "div", 3);
122
+ i0.ɵɵtemplate(3, ModalComponent_Conditional_2_ng_template_3_Template, 0, 0, "ng-template", 4);
123
+ i0.ɵɵelementEnd()()();
124
+ } if (rf & 2) {
125
+ const ctx_r0 = i0.ɵɵnextContext();
126
+ i0.ɵɵproperty("auUseMulti", i0.ɵɵpureFunction2(6, _c5$2, ctx_r0.widget.directives.modalPortalDirective, ctx_r0.widget.directives.modalDirective));
127
+ i0.ɵɵadvance();
128
+ i0.ɵɵclassMapInterpolate1("modal-dialog ", ctx_r0.state().fullscreen ? "modal-fullscreen" : "", "");
129
+ i0.ɵɵadvance(2);
130
+ i0.ɵɵproperty("auSlot", ctx_r0.state().slotStructure)("auSlotProps", i0.ɵɵpureFunction2(9, _c2$8, ctx_r0.state(), ctx_r0.widget));
131
+ } }
132
+ /**
133
+ * Directive to provide the slot structure for the modal widget.
134
+ */
135
+ class ModalStructureDirective {
136
+ constructor() {
137
+ this.templateRef = inject((TemplateRef));
138
+ }
139
+ static ngTemplateContextGuard(dir, context) {
140
+ return true;
141
+ }
142
+ static { this.ɵfac = function ModalStructureDirective_Factory(t) { return new (t || ModalStructureDirective)(); }; }
143
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalStructureDirective, selectors: [["ng-template", "auModalStructure", ""]], standalone: true }); }
144
+ }
145
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalStructureDirective, [{
146
+ type: Directive,
147
+ args: [{ selector: 'ng-template[auModalStructure]', standalone: true }]
148
+ }], null, null); })();
149
+ /**
150
+ * Directive to provide the slot header for the modal widget.
151
+ */
152
+ class ModalHeaderDirective {
153
+ constructor() {
154
+ this.templateRef = inject((TemplateRef));
155
+ }
156
+ static ngTemplateContextGuard(_dir, context) {
157
+ return true;
158
+ }
159
+ static { this.ɵfac = function ModalHeaderDirective_Factory(t) { return new (t || ModalHeaderDirective)(); }; }
160
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalHeaderDirective, selectors: [["ng-template", "auModalHeader", ""]], standalone: true }); }
161
+ }
162
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalHeaderDirective, [{
163
+ type: Directive,
164
+ args: [{ selector: 'ng-template[auModalHeader]', standalone: true }]
165
+ }], null, null); })();
166
+ /**
167
+ * Directive to provide the slot title for the modal widget.
168
+ */
169
+ class ModalTitleDirective {
170
+ constructor() {
171
+ this.templateRef = inject((TemplateRef));
172
+ }
173
+ static ngTemplateContextGuard(_dir, context) {
174
+ return true;
175
+ }
176
+ static { this.ɵfac = function ModalTitleDirective_Factory(t) { return new (t || ModalTitleDirective)(); }; }
177
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalTitleDirective, selectors: [["ng-template", "auModalTitle", ""]], standalone: true }); }
178
+ }
179
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalTitleDirective, [{
180
+ type: Directive,
181
+ args: [{ selector: 'ng-template[auModalTitle]', standalone: true }]
182
+ }], null, null); })();
183
+ /**
184
+ * Directive to provide the default slot for the modal widget.
185
+ */
186
+ class ModalBodyDirective {
187
+ constructor() {
188
+ this.templateRef = inject((TemplateRef));
189
+ }
190
+ static ngTemplateContextGuard(_dir, context) {
191
+ return true;
192
+ }
193
+ static { this.ɵfac = function ModalBodyDirective_Factory(t) { return new (t || ModalBodyDirective)(); }; }
194
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalBodyDirective, selectors: [["ng-template", "auModalBody", ""]], standalone: true }); }
195
+ }
196
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalBodyDirective, [{
197
+ type: Directive,
198
+ args: [{ selector: 'ng-template[auModalBody]', standalone: true }]
199
+ }], null, null); })();
200
+ /**
201
+ * Directive to provide the slot footer for the modal widget.
202
+ */
203
+ class ModalFooterDirective {
204
+ constructor() {
205
+ this.templateRef = inject((TemplateRef));
206
+ }
207
+ static ngTemplateContextGuard(_dir, context) {
208
+ return true;
209
+ }
210
+ static { this.ɵfac = function ModalFooterDirective_Factory(t) { return new (t || ModalFooterDirective)(); }; }
211
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ModalFooterDirective, selectors: [["ng-template", "auModalFooter", ""]], standalone: true }); }
212
+ }
213
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalFooterDirective, [{
214
+ type: Directive,
215
+ args: [{ selector: 'ng-template[auModalFooter]', standalone: true }]
216
+ }], null, null); })();
217
+ /**
218
+ * Component containing the default slots for the modal.
219
+ */
220
+ class ModalDefaultSlotsComponent {
221
+ static { this.ɵfac = function ModalDefaultSlotsComponent_Factory(t) { return new (t || ModalDefaultSlotsComponent)(); }; }
222
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ModalDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function ModalDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
223
+ i0.ɵɵviewQuery(_c0$8, 7);
224
+ i0.ɵɵviewQuery(_c1$8, 7);
225
+ } if (rf & 2) {
226
+ let _t;
227
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.header = _t.first);
228
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
229
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 4, vars: 0, consts: [["header", ""], ["structure", ""], ["auModalHeader", ""], ["auModalStructure", ""], [1, "modal-title"], [3, "auSlot", "auSlotProps"], [1, "btn-close", 3, "auUse"], [1, "modal-header"], [1, "modal-body"], [1, "modal-footer"]], template: function ModalDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
230
+ i0.ɵɵtemplate(0, ModalDefaultSlotsComponent_ng_template_0_Template, 3, 6, "ng-template", 2, 0, i0.ɵɵtemplateRefExtractor)(2, ModalDefaultSlotsComponent_ng_template_2_Template, 4, 7, "ng-template", 3, 1, i0.ɵɵtemplateRefExtractor);
231
+ } }, dependencies: [SlotDirective, ModalHeaderDirective, ModalStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
232
+ }
233
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalDefaultSlotsComponent, [{
234
+ type: Component,
235
+ args: [{
236
+ standalone: true,
237
+ changeDetection: ChangeDetectionStrategy.OnPush,
238
+ imports: [SlotDirective, ModalHeaderDirective, ModalStructureDirective, UseDirective],
239
+ template: `
240
+ <ng-template auModalHeader #header let-state="state" let-widget="widget">
241
+ <h5 class="modal-title">
242
+ <ng-template [auSlot]="state.slotTitle" [auSlotProps]="{state, widget}"></ng-template>
243
+ </h5>
244
+ @if (state.closeButton) {
245
+ <button class="btn-close" [auUse]="widget.directives.closeButtonDirective"></button>
246
+ }
247
+ </ng-template>
248
+ <ng-template auModalStructure #structure let-state="state" let-widget="widget">
249
+ @if (state.slotTitle) {
250
+ <div class="modal-header">
251
+ <ng-template [auSlot]="state.slotHeader" [auSlotProps]="{state, widget}"></ng-template>
252
+ </div>
253
+ }
254
+ <div class="modal-body">
255
+ <ng-template [auSlot]="state.slotDefault" [auSlotProps]="{state, widget}"></ng-template>
256
+ </div>
257
+ @if (state.slotFooter) {
258
+ <div class="modal-footer">
259
+ <ng-template [auSlot]="state.slotFooter" [auSlotProps]="{state, widget}"></ng-template>
260
+ </div>
261
+ }
262
+ </ng-template>
263
+ `,
264
+ }]
265
+ }], null, { header: [{
266
+ type: ViewChild,
267
+ args: ['header', { static: true }]
268
+ }], structure: [{
269
+ type: ViewChild,
270
+ args: ['structure', { static: true }]
271
+ }] }); })();
272
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalDefaultSlotsComponent, { className: "ModalDefaultSlotsComponent", filePath: "components/modal/modal.component.ts", lineNumber: 117 }); })();
273
+ /**
274
+ * Default slot for modal header.
275
+ */
276
+ const modalDefaultSlotHeader = new ComponentTemplate(ModalDefaultSlotsComponent, 'header');
277
+ /**
278
+ * Default slot for modal structure.
279
+ */
280
+ const modalDefaultSlotStructure = new ComponentTemplate(ModalDefaultSlotsComponent, 'structure');
281
+ const defaultConfig$6 = {
282
+ slotHeader: modalDefaultSlotHeader,
283
+ slotStructure: modalDefaultSlotStructure,
284
+ };
285
+ /**
286
+ * Modal component.
287
+ */
288
+ class ModalComponent extends BaseWidgetDirective {
289
+ constructor() {
290
+ super(...arguments);
291
+ /**
292
+ * Event to be triggered when the visible property changes.
293
+ */
294
+ this.visibleChange = new EventEmitter();
295
+ /**
296
+ * Event to be triggered when the modal is about to be closed (i.e. the close method was called).
297
+ */
298
+ this.beforeClose = new EventEmitter();
299
+ /**
300
+ * Event to be triggered when the transition is completed and the modal is not visible.
301
+ */
302
+ this.hidden = new EventEmitter();
303
+ /**
304
+ * Event to be triggered when the transition is completed and the modal is visible.
305
+ */
306
+ this.shown = new EventEmitter();
307
+ this.defaultSlots = writable(defaultConfig$6);
308
+ this._widget = callWidgetFactory({
309
+ factory: createModal,
310
+ widgetName: 'modal',
311
+ defaultConfig: this.defaultSlots,
312
+ events: {
313
+ onShown: () => this.shown.emit(),
314
+ onHidden: () => this.hidden.emit(),
315
+ onBeforeClose: (event) => this.beforeClose.emit(event),
316
+ onVisibleChange: (event) => this.visibleChange.emit(event),
317
+ },
318
+ });
319
+ }
320
+ ngAfterContentChecked() {
321
+ this._widget.patchSlots({
322
+ slotDefault: this.slotDefaultFromContent?.templateRef,
323
+ slotFooter: this.slotFooterFromContent?.templateRef,
324
+ slotHeader: this.slotHeaderFromContent?.templateRef,
325
+ slotStructure: this.slotStructureFromContent?.templateRef,
326
+ slotTitle: this.slotTitleFromContent?.templateRef,
327
+ });
328
+ }
329
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵModalComponent_BaseFactory; return function ModalComponent_Factory(t) { return (ɵModalComponent_BaseFactory || (ɵModalComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ModalComponent)))(t || ModalComponent); }; })(); }
330
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ModalComponent, selectors: [["", "auModal", ""]], contentQueries: function ModalComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
331
+ i0.ɵɵcontentQuery(dirIndex, ModalStructureDirective, 5);
332
+ i0.ɵɵcontentQuery(dirIndex, ModalHeaderDirective, 5);
333
+ i0.ɵɵcontentQuery(dirIndex, ModalTitleDirective, 5);
334
+ i0.ɵɵcontentQuery(dirIndex, ModalBodyDirective, 5);
335
+ i0.ɵɵcontentQuery(dirIndex, ModalFooterDirective, 5);
336
+ } if (rf & 2) {
337
+ let _t;
338
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
339
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHeaderFromContent = _t.first);
340
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotTitleFromContent = _t.first);
341
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
342
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotFooterFromContent = _t.first);
343
+ } }, inputs: { animated: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAnimated", "animated", auBooleanAttribute], backdropTransition: [i0.ɵɵInputFlags.None, "auBackdropTransition", "backdropTransition"], modalTransition: [i0.ɵɵInputFlags.None, "auModalTransition", "modalTransition"], visible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auVisible", "visible", auBooleanAttribute], backdrop: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auBackdrop", "backdrop", auBooleanAttribute], closeOnOutsideClick: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auCloseOnOutsideClick", "closeOnOutsideClick", auBooleanAttribute], container: [i0.ɵɵInputFlags.None, "auContainer", "container"], ariaCloseButtonLabel: [i0.ɵɵInputFlags.None, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], backdropClass: [i0.ɵɵInputFlags.None, "auBackdropClass", "backdropClass"], closeButton: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auCloseButton", "closeButton", auBooleanAttribute], className: [i0.ɵɵInputFlags.None, "auClassName", "className"], fullscreen: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auFullscreen", "fullscreen", auBooleanAttribute], slotStructure: [i0.ɵɵInputFlags.None, "auSlotStructure", "slotStructure"], slotHeader: [i0.ɵɵInputFlags.None, "auSlotHeader", "slotHeader"], slotTitle: [i0.ɵɵInputFlags.None, "auSlotTitle", "slotTitle"], slotDefault: [i0.ɵɵInputFlags.None, "auSlotDefault", "slotDefault"], slotFooter: [i0.ɵɵInputFlags.None, "auSlotFooter", "slotFooter"], contentData: [i0.ɵɵInputFlags.None, "auContentData", "contentData"] }, outputs: { visibleChange: "auVisibleChange", beforeClose: "auBeforeClose", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c3$6, ngContentSelectors: _c4$3, decls: 3, vars: 3, consts: [[3, "auSlotDefault"], [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) {
344
+ i0.ɵɵprojectionDef();
345
+ 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);
346
+ } if (rf & 2) {
347
+ i0.ɵɵproperty("auSlotDefault", ctx.defaultSlots);
348
+ i0.ɵɵadvance();
349
+ i0.ɵɵconditional(1, !ctx.state().backdropHidden ? 1 : -1);
350
+ i0.ɵɵadvance();
351
+ i0.ɵɵconditional(2, !ctx.state().hidden ? 2 : -1);
352
+ } }, dependencies: [UseMultiDirective, SlotDirective, SlotDefaultDirective], encapsulation: 2, changeDetection: 0 }); }
353
+ }
354
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalComponent, [{
355
+ type: Component,
356
+ args: [{
357
+ selector: '[auModal]',
358
+ standalone: true,
359
+ changeDetection: ChangeDetectionStrategy.OnPush,
360
+ imports: [UseMultiDirective, SlotDirective, SlotDefaultDirective],
361
+ template: `
362
+ <ng-template [auSlotDefault]="defaultSlots"><ng-content></ng-content></ng-template>
363
+ @if (!state().backdropHidden) {
364
+ <div class="modal-backdrop" [auUseMulti]="[widget.directives.backdropPortalDirective, widget.directives.backdropDirective]"></div>
365
+ }
366
+ @if (!state().hidden) {
367
+ <div class="modal d-block" [auUseMulti]="[widget.directives.modalPortalDirective, widget.directives.modalDirective]">
368
+ <div class="modal-dialog {{ state().fullscreen ? 'modal-fullscreen' : '' }}">
369
+ <div class="modal-content">
370
+ <ng-template [auSlot]="state().slotStructure" [auSlotProps]="{state: state(), widget}"></ng-template>
371
+ </div>
372
+ </div>
373
+ </div>
374
+ }
375
+ `,
376
+ }]
377
+ }], null, { animated: [{
378
+ type: Input,
379
+ args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
380
+ }], backdropTransition: [{
381
+ type: Input,
382
+ args: ['auBackdropTransition']
383
+ }], modalTransition: [{
384
+ type: Input,
385
+ args: ['auModalTransition']
386
+ }], visible: [{
387
+ type: Input,
388
+ args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
389
+ }], backdrop: [{
390
+ type: Input,
391
+ args: [{ alias: 'auBackdrop', transform: auBooleanAttribute }]
392
+ }], closeOnOutsideClick: [{
393
+ type: Input,
394
+ args: [{ alias: 'auCloseOnOutsideClick', transform: auBooleanAttribute }]
395
+ }], container: [{
396
+ type: Input,
397
+ args: ['auContainer']
398
+ }], ariaCloseButtonLabel: [{
399
+ type: Input,
400
+ args: ['auAriaCloseButtonLabel']
401
+ }], backdropClass: [{
402
+ type: Input,
403
+ args: ['auBackdropClass']
404
+ }], closeButton: [{
405
+ type: Input,
406
+ args: [{ alias: 'auCloseButton', transform: auBooleanAttribute }]
407
+ }], className: [{
408
+ type: Input,
409
+ args: ['auClassName']
410
+ }], fullscreen: [{
411
+ type: Input,
412
+ args: [{ alias: 'auFullscreen', transform: auBooleanAttribute }]
413
+ }], slotStructure: [{
414
+ type: Input,
415
+ args: ['auSlotStructure']
416
+ }], slotStructureFromContent: [{
417
+ type: ContentChild,
418
+ args: [ModalStructureDirective, { static: false }]
419
+ }], slotHeader: [{
420
+ type: Input,
421
+ args: ['auSlotHeader']
422
+ }], slotHeaderFromContent: [{
423
+ type: ContentChild,
424
+ args: [ModalHeaderDirective, { static: false }]
425
+ }], slotTitle: [{
426
+ type: Input,
427
+ args: ['auSlotTitle']
428
+ }], slotTitleFromContent: [{
429
+ type: ContentChild,
430
+ args: [ModalTitleDirective, { static: false }]
431
+ }], slotDefault: [{
432
+ type: Input,
433
+ args: ['auSlotDefault']
434
+ }], slotDefaultFromContent: [{
435
+ type: ContentChild,
436
+ args: [ModalBodyDirective, { static: false }]
437
+ }], slotFooter: [{
438
+ type: Input,
439
+ args: ['auSlotFooter']
440
+ }], slotFooterFromContent: [{
441
+ type: ContentChild,
442
+ args: [ModalFooterDirective, { static: false }]
443
+ }], contentData: [{
444
+ type: Input,
445
+ args: ['auContentData']
446
+ }], visibleChange: [{
447
+ type: Output,
448
+ args: ['auVisibleChange']
449
+ }], beforeClose: [{
450
+ type: Output,
451
+ args: ['auBeforeClose']
452
+ }], hidden: [{
453
+ type: Output,
454
+ args: ['auHidden']
455
+ }], shown: [{
456
+ type: Output,
457
+ args: ['auShown']
458
+ }] }); })();
459
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalComponent, { className: "ModalComponent", filePath: "components/modal/modal.component.ts", lineNumber: 161 }); })();
460
+
461
+ const createPagination = createPagination$1;
462
+
463
+ const _c0$7 = ["pages"];
464
+ const _c1$7 = ["structure"];
465
+ const _c2$7 = (a0, a1) => ({ state: a0, widget: a1 });
466
+ const _c3$5 = a0 => ({ page: a0 });
467
+ const _c4$2 = (a0, a1) => [a0, a1];
468
+ const _c5$1 = (a0, a1, a2) => ({ state: a0, widget: a1, displayedPage: a2 });
469
+ const _c6$1 = (a0, a1) => ({ widget: a0, state: a1 });
470
+ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_1_ng_template_1_Template(rf, ctx) { }
471
+ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
472
+ i0.ɵɵelementStart(0, "div", 6);
473
+ i0.ɵɵtemplate(1, PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_1_ng_template_1_Template, 0, 0, "ng-template", 7);
474
+ i0.ɵɵelementEnd();
475
+ i0.ɵɵelementStart(2, "span", 8);
476
+ i0.ɵɵtext(3);
477
+ i0.ɵɵelementEnd();
478
+ } if (rf & 2) {
479
+ const ctx_r0 = i0.ɵɵnextContext(2);
480
+ const state_r2 = ctx_r0.state;
481
+ const widget_r3 = ctx_r0.widget;
482
+ i0.ɵɵadvance();
483
+ i0.ɵɵproperty("auSlot", state_r2.slotEllipsis)("auSlotProps", i0.ɵɵpureFunction2(3, _c2$7, state_r2, widget_r3));
484
+ i0.ɵɵadvance(2);
485
+ i0.ɵɵtextInterpolate(state_r2.ariaEllipsisLabel);
486
+ } }
487
+ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_ng_template_1_Template(rf, ctx) { }
488
+ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
489
+ i0.ɵɵelementStart(0, "span", 8);
490
+ i0.ɵɵtext(1);
491
+ i0.ɵɵelementEnd();
492
+ } if (rf & 2) {
493
+ const state_r2 = i0.ɵɵnextContext(3).state;
494
+ i0.ɵɵadvance();
495
+ i0.ɵɵtextInterpolate(state_r2.activeLabel);
496
+ } }
497
+ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
498
+ i0.ɵɵelementStart(0, "a", 9);
499
+ i0.ɵɵtemplate(1, PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_ng_template_1_Template, 0, 0, "ng-template", 7)(2, PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_Conditional_2_Template, 2, 1, "span", 8);
500
+ i0.ɵɵelementEnd();
501
+ } if (rf & 2) {
502
+ const page_r4 = i0.ɵɵnextContext().$implicit;
503
+ const ctx_r0 = i0.ɵɵnextContext();
504
+ const state_r2 = ctx_r0.state;
505
+ const widget_r3 = ctx_r0.widget;
506
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(6, _c4$2, widget_r3.directives.pageLink, i0.ɵɵpureFunction1(4, _c3$5, page_r4)));
507
+ i0.ɵɵadvance();
508
+ i0.ɵɵproperty("auSlot", state_r2.slotNumberLabel)("auSlotProps", i0.ɵɵpureFunction3(9, _c5$1, state_r2, widget_r3, page_r4));
509
+ i0.ɵɵadvance();
510
+ i0.ɵɵconditional(2, state_r2.page === page_r4 ? 2 : -1);
511
+ } }
512
+ function PaginationDefaultSlotsComponent_ng_template_0_For_1_Template(rf, ctx) { if (rf & 1) {
513
+ i0.ɵɵelementStart(0, "li", 5);
514
+ i0.ɵɵtemplate(1, PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_1_Template, 4, 6)(2, PaginationDefaultSlotsComponent_ng_template_0_For_1_Conditional_2_Template, 3, 13);
515
+ i0.ɵɵelementEnd();
516
+ } if (rf & 2) {
517
+ const page_r4 = ctx.$implicit;
518
+ const state_r2 = i0.ɵɵnextContext().state;
519
+ i0.ɵɵclassProp("active", page_r4 === state_r2.page)("disabled", page_r4 === -1 || state_r2.disabled);
520
+ i0.ɵɵadvance();
521
+ i0.ɵɵconditional(1, page_r4 === -1 ? 1 : 2);
522
+ } }
523
+ function PaginationDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
524
+ i0.ɵɵrepeaterCreate(0, PaginationDefaultSlotsComponent_ng_template_0_For_1_Template, 3, 5, "li", 4, i0.ɵɵrepeaterTrackByIdentity);
525
+ } if (rf & 2) {
526
+ const state_r2 = ctx.state;
527
+ i0.ɵɵrepeater(state_r2.pages);
528
+ } }
529
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_1_ng_template_3_Template(rf, ctx) { }
530
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
531
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 9)(2, "span", 12);
532
+ i0.ɵɵtemplate(3, PaginationDefaultSlotsComponent_ng_template_2_Conditional_1_ng_template_3_Template, 0, 0, "ng-template", 7);
533
+ i0.ɵɵelementEnd()()();
534
+ } if (rf & 2) {
535
+ const ctx_r4 = i0.ɵɵnextContext();
536
+ const state_r6 = ctx_r4.state;
537
+ const widget_r7 = ctx_r4.widget;
538
+ i0.ɵɵclassProp("disabled", state_r6.previousDisabled);
539
+ i0.ɵɵadvance();
540
+ i0.ɵɵproperty("auUse", widget_r7.directives.pageFirst);
541
+ i0.ɵɵadvance(2);
542
+ i0.ɵɵproperty("auSlot", state_r6.slotFirst)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
543
+ } }
544
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_ng_template_3_Template(rf, ctx) { }
545
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
546
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 9)(2, "span", 12);
547
+ i0.ɵɵtemplate(3, PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_ng_template_3_Template, 0, 0, "ng-template", 7);
548
+ i0.ɵɵelementEnd()()();
549
+ } if (rf & 2) {
550
+ const ctx_r4 = i0.ɵɵnextContext();
551
+ const state_r6 = ctx_r4.state;
552
+ const widget_r7 = ctx_r4.widget;
553
+ i0.ɵɵclassProp("disabled", state_r6.previousDisabled);
554
+ i0.ɵɵadvance();
555
+ i0.ɵɵproperty("auUse", widget_r7.directives.pagePrev);
556
+ i0.ɵɵadvance(2);
557
+ i0.ɵɵproperty("auSlot", state_r6.slotPrevious)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
558
+ } }
559
+ function PaginationDefaultSlotsComponent_ng_template_2_ng_template_3_Template(rf, ctx) { }
560
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_4_ng_template_3_Template(rf, ctx) { }
561
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
562
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 9)(2, "span", 12);
563
+ i0.ɵɵtemplate(3, PaginationDefaultSlotsComponent_ng_template_2_Conditional_4_ng_template_3_Template, 0, 0, "ng-template", 7);
564
+ i0.ɵɵelementEnd()()();
565
+ } if (rf & 2) {
566
+ const ctx_r4 = i0.ɵɵnextContext();
567
+ const state_r6 = ctx_r4.state;
568
+ const widget_r7 = ctx_r4.widget;
569
+ i0.ɵɵclassProp("disabled", state_r6.nextDisabled);
570
+ i0.ɵɵadvance();
571
+ i0.ɵɵproperty("auUse", widget_r7.directives.pageNext);
572
+ i0.ɵɵadvance(2);
573
+ i0.ɵɵproperty("auSlot", state_r6.slotNext)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
574
+ } }
575
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_ng_template_3_Template(rf, ctx) { }
576
+ function PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
577
+ i0.ɵɵelementStart(0, "li", 5)(1, "a", 9)(2, "span", 12);
578
+ i0.ɵɵtemplate(3, PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_ng_template_3_Template, 0, 0, "ng-template", 7);
579
+ i0.ɵɵelementEnd()()();
580
+ } if (rf & 2) {
581
+ const ctx_r4 = i0.ɵɵnextContext();
582
+ const state_r6 = ctx_r4.state;
583
+ const widget_r7 = ctx_r4.widget;
584
+ i0.ɵɵclassProp("disabled", state_r6.nextDisabled);
585
+ i0.ɵɵadvance();
586
+ i0.ɵɵproperty("auUse", widget_r7.directives.pageLast);
587
+ i0.ɵɵadvance(2);
588
+ i0.ɵɵproperty("auSlot", state_r6.slotLast)("auSlotProps", i0.ɵɵpureFunction2(5, _c6$1, widget_r7, state_r6));
589
+ } }
590
+ function PaginationDefaultSlotsComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
591
+ i0.ɵɵelementStart(0, "ul");
592
+ i0.ɵɵtemplate(1, PaginationDefaultSlotsComponent_ng_template_2_Conditional_1_Template, 4, 8, "li", 10)(2, PaginationDefaultSlotsComponent_ng_template_2_Conditional_2_Template, 4, 8, "li", 10)(3, PaginationDefaultSlotsComponent_ng_template_2_ng_template_3_Template, 0, 0, "ng-template", 7)(4, PaginationDefaultSlotsComponent_ng_template_2_Conditional_4_Template, 4, 8, "li", 10)(5, PaginationDefaultSlotsComponent_ng_template_2_Conditional_5_Template, 4, 8, "li", 10);
593
+ i0.ɵɵelementEnd();
594
+ i0.ɵɵelementStart(6, "div", 11);
595
+ i0.ɵɵtext(7);
596
+ i0.ɵɵelementEnd();
597
+ } if (rf & 2) {
598
+ const state_r6 = ctx.state;
599
+ const widget_r7 = ctx.widget;
600
+ i0.ɵɵclassMap("au-pagination pagination" + (state_r6.size ? " pagination-" + state_r6.size : "") + " " + state_r6.className);
601
+ i0.ɵɵadvance();
602
+ i0.ɵɵconditional(1, state_r6.boundaryLinks ? 1 : -1);
603
+ i0.ɵɵadvance();
604
+ i0.ɵɵconditional(2, state_r6.directionLinks ? 2 : -1);
605
+ i0.ɵɵadvance();
606
+ i0.ɵɵproperty("auSlot", state_r6.slotPages)("auSlotProps", i0.ɵɵpureFunction2(9, _c6$1, widget_r7, state_r6));
607
+ i0.ɵɵadvance();
608
+ i0.ɵɵconditional(4, state_r6.directionLinks ? 4 : -1);
609
+ i0.ɵɵadvance();
610
+ i0.ɵɵconditional(5, state_r6.boundaryLinks ? 5 : -1);
611
+ i0.ɵɵadvance(2);
612
+ i0.ɵɵtextInterpolate(state_r6.ariaLiveLabelText);
613
+ } }
614
+ const _c7$1 = ["auPagination", ""];
615
+ function PaginationComponent_ng_template_0_Template(rf, ctx) { }
616
+ /**
617
+ * A directive to use to give the 'ellipsis' link template to the pagination component
618
+ */
619
+ class PaginationEllipsisDirective {
620
+ constructor() {
621
+ this.templateRef = inject((TemplateRef));
622
+ }
623
+ static ngTemplateContextGuard(_dir, context) {
624
+ return true;
625
+ }
626
+ static { this.ɵfac = function PaginationEllipsisDirective_Factory(t) { return new (t || PaginationEllipsisDirective)(); }; }
627
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationEllipsisDirective, selectors: [["ng-template", "auPaginationEllipsis", ""]], standalone: true }); }
628
+ }
629
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationEllipsisDirective, [{
630
+ type: Directive,
631
+ args: [{ selector: 'ng-template[auPaginationEllipsis]', standalone: true }]
632
+ }], null, null); })();
633
+ /**
634
+ * A directive to use to give the 'first' link template to the pagination component
635
+ */
636
+ class PaginationFirstDirective {
637
+ constructor() {
638
+ this.templateRef = inject((TemplateRef));
639
+ }
640
+ static ngTemplateContextGuard(_dir, context) {
641
+ return true;
642
+ }
643
+ static { this.ɵfac = function PaginationFirstDirective_Factory(t) { return new (t || PaginationFirstDirective)(); }; }
644
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationFirstDirective, selectors: [["ng-template", "auPaginationFirst", ""]], standalone: true }); }
645
+ }
646
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationFirstDirective, [{
647
+ type: Directive,
648
+ args: [{ selector: 'ng-template[auPaginationFirst]', standalone: true }]
649
+ }], null, null); })();
650
+ /**
651
+ * A directive to use to give the 'last' link template to the pagination component
652
+ */
653
+ class PaginationLastDirective {
654
+ constructor() {
655
+ this.templateRef = inject((TemplateRef));
656
+ }
657
+ static ngTemplateContextGuard(_dir, context) {
658
+ return true;
659
+ }
660
+ static { this.ɵfac = function PaginationLastDirective_Factory(t) { return new (t || PaginationLastDirective)(); }; }
661
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationLastDirective, selectors: [["ng-template", "auPaginationLast", ""]], standalone: true }); }
662
+ }
663
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationLastDirective, [{
664
+ type: Directive,
665
+ args: [{ selector: 'ng-template[auPaginationLast]', standalone: true }]
666
+ }], null, null); })();
667
+ /**
668
+ * A directive to use to give the 'next' link template to the pagination component
669
+ */
670
+ class PaginationNextDirective {
671
+ constructor() {
672
+ this.templateRef = inject((TemplateRef));
673
+ }
674
+ static ngTemplateContextGuard(_dir, context) {
675
+ return true;
676
+ }
677
+ static { this.ɵfac = function PaginationNextDirective_Factory(t) { return new (t || PaginationNextDirective)(); }; }
678
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationNextDirective, selectors: [["ng-template", "auPaginationNext", ""]], standalone: true }); }
679
+ }
680
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationNextDirective, [{
681
+ type: Directive,
682
+ args: [{ selector: 'ng-template[auPaginationNext]', standalone: true }]
683
+ }], null, null); })();
684
+ /**
685
+ * A directive to use to give the page 'number' template to the pagination component
686
+ */
687
+ class PaginationNumberDirective {
688
+ constructor() {
689
+ this.templateRef = inject((TemplateRef));
690
+ }
691
+ static ngTemplateContextGuard(_dir, context) {
692
+ return true;
693
+ }
694
+ static { this.ɵfac = function PaginationNumberDirective_Factory(t) { return new (t || PaginationNumberDirective)(); }; }
695
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationNumberDirective, selectors: [["ng-template", "auPaginationNumber", ""]], standalone: true }); }
696
+ }
697
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationNumberDirective, [{
698
+ type: Directive,
699
+ args: [{ selector: 'ng-template[auPaginationNumber]', standalone: true }]
700
+ }], null, null); })();
701
+ /**
702
+ * A directive to use to give the 'previous' link template to the pagination component
703
+ */
704
+ class PaginationPreviousDirective {
705
+ constructor() {
706
+ this.templateRef = inject((TemplateRef));
707
+ }
708
+ static ngTemplateContextGuard(_dir, context) {
709
+ return true;
710
+ }
711
+ static { this.ɵfac = function PaginationPreviousDirective_Factory(t) { return new (t || PaginationPreviousDirective)(); }; }
712
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationPreviousDirective, selectors: [["ng-template", "auPaginationPrevious", ""]], standalone: true }); }
713
+ }
714
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationPreviousDirective, [{
715
+ type: Directive,
716
+ args: [{ selector: 'ng-template[auPaginationPrevious]', standalone: true }]
717
+ }], null, null); })();
718
+ /**
719
+ * A directive to use to give the 'Pages' template for the Pages slot
720
+ */
721
+ class PaginationPagesDirective {
722
+ constructor() {
723
+ this.templateRef = inject((TemplateRef));
724
+ }
725
+ static ngTemplateContextGuard(_dir, context) {
726
+ return true;
727
+ }
728
+ static { this.ɵfac = function PaginationPagesDirective_Factory(t) { return new (t || PaginationPagesDirective)(); }; }
729
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationPagesDirective, selectors: [["ng-template", "auPaginationPages", ""]], standalone: true }); }
730
+ }
731
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationPagesDirective, [{
732
+ type: Directive,
733
+ args: [{ selector: 'ng-template[auPaginationPages]', standalone: true }]
734
+ }], null, null); })();
735
+ /**
736
+ * Directive to provide the slot structure for the pagination widget.
737
+ */
738
+ class PaginationStructureDirective {
739
+ constructor() {
740
+ this.templateRef = inject((TemplateRef));
741
+ }
742
+ static ngTemplateContextGuard(dir, context) {
743
+ return true;
744
+ }
745
+ static { this.ɵfac = function PaginationStructureDirective_Factory(t) { return new (t || PaginationStructureDirective)(); }; }
746
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PaginationStructureDirective, selectors: [["ng-template", "auPaginationStructure", ""]], standalone: true }); }
747
+ }
748
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationStructureDirective, [{
749
+ type: Directive,
750
+ args: [{ selector: 'ng-template[auPaginationStructure]', standalone: true }]
751
+ }], null, null); })();
752
+ class PaginationDefaultSlotsComponent {
753
+ static { this.ɵfac = function PaginationDefaultSlotsComponent_Factory(t) { return new (t || PaginationDefaultSlotsComponent)(); }; }
754
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function PaginationDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
755
+ i0.ɵɵviewQuery(_c0$7, 7);
756
+ i0.ɵɵviewQuery(_c1$7, 7);
757
+ } if (rf & 2) {
758
+ let _t;
759
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.pages = _t.first);
760
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
761
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 4, vars: 0, consts: [["pages", ""], ["structure", ""], ["auPaginationPages", ""], ["auPaginationStructure", ""], [1, "page-item", 3, "active", "disabled"], [1, "page-item"], ["aria-hidden", "true", 1, "page-link", "au-ellipsis"], [3, "auSlot", "auSlotProps"], [1, "visually-hidden"], [1, "page-link", 3, "auUse"], [1, "page-item", 3, "disabled"], ["aria-live", "polite", 1, "visually-hidden"], ["aria-hidden", "true"]], template: function PaginationDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
762
+ i0.ɵɵtemplate(0, PaginationDefaultSlotsComponent_ng_template_0_Template, 2, 0, "ng-template", 2, 0, i0.ɵɵtemplateRefExtractor)(2, PaginationDefaultSlotsComponent_ng_template_2_Template, 8, 12, "ng-template", 3, 1, i0.ɵɵtemplateRefExtractor);
763
+ } }, dependencies: [SlotDirective, PaginationPagesDirective, PaginationStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
764
+ }
765
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationDefaultSlotsComponent, [{
766
+ type: Component,
767
+ args: [{
768
+ standalone: true,
769
+ imports: [SlotDirective, PaginationPagesDirective, PaginationStructureDirective, UseDirective],
770
+ changeDetection: ChangeDetectionStrategy.OnPush,
771
+ template: `
772
+ <ng-template auPaginationPages #pages let-state="state" let-widget="widget">
773
+ @for (page of state.pages; track page; let i = $index) {
774
+ <li class="page-item" [class.active]="page === state.page" [class.disabled]="page === -1 || state.disabled">
775
+ @if (page === -1) {
776
+ <div class="page-link au-ellipsis" aria-hidden="true">
777
+ <ng-template [auSlot]="state.slotEllipsis" [auSlotProps]="{state, widget}"></ng-template>
778
+ </div>
779
+ <span class="visually-hidden">{{ state.ariaEllipsisLabel }}</span>
780
+ } @else {
781
+ <a class="page-link" [auUse]="[widget.directives.pageLink, {page}]">
782
+ <ng-template [auSlot]="state.slotNumberLabel" [auSlotProps]="{state, widget, displayedPage: page}"></ng-template>
783
+ @if (state.page === page) {
784
+ <span class="visually-hidden">{{ state.activeLabel }}</span>
785
+ }
786
+ </a>
787
+ }
788
+ </li>
789
+ }
790
+ </ng-template>
791
+ <ng-template auPaginationStructure #structure let-state="state" let-widget="widget">
792
+ <ul [class]="'au-pagination pagination' + (state.size ? ' pagination-' + state.size : '') + ' ' + state.className">
793
+ @if (state.boundaryLinks) {
794
+ <li class="page-item" [class.disabled]="state.previousDisabled">
795
+ <a class="page-link" [auUse]="widget.directives.pageFirst">
796
+ <span aria-hidden="true">
797
+ <ng-template [auSlot]="state.slotFirst" [auSlotProps]="{widget, state}"></ng-template>
798
+ </span>
799
+ </a>
800
+ </li>
801
+ }
802
+ @if (state.directionLinks) {
803
+ <li class="page-item" [class.disabled]="state.previousDisabled">
804
+ <a class="page-link" [auUse]="widget.directives.pagePrev">
805
+ <span aria-hidden="true">
806
+ <ng-template [auSlot]="state.slotPrevious" [auSlotProps]="{widget, state}"></ng-template>
807
+ </span>
808
+ </a>
809
+ </li>
810
+ }
811
+ <ng-template [auSlot]="state.slotPages" [auSlotProps]="{widget, state}"></ng-template>
812
+ @if (state.directionLinks) {
813
+ <li class="page-item" [class.disabled]="state.nextDisabled">
814
+ <a class="page-link" [auUse]="widget.directives.pageNext">
815
+ <span aria-hidden="true">
816
+ <ng-template [auSlot]="state.slotNext" [auSlotProps]="{widget, state}"></ng-template>
817
+ </span>
818
+ </a>
819
+ </li>
820
+ }
821
+ @if (state.boundaryLinks) {
822
+ <li class="page-item" [class.disabled]="state.nextDisabled">
823
+ <a class="page-link" [auUse]="widget.directives.pageLast">
824
+ <span aria-hidden="true">
825
+ <ng-template [auSlot]="state.slotLast" [auSlotProps]="{widget, state}"></ng-template>
826
+ </span>
827
+ </a>
828
+ </li>
829
+ }
830
+ </ul>
831
+ <div aria-live="polite" class="visually-hidden">{{ state.ariaLiveLabelText }}</div>
832
+ </ng-template>
833
+ `,
834
+ }]
835
+ }], null, { pages: [{
836
+ type: ViewChild,
837
+ args: ['pages', { static: true }]
838
+ }], structure: [{
839
+ type: ViewChild,
840
+ args: ['structure', { static: true }]
841
+ }] }); })();
842
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationDefaultSlotsComponent, { className: "PaginationDefaultSlotsComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 177 }); })();
843
+ /**
844
+ * The default slot for the pages
845
+ */
846
+ const paginationDefaultSlotPages = new ComponentTemplate(PaginationDefaultSlotsComponent, 'pages');
847
+ /**
848
+ * The default slot for the structure
849
+ */
850
+ const paginationDefaultSlotStructure = new ComponentTemplate(PaginationDefaultSlotsComponent, 'structure');
851
+ const defaultConfig$5 = {
852
+ slotStructure: paginationDefaultSlotStructure,
853
+ slotPages: paginationDefaultSlotPages,
854
+ };
855
+ class PaginationComponent extends BaseWidgetDirective {
856
+ constructor() {
857
+ super(...arguments);
858
+ this._widget = callWidgetFactory({
859
+ factory: createPagination,
860
+ widgetName: 'pagination',
861
+ defaultConfig: defaultConfig$5,
862
+ events: {
863
+ onPageChange: (page) => this.pageChange.emit(page),
864
+ },
865
+ });
866
+ /**
867
+ * An event fired when the page is changed.
868
+ *
869
+ * Event payload is the number of the newly selected page.
870
+ *
871
+ * Page numbers start with `1`.
872
+ */
873
+ this.pageChange = new EventEmitter();
874
+ }
875
+ ngAfterContentChecked() {
876
+ this._widget.patchSlots({
877
+ slotEllipsis: this.slotEllipsisFromContent?.templateRef,
878
+ slotFirst: this.slotFirstFromContent?.templateRef,
879
+ slotLast: this.slotLastFromContent?.templateRef,
880
+ slotNext: this.slotNextFromContent?.templateRef,
881
+ slotNumberLabel: this.slotNumberLabelFromContent?.templateRef,
882
+ slotPages: this.slotPagesFromContent?.templateRef,
883
+ slotPrevious: this.slotPreviousFromContent?.templateRef,
884
+ slotStructure: this.slotStructureFromContent?.templateRef,
885
+ });
886
+ }
887
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵPaginationComponent_BaseFactory; return function PaginationComponent_Factory(t) { return (ɵPaginationComponent_BaseFactory || (ɵPaginationComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PaginationComponent)))(t || PaginationComponent); }; })(); }
888
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["", "auPagination", ""]], contentQueries: function PaginationComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
889
+ i0.ɵɵcontentQuery(dirIndex, PaginationEllipsisDirective, 5);
890
+ i0.ɵɵcontentQuery(dirIndex, PaginationFirstDirective, 5);
891
+ i0.ɵɵcontentQuery(dirIndex, PaginationPreviousDirective, 5);
892
+ i0.ɵɵcontentQuery(dirIndex, PaginationNextDirective, 5);
893
+ i0.ɵɵcontentQuery(dirIndex, PaginationLastDirective, 5);
894
+ i0.ɵɵcontentQuery(dirIndex, PaginationPagesDirective, 5);
895
+ i0.ɵɵcontentQuery(dirIndex, PaginationNumberDirective, 5);
896
+ i0.ɵɵcontentQuery(dirIndex, PaginationStructureDirective, 5);
897
+ } if (rf & 2) {
898
+ let _t;
899
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotEllipsisFromContent = _t.first);
900
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotFirstFromContent = _t.first);
901
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotPreviousFromContent = _t.first);
902
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotNextFromContent = _t.first);
903
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotLastFromContent = _t.first);
904
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotPagesFromContent = _t.first);
905
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotNumberLabelFromContent = _t.first);
906
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
907
+ } }, hostVars: 1, hostBindings: function PaginationComponent_HostBindings(rf, ctx) { if (rf & 2) {
908
+ i0.ɵɵattribute("aria-label", ctx.state().ariaLabel);
909
+ } }, inputs: { ariaPageLabel: [i0.ɵɵInputFlags.None, "auAriaPageLabel", "ariaPageLabel"], ariaLiveLabel: [i0.ɵɵInputFlags.None, "auAriaLiveLabel", "ariaLiveLabel"], ariaLabel: [i0.ɵɵInputFlags.None, "auAriaLabel", "ariaLabel"], activeLabel: [i0.ɵɵInputFlags.None, "auActiveLabel", "activeLabel"], ariaFirstLabel: [i0.ɵɵInputFlags.None, "auAriaFirstLabel", "ariaFirstLabel"], ariaPreviousLabel: [i0.ɵɵInputFlags.None, "auAriaPreviousLabel", "ariaPreviousLabel"], ariaNextLabel: [i0.ɵɵInputFlags.None, "auAriaNextLabel", "ariaNextLabel"], ariaLastLabel: [i0.ɵɵInputFlags.None, "auAriaLastLabel", "ariaLastLabel"], ariaEllipsisLabel: [i0.ɵɵInputFlags.None, "auAriaEllipsisLabel", "ariaEllipsisLabel"], pageLink: [i0.ɵɵInputFlags.None, "auPageLink", "pageLink"], slotEllipsis: [i0.ɵɵInputFlags.None, "auSlotEllipsis", "slotEllipsis"], slotFirst: [i0.ɵɵInputFlags.None, "auSlotFirst", "slotFirst"], slotPrevious: [i0.ɵɵInputFlags.None, "auSlotPrevious", "slotPrevious"], slotNext: [i0.ɵɵInputFlags.None, "auSlotNext", "slotNext"], slotLast: [i0.ɵɵInputFlags.None, "auSlotLast", "slotLast"], slotPages: [i0.ɵɵInputFlags.None, "auSlotPages", "slotPages"], slotNumberLabel: [i0.ɵɵInputFlags.None, "auSlotNumberLabel", "slotNumberLabel"], slotStructure: [i0.ɵɵInputFlags.None, "auSlotStructure", "slotStructure"], disabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDisabled", "disabled", auBooleanAttribute], boundaryLinks: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auBoundaryLinks", "boundaryLinks", auBooleanAttribute], directionLinks: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDirectionLinks", "directionLinks", auBooleanAttribute], collectionSize: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auCollectionSize", "collectionSize", auNumberAttribute], page: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auPage", "page", auNumberAttribute], pageSize: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auPageSize", "pageSize", auNumberAttribute], size: [i0.ɵɵInputFlags.None, "auSize", "size"], pagesFactory: [i0.ɵɵInputFlags.None, "auPagesFactory", "pagesFactory"], className: [i0.ɵɵInputFlags.None, "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) {
910
+ i0.ɵɵtemplate(0, PaginationComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
911
+ } if (rf & 2) {
912
+ i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction2(2, _c2$7, ctx.state(), ctx.widget))("auSlot", ctx.state().slotStructure);
913
+ } }, dependencies: [SlotDirective], encapsulation: 2, changeDetection: 0 }); }
914
+ }
915
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
916
+ type: Component,
917
+ args: [{
918
+ selector: '[auPagination]',
919
+ standalone: true,
920
+ imports: [SlotDirective],
921
+ changeDetection: ChangeDetectionStrategy.OnPush,
922
+ host: {
923
+ '[attr.aria-label]': 'state().ariaLabel',
924
+ },
925
+ encapsulation: ViewEncapsulation.None,
926
+ template: `<ng-template [auSlotProps]="{state: state(), widget}" [auSlot]="state().slotStructure"></ng-template>`,
927
+ }]
928
+ }], null, { ariaPageLabel: [{
929
+ type: Input,
930
+ args: ['auAriaPageLabel']
931
+ }], ariaLiveLabel: [{
932
+ type: Input,
933
+ args: ['auAriaLiveLabel']
934
+ }], ariaLabel: [{
935
+ type: Input,
936
+ args: ['auAriaLabel']
937
+ }], activeLabel: [{
938
+ type: Input,
939
+ args: ['auActiveLabel']
940
+ }], ariaFirstLabel: [{
941
+ type: Input,
942
+ args: ['auAriaFirstLabel']
943
+ }], ariaPreviousLabel: [{
944
+ type: Input,
945
+ args: ['auAriaPreviousLabel']
946
+ }], ariaNextLabel: [{
947
+ type: Input,
948
+ args: ['auAriaNextLabel']
949
+ }], ariaLastLabel: [{
950
+ type: Input,
951
+ args: ['auAriaLastLabel']
952
+ }], ariaEllipsisLabel: [{
953
+ type: Input,
954
+ args: ['auAriaEllipsisLabel']
955
+ }], pageLink: [{
956
+ type: Input,
957
+ args: ['auPageLink']
958
+ }], slotEllipsis: [{
959
+ type: Input,
960
+ args: ['auSlotEllipsis']
961
+ }], slotEllipsisFromContent: [{
962
+ type: ContentChild,
963
+ args: [PaginationEllipsisDirective, { static: false }]
964
+ }], slotFirst: [{
965
+ type: Input,
966
+ args: ['auSlotFirst']
967
+ }], slotFirstFromContent: [{
968
+ type: ContentChild,
969
+ args: [PaginationFirstDirective, { static: false }]
970
+ }], slotPrevious: [{
971
+ type: Input,
972
+ args: ['auSlotPrevious']
973
+ }], slotPreviousFromContent: [{
974
+ type: ContentChild,
975
+ args: [PaginationPreviousDirective, { static: false }]
976
+ }], slotNext: [{
977
+ type: Input,
978
+ args: ['auSlotNext']
979
+ }], slotNextFromContent: [{
980
+ type: ContentChild,
981
+ args: [PaginationNextDirective, { static: false }]
982
+ }], slotLast: [{
983
+ type: Input,
984
+ args: ['auSlotLast']
985
+ }], slotLastFromContent: [{
986
+ type: ContentChild,
987
+ args: [PaginationLastDirective, { static: false }]
988
+ }], slotPages: [{
989
+ type: Input,
990
+ args: ['auSlotPages']
991
+ }], slotPagesFromContent: [{
992
+ type: ContentChild,
993
+ args: [PaginationPagesDirective, { static: false }]
994
+ }], slotNumberLabel: [{
995
+ type: Input,
996
+ args: ['auSlotNumberLabel']
997
+ }], slotNumberLabelFromContent: [{
998
+ type: ContentChild,
999
+ args: [PaginationNumberDirective, { static: false }]
1000
+ }], slotStructure: [{
1001
+ type: Input,
1002
+ args: ['auSlotStructure']
1003
+ }], slotStructureFromContent: [{
1004
+ type: ContentChild,
1005
+ args: [PaginationStructureDirective, { static: false }]
1006
+ }], disabled: [{
1007
+ type: Input,
1008
+ args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
1009
+ }], boundaryLinks: [{
1010
+ type: Input,
1011
+ args: [{ alias: 'auBoundaryLinks', transform: auBooleanAttribute }]
1012
+ }], directionLinks: [{
1013
+ type: Input,
1014
+ args: [{ alias: 'auDirectionLinks', transform: auBooleanAttribute }]
1015
+ }], collectionSize: [{
1016
+ type: Input,
1017
+ args: [{ alias: 'auCollectionSize', transform: auNumberAttribute }]
1018
+ }], page: [{
1019
+ type: Input,
1020
+ args: [{ alias: 'auPage', transform: auNumberAttribute }]
1021
+ }], pageSize: [{
1022
+ type: Input,
1023
+ args: [{ alias: 'auPageSize', transform: auNumberAttribute }]
1024
+ }], size: [{
1025
+ type: Input,
1026
+ args: ['auSize']
1027
+ }], pagesFactory: [{
1028
+ type: Input,
1029
+ args: ['auPagesFactory']
1030
+ }], pageChange: [{
1031
+ type: Output,
1032
+ args: ['auPageChange']
1033
+ }], className: [{
1034
+ type: Input,
1035
+ args: ['auClassName']
1036
+ }] }); })();
1037
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "components/pagination/pagination.component.ts", lineNumber: 206 }); })();
1038
+
1039
+ const createRating = createRating$1;
1040
+
1041
+ const _c0$6 = ["auRating", ""];
1042
+ function _forTrack0$1($index, $item) { return this.trackByIndex($index); }
1043
+ const _c1$6 = a0 => ({ index: a0 });
1044
+ const _c2$6 = (a0, a1) => [a0, a1];
1045
+ function RatingComponent_For_1_ng_template_3_Template(rf, ctx) { }
1046
+ function RatingComponent_For_1_Template(rf, ctx) { if (rf & 1) {
1047
+ i0.ɵɵelementStart(0, "span", 0);
1048
+ i0.ɵɵtext(1);
1049
+ i0.ɵɵelementEnd();
1050
+ i0.ɵɵelementStart(2, "span", 1);
1051
+ i0.ɵɵtemplate(3, RatingComponent_For_1_ng_template_3_Template, 0, 0, "ng-template", 2);
1052
+ i0.ɵɵelementEnd();
1053
+ } if (rf & 2) {
1054
+ const index_r1 = ctx.$index;
1055
+ const ctx_r1 = i0.ɵɵnextContext();
1056
+ i0.ɵɵadvance();
1057
+ i0.ɵɵtextInterpolate1("(", index_r1 < ctx_r1.state().visibleRating ? "*" : " ", ")");
1058
+ i0.ɵɵadvance();
1059
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(6, _c2$6, ctx_r1._widget.directives.starDirective, i0.ɵɵpureFunction1(4, _c1$6, index_r1)));
1060
+ i0.ɵɵadvance();
1061
+ i0.ɵɵproperty("auSlot", ctx_r1.state().slotStar)("auSlotProps", ctx_r1.state().stars[index_r1]);
1062
+ } }
1063
+ class RatingStarDirective {
1064
+ constructor() {
1065
+ this.templateRef = inject((TemplateRef));
1066
+ }
1067
+ static ngTemplateContextGuard(_dir, context) {
1068
+ return true;
1069
+ }
1070
+ static { this.ɵfac = function RatingStarDirective_Factory(t) { return new (t || RatingStarDirective)(); }; }
1071
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RatingStarDirective, selectors: [["ng-template", "auRatingStar", ""]], standalone: true }); }
1072
+ }
1073
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RatingStarDirective, [{
1074
+ type: Directive,
1075
+ args: [{ selector: 'ng-template[auRatingStar]', standalone: true }]
1076
+ }], null, null); })();
1077
+ class RatingComponent extends BaseWidgetDirective {
1078
+ constructor() {
1079
+ super(...arguments);
1080
+ this._widget = callWidgetFactory({
1081
+ factory: createRating,
1082
+ widgetName: 'rating',
1083
+ events: {
1084
+ onHover: (event) => this.hover.emit(event),
1085
+ onLeave: (event) => this.leave.emit(event),
1086
+ onRatingChange: (rating) => {
1087
+ this.ratingChange.emit(rating);
1088
+ this.onChange(rating);
1089
+ },
1090
+ },
1091
+ afterInit: () => {
1092
+ useDirectiveForHost(this._widget.directives.containerDirective);
1093
+ },
1094
+ });
1095
+ this.onChange = (_) => { };
1096
+ this.onTouched = () => { };
1097
+ /**
1098
+ * An event emitted when the user is hovering over a given rating.
1099
+ *
1100
+ * Event payload is equal to the rating being hovered over.
1101
+ */
1102
+ this.hover = new EventEmitter();
1103
+ /**
1104
+ * An event emitted when the user stops hovering over a given rating.
1105
+ *
1106
+ * Event payload is equal to the rating of the last item being hovered over.
1107
+ */
1108
+ this.leave = new EventEmitter();
1109
+ /**
1110
+ * An event emitted when the rating is changed.
1111
+ *
1112
+ * Event payload is equal to the newly selected rating.
1113
+ */
1114
+ this.ratingChange = new EventEmitter();
1115
+ }
1116
+ writeValue(value) {
1117
+ this._widget.patch({ rating: value });
1118
+ }
1119
+ registerOnChange(fn) {
1120
+ this.onChange = fn;
1121
+ }
1122
+ registerOnTouched(fn) {
1123
+ this.onTouched = fn;
1124
+ }
1125
+ setDisabledState(disabled) {
1126
+ this._widget.patch({ disabled });
1127
+ }
1128
+ ngAfterContentChecked() {
1129
+ this._widget.patchSlots({
1130
+ slotStar: this.slotStarFromContent?.templateRef,
1131
+ });
1132
+ }
1133
+ trackByIndex(index) {
1134
+ return index;
1135
+ }
1136
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRatingComponent_BaseFactory; return function RatingComponent_Factory(t) { return (ɵRatingComponent_BaseFactory || (ɵRatingComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RatingComponent)))(t || RatingComponent); }; })(); }
1137
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RatingComponent, selectors: [["", "auRating", ""]], contentQueries: function RatingComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1138
+ i0.ɵɵcontentQuery(dirIndex, RatingStarDirective, 5);
1139
+ } if (rf & 2) {
1140
+ let _t;
1141
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStarFromContent = _t.first);
1142
+ } }, hostAttrs: [1, "d-inline-flex"], hostBindings: function RatingComponent_HostBindings(rf, ctx) { if (rf & 1) {
1143
+ i0.ɵɵlistener("blur", function RatingComponent_blur_HostBindingHandler() { return ctx.onTouched(); });
1144
+ } }, inputs: { ariaValueTextFn: [i0.ɵɵInputFlags.None, "auAriaValueTextFn", "ariaValueTextFn"], disabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDisabled", "disabled", auBooleanAttribute], maxRating: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auMaxRating", "maxRating", auNumberAttribute], rating: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auRating", "rating", auNumberAttribute], readonly: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auReadonly", "readonly", auBooleanAttribute], resettable: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auResettable", "resettable", auBooleanAttribute], slotStar: [i0.ɵɵInputFlags.None, "auSlotStar", "slotStar"], tabindex: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auTabindex", "tabindex", auNumberAttribute], className: [i0.ɵɵInputFlags.None, "auClassName", "className"], ariaLabel: [i0.ɵɵInputFlags.None, "auAriaLabel", "ariaLabel"], ariaLabelledBy: [i0.ɵɵInputFlags.None, "auAriaLabelledBy", "ariaLabelledBy"] }, outputs: { hover: "auHover", leave: "auLeave", ratingChange: "auRatingChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RatingComponent), multi: true }]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c0$6, decls: 2, vars: 0, consts: [[1, "visually-hidden"], [3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function RatingComponent_Template(rf, ctx) { if (rf & 1) {
1145
+ i0.ɵɵrepeaterCreate(0, RatingComponent_For_1_Template, 4, 9, null, null, _forTrack0$1, true);
1146
+ } if (rf & 2) {
1147
+ i0.ɵɵrepeater(ctx.state().stars);
1148
+ } }, dependencies: [UseDirective, SlotDirective], encapsulation: 2, changeDetection: 0 }); }
1149
+ }
1150
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RatingComponent, [{
1151
+ type: Component,
1152
+ args: [{
1153
+ selector: '[auRating]',
1154
+ standalone: true,
1155
+ imports: [UseDirective, SlotDirective],
1156
+ changeDetection: ChangeDetectionStrategy.OnPush,
1157
+ encapsulation: ViewEncapsulation.None,
1158
+ host: {
1159
+ class: 'd-inline-flex',
1160
+ '(blur)': 'onTouched()',
1161
+ },
1162
+ template: `
1163
+ @for (item of state().stars; track trackByIndex(index); let index = $index) {
1164
+ <span class="visually-hidden">({{ index < state().visibleRating ? '*' : ' ' }})</span>
1165
+ <span [auUse]="[_widget.directives.starDirective, {index}]">
1166
+ <ng-template [auSlot]="state().slotStar" [auSlotProps]="state().stars[index]"></ng-template>
1167
+ </span>
1168
+ }
1169
+ `,
1170
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RatingComponent), multi: true }],
1171
+ }]
1172
+ }], null, { ariaValueTextFn: [{
1173
+ type: Input,
1174
+ args: ['auAriaValueTextFn']
1175
+ }], disabled: [{
1176
+ type: Input,
1177
+ args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
1178
+ }], maxRating: [{
1179
+ type: Input,
1180
+ args: [{ alias: 'auMaxRating', transform: auNumberAttribute }]
1181
+ }], rating: [{
1182
+ type: Input,
1183
+ args: [{ alias: 'auRating', transform: auNumberAttribute }]
1184
+ }], readonly: [{
1185
+ type: Input,
1186
+ args: [{ alias: 'auReadonly', transform: auBooleanAttribute }]
1187
+ }], resettable: [{
1188
+ type: Input,
1189
+ args: [{ alias: 'auResettable', transform: auBooleanAttribute }]
1190
+ }], slotStar: [{
1191
+ type: Input,
1192
+ args: ['auSlotStar']
1193
+ }], slotStarFromContent: [{
1194
+ type: ContentChild,
1195
+ args: [RatingStarDirective, { static: false }]
1196
+ }], tabindex: [{
1197
+ type: Input,
1198
+ args: [{ alias: 'auTabindex', transform: auNumberAttribute }]
1199
+ }], className: [{
1200
+ type: Input,
1201
+ args: ['auClassName']
1202
+ }], ariaLabel: [{
1203
+ type: Input,
1204
+ args: ['auAriaLabel']
1205
+ }], ariaLabelledBy: [{
1206
+ type: Input,
1207
+ args: ['auAriaLabelledBy']
1208
+ }], hover: [{
1209
+ type: Output,
1210
+ args: ['auHover']
1211
+ }], leave: [{
1212
+ type: Output,
1213
+ args: ['auLeave']
1214
+ }], ratingChange: [{
1215
+ type: Output,
1216
+ args: ['auRatingChange']
1217
+ }] }); })();
1218
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RatingComponent, { className: "RatingComponent", filePath: "components/rating/rating.component.ts", lineNumber: 58 }); })();
1219
+
1220
+ const createSelect = createSelect$1;
1221
+
1222
+ const _c0$5 = ["auSelect", ""];
1223
+ const _c1$5 = (a0, a1) => [a0, a1];
1224
+ const _c2$5 = (a0, a1, a2) => ({ state: a0, widget: a1, itemContext: a2 });
1225
+ const _c3$4 = (a0, a1, a2) => [a0, a1, a2];
1226
+ function SelectComponent_Conditional_0_Conditional_1_For_1_ng_template_1_Template(rf, ctx) { }
1227
+ function SelectComponent_Conditional_0_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
1228
+ i0.ɵɵelementStart(0, "div", 3);
1229
+ i0.ɵɵtemplate(1, SelectComponent_Conditional_0_Conditional_1_For_1_ng_template_1_Template, 0, 0, "ng-template", 4);
1230
+ i0.ɵɵelementEnd();
1231
+ } if (rf & 2) {
1232
+ const itemContext_r2 = ctx.$implicit;
1233
+ const state_r3 = i0.ɵɵnextContext(2);
1234
+ const ctx_r3 = i0.ɵɵnextContext();
1235
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(3, _c1$5, ctx_r3._widget.directives.badgeAttributesDirective, itemContext_r2));
1236
+ i0.ɵɵadvance();
1237
+ i0.ɵɵproperty("auSlot", state_r3.slotBadgeLabel)("auSlotProps", i0.ɵɵpureFunction3(6, _c2$5, state_r3, ctx_r3.widget, itemContext_r2));
1238
+ } }
1239
+ function SelectComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1240
+ i0.ɵɵrepeaterCreate(0, SelectComponent_Conditional_0_Conditional_1_For_1_Template, 2, 10, "div", 3, i0.ɵɵcomponentInstance().itemCtxTrackBy, true);
1241
+ } if (rf & 2) {
1242
+ i0.ɵɵrepeater(ctx);
1243
+ } }
1244
+ function SelectComponent_Conditional_0_Conditional_3_For_2_ng_template_1_Template(rf, ctx) { }
1245
+ function SelectComponent_Conditional_0_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
1246
+ i0.ɵɵelementStart(0, "li", 6);
1247
+ i0.ɵɵtemplate(1, SelectComponent_Conditional_0_Conditional_3_For_2_ng_template_1_Template, 0, 0, "ng-template", 4);
1248
+ i0.ɵɵelementEnd();
1249
+ } if (rf & 2) {
1250
+ const itemContext_r5 = ctx.$implicit;
1251
+ const state_r3 = i0.ɵɵnextContext(2);
1252
+ const ctx_r3 = i0.ɵɵnextContext();
1253
+ i0.ɵɵclassProp("text-bg-primary", itemContext_r5 === state_r3.highlighted);
1254
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(5, _c1$5, ctx_r3._widget.directives.itemAttributesDirective, itemContext_r5));
1255
+ i0.ɵɵadvance();
1256
+ i0.ɵɵproperty("auSlot", state_r3.slotItem)("auSlotProps", i0.ɵɵpureFunction3(8, _c2$5, state_r3, ctx_r3.widget, itemContext_r5));
1257
+ } }
1258
+ function SelectComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1259
+ i0.ɵɵelementStart(0, "ul", 2);
1260
+ i0.ɵɵrepeaterCreate(1, SelectComponent_Conditional_0_Conditional_3_For_2_Template, 2, 12, "li", 5, i0.ɵɵcomponentInstance().itemCtxTrackBy, true);
1261
+ i0.ɵɵelementEnd();
1262
+ } if (rf & 2) {
1263
+ const state_r3 = i0.ɵɵnextContext();
1264
+ const ctx_r3 = i0.ɵɵnextContext();
1265
+ i0.ɵɵproperty("auUseMulti", i0.ɵɵpureFunction3(1, _c3$4, ctx_r3.widget.directives.hasFocusDirective, ctx_r3.widget.directives.floatingDirective, ctx_r3.widget.directives.menuAttributesDirective));
1266
+ i0.ɵɵadvance();
1267
+ i0.ɵɵrepeater(state_r3.visibleItems);
1268
+ } }
1269
+ function SelectComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1270
+ const _r1 = i0.ɵɵgetCurrentView();
1271
+ i0.ɵɵelementStart(0, "div", 0);
1272
+ i0.ɵɵtemplate(1, SelectComponent_Conditional_0_Conditional_1_Template, 2, 0);
1273
+ i0.ɵɵelementStart(2, "input", 1);
1274
+ i0.ɵɵlistener("input", function SelectComponent_Conditional_0_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3._widget.actions.onInput($event)); })("keydown", function SelectComponent_Conditional_0_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3._widget.actions.onInputKeydown($event)); });
1275
+ i0.ɵɵelementEnd()();
1276
+ i0.ɵɵtemplate(3, SelectComponent_Conditional_0_Conditional_3_Template, 3, 5, "ul", 2);
1277
+ } if (rf & 2) {
1278
+ let tmp_3_0;
1279
+ const state_r3 = ctx;
1280
+ const ctx_r3 = i0.ɵɵnextContext();
1281
+ i0.ɵɵproperty("auUseMulti", i0.ɵɵpureFunction2(6, _c1$5, ctx_r3.widget.directives.hasFocusDirective, ctx_r3.widget.directives.inputContainerDirective));
1282
+ i0.ɵɵadvance();
1283
+ i0.ɵɵconditional(1, (tmp_3_0 = state_r3.selectedContexts) ? 1 : -1, tmp_3_0);
1284
+ i0.ɵɵadvance();
1285
+ i0.ɵɵproperty("value", state_r3.filterText);
1286
+ i0.ɵɵattribute("id", state_r3.id)("aria-label", state_r3.ariaLabel);
1287
+ i0.ɵɵadvance();
1288
+ i0.ɵɵconditional(3, state_r3.open && state_r3.visibleItems.length ? 3 : -1);
1289
+ } }
1290
+ class SelectBadgeLabelDirective {
1291
+ constructor() {
1292
+ this.templateRef = inject((TemplateRef));
1293
+ }
1294
+ static ngTemplateContextGuard(_dir, context) {
1295
+ return true;
1296
+ }
1297
+ static { this.ɵfac = function SelectBadgeLabelDirective_Factory(t) { return new (t || SelectBadgeLabelDirective)(); }; }
1298
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SelectBadgeLabelDirective, selectors: [["ng-template", "auSelectBadgeLabel", ""]], standalone: true }); }
1299
+ }
1300
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectBadgeLabelDirective, [{
1301
+ type: Directive,
1302
+ args: [{ selector: 'ng-template[auSelectBadgeLabel]', standalone: true }]
1303
+ }], null, null); })();
1304
+ class SelectItemDirective {
1305
+ constructor() {
1306
+ this.templateRef = inject((TemplateRef));
1307
+ }
1308
+ static ngTemplateContextGuard(_dir, context) {
1309
+ return true;
1310
+ }
1311
+ static { this.ɵfac = function SelectItemDirective_Factory(t) { return new (t || SelectItemDirective)(); }; }
1312
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SelectItemDirective, selectors: [["ng-template", "auSelectItem", ""]], standalone: true }); }
1313
+ }
1314
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectItemDirective, [{
1315
+ type: Directive,
1316
+ args: [{ selector: 'ng-template[auSelectItem]', standalone: true }]
1317
+ }], null, null); })();
1318
+ class SelectComponent extends BaseWidgetDirective {
1319
+ constructor() {
1320
+ super(...arguments);
1321
+ /**
1322
+ * Callback called when the text filter change
1323
+ */
1324
+ this.filterTextChange = new EventEmitter();
1325
+ /**
1326
+ * Callback called when the selection change
1327
+ */
1328
+ this.selectedChange = new EventEmitter();
1329
+ /**
1330
+ * Callback called dropdown open state change
1331
+ */
1332
+ this.openChange = new EventEmitter();
1333
+ this._widget = callWidgetFactory({
1334
+ factory: createSelect,
1335
+ widgetName: 'select',
1336
+ events: {
1337
+ onOpenChange: (event) => this.openChange.emit(event),
1338
+ onSelectedChange: (event) => this.selectedChange.emit(event),
1339
+ onFilterTextChange: (event) => this.filterTextChange.emit(event),
1340
+ },
1341
+ afterInit: () => {
1342
+ useDirectiveForHost(this._widget.directives.referenceDirective);
1343
+ },
1344
+ });
1345
+ }
1346
+ itemCtxTrackBy(_, itemContext) {
1347
+ return itemContext.id;
1348
+ }
1349
+ ngAfterContentChecked() {
1350
+ this._widget.patchSlots({
1351
+ slotBadgeLabel: this.slotSelectBadgeLabelFromContent?.templateRef,
1352
+ slotItem: this.slotSelectItemFromContent?.templateRef,
1353
+ });
1354
+ }
1355
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSelectComponent_BaseFactory; return function SelectComponent_Factory(t) { return (ɵSelectComponent_BaseFactory || (ɵSelectComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SelectComponent)))(t || SelectComponent); }; })(); }
1356
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectComponent, selectors: [["", "auSelect", ""]], contentQueries: function SelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1357
+ i0.ɵɵcontentQuery(dirIndex, SelectBadgeLabelDirective, 5);
1358
+ i0.ɵɵcontentQuery(dirIndex, SelectItemDirective, 5);
1359
+ } if (rf & 2) {
1360
+ let _t;
1361
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotSelectBadgeLabelFromContent = _t.first);
1362
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotSelectItemFromContent = _t.first);
1363
+ } }, hostVars: 2, hostBindings: function SelectComponent_HostBindings(rf, ctx) { if (rf & 2) {
1364
+ i0.ɵɵclassMap("au-select dropdown border border-1 p-1 mb-3 d-block" + ctx.state().className);
1365
+ } }, inputs: { ariaLabel: [i0.ɵɵInputFlags.None, "auAriaLabel", "ariaLabel"], id: [i0.ɵɵInputFlags.None, "auId", "id"], items: [i0.ɵɵInputFlags.None, "auItems", "items"], allowedPlacements: [i0.ɵɵInputFlags.None, "auAllowedPlacements", "allowedPlacements"], open: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auOpen", "open", auBooleanAttribute], filterText: [i0.ɵɵInputFlags.None, "auFilterText", "filterText"], className: [i0.ɵɵInputFlags.None, "auClassName", "className"], disabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDisabled", "disabled", auBooleanAttribute], selected: [i0.ɵɵInputFlags.None, "auSelected", "selected"], loading: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auLoading", "loading", auBooleanAttribute], itemIdFn: [i0.ɵɵInputFlags.None, "auItemIdFn", "itemIdFn"], menuClassName: [i0.ɵɵInputFlags.None, "auMenuClassName", "menuClassName"], slotBadgeLabel: [i0.ɵɵInputFlags.None, "auSlotBadgeLabel", "slotBadgeLabel"], slotItem: [i0.ɵɵInputFlags.None, "auSlotItem", "slotItem"], menuItemClassName: [i0.ɵɵInputFlags.None, "auMenuItemClassName", "menuItemClassName"], badgeClassName: [i0.ɵɵInputFlags.None, "auBadgeClassName", "badgeClassName"], navSelector: [i0.ɵɵInputFlags.None, "auNavSelector", "navSelector"] }, outputs: { filterTextChange: "auFilterTextChange", selectedChange: "auSelectedChange", openChange: "auOpenChange" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c0$5, decls: 1, vars: 1, consts: [[1, "d-flex", "align-items-center", "flex-wrap", "gap-1", 3, "auUseMulti"], ["type", "text", "aria-autocomplete", "list", "autoCorrect", "off", "autoCapitalize", "none", "autoComplete", "off", 1, "au-select-input", "flex-grow-1", "border-0", 3, "input", "keydown", "value"], [1, "dropdown-menu", "show", 3, "auUseMulti"], [3, "auUse"], [3, "auSlot", "auSlotProps"], [1, "dropdown-item", "position-relative", 3, "auUse", "text-bg-primary"], [1, "dropdown-item", "position-relative", 3, "auUse"]], template: function SelectComponent_Template(rf, ctx) { if (rf & 1) {
1366
+ i0.ɵɵtemplate(0, SelectComponent_Conditional_0_Template, 4, 9);
1367
+ } if (rf & 2) {
1368
+ let tmp_0_0;
1369
+ i0.ɵɵconditional(0, (tmp_0_0 = ctx.state()) ? 0 : -1, tmp_0_0);
1370
+ } }, dependencies: [UseMultiDirective, SlotDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
1371
+ }
1372
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
1373
+ type: Component,
1374
+ args: [{
1375
+ standalone: true,
1376
+ imports: [UseMultiDirective, SlotDirective, UseDirective],
1377
+ changeDetection: ChangeDetectionStrategy.OnPush,
1378
+ selector: '[auSelect]',
1379
+ host: {
1380
+ '[class]': '"au-select dropdown border border-1 p-1 mb-3 d-block" + state().className',
1381
+ },
1382
+ template: `
1383
+ @if (state(); as state) {
1384
+ <div
1385
+ [auUseMulti]="[widget.directives.hasFocusDirective, widget.directives.inputContainerDirective]"
1386
+ class="d-flex align-items-center flex-wrap gap-1"
1387
+ >
1388
+ @if (state.selectedContexts; as selectedContexts) {
1389
+ @for (itemContext of selectedContexts; track itemCtxTrackBy($index, itemContext)) {
1390
+ <div [auUse]="[_widget.directives.badgeAttributesDirective, itemContext]">
1391
+ <ng-template [auSlot]="state.slotBadgeLabel" [auSlotProps]="{state, widget, itemContext}"></ng-template>
1392
+ </div>
1393
+ }
1394
+ }
1395
+ <input
1396
+ attr.id="{{ state.id }}"
1397
+ attr.aria-label="{{ state.ariaLabel }}"
1398
+ type="text"
1399
+ class="au-select-input flex-grow-1 border-0"
1400
+ [value]="state.filterText"
1401
+ aria-autocomplete="list"
1402
+ autoCorrect="off"
1403
+ autoCapitalize="none"
1404
+ autoComplete="off"
1405
+ (input)="_widget.actions.onInput($event)"
1406
+ (keydown)="_widget.actions.onInputKeydown($event)"
1407
+ />
1408
+ </div>
1409
+ @if (state.open && state.visibleItems.length) {
1410
+ <ul
1411
+ [auUseMulti]="[widget.directives.hasFocusDirective, widget.directives.floatingDirective, widget.directives.menuAttributesDirective]"
1412
+ class="dropdown-menu show"
1413
+ >
1414
+ @for (itemContext of state.visibleItems; track itemCtxTrackBy($index, itemContext)) {
1415
+ <li
1416
+ class="dropdown-item position-relative"
1417
+ [auUse]="[_widget.directives.itemAttributesDirective, itemContext]"
1418
+ [class.text-bg-primary]="itemContext === state.highlighted"
1419
+ >
1420
+ <ng-template [auSlot]="state.slotItem" [auSlotProps]="{state, widget, itemContext}"></ng-template>
1421
+ </li>
1422
+ }
1423
+ </ul>
1424
+ }
1425
+ }
1426
+ `,
1427
+ }]
1428
+ }], null, { ariaLabel: [{
1429
+ type: Input,
1430
+ args: ['auAriaLabel']
1431
+ }], id: [{
1432
+ type: Input,
1433
+ args: ['auId']
1434
+ }], items: [{
1435
+ type: Input,
1436
+ args: ['auItems']
1437
+ }], allowedPlacements: [{
1438
+ type: Input,
1439
+ args: ['auAllowedPlacements']
1440
+ }], open: [{
1441
+ type: Input,
1442
+ args: [{ alias: 'auOpen', transform: auBooleanAttribute }]
1443
+ }], filterText: [{
1444
+ type: Input,
1445
+ args: ['auFilterText']
1446
+ }], className: [{
1447
+ type: Input,
1448
+ args: ['auClassName']
1449
+ }], disabled: [{
1450
+ type: Input,
1451
+ args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
1452
+ }], selected: [{
1453
+ type: Input,
1454
+ args: ['auSelected']
1455
+ }], loading: [{
1456
+ type: Input,
1457
+ args: [{ alias: 'auLoading', transform: auBooleanAttribute }]
1458
+ }], itemIdFn: [{
1459
+ type: Input,
1460
+ args: ['auItemIdFn']
1461
+ }], menuClassName: [{
1462
+ type: Input,
1463
+ args: ['auMenuClassName']
1464
+ }], slotBadgeLabel: [{
1465
+ type: Input,
1466
+ args: ['auSlotBadgeLabel']
1467
+ }], slotSelectBadgeLabelFromContent: [{
1468
+ type: ContentChild,
1469
+ args: [SelectBadgeLabelDirective, { static: false }]
1470
+ }], slotItem: [{
1471
+ type: Input,
1472
+ args: ['auSlotItem']
1473
+ }], slotSelectItemFromContent: [{
1474
+ type: ContentChild,
1475
+ args: [SelectItemDirective, { static: false }]
1476
+ }], filterTextChange: [{
1477
+ type: Output,
1478
+ args: ['auFilterTextChange']
1479
+ }], selectedChange: [{
1480
+ type: Output,
1481
+ args: ['auSelectedChange']
1482
+ }], openChange: [{
1483
+ type: Output,
1484
+ args: ['auOpenChange']
1485
+ }], menuItemClassName: [{
1486
+ type: Input,
1487
+ args: ['auMenuItemClassName']
1488
+ }], badgeClassName: [{
1489
+ type: Input,
1490
+ args: ['auBadgeClassName']
1491
+ }], navSelector: [{
1492
+ type: Input,
1493
+ args: ['auNavSelector']
1494
+ }] }); })();
1495
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "components/select/select.component.ts", lineNumber: 87 }); })();
1496
+
1497
+ const createAlert = createAlert$1;
1498
+
1499
+ const _c0$4 = ["structure"];
1500
+ const _c1$4 = (a0, a1) => ({ state: a0, widget: a1 });
1501
+ function AlertDefaultSlotsComponent_ng_template_0_ng_template_1_Template(rf, ctx) { }
1502
+ function AlertDefaultSlotsComponent_ng_template_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1503
+ const _r1 = i0.ɵɵgetCurrentView();
1504
+ i0.ɵɵelementStart(0, "button", 5);
1505
+ i0.ɵɵlistener("click", function AlertDefaultSlotsComponent_ng_template_0_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const widget_r2 = i0.ɵɵnextContext().widget; return i0.ɵɵresetView(widget_r2.api.close()); });
1506
+ i0.ɵɵelementEnd();
1507
+ } if (rf & 2) {
1508
+ const state_r3 = i0.ɵɵnextContext().state;
1509
+ i0.ɵɵattribute("aria-label", state_r3.ariaCloseButtonLabel);
1510
+ } }
1511
+ function AlertDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1512
+ i0.ɵɵelementStart(0, "div", 2);
1513
+ i0.ɵɵtemplate(1, AlertDefaultSlotsComponent_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 3);
1514
+ i0.ɵɵelementEnd();
1515
+ i0.ɵɵtemplate(2, AlertDefaultSlotsComponent_ng_template_0_Conditional_2_Template, 1, 1, "button", 4);
1516
+ } if (rf & 2) {
1517
+ const state_r3 = ctx.state;
1518
+ const widget_r2 = ctx.widget;
1519
+ i0.ɵɵadvance();
1520
+ i0.ɵɵproperty("auSlot", state_r3.slotDefault)("auSlotProps", i0.ɵɵpureFunction2(3, _c1$4, state_r3, widget_r2));
1521
+ i0.ɵɵadvance();
1522
+ i0.ɵɵconditional(2, state_r3.dismissible ? 2 : -1);
1523
+ } }
1524
+ const _c2$4 = ["auAlert", ""];
1525
+ const _c3$3 = ["*"];
1526
+ function AlertComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1527
+ i0.ɵɵprojection(0);
1528
+ } }
1529
+ function AlertComponent_Conditional_1_ng_template_1_Template(rf, ctx) { }
1530
+ function AlertComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1531
+ i0.ɵɵelementStart(0, "div", 2);
1532
+ i0.ɵɵtemplate(1, AlertComponent_Conditional_1_ng_template_1_Template, 0, 0, "ng-template", 3);
1533
+ i0.ɵɵelementEnd();
1534
+ } if (rf & 2) {
1535
+ const ctx_r0 = i0.ɵɵnextContext();
1536
+ i0.ɵɵclassMapInterpolate3("au-alert alert alert-", ctx_r0.state().type, " ", ctx_r0.state().className, " ", ctx_r0.state().dismissible ? "alert-dismissible" : "", "");
1537
+ i0.ɵɵproperty("auUse", ctx_r0.widget.directives.transitionDirective);
1538
+ i0.ɵɵadvance();
1539
+ i0.ɵɵproperty("auSlot", ctx_r0.state().slotStructure)("auSlotProps", i0.ɵɵpureFunction2(8, _c1$4, ctx_r0.state(), ctx_r0.widget));
1540
+ } }
1541
+ class AlertBodyDirective {
1542
+ constructor() {
1543
+ this.templateRef = inject((TemplateRef));
1544
+ }
1545
+ static ngTemplateContextGuard(dir, context) {
1546
+ return true;
1547
+ }
1548
+ static { this.ɵfac = function AlertBodyDirective_Factory(t) { return new (t || AlertBodyDirective)(); }; }
1549
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AlertBodyDirective, selectors: [["ng-template", "auAlertBody", ""]], standalone: true }); }
1550
+ }
1551
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertBodyDirective, [{
1552
+ type: Directive,
1553
+ args: [{ selector: 'ng-template[auAlertBody]', standalone: true }]
1554
+ }], null, null); })();
1555
+ class AlertStructureDirective {
1556
+ constructor() {
1557
+ this.templateRef = inject((TemplateRef));
1558
+ }
1559
+ static ngTemplateContextGuard(dir, context) {
1560
+ return true;
1561
+ }
1562
+ static { this.ɵfac = function AlertStructureDirective_Factory(t) { return new (t || AlertStructureDirective)(); }; }
1563
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AlertStructureDirective, selectors: [["ng-template", "auAlertStructure", ""]], standalone: true }); }
1564
+ }
1565
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertStructureDirective, [{
1566
+ type: Directive,
1567
+ args: [{ selector: 'ng-template[auAlertStructure]', standalone: true }]
1568
+ }], null, null); })();
1569
+ class AlertDefaultSlotsComponent {
1570
+ static { this.ɵfac = function AlertDefaultSlotsComponent_Factory(t) { return new (t || AlertDefaultSlotsComponent)(); }; }
1571
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function AlertDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
1572
+ i0.ɵɵviewQuery(_c0$4, 7);
1573
+ } if (rf & 2) {
1574
+ let _t;
1575
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
1576
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["auAlertStructure", ""], [1, "alert-body"], [3, "auSlot", "auSlotProps"], ["type", "button", 1, "btn-close"], ["type", "button", 1, "btn-close", 3, "click"]], template: function AlertDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
1577
+ i0.ɵɵtemplate(0, AlertDefaultSlotsComponent_ng_template_0_Template, 3, 6, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
1578
+ } }, dependencies: [SlotDirective, AlertStructureDirective], encapsulation: 2, changeDetection: 0 }); }
1579
+ }
1580
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertDefaultSlotsComponent, [{
1581
+ type: Component,
1582
+ args: [{
1583
+ standalone: true,
1584
+ changeDetection: ChangeDetectionStrategy.OnPush,
1585
+ imports: [SlotDirective, AlertStructureDirective],
1586
+ template: ` <ng-template auAlertStructure #structure let-state="state" let-widget="widget">
1587
+ <div class="alert-body">
1588
+ <ng-template [auSlot]="state.slotDefault" [auSlotProps]="{state, widget}"></ng-template>
1589
+ </div>
1590
+ @if (state.dismissible) {
1591
+ <button type="button" class="btn-close" (click)="widget.api.close()" [attr.aria-label]="state.ariaCloseButtonLabel"></button>
1592
+ }
1593
+ </ng-template>`,
1594
+ }]
1595
+ }], null, { structure: [{
1596
+ type: ViewChild,
1597
+ args: ['structure', { static: true }]
1598
+ }] }); })();
1599
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertDefaultSlotsComponent, { className: "AlertDefaultSlotsComponent", filePath: "components/alert/alert.component.ts", lineNumber: 57 }); })();
1600
+ const alertDefaultSlotStructure = new ComponentTemplate(AlertDefaultSlotsComponent, 'structure');
1601
+ const defaultConfig$4 = {
1602
+ slotStructure: alertDefaultSlotStructure,
1603
+ };
1604
+ class AlertComponent extends BaseWidgetDirective {
1605
+ constructor() {
1606
+ super(...arguments);
1607
+ /**
1608
+ * Callback called when the alert visibility changed.
1609
+ */
1610
+ this.visibleChange = new EventEmitter();
1611
+ /**
1612
+ * Callback called when the alert is hidden.
1613
+ */
1614
+ this.hidden = new EventEmitter();
1615
+ /**
1616
+ * Callback called when the alert is shown.
1617
+ */
1618
+ this.shown = new EventEmitter();
1619
+ this.defaultSlots = writable(defaultConfig$4);
1620
+ this._widget = callWidgetFactory({
1621
+ factory: createAlert,
1622
+ widgetName: 'alert',
1623
+ defaultConfig: this.defaultSlots,
1624
+ events: {
1625
+ onVisibleChange: (event) => this.visibleChange.emit(event),
1626
+ onShown: () => this.shown.emit(),
1627
+ onHidden: () => this.hidden.emit(),
1628
+ },
1629
+ });
1630
+ }
1631
+ ngAfterContentChecked() {
1632
+ this._widget.patchSlots({
1633
+ slotDefault: this.slotDefaultFromContent?.templateRef,
1634
+ slotStructure: this.slotStructureFromContent?.templateRef,
1635
+ });
1636
+ }
1637
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵAlertComponent_BaseFactory; return function AlertComponent_Factory(t) { return (ɵAlertComponent_BaseFactory || (ɵAlertComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AlertComponent)))(t || AlertComponent); }; })(); }
1638
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["", "auAlert", ""]], contentQueries: function AlertComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1639
+ i0.ɵɵcontentQuery(dirIndex, AlertBodyDirective, 5);
1640
+ i0.ɵɵcontentQuery(dirIndex, AlertStructureDirective, 5);
1641
+ } if (rf & 2) {
1642
+ let _t;
1643
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
1644
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
1645
+ } }, inputs: { type: [i0.ɵɵInputFlags.None, "auType", "type"], dismissible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDismissible", "dismissible", auBooleanAttribute], transition: [i0.ɵɵInputFlags.None, "auTransition", "transition"], visible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auVisible", "visible", auBooleanAttribute], animatedOnInit: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAnimatedOnInit", "animatedOnInit", auBooleanAttribute], animated: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAnimated", "animated", auBooleanAttribute], ariaCloseButtonLabel: [i0.ɵɵInputFlags.None, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], slotDefault: [i0.ɵɵInputFlags.None, "auSlotDefault", "slotDefault"], slotStructure: [i0.ɵɵInputFlags.None, "auSlotStructure", "slotStructure"], className: [i0.ɵɵInputFlags.None, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c2$4, ngContentSelectors: _c3$3, decls: 2, vars: 2, consts: [[3, "auSlotDefault"], ["role", "alert", 3, "auUse", "class"], ["role", "alert", 3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
1646
+ i0.ɵɵprojectionDef();
1647
+ i0.ɵɵtemplate(0, AlertComponent_ng_template_0_Template, 1, 0, "ng-template", 0)(1, AlertComponent_Conditional_1_Template, 2, 11, "div", 1);
1648
+ } if (rf & 2) {
1649
+ i0.ɵɵproperty("auSlotDefault", ctx.defaultSlots);
1650
+ i0.ɵɵadvance();
1651
+ i0.ɵɵconditional(1, !ctx.state().hidden ? 1 : -1);
1652
+ } }, dependencies: [SlotDirective, UseDirective, SlotDefaultDirective], encapsulation: 2, changeDetection: 0 }); }
1653
+ }
1654
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertComponent, [{
1655
+ type: Component,
1656
+ args: [{
1657
+ selector: '[auAlert]',
1658
+ standalone: true,
1659
+ changeDetection: ChangeDetectionStrategy.OnPush,
1660
+ imports: [SlotDirective, UseDirective, SlotDefaultDirective],
1661
+ template: ` <ng-template [auSlotDefault]="defaultSlots">
1662
+ <ng-content></ng-content>
1663
+ </ng-template>
1664
+
1665
+ @if (!state().hidden) {
1666
+ <div
1667
+ [auUse]="widget.directives.transitionDirective"
1668
+ class="au-alert alert alert-{{ state().type }} {{ state().className }} {{ state().dismissible ? 'alert-dismissible' : '' }}"
1669
+ role="alert"
1670
+ >
1671
+ <ng-template [auSlot]="state().slotStructure" [auSlotProps]="{state: state(), widget}"></ng-template>
1672
+ </div>
1673
+ }`,
1674
+ }]
1675
+ }], null, { type: [{
1676
+ type: Input,
1677
+ args: ['auType']
1678
+ }], dismissible: [{
1679
+ type: Input,
1680
+ args: [{ alias: 'auDismissible', transform: auBooleanAttribute }]
1681
+ }], transition: [{
1682
+ type: Input,
1683
+ args: ['auTransition']
1684
+ }], visible: [{
1685
+ type: Input,
1686
+ args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
1687
+ }], animatedOnInit: [{
1688
+ type: Input,
1689
+ args: [{ alias: 'auAnimatedOnInit', transform: auBooleanAttribute }]
1690
+ }], animated: [{
1691
+ type: Input,
1692
+ args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
1693
+ }], ariaCloseButtonLabel: [{
1694
+ type: Input,
1695
+ args: ['auAriaCloseButtonLabel']
1696
+ }], slotDefault: [{
1697
+ type: Input,
1698
+ args: ['auSlotDefault']
1699
+ }], slotDefaultFromContent: [{
1700
+ type: ContentChild,
1701
+ args: [AlertBodyDirective, { static: false }]
1702
+ }], slotStructure: [{
1703
+ type: Input,
1704
+ args: ['auSlotStructure']
1705
+ }], slotStructureFromContent: [{
1706
+ type: ContentChild,
1707
+ args: [AlertStructureDirective, { static: false }]
1708
+ }], visibleChange: [{
1709
+ type: Output,
1710
+ args: ['auVisibleChange']
1711
+ }], hidden: [{
1712
+ type: Output,
1713
+ args: ['auHidden']
1714
+ }], shown: [{
1715
+ type: Output,
1716
+ args: ['auShown']
1717
+ }], className: [{
1718
+ type: Input,
1719
+ args: ['auClassName']
1720
+ }] }); })();
1721
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "components/alert/alert.component.ts", lineNumber: 87 }); })();
1722
+
1723
+ const createAccordion = createAccordion$1;
1724
+
1725
+ const _c0$3 = ["structure"];
1726
+ const _c1$3 = (a0, a1) => ({ state: a0, widget: a1 });
1727
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_0_Template(rf, ctx) { if (rf & 1) {
1728
+ i0.ɵɵelementContainer(0, 9);
1729
+ } if (rf & 2) {
1730
+ i0.ɵɵnextContext();
1731
+ const h1_r1 = i0.ɵɵreference(8);
1732
+ i0.ɵɵproperty("ngTemplateOutlet", h1_r1);
1733
+ } }
1734
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_1_Template(rf, ctx) { if (rf & 1) {
1735
+ i0.ɵɵelementContainer(0, 9);
1736
+ } if (rf & 2) {
1737
+ i0.ɵɵnextContext();
1738
+ const h2_r2 = i0.ɵɵreference(10);
1739
+ i0.ɵɵproperty("ngTemplateOutlet", h2_r2);
1740
+ } }
1741
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_2_Template(rf, ctx) { if (rf & 1) {
1742
+ i0.ɵɵelementContainer(0, 9);
1743
+ } if (rf & 2) {
1744
+ i0.ɵɵnextContext();
1745
+ const h3_r3 = i0.ɵɵreference(12);
1746
+ i0.ɵɵproperty("ngTemplateOutlet", h3_r3);
1747
+ } }
1748
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_3_Template(rf, ctx) { if (rf & 1) {
1749
+ i0.ɵɵelementContainer(0, 9);
1750
+ } if (rf & 2) {
1751
+ i0.ɵɵnextContext();
1752
+ const h4_r4 = i0.ɵɵreference(14);
1753
+ i0.ɵɵproperty("ngTemplateOutlet", h4_r4);
1754
+ } }
1755
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_4_Template(rf, ctx) { if (rf & 1) {
1756
+ i0.ɵɵelementContainer(0, 9);
1757
+ } if (rf & 2) {
1758
+ i0.ɵɵnextContext();
1759
+ const h5_r5 = i0.ɵɵreference(16);
1760
+ i0.ɵɵproperty("ngTemplateOutlet", h5_r5);
1761
+ } }
1762
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_5_Template(rf, ctx) { if (rf & 1) {
1763
+ i0.ɵɵelementContainer(0, 9);
1764
+ } if (rf & 2) {
1765
+ i0.ɵɵnextContext();
1766
+ const h6_r6 = i0.ɵɵreference(18);
1767
+ i0.ɵɵproperty("ngTemplateOutlet", h6_r6);
1768
+ } }
1769
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Case_6_Template(rf, ctx) { if (rf & 1) {
1770
+ i0.ɵɵelementContainer(0, 9);
1771
+ } if (rf & 2) {
1772
+ i0.ɵɵnextContext();
1773
+ const h2_r2 = i0.ɵɵreference(10);
1774
+ i0.ɵɵproperty("ngTemplateOutlet", h2_r2);
1775
+ } }
1776
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_7_ng_template_1_Template(rf, ctx) { }
1777
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1778
+ i0.ɵɵelementStart(0, "h1", 10);
1779
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_7_ng_template_1_Template, 0, 0, "ng-template", 9);
1780
+ i0.ɵɵelementEnd();
1781
+ } if (rf & 2) {
1782
+ const widget_r7 = i0.ɵɵnextContext().widget;
1783
+ const button_r8 = i0.ɵɵreference(20);
1784
+ i0.ɵɵproperty("auUse", widget_r7.directives.headerDirective);
1785
+ i0.ɵɵadvance();
1786
+ i0.ɵɵproperty("ngTemplateOutlet", button_r8);
1787
+ } }
1788
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_9_ng_template_1_Template(rf, ctx) { }
1789
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_9_Template(rf, ctx) { if (rf & 1) {
1790
+ i0.ɵɵelementStart(0, "h2", 10);
1791
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_9_ng_template_1_Template, 0, 0, "ng-template", 9);
1792
+ i0.ɵɵelementEnd();
1793
+ } if (rf & 2) {
1794
+ const widget_r7 = i0.ɵɵnextContext().widget;
1795
+ const button_r8 = i0.ɵɵreference(20);
1796
+ i0.ɵɵproperty("auUse", widget_r7.directives.headerDirective);
1797
+ i0.ɵɵadvance();
1798
+ i0.ɵɵproperty("ngTemplateOutlet", button_r8);
1799
+ } }
1800
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_11_ng_template_1_Template(rf, ctx) { }
1801
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_11_Template(rf, ctx) { if (rf & 1) {
1802
+ i0.ɵɵelementStart(0, "h3", 10);
1803
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_11_ng_template_1_Template, 0, 0, "ng-template", 9);
1804
+ i0.ɵɵelementEnd();
1805
+ } if (rf & 2) {
1806
+ const widget_r7 = i0.ɵɵnextContext().widget;
1807
+ const button_r8 = i0.ɵɵreference(20);
1808
+ i0.ɵɵproperty("auUse", widget_r7.directives.headerDirective);
1809
+ i0.ɵɵadvance();
1810
+ i0.ɵɵproperty("ngTemplateOutlet", button_r8);
1811
+ } }
1812
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_13_ng_template_1_Template(rf, ctx) { }
1813
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_13_Template(rf, ctx) { if (rf & 1) {
1814
+ i0.ɵɵelementStart(0, "h4", 10);
1815
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_13_ng_template_1_Template, 0, 0, "ng-template", 9);
1816
+ i0.ɵɵelementEnd();
1817
+ } if (rf & 2) {
1818
+ const widget_r7 = i0.ɵɵnextContext().widget;
1819
+ const button_r8 = i0.ɵɵreference(20);
1820
+ i0.ɵɵproperty("auUse", widget_r7.directives.headerDirective);
1821
+ i0.ɵɵadvance();
1822
+ i0.ɵɵproperty("ngTemplateOutlet", button_r8);
1823
+ } }
1824
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_15_ng_template_1_Template(rf, ctx) { }
1825
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_15_Template(rf, ctx) { if (rf & 1) {
1826
+ i0.ɵɵelementStart(0, "h5", 10);
1827
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_15_ng_template_1_Template, 0, 0, "ng-template", 9);
1828
+ i0.ɵɵelementEnd();
1829
+ } if (rf & 2) {
1830
+ const widget_r7 = i0.ɵɵnextContext().widget;
1831
+ const button_r8 = i0.ɵɵreference(20);
1832
+ i0.ɵɵproperty("auUse", widget_r7.directives.headerDirective);
1833
+ i0.ɵɵadvance();
1834
+ i0.ɵɵproperty("ngTemplateOutlet", button_r8);
1835
+ } }
1836
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_17_ng_template_1_Template(rf, ctx) { }
1837
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_17_Template(rf, ctx) { if (rf & 1) {
1838
+ i0.ɵɵelementStart(0, "h6", 10);
1839
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_17_ng_template_1_Template, 0, 0, "ng-template", 9);
1840
+ i0.ɵɵelementEnd();
1841
+ } if (rf & 2) {
1842
+ const widget_r7 = i0.ɵɵnextContext().widget;
1843
+ const button_r8 = i0.ɵɵreference(20);
1844
+ i0.ɵɵproperty("auUse", widget_r7.directives.headerDirective);
1845
+ i0.ɵɵadvance();
1846
+ i0.ɵɵproperty("ngTemplateOutlet", button_r8);
1847
+ } }
1848
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_19_ng_template_1_Template(rf, ctx) { }
1849
+ function AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_19_Template(rf, ctx) { if (rf & 1) {
1850
+ i0.ɵɵelementStart(0, "button", 11);
1851
+ i0.ɵɵtemplate(1, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_19_ng_template_1_Template, 0, 0, "ng-template", 12);
1852
+ i0.ɵɵelementEnd();
1853
+ } if (rf & 2) {
1854
+ const ctx_r8 = i0.ɵɵnextContext();
1855
+ const state_r10 = ctx_r8.state;
1856
+ const widget_r7 = ctx_r8.widget;
1857
+ i0.ɵɵproperty("auUse", widget_r7.directives.buttonDirective);
1858
+ i0.ɵɵadvance();
1859
+ i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction2(3, _c1$3, state_r10, widget_r7))("auSlot", state_r10.slotItemHeader);
1860
+ } }
1861
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Conditional_21_ng_template_2_Template(rf, ctx) { }
1862
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Conditional_21_Template(rf, ctx) { if (rf & 1) {
1863
+ i0.ɵɵelementStart(0, "div", 8)(1, "div", 13);
1864
+ i0.ɵɵtemplate(2, AccordionItemDefaultSlotsComponent_ng_template_0_Conditional_21_ng_template_2_Template, 0, 0, "ng-template", 12);
1865
+ i0.ɵɵelementEnd()();
1866
+ } if (rf & 2) {
1867
+ const ctx_r8 = i0.ɵɵnextContext();
1868
+ const state_r10 = ctx_r8.state;
1869
+ const widget_r7 = ctx_r8.widget;
1870
+ i0.ɵɵproperty("auUse", widget_r7.directives.bodyContainerDirective);
1871
+ i0.ɵɵadvance();
1872
+ i0.ɵɵproperty("auUse", widget_r7.directives.bodyDirective);
1873
+ i0.ɵɵadvance();
1874
+ i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction2(4, _c1$3, state_r10, widget_r7))("auSlot", state_r10.slotItemBody);
1875
+ } }
1876
+ function AccordionItemDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1877
+ i0.ɵɵtemplate(0, AccordionItemDefaultSlotsComponent_ng_template_0_Case_0_Template, 1, 1)(1, AccordionItemDefaultSlotsComponent_ng_template_0_Case_1_Template, 1, 1)(2, AccordionItemDefaultSlotsComponent_ng_template_0_Case_2_Template, 1, 1)(3, AccordionItemDefaultSlotsComponent_ng_template_0_Case_3_Template, 1, 1)(4, AccordionItemDefaultSlotsComponent_ng_template_0_Case_4_Template, 1, 1)(5, AccordionItemDefaultSlotsComponent_ng_template_0_Case_5_Template, 1, 1)(6, AccordionItemDefaultSlotsComponent_ng_template_0_Case_6_Template, 1, 1)(7, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_7_Template, 2, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(9, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_9_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(11, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_11_Template, 2, 2, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(13, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_13_Template, 2, 2, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor)(15, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_15_Template, 2, 2, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor)(17, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_17_Template, 2, 2, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor)(19, AccordionItemDefaultSlotsComponent_ng_template_0_ng_template_19_Template, 2, 6, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor)(21, AccordionItemDefaultSlotsComponent_ng_template_0_Conditional_21_Template, 3, 7, "div", 8);
1878
+ } if (rf & 2) {
1879
+ let tmp_11_0;
1880
+ const state_r10 = ctx.state;
1881
+ i0.ɵɵconditional(0, (tmp_11_0 = state_r10.itemHeadingTag) === "h1" ? 0 : tmp_11_0 === "h2" ? 1 : tmp_11_0 === "h3" ? 2 : tmp_11_0 === "h4" ? 3 : tmp_11_0 === "h5" ? 4 : tmp_11_0 === "h6" ? 5 : 6);
1882
+ i0.ɵɵadvance(21);
1883
+ i0.ɵɵconditional(21, state_r10.shouldBeInDOM ? 21 : -1);
1884
+ } }
1885
+ const _c2$3 = ["auAccordionItem", ""];
1886
+ function AccordionItemComponent_ng_template_0_Template(rf, ctx) { }
1887
+ class AccordionBodyDirective {
1888
+ constructor() {
1889
+ this.templateRef = inject((TemplateRef));
1890
+ }
1891
+ static ngTemplateContextGuard(dir, context) {
1892
+ return true;
1893
+ }
1894
+ static { this.ɵfac = function AccordionBodyDirective_Factory(t) { return new (t || AccordionBodyDirective)(); }; }
1895
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionBodyDirective, selectors: [["ng-template", "auAccordionItemBody", ""]], standalone: true }); }
1896
+ }
1897
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionBodyDirective, [{
1898
+ type: Directive,
1899
+ args: [{ selector: 'ng-template[auAccordionItemBody]', standalone: true }]
1900
+ }], null, null); })();
1901
+ class AccordionHeaderDirective {
1902
+ constructor() {
1903
+ this.templateRef = inject((TemplateRef));
1904
+ }
1905
+ static ngTemplateContextGuard(dir, context) {
1906
+ return true;
1907
+ }
1908
+ static { this.ɵfac = function AccordionHeaderDirective_Factory(t) { return new (t || AccordionHeaderDirective)(); }; }
1909
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionHeaderDirective, selectors: [["ng-template", "auAccordionItemHeader", ""]], standalone: true }); }
1910
+ }
1911
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionHeaderDirective, [{
1912
+ type: Directive,
1913
+ args: [{ selector: 'ng-template[auAccordionItemHeader]', standalone: true }]
1914
+ }], null, null); })();
1915
+ class AccordionItemStructureDirective {
1916
+ constructor() {
1917
+ this.templateRef = inject((TemplateRef));
1918
+ }
1919
+ static ngTemplateContextGuard(dir, context) {
1920
+ return true;
1921
+ }
1922
+ static { this.ɵfac = function AccordionItemStructureDirective_Factory(t) { return new (t || AccordionItemStructureDirective)(); }; }
1923
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionItemStructureDirective, selectors: [["ng-template", "auAccordionItemStructure", ""]], standalone: true }); }
1924
+ }
1925
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionItemStructureDirective, [{
1926
+ type: Directive,
1927
+ args: [{ selector: 'ng-template[auAccordionItemStructure]', standalone: true }]
1928
+ }], null, null); })();
1929
+ class AccordionItemDefaultSlotsComponent {
1930
+ static { this.ɵfac = function AccordionItemDefaultSlotsComponent_Factory(t) { return new (t || AccordionItemDefaultSlotsComponent)(); }; }
1931
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccordionItemDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function AccordionItemDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
1932
+ i0.ɵɵviewQuery(_c0$3, 7);
1933
+ } if (rf & 2) {
1934
+ let _t;
1935
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
1936
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["h1", ""], ["h2", ""], ["h3", ""], ["h4", ""], ["h5", ""], ["h6", ""], ["button", ""], [1, "accordion-collapse", 3, "auUse"], [3, "ngTemplateOutlet"], [1, "accordion-header", 3, "auUse"], [1, "accordion-button", 3, "auUse"], [3, "auSlotProps", "auSlot"], [1, "accordion-body", 3, "auUse"]], template: function AccordionItemDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
1937
+ i0.ɵɵtemplate(0, AccordionItemDefaultSlotsComponent_ng_template_0_Template, 22, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
1938
+ } }, dependencies: [UseDirective, SlotDirective, NgTemplateOutlet], encapsulation: 2, changeDetection: 0 }); }
1939
+ }
1940
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionItemDefaultSlotsComponent, [{
1941
+ type: Component,
1942
+ args: [{
1943
+ standalone: true,
1944
+ changeDetection: ChangeDetectionStrategy.OnPush,
1945
+ imports: [UseDirective, SlotDirective, AccordionHeaderDirective, AccordionBodyDirective, NgTemplateOutlet],
1946
+ template: `
1947
+ <ng-template #structure let-state="state" let-widget="widget">
1948
+ @switch (state.itemHeadingTag) {
1949
+ @case ('h1') {
1950
+ <ng-container [ngTemplateOutlet]="h1"></ng-container>
1951
+ }
1952
+ @case ('h2') {
1953
+ <ng-container [ngTemplateOutlet]="h2"></ng-container>
1954
+ }
1955
+ @case ('h3') {
1956
+ <ng-container [ngTemplateOutlet]="h3"></ng-container>
1957
+ }
1958
+ @case ('h4') {
1959
+ <ng-container [ngTemplateOutlet]="h4"></ng-container>
1960
+ }
1961
+ @case ('h5') {
1962
+ <ng-container [ngTemplateOutlet]="h5"></ng-container>
1963
+ }
1964
+ @case ('h6') {
1965
+ <ng-container [ngTemplateOutlet]="h6"></ng-container>
1966
+ }
1967
+ @default {
1968
+ <ng-container [ngTemplateOutlet]="h2"></ng-container>
1969
+ }
1970
+ }
1971
+
1972
+ <ng-template #h1>
1973
+ <h1 class="accordion-header" [auUse]="widget.directives.headerDirective">
1974
+ <ng-template [ngTemplateOutlet]="button"></ng-template>
1975
+ </h1>
1976
+ </ng-template>
1977
+
1978
+ <ng-template #h2>
1979
+ <h2 class="accordion-header" [auUse]="widget.directives.headerDirective">
1980
+ <ng-template [ngTemplateOutlet]="button"></ng-template>
1981
+ </h2>
1982
+ </ng-template>
1983
+
1984
+ <ng-template #h3>
1985
+ <h3 class="accordion-header" [auUse]="widget.directives.headerDirective">
1986
+ <ng-template [ngTemplateOutlet]="button"></ng-template>
1987
+ </h3>
1988
+ </ng-template>
1989
+
1990
+ <ng-template #h4>
1991
+ <h4 class="accordion-header" [auUse]="widget.directives.headerDirective">
1992
+ <ng-template [ngTemplateOutlet]="button"></ng-template>
1993
+ </h4>
1994
+ </ng-template>
1995
+
1996
+ <ng-template #h5>
1997
+ <h5 class="accordion-header" [auUse]="widget.directives.headerDirective">
1998
+ <ng-template [ngTemplateOutlet]="button"></ng-template>
1999
+ </h5>
2000
+ </ng-template>
2001
+ <ng-template #h6>
2002
+ <h6 class="accordion-header" [auUse]="widget.directives.headerDirective">
2003
+ <ng-template [ngTemplateOutlet]="button"></ng-template>
2004
+ </h6>
2005
+ </ng-template>
2006
+
2007
+ <ng-template #button>
2008
+ <button class="accordion-button " [auUse]="widget.directives.buttonDirective">
2009
+ <ng-template [auSlotProps]="{state, widget}" [auSlot]="state.slotItemHeader"></ng-template>
2010
+ </button>
2011
+ </ng-template>
2012
+ @if (state.shouldBeInDOM) {
2013
+ <div [auUse]="widget.directives.bodyContainerDirective" class="accordion-collapse">
2014
+ <div class="accordion-body" [auUse]="widget.directives.bodyDirective">
2015
+ <ng-template [auSlotProps]="{state, widget}" [auSlot]="state.slotItemBody"></ng-template>
2016
+ </div>
2017
+ </div>
2018
+ }
2019
+ </ng-template>
2020
+ `,
2021
+ }]
2022
+ }], null, { structure: [{
2023
+ type: ViewChild,
2024
+ args: ['structure', { static: true }]
2025
+ }] }); })();
2026
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionItemDefaultSlotsComponent, { className: "AccordionItemDefaultSlotsComponent", filePath: "components/accordion/accordion.component.ts", lineNumber: 132 }); })();
2027
+ const accordionItemDefaultSlotItemStructure = new ComponentTemplate(AccordionItemDefaultSlotsComponent, 'structure');
2028
+ const defaultConfig$3 = {
2029
+ slotItemStructure: accordionItemDefaultSlotItemStructure,
2030
+ };
2031
+ class AccordionItemComponent extends BaseWidgetDirective {
2032
+ constructor() {
2033
+ super(...arguments);
2034
+ /**
2035
+ * An event fired when an item is shown.
2036
+ */
2037
+ this.itemShown = new EventEmitter();
2038
+ /**
2039
+ * An event fired when an item is hidden.
2040
+ */
2041
+ this.itemHidden = new EventEmitter();
2042
+ /**
2043
+ * An event fired when the `visible` value changes.
2044
+ *
2045
+ * Event payload is the new value of visible.
2046
+ */
2047
+ this.itemVisibleChange = new EventEmitter();
2048
+ this.ad = inject(AccordionDirective);
2049
+ this._widget = callWidgetFactory({
2050
+ factory: ((arg) => this.ad.api.registerItem(arg)),
2051
+ defaultConfig: defaultConfig$3,
2052
+ events: {
2053
+ onItemVisibleChange: (visible) => this.itemVisibleChange.emit(visible),
2054
+ onItemHidden: () => this.itemHidden.emit(),
2055
+ onItemShown: () => this.itemShown.emit(),
2056
+ },
2057
+ afterInit: () => {
2058
+ useDirectiveForHost(this._widget.directives.accordionItemDirective);
2059
+ },
2060
+ });
2061
+ }
2062
+ ngAfterContentChecked() {
2063
+ this._widget.patchSlots({
2064
+ slotItemStructure: this.slotItemStructureFromContent?.templateRef,
2065
+ slotItemHeader: this.slotItemHeaderFromContent?.templateRef,
2066
+ slotItemBody: this.slotItemBodyFromContent?.templateRef,
2067
+ });
2068
+ }
2069
+ ngAfterViewInit() {
2070
+ queueMicrotask(() => this.api.initDone());
2071
+ }
2072
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵAccordionItemComponent_BaseFactory; return function AccordionItemComponent_Factory(t) { return (ɵAccordionItemComponent_BaseFactory || (ɵAccordionItemComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AccordionItemComponent)))(t || AccordionItemComponent); }; })(); }
2073
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AccordionItemComponent, selectors: [["", "auAccordionItem", ""]], contentQueries: function AccordionItemComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
2074
+ i0.ɵɵcontentQuery(dirIndex, AccordionHeaderDirective, 5);
2075
+ i0.ɵɵcontentQuery(dirIndex, AccordionBodyDirective, 5);
2076
+ i0.ɵɵcontentQuery(dirIndex, AccordionItemStructureDirective, 5);
2077
+ } if (rf & 2) {
2078
+ let _t;
2079
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotItemHeaderFromContent = _t.first);
2080
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotItemBodyFromContent = _t.first);
2081
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotItemStructureFromContent = _t.first);
2082
+ } }, hostAttrs: [1, "accordion-item"], inputs: { slotItemHeader: [i0.ɵɵInputFlags.None, "auSlotItemHeader", "slotItemHeader"], slotItemBody: [i0.ɵɵInputFlags.None, "auSlotItemBody", "slotItemBody"], slotItemStructure: [i0.ɵɵInputFlags.None, "auSlotItemStructure", "slotItemStructure"], itemId: [i0.ɵɵInputFlags.None, "auItemId", "itemId"], itemTransition: [i0.ɵɵInputFlags.None, "auItemTransition", "itemTransition"], itemClass: [i0.ɵɵInputFlags.None, "auItemClass", "itemClass"], itemDestroyOnHide: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemDestroyOnHide", "itemDestroyOnHide", auBooleanAttribute], itemDisabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemDisabled", "itemDisabled", auBooleanAttribute], itemVisible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemVisible", "itemVisible", auBooleanAttribute], itemAnimated: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemAnimated", "itemAnimated", auBooleanAttribute], itemHeaderClass: [i0.ɵɵInputFlags.None, "auItemHeaderClass", "itemHeaderClass"], itemButtonClass: [i0.ɵɵInputFlags.None, "auItemButtonClass", "itemButtonClass"], itemBodyContainerClass: [i0.ɵɵInputFlags.None, "auItemBodyContainerClass", "itemBodyContainerClass"], itemBodyClass: [i0.ɵɵInputFlags.None, "auItemBodyClass", "itemBodyClass"], itemHeadingTag: [i0.ɵɵInputFlags.None, "auItemHeadingTag", "itemHeadingTag"] }, outputs: { itemShown: "auItemShown", itemHidden: "auItemHidden", itemVisibleChange: "auItemVisibleChange" }, exportAs: ["auAccordionItem"], standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c2$3, decls: 1, vars: 5, consts: [[3, "auSlotProps", "auSlot"]], template: function AccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
2083
+ i0.ɵɵtemplate(0, AccordionItemComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
2084
+ } if (rf & 2) {
2085
+ i0.ɵɵproperty("auSlotProps", i0.ɵɵpureFunction2(2, _c1$3, ctx.state(), ctx.widget))("auSlot", ctx.state().slotItemStructure);
2086
+ } }, dependencies: [SlotDirective], encapsulation: 2, changeDetection: 0 }); }
2087
+ }
2088
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionItemComponent, [{
2089
+ type: Component,
2090
+ args: [{
2091
+ selector: '[auAccordionItem]',
2092
+ exportAs: 'auAccordionItem',
2093
+ standalone: true,
2094
+ changeDetection: ChangeDetectionStrategy.OnPush,
2095
+ host: {
2096
+ class: 'accordion-item',
2097
+ },
2098
+ imports: [SlotDirective, UseDirective],
2099
+ template: ` <ng-template [auSlotProps]="{state: state(), widget}" [auSlot]="state().slotItemStructure"></ng-template> `,
2100
+ }]
2101
+ }], null, { slotItemHeader: [{
2102
+ type: Input,
2103
+ args: ['auSlotItemHeader']
2104
+ }], slotItemHeaderFromContent: [{
2105
+ type: ContentChild,
2106
+ args: [AccordionHeaderDirective, { static: false }]
2107
+ }], slotItemBody: [{
2108
+ type: Input,
2109
+ args: ['auSlotItemBody']
2110
+ }], slotItemBodyFromContent: [{
2111
+ type: ContentChild,
2112
+ args: [AccordionBodyDirective, { static: false }]
2113
+ }], slotItemStructure: [{
2114
+ type: Input,
2115
+ args: ['auSlotItemStructure']
2116
+ }], slotItemStructureFromContent: [{
2117
+ type: ContentChild,
2118
+ args: [AccordionItemStructureDirective, { static: false }]
2119
+ }], itemId: [{
2120
+ type: Input,
2121
+ args: ['auItemId']
2122
+ }], itemTransition: [{
2123
+ type: Input,
2124
+ args: ['auItemTransition']
2125
+ }], itemClass: [{
2126
+ type: Input,
2127
+ args: ['auItemClass']
2128
+ }], itemDestroyOnHide: [{
2129
+ type: Input,
2130
+ args: [{ alias: 'auItemDestroyOnHide', transform: auBooleanAttribute }]
2131
+ }], itemDisabled: [{
2132
+ type: Input,
2133
+ args: [{ alias: 'auItemDisabled', transform: auBooleanAttribute }]
2134
+ }], itemVisible: [{
2135
+ type: Input,
2136
+ args: [{ alias: 'auItemVisible', transform: auBooleanAttribute }]
2137
+ }], itemAnimated: [{
2138
+ type: Input,
2139
+ args: [{ alias: 'auItemAnimated', transform: auBooleanAttribute }]
2140
+ }], itemHeaderClass: [{
2141
+ type: Input,
2142
+ args: ['auItemHeaderClass']
2143
+ }], itemButtonClass: [{
2144
+ type: Input,
2145
+ args: ['auItemButtonClass']
2146
+ }], itemBodyContainerClass: [{
2147
+ type: Input,
2148
+ args: ['auItemBodyContainerClass']
2149
+ }], itemBodyClass: [{
2150
+ type: Input,
2151
+ args: ['auItemBodyClass']
2152
+ }], itemHeadingTag: [{
2153
+ type: Input,
2154
+ args: ['auItemHeadingTag']
2155
+ }], itemShown: [{
2156
+ type: Output,
2157
+ args: ['auItemShown']
2158
+ }], itemHidden: [{
2159
+ type: Output,
2160
+ args: ['auItemHidden']
2161
+ }], itemVisibleChange: [{
2162
+ type: Output,
2163
+ args: ['auItemVisibleChange']
2164
+ }] }); })();
2165
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionItemComponent, { className: "AccordionItemComponent", filePath: "components/accordion/accordion.component.ts", lineNumber: 152 }); })();
2166
+ class AccordionDirective extends BaseWidgetDirective {
2167
+ constructor() {
2168
+ super(...arguments);
2169
+ /**
2170
+ * An event fired when an item is shown.
2171
+ *
2172
+ * Event payload is the id of the item.
2173
+ */
2174
+ this.shown = new EventEmitter();
2175
+ /**
2176
+ * An event fired when an item is hidden.
2177
+ *
2178
+ * Event payload is the id of the item.
2179
+ */
2180
+ this.hidden = new EventEmitter();
2181
+ //should not be documented
2182
+ /**
2183
+ * An event fired when an item is shown.
2184
+ *
2185
+ * It is a prop of the accordion-item.
2186
+ */
2187
+ this.itemShown = new EventEmitter();
2188
+ /**
2189
+ * An event fired when an item is hidden.
2190
+ *
2191
+ * It is a prop of the accordion-item.
2192
+ */
2193
+ this.itemHidden = new EventEmitter();
2194
+ /**
2195
+ * An event fired when the `visible` value changes.
2196
+ *
2197
+ * Event payload is the new value of visible.
2198
+ *
2199
+ * It is a prop of the accordion-item.
2200
+ */
2201
+ this.itemVisibleChange = new EventEmitter();
2202
+ this._widget = callWidgetFactory({
2203
+ factory: createAccordion,
2204
+ widgetName: 'accordion',
2205
+ events: {
2206
+ onItemVisibleChange: (visible) => this.itemVisibleChange.emit(visible),
2207
+ onItemHidden: () => this.itemHidden.emit(),
2208
+ onItemShown: () => this.itemShown.emit(),
2209
+ onShown: (id) => this.shown.emit(id),
2210
+ onHidden: (id) => this.hidden.emit(id),
2211
+ },
2212
+ afterInit: () => {
2213
+ useDirectiveForHost(this._widget.directives.accordionDirective);
2214
+ },
2215
+ });
2216
+ }
2217
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵAccordionDirective_BaseFactory; return function AccordionDirective_Factory(t) { return (ɵAccordionDirective_BaseFactory || (ɵAccordionDirective_BaseFactory = i0.ɵɵgetInheritedFactory(AccordionDirective)))(t || AccordionDirective); }; })(); }
2218
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AccordionDirective, selectors: [["", "auAccordion", ""]], hostAttrs: [1, "accordion"], inputs: { closeOthers: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auCloseOthers", "closeOthers", auBooleanAttribute], className: [i0.ɵɵInputFlags.None, "auClassName", "className"], itemId: [i0.ɵɵInputFlags.None, "auItemId", "itemId"], itemDestroyOnHide: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemDestroyOnHide", "itemDestroyOnHide", auBooleanAttribute], itemDisabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemDisabled", "itemDisabled", auBooleanAttribute], itemVisible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemVisible", "itemVisible", auBooleanAttribute], itemAnimated: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auItemAnimated", "itemAnimated", auBooleanAttribute], itemTransition: [i0.ɵɵInputFlags.None, "auItemTransition", "itemTransition"], slotItemStructure: [i0.ɵɵInputFlags.None, "auSlotItemStructure", "slotItemStructure"], slotItemBody: [i0.ɵɵInputFlags.None, "auSlotItemBody", "slotItemBody"], slotItemHeader: [i0.ɵɵInputFlags.None, "auSlotItemHeader", "slotItemHeader"], itemClass: [i0.ɵɵInputFlags.None, "auItemClass", "itemClass"], itemHeaderClass: [i0.ɵɵInputFlags.None, "auItemHeaderClass", "itemHeaderClass"], itemButtonClass: [i0.ɵɵInputFlags.None, "auItemButtonClass", "itemButtonClass"], itemBodyContainerClass: [i0.ɵɵInputFlags.None, "auItemBodyContainerClass", "itemBodyContainerClass"], itemBodyClass: [i0.ɵɵInputFlags.None, "auItemBodyClass", "itemBodyClass"], itemHeadingTag: [i0.ɵɵInputFlags.None, "auItemHeadingTag", "itemHeadingTag"] }, outputs: { shown: "auShown", hidden: "auHidden", itemShown: "auItemShown", itemHidden: "auItemHidden", itemVisibleChange: "auItemVisibleChange" }, exportAs: ["auAccordion"], standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature] }); }
2219
+ }
2220
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AccordionDirective, [{
2221
+ type: Directive,
2222
+ args: [{
2223
+ selector: '[auAccordion]',
2224
+ exportAs: 'auAccordion',
2225
+ standalone: true,
2226
+ host: {
2227
+ class: 'accordion',
2228
+ },
2229
+ }]
2230
+ }], null, { closeOthers: [{
2231
+ type: Input,
2232
+ args: [{ alias: 'auCloseOthers', transform: auBooleanAttribute }]
2233
+ }], className: [{
2234
+ type: Input,
2235
+ args: ['auClassName']
2236
+ }], shown: [{
2237
+ type: Output,
2238
+ args: ['auShown']
2239
+ }], hidden: [{
2240
+ type: Output,
2241
+ args: ['auHidden']
2242
+ }], itemId: [{
2243
+ type: Input,
2244
+ args: ['auItemId']
2245
+ }], itemDestroyOnHide: [{
2246
+ type: Input,
2247
+ args: [{ alias: 'auItemDestroyOnHide', transform: auBooleanAttribute }]
2248
+ }], itemDisabled: [{
2249
+ type: Input,
2250
+ args: [{ alias: 'auItemDisabled', transform: auBooleanAttribute }]
2251
+ }], itemVisible: [{
2252
+ type: Input,
2253
+ args: [{ alias: 'auItemVisible', transform: auBooleanAttribute }]
2254
+ }], itemAnimated: [{
2255
+ type: Input,
2256
+ args: [{ alias: 'auItemAnimated', transform: auBooleanAttribute }]
2257
+ }], itemTransition: [{
2258
+ type: Input,
2259
+ args: ['auItemTransition']
2260
+ }], slotItemStructure: [{
2261
+ type: Input,
2262
+ args: ['auSlotItemStructure']
2263
+ }], slotItemBody: [{
2264
+ type: Input,
2265
+ args: ['auSlotItemBody']
2266
+ }], slotItemHeader: [{
2267
+ type: Input,
2268
+ args: ['auSlotItemHeader']
2269
+ }], itemClass: [{
2270
+ type: Input,
2271
+ args: ['auItemClass']
2272
+ }], itemHeaderClass: [{
2273
+ type: Input,
2274
+ args: ['auItemHeaderClass']
2275
+ }], itemButtonClass: [{
2276
+ type: Input,
2277
+ args: ['auItemButtonClass']
2278
+ }], itemBodyContainerClass: [{
2279
+ type: Input,
2280
+ args: ['auItemBodyContainerClass']
2281
+ }], itemBodyClass: [{
2282
+ type: Input,
2283
+ args: ['auItemBodyClass']
2284
+ }], itemHeadingTag: [{
2285
+ type: Input,
2286
+ args: ['auItemHeadingTag']
2287
+ }], itemShown: [{
2288
+ type: Output,
2289
+ args: ['auItemShown']
2290
+ }], itemHidden: [{
2291
+ type: Output,
2292
+ args: ['auItemHidden']
2293
+ }], itemVisibleChange: [{
2294
+ type: Output,
2295
+ args: ['auItemVisibleChange']
2296
+ }] }); })();
2297
+
2298
+ const createSlider = createSlider$1;
2299
+
2300
+ const _c0$2 = ["handle"];
2301
+ const _c1$2 = a0 => ({ item: a0 });
2302
+ const _c2$2 = (a0, a1) => [a0, a1];
2303
+ function SliderDefaultHandleSlotComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
2304
+ i0.ɵɵelementStart(0, "button", 2);
2305
+ i0.ɵɵtext(1, "\u00A0");
2306
+ i0.ɵɵelementEnd();
2307
+ } if (rf & 2) {
2308
+ const widget_r1 = ctx.widget;
2309
+ const item_r2 = ctx.item;
2310
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(3, _c2$2, widget_r1.directives.handleDirective, i0.ɵɵpureFunction1(1, _c1$2, item_r2)));
2311
+ } }
2312
+ const _c3$2 = ["structure"];
2313
+ const _forTrack0 = ($index, $item) => $item.id;
2314
+ const _c4$1 = a0 => ({ option: a0 });
2315
+ const _c5 = (a0, a1, a2) => ({ state: a0, widget: a1, value: a2 });
2316
+ const _c6 = (a0, a1, a2) => ({ state: a0, widget: a1, item: a2 });
2317
+ const _c7 = a0 => ({ index: a0 });
2318
+ function SliderDefaultStructureSlotComponent_ng_template_0_For_1_Template(rf, ctx) { if (rf & 1) {
2319
+ i0.ɵɵelement(0, "div", 2);
2320
+ } if (rf & 2) {
2321
+ const option_r1 = ctx.$implicit;
2322
+ const widget_r2 = i0.ɵɵnextContext().widget;
2323
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(3, _c2$2, widget_r2.directives.progressDisplayDirective, i0.ɵɵpureFunction1(1, _c4$1, option_r1)));
2324
+ } }
2325
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_3_ng_template_1_Template(rf, ctx) { }
2326
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_3_ng_template_3_Template(rf, ctx) { }
2327
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
2328
+ i0.ɵɵelementStart(0, "div", 2);
2329
+ i0.ɵɵtemplate(1, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_3_ng_template_1_Template, 0, 0, "ng-template", 3);
2330
+ i0.ɵɵelementEnd();
2331
+ i0.ɵɵelementStart(2, "div", 2);
2332
+ i0.ɵɵtemplate(3, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_3_ng_template_3_Template, 0, 0, "ng-template", 3);
2333
+ i0.ɵɵelementEnd();
2334
+ } if (rf & 2) {
2335
+ const ctx_r2 = i0.ɵɵnextContext();
2336
+ const state_r4 = ctx_r2.state;
2337
+ const widget_r2 = ctx_r2.widget;
2338
+ i0.ɵɵproperty("auUse", widget_r2.directives.minLabelDirective);
2339
+ i0.ɵɵadvance();
2340
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(6, _c5, state_r4, widget_r2, state_r4.min));
2341
+ i0.ɵɵadvance();
2342
+ i0.ɵɵproperty("auUse", widget_r2.directives.maxLabelDirective);
2343
+ i0.ɵɵadvance();
2344
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(10, _c5, state_r4, widget_r2, state_r4.max));
2345
+ } }
2346
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_1_ng_template_0_Template(rf, ctx) { }
2347
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_1_ng_template_2_Template(rf, ctx) { }
2348
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2349
+ i0.ɵɵtemplate(0, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_1_ng_template_0_Template, 0, 0, "ng-template", 3);
2350
+ i0.ɵɵtext(1, " - ");
2351
+ i0.ɵɵtemplate(2, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_1_ng_template_2_Template, 0, 0, "ng-template", 3);
2352
+ } if (rf & 2) {
2353
+ const ctx_r2 = i0.ɵɵnextContext(2);
2354
+ const state_r4 = ctx_r2.state;
2355
+ const widget_r2 = ctx_r2.widget;
2356
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(4, _c5, state_r4, widget_r2, state_r4.sortedValues[1]));
2357
+ i0.ɵɵadvance(2);
2358
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(8, _c5, state_r4, widget_r2, state_r4.sortedValues[0]));
2359
+ } }
2360
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_2_ng_template_0_Template(rf, ctx) { }
2361
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_2_ng_template_2_Template(rf, ctx) { }
2362
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2363
+ i0.ɵɵtemplate(0, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_2_ng_template_0_Template, 0, 0, "ng-template", 3);
2364
+ i0.ɵɵtext(1, " - ");
2365
+ i0.ɵɵtemplate(2, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_2_ng_template_2_Template, 0, 0, "ng-template", 3);
2366
+ } if (rf & 2) {
2367
+ const ctx_r2 = i0.ɵɵnextContext(2);
2368
+ const state_r4 = ctx_r2.state;
2369
+ const widget_r2 = ctx_r2.widget;
2370
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(4, _c5, state_r4, widget_r2, state_r4.sortedValues[0]));
2371
+ i0.ɵɵadvance(2);
2372
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(8, _c5, state_r4, widget_r2, state_r4.sortedValues[1]));
2373
+ } }
2374
+ function SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
2375
+ i0.ɵɵelementStart(0, "div", 2);
2376
+ i0.ɵɵtemplate(1, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_1_Template, 3, 12)(2, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Conditional_2_Template, 3, 12);
2377
+ i0.ɵɵelementEnd();
2378
+ } if (rf & 2) {
2379
+ const ctx_r2 = i0.ɵɵnextContext();
2380
+ const state_r4 = ctx_r2.state;
2381
+ const widget_r2 = ctx_r2.widget;
2382
+ i0.ɵɵproperty("auUse", widget_r2.directives.combinedHandleLabelDisplayDirective);
2383
+ i0.ɵɵadvance();
2384
+ i0.ɵɵconditional(1, state_r4.rtl ? 1 : 2);
2385
+ } }
2386
+ function SliderDefaultStructureSlotComponent_ng_template_0_For_6_ng_template_0_Template(rf, ctx) { }
2387
+ function SliderDefaultStructureSlotComponent_ng_template_0_For_6_Conditional_1_ng_template_1_Template(rf, ctx) { }
2388
+ function SliderDefaultStructureSlotComponent_ng_template_0_For_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2389
+ i0.ɵɵelementStart(0, "div", 2);
2390
+ i0.ɵɵtemplate(1, SliderDefaultStructureSlotComponent_ng_template_0_For_6_Conditional_1_ng_template_1_Template, 0, 0, "ng-template", 3);
2391
+ i0.ɵɵelementEnd();
2392
+ } if (rf & 2) {
2393
+ const i_r5 = i0.ɵɵnextContext().$index;
2394
+ const ctx_r2 = i0.ɵɵnextContext();
2395
+ const state_r4 = ctx_r2.state;
2396
+ const widget_r2 = ctx_r2.widget;
2397
+ i0.ɵɵproperty("auUse", i0.ɵɵpureFunction2(5, _c2$2, widget_r2.directives.handleLabelDisplayDirective, i0.ɵɵpureFunction1(3, _c7, i_r5)));
2398
+ i0.ɵɵadvance();
2399
+ i0.ɵɵproperty("auSlot", state_r4.slotLabel)("auSlotProps", i0.ɵɵpureFunction3(8, _c5, state_r4, widget_r2, state_r4.values[i_r5]));
2400
+ } }
2401
+ function SliderDefaultStructureSlotComponent_ng_template_0_For_6_Template(rf, ctx) { if (rf & 1) {
2402
+ i0.ɵɵtemplate(0, SliderDefaultStructureSlotComponent_ng_template_0_For_6_ng_template_0_Template, 0, 0, "ng-template", 3)(1, SliderDefaultStructureSlotComponent_ng_template_0_For_6_Conditional_1_Template, 2, 12, "div", 2);
2403
+ } if (rf & 2) {
2404
+ const item_r6 = ctx.$implicit;
2405
+ const ctx_r2 = i0.ɵɵnextContext();
2406
+ const state_r4 = ctx_r2.state;
2407
+ const widget_r2 = ctx_r2.widget;
2408
+ i0.ɵɵproperty("auSlot", state_r4.slotHandle)("auSlotProps", i0.ɵɵpureFunction3(3, _c6, state_r4, widget_r2, item_r6));
2409
+ i0.ɵɵadvance();
2410
+ i0.ɵɵconditional(1, state_r4.showValueLabels && !state_r4.combinedLabelDisplay ? 1 : -1);
2411
+ } }
2412
+ function SliderDefaultStructureSlotComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
2413
+ i0.ɵɵrepeaterCreate(0, SliderDefaultStructureSlotComponent_ng_template_0_For_1_Template, 1, 6, "div", 2, i0.ɵɵrepeaterTrackByIdentity);
2414
+ i0.ɵɵelement(2, "div", 2);
2415
+ i0.ɵɵtemplate(3, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_3_Template, 4, 14)(4, SliderDefaultStructureSlotComponent_ng_template_0_Conditional_4_Template, 3, 2, "div", 2);
2416
+ i0.ɵɵrepeaterCreate(5, SliderDefaultStructureSlotComponent_ng_template_0_For_6_Template, 2, 7, null, null, _forTrack0);
2417
+ } if (rf & 2) {
2418
+ const state_r4 = ctx.state;
2419
+ const widget_r2 = ctx.widget;
2420
+ i0.ɵɵrepeater(state_r4.progressDisplayOptions);
2421
+ i0.ɵɵadvance(2);
2422
+ i0.ɵɵproperty("auUse", widget_r2.directives.clickableAreaDirective);
2423
+ i0.ɵɵadvance();
2424
+ i0.ɵɵconditional(3, state_r4.showMinMaxLabels ? 3 : -1);
2425
+ i0.ɵɵadvance();
2426
+ i0.ɵɵconditional(4, state_r4.showValueLabels && state_r4.combinedLabelDisplay ? 4 : -1);
2427
+ i0.ɵɵadvance();
2428
+ i0.ɵɵrepeater(state_r4.sortedHandles);
2429
+ } }
2430
+ const _c8 = ["auSlider", ""];
2431
+ const _c9 = (a0, a1) => ({ state: a0, widget: a1 });
2432
+ function SliderComponent_ng_template_0_Template(rf, ctx) { }
2433
+ class SliderLabelDirective {
2434
+ constructor() {
2435
+ this.templateRef = inject((TemplateRef));
2436
+ }
2437
+ static ngTemplateContextGuard(_dir, context) {
2438
+ return true;
2439
+ }
2440
+ static { this.ɵfac = function SliderLabelDirective_Factory(t) { return new (t || SliderLabelDirective)(); }; }
2441
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderLabelDirective, selectors: [["ng-template", "auSliderLabel", ""]], standalone: true }); }
2442
+ }
2443
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderLabelDirective, [{
2444
+ type: Directive,
2445
+ args: [{ selector: 'ng-template[auSliderLabel]', standalone: true }]
2446
+ }], null, null); })();
2447
+ class SliderHandleDirective {
2448
+ constructor() {
2449
+ this.templateRef = inject((TemplateRef));
2450
+ }
2451
+ static ngTemplateContextGuard(_dir, context) {
2452
+ return true;
2453
+ }
2454
+ static { this.ɵfac = function SliderHandleDirective_Factory(t) { return new (t || SliderHandleDirective)(); }; }
2455
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderHandleDirective, selectors: [["ng-template", "auSliderHandle", ""]], standalone: true }); }
2456
+ }
2457
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderHandleDirective, [{
2458
+ type: Directive,
2459
+ args: [{ selector: 'ng-template[auSliderHandle]', standalone: true }]
2460
+ }], null, null); })();
2461
+ class SliderDefaultHandleSlotComponent {
2462
+ constructor() {
2463
+ this._zone = inject(NgZone);
2464
+ }
2465
+ onKeyDown(event, handleId, widgetOnKeyDownFn) {
2466
+ widgetOnKeyDownFn(event, handleId);
2467
+ this._zone.onStable.pipe(take(1)).subscribe(() => {
2468
+ event.target.focus();
2469
+ });
2470
+ }
2471
+ static { this.ɵfac = function SliderDefaultHandleSlotComponent_Factory(t) { return new (t || SliderDefaultHandleSlotComponent)(); }; }
2472
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderDefaultHandleSlotComponent, selectors: [["ng-component"]], viewQuery: function SliderDefaultHandleSlotComponent_Query(rf, ctx) { if (rf & 1) {
2473
+ i0.ɵɵviewQuery(_c0$2, 7);
2474
+ } if (rf & 2) {
2475
+ let _t;
2476
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.handle = _t.first);
2477
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["handle", ""], ["auSliderHandle", ""], [3, "auUse"]], template: function SliderDefaultHandleSlotComponent_Template(rf, ctx) { if (rf & 1) {
2478
+ i0.ɵɵtemplate(0, SliderDefaultHandleSlotComponent_ng_template_0_Template, 2, 6, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
2479
+ } }, dependencies: [UseDirective, SliderHandleDirective], encapsulation: 2, changeDetection: 0 }); }
2480
+ }
2481
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderDefaultHandleSlotComponent, [{
2482
+ type: Component,
2483
+ args: [{
2484
+ standalone: true,
2485
+ changeDetection: ChangeDetectionStrategy.OnPush,
2486
+ imports: [UseDirective, SliderHandleDirective],
2487
+ template: `
2488
+ <ng-template auSliderHandle #handle let-state="state" let-widget="widget" let-item="item">
2489
+ <button [auUse]="[widget.directives.handleDirective, {item}]">&nbsp;</button>
2490
+ </ng-template>
2491
+ `,
2492
+ }]
2493
+ }], null, { handle: [{
2494
+ type: ViewChild,
2495
+ args: ['handle', { static: true }]
2496
+ }] }); })();
2497
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultHandleSlotComponent, { className: "SliderDefaultHandleSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 61 }); })();
2498
+ const sliderDefaultSlotHandle = new ComponentTemplate(SliderDefaultHandleSlotComponent, 'handle');
2499
+ class SliderStructureDirective {
2500
+ constructor() {
2501
+ this.templateRef = inject((TemplateRef));
2502
+ }
2503
+ static ngTemplateContextGuard(_dir, context) {
2504
+ return true;
2505
+ }
2506
+ static { this.ɵfac = function SliderStructureDirective_Factory(t) { return new (t || SliderStructureDirective)(); }; }
2507
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SliderStructureDirective, selectors: [["ng-template", "auSliderStructure", ""]], standalone: true }); }
2508
+ }
2509
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderStructureDirective, [{
2510
+ type: Directive,
2511
+ args: [{ selector: 'ng-template[auSliderStructure]', standalone: true }]
2512
+ }], null, null); })();
2513
+ class SliderDefaultStructureSlotComponent {
2514
+ static { this.ɵfac = function SliderDefaultStructureSlotComponent_Factory(t) { return new (t || SliderDefaultStructureSlotComponent)(); }; }
2515
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderDefaultStructureSlotComponent, selectors: [["ng-component"]], viewQuery: function SliderDefaultStructureSlotComponent_Query(rf, ctx) { if (rf & 1) {
2516
+ i0.ɵɵviewQuery(_c3$2, 7);
2517
+ } if (rf & 2) {
2518
+ let _t;
2519
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
2520
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["auSliderStructure", ""], [3, "auUse"], [3, "auSlot", "auSlotProps"]], template: function SliderDefaultStructureSlotComponent_Template(rf, ctx) { if (rf & 1) {
2521
+ i0.ɵɵtemplate(0, SliderDefaultStructureSlotComponent_ng_template_0_Template, 7, 3, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
2522
+ } }, dependencies: [SlotDirective, SliderStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
2523
+ }
2524
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderDefaultStructureSlotComponent, [{
2525
+ type: Component,
2526
+ args: [{
2527
+ standalone: true,
2528
+ changeDetection: ChangeDetectionStrategy.OnPush,
2529
+ imports: [SlotDirective, SliderStructureDirective, UseDirective],
2530
+ template: `
2531
+ <ng-template auSliderStructure #structure let-state="state" let-widget="widget">
2532
+ @for (option of state.progressDisplayOptions; track option) {
2533
+ <div [auUse]="[widget.directives.progressDisplayDirective, {option}]"></div>
2534
+ }
2535
+ <div [auUse]="widget.directives.clickableAreaDirective"></div>
2536
+ @if (state.showMinMaxLabels) {
2537
+ <div [auUse]="widget.directives.minLabelDirective">
2538
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.min}"></ng-template>
2539
+ </div>
2540
+ <div [auUse]="widget.directives.maxLabelDirective">
2541
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.max}"></ng-template>
2542
+ </div>
2543
+ }
2544
+ @if (state.showValueLabels && state.combinedLabelDisplay) {
2545
+ <div [auUse]="widget.directives.combinedHandleLabelDisplayDirective">
2546
+ @if (state.rtl) {
2547
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.sortedValues[1]}"></ng-template> -
2548
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.sortedValues[0]}"></ng-template>
2549
+ } @else {
2550
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.sortedValues[0]}"></ng-template> -
2551
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.sortedValues[1]}"></ng-template>
2552
+ }
2553
+ </div>
2554
+ }
2555
+ @for (item of state.sortedHandles; track item.id; let i = $index) {
2556
+ <ng-template [auSlot]="state.slotHandle" [auSlotProps]="{state, widget, item}"></ng-template>
2557
+ @if (state.showValueLabels && !state.combinedLabelDisplay) {
2558
+ <div [auUse]="[widget.directives.handleLabelDisplayDirective, {index: i}]">
2559
+ <ng-template [auSlot]="state.slotLabel" [auSlotProps]="{state, widget, value: state.values[i]}"></ng-template>
2560
+ </div>
2561
+ }
2562
+ }
2563
+ </ng-template>
2564
+ `,
2565
+ }]
2566
+ }], null, { structure: [{
2567
+ type: ViewChild,
2568
+ args: ['structure', { static: true }]
2569
+ }] }); })();
2570
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderDefaultStructureSlotComponent, { className: "SliderDefaultStructureSlotComponent", filePath: "components/slider/slider.component.ts", lineNumber: 124 }); })();
2571
+ const sliderDefaultSlotStructure = new ComponentTemplate(SliderDefaultStructureSlotComponent, 'structure');
2572
+ const defaultConfig$2 = {
2573
+ slotStructure: sliderDefaultSlotStructure,
2574
+ slotHandle: sliderDefaultSlotHandle,
2575
+ };
2576
+ class SliderComponent extends BaseWidgetDirective {
2577
+ constructor() {
2578
+ super(...arguments);
2579
+ this.defaultSlots = writable(defaultConfig$2);
2580
+ this._widget = callWidgetFactory({
2581
+ factory: createSlider,
2582
+ widgetName: 'slider',
2583
+ defaultConfig: this.defaultSlots,
2584
+ events: {
2585
+ onValuesChange: (event) => {
2586
+ this.onChange(event);
2587
+ this.onTouched();
2588
+ this.valuesChange.emit(event);
2589
+ },
2590
+ },
2591
+ afterInit: () => {
2592
+ useDirectiveForHost(this._widget.directives.sliderDirective);
2593
+ },
2594
+ });
2595
+ /**
2596
+ * An event emitted when slider values are changed
2597
+ *
2598
+ * Event payload equals to the updated slider values
2599
+ */
2600
+ this.valuesChange = new EventEmitter();
2601
+ /**
2602
+ * Control value accessor methods
2603
+ */
2604
+ this.onChange = (_) => { };
2605
+ this.onTouched = () => { };
2606
+ }
2607
+ registerOnChange(fn) {
2608
+ this.onChange = fn;
2609
+ }
2610
+ registerOnTouched(fn) {
2611
+ this.onTouched = fn;
2612
+ }
2613
+ writeValue(value) {
2614
+ if (Array.isArray(value)) {
2615
+ this._widget.patch({
2616
+ values: value,
2617
+ });
2618
+ }
2619
+ else {
2620
+ this._widget.patch({
2621
+ values: [value],
2622
+ });
2623
+ }
2624
+ }
2625
+ setDisabledState(isDisabled) {
2626
+ this._widget.patch({
2627
+ disabled: isDisabled,
2628
+ });
2629
+ }
2630
+ handleBlur() {
2631
+ this.onTouched();
2632
+ }
2633
+ ngAfterContentChecked() {
2634
+ this._widget.patchSlots({
2635
+ slotStructure: this.slotStructureFromContent?.templateRef,
2636
+ slotHandle: this.slotHandleFromContent?.templateRef,
2637
+ slotLabel: this.slotLabelFromContent?.templateRef,
2638
+ });
2639
+ }
2640
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSliderComponent_BaseFactory; return function SliderComponent_Factory(t) { return (ɵSliderComponent_BaseFactory || (ɵSliderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SliderComponent)))(t || SliderComponent); }; })(); }
2641
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SliderComponent, selectors: [["", "auSlider", ""]], contentQueries: function SliderComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
2642
+ i0.ɵɵcontentQuery(dirIndex, SliderLabelDirective, 5);
2643
+ i0.ɵɵcontentQuery(dirIndex, SliderStructureDirective, 5);
2644
+ i0.ɵɵcontentQuery(dirIndex, SliderHandleDirective, 5);
2645
+ } if (rf & 2) {
2646
+ let _t;
2647
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotLabelFromContent = _t.first);
2648
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
2649
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHandleFromContent = _t.first);
2650
+ } }, hostBindings: function SliderComponent_HostBindings(rf, ctx) { if (rf & 1) {
2651
+ i0.ɵɵlistener("blur", function SliderComponent_blur_HostBindingHandler() { return ctx.handleBlur(); });
2652
+ } }, inputs: { className: [i0.ɵɵInputFlags.None, "auClassName", "className"], min: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auMin", "min", auNumberAttribute], max: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auMax", "max", auNumberAttribute], stepSize: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auStepSize", "stepSize", auNumberAttribute], values: [i0.ɵɵInputFlags.None, "auValues", "values"], rtl: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auRtl", "rtl", auBooleanAttribute], showValueLabels: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auShowValueLabels", "showValueLabels", auBooleanAttribute], showMinMaxLabels: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auShowMinMaxLabels", "showMinMaxLabels", auBooleanAttribute], ariaLabelHandle: [i0.ɵɵInputFlags.None, "auAriaLabelHandle", "ariaLabelHandle"], ariaValueText: [i0.ɵɵInputFlags.None, "auAriaValueText", "ariaValueText"], readonly: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auReadonly", "readonly", auBooleanAttribute], disabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDisabled", "disabled", auBooleanAttribute], vertical: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auVertical", "vertical", auBooleanAttribute], slotLabel: [i0.ɵɵInputFlags.None, "auSlotLabel", "slotLabel"], slotStructure: [i0.ɵɵInputFlags.None, "auSlotStructure", "slotStructure"], slotHandle: [i0.ɵɵInputFlags.None, "auSlotHandle", "slotHandle"] }, outputs: { valuesChange: "auValuesChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c8, decls: 1, vars: 5, consts: [[3, "auSlot", "auSlotProps"]], template: function SliderComponent_Template(rf, ctx) { if (rf & 1) {
2653
+ i0.ɵɵtemplate(0, SliderComponent_ng_template_0_Template, 0, 0, "ng-template", 0);
2654
+ } if (rf & 2) {
2655
+ i0.ɵɵproperty("auSlot", ctx.state().slotStructure)("auSlotProps", i0.ɵɵpureFunction2(2, _c9, ctx.state(), ctx.widget));
2656
+ } }, dependencies: [SlotDirective], encapsulation: 2, changeDetection: 0 }); }
2657
+ }
2658
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SliderComponent, [{
2659
+ type: Component,
2660
+ args: [{
2661
+ selector: '[auSlider]',
2662
+ standalone: true,
2663
+ changeDetection: ChangeDetectionStrategy.OnPush,
2664
+ encapsulation: ViewEncapsulation.None,
2665
+ providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent), multi: true }],
2666
+ imports: [SlotDirective, SlotDefaultDirective],
2667
+ host: {
2668
+ '(blur)': 'handleBlur()',
2669
+ },
2670
+ template: ` <ng-template [auSlot]="state().slotStructure" [auSlotProps]="{state: state(), widget}"></ng-template> `,
2671
+ }]
2672
+ }], null, { className: [{
2673
+ type: Input,
2674
+ args: ['auClassName']
2675
+ }], min: [{
2676
+ type: Input,
2677
+ args: [{ alias: 'auMin', transform: auNumberAttribute }]
2678
+ }], max: [{
2679
+ type: Input,
2680
+ args: [{ alias: 'auMax', transform: auNumberAttribute }]
2681
+ }], stepSize: [{
2682
+ type: Input,
2683
+ args: [{ alias: 'auStepSize', transform: auNumberAttribute }]
2684
+ }], values: [{
2685
+ type: Input,
2686
+ args: ['auValues']
2687
+ }], rtl: [{
2688
+ type: Input,
2689
+ args: [{ alias: 'auRtl', transform: auBooleanAttribute }]
2690
+ }], showValueLabels: [{
2691
+ type: Input,
2692
+ args: [{ alias: 'auShowValueLabels', transform: auBooleanAttribute }]
2693
+ }], showMinMaxLabels: [{
2694
+ type: Input,
2695
+ args: [{ alias: 'auShowMinMaxLabels', transform: auBooleanAttribute }]
2696
+ }], ariaLabelHandle: [{
2697
+ type: Input,
2698
+ args: ['auAriaLabelHandle']
2699
+ }], ariaValueText: [{
2700
+ type: Input,
2701
+ args: ['auAriaValueText']
2702
+ }], readonly: [{
2703
+ type: Input,
2704
+ args: [{ alias: 'auReadonly', transform: auBooleanAttribute }]
2705
+ }], disabled: [{
2706
+ type: Input,
2707
+ args: [{ alias: 'auDisabled', transform: auBooleanAttribute }]
2708
+ }], vertical: [{
2709
+ type: Input,
2710
+ args: [{ alias: 'auVertical', transform: auBooleanAttribute }]
2711
+ }], valuesChange: [{
2712
+ type: Output,
2713
+ args: ['auValuesChange']
2714
+ }], slotLabel: [{
2715
+ type: Input,
2716
+ args: ['auSlotLabel']
2717
+ }], slotLabelFromContent: [{
2718
+ type: ContentChild,
2719
+ args: [SliderLabelDirective, { static: false }]
2720
+ }], slotStructure: [{
2721
+ type: Input,
2722
+ args: ['auSlotStructure']
2723
+ }], slotStructureFromContent: [{
2724
+ type: ContentChild,
2725
+ args: [SliderStructureDirective, { static: false }]
2726
+ }], slotHandle: [{
2727
+ type: Input,
2728
+ args: ['auSlotHandle']
2729
+ }], slotHandleFromContent: [{
2730
+ type: ContentChild,
2731
+ args: [SliderHandleDirective, { static: false }]
2732
+ }] }); })();
2733
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SliderComponent, { className: "SliderComponent", filePath: "components/slider/slider.component.ts", lineNumber: 148 }); })();
2734
+
2735
+ const createProgressbar = createProgressbar$1;
2736
+
2737
+ const _c0$1 = ["structure"];
2738
+ const _c1$1 = (a0, a1) => ({ state: a0, widget: a1 });
2739
+ function ProgressbarDefaultSlotsComponent_ng_template_0_ng_template_2_Template(rf, ctx) { }
2740
+ function ProgressbarDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
2741
+ i0.ɵɵelementStart(0, "div", 2)(1, "div", 3);
2742
+ i0.ɵɵtemplate(2, ProgressbarDefaultSlotsComponent_ng_template_0_ng_template_2_Template, 0, 0, "ng-template", 4);
2743
+ i0.ɵɵelementEnd()();
2744
+ } if (rf & 2) {
2745
+ const state_r1 = ctx.state;
2746
+ const widget_r2 = ctx.widget;
2747
+ i0.ɵɵstyleProp("height", state_r1.height);
2748
+ i0.ɵɵadvance();
2749
+ i0.ɵɵstyleProp("width", state_r1.percentage, "%");
2750
+ i0.ɵɵclassProp("progress-bar-striped", state_r1.striped)("progress-bar-animated", state_r1.animated);
2751
+ i0.ɵɵproperty("ngClass", state_r1.type ? "text-bg-" + state_r1.type : undefined);
2752
+ i0.ɵɵadvance();
2753
+ i0.ɵɵproperty("auSlot", state_r1.slotDefault)("auSlotProps", i0.ɵɵpureFunction2(11, _c1$1, state_r1, widget_r2));
2754
+ } }
2755
+ const _c2$1 = ["auProgressbar", ""];
2756
+ const _c3$1 = ["*"];
2757
+ function ProgressbarComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
2758
+ i0.ɵɵprojection(0);
2759
+ } }
2760
+ function ProgressbarComponent_ng_template_1_Template(rf, ctx) { }
2761
+ class ProgressbarStructureDirective {
2762
+ constructor() {
2763
+ this.templateRef = inject((TemplateRef));
2764
+ }
2765
+ static ngTemplateContextGuard(_dir, context) {
2766
+ return true;
2767
+ }
2768
+ static { this.ɵfac = function ProgressbarStructureDirective_Factory(t) { return new (t || ProgressbarStructureDirective)(); }; }
2769
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ProgressbarStructureDirective, selectors: [["ng-template", "auProgressbarStructure", ""]], standalone: true }); }
2770
+ }
2771
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarStructureDirective, [{
2772
+ type: Directive,
2773
+ args: [{ selector: 'ng-template[auProgressbarStructure]', standalone: true }]
2774
+ }], null, null); })();
2775
+ class ProgressbarDefaultSlotsComponent {
2776
+ static { this.ɵfac = function ProgressbarDefaultSlotsComponent_Factory(t) { return new (t || ProgressbarDefaultSlotsComponent)(); }; }
2777
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProgressbarDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function ProgressbarDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
2778
+ i0.ɵɵviewQuery(_c0$1, 7);
2779
+ } if (rf & 2) {
2780
+ let _t;
2781
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
2782
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["auProgressbarStructure", ""], [1, "progress"], [1, "progress-bar", 3, "ngClass"], [3, "auSlot", "auSlotProps"]], template: function ProgressbarDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
2783
+ i0.ɵɵtemplate(0, ProgressbarDefaultSlotsComponent_ng_template_0_Template, 3, 14, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
2784
+ } }, dependencies: [NgClass, SlotDirective, ProgressbarStructureDirective], encapsulation: 2, changeDetection: 0 }); }
2785
+ }
2786
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarDefaultSlotsComponent, [{
2787
+ type: Component,
2788
+ args: [{
2789
+ standalone: true,
2790
+ changeDetection: ChangeDetectionStrategy.OnPush,
2791
+ imports: [NgClass, SlotDirective, ProgressbarStructureDirective],
2792
+ template: `
2793
+ <ng-template auProgressbarStructure #structure let-state="state" let-widget="widget">
2794
+ <div class="progress" [style.height]="state.height">
2795
+ <div
2796
+ class="progress-bar"
2797
+ [class.progress-bar-striped]="state.striped"
2798
+ [class.progress-bar-animated]="state.animated"
2799
+ [ngClass]="state.type ? 'text-bg-' + state.type : undefined"
2800
+ [style.width.%]="state.percentage"
2801
+ >
2802
+ <ng-template [auSlot]="state.slotDefault" [auSlotProps]="{state, widget}"></ng-template>
2803
+ </div>
2804
+ </div>
2805
+ </ng-template>
2806
+ `,
2807
+ }]
2808
+ }], null, { structure: [{
2809
+ type: ViewChild,
2810
+ args: ['structure', { static: true }]
2811
+ }] }); })();
2812
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarDefaultSlotsComponent, { className: "ProgressbarDefaultSlotsComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 49 }); })();
2813
+ const progressbarDefaultSlotStructure = new ComponentTemplate(ProgressbarDefaultSlotsComponent, 'structure');
2814
+ const defaultConfig$1 = {
2815
+ slotStructure: progressbarDefaultSlotStructure,
2816
+ };
2817
+ class ProgressbarComponent extends BaseWidgetDirective {
2818
+ constructor() {
2819
+ super(...arguments);
2820
+ this.defaultSlots = writable(defaultConfig$1);
2821
+ this._widget = callWidgetFactory({
2822
+ factory: createProgressbar,
2823
+ widgetName: 'progressbar',
2824
+ defaultConfig: this.defaultSlots,
2825
+ afterInit: () => {
2826
+ useDirectiveForHost(this._widget.directives.ariaDirective);
2827
+ },
2828
+ });
2829
+ }
2830
+ ngAfterContentChecked() {
2831
+ this._widget.patchSlots({
2832
+ slotDefault: undefined,
2833
+ slotStructure: this.slotStructureFromContent?.templateRef,
2834
+ });
2835
+ }
2836
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵProgressbarComponent_BaseFactory; return function ProgressbarComponent_Factory(t) { return (ɵProgressbarComponent_BaseFactory || (ɵProgressbarComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ProgressbarComponent)))(t || ProgressbarComponent); }; })(); }
2837
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProgressbarComponent, selectors: [["", "auProgressbar", ""]], contentQueries: function ProgressbarComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
2838
+ i0.ɵɵcontentQuery(dirIndex, ProgressbarStructureDirective, 5);
2839
+ } if (rf & 2) {
2840
+ let _t;
2841
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
2842
+ } }, hostVars: 2, hostBindings: function ProgressbarComponent_HostBindings(rf, ctx) { if (rf & 2) {
2843
+ i0.ɵɵclassMap(ctx.state().className);
2844
+ } }, inputs: { ariaLabel: [i0.ɵɵInputFlags.None, "auAriaLabel", "ariaLabel"], min: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auMin", "min", auNumberAttribute], max: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auMax", "max", auNumberAttribute], value: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auValue", "value", auNumberAttribute], className: [i0.ɵɵInputFlags.None, "auClassName", "className"], slotDefault: [i0.ɵɵInputFlags.None, "auSlotDefault", "slotDefault"], slotStructure: [i0.ɵɵInputFlags.None, "auSlotStructure", "slotStructure"], height: [i0.ɵɵInputFlags.None, "auHeight", "height"], animated: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAnimated", "animated", auBooleanAttribute], striped: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auStriped", "striped", auBooleanAttribute], ariaValueTextFn: [i0.ɵɵInputFlags.None, "auAriaValueTextFn", "ariaValueTextFn"], type: [i0.ɵɵInputFlags.None, "auType", "type"] }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c2$1, ngContentSelectors: _c3$1, decls: 2, vars: 6, consts: [[3, "auSlotDefault"], [3, "auSlot", "auSlotProps"]], template: function ProgressbarComponent_Template(rf, ctx) { if (rf & 1) {
2845
+ i0.ɵɵprojectionDef();
2846
+ i0.ɵɵtemplate(0, ProgressbarComponent_ng_template_0_Template, 1, 0, "ng-template", 0)(1, ProgressbarComponent_ng_template_1_Template, 0, 0, "ng-template", 1);
2847
+ } if (rf & 2) {
2848
+ i0.ɵɵproperty("auSlotDefault", ctx.defaultSlots);
2849
+ i0.ɵɵadvance();
2850
+ i0.ɵɵproperty("auSlot", ctx.state().slotStructure)("auSlotProps", i0.ɵɵpureFunction2(3, _c1$1, ctx.state(), ctx.widget));
2851
+ } }, dependencies: [SlotDirective, SlotDefaultDirective], encapsulation: 2, changeDetection: 0 }); }
2852
+ }
2853
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressbarComponent, [{
2854
+ type: Component,
2855
+ args: [{
2856
+ selector: '[auProgressbar]',
2857
+ standalone: true,
2858
+ imports: [SlotDirective, SlotDefaultDirective],
2859
+ changeDetection: ChangeDetectionStrategy.OnPush,
2860
+ host: {
2861
+ '[class]': 'state().className',
2862
+ },
2863
+ template: `
2864
+ <ng-template [auSlotDefault]="defaultSlots"><ng-content></ng-content></ng-template>
2865
+ <ng-template [auSlot]="state().slotStructure" [auSlotProps]="{state: state(), widget}"></ng-template>
2866
+ `,
2867
+ }]
2868
+ }], null, { ariaLabel: [{
2869
+ type: Input,
2870
+ args: ['auAriaLabel']
2871
+ }], min: [{
2872
+ type: Input,
2873
+ args: [{ alias: 'auMin', transform: auNumberAttribute }]
2874
+ }], max: [{
2875
+ type: Input,
2876
+ args: [{ alias: 'auMax', transform: auNumberAttribute }]
2877
+ }], value: [{
2878
+ type: Input,
2879
+ args: [{ alias: 'auValue', transform: auNumberAttribute }]
2880
+ }], className: [{
2881
+ type: Input,
2882
+ args: ['auClassName']
2883
+ }], slotDefault: [{
2884
+ type: Input,
2885
+ args: ['auSlotDefault']
2886
+ }], slotStructure: [{
2887
+ type: Input,
2888
+ args: ['auSlotStructure']
2889
+ }], slotStructureFromContent: [{
2890
+ type: ContentChild,
2891
+ args: [ProgressbarStructureDirective, { static: false }]
2892
+ }], height: [{
2893
+ type: Input,
2894
+ args: ['auHeight']
2895
+ }], animated: [{
2896
+ type: Input,
2897
+ args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
2898
+ }], striped: [{
2899
+ type: Input,
2900
+ args: [{ alias: 'auStriped', transform: auBooleanAttribute }]
2901
+ }], ariaValueTextFn: [{
2902
+ type: Input,
2903
+ args: ['auAriaValueTextFn']
2904
+ }], type: [{
2905
+ type: Input,
2906
+ args: ['auType']
2907
+ }] }); })();
2908
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressbarComponent, { className: "ProgressbarComponent", filePath: "components/progressbar/progressbar.component.ts", lineNumber: 73 }); })();
2909
+
2910
+ const createToast = createToast$1;
2911
+
2912
+ const _c0 = ["structure"];
2913
+ const _c1 = (a0, a1) => ({ state: a0, widget: a1 });
2914
+ function ToastDefaultSlotsComponent_ng_template_0_Conditional_0_ng_template_1_Template(rf, ctx) { }
2915
+ function ToastDefaultSlotsComponent_ng_template_0_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2916
+ i0.ɵɵelement(0, "button", 6);
2917
+ } if (rf & 2) {
2918
+ const widget_r1 = i0.ɵɵnextContext(2).widget;
2919
+ i0.ɵɵproperty("auUse", widget_r1.directives.closeButtonDirective);
2920
+ } }
2921
+ function ToastDefaultSlotsComponent_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
2922
+ i0.ɵɵelementStart(0, "div", 2);
2923
+ i0.ɵɵtemplate(1, ToastDefaultSlotsComponent_ng_template_0_Conditional_0_ng_template_1_Template, 0, 0, "ng-template", 4)(2, ToastDefaultSlotsComponent_ng_template_0_Conditional_0_Conditional_2_Template, 1, 1, "button", 6);
2924
+ i0.ɵɵelementEnd();
2925
+ } if (rf & 2) {
2926
+ const ctx_r1 = i0.ɵɵnextContext();
2927
+ const state_r3 = ctx_r1.state;
2928
+ const widget_r1 = ctx_r1.widget;
2929
+ i0.ɵɵadvance();
2930
+ i0.ɵɵproperty("auSlot", state_r3.slotHeader)("auSlotProps", i0.ɵɵpureFunction2(3, _c1, state_r3, widget_r1));
2931
+ i0.ɵɵadvance();
2932
+ i0.ɵɵconditional(2, state_r3.dismissible ? 2 : -1);
2933
+ } }
2934
+ function ToastDefaultSlotsComponent_ng_template_0_ng_template_2_Template(rf, ctx) { }
2935
+ function ToastDefaultSlotsComponent_ng_template_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
2936
+ i0.ɵɵelement(0, "button", 5);
2937
+ } if (rf & 2) {
2938
+ const widget_r1 = i0.ɵɵnextContext().widget;
2939
+ i0.ɵɵproperty("auUse", widget_r1.directives.closeButtonDirective);
2940
+ } }
2941
+ function ToastDefaultSlotsComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
2942
+ i0.ɵɵtemplate(0, ToastDefaultSlotsComponent_ng_template_0_Conditional_0_Template, 3, 6, "div", 2);
2943
+ i0.ɵɵelementStart(1, "div", 3);
2944
+ i0.ɵɵtemplate(2, ToastDefaultSlotsComponent_ng_template_0_ng_template_2_Template, 0, 0, "ng-template", 4);
2945
+ i0.ɵɵelementEnd();
2946
+ i0.ɵɵtemplate(3, ToastDefaultSlotsComponent_ng_template_0_Conditional_3_Template, 1, 1, "button", 5);
2947
+ } if (rf & 2) {
2948
+ const state_r3 = ctx.state;
2949
+ const widget_r1 = ctx.widget;
2950
+ i0.ɵɵconditional(0, state_r3.slotHeader ? 0 : -1);
2951
+ i0.ɵɵadvance(2);
2952
+ i0.ɵɵproperty("auSlot", state_r3.slotDefault)("auSlotProps", i0.ɵɵpureFunction2(4, _c1, state_r3, widget_r1));
2953
+ i0.ɵɵadvance();
2954
+ i0.ɵɵconditional(3, state_r3.dismissible && !state_r3.slotHeader ? 3 : -1);
2955
+ } }
2956
+ const _c2 = ["auToast", ""];
2957
+ const _c3 = ["*"];
2958
+ const _c4 = (a0, a1, a2) => [a0, a1, a2];
2959
+ function ToastComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
2960
+ i0.ɵɵprojection(0);
2961
+ } }
2962
+ function ToastComponent_Conditional_1_ng_template_1_Template(rf, ctx) { }
2963
+ function ToastComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2964
+ i0.ɵɵelementStart(0, "div", 2);
2965
+ i0.ɵɵtemplate(1, ToastComponent_Conditional_1_ng_template_1_Template, 0, 0, "ng-template", 3);
2966
+ i0.ɵɵelementEnd();
2967
+ } if (rf & 2) {
2968
+ const ctx_r0 = i0.ɵɵnextContext();
2969
+ i0.ɵɵclassProp("d-flex", !ctx_r0.state().slotHeader)("toast-dismissible", ctx_r0.state().dismissible);
2970
+ i0.ɵɵproperty("auUseMulti", i0.ɵɵpureFunction3(7, _c4, ctx_r0.widget.directives.autoHideDirective, ctx_r0.widget.directives.transitionDirective, ctx_r0.widget.directives.bodyDirective));
2971
+ i0.ɵɵadvance();
2972
+ i0.ɵɵproperty("auSlot", ctx_r0.state().slotStructure)("auSlotProps", i0.ɵɵpureFunction2(11, _c1, ctx_r0.state(), ctx_r0.widget));
2973
+ } }
2974
+ class ToastBodyDirective {
2975
+ constructor() {
2976
+ this.templateRef = inject((TemplateRef));
2977
+ }
2978
+ static ngTemplateContextGuard(dir, context) {
2979
+ return true;
2980
+ }
2981
+ static { this.ɵfac = function ToastBodyDirective_Factory(t) { return new (t || ToastBodyDirective)(); }; }
2982
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastBodyDirective, selectors: [["ng-template", "auToastBody", ""]], standalone: true }); }
2983
+ }
2984
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastBodyDirective, [{
2985
+ type: Directive,
2986
+ args: [{ selector: 'ng-template[auToastBody]', standalone: true }]
2987
+ }], null, null); })();
2988
+ class ToastStructureDirective {
2989
+ constructor() {
2990
+ this.templateRef = inject((TemplateRef));
2991
+ }
2992
+ static ngTemplateContextGuard(dir, context) {
2993
+ return true;
2994
+ }
2995
+ static { this.ɵfac = function ToastStructureDirective_Factory(t) { return new (t || ToastStructureDirective)(); }; }
2996
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastStructureDirective, selectors: [["ng-template", "auToastStructure", ""]], standalone: true }); }
2997
+ }
2998
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastStructureDirective, [{
2999
+ type: Directive,
3000
+ args: [{ selector: 'ng-template[auToastStructure]', standalone: true }]
3001
+ }], null, null); })();
3002
+ class ToastHeaderDirective {
3003
+ constructor() {
3004
+ this.templateRef = inject((TemplateRef));
3005
+ }
3006
+ static ngTemplateContextGuard(dir, context) {
3007
+ return true;
3008
+ }
3009
+ static { this.ɵfac = function ToastHeaderDirective_Factory(t) { return new (t || ToastHeaderDirective)(); }; }
3010
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ToastHeaderDirective, selectors: [["ng-template", "auToastHeader", ""]], standalone: true }); }
3011
+ }
3012
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastHeaderDirective, [{
3013
+ type: Directive,
3014
+ args: [{ selector: 'ng-template[auToastHeader]', standalone: true }]
3015
+ }], null, null); })();
3016
+ class ToastDefaultSlotsComponent {
3017
+ static { this.ɵfac = function ToastDefaultSlotsComponent_Factory(t) { return new (t || ToastDefaultSlotsComponent)(); }; }
3018
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastDefaultSlotsComponent, selectors: [["ng-component"]], viewQuery: function ToastDefaultSlotsComponent_Query(rf, ctx) { if (rf & 1) {
3019
+ i0.ɵɵviewQuery(_c0, 7);
3020
+ } if (rf & 2) {
3021
+ let _t;
3022
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.structure = _t.first);
3023
+ } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 0, consts: [["structure", ""], ["auToastStructure", ""], [1, "toast-header"], [1, "toast-body"], [3, "auSlot", "auSlotProps"], [1, "btn-close", "btn-close-white", "me-2", "m-auto", 3, "auUse"], [1, "btn-close", "me-0", "ms-auto", 3, "auUse"]], template: function ToastDefaultSlotsComponent_Template(rf, ctx) { if (rf & 1) {
3024
+ i0.ɵɵtemplate(0, ToastDefaultSlotsComponent_ng_template_0_Template, 4, 7, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
3025
+ } }, dependencies: [SlotDirective, ToastStructureDirective, UseDirective], encapsulation: 2, changeDetection: 0 }); }
3026
+ }
3027
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastDefaultSlotsComponent, [{
3028
+ type: Component,
3029
+ args: [{
3030
+ standalone: true,
3031
+ changeDetection: ChangeDetectionStrategy.OnPush,
3032
+ imports: [SlotDirective, ToastStructureDirective, UseDirective],
3033
+ template: ` <ng-template auToastStructure #structure let-state="state" let-widget="widget">
3034
+ @if (state.slotHeader) {
3035
+ <div class="toast-header">
3036
+ <ng-template [auSlot]="state.slotHeader" [auSlotProps]="{state, widget}"></ng-template>
3037
+ @if (state.dismissible) {
3038
+ <button class="btn-close me-0 ms-auto" [auUse]="widget.directives.closeButtonDirective"></button>
3039
+ }
3040
+ </div>
3041
+ }
3042
+ <div class="toast-body">
3043
+ <ng-template [auSlot]="state.slotDefault" [auSlotProps]="{state, widget}"></ng-template>
3044
+ </div>
3045
+ @if (state.dismissible && !state.slotHeader) {
3046
+ <button class="btn-close btn-close-white me-2 m-auto" [auUse]="widget.directives.closeButtonDirective"></button>
3047
+ }
3048
+ </ng-template>`,
3049
+ }]
3050
+ }], null, { structure: [{
3051
+ type: ViewChild,
3052
+ args: ['structure', { static: true }]
3053
+ }] }); })();
3054
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastDefaultSlotsComponent, { className: "ToastDefaultSlotsComponent", filePath: "components/toast/toast.component.ts", lineNumber: 76 }); })();
3055
+ const toastDefaultSlotStructure = new ComponentTemplate(ToastDefaultSlotsComponent, 'structure');
3056
+ const defaultConfig = {
3057
+ slotStructure: toastDefaultSlotStructure,
3058
+ };
3059
+ class ToastComponent extends BaseWidgetDirective {
3060
+ constructor() {
3061
+ super(...arguments);
3062
+ /**
3063
+ * Callback called when the alert visibility changed.
3064
+ */
3065
+ this.visibleChange = new EventEmitter();
3066
+ /**
3067
+ * Callback called when the alert is hidden.
3068
+ */
3069
+ this.hidden = new EventEmitter();
3070
+ /**
3071
+ * Callback called when the alert is shown.
3072
+ */
3073
+ this.shown = new EventEmitter();
3074
+ this.defaultSlots = writable(defaultConfig);
3075
+ this._widget = callWidgetFactory({
3076
+ factory: createToast,
3077
+ widgetName: 'toast',
3078
+ defaultConfig: this.defaultSlots,
3079
+ events: {
3080
+ onVisibleChange: (event) => this.visibleChange.emit(event),
3081
+ onShown: () => this.shown.emit(),
3082
+ onHidden: () => this.hidden.emit(),
3083
+ },
3084
+ });
3085
+ }
3086
+ ngAfterContentChecked() {
3087
+ this._widget.patchSlots({
3088
+ slotDefault: this.slotDefaultFromContent?.templateRef,
3089
+ slotStructure: this.slotStructureFromContent?.templateRef,
3090
+ slotHeader: this.slotHeaderFromContent?.templateRef,
3091
+ });
3092
+ }
3093
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵToastComponent_BaseFactory; return function ToastComponent_Factory(t) { return (ɵToastComponent_BaseFactory || (ɵToastComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ToastComponent)))(t || ToastComponent); }; })(); }
3094
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToastComponent, selectors: [["", "auToast", ""]], contentQueries: function ToastComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
3095
+ i0.ɵɵcontentQuery(dirIndex, ToastBodyDirective, 5);
3096
+ i0.ɵɵcontentQuery(dirIndex, ToastStructureDirective, 5);
3097
+ i0.ɵɵcontentQuery(dirIndex, ToastHeaderDirective, 5);
3098
+ } if (rf & 2) {
3099
+ let _t;
3100
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotDefaultFromContent = _t.first);
3101
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotStructureFromContent = _t.first);
3102
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.slotHeaderFromContent = _t.first);
3103
+ } }, inputs: { dismissible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDismissible", "dismissible", auBooleanAttribute], transition: [i0.ɵɵInputFlags.None, "auTransition", "transition"], visible: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auVisible", "visible", auBooleanAttribute], animatedOnInit: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAnimatedOnInit", "animatedOnInit", auBooleanAttribute], animated: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAnimated", "animated", auBooleanAttribute], autoHide: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auAutoHide", "autoHide", auBooleanAttribute], delay: [i0.ɵɵInputFlags.HasDecoratorInputTransform, "auDelay", "delay", auNumberAttribute], ariaCloseButtonLabel: [i0.ɵɵInputFlags.None, "auAriaCloseButtonLabel", "ariaCloseButtonLabel"], slotDefault: [i0.ɵɵInputFlags.None, "auSlotDefault", "slotDefault"], slotStructure: [i0.ɵɵInputFlags.None, "auSlotStructure", "slotStructure"], slotHeader: [i0.ɵɵInputFlags.None, "auSlotHeader", "slotHeader"], className: [i0.ɵɵInputFlags.None, "auClassName", "className"] }, outputs: { visibleChange: "auVisibleChange", hidden: "auHidden", shown: "auShown" }, standalone: true, features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], attrs: _c2, ngContentSelectors: _c3, decls: 2, vars: 2, consts: [[3, "auSlotDefault"], [1, "toast", 3, "d-flex", "toast-dismissible", "auUseMulti"], [1, "toast", 3, "auUseMulti"], [3, "auSlot", "auSlotProps"]], template: function ToastComponent_Template(rf, ctx) { if (rf & 1) {
3104
+ i0.ɵɵprojectionDef();
3105
+ i0.ɵɵtemplate(0, ToastComponent_ng_template_0_Template, 1, 0, "ng-template", 0)(1, ToastComponent_Conditional_1_Template, 2, 14, "div", 1);
3106
+ } if (rf & 2) {
3107
+ i0.ɵɵproperty("auSlotDefault", ctx.defaultSlots);
3108
+ i0.ɵɵadvance();
3109
+ i0.ɵɵconditional(1, !ctx.state().hidden ? 1 : -1);
3110
+ } }, dependencies: [SlotDirective, UseMultiDirective, SlotDefaultDirective], encapsulation: 2, changeDetection: 0 }); }
3111
+ }
3112
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToastComponent, [{
3113
+ type: Component,
3114
+ args: [{
3115
+ selector: '[auToast]',
3116
+ standalone: true,
3117
+ changeDetection: ChangeDetectionStrategy.OnPush,
3118
+ imports: [SlotDirective, UseMultiDirective, SlotDefaultDirective],
3119
+ template: ` <ng-template [auSlotDefault]="defaultSlots">
3120
+ <ng-content></ng-content>
3121
+ </ng-template>
3122
+ @if (!state().hidden) {
3123
+ <div
3124
+ class="toast"
3125
+ [class.d-flex]="!state().slotHeader"
3126
+ [class.toast-dismissible]="state().dismissible"
3127
+ [auUseMulti]="[widget.directives.autoHideDirective, widget.directives.transitionDirective, widget.directives.bodyDirective]"
3128
+ >
3129
+ <ng-template [auSlot]="state().slotStructure" [auSlotProps]="{state: state(), widget}"></ng-template>
3130
+ </div>
3131
+ }`,
3132
+ }]
3133
+ }], null, { dismissible: [{
3134
+ type: Input,
3135
+ args: [{ alias: 'auDismissible', transform: auBooleanAttribute }]
3136
+ }], transition: [{
3137
+ type: Input,
3138
+ args: ['auTransition']
3139
+ }], visible: [{
3140
+ type: Input,
3141
+ args: [{ alias: 'auVisible', transform: auBooleanAttribute }]
3142
+ }], animatedOnInit: [{
3143
+ type: Input,
3144
+ args: [{ alias: 'auAnimatedOnInit', transform: auBooleanAttribute }]
3145
+ }], animated: [{
3146
+ type: Input,
3147
+ args: [{ alias: 'auAnimated', transform: auBooleanAttribute }]
3148
+ }], autoHide: [{
3149
+ type: Input,
3150
+ args: [{ alias: 'auAutoHide', transform: auBooleanAttribute }]
3151
+ }], delay: [{
3152
+ type: Input,
3153
+ args: [{ alias: 'auDelay', transform: auNumberAttribute }]
3154
+ }], ariaCloseButtonLabel: [{
3155
+ type: Input,
3156
+ args: ['auAriaCloseButtonLabel']
3157
+ }], slotDefault: [{
3158
+ type: Input,
3159
+ args: ['auSlotDefault']
3160
+ }], slotDefaultFromContent: [{
3161
+ type: ContentChild,
3162
+ args: [ToastBodyDirective, { static: false }]
3163
+ }], slotStructure: [{
3164
+ type: Input,
3165
+ args: ['auSlotStructure']
3166
+ }], slotStructureFromContent: [{
3167
+ type: ContentChild,
3168
+ args: [ToastStructureDirective, { static: false }]
3169
+ }], slotHeader: [{
3170
+ type: Input,
3171
+ args: ['auSlotHeader']
3172
+ }], slotHeaderFromContent: [{
3173
+ type: ContentChild,
3174
+ args: [ToastHeaderDirective, { static: false }]
3175
+ }], visibleChange: [{
3176
+ type: Output,
3177
+ args: ['auVisibleChange']
3178
+ }], hidden: [{
3179
+ type: Output,
3180
+ args: ['auHidden']
3181
+ }], shown: [{
3182
+ type: Output,
3183
+ args: ['auShown']
3184
+ }], className: [{
3185
+ type: Input,
3186
+ args: ['auClassName']
3187
+ }] }); })();
3188
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ToastComponent, { className: "ToastComponent", filePath: "components/toast/toast.component.ts", lineNumber: 105 }); })();
3189
+
3190
+ /* istanbul ignore next */
3191
+ const components = [
3192
+ SlotDirective,
3193
+ SelectComponent,
3194
+ SelectBadgeLabelDirective,
3195
+ SelectItemDirective,
3196
+ UseDirective,
3197
+ UseMultiDirective,
3198
+ RatingComponent,
3199
+ RatingStarDirective,
3200
+ PaginationComponent,
3201
+ PaginationEllipsisDirective,
3202
+ PaginationFirstDirective,
3203
+ PaginationLastDirective,
3204
+ PaginationNextDirective,
3205
+ PaginationNumberDirective,
3206
+ PaginationPreviousDirective,
3207
+ PaginationPagesDirective,
3208
+ PaginationStructureDirective,
3209
+ ModalComponent,
3210
+ ModalStructureDirective,
3211
+ ModalHeaderDirective,
3212
+ ModalTitleDirective,
3213
+ ModalBodyDirective,
3214
+ ModalFooterDirective,
3215
+ AlertComponent,
3216
+ AlertStructureDirective,
3217
+ AlertBodyDirective,
3218
+ AccordionDirective,
3219
+ AccordionItemComponent,
3220
+ AccordionHeaderDirective,
3221
+ AccordionBodyDirective,
3222
+ AccordionItemStructureDirective,
3223
+ SliderComponent,
3224
+ SliderHandleDirective,
3225
+ SliderLabelDirective,
3226
+ SliderStructureDirective,
3227
+ ProgressbarComponent,
3228
+ ProgressbarStructureDirective,
3229
+ ToastComponent,
3230
+ ToastStructureDirective,
3231
+ ToastBodyDirective,
3232
+ ToastHeaderDirective,
3233
+ ];
3234
+ class AgnosUIAngularModule {
3235
+ static { this.ɵfac = function AgnosUIAngularModule_Factory(t) { return new (t || AgnosUIAngularModule)(); }; }
3236
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AgnosUIAngularModule }); }
3237
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); }
3238
+ }
3239
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AgnosUIAngularModule, [{
3240
+ type: NgModule,
3241
+ args: [{
3242
+ declarations: [],
3243
+ imports: components,
3244
+ exports: components,
3245
+ }]
3246
+ }], null, null); })();
3247
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AgnosUIAngularModule, { imports: [SlotDirective,
3248
+ SelectComponent,
3249
+ SelectBadgeLabelDirective,
3250
+ SelectItemDirective,
3251
+ UseDirective,
3252
+ UseMultiDirective,
3253
+ RatingComponent,
3254
+ RatingStarDirective,
3255
+ PaginationComponent,
3256
+ PaginationEllipsisDirective,
3257
+ PaginationFirstDirective,
3258
+ PaginationLastDirective,
3259
+ PaginationNextDirective,
3260
+ PaginationNumberDirective,
3261
+ PaginationPreviousDirective,
3262
+ PaginationPagesDirective,
3263
+ PaginationStructureDirective,
3264
+ ModalComponent,
3265
+ ModalStructureDirective,
3266
+ ModalHeaderDirective,
3267
+ ModalTitleDirective,
3268
+ ModalBodyDirective,
3269
+ ModalFooterDirective,
3270
+ AlertComponent,
3271
+ AlertStructureDirective,
3272
+ AlertBodyDirective,
3273
+ AccordionDirective,
3274
+ AccordionItemComponent,
3275
+ AccordionHeaderDirective,
3276
+ AccordionBodyDirective,
3277
+ AccordionItemStructureDirective,
3278
+ SliderComponent,
3279
+ SliderHandleDirective,
3280
+ SliderLabelDirective,
3281
+ SliderStructureDirective,
3282
+ ProgressbarComponent,
3283
+ ProgressbarStructureDirective,
3284
+ ToastComponent,
3285
+ ToastStructureDirective,
3286
+ ToastBodyDirective,
3287
+ ToastHeaderDirective], exports: [SlotDirective,
3288
+ SelectComponent,
3289
+ SelectBadgeLabelDirective,
3290
+ SelectItemDirective,
3291
+ UseDirective,
3292
+ UseMultiDirective,
3293
+ RatingComponent,
3294
+ RatingStarDirective,
3295
+ PaginationComponent,
3296
+ PaginationEllipsisDirective,
3297
+ PaginationFirstDirective,
3298
+ PaginationLastDirective,
3299
+ PaginationNextDirective,
3300
+ PaginationNumberDirective,
3301
+ PaginationPreviousDirective,
3302
+ PaginationPagesDirective,
3303
+ PaginationStructureDirective,
3304
+ ModalComponent,
3305
+ ModalStructureDirective,
3306
+ ModalHeaderDirective,
3307
+ ModalTitleDirective,
3308
+ ModalBodyDirective,
3309
+ ModalFooterDirective,
3310
+ AlertComponent,
3311
+ AlertStructureDirective,
3312
+ AlertBodyDirective,
3313
+ AccordionDirective,
3314
+ AccordionItemComponent,
3315
+ AccordionHeaderDirective,
3316
+ AccordionBodyDirective,
3317
+ AccordionItemStructureDirective,
3318
+ SliderComponent,
3319
+ SliderHandleDirective,
3320
+ SliderLabelDirective,
3321
+ SliderStructureDirective,
3322
+ ProgressbarComponent,
3323
+ ProgressbarStructureDirective,
3324
+ ToastComponent,
3325
+ ToastStructureDirective,
3326
+ ToastBodyDirective,
3327
+ ToastHeaderDirective] }); })();
3328
+
3329
+ class ModalService {
3330
+ constructor() {
3331
+ this._injector = inject(Injector);
3332
+ this._applicationRef = inject(ApplicationRef);
3333
+ }
3334
+ async open(options, { injector = this._injector } = {}) {
3335
+ const component = createComponent(ModalComponent, {
3336
+ environmentInjector: injector.get(EnvironmentInjector),
3337
+ elementInjector: injector,
3338
+ });
3339
+ const subscriptions = [];
3340
+ try {
3341
+ for (const prop of Object.keys(options)) {
3342
+ const value = options[prop];
3343
+ if (prop.startsWith('on')) {
3344
+ const eventName = `${prop[2].toLowerCase()}${prop.substring(3)}`;
3345
+ const eventEmitter = component.instance[eventName];
3346
+ if (eventEmitter instanceof EventEmitter) {
3347
+ subscriptions.push(eventEmitter.subscribe(value));
3348
+ }
3349
+ }
3350
+ else {
3351
+ component.setInput(`au${prop.substring(0, 1).toUpperCase()}${prop.substring(1)}`, value);
3352
+ }
3353
+ }
3354
+ this._applicationRef.attachView(component.hostView);
3355
+ await component.instance._widget.initialized;
3356
+ return await component.instance.api.open();
3357
+ }
3358
+ finally {
3359
+ component.destroy();
3360
+ for (const subscription of subscriptions) {
3361
+ subscription.unsubscribe();
3362
+ }
3363
+ }
3364
+ }
3365
+ static { this.ɵfac = function ModalService_Factory(t) { return new (t || ModalService)(); }; }
3366
+ static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ModalService, factory: ModalService.ɵfac, providedIn: 'root' }); }
3367
+ }
3368
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalService, [{
3369
+ type: Injectable,
3370
+ args: [{ providedIn: 'root' }]
3371
+ }], null, null); })();
3372
+
3373
+ /*
3374
+ * Public API Surface of @agnos-ui/angular-bootstrap
3375
+ */
3376
+
3377
+ /**
3378
+ * Generated bundle index. Do not edit.
3379
+ */
3380
+
3381
+ 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, SelectItemDirective, SliderComponent, SliderDefaultHandleSlotComponent, SliderDefaultStructureSlotComponent, SliderHandleDirective, SliderLabelDirective, SliderStructureDirective, ToastBodyDirective, ToastComponent, ToastDefaultSlotsComponent, ToastHeaderDirective, ToastStructureDirective, accordionItemDefaultSlotItemStructure, alertDefaultSlotStructure, callWidgetFactory, createAccordion, createAlert, createModal, createPagination, createProgressbar, createRating, createSelect, createSlider, createToast, injectWidgetConfig, injectWidgetsConfig, modalDefaultSlotHeader, modalDefaultSlotStructure, paginationDefaultSlotPages, paginationDefaultSlotStructure, progressbarDefaultSlotStructure, provideWidgetsConfig, sliderDefaultSlotHandle, sliderDefaultSlotStructure, toastDefaultSlotStructure, widgetsConfigInjectionToken };
3382
+ //# sourceMappingURL=agnos-ui-angular-bootstrap.mjs.map